Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
65210946
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看板
提交
65210946
编写于
11月 19, 2012
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
上级
e56108d9
e1b69fdf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
8 deletion
+14
-8
drivers/net/wireless/iwlwifi/dvm/mac80211.c
drivers/net/wireless/iwlwifi/dvm/mac80211.c
+14
-0
drivers/net/wireless/iwlwifi/pcie/tx.c
drivers/net/wireless/iwlwifi/pcie/tx.c
+0
-8
未找到文件。
drivers/net/wireless/iwlwifi/dvm/mac80211.c
浏览文件 @
65210946
...
...
@@ -1354,6 +1354,20 @@ static int iwlagn_mac_add_interface(struct ieee80211_hw *hw,
vif_priv
->
ctx
=
ctx
;
ctx
->
vif
=
vif
;
/*
* In SNIFFER device type, the firmware reports the FCS to
* the host, rather than snipping it off. Unfortunately,
* mac80211 doesn't (yet) provide a per-packet flag for
* this, so that we have to set the hardware flag based
* on the interfaces added. As the monitor interface can
* only be present by itself, and will be removed before
* other interfaces are added, this is safe.
*/
if
(
vif
->
type
==
NL80211_IFTYPE_MONITOR
)
priv
->
hw
->
flags
|=
IEEE80211_HW_RX_INCLUDES_FCS
;
else
priv
->
hw
->
flags
&=
~
IEEE80211_HW_RX_INCLUDES_FCS
;
err
=
iwl_setup_interface
(
priv
,
ctx
);
if
(
!
err
||
reset
)
goto
out
;
...
...
drivers/net/wireless/iwlwifi/pcie/tx.c
浏览文件 @
65210946
...
...
@@ -480,20 +480,12 @@ void iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int txq_id, int fifo,
void
iwl_trans_pcie_txq_disable
(
struct
iwl_trans
*
trans
,
int
txq_id
)
{
struct
iwl_trans_pcie
*
trans_pcie
=
IWL_TRANS_GET_PCIE_TRANS
(
trans
);
u16
rd_ptr
,
wr_ptr
;
int
n_bd
=
trans_pcie
->
txq
[
txq_id
].
q
.
n_bd
;
if
(
!
test_and_clear_bit
(
txq_id
,
trans_pcie
->
queue_used
))
{
WARN_ONCE
(
1
,
"queue %d not used"
,
txq_id
);
return
;
}
rd_ptr
=
iwl_read_prph
(
trans
,
SCD_QUEUE_RDPTR
(
txq_id
))
&
(
n_bd
-
1
);
wr_ptr
=
iwl_read_prph
(
trans
,
SCD_QUEUE_WRPTR
(
txq_id
));
WARN_ONCE
(
rd_ptr
!=
wr_ptr
,
"queue %d isn't empty: [%d,%d]"
,
txq_id
,
rd_ptr
,
wr_ptr
);
iwl_txq_set_inactive
(
trans
,
txq_id
);
IWL_DEBUG_TX_QUEUES
(
trans
,
"Deactivate queue %d
\n
"
,
txq_id
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录