Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202839
b: refs/heads/master
c: 26b36cf
h: refs/heads/master
i:
  202837: f447f91
  202835: ce6c0d3
  202831: 7766b86
v: v3
  • Loading branch information
John W. Linville committed Jun 4, 2010
1 parent bda24d4 commit 7796ff1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2826bcd844e05dcbef9b9284bddb7fe88e8d314f
refs/heads/master: 26b36cfefaf2be98b225e3c1a399edb0daf52ddd
6 changes: 6 additions & 0 deletions trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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();

Expand Down
2 changes: 2 additions & 0 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
}
}

Expand Down

0 comments on commit 7796ff1

Please sign in to comment.