]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix Beacon RX before AP setup completion
authorJouni Malinen <j@w1.fi>
Thu, 6 Feb 2014 13:22:06 +0000 (15:22 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 6 Feb 2014 13:22:06 +0000 (15:22 +0200)
commit334ec001bbd31c5bc83d6593e58dfbbf6b8785a2
treeeb705b363e47ab76aa8b05f9d59cef93f7b3d6a6
parent72e7fb3fd9f8dd21a2da402e1cdca26c5931c108
Fix Beacon RX before AP setup completion

It is possible for the driver to report Beacon RX prior to hostapd
having completed AP mode setup, e.g., when changing country code. Beacon
frame processing for OLBC was not prepared for this and could trigger
segfault due to NULL pointer dereference. Fix this by ignoring the
Beacon frames received prior to completing interface setup when
determining OLBC updates.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/ap/ap_list.c