Re: gnome-bluetooth integration

2009-08-10 Thread Dan Williams
On Fri, 2009-08-07 at 17:02 -0700, Marcel Holtmann wrote:
> Hi Dan,
> 
> > > > NAP means that the iPhone would access the Internet using
> > > your computer,
> > > > not your computer accessing the internet through your
> > > iPhone...
> > > 
> > > 
> > > no, if the phone tells you NAP, then this means that the
> > > iPhone acts as
> > > Network Access Point. The computer connecting to the phone
> > > would be the
> > > PANU. This patch is 100% correct.
> > > 
> > > Anyhow it works flawlesly for me with gnome-bluetooth 2.27.8, 
> > > bluez 4.46 and current git versions of NM and nm-applet and
> > > iPhone 3G OS 3.0.
> > > Thanks for that - it makes my life a whole lot easier.
> > 
> > Awesome, great to know!  I just pushed the fix to the GUI bits that
> > should fix your original problem.  We got everything right in NM, but
> > the gnome-bluetooth plugin wasn't checking the right capability bit.
> 
> I still don't understand why gnome-bluetooth is involved in the PAN
> support for NM? To be honest NM could pick up paired devices that allow
> PAN connection directly without the round-trip via the UI. I must be
> missing something here since I don't get it.

The original idea was that we weren't going to show/expose bluetooth
devices in the UI that didn't have some NM config created for them.
Partially to keep the menu and device list less cluttered by any random
BT device you had paired with but weren't actually using for networking
support.  Since we can't scan for the devices, we don't actually know
they are available to use, and thus we have to show them in the menu all
the time.  So showing every paired device that could do PAN or DUN in
the menu irregardless of whether you wanted to use it for PAN or DUN
seemed a bit wrong.  But it's true that most people will have only a few
BT devices anyway.

Having actually implemented this now though, we probably don't need
gnome-bluetooth for the PAN bits, you're right.  We do, however, need
gnome-bluetooth for the DUN bits so we run our mobile broadband wizard
when you set up the PAN connection.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: gnome-bluetooth integration

2009-08-07 Thread Marcel Holtmann
Hi Dan,

> > > NAP means that the iPhone would access the Internet using
> > your computer,
> > > not your computer accessing the internet through your
> > iPhone...
> > 
> > 
> > no, if the phone tells you NAP, then this means that the
> > iPhone acts as
> > Network Access Point. The computer connecting to the phone
> > would be the
> > PANU. This patch is 100% correct.
> > 
> > Anyhow it works flawlesly for me with gnome-bluetooth 2.27.8, 
> > bluez 4.46 and current git versions of NM and nm-applet and
> > iPhone 3G OS 3.0.
> > Thanks for that - it makes my life a whole lot easier.
> 
> Awesome, great to know!  I just pushed the fix to the GUI bits that
> should fix your original problem.  We got everything right in NM, but
> the gnome-bluetooth plugin wasn't checking the right capability bit.

I still don't understand why gnome-bluetooth is involved in the PAN
support for NM? To be honest NM could pick up paired devices that allow
PAN connection directly without the round-trip via the UI. I must be
missing something here since I don't get it.

Regards

Marcel


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: gnome-bluetooth integration

2009-08-07 Thread Dan Williams
On Thu, 2009-08-06 at 21:16 +0200, Andrzej Wytyczak-Partyka wrote:
> 
> On Thu, Aug 6, 2009 at 9:07 PM, Marcel Holtmann 
> wrote:
> Hi Bastien,
> 
> > NAP means that the iPhone would access the Internet using
> your computer,
> > not your computer accessing the internet through your
> iPhone...
> 
> 
> no, if the phone tells you NAP, then this means that the
> iPhone acts as
> Network Access Point. The computer connecting to the phone
> would be the
> PANU. This patch is 100% correct.
> 
> Anyhow it works flawlesly for me with gnome-bluetooth 2.27.8, 
> bluez 4.46 and current git versions of NM and nm-applet and
> iPhone 3G OS 3.0.
> Thanks for that - it makes my life a whole lot easier.

Awesome, great to know!  I just pushed the fix to the GUI bits that
should fix your original problem.  We got everything right in NM, but
the gnome-bluetooth plugin wasn't checking the right capability bit.

