Skip to content

Commit

Permalink
wifi: mac80211_hwsim: warn on invalid link address
Browse files Browse the repository at this point in the history
Catch the bugs fixed in mac80211 by the previous commits
and warn if an invalid address is added (or removed).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Sep 3, 2022
1 parent a033afc commit 419bd7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,8 @@ static void mac80211_hwsim_config_mac_nl(struct ieee80211_hw *hw,
struct sk_buff *skb;
void *msg_head;

WARN_ON(!is_valid_ether_addr(addr));

if (!_portid && !hwsim_virtio_enabled)
return;

Expand Down

0 comments on commit 419bd7a

Please sign in to comment.