Merge "system/qcom: passing incorrect MAC Address to Driver"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
62ff31e514
@@ -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__);
|
||||
|
||||
Reference in New Issue
Block a user