Commit graph

1483 commits

Author SHA1 Message Date
Dan Williams
15d8d0764f core: fix crash when NameHasOwner fails but dbus-glib doesn't set an error (lp #352400) 2009-04-01 07:17:17 -04:00
Dan Williams
13d1655cdd core: ensure device is removed from the device list before signaling its removal
Might fix lp#319918
2009-03-31 13:12:18 -04:00
Dan Williams
b8fc83a7cf core: don't crash when a wired device doesn't have a driver (rh #492246)
Virtual interfaces like Cisco VPN and VMWare net driver don't have 'driver'
links in sysfs (since they don't really have subsystems).
2009-03-26 17:05:41 -04:00
Dan Williams
1cf39975f2 serial: slightly increase default send delay
Option GlobeTrotter MAX 3.6 seems to be serial port speed
challenged.
2009-03-23 18:26:26 -04:00
Dan Williams
f96163fbd4 core: don't schedule same activation stage multiple times
Fix issues with crappy wifi drivers which send a stream of associate
events before NM can schedule the next activation stage, which actually
scheduled *multiple* next stages.  Only allow one stage to be scheduled at
at time, and don't schedule the same stage again if it's already next up
to the plate.
2009-03-23 17:36:52 -04:00
Dan Williams
aabc52f4a5 core: fix segfault when device's IP4Config object isn't ready (rh #491620) 2009-03-23 16:45:04 -04:00
Dan Williams
9436e62471 gsm: re-try PIN checking on timeout
It seems that some 'hso' devices (Option GT Max 3.6) drop commands
on the floor if you issue them too quickly, so retry this one for
now.
2009-03-20 18:33:58 -04:00
Dan Williams
d58d3d73f2 core: work around asymmetric hal/udev device-remove signals 2009-03-18 06:17:36 -04:00
Dan Williams
0e75afff50 modem: ignore NO CARRIER messages left over from a previous connection 2009-03-17 14:28:29 -04:00
Dan Williams
d5cdea6a79 modem: rework modem detection to better handle udev probing and multiple ports
Ignore multiple ports from the same modem device, becuase we can only use one
any exposing more than one in the UI is stupid and useless.  This requires some
drunken wandering through the HAL device tree to get the real device that all
the TTYs are owned by.

Second, prefer devices that both HAL and udev think are modems before using
a device that only udev thinks is a modem.  This requires that we delay
handling all ttys until HAL has finished sending them, so that if the second
tty is the one HAL thinks is a modem, we use that instead of some other port
that HAL sends first, but which might happen to have udev capabilities.
2009-03-16 09:35:59 -04:00
Dan Williams
5f27041114 gsm: handle Sony Ericsson MD300 as an F3507g variant 2009-03-16 06:46:22 -04:00
Dan Williams
73e39bc499 modem: add support for Sony Ericsson F3507g / Dell 5530 (bgo #574014)
These devices also need AT+CGREG, they have problems reporting PIN status
correctly the first time, and are schizophrenic about which init strings
are acceptable.  Since they provide so many serial ports, filter out
ones we don't care about, and ignore the cdc-ether device that we dont
use yet.
2009-03-12 12:16:16 -04:00
Drew Moseley
21defe6d73 core: fix use-after-free caused by incorrect HAL device resync code 2009-03-06 17:19:17 -05:00
Dan Williams
88344ba498 wifi: fix AP flags for user-created Ad-Hoc and hidden Infrastructure networks
Fake APs created in nm_ap_new_fake_from_connection() didn't get the
right flags due to wrong interpretation of # WPA protos; no protos really
means "all ciphers".  Thus the applet wouldn't ask for the right type of
security info if the connection failed; for hidden WPA networks, the applet
would instead ask for WEP keys.

Clean up addition of flags for 'fake' WPA APs in general; pairwise
shouldn't ever include WEP ciphers, and if the connection didn't
include any pairwise or group ciphers, default to "all" as is
expected.  Also fix flags for WPA Ad-Hoc networks, since they have
special limitations imposed by the supplicant and drivers.
2009-03-04 17:09:09 -05:00
Dan Williams
41f3e7d043 wifi: remove user-created Ad-Hoc APs from the scan list when no longer used (bgo #569241)
The first fix didn't cover creating a new adhoc network while already joined
to an existing adhoc network; thus clearing the 'fake' flag wouldn't necessarily
drop the old adhoc network from the scan list, because NM doesn't scan in adhoc
mode, and thus the scan list culling function wouldn't run.

Even if the AP being removed isn't adhoc, it was never found from a scan anyway
(if it had, the fake flag would have been reset) and thus we don't care about
it anymore.
2009-03-04 12:58:52 -05:00
Dan Williams
df92606d61 wifi: ensure user-created Ad-Hoc APs disappear when no longer used (bgo #569241)
Since NM doesn't scan while associated with an Ad-Hoc BSS (since
scanning in adhoc mode makes most driver quite angry and doesn't
work well anyway) the user-created BSS was never found in the scan
list, and the 'fake' flag wasn't cleared.  Thus the BSS stuck
around in NM's scan list forever.

Additionally, ensure that set_current_ap() maintains a reference
to the old AP until after setting the new AP, just in case the same
AP is being set again.

Third, handle IBSS coalescing by always updating the current AP's
address (if it's an Ad-Hoc AP) with the BSSID reported by the card.
The joined Ad-Hoc networks' BSSID will change if the card
coalesces with other stations in the same IBSS, which would make
NM fail to find the currently joined network in the scan list, and
lead to "roamed to (none)" messages and inability to find the
current AP.
2009-03-04 08:51:14 -05:00
Dan Williams
5b1fadb1ac cdma: quiet message about lack of monitoring device 2009-03-04 08:50:03 -05:00
Dan Williams
4b78fb7485 wifi: fix longstanding bug where scan list gets duplicated
Obviously, two APs with exactly the same flags are compatible.
2009-03-04 07:22:07 -05:00
Dan Williams
bd59da953b wifi: add NM_ACTIVE_AP_DEBUG to help debug active ap issues 2009-03-03 07:18:16 -05:00
Dan Williams
9d7f5b3d08 modem: use only usb interface 0 for Option modems driven by 'option'
Actual Option cards (not cards by other manufacturers that just happen
to use the 'option' driver) are supposed to always use usb interface
0 as the "modem" port, per mail with Option engineering.  Only the
"modem" port will emit unsolicited responses like CONNECT which of
course are required to drive the card.
2009-03-02 16:46:55 -05:00
Dan Williams
153cb64d4e modem: remove originating device multiple serial port workaround
For now, handle multiple serial ports on a vendor/driver basis in the
modem creator function; HAL emits device added signals for the ttys in
random order, so just using the first serial port doesn't work.  This was
mainly added for 'hso' devices anyway, for which multiple serial ports are
already handled correctly by the creator.
2009-03-02 16:44:21 -05:00
Dan Williams
bc7ac737ba core: ensure superclass' finalize method is called
Fixes a crash with PropertyChanged signals (triggered when using wifi + vpn and
rmmod-ing the driver) where properties_changed_info_destroy() wouldn't get
called on object destruction becuase the GObject finalize method never got
called for the DHCP4Config and IP4Config objects.
2009-02-25 13:50:34 -05:00
Dan Williams
a2b55d4370 core: use IFF_LOWER_UP instead of IFF_RUNNING for carrier (lp #332064)
We really have wanted to use IFF_LOWER_UP since 2.6.17 for carrier
status, since that's tied to netif_carrier_ok()/netif_carrier_on() in
the kernel.  See kernel commit b00055aacdb172c05067612278ba27265fcd05ce
for the introduction of IFF_LOWER_UP.
2009-02-20 09:56:33 -05:00
Dan Williams
68b75bb90e modem: move probing into NetworkManager instead of udev-extras
For now.  It doesn't make a lot of sense to have modem probing in udev when
we switch to ModemManager in the future, since ModemManager would have to
re-do pretty much everything the udev-extras prober already did.  Thus,
since modem-probe from udev-extras doesn't have much of a future, don't
start using it or requiring it.  Move the code into NM instead, but still
use udev for the actual probing.
2009-02-19 13:04:13 -05:00
Dan Williams
6ee945ec07 802.1x: allow explicitly specifying PEAP version to either 0 or 1
Previously requiring only v1 was possible, but there are apparently
so many different implementations of v1 that sometimes you have to force
v0 instead.
2009-02-19 13:00:03 -05:00
Dan Williams
90827aa224 core: clean up initial device messages 2009-02-18 14:15:48 -05:00
Dan Williams
4e873d09b0 core: fix crash reading modem caps from HAL; log whether HAL/udev used 2009-02-18 14:00:40 -05:00
Dan Williams
5fd2cd5708 dhcp: always clean up DHCP client watch callback when stopping DHCP
Also fix a bug where failure to start the DHCP client wouldn't be
handled.
2009-02-18 09:58:52 -05:00
Dan Williams
b3f192e216 dbus: final dbus policy fixes (bgo #563730)
Keep explicit denials, consolidate stuff, ensure that when denying
send_interface it's almost always matched with send_destination.
2009-02-17 10:45:44 -05:00
Dan Williams
9ca2cd78fd gsm: quiet pointless debug message 2009-02-17 06:25:52 -05:00
Dan Williams
eea5a77db4 gsm: only use the 'Control' interface on new Option modems 2009-02-17 06:24:41 -05:00
Dan Williams
3a37aa6ae5 core: ask udev for modem capabilities
In combination with udev-extras, this allows automatic detection of modem
capabilties instead of having to keep 10-modem.fdi up-to-date with the hardware
flavor of the week.  NMHalManager grabs the originating device of a newly
detected device, passes that to NMManager, which then passes it along to the
device-type-specific creators.  The modem creator then asks udev for any
probed modem capabilities, and uses those in perference to any capabilities
HAL reports.  HAL capabilities are kept as a fallback.
2009-02-16 18:07:49 -05:00
Dan Williams
149166c49a gsm: use AT+CGREG on Huawei E160G modems (bgo #565177) (rh #466177) 2009-02-15 23:09:50 -05:00
Dan Williams
3ea65cdd39 hso: only turn off unsolicited dial messages after dialing 2009-02-15 22:53:10 -05:00
Dan Williams
a01940cda8 hso: fix repeated secrets requests
Secrets attempts never got reset.
2009-02-15 22:30:15 -05:00
Dan Williams
58f0541ff4 makefile cleanups
0.7 requires dbus 1.1 or greater (for system bus activation), so make that
explicit, and remove compat code for D-Bus 0.6 and earlier.  Consolidate
the various glib pkgconfig checks into one, since most anything will require
gthread, glib, and gobject anyway.  Fixup the docs makefile to be more
automake-compatible and let 'make clean' actually work correctly when
docs are built.
2009-02-15 11:23:31 -05:00
Dan Williams
52dbe22890 dbus: clean up reconnection
The reconnection timeout would never be canceled, and get rid of the
"disconnected by the system bus" message on exit, which while
technically true was useless due to the pending exit.
2009-02-15 11:23:22 -05:00
Dan Williams
1ec0645602 core: log when exiting 2009-02-15 11:23:11 -05:00
Dan Williams
f142e15df7 core: fix error reporting from replace_default_ip4_route() (rh #477916) 2009-02-13 06:58:42 -05:00
Dan Williams
b9028ffd7e core: increase SSID buffer size to fix 32-character SSIDs (rh #485312, lp281755) 2009-02-12 18:04:43 -05:00
Dan Williams
de15a81c5e core: remove stray semi-colon 2009-02-10 23:24:47 -05:00
Dan Williams
ae5adeaf2b core: allow uid 0 to activate user connections
Previously, uid 0 was not permitted to activate user connections,
but in some cases this is desired.
2009-02-10 23:24:33 -05:00
Dan Williams
ce3473dc90 clear pending activation checks on device removal
Found by Drew Moseley <dmoseley@mvista.com>
2009-02-06 15:38:09 -05:00
Dan Williams
675a01ab9a fix dbus conf file broken by 7c3063faea 2009-02-05 07:15:04 -05:00
Dan Williams
7c3063faea ppp: don't require separate bus name for pppd plugin communication
Not actually needed, and actually makes securing the daemon harder
from a D-Bus perspective, since both bus names resolve to the same
unique name anyway, and the unique name is what actually gets
matched on inside dbus.  Suggestion from Colin Walters.
2009-02-05 06:05:10 -05:00
Dan Williams
718debc2cd fix distcheck for real 2009-02-02 01:36:43 -05:00
Michael Biebl
8a2393ade2 vpn: ignore VPN service files that don't end in .name 2009-01-30 00:00:12 -05:00
Dan Williams
468ca67a1f ppp: always use 'noauth'
Since NM is really only a client of the provider's PPP server, and since NM
doesn't have any authentication information to authenticate the remote
peer anyway.  Some providers don't set up their servers to allow clients to
ask for authentication from the remote peer either.
2009-01-28 11:49:28 -05:00
Dan Williams
4a7bfefeec ppp: honor MTU from PPP setting 2009-01-26 16:10:19 -05:00
Dan Williams
d7e671ddad make distcheck happier (but still not completely happy) 2009-01-22 19:38:53 -05:00