newracom / nrc7292_sw_pkg

NRC7292 Software Package for Host mode (Linux OS)
http://www.newracom.com/product
GNU General Public License v2.0
58 stars 27 forks source link

Failed to initialize hostapd interface for mesh. #36

Closed synaption closed 1 year ago

synaption commented 2 years ago

I'm trying to run start.py to set up a mesh portal. Things look like they are going well until wpa_supplicant tries to initialize the interface. I am also not sure if the channel pair not allowed message matters. Any idea where I'm going wrong?

$ python nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/start.py 4 3 US 0
Done.
Done.
------------------------------
Model            : 7292
STA Type         : MESH
Country          : US
Security Mode    : WPA3-SAE
CAL. USE         : ON
AMPDU            : ON
Download FW      : uni_s1g.bin
TX Power         : 17
Mesh Mode        : Mesh Portal
------------------------------
NRC MESH setting for HaLow...
[*] Set Max CPU Clock on RPi
[0] Clear
wpa_supplicant: no process found
hostapd: no process found
wireshark-gtk: no process found
rmmod: ERROR: Module nrc is not currently loaded
rm: can't remove '/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/conf/temp_self_config.conf': No such file or directory
[ 5731.442686] audit: type=1325 audit(1655868925.759:8): table=nat family=2 entries=0 op=xt_register pid=1270926 comm="modprobe"
[ 5731.454669] audit: type=1325 audit(1655868925.771:9): table=nat family=2 entries=5 op=xt_replace pid=1270916 comm="iptables"
[ 5731.491099] audit: type=1325 audit(1655868925.807:10): table=filter family=2 entries=4 op=xt_replace pid=1270939 comm="iptables"
[1] Copy
total 648
drwxr-xr-x    2 user     user          4096 Jun 22 03:35 .
drwxr-xr-x    4 user     user          4096 Jun 11 03:18 ..
-rwxr-xr-x    1 user     user           491 Jun 17 18:43 copy
-rwxr-xr-x    1 user     user           562 Jun 11 03:18 nrc7292_bd.dat
-rwxr-xr-x    1 user     user        323076 Jun 11 03:18 nrc7292_cspi.bin
-rwxr-xr-x    1 root     root        323076 Jun 22 03:35 uni_s1g.bin
-rwxr-xr-x    1 root     root        323076 Jun 22 03:35 /lib/firmware/uni_s1g.bin
====================================
 MESH INTERFACE   : wlan0 
 USE DHCP Client 
====================================
Config for Mesh Portal is done!
IP and DHCP config done
[2] Set Module Parameters
[3] Loading module
sudo insmod /lib/modules/5.10.92-v8/extra/nrc.ko  hifspeed=2000000 spi_bus_num=0 spi_cs_num=0 spi_gpio_irq=5 spi_gpio_poll=-1 fw_name=uni_s1g.bin power_save=0 ndp_preq=1 auto_ba=1 sw_enc=1 listen_interval=1000 credit_ac_be=40
x
[ 5733.039142] start FW 321
[ 5734.821509] end FW
spi_gpio_poll
[4] Set tx power
Tx power : 17                   Calibration_use : ON
OK
Board Data use                   : off
OK
[5] Set guard interval
guard interval : long
OK
[6] Set cal_use
Calibration_use : on                    Country  : US
OK
[*] Start DHCPCD and DNSMASQ
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xeu dnsmasq.service" for details.
wpa_supplicant: no process found
[7] Start wpa_supplicant on wlan0
Successfully initialized wpa_supplicant
[ 5744.942164] Failed to load board data, error:1
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
HT40 channel pair (159, 155) not allowed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED 
wlan0: Unable to setup interface.
Failed to initialize hostapd interface for mesh
wlan0: Failed to init mesh
wlan0: leaving mesh
wlan0: interface state DISABLED->DISABLED
wlan0: AP-DISABLED 
hostapd_free_hapd_data: Interface wlan0 wasn't started
wlan0: mesh leave error=-107
wlan0: Could not join mesh
[8] Start NAT
[ 5745.939412] audit: type=1325 audit(1655868940.255:11): table=filter family=2 entries=4 op=xt_replace pid=1274181 comm="iptables"
[ 5745.978409] audit: type=1325 audit(1655868940.295:12): table=nat family=2 entries=5 op=xt_replace pid=1274189 comm="iptables"
[ 5746.018299] audit: type=1325 audit(1655868940.335:13): table=filter family=2 entries=4 op=xt_replace pid=1274201 comm="iptables"
[ 5746.068107] audit: type=1325 audit(1655868940.383:14): table=nat family=2 entries=5 op=xt_replace pid=1274209 comm="iptables"
[ 5746.105864] audit: type=1325 audit(1655868940.419:15): table=filter family=2 entries=5 op=xt_replace pid=1274221 comm="iptables"
[ 5746.145032] audit: type=1325 audit(1655868940.459:16): table=nat family=2 entries=6 op=xt_replace pid=1274228 comm="iptables"
Waiting for IP
Waiting for IP
Waiting for IP
Waiting for IP
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Traceback (most recent call last):
  File "/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/start.py", line 725, in <module>
    run_mpp('wlan0', str(sys.argv[3]), strSecurity(), supplicant_debug, peer, static_ip)
  File "/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/mesh.py", line 134, in run_mpp
    time.sleep(1)
