]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Handle EVENT_RX_MGMT validation consistently
authorJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 15:38:27 +0000 (18:38 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 15:38:27 +0000 (18:38 +0300)
All the other places processing EVENT_RX_MGMT events assume that the
event data is included, so not much point in verifying that here.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/drv_callbacks.c

index c793c6a4214d73acd24f57c68f39b5bfa1312da9..23fa241acd333ac80a57639536fd1f57ca17a1af 100644 (file)
@@ -692,7 +692,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
 #ifndef CONFIG_NO_STDOUT_DEBUG
        int level = MSG_DEBUG;
 
-       if (event == EVENT_RX_MGMT && data && data->rx_mgmt.frame &&
+       if (event == EVENT_RX_MGMT && data->rx_mgmt.frame &&
            data->rx_mgmt.frame_len >= 24) {
                const struct ieee80211_hdr *hdr;
                u16 fc;