diff options
author | Marek Puzyniak <marek.puzyniak@tieto.com> | 2013-12-30 03:07:51 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-01-10 04:43:47 -0500 |
commit | cdf074099babdda9dccae7d421bd5566d70e75e3 (patch) | |
tree | 461dca3d790f1940d71091bb1f69ac04922e57e9 | |
parent | baccfe6e86443c8b7ba7f21144eedfb100ecf816 (diff) |
ath10k: disable STA kickout in FW
Currently ath10k is not using STA KICKOUT firmware functionality.
In order to avoid unwanted WMI_PEER_STA_KICKOUT_EVENT event this functionality
should be disabled when not used.
Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 5b45f3a8ec40..2a4e7aa4611a 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -2205,7 +2205,7 @@ static int ath10k_add_interface(struct ieee80211_hw *hw, | |||
2205 | struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif); | 2205 | struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif); |
2206 | enum wmi_sta_powersave_param param; | 2206 | enum wmi_sta_powersave_param param; |
2207 | int ret = 0; | 2207 | int ret = 0; |
2208 | u32 value; | 2208 | u32 value, param_id; |
2209 | int bit; | 2209 | int bit; |
2210 | u32 vdev_param; | 2210 | u32 vdev_param; |
2211 | 2211 | ||
@@ -2297,6 +2297,13 @@ static int ath10k_add_interface(struct ieee80211_hw *hw, | |||
2297 | ath10k_warn("Failed to create peer for AP: %d\n", ret); | 2297 | ath10k_warn("Failed to create peer for AP: %d\n", ret); |
2298 | goto err_vdev_delete; | 2298 | goto err_vdev_delete; |
2299 | } | 2299 | } |
2300 | |||
2301 | param_id = ar->wmi.pdev_param->sta_kickout_th; | ||
2302 | |||
2303 | /* Disable STA KICKOUT functionality in FW */ | ||
2304 | ret = ath10k_wmi_pdev_set_param(ar, param_id, 0); | ||
2305 | if (ret) | ||
2306 | ath10k_warn("Failed to disable STA KICKOUT\n"); | ||
2300 | } | 2307 | } |
2301 | 2308 | ||
2302 | if (arvif->vdev_type == WMI_VDEV_TYPE_STA) { | 2309 | if (arvif->vdev_type == WMI_VDEV_TYPE_STA) { |