Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
747af1e1
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
6
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看板
提交
747af1e1
编写于
1月 30, 2006
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'upstream-fixes'
上级
d1b46b0f
ae7ec205
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
34 addition
and
28 deletion
+34
-28
drivers/net/wireless/hostap/Kconfig
drivers/net/wireless/hostap/Kconfig
+1
-1
drivers/net/wireless/ipw2100.c
drivers/net/wireless/ipw2100.c
+26
-23
drivers/net/wireless/ipw2200.c
drivers/net/wireless/ipw2200.c
+5
-2
net/ieee80211/ieee80211_rx.c
net/ieee80211/ieee80211_rx.c
+2
-2
未找到文件。
drivers/net/wireless/hostap/Kconfig
浏览文件 @
747af1e1
...
...
@@ -75,7 +75,7 @@ config HOSTAP_PCI
config HOSTAP_CS
tristate "Host AP driver for Prism2/2.5/3 PC Cards"
depends on PCMCIA
!=n
&& HOSTAP
depends on PCMCIA && HOSTAP
---help---
Host AP driver's version for Prism2/2.5/3 PC Cards.
...
...
drivers/net/wireless/ipw2100.c
浏览文件 @
747af1e1
...
...
@@ -2201,6 +2201,17 @@ static int ipw2100_alloc_skb(struct ipw2100_priv *priv,
#define SEARCH_SNAPSHOT 1
#define SNAPSHOT_ADDR(ofs) (priv->snapshot[((ofs) >> 12) & 0xff] + ((ofs) & 0xfff))
static
void
ipw2100_snapshot_free
(
struct
ipw2100_priv
*
priv
)
{
int
i
;
if
(
!
priv
->
snapshot
[
0
])
return
;
for
(
i
=
0
;
i
<
0x30
;
i
++
)
kfree
(
priv
->
snapshot
[
i
]);
priv
->
snapshot
[
0
]
=
NULL
;
}
#ifdef CONFIG_IPW2100_DEBUG_C3
static
int
ipw2100_snapshot_alloc
(
struct
ipw2100_priv
*
priv
)
{
int
i
;
...
...
@@ -2221,16 +2232,6 @@ static int ipw2100_snapshot_alloc(struct ipw2100_priv *priv)
return
1
;
}
static
void
ipw2100_snapshot_free
(
struct
ipw2100_priv
*
priv
)
{
int
i
;
if
(
!
priv
->
snapshot
[
0
])
return
;
for
(
i
=
0
;
i
<
0x30
;
i
++
)
kfree
(
priv
->
snapshot
[
i
]);
priv
->
snapshot
[
0
]
=
NULL
;
}
static
u32
ipw2100_match_buf
(
struct
ipw2100_priv
*
priv
,
u8
*
in_buf
,
size_t
len
,
int
mode
)
{
...
...
@@ -2269,6 +2270,7 @@ static u32 ipw2100_match_buf(struct ipw2100_priv *priv, u8 * in_buf,
return
ret
;
}
#endif
/*
*
...
...
@@ -7113,10 +7115,16 @@ static int ipw2100_wx_set_txpow(struct net_device *dev,
struct
ipw2100_priv
*
priv
=
ieee80211_priv
(
dev
);
int
err
=
0
,
value
;
if
(
ipw_radio_kill_sw
(
priv
,
wrqu
->
txpower
.
disabled
))
return
-
EINPROGRESS
;
if
(
priv
->
ieee
->
iw_mode
!=
IW_MODE_ADHOC
)
return
0
;
if
((
wrqu
->
txpower
.
flags
&
IW_TXPOW_TYPE
)
!=
IW_TXPOW_DBM
)
return
-
EINVAL
;
if
(
wrqu
->
txpower
.
disabled
==
1
||
wrqu
->
txpower
.
fixed
==
0
)
if
(
wrqu
->
txpower
.
fixed
==
0
)
value
=
IPW_TX_POWER_DEFAULT
;
else
{
if
(
wrqu
->
txpower
.
value
<
IPW_TX_POWER_MIN_DBM
||
...
...
@@ -7151,24 +7159,19 @@ static int ipw2100_wx_get_txpow(struct net_device *dev,
struct
ipw2100_priv
*
priv
=
ieee80211_priv
(
dev
);
if
(
priv
->
ieee
->
iw_mode
!=
IW_MODE_ADHOC
)
{
wrqu
->
power
.
disabled
=
1
;
return
0
;
}
wrqu
->
txpower
.
disabled
=
(
priv
->
status
&
STATUS_RF_KILL_MASK
)
?
1
:
0
;
if
(
priv
->
tx_power
==
IPW_TX_POWER_DEFAULT
)
{
wrqu
->
power
.
fixed
=
0
;
wrqu
->
power
.
value
=
IPW_TX_POWER_MAX_DBM
;
wrqu
->
power
.
disabled
=
1
;
wrqu
->
txpower
.
fixed
=
0
;
wrqu
->
txpower
.
value
=
IPW_TX_POWER_MAX_DBM
;
}
else
{
wrqu
->
power
.
disabled
=
0
;
wrqu
->
power
.
fixed
=
1
;
wrqu
->
power
.
value
=
priv
->
tx_power
;
wrqu
->
txpower
.
fixed
=
1
;
wrqu
->
txpower
.
value
=
priv
->
tx_power
;
}
wrqu
->
power
.
flags
=
IW_TXPOW_DBM
;
wrqu
->
tx
power
.
flags
=
IW_TXPOW_DBM
;
IPW_DEBUG_WX
(
"GET TX Power -> %d
\n
"
,
wrqu
->
power
.
value
);
IPW_DEBUG_WX
(
"GET TX Power -> %d
\n
"
,
wrqu
->
tx
power
.
value
);
return
0
;
}
...
...
drivers/net/wireless/ipw2200.c
浏览文件 @
747af1e1
...
...
@@ -8012,6 +8012,10 @@ static int ipw_sw_reset(struct ipw_priv *priv, int init)
else
IPW_DEBUG_INFO
(
"Auto adhoc creation disabled.
\n
"
);
priv
->
config
&=
~
CFG_STATIC_ESSID
;
priv
->
essid_len
=
0
;
memset
(
priv
->
essid
,
0
,
IW_ESSID_MAX_SIZE
);
if
(
disable
)
{
priv
->
status
|=
STATUS_RF_KILL_SW
;
IPW_DEBUG_INFO
(
"Radio disabled.
\n
"
);
...
...
@@ -11035,7 +11039,6 @@ static int ipw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
net_dev
->
set_multicast_list
=
ipw_net_set_multicast_list
;
net_dev
->
set_mac_address
=
ipw_net_set_mac_address
;
priv
->
wireless_data
.
spy_data
=
&
priv
->
ieee
->
spy_data
;
priv
->
wireless_data
.
ieee80211
=
priv
->
ieee
;
net_dev
->
wireless_data
=
&
priv
->
wireless_data
;
net_dev
->
wireless_handlers
=
&
ipw_wx_handler_def
;
net_dev
->
ethtool_ops
=
&
ipw_ethtool_ops
;
...
...
@@ -11121,8 +11124,8 @@ static void ipw_pci_remove(struct pci_dev *pdev)
/* Free MAC hash list for ADHOC */
for
(
i
=
0
;
i
<
IPW_IBSS_MAC_HASH_SIZE
;
i
++
)
{
list_for_each_safe
(
p
,
q
,
&
priv
->
ibss_mac_hash
[
i
])
{
kfree
(
list_entry
(
p
,
struct
ipw_ibss_seq
,
list
));
list_del
(
p
);
kfree
(
list_entry
(
p
,
struct
ipw_ibss_seq
,
list
));
}
}
...
...
net/ieee80211/ieee80211_rx.c
浏览文件 @
747af1e1
...
...
@@ -1549,7 +1549,7 @@ void ieee80211_rx_mgt(struct ieee80211_device *ieee,
break
;
case
IEEE80211_STYPE_PROBE_REQ
:
IEEE80211_DEBUG_MGMT
(
"rec
ie
ved auth (%d)
\n
"
,
IEEE80211_DEBUG_MGMT
(
"rec
ei
ved auth (%d)
\n
"
,
WLAN_FC_GET_STYPE
(
le16_to_cpu
(
header
->
frame_ctl
)));
...
...
@@ -1583,7 +1583,7 @@ void ieee80211_rx_mgt(struct ieee80211_device *ieee,
break
;
case
IEEE80211_STYPE_AUTH
:
IEEE80211_DEBUG_MGMT
(
"rec
ie
ved auth (%d)
\n
"
,
IEEE80211_DEBUG_MGMT
(
"rec
ei
ved auth (%d)
\n
"
,
WLAN_FC_GET_STYPE
(
le16_to_cpu
(
header
->
frame_ctl
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录