mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Fix broadcom-sta on linux >= 3.15
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.141-linux-3.15.patch?view=markup
This commit is contained in:
parent
6d006a9cca
commit
ee8ea41d58
@ -0,0 +1,17 @@
|
||||
Add channel parameter to cfg80211_ibss_joined call
|
||||
|
||||
--- a/src/wl/sys/wl_cfg80211_hybrid.c
|
||||
+++ b/src/wl/sys/wl_cfg80211_hybrid.c
|
||||
@@ -1841,7 +1841,12 @@ wl_notify_connect_status(struct wl_cfg80211_priv *wl, struct net_device *ndev,
|
||||
wl_get_assoc_ies(wl);
|
||||
memcpy(&wl->bssid, &e->addr, ETHER_ADDR_LEN);
|
||||
wl_update_bss_info(wl);
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
|
||||
cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
|
||||
+#else
|
||||
+ cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid,
|
||||
+ &wl->conf->channel, GFP_KERNEL);
|
||||
+#endif
|
||||
set_bit(WL_STATUS_CONNECTED, &wl->status);
|
||||
wl->profile->active = true;
|
||||
}
|
@ -19,6 +19,7 @@ stdenv.mkDerivation {
|
||||
patches = [
|
||||
./linux-recent.patch
|
||||
./license.patch
|
||||
./cfg80211_ibss_joined-channel-parameter.patch
|
||||
];
|
||||
|
||||
makeFlags = "KBASE=${kernel.dev}/lib/modules/${kernel.modDirVersion}";
|
||||
|
Loading…
Reference in New Issue
Block a user