Message ID | 3549ca0d-ac36-eaa9-bd05-6b2f04f6c5ee@sonymobile.com |
---|---|
State | RFC |
Headers | show |
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 9bd07c8..5ff6c63 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -633,6 +633,9 @@ static void hostapd_rrb_receive(void *ctx, const u8 *src_addr, const u8 *buf, if (len < sizeof(*ethhdr)) return; ethhdr = (struct l2_ethhdr *) buf; + if (be_to_host16(ethhdr->h_proto) != ETH_P_RRB) { + return; + } wpa_printf(MSG_DEBUG, "FT: RRB received packet " MACSTR " -> " MACSTR, MAC2STR(ethhdr->h_source),