iwlwifi: fix initialisation while RF-kill is asserted
If RF-kill is asserted while a device is initialized, the firmware INIT image can now be run to retrieve the NVM data and register to mac80211 properly. Previously, the initialisation would fail in this scenario and the driver wouldn't register with mac80211 at all, making the device unusable. Signed-off-by: Eran Harary <eran.harary@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
1214755c2b
commit
4f59334bb4
@@ -98,7 +98,7 @@ static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section,
|
||||
struct iwl_host_cmd cmd = {
|
||||
.id = NVM_ACCESS_CMD,
|
||||
.len = { sizeof(struct iwl_nvm_access_cmd), length },
|
||||
.flags = CMD_SYNC,
|
||||
.flags = CMD_SYNC | CMD_SEND_IN_RFKILL,
|
||||
.data = { &nvm_access_cmd, data },
|
||||
/* data may come from vmalloc, so use _DUP */
|
||||
.dataflags = { 0, IWL_HCMD_DFL_DUP },
|
||||
@@ -120,7 +120,7 @@ static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section,
|
||||
struct iwl_rx_packet *pkt;
|
||||
struct iwl_host_cmd cmd = {
|
||||
.id = NVM_ACCESS_CMD,
|
||||
.flags = CMD_SYNC | CMD_WANT_SKB,
|
||||
.flags = CMD_SYNC | CMD_WANT_SKB | CMD_SEND_IN_RFKILL,
|
||||
.data = { &nvm_access_cmd, },
|
||||
};
|
||||
int ret, bytes_read, offset_read;
|
||||
|
Reference in New Issue
Block a user