howto config wifi in shell as web wireless/basic settings?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
kevintung5525
DD-WRT Novice


Joined: 17 Sep 2016
Posts: 5

PostPosted: Sun Apr 01, 2018 15:43    Post subject: howto config wifi in shell as web wireless/basic settings? Reply with quote
My router is Tplink TL841Nv9 with ddwrt-r31690,
the wifi will drop to a very low data rate occasionally.

I found when the wifi drop happens,
the result of 'iw ath0 info' is
Interface ath0
ifindex 6
wdev 0x2
addr 14:cc:20:b5:91:1e
type AP
wiphy 0
txpower 21.00 dBm

However, when wifi works normally,
the result of 'iw ath0 info' is
Interface ath0
ifindex 9
wdev 0x3
addr 14:cc:20:b5:91:1e
ssid kevin
type AP
wiphy 0
channel 3 (2422 MHz), width: 40 MHz, center1: 2432 MHz
txpower 21.00 dBm

And the wifi drop can be fixed manually by submit in the web 'wireless/basic settings', so I am wondering if it is possible to get the equivalent effect in shell command, thus the wifi drop issue could be workaround through crontab

It seems the ifconfig ath0 down and up doesnt work, the stopservice lan && startservice lan doesnt work either.
Sponsor
kevintung5525
DD-WRT Novice


Joined: 17 Sep 2016
Posts: 5

PostPosted: Sun Apr 01, 2018 17:33    Post subject: [Resolved] config wifi as web wireless/basic setting Reply with quote
I found the answer.
It seems the web will do a restart of hostapd and dnsmasq,
but a restart of the hostapd is enough.

killall hostapd && hostapd -B -P /var/run/ath0_hostapd.pid /tmp/ath0_hostap.conf
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2165
Location: Canada

PostPosted: Sun Apr 01, 2018 22:15    Post subject: Upgrade Reply with quote
Upgrade, it is probably not even an issue in newer builds. See the link in my signature.
_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.

Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
Netgear R7800 - gateway, DHCP, QoS, VPN
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
D-Link 615 C1 x 4 - not used
D-Link 615 E3 x 2 - not used
D-Link 825 B1 - WDS Station
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - WDS Station
UBNT loco M2 x2 - airOS

Broadcom
Asus N66U - backup Gateway
Netgear r6300 v1 - AP
Linksys E2500 - not used
Linksys EA2700 - not used
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - not used
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum