net: wireless: bcmdhd: update bcm4358 FW (7.112.201.3) am: 38cfc377c2 am: 0c97e9a22b
Insun Song [Wed, 8 Feb 2017 20:21:47 +0000 (20:21 +0000)]
am: 7d30dd112c

Change-Id: I8aea136dbb7127f28535732f5e56f8cdb43bfd38

bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c

index f9dbb95..5d24799 100644 (file)
@@ -168,48 +168,5 @@ int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon,
                                 const struct wpabuf *proberesp,
                                 const struct wpabuf *assocresp)
 {
-       char *buf;
-       const struct wpabuf *ap_wps_p2p_ie = NULL;
-
-       char *_cmd = "SET_AP_WPS_P2P_IE";
-       char *pbuf;
-       int ret = 0;
-       int i, buf_len;
-       struct cmd_desc {
-               int cmd;
-               const struct wpabuf *src;
-       } cmd_arr[] = {
-               {0x1, beacon},
-               {0x2, proberesp},
-               {0x4, assocresp},
-               {-1, NULL}
-       };
-
-       wpa_printf(MSG_DEBUG, "%s: Entry", __func__);
-       for (i = 0; cmd_arr[i].cmd != -1; i++) {
-               ap_wps_p2p_ie = cmd_arr[i].src;
-               if (ap_wps_p2p_ie) {
-                       buf_len = strlen(_cmd) + 3 + wpabuf_len(ap_wps_p2p_ie);
-                       buf = os_zalloc(buf_len);
-                       if (NULL == buf) {
-                               wpa_printf(MSG_ERROR, "%s: Out of memory",
-                                          __func__);
-                               ret = -1;
-                               break;
-                       }
-               } else {
-                       continue;
-               }
-               pbuf = buf;
-               pbuf += snprintf(pbuf, buf_len - wpabuf_len(ap_wps_p2p_ie),
-                                "%s %d",_cmd, cmd_arr[i].cmd);
-               *pbuf++ = '\0';
-               os_memcpy(pbuf, wpabuf_head(ap_wps_p2p_ie), wpabuf_len(ap_wps_p2p_ie));
-               ret = wpa_driver_nl80211_driver_cmd(priv, buf, buf, buf_len);
-               os_free(buf);
-               if (ret < 0)
-                       break;
-       }
-
-       return ret;
+        return 0;
 }