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
3e6109c5
Commit
3e6109c5
authored
Jan 05, 2011
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ath9k: qualify global modparam_nohwcrypt variable
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
6303710d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/ath9k.h
+1
-1
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/init.c
+3
-3
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/main.c
+1
-1
No files found.
drivers/net/wireless/ath/ath9k/ath9k.h
View file @
3e6109c5
...
@@ -664,7 +664,7 @@ static inline void ath_read_cachesize(struct ath_common *common, int *csz)
...
@@ -664,7 +664,7 @@ static inline void ath_read_cachesize(struct ath_common *common, int *csz)
}
}
extern
struct
ieee80211_ops
ath9k_ops
;
extern
struct
ieee80211_ops
ath9k_ops
;
extern
int
modparam_nohwcrypt
;
extern
int
ath9k_
modparam_nohwcrypt
;
extern
int
led_blink
;
extern
int
led_blink
;
extern
int
ath9k_pm_qos_value
;
extern
int
ath9k_pm_qos_value
;
extern
bool
is_ath9k_unloaded
;
extern
bool
is_ath9k_unloaded
;
...
...
drivers/net/wireless/ath/ath9k/init.c
View file @
3e6109c5
...
@@ -29,8 +29,8 @@ static unsigned int ath9k_debug = ATH_DBG_DEFAULT;
...
@@ -29,8 +29,8 @@ static unsigned int ath9k_debug = ATH_DBG_DEFAULT;
module_param_named
(
debug
,
ath9k_debug
,
uint
,
0
);
module_param_named
(
debug
,
ath9k_debug
,
uint
,
0
);
MODULE_PARM_DESC
(
debug
,
"Debugging mask"
);
MODULE_PARM_DESC
(
debug
,
"Debugging mask"
);
int
modparam_nohwcrypt
;
int
ath9k_
modparam_nohwcrypt
;
module_param_named
(
nohwcrypt
,
modparam_nohwcrypt
,
int
,
0444
);
module_param_named
(
nohwcrypt
,
ath9k_
modparam_nohwcrypt
,
int
,
0444
);
MODULE_PARM_DESC
(
nohwcrypt
,
"Disable hardware encryption"
);
MODULE_PARM_DESC
(
nohwcrypt
,
"Disable hardware encryption"
);
int
led_blink
;
int
led_blink
;
...
@@ -653,7 +653,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
...
@@ -653,7 +653,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
if
(
sc
->
sc_ah
->
caps
.
hw_caps
&
ATH9K_HW_CAP_HT
)
if
(
sc
->
sc_ah
->
caps
.
hw_caps
&
ATH9K_HW_CAP_HT
)
hw
->
flags
|=
IEEE80211_HW_AMPDU_AGGREGATION
;
hw
->
flags
|=
IEEE80211_HW_AMPDU_AGGREGATION
;
if
(
AR_SREV_9160_10_OR_LATER
(
sc
->
sc_ah
)
||
modparam_nohwcrypt
)
if
(
AR_SREV_9160_10_OR_LATER
(
sc
->
sc_ah
)
||
ath9k_
modparam_nohwcrypt
)
hw
->
flags
|=
IEEE80211_HW_MFP_CAPABLE
;
hw
->
flags
|=
IEEE80211_HW_MFP_CAPABLE
;
hw
->
wiphy
->
interface_modes
=
hw
->
wiphy
->
interface_modes
=
...
...
drivers/net/wireless/ath/ath9k/main.c
View file @
3e6109c5
...
@@ -1829,7 +1829,7 @@ static int ath9k_set_key(struct ieee80211_hw *hw,
...
@@ -1829,7 +1829,7 @@ static int ath9k_set_key(struct ieee80211_hw *hw,
struct
ath_common
*
common
=
ath9k_hw_common
(
sc
->
sc_ah
);
struct
ath_common
*
common
=
ath9k_hw_common
(
sc
->
sc_ah
);
int
ret
=
0
;
int
ret
=
0
;
if
(
modparam_nohwcrypt
)
if
(
ath9k_
modparam_nohwcrypt
)
return
-
ENOSPC
;
return
-
ENOSPC
;
mutex_lock
(
&
sc
->
mutex
);
mutex_lock
(
&
sc
->
mutex
);
...
...
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