Commit Graph

7740 Commits

Author SHA1 Message Date
Dan Williams
591a8843b0 modem: add a 'device' property to NMModem representing master modem device
i.e., the USB or PCI or whatever device that owns one or more modem ports
provided by that device.
2009-06-18 14:10:01 -04:00
Dan Williams
c72bf13456 bluetooth: implement check_connection_compatible for BT devices 2009-06-18 10:44:59 -04:00
Dan Williams
b71b1e66c8 rfkill: fix mixed-up soft/hard kill states 2009-06-17 07:24:28 -04:00
Torgny Johansson
904e7f3908 gsm: match NM network modes with updated MM network modes 2009-06-16 09:36:51 -04:00
Dan Williams
daa8d8c9ca supplicant: don't try to give dbus-glib a NULL path on interface removal 2009-06-12 10:31:16 -04:00
Dan Williams
48e7a9eb47 core: fix removal of killswitches on udev events 2009-06-12 10:30:03 -04:00
Dan Williams
aa7458062a distcheck: fix it 2009-06-11 21:01:16 -04:00
Dan Williams
d6a3eb003a libnm-glib: make nm_device_update_description() use libgudev not HAL
You'll want latest udev-extras to get the ID_*_FROM_DATABASE rules.
2009-06-11 20:49:22 -04:00
Dan Williams
139ed09f67 introspection: back out erroneously committed change to NMDevice properties 2009-06-11 01:33:08 -04:00
Dan Williams
c9067d8fed everything: use libgudev instead of HAL; merge NM and nm-system-settings
The only thing that doesn't work yet is the system-settings service's
"auto eth" connections for ethernet devices that don't have an existing
connection.  Might also have issues with unmanaged devices that can't
provide a MAC address until they are brought up, but we'll see.
2009-06-11 00:39:12 -04:00
Dan Williams
69eccdae34 dhcp: clean up DHCP status message format 2009-06-10 22:31:18 -04:00
Dan Williams
0408c149b5 system-settings: kill usage of sha1 since NM can handle passphrases now
Plugins no longer need to hash WPA passphrases, so there's no need to keep
sha1 stuff around unless its for hasing other stuff (ifcfg-rh uses sha1
for certificate hashing for example, but has a private copy).
2009-06-05 22:09:39 -04:00
Dan Williams
01a1bafc1d wifi: remove obsolete code clearing SSID and encryption
Leave it to wpa_supplicant now; if we can't trust the supplicant to
handle this, then we need to fix the supplicant.  It knows better than
us what needs to happen with drivers, and it already clears the
encryption keys anyway.
2009-06-05 12:38:32 -04:00
Dan Williams
2e5fd3699b core: ignore auto-generated org.freedesktop.network-manager-settings.system.policy 2009-06-05 11:53:53 -04:00
Dan Williams
f194ca6cff core: fix dbus reconnection by not mixing up GSourceFunc return values
TRUE means continue the timeout, FALSE means remove.  Yay for me.
2009-06-05 11:49:54 -04:00
Dan Williams
f8026260c6 rfkill: port rfkill to libgudev 2009-06-05 01:55:02 -04:00
Pablo Martí
6029288ffb libnm-util:keyfile: typo fixes 2009-06-03 09:27:44 -04:00
Dan Williams
b9bdc5da4b hal: find driver for ibmebus-type 'ehea' devices 2009-06-02 18:15:10 -04:00
Dan Williams
d74ab39671 libnm-util: register settings hash in nm_connection_lookup_setting_type()
If not already registered by something else...
2009-06-01 10:45:11 -04:00
Dan Williams
f43fdd9e15 bluetooth: DUN + no CDMA/GSM means invalid connection, really it does 2009-05-21 17:51:11 -04:00
Bastien Nocera
0f6ed55ef9 core: allow warnings to be fatal with --g-fatal-warnings 2009-05-20 13:03:39 -04:00
Dan Williams
15e64d31ea modem: remove SECRETS_CALLER_HSO_GSM; ModemManager abstracts modems for us
Fixes a bug where if GSM secrets were required, the connection would fail
because they were requested with SECRETS_CALLER_HSO_GSM, but the function
to handle retrieved secrets only expected SECRETS_CALLER_GSM.
2009-05-20 12:30:09 -04:00
Bastien Nocera
f55ed9ffc5 core: don't warn on existing loopback interfaces
This avoids warning on startup when the loopback already exists.
2009-05-20 12:06:43 -04:00
Dan Williams
5e8c86c977 bluetooth: connect/disconnect when device's 'Connected' property changes 2009-05-20 12:05:07 -04:00
Dan Williams
9cbc3150e7 bluetooth: fix usage of dbus_g_proxy_new_for_name()
Probably caused by me not Bastien when merging
7ab907c6bc
2009-05-20 12:03:51 -04:00
Dan Williams
41b6e4f513 bluetooth: resync bluetooth devices on connection events 2009-05-20 12:02:18 -04:00
Bastien Nocera
c67aace375 bluetooth: fixes for NMManager bluetooth device handling
- Re-query the BlueZ manager when connection, or connections are
  added
- Don't assert when a new BT device is created
- Fix the connection bdaddr and device bdaddr comparison, we
  were comparing a byte array with a string
