mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
mac80211: fix reading the station flags in debugfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26544 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -18,6 +18,15 @@
|
|||||||
WLAN_STA_BLOCK_BA = 1<<11,
|
WLAN_STA_BLOCK_BA = 1<<11,
|
||||||
--- a/net/mac80211/debugfs_sta.c
|
--- a/net/mac80211/debugfs_sta.c
|
||||||
+++ b/net/mac80211/debugfs_sta.c
|
+++ b/net/mac80211/debugfs_sta.c
|
||||||
|
@@ -59,7 +59,7 @@ static ssize_t sta_flags_read(struct fil
|
||||||
|
char buf[100];
|
||||||
|
struct sta_info *sta = file->private_data;
|
||||||
|
u32 staflags = get_sta_flags(sta);
|
||||||
|
- int res = scnprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s%s%s",
|
||||||
|
+ int res = scnprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s%s",
|
||||||
|
staflags & WLAN_STA_AUTH ? "AUTH\n" : "",
|
||||||
|
staflags & WLAN_STA_ASSOC ? "ASSOC\n" : "",
|
||||||
|
staflags & WLAN_STA_PS_STA ? "PS (sta)\n" : "",
|
||||||
@@ -67,7 +67,6 @@ static ssize_t sta_flags_read(struct fil
|
@@ -67,7 +67,6 @@ static ssize_t sta_flags_read(struct fil
|
||||||
staflags & WLAN_STA_AUTHORIZED ? "AUTHORIZED\n" : "",
|
staflags & WLAN_STA_AUTHORIZED ? "AUTHORIZED\n" : "",
|
||||||
staflags & WLAN_STA_SHORT_PREAMBLE ? "SHORT PREAMBLE\n" : "",
|
staflags & WLAN_STA_SHORT_PREAMBLE ? "SHORT PREAMBLE\n" : "",
|
||||||
|
|||||||
Reference in New Issue
Block a user