framework/connectivity/connman.git
13 years agodevice: Remove redundant connection numbers check
Danny Jeongseok Seo [Thu, 6 Oct 2011 02:07:34 +0000 (11:07 +0900)]
device: Remove redundant connection numbers check

__connman_service_auto_connect() already checks for service state, so there
is no need to look at the device being connected or not.

13 years agoservice: Add interface name matching in __connman_service_lookup().
Patrik Flykt [Fri, 30 Sep 2011 09:06:30 +0000 (12:06 +0300)]
service: Add interface name matching in __connman_service_lookup().

Fixes BMC#23419

13 years agoAUTHORS: Mention Philippe's contributions
Samuel Ortiz [Wed, 5 Oct 2011 09:46:08 +0000 (11:46 +0200)]
AUTHORS: Mention Philippe's contributions

13 years agoofono: Create the cellular network only when attached to the PS network
Philippe Nunes [Fri, 30 Sep 2011 14:08:05 +0000 (16:08 +0200)]
ofono: Create the cellular network only when attached to the PS network

3G auto-connection may fail as the cellular network service may not be
ready to connect.
With this patch, the cellular network service should be exposed only after
PS network attachment is done.

13 years agowispr: Setting the relevant service property when a login is required
Tomasz Bursztyka [Mon, 3 Oct 2011 07:43:23 +0000 (10:43 +0300)]
wispr: Setting the relevant service property when a login is required

When a wispr redirect occurs we set login required to the service

Fixes BMC#23424

13 years agosession: Set dirty flag in de/select service function
Daniel Wagner [Thu, 29 Sep 2011 14:39:04 +0000 (16:39 +0200)]
session: Set dirty flag in de/select service function

13 years agosession: Remove double assignment
Daniel Wagner [Thu, 29 Sep 2011 14:35:24 +0000 (16:35 +0200)]
session: Remove double assignment

The dirty flag is already cleared in append_notify()

13 years agosession: Handle bearers update correctly
Daniel Wagner [Fri, 30 Sep 2011 06:31:08 +0000 (08:31 +0200)]
session: Handle bearers update correctly

We cannot create a new service_list in populate_service_list
while we still hold pointers to entries (session->entry).
deselect_and_disconnect() would then operate on bogus pointers
leading to memory corruption

Fixes BMC#23325

13 years agosession: Rename update_allowed_bearers()
Daniel Wagner [Tue, 27 Sep 2011 16:18:46 +0000 (18:18 +0200)]
session: Rename update_allowed_bearers()

13 years agosession: Move update_allowed_bearers() up
Daniel Wagner [Tue, 27 Sep 2011 16:24:50 +0000 (18:24 +0200)]
session: Move update_allowed_bearers() up

13 years agotechnology: Register a rfkilled technology in technology_add_rfkill
Alok Barsode [Tue, 27 Sep 2011 08:47:17 +0000 (11:47 +0300)]
technology: Register a rfkilled technology in technology_add_rfkill

If a technology was rfkilled before connman ran, we need to register
it. If such tech was enabled, technology->device_list will be empty.
We save the state, rfkill unblock the type and exit. When the devices
get unblocked, they are automatically enabled since we saved the enable
state.

13 years agotools: Fixed double-free error possibility into iptables-test
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:49 +0000 (14:43 +0300)]
tools: Fixed double-free error possibility into iptables-test

13 years agoiptables: Copyright year update
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:48 +0000 (14:43 +0300)]
iptables: Copyright year update

13 years agoiptables: Tiny indentation fix
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:47 +0000 (14:43 +0300)]
iptables: Tiny indentation fix

13 years agoiptables: Adding capability to load necessary modules
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:46 +0000 (14:43 +0300)]
iptables: Adding capability to load necessary modules

13 years agoiptables: Rule deletion capability added
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:45 +0000 (14:43 +0300)]
iptables: Rule deletion capability added

13 years agoiptables: Factorization of target reference update
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:44 +0000 (14:43 +0300)]
iptables: Factorization of target reference update

