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 /include/net | |
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 'include/net')
-rw-r--r-- | include/net/mac80211.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 81d706d85226..22c65e8cbb71 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -149,6 +149,7 @@ struct ieee80211_low_level_stats { | |||
149 | * @BSS_CHANGED_ERP_SLOT: slot timing changed | 149 | * @BSS_CHANGED_ERP_SLOT: slot timing changed |
150 | * @BSS_CHANGED_HT: 802.11n parameters changed | 150 | * @BSS_CHANGED_HT: 802.11n parameters changed |
151 | * @BSS_CHANGED_BASIC_RATES: Basic rateset changed | 151 | * @BSS_CHANGED_BASIC_RATES: Basic rateset changed |
152 | * @BSS_CHANGED_BEACON_INT: Beacon interval changed | ||
152 | */ | 153 | */ |
153 | enum ieee80211_bss_change { | 154 | enum ieee80211_bss_change { |
154 | BSS_CHANGED_ASSOC = 1<<0, | 155 | BSS_CHANGED_ASSOC = 1<<0, |
@@ -157,6 +158,7 @@ enum ieee80211_bss_change { | |||
157 | BSS_CHANGED_ERP_SLOT = 1<<3, | 158 | BSS_CHANGED_ERP_SLOT = 1<<3, |
158 | BSS_CHANGED_HT = 1<<4, | 159 | BSS_CHANGED_HT = 1<<4, |
159 | BSS_CHANGED_BASIC_RATES = 1<<5, | 160 | BSS_CHANGED_BASIC_RATES = 1<<5, |
161 | BSS_CHANGED_BEACON_INT = 1<<6, | ||
160 | }; | 162 | }; |
161 | 163 | ||
162 | /** | 164 | /** |
@@ -529,7 +531,7 @@ enum ieee80211_conf_flags { | |||
529 | * enum ieee80211_conf_changed - denotes which configuration changed | 531 | * enum ieee80211_conf_changed - denotes which configuration changed |
530 | * | 532 | * |
531 | * @IEEE80211_CONF_CHANGE_RADIO_ENABLED: the value of radio_enabled changed | 533 | * @IEEE80211_CONF_CHANGE_RADIO_ENABLED: the value of radio_enabled changed |
532 | * @IEEE80211_CONF_CHANGE_BEACON_INTERVAL: the beacon interval changed | 534 | * @_IEEE80211_CONF_CHANGE_BEACON_INTERVAL: DEPRECATED |
533 | * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed | 535 | * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed |
534 | * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed | 536 | * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed |
535 | * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed | 537 | * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed |
@@ -539,7 +541,7 @@ enum ieee80211_conf_flags { | |||
539 | */ | 541 | */ |
540 | enum ieee80211_conf_changed { | 542 | enum ieee80211_conf_changed { |
541 | IEEE80211_CONF_CHANGE_RADIO_ENABLED = BIT(0), | 543 | IEEE80211_CONF_CHANGE_RADIO_ENABLED = BIT(0), |
542 | IEEE80211_CONF_CHANGE_BEACON_INTERVAL = BIT(1), | 544 | _IEEE80211_CONF_CHANGE_BEACON_INTERVAL = BIT(1), |
543 | IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2), | 545 | IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2), |
544 | IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3), | 546 | IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3), |
545 | IEEE80211_CONF_CHANGE_PS = BIT(4), | 547 | IEEE80211_CONF_CHANGE_PS = BIT(4), |
@@ -548,6 +550,14 @@ enum ieee80211_conf_changed { | |||
548 | IEEE80211_CONF_CHANGE_RETRY_LIMITS = BIT(7), | 550 | IEEE80211_CONF_CHANGE_RETRY_LIMITS = BIT(7), |
549 | }; | 551 | }; |
550 | 552 | ||
553 | static inline __deprecated enum ieee80211_conf_changed | ||
554 | __IEEE80211_CONF_CHANGE_BEACON_INTERVAL(void) | ||
555 | { | ||
556 | return _IEEE80211_CONF_CHANGE_BEACON_INTERVAL; | ||
557 | } | ||
558 | #define IEEE80211_CONF_CHANGE_BEACON_INTERVAL \ | ||
559 | __IEEE80211_CONF_CHANGE_BEACON_INTERVAL() | ||
560 | |||
551 | /** | 561 | /** |
552 | * struct ieee80211_conf - configuration of the device | 562 | * struct ieee80211_conf - configuration of the device |
553 | * | 563 | * |