summary refs log tree commit diff
path: root/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2012-02-06 19:06:47 +0000
committerVladimír Čunát <vcunat@gmail.com>2012-02-06 19:06:47 +0000
commite6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8 (patch)
treec01f507d1d7f23e9b3b3bf4720438d7344f8cac8 /pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch
parentfd12c85a3397c3d0e48954afee28ca4a447a2a82 (diff)
downloadnixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.tar
nixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.tar.gz
nixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.tar.bz2
nixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.tar.lz
nixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.tar.xz
nixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.tar.zst
nixpkgs-e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8.zip
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
Diffstat (limited to 'pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch')
-rw-r--r--pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch b/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch
new file mode 100644
index 00000000000..ca07c918c36
--- /dev/null
+++ b/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch
@@ -0,0 +1,11 @@
+--- 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
+ 	);