Skip to content

Commit df87df6

Browse files
committed
Do not drop packet if iftype differ
1 parent c02ae8b commit df87df6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

esp_hosted_ng/host/main.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -685,14 +685,11 @@ struct esp_wifi_device *get_priv_from_payload_header(
685685
continue;
686686
}
687687

688-
if (priv->if_type == header->if_type &&
689-
priv->if_num == header->if_num) {
688+
if (priv->if_num == header->if_num) {
690689
return priv;
691-
} else if (priv->if_type == header->if_type) {
692-
esp_err("dropping pkt, priv ifnum=%d, header ifnum=%d\n", priv->if_num, header->if_num);
693-
} else {
694-
esp_err("dropping pkt, priv iftype=%d, header iftype=%d\n", priv->if_type, header->if_type);
695-
}
690+
} else {
691+
esp_err("dropping pkt, priv iftype=%d ifnum=%d, header iftype=%d ifnum=%d\n", priv->if_type, priv->if_num, header->if_type, header->if_num);
692+
}
696693
}
697694
return NULL;
698695
}

0 commit comments

Comments
 (0)