libet: HW filter flag fixed
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Tue, 5 Sep 2017 08:55:09 +0000 (10:55 +0200)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Tue, 5 Sep 2017 08:55:09 +0000 (10:55 +0200)
Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

lib/net/net.c

index 104dbec..652d7b4 100644 (file)
@@ -184,7 +184,7 @@ static errval_t networking_init_with_queue_st(struct net_state *st, struct devq
         goto out_err1;
     }
 
-    if (!(flags & NET_FLAGS_NO_NET_FILTER) || !st->hw_filter) {
+    if (!(flags & NET_FLAGS_NO_NET_FILTER) && st->hw_filter) {
         NETDEBUG("initializing hw filter...\n");
 
         err = net_filter_init(&st->filter, st->cardname);