- Simplify bluez_manager_bdaddr_has_connection()
2009-05-19 15:20:20 -04:00
Bastien Nocera
b2305fcb43 bluetooth: fixes for NMDeviceBt
- Use NM_BT_CAPABILITY_NONE instead of 0 when appropriate
- Don't assert on priv->bt_type not being set in
  real_deactivate_quickly(), as it might be called with no
  connections activated
- Fix cut'n'paste typo that made setting the device capabilities
  assert
2009-05-19 15:17:04 -04:00
Bastien Nocera
7ab907c6bc bluetooth: remove unused device proxy
Only really use the serial/network ones for now, so drop the device proxy
to simplify stuff.
2009-05-18 19:20:46 -04:00
David Planella
93e02fa759 policy-kit: make .policy file translatable (bgo #582918) 2009-05-18 17:33:05 -04:00
Dan Williams
c065ebdbfb bluetooth: fix my stupid commit mistake of 7be36a7319
Not Bastien's fault but mine.
2009-05-18 12:18:20 -04:00
Bastien Nocera
7be36a7319 bluetooth: actually set the NMSettingBluetooth name property on init 2009-05-18 11:25:04 -04:00
Bastien Nocera
c74cf24f87 bluetooth: misc fixes 2009-05-15 09:31:55 -04:00
Bastien Nocera
cfa1eb157e bluetooth: ask Bluez to connect/disconnect from remote device when appropriate
Cleanups and leak fixes by dcbw.
2009-05-14 19:17:56 -04:00
Bastien Nocera
5a87917f90 bluetooth: create NMDeviceBt objects for configured Bluez devices
Create a new exported Bluetooth device object for any usable Bluez device
that has at least one corresponding NMConnection somewhere.  Clean up
UUID/Capability confusion too.
2009-05-14 13:59:03 -04:00
Dan Williams
3af7068a87 bluetooth: fix confusion about NAP and PAN
NMSettingBluetooth represents the local connection, and thus should
use "PANU" not NAP, because the local adapter will be in PANU mode.
For now, NAP is only relevant when talking about the *remote* device
in NMDeviceBt or NMBluezDevice.
2009-05-14 13:00:22 -04:00
Bastien Nocera
eddc6f67bb bluetooth: accept any BT device class if it supports the right UUIDs 2009-05-14 11:31:36 -04:00
Dan Williams
7d88a87214 bluetooth: NMDeviceBt and associated fixes 2009-05-14 11:01:56 -04:00
Dan Williams
4d58683276 bluetooth: various fixes
Make stuff actually work this time around.
2009-05-13 22:54:13 -04:00
Dan Williams
f4aa499c4c bluetooth: add bluetooth manager 2009-05-13 21:32:56 -04:00
Dan Williams
4ab96e8eb6 bluetooth: add NMSettingBluetooth 2009-05-13 12:34:45 -04:00
Dan Williams
0e3cdd615a wifi: 64-bit compile warning fix 2009-05-13 12:02:45 -04:00
Dan Williams
57a04fa59d wifi: handle unsolicited supplicant scans
With supplicant patches, this allows NM to figure out when the supplicant
is performing an unsolicited scan, and thus to not run periodic_update()
when the supplicant is scanning.

This fixes some of the causes of "roaming to none", especially in hidden
SSID networks.  In those cases, after NM had requested a broadcast scan,
the hidden SSID AP would likely not show up in the scan results, leading
to the supplicant performing a specific SSID scan that NetworkManager
was unaware of.  While that specific SSID scan was going on, NM could
run periodic_update() and pull the wrong frequency off the card,
leading to the "roaming to none" message when the associated AP with
the wrong frequency could not be found in the scan list.
2009-05-13 11:16:29 -04:00
Dan Williams
027ef78682 core: actually emit reason for device state changes
Found by 代尔欣 <daierxin@gmail.com>
2009-05-12 12:05:47 -04:00
Dan Williams
b4767a5c1f dns: fix handling of searches and domains in resolv.conf
Fix a few issues here:

- nm_utils_merge_ip4_config() didn't reset domains, which would cause domains
    to still be used even if the user elected to ignore DHCP-provided DNS
- nm_ip4_config_add_domain() and nm_ip4_config_add_search() didn't filter
    duplicates
- nm_ip4_config_reset_searches() leaked everything
- If the user had specified an appended search in the connection, that search
    would be added to the 'searches' field in resolv.conf, but any server
    returned domains in 'domain_name' would be ignored because at least one
    search existed.
2009-05-11 20:07:39 -04:00
Dan Williams
fd4bdc5c54 dbus: fix issues with root being at_console
When root is at_console, the at_console stuff overrides the user=root
section.  Since the default section will deny-by-default, explicitly
allow certain D-Bus interfaces to be usable by at_console users (including
root when root is at_console) prevents root from being denied access to
those interfaces when root is at_console.
2009-05-10 00:20:12 -04:00
Dan Williams
97fe200122 test: whitespace cleanup 2009-05-09 23:58:13 -04:00
Dan Williams
07cc26d5fc wifi: handle WEP & WPA passphrases (bgo #513820) (rh #441070)
Instead of requiring applets to hash passphrases, just do it in NM instead.
This should fix confusion where people don't understand that they are seeing
their hashed passphrase.
2009-05-09 23:09:42 -04:00
Dan Williams
eee3c4ceb2 libnm-util: validate connection uuid 2009-05-03 01:09:34 -04:00
Dan Williams
756bc70402 dhcp: (dhclient) use per-connection leasefiles and don't delete on deactivate
So that leases are actually useful...
2009-05-03 00:51:09 -04:00