[PATCH 1/2] Do not configure bss in AP mode
Eugene Krasnikov
k.eugene.e at gmail.com
Fri Jul 12 09:31:05 EDT 2013
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
More information about the wcn36xx
mailing list