[Bug] LuCI: Validate AP Mac

Problem is when I use certain Mac Address for AP When spoofing to certain Mac for AP. It gives error: Device is not active and Wireless is not associated

if I use bad mac for the 1st AP it affects all APs

GUI shouldn't allow Bad Mac Address

Bad Mac Address Example -

D3:C2:1A: 41:5B:F8 - Seems valid
FB:94:9B: 18:EE:08
44:BB:3B: 6A:65:D8

Hardware

  • Dlink dir 2640
  • OpenWrt 22.03.5

Ignore Old V

Observation

There are no devices in
http://192.168.1.1/cgi-bin/luci/admin/network/network

Only time Wi-Fi works is when I only enable 2nd Wi-Fi in 2Ghz.

Tried Auto Channel and Manual

Config etc/config/wireless

	option type 'mac80211'
	option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
	option band '2g'
	option cell_density '0'
	option country 'US'
	option channel '6'
	option htmode 'HT20'
	option txpower '23'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option encryption 'sae-mixed'
	option key 
	option wpa_disable_eapol_key_retries '1'
	option isolate '1'
	option ssid 'p'
	option macaddr ''
	option ifname ''
	option disabled '1'

config wifi-iface 'wifinet1'
	option device 'radio0'
	option mode 'ap'
	option key ''
	option network ''
	option isolate '1'
	option ieee80211w '1'
	option encryption 'sae-mixed'
	option wpa_disable_eapol_key_retries '1'
	option macaddr ''
	option ssid ''
	option ifname ''

config wifi-iface 'wifinet3'
	option device 'radio0'
	option mode 'ap'
	option isolate '1'
	option key ''
	option wpa_disable_eapol_key_retries '1'
	option network 'Guest'
	option macaddr '
	option encryption 'psk2'
	option ieee80211w '2'
	option disabled '1'
	option ssid '

config wifi-iface 'wifinet4'
	option device 'radio0'
	option mode 'monitor'
	option disabled '1'
	option macaddr '
	option ssid 'Ad-Hoc Monitor  802.11s'

config wifi-device 'radio1'
	option type 'mac80211'
	option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
	option band '5g'
	option htmode 'VHT80'
	option cell_density '0'
	option country 'US'
	option channel '36'

config wifi-iface 'wifinet7'
	option device 'radio1'
	option mode 'ap'
	option ssid '
	option encryption 'sae-mixed'
	option key ''
	option wpa_disable_eapol_key_retries '1'
	option network 'lan'
	option isolate '1'
	option macaddr '
	option ifname ''

config wifi-iface 'wifinet9'
	option device 'radio1'
	option mode 'ap'
	option ssid '
	option encryption 'sae-mixed'
	option macaddr '
	option key '
	option wpa_disable_eapol_key_retries '1'
	option network 'lan'
	option disabled '1'```

Usually the Radio's are not on by default, have you started the radio's?

Network > Wireless Click Edit and Click Enable

2 Likes

Are you asking a question?

If so, can you provide details, please?

Like:

  • your configs
  • device information
  • version of OpenWrt installed
  • an explanation of the screenshot
  • steps you undertaken
  • troubleshooting steps attempted

Explain this in more detail.

Explain what the word "it" means in this sentence.

Have you redacted the option key, if not the interface will not start if you have enabled encryption but did not put in a valid password

2 Likes
  • In the future, please consider refraining from deleting or editing posts that change the context of the discussion

Thanks for the information.

You found the problem yourself. You probably defined an illegal MAC address which will disable the radio.

Check your MAC's. Scroll down to the MAC syntax part in this link:

https://www.ionos.ca/digitalguide/server/know-how/mac-address/

If you can't find the offending MAC - then changing all of them should fix it.

1 Like