* [PATCH mac80211] cfg80211: use the proper union member when sending a IBSS_JOINED event
@ 2014-01-28 8:23 Antonio Quartulli
0 siblings, 0 replies; only message in thread
From: Antonio Quartulli @ 2014-01-28 8:23 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless, Antonio Quartulli, Antonio Quartulli
From: Antonio Quartulli <antonio@open-mesh.com>
When sending a IBSS_JOINED event the bssid has to be
written into the "ij" member of the event union and not
in "cr".
However this does not really hurt because ij.bssid and
cr.bssid share the same offset in the union.
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
net/wireless/ibss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c
index f911c5f..3fce17e 100644
--- a/net/wireless/ibss.c
+++ b/net/wireless/ibss.c
@@ -68,7 +68,7 @@ void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, gfp_t gfp)
return;
ev->type = EVENT_IBSS_JOINED;
- memcpy(ev->cr.bssid, bssid, ETH_ALEN);
+ memcpy(ev->ij.bssid, bssid, ETH_ALEN);
spin_lock_irqsave(&wdev->event_lock, flags);
list_add_tail(&ev->list, &wdev->event_list);
--
1.8.5.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-28 8:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 8:23 [PATCH mac80211] cfg80211: use the proper union member when sending a IBSS_JOINED event Antonio Quartulli
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).