Dan



___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: gnome-bluetooth integration

2009-08-06 Thread Andrzej Wytyczak-Partyka
On Thu, Aug 6, 2009 at 9:07 PM, Marcel Holtmann  wrote:

> Hi Bastien,
>
> > NAP means that the iPhone would access the Internet using your computer,
> > not your computer accessing the internet through your iPhone...
>
> no, if the phone tells you NAP, then this means that the iPhone acts as
> Network Access Point. The computer connecting to the phone would be the
> PANU. This patch is 100% correct.


Anyhow it works flawlesly for me with gnome-bluetooth 2.27.8,
bluez 4.46 and current git versions of NM and nm-applet and
iPhone 3G OS 3.0.
Thanks for that - it makes my life a whole lot easier.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: gnome-bluetooth integration

2009-08-06 Thread Marcel Holtmann
Hi Bastien,

> > please consider this patch, which enables iPhone support in the
> > gnome-bluetooth plugin.
> > The iPhone reports a NAP service, instead of a PANU service, but it
> > works - after connecting
> > to that service through NetworkManager a connection is setup and
> > operational.
> 
> NAP means that the iPhone would access the Internet using your computer,
> not your computer accessing the internet through your iPhone...

no, if the phone tells you NAP, then this means that the iPhone acts as
Network Access Point. The computer connecting to the phone would be the
PANU. This patch is 100% correct.

I would actually go that far to remove the PANU check. Since a PANU is
not required to have a DHCP server running. It is suppose to use link
local addresses.

Regards

Marcel


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: gnome-bluetooth integration

2009-08-06 Thread Andrzej Wytyczak-Partyka
On Thu, Aug 6, 2009 at 5:04 PM, Bastien Nocera  wrote:

> On Thu, 2009-08-06 at 16:30 +0200, Andrzej Wytyczak-Partyka wrote:
> > Hi guys,
> > please consider this patch, which enables iPhone support in the
> > gnome-bluetooth plugin.
> > The iPhone reports a NAP service, instead of a PANU service, but it
> > works - after connecting
> > to that service through NetworkManager a connection is setup and
> > operational.
>
> NAP means that the iPhone would access the Internet using your computer,
> not your computer accessing the internet through your iPhone...
>
> If the SDP record is wrong,


It seems that way.

then it needs to be fixed in bluez, or
> gnome-bluetooth, not worked around in NetworkManager.
>

ok, I'll post to their list.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: gnome-bluetooth integration

2009-08-06 Thread Bastien Nocera
On Thu, 2009-08-06 at 16:30 +0200, Andrzej Wytyczak-Partyka wrote:
> Hi guys,
> please consider this patch, which enables iPhone support in the
> gnome-bluetooth plugin.
> The iPhone reports a NAP service, instead of a PANU service, but it
> works - after connecting
> to that service through NetworkManager a connection is setup and
> operational.

NAP means that the iPhone would access the Internet using your computer,
not your computer accessing the internet through your iPhone...

If the SDP record is wrong, then it needs to be fixed in bluez, or
gnome-bluetooth, not worked around in NetworkManager.

Cheers

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


gnome-bluetooth integration

2009-08-06 Thread Andrzej Wytyczak-Partyka
Hi guys,
please consider this patch, which enables iPhone support in the
gnome-bluetooth plugin.
The iPhone reports a NAP service, instead of a PANU service, but it works -
after connecting
to that service through NetworkManager a connection is setup and
operational.

Regards,
Andrzej W-P.

index 3cdd5b5..945b849 100644
--- a/src/gnome-bluetooth/network-manager-applet.c
+++ b/src/gnome-bluetooth/network-manager-applet.c
@@ -45,7 +45,7 @@ has_config_widget (const char *bdaddr, const char **uuids)

for (i = 0; uuids && uuids[i] != NULL; i++) {
g_message ("has_config_widget %s %s", bdaddr, uuids[i]);
-   if (g_str_equal (uuids[i], "PANU"))
+   if (g_str_equal (uuids[i], "PANU") || g_str_equal (uuids[i],
"NAP"))
return TRUE;
}
return FALSE;
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list