13 years agoiptables: Refactoring how jumps are handled
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:43 +0000 (14:43 +0300)]
iptables: Refactoring how jumps are handled

13 years agoiptables: Fixing target reference update
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:42 +0000 (14:43 +0300)]
iptables: Fixing target reference update

13 years agoiptables: Renaming add into append
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:41 +0000 (14:43 +0300)]
iptables: Renaming add into append

13 years agoiptables: Adding capability to insert a rule
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:40 +0000 (14:43 +0300)]
iptables: Adding capability to insert a rule

13 years agoiptables: Code factorization for rule inclusion
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:39 +0000 (14:43 +0300)]
iptables: Code factorization for rule inclusion

13 years agoiptables: Fix memory leak
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:38 +0000 (14:43 +0300)]
iptables: Fix memory leak

13 years agoiptables: Small indentation fix
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:37 +0000 (14:43 +0300)]
iptables: Small indentation fix

13 years agoiptables: Adding capability to delete user-defined chains
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:36 +0000 (14:43 +0300)]
iptables: Adding capability to delete user-defined chains

13 years agoiptables: Added helper function to remove table entry
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:35 +0000 (14:43 +0300)]
iptables: Added helper function to remove table entry

13 years agoiptables: find_chain_head/find_chain_tail code factorization
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:34 +0000 (14:43 +0300)]
iptables: find_chain_head/find_chain_tail code factorization

13 years agoprovider: Remove provider if there is an error when connecting
Jukka Rissanen [Wed, 14 Sep 2011 12:34:59 +0000 (15:34 +0300)]
provider: Remove provider if there is an error when connecting

If vpn service cannot be started for some reason, we must
remove the provider so that user can reconnect to it later.

13 years agoprovider: Fix memory leak
Jukka Rissanen [Wed, 14 Sep 2011 12:32:53 +0000 (15:32 +0300)]
provider: Fix memory leak

Provider name is already allocated in connman_provider_get() so we
must deallocate it before setting it again.

13 years agoUse 'cellular' instead of '3g' as bearer name
Daniel Wagner [Thu, 22 Sep 2011 14:59:55 +0000 (16:59 +0200)]
Use 'cellular' instead of '3g' as bearer name

Fixes BMC#23324

13 years agosession: Move info->online update code to session_changed()
Daniel Wagner [Wed, 21 Sep 2011 08:53:12 +0000 (10:53 +0200)]
session: Move info->online update code to session_changed()

service_state_changed() should only update the service
states. session_changed() takes care of all session settings.

13 years agosession: Remove unnecessary deselect_service
Daniel Wagner [Wed, 21 Sep 2011 08:35:25 +0000 (10:35 +0200)]
session: Remove unnecessary deselect_service

Because in session_changed() we take care of this now.

13 years agosession: Simplefy session_changed()
Daniel Wagner [Tue, 20 Sep 2011 15:05:32 +0000 (17:05 +0200)]
session: Simplefy session_changed()

Since we are tracking the reason code now also in
the deslect_and_disconnect() function we can rely
on the correct handling there. Also no need to parse the
reason code again.

13 years agosession: Add reason code to deselect_and_disconnect()
Daniel Wagner [Tue, 20 Sep 2011 15:21:07 +0000 (17:21 +0200)]
session: Add reason code to deselect_and_disconnect()

13 years agosession: Add debug messages
Daniel Wagner [Tue, 20 Sep 2011 14:37:42 +0000 (16:37 +0200)]
session: Add debug messages

13 years agosession: Add CONNMAN_SESSION_REASON_DISCONNECT
Daniel Wagner [Tue, 20 Sep 2011 14:36:42 +0000 (16:36 +0200)]
session: Add CONNMAN_SESSION_REASON_DISCONNECT

Maybe the reason code should be renamed to state

13 years agosession: Pass session_info pointer into functions
Daniel Wagner [Tue, 20 Sep 2011 14:27:06 +0000 (16:27 +0200)]
session: Pass session_info pointer into functions

