* [PATCH 2.6.29] mac80211: restrict to AP in outgoing interface heuristic
@ 2009-02-05 23:27 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-02-05 23:27 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless@vger.kernel.org
We try to find the correct outgoing interface for injected frames
based on the TA, but since this is a hack for hostapd 11w, restrict
the heuristic to AP mode interfaces. At some point we'll add the
ability to give an interface index in radiotap or so and just
remove this heuristic again.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org [2.6.28.x]
---
Otherwise we end up passing the monitor vif pointer to drivers, which
may cause them to crash.
net/mac80211/tx.c | 2 ++
1 file changed, 2 insertions(+)
--- wireless-testing.orig/net/mac80211/tx.c 2009-02-06 00:16:38.000000000 +0100
+++ wireless-testing/net/mac80211/tx.c 2009-02-06 00:22:30.000000000 +0100
@@ -1394,6 +1394,8 @@ int ieee80211_master_start_xmit(struct s
list) {
if (!netif_running(sdata->dev))
continue;
+ if (sdata->vif.type != NL80211_IFTYPE_AP)
+ continue;
if (compare_ether_addr(sdata->dev->dev_addr,
hdr->addr2)) {
dev_hold(sdata->dev);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-05 23:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 23:27 [PATCH 2.6.29] mac80211: restrict to AP in outgoing interface heuristic Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox