diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-22 19:53:05 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 19:53:05 (GMT) |
commit | d3bd1b4c89cceca42211cd5bd30508b903267229 (patch) | |
tree | ab3459496e3c9d8b1904b440b1a19c72ff23b3f0 /net/wireless | |
parent | 28801f351f76231e8d1e378274d6d56a577b897e (diff) | |
parent | 0bf719dfdecc5552155cbec78e49fa06e531e35c (diff) | |
download | linux-fsl-qoriq-d3bd1b4c89cceca42211cd5bd30508b903267229.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/wext-compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 3e5dbd4..d112f03 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c @@ -802,11 +802,11 @@ int cfg80211_wext_siwfreq(struct net_device *dev, return freq; if (freq == 0) return -EINVAL; - wdev_lock(wdev); mutex_lock(&rdev->devlist_mtx); + wdev_lock(wdev); err = cfg80211_set_freq(rdev, wdev, freq, NL80211_CHAN_NO_HT); - mutex_unlock(&rdev->devlist_mtx); wdev_unlock(wdev); + mutex_unlock(&rdev->devlist_mtx); return err; default: return -EOPNOTSUPP; |