summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2019-03-29 16:05:49 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2019-04-05 12:56:09 +0530
commit69efc565b595bb39ebdbe635f063675ecf59278c (patch)
tree33c51a4e1d04ba61a143033e32afda67cd93cf83 /include
parent85074ce75ce1749e270dc9951d003d4a3c1f9cab (diff)
downloadconnman-69efc565b595bb39ebdbe635f063675ecf59278c.tar.gz
connman-69efc565b595bb39ebdbe635f063675ecf59278c.tar.bz2
connman-69efc565b595bb39ebdbe635f063675ecf59278c.zip
Added support of Multiple same SSIDs including band steering.submit/tizen/20190409.131053accepted/tizen/unified/20190410.061801
When there are multiple APs with the same SSID and security, this patch support below features: 1. If AP does not respond to probe request during connection procedure, connman tries to connect with the next available BSSID before sending disconnected event to application. 2. If connection with AP is failed during association due to ASSOC_REJECT, connman tries to connect with the next available BSSID before sending disconnected event to application. Change-Id: Ie80939bd013a12b9c88e91a1fd5a05fbb57c1833 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/network.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/network.h b/include/network.h
index 6d067c55..c4c73051 100755
--- a/include/network.h
+++ b/include/network.h
@@ -32,6 +32,12 @@
extern "C" {
#endif
+#if defined TIZEN_EXT
+#define WIFI_ENCYPTION_MODE_LEN_MAX 6
+#define WIFI_BSSID_LEN_MAX 6
+#define MAC_ADDRESS_LENGTH 18
+#endif
+
/**
* SECTION:network
* @title: Network premitives
@@ -64,7 +70,7 @@ enum connman_network_error {
#if defined TIZEN_EXT
struct connman_bssids {
- char bssid[18];
+ unsigned char bssid[WIFI_BSSID_LEN_MAX];
uint16_t strength;
uint16_t frequency;
};
@@ -206,6 +212,8 @@ ieee80211_modes_e connman_network_get_phy_mode(struct connman_network *network);
int connman_network_set_connection_mode(struct connman_network *network,
connection_mode_e mode);
connection_mode_e connman_network_get_connection_mode(struct connman_network *network);
+int connman_network_set_last_bssid(struct connman_network *network, const char *bssid);
+char *connman_network_get_last_bssid(struct connman_network *network);
#endif
int connman_network_set_name(struct connman_network *network,