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
This commit is contained in:
Deepthi Gowri
2013-02-26 09:06:54 +05:30
parent d48aa31d6c
commit 81a8a73878

View File

@@ -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__);