From 3fa1853ed5d6c3a8ef5a2fda9822705243bbc256 Mon Sep 17 00:00:00 2001 From: Hu Wang Date: Thu, 16 Jun 2016 17:17:28 +0800 Subject: [PATCH] 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 --- drivers/staging/prima/CORE/WDA/src/wlan_qct_wda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/prima/CORE/WDA/src/wlan_qct_wda.c b/drivers/staging/prima/CORE/WDA/src/wlan_qct_wda.c index 0817a5ca4c2..55b7b85faf3 100644 --- a/drivers/staging/prima/CORE/WDA/src/wlan_qct_wda.c +++ b/drivers/staging/prima/CORE/WDA/src/wlan_qct_wda.c @@ -131,7 +131,7 @@ #define WDA_WAIT_MSEC_TILL_RING_EMPTY 10 /* 10 msec wait per cycle */ #define WDA_IS_NULL_MAC_ADDRESS(mac_addr) \ ((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_ADDRESS_STR "%02x:%02x:%02x:%02x:%02x:%02x"