> - baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; > + switch (stype) { > + case IEEE80211_STYPE_PROBE_RESP: > + ies = (u8 *) mgmt->u.probe_resp.variable; > + break; > + case IEEE80211_STYPE_BEACON: > + ies = (u8 *) mgmt->u.beacon.variable; > + break; > + default: > + return; > + } > + Does that really make sense? the offset is the same anyway and we don't get here with other frames. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html