Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
86c2fe1e
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
86c2fe1e
编写于
5月 20, 2009
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
上级
1ddbcb00
a6c67339
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
68 addition
and
53 deletion
+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
未找到文件。
drivers/net/wireless/airo.c
浏览文件 @
86c2fe1e
...
...
@@ -6467,6 +6467,7 @@ static int airo_get_encode(struct net_device *dev,
{
struct
airo_info
*
local
=
dev
->
ml_priv
;
int
index
=
(
dwrq
->
flags
&
IW_ENCODE_INDEX
)
-
1
;
int
wep_key_len
;
u8
buf
[
16
];
if
(
!
local
->
wep_capable
)
...
...
@@ -6500,11 +6501,13 @@ static int airo_get_encode(struct net_device *dev,
dwrq
->
flags
|=
index
+
1
;
/* Copy the key to the user buffer */
dwrq
->
length
=
get_wep_key
(
local
,
index
,
&
buf
[
0
],
sizeof
(
buf
));
if
(
dwrq
->
length
!=
-
1
)
memcpy
(
extra
,
buf
,
dwrq
->
length
);
else
wep_key_len
=
get_wep_key
(
local
,
index
,
&
buf
[
0
],
sizeof
(
buf
));
if
(
wep_key_len
<
0
)
{
dwrq
->
length
=
0
;
}
else
{
dwrq
->
length
=
wep_key_len
;
memcpy
(
extra
,
buf
,
dwrq
->
length
);
}
return
0
;
}
...
...
@@ -6617,7 +6620,7 @@ static int airo_get_encodeext(struct net_device *dev,
struct
airo_info
*
local
=
dev
->
ml_priv
;
struct
iw_point
*
encoding
=
&
wrqu
->
encoding
;
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
];
if
(
!
local
->
wep_capable
)
...
...
@@ -6661,11 +6664,13 @@ static int airo_get_encodeext(struct net_device *dev,
memset
(
extra
,
0
,
16
);
/* Copy the key to the user buffer */
ext
->
key_len
=
get_wep_key
(
local
,
idx
,
&
buf
[
0
],
sizeof
(
buf
));
if
(
ext
->
key_len
!=
-
1
)
memcpy
(
extra
,
buf
,
ext
->
key_len
);
else
wep_key_len
=
get_wep_key
(
local
,
idx
,
&
buf
[
0
],
sizeof
(
buf
));
if
(
wep_key_len
<
0
)
{
ext
->
key_len
=
0
;
}
else
{
ext
->
key_len
=
wep_key_len
;
memcpy
(
extra
,
buf
,
ext
->
key_len
);
}
return
0
;
}
...
...
drivers/net/wireless/ath5k/phy.c
浏览文件 @
86c2fe1e
...
...
@@ -1487,28 +1487,35 @@ ath5k_get_linear_pcdac_min(const u8 *stepL, const u8 *stepR,
{
s8
tmp
;
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
{
pwr_i
--
;
tmp
=
(
s8
)
ath5k_get_interpolated_value
(
pwr_i
,
pwrL
[
0
],
pwrL
[
1
],
stepL
[
0
],
stepL
[
1
]);
}
while
(
tmp
>
1
);
min_pwrL
=
pwr_i
;
}
if
(
pwrR
[
0
]
==
pwrR
[
1
])
min_pwrR
=
pwrR
[
0
];
else
{
pwr_i
=
pwrR
[
0
];
do
{
pwr_i
--
;
tmp
=
(
s8
)
ath5k_get_interpolated_value
(
pwr_i
,
pwrR
[
0
],
pwrR
[
1
],
stepR
[
0
],
stepR
[
1
]);
}
while
(
tmp
>
1
);
min_pwrR
=
pwr_i
;
}
/* Keep the right boundary so that it works for both curves */
return
max
(
min_pwrL
,
min_pwrR
);
...
...
drivers/net/wireless/ath5k/reset.c
浏览文件 @
86c2fe1e
...
...
@@ -26,7 +26,7 @@
\*****************************/
#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 "reg.h"
#include "base.h"
...
...
@@ -69,10 +69,10 @@ static inline int ath5k_hw_write_ofdm_timings(struct ath5k_hw *ah,
/* Get exponent
* 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*/
if
(
!
coef_exp
)
if
(
!
coef_
scaled
||
!
coef_
exp
)
return
-
EINVAL
;
/* 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)
mode
|=
AR5K_PHY_MODE_FREQ_5GHZ
;
if
(
ah
->
ah_radio
==
AR5K_RF5413
)
clock
|
=
AR5K_PHY_PLL_40MHZ_5413
;
clock
=
AR5K_PHY_PLL_40MHZ_5413
;
else
clock
|=
AR5K_PHY_PLL_40MHZ
;
...
...
drivers/net/wireless/iwlwifi/iwl-5000.c
浏览文件 @
86c2fe1e
...
...
@@ -46,7 +46,7 @@
#include "iwl-6000-hw.h"
/* Highest firmware API version supported */
#define IWL5000_UCODE_API_MAX
1
#define IWL5000_UCODE_API_MAX
2
#define IWL5150_UCODE_API_MAX 2
/* Lowest firmware API version supported */
...
...
drivers/net/wireless/iwlwifi/iwl-agn.c
浏览文件 @
86c2fe1e
...
...
@@ -669,13 +669,6 @@ static int iwl_set_mode(struct iwl_priv *priv, int mode)
if
(
!
iwl_is_ready_rf
(
priv
))
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
);
return
0
;
...
...
drivers/net/wireless/iwlwifi/iwl-scan.c
浏览文件 @
86c2fe1e
...
...
@@ -227,9 +227,6 @@ static void iwl_rx_scan_complete_notif(struct iwl_priv *priv,
/* The HW is no longer scanning */
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
"
,
(
priv
->
scan_bands
&
BIT
(
IEEE80211_BAND_2GHZ
))
?
"2.4"
:
"5.2"
,
...
...
@@ -712,6 +709,8 @@ static void iwl_bg_request_scan(struct work_struct *data)
mutex_lock
(
&
priv
->
mutex
);
cancel_delayed_work
(
&
priv
->
scan_check
);
if
(
!
iwl_is_ready
(
priv
))
{
IWL_WARN
(
priv
,
"request scan called when driver not ready.
\n
"
);
goto
done
;
...
...
@@ -925,6 +924,8 @@ void iwl_bg_scan_completed(struct work_struct *work)
IWL_DEBUG_SCAN
(
priv
,
"SCAN complete scan
\n
"
);
cancel_delayed_work
(
&
priv
->
scan_check
);
ieee80211_scan_completed
(
priv
->
hw
,
false
);
if
(
test_bit
(
STATUS_EXIT_PENDING
,
&
priv
->
status
))
...
...
drivers/net/wireless/iwlwifi/iwl3945-base.c
浏览文件 @
86c2fe1e
...
...
@@ -782,13 +782,6 @@ static int iwl3945_set_mode(struct iwl_priv *priv, int mode)
if
(
!
iwl_is_ready_rf
(
priv
))
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
);
return
0
;
...
...
@@ -3298,6 +3291,8 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
mutex_lock
(
&
priv
->
mutex
);
cancel_delayed_work
(
&
priv
->
scan_check
);
if
(
!
iwl_is_ready
(
priv
))
{
IWL_WARN
(
priv
,
"request scan called when driver not ready.
\n
"
);
goto
done
;
...
...
drivers/net/wireless/rt2x00/rt2x00debug.c
浏览文件 @
86c2fe1e
...
...
@@ -138,7 +138,7 @@ void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
if
(
cipher
==
CIPHER_TKIP_NO_MIC
)
cipher
=
CIPHER_TKIP
;
if
(
cipher
==
CIPHER_NONE
||
cipher
>
CIPHER_MAX
)
if
(
cipher
==
CIPHER_NONE
||
cipher
>
=
CIPHER_MAX
)
return
;
/* Remove CIPHER_NONE index */
...
...
net/wireless/reg.c
浏览文件 @
86c2fe1e
...
...
@@ -1551,6 +1551,13 @@ static int regulatory_hint_core(const char *alpha2)
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
;
}
...
...
net/wireless/wext.c
浏览文件 @
86c2fe1e
...
...
@@ -786,6 +786,13 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
err
=
-
EFAULT
;
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
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录