cli/examples: NM_802_11_MODE_AP mode is not valid for NMAccessPoint objects

This commit is contained in:
Jiří Klimeš
2012-11-01 15:40:27 +01:00
parent a44d36e628
commit 8a0e928aed
2 changed files with 0 additions and 2 deletions

View File

@@ -428,7 +428,6 @@ detail_access_point (gpointer data, gpointer user_data)
info->nmc->allowed_fields[1].value = ssid_str;
info->nmc->allowed_fields[2].value = bssid;
info->nmc->allowed_fields[3].value = mode == NM_802_11_MODE_ADHOC ? _("Ad-Hoc")
: mode == NM_802_11_MODE_AP ? _("AP")
: mode == NM_802_11_MODE_INFRA ? _("Infrastructure")
: _("Unknown");
info->nmc->allowed_fields[4].value = freq_str;

View File

@@ -134,7 +134,6 @@ show_access_point_info (NMAccessPoint *ap)
printf ("SSID: %s\n", ssid_str);
printf ("BSSID: %s\n", hwaddr);
printf ("Mode: %s\n", mode == NM_802_11_MODE_ADHOC ? "Ad-Hoc"
: mode == NM_802_11_MODE_AP ? "AP"
: mode == NM_802_11_MODE_INFRA ? "Infrastructure"
: "Unknown");
printf ("Freq: %s\n", freq_str);