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
nexedi
linux
Commits
36efee8e
Commit
36efee8e
authored
Jan 26, 2016
by
Kalle Valo
Browse files
Options
Browse Files
Download
Plain Diff
Merge ath-current from ath.git
parents
c72fc909
65dc1a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/net/wireless/ath/ath9k/eeprom.c
drivers/net/wireless/ath/ath9k/eeprom.c
+6
-6
No files found.
drivers/net/wireless/ath/ath9k/eeprom.c
View file @
36efee8e
...
...
@@ -150,18 +150,18 @@ int ath9k_hw_nvram_swap_data(struct ath_hw *ah, bool *swap_needed, int size)
return
-
EIO
;
}
if
(
magic
==
AR5416_EEPROM_MAGIC
)
{
*
swap_needed
=
false
;
}
else
if
(
swab16
(
magic
)
==
AR5416_EEPROM_MAGIC
)
{
*
swap_needed
=
false
;
if
(
swab16
(
magic
)
==
AR5416_EEPROM_MAGIC
)
{
if
(
ah
->
ah_flags
&
AH_NO_EEP_SWAP
)
{
ath_info
(
common
,
"Ignoring endianness difference in EEPROM magic bytes.
\n
"
);
*
swap_needed
=
false
;
}
else
{
*
swap_needed
=
true
;
}
}
else
{
}
else
if
(
magic
!=
AR5416_EEPROM_MAGIC
)
{
if
(
ath9k_hw_use_flash
(
ah
))
return
0
;
ath_err
(
common
,
"Invalid EEPROM Magic (0x%04x).
\n
"
,
magic
);
return
-
EINVAL
;
...
...
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