diff options
author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2021-06-01 17:07:59 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-06-01 17:07:59 -0700 |
commit | b404701c3321e4c4879c1141397e55f108029667 (patch) | |
tree | 58b3867d6193d1fb55e39aef514539365c13a9e8 | |
parent | b6f8b1fd7634e0db7ae04bf58fd624a3e03499a4 (diff) | |
parent | 9c7f52aa26f5d63d5cb5f2a7591ee62b68b748e1 (diff) |
Merge "Issue legacy GET_STATION command on new command GET_STA failure" into wlan-aosp.lnx.6.0
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index 33699e7..ef6dcb4 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -1537,16 +1537,9 @@ static int wpa_driver_send_get_sta_info_cmd(struct i802_bss *bss, u8 *mac, *status = send_nlmsg((struct nl_sock *)drv->global->nl, nlmsg, get_sta_info_handler, &info); if (*status != 0) { - if (*status == -EOPNOTSUPP) { - wpa_printf(MSG_INFO,"Command is not supported, try legacy command"); - *new_cmd = false; - return wpa_driver_send_get_sta_info_legacy_cmd(bss, - mac, - status); - } else { - wpa_printf(MSG_ERROR,"Failed to send nl message with err %d", *status); - return -1; - } + wpa_printf(MSG_ERROR,"Failed to send nl message with err %d, retrying with legacy command", *status); + *new_cmd = false; + return wpa_driver_send_get_sta_info_legacy_cmd(bss,mac,status); } g_sta_info.num_request_vendor_sta_info++; |