diff options
author | Tanmay Garg <tanmayg@codeaurora.org> | 2021-03-16 14:35:37 +0530 |
---|---|---|
committer | Tanmay Garg <tanmayg@codeaurora.org> | 2021-03-16 14:38:54 +0530 |
commit | 9c7f52aa26f5d63d5cb5f2a7591ee62b68b748e1 (patch) | |
tree | fefebec9f85b6ad965c2cdec486ae05553168ebe | |
parent | 5db13483500b7b8173113925a6e189decdd3feb1 (diff) |
Issue legacy GET_STATION command on new command GET_STA failure
In case of QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO failure,
call QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
Change-Id: I27e6b67831df01da27b94447f464c3e1dbf37ea0
CRs-Fixed: 2900356
-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 a9d4e67..31f02f5 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -1542,16 +1542,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++; |