OSDN Git Service

cfg80211: fix P2P GO interface teardown
authorJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2013 08:11:25 +0000 (10:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 19:18:17 +0000 (21:18 +0200)
commit74418edec915d0f446debebde08d170c7b8ba0ee
treea71980707a7e1f8a68d980f0590040d754c25639
parent5cdaed1e878d723d56d04ae0be1738124acf9f46
cfg80211: fix P2P GO interface teardown

When a P2P GO interface goes down, cfg80211 doesn't properly
tear it down, leading to warnings later. Add the GO interface
type to the enumeration to tear it down like AP interfaces.
Otherwise, we leave it pending and mac80211's state can get
very confused, leading to warnings later.

Cc: stable@vger.kernel.org
Reported-by: Ilan Peer <ilan.peer@intel.com>
Tested-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c