Utilize mac-addresses hashtable for object lookup
Compare changes
+ 99
− 49
@@ -49,21 +49,15 @@
@@ -73,14 +67,15 @@ struct netif_iface *find_interface_by_mac_nor(struct controller *c,
@@ -121,8 +116,8 @@ struct netif_iface *find_interface_by_ssid(struct controller *c,
@@ -135,8 +130,23 @@ struct netif_radio *find_radio_by_node(struct controller *c, struct node *n,
@@ -150,6 +160,20 @@ struct netif_radio *find_radio_by_mac(struct controller *c, uint8_t *mac)
@@ -183,8 +207,8 @@ struct netif_link *find_link_by_mac(struct controller *c, uint8_t *upstream, uin
@@ -196,8 +220,22 @@ struct node *cntlr_find_node(struct controller *c, uint8_t *almac)
@@ -209,6 +247,20 @@ struct sta *cntlr_find_sta(struct controller *c, uint8_t *mac)
@@ -223,23 +275,8 @@ struct bcnreq *cntlr_find_bcnreq(struct controller *c, uint8_t *sta, uint8_t *al
@@ -257,6 +294,20 @@ struct netif_iface *cntlr_iterate_fbss(struct controller *c, uint8_t *mac)
@@ -1116,8 +1167,7 @@ void cntlr_clean_bcnreqlist(struct controller *c)
@@ -1253,11 +1303,11 @@ struct netif_link *alloc_link_init(struct controller *c,
@@ -2008,7 +2058,7 @@ out_exit: