Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
15214c2f
Commit
15214c2f
authored
Sep 30, 2013
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
parents
c7515d23
aa5f66d5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
14 deletions
+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
No files found.
net/mac80211/rx.c
View file @
15214c2f
...
@@ -3056,6 +3056,9 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx,
...
@@ -3056,6 +3056,9 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx,
case
NL80211_IFTYPE_ADHOC
:
case
NL80211_IFTYPE_ADHOC
:
if
(
!
bssid
)
if
(
!
bssid
)
return
0
;
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
))
{
if
(
ieee80211_is_beacon
(
hdr
->
frame_control
))
{
return
1
;
return
1
;
}
else
if
(
!
ieee80211_bssid_match
(
bssid
,
sdata
->
u
.
ibss
.
bssid
))
{
}
else
if
(
!
ieee80211_bssid_match
(
bssid
,
sdata
->
u
.
ibss
.
bssid
))
{
...
...
net/mac80211/util.c
View file @
15214c2f
...
@@ -2103,7 +2103,7 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
...
@@ -2103,7 +2103,7 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
{
{
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
ieee80211_supported_band
*
sband
;
struct
ieee80211_supported_band
*
sband
;
int
rate
,
s
kip
,
s
hift
;
int
rate
,
shift
;
u8
i
,
exrates
,
*
pos
;
u8
i
,
exrates
,
*
pos
;
u32
basic_rates
=
sdata
->
vif
.
bss_conf
.
basic_rates
;
u32
basic_rates
=
sdata
->
vif
.
bss_conf
.
basic_rates
;
u32
rate_flags
;
u32
rate_flags
;
...
@@ -2131,14 +2131,11 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
...
@@ -2131,14 +2131,11 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
pos
=
skb_put
(
skb
,
exrates
+
2
);
pos
=
skb_put
(
skb
,
exrates
+
2
);
*
pos
++
=
WLAN_EID_EXT_SUPP_RATES
;
*
pos
++
=
WLAN_EID_EXT_SUPP_RATES
;
*
pos
++
=
exrates
;
*
pos
++
=
exrates
;
skip
=
0
;
for
(
i
=
8
;
i
<
sband
->
n_bitrates
;
i
++
)
{
for
(
i
=
8
;
i
<
sband
->
n_bitrates
;
i
++
)
{
u8
basic
=
0
;
u8
basic
=
0
;
if
((
rate_flags
&
sband
->
bitrates
[
i
].
flags
)
if
((
rate_flags
&
sband
->
bitrates
[
i
].
flags
)
!=
rate_flags
)
!=
rate_flags
)
continue
;
continue
;
if
(
skip
++
<
8
)
continue
;
if
(
need_basic
&&
basic_rates
&
BIT
(
i
))
if
(
need_basic
&&
basic_rates
&
BIT
(
i
))
basic
=
0x80
;
basic
=
0x80
;
rate
=
DIV_ROUND_UP
(
sband
->
bitrates
[
i
].
bitrate
,
rate
=
DIV_ROUND_UP
(
sband
->
bitrates
[
i
].
bitrate
,
...
...
net/wireless/core.c
View file @
15214c2f
...
@@ -566,18 +566,13 @@ int wiphy_register(struct wiphy *wiphy)
...
@@ -566,18 +566,13 @@ int wiphy_register(struct wiphy *wiphy)
/* check and set up bitrates */
/* check and set up bitrates */
ieee80211_set_bitrate_flags
(
wiphy
);
ieee80211_set_bitrate_flags
(
wiphy
);
rtnl_lock
();
res
=
device_add
(
&
rdev
->
wiphy
.
dev
);
res
=
device_add
(
&
rdev
->
wiphy
.
dev
);
if
(
res
)
return
res
;
res
=
rfkill_register
(
rdev
->
rfkill
);
if
(
res
)
{
if
(
res
)
{
device_del
(
&
rdev
->
wiphy
.
dev
);
rtnl_unlock
(
);
return
res
;
return
res
;
}
}
rtnl_lock
();
/* set up regulatory info */
/* set up regulatory info */
wiphy_regulatory_register
(
wiphy
);
wiphy_regulatory_register
(
wiphy
);
...
@@ -606,6 +601,15 @@ int wiphy_register(struct wiphy *wiphy)
...
@@ -606,6 +601,15 @@ int wiphy_register(struct wiphy *wiphy)
rdev
->
wiphy
.
registered
=
true
;
rdev
->
wiphy
.
registered
=
true
;
rtnl_unlock
();
rtnl_unlock
();
res
=
rfkill_register
(
rdev
->
rfkill
);
if
(
res
)
{
rfkill_destroy
(
rdev
->
rfkill
);
rdev
->
rfkill
=
NULL
;
wiphy_unregister
(
&
rdev
->
wiphy
);
return
res
;
}
return
0
;
return
0
;
}
}
EXPORT_SYMBOL
(
wiphy_register
);
EXPORT_SYMBOL
(
wiphy_register
);
...
@@ -640,7 +644,8 @@ void wiphy_unregister(struct wiphy *wiphy)
...
@@ -640,7 +644,8 @@ void wiphy_unregister(struct wiphy *wiphy)
rtnl_unlock
();
rtnl_unlock
();
__count
==
0
;
}));
__count
==
0
;
}));
rfkill_unregister
(
rdev
->
rfkill
);
if
(
rdev
->
rfkill
)
rfkill_unregister
(
rdev
->
rfkill
);
rtnl_lock
();
rtnl_lock
();
rdev
->
wiphy
.
registered
=
false
;
rdev
->
wiphy
.
registered
=
false
;
...
...
net/wireless/ibss.c
View file @
15214c2f
...
@@ -263,6 +263,8 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,
...
@@ -263,6 +263,8 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,
if
(
chan
->
flags
&
IEEE80211_CHAN_DISABLED
)
if
(
chan
->
flags
&
IEEE80211_CHAN_DISABLED
)
continue
;
continue
;
wdev
->
wext
.
ibss
.
chandef
.
chan
=
chan
;
wdev
->
wext
.
ibss
.
chandef
.
chan
=
chan
;
wdev
->
wext
.
ibss
.
chandef
.
center_freq1
=
chan
->
center_freq
;
break
;
break
;
}
}
...
@@ -347,6 +349,7 @@ int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
...
@@ -347,6 +349,7 @@ int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
if
(
chan
)
{
if
(
chan
)
{
wdev
->
wext
.
ibss
.
chandef
.
chan
=
chan
;
wdev
->
wext
.
ibss
.
chandef
.
chan
=
chan
;
wdev
->
wext
.
ibss
.
chandef
.
width
=
NL80211_CHAN_WIDTH_20_NOHT
;
wdev
->
wext
.
ibss
.
chandef
.
width
=
NL80211_CHAN_WIDTH_20_NOHT
;
wdev
->
wext
.
ibss
.
chandef
.
center_freq1
=
freq
;
wdev
->
wext
.
ibss
.
channel_fixed
=
true
;
wdev
->
wext
.
ibss
.
channel_fixed
=
true
;
}
else
{
}
else
{
/* cfg80211_ibss_wext_join will pick one if needed */
/* cfg80211_ibss_wext_join will pick one if needed */
...
...
net/wireless/nl80211.c
View file @
15214c2f
...
@@ -2421,7 +2421,7 @@ static int nl80211_set_interface(struct sk_buff *skb, struct genl_info *info)
...
@@ -2421,7 +2421,7 @@ static int nl80211_set_interface(struct sk_buff *skb, struct genl_info *info)
change
=
true
;
change
=
true
;
}
}
if
(
flags
&&
(
*
flags
&
NL80211_MNT
R_FLAG_ACTIVE
)
&&
if
(
flags
&&
(
*
flags
&
MONITO
R_FLAG_ACTIVE
)
&&
!
(
rdev
->
wiphy
.
features
&
NL80211_FEATURE_ACTIVE_MONITOR
))
!
(
rdev
->
wiphy
.
features
&
NL80211_FEATURE_ACTIVE_MONITOR
))
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
...
@@ -2483,7 +2483,7 @@ static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info)
...
@@ -2483,7 +2483,7 @@ static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info)
info
->
attrs
[
NL80211_ATTR_MNTR_FLAGS
]
:
NULL
,
info
->
attrs
[
NL80211_ATTR_MNTR_FLAGS
]
:
NULL
,
&
flags
);
&
flags
);
if
(
!
err
&&
(
flags
&
NL80211_MNT
R_FLAG_ACTIVE
)
&&
if
(
!
err
&&
(
flags
&
MONITO
R_FLAG_ACTIVE
)
&&
!
(
rdev
->
wiphy
.
features
&
NL80211_FEATURE_ACTIVE_MONITOR
))
!
(
rdev
->
wiphy
.
features
&
NL80211_FEATURE_ACTIVE_MONITOR
))
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment