]> Pileus Git - ~andy/linux/commitdiff
mac80211: remove channel_change_time
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jan 2014 21:24:00 +0000 (22:24 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 7 Jan 2014 22:16:39 +0000 (23:16 +0100)
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>
17 files changed:
drivers/net/wireless/adm8211.c
drivers/net/wireless/at76c50x-usb.c
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/carl9170/main.c
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
drivers/net/wireless/cw1200/main.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mwl8k.c
drivers/net/wireless/p54/main.c
drivers/net/wireless/rtlwifi/base.c
drivers/net/wireless/ti/wl1251/main.c
drivers/net/wireless/ti/wlcore/main.c
drivers/staging/winbond/wbusb.c
include/net/mac80211.h

index cfce83e1f273f0259ee07d072fd8c8f59df8e99a..54afde0463dd94aca3d929618bc2af80221019c6 100644 (file)
@@ -1866,7 +1866,6 @@ static int adm8211_probe(struct pci_dev *pdev,
        dev->flags = IEEE80211_HW_SIGNAL_UNSPEC;
        dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
 
-       dev->channel_change_time = 1000;
        dev->max_signal = 100;    /* FIXME: find better value */
 
        dev->queues = 1; /* ADM8211C supports more, maybe ADM8211B too */
index 34c8a33cac06f67dfb5e4dc718767d6457449d86..8cfd1d6841b166e0c5a6f92987a7618c501b29ad 100644 (file)
@@ -2112,7 +2112,6 @@ static struct at76_priv *at76_alloc_new_device(struct usb_device *udev)
        priv->pm_period = 0;
 
        /* unit us */
-       priv->hw->channel_change_time = 100000;
 
        return priv;
 }
index ce9ef3499ecb8a90fecc87071437bb7310e17e89..747c8bd749802336d46f70f884c71f1bd4b46685 100644 (file)
@@ -3704,7 +3704,6 @@ int ath10k_mac_register(struct ath10k *ar)
 
        ar->hw->vif_data_size = sizeof(struct ath10k_vif);
 
-       ar->hw->channel_change_time = 5000;
        ar->hw->max_listen_interval = ATH10K_MAX_HW_LISTEN_INTERVAL;
 
        ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
index 69f58b073e85ff1a183ec1f06e803ff9da00806c..fe6878b4ecd0939bd59287e18755eb88440e85d4 100644 (file)
@@ -2549,7 +2549,6 @@ ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops)
        hw->wiphy->available_antennas_rx = 0x3;
 
        hw->extra_tx_headroom = 2;
-       hw->channel_change_time = 5000;
 
        /*
         * Mark the device as detached to avoid processing
index c3676bf1d6c45ab92d8a161d18ad5f3f0c586d18..bcdb50af56d3dd93edade4d06fc36bcf4e8ca6fa 100644 (file)
@@ -748,7 +748,6 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
                            WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
 
        hw->queues = 4;
-       hw->channel_change_time = 5000;
        hw->max_listen_interval = 1;
 
        hw->vif_data_size = sizeof(struct ath9k_htc_vif);
index 609b7e13f3f0afaf3c3f86cdb0589c302a5e98d0..d8787692c9d48aa15fd9351ea68fc10e93ba6735 100644 (file)
@@ -950,7 +950,6 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
 
        hw->queues = 4;
        hw->max_rates = 4;
-       hw->channel_change_time = 5000;
        hw->max_listen_interval = 1;
        hw->max_rate_tries = 10;
        hw->sta_data_size = sizeof(struct ath_node);
index 349fa22a921adc48183bffcc24befb3741f1f392..5ab68fddf7ba77d936429b435e6d2ca83c92d89c 100644 (file)
@@ -1968,18 +1968,6 @@ static int carl9170_parse_eeprom(struct ar9170 *ar)
                return -ENOMEM;
        ar->num_channels = chans;
 
-       /*
-        * I measured this, a bandswitch takes roughly
-        * 135 ms and a frequency switch about 80.
-        *
-        * FIXME: measure these values again once EEPROM settings
-        *        are used, that will influence them!
-        */
-       if (bands == 2)
-               ar->hw->channel_change_time = 135 * 1000;
-       else
-               ar->hw->channel_change_time = 80 * 1000;
-
        regulatory->current_rd = le16_to_cpu(ar->eeprom.reg_domain[0]);
 
        /* second part of wiphy init */
index e71ce8c842a22f3a337cf1bbf4a08dc0e3e52b70..925034b80e9cf68f14c8af4fca29b8aafdeda433 100644 (file)
@@ -1071,7 +1071,6 @@ static int ieee_hw_init(struct ieee80211_hw *hw)
        hw->max_rates = 2;      /* Primary rate and 1 fallback rate */
 
        /* channel change time is dependent on chip and band  */
-       hw->channel_change_time = 7 * 1000;
        hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
                                     BIT(NL80211_IFTYPE_AP) |
                                     BIT(NL80211_IFTYPE_ADHOC);
index 090f01577dd25314651156c551a8f48299f9a852..1be819dfac638fdbf2d71f2386ab11584e152441 100644 (file)
@@ -302,7 +302,6 @@ static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,
 
        hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
 
-       hw->channel_change_time = 1000; /* TODO: find actual value */
        hw->queues = 4;
 
        priv->rts_threshold = -1;
index 9e7d7df03a47fe38d60af91fbff233c74afdcc69..59c65c37bccdd47bac970b72183ecf4b3b3b1e97 100644 (file)
@@ -2341,7 +2341,6 @@ static int __init init_mac80211_hwsim(void)
                INIT_DELAYED_WORK(&data->roc_done, hw_roc_done);
                INIT_DELAYED_WORK(&data->hw_scan, hw_scan_work);
 
-               hw->channel_change_time = 1;
                hw->queues = 5;
                hw->offchannel_tx_hw_queue = 4;
                hw->wiphy->interface_modes =
index b953ad621e0b90ef23e9fbe009bc0c4cd5f66876..721c738a7dd84e93dd523f479020cab8a09b9d2e 100644 (file)
@@ -5893,8 +5893,6 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv)
 
        hw->extra_tx_headroom -= priv->ap_fw ? REDUCED_TX_HEADROOM : 0;
 
-       hw->channel_change_time = 10;
-
        hw->queues = MWL8K_TX_WMM_QUEUES;
 
        /* Set rssi values to dBm */
index 067e6f2fd050fcad0ddc4eb00565ba3324397894..b61fefad22052ac6f4e7c9c46fa8bd7d4bc83c16 100644 (file)
@@ -757,7 +757,6 @@ struct ieee80211_hw *p54_init_common(size_t priv_data_len)
                                      BIT(NL80211_IFTYPE_AP) |
                                      BIT(NL80211_IFTYPE_MESH_POINT);
 
-       dev->channel_change_time = 1000;        /* TODO: find actual value */
        priv->beacon_req_id = cpu_to_le32(0);
        priv->tx_stats[P54_QUEUE_BEACON].limit = 1;
        priv->tx_stats[P54_QUEUE_FWSCAN].limit = 1;
index fcf9b621918c07ba2ab42e38622af9b56ac66682..2cfb6d4514cd22a6b9d8053b35d00fcef2b428ac 100644 (file)
@@ -353,7 +353,6 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw)
 
        /* TODO: Correct this value for our hw */
        /* TODO: define these hard code value */
-       hw->channel_change_time = 100;
        hw->max_listen_interval = 10;
        hw->max_rate_tries = 4;
        /* hw->max_rates = 1; */
index 3291ffa952736ac9f6ac2784c758db39b498d37c..ee4ec4e5660dc9f494313b449f8fe5941e0e8d80 100644 (file)
@@ -1347,7 +1347,6 @@ int wl1251_init_ieee80211(struct wl1251 *wl)
 
        /* unit us */
        /* FIXME: find a proper value */
-       wl->hw->channel_change_time = 10000;
 
        wl->hw->flags = IEEE80211_HW_SIGNAL_DBM |
                IEEE80211_HW_SUPPORTS_PS |
index e9da47cead587704c7060ebd8ab754c1aa7da16b..18a009e593c73bcbd2fe75ab43ed0f6b0306a26c 100644 (file)
@@ -5710,7 +5710,6 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
 
        /* unit us */
        /* FIXME: find a proper value */
-       wl->hw->channel_change_time = 10000;
        wl->hw->max_listen_interval = wl->conf.conn.max_listen_interval;
 
        wl->hw->flags = IEEE80211_HW_SIGNAL_DBM |
index 07891a3e316e6b9e50d0a744f4e7d6a6b854bb40..0d29624416c335887a08da772f9ce2c8b63c85bd 100644 (file)
@@ -788,7 +788,6 @@ static int wb35_probe(struct usb_interface *intf,
        dev->flags = IEEE80211_HW_SIGNAL_UNSPEC;
        dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
 
-       dev->channel_change_time = 1000;
        dev->max_signal = 100;
        dev->queues = 1;
 
index f838af816b56cd26909752b650178450c9e47eef..25b18877747f3ef27041d52320cdfde79400c697 100644 (file)
@@ -1616,8 +1616,6 @@ enum ieee80211_hw_flags {
  * @extra_beacon_tailroom: tailroom to reserve in each beacon tx skb.
  *     Can be used by drivers to add extra IEs.
  *
- * @channel_change_time: time (in microseconds) it takes to change channels.
- *
  * @max_signal: Maximum value for signal (rssi) in RX information, used
  *     only when @IEEE80211_HW_SIGNAL_UNSPEC or @IEEE80211_HW_SIGNAL_DB
  *
@@ -1699,7 +1697,6 @@ struct ieee80211_hw {
        u32 flags;
        unsigned int extra_tx_headroom;
        unsigned int extra_beacon_tailroom;
-       int channel_change_time;
        int vif_data_size;
        int sta_data_size;
        int chanctx_data_size;