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
nexedi
linux
Commits
785a7de9
Commit
785a7de9
authored
Sep 05, 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
518eefe1
7ce8c7a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
net/mac80211/cfg.c
net/mac80211/cfg.c
+4
-5
net/mac80211/mlme.c
net/mac80211/mlme.c
+4
-0
net/wireless/nl80211.c
net/wireless/nl80211.c
+3
-1
No files found.
net/mac80211/cfg.c
View file @
785a7de9
...
...
@@ -1378,6 +1378,8 @@ static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
else
memset
(
next_hop
,
0
,
ETH_ALEN
);
memset
(
pinfo
,
0
,
sizeof
(
*
pinfo
));
pinfo
->
generation
=
mesh_paths_generation
;
pinfo
->
filled
=
MPATH_INFO_FRAME_QLEN
|
...
...
@@ -1396,7 +1398,6 @@ static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
pinfo
->
discovery_timeout
=
jiffies_to_msecs
(
mpath
->
discovery_timeout
);
pinfo
->
discovery_retries
=
mpath
->
discovery_retries
;
pinfo
->
flags
=
0
;
if
(
mpath
->
flags
&
MESH_PATH_ACTIVE
)
pinfo
->
flags
|=
NL80211_MPATH_FLAG_ACTIVE
;
if
(
mpath
->
flags
&
MESH_PATH_RESOLVING
)
...
...
@@ -1405,10 +1406,8 @@ static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
pinfo
->
flags
|=
NL80211_MPATH_FLAG_SN_VALID
;
if
(
mpath
->
flags
&
MESH_PATH_FIXED
)
pinfo
->
flags
|=
NL80211_MPATH_FLAG_FIXED
;
if
(
mpath
->
flags
&
MESH_PATH_RESOLVING
)
pinfo
->
flags
|=
NL80211_MPATH_FLAG_RESOLVING
;
pinfo
->
flags
=
mpath
->
flags
;
if
(
mpath
->
flags
&
MESH_PATH_RESOLVED
)
pinfo
->
flags
|=
NL80211_MPATH_FLAG_RESOLVED
;
}
static
int
ieee80211_get_mpath
(
struct
wiphy
*
wiphy
,
struct
net_device
*
dev
,
...
...
net/mac80211/mlme.c
View file @
785a7de9
...
...
@@ -3248,6 +3248,8 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
goto
out_unlock
;
err_clear:
memset
(
ifmgd
->
bssid
,
0
,
ETH_ALEN
);
ieee80211_bss_info_change_notify
(
sdata
,
BSS_CHANGED_BSSID
);
ifmgd
->
auth_data
=
NULL
;
err_free:
kfree
(
auth_data
);
...
...
@@ -3439,6 +3441,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
err
=
0
;
goto
out
;
err_clear:
memset
(
ifmgd
->
bssid
,
0
,
ETH_ALEN
);
ieee80211_bss_info_change_notify
(
sdata
,
BSS_CHANGED_BSSID
);
ifmgd
->
assoc_data
=
NULL
;
err_free:
kfree
(
assoc_data
);
...
...
net/wireless/nl80211.c
View file @
785a7de9
...
...
@@ -5633,8 +5633,10 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info)
sizeof
(
connect
.
ht_capa_mask
));
if
(
info
->
attrs
[
NL80211_ATTR_HT_CAPABILITY
])
{
if
(
!
info
->
attrs
[
NL80211_ATTR_HT_CAPABILITY_MASK
])
if
(
!
info
->
attrs
[
NL80211_ATTR_HT_CAPABILITY_MASK
])
{
kfree
(
connkeys
);
return
-
EINVAL
;
}
memcpy
(
&
connect
.
ht_capa
,
nla_data
(
info
->
attrs
[
NL80211_ATTR_HT_CAPABILITY
]),
sizeof
(
connect
.
ht_capa
));
...
...
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