nl80211: Do not change type to station on P2P interfaces
authorIlan Peer <ilan.peer@intel.com>
Sun, 25 Aug 2013 07:20:54 +0000 (10:20 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 25 Aug 2013 07:20:54 +0000 (10:20 +0300)
commit60b13c2017df94a4ffbf6674bcf5e1c5c8b6374d
tree7975a2a697558d9521b6479e5c9408170f944485
parente0591c3cfe3f8937a9f216ddcf49ed3a94238179
nl80211: Do not change type to station on P2P interfaces

It is possible that when trying to remove a dynamically added interface,
changing its type to station mode is not possible (since the kernel does
not support so in its interface combinations).

Since P2P interfaces are always dynamically added, avoid changing their
type to station in the deinit_ap() and deinit_p2p_client() nl80211
callbacks, assuming that the interface is about to be removed.

Signed-hostap: Ilan Peer <ilan.peer@intel.com>
src/drivers/driver.h
src/drivers/driver_nl80211.c