#17759: rc.local can not run when boot
--------------------------+----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Resolution: | Keywords: rc.local
--------------------------+----------------------------------
Comment (by anonymous):
the 'legacy_rate' can not be supported, do nothing! bitrates raise to MAX
54Mbps.
{{{
option 'legacy_rate' '11'
}}}
----
root@HG556a:~# uci show wireless.radio1
wireless.radio1=wifi-device
wireless.radio1.type=mac80211
wireless.radio1.hwmode=11g
wireless.radio1.path=platform/ehci-platform/usb1/1-2/1-2.2/1-2.2:1.0
wireless.radio1.htmode=HT20
wireless.radio1.disabled=0
wireless.radio1.txpower=20
wireless.radio1.country=CN
wireless.radio1.legacy_rate=11
wireless.radio1.channel=12
root@HG556a:~# uci show wireless.@wifi-iface[1]
wireless.cfg063579=wifi-iface
wireless.cfg063579.network=wwan
wireless.cfg063579.ssid=MERCURY_837C
wireless.cfg063579.encryption=psk2
wireless.cfg063579.device=radio1
wireless.cfg063579.legacy_rate=11
wireless.cfg063579.mode=sta
----
root@HG556a:~# iwinfo wlan1 info
wlan1 ESSID: "MERCURY_xxxx"
Access Point: D0:C7:C0:D9:83:7C
Mode: Client Channel: 12 (2.467 GHz)
Tx-Power: 20 dBm Link Quality: 52/70
Signal: -58 dBm Noise: unknown
Bit Rate: 54.0 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11bg
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: no PHY name: phy1
----
then i try the method hotplug
{{{
root@HG556a:~# cat /etc/hotplug.d/iface/30-rtl8187
#!/bin/sh
[ "$ACTION" = 'ifup' -a "$DEVICE" = 'wlan1' ] && {
logger "setting bitrate for $DEVICE"
iw dev $DEVICE set bitrates legacy-2.4 '11'
}
}}}
your codes made a little mistake in "$DEVICE" = 'wlan1-1', it should be
"$DEVICE" = 'wlan1'.
then i reboot the route :
it works..... Thank for your good guide and reply.
----
wlan1 ESSID: "MERCURY_837C"
Access Point: D0:C7:C0:D9:83:7C
Mode: Client Channel: 12 (2.467 GHz)
Tx-Power: 20 dBm Link Quality: 60/70
Signal: -50 dBm Noise: unknown
Bit Rate: 11.0 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11bg
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: no PHY name: phy1
----
thanks again! bittorf@
--
Ticket URL: <https://dev.openwrt.org/ticket/17759#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets