hostapd: Only update already-set beacons when processing OLBC
authorLuciano Coelho <coelho@ti.com>
Sun, 1 Apr 2012 15:12:04 +0000 (18:12 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 1 Apr 2012 15:12:04 +0000 (18:12 +0300)
commit370b076197bccc4b6d6862b94861571dadc5c128
treed954348e00ea7e330c4964af6ad8ea9bde1d8be9
parentc6e86b63d28a6ea87f7ebaf3b35f7343524dc0b5
hostapd: Only update already-set beacons when processing OLBC

When hostapd is about to start an AP using HT40, it starts a scan to
check whether it is allowed or not. If OLBC is detected before the
scan has completed, it sets the beacons prematurely.

To fix this, instead of setting all beacons when OLBC is detected,
only update the ones that have already been started.

Signed-off-by: Luciano Coelho <coelho@ti.com>
src/ap/ap_list.c
src/ap/beacon.c
src/ap/beacon.h