summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-02-03 13:00:48 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-03 13:00:48 +0100
commit926318dedf9a36415e71c6cab52de32874a78be9 (patch)
treedd88401059c52677619bf02e7ede93b57634279d /plugins
parent0cc95cafe34d861dacdab6b75f395e43cdb1d777 (diff)
downloadconnman-926318dedf9a36415e71c6cab52de32874a78be9.tar.gz
connman-926318dedf9a36415e71c6cab52de32874a78be9.tar.bz2
connman-926318dedf9a36415e71c6cab52de32874a78be9.zip
wifi: Return a tethering error if AP mode is not supported at all
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index ec0846d4..59e9fb59 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -989,6 +989,7 @@ static int tech_set_tethering(struct connman_technology *technology,
struct wifi_tethering_info *info;
const char *ifname;
unsigned int mode;
+ int err;
DBG("");
@@ -1041,12 +1042,14 @@ static int tech_set_tethering(struct connman_technology *technology,
info->wifi->tethering = TRUE;
- return g_supplicant_interface_remove(interface,
+ err = g_supplicant_interface_remove(interface,
sta_remove_callback,
info);
+ if (err == 0)
+ return err;
}
- return 0;
+ return -EOPNOTSUPP;
}
static void regdom_callback(void *user_data)