mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From 8b6f3f87c81fa35eef24831e9a93eff1e6e1444f Mon Sep 17 00:00:00 2001
|
|
From: Alberto Milone <alberto.milone@canonical.com>
|
|
Date: Mon, 10 Nov 2014 09:22:09 +0100
|
|
Subject: [PATCH 1/1] Update cfg80211_inform_bss() to use
|
|
CFG80211_BSS_FTYPE_UNKNOWN
|
|
|
|
This is only necessary with Linux >= 3.18.
|
|
|
|
Original author: Krzysztof Kolasa
|
|
Source: https://raw.githubusercontent.com/kolasa/bcmwl-6.30.223.248/master/patches/0015-CFG80211_BSS_FTYPE_UNKNOWN-linux-3.18.0.patch
|
|
---
|
|
src/wl/sys/wl_cfg80211_hybrid.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c
|
|
index ea0726f..ee0d3a0 100644
|
|
--- a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c
|
|
+++ b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c
|
|
@@ -2010,9 +2010,15 @@ static s32 wl_inform_single_bss(struct wl_cfg80211_priv *wl, struct wl_bss_info
|
|
|
|
notify_ie = (u8 *)bi + le16_to_cpu(bi->ie_offset);
|
|
notify_ielen = le32_to_cpu(bi->ie_length);
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
|
|
cbss = cfg80211_inform_bss(wiphy, channel, (const u8 *)(bi->BSSID.octet),
|
|
0, beacon_proberesp->capab_info, beacon_proberesp->beacon_int,
|
|
(const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL);
|
|
+#else
|
|
+ cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, (const u8 *)(bi->BSSID.octet),
|
|
+ 0, beacon_proberesp->capab_info, beacon_proberesp->beacon_int,
|
|
+ (const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL);
|
|
+#endif
|
|
|
|
if (unlikely(!cbss))
|
|
return -ENOMEM;
|
|
--
|
|
1.9.1
|