mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 03:31:04 -04:00
Merge tag 'mac80211-for-davem-2018-01-04' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says: ==================== Two fixes: * drop mesh frames appearing to be from ourselves * check another netlink attribute for existence ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -3632,6 +3632,8 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx)
|
||||
}
|
||||
return true;
|
||||
case NL80211_IFTYPE_MESH_POINT:
|
||||
if (ether_addr_equal(sdata->vif.addr, hdr->addr2))
|
||||
return false;
|
||||
if (multicast)
|
||||
return true;
|
||||
return ether_addr_equal(sdata->vif.addr, hdr->addr1);
|
||||
|
||||
@@ -11361,7 +11361,8 @@ static int nl80211_nan_add_func(struct sk_buff *skb,
|
||||
break;
|
||||
case NL80211_NAN_FUNC_FOLLOW_UP:
|
||||
if (!tb[NL80211_NAN_FUNC_FOLLOW_UP_ID] ||
|
||||
!tb[NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID]) {
|
||||
!tb[NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID] ||
|
||||
!tb[NL80211_NAN_FUNC_FOLLOW_UP_DEST]) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user