diff options
-rw-r--r-- | include/net/mac80211.h | 14 | ||||
-rw-r--r-- | net/mac80211/main.c | 12 |
2 files changed, 4 insertions, 22 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index d72346ff3247..0270aa6e08f2 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -527,7 +527,6 @@ enum ieee80211_conf_flags { | |||
527 | * enum ieee80211_conf_changed - denotes which configuration changed | 527 | * enum ieee80211_conf_changed - denotes which configuration changed |
528 | * | 528 | * |
529 | * @IEEE80211_CONF_CHANGE_RADIO_ENABLED: the value of radio_enabled changed | 529 | * @IEEE80211_CONF_CHANGE_RADIO_ENABLED: the value of radio_enabled changed |
530 | * @_IEEE80211_CONF_CHANGE_BEACON_INTERVAL: DEPRECATED | ||
531 | * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed | 530 | * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed |
532 | * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed | 531 | * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed |
533 | * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed | 532 | * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed |
@@ -538,7 +537,6 @@ enum ieee80211_conf_flags { | |||
538 | */ | 537 | */ |
539 | enum ieee80211_conf_changed { | 538 | enum ieee80211_conf_changed { |
540 | IEEE80211_CONF_CHANGE_RADIO_ENABLED = BIT(0), | 539 | IEEE80211_CONF_CHANGE_RADIO_ENABLED = BIT(0), |
541 | _IEEE80211_CONF_CHANGE_BEACON_INTERVAL = BIT(1), | ||
542 | IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2), | 540 | IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2), |
543 | IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3), | 541 | IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3), |
544 | IEEE80211_CONF_CHANGE_PS = BIT(4), | 542 | IEEE80211_CONF_CHANGE_PS = BIT(4), |
@@ -548,14 +546,6 @@ enum ieee80211_conf_changed { | |||
548 | IEEE80211_CONF_CHANGE_IDLE = BIT(8), | 546 | IEEE80211_CONF_CHANGE_IDLE = BIT(8), |
549 | }; | 547 | }; |
550 | 548 | ||
551 | static inline __deprecated enum ieee80211_conf_changed | ||
552 | __IEEE80211_CONF_CHANGE_BEACON_INTERVAL(void) | ||
553 | { | ||
554 | return _IEEE80211_CONF_CHANGE_BEACON_INTERVAL; | ||
555 | } | ||
556 | #define IEEE80211_CONF_CHANGE_BEACON_INTERVAL \ | ||
557 | __IEEE80211_CONF_CHANGE_BEACON_INTERVAL() | ||
558 | |||
559 | /** | 549 | /** |
560 | * struct ieee80211_conf - configuration of the device | 550 | * struct ieee80211_conf - configuration of the device |
561 | * | 551 | * |
@@ -564,7 +554,7 @@ __IEEE80211_CONF_CHANGE_BEACON_INTERVAL(void) | |||
564 | * @flags: configuration flags defined above | 554 | * @flags: configuration flags defined above |
565 | * | 555 | * |
566 | * @radio_enabled: when zero, driver is required to switch off the radio. | 556 | * @radio_enabled: when zero, driver is required to switch off the radio. |
567 | * @beacon_int: beacon interval (TODO make interface config) | 557 | * @beacon_int: DEPRECATED, DO NOT USE |
568 | * | 558 | * |
569 | * @listen_interval: listen interval in units of beacon interval | 559 | * @listen_interval: listen interval in units of beacon interval |
570 | * @max_sleep_period: the maximum number of beacon intervals to sleep for | 560 | * @max_sleep_period: the maximum number of beacon intervals to sleep for |
@@ -589,7 +579,7 @@ __IEEE80211_CONF_CHANGE_BEACON_INTERVAL(void) | |||
589 | * number of transmissions not the number of retries | 579 | * number of transmissions not the number of retries |
590 | */ | 580 | */ |
591 | struct ieee80211_conf { | 581 | struct ieee80211_conf { |
592 | int beacon_int; | 582 | int __deprecated beacon_int; |
593 | u32 flags; | 583 | u32 flags; |
594 | int power_level, dynamic_ps_timeout; | 584 | int power_level, dynamic_ps_timeout; |
595 | int max_sleep_period; | 585 | int max_sleep_period; |
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index e37770ced53c..2683df918073 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -289,16 +289,8 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, | |||
289 | drv_bss_info_changed(local, &sdata->vif, | 289 | drv_bss_info_changed(local, &sdata->vif, |
290 | &sdata->vif.bss_conf, changed); | 290 | &sdata->vif.bss_conf, changed); |
291 | 291 | ||
292 | /* | 292 | /* DEPRECATED */ |
293 | * DEPRECATED | 293 | local->hw.conf.beacon_int = sdata->vif.bss_conf.beacon_int; |
294 | * | ||
295 | * ~changed is just there to not do this at resume time | ||
296 | */ | ||
297 | if (changed & BSS_CHANGED_BEACON_INT && ~changed) { | ||
298 | local->hw.conf.beacon_int = sdata->vif.bss_conf.beacon_int; | ||
299 | ieee80211_hw_config(local, | ||
300 | _IEEE80211_CONF_CHANGE_BEACON_INTERVAL); | ||
301 | } | ||
302 | } | 294 | } |
303 | 295 | ||
304 | u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata) | 296 | u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata) |