nixpkgs-suyu/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch
Vladimír Čunát e6c4bcf8fb Patched broadcom_sta with for kernels 2.6.39 and 3.2
Patches taken from Gentoo, builds OK now.

svn path=/nixpkgs/trunk/; revision=32076
2012-02-06 19:06:47 +00:00

11 lines
495 B
Diff

--- old/src/wl/sys/wl_cfg80211.c
+++ new/src/wl/sys/wl_cfg80211.c
@@ -1811,7 +1811,7 @@
notif_bss_info->frame_len = offsetof(struct ieee80211_mgmt, u.beacon.variable) +
wl_get_ielen(wl);
freq = ieee80211_channel_to_frequency(notif_bss_info->channel
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ
#endif
);