13 years agosession: Remove deselect_previous_service()
Daniel Wagner [Tue, 20 Sep 2011 14:24:01 +0000 (16:24 +0200)]
session: Remove deselect_previous_service()

The deselect_and_disconnect() function should be called
from session_changed() and not in the select_and_connect()
code path. All disconnect and connect decision are
initiate from session_changed(). This makes the code flow more
symetric.

Note that we break here a Online -> Offline transision, we are
going to fix this later again.

13 years agosession: Rename test_and_disconnect
Daniel Wagner [Tue, 20 Sep 2011 13:03:31 +0000 (15:03 +0200)]
session: Rename test_and_disconnect

To deselect_and_disconnect in order to match more to the
select_and_connect function.

13 years agosession: Track info not the session for ecall
Daniel Wagner [Tue, 20 Sep 2011 12:47:13 +0000 (14:47 +0200)]
session: Track info not the session for ecall

This is a prepartion step for the next few patches.
Instead of passing the session pointer into functions
we are going to pass in only the session_info pointer.

13 years agosession: Disconnect free ride session
Daniel Wagner [Tue, 20 Sep 2011 15:26:18 +0000 (17:26 +0200)]
session: Disconnect free ride session

In case where we get offline

Fixes BMC#22837

13 years agosession: Refactor select_service
Daniel Wagner [Mon, 19 Sep 2011 12:53:34 +0000 (14:53 +0200)]
session: Refactor select_service

Split the online/offline code path with moving the corresponding
code into two new functions.

13 years agosession: Fix null pointer derefencing
Daniel Wagner [Mon, 19 Sep 2011 11:50:09 +0000 (13:50 +0200)]
session: Fix null pointer derefencing

When an emergency session sets back the EmergencyCall
property, all other session are notified. If a session
previously was not connected (online == FALSE) no
entry (services) was selected. We should not derefency
a NULL pointer in this case.

Fixes BMC#22880

13 years agoservice: Don't iterate over changing sequence
Daniel Wagner [Thu, 22 Sep 2011 13:45:11 +0000 (15:45 +0200)]
service: Don't iterate over changing sequence

__connman_service_disconnect_all() should not iterate over
the service_list directly because the ordering of the
services can change when disconnecting a service (e.g. default
service). The iterator might be invalid after a
__connman_service_disconnect() call.

It's better to iterate over a temporary list.

13 years agotodo: Added details to personnal firewall task
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:35 +0000 (15:39 +0300)]
todo: Added details to personnal firewall task

13 years agotools: Copyright year update in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:34 +0000 (15:39 +0300)]
tools: Copyright year update in iptables-test

13 years agotools: Tiny indentation fix in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:33 +0000 (15:39 +0300)]
tools: Tiny indentation fix in iptables-test

13 years agotools: Adding capability to load necessary modules into iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:32 +0000 (15:39 +0300)]
tools: Adding capability to load necessary modules into iptables-test

13 years agotools: Rule deletion capability added to iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:31 +0000 (15:39 +0300)]
tools: Rule deletion capability added to iptables-test

13 years agotools: Factorization of target reference update in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:30 +0000 (15:39 +0300)]
tools: Factorization of target reference update in iptables-test

13 years agotools: Refactoring how jumps are handled in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:29 +0000 (15:39 +0300)]
tools: Refactoring how jumps are handled in iptables-test

13 years agotools: Fixing target reference update in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:28 +0000 (15:39 +0300)]
tools: Fixing target reference update in iptables-test

13 years agotools: Renaming add into append into iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:27 +0000 (15:39 +0300)]
tools: Renaming add into append into iptables-test

13 years agotools: Adding capability to insert a rule in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:26 +0000 (15:39 +0300)]
tools: Adding capability to insert a rule in iptables-test

13 years agotools: Code factorization for rule inclusion in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:25 +0000 (15:39 +0300)]
tools: Code factorization for rule inclusion in iptables-test

13 years agotools: Fix memory leak in iptables-test.c
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:24 +0000 (15:39 +0300)]
tools: Fix memory leak in iptables-test.c

