summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wifi_hal
diff options
context:
space:
mode:
authorPierre Vandwalle <vandwalle@google.com>2015-05-11 21:58:12 -0700
committerPierre Vandwalle <vandwalle@google.com>2015-05-12 12:12:10 -0700
commit8413100c292c64a6562cd975689652cd8aeebfe3 (patch)
treedc638fab8963b8e34a798df5c5df5d309ab8df65 /bcmdhd/wifi_hal
parentdee2763112928ba86e084ed0551c05d1d94d287e (diff)
downloadhardware_broadcom_wlan-8413100c292c64a6562cd975689652cd8aeebfe3.zip
hardware_broadcom_wlan-8413100c292c64a6562cd975689652cd8aeebfe3.tar.gz
hardware_broadcom_wlan-8413100c292c64a6562cd975689652cd8aeebfe3.tar.bz2
fix reseting pno list
Change-Id: If5b93c225783c0417b3aadfa41a92782a3669128
Diffstat (limited to 'bcmdhd/wifi_hal')
-rw-r--r--bcmdhd/wifi_hal/gscan.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/bcmdhd/wifi_hal/gscan.cpp b/bcmdhd/wifi_hal/gscan.cpp
index 2aa686b..3ece5bf 100644
--- a/bcmdhd/wifi_hal/gscan.cpp
+++ b/bcmdhd/wifi_hal/gscan.cpp
@@ -1565,22 +1565,19 @@ wifi_error wifi_reset_epno_list(wifi_request_id id, wifi_interface_handle iface)
cmd->releaseRef();
return WIFI_SUCCESS;
}
-
return WIFI_ERROR_INVALID_ARGS;
}
wifi_error wifi_set_epno_list(wifi_request_id id, wifi_interface_handle iface,
int num_networks, wifi_epno_network *networks, wifi_epno_handler handler)
{
-
- if (num_networks == 0 || networks == NULL) {
- return wifi_reset_epno_list(id, iface);
- }
-
wifi_handle handle = getWifiHandle(iface);
ePNOCommand *cmd = new ePNOCommand(iface, id, num_networks, networks, handler);
wifi_register_cmd(handle, id, cmd);
+ if (num_networks == 0 || networks == NULL) {
+ return wifi_reset_epno_list(id, iface);
+ }
return (wifi_error)cmd->start();
}