/* Used to retrieve the two chars string from interface  */
gchar* airpcap_get_if_string_number(airpcap_if_info_t *if_info)
/* Used to retrieve the two chars string from interface  */
gchar* airpcap_get_if_string_number(airpcap_if_info_t *if_info)
{
    gchar* number;
    guint n;
    int a;
    a = sscanf(if_info->name,AIRPCAP_DEVICE_NUMBER_EXTRACT_STRING,&n);
    if (a == 0)
    {
        if (g_ascii_strcasecmp(if_info->name,AIRPCAP_DEVICE_ANY_EXTRACT_STRING)!=0)
            number = g_strdup("??");
        else
            number = g_strdup(AIRPCAP_CHANNEL_ANY_NAME);
    }
    else
    {
        number = g_strdup_printf("%.2u",n);
    }
    return number;
}