Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #347 (reopened defect)

Opened 19 months ago

Last modified 19 months ago

Status page shows the wireless channel details incorrectly

Reported by: ferob Owned by:
Priority: major Milestone:
Component: LuCI Base Keywords: status page wifi channel
Cc:

Description

The status page shows the 802.11an wireless channel details incorrectly.
It shows the 802.11bgn wireless channel details here too.
It is "Channel: 6 (2.44 GHz)" in my case and it should be "Channel: 149 (5.75 GHz)".

Attachments

Change History

follow-up: ↓ 2   Changed 19 months ago by jow

What OpenWrt? version? What LuCI version? What router model? Whats in the wireless config? Whats in /var/state/wireless? Is it still wrogn after a reboot? Did you add/remove networks before it happened?

in reply to: ↑ 1   Changed 19 months ago by ferob

Attitude Adjustment (r28994), LuCI Trunk (trunk+svn7925), Netgear WNDR3700
I changed nothing and it is still wrong after a reboot.

/etc/config/wireless

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' 'xx:xx:xx:xx:xx:xx'
        option 'hwmode' '11ng'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'TX-STBC'
        list 'ht_capab' 'RX-STBC1'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'distance' '20'
        option 'country' 'US'
        option 'htmode' 'HT40-'
        option 'txpower' '10'
        option 'channel' '6'
        option 'disabled' '0'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'network' 'lan'
        option 'mode' 'ap'
        option 'encryption' 'psk2'
        option 'wps_pushbutton' '1'
        option 'ssid' 'r0'
        option 'hidden' '1'
        option 'key' '**********'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'network' 'guest'
        option 'mode' 'ap'
        option 'encryption' 'psk2'
        option 'wps_pushbutton' '1'
        option 'ssid' 'Guest'
        option 'hidden' '1'
        option 'key' '**********'
        option 'isolate' '1'

config 'wifi-device' 'radio1'
        option 'type' 'mac80211'
        option 'macaddr' 'yy:yy:yy:yyy:yy:yy'
        option 'hwmode' '11na'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'TX-STBC'
        list 'ht_capab' 'RX-STBC1'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'htmode' 'HT40+'
        option 'channel' '149'
        option 'distance' '20'
        option 'country' 'US'
        option 'txpower' '30'
        option 'disabled' '1'

config 'wifi-iface'
        option 'device' 'radio1'
        option 'network' 'lan'
        option 'mode' 'ap'
        option 'encryption' 'psk2'
        option 'wps_pushbutton' '1'
        option 'ssid' 'r1'
        option 'hidden' '1'
        option 'key' '**********'

config 'wifi-iface'
        option 'device' 'radio1'
        option 'network' 'guest'
        option 'mode' 'ap'
        option 'encryption' 'psk2'
        option 'wps_pushbutton' '1'
        option 'ssid' 'Guest5'
        option 'hidden' '1'
        option 'key' '**********'

/var/state/wireless

wireless.cfg033579.up=1
wireless.cfg033579.ifname=wlan0
wireless.cfg053579.up=1
wireless.cfg053579.ifname=wlan0-1

follow-up: ↓ 4   Changed 19 months ago by jow

  • status changed from new to closed
  • resolution set to fixed

Fixed with r7932 and r7933 - thanks!

in reply to: ↑ 3   Changed 19 months ago by ferob

  • status changed from closed to reopened
  • resolution fixed deleted

Okay, so there is something really messed up, because if I disable the whole radio0, then at the 802.11bgn wireless channel details the 802.11an wireless channel details shows up and if I enable the radio0 and disable radio1, then the 802.11bgn wireless channel details would be the above mentioned 802.11an wireless channel details.

If I disable the whole radio0 and radio1, then all is fine it shows channels correctly, but it shows 0.00GHz, which I know its because it is disabled, but if I only disable one of them then it shows the correct GHz.

The second thing which complicates the problem is that I have a guest network on radio0 and radio1 (so 2 networks on each radio). (All the 4 network has a different name.)
If I disable only radio0 guest network, then the main radio0 network's name becomes the disabled guest network's name on the status page and at the network/wifi section too (tab shows the incorrect name too) and it shows the network enabled wireless icon beside it at this places.
The same applies for radio1 if I do this.

By the way, there is a disable/enable button for each wireless network and it would be great if there could be a disable/enable button for the whole radio. (The whole radio could be disabled with one button if somebody wants to.)

  Changed 19 months ago by jow

Uhm, you did rebuild libiwinfo and installed it on your target?

  Changed 19 months ago by ferob

Not yet, but I don't know if the same cause these problems so I wanted to mention it.

follow-up: ↓ 8   Changed 19 months ago by jow

Ok, basically a value was incorrectly cached in libiwinfo, leading to "caching" effects if one radio is queried after the other. A simple commandline testcase is this:

lua -liwinfo -e 'print(iwinfo.nl80211.channel("radio0"), iwinfo.nl80211.channel("radio1"))'

The command should return a channel number for active phys and "nil" for disabled ones. Previously it used the phy of the last successful call instead of failing because the buffer holding the phy identifier did not cleared if a phy had no interfaces active on it.

in reply to: ↑ 7   Changed 19 months ago by ferob

It is still not good after the fix. The problems are the above mentions things, but I try to explain it again.

I have two wireless networks on radio0 and two on radio1.
So if all wireless networks enabled or disabled, then everything is fine and the channel numbers and the SSIDs are correct. (see  picture1)

So if I start from everything is enabled, then I disable radio1's "r1" and guest network... here comes the first problem, because radio1 channel number on the status page shows the radio0 channel number and GHz, plus the "Generic 802.11an Wireless Controller (radio1)" title changes to "Generic 802.11bg Wireless Controller (radio1)". (see  picture2)

After this if I enable radio1's guest network, then the radio1's "r1" network's name changes to my guest network's name on the status page and at the Network>Wifi section too and at the wifi section the tab name and the status also shows the guest network's details. (see  picture3)

Now if I disable the guest network and enable the "r1" network on radio1, then similiar thing happens. (see  picture4)

If I start to enable/disable radio0 networks like this, then exactly the same mentioned thing shows up.

follow-up: ↓ 10   Changed 19 months ago by jow

How are you disabling the networks? I assume you use the gui buttons?

in reply to: ↑ 9   Changed 19 months ago by ferob

Yes, with the buttons.

Add/Change #347 (Status page shows the wireless channel details incorrectly)

Author


E-mail address and user name can be saved in the Preferences.


Action
as reopened
 
Note: See TracTickets for help on using tickets.