Skip to contentSkip to conversation

cfg80211: use the proper union member when sending a IBSS_JOINED event

PATCH New Antonio Quartulli 1 participant 1 message Jan 28, 2014 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfg80211: use the proper union member when sending a IBSS_JOINED event

From: Antonio Quartulli <[email protected]>

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.

---
 net/wireless/ibss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/ibss.c +1 -1
index f911c5f..3fce17e 100644
@@ -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);
Signature · 1 line
1.8.5.3