aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 10:17:20 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 10:17:20 (GMT)
commit0d9fc3d8bd2846ee006fefa8ca890b27138e7658 (patch)
treecfc210f108845527530f1208aea94852ca91b6bf /src/ap
parenta0e0d3bb15e17f2ad53b4309893a2831973057ab (diff)
downloadhostap-0d9fc3d8bd2846ee006fefa8ca890b27138e7658.zip
hostap-0d9fc3d8bd2846ee006fefa8ca890b27138e7658.tar.gz
hostap-0d9fc3d8bd2846ee006fefa8ca890b27138e7658.tar.bz2
Remove struct ieee80211_hdr dependency from EVENT_RX_FROM_UNKNOWN
It is simpler to just pass in u8* to the beginning of the header.
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/drv_callbacks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index ca316c9..28eee76 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -256,9 +256,9 @@ static struct hostapd_data * get_hapd_bssid(struct hostapd_iface *iface,
static void hostapd_rx_from_unknown_sta(struct hostapd_data *hapd,
- const struct ieee80211_hdr *hdr,
- size_t len)
+ const u8 *frame, size_t len)
{
+ const struct ieee80211_hdr *hdr = (const struct ieee80211_hdr *) frame;
u16 fc = le_to_host16(hdr->frame_control);
hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len));
if (hapd == NULL || hapd == HAPD_BROADCAST)
@@ -378,7 +378,7 @@ void wpa_supplicant_event(void *ctx, wpa_event_type event,
}
break;
case EVENT_RX_FROM_UNKNOWN:
- hostapd_rx_from_unknown_sta(hapd, data->rx_from_unknown.hdr,
+ hostapd_rx_from_unknown_sta(hapd, data->rx_from_unknown.frame,
data->rx_from_unknown.len);
break;
case EVENT_RX_MGMT: