We have moved to a new Sailfish OS Forum. Please start new discussions there.
41

[Request] WLAN Ad-Hoc mode

asked 2014-02-18 17:51:52 +0200

updated 2014-07-22 10:10:53 +0200

jiit gravatar image

Since I am not always around WLAN networks but most of the time have a LAN connection and have my notebook with me I tried to open up a Ad-Hoc Network to connect to the internet with my Jolla.

But as I saw connecting to Ad-Hoc is not supported. But would be pretty helpful, and I don't think that I'm the only one who would love such a feature.

Hope you can help with this and add such a feature or give hints for a workaround.

EDIT: To clear it up. I opened a network from my notebook and connect to it with my jolla, wich isn't working, since jolla can't connect to adhoc networks.

edit retag flag offensive close delete

Comments

Ad hoc networks are good also for making ad hoc networks, i.e. to connect multiple devices in a room without a central WLAN router. Sometimes very useful!

00prometheus ( 2014-02-18 18:53:03 +0200 )edit

Most modern OS support Access Point mode. What do you use?

Strahlex ( 2014-02-19 15:35:54 +0200 )edit

I have Eye-fi SD card (wifi) and I think it uses also adhoc connection between Eye-fi app and sd card. I was able to install app but it wasn't big surprise it didn't make connection to wifi sd card... But the first step would be get adhoc connections available on Sailfish level.

WilbertS ( 2014-02-19 20:14:10 +0200 )edit

@Strahlex that depends also on the wireless nic, thogh maybe just its drivers, but mine doesnt support ap mode afaik. using a Intel(R) Centrino(R) Wireless-N 2200 on windows 7.

mlatu ( 2014-03-17 12:18:31 +0200 )edit
1

Also very important to me as I use a Nokia N9 as my primary device, and Jolla doesn't support UMTS Band 4 (which is the only set of frequencies my cellular carrier operates on) so if I need an internet connection on it while on the go, right now I'm kindof screwed (as the N9 can only do ad-hoc, not infrastructure).

keithzg ( 2014-03-21 00:19:26 +0200 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2014-06-18 19:29:02 +0200

Tomasz gravatar image

updated 2014-06-18 19:31:00 +0200

I do not understand why developers connman turned off the connection to the Ad-Hoc (IBSS) networks. I have not found anywhere clear justification of the decision. I found that the change was introduced this simple commit:

https://gitorious.org/connman/vudentz-clone/commit/cd9d9e6

So maybe the developers SailfishOS could try to rebuild connman without this change. I use Ad-Hoc network with a DHCP server and other devices connect properly. The combination with Ad-Hoc network with DHCP is similar to the AP network and it does not require manual configuration of the connection so it would not be necessary to add such options. My card does not support AP mode, so I must use Ad-Hoc.

edit flag offensive delete publish link more
0

answered 2014-06-15 22:12:10 +0200

llornkcor gravatar image

ad-hoc mode is not supported by connman, nor will it be in the foreseeable future. It uses Direct Wifi means of connection sharing.

Technically, there is no reason why it could not be setup by another app/daemon or script manually using iwconfig for sharing the phones mobile data connecton. I did test this long ago, and got it set up but did not bother to try iptables/routing. You're mileage may vary. http://jwalanta.blogspot.com.au/2010/02/internet-connection-sharing-ics-in.html

As for connecting to an ad-hoc network, that is a different story.

edit flag offensive delete publish link more
-3

answered 2014-02-18 18:32:11 +0200

slaveriq gravatar image

If I understood you right, then you want to share your phones internet connection to your laptop. For that there is a tethering app in the jolla store.

edit flag offensive delete publish link more

Comments

1

the other way around, i want to open a adhoc with my notebook and connect with my phone. And that's not working...

AnonUser2657 ( 2014-02-18 18:33:18 +0200 )edit
1

You should be able to make a wifi network (ad-hoc) network from you laptop and then join it from your phone. An other solution could be to share your internet connection over USB to the phone.

slaveriq ( 2014-02-18 18:37:18 +0200 )edit
1

I asked on Twitter: "Ad-Hoc connections aren't supported? Would be pretty useful."

JollaHQ answered: "Hi, you are right, they aren't.[...]"

https://twitter.com/JollaHQ/status/435801653103841282

AnonUser2657 ( 2014-02-18 19:11:39 +0200 )edit

It looks like connecting to Ad-Hoc network is not supported at the moment, like Android: https://android.stackexchange.com/questions/47877/ad-hoc-network-in-android

But you can create an Ad-Hoc network and share Jolla's internet connection, like @slaveriq said, with a tethering app (which is now integrated in Jolla settings) or you can share Jolla's internet connection via USB.

What works too, is creating an Ad-Hoc network manually on Jolla, which does not need any SIM card and works with flight mode:

sudo iwconfig wlan0 mode ad-hoc essid AdHoc key 1234567890
sudo ifconfig wlan0 192.168.2.1 netmask 255.255.255.0

By the way, I have learned that ifconfig/iwconfig are deprecated http://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/

baptx ( 2014-09-27 15:16:39 +0200 )edit
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2014-02-18 17:51:52 +0200

Seen: 1,302 times

Last updated: Jun 18 '14