Modify

Opened 3 years ago

Last modified 3 years ago

#18631 new defect

LUCI Realtime graphs, WDS wlanX.sta1 not showing any information

Reported by: anonymous Owned by:
Priority: normal Milestone: Chaos Calmer 15.05
Component: luci Version: Trunk
Keywords: Cc:

Description

Like topic says, with WDS enabled and a WDS client connected the wlan1.sta1 shows no data under "Realtime Wireless" tab, and all values shows zero.

All other realtime data shows normally.

I'm not entirely sure where the data is pulled from, but 'iwinfo' in the console shows data properly.

Attachments (3)

fix-sta-graph.patch (1.7 KB) - added by anonymous 3 years ago.
0001-Fix-graph-for-WDS-stations-in-Realtime-Wireless-wind.patch (1.9 KB) - added by anonymous 3 years ago.
git patch against luci git
0002-Fix-Realtime-Wireless-monitor.patch (1.4 KB) - added by anonymous 3 years ago.
uint16_t > uint32_t for rate seems to have fixed the erronous link speed readings

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by anonymous

comment:1 Changed 3 years ago by anonymous

Although the posted patch fixes the issue of WDS client (wlan.sta1 for example). There still seems to be some remaining issues with bandwidth reporting on all "Realtime Wireless" graphs, apparently it's not showing HT/VHT speeds. Unless something else is going on...

Changed 3 years ago by anonymous

git patch against luci git

comment:2 Changed 3 years ago by anonymous

Added a more proper patch against luci git tree..

However I can't seem to fix the wrong reported WiFi speeds (it's seems to cap at 64Mbit/s). For any adapter, WDS or not.

On occassion I've seen -255 values too for both rssi and noise. Although iwinfo in console are having no problems.

comment:3 Changed 3 years ago by anonymous

To continue on previous post, I have one client connected to wlan1.

iwinfo shows this:

wlan1     ESSID: "secret-link"
          Access Point: 11:22:33:44:55:66
          Mode: Master  Channel: 40 (5.200 GHz)
          Tx-Power: 20 dBm  Link Quality: 43/70
          Signal: -67 dBm  Noise: -91 dBm
          Bit Rate: 270.0 MBit/s
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11an
          Hardware: 168C:0033 168C:A120 [Atheros AR9580]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1

while in the "Realtime Wireless" window I see this for wlan1:

Phy Rate: 	7 Mbit/s 	Average: 	7 Mbit/s 	Peak: 	61 Mbit/s

This is a p2p link and it always stays around 270-300Mbps.

Changed 3 years ago by anonymous

uint16_t > uint32_t for rate seems to have fixed the erronous link speed readings

comment:4 Changed 3 years ago by anonymous

There also seems to be an issue regarding how the noise floor is calculated in luci-bwc.c, it's always off by (-)1 comparing to iwinfo and other informational pages. Not sure what to make of that as I see nothing wrong in the code(?).

comment:5 Changed 3 years ago by anonymous

Just realizing that luci-bwc generates files for each interface combination ethX.staY will fill up /tmp/lib/luci-bwc/radio with quite a bit of files.

Inside 0001-Fix-graph-for-WDS-stations-in-Realtime-Wireless-wind.patch
you might want to change:

for (j = 0; j < 255; j++)

with:

for (j = 0; j < 4; j++)

Why create all the files for the interfaces?

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.