* [PATCH 0/2] iwlwifi: updates intended for v4.10 2017-01-23
@ 2017-01-23 11:56 Luca Coelho
2017-01-23 11:56 ` [PATCH 1/2] iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000 Luca Coelho
2017-01-23 11:56 ` [PATCH 2/2] iwlwifi: mvm: avoid crash on restart w/o reserved queues Luca Coelho
0 siblings, 2 replies; 3+ messages in thread
From: Luca Coelho @ 2017-01-23 11:56 UTC (permalink / raw)
To: linux-wireless; +Cc: Luca Coelho
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 551 bytes --]
From: Luca Coelho <luciano.coelho@intel.com>
Hi,
These are a couple of fixes intended for v4.10. One avoids a crash in
specific scenarios, the other prevents a firmware load failure due to
wrong file name.
--
Luca.
Johannes Berg (1):
iwlwifi: mvm: avoid crash on restart w/o reserved queues
Jürg Billeter (1):
iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000
drivers/net/wireless/intel/iwlwifi/iwl-8000.c | 2 +-
drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
--
2.11.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000
2017-01-23 11:56 [PATCH 0/2] iwlwifi: updates intended for v4.10 2017-01-23 Luca Coelho
@ 2017-01-23 11:56 ` Luca Coelho
2017-01-23 11:56 ` [PATCH 2/2] iwlwifi: mvm: avoid crash on restart w/o reserved queues Luca Coelho
1 sibling, 0 replies; 3+ messages in thread
From: Luca Coelho @ 2017-01-23 11:56 UTC (permalink / raw)
To: linux-wireless; +Cc: Jürg Billeter, Luca Coelho
From: Jürg Billeter <j@bitron.ch>
Mistakenly, the driver is trying to load the 8000C firmware with an
incorrect name (i.e. with two hyphens where there should be only one)
and that fails. Fix that by removing the hyphen from the format
macro.
Fixes: e1ba684f762b ("iwlwifi: 8000: fix MODULE_FIRMWARE input")
Signed-off-by: Jürg Billeter <j@bitron.ch>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
drivers/net/wireless/intel/iwlwifi/iwl-8000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-8000.c b/drivers/net/wireless/intel/iwlwifi/iwl-8000.c
index d02ca1491d16..8d3e53fac1da 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-8000.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-8000.c
@@ -91,7 +91,7 @@
#define IWL8000_FW_PRE "iwlwifi-8000C-"
#define IWL8000_MODULE_FIRMWARE(api) \
- IWL8000_FW_PRE "-" __stringify(api) ".ucode"
+ IWL8000_FW_PRE __stringify(api) ".ucode"
#define IWL8265_FW_PRE "iwlwifi-8265-"
#define IWL8265_MODULE_FIRMWARE(api) \
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] iwlwifi: mvm: avoid crash on restart w/o reserved queues
2017-01-23 11:56 [PATCH 0/2] iwlwifi: updates intended for v4.10 2017-01-23 Luca Coelho
2017-01-23 11:56 ` [PATCH 1/2] iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000 Luca Coelho
@ 2017-01-23 11:56 ` Luca Coelho
1 sibling, 0 replies; 3+ messages in thread
From: Luca Coelho @ 2017-01-23 11:56 UTC (permalink / raw)
To: linux-wireless; +Cc: Johannes Berg, Luca Coelho
From: Johannes Berg <johannes.berg@intel.com>
When the firmware restarts in a situation in which any station
has no queue reserved anymore because that queue was used, the
code will crash trying to access the queue_info array at the
offset 255, which is far too big. Fix this by checking that a
queue is actually reserved before writing its status.
Fixes: 8d98ae6eb0d5 ("iwlwifi: mvm: re-assign old queues after hw restart in dqa mode")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
index 636c8b03e318..09e9e2e3ed04 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
@@ -1164,9 +1164,10 @@ static void iwl_mvm_realloc_queues_after_restart(struct iwl_mvm *mvm,
.frame_limit = IWL_FRAME_LIMIT,
};
- /* Make sure reserved queue is still marked as such (or allocated) */
- mvm->queue_info[mvm_sta->reserved_queue].status =
- IWL_MVM_QUEUE_RESERVED;
+ /* Make sure reserved queue is still marked as such (if allocated) */
+ if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE)
+ mvm->queue_info[mvm_sta->reserved_queue].status =
+ IWL_MVM_QUEUE_RESERVED;
for (i = 0; i <= IWL_MAX_TID_COUNT; i++) {
struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i];
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-23 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-23 11:56 [PATCH 0/2] iwlwifi: updates intended for v4.10 2017-01-23 Luca Coelho
2017-01-23 11:56 ` [PATCH 1/2] iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000 Luca Coelho
2017-01-23 11:56 ` [PATCH 2/2] iwlwifi: mvm: avoid crash on restart w/o reserved queues Luca Coelho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox