mac80211: release the channel in error path in start_ap
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 27 Jan 2014 09:07:42 +0000 (11:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Feb 2014 08:55:20 +0000 (09:55 +0100)
commit0297ea17bf7879fb5846fafd1be4c0471e72848d
tree2632e94cf030d07b2ec7b24f36d7ab9e7dd3c327
parentf9d15d162b3acf28f85b3ac05c4883e5ed588d28
mac80211: release the channel in error path in start_ap

When the driver cannot start the AP or when the assignement
of the beacon goes wrong, we need to unassign the vif.

Cc: stable@vger.kernel.org
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c