Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'mac80211-for-net-2019-10-31' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211

Johannes Berg says:

====================
Just two fixes:
* HT operation is not allowed on channel 14 (Japan only)
* netlink policy for nexthop attribute was wrong
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

+8 -2
+5
net/wireless/chan.c
··· 204 204 return false; 205 205 } 206 206 207 + /* channel 14 is only for IEEE 802.11b */ 208 + if (chandef->center_freq1 == 2484 && 209 + chandef->width != NL80211_CHAN_WIDTH_20_NOHT) 210 + return false; 211 + 207 212 if (cfg80211_chandef_is_edmg(chandef) && 208 213 !cfg80211_edmg_chandef_valid(chandef)) 209 214 return false;
+1 -1
net/wireless/nl80211.c
··· 393 393 [NL80211_ATTR_MNTR_FLAGS] = { /* NLA_NESTED can't be empty */ }, 394 394 [NL80211_ATTR_MESH_ID] = { .type = NLA_BINARY, 395 395 .len = IEEE80211_MAX_MESH_ID_LEN }, 396 - [NL80211_ATTR_MPATH_NEXT_HOP] = { .type = NLA_U32 }, 396 + [NL80211_ATTR_MPATH_NEXT_HOP] = NLA_POLICY_ETH_ADDR_COMPAT, 397 397 398 398 [NL80211_ATTR_REG_ALPHA2] = { .type = NLA_STRING, .len = 2 }, 399 399 [NL80211_ATTR_REG_RULES] = { .type = NLA_NESTED },
+2 -1
net/wireless/util.c
··· 1559 1559 } 1560 1560 1561 1561 if (freq == 2484) { 1562 - if (chandef->width > NL80211_CHAN_WIDTH_40) 1562 + /* channel 14 is only for IEEE 802.11b */ 1563 + if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT) 1563 1564 return false; 1564 1565 1565 1566 *op_class = 82; /* channel 14 */