/* Marks a mapping record associated with device with short_addr as invalid at a certain frame number, typically when a disassociation occurs. */
gboolean ieee802154_short_addr_invalidate(guint16 short_addr, guint16 pan, guint fnum)
/* Marks a mapping record associated with device with short_addr as invalid at a certain frame number, typically when a disassociation occurs. */
gboolean ieee802154_short_addr_invalidate(guint16 short_addr, guint16 pan, guint fnum)
{
    ieee802154_short_addr  addr16;
    ieee802154_map_rec    *map_rec;
    addr16.pan = pan;
    addr16.addr = short_addr;
    map_rec = (ieee802154_map_rec *)g_hash_table_lookup(ieee802154_map.short_table, &addr16);
    if ( map_rec ) {
        map_rec->end_fnum = fnum;
        return TRUE;
    }
    return FALSE;
}