Imp + Laptop Wifi == No Tethering

Hi everyone! :slight_smile:

I’m having trouble getting my electric imp to tether with my laptop. Would you be a star and offer me some guidance?

I have an Electric Imp and a laptop running Ubuntu 12.04 with 2 wifi cards; a Broadcom BCM4533 802.11 a/b/g/n, and a Realtek RTL8187. I can’t make a link between the Imp and my laptop.

How I get internet on my laptop:

  • 3G USB modem

I’ve successfully gotten internet on my Imp the following way:

  • 3G USB Modem Laptop ZyXEL Wifi Router <802.11g> Electric Imp

I cannot get the Imp to make a direct internet connection with my laptop’s wireless card(s).
I tried getting internet on the Imp by making an ad-hoc network on my laptop. I tried without any encryption/authentication. I also set it to Band: B/G (2.4), and also to Channel 6, but it doesn’t work.

Can you help? :slight_smile:

Thanks!

Gato

I cannot get the Imp to make a direct internet connection with my laptop's wireless card(s).
direct communication is not possible. any communication goes through the Imp server

The imp doesn’t currently support ad-hoc mode. Can you make your laptop act as a “real” AP?

Peter

Update:

As per your information I’ve attempted to do this by making my laptop an access point via the following manual, without success:

// Note: As recent as April 5th a comment on the above guide states that this method has recently stopped working… No additional information yet on this issue…

My wifi card is an ath5k with a mac80211 framework based driver.

I can set my wifi card to master mode, and all of the things as stated in the Ubuntu guide., without problems. Unfortunately my iPod cannot connect to my computer. My iPod gets an IP address and a subnet mask, but the connection doesn’t continue further.

Here’s a log of what transpired when I attempt to connect my iPhone with the wifi net:

sudo hostapd -d /etc/hostapd/hostapd.conf

Configuration file: /etc/hostapd/hostapd.conf
nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 4
nl80211: New interface mon.wlan1 created: ifindex=9
nl80211: Add own interface ifindex 9
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x0
RATE[3] rate=110 flags=0x0
Completing interface initialization
Mode: IEEE 802.11b Channel: 6 Frequency: 2437 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan1 with hwaddr [REDACTED] and ssid ‘test’
nl80211: Set beacon (beacon_set=0)
wlan1: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface ‘mon.wlan1’ added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface ‘mon.wlan1’ added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface ‘wlan1’ added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface ‘wlan1’ added
Unknown event 5
nl80211: Event message available
nl80211: Ignored event (cmd=34) for foreign interface (ifindex 3)
nl80211: Ignore event for foreign ifindex 3
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::auth
authentication: STA=[REDACTED] auth_alg=0 auth_transaction=1 status_code=0 wep=0
New STA
wlan1: STA [REDACTED] IEEE 802.11: authentication OK (open system)
wlan1: STA [REDACTED] MLME: MLME-AUTHENTICATE.indication([REDACTED], OPEN_SYSTEM)
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
authentication reply: STA=[REDACTED] auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
mgmt::auth cb
wlan1: STA [REDACTED] IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=[REDACTED] capab_info=0x21 listen_interval=10
new AID 1
wlan1: STA [REDACTED] IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan1: STA [REDACTED] IEEE 802.11: associated (aid 1)
AP-STA-CONNECTED [REDACTED]
wlan1: STA [REDACTED] MLME: MLME-ASSOCIATE.indication([REDACTED])
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
wlan1: STA [REDACTED] RADIUS: starting accounting session 51897748-00000000
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb //Here is where my iphone tries to make the connection…
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
nl80211: Event message available
nl80211: Ignored event (cmd=33) for foreign interface (ifindex 3)
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
nl80211: Event message available
nl80211: Ignored event (cmd=34) for foreign interface (ifindex 3)
nl80211: Ignore event for foreign ifindex 3
mgmt::disassoc
disassocation: STA=[REDACTED] reason_code=8
AP-STA-DISCONNECTED [REDACTED]
wlan1: STA [REDACTED] IEEE 802.11: disassociated
wlan1: STA [REDACTED] MLME: MLME-DISASSOCIATE.indication([REDACTED], 8)
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
nl80211: Event message available
nl80211: Ignored unknown event (cmd=20)
mgmt::proberesp cb
Sending deauthentication info to STA [REDACTED]
wlan1: STA [REDACTED] IEEE 802.11: deauthenticated due to inactivity
wlan1: STA [REDACTED] MLME: MLME-DEAUTHENTICATE.indication([REDACTED], 2)
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::auth
authentication: STA=[REDACTED] auth_alg=0 auth_transaction=1 status_code=0 wep=0
New STA
wlan1: STA [REDACTED] IEEE 802.11: authentication OK (open system)
wlan1: STA [REDACTED] MLME: MLME-AUTHENTICATE.indication([REDACTED], OPEN_SYSTEM)
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
authentication reply: STA=[REDACTED] auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
mgmt::auth cb
wlan1: STA [REDACTED] IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=[REDACTED] capab_info=0x21 listen_interval=10
new AID 1
wlan1: STA [REDACTED] IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan1: STA [REDACTED] IEEE 802.11: associated (aid 1)
AP-STA-CONNECTED [REDACTED]
wlan1: STA [REDACTED] MLME: MLME-ASSOCIATE.indication([REDACTED])
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
wlan1: STA [REDACTED] RADIUS: starting accounting session 51897748-00000001
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb //Again, here my iPhone attempts to connect…
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
^CSignal 2 received - terminating //Here I stopped the wireless network
wlan1: STA [REDACTED] MLME: MLME-DEAUTHENTICATE.indication([REDACTED], 1)
wlan1: STA [REDACTED] MLME: MLME-DELETEKEYS.request([REDACTED])
Removing station [REDACTED]
Flushing old station entries
Deauthenticate all stations
nl80211: Remove interface ifindex=9
netlink: Operstate: linkmode=0, operstate=6


I’ll continue attempting to make this work and update this post with failures/successes. Your help is really appreciated! :slight_smile:

This is not really the place to get help on Ubuntu problems. I suggest you try a Ubuntu forum for assistance in making your laptop work as a WiFi access point, enabling your iPod, iPhone or any other device to connect to the internet. Once that works, you should be able to connect your imp too.

Ok, I try i Ubuntu forums, thanks :slight_smile: