projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d6ee86
)
Do not start CSA flow when CSA is not supported by the driver
author
Andrei Otcheretianski
<andrei.otcheretianski@intel.com>
Wed, 1 Jan 2014 13:32:10 +0000
(15:32 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 19 Oct 2014 12:39:59 +0000
(15:39 +0300)
Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/hostapd.c
patch
|
blob
|
history
diff --git
a/src/ap/hostapd.c
b/src/ap/hostapd.c
index
3142391
..
764722f
100644
(file)
--- a/
src/ap/hostapd.c
+++ b/
src/ap/hostapd.c
@@
-2367,6
+2367,12
@@
int hostapd_switch_channel(struct hostapd_data *hapd,
struct csa_settings *settings)
{
int ret;
+
+ if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA)) {
+ wpa_printf(MSG_INFO, "CSA is not supported");
+ return -1;
+ }
+
ret = hostapd_fill_csa_settings(hapd, settings);
if (ret)
return ret;