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/cfg.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/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 8ea30902d5db..28382b5c7c25 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -964,16 +964,16 @@ static int ieee80211_change_bss(struct wiphy *wiphy, | |||
964 | return -EINVAL; | 964 | return -EINVAL; |
965 | 965 | ||
966 | if (params->use_cts_prot >= 0) { | 966 | if (params->use_cts_prot >= 0) { |
967 | sdata->bss_conf.use_cts_prot = params->use_cts_prot; | 967 | sdata->vif.bss_conf.use_cts_prot = params->use_cts_prot; |
968 | changed |= BSS_CHANGED_ERP_CTS_PROT; | 968 | changed |= BSS_CHANGED_ERP_CTS_PROT; |
969 | } | 969 | } |
970 | if (params->use_short_preamble >= 0) { | 970 | if (params->use_short_preamble >= 0) { |
971 | sdata->bss_conf.use_short_preamble = | 971 | sdata->vif.bss_conf.use_short_preamble = |
972 | params->use_short_preamble; | 972 | params->use_short_preamble; |
973 | changed |= BSS_CHANGED_ERP_PREAMBLE; | 973 | changed |= BSS_CHANGED_ERP_PREAMBLE; |
974 | } | 974 | } |
975 | if (params->use_short_slot_time >= 0) { | 975 | if (params->use_short_slot_time >= 0) { |
976 | sdata->bss_conf.use_short_slot = | 976 | sdata->vif.bss_conf.use_short_slot = |
977 | params->use_short_slot_time; | 977 | params->use_short_slot_time; |
978 | changed |= BSS_CHANGED_ERP_SLOT; | 978 | changed |= BSS_CHANGED_ERP_SLOT; |
979 | } | 979 | } |