#include "ieee80211_rate.h"
#include "mesh.h"
-#define DEFAULT_RATES 0
-
static enum ieee80211_if_types
nl80211_type_to_mac80211_type(enum nl80211_iftype type)
{
} else
sdata = IEEE80211_DEV_TO_SUB_IF(dev);
- if (ieee80211_vif_is_mesh(&sdata->vif))
- sta = mesh_plink_alloc(sdata, mac, DEFAULT_RATES, GFP_KERNEL);
- else
- sta = sta_info_alloc(sdata, mac, GFP_KERNEL);
+ if (compare_ether_addr(mac, dev->dev_addr) == 0)
+ return -EINVAL;
+
+ if (is_multicast_ether_addr(mac))
+ return -EINVAL;
+
+ sta = sta_info_alloc(sdata, mac, GFP_KERNEL);
if (!sta)
return -ENOMEM;
u8 *dst)
{
if (dst)
- return mesh_path_del(dst, dev, false);
+ return mesh_path_del(dst, dev);
mesh_path_flush(dev);
return 0;