[PATCH 1/3] Add AP mode configuration
Eugene Krasnikov
k.eugene.e at gmail.com
Mon Jun 10 09:27:26 EDT 2013
For AP mode set correct type in smd_config_sta
and call smd_config_sta from sta_add ops.
Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
main.c | 1 +
smd.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/main.c b/main.c
index 8cf6b45..17ac7cc 100644
--- a/main.c
+++ b/main.c
@@ -446,6 +446,7 @@ 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_AP ||
vif->type == NL80211_IFTYPE_MESH_POINT)
wcn36xx_smd_config_sta(wcn, wcn->addresses[0].addr,
sta->addr);
diff --git a/smd.c b/smd.c
index fd6872e..a730ee4 100644
--- a/smd.c
+++ b/smd.c
@@ -493,6 +493,7 @@ int wcn36xx_smd_config_sta(struct wcn36xx *wcn, const u8 *bssid,
sta->aid = wcn->aid;
if (wcn->iftype == NL80211_IFTYPE_ADHOC ||
+ wcn->iftype == NL80211_IFTYPE_AP ||
wcn->iftype == NL80211_IFTYPE_MESH_POINT)
sta->type = 1;
else
--
1.7.11.3
More information about the wcn36xx
mailing list