WiFi Monitor interface is created on wrong channel
Username: Charlemagne Lasse
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1356
-
Device problem occurs on: PC-Engines APU3
-
Software versions of OpenWrt/LEDE release: LEDE 17.01.4
Just created a monitor interface with an WLE200NX:
config wifi-device 'radio0' option type 'mac80211' option channel '5' option hwmode '11g' option path 'pci0000:00/0000:00:02.5/0000:04:00.0' option htmode 'HT40' option disabled '0'
config wifi-iface option mode 'monitor' option device 'radio0' option ifname 'mon0'
And restarted the device. It was expected that the monitor interface is now in HT40 mode (able to receive on HT40) and on channel 5. But in reality, the device was now on channel 1 and used a 20MHz (non-HT) channel setting:
root@LEDE:/# iw dev phy#0 Interface mon0 ifindex 7 wdev 0x2 addr 00:11:22:33:44:55 type monitor channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz txpower 20.00 dBm