/* Returns TRUE if the AirPcap decryption for the current adapter is active, false otherwise  */
gboolean airpcap_decryption_on(void)
/* Returns TRUE if the AirPcap decryption for the current adapter is active, false otherwise  */
gboolean airpcap_decryption_on(void)
{
    gboolean is_on = FALSE;
    airpcap_if_info_t* fake_if_info = NULL;
    fake_if_info = airpcap_driver_fake_if_info_new();
    if (fake_if_info != NULL)
    {
        if (fake_if_info->DecryptionOn == AIRPCAP_DECRYPTION_ON)
            is_on = TRUE;
        else if (fake_if_info->DecryptionOn == AIRPCAP_DECRYPTION_OFF)
            is_on = FALSE;
    }
    airpcap_if_info_free(fake_if_info);
    return is_on;
}