2010-02-17 22:37:04 +00:00
|
|
|
--- a/net/wireless/nl80211.c
|
|
|
|
+++ b/net/wireless/nl80211.c
|
2010-02-19 15:41:55 +00:00
|
|
|
@@ -5662,7 +5662,11 @@ int nl80211_send_action(struct cfg80211_
|
2010-02-17 22:37:04 +00:00
|
|
|
return err;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
|
|
|
|
err = genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlpid);
|
|
|
|
+#else
|
|
|
|
+ err = genlmsg_unicast(msg, nlpid);
|
|
|
|
+#endif
|
|
|
|
if (err < 0)
|
|
|
|
return err;
|
|
|
|
return 0;
|