mac80211: implement packet loss notification

For drivers that have accurate TX status reporting
we can report the number of consecutive lost packets
to userspace using the new cfg80211 CQM event. The
threshold is fixed right now, this may need to be
improved in the future.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
此提交包含在:
Johannes Berg
2010-11-24 08:10:06 +01:00
提交者 John W. Linville
父節點 c063dbf52b
當前提交 99ba2a1428
共有 2 個檔案被更改,包括 25 行新增0 行删除

查看文件

@@ -248,6 +248,7 @@ enum plink_state {
* @sta: station information we share with the driver
* @dead: set to true when sta is unlinked
* @uploaded: set to true when sta is uploaded to the driver
* @lost_packets: number of consecutive lost packets
*/
struct sta_info {
/* General information, mostly static */
@@ -335,6 +336,8 @@ struct sta_info {
} debugfs;
#endif
unsigned int lost_packets;
/* keep last! */
struct ieee80211_sta sta;
};