diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-10 19:51:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:15 -0400 |
commit | bda3933a8aceedd03e0dd410844bd310033ca756 (patch) | |
tree | f4d2c70a6338e500b6db93b073801181280b1840 /net/mac80211/main.c | |
parent | 9124b07740c51cbc6e358dd0c4abc6ee8ded084d (diff) |
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>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 59be9e782699..ab8a860444af 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -249,15 +249,15 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, | |||
249 | if (local->ops->bss_info_changed) | 249 | if (local->ops->bss_info_changed) |
250 | local->ops->bss_info_changed(local_to_hw(local), | 250 | local->ops->bss_info_changed(local_to_hw(local), |
251 | &sdata->vif, | 251 | &sdata->vif, |
252 | &sdata->bss_conf, | 252 | &sdata->vif.bss_conf, |
253 | changed); | 253 | changed); |
254 | } | 254 | } |
255 | 255 | ||
256 | u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata) | 256 | u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata) |
257 | { | 257 | { |
258 | sdata->bss_conf.use_cts_prot = false; | 258 | sdata->vif.bss_conf.use_cts_prot = false; |
259 | sdata->bss_conf.use_short_preamble = false; | 259 | sdata->vif.bss_conf.use_short_preamble = false; |
260 | sdata->bss_conf.use_short_slot = false; | 260 | sdata->vif.bss_conf.use_short_slot = false; |
261 | return BSS_CHANGED_ERP_CTS_PROT | | 261 | return BSS_CHANGED_ERP_CTS_PROT | |
262 | BSS_CHANGED_ERP_PREAMBLE | | 262 | BSS_CHANGED_ERP_PREAMBLE | |
263 | BSS_CHANGED_ERP_SLOT; | 263 | BSS_CHANGED_ERP_SLOT; |