DFS: Restart pending CAC on interface enable
When an interface is re-enabled after it was disabled during CAC, it won't ever get active since hostapd is waiting for a CAC_FINISHED while kernel side is waiting for a CMD_RADAR_DETECT to start a CAC. This commit checks for a pending CAC when an interface is enabled and if so restarts its DFS processing. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
This commit is contained in:
parent
72d909e749
commit
10de40c0c8
1 changed files with 5 additions and 0 deletions
|
@ -1729,6 +1729,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||
hostapd_reconfig_encryption(hapd);
|
||||
hapd->reenable_beacon = 1;
|
||||
ieee802_11_set_beacon(hapd);
|
||||
#ifdef NEED_AP_MLME
|
||||
} else if (hapd->disabled && hapd->iface->cac_started) {
|
||||
wpa_printf(MSG_DEBUG, "DFS: restarting pending CAC");
|
||||
hostapd_handle_dfs(hapd->iface);
|
||||
#endif /* NEED_AP_MLME */
|
||||
}
|
||||
break;
|
||||
case EVENT_INTERFACE_DISABLED:
|
||||
|
|
Loading…
Reference in a new issue