--- /dev/null
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -5667,7 +5667,11 @@
+ 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;
+++ /dev/null
---- a/net/wireless/nl80211.c
-+++ b/net/wireless/nl80211.c
-@@ -5667,7 +5667,11 @@
- 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;