mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts: net/mac80211/sta_info.c net/wireless/core.h
This commit is contained in:
commit
9a574cd67a
34 changed files with 473 additions and 421 deletions
|
@ -85,6 +85,7 @@ static int cfg80211_conn_scan(struct wireless_dev *wdev)
|
|||
ASSERT_RTNL();
|
||||
ASSERT_RDEV_LOCK(rdev);
|
||||
ASSERT_WDEV_LOCK(wdev);
|
||||
lockdep_assert_held(&rdev->sched_scan_mtx);
|
||||
|
||||
if (rdev->scan_req)
|
||||
return -EBUSY;
|
||||
|
@ -324,11 +325,9 @@ void cfg80211_sme_scan_done(struct net_device *dev)
|
|||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
|
||||
mutex_lock(&wiphy_to_dev(wdev->wiphy)->devlist_mtx);
|
||||
wdev_lock(wdev);
|
||||
__cfg80211_sme_scan_done(dev);
|
||||
wdev_unlock(wdev);
|
||||
mutex_unlock(&wiphy_to_dev(wdev->wiphy)->devlist_mtx);
|
||||
}
|
||||
|
||||
void cfg80211_sme_rx_auth(struct net_device *dev,
|
||||
|
@ -928,9 +927,12 @@ int cfg80211_connect(struct cfg80211_registered_device *rdev,
|
|||
int err;
|
||||
|
||||
mutex_lock(&rdev->devlist_mtx);
|
||||
/* might request scan - scan_mtx -> wdev_mtx dependency */
|
||||
mutex_lock(&rdev->sched_scan_mtx);
|
||||
wdev_lock(dev->ieee80211_ptr);
|
||||
err = __cfg80211_connect(rdev, dev, connect, connkeys, NULL);
|
||||
wdev_unlock(dev->ieee80211_ptr);
|
||||
mutex_unlock(&rdev->sched_scan_mtx);
|
||||
mutex_unlock(&rdev->devlist_mtx);
|
||||
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue