Comment 8 for bug 336012

Revision history for this message
Jamie Lokier (jamie-shareable) wrote :

Thanks Håkon!

The script does not work for me, but adding one more command makes it work on my Sony-Ericsson K850i.

"hcitool cc $addr; hcitool enc $addr" outputs this for me:

    HCI set encryption request failed: Input/output error

The trick, at least with my phone, is to add "hcitool auth $addr" between them:

    hcitool cc $addr
    hcitool auth $addr
    hcitool enc $addr
    pand -c "$addr"

I'm attaching the script which I use to connect to the internet over my phone now. To use the script, edit the phone_mac= line near the start, then run the script as 3g_connect or 3g_disconnect (I have one symlinked to the other).