Fix hostapd build without NEED_AP_MLME=y

This commit is contained in:
Jouni Malinen 2011-06-22 21:45:14 +03:00 committed by Jouni Malinen
parent 9e2704c3a2
commit 7cc7307d90

View file

@ -570,12 +570,14 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
break; break;
hostapd_event_sta_low_ack(hapd, data->low_ack.addr); hostapd_event_sta_low_ack(hapd, data->low_ack.addr);
break; break;
#ifdef NEED_AP_MLME
case EVENT_RX_ACTION: case EVENT_RX_ACTION:
if (data->rx_action.da == NULL || data->rx_action.sa == NULL || if (data->rx_action.da == NULL || data->rx_action.sa == NULL ||
data->rx_action.bssid == NULL) data->rx_action.bssid == NULL)
break; break;
hostapd_rx_action(hapd, &data->rx_action); hostapd_rx_action(hapd, &data->rx_action);
break; break;
#endif /* NEED_AP_MLME */
default: default:
wpa_printf(MSG_DEBUG, "Unknown event %d", event); wpa_printf(MSG_DEBUG, "Unknown event %d", event);
break; break;