[PATCH] restart pending CAC on interface enable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 src/ap/drv_callbacks.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index d49ad4c41..eb1669b7a 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -1729,6 +1729,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
 				hostapd_reconfig_encryption(hapd);
 			hapd->reenable_beacon = 1;
 			ieee802_11_set_beacon(hapd);
+		} else if (hapd->disabled && hapd->iface->cac_started) {
+			wpa_printf(MSG_DEBUG, "restarting pending CAC");
+			hostapd_handle_dfs(hapd->iface);
 		}
 		break;
 	case EVENT_INTERFACE_DISABLED:
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux