Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c4ff9486
Commit
c4ff9486
authored
Mar 27, 2013
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
parents
54683441
2d5d50ee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
drivers/net/wireless/iwlwifi/dvm/lib.c
drivers/net/wireless/iwlwifi/dvm/lib.c
+9
-0
drivers/net/wireless/iwlwifi/dvm/ucode.c
drivers/net/wireless/iwlwifi/dvm/ucode.c
+2
-2
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/net/wireless/iwlwifi/pcie/trans.c
+13
-0
drivers/net/wireless/iwlwifi/pcie/tx.c
drivers/net/wireless/iwlwifi/pcie/tx.c
+1
-1
No files found.
drivers/net/wireless/iwlwifi/dvm/lib.c
View file @
c4ff9486
...
...
@@ -1261,6 +1261,15 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
return
-
EIO
;
}
/*
* This can happen upon FW ASSERT: we clear the STATUS_FW_ERROR flag
* in iwl_down but cancel the workers only later.
*/
if
(
!
priv
->
ucode_loaded
)
{
IWL_ERR
(
priv
,
"Fw not loaded - dropping CMD: %x
\n
"
,
cmd
->
id
);
return
-
EIO
;
}
/*
* Synchronous commands from this op-mode must hold
* the mutex, this ensures we don't try to send two
...
...
drivers/net/wireless/iwlwifi/dvm/ucode.c
View file @
c4ff9486
...
...
@@ -367,6 +367,8 @@ int iwl_load_ucode_wait_alive(struct iwl_priv *priv,
return
-
EIO
;
}
priv
->
ucode_loaded
=
true
;
if
(
ucode_type
!=
IWL_UCODE_WOWLAN
)
{
/* delay a bit to give rfkill time to run */
msleep
(
5
);
...
...
@@ -380,8 +382,6 @@ int iwl_load_ucode_wait_alive(struct iwl_priv *priv,
return
ret
;
}
priv
->
ucode_loaded
=
true
;
return
0
;
}
...
...
drivers/net/wireless/iwlwifi/pcie/trans.c
View file @
c4ff9486
...
...
@@ -475,6 +475,10 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
/* If platform's RF_KILL switch is NOT set to KILL */
hw_rfkill
=
iwl_is_rfkill_set
(
trans
);
if
(
hw_rfkill
)
set_bit
(
STATUS_RFKILL
,
&
trans_pcie
->
status
);
else
clear_bit
(
STATUS_RFKILL
,
&
trans_pcie
->
status
);
iwl_op_mode_hw_rf_kill
(
trans
->
op_mode
,
hw_rfkill
);
if
(
hw_rfkill
&&
!
run_in_rfkill
)
return
-
ERFKILL
;
...
...
@@ -641,6 +645,7 @@ static int iwl_trans_pcie_d3_resume(struct iwl_trans *trans,
static
int
iwl_trans_pcie_start_hw
(
struct
iwl_trans
*
trans
)
{
struct
iwl_trans_pcie
*
trans_pcie
=
IWL_TRANS_GET_PCIE_TRANS
(
trans
);
bool
hw_rfkill
;
int
err
;
...
...
@@ -656,6 +661,10 @@ static int iwl_trans_pcie_start_hw(struct iwl_trans *trans)
iwl_enable_rfkill_int
(
trans
);
hw_rfkill
=
iwl_is_rfkill_set
(
trans
);
if
(
hw_rfkill
)
set_bit
(
STATUS_RFKILL
,
&
trans_pcie
->
status
);
else
clear_bit
(
STATUS_RFKILL
,
&
trans_pcie
->
status
);
iwl_op_mode_hw_rf_kill
(
trans
->
op_mode
,
hw_rfkill
);
return
0
;
...
...
@@ -694,6 +703,10 @@ static void iwl_trans_pcie_stop_hw(struct iwl_trans *trans,
* op_mode.
*/
hw_rfkill
=
iwl_is_rfkill_set
(
trans
);
if
(
hw_rfkill
)
set_bit
(
STATUS_RFKILL
,
&
trans_pcie
->
status
);
else
clear_bit
(
STATUS_RFKILL
,
&
trans_pcie
->
status
);
iwl_op_mode_hw_rf_kill
(
trans
->
op_mode
,
hw_rfkill
);
}
}
...
...
drivers/net/wireless/iwlwifi/pcie/tx.c
View file @
c4ff9486
...
...
@@ -1264,7 +1264,7 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,
for
(
i
=
0
;
i
<
IWL_MAX_CMD_TBS_PER_TFD
;
i
++
)
{
int
copy
=
0
;
if
(
!
cmd
->
len
)
if
(
!
cmd
->
len
[
i
]
)
continue
;
/* need at least IWL_HCMD_SCRATCHBUF_SIZE copied */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment