mac80211: fix nested rtnl locking on ieee80211_reconfig
authorEliad Peller <eliad@wizery.com>
Wed, 30 Apr 2014 13:14:24 +0000 (16:14 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 5 May 2014 13:14:58 +0000 (15:14 +0200)
commite669ba2d06c6195662601956454ac959892f0762
tree1a4791e81cc8a6ed4319b5134ce8db348e11248f
parent792e6aa7a15ea0fb16f8687e93caede1ea9118c7
mac80211: fix nested rtnl locking on ieee80211_reconfig

ieee80211_reconfig already holds rtnl, so calling
cfg80211_sched_scan_stopped results in deadlock.

Use the rtnl-version of this function instead.

Fixes: d43c6b6 ("mac80211: reschedule sched scan after HW restart")
Cc: stable@vger.kernel.org (3.14+)
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c