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