Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
15214c2f
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看板
提交
15214c2f
编写于
9月 30, 2013
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
上级
c7515d23
aa5f66d5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
14 deletion
+22
-14
net/mac80211/rx.c
net/mac80211/rx.c
+3
-0
net/mac80211/util.c
net/mac80211/util.c
+1
-4
net/wireless/core.c
net/wireless/core.c
+13
-8
net/wireless/ibss.c
net/wireless/ibss.c
+3
-0
net/wireless/nl80211.c
net/wireless/nl80211.c
+2
-2
未找到文件。
net/mac80211/rx.c
浏览文件 @
15214c2f
...
...
@@ -3056,6 +3056,9 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx,
case
NL80211_IFTYPE_ADHOC
:
if
(
!
bssid
)
return
0
;
if
(
ether_addr_equal
(
sdata
->
vif
.
addr
,
hdr
->
addr2
)
||
ether_addr_equal
(
sdata
->
u
.
ibss
.
bssid
,
hdr
->
addr2
))
return
0
;
if
(
ieee80211_is_beacon
(
hdr
->
frame_control
))
{
return
1
;
}
else
if
(
!
ieee80211_bssid_match
(
bssid
,
sdata
->
u
.
ibss
.
bssid
))
{
...
...
net/mac80211/util.c
浏览文件 @
15214c2f
...
...
@@ -2103,7 +2103,7 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
{
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
ieee80211_supported_band
*
sband
;
int
rate
,
s
kip
,
s
hift
;
int
rate
,
shift
;
u8
i
,
exrates
,
*
pos
;
u32
basic_rates
=
sdata
->
vif
.
bss_conf
.
basic_rates
;
u32
rate_flags
;
...
...
@@ -2131,14 +2131,11 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
pos
=
skb_put
(
skb
,
exrates
+
2
);
*
pos
++
=
WLAN_EID_EXT_SUPP_RATES
;
*
pos
++
=
exrates
;
skip
=
0
;
for
(
i
=
8
;
i
<
sband
->
n_bitrates
;
i
++
)
{
u8
basic
=
0
;
if
((
rate_flags
&
sband
->
bitrates
[
i
].
flags
)
!=
rate_flags
)
continue
;
if
(
skip
++
<
8
)
continue
;
if
(
need_basic
&&
basic_rates
&
BIT
(
i
))
basic
=
0x80
;
rate
=
DIV_ROUND_UP
(
sband
->
bitrates
[
i
].
bitrate
,
...
...
net/wireless/core.c
浏览文件 @
15214c2f
...
...
@@ -566,18 +566,13 @@ int wiphy_register(struct wiphy *wiphy)
/* check and set up bitrates */
ieee80211_set_bitrate_flags
(
wiphy
);
rtnl_lock
();
res
=
device_add
(
&
rdev
->
wiphy
.
dev
);
if
(
res
)
return
res
;
res
=
rfkill_register
(
rdev
->
rfkill
);
if
(
res
)
{
device_del
(
&
rdev
->
wiphy
.
dev
);
rtnl_unlock
(
);
return
res
;
}
rtnl_lock
();
/* set up regulatory info */
wiphy_regulatory_register
(
wiphy
);
...
...
@@ -606,6 +601,15 @@ int wiphy_register(struct wiphy *wiphy)
rdev
->
wiphy
.
registered
=
true
;
rtnl_unlock
();
res
=
rfkill_register
(
rdev
->
rfkill
);
if
(
res
)
{
rfkill_destroy
(
rdev
->
rfkill
);
rdev
->
rfkill
=
NULL
;
wiphy_unregister
(
&
rdev
->
wiphy
);
return
res
;
}
return
0
;
}
EXPORT_SYMBOL
(
wiphy_register
);
...
...
@@ -640,7 +644,8 @@ void wiphy_unregister(struct wiphy *wiphy)
rtnl_unlock
();
__count
==
0
;
}));
rfkill_unregister
(
rdev
->
rfkill
);
if
(
rdev
->
rfkill
)
rfkill_unregister
(
rdev
->
rfkill
);
rtnl_lock
();
rdev
->
wiphy
.
registered
=
false
;
...
...
net/wireless/ibss.c
浏览文件 @
15214c2f
...
...
@@ -263,6 +263,8 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,
if
(
chan
->
flags
&
IEEE80211_CHAN_DISABLED
)
continue
;
wdev
->
wext
.
ibss
.
chandef
.
chan
=
chan
;
wdev
->
wext
.
ibss
.
chandef
.
center_freq1
=
chan
->
center_freq
;
break
;
}
...
...
@@ -347,6 +349,7 @@ int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
if
(
chan
)
{
wdev
->
wext
.
ibss
.
chandef
.
chan
=
chan
;
wdev
->
wext
.
ibss
.
chandef
.
width
=
NL80211_CHAN_WIDTH_20_NOHT
;
wdev
->
wext
.
ibss
.
chandef
.
center_freq1
=
freq
;
wdev
->
wext
.
ibss
.
channel_fixed
=
true
;
}
else
{
/* cfg80211_ibss_wext_join will pick one if needed */
...
...
net/wireless/nl80211.c
浏览文件 @
15214c2f
...
...
@@ -2421,7 +2421,7 @@ static int nl80211_set_interface(struct sk_buff *skb, struct genl_info *info)
change
=
true
;
}
if
(
flags
&&
(
*
flags
&
NL80211_MNT
R_FLAG_ACTIVE
)
&&
if
(
flags
&&
(
*
flags
&
MONITO
R_FLAG_ACTIVE
)
&&
!
(
rdev
->
wiphy
.
features
&
NL80211_FEATURE_ACTIVE_MONITOR
))
return
-
EOPNOTSUPP
;
...
...
@@ -2483,7 +2483,7 @@ static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info)
info
->
attrs
[
NL80211_ATTR_MNTR_FLAGS
]
:
NULL
,
&
flags
);
if
(
!
err
&&
(
flags
&
NL80211_MNT
R_FLAG_ACTIVE
)
&&
if
(
!
err
&&
(
flags
&
MONITO
R_FLAG_ACTIVE
)
&&
!
(
rdev
->
wiphy
.
features
&
NL80211_FEATURE_ACTIVE_MONITOR
))
return
-
EOPNOTSUPP
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录