MT6620: modify the cfg80211 for support AP mode.
authorxbw <xbw@rock-chips.com>
Thu, 23 Aug 2012 08:38:27 +0000 (16:38 +0800)
committerxbw <xbw@rock-chips.com>
Thu, 23 Aug 2012 08:38:27 +0000 (16:38 +0800)
net/wireless/nl80211.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4e84e22..743ce8c
@@ -2234,9 +2234,20 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
        }
        nla_nest_end(msg, sinfoattr);
 
+#if defined(CONFIG_MT6620)
+    /*
+    **patch the cfg80211 for support AP mode need STA carry the assoc request ie. 
+    **Added by xbw, Rockchip Inc.
+    */
+    if (sinfo->assoc_req_ies) {
+        NLA_PUT(msg, NL80211_ATTR_IE, sinfo->assoc_req_ies_len,
+                sinfo->assoc_req_ies);
+    }
+#else
        if (sinfo->filled & STATION_INFO_ASSOC_REQ_IES)
                NLA_PUT(msg, NL80211_ATTR_IE, sinfo->assoc_req_ies_len,
                        sinfo->assoc_req_ies);
+#endif
 
        return genlmsg_end(msg, hdr);