]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Restore previous nlmode if set_freq for AP mode fails
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 7 Jan 2013 22:34:08 +0000 (00:34 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 7 Jan 2013 22:34:08 +0000 (00:34 +0200)
commit708bc8e0e41f17b8f976a3dc5c9ac9776c8fad1f
tree573c32f544021e61dc0fef1b4b1534bc531bca1c
parent190e39d9cbca6d47a7c75adc690f7331dde0d4a1
nl80211: Restore previous nlmode if set_freq for AP mode fails

wpa_driver_nl80211_ap() returned error if set_freq failed, but left the
previously set nlmode to GO/AP. While this should not be issue for most
purposes, it leaves the interface in somewhat unexpected state and could
potentially affect operations prior to next connection attempt. Address
this by restoring the previous nlmode if AP mode cannot be started for
some reason.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c