Return-path: Received: from ip-relay-001.utdallas.edu ([129.110.20.111]:45318 "EHLO ip-relay-001.utdallas.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757857Ab2FEDIp (ORCPT ); Mon, 4 Jun 2012 23:08:45 -0400 From: Qasim Javed To: linux-wireless@vger.kernel.org, devel@lists.open80211s.org Cc: javier@cozybit.com, Qasim Javed Subject: [PATCH] mac80211_hwsim: Set IEEE80211_STAT_ACK flag when userspace indicates that the frame has been acknowledged. Date: Tue, 5 Jun 2012 01:25:44 -0500 Message-Id: <1338877544-12827-1-git-send-email-qasimj@gmail.com> (sfid-20120605_050849_396207_1C3C35C1) Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- drivers/net/wireless/mac80211_hwsim.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; -- 1.7.1