diff options
author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2021-07-28 23:42:48 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-07-28 23:42:48 -0700 |
commit | b844b519b051fd1c985cae93d33196ec2bd67ca5 (patch) | |
tree | 8041a2f64105c90362358ac3385efc3fd7dda1d1 | |
parent | 61b8dd124f5c52c87038d6476ae73a2d3570b1e8 (diff) | |
parent | f02f6680d48a2b4fd8e8999d2bb1168e784ec517 (diff) |
Merge "wpa_supplicant_8_lib: Reject getstainfo command on non-hapd iface" into wlan-aosp.lnx.6.0
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index bb0ff98..48538ff 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -1874,6 +1874,11 @@ static int wpa_driver_get_all_sta_info(struct i802_bss *bss, int *status) struct sta_info *sta; int ret, total_ret = 0; + if(bss->drv && bss->drv->nlmode != NL80211_IFTYPE_AP) { + wpa_printf(MSG_ERROR,"Not a hapd interface"); + return -1; + } + if (!hapd) { wpa_printf(MSG_ERROR,"hapd is NULL"); return -1; |