Merge "system/qcom: passing incorrect MAC Address to Driver"

This commit is contained in:
Linux Build Service Account
2013-03-22 03:56:05 -07:00
committed by Gerrit - the friendly Code Review server

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