From 78bff74c4748d0ac835df44c65dbada49a672b6b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 6 May 2013 10:25:07 +0200 Subject: [PATCH] bcm_sta: add kernel 3.9 support patch Signed-off-by: Stephan Raue --- .../bcm_sta-006-linux-3.9-support.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/linux-drivers/bcm_sta/patches/bcm_sta-006-linux-3.9-support.patch diff --git a/packages/linux-drivers/bcm_sta/patches/bcm_sta-006-linux-3.9-support.patch b/packages/linux-drivers/bcm_sta/patches/bcm_sta-006-linux-3.9-support.patch new file mode 100644 index 0000000000..4a97a1bce2 --- /dev/null +++ b/packages/linux-drivers/bcm_sta/patches/bcm_sta-006-linux-3.9-support.patch @@ -0,0 +1,30 @@ +diff -Naur bcm_sta-5.100.82.112/x86-32/src/wl/sys/wl_cfg80211.c bcm_sta-5.100.82.112.patch/x86-32/src/wl/sys/wl_cfg80211.c +--- bcm_sta-5.100.82.112/x86-32/src/wl/sys/wl_cfg80211.c 2011-10-22 18:55:54.000000000 +0200 ++++ bcm_sta-5.100.82.112.patch/x86-32/src/wl/sys/wl_cfg80211.c 2013-05-06 07:03:19.146764181 +0200 +@@ -2077,7 +2077,11 @@ + ie = bss->information_elements; + ie_len = bss->len_information_elements; + beacon_interval = bss->beacon_interval; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) + cfg80211_put_bss(bss); ++#else ++ cfg80211_put_bss(wl_to_wiphy(wl), bss); ++#endif + } + + tim = bcm_parse_tlvs(ie, ie_len, WLAN_EID_TIM); +diff -Naur bcm_sta-5.100.82.112/x86-64/src/wl/sys/wl_cfg80211.c bcm_sta-5.100.82.112.patch/x86-64/src/wl/sys/wl_cfg80211.c +--- bcm_sta-5.100.82.112/x86-64/src/wl/sys/wl_cfg80211.c 2011-10-22 18:56:55.000000000 +0200 ++++ bcm_sta-5.100.82.112.patch/x86-64/src/wl/sys/wl_cfg80211.c 2013-05-06 07:03:55.443652962 +0200 +@@ -2077,7 +2077,11 @@ + ie = bss->information_elements; + ie_len = bss->len_information_elements; + beacon_interval = bss->beacon_interval; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) + cfg80211_put_bss(bss); ++#else ++ cfg80211_put_bss(wl_to_wiphy(wl), bss); ++#endif + } + + tim = bcm_parse_tlvs(ie, ie_len, WLAN_EID_TIM);