aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2011-08-29 13:23:04 -0700
committerJohn W. Linville <linville@tuxdriver.com>2011-09-13 15:42:32 -0400
commitece1a2e7e86078c8379937b546e32cb7f25fcb6c (patch)
treef15c838069746175237e3639f85e800d712f88b9 /net/mac80211/cfg.c
parentaf089c15cb13e1c5d984e41f495c8363dd5b1e30 (diff)
downloadkernel_samsung_smdk4412-ece1a2e7e86078c8379937b546e32cb7f25fcb6c.zip
kernel_samsung_smdk4412-ece1a2e7e86078c8379937b546e32cb7f25fcb6c.tar.gz
kernel_samsung_smdk4412-ece1a2e7e86078c8379937b546e32cb7f25fcb6c.tar.bz2
mac80211: Remove mesh paths when an interface is removed
When an interface is removed, the mesh paths associated with it should also be removed. This fixes a bug we observed when reloading a device driver module without reloading mac80211s. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 0baaaec..5c0d8fa 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -921,7 +921,7 @@ static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev,
if (dst)
return mesh_path_del(dst, sdata);
- mesh_path_flush(sdata);
+ mesh_path_flush_by_iface(sdata);
return 0;
}