aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-08-17 10:18:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 11:35:58 -0400
commitf424afa17899408cbd267a4c4534ca6fc9d8f71c (patch)
treeef68af16e693231b6842767ecd2ad04ba341cd93
parent3ac64beecd27400d12cc7afb4108eef26c499f6a (diff)
mac80211: remove deprecated API
All but two drivers have now stopped using the two deprecated members radio_enabled and beacon_int, so it's about time to remove them for good. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Kalle Valo <kalle.valo@iki.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/at76c50x-usb.c5
-rw-r--r--drivers/net/wireless/mwl8k.c7
-rw-r--r--include/net/mac80211.h15
-rw-r--r--net/mac80211/main.c4
4 files changed, 2 insertions, 29 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index a6e19545ac6a..8e1a55dec351 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -1950,9 +1950,8 @@ static int at76_config(struct ieee80211_hw *hw, u32 changed)
1950{ 1950{
1951 struct at76_priv *priv = hw->priv; 1951 struct at76_priv *priv = hw->priv;
1952 1952
1953 at76_dbg(DBG_MAC80211, "%s(): channel %d radio %d", 1953 at76_dbg(DBG_MAC80211, "%s(): channel %d",
1954 __func__, hw->conf.channel->hw_value, 1954 __func__, hw->conf.channel->hw_value);
1955 hw->conf.radio_enabled);
1956 at76_dbg_dump(DBG_MAC80211, priv->bssid, ETH_ALEN, "bssid:"); 1955 at76_dbg_dump(DBG_MAC80211, priv->bssid, ETH_ALEN, "bssid:");
1957 1956
1958 mutex_lock(&priv->mtx); 1957 mutex_lock(&priv->mtx);
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index f84387083e73..c32e93c8c410 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -3031,13 +3031,6 @@ static int mwl8k_config_wt(struct work_struct *wt)
3031 struct mwl8k_priv *priv = hw->priv; 3031 struct mwl8k_priv *priv = hw->priv;
3032 int rc = 0; 3032 int rc = 0;
3033 3033
3034 if (!conf->radio_enabled) {
3035 mwl8k_cmd_802_11_radio_control(hw, MWL8K_RADIO_DISABLE);
3036 priv->current_channel = NULL;
3037 rc = 0;
3038 goto mwl8k_config_exit;
3039 }
3040
3041 if (mwl8k_cmd_802_11_radio_control(hw, MWL8K_RADIO_ENABLE)) { 3034 if (mwl8k_cmd_802_11_radio_control(hw, MWL8K_RADIO_ENABLE)) {
3042 rc = -EINVAL; 3035 rc = -EINVAL;
3043 goto mwl8k_config_exit; 3036 goto mwl8k_config_exit;
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index bc865206e5f1..aac84d7bd46e 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -583,7 +583,6 @@ enum ieee80211_conf_flags {
583/** 583/**
584 * enum ieee80211_conf_changed - denotes which configuration changed 584 * enum ieee80211_conf_changed - denotes which configuration changed
585 * 585 *
586 * @_IEEE80211_CONF_CHANGE_RADIO_ENABLED: DEPRECATED
587 * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed 586 * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed
588 * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed 587 * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed
589 * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed 588 * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed
@@ -593,7 +592,6 @@ enum ieee80211_conf_flags {
593 * @IEEE80211_CONF_CHANGE_IDLE: Idle flag changed 592 * @IEEE80211_CONF_CHANGE_IDLE: Idle flag changed
594 */ 593 */
595enum ieee80211_conf_changed { 594enum ieee80211_conf_changed {
596 _IEEE80211_CONF_CHANGE_RADIO_ENABLED = BIT(0),
597 IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2), 595 IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2),
598 IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3), 596 IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3),
599 IEEE80211_CONF_CHANGE_PS = BIT(4), 597 IEEE80211_CONF_CHANGE_PS = BIT(4),
@@ -603,14 +601,6 @@ enum ieee80211_conf_changed {
603 IEEE80211_CONF_CHANGE_IDLE = BIT(8), 601 IEEE80211_CONF_CHANGE_IDLE = BIT(8),
604}; 602};
605 603
606static inline __deprecated enum ieee80211_conf_changed
607__IEEE80211_CONF_CHANGE_RADIO_ENABLED(void)
608{
609 return _IEEE80211_CONF_CHANGE_RADIO_ENABLED;
610}
611#define IEEE80211_CONF_CHANGE_RADIO_ENABLED \
612 __IEEE80211_CONF_CHANGE_RADIO_ENABLED()
613
614/** 604/**
615 * struct ieee80211_conf - configuration of the device 605 * struct ieee80211_conf - configuration of the device
616 * 606 *
@@ -618,9 +608,6 @@ __IEEE80211_CONF_CHANGE_RADIO_ENABLED(void)
618 * 608 *
619 * @flags: configuration flags defined above 609 * @flags: configuration flags defined above
620 * 610 *
621 * @radio_enabled: when zero, driver is required to switch off the radio.
622 * @beacon_int: DEPRECATED, DO NOT USE
623 *
624 * @listen_interval: listen interval in units of beacon interval 611 * @listen_interval: listen interval in units of beacon interval
625 * @max_sleep_period: the maximum number of beacon intervals to sleep for 612 * @max_sleep_period: the maximum number of beacon intervals to sleep for
626 * before checking the beacon for a TIM bit (managed mode only); this 613 * before checking the beacon for a TIM bit (managed mode only); this
@@ -644,13 +631,11 @@ __IEEE80211_CONF_CHANGE_RADIO_ENABLED(void)
644 * number of transmissions not the number of retries 631 * number of transmissions not the number of retries
645 */ 632 */
646struct ieee80211_conf { 633struct ieee80211_conf {
647 int __deprecated beacon_int;
648 u32 flags; 634 u32 flags;
649 int power_level, dynamic_ps_timeout; 635 int power_level, dynamic_ps_timeout;
650 int max_sleep_period; 636 int max_sleep_period;
651 637
652 u16 listen_interval; 638 u16 listen_interval;
653 bool __deprecated radio_enabled;
654 639
655 u8 long_frame_max_tx_count, short_frame_max_tx_count; 640 u8 long_frame_max_tx_count, short_frame_max_tx_count;
656 641
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 05f923575fee..3302df96f8d4 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -241,9 +241,6 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
241 241
242 drv_bss_info_changed(local, &sdata->vif, 242 drv_bss_info_changed(local, &sdata->vif,
243 &sdata->vif.bss_conf, changed); 243 &sdata->vif.bss_conf, changed);
244
245 /* DEPRECATED */
246 local->hw.conf.beacon_int = sdata->vif.bss_conf.beacon_int;
247} 244}
248 245
249u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata) 246u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata)
@@ -687,7 +684,6 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
687 local->hw.max_rates = 1; 684 local->hw.max_rates = 1;
688 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; 685 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
689 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; 686 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
690 local->hw.conf.radio_enabled = true;
691 local->user_power_level = -1; 687 local->user_power_level = -1;
692 688
693 INIT_LIST_HEAD(&local->interfaces); 689 INIT_LIST_HEAD(&local->interfaces);