diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-01-06 16:24:00 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-01-07 17:16:39 -0500 |
commit | 685328b296acc810541d2532957912690273c64a (patch) | |
tree | 2d7455cae4bf9c8ae3525a3284b964f5dd0895da | |
parent | 349b196044d38a3bf5be2b4dd2fe28ca2f12a258 (diff) |
mac80211: remove channel_change_time
This value is no longer used by mac80211, and practically no
driver ever set it to a correct value anyway, so remove it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | drivers/net/wireless/adm8211.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/at76c50x-usb.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/carl9170/main.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/cw1200/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/p54/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/base.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wl1251/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 1 | ||||
-rw-r--r-- | drivers/staging/winbond/wbusb.c | 1 | ||||
-rw-r--r-- | include/net/mac80211.h | 3 |
17 files changed, 0 insertions, 31 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index cfce83e1f273..54afde0463dd 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c | |||
@@ -1866,7 +1866,6 @@ static int adm8211_probe(struct pci_dev *pdev, | |||
1866 | dev->flags = IEEE80211_HW_SIGNAL_UNSPEC; | 1866 | dev->flags = IEEE80211_HW_SIGNAL_UNSPEC; |
1867 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); | 1867 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); |
1868 | 1868 | ||
1869 | dev->channel_change_time = 1000; | ||
1870 | dev->max_signal = 100; /* FIXME: find better value */ | 1869 | dev->max_signal = 100; /* FIXME: find better value */ |
1871 | 1870 | ||
1872 | dev->queues = 1; /* ADM8211C supports more, maybe ADM8211B too */ | 1871 | dev->queues = 1; /* ADM8211C supports more, maybe ADM8211B too */ |
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index 34c8a33cac06..8cfd1d6841b1 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
@@ -2112,7 +2112,6 @@ static struct at76_priv *at76_alloc_new_device(struct usb_device *udev) | |||
2112 | priv->pm_period = 0; | 2112 | priv->pm_period = 0; |
2113 | 2113 | ||
2114 | /* unit us */ | 2114 | /* unit us */ |
2115 | priv->hw->channel_change_time = 100000; | ||
2116 | 2115 | ||
2117 | return priv; | 2116 | return priv; |
2118 | } | 2117 | } |
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index ce9ef3499ecb..747c8bd74980 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -3704,7 +3704,6 @@ int ath10k_mac_register(struct ath10k *ar) | |||
3704 | 3704 | ||
3705 | ar->hw->vif_data_size = sizeof(struct ath10k_vif); | 3705 | ar->hw->vif_data_size = sizeof(struct ath10k_vif); |
3706 | 3706 | ||
3707 | ar->hw->channel_change_time = 5000; | ||
3708 | ar->hw->max_listen_interval = ATH10K_MAX_HW_LISTEN_INTERVAL; | 3707 | ar->hw->max_listen_interval = ATH10K_MAX_HW_LISTEN_INTERVAL; |
3709 | 3708 | ||
3710 | ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; | 3709 | ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; |
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 69f58b073e85..fe6878b4ecd0 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -2549,7 +2549,6 @@ ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops) | |||
2549 | hw->wiphy->available_antennas_rx = 0x3; | 2549 | hw->wiphy->available_antennas_rx = 0x3; |
2550 | 2550 | ||
2551 | hw->extra_tx_headroom = 2; | 2551 | hw->extra_tx_headroom = 2; |
2552 | hw->channel_change_time = 5000; | ||
2553 | 2552 | ||
2554 | /* | 2553 | /* |
2555 | * Mark the device as detached to avoid processing | 2554 | * Mark the device as detached to avoid processing |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index c3676bf1d6c4..bcdb50af56d3 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c | |||
@@ -748,7 +748,6 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv, | |||
748 | WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; | 748 | WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; |
749 | 749 | ||
750 | hw->queues = 4; | 750 | hw->queues = 4; |
751 | hw->channel_change_time = 5000; | ||
752 | hw->max_listen_interval = 1; | 751 | hw->max_listen_interval = 1; |
753 | 752 | ||
754 | hw->vif_data_size = sizeof(struct ath9k_htc_vif); | 753 | hw->vif_data_size = sizeof(struct ath9k_htc_vif); |
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 609b7e13f3f0..d8787692c9d4 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -950,7 +950,6 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) | |||
950 | 950 | ||
951 | hw->queues = 4; | 951 | hw->queues = 4; |
952 | hw->max_rates = 4; | 952 | hw->max_rates = 4; |
953 | hw->channel_change_time = 5000; | ||
954 | hw->max_listen_interval = 1; | 953 | hw->max_listen_interval = 1; |
955 | hw->max_rate_tries = 10; | 954 | hw->max_rate_tries = 10; |
956 | hw->sta_data_size = sizeof(struct ath_node); | 955 | hw->sta_data_size = sizeof(struct ath_node); |
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index 349fa22a921a..5ab68fddf7ba 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -1968,18 +1968,6 @@ static int carl9170_parse_eeprom(struct ar9170 *ar) | |||
1968 | return -ENOMEM; | 1968 | return -ENOMEM; |
1969 | ar->num_channels = chans; | 1969 | ar->num_channels = chans; |
1970 | 1970 | ||
1971 | /* | ||
1972 | * I measured this, a bandswitch takes roughly | ||
1973 | * 135 ms and a frequency switch about 80. | ||
1974 | * | ||
1975 | * FIXME: measure these values again once EEPROM settings | ||
1976 | * are used, that will influence them! | ||
1977 | */ | ||
1978 | if (bands == 2) | ||
1979 | ar->hw->channel_change_time = 135 * 1000; | ||
1980 | else | ||
1981 | ar->hw->channel_change_time = 80 * 1000; | ||
1982 | |||
1983 | regulatory->current_rd = le16_to_cpu(ar->eeprom.reg_domain[0]); | 1971 | regulatory->current_rd = le16_to_cpu(ar->eeprom.reg_domain[0]); |
1984 | 1972 | ||
1985 | /* second part of wiphy init */ | 1973 | /* second part of wiphy init */ |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c index e71ce8c842a2..925034b80e9c 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | |||
@@ -1071,7 +1071,6 @@ static int ieee_hw_init(struct ieee80211_hw *hw) | |||
1071 | hw->max_rates = 2; /* Primary rate and 1 fallback rate */ | 1071 | hw->max_rates = 2; /* Primary rate and 1 fallback rate */ |
1072 | 1072 | ||
1073 | /* channel change time is dependent on chip and band */ | 1073 | /* channel change time is dependent on chip and band */ |
1074 | hw->channel_change_time = 7 * 1000; | ||
1075 | hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | | 1074 | hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | |
1076 | BIT(NL80211_IFTYPE_AP) | | 1075 | BIT(NL80211_IFTYPE_AP) | |
1077 | BIT(NL80211_IFTYPE_ADHOC); | 1076 | BIT(NL80211_IFTYPE_ADHOC); |
diff --git a/drivers/net/wireless/cw1200/main.c b/drivers/net/wireless/cw1200/main.c index 090f01577dd2..1be819dfac63 100644 --- a/drivers/net/wireless/cw1200/main.c +++ b/drivers/net/wireless/cw1200/main.c | |||
@@ -302,7 +302,6 @@ static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr, | |||
302 | 302 | ||
303 | hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD; | 303 | hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD; |
304 | 304 | ||
305 | hw->channel_change_time = 1000; /* TODO: find actual value */ | ||
306 | hw->queues = 4; | 305 | hw->queues = 4; |
307 | 306 | ||
308 | priv->rts_threshold = -1; | 307 | priv->rts_threshold = -1; |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 9e7d7df03a47..59c65c37bccd 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -2341,7 +2341,6 @@ static int __init init_mac80211_hwsim(void) | |||
2341 | INIT_DELAYED_WORK(&data->roc_done, hw_roc_done); | 2341 | INIT_DELAYED_WORK(&data->roc_done, hw_roc_done); |
2342 | INIT_DELAYED_WORK(&data->hw_scan, hw_scan_work); | 2342 | INIT_DELAYED_WORK(&data->hw_scan, hw_scan_work); |
2343 | 2343 | ||
2344 | hw->channel_change_time = 1; | ||
2345 | hw->queues = 5; | 2344 | hw->queues = 5; |
2346 | hw->offchannel_tx_hw_queue = 4; | 2345 | hw->offchannel_tx_hw_queue = 4; |
2347 | hw->wiphy->interface_modes = | 2346 | hw->wiphy->interface_modes = |
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index b953ad621e0b..721c738a7dd8 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -5893,8 +5893,6 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv) | |||
5893 | 5893 | ||
5894 | hw->extra_tx_headroom -= priv->ap_fw ? REDUCED_TX_HEADROOM : 0; | 5894 | hw->extra_tx_headroom -= priv->ap_fw ? REDUCED_TX_HEADROOM : 0; |
5895 | 5895 | ||
5896 | hw->channel_change_time = 10; | ||
5897 | |||
5898 | hw->queues = MWL8K_TX_WMM_QUEUES; | 5896 | hw->queues = MWL8K_TX_WMM_QUEUES; |
5899 | 5897 | ||
5900 | /* Set rssi values to dBm */ | 5898 | /* Set rssi values to dBm */ |
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 067e6f2fd050..b61fefad2205 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
@@ -757,7 +757,6 @@ struct ieee80211_hw *p54_init_common(size_t priv_data_len) | |||
757 | BIT(NL80211_IFTYPE_AP) | | 757 | BIT(NL80211_IFTYPE_AP) | |
758 | BIT(NL80211_IFTYPE_MESH_POINT); | 758 | BIT(NL80211_IFTYPE_MESH_POINT); |
759 | 759 | ||
760 | dev->channel_change_time = 1000; /* TODO: find actual value */ | ||
761 | priv->beacon_req_id = cpu_to_le32(0); | 760 | priv->beacon_req_id = cpu_to_le32(0); |
762 | priv->tx_stats[P54_QUEUE_BEACON].limit = 1; | 761 | priv->tx_stats[P54_QUEUE_BEACON].limit = 1; |
763 | priv->tx_stats[P54_QUEUE_FWSCAN].limit = 1; | 762 | priv->tx_stats[P54_QUEUE_FWSCAN].limit = 1; |
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c index fcf9b621918c..2cfb6d4514cd 100644 --- a/drivers/net/wireless/rtlwifi/base.c +++ b/drivers/net/wireless/rtlwifi/base.c | |||
@@ -353,7 +353,6 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw) | |||
353 | 353 | ||
354 | /* TODO: Correct this value for our hw */ | 354 | /* TODO: Correct this value for our hw */ |
355 | /* TODO: define these hard code value */ | 355 | /* TODO: define these hard code value */ |
356 | hw->channel_change_time = 100; | ||
357 | hw->max_listen_interval = 10; | 356 | hw->max_listen_interval = 10; |
358 | hw->max_rate_tries = 4; | 357 | hw->max_rate_tries = 4; |
359 | /* hw->max_rates = 1; */ | 358 | /* hw->max_rates = 1; */ |
diff --git a/drivers/net/wireless/ti/wl1251/main.c b/drivers/net/wireless/ti/wl1251/main.c index 3291ffa95273..ee4ec4e5660d 100644 --- a/drivers/net/wireless/ti/wl1251/main.c +++ b/drivers/net/wireless/ti/wl1251/main.c | |||
@@ -1347,7 +1347,6 @@ int wl1251_init_ieee80211(struct wl1251 *wl) | |||
1347 | 1347 | ||
1348 | /* unit us */ | 1348 | /* unit us */ |
1349 | /* FIXME: find a proper value */ | 1349 | /* FIXME: find a proper value */ |
1350 | wl->hw->channel_change_time = 10000; | ||
1351 | 1350 | ||
1352 | wl->hw->flags = IEEE80211_HW_SIGNAL_DBM | | 1351 | wl->hw->flags = IEEE80211_HW_SIGNAL_DBM | |
1353 | IEEE80211_HW_SUPPORTS_PS | | 1352 | IEEE80211_HW_SUPPORTS_PS | |
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index e9da47cead58..18a009e593c7 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c | |||
@@ -5710,7 +5710,6 @@ static int wl1271_init_ieee80211(struct wl1271 *wl) | |||
5710 | 5710 | ||
5711 | /* unit us */ | 5711 | /* unit us */ |
5712 | /* FIXME: find a proper value */ | 5712 | /* FIXME: find a proper value */ |
5713 | wl->hw->channel_change_time = 10000; | ||
5714 | wl->hw->max_listen_interval = wl->conf.conn.max_listen_interval; | 5713 | wl->hw->max_listen_interval = wl->conf.conn.max_listen_interval; |
5715 | 5714 | ||
5716 | wl->hw->flags = IEEE80211_HW_SIGNAL_DBM | | 5715 | wl->hw->flags = IEEE80211_HW_SIGNAL_DBM | |
diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c index 07891a3e316e..0d29624416c3 100644 --- a/drivers/staging/winbond/wbusb.c +++ b/drivers/staging/winbond/wbusb.c | |||
@@ -788,7 +788,6 @@ static int wb35_probe(struct usb_interface *intf, | |||
788 | dev->flags = IEEE80211_HW_SIGNAL_UNSPEC; | 788 | dev->flags = IEEE80211_HW_SIGNAL_UNSPEC; |
789 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); | 789 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); |
790 | 790 | ||
791 | dev->channel_change_time = 1000; | ||
792 | dev->max_signal = 100; | 791 | dev->max_signal = 100; |
793 | dev->queues = 1; | 792 | dev->queues = 1; |
794 | 793 | ||
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index f838af816b56..25b18877747f 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1616,8 +1616,6 @@ enum ieee80211_hw_flags { | |||
1616 | * @extra_beacon_tailroom: tailroom to reserve in each beacon tx skb. | 1616 | * @extra_beacon_tailroom: tailroom to reserve in each beacon tx skb. |
1617 | * Can be used by drivers to add extra IEs. | 1617 | * Can be used by drivers to add extra IEs. |
1618 | * | 1618 | * |
1619 | * @channel_change_time: time (in microseconds) it takes to change channels. | ||
1620 | * | ||
1621 | * @max_signal: Maximum value for signal (rssi) in RX information, used | 1619 | * @max_signal: Maximum value for signal (rssi) in RX information, used |
1622 | * only when @IEEE80211_HW_SIGNAL_UNSPEC or @IEEE80211_HW_SIGNAL_DB | 1620 | * only when @IEEE80211_HW_SIGNAL_UNSPEC or @IEEE80211_HW_SIGNAL_DB |
1623 | * | 1621 | * |
@@ -1699,7 +1697,6 @@ struct ieee80211_hw { | |||
1699 | u32 flags; | 1697 | u32 flags; |
1700 | unsigned int extra_tx_headroom; | 1698 | unsigned int extra_tx_headroom; |
1701 | unsigned int extra_beacon_tailroom; | 1699 | unsigned int extra_beacon_tailroom; |
1702 | int channel_change_time; | ||
1703 | int vif_data_size; | 1700 | int vif_data_size; |
1704 | int sta_data_size; | 1701 | int sta_data_size; |
1705 | int chanctx_data_size; | 1702 | int chanctx_data_size; |