diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 994fff1ff519..92d5a6c5a225 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -314,6 +314,10 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv, | |||
314 | mod_timer(&priv->tx.cleanup_timer, | 314 | mod_timer(&priv->tx.cleanup_timer, |
315 | jiffies + msecs_to_jiffies(ATH9K_HTC_TX_CLEANUP_INTERVAL)); | 315 | jiffies + msecs_to_jiffies(ATH9K_HTC_TX_CLEANUP_INTERVAL)); |
316 | 316 | ||
317 | /* perform spectral scan if requested. */ | ||
318 | if (test_bit(ATH_OP_SCANNING, &common->op_flags) && | ||
319 | priv->spec_priv.spectral_mode == SPECTRAL_CHANSCAN) | ||
320 | ath9k_cmn_spectral_scan_trigger(common, &priv->spec_priv); | ||
317 | err: | 321 | err: |
318 | ath9k_htc_ps_restore(priv); | 322 | ath9k_htc_ps_restore(priv); |
319 | return ret; | 323 | return ret; |
@@ -1443,7 +1447,7 @@ static int ath9k_htc_set_key(struct ieee80211_hw *hw, | |||
1443 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; | 1447 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; |
1444 | if (key->cipher == WLAN_CIPHER_SUITE_TKIP) | 1448 | if (key->cipher == WLAN_CIPHER_SUITE_TKIP) |
1445 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; | 1449 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; |
1446 | if (priv->ah->sw_mgmt_crypto && | 1450 | if (priv->ah->sw_mgmt_crypto_tx && |
1447 | key->cipher == WLAN_CIPHER_SUITE_CCMP) | 1451 | key->cipher == WLAN_CIPHER_SUITE_CCMP) |
1448 | key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; | 1452 | key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; |
1449 | ret = 0; | 1453 | ret = 0; |
@@ -1687,7 +1691,9 @@ static int ath9k_htc_ampdu_action(struct ieee80211_hw *hw, | |||
1687 | return ret; | 1691 | return ret; |
1688 | } | 1692 | } |
1689 | 1693 | ||
1690 | static void ath9k_htc_sw_scan_start(struct ieee80211_hw *hw) | 1694 | static void ath9k_htc_sw_scan_start(struct ieee80211_hw *hw, |
1695 | struct ieee80211_vif *vif, | ||
1696 | const u8 *mac_addr) | ||
1691 | { | 1697 | { |
1692 | struct ath9k_htc_priv *priv = hw->priv; | 1698 | struct ath9k_htc_priv *priv = hw->priv; |
1693 | struct ath_common *common = ath9k_hw_common(priv->ah); | 1699 | struct ath_common *common = ath9k_hw_common(priv->ah); |
@@ -1701,7 +1707,8 @@ static void ath9k_htc_sw_scan_start(struct ieee80211_hw *hw) | |||
1701 | mutex_unlock(&priv->mutex); | 1707 | mutex_unlock(&priv->mutex); |
1702 | } | 1708 | } |
1703 | 1709 | ||
1704 | static void ath9k_htc_sw_scan_complete(struct ieee80211_hw *hw) | 1710 | static void ath9k_htc_sw_scan_complete(struct ieee80211_hw *hw, |
1711 | struct ieee80211_vif *vif) | ||
1705 | { | 1712 | { |
1706 | struct ath9k_htc_priv *priv = hw->priv; | 1713 | struct ath9k_htc_priv *priv = hw->priv; |
1707 | struct ath_common *common = ath9k_hw_common(priv->ah); | 1714 | struct ath_common *common = ath9k_hw_common(priv->ah); |