Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
26b36cfe
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看板
提交
26b36cfe
编写于
14年前
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mac80211: make ARP filtering depend on CONFIG_INET
Signed-off-by:
N
John W. Linville
<
linville@tuxdriver.com
>
上级
2826bcd8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
0 deletion
+8
-0
net/mac80211/main.c
net/mac80211/main.c
+6
-0
net/mac80211/mlme.c
net/mac80211/mlme.c
+2
-0
未找到文件。
net/mac80211/main.c
浏览文件 @
26b36cfe
...
...
@@ -329,6 +329,7 @@ static void ieee80211_recalc_smps_work(struct work_struct *work)
mutex_unlock
(
&
local
->
iflist_mtx
);
}
#ifdef CONFIG_INET
int
ieee80211_set_arp_filter
(
struct
ieee80211_sub_if_data
*
sdata
)
{
struct
in_device
*
idev
;
...
...
@@ -380,6 +381,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,
return
NOTIFY_DONE
;
}
#endif
struct
ieee80211_hw
*
ieee80211_alloc_hw
(
size_t
priv_data_len
,
const
struct
ieee80211_ops
*
ops
)
...
...
@@ -669,10 +671,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
goto
fail_pm_qos
;
}
#ifdef CONFIG_INET
local
->
ifa_notifier
.
notifier_call
=
ieee80211_ifa_changed
;
result
=
register_inetaddr_notifier
(
&
local
->
ifa_notifier
);
if
(
result
)
goto
fail_ifa
;
#endif
return
0
;
...
...
@@ -707,7 +711,9 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
pm_qos_remove_notifier
(
PM_QOS_NETWORK_LATENCY
,
&
local
->
network_latency_notifier
);
#ifdef CONFIG_INET
unregister_inetaddr_notifier
(
&
local
->
ifa_notifier
);
#endif
rtnl_lock
();
...
...
This diff is collapsed.
Click to expand it.
net/mac80211/mlme.c
浏览文件 @
26b36cfe
...
...
@@ -2078,6 +2078,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
cfg80211_send_assoc_timeout
(
wk
->
sdata
->
dev
,
wk
->
filter_ta
);
return
WORK_DONE_DESTROY
;
#ifdef CONFIG_INET
}
else
{
mutex_unlock
(
&
wk
->
sdata
->
u
.
mgd
.
mtx
);
...
...
@@ -2088,6 +2089,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
rtnl_lock
();
ieee80211_set_arp_filter
(
wk
->
sdata
);
rtnl_unlock
();
#endif
}
}
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部