]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix error while enabling AP mode with driver-SME
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Sun, 5 Feb 2017 10:52:09 +0000 (12:52 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 5 Feb 2017 18:48:23 +0000 (20:48 +0200)
commit89fa633afbc6eda97a6e196c70f5ae1443b33c2f
tree7c7e5e35c7f97fb258468c5f50830f65f3643150
parenteb04c3bf8ab404cafc1160e073f66754996dedce
nl80211: Fix error while enabling AP mode with driver-SME

Following commit a70cd0db876b2ffad7e3d608e3f9a2fcf2e7a879 ('Don't
register for Beacon frames for IEEE 802.11ad AP'),
nl80211_get_wiphy_data_ap() is unconditionally called when starting AP.
This function tries to register for Beacon frames RX which fails for
some driver which don't support such registration and do not need it in
case the driver implements AP mode SME functionality.

Fix this by conditionally calling nl80211_get_wiphy_data_ap() like prior
to commit a70cd0db876b2ffad7e3d608e3f9a2fcf2e7a879.

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
src/drivers/driver_nl80211.c