Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
xcap-capability-linux
Commits
0adc23f5
Commit
0adc23f5
authored
Oct 06, 2009
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac80211: support ETHTOOL_GPERMADDR
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
ff9fc791
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
net/mac80211/iface.c
net/mac80211/iface.c
+4
-1
No files found.
net/mac80211/iface.c
View file @
0adc23f5
...
...
@@ -184,10 +184,12 @@ static int ieee80211_open(struct net_device *dev)
* No need to check netif_running since we do not allow
* it to start up with this invalid address.
*/
if
(
compare_ether_addr
(
null_addr
,
ndev
->
dev_addr
)
==
0
)
if
(
compare_ether_addr
(
null_addr
,
ndev
->
dev_addr
)
==
0
)
{
memcpy
(
ndev
->
dev_addr
,
local
->
hw
.
wiphy
->
perm_addr
,
ETH_ALEN
);
memcpy
(
ndev
->
perm_addr
,
ndev
->
dev_addr
,
ETH_ALEN
);
}
}
/*
...
...
@@ -784,6 +786,7 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
goto
fail
;
memcpy
(
ndev
->
dev_addr
,
local
->
hw
.
wiphy
->
perm_addr
,
ETH_ALEN
);
memcpy
(
ndev
->
perm_addr
,
ndev
->
dev_addr
,
ETH_ALEN
);
SET_NETDEV_DEV
(
ndev
,
wiphy_dev
(
local
->
hw
.
wiphy
));
/* don't use IEEE80211_DEV_TO_SUB_IF because it checks too much */
...
...
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