DFS: Allow wpa_supplicant AP mode to use non-offloaded DFS
This extends the hostapd-like setup of DFS-in-userspace for wpa_supplicant AP mode operations. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
02e42ab75b
commit
6e9023ea49
2 changed files with 12 additions and 1 deletions
|
@ -4301,7 +4301,8 @@ static int wpa_driver_nl80211_ap(struct wpa_driver_nl80211_data *drv,
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (nl80211_set_channel(drv->first_bss, ¶ms->freq, 0)) {
|
||||
if (params->freq.freq &&
|
||||
nl80211_set_channel(drv->first_bss, ¶ms->freq, 0)) {
|
||||
if (old_mode != nlmode)
|
||||
wpa_driver_nl80211_set_mode(drv->first_bss, old_mode);
|
||||
nl80211_remove_monitor_interface(drv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue