mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next
This commit is contained in:
commit
c597f6653d
43 changed files with 893 additions and 244 deletions
|
|
@ -68,6 +68,32 @@ static int cfg80211_set_ringparam(struct net_device *dev,
|
|||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
static int cfg80211_get_sset_count(struct net_device *dev, int sset)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy);
|
||||
if (rdev->ops->get_et_sset_count)
|
||||
return rdev->ops->get_et_sset_count(wdev->wiphy, dev, sset);
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static void cfg80211_get_stats(struct net_device *dev,
|
||||
struct ethtool_stats *stats, u64 *data)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy);
|
||||
if (rdev->ops->get_et_stats)
|
||||
rdev->ops->get_et_stats(wdev->wiphy, dev, stats, data);
|
||||
}
|
||||
|
||||
static void cfg80211_get_strings(struct net_device *dev, u32 sset, u8 *data)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy);
|
||||
if (rdev->ops->get_et_strings)
|
||||
rdev->ops->get_et_strings(wdev->wiphy, dev, sset, data);
|
||||
}
|
||||
|
||||
const struct ethtool_ops cfg80211_ethtool_ops = {
|
||||
.get_drvinfo = cfg80211_get_drvinfo,
|
||||
.get_regs_len = cfg80211_get_regs_len,
|
||||
|
|
@ -75,4 +101,7 @@ const struct ethtool_ops cfg80211_ethtool_ops = {
|
|||
.get_link = ethtool_op_get_link,
|
||||
.get_ringparam = cfg80211_get_ringparam,
|
||||
.set_ringparam = cfg80211_set_ringparam,
|
||||
.get_strings = cfg80211_get_strings,
|
||||
.get_ethtool_stats = cfg80211_get_stats,
|
||||
.get_sset_count = cfg80211_get_sset_count,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ const struct mesh_config default_mesh_config = {
|
|||
.dot11MeshGateAnnouncementProtocol = false,
|
||||
.dot11MeshForwarding = true,
|
||||
.rssi_threshold = MESH_RSSI_THRESHOLD,
|
||||
.ht_opmode = IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED,
|
||||
};
|
||||
|
||||
const struct mesh_setup default_mesh_setup = {
|
||||
|
|
|
|||
|
|
@ -3390,7 +3390,9 @@ static int nl80211_get_mesh_config(struct sk_buff *skb,
|
|||
nla_put_u8(msg, NL80211_MESHCONF_FORWARDING,
|
||||
cur_params.dot11MeshForwarding) ||
|
||||
nla_put_u32(msg, NL80211_MESHCONF_RSSI_THRESHOLD,
|
||||
cur_params.rssi_threshold))
|
||||
cur_params.rssi_threshold) ||
|
||||
nla_put_u32(msg, NL80211_MESHCONF_HT_OPMODE,
|
||||
cur_params.ht_opmode))
|
||||
goto nla_put_failure;
|
||||
nla_nest_end(msg, pinfoattr);
|
||||
genlmsg_end(msg, hdr);
|
||||
|
|
@ -3426,6 +3428,7 @@ static const struct nla_policy nl80211_meshconf_params_policy[NL80211_MESHCONF_A
|
|||
[NL80211_MESHCONF_GATE_ANNOUNCEMENTS] = { .type = NLA_U8 },
|
||||
[NL80211_MESHCONF_FORWARDING] = { .type = NLA_U8 },
|
||||
[NL80211_MESHCONF_RSSI_THRESHOLD] = { .type = NLA_U32},
|
||||
[NL80211_MESHCONF_HT_OPMODE] = { .type = NLA_U16},
|
||||
};
|
||||
|
||||
static const struct nla_policy
|
||||
|
|
@ -3523,6 +3526,8 @@ do {\
|
|||
mask, NL80211_MESHCONF_FORWARDING, nla_get_u8);
|
||||
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, rssi_threshold,
|
||||
mask, NL80211_MESHCONF_RSSI_THRESHOLD, nla_get_u32);
|
||||
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, ht_opmode,
|
||||
mask, NL80211_MESHCONF_HT_OPMODE, nla_get_u16);
|
||||
if (mask_out)
|
||||
*mask_out = mask;
|
||||
|
||||
|
|
|
|||
|
|
@ -378,7 +378,11 @@ static int cmp_bss_core(struct cfg80211_bss *a,
|
|||
b->len_information_elements);
|
||||
}
|
||||
|
||||
return compare_ether_addr(a->bssid, b->bssid);
|
||||
/*
|
||||
* we can't use compare_ether_addr here since we need a < > operator.
|
||||
* The binary return value of compare_ether_addr isn't enough
|
||||
*/
|
||||
return memcmp(a->bssid, b->bssid, sizeof(a->bssid));
|
||||
}
|
||||
|
||||
static int cmp_bss(struct cfg80211_bss *a,
|
||||
|
|
|
|||
Loading…
Reference in a new issue