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
26b36cfe
Commit
26b36cfe
authored
Jun 04, 2010
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac80211: make ARP filtering depend on CONFIG_INET
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
2826bcd8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
net/mac80211/main.c
net/mac80211/main.c
+6
-0
net/mac80211/mlme.c
net/mac80211/mlme.c
+2
-0
No files found.
net/mac80211/main.c
View file @
26b36cfe
...
...
@@ -329,6 +329,7 @@ static void ieee80211_recalc_smps_work(struct work_struct *work)
mutex_unlock
(
&
local
->
iflist_mtx
);
}
#ifdef CONFIG_INET
int
ieee80211_set_arp_filter
(
struct
ieee80211_sub_if_data
*
sdata
)
{
struct
in_device
*
idev
;
...
...
@@ -380,6 +381,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,
return
NOTIFY_DONE
;
}
#endif
struct
ieee80211_hw
*
ieee80211_alloc_hw
(
size_t
priv_data_len
,
const
struct
ieee80211_ops
*
ops
)
...
...
@@ -669,10 +671,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
goto
fail_pm_qos
;
}
#ifdef CONFIG_INET
local
->
ifa_notifier
.
notifier_call
=
ieee80211_ifa_changed
;
result
=
register_inetaddr_notifier
(
&
local
->
ifa_notifier
);
if
(
result
)
goto
fail_ifa
;
#endif
return
0
;
...
...
@@ -707,7 +711,9 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
pm_qos_remove_notifier
(
PM_QOS_NETWORK_LATENCY
,
&
local
->
network_latency_notifier
);
#ifdef CONFIG_INET
unregister_inetaddr_notifier
(
&
local
->
ifa_notifier
);
#endif
rtnl_lock
();
...
...
net/mac80211/mlme.c
View file @
26b36cfe
...
...
@@ -2078,6 +2078,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
cfg80211_send_assoc_timeout
(
wk
->
sdata
->
dev
,
wk
->
filter_ta
);
return
WORK_DONE_DESTROY
;
#ifdef CONFIG_INET
}
else
{
mutex_unlock
(
&
wk
->
sdata
->
u
.
mgd
.
mtx
);
...
...
@@ -2088,6 +2089,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
rtnl_lock
();
ieee80211_set_arp_filter
(
wk
->
sdata
);
rtnl_unlock
();
#endif
}
}
...
...
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