Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e83e6541
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看板
提交
e83e6541
编写于
7月 13, 2012
作者:
J
Johannes Berg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mac80211: use eth_broadcast_addr
Instead of memset(). Signed-off-by:
N
Johannes Berg
<
johannes.berg@intel.com
>
上级
1411af15
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
net/mac80211/cfg.c
net/mac80211/cfg.c
+1
-1
net/mac80211/ibss.c
net/mac80211/ibss.c
+1
-1
net/mac80211/mesh_pathtbl.c
net/mac80211/mesh_pathtbl.c
+1
-1
net/mac80211/tx.c
net/mac80211/tx.c
+3
-3
未找到文件。
net/mac80211/cfg.c
浏览文件 @
e83e6541
...
@@ -950,7 +950,7 @@ static void ieee80211_send_layer2_update(struct sta_info *sta)
...
@@ -950,7 +950,7 @@ static void ieee80211_send_layer2_update(struct sta_info *sta)
/* 802.2 Type 1 Logical Link Control (LLC) Exchange Identifier (XID)
/* 802.2 Type 1 Logical Link Control (LLC) Exchange Identifier (XID)
* Update response frame; IEEE Std 802.2-1998, 5.4.1.2.1 */
* Update response frame; IEEE Std 802.2-1998, 5.4.1.2.1 */
memset
(
msg
->
da
,
0xff
,
ETH_ALEN
);
eth_broadcast_addr
(
msg
->
da
);
memcpy
(
msg
->
sa
,
sta
->
sta
.
addr
,
ETH_ALEN
);
memcpy
(
msg
->
sa
,
sta
->
sta
.
addr
,
ETH_ALEN
);
msg
->
len
=
htons
(
6
);
msg
->
len
=
htons
(
6
);
msg
->
dsap
=
0
;
msg
->
dsap
=
0
;
...
...
net/mac80211/ibss.c
浏览文件 @
e83e6541
...
@@ -109,7 +109,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
...
@@ -109,7 +109,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
memset
(
mgmt
,
0
,
24
+
sizeof
(
mgmt
->
u
.
beacon
));
memset
(
mgmt
,
0
,
24
+
sizeof
(
mgmt
->
u
.
beacon
));
mgmt
->
frame_control
=
cpu_to_le16
(
IEEE80211_FTYPE_MGMT
|
mgmt
->
frame_control
=
cpu_to_le16
(
IEEE80211_FTYPE_MGMT
|
IEEE80211_STYPE_PROBE_RESP
);
IEEE80211_STYPE_PROBE_RESP
);
memset
(
mgmt
->
da
,
0xff
,
ETH_ALEN
);
eth_broadcast_addr
(
mgmt
->
da
);
memcpy
(
mgmt
->
sa
,
sdata
->
vif
.
addr
,
ETH_ALEN
);
memcpy
(
mgmt
->
sa
,
sdata
->
vif
.
addr
,
ETH_ALEN
);
memcpy
(
mgmt
->
bssid
,
ifibss
->
bssid
,
ETH_ALEN
);
memcpy
(
mgmt
->
bssid
,
ifibss
->
bssid
,
ETH_ALEN
);
mgmt
->
u
.
beacon
.
beacon_int
=
cpu_to_le16
(
beacon_int
);
mgmt
->
u
.
beacon
.
beacon_int
=
cpu_to_le16
(
beacon_int
);
...
...
net/mac80211/mesh_pathtbl.c
浏览文件 @
e83e6541
...
@@ -531,7 +531,7 @@ int mesh_path_add(u8 *dst, struct ieee80211_sub_if_data *sdata)
...
@@ -531,7 +531,7 @@ int mesh_path_add(u8 *dst, struct ieee80211_sub_if_data *sdata)
read_lock_bh
(
&
pathtbl_resize_lock
);
read_lock_bh
(
&
pathtbl_resize_lock
);
memcpy
(
new_mpath
->
dst
,
dst
,
ETH_ALEN
);
memcpy
(
new_mpath
->
dst
,
dst
,
ETH_ALEN
);
memset
(
new_mpath
->
rann_snd_addr
,
0xff
,
ETH_ALEN
);
eth_broadcast_addr
(
new_mpath
->
rann_snd_addr
);
new_mpath
->
is_root
=
false
;
new_mpath
->
is_root
=
false
;
new_mpath
->
sdata
=
sdata
;
new_mpath
->
sdata
=
sdata
;
new_mpath
->
flags
=
0
;
new_mpath
->
flags
=
0
;
...
...
net/mac80211/tx.c
浏览文件 @
e83e6541
...
@@ -2415,7 +2415,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,
...
@@ -2415,7 +2415,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,
memset
(
mgmt
,
0
,
hdr_len
);
memset
(
mgmt
,
0
,
hdr_len
);
mgmt
->
frame_control
=
mgmt
->
frame_control
=
cpu_to_le16
(
IEEE80211_FTYPE_MGMT
|
IEEE80211_STYPE_BEACON
);
cpu_to_le16
(
IEEE80211_FTYPE_MGMT
|
IEEE80211_STYPE_BEACON
);
memset
(
mgmt
->
da
,
0xff
,
ETH_ALEN
);
eth_broadcast_addr
(
mgmt
->
da
);
memcpy
(
mgmt
->
sa
,
sdata
->
vif
.
addr
,
ETH_ALEN
);
memcpy
(
mgmt
->
sa
,
sdata
->
vif
.
addr
,
ETH_ALEN
);
memcpy
(
mgmt
->
bssid
,
sdata
->
vif
.
addr
,
ETH_ALEN
);
memcpy
(
mgmt
->
bssid
,
sdata
->
vif
.
addr
,
ETH_ALEN
);
mgmt
->
u
.
beacon
.
beacon_int
=
mgmt
->
u
.
beacon
.
beacon_int
=
...
@@ -2609,9 +2609,9 @@ struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw,
...
@@ -2609,9 +2609,9 @@ struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw,
memset
(
hdr
,
0
,
sizeof
(
*
hdr
));
memset
(
hdr
,
0
,
sizeof
(
*
hdr
));
hdr
->
frame_control
=
cpu_to_le16
(
IEEE80211_FTYPE_MGMT
|
hdr
->
frame_control
=
cpu_to_le16
(
IEEE80211_FTYPE_MGMT
|
IEEE80211_STYPE_PROBE_REQ
);
IEEE80211_STYPE_PROBE_REQ
);
memset
(
hdr
->
addr1
,
0xff
,
ETH_ALEN
);
eth_broadcast_addr
(
hdr
->
addr1
);
memcpy
(
hdr
->
addr2
,
vif
->
addr
,
ETH_ALEN
);
memcpy
(
hdr
->
addr2
,
vif
->
addr
,
ETH_ALEN
);
memset
(
hdr
->
addr3
,
0xff
,
ETH_ALEN
);
eth_broadcast_addr
(
hdr
->
addr3
);
pos
=
skb_put
(
skb
,
ie_ssid_len
);
pos
=
skb_put
(
skb
,
ie_ssid_len
);
*
pos
++
=
WLAN_EID_SSID
;
*
pos
++
=
WLAN_EID_SSID
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录