diff options
Diffstat (limited to 'bcmdhd/wifi_hal/gscan.cpp')
-rw-r--r-- | bcmdhd/wifi_hal/gscan.cpp | 9 |
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(); } |