mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts: drivers/net/wireless/iwlwifi/iwl-testmode.c include/net/nfc/nfc.h net/nfc/netlink.c net/wireless/nl80211.c
This commit is contained in:
commit
59ef43e681
290 changed files with 14493 additions and 7242 deletions
|
|
@ -422,10 +422,6 @@ static int wiphy_verify_combinations(struct wiphy *wiphy)
|
|||
const struct ieee80211_iface_combination *c;
|
||||
int i, j;
|
||||
|
||||
/* If we have combinations enforce them */
|
||||
if (wiphy->n_iface_combinations)
|
||||
wiphy->flags |= WIPHY_FLAG_ENFORCE_COMBINATIONS;
|
||||
|
||||
for (i = 0; i < wiphy->n_iface_combinations; i++) {
|
||||
u32 cnt = 0;
|
||||
u16 all_iftypes = 0;
|
||||
|
|
|
|||
|
|
@ -1540,6 +1540,19 @@ static int nl80211_send_iface(struct sk_buff *msg, u32 pid, u32 seq, int flags,
|
|||
(cfg80211_rdev_list_generation << 2)))
|
||||
goto nla_put_failure;
|
||||
|
||||
if (rdev->ops->get_channel) {
|
||||
struct ieee80211_channel *chan;
|
||||
enum nl80211_channel_type channel_type;
|
||||
|
||||
chan = rdev->ops->get_channel(&rdev->wiphy, &channel_type);
|
||||
if (chan &&
|
||||
(nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ,
|
||||
chan->center_freq) ||
|
||||
nla_put_u32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE,
|
||||
channel_type)))
|
||||
goto nla_put_failure;
|
||||
}
|
||||
|
||||
return genlmsg_end(msg, hdr);
|
||||
|
||||
nla_put_failure:
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#include "nl80211.h"
|
||||
#include "wext-compat.h"
|
||||
|
||||
#define IEEE80211_SCAN_RESULT_EXPIRE (15 * HZ)
|
||||
#define IEEE80211_SCAN_RESULT_EXPIRE (30 * HZ)
|
||||
|
||||
void ___cfg80211_scan_done(struct cfg80211_registered_device *rdev, bool leak)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -946,13 +946,6 @@ int cfg80211_can_change_interface(struct cfg80211_registered_device *rdev,
|
|||
if (rdev->wiphy.software_iftypes & BIT(iftype))
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* Drivers will gradually all set this flag, until all
|
||||
* have it we only enforce for those that set it.
|
||||
*/
|
||||
if (!(rdev->wiphy.flags & WIPHY_FLAG_ENFORCE_COMBINATIONS))
|
||||
return 0;
|
||||
|
||||
memset(num, 0, sizeof(num));
|
||||
|
||||
num[iftype] = 1;
|
||||
|
|
@ -972,6 +965,9 @@ int cfg80211_can_change_interface(struct cfg80211_registered_device *rdev,
|
|||
}
|
||||
mutex_unlock(&rdev->devlist_mtx);
|
||||
|
||||
if (total == 1)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < rdev->wiphy.n_iface_combinations; i++) {
|
||||
const struct ieee80211_iface_combination *c;
|
||||
struct ieee80211_iface_limit *limits;
|
||||
|
|
|
|||
|
|
@ -821,6 +821,7 @@ static int cfg80211_wext_giwfreq(struct net_device *dev,
|
|||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy);
|
||||
struct ieee80211_channel *chan;
|
||||
enum nl80211_channel_type channel_type;
|
||||
|
||||
switch (wdev->iftype) {
|
||||
case NL80211_IFTYPE_STATION:
|
||||
|
|
@ -831,7 +832,7 @@ static int cfg80211_wext_giwfreq(struct net_device *dev,
|
|||
if (!rdev->ops->get_channel)
|
||||
return -EINVAL;
|
||||
|
||||
chan = rdev->ops->get_channel(wdev->wiphy);
|
||||
chan = rdev->ops->get_channel(wdev->wiphy, &channel_type);
|
||||
if (!chan)
|
||||
return -EINVAL;
|
||||
freq->m = chan->center_freq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue