Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f914edd3
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看板
提交
f914edd3
编写于
1月 03, 2012
作者:
V
Vasanthakumar Thiagarajan
提交者:
Kalle Valo
1月 09, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ath6kl: Add a function in wmi.c to add/delete a multicast filter
Signed-off-by:
N
Vasanthakumar Thiagarajan
<
vthiagar@qca.qualcomm.com
>
上级
3f3c4ee7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
35 addition
and
0 deletion
+35
-0
drivers/net/wireless/ath/ath6kl/wmi.c
drivers/net/wireless/ath/ath6kl/wmi.c
+28
-0
drivers/net/wireless/ath/ath6kl/wmi.h
drivers/net/wireless/ath/ath6kl/wmi.h
+7
-0
未找到文件。
drivers/net/wireless/ath/ath6kl/wmi.c
浏览文件 @
f914edd3
...
...
@@ -2873,6 +2873,34 @@ int ath6kl_wmi_mcast_filter_cmd(struct wmi *wmi, u8 if_idx, bool mc_all_on)
return
ret
;
}
int
ath6kl_wmi_add_del_mcast_filter_cmd
(
struct
wmi
*
wmi
,
u8
if_idx
,
u8
*
filter
,
bool
add_filter
)
{
struct
sk_buff
*
skb
;
struct
wmi_mcast_filter_add_del_cmd
*
cmd
;
int
ret
;
if
((
filter
[
0
]
!=
0x33
||
filter
[
1
]
!=
0x33
)
&&
(
filter
[
0
]
!=
0x01
||
filter
[
1
]
!=
0x00
||
filter
[
2
]
!=
0x5e
||
filter
[
3
]
>
0x7f
))
{
ath6kl_warn
(
"invalid multicast filter address
\n
"
);
return
-
EINVAL
;
}
skb
=
ath6kl_wmi_get_new_buf
(
sizeof
(
*
cmd
));
if
(
!
skb
)
return
-
ENOMEM
;
cmd
=
(
struct
wmi_mcast_filter_add_del_cmd
*
)
skb
->
data
;
memcpy
(
cmd
->
mcast_mac
,
filter
,
ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE
);
ret
=
ath6kl_wmi_cmd_send
(
wmi
,
if_idx
,
skb
,
add_filter
?
WMI_SET_MCAST_FILTER_CMDID
:
WMI_DEL_MCAST_FILTER_CMDID
,
NO_SYNC_WMIFLAG
);
return
ret
;
}
s32
ath6kl_wmi_get_rate
(
s8
rate_index
)
{
if
(
rate_index
==
RATE_AUTO
)
...
...
drivers/net/wireless/ath/ath6kl/wmi.h
浏览文件 @
f914edd3
...
...
@@ -1243,6 +1243,11 @@ struct wmi_mcast_filter_cmd {
u8
mcast_all_enable
;
}
__packed
;
#define ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE 6
struct
wmi_mcast_filter_add_del_cmd
{
u8
mcast_mac
[
ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE
];
}
__packed
;
/* Command Replies */
/* WMI_GET_CHANNEL_LIST_CMDID reply */
...
...
@@ -2439,6 +2444,8 @@ int ath6kl_wmi_set_roam_lrssi_cmd(struct wmi *wmi, u8 lrssi);
int
ath6kl_wmi_force_roam_cmd
(
struct
wmi
*
wmi
,
const
u8
*
bssid
);
int
ath6kl_wmi_set_roam_mode_cmd
(
struct
wmi
*
wmi
,
enum
wmi_roam_mode
mode
);
int
ath6kl_wmi_mcast_filter_cmd
(
struct
wmi
*
wmi
,
u8
if_idx
,
bool
mc_all_on
);
int
ath6kl_wmi_add_del_mcast_filter_cmd
(
struct
wmi
*
wmi
,
u8
if_idx
,
u8
*
filter
,
bool
add_filter
);
/* AP mode */
int
ath6kl_wmi_ap_profile_commit
(
struct
wmi
*
wmip
,
u8
if_idx
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录