/* XXX - This won't be reliable if a packet containing SSID "B" shows up in the middle of a 4-way handshake for SSID "A". We should probably use a small array or hash table to keep multiple SSIDs.  */
INT AirPDcapSetLastSSID(PAIRPDCAP_CONTEXT ctx, CHAR *pkt_ssid, size_t pkt_ssid_len)
/* XXX - This won't be reliable if a packet containing SSID "B" shows up in the middle of a 4-way handshake for SSID "A". We should probably use a small array or hash table to keep multiple SSIDs.  */
INT AirPDcapSetLastSSID(PAIRPDCAP_CONTEXT ctx, CHAR *pkt_ssid, size_t pkt_ssid_len)
{
    if (!ctx || !pkt_ssid || pkt_ssid_len < 1 || pkt_ssid_len > WPA_SSID_MAX_SIZE)
        return AIRPDCAP_RET_UNSUCCESS;
    memcpy(ctx->pkt_ssid, pkt_ssid, pkt_ssid_len);
    ctx->pkt_ssid_len = pkt_ssid_len;
    return AIRPDCAP_RET_SUCCESS;
}