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
b6a15802
Commit
b6a15802
authored
Dec 17, 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
bbf807bc
bd02cd25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
net/wireless/radiotap.c
net/wireless/radiotap.c
+4
-0
net/wireless/sme.c
net/wireless/sme.c
+12
-10
No files found.
net/wireless/radiotap.c
View file @
b6a15802
...
@@ -124,6 +124,10 @@ int ieee80211_radiotap_iterator_init(
...
@@ -124,6 +124,10 @@ int ieee80211_radiotap_iterator_init(
/* find payload start allowing for extended bitmap(s) */
/* find payload start allowing for extended bitmap(s) */
if
(
iterator
->
_bitmap_shifter
&
(
1
<<
IEEE80211_RADIOTAP_EXT
))
{
if
(
iterator
->
_bitmap_shifter
&
(
1
<<
IEEE80211_RADIOTAP_EXT
))
{
if
((
unsigned
long
)
iterator
->
_arg
-
(
unsigned
long
)
iterator
->
_rtheader
+
sizeof
(
uint32_t
)
>
(
unsigned
long
)
iterator
->
_max_length
)
return
-
EINVAL
;
while
(
get_unaligned_le32
(
iterator
->
_arg
)
&
while
(
get_unaligned_le32
(
iterator
->
_arg
)
&
(
1
<<
IEEE80211_RADIOTAP_EXT
))
{
(
1
<<
IEEE80211_RADIOTAP_EXT
))
{
iterator
->
_arg
+=
sizeof
(
uint32_t
);
iterator
->
_arg
+=
sizeof
(
uint32_t
);
...
...
net/wireless/sme.c
View file @
b6a15802
...
@@ -632,6 +632,16 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid,
...
@@ -632,6 +632,16 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid,
}
}
#endif
#endif
if
(
!
bss
&&
(
status
==
WLAN_STATUS_SUCCESS
))
{
WARN_ON_ONCE
(
!
wiphy_to_dev
(
wdev
->
wiphy
)
->
ops
->
connect
);
bss
=
cfg80211_get_bss
(
wdev
->
wiphy
,
NULL
,
bssid
,
wdev
->
ssid
,
wdev
->
ssid_len
,
WLAN_CAPABILITY_ESS
,
WLAN_CAPABILITY_ESS
);
if
(
bss
)
cfg80211_hold_bss
(
bss_from_pub
(
bss
));
}
if
(
wdev
->
current_bss
)
{
if
(
wdev
->
current_bss
)
{
cfg80211_unhold_bss
(
wdev
->
current_bss
);
cfg80211_unhold_bss
(
wdev
->
current_bss
);
cfg80211_put_bss
(
wdev
->
wiphy
,
&
wdev
->
current_bss
->
pub
);
cfg80211_put_bss
(
wdev
->
wiphy
,
&
wdev
->
current_bss
->
pub
);
...
@@ -649,16 +659,8 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid,
...
@@ -649,16 +659,8 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid,
return
;
return
;
}
}
if
(
!
bss
)
{
if
(
WARN_ON
(
!
bss
))
WARN_ON_ONCE
(
!
wiphy_to_dev
(
wdev
->
wiphy
)
->
ops
->
connect
);
return
;
bss
=
cfg80211_get_bss
(
wdev
->
wiphy
,
NULL
,
bssid
,
wdev
->
ssid
,
wdev
->
ssid_len
,
WLAN_CAPABILITY_ESS
,
WLAN_CAPABILITY_ESS
);
if
(
WARN_ON
(
!
bss
))
return
;
cfg80211_hold_bss
(
bss_from_pub
(
bss
));
}
wdev
->
current_bss
=
bss_from_pub
(
bss
);
wdev
->
current_bss
=
bss_from_pub
(
bss
);
...
...
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