13 years agotools: in, out, source and destination support in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:23 +0000 (15:39 +0300)]
tools: in, out, source and destination support in iptables-test

13 years agotools: Small indentation fix in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:22 +0000 (15:39 +0300)]
tools: Small indentation fix in iptables-test

13 years agotools: iptables-test delete a chain if only it is already flushed.
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:21 +0000 (15:39 +0300)]
tools: iptables-test delete a chain if only it is already flushed.

13 years agotools: Added helper function to remove table entry in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:20 +0000 (15:39 +0300)]
tools: Added helper function to remove table entry in iptables-test

13 years agotools: find_chain_head/find_chain_tail code factorization in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:19 +0000 (15:39 +0300)]
tools: find_chain_head/find_chain_tail code factorization in iptables-test

13 years agomain: Cleanup ipconfig after service
Daniel Wagner [Wed, 21 Sep 2011 09:33:21 +0000 (11:33 +0200)]
main: Cleanup ipconfig after service

Since service.c depends on ipconfig.c, __connman_service_cleanup()
should be called before __connman_ipconfig_cleanup().

connmand[4787]: src/ipconfig.c:__connman_ipconfig_cleanup()
connmand[4787]: em1 {remove} index 2
connmand[4787]: wlan0 {remove} index 3
connmand[4787]: src/ipconfig.c:connman_ipconfig_unref() ipconfig 0x6b0460 refcount 1
connmand[4787]: src/ipconfig.c:connman_ipconfig_unref() ipconfig 0x6b04c0 refcount 1
connmand[4787]: hso0 {remove} index 4
connmand[4787]: src/service.c:__connman_service_cleanup()
connmand[4787]: src/service.c:service_free() service 0x6ae690
connmand[4787]: Service state machine inconsistency detected.
connmand[4787]: src/service.c:stats_stop() service 0x6ae690
connmand[4787]: src/service.c:services_changed()
connmand[4787]: src/ipconfig.c:connman_ipconfig_unref() ipconfig 0x6b0460 refcount 0
connmand[4787]: src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x6b0460

Breakpoint 1, g_log (log_domain=0x34b78adc06 "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=
    0x34b78b6710 "%s: assertion `%s' failed") at gmessages.c:573
573     {
(gdb) bt
#0  g_log (log_domain=0x34b78adc06 "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=
    0x34b78b6710 "%s: assertion `%s' failed") at gmessages.c:573
#1  0x00000034b7831d35 in g_hash_table_lookup (hash_table=0x0, key=0x3) at ghash.c:897
#2  0x000000000044e9a4 in __connman_ipconfig_disable (ipconfig=0x6b0460) at src/ipconfig.c:1678
#3  0x000000000044de9d in connman_ipconfig_unref (ipconfig=0x6b0460) at src/ipconfig.c:1279
#4  0x0000000000440750 in service_free (user_data=0x6ae690) at src/service.c:3416
#5  0x00000034b785aac8 in real_node_free (node=0x6a2ed0, seq=0x6a3de0) at gsequence.c:1755
#6  0x00000034b785aaa2 in real_node_free (node=0x6a2a70, seq=0x6a3de0) at gsequence.c:1751
#7  0x00000034b785ae39 in g_sequence_free (seq=0x6a3de0) at gsequence.c:283
#8  0x0000000000444b53 in __connman_service_cleanup () at src/service.c:5617
#9  0x000000000042fb75 in main (argc=1, argv=0x7fffffffe678) at src/main.c:401

13 years agontp: Add skeleton for Simple NTP support
Marcel Holtmann [Mon, 19 Sep 2011 11:36:24 +0000 (13:36 +0200)]
ntp: Add skeleton for Simple NTP support

13 years agoAUTHORS: Mention Jeff's contributions
Daniel Wagner [Mon, 19 Sep 2011 08:47:38 +0000 (10:47 +0200)]
AUTHORS: Mention Jeff's contributions

