Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
30684481
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
30684481
编写于
11月 06, 2019
作者:
F
Felix Fietkau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mt76: move ampdu_ref from mt76_dev to driver struct
It is only used by the driver Signed-off-by:
N
Felix Fietkau
<
nbd@nbd.name
>
上级
c7d2d631
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
12 addition
and
10 deletion
+12
-10
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt76.h
+0
-1
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
+3
-3
drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h
drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h
+1
-0
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
+3
-3
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
+1
-0
drivers/net/wireless/mediatek/mt76/mt76x02.h
drivers/net/wireless/mediatek/mt76/mt76x02.h
+1
-0
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
+3
-3
未找到文件。
drivers/net/wireless/mediatek/mt76/mt76.h
浏览文件 @
30684481
...
...
@@ -502,7 +502,6 @@ struct mt76_dev {
spinlock_t
rx_lock
;
struct
napi_struct
napi
[
__MT_RXQ_MAX
];
struct
sk_buff_head
rx_skb
[
__MT_RXQ_MAX
];
u32
ampdu_ref
;
struct
list_head
txwi_cache
;
struct
mt76_sw_queue
q_tx
[
2
*
__MT_TXQ_MAX
];
...
...
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
浏览文件 @
30684481
...
...
@@ -531,12 +531,12 @@ mt7603_mac_fill_rx(struct mt7603_dev *dev, struct sk_buff *skb)
/* all subframes of an A-MPDU have the same timestamp */
if
(
dev
->
rx_ampdu_ts
!=
rxd
[
12
])
{
if
(
!++
dev
->
mt76
.
ampdu_ref
)
dev
->
mt76
.
ampdu_ref
++
;
if
(
!++
dev
->
ampdu_ref
)
dev
->
ampdu_ref
++
;
}
dev
->
rx_ampdu_ts
=
rxd
[
12
];
status
->
ampdu_ref
=
dev
->
mt76
.
ampdu_ref
;
status
->
ampdu_ref
=
dev
->
ampdu_ref
;
}
remove_pad
=
rxd1
&
MT_RXD1_NORMAL_HDR_OFFSET
;
...
...
drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h
浏览文件 @
30684481
...
...
@@ -118,6 +118,7 @@ struct mt7603_dev {
u32
false_cca_ofdm
,
false_cca_cck
;
unsigned
long
last_cca_adj
;
u32
ampdu_ref
;
__le32
rx_ampdu_ts
;
u8
rssi_offset
[
3
];
...
...
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
浏览文件 @
30684481
...
...
@@ -118,12 +118,12 @@ int mt7615_mac_fill_rx(struct mt7615_dev *dev, struct sk_buff *skb)
/* all subframes of an A-MPDU have the same timestamp */
if
(
dev
->
rx_ampdu_ts
!=
rxd
[
12
])
{
if
(
!++
dev
->
mt76
.
ampdu_ref
)
dev
->
mt76
.
ampdu_ref
++
;
if
(
!++
dev
->
ampdu_ref
)
dev
->
ampdu_ref
++
;
}
dev
->
rx_ampdu_ts
=
rxd
[
12
];
status
->
ampdu_ref
=
dev
->
mt76
.
ampdu_ref
;
status
->
ampdu_ref
=
dev
->
ampdu_ref
;
}
remove_pad
=
rxd1
&
MT_RXD1_NORMAL_HDR_OFFSET
;
...
...
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
浏览文件 @
30684481
...
...
@@ -90,6 +90,7 @@ struct mt7615_dev {
u32
omac_mask
;
__le32
rx_ampdu_ts
;
u32
ampdu_ref
;
struct
list_head
sta_poll_list
;
spinlock_t
sta_poll_lock
;
...
...
drivers/net/wireless/mediatek/mt76/mt76x02.h
浏览文件 @
30684481
...
...
@@ -86,6 +86,7 @@ struct mt76x02_dev {
DECLARE_KFIFO_PTR
(
txstatus_fifo
,
struct
mt76x02_tx_status
);
spinlock_t
txstatus_fifo_lock
;
u32
tx_airtime
;
u32
ampdu_ref
;
struct
sk_buff
*
rx_head
;
...
...
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
浏览文件 @
30684481
...
...
@@ -824,7 +824,7 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb,
if
(
rxinfo
&
MT_RXINFO_AMPDU
)
{
status
->
flag
|=
RX_FLAG_AMPDU_DETAILS
;
status
->
ampdu_ref
=
dev
->
mt76
.
ampdu_ref
;
status
->
ampdu_ref
=
dev
->
ampdu_ref
;
/*
* When receiving an A-MPDU subframe and RSSI info is not valid,
...
...
@@ -832,8 +832,8 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb,
* are coming. The last one will have valid RSSI info
*/
if
(
rxinfo
&
MT_RXINFO_RSSI
)
{
if
(
!++
dev
->
mt76
.
ampdu_ref
)
dev
->
mt76
.
ampdu_ref
++
;
if
(
!++
dev
->
ampdu_ref
)
dev
->
ampdu_ref
++
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录