Re-enable beaconing on interface disable+enable
This is a step towards enabling hostapd to restart AP mode functionality if the interface is disabled and re-enabled, e.g., with ifconfig down and up. This commit takes care of beaconining only which may be sufficient for open mode connection, but not for WPA2 cases. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
fc99fab7e5
commit
f33c8606f4
5 changed files with 20 additions and 1 deletions
|
@ -1031,6 +1031,11 @@ struct wpa_driver_ap_params {
|
|||
* freq - Channel parameters for dynamic bandwidth changes
|
||||
*/
|
||||
struct hostapd_freq_params *freq;
|
||||
|
||||
/**
|
||||
* reenable - Whether this is to re-enable beaconing
|
||||
*/
|
||||
int reenable;
|
||||
};
|
||||
|
||||
struct wpa_driver_mesh_bss_params {
|
||||
|
|
|
@ -3270,7 +3270,7 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
|||
u32 suites[10], suite;
|
||||
u32 ver;
|
||||
|
||||
beacon_set = bss->beacon_set;
|
||||
beacon_set = params->reenable ? 0 : bss->beacon_set;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Set beacon (beacon_set=%d)",
|
||||
beacon_set);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue