wlan0 radio in non-working state, how to remediate?

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
inetquestion
DD-WRT User


Joined: 24 Sep 2015
Posts: 67

PostPosted: Mon Aug 07, 2023 15:40    Post subject: wlan0 radio in non-working state, how to remediate? Reply with quote
Linksys WRT3200ACM - DD-WRT r53339


For reason's I've not been able to capture, one or both wifi radios sometimes do not start after a reboot. On android phones there will be an exclamation next to the wifi icon indicating there is some internet connectivity problem. Other devices connect to another wifi AP with no issues.

Today I've found one of the radios (wlan0) in this weird state, where the channel, power, and type entries are different than when it's working normally (details below). After restarting the device with no other changes made, things typically return to normal.

Finding the root cause would be optimal, however there are no obvious errors in /var/log/messages as to why it failed or that it failed at all. For the meantime, automating finding and fixing appears possible. Is this the best/correct way to restart a wifi radio? Details on the proper way appear to vary widely over time...


service radio_off start
service radio_on start

clear; iw dev wlan0 info

###################
### Non-working ###
###################
Interface wlan0
ifindex 10
wdev 0x2
addr 00:00:00:00:00:00
type managed
wiphy 0
txpower 24.00 dBm

###############
### Working ###
###############
Interface wlan0
ifindex 10
wdev 0x2
addr 00:00:00:00:00:00
ssid 000000000000
type AP
wiphy 0
channel 157
txpower 5.00 dBm
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1638

PostPosted: Mon Aug 07, 2023 17:55    Post subject: Reply with quote
Response in no particular order, save and except for point 1:
  1. This is not an advanced networking subject.
  2. Amplifying information as to which radio this is about.
  3. The 'second' 5GHz radio is for DFS radar detection and has no antenna.
  4. The only radios to worry about are the ones using the 88W8964 chip, not the 88W8887 chip.
  5. It has always been advised both here and in the OpenWRT community to disable the 88W8887 radio.

https://wikidevi.wi-cat.ru/Linksys_WRT3200ACM

https://openwrt.org/toh/hwdata/linksys/linksys_wrt3200acm

https://openwrt.org/toh/linksys/wrt_ac_series

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
inetquestion
DD-WRT User


Joined: 24 Sep 2015
Posts: 67

PostPosted: Mon Aug 07, 2023 18:59    Post subject: Reply with quote
Seems there is no way to tell why radio is malfunctioning? Keep restarting until it works...

the 2nd 5ghz radio was already disabled; not in question.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1638

PostPosted: Mon Aug 07, 2023 19:15    Post subject: Reply with quote
Screenshots to prove the validity of your statement as wlan0 would be the 2.4 band if the interface renaming was straight across the board from athX to wlanX: Since your "working" example states "wlan0" but shows a 5GHz band channel, your information is suspect. EDIT: But I could be in error here, as "wlan2" should be the DFS radio. Either way, we need screenshots to see if your configuration is in error.

DD-WRT Installation, Upgrade & Basic Setup–Cliff Notes wrote:
Note: Dual-Band Routers do this for both bands: ath0 and ath1.

Note: The WRT3200ACM Firmware has a third WLAN (ath2). While some have had limited success enabling it it is recommended that it be Disabled. It was intended for DFS Radar Detection.
*This does not give you a Tri-Band Router.
More information can be found here:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=1050614#1050614
An explanation of DFS Radar Detection can be found here:
http://wifi-insider.com/wlan/dfs.htm
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12499
Location: Netherlands

PostPosted: Mon Aug 07, 2023 20:27    Post subject: Reply with quote
Moved to the appropriate forum
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 13903
Location: Texas, USA

PostPosted: Mon Aug 07, 2023 20:43    Post subject: Reply with quote
There are only two reasons why the wifi radios will not start. Hardware failure due to lack of adding a cooling fan / environmental influence (electrical storm/surge) or bad / corrupt configuration. Please post screenshots of your wifi settings for review, thanks. It would also help to post output of 'cat /var/log/messages' from cold boot - especially with 'nvram set console_debug=1 && nvram commit' completed beforehand. Of course, we'll probably just dick around in yet another thread started by you without any solution achieved, so I'm probably wasting keystrokes here.

EDIT: A hard reset and rebuild configs from scratch is probably warranted given recent thread content.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
inetquestion
DD-WRT User


Joined: 24 Sep 2015
Posts: 67

PostPosted: Tue Aug 08, 2023 17:19    Post subject: Reply with quote
Script running every hour to check if wifi was showing working state by running: "iw wlan0 info". If found in a bad state, all info is logged. While in a good state, only channel is logged. During this time, power went out multiple times. Caught a 3+ hour problem. This does align with your theory for dirty restarts. However this also happens on occasion from a restart initiated via cron when no other changes have been made to the system. A reboot fixes this every time. I'll add the additional information you've asked for as time permits. No reason to over speculate or assume a problem can only be solved one way. :)

While knowing the root cause is optimal, detecting the problem and being able to automate corrective actions may take precedent over a needlessly long back and forth. No offense intended toward anyone; it is what it is. Time will tell.




[code]
2023.08.07-17.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.07-18.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.07-19.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.07-20.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.07-21.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.07-22.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.07-23.00.00,n/a
23:00:00 up 39 min, load average: 0.00, 0.00, 0.00
Interface wlan0
ifindex 10
wdev 0x2
addr 00:00:00:00:00:xx
type managed
wiphy 0
txpower 24.00 dBm

2023.08.08-00.00.00,n/a
00:00:00 up 1:39, load average: 0.00, 0.00, 0.00
Interface wlan0
ifindex 10
wdev 0x2
addr 00:00:00:00:00:xx
type managed
wiphy 0
txpower 24.00 dBm

2023.08.08-01.00.00,n/a
01:00:00 up 2:39, load average: 0.00, 0.00, 0.00
Interface wlan0
ifindex 10
wdev 0x2
addr 00:00:00:00:00:xx
type managed
wiphy 0
txpower 24.00 dBm

2023.08.08-02.00.00,n/a
02:00:00 up 3:39, load average: 0.00, 0.00, 0.00
Interface wlan0
ifindex 10
wdev 0x2
addr 00:00:00:00:00:xx
type managed
wiphy 0
txpower 24.00 dBm

2023.08.08-03.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.08-04.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.08-05.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.08-06.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
2023.08.08-07.00.00,channel 157 (5785 MHz), width: 80 MHz, center1: 5775 MHz
[/code]
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 13903
Location: Texas, USA

PostPosted: Tue Aug 08, 2023 17:50    Post subject: Reply with quote
First world problem, self-induced, nothing more. Otherwise, this thread would be filled with corroboration. No offense intended Rolling Eyes
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
inetquestion
DD-WRT User


Joined: 24 Sep 2015
Posts: 67

PostPosted: Tue Aug 08, 2023 20:18    Post subject: Reply with quote
Ah yes, the ole self-induced power outage. Haha...

Get off your high horse dude. If you have a suggestion which produces a better result than using a feature of the product (schedule reboot), which sometimes produces ill results I'm all ears. The script didn't cause the problem, it's being used to troubleshoot it. If you find that crazy also, i'm sorry.


TIA
inetquestion
DD-WRT User


Joined: 24 Sep 2015
Posts: 67

PostPosted: Wed Aug 09, 2023 17:43    Post subject: Reply with quote
Checks health of wlan0 & wlan1. Restarts afflicted radio if viable 'channel' is not found. Enable jffs support, then create cron job as follows:

### Runs once per hour
0 * * * * root /jffs/./dd-wrt_wifi_monitor.sh
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1638

PostPosted: Wed Aug 09, 2023 18:54    Post subject: Reply with quote
And still no screenshots of applicable configuration information, complete system logs, or applicable output of nvram show, etc., but you still want help.

Forum guidelines and pointers, read first!

Official Forum Guidelines...How to get help the right way

Also, you have to reboot after setting console_debug=1, don't you?

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
inetquestion
DD-WRT User


Joined: 24 Sep 2015
Posts: 67

PostPosted: Wed Aug 09, 2023 20:07    Post subject: Reply with quote
Stopped asking for help when replies asking for information that's not needed as well as presumptuous and sarcastic replies were all that came. Why would you need screenshots of wifi config when an unexpected power cycle or problem due to rebooting is what happened and another reboot fixes it? It's clearly not a config problem.

Solved it with the aforementioned script; finds and fixes problem within 12 seconds.

No interest in arguing with the peanut gallery... because you're of course right, despite not being helpful.

Be well and have fun!
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1152

PostPosted: Thu Aug 10, 2023 7:32    Post subject: Reply with quote
I know I am late responding to this thread, I wanted to get back to it as soon as I got home from work but I forgot about it\ until now.

dale_gribble39 wrote:
Screenshots to prove the validity of your statement as wlan0 would be the 2.4 band if the interface renaming was straight across the board from athX to wlanX: Since your "working" example states "wlan0" but shows a 5GHz band channel


Correction. wlan0 is the 5ghz radio, wlan1 is the 2.4ghz radio, wlan2 is the, according to dd-wrts interface, "2.4ghz/5ghz DFS radio"

@inetquestion

You come here asking for help, you give us what we ask you to give us regardless. Why should we help you if you choose not to help us help you?

_________________
For people who are new to the dd-wrt forums >> http://www.catb.org/~esr/faqs/smart-questions.html#rtfm

barryware wrote:
It takes a "community" to raise a router..


Internet Connection 1
Some Techicolor modem > Linksys WRT3200ACM

Internet connection 2
Ubiquiti Powerbeam Gen 2 > Netgear R9000

Official (but not really) dd-wrt General Discussion element/matrix chat

https://matrix.to/#/#dd-wrt-private-non-offical:matrix.org
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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