linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mac80211: allow low level drivers to report packet loss
@ 2011-04-18 11:22 Arik Nemtsov
  2011-04-18 11:22 ` [PATCH 2/2] wl12xx: support FW TX inactivity triggers Arik Nemtsov
  2011-04-18 12:26 ` [PATCH 1/2] mac80211: allow low level drivers to report packet loss Johannes Berg
  0 siblings, 2 replies; 10+ messages in thread
From: Arik Nemtsov @ 2011-04-18 11:22 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luciano Coelho, Johannes Berg, Arik Nemtsov

Add API that allows low level drivers to notify mac80211 about TX
packet loss. This is useful when there are FW triggers to notify the
low level driver about these events.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
---
 include/net/mac80211.h |   11 +++++++++++
 net/mac80211/status.c  |    8 ++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index cefe1b3..efbdda9 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2265,6 +2265,17 @@ void ieee80211_tx_status_irqsafe(struct ieee80211_hw *hw,
 				 struct sk_buff *skb);
 
 /**
+ * ieee80211_report_low_ack - report non-responding station
+ *
+ * When operating in AP-mode, call this function to report a non-responding
+ * connected STA.
+ *
+ * @sta: the non-responding connected sta
+ * @num_packets: number of packets sent to @sta without a response
+ */
+void ieee80211_report_low_ack(struct ieee80211_sta *sta, u32 num_packets);
+
+/**
  * ieee80211_beacon_get_tim - beacon generation function
  * @hw: pointer obtained from ieee80211_alloc_hw().
  * @vif: &struct ieee80211_vif pointer from the add_interface callback.
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 3ed3c83..1658efa 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -446,3 +446,11 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
 	dev_kfree_skb(skb);
 }
 EXPORT_SYMBOL(ieee80211_tx_status);
+
+void ieee80211_report_low_ack(struct ieee80211_sta *pubsta, u32 num_packets)
+{
+	struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
+	cfg80211_cqm_pktloss_notify(sta->sdata->dev, sta->sta.addr,
+				    num_packets, GFP_ATOMIC);
+}
+EXPORT_SYMBOL(ieee80211_report_low_ack);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-04-26 19:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 11:22 [PATCH 1/2] mac80211: allow low level drivers to report packet loss Arik Nemtsov
2011-04-18 11:22 ` [PATCH 2/2] wl12xx: support FW TX inactivity triggers Arik Nemtsov
2011-04-26  5:02   ` Arik Nemtsov
2011-04-18 12:26 ` [PATCH 1/2] mac80211: allow low level drivers to report packet loss Johannes Berg
2011-04-18 20:44   ` Arik Nemtsov
2011-04-19 12:36     ` Johannes Berg
2011-04-19 21:54       ` Arik Nemtsov
2011-04-20  8:08         ` Johannes Berg
2011-04-26 19:12           ` John W. Linville
2011-04-26 19:35             ` Arik Nemtsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).