KeyboardInterrupt

I'm using buildroot with the 64 bit 5.10 kernel on a pi4 with the sx-newah US dev board.

synaption commented 2 years ago

I found some additional debugging info for the wpa_supplicant command.

$ sudo wpa_supplicant -dd -i wlan0 -c /home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/conf/US/mp_halow_sae.conf 1 
evk/sw_pkg/nrc_pkg/script/conf/US/mp_halow_sae.conf 1 
wpa_supplicant v2.10
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/conf/US/mp_halow_sae.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/conf/US/mp_halow_sae.conf' -> '/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/conf/US/mp_halow_sae.conf'
Reading configuration file '/home/br2rauc/nrc7292_sw_pkg/package/host/evk/sw_pkg/nrc_pkg/script/conf/US/mp_halow_sae.conf'
ctrl_interface='/var/run/wpa_supplicant'
country='US'
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=8):
     6e 72 63 5f 6d 65 73 68                           nrc_mesh        
mode=5 (0x5)
scan_ssid=1 (0x1)
proto: 0x2
key_mgmt: 0x400
pairwise: 0x10
group: 0x10
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
ieee80211w=2 (0x2)
beacon_int=100 (0x64)
frequency=5795 (0x16a3)
dot11MeshRetryTimeout=1000 (0x3e8)
dot11MeshHoldingTimeout=400 (0x190)
dot11MeshMaxRetries=4 (0x4)
mesh_rssi_threshold=0 (0x0)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
p2p_disabled=1
ignore_old_scan_res=1
Priority group 0
   id=0 ssid='nrc_mesh'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supports Probe Response offload in AP mode
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=176
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=240
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=241
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=242
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=243
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=244
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=224
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=225
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=226
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=227
nl80211: Supported vendor command: vendor_id=0xfcffaa subcmd=228
nl80211: Supported vendor event: vendor_id=0xfcffaa subcmd=0
nl80211: Supported vendor event: vendor_id=0xfcffaa subcmd=1
nl80211: use P2P_DEVICE support
nl80211: key_mgmt=0x1ff0f enc=0x18f auth=0x7 flags=0x4000511f3e3d8e0 rrm_flags=0x10 probe_resp_offloads=0x6 max_stations=0 max_remain_on_chan=1000 max_scan_ssids=2
nl80211: interface wlan0 in phy nrc80211
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x558ca773c0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0409506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=7f506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0409506f9a1a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0801 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0a07 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0a11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1101 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1102 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0505 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0500 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1301 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1305 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=7e506f9a1a multicast=0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio nrc80211
nl80211: Regulatory information - country=US (DFS-FCC)
nl80211: 2400-2472 @ 40 MHz 30 mBm
nl80211: 5150-5250 @ 80 MHz 23 mBm
nl80211: 5250-5350 @ 80 MHz 23 mBm (DFS)
nl80211: 5470-5730 @ 160 MHz 23 mBm (DFS)
nl80211: 5730-5850 @ 80 MHz 30 mBm
nl80211: 57240-71000 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[DISABLED] 2472[DISABLED] 2484[DISABLED]
nl80211: Mode IEEE 802.11a: 5180 5185 5190 5195 5200 5205 5210 5215 5220 5225 5230 5235 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5745 5750 5755 5760 5765
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[DISABLED] 2472[DISABLED] 2484[DISABLED]
wlan0: Own MAC address: 84:25:3f:98:b5:ca
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlan0: WPS: UUID based on MAC address: 39e0a5fc-24cd-5e66-9f54-b82dba9ab26b
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
wlan0: State: DISCONNECTED -> SCANNING
Scan SSID - hexdump_ascii(len=8):
     6e 72 63 5f 6d 65 73 68                           nrc_mesh        
wlan0: Include wildcard SSID in the scan request
wlan0: Add radio work 'scan'@0x558ca7b3c0
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x558ca7b3c0 after 0.000068 second wait
wlan0: nl80211: scan request
nl80211: Scan SSID nrc_mesh
nl80211: Scan SSID 
nl80211: Scan extra IEs - hexdump(len=15): 7f 0b 00 00 00 00 00 00 40 40 00 00 20 72 00
nl80211: Scan frequency 5795 MHz
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Event message available
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (47) received
wlan0: Own scan request started a scan in 0.000229 seconds
nl80211: Event message available
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID 'nrc_mesh'
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 5795
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 0.258819 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 1
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x558ca7b3c0 done in 0.260405 seconds
wlan0: radio_work_free('scan'@0x558ca7b3c0): num_active_works --> 0
wlan0: No suitable network found
wlan0: Setup a new network
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 2
IBSS/mesh: setup freq channel 159, sec_channel_offset -1
Determining HT/VHT options based on driver capabilities (freq=5795 chan=159)
Enable HT support (p2p_group=0 11a=1 ht40_hw_capab=1 ssid->ht40=-1)
HT secondary channel offset -1 for AP
nl80211: Set mode ifindex 3 iftype 7 (MESH_POINT)
nl80211: Failed to set interface 3 to mode 7: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 3 iftype 7 (MESH_POINT)
nl80211: Mode change succeeded while interface is down
nl80211: Unsubscribe mgmt frames handle 0x888888dd042ffb49 (mode change)
nl80211: Subscribe to mgmt frames with mesh handle 0x558ca773c0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x558ca773c0 match= multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0f01 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0f02 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0f03 multicast=0
phy: nrc80211
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=US (DFS-FCC)
nl80211: 2400-2472 @ 40 MHz 30 mBm
nl80211: 5150-5250 @ 80 MHz 23 mBm
nl80211: 5250-5350 @ 80 MHz 23 mBm (DFS)
nl80211: 5470-5730 @ 160 MHz 23 mBm (DFS)
nl80211: 5730-5850 @ 80 MHz 30 mBm
nl80211: 57240-71000 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[DISABLED] 2472[DISABLED] 2484[DISABLED]
nl80211: Mode IEEE 802.11a: 5180 5185 5190 5195 5200 5205 5210 5215 5220 5225 5230 5235 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5745 5750 5755 5760 5765
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[DISABLED] 2472[DISABLED] 2484[DISABLED]
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=37 freq=5185 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=38 freq=5190 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=39 freq=5195 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=41 freq=5205 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=42 freq=5210 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=43 freq=5215 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=45 freq=5225 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=46 freq=5230 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=47 freq=5235 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=150 freq=5750 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=151 freq=5755 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=152 freq=5760 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=154 freq=5770 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=155 freq=5775 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=156 freq=5780 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=158 freq=5790 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=159 freq=5795 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=160 freq=5800 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=162 freq=5810 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=163 freq=5815 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=164 freq=5820 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=30 dBm
HT40: control channel: 159 (5795 MHz), secondary channel: 155 (5775 MHz)
HT40 channel pair (159, 155) not allowed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED 
wlan0: Unable to setup interface.
Failed to initialize hostapd interface for mesh
wlan0: Failed to init mesh
wlan0: leaving mesh
hostapd_interface_deinit(0x558ca83590)
wlan0: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: Flushing old station entries
nl80211: flush -> DEL_STATION wlan0 (all)
wlan0: Deauthenticate all stations
wlan0: AP-DISABLED 
hostapd_cleanup(hapd=0x558ca83f60 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_free(0x558ca83590)
hostapd_interface_free: free hapd 0x558ca83f60
hostapd_cleanup_iface(0x558ca83590)
hostapd_cleanup_iface_partial(0x558ca83590)
hostapd_cleanup_iface: free iface=0x558ca83590
nl80211: mesh leave (ifindex=3)
nl80211: mesh leave failed: ret=-107 (Transport endpoint is not connected)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Mode change succeeded while interface is down
nl80211: Unsubscribe mgmt frames handle 0x888888dd042ffb49 (mode change)
nl80211: Subscribe to mgmt frames with non-AP handle 0x558ca773c0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=040d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=090d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0409506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=7f506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0409506f9a1a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0801 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0a07 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0a11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1101 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1102 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0505 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=0500 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1301 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=1305 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x558ca773c0 match=7e506f9a1a multicast=0
wlan0: mesh leave error=-107
nl80211: Set wlan0 operstate 0->1 (UP)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
wlan0: Could not join mesh
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=3 ifname=wlan0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan0 is up
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan0 is up
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
l2_packet_receive - recvfrom: Network is down
wlan0: Removing interface wlan0
nl80211: Getting wowlan status
nl80211: wowlan is disabled
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=SCANNING
TDLS: Tear down peers
wlan0: State: SCANNING -> DISCONNECTED
nl80211: Set wlan0 operstate 1->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
QM: Clear all active DSCP policies
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wlan0: WPA: Clear old PMK and PTK
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
Off-channel: Action frame sequence done notification: pending_action_tx=(nil) drv_offchan_tx=1 action_tx_wait_time=0 off_channel_freq=0 roc_waiting_drv_freq=0
QM: Clear all active DSCP policies
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Remove interface wlan0 from radio nrc80211
Remove radio nrc80211
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x888888dd042ffb49 (mode change)
wlan0: CTRL-EVENT-TERMINATING 
synaption commented 2 years ago

It looks like it works if I use the Japanese config. Why doesn't the American config work? frequency, freq_list, scan_freq seem to control the channel.

enganguish commented 2 years ago

Hi @synaption ,

This channel related issue occured by the changes in wpa_supplicant v2.10.

HT40: control channel: 159 (5795 MHz), secondary channel: 155 (5775 MHz) HT40 channel pair (159, 155) not allowed wlan0: interface state UNINITIALIZED->DISABLED wlan0: AP-DISABLED

Please just comment out the line below. Then, you can solve the problem. https://github.com/newracom/nrc7292_sw_pkg/blob/e35a67a8d359f2ad2cf0099aa14dd1e68c89fb63/package/host/src/nrc/nrc-mac80211.c#L3543

A next revision(v1.3.4_rev04) including this would be released soon.

synaption commented 1 year ago

Seems like the US setting works now.