From: Qasim Javed Date: Tue, 5 Jun 2012 06:25:44 +0000 (-0500) Subject: mac80211_hwsim: Set IEEE80211_STAT_ACK flag when userspace indicates that the frame... X-Git-Tag: v3.5-rc3~22^2~10^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06cf5c4c5bea549235da1aace86b90d4ad0084f8;p=platform%2Fkernel%2Flinux-3.10.git mac80211_hwsim: Set IEEE80211_STAT_ACK flag when userspace indicates that the frame has been acknowledged. The station fail average is not updated correctly since the IEEE80211_STAT_ACK flag is not set when using wmediumd with mac80211_hwsim. Set this flag when wmediumd indicates that the frame was successfully transmitted (eventually). Signed-off-by: Qasim Javed Signed-off-by: Javier Cardona Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 4c9336c..a0b7cfd 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1555,6 +1555,7 @@ static int hwsim_tx_info_frame_received_nl(struct sk_buff *skb_2, hdr = (struct ieee80211_hdr *) skb->data; mac80211_hwsim_monitor_ack(data2->hw, hdr->addr2); } + txi->flags |= IEEE80211_TX_STAT_ACK; } ieee80211_tx_status_irqsafe(data2->hw, skb); return 0;