summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-25wifi: If scanning, unref the device when removing wifi driver.Tomasz Bursztyka1-0/+4
2012-05-25wifi: Scanning is set to false in case of effective autoscan stop.Tomasz Bursztyka1-0/+2
2012-05-09wifi: Fix NULL ssid being passed to memcmpHenrique Dante de Almeida1-1/+1
2012-05-08wifi: Set disconnecting flag to a relevant value when disconnectedTomasz Bursztyka1-0/+1
2012-05-04wifi: Automatically scan hidden wifi servicesJukka Rissanen1-1/+114
This enables service to autoconnect to hidden wifi service. Fixes BMC#11860
2012-05-04wifi: Refactor codeJukka Rissanen1-69/+69
Move add_scan_param() to start of the file for the next patch.
2012-05-04wifi: Allow max number of scan entriesJukka Rissanen1-10/+49
Do no limit the scan entries to 4 (G_SUPPLICANT_MAX_FAST_SCAN) but use the limit given by the driver. The limit is given by wpa_s. If the supplicant does not return the limit, then use 4 as a max value.
2012-05-02wifi: Plugin internal variable was not staticJukka Rissanen1-1/+1
2012-04-29plugins: Update copyright informationMarcel Holtmann1-1/+1
2012-04-26wifi: Set connected to false before associating when disconnectedTomasz Bursztyka1-1/+1
This way it will trigger the error which will be reported to service.
2012-04-26wifi: Be connected when relevant, stay connected if roamingTomasz Bursztyka1-1/+31
2012-04-24wifi: Fixing autoscan device unref issuesTomasz Bursztyka1-2/+5
- stop_autoscan() should unref the device only when relevant, i.e. when interval and/or timeout have been set. - autoscan_scan_callback() should unref the device since it has been referenced in throw_wifi_scan()
2012-04-24wifi: Autoscan should be started or stopped according to interface's stateTomasz Bursztyka1-0/+10
2012-04-24wifi: Autoscan fallback using a base exponential of 3 and a shorter limitTomasz Bursztyka1-1/+1
A base of 2 creates too many scans on too short times, so a base of 3 reduces this amount. And a limit of 3600 is way too much, a scan every 5 minute is more relevant.
2012-04-23wifi: Remove old background scanning technique callTomasz Bursztyka1-3/+0
2012-04-23wifi: Specify bgscan parameters according to main.conf settingsTomasz Bursztyka1-1/+2
2012-04-23wifi: Setup autoscan according to the main.conf settingsTomasz Bursztyka1-0/+4
2012-04-23wifi: Adding support for autoscan emulationTomasz Bursztyka1-16/+182
2012-04-23wifi: Decide to use WPS PBC if the AP is already advertizing for itTomasz Bursztyka1-0/+15
2012-02-24wifi: Add support for default background scanning parametersTomasz Bursztyka1-0/+3
2012-02-04wifi: Write Wifi Mode to network propertiesManfred Kober1-1/+3
Currently adhoc networks are shown in the service list, although connecting to those is not supported. Filtering in network.c fails because the WiFi.Mode was not set so far. Fixes BMC#24737
2012-02-04wifi: Always set scanning to FALSE in scan callbackPatrik Flykt1-2/+2
By always setting scanning to FALSE in the scan callback, information for a stopped scan will be processed in device.c.
2012-01-05wifi: Set interface to NULL in interface_removedYu A Wang1-20/+2
Currently we set wifi interface to NULL in interface_remove_callback. commit 80e2e08b4887c4e133d3ca7d42ac844fbb974bb8 avoid to use stale pointer by get wifi pointer through interface, but interface already removed and should be NULL, then the interface value in wifi will never set to NULL and will be a wild pointer. Which may cause connman crash when we connect wifi service after we disable the wifi. This issue does not exist in latest connman due to connect-service method is removed. we can set wifi interface in interface_removed which called in remove_interface in supplicant.c, because after interface is freed in supplicant, we should not hold this pointer anymore. Fixes BMC#24364
2011-12-16wifi: Set wifi device powered FALSE when removedYu A Wang1-0/+1
In interface_removed function, connman_device_set_powered may not be called due to wifi->device is freed before supplicant callback. This happens when we remove the second wifi device. This may lead technology refcount inbalance, which could potentially prevent the wifi technology to be enabled again.
2011-12-12wifi: Add support for hidden network scanPatrik Flykt1-0/+87
Implement connman_device_driver scan_hidden function. Supply scan parameters for the hidden network when calling g_supplicant scan functionality. When a new scan result is added, compare the SSID with the one looked for. If detected, connect the hidden network. When detected or when the scan is done, clear the hidden network parameters.
2011-12-12wifi: Disable network in disconnected statePatrik Flykt1-6/+6
Disable WiFi network when it ends up in disconnected state in order to prevent wpa_supplicant looping forever retrying. Fixes BMC#23973
2011-11-29wifi: Set device powered from the interface create callbackSamuel Ortiz1-0/+12
As interface_added can potentially show up before the interface creation callback, the device powered flag can be set from the latter.
2011-11-28wifi: The remove interface callback used stale pointer.Jukka Rissanen1-2/+4
When a wlan interface is removed we call proper method in supplicant dbus interface. As the return message from supplicant might come very late, we must not use the wifi pointer as user data in interface remove callback. This is because the wifi pointer might be removed before the answer comes from supplicant and the callback user data pointer would not be valid at that point.
2011-11-28wifi: Add debugging in order to find memory problems.Jukka Rissanen1-1/+1
2011-11-07wifi: Only consider identifiers starting with 'wifi_'Patrik Flykt1-0/+3
2011-11-07wifi: Handle erroneous disconnection after 4way-handshakeTomasz Bursztyka1-0/+35
And interpret it as a wrong psk after 4 consecutive failures.
2011-09-13wifi: Add SSIDs and frequencies to wpa_supplicant scan for fast scanMohamed Abbas1-4/+195
Lot of fixes by Jukka Rissanen <jukka.rissanen@linux.intel.com>
2011-09-13wifi: Add support to multi scan typeMohamed Abbas1-2/+19
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>)
2011-09-13service: Add frequency support to serviceMohamed Abbas1-0/+3
Get the frequncy of gsupplicant network on connman network creation, and always save the frequency of the wifi service.
2011-09-12wifi: Device reference counting fix on scanPatrik Flykt1-0/+4
When starting to scan, up the reference count on struct connman_device and release it in the scan callback.
2011-09-12wifi: Add NULL checks in interface create and removePatrik Flykt1-5/+6
Interface create and remove callbacks can be called with wifi user data set to NULL, add checks for this.
2011-09-12wifi: Implement network_changed gsupplicant hookSamuel Ortiz1-0/+29
2011-08-24wifi: Remove unused codeJukka Rissanen1-14/+0
2011-08-04wifi: network_remove: Clear network pointer in wifiDaniel Wagner1-0/+12
When a network is destroyed we also have to remove the pointer from the wifi data structure. connmand[25303]: plugins/wifi.c:network_remove() network 0x69c350 connmand[25303]: src/network.c:connman_network_unref() network 0x69c350 name bmwnet02 refcount 1 connmand[25303]: src/network.c:connman_network_unref() network 0x69c350 name bmwnet02 refcount 0 connmand[25303]: src/network.c:network_destruct() network 0x69c350 name XXXXX [...] connmand[25303]: plugins/wifi.c:interface_state() wifi 0x699d60 interface state 1 connmand[25303]: plugins/wifi.c:is_idle() state 9 connmand[25303]: src/network.c:connman_network_set_associating() network 0x69c350 associating 0 connmand[25303]: src/network.c:connman_network_set_connected() network 0x69c350 connected 0 Fixes BMC#22307
2011-07-29wifi: Use agent provided credentials as a fallbackHenri Bragge1-4/+18
2011-07-26wifi: Fix network owner shipDaniel Wagner1-12/+27
2011-07-26device: Change signature of connman_device_remove_network()Daniel Wagner1-7/+7
2011-07-26network: Remove connman_network_register/unregister()Daniel Wagner1-4/+4
Since the service object doesn't take a reference the intermediate step of having a connman_network_register/unregister is not needed. This function are only there to have an additional step where probe()/remove() will be called. This is the job of connman_device_add_network()/connman_device_remove_network().
2011-06-27wifi: Fix return value of wifi_[enable/disable].Alok Barsode1-2/+12
2011-06-16element: Remove network codeDaniel Wagner1-1/+9
2011-06-16service: Remove Service.ModeDaniel Wagner1-3/+1
The only source for the cellular mode update was removed in a474ef1be8b76167b9d0ef8a9eb6fe24cc5eacc5". The WiFi plugin will not support adhoc mode. So this property is completly unused.
2011-06-16wifi: Whitespace cleanupDaniel Wagner1-4/+4
2011-05-27wifi: Remove unused variableMarcel Holtmann1-2/+0
2011-03-11tethering: Add wifi interface to bridge after carrier onMartin Xu1-9/+33
When changing wifi from STA to AP the interface needs to be closed and then opened. Only after the interface is opened and detected carrier, the interface can be added to bridge.
2011-02-23network: Remove address fieldSamuel Ortiz1-44/+0
The address network field holds the WiFi BSSID but is unused.