Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
The only slightly tricky merge conflict was the netdevsim because the mutex locking fix overlapped a lot of driver reload reorganization. The rest were (relatively) trivial in nature. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -204,6 +204,11 @@ bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* channel 14 is only for IEEE 802.11b */
|
||||
if (chandef->center_freq1 == 2484 &&
|
||||
chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
|
||||
return false;
|
||||
|
||||
if (cfg80211_chandef_is_edmg(chandef) &&
|
||||
!cfg80211_edmg_chandef_valid(chandef))
|
||||
return false;
|
||||
|
@@ -393,7 +393,7 @@ const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
|
||||
[NL80211_ATTR_MNTR_FLAGS] = { /* NLA_NESTED can't be empty */ },
|
||||
[NL80211_ATTR_MESH_ID] = { .type = NLA_BINARY,
|
||||
.len = IEEE80211_MAX_MESH_ID_LEN },
|
||||
[NL80211_ATTR_MPATH_NEXT_HOP] = { .type = NLA_U32 },
|
||||
[NL80211_ATTR_MPATH_NEXT_HOP] = NLA_POLICY_ETH_ADDR_COMPAT,
|
||||
|
||||
[NL80211_ATTR_REG_ALPHA2] = { .type = NLA_STRING, .len = 2 },
|
||||
[NL80211_ATTR_REG_RULES] = { .type = NLA_NESTED },
|
||||
|
@@ -1559,7 +1559,8 @@ bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef,
|
||||
}
|
||||
|
||||
if (freq == 2484) {
|
||||
if (chandef->width > NL80211_CHAN_WIDTH_40)
|
||||
/* channel 14 is only for IEEE 802.11b */
|
||||
if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
|
||||
return false;
|
||||
|
||||
*op_class = 82; /* channel 14 */
|
||||
|
Reference in New Issue
Block a user