[PATCH 1/3] Set proper sta.type in config_sta

Eugene Krasnikov k.eugene.e at gmail.com
Fri Jun 7 08:54:13 EDT 2013


For AP mode set sta.type to 1

Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
 smd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/smd.c b/smd.c
index c67a057..72744f1 100644
--- a/smd.c
+++ b/smd.c
@@ -493,7 +493,8 @@ 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_MESH_POINT)
+	    wcn->iftype == NL80211_IFTYPE_MESH_POINT ||
+	    wcn->iftype == NL80211_IFTYPE_AP)
 		sta->type = 1;
 	else
 		sta->type = 0;
-- 
1.7.11.3




More information about the wcn36xx mailing list