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
86c2fe1e
Commit
86c2fe1e
authored
May 20, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
parents
1ddbcb00
a6c67339
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
68 additions
and
53 deletions
+68
-53
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+14
-9
drivers/net/wireless/ath5k/phy.c
drivers/net/wireless/ath5k/phy.c
+28
-21
drivers/net/wireless/ath5k/reset.c
drivers/net/wireless/ath5k/reset.c
+4
-4
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-5000.c
+1
-1
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-agn.c
+0
-7
drivers/net/wireless/iwlwifi/iwl-scan.c
drivers/net/wireless/iwlwifi/iwl-scan.c
+4
-3
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl3945-base.c
+2
-7
drivers/net/wireless/rt2x00/rt2x00debug.c
drivers/net/wireless/rt2x00/rt2x00debug.c
+1
-1
net/wireless/reg.c
net/wireless/reg.c
+7
-0
net/wireless/wext.c
net/wireless/wext.c
+7
-0
No files found.
drivers/net/wireless/airo.c
View file @
86c2fe1e
...
@@ -6467,6 +6467,7 @@ static int airo_get_encode(struct net_device *dev,
...
@@ -6467,6 +6467,7 @@ static int airo_get_encode(struct net_device *dev,
{
{
struct
airo_info
*
local
=
dev
->
ml_priv
;
struct
airo_info
*
local
=
dev
->
ml_priv
;
int
index
=
(
dwrq
->
flags
&
IW_ENCODE_INDEX
)
-
1
;
int
index
=
(
dwrq
->
flags
&
IW_ENCODE_INDEX
)
-
1
;
int
wep_key_len
;
u8
buf
[
16
];
u8
buf
[
16
];
if
(
!
local
->
wep_capable
)
if
(
!
local
->
wep_capable
)
...
@@ -6500,11 +6501,13 @@ static int airo_get_encode(struct net_device *dev,
...
@@ -6500,11 +6501,13 @@ static int airo_get_encode(struct net_device *dev,
dwrq
->
flags
|=
index
+
1
;
dwrq
->
flags
|=
index
+
1
;
/* Copy the key to the user buffer */
/* Copy the key to the user buffer */
dwrq
->
length
=
get_wep_key
(
local
,
index
,
&
buf
[
0
],
sizeof
(
buf
));
wep_key_len
=
get_wep_key
(
local
,
index
,
&
buf
[
0
],
sizeof
(
buf
));
if
(
dwrq
->
length
!=
-
1
)
if
(
wep_key_len
<
0
)
{
memcpy
(
extra
,
buf
,
dwrq
->
length
);
else
dwrq
->
length
=
0
;
dwrq
->
length
=
0
;
}
else
{
dwrq
->
length
=
wep_key_len
;
memcpy
(
extra
,
buf
,
dwrq
->
length
);
}
return
0
;
return
0
;
}
}
...
@@ -6617,7 +6620,7 @@ static int airo_get_encodeext(struct net_device *dev,
...
@@ -6617,7 +6620,7 @@ static int airo_get_encodeext(struct net_device *dev,
struct
airo_info
*
local
=
dev
->
ml_priv
;
struct
airo_info
*
local
=
dev
->
ml_priv
;
struct
iw_point
*
encoding
=
&
wrqu
->
encoding
;
struct
iw_point
*
encoding
=
&
wrqu
->
encoding
;
struct
iw_encode_ext
*
ext
=
(
struct
iw_encode_ext
*
)
extra
;
struct
iw_encode_ext
*
ext
=
(
struct
iw_encode_ext
*
)
extra
;
int
idx
,
max_key_len
;
int
idx
,
max_key_len
,
wep_key_len
;
u8
buf
[
16
];
u8
buf
[
16
];
if
(
!
local
->
wep_capable
)
if
(
!
local
->
wep_capable
)
...
@@ -6661,11 +6664,13 @@ static int airo_get_encodeext(struct net_device *dev,
...
@@ -6661,11 +6664,13 @@ static int airo_get_encodeext(struct net_device *dev,
memset
(
extra
,
0
,
16
);
memset
(
extra
,
0
,
16
);
/* Copy the key to the user buffer */
/* Copy the key to the user buffer */
ext
->
key_len
=
get_wep_key
(
local
,
idx
,
&
buf
[
0
],
sizeof
(
buf
));
wep_key_len
=
get_wep_key
(
local
,
idx
,
&
buf
[
0
],
sizeof
(
buf
));
if
(
ext
->
key_len
!=
-
1
)
if
(
wep_key_len
<
0
)
{
memcpy
(
extra
,
buf
,
ext
->
key_len
);
else
ext
->
key_len
=
0
;
ext
->
key_len
=
0
;
}
else
{
ext
->
key_len
=
wep_key_len
;
memcpy
(
extra
,
buf
,
ext
->
key_len
);
}
return
0
;
return
0
;
}
}
...
...
drivers/net/wireless/ath5k/phy.c
View file @
86c2fe1e
...
@@ -1487,28 +1487,35 @@ ath5k_get_linear_pcdac_min(const u8 *stepL, const u8 *stepR,
...
@@ -1487,28 +1487,35 @@ ath5k_get_linear_pcdac_min(const u8 *stepL, const u8 *stepR,
{
{
s8
tmp
;
s8
tmp
;
s16
min_pwrL
,
min_pwrR
;
s16
min_pwrL
,
min_pwrR
;
s16
pwr_i
=
pwrL
[
0
]
;
s16
pwr_i
;
if
(
pwrL
[
0
]
==
pwrL
[
1
])
min_pwrL
=
pwrL
[
0
];
else
{
pwr_i
=
pwrL
[
0
];
do
{
do
{
pwr_i
--
;
pwr_i
--
;
tmp
=
(
s8
)
ath5k_get_interpolated_value
(
pwr_i
,
tmp
=
(
s8
)
ath5k_get_interpolated_value
(
pwr_i
,
pwrL
[
0
],
pwrL
[
1
],
pwrL
[
0
],
pwrL
[
1
],
stepL
[
0
],
stepL
[
1
]);
stepL
[
0
],
stepL
[
1
]);
}
while
(
tmp
>
1
);
}
while
(
tmp
>
1
);
min_pwrL
=
pwr_i
;
min_pwrL
=
pwr_i
;
}
if
(
pwrR
[
0
]
==
pwrR
[
1
])
min_pwrR
=
pwrR
[
0
];
else
{
pwr_i
=
pwrR
[
0
];
pwr_i
=
pwrR
[
0
];
do
{
do
{
pwr_i
--
;
pwr_i
--
;
tmp
=
(
s8
)
ath5k_get_interpolated_value
(
pwr_i
,
tmp
=
(
s8
)
ath5k_get_interpolated_value
(
pwr_i
,
pwrR
[
0
],
pwrR
[
1
],
pwrR
[
0
],
pwrR
[
1
],
stepR
[
0
],
stepR
[
1
]);
stepR
[
0
],
stepR
[
1
]);
}
while
(
tmp
>
1
);
}
while
(
tmp
>
1
);
min_pwrR
=
pwr_i
;
min_pwrR
=
pwr_i
;
}
/* Keep the right boundary so that it works for both curves */
/* Keep the right boundary so that it works for both curves */
return
max
(
min_pwrL
,
min_pwrR
);
return
max
(
min_pwrL
,
min_pwrR
);
...
...
drivers/net/wireless/ath5k/reset.c
View file @
86c2fe1e
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
\*****************************/
\*****************************/
#include <linux/pci.h>
/* To determine if a card is pci-e */
#include <linux/pci.h>
/* To determine if a card is pci-e */
#include <linux/
bitops.h>
/* For get_bitmask_order */
#include <linux/
log2.h>
#include "ath5k.h"
#include "ath5k.h"
#include "reg.h"
#include "reg.h"
#include "base.h"
#include "base.h"
...
@@ -69,10 +69,10 @@ static inline int ath5k_hw_write_ofdm_timings(struct ath5k_hw *ah,
...
@@ -69,10 +69,10 @@ static inline int ath5k_hw_write_ofdm_timings(struct ath5k_hw *ah,
/* Get exponent
/* Get exponent
* ALGO: coef_exp = 14 - highest set bit position */
* ALGO: coef_exp = 14 - highest set bit position */
coef_exp
=
get_bitmask_order
(
coef_scaled
);
coef_exp
=
ilog2
(
coef_scaled
);
/* Doesn't make sense if it's zero*/
/* Doesn't make sense if it's zero*/
if
(
!
coef_exp
)
if
(
!
coef_
scaled
||
!
coef_
exp
)
return
-
EINVAL
;
return
-
EINVAL
;
/* Note: we've shifted coef_scaled by 24 */
/* Note: we've shifted coef_scaled by 24 */
...
@@ -359,7 +359,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
...
@@ -359,7 +359,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
mode
|=
AR5K_PHY_MODE_FREQ_5GHZ
;
mode
|=
AR5K_PHY_MODE_FREQ_5GHZ
;
if
(
ah
->
ah_radio
==
AR5K_RF5413
)
if
(
ah
->
ah_radio
==
AR5K_RF5413
)
clock
|
=
AR5K_PHY_PLL_40MHZ_5413
;
clock
=
AR5K_PHY_PLL_40MHZ_5413
;
else
else
clock
|=
AR5K_PHY_PLL_40MHZ
;
clock
|=
AR5K_PHY_PLL_40MHZ
;
...
...
drivers/net/wireless/iwlwifi/iwl-5000.c
View file @
86c2fe1e
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
#include "iwl-6000-hw.h"
#include "iwl-6000-hw.h"
/* Highest firmware API version supported */
/* Highest firmware API version supported */
#define IWL5000_UCODE_API_MAX
1
#define IWL5000_UCODE_API_MAX
2
#define IWL5150_UCODE_API_MAX 2
#define IWL5150_UCODE_API_MAX 2
/* Lowest firmware API version supported */
/* Lowest firmware API version supported */
...
...
drivers/net/wireless/iwlwifi/iwl-agn.c
View file @
86c2fe1e
...
@@ -669,13 +669,6 @@ static int iwl_set_mode(struct iwl_priv *priv, int mode)
...
@@ -669,13 +669,6 @@ static int iwl_set_mode(struct iwl_priv *priv, int mode)
if
(
!
iwl_is_ready_rf
(
priv
))
if
(
!
iwl_is_ready_rf
(
priv
))
return
-
EAGAIN
;
return
-
EAGAIN
;
cancel_delayed_work
(
&
priv
->
scan_check
);
if
(
iwl_scan_cancel_timeout
(
priv
,
100
))
{
IWL_WARN
(
priv
,
"Aborted scan still in progress after 100ms
\n
"
);
IWL_DEBUG_MAC80211
(
priv
,
"leaving - scan abort failed.
\n
"
);
return
-
EAGAIN
;
}
iwl_commit_rxon
(
priv
);
iwl_commit_rxon
(
priv
);
return
0
;
return
0
;
...
...
drivers/net/wireless/iwlwifi/iwl-scan.c
View file @
86c2fe1e
...
@@ -227,9 +227,6 @@ static void iwl_rx_scan_complete_notif(struct iwl_priv *priv,
...
@@ -227,9 +227,6 @@ static void iwl_rx_scan_complete_notif(struct iwl_priv *priv,
/* The HW is no longer scanning */
/* The HW is no longer scanning */
clear_bit
(
STATUS_SCAN_HW
,
&
priv
->
status
);
clear_bit
(
STATUS_SCAN_HW
,
&
priv
->
status
);
/* The scan completion notification came in, so kill that timer... */
cancel_delayed_work
(
&
priv
->
scan_check
);
IWL_DEBUG_INFO
(
priv
,
"Scan pass on %sGHz took %dms
\n
"
,
IWL_DEBUG_INFO
(
priv
,
"Scan pass on %sGHz took %dms
\n
"
,
(
priv
->
scan_bands
&
BIT
(
IEEE80211_BAND_2GHZ
))
?
(
priv
->
scan_bands
&
BIT
(
IEEE80211_BAND_2GHZ
))
?
"2.4"
:
"5.2"
,
"2.4"
:
"5.2"
,
...
@@ -712,6 +709,8 @@ static void iwl_bg_request_scan(struct work_struct *data)
...
@@ -712,6 +709,8 @@ static void iwl_bg_request_scan(struct work_struct *data)
mutex_lock
(
&
priv
->
mutex
);
mutex_lock
(
&
priv
->
mutex
);
cancel_delayed_work
(
&
priv
->
scan_check
);
if
(
!
iwl_is_ready
(
priv
))
{
if
(
!
iwl_is_ready
(
priv
))
{
IWL_WARN
(
priv
,
"request scan called when driver not ready.
\n
"
);
IWL_WARN
(
priv
,
"request scan called when driver not ready.
\n
"
);
goto
done
;
goto
done
;
...
@@ -925,6 +924,8 @@ void iwl_bg_scan_completed(struct work_struct *work)
...
@@ -925,6 +924,8 @@ void iwl_bg_scan_completed(struct work_struct *work)
IWL_DEBUG_SCAN
(
priv
,
"SCAN complete scan
\n
"
);
IWL_DEBUG_SCAN
(
priv
,
"SCAN complete scan
\n
"
);
cancel_delayed_work
(
&
priv
->
scan_check
);
ieee80211_scan_completed
(
priv
->
hw
,
false
);
ieee80211_scan_completed
(
priv
->
hw
,
false
);
if
(
test_bit
(
STATUS_EXIT_PENDING
,
&
priv
->
status
))
if
(
test_bit
(
STATUS_EXIT_PENDING
,
&
priv
->
status
))
...
...
drivers/net/wireless/iwlwifi/iwl3945-base.c
View file @
86c2fe1e
...
@@ -782,13 +782,6 @@ static int iwl3945_set_mode(struct iwl_priv *priv, int mode)
...
@@ -782,13 +782,6 @@ static int iwl3945_set_mode(struct iwl_priv *priv, int mode)
if
(
!
iwl_is_ready_rf
(
priv
))
if
(
!
iwl_is_ready_rf
(
priv
))
return
-
EAGAIN
;
return
-
EAGAIN
;
cancel_delayed_work
(
&
priv
->
scan_check
);
if
(
iwl_scan_cancel_timeout
(
priv
,
100
))
{
IWL_WARN
(
priv
,
"Aborted scan still in progress after 100ms
\n
"
);
IWL_DEBUG_MAC80211
(
priv
,
"leaving - scan abort failed.
\n
"
);
return
-
EAGAIN
;
}
iwl3945_commit_rxon
(
priv
);
iwl3945_commit_rxon
(
priv
);
return
0
;
return
0
;
...
@@ -3298,6 +3291,8 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
...
@@ -3298,6 +3291,8 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
mutex_lock
(
&
priv
->
mutex
);
mutex_lock
(
&
priv
->
mutex
);
cancel_delayed_work
(
&
priv
->
scan_check
);
if
(
!
iwl_is_ready
(
priv
))
{
if
(
!
iwl_is_ready
(
priv
))
{
IWL_WARN
(
priv
,
"request scan called when driver not ready.
\n
"
);
IWL_WARN
(
priv
,
"request scan called when driver not ready.
\n
"
);
goto
done
;
goto
done
;
...
...
drivers/net/wireless/rt2x00/rt2x00debug.c
View file @
86c2fe1e
...
@@ -138,7 +138,7 @@ void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
...
@@ -138,7 +138,7 @@ void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
if
(
cipher
==
CIPHER_TKIP_NO_MIC
)
if
(
cipher
==
CIPHER_TKIP_NO_MIC
)
cipher
=
CIPHER_TKIP
;
cipher
=
CIPHER_TKIP
;
if
(
cipher
==
CIPHER_NONE
||
cipher
>
CIPHER_MAX
)
if
(
cipher
==
CIPHER_NONE
||
cipher
>
=
CIPHER_MAX
)
return
;
return
;
/* Remove CIPHER_NONE index */
/* Remove CIPHER_NONE index */
...
...
net/wireless/reg.c
View file @
86c2fe1e
...
@@ -1551,6 +1551,13 @@ static int regulatory_hint_core(const char *alpha2)
...
@@ -1551,6 +1551,13 @@ static int regulatory_hint_core(const char *alpha2)
queue_regulatory_request
(
request
);
queue_regulatory_request
(
request
);
/*
* This ensures last_request is populated once modules
* come swinging in and calling regulatory hints and
* wiphy_apply_custom_regulatory().
*/
flush_scheduled_work
();
return
0
;
return
0
;
}
}
...
...
net/wireless/wext.c
View file @
86c2fe1e
...
@@ -786,6 +786,13 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
...
@@ -786,6 +786,13 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
err
=
-
EFAULT
;
err
=
-
EFAULT
;
goto
out
;
goto
out
;
}
}
if
(
cmd
==
SIOCSIWENCODEEXT
)
{
struct
iw_encode_ext
*
ee
=
(
void
*
)
extra
;
if
(
iwp
->
length
<
sizeof
(
*
ee
)
+
ee
->
key_len
)
return
-
EFAULT
;
}
}
}
err
=
handler
(
dev
,
info
,
(
union
iwreq_data
*
)
iwp
,
extra
);
err
=
handler
(
dev
,
info
,
(
union
iwreq_data
*
)
iwp
,
extra
);
...
...
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