From b40299011f813c4d2057ac4d4dd46cd05ce56054 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 19 Nov 2017 15:09:25 +0100 Subject: [PATCH] 4.9-stable patches added patches: brcmfmac-don-t-preset-all-channels-as-disabled.patch --- ...on-t-preset-all-channels-as-disabled.patch | 45 +++++++++++++++++++ queue-4.9/series | 1 + 2 files changed, 46 insertions(+) create mode 100644 queue-4.9/brcmfmac-don-t-preset-all-channels-as-disabled.patch diff --git a/queue-4.9/brcmfmac-don-t-preset-all-channels-as-disabled.patch b/queue-4.9/brcmfmac-don-t-preset-all-channels-as-disabled.patch new file mode 100644 index 00000000000..c30bbba1d18 --- /dev/null +++ b/queue-4.9/brcmfmac-don-t-preset-all-channels-as-disabled.patch @@ -0,0 +1,45 @@ +From 9ea0c307609fd20e03f53546b9cefbb20b96785d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= +Date: Sat, 7 Jan 2017 21:36:04 +0100 +Subject: brcmfmac: don't preset all channels as disabled +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Rafał Miłecki + +commit 9ea0c307609fd20e03f53546b9cefbb20b96785d upstream. + +During init we take care of regulatory stuff by disabling all +unavailable channels (see brcmf_construct_chaninfo) so this predisabling +them is not really required (and this patch won't change any behavior). +It will on the other hand allow more detailed runtime control over +channels which is the main reason for this change. + +Signed-off-by: Rafał Miłecki +Signed-off-by: Kalle Valo +Cc: Lambdadroid +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 -- + 1 file changed, 2 deletions(-) + +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +@@ -147,7 +147,6 @@ static struct ieee80211_rate __wl_rates[ + .band = NL80211_BAND_2GHZ, \ + .center_freq = (_freq), \ + .hw_value = (_channel), \ +- .flags = IEEE80211_CHAN_DISABLED, \ + .max_antenna_gain = 0, \ + .max_power = 30, \ + } +@@ -156,7 +155,6 @@ static struct ieee80211_rate __wl_rates[ + .band = NL80211_BAND_5GHZ, \ + .center_freq = 5000 + (5 * (_channel)), \ + .hw_value = (_channel), \ +- .flags = IEEE80211_CHAN_DISABLED, \ + .max_antenna_gain = 0, \ + .max_power = 30, \ + } diff --git a/queue-4.9/series b/queue-4.9/series index 8af9908633c..b02f251941a 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -68,3 +68,4 @@ usb-serial-qcserial-add-pid-vid-for-sierra-wireless-em7355-fw-update.patch usb-serial-garmin_gps-fix-i-o-after-failed-probe-and-remove.patch usb-serial-garmin_gps-fix-memory-leak-on-probe-errors.patch x86-mce-amd-always-give-panic-severity-for-uc-errors-in-kernel-context.patch +brcmfmac-don-t-preset-all-channels-as-disabled.patch -- 2.47.3