forked from rubenslte/android_kernel_samsung_msm8226
wlan: Fix null mac address check in WDA
Driver failed to join AP with specific BSSID(eg. 00:00:00:00:00:03). The reason is WDA_IS_NULL_MAC_ADDRESS only checks the first 4 bytes of mac address, due to which AP's BSSID failed the check, hence WDA returned the join failure. Fix WDA_IS_NULL_MAC_ADDRESS to check all 6 bytes of mac address. Change-Id: Ifda6d6ada80a5197e56893e30061f48e418ba041 CRs-Fixed: 1029543
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
96b4148a75
commit
3fa1853ed5
@@ -131,7 +131,7 @@
|
|||||||
#define WDA_WAIT_MSEC_TILL_RING_EMPTY 10 /* 10 msec wait per cycle */
|
#define WDA_WAIT_MSEC_TILL_RING_EMPTY 10 /* 10 msec wait per cycle */
|
||||||
#define WDA_IS_NULL_MAC_ADDRESS(mac_addr) \
|
#define WDA_IS_NULL_MAC_ADDRESS(mac_addr) \
|
||||||
((mac_addr[0] == 0x00) && (mac_addr[1] == 0x00) && (mac_addr[2] == 0x00) &&\
|
((mac_addr[0] == 0x00) && (mac_addr[1] == 0x00) && (mac_addr[2] == 0x00) &&\
|
||||||
(mac_addr[1] == 0x00) && (mac_addr[2] == 0x00) && (mac_addr[3] == 0x00))
|
(mac_addr[3] == 0x00) && (mac_addr[4] == 0x00) && (mac_addr[5] == 0x00))
|
||||||
|
|
||||||
#define WDA_MAC_ADDR_ARRAY(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
|
#define WDA_MAC_ADDR_ARRAY(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
|
||||||
#define WDA_MAC_ADDRESS_STR "%02x:%02x:%02x:%02x:%02x:%02x"
|
#define WDA_MAC_ADDRESS_STR "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||||
|
|||||||
Reference in New Issue
Block a user