mac80211: fix set wifi macaddr to zero

This commit is contained in:
coolsnowwolf 2022-08-11 01:01:23 +00:00
parent fb9d9f6dd9
commit af1f124ef6

View File

@ -739,7 +739,8 @@ mac80211_prepare_vif() {
;; ;;
esac esac
if [ "$mode" != "ap" ]; then # We do not set hostpad macaddr if it is 00:00:00:00:00:00
if [ "$mode" != "ap" ] && [ "$macaddr" != "00:00:00:00:00:00" ]; then
# ALL ap functionality will be passed to hostapd # ALL ap functionality will be passed to hostapd
# All interfaces must have unique mac addresses # All interfaces must have unique mac addresses
# which can either be explicitly set in the device # which can either be explicitly set in the device