Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9ffddb1a
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9ffddb1a
编写于
6月 22, 2012
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
上级
133189a4
e75dac92
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
21 deletion
+24
-21
drivers/net/wireless/iwlwifi/dvm/agn.h
drivers/net/wireless/iwlwifi/dvm/agn.h
+1
-1
drivers/net/wireless/iwlwifi/dvm/mac80211.c
drivers/net/wireless/iwlwifi/dvm/mac80211.c
+17
-20
drivers/net/wireless/iwlwifi/dvm/scan.c
drivers/net/wireless/iwlwifi/dvm/scan.c
+6
-0
未找到文件。
drivers/net/wireless/iwlwifi/dvm/agn.h
浏览文件 @
9ffddb1a
...
...
@@ -269,7 +269,7 @@ void iwl_scan_offchannel_skb_status(struct iwl_priv *priv);
#define IWL_ACTIVE_QUIET_TIME cpu_to_le16(10)
/* msec */
#define IWL_PLCP_QUIET_THRESH cpu_to_le16(1)
/* packets */
#define IWL_SCAN_CHECK_WATCHDOG (HZ *
7
)
#define IWL_SCAN_CHECK_WATCHDOG (HZ *
15
)
/* bt coex */
...
...
drivers/net/wireless/iwlwifi/dvm/mac80211.c
浏览文件 @
9ffddb1a
...
...
@@ -1411,13 +1411,11 @@ static void iwlagn_mac_remove_interface(struct ieee80211_hw *hw,
}
static
int
iwlagn_mac_change_interface
(
struct
ieee80211_hw
*
hw
,
struct
ieee80211_vif
*
vif
,
enum
nl80211_iftype
newtype
,
bool
newp2p
)
struct
ieee80211_vif
*
vif
,
enum
nl80211_iftype
newtype
,
bool
newp2p
)
{
struct
iwl_priv
*
priv
=
IWL_MAC80211_GET_DVM
(
hw
);
struct
iwl_rxon_context
*
ctx
=
iwl_rxon_ctx_from_vif
(
vif
);
struct
iwl_rxon_context
*
bss_ctx
=
&
priv
->
contexts
[
IWL_RXON_CTX_BSS
];
struct
iwl_rxon_context
*
tmp
;
struct
iwl_rxon_context
*
ctx
,
*
tmp
;
enum
nl80211_iftype
newviftype
=
newtype
;
u32
interface_modes
;
int
err
;
...
...
@@ -1428,6 +1426,18 @@ static int iwlagn_mac_change_interface(struct ieee80211_hw *hw,
mutex_lock
(
&
priv
->
mutex
);
ctx
=
iwl_rxon_ctx_from_vif
(
vif
);
/*
* To simplify this code, only support changes on the
* BSS context. The PAN context is usually reassigned
* by creating/removing P2P interfaces anyway.
*/
if
(
ctx
->
ctxid
!=
IWL_RXON_CTX_BSS
)
{
err
=
-
EBUSY
;
goto
out
;
}
if
(
!
ctx
->
vif
||
!
iwl_is_ready_rf
(
priv
))
{
/*
* Huh? But wait ... this can maybe happen when
...
...
@@ -1437,32 +1447,19 @@ static int iwlagn_mac_change_interface(struct ieee80211_hw *hw,
goto
out
;
}
/* Check if the switch is supported in the same context */
interface_modes
=
ctx
->
interface_modes
|
ctx
->
exclusive_interface_modes
;
if
(
!
(
interface_modes
&
BIT
(
newtype
)))
{
err
=
-
EBUSY
;
goto
out
;
}
/*
* Refuse a change that should be done by moving from the PAN
* context to the BSS context instead, if the BSS context is
* available and can support the new interface type.
*/
if
(
ctx
->
ctxid
==
IWL_RXON_CTX_PAN
&&
!
bss_ctx
->
vif
&&
(
bss_ctx
->
interface_modes
&
BIT
(
newtype
)
||
bss_ctx
->
exclusive_interface_modes
&
BIT
(
newtype
)))
{
BUILD_BUG_ON
(
NUM_IWL_RXON_CTX
!=
2
);
err
=
-
EBUSY
;
goto
out
;
}
if
(
ctx
->
exclusive_interface_modes
&
BIT
(
newtype
))
{
for_each_context
(
priv
,
tmp
)
{
if
(
ctx
==
tmp
)
continue
;
if
(
!
tmp
->
vif
)
if
(
!
tmp
->
is_active
)
continue
;
/*
...
...
drivers/net/wireless/iwlwifi/dvm/scan.c
浏览文件 @
9ffddb1a
...
...
@@ -720,6 +720,12 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
switch
(
priv
->
scan_type
)
{
case
IWL_SCAN_RADIO_RESET
:
IWL_DEBUG_SCAN
(
priv
,
"Start internal passive scan.
\n
"
);
/*
* Override quiet time as firmware checks that active
* dwell is >= quiet; since we use passive scan it'll
* not actually be used.
*/
scan
->
quiet_time
=
cpu_to_le16
(
IWL_RADIO_RESET_DWELL_TIME
);
break
;
case
IWL_SCAN_NORMAL
:
if
(
priv
->
scan_request
->
n_ssids
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录