Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
bd2a8130
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看板
提交
bd2a8130
编写于
11月 14, 2012
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
上级
6fe7cc71
43c771a1
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
37 addition
and
12 deletion
+37
-12
net/mac80211/cfg.c
net/mac80211/cfg.c
+3
-0
net/mac80211/ieee80211_i.h
net/mac80211/ieee80211_i.h
+2
-0
net/mac80211/main.c
net/mac80211/main.c
+4
-2
net/mac80211/scan.c
net/mac80211/scan.c
+1
-1
net/mac80211/sta_info.c
net/mac80211/sta_info.c
+8
-3
net/mac80211/status.c
net/mac80211/status.c
+9
-0
net/mac80211/tx.c
net/mac80211/tx.c
+6
-3
net/mac80211/util.c
net/mac80211/util.c
+2
-0
net/wireless/reg.c
net/wireless/reg.c
+2
-3
未找到文件。
net/mac80211/cfg.c
浏览文件 @
bd2a8130
...
...
@@ -2594,6 +2594,9 @@ static void ieee80211_mgmt_frame_register(struct wiphy *wiphy,
else
local
->
probe_req_reg
--
;
if
(
!
local
->
open_count
)
break
;
ieee80211_queue_work
(
&
local
->
hw
,
&
local
->
reconfig_filter
);
break
;
default:
...
...
net/mac80211/ieee80211_i.h
浏览文件 @
bd2a8130
...
...
@@ -1314,6 +1314,8 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb,
struct
net_device
*
dev
);
netdev_tx_t
ieee80211_subif_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
);
void
ieee80211_purge_tx_queue
(
struct
ieee80211_hw
*
hw
,
struct
sk_buff_head
*
skbs
);
/* HT */
void
ieee80211_apply_htcap_overrides
(
struct
ieee80211_sub_if_data
*
sdata
,
...
...
net/mac80211/main.c
浏览文件 @
bd2a8130
...
...
@@ -871,8 +871,10 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
local
->
hw
.
wiphy
->
cipher_suites
,
sizeof
(
u32
)
*
local
->
hw
.
wiphy
->
n_cipher_suites
,
GFP_KERNEL
);
if
(
!
suites
)
return
-
ENOMEM
;
if
(
!
suites
)
{
result
=
-
ENOMEM
;
goto
fail_wiphy_register
;
}
for
(
r
=
0
;
r
<
local
->
hw
.
wiphy
->
n_cipher_suites
;
r
++
)
{
u32
suite
=
local
->
hw
.
wiphy
->
cipher_suites
[
r
];
if
(
suite
==
WLAN_CIPHER_SUITE_WEP40
||
...
...
net/mac80211/scan.c
浏览文件 @
bd2a8130
...
...
@@ -917,7 +917,7 @@ int ieee80211_request_sched_scan_start(struct ieee80211_sub_if_data *sdata,
struct
cfg80211_sched_scan_request
*
req
)
{
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
ieee80211_sched_scan_ies
sched_scan_ies
;
struct
ieee80211_sched_scan_ies
sched_scan_ies
=
{}
;
int
ret
,
i
;
mutex_lock
(
&
local
->
mtx
);
...
...
net/mac80211/sta_info.c
浏览文件 @
bd2a8130
...
...
@@ -117,8 +117,8 @@ static void free_sta_work(struct work_struct *wk)
for
(
ac
=
0
;
ac
<
IEEE80211_NUM_ACS
;
ac
++
)
{
local
->
total_ps_buffered
-=
skb_queue_len
(
&
sta
->
ps_tx_buf
[
ac
]);
__skb_queue_purge
(
&
sta
->
ps_tx_buf
[
ac
]);
__skb_queue_purge
(
&
sta
->
tx_filtered
[
ac
]);
ieee80211_purge_tx_queue
(
&
local
->
hw
,
&
sta
->
ps_tx_buf
[
ac
]);
ieee80211_purge_tx_queue
(
&
local
->
hw
,
&
sta
->
tx_filtered
[
ac
]);
}
#ifdef CONFIG_MAC80211_MESH
...
...
@@ -141,7 +141,7 @@ static void free_sta_work(struct work_struct *wk)
tid_tx
=
rcu_dereference_raw
(
sta
->
ampdu_mlme
.
tid_tx
[
i
]);
if
(
!
tid_tx
)
continue
;
__skb_queue_purge
(
&
tid_tx
->
pending
);
ieee80211_purge_tx_queue
(
&
local
->
hw
,
&
tid_tx
->
pending
);
kfree
(
tid_tx
);
}
...
...
@@ -961,6 +961,7 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
sk_buff_head
pending
;
int
filtered
=
0
,
buffered
=
0
,
ac
;
unsigned
long
flags
;
clear_sta_flag
(
sta
,
WLAN_STA_SP
);
...
...
@@ -976,12 +977,16 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
for
(
ac
=
0
;
ac
<
IEEE80211_NUM_ACS
;
ac
++
)
{
int
count
=
skb_queue_len
(
&
pending
),
tmp
;
spin_lock_irqsave
(
&
sta
->
tx_filtered
[
ac
].
lock
,
flags
);
skb_queue_splice_tail_init
(
&
sta
->
tx_filtered
[
ac
],
&
pending
);
spin_unlock_irqrestore
(
&
sta
->
tx_filtered
[
ac
].
lock
,
flags
);
tmp
=
skb_queue_len
(
&
pending
);
filtered
+=
tmp
-
count
;
count
=
tmp
;
spin_lock_irqsave
(
&
sta
->
ps_tx_buf
[
ac
].
lock
,
flags
);
skb_queue_splice_tail_init
(
&
sta
->
ps_tx_buf
[
ac
],
&
pending
);
spin_unlock_irqrestore
(
&
sta
->
ps_tx_buf
[
ac
].
lock
,
flags
);
tmp
=
skb_queue_len
(
&
pending
);
buffered
+=
tmp
-
count
;
}
...
...
net/mac80211/status.c
浏览文件 @
bd2a8130
...
...
@@ -668,3 +668,12 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb)
dev_kfree_skb_any
(
skb
);
}
EXPORT_SYMBOL
(
ieee80211_free_txskb
);
void
ieee80211_purge_tx_queue
(
struct
ieee80211_hw
*
hw
,
struct
sk_buff_head
*
skbs
)
{
struct
sk_buff
*
skb
;
while
((
skb
=
__skb_dequeue
(
skbs
)))
ieee80211_free_txskb
(
hw
,
skb
);
}
net/mac80211/tx.c
浏览文件 @
bd2a8130
...
...
@@ -1358,7 +1358,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx)
if
(
tx
->
skb
)
ieee80211_free_txskb
(
&
tx
->
local
->
hw
,
tx
->
skb
);
else
__skb_queue_purge
(
&
tx
->
skbs
);
ieee80211_purge_tx_queue
(
&
tx
->
local
->
hw
,
&
tx
->
skbs
);
return
-
1
;
}
else
if
(
unlikely
(
res
==
TX_QUEUED
))
{
I802_DEBUG_INC
(
tx
->
local
->
tx_handlers_queued
);
...
...
@@ -2120,10 +2120,13 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
*/
void
ieee80211_clear_tx_pending
(
struct
ieee80211_local
*
local
)
{
struct
sk_buff
*
skb
;
int
i
;
for
(
i
=
0
;
i
<
local
->
hw
.
queues
;
i
++
)
skb_queue_purge
(
&
local
->
pending
[
i
]);
for
(
i
=
0
;
i
<
local
->
hw
.
queues
;
i
++
)
{
while
((
skb
=
skb_dequeue
(
&
local
->
pending
[
i
]))
!=
NULL
)
ieee80211_free_txskb
(
&
local
->
hw
,
skb
);
}
}
/*
...
...
net/mac80211/util.c
浏览文件 @
bd2a8130
...
...
@@ -1491,6 +1491,8 @@ int ieee80211_reconfig(struct ieee80211_local *local)
list_for_each_entry
(
sdata
,
&
local
->
interfaces
,
list
)
{
if
(
sdata
->
vif
.
type
!=
NL80211_IFTYPE_STATION
)
continue
;
if
(
!
sdata
->
u
.
mgd
.
associated
)
continue
;
ieee80211_send_nullfunc
(
local
,
sdata
,
0
);
}
...
...
net/wireless/reg.c
浏览文件 @
bd2a8130
...
...
@@ -141,9 +141,8 @@ static const struct ieee80211_regdomain world_regdom = {
.
reg_rules
=
{
/* IEEE 802.11b/g, channels 1..11 */
REG_RULE
(
2412
-
10
,
2462
+
10
,
40
,
6
,
20
,
0
),
/* IEEE 802.11b/g, channels 12..13. No HT40
* channel fits here. */
REG_RULE
(
2467
-
10
,
2472
+
10
,
20
,
6
,
20
,
/* IEEE 802.11b/g, channels 12..13. */
REG_RULE
(
2467
-
10
,
2472
+
10
,
40
,
6
,
20
,
NL80211_RRF_PASSIVE_SCAN
|
NL80211_RRF_NO_IBSS
),
/* IEEE 802.11 channel 14 - Only JP enables
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录