mac80211: move bss_conf into vif
Move bss_conf into the vif struct so that drivers can access it during ->tx without having to store it in the private data or similar. No driver updates because this is only for when they want to start using it. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
9124b07740
commit
bda3933a8a
@ -249,15 +249,15 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
|
||||
if (local->ops->bss_info_changed)
|
||||
local->ops->bss_info_changed(local_to_hw(local),
|
||||
&sdata->vif,
|
||||
&sdata->bss_conf,
|
||||
&sdata->vif.bss_conf,
|
||||
changed);
|
||||
}
|
||||
|
||||
u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata)
|
||||
{
|
||||
sdata->bss_conf.use_cts_prot = false;
|
||||
sdata->bss_conf.use_short_preamble = false;
|
||||
sdata->bss_conf.use_short_slot = false;
|
||||
sdata->vif.bss_conf.use_cts_prot = false;
|
||||
sdata->vif.bss_conf.use_short_preamble = false;
|
||||
sdata->vif.bss_conf.use_short_slot = false;
|
||||
return BSS_CHANGED_ERP_CTS_PROT |
|
||||
BSS_CHANGED_ERP_PREAMBLE |
|
||||
BSS_CHANGED_ERP_SLOT;
|
||||
|
Reference in New Issue
Block a user