diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-23 10:10:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:33 -0400 |
commit | 57c4d7b4c4986037be51476b8e3025d5ba18d8b8 (patch) | |
tree | bcd24a127b4c79891f45799a20867f49c0f7f949 /net/mac80211/tx.c | |
parent | f3b85252f081581a8f257545ed748062dce7798b (diff) |
mac80211: clean up beacon interval settings
We currently have two beacon interval configuration knobs:
hw.conf.beacon_int and vif.bss_info.beacon_int. This is
rather confusing, even though the former is used when we
beacon ourselves and the latter when we are associated to
an AP.
This just deprecates the hw.conf.beacon_int setting in favour
of always using vif.bss_info.beacon_int. Since it touches all
the beaconing IBSS code anyway, we can also add support for
the cfg80211 IBSS beacon interval configuration easily.
NOTE: The hw.conf.beacon_int setting is retained for now due
to drivers still using it -- I couldn't untangle all
drivers, some are updated in this patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 1865622003c9..29df65045fc9 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -2132,7 +2132,7 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
2132 | memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); | 2132 | memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); |
2133 | /* BSSID is left zeroed, wildcard value */ | 2133 | /* BSSID is left zeroed, wildcard value */ |
2134 | mgmt->u.beacon.beacon_int = | 2134 | mgmt->u.beacon.beacon_int = |
2135 | cpu_to_le16(local->hw.conf.beacon_int); | 2135 | cpu_to_le16(sdata->vif.bss_conf.beacon_int); |
2136 | mgmt->u.beacon.capab_info = 0x0; /* 0x0 for MPs */ | 2136 | mgmt->u.beacon.capab_info = 0x0; /* 0x0 for MPs */ |
2137 | 2137 | ||
2138 | pos = skb_put(skb, 2); | 2138 | pos = skb_put(skb, 2); |