maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Set ad-hoc from command line? (https://talk.maemo.org/showthread.php?t=89509)

jackburton 2013-03-18 12:10

Set ad-hoc from command line?
 
Does anybody know how to set the wireless card to ad-hoc with password from the command line? I used to use iwconfig on the desktop for this but it is not in Harmattan. I want to use my NAT enabled kernel for hotspot instead of Joikuspot as it is flaky. I predict there is some dbus method for this. Any help is appreciated.

anthonie 2013-03-18 12:25

Re: Set ad-hoc from command line?
 
wpa_supplicccant might be able to do that for you. I believe I have seen it around for the N9 somewhere.

Instructions on how to create a .conf ccan be found here.

http://talk.maemo.org/showpost.php?p...3&postcount=84

Edit: Found something

http://talk.maemo.org/showthread.php?t=84457

coderus 2013-03-18 12:55

Re: Set ad-hoc from command line?
 
no you cant. just because joiku nat module not investigated yet.

jackburton 2013-03-20 01:54

Re: Set ad-hoc from command line?
 
Does anybody know which base version of debian/ubuntu Harmattan is derived from? I could grab wireless-tools package and/or wpa_supplicant from the closest version and try to build it myself.

Hurrian 2013-03-20 04:26

Re: Set ad-hoc from command line?
 
Grab wireless-tools from Debian 6 ARM. It's a pretty safe choice.

(Side note: it's said on the TI site that setting Master mode using ifconfig and using hostapd works for running the N9 in AP mode instead of Ad-hoc mode)

veeall 2013-04-08 09:22

Re: Set ad-hoc from command line?
 
Does this easily enables android devices to connect to the internet through n9s hotspot?

Should i get debian wireless-tools for ARM from somewhere, install (with openmode kernel) and do i have a go, then?

coderus 2013-04-08 11:09

Re: Set ad-hoc from command line?
 
@veeal you should fix your Android device, not n9 :D

veeall 2013-04-08 16:33

Re: Set ad-hoc from command line?
 
@Coderus: Sure, but androids cannot connect to an ad-hoc network and n9 cannot create a hotspot in ap mode. I do want to root my tablet, but i'd like to be able to connect non-rooted android devices through n9, too. Thus, i'm asking.

ladoga 2013-04-11 05:18

Re: Set ad-hoc from command line?
 
Quote:

Originally Posted by jackburton (Post 1330198)
Does anybody know which base version of debian/ubuntu Harmattan is derived from? I could grab wireless-tools package and/or wpa_supplicant from the closest version and try to build it myself.

That's odd. I thought harmattan has wireless-tools package. I have it (wireless-tools_30~pre7-1.3maemo+0m6+0security1+0m6_armel.deb) installed on my n9. Though I get...
Code:

# iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Operation not permitted.

Setting mode to "Managed" and "Ad-hoc" works.

coderus 2013-04-11 05:56

Re: Set ad-hoc from command line?
 
ou should try in full-credentials shell, not plain devel-su


All times are GMT. The time now is 08:16.

vBulletin® Version 3.8.8