mac80211: update to wireless-testing 2010-03-03
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 120-linux-2.6.30-compat.patch
1 --- a/net/wireless/nl80211.c
2 +++ b/net/wireless/nl80211.c
3 @@ -5789,7 +5789,11 @@ int nl80211_send_action(struct cfg80211_
4 return err;
5 }
6
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
8 err = genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlpid);
9 +#else
10 + err = genlmsg_unicast(msg, nlpid);
11 +#endif
12 if (err < 0)
13 return err;
14 return 0;