[PATCH] ath10k: disable STA KICKOUT in FW

Marek Puzyniak marek.puzyniak at tieto.com
Wed Jan 8 05:40:09 EST 2014


On 2 January 2014 13:41, Yeoh Chun-Yeow <yeohchunyeow at gmail.com> wrote:
>
> On Dec 30, 2013 4:08 PM, "Marek Puzyniak" <marek.puzyniak at tieto.com> wrote:
>>
>> Currently ath10k is not using STA KICKOUT firmware functionality.
>> In order to avoid unwanted FW events this functionality should be
>> disabled when not used.
>
> What are unwanted FW events?

WMI_PEER_STA_KICKOUT_EVENT which indicates lack of activity from
associated STA for specified period of time.

>
> ----
> Chun-Yeow
Marek
>
>> Signed-off-by: Marek Puzyniak <marek.puzyniak at tieto.com>
>> ---
>>  drivers/net/wireless/ath/ath10k/mac.c | 9 +++++++++
>>  1 file changed, 9 insertions(+)
>>
>> diff --git a/drivers/net/wireless/ath/ath10k/mac.c
>> b/drivers/net/wireless/ath/ath10k/mac.c
>> index 5b45f3a..93416ab 100644
>> --- a/drivers/net/wireless/ath/ath10k/mac.c
>> +++ b/drivers/net/wireless/ath/ath10k/mac.c
>> @@ -2292,11 +2292,20 @@ static int ath10k_add_interface(struct
>> ieee80211_hw *hw,
>>         }
>>
>>         if (arvif->vdev_type == WMI_VDEV_TYPE_AP) {
>> +               u32 param_id;
>> +
>>                 ret = ath10k_peer_create(ar, arvif->vdev_id, vif->addr);
>>                 if (ret) {
>>                         ath10k_warn("Failed to create peer for AP: %d\n",
>> ret);
>>                         goto err_vdev_delete;
>>                 }
>> +
>> +               param_id = ar->wmi.pdev_param->sta_kickout_th;
>> +
>> +               /* Disable STA KICKOUT functionality in FW */
>> +               ret = ath10k_wmi_pdev_set_param(ar, param_id, 0);
>> +               if (ret)
>> +                       ath10k_warn("Failed to disable STA KICKOUT\n");
>>         }
>>
>>         if (arvif->vdev_type == WMI_VDEV_TYPE_STA) {
>> --
>> 1.8.1.2
>>
>>
>> _______________________________________________
>> ath10k mailing list
>> ath10k at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath10k



More information about the ath10k mailing list