[PATCH 3/3] Fix connection to AP mode
Eugene Krasnikov
k.eugene.e at gmail.com
Fri Jun 7 08:54:15 EDT 2013
Set correct AID in config_sta and set stakey.
Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
index f382f4f..543df17 100644
--- a/main.c
+++ b/main.c
@@ -470,9 +470,12 @@ static int wcn36xx_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
vif, sta->addr);
if (vif->type == NL80211_IFTYPE_ADHOC ||
- vif->type == NL80211_IFTYPE_MESH_POINT)
+ vif->type == NL80211_IFTYPE_MESH_POINT ||
+ vif->type == NL80211_IFTYPE_AP) {
wcn36xx_smd_config_sta(wcn, wcn->addresses[0].addr,
sta->addr);
+ wcn36xx_smd_set_stakey(wcn, 0, 0, 0, NULL);
+ }
return 0;
}
--
1.7.11.3
More information about the wcn36xx
mailing list