Parcourir la source

Drop all hostapd STA entries on interface disabled event

If the driver indicates that the interface has been disabled, assume
that all associations have been lost and remove the hostapd STA entries.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen il y a 10 ans
Parent
commit
c165cb400c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/ap/drv_callbacks.c

+ 1 - 0
src/ap/drv_callbacks.c

@@ -1222,6 +1222,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
 		}
 		break;
 	case EVENT_INTERFACE_DISABLED:
+		hostapd_free_stas(hapd);
 		wpa_msg(hapd->msg_ctx, MSG_INFO, INTERFACE_DISABLED);
 		hapd->disabled = 1;
 		break;