gwlim / Openwrt_Firmware

Repository Deprecated refer to
https://github.com/gwlim/openwrt-sfe-flowoffload
32 stars 10 forks source link

incorrect txpower restriction for US regulatory domain? #4

Closed knacky closed 10 years ago

knacky commented 10 years ago

I picked up a TL-WR1043ND (ver 1.11) today specifically for trying this custom AA build. Using the stock tplink firmware the unit had worked fine, with excellent wireless signal to the 2nd floor.

I then flashed the July release found here... https://github.com/gwlim/Openwrt_Firmware/blob/master/TP-Link_TL-WR1043ND/Attitude_Adjustment/July-2014-Image/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin

The flash was successful and the unit works fine for wired connections. However signal was now almost non-existent on the 2nd floor. Checking wifi interface in LuCI, it was showing 5 dBm tx power. Regulatory domain was set to US. Manually setting " option txpower '23' " in /etc/config/wireless is ignored. The OpenWRT wiki for TL-WR1043ND says its capable of 24 dBm.

Changing regulatory domain to Canada allowed 23 dBm tx power and signal on the 2nd floor was identical to what it looked like with stock tplink firmware. Is the tx power restriction assigned to the US regulatory domain incorrect?

I'm not sure if this is related, but changing the regulatory domain in LuCI results in the following error regardless if I am changing it to US or CA. Even though the error occurs, /etc/config/wireless is still updated correctly.

500 Internal Server Error

Sorry, the server encountered an unexpected error.

/usr/lib/lua/luci/dispatcher.lua:384: Failed to execute arcombine dispatcher target for entry '/admin/network/wireless/radio0.network1'. The called action terminated with an exception: /usr/lib/lua/luci/template.lua:48: Failed to execute template 'cbi/map'. A runtime error occured: /usr/lib/lua/luci/template.lua:48: Failed to execute template 'cbi/nsection'. A runtime error occured: /usr/lib/lua/luci/template.lua:48: Failed to execute template 'cbi/ucisection'. A runtime error occured: /usr/lib/lua/luci/template.lua:48: Failed to execute template 'cbi/tabcontainer'. A runtime error occured: /usr/lib/lua/luci/template.lua:48: Failed to execute template 'cbi/network_netlist'. A runtime error occured: /usr/lib/lua/luci/model/network.lua:223: attempt to call a nil value stack traceback: [C]: in function 'assert' /usr/lib/lua/luci/dispatcher.lua:384: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:139: in function

gwlim commented 10 years ago

Please try erasing /etc/wireless and start from scratch. Sry for not noticing the issue.