case NL80211_CMD_NEW_STATION:
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
WMESH_LOGD("[%s] new station [%s]", ifname, macbuf);
+ wmesh_notify_station_joined((const char*)macbuf);
+
break;
case NL80211_CMD_DEL_STATION:
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
WMESH_LOGD("[%s] del station [%s]", ifname, macbuf);
+ wmesh_notify_station_left((const char*)macbuf);
+
break;
case NL80211_CMD_NEW_MPATH:
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
WMESH_LOGD("[%s] new mpath [%s]", ifname, macbuf);
- wmesh_notify_station_joined((const char*)macbuf);
break;
case NL80211_CMD_DEL_MPATH:
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
WMESH_LOGD("[%s] del mpath [%s]", ifname, macbuf);
- wmesh_notify_station_left((const char*)macbuf);
break;
default:
WMESH_LOGD("event [%d] is not handled", gnlh->cmd);