[Trusty][PATCH 4/5] iwlwifi: mvm: disable scheduled scan to prevent firmware crash
Adam Lee
adam.lee at canonical.com
Fri Nov 21 08:16:13 UTC 2014
From: Emmanuel Grumbach <emmanuel.grumbach at intel.com>
BugLink: https://bugs.launchpad.net/bugs/1393317
There are firmwares which don't support scheduled scan.
Disable it for now.
Linus's system encoutered this issue.
Thanks to David Spinadel for his help.
Tested-by: Linus Torvalds <torvalds at linux-foundation.org>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach at intel.com>
(cherry picked from commit 77b2f2865956b7573f9b040db7a9f808b434acd1)
Signed-off-by: Adam Lee <adam.lee at canonical.com>
---
drivers/net/wireless/iwlwifi/mvm/mac80211.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index dcfbb9a..3e9ae4c 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -246,7 +246,8 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
else
hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
- hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
+ /* TODO: enable that only for firmwares that don't crash */
+ /* hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN; */
hw->wiphy->max_sched_scan_ssids = PROBE_OPTION_MAX;
hw->wiphy->max_match_sets = IWL_SCAN_MAX_PROFILES;
/* we create the 802.11 header and zero length SSID IE. */
--
2.1.3
More information about the kernel-team
mailing list