diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2012-07-06 14:47:48 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-10-17 12:08:11 -0500 |
commit | f9c72dee3e9be74925f254c11d7eedc73cad42c7 (patch) | |
tree | 4e72de3b30034bc09fb17444fb2d8d4b2df3da6f /cli | |
parent | 802e868f0ff13a539b7613252913cb662914bcf7 (diff) | |
download | NetworkManager-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 'cli')
-rw-r--r-- | cli/src/devices.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/src/devices.c b/cli/src/devices.c index 3d58679e2c..ac57e4e68d 100644 --- a/cli/src/devices.c +++ b/cli/src/devices.c @@ -407,7 +407,10 @@ detail_access_point (gpointer data, gpointer user_data) info->nmc->allowed_fields[0].value = ap_name; 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_INFRA ? _("Infrastructure") : _("Unknown"); + 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; info->nmc->allowed_fields[5].value = bitrate_str; info->nmc->allowed_fields[6].value = strength_str; |