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
8d6fcbdb
Commit
8d6fcbdb
authored
Jun 22, 2012
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
931cb03a
88a9e31c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
net/mac80211/mlme.c
net/mac80211/mlme.c
+6
-7
No files found.
net/mac80211/mlme.c
View file @
8d6fcbdb
...
...
@@ -1342,7 +1342,6 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
sta_info
*
sta
;
u32
changed
=
0
;
u8
bssid
[
ETH_ALEN
];
ASSERT_MGD_MTX
(
ifmgd
);
...
...
@@ -1354,10 +1353,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
ieee80211_stop_poll
(
sdata
);
memcpy
(
bssid
,
ifmgd
->
associated
->
bssid
,
ETH_ALEN
);
ifmgd
->
associated
=
NULL
;
memset
(
ifmgd
->
bssid
,
0
,
ETH_ALEN
);
/*
* we need to commit the associated = NULL change because the
...
...
@@ -1377,7 +1373,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
netif_carrier_off
(
sdata
->
dev
);
mutex_lock
(
&
local
->
sta_mtx
);
sta
=
sta_info_get
(
sdata
,
bssid
);
sta
=
sta_info_get
(
sdata
,
ifmgd
->
bssid
);
if
(
sta
)
{
set_sta_flag
(
sta
,
WLAN_STA_BLOCK_BA
);
ieee80211_sta_tear_down_BA_sessions
(
sta
,
tx
);
...
...
@@ -1386,13 +1382,16 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
/* deauthenticate/disassociate now */
if
(
tx
||
frame_buf
)
ieee80211_send_deauth_disassoc
(
sdata
,
bssid
,
stype
,
reason
,
tx
,
frame_buf
);
ieee80211_send_deauth_disassoc
(
sdata
,
ifmgd
->
bssid
,
stype
,
reason
,
tx
,
frame_buf
);
/* flush out frame */
if
(
tx
)
drv_flush
(
local
,
false
);
/* clear bssid only after building the needed mgmt frames */
memset
(
ifmgd
->
bssid
,
0
,
ETH_ALEN
);
/* remove AP and TDLS peers */
sta_info_flush
(
local
,
sdata
);
...
...
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