linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: Initialize vif pointer
@ 2008-01-13 13:02 Ivo van Doorn
  2008-01-13 13:07 ` Johannes Berg
  2008-01-13 13:16 ` [PATCH v2] " Ivo van Doorn
  0 siblings, 2 replies; 4+ messages in thread
From: Ivo van Doorn @ 2008-01-13 13:02 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, rt2400-devel

Before calling update_beacon() mac80211 must
initialize the control.vif pointer so it can
be used by the driver to determine which
interface is trying to send the beacon.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
---

diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 4f5d5c6..8a35fed 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -2536,6 +2536,7 @@ static int ieee80211_sta_join_ibss(struct net_device *dev,
 		}
 
 		memset(&control, 0, sizeof(control));
+		control.vif = &sdata->vif;
 		rate_control_get_rate(dev, local->oper_hw_mode, skb, &ratesel);
 		if (!ratesel.rate) {
 			printk(KERN_DEBUG "%s: Failed to determine TX rate "

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-13 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-13 13:02 [PATCH] mac80211: Initialize vif pointer Ivo van Doorn
2008-01-13 13:07 ` Johannes Berg
2008-01-13 13:13   ` Ivo van Doorn
2008-01-13 13:16 ` [PATCH v2] " Ivo van Doorn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).