OSDN Git Service

mac80211: Reject zero MAC address in sta_info_insert_check()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 26 Jun 2021 13:03:34 +0000 (21:03 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 13 Aug 2021 07:50:43 +0000 (09:50 +0200)
commitdeebea0ae3f7c1f812ff6b3581dc51445e1be942
tree51d6b2c879520f6086cccb1d39060138b7a89945
parent3d2a2544eae93987f0688c2d6ec06c76f9e1477b
mac80211: Reject zero MAC address in sta_info_insert_check()

As commit 52dba8d7d5ab ("mac80211: reject zero MAC address in add station")
said, we don't consider all-zeroes to be a valid MAC address in most places,
so also reject it here.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20210626130334.13624-1-yuehaibing@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c