mac80211/ath9k: Support AMPDU with multiple VIFs.
authorBen Greear <greearb@candelatech.com>
Thu, 23 Sep 2010 16:44:36 +0000 (09:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Sep 2010 19:57:45 +0000 (15:57 -0400)
commit686b9cb994f5f74be790df4cd12873dfdc8a6984
tree960bae4d7613e4420c28d0c422e3c63c2a569ed3
parent295bafb47b0d365e1b4f747dffef29e590f13233
mac80211/ath9k: Support AMPDU with multiple VIFs.

The old ieee80211_find_sta_by_hw method didn't properly
find VIFS when there was more than one per AP.  This caused
AMPDU logic in ath9k to get the wrong VIF when trying to
account for transmitted SKBs.

This patch changes ieee80211_find_sta_by_hw to take a
localaddr argument to distinguish between VIFs with the
same AP but different local addresses.  The method name
is changed to ieee80211_find_sta_by_ifaddr.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/ath/ath9k/xmit.c
include/net/mac80211.h
net/mac80211/sta_info.c