Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MeshPoint config in LuCI broken in Factory iamge #10

Open
darkdrgn2k opened this issue Jul 8, 2018 · 0 comments
Open

MeshPoint config in LuCI broken in Factory iamge #10

darkdrgn2k opened this issue Jul 8, 2018 · 0 comments

Comments

@darkdrgn2k
Copy link
Contributor

Factory LEDE/OpenWRT is broken for mesh point

Fixes as such

sed -i 's#iw dev "$ifname" mesh join "$mesh_id" freq $freq $mesh_htmode \\#iw dev "$ifname" mesh join "$ssid" freq $freq $mesh_htmode \\#' /lib/netifd/wireless/mac80211.sh
sed -i 's#htmode:value\("HT40", "40MHz"\)#htmode:value\("HT40+", "40MHz+"\)#' /usr/lib/lua/luci/model/cbi/admin_network/wifi.lua
sed -i "s#'HT40', '40 MHz', htmodes.HT40#'HT40+', '40 MHz', htmodes.HT40#"  /usr/lib/lua/luci/view/cbi/wireless_modefreq.htm

Patch files for the same

--- /lib/netifd/wireless/mac80211.sh.orig	2018-06-22 23:47:52.000000000 +0000
+++ /lib/netifd/wireless/mac80211.sh	2018-06-23 00:00:18.000000000 +0000
@@ -674,7 +674,7 @@
 				esac
 
 				freq="$(get_freq "$phy" "$channel")"
-				iw dev "$ifname" mesh join "$mesh_id" freq $freq $mesh_htmode \
+				iw dev "$ifname" mesh join "$ssid" freq $freq $mesh_htmode \
 					${mcval:+mcast-rate $mcval} \
 					beacon-interval $beacon_int
 			fi


--- /usr/lib/lua/luci/model/cbi/admin_network/wifi.lua.orig	2017-07-26 22:50:23.000000000 +0000
+++ /usr/lib/lua/luci/model/cbi/admin_network/wifi.lua	2017-07-26 22:51:02.000000000 +0000
@@ -295,7 +295,7 @@
 		htmode:depends("hwmode", "11na")
 		htmode:depends("hwmode", "11n")
 		htmode:value("HT20", "20MHz")
-		htmode:value("HT40", "40MHz")
+		htmode:value("HT40+", "40MHz +")
 	end
 
 	ant1 = s:taboption("advanced", ListValue, "txantenna", translate("Transmitter Antenna"))

--- /usr/lib/lua/luci/view/cbi/wireless_modefreq.htm.orig	2018-06-23 00:08:25.000000000 +0000
+++ /usr/lib/lua/luci/view/cbi/wireless_modefreq.htm	2018-06-23 00:08:32.000000000 +0000
@@ -33,7 +33,7 @@
 		],
 		'n':  [
 			'HT20', '20 MHz', htmodes.HT20,
-			'HT40', '40 MHz', htmodes.HT40
+			'HT40+', '40 MHz', htmodes.HT40
 		],
 		'ac': [
 			'VHT20', '20 MHz', htmodes.VHT20,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant