After reading the ctrl, the pointer wasn't advanced. Fix it. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@xxxxxxxxx> --- src/common/nan_de.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/nan_de.c b/src/common/nan_de.c index 1d782dc2aa..4a918661f6 100644 --- a/src/common/nan_de.c +++ b/src/common/nan_de.c @@ -1107,7 +1107,7 @@ static void nan_de_rx_sda(struct nan_de *de, const u8 *peer_addr, const u8 *a3, sda += NAN_SERVICE_ID_LEN; instance_id = *sda++; req_instance_id = *sda++; - ctrl = *sda; + ctrl = *sda++; type = ctrl & NAN_SRV_CTRL_TYPE_MASK; wpa_printf(MSG_DEBUG, "NAN: SDA - Service ID %02x%02x%02x%02x%02x%02x Instance ID %u Requestor Instance ID %u Service Control 0x%x (Service Control Type %u)", -- 2.49.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap