[PATCH 1/2] Do not configure bss in AP mode

Eugene Krasnikov k.eugene.e at gmail.com
Fri Jul 12 09:52:09 EDT 2013


Thanx for review. Forgot to send a pull request
https://github.com/KrasnikovEugene/wcn36xx/pull/81

2013/7/12 Olof Johansson <dev at skyshaper.net>:
> Looks good to me.
>
> --
> Olof
>
> On Fri, Jul 12, 2013 at 3:31 PM, Eugene Krasnikov <k.eugene.e at gmail.com> wrote:
>> config_bss was called after sta connects to
>> encrypted AP. That screwed AP confs.
>>
>> Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
>> ---
>>  main.c | 11 ++++++-----
>>  1 file changed, 6 insertions(+), 5 deletions(-)
>>
>> diff --git a/main.c b/main.c
>> index 3271714..85b1383 100644
>> --- a/main.c
>> +++ b/main.c
>> @@ -384,11 +384,12 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
>>                 if (IEEE80211_KEY_FLAG_PAIRWISE & key_conf->flags) {
>>                         sta_priv->is_data_encrypted = true;
>>                         /* Reconfigure bss with encrypt_type */
>> -                       wcn36xx_smd_config_bss(wcn,
>> -                                              vif,
>> -                                              sta->addr,
>> -                                              true,
>> -                                              wcn->beacon_interval);
>> +                       if (NL80211_IFTYPE_STATION == vif->type)
>> +                               wcn36xx_smd_config_bss(wcn,
>> +                                                      vif,
>> +                                                      sta->addr,
>> +                                                      true,
>> +                                                      wcn->beacon_interval);
>>
>>                         wcn36xx_smd_set_stakey(wcn,
>>                                 wcn->encrypt_type,
>> --
>> 1.7.11.3
>>
>>
>> _______________________________________________
>> wcn36xx mailing list
>> wcn36xx at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/wcn36xx



-- 
Best regards,
Eugene



More information about the wcn36xx mailing list