summaryrefslogtreecommitdiff
path: root/src/network.c
AgeCommit message (Collapse)AuthorFilesLines
2017-12-07Revert "[connman] Configure IPv6 after IPv4 dhcp succeed."Saurav Babu1-24/+1
This reverts commit 0d3b96f6fe23316f15444576b5a590a917beb8a5. Change-Id: I83a7f0b3a5485bb6bd14f863b0e180bea1570899
2017-11-03Added handling of "AssocStatusCode" signalManeesh Jain1-0/+21
Description : This can be used by application in case AP is denying association with status code Change-Id: I195492be4320032b460b708034f044eec03b71dd Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
2017-08-09[connman] Added support to get WiFi vendor element.submit/tizen/20170811.041528accepted/tizen/unified/20170811.133331Niraj Kumar Goit1-1/+26
Change-Id: I560be68a876a5fef516647365db3c56761f2aba1 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-04-25Added some logs for debuggingSeonah Moon1-2/+15
Change-Id: I3a133fa6aebd28dea42f7dfd9ecb42d04c45f291 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-03-30Removed unnecessary logsSeonah Moon1-0/+10
Change-Id: Ia9688dbfa5bd0b2e5f917003c6d5825e2e4c7b5f
2017-03-28[connman] Configure IPv6 after IPv4 dhcp succeed.Niraj Kumar Goit1-1/+24
To speed up Wi-Fi connection modified IP configuration logic in connman. Start IPv6 configuration once IPv4 dhcp configuration succeed. Change-Id: I8a33d533f36b42fa0b7450f3b34a5d2238d06e49 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-03-23Consider ipconfig method in clearing association stateSeonah Moon1-2/+29
Change-Id: I94f5a1f26140ea2c1edfdb1d9dd191435757802b Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-03-14Apply DNS configuration methodsubmit/tizen/20170322.011410accepted/tizen/wearable/20170322.235735accepted/tizen/unified/20170322.235830accepted/tizen/tv/20170322.235708accepted/tizen/mobile/20170322.235633accepted/tizen/ivi/20170322.235801accepted/tizen/common/20170322.153711Seonah Moon1-0/+6
Change-Id: If16e739fde7e9d736c66015ab1efa982e49d3482 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-03-08[connman] Add IPv6 gateway address after service IP bound.submit/tizen_unified/20170310.011402submit/tizen/20170308.045955accepted/tizen/wearable/20170308.121234accepted/tizen/unified/20170310.080648accepted/tizen/tv/20170308.121225accepted/tizen/mobile/20170308.121214accepted/tizen/ivi/20170308.121241accepted/tizen/common/20170309.175139Niraj Kumar Goit1-6/+0
Add IPv6 gateway address after service IP bound to fix state flow issue. Change-Id: Ia30a834f52c7d849ee54305d0d370f629fc506bb Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-02-23[connman] Merged IPv6 related code.Seonah Moon1-0/+29
1. Added code to set IPv6 gateway addess. 2. Fix IPv6 issue in case of auto-configuration. Change-Id: Ie0e1d53dd269a09600d2f08e66d73cefd6dd3c29 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-01-08[connman]: Fixed: ConnMan keep trying connection infintelyManeesh Jain1-0/+16
Description : In following use case, ConnMan was stuck in auto-connection with a specific AP. In that time, user could not be able to select any other AP for connection. 1. Connect with an AP 2. Add the Device Mac address in AP's Mac filter list 3. Device disconnect from AP 4. Device keep trying to connection with AP Partially added following upstream patch. "http://git.kernel.org/cgit/network/connman/connman.git/commit/?id=3bda07204b11158dd18322db6e64dc92bdd07124" Change-Id: I1731bfd21324c83a87f4ff2a5fccf264fd7883f5 Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
2016-12-12Fix a svace for checking NULLsubmit/tizen/20161212.124346accepted/tizen/wearable/20161213.003256accepted/tizen/tv/20161213.003252accepted/tizen/mobile/20161213.003235accepted/tizen/ivi/20161213.003304accepted/tizen/common/20161212.185700hyunuktak1-1/+2
Change-Id: I91b9b29c1c1c2b0b835f5a9b81a23b48fbd3b5dc Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2016-12-06[connman] Added wifi connection when invalid-key error occurred.Niraj Kumar Goit1-0/+3
When invalid-key error occurs users need to enter the valid password to connect with Wi-Fi AP. Change-Id: I7dd56186b09060bfad920721316b7b8ccb64e844 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-07-07Upstream: network: Replace network_change() with __connman_network_disconnect()Saurav Babu1-23/+2
The network_change() function called when a network error is set will disconnect a network driver identical to __connman_network_disconnect() but without any error handling. Therefore the specific network_change() function is better replaced with __connman_network_disconnect(). With connman_network_set_error() now calling __connman_network_disconnect(), the additional function call can now be removed from connman_network_set_connected(). Also let the associating and connecting variables be handled by the normal code paths and don't forcefully unset them when an error happens. Commit ID: 7a3740c4c65be7915c36daaac9b1a611fa498a2 Change-Id: I3223a9d13207898aa64e2002912516d5ad64c150 Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
2016-06-28Modify to get rsn mode using pairwisesubmit/tizen/20160628.112647accepted/tizen/wearable/20160629.021326accepted/tizen/tv/20160629.021220accepted/tizen/mobile/20160629.021329accepted/tizen/ivi/20160629.021304accepted/tizen/common/20160628.141818hyunuktak1-5/+5
Change-Id: Icb3942835130528c4d61d427ee1891d88cc1ac3b Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2016-06-17[SPIN] Indicate auth-failed error.Niraj Kumar Goit1-0/+5
desc: In case of wifi connection if Association fail, indicate "auth-failed" error. Change-Id: Ie08088f3e5b5ff940d0e4290814c266d28e59b15 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-17[SPIN] Fix wireless issues in connman.Niraj Kumar Goit1-0/+9
desc: Set connection error when AP is removed. Change ASSOC_RETRY_COUNT(3 -> 4). send the scan request after connecting - check the ap availability fix the too much scan in associating Change-Id: Ia1d0367a2f792f6c2f92a6ef498b37511840135d Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-17[SPIN] Added the connman disconnect reason property.Niraj Kumar Goit1-0/+20
Change-Id: I11fd7baa7d00fa3f3a12bdafda7ff7aa6943d020 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-17[SPIN] add keymgmt property for bss.Niraj Kumar Goit1-0/+21
Change-Id: Id436db5828febaabd8273c2e0aab91f9ee9572ff Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-14[SPIN] network: enable DHCP failure.Niraj Kumar Goit1-0/+20
When DHCP is failed, most of normal users cannot understand auto-generated IP (IPV4 link local). So set error CONNMAN_NETWORK_ERROR_DHCP_FAIL. Change-Id: Ic80eb0436e41cff3a4bfb11dfef722b3029b0399 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-13Merge "Add support for WPS2-PSK security type in Security property of ↵submit/tizen/20160614.053635accepted/tizen/wearable/20160614.103626accepted/tizen/tv/20160614.103619accepted/tizen/mobile/20160614.103642accepted/tizen/ivi/20160614.103653accepted/tizen/common/20160614.144019taesub kim1-0/+17
service interface" into tizen
2016-06-10Add support for WPS2-PSK security type in Security property of service interfaceJaehyun Kim1-0/+17
Change-Id: I5531a2e3e45da6b3d4caa6d5df15f54ebc2700d8
2016-06-09[SPIN] network: connman_network_clear_associating rather than IDLE stateNiraj Kumar Goit1-9/+2
Change-Id: Ia8693e891946e29315176afe60fe8df5b78e3ea5 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2015-10-06Sync with Tizen 2.4(1.29.36)submit/tizen/20151020.082803accepted/tizen/wearable/20151020.111030accepted/tizen/tv/20151020.111019accepted/tizen/mobile/20151020.111002taesub.kim1-1/+2
Change-Id: I02fc50820cccc66aed702a97a9928981e73b43cf Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-189/+151
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2015-07-08Fix MMS connection failureJaehyun Kim1-3/+144
Change-Id: Id3847d1d8233c2177cfbd65ba42ead8ff44a06a8
2015-05-27Add support for ipv6taesub.kim1-0/+11
Support the IPv6 auto in cellular network desc : Add the logic if the IPv6 configuration is auto conf in cellular network Change-Id: Ibb0602a449469d42d8caf4c6162caab95136aeff Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2014-10-31Tizen: Export network proxy API for telephony pluginArron Wang1-0/+18
Telephony plug-in requires manual PROXY setting function Telephony stack provides proxy address (3G profile). Change-Id: Iaa02f59465a687961c303667ee09051b419507d2
2014-10-31Tizen: Export more wifi info in ConnMan network APIArron Wang1-0/+73
Network client requires additional wifi specific info Export the BSSID property Export the MaxRate property Export the detailed info for encryption mode(mixed,aes,tkip,wep,none) Export the connman_network get/set method for bssid, maxrate, encryption_mode property Change-Id: Ic5744978282e49cb2f70165aaadc7822dc718dfb
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-23/+37
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-238/+261
2013-04-26network: Replace connman_uint16_t with uint16_tPatrik Flykt1-5/+5
2013-04-26network: Replace connman_uint8_t with uint8_tPatrik Flykt1-3/+3
2013-01-30network: Allow more than one network driver register the same typePatrik Flykt1-10/+0
Allowing more than one network driver to register the same network type requires the network driver to properly identify which networks belong to it in the network driver probe function.
2013-01-30network: Unset driver on failed matchPatrik Flykt1-1/+3
2013-01-16network: Do not report any error when removing a connecting networkTomasz Bursztyka1-1/+2
When connecting a network, if it's related technology is disabled, this network will raise an error through the agent. Leading to a possible retry request from the user, then to a crash if the user does so. Thus, we prevent any error to be raised in such situation and silently disconnect the connecting network instead.
2013-01-16network: Move up code about set_connected() and set_disconnectedTomasz Bursztyka1-625/+627
2013-01-04core: Remove WiMAX definitions from codePatrik Flykt1-11/+0
2012-10-19network: Fix typo in debug printJukka Rissanen1-1/+1
2012-09-04Use g_slist_prepend() where appropriatePatrik Flykt1-1/+1
Convert usage of g_slist_append() to g_slist_prepend() where appropriate. gdbus, dnsproxy, resolver, rtnl, session and session unit test have ordering requirements and thus not touched.
2012-08-15service: Allow setting path when sending pending dbus replyJukka Rissanen1-1/+1
2012-08-14network: Enable IPv6 on network interfaceElena Tebesoi1-0/+2
This patch enables IPv6 usage for network interfaces with static/manual configuration.
2012-08-14network: Only set index in connman_network_set_index()Daniel Wagner1-22/+5
Service ipconfig structures are no longer created in this function.
2012-08-14service: Allow plugins to lookup services by networksDaniel Wagner1-25/+25
2012-08-14service: Allow plugins access to connman_service_create_ip4/6configDaniel Wagner1-1/+1
2012-06-18service: Connecting hidden network waits until connectedJukka Rissanen1-6/+30
If the user is connecting to hidden network, then we delay the return of the reply to caller until the real service has connected. This way the user connect to hidden and non-hidden networks works the same way from caller point of view.
2012-05-22resolver: Send RS before RDNSS lifetime expiresElena Tebesoi1-0/+66
Implemented feature from RFC 6106 section '5.1. Recursive DNS Server Option': "Lifetime 32-bit unsigned integer. ... Hosts MAY send a Router Solicitation to ensure the RDNSS information is fresh before the interval expires." Host will send RS when a certain threshold of RDNSS lifetime is reached. Values which can be adjusted: - lifetime threshold - set to 80% from lifetime - number of retries in case RA is not received - set to 0 - time between retries, in case RA is not received - set to 3 seconds
2012-05-04network: Mark service as hidden after successfull connectJukka Rissanen1-0/+1
We must remember wifi service hidden status so that we can do active scan of its SSID and then autoconnect to it.
2012-05-04network: Set service as a userconnect when connecting a hidden networkTomasz Bursztyka1-1/+3
This fixes when connecting to an hidden services fails, so the user will be asked to retry through agent api.
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1