summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2012-07-06 14:47:48 +0200
committerDan Williams <dcbw@redhat.com>2012-10-17 12:08:11 -0500
commitf9c72dee3e9be74925f254c11d7eedc73cad42c7 (patch)
tree4e72de3b30034bc09fb17444fb2d8d4b2df3da6f /examples
parent802e868f0ff13a539b7613252913cb662914bcf7 (diff)
downloadNetworkManager-f9c72dee3e9be74925f254c11d7eedc73cad42c7.tar.gz
wifi: support ap-mode with wpa_supplicant
A new value for NM80211Mode is introduced (NM_802_11_MODE_AP) and the new mode is passed to wpa_supplicant analogous to adhoc-mode. The places which need to know the interface mode have been extended to handle the new mode. If the configuration does not contain a fixed frequency, a channel is selected the same way as with adhoc-mode before.
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/get-ap-info-libnm-glib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/C/glib/get-ap-info-libnm-glib.c b/examples/C/glib/get-ap-info-libnm-glib.c
index 316bce0e0d..67ee78d16c 100644
--- a/examples/C/glib/get-ap-info-libnm-glib.c
+++ b/examples/C/glib/get-ap-info-libnm-glib.c
@@ -133,7 +133,10 @@ 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_INFRA ? "Infrastructure" : "Unknown");
+ 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);
printf ("Bitrate: %s\n", bitrate_str);
printf ("Strength: %s\n", strength_str);