aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_sta.c
diff options
context:
space:
mode:
authorRon Rindjunsky <ron.rindjunsky@intel.com>2008-03-25 19:33:39 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-27 16:03:17 -0400
commit24709182754625829e499b5d628affa881d1dba0 (patch)
treee142264e7f36daad97136f05b5c434216863b2f7 /net/mac80211/debugfs_sta.c
parent775ea378fa04f39164f170f308ec467ee4ab6d34 (diff)
mac80211: fix wrong Rx A-MPDU control via debugfs
This patch eliminate the use of buf_size as a trigger in favor of a new flag to control Rx A-MPDU sessions through debugfs Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r--net/mac80211/debugfs_sta.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index fc2c1a192ed2..62354de0199f 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -230,11 +230,13 @@ static ssize_t sta_agg_status_write(struct file *file,
230 strcpy(state, "off "); 230 strcpy(state, "off ");
231 ieee80211_sta_stop_rx_ba_session(dev, da, tid_num, 0, 231 ieee80211_sta_stop_rx_ba_session(dev, da, tid_num, 0,
232 WLAN_REASON_QSTA_REQUIRE_SETUP); 232 WLAN_REASON_QSTA_REQUIRE_SETUP);
233 sta->ampdu_mlme.tid_rx[tid_num].buf_size = 0xFF; 233 sta->ampdu_mlme.tid_rx[tid_num].state |=
234 HT_AGG_STATE_DEBUGFS_CTL;
234 tid_static_rx[tid_num] = 0; 235 tid_static_rx[tid_num] = 0;
235 } else { 236 } else {
236 strcpy(state, "on "); 237 strcpy(state, "on ");
237 sta->ampdu_mlme.tid_rx[tid_num].buf_size = 0x00; 238 sta->ampdu_mlme.tid_rx[tid_num].state &=
239 ~HT_AGG_STATE_DEBUGFS_CTL;
238 tid_static_rx[tid_num] = 1; 240 tid_static_rx[tid_num] = 1;
239 } 241 }
240 printk(KERN_DEBUG "debugfs - try switching tid %u %s\n", 242 printk(KERN_DEBUG "debugfs - try switching tid %u %s\n",