13 years agosession: Only disconnect online sevices
Daniel Wagner [Wed, 14 Sep 2011 13:54:38 +0000 (15:54 +0200)]
session: Only disconnect online sevices

Fixes BMC#22827

13 years agomanager: Only defer result when enabling session mode
Daniel Wagner [Wed, 14 Sep 2011 13:16:34 +0000 (15:16 +0200)]
manager: Only defer result when enabling session mode

When leaving the session mode we might be still online
so we should not wait for entering the idle state.

13 years agosession: Only select new service if not in progress
Daniel Wagner [Wed, 24 Aug 2011 16:11:27 +0000 (18:11 +0200)]
session: Only select new service if not in progress

13 years agosession: Refactor select_and_connect()
Daniel Wagner [Thu, 25 Aug 2011 08:12:15 +0000 (10:12 +0200)]
session: Refactor select_and_connect()

Make this function more readable.

13 years agotest-session: Add multiple session support
Jeff Zheng [Wed, 14 Sep 2011 07:30:01 +0000 (15:30 +0800)]
test-session: Add multiple session support

Add an new parameter session_name in test-session so all session
operations are based on app_path and session_name

13 years agowispr: Add magic "wispr" keyword to user agent
Marcel Holtmann [Tue, 13 Sep 2011 10:25:20 +0000 (12:25 +0200)]
wispr: Add magic "wispr" keyword to user agent

Without the "wispr" keyword in the user agent string, some WISPr 1.0
hotspots (like T-Mobile and Telekom) are not responding with the
proper WISPr XML properties.

13 years agowispr: Use different status requests for IPv4 and IPv6
Marcel Holtmann [Tue, 13 Sep 2011 10:00:59 +0000 (12:00 +0200)]
wispr: Use different status requests for IPv4 and IPv6

13 years agobuild: Add OpenVPN script to ignore list
Marcel Holtmann [Tue, 13 Sep 2011 09:35:28 +0000 (11:35 +0200)]
build: Add OpenVPN script to ignore list

13 years ago6to4: Use ConnMan status URL for checking connectivity
Marcel Holtmann [Tue, 13 Sep 2011 09:34:44 +0000 (11:34 +0200)]
6to4: Use ConnMan status URL for checking connectivity

13 years agowifi: Add SSIDs and frequencies to wpa_supplicant scan for fast scan
Mohamed Abbas [Tue, 13 Sep 2011 06:55:17 +0000 (09:55 +0300)]
wifi: Add SSIDs and frequencies to wpa_supplicant scan for fast scan

Lot of fixes by Jukka Rissanen <jukka.rissanen@linux.intel.com>

13 years agogsupplicant: Get the number of scan ssids from supplicant
Mohamed Abbas [Tue, 13 Sep 2011 06:55:16 +0000 (09:55 +0300)]
gsupplicant: Get the number of scan ssids from supplicant

13 years agogsupplicant: Add support to append char ** entries to dbus dict
Mohamed Abbas [Tue, 13 Sep 2011 06:55:15 +0000 (09:55 +0300)]
gsupplicant: Add support to append char ** entries to dbus dict

13 years agowifi: Add support to multi scan type
Mohamed Abbas [Tue, 13 Sep 2011 06:55:14 +0000 (09:55 +0300)]
wifi: Add support to multi scan type

Allow multi scan type for fast connect.

Scanning request removed from interface_added() because it is already
called in connman_device_set_powered() so no need to call it again
immediately (fix by Jukka Rissanen <jukka.rissanen@linux.intel.com>)

13 years agoservice: Add frequency support to service
Mohamed Abbas [Tue, 13 Sep 2011 06:55:13 +0000 (09:55 +0300)]
service: Add frequency support to service

Get the frequncy of gsupplicant network on connman network
creation, and always save the frequency of the wifi service.

13 years agostorage: Export service loading function
Jukka Rissanen [Tue, 13 Sep 2011 06:55:12 +0000 (09:55 +0300)]
storage: Export service loading function

13 years agostorage: Add services getter
Jukka Rissanen [Tue, 13 Sep 2011 06:55:11 +0000 (09:55 +0300)]
storage: Add services getter

