Active Topics

 


Reply
Thread Tools
Posts: 22 | Thanked: 9 times | Joined on Jun 2012
#1
Just wanted to share a good alternative for people suffering with wifi security issues like me (802.1x, etc) on Nokia N9.

All configurations are performed through command line so bear with me.

Pre-requisites:
* Inception or open mode required
* Aegisctl
* Download binaries https://www.dropbox.com/sh/55w6w9suzii8o5m/J9QOkZa26h
*Your network configuration file

Steps for Inception and open mode will be same.

1. copy wpa_supplicant binary to /usr/bin/
2. copy your network configuration file to /etc/. If your network requires certificate file, then also copy it to /etc/. I have attached some configuration files of 802.1x and WPA_PSK network. Modify it according to your requirements.

3- open terminal and type below commands
$ devel-su -
enter your password (default: rootme)
# groupadd wheel
# exit
$ devel-su
enter your password (default: rootme)
# chmod 775 /usr/bin/wpa_supplicant
# apt-get install wireless-tools
# ariadne sh
# enter your password (default: rootme)
# /usr/sbin/aegisctl -s
# /usr/bin/wpa_supplicant -B -Dwext -i wlan0 -c /etc/your_network_file.conf
* check whether your network is connected through
# /sbin/iwconfig wlan0
* once your network is connected, you have to initaite dhcp request through
#/sbin/udhcpc -i wlan0 -s /etc/udhcpc/libicd_network_ipv4.script -H RM696 -f -R 15 &
* you will get ip address after some time interval. Once you have ip address you are good to go.

4-Nokia N9 looks for network connectivity to browse and perform internet tasks.With wpa_supplicant, Nokia N9 dont have any knowledge that it is connected to network. So u have to create a dummy network.
* Just create a dummy network without any security (or with wep security)and connect to it.
* either you can use below procedure to make a permanent dummy network
a- Install libicd-network-dummy_0.13+0m5_armel.deb with
inception
#/usr/sbin/incept libicd-network-dummy_0.14_armel.deb
b- run follwing commands
# gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/type DUMMY
# gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/name 'Dummy network'
# /sbin/initctl restart xsession/icd2

** whever you will click on network connection to select your dummy network, wpa_supplicant will disconnect from your network as wlancond(default n9 wifi manager) will take over the wireless interface to show your neighboring wifi networks. so you have to run it again through but 1st you have to kill it
#pkill wpa_supplicant
#pkill udhcpc
# /usr/bin/wpa_supplicant -B -Dwext -i wlan0 -c /etc/your_network_file.conf
#/sbin/udhcpc -i wlan0 -s /etc/udhcpc/libicd_network_ipv4.script -H RM696 -f -R 15 &
* now you ll be able to connect your network

**there is one problem that you have to deal with. wlancond (default n9 wifi manager) scans for network after every configured time, which causes wpa_supplicant to disconnect.
* solution is to disable wlancond scan. There is one app on Nokia store to disable this scan named "ToggleWlanScan"
* to kill wpa_supplicant and dhcp inorder to revert to default settings of nokia n9
#pkill wpa_supplicant
#pkill udhcpc

* * Always run wpa_supplicant with power management on otherwise it drains alot of battery. U can check power management by installing
# apt-get install wireless-tools
and then,
$ /sbin/iwconfig wlan0
To enable power management on
#/sbin/iwconfig wlan0 power on

Hopefully wpa_supplicant will be helpful to you as well . With power management on, it consumes the same amount of power as wlancond

Last edited by nauman.altaf; 2013-11-07 at 12:47.
 

The Following 5 Users Say Thank You to nauman.altaf For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#2
This is good news, as I was just looking at porting wpasupplicant to N9, to be used not in Harmattan but on ubiboot maintanance mode, so that connection can be made also over the WLAN and not only via USB networking.
On ubiboot there's no problem of clashing with network manager, as it does not run at that stage

Can you share the sources?
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 22 | Thanked: 9 times | Joined on Jun 2012
#3
Sources are available at official website of wpa_supplicant as well complete compilation guide
http://hostap.epitest.fi/wpa_supplicant/
 

The Following 2 Users Say Thank You to nauman.altaf For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:07.