Utilize mac-addresses hashtable for object lookup
Compare changes
+ 99
− 49
@@ -58,21 +58,15 @@
@@ -82,14 +76,15 @@ struct netif_iface *find_interface_by_mac_nor(struct controller *c,
@@ -145,8 +140,8 @@ struct netif_iface *find_interface_by_ssid(struct controller *c,
@@ -159,8 +154,23 @@ struct netif_radio *find_radio_by_node(struct controller *c, struct node *n,
@@ -174,6 +184,20 @@ struct netif_radio *find_radio_by_mac(struct controller *c, uint8_t *mac)
@@ -207,8 +231,8 @@ struct netif_link *find_link_by_mac(struct controller *c, uint8_t *upstream, uin
@@ -220,8 +244,22 @@ struct node *cntlr_find_node(struct controller *c, uint8_t *almac)
@@ -233,6 +271,20 @@ struct sta *cntlr_find_sta(struct controller *c, uint8_t *mac)
@@ -247,23 +299,8 @@ struct bcnreq *cntlr_find_bcnreq(struct controller *c, uint8_t *sta, uint8_t *al
@@ -281,6 +318,20 @@ struct netif_iface *cntlr_iterate_fbss(struct controller *c, uint8_t *mac)
@@ -1202,8 +1253,7 @@ void cntlr_clean_bcnreqlist(struct controller *c)
@@ -1329,11 +1379,11 @@ struct netif_link *alloc_link_init(struct controller *c,
@@ -2125,7 +2175,7 @@ out_exit: