From 81a8a73878adee36ea672c4872de1a002ee9c2e6 Mon Sep 17 00:00:00 2001 From: Deepthi Gowri Date: Tue, 26 Feb 2013 09:06:54 +0530 Subject: [PATCH] system/qcom: passing incorrect MAC Address to Driver Passing MAC address of STA with which SAP should to disassociate in data pointer of ioctl was not getting used by the driver.Current implementation of ioctl in driver expects address to be present in extra. Hence changes made in SDK to be compliant with the expectation of the wireless extensions framework. CRs-fixed: 455872 Change-Id: I76d23f159afdc8b05c4db1be2d2f2134e14eaed6 --- softap/sdk/qsap_api.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/softap/sdk/qsap_api.c b/softap/sdk/qsap_api.c index 4ca5db7..23dccf6 100755 --- a/softap/sdk/qsap_api.c +++ b/softap/sdk/qsap_api.c @@ -2241,17 +2241,13 @@ void qsap_disassociate_sta(s8 *pVal, s8 *presp, u32 *plen) } strncpy(wrq.ifr_name, pif, sizeof(wrq.ifr_name)); - - if(TRUE != qsap_get_mac_in_bytes(pVal, pbuf)) { + + if (TRUE != qsap_get_mac_in_bytes(pVal, (char *) &wrq.u)) { ALOGE("%s: Invalid input \n", __func__); close(sock); - goto end; + goto end; } - wrq.u.data.length = MAC_ADDR_LEN_INT; - wrq.u.data.pointer = (void *)pbuf; - wrq.u.data.flags = 0; - ret = ioctl(sock, QCSAP_IOCTL_DISASSOC_STA, &wrq); if(ret < 0) { ALOGE("%s: ioctl failure \n", __func__);