diff options
author | Subhani Shaik <subhanis@codeaurora.org> | 2015-05-20 20:53:58 +0530 |
---|---|---|
committer | Subhani Shaik <subhanis@codeaurora.org> | 2016-01-25 09:57:47 -0800 |
commit | 13948be72956fa7836412203f00598f8dfa43902 (patch) | |
tree | b5b36c75dad3cbc8f750f9b394efb19514377d59 /qcwcn/wpa_supplicant_8_lib | |
parent | 550f66627bbde962c00690cef90a22e464b24c42 (diff) | |
download | wlan-13948be72956fa7836412203f00598f8dfa43902.tar.gz |
wifi:Stub out support for SET_AP_WPS_P2P_IE command
The supplicant is sending SET_AP_WPS_P2P_IE driver command
which is not handled by driver. This is an API that is directly
called by Android extensions to the wpa_supplicant. As the
SET_AP_WPS_P2P_IE command is not handled, the handler function
for this command is removed in wpa_supplicant_8_lib.
Change-Id: Ia54f924b4340ccd243716b1af23d978a92823eb2
Diffstat (limited to 'qcwcn/wpa_supplicant_8_lib')
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index 02ac158..ce5c700 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -169,48 +169,6 @@ 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 ? - cmd_arr[i].src : NULL; - 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_DEBUG,"%s: Out of space for buf", - __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; } |