summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Adamski <krzysztof.adamski@sonymobile.com>2016-01-07 11:48:08 +0100
committerKrzysztof Adamski (Sony Mobile) <krzysztof.adamski@sonymobile.com>2016-01-14 09:36:59 +0000
commit14ab31cdfe6cf85703812212f3499810f0b42b60 (patch)
tree2d8a2af83062de72fa5fc73c7ab648637f69b125
parenta4872447b1a3bfbb6df223705b0650b285a2999d (diff)
downloadbcm-14ab31cdfe6cf85703812212f3499810f0b42b60.tar.gz
net: wireless: bcmdhd: Handle broadcast SSID in PNO.
Ignore entry with broadcast SSID instead of returning error when setting up PNO. This entry is useless but there is no reason we should fail entirely. Google claims PNO works for all other devices even when they pass broadcast SSID so we shouldn't be different. Issue: KIONE-3014 Change-Id: I6b009b4ee047568256d8fef0d674f6c749e480cf
-rwxr-xr-xdrivers/net/wireless/bcmdhd/dhd_pno.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_pno.c b/drivers/net/wireless/bcmdhd/dhd_pno.c
index aa735d5a9cf..9c05e93757a 100755
--- a/drivers/net/wireless/bcmdhd/dhd_pno.c
+++ b/drivers/net/wireless/bcmdhd/dhd_pno.c
@@ -342,16 +342,13 @@ _dhd_pno_add_ssid(dhd_pub_t *dhd, wlc_ssid_t* ssids_list, int nssid)
ssids_list[j].SSID, ssids_list[j].SSID_len));
}
}
- /* Check for broadcast ssid */
+
+ /* set all pfn ssid */
for (i = 0; i < nssid; i++) {
if (!ssids_list[i].SSID_len) {
- DHD_ERROR(("%d: Broadcast SSID is ilegal for PNO setting\n", i));
- err = BCME_ERROR;
- goto exit;
+ DHD_INFO(("%d: Skiping broadcast SSID\n", i));
+ continue;
}
- }
- /* set all pfn ssid */
- for (i = 0; i < nssid; i++) {
pfn_element.infra = htod32(DOT11_BSSTYPE_INFRASTRUCTURE);
pfn_element.auth = (DOT11_OPEN_SYSTEM);
pfn_element.wpa_auth = htod32(WPA_AUTH_PFN_ANY);