13 years agobootstrap: Remove portal configuration
Jukka Rissanen [Tue, 13 Sep 2011 06:44:25 +0000 (09:44 +0300)]
bootstrap: Remove portal configuration

13 years agoofono: Remove 3G network after disabled 3G modem
Yu A Wang [Tue, 6 Sep 2011 09:06:34 +0000 (05:06 -0400)]
ofono: Remove 3G network after disabled 3G modem

Fixes BMC#22745

13 years agoTODO: Removed wispr task
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:09 +0000 (18:25 +0300)]
TODO: Removed wispr task

13 years agotest: Added Username/Password input support in simple-agent
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:08 +0000 (18:25 +0300)]
test: Added Username/Password input support in simple-agent

13 years agowispr: Requesting login input through the agent
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:07 +0000 (18:25 +0300)]
wispr: Requesting login input through the agent

13 years agoagent: Added Username/Password request input logic
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:06 +0000 (18:25 +0300)]
agent: Added Username/Password request input logic

13 years agowispr: Handle WISPr messages and apply relevant states
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:05 +0000 (18:25 +0300)]
wispr: Handle WISPr messages and apply relevant states

13 years agowispr: Added WISPr XML content parser
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:04 +0000 (18:25 +0300)]
wispr: Added WISPr XML content parser

13 years agowispr: Added portal web request and result handling logic
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:03 +0000 (18:25 +0300)]
wispr: Added portal web request and result handling logic

13 years agowispr: Proxy lookup and web context setup
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:02 +0000 (18:25 +0300)]
wispr: Proxy lookup and web context setup

13 years agowispr: Adding wispr logic entries in service and wpad
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:01 +0000 (18:25 +0300)]
wispr: Adding wispr logic entries in service and wpad

13 years agowispr: Adding structures and start/stop functions
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:00 +0000 (18:25 +0300)]
wispr: Adding structures and start/stop functions

13 years agolocation: Deleted location support and portal plugin
Tomasz Bursztyka [Mon, 12 Sep 2011 17:42:20 +0000 (19:42 +0200)]
location: Deleted location support and portal plugin

13 years agowifi: Device reference counting fix on scan
Patrik Flykt [Tue, 6 Sep 2011 07:13:17 +0000 (10:13 +0300)]
wifi: Device reference counting fix on scan

When starting to scan, up the reference count on struct connman_device
and release it in the scan callback.

13 years agowifi: Add NULL checks in interface create and remove
Patrik Flykt [Tue, 6 Sep 2011 07:13:16 +0000 (10:13 +0300)]
wifi: Add NULL checks in interface create and remove

Interface create and remove callbacks can be called with wifi user data
set to NULL, add checks for this.

13 years agowifi: Implement network_changed gsupplicant hook
Samuel Ortiz [Thu, 8 Sep 2011 06:01:29 +0000 (08:01 +0200)]
wifi: Implement network_changed gsupplicant hook

13 years agogsupplicant: Implement network properties changes notification
Samuel Ortiz [Thu, 8 Sep 2011 06:00:49 +0000 (08:00 +0200)]
gsupplicant: Implement network properties changes notification

This is only used for propagatong signal changes for now.

13 years agogsupplicant: Track best signal and the corresponding BSS
Samuel Ortiz [Thu, 8 Sep 2011 05:30:42 +0000 (07:30 +0200)]
gsupplicant: Track best signal and the corresponding BSS

13 years agodevice: Remove device_probe and device_remove
Samuel Ortiz [Thu, 8 Sep 2011 06:18:29 +0000 (08:18 +0200)]
device: Remove device_probe and device_remove

They're tiny and useless wrappers.

13 years agotechnology: Disable tethering only when no technology is tethering
Patrik Flykt [Fri, 2 Sep 2011 10:34:58 +0000 (13:34 +0300)]
technology: Disable tethering only when no technology is tethering

When notifying that a technology is not tethering anymore, go
through the list of technologies and disable tethering only if
no other technology is tethering.