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>
This commit is contained in:
Javier Cardona
2011-08-29 13:23:04 -07:00
committed by John W. Linville
parent af089c15cb
commit ece1a2e7e8
4 changed files with 47 additions and 3 deletions

View File

@ -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;
}