summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-05wifi: Add capability to set regulatory domain through device's interfaceTomasz Bursztyka1-0/+31
Fixes BMC#25244
2012-07-05gsupplicant: Adapt set country callback to return a resultTomasz Bursztyka1-4/+5
This is necessary for the next coming patches, to fix country setting by interface
2012-06-28wifi: Add wifi pointer NULL checksPatrik Flykt1-3/+24
Always check what connman_device_get_data() returns and act accordingly.
2012-06-25wifi: Check we have valid wifi pointer in autoscanJukka Rissanen1-0/+3
The wifi pointer in device might be NULL if wpa_supplicant dies between autoscans.
2012-06-18wifi: Use common scan callback handlingPatrik Flykt1-2/+1
2012-06-18wifi: Do a hidden WiFi network scan also for user scansPatrik Flykt1-3/+3
Rename the callback function since it's not used only for autoscan.
2012-06-18wifi: Use scan_callback() instead of hidden_scan_callback()Patrik Flykt1-36/+26
The functionality of the callbacks are the same, thus start using scan_callback() only. As a result move code around.
2012-06-18wifi: Reset autoscan timer on a new scanPatrik Flykt1-8/+14
Setting device scanning to false will clean up all networks not seen so far. If a user scan happens to be requested while the emulated background scan is running, the background scan will be cancelled and the non-discovered networks cleared. This causes unnecessary clearing and re-discovery of WiFi networks when the user scan is completed. Create a reset autoscan function that will only reset the autoscan parameters and not set device scanning to false. Call this function when starting a scan.
2012-06-18wifi: Don't print an error when the wifi interface has been removedPatrik Flykt1-1/+1
If the wifi data structure is NULL, it was already removed due to a call to wifi_remove() and is thus not an error condition.
2012-06-18wifi: Stop scanning when disabling wifiPatrik Flykt1-6/+8
Move wifi scan stopping from wifi remove to wifi disable since only wifi disable is called when the wifi technology is disabled. Removing a wifi device will first disable it and then continue with the removal procedure.
2012-06-18service: Connecting hidden network waits until connectedJukka Rissanen1-2/+8
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-25wifi: Stop autoscan in the relevant place.Tomasz Bursztyka1-4/+4
If not stopped before checking the scanning status of the device, we might not raise a user initiated scan just because an autoscan is going one which is bogus.
2012-05-25wifi: Check device is not already scanning before a new scan.Tomasz Bursztyka1-0/+9
gsupplicant's interface scanning value is slow to be updated since it's wpa_s event which updates it, thus leading to a time gap where it is possible to request another scan. It will therefore reference once again device, which will lead to too many references hold by wifi plugin
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