nl80211: Fix regression in returning to AP mode after scan
authorYun Park <yunp@qca.qualcomm.com>
Tue, 4 Feb 2014 21:11:14 +0000 (23:11 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 5 Feb 2014 20:53:59 +0000 (22:53 +0200)
commit72e7fb3fd9f8dd21a2da402e1cdca26c5931c108
treec71962f387dbfc9714d74fed72902640169bc845
parenta05e236b11bfb4dacfc269938181104a6303247c
nl80211: Fix regression in returning to AP mode after scan

Commit b1f625e0d81b76bb2380d0b47b95f5ad61123ba5 extended
ap_scan_as_station to be able to distinguish between AP and P2P GO
iftypes. However, it did this in a way that completely lost the original
mode because drv->nlmode had already been replaced with the station
mode. Fix this by storing the correct old mode.

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