summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bluetooth.c3
-rw-r--r--plugins/bluetooth_legacy.c3
-rw-r--r--plugins/ethernet.c6
-rw-r--r--plugins/wifi.c14
4 files changed, 19 insertions, 7 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 4aac1e03..b5e310e1 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -826,7 +826,8 @@ static void bluetooth_tech_remove(struct connman_technology *technology)
static int bluetooth_tech_set_tethering(struct connman_technology *technology,
const char *identifier, const char *passphrase,
- const char *bridge, connman_bool_t enabled)
+ const char *bridge, connman_bool_t enabled,
+ bool hidden)
{
GHashTableIter hash_iter;
gpointer key, value;
diff --git a/plugins/bluetooth_legacy.c b/plugins/bluetooth_legacy.c
index 41438f44..8d7039b1 100644
--- a/plugins/bluetooth_legacy.c
+++ b/plugins/bluetooth_legacy.c
@@ -1225,7 +1225,8 @@ static void disable_nap(gpointer key, gpointer value, gpointer user_data)
static int tech_set_tethering(struct connman_technology *technology,
const char *identifier, const char *passphrase,
- const char *bridge, connman_bool_t enabled)
+ const char *bridge, connman_bool_t enabled,
+ bool hidden)
{
struct tethering_info info = {
.technology = technology,
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index bafc75dd..eb242cac 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -284,7 +284,8 @@ static void disable_tethering(struct connman_technology *technology,
static int tech_set_tethering(struct connman_technology *technology,
const char *identifier, const char *passphrase,
- const char *bridge, connman_bool_t enabled)
+ const char *bridge, connman_bool_t enabled,
+ bool hidden)
{
DBG("bridge %s enabled %d", bridge, enabled);
@@ -400,7 +401,8 @@ static void eth_disable_tethering(struct connman_technology *technology,
static int eth_set_tethering(struct connman_technology *technology,
const char *identifier, const char *passphrase,
- const char *bridge, connman_bool_t enabled)
+ const char *bridge, connman_bool_t enabled,
+ bool hidden)
{
if (connman_technology_is_tethering_allowed(
CONNMAN_SERVICE_TYPE_ETHERNET) == FALSE)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index bbcb1df3..f34fa946 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1962,7 +1962,8 @@ struct wifi_tethering_info {
GSupplicantSSID *ssid;
};
-static GSupplicantSSID *ssid_ap_init(const char *ssid, const char *passphrase)
+static GSupplicantSSID *ssid_ap_init(const char *ssid,
+ const char *passphrase, bool hidden)
{
GSupplicantSSID *ap;
@@ -1987,6 +1988,12 @@ static GSupplicantSSID *ssid_ap_init(const char *ssid, const char *passphrase)
ap->passphrase = passphrase;
}
+ if (hidden)
+ ap->ignore_broadcast_ssid =
+ G_SUPPLICANT_AP_HIDDEN_SSID_ZERO_CONTENTS;
+ else
+ ap->ignore_broadcast_ssid = G_SUPPLICANT_AP_NO_SSID_HIDING;
+
return ap;
}
@@ -2065,7 +2072,8 @@ static void sta_remove_callback(int result,
static int tech_set_tethering(struct connman_technology *technology,
const char *identifier, const char *passphrase,
- const char *bridge, connman_bool_t enabled)
+ const char *bridge, connman_bool_t enabled,
+ bool hidden)
{
GList *list;
GSupplicantInterface *interface;
@@ -2118,7 +2126,7 @@ static int tech_set_tethering(struct connman_technology *technology,
info->wifi = wifi;
info->technology = technology;
info->wifi->bridge = bridge;
- info->ssid = ssid_ap_init(identifier, passphrase);
+ info->ssid = ssid_ap_init(identifier, passphrase, hidden);
if (info->ssid == NULL) {
g_free(info);
continue;