hostapd: Verify hostapd_setup_bss calls

Reject multiple calls to hostapd_setup_bss() for any specific interface.
hostapd_cleanup() must have been called first before trying to restart a
BSS.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-11-06 13:39:41 +02:00 committed by Jouni Malinen
parent 54246f8d44
commit 36501a22a4
2 changed files with 14 additions and 1 deletions

View file

@ -102,6 +102,7 @@ struct hostapd_data {
struct hostapd_config *iconf;
struct hostapd_bss_config *conf;
int interface_added; /* virtual interface added for this BSS */
unsigned int started:1;
u8 own_addr[ETH_ALEN];