carl9170: allow P2P_GO interface creation after P2P_CLIENT
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 16 Dec 2012 00:41:37 +0000 (01:41 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:52 +0000 (15:16 -0500)
commit7f878b0d96e6b3bd27d736fb2fb7e3cc94b16b26
tree29a67f378d034766d7c7b4ac52a4df4d5f282ac9
parent5ae994d0984ddc2f1e79c4f8de7189faecfc0af9
carl9170: allow P2P_GO interface creation after P2P_CLIENT

Janusz Dziedzic reported that after a change in wpa_supplicant
["nl80211: Automatically use concurrent P2P if possible"],
carl9170 was no longer able to host a P2P network.

This patch tackles the problem by allowing GO interfaces to be
registered, long after the P2P_CLIENT interface is brought up.

Reported-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/main.c