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
e56108d9
Commit
e56108d9
authored
Nov 19, 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
da8fb123
38c1a01c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
net/core/net-sysfs.c
net/core/net-sysfs.c
+20
-0
net/mac80211/ibss.c
net/mac80211/ibss.c
+4
-4
No files found.
net/core/net-sysfs.c
View file @
e56108d9
...
@@ -429,6 +429,17 @@ static struct attribute_group netstat_group = {
...
@@ -429,6 +429,17 @@ static struct attribute_group netstat_group = {
.
name
=
"statistics"
,
.
name
=
"statistics"
,
.
attrs
=
netstat_attrs
,
.
attrs
=
netstat_attrs
,
};
};
#if IS_ENABLED(CONFIG_WIRELESS_EXT) || IS_ENABLED(CONFIG_CFG80211)
static
struct
attribute
*
wireless_attrs
[]
=
{
NULL
};
static
struct
attribute_group
wireless_group
=
{
.
name
=
"wireless"
,
.
attrs
=
wireless_attrs
,
};
#endif
#endif
/* CONFIG_SYSFS */
#endif
/* CONFIG_SYSFS */
#ifdef CONFIG_RPS
#ifdef CONFIG_RPS
...
@@ -1409,6 +1420,15 @@ int netdev_register_kobject(struct net_device *net)
...
@@ -1409,6 +1420,15 @@ int netdev_register_kobject(struct net_device *net)
groups
++
;
groups
++
;
*
groups
++
=
&
netstat_group
;
*
groups
++
=
&
netstat_group
;
#if IS_ENABLED(CONFIG_WIRELESS_EXT) || IS_ENABLED(CONFIG_CFG80211)
if
(
net
->
ieee80211_ptr
)
*
groups
++
=
&
wireless_group
;
#if IS_ENABLED(CONFIG_WIRELESS_EXT)
else
if
(
net
->
wireless_handlers
)
*
groups
++
=
&
wireless_group
;
#endif
#endif
#endif
/* CONFIG_SYSFS */
#endif
/* CONFIG_SYSFS */
error
=
device_add
(
dev
);
error
=
device_add
(
dev
);
...
...
net/mac80211/ibss.c
View file @
e56108d9
...
@@ -1151,10 +1151,6 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)
...
@@ -1151,10 +1151,6 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)
mutex_lock
(
&
sdata
->
u
.
ibss
.
mtx
);
mutex_lock
(
&
sdata
->
u
.
ibss
.
mtx
);
sdata
->
u
.
ibss
.
state
=
IEEE80211_IBSS_MLME_SEARCH
;
memset
(
sdata
->
u
.
ibss
.
bssid
,
0
,
ETH_ALEN
);
sdata
->
u
.
ibss
.
ssid_len
=
0
;
active_ibss
=
ieee80211_sta_active_ibss
(
sdata
);
active_ibss
=
ieee80211_sta_active_ibss
(
sdata
);
if
(
!
active_ibss
&&
!
is_zero_ether_addr
(
ifibss
->
bssid
))
{
if
(
!
active_ibss
&&
!
is_zero_ether_addr
(
ifibss
->
bssid
))
{
...
@@ -1175,6 +1171,10 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)
...
@@ -1175,6 +1171,10 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)
}
}
}
}
ifibss
->
state
=
IEEE80211_IBSS_MLME_SEARCH
;
memset
(
ifibss
->
bssid
,
0
,
ETH_ALEN
);
ifibss
->
ssid_len
=
0
;
sta_info_flush
(
sdata
->
local
,
sdata
);
sta_info_flush
(
sdata
->
local
,
sdata
);
spin_lock_bh
(
&
ifibss
->
incomplete_lock
);
spin_lock_bh
(
&
ifibss
->
incomplete_lock
);
...
...
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