status.c (abe60632f311d515b082b450504ee24006023951) status.c (47846c9b0c10808d9337d2e7d09361f3e0a0a71a)
1/*
2 * Copyright 2002-2005, Instant802 Networks, Inc.
3 * Copyright 2005-2006, Devicescape Software, Inc.
4 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
5 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 154 unchanged lines hidden (view full) ---

163 retry_count = 0;
164
165 rcu_read_lock();
166
167 sband = local->hw.wiphy->bands[info->band];
168
169 for_each_sta_info(local, hdr->addr1, sta, tmp) {
170 /* skip wrong virtual interface */
1/*
2 * Copyright 2002-2005, Instant802 Networks, Inc.
3 * Copyright 2005-2006, Devicescape Software, Inc.
4 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
5 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 154 unchanged lines hidden (view full) ---

163 retry_count = 0;
164
165 rcu_read_lock();
166
167 sband = local->hw.wiphy->bands[info->band];
168
169 for_each_sta_info(local, hdr->addr1, sta, tmp) {
170 /* skip wrong virtual interface */
171 if (memcmp(hdr->addr2, sta->sdata->dev->dev_addr, ETH_ALEN))
171 if (memcmp(hdr->addr2, sta->sdata->vif.addr, ETH_ALEN))
172 continue;
173
174 if (!(info->flags & IEEE80211_TX_STAT_ACK) &&
175 test_sta_flags(sta, WLAN_STA_PS_STA)) {
176 /*
177 * The STA is in power save mode, so assume
178 * that this TX packet failed because of that.
179 */

--- 164 unchanged lines hidden ---
172 continue;
173
174 if (!(info->flags & IEEE80211_TX_STAT_ACK) &&
175 test_sta_flags(sta, WLAN_STA_PS_STA)) {
176 /*
177 * The STA is in power save mode, so assume
178 * that this TX packet failed because of that.
179 */

--- 164 unchanged lines hidden ---