I'm trying to implement a simple connection saturation algorithm for a bunch of nodes running hostapd
. On having max_num_sta
connections, I want hostapd
to move into hidden SSID mode (ignore_broadcast_ssid=0
). I have updated src/ap/beacon.c
to include a simple conditional statement and recompiled successfully, but my SSID still keeps showing up when the node is "saturated":
if ( hapd->num_sta >= hapd->conf->max_num_sta){
hapd->conf->ignore_broadcast_ssid = 1;
}else{
hapd->conf->ignore_broadcast_ssid = 0;
}
Am I missing something?