[FS#3319] erratic behaviour wireless network control on system with three wireless phy

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Sat Sep 5 08:59:26 EDT 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - william wortel (wwortel) 

Attached to Project - OpenWrt/LEDE Project
Summary - erratic behaviour wireless network control on system with three wireless phy
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Device: Ubiquiti Routerstation (ar71xx)
Software: OpenWrt SNAPSHOT, r14382+7-ad0f0df909 (local compilation after Sep 3 2020 git pull)
Symptoms: commands like 'wifi up wlan1' on a system with wlan0, wlan1, and wlan2 (phy0,1,2) , make other wlanN disapperar than wlan1.
plus in dmesg messages like
[ n.n] do_page_fault(): sending SIGSEGV to hostapd for invalid write access to 00000000
[ n.n] epc = 77e79e6c in libc.so[77e4c000+9c000]
[ n.s] ra  = 77e1e309 in libubus.so[77e1c000+13000] 

Bug found through experimentation:
script: /lib/netifd/wireless/mac80211.sh
function: drv_mac80211_teardown()
line: json_select data
problem: 'data' does not produce phy, 'config' does.
corrected line: json_select config

Going though experimentations also found that there may be problems in
script: /lib/netifd/hostapd.sh
function: wpa_supplicant_run()
line: ubus call wpa_supplicant config_add 
and the lines that follow with parameters and line continuations.
Replaced:
	ubus call wpa_supplicant config_add "{ \
		\"driver\": \"${_w_driver:-wext}\", \"ctrl\": \"$_rpath\", \
		\"iface\": \"$ifname\", \"config\": \"$_config\" \
		${network_bridge:+, \"bridge\": \"$network_bridge\"} \
		${hostapd_ctrl:+, \"hostapd_ctrl\": \"$hostapd_ctrl\"} \
		}"
By:
	local br=${network_bridge:+',"bridge":"'$network_bridge'"'}
	local hc=${hostapd_ctrl:+',"hostapd_ctrl":"'$hostapd_ctrl'"'}
	local jsonstr='{"driver":"'${_w_driver:-wext}'","iface":"'${ifname}'"'${br}${hc}',"ctrl":"'${_rpath}'","config":"'${_config}'"}'
	ubus call wpa_supplicant config_add ${jsonstr}
	
because in a separate test script just to see the workings of the original I could not get it to work due to the nested parameter substitution.
Have removed all the \" as the " do not need to be escaped when within single quotes.

 

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3319

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list