summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-26neard: Add partial support for wifi provisionning via NFCTomasz Bursztyka1-16/+257
PushOOB() method implementation. Currently only basic open/psk based provisioning is supported.
2013-02-26config: Add a function to provision mutable serviceTomasz Bursztyka2-2/+104
The point here is to create a virtual configuration, which does not come from a real file. This is a handy way for plugins to be able to provision services without creating any file on the FS. In case of a wifi configuration type and if connect is requested, it will trigger a scan, thus leading to a possible service being provisioned by such virtual configuration. If so and if connect was requested: the service will be asked to connect.
2013-02-26config: Make load service from each keyfile group as a functionTomasz Bursztyka1-17/+24
2013-02-26config: Remove superfluous error codeTomasz Bursztyka1-22/+14
It simplifies the code removing uselesse variable, moreover such variable has the same name as an existing label in the same function.
2013-02-26neard: Add neard plugin with tethering info sharing supportTomasz Bursztyka3-0/+391
Implement also RequestOOB() neard Agent method.
2013-02-26technology: Provide a function to get WiFi tethering informationTomasz Bursztyka2-16/+42
2013-02-25gsupplicant: Remove pointless timeout constantMarcel Holtmann1-2/+0
2013-02-23gdbus: Always unreference the message in g_dbus_send_message()Tomasz Bursztyka1-2/+3
A quick fix on g_dbus_send_message(), if check_signal() fails it returns FALSE without unreferencing the message as it should. This patch fixes it.
2013-02-22config: Run service autoconnect after provisioning the wifi serviceJukka Rissanen1-0/+2
We trigger autoconnect request in service after the wifi service has been provisioned. This is useful in headless systems where there is no user to trigger the connect to provisioned service, and it might take some time before system autoconnect is run.
2013-02-22config: Add ethernet provisioning supportJukka Rissanen1-8/+44
2013-02-22config: Support static IP address for wifi serviceJukka Rissanen1-41/+456
2013-02-22service: Refactor ipconfig setterJukka Rissanen2-13/+22
Done so that the function can be called also from config.c The idea is that if ethernet .config file is removed, we are able to clear the interface properly.
2013-02-22ipconfig: Add function to set the IPv6 privacy optionJukka Rissanen2-0/+21
2013-02-22service: Add function to set timeserversJukka Rissanen2-0/+17
2013-02-22service: Add function to manipulate DNS search domainsJukka Rissanen2-0/+21
2013-02-22service: Add function to manipulate ignore flagJukka Rissanen2-0/+13
2013-02-22doc: Ethernet provisioning supportJukka Rissanen1-1/+44
2013-02-22gsupplicant: Set the scan callback in g_supplicant_interface_scanJulien Massot1-0/+3
The callback is required to properly handle scanning errors reported by wpa_supplicant through the scan_done signal. Steps to reproduce: 1. Set a country code to the WiFi card which have more frequencies allowed than the world roaming allow. 2. Connect to a WiFi network not available in the world roaming setup. 3. Stop connman. 4. Change the country code to 00, be sure the frequencies use in step 2. is no longer allowed. Take care of cfg80211 authorize frequencies when beacons are received, I prefer using mac80211_hwsim from here to avoid side effects about beacon reception. 5. Start connman again. Now ConnMan is stuck in scanning state as the scan_fast method of plugins/wifi.c is called with a forbidden frequency. wpa_supplicant returns an error received in "gsupplicant/supplicant.c: signal_scan_done", where the code enters 'if (success == FALSE)' but unfortunately scan_callback is NULL at this point as the scan_callback is normally set in interface_scan_result().
2013-02-22iptables: Merge clear_tables_flags() and reset_xtables()Daniel Wagner1-25/+19
Both function reset the xtables library. So let's do this at the same place.
2013-02-22iptables: Free table pointerDaniel Wagner1-1/+3
And also use g_strv_length() to count the number of entries. Thanks Tomasz!
2013-02-22iptables: Free match rulesDaniel Wagner1-0/+9
We forgot to free the match rules.
2013-02-22iptables: Reset pointer after freeingDaniel Wagner1-2/+6
The match or the target might be reused in the next invocation of iptables and then xtables operates on this invalid pointer. xt_t->t and xt_m->m are keept alive via the global variables xtables_targets and xtables_matches.
2013-02-22iptables: Reinitialize global parser tableDaniel Wagner1-2/+16
xtables modifies the global parse table and allocates additional memory. If that happens we need to free it afterwards.
2013-02-22iptables: Free xtables entry when removing one entry from the tableDaniel Wagner1-2/+3
2013-02-22test-iptables: Fix memory leakDaniel Wagner1-0/+2
2013-02-22test-iptables: Delete all rules in target0Daniel Wagner1-0/+14
2013-02-21client: Remove the now obsolete command parsing functionsPatrik Flykt3-48/+11
2013-02-21client: Remove unused functionsPatrik Flykt2-62/+0
Remove find_service() as it is no longer used and match_service_name() which was only used by find_service().
2013-02-21client: Factor out monitor commandPatrik Flykt1-129/+30
2013-02-21client: Create monitor helper functionsPatrik Flykt2-0/+94
2013-02-21client: Factor out technology enable and disable commandsPatrik Flykt1-40/+48
2013-02-21client: Wait for a reply from Manager APIPatrik Flykt1-2/+10
2013-02-21client: Wait for a reply from Technology APIPatrik Flykt1-6/+10
Also reduce logging.
2013-02-21client: Factor out scan commandPatrik Flykt1-12/+19
2013-02-21client: Reduce technology loggingPatrik Flykt1-8/+3
Reduce technology logging messages and modify the remaining one. Also free the DBusError.
2013-02-21client: Factor out disconnect commandPatrik Flykt1-12/+13
2013-02-21client: Factor out connect commandPatrik Flykt1-12/+13
2013-02-21client: Don't look up service on connect or disconnectPatrik Flykt1-16/+7
Attempt to connect or disconnect without looking up the service in advace. Fix memory leak and update the error message.
2013-02-21client: Factor out technologies commandPatrik Flykt1-9/+4
2013-02-21client: Factor out state commandPatrik Flykt1-9/+4
2013-02-21client: Print out any errors on command executionPatrik Flykt1-2/+6
2013-02-21client: Factor out config commandPatrik Flykt1-110/+130
Using the lengths returned from the property setting functions more than one config option can be specified on the command line. Use the simple argument parsing function as getopt is slightly limited in functionality.
2013-02-21client: Wait for a reply when removing servicePatrik Flykt1-9/+10
2013-02-21client: Fix setting service propertiesPatrik Flykt1-8/+25
Set properties for a service ignoring any cached lookups. Send the method call only if ther is no error. When sending, wait for the result in order to see if the method call succeeded.
2013-02-21client: Quick fix for parsing IPv6.Configuration correctlyPatrik Flykt1-7/+26
Fixes BMC#25925
2013-02-21client: Return number of arguments processed when setting propertiesPatrik Flykt1-3/+6
2013-02-21client: Return number of proxies addedPatrik Flykt1-3/+3
2013-02-21client: Return the number of proxy arguments discoveredPatrik Flykt1-3/+12
2013-02-21client: Return the number of added dict entriesPatrik Flykt1-3/+12
Check that both the dict entry name and data are non-NULL, the dict data does not start with '--' indicating a new option and that the length is not exhausted. Return the number of dict entries.
2013-02-21client: Return the number of added array entriesPatrik Flykt1-4/+9
Check that the array element is non-NULL, does not start with '--' indicating a new option or that the array length is not exhausted. Return the number of array elements added.