summaryrefslogtreecommitdiff
path: root/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.30-linux-3.9.0.patch
blob: a6e3d3d1f9fb0d3f1b7780399a35b51dbc9dd2e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src.orig/wl/sys/wl_cfg80211_hybrid.c
+++ src/wl/sys/wl_cfg80211_hybrid.c
@@ -2013,8 +2013,12 @@
 		ie_len = (size_t)(ies->len);
 		rcu_read_unlock();
 #endif
-		cfg80211_put_bss(bss);
-	}
+#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);
 	if (tim) {