diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-09 15:21:57 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-09 15:21:57 +0000 |
commit | 07a823fd30d8fdcd5e9c900cbf8f3e4e8c9d78e0 (patch) | |
tree | c1679e7df1037a11492990ea2b73d4ca765bb7fc /package/mac80211/patches | |
parent | 51633f949df7fa37fa9d8d9413d164b8c9a313f6 (diff) | |
download | upstream-07a823fd30d8fdcd5e9c900cbf8f3e4e8c9d78e0.tar.gz upstream-07a823fd30d8fdcd5e9c900cbf8f3e4e8c9d78e0.tar.bz2 upstream-07a823fd30d8fdcd5e9c900cbf8f3e4e8c9d78e0.zip |
mac80211: fix reading the station flags in debugfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26544 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/550-mac80211_remove_wds_sta_flag.patch | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/mac80211/patches/550-mac80211_remove_wds_sta_flag.patch b/package/mac80211/patches/550-mac80211_remove_wds_sta_flag.patch index f9925732bd..29c2fd7dad 100644 --- a/package/mac80211/patches/550-mac80211_remove_wds_sta_flag.patch +++ b/package/mac80211/patches/550-mac80211_remove_wds_sta_flag.patch @@ -18,6 +18,15 @@ WLAN_STA_BLOCK_BA = 1<<11, --- a/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 staflags & WLAN_STA_AUTHORIZED ? "AUTHORIZED\n" : "", staflags & WLAN_STA_SHORT_PREAMBLE ? "SHORT PREAMBLE\n" : "", |