/* Returns the AirpcapLinkType corresponding to the given string name.  */
AirpcapLinkType airpcap_get_link_type(const gchar *name)
/* Returns the AirpcapLinkType corresponding to the given string name.  */
AirpcapLinkType airpcap_get_link_type(const gchar *name)
{
    if (!(g_ascii_strcasecmp(AIRPCAP_LINK_TYPE_NAME_802_11_ONLY,name))) {
        return AIRPCAP_LT_802_11;
    }else if (!(g_ascii_strcasecmp(AIRPCAP_LINK_TYPE_NAME_802_11_PLUS_RADIO,name))) {
        return AIRPCAP_LT_802_11_PLUS_RADIO;
    }else if (!(g_ascii_strcasecmp(AIRPCAP_LINK_TYPE_NAME_802_11_PLUS_PPI,name))) {
        return AIRPCAP_LT_802_11_PLUS_PPI;
    }else{
        return AIRPCAP_LT_UNKNOWN;
    }
}