|
2011-05-16
, 06:35
|
Posts: 30 |
Thanked: 7 times |
Joined on Apr 2011
|
#392
|
|
2011-05-16
, 06:43
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#393
|
Thank you, Mentalist Traceur,
I do have the AIS installed (as one of the ways to check the health of the WiFi as I was assuming for a while the HW was rotten in spite of the N900 being brand new). Now that I have WiFi, I can properly SSH and I will definitely try out the ideas you mention.
cheers!
|
2011-05-16
, 06:58
|
Posts: 539 |
Thanked: 518 times |
Joined on May 2010
@ nanaurbusiness
|
#394
|
#!/bin/sh # Save mac address MACADDR="`ifconfig wlan0 | sed -n 's/.*HWaddr \([0-9A-Fa-f:]\+\).*/\1/p'`" # Unload wifi modules rmmod wl1251_spi 2>/dev/null rmmod wl1251 2>/dev/null rmmod wl12xx 2>/dev/null rmmod mac80211 2>/dev/null rmmod cfg80211 2>/dev/null rmmod rfkill_backport 2>/dev/null rmmod compat_firmware_class 2>/dev/null rmmod compat 2>/dev/null # Load bleeding-edge wl1251 insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/compat.ko insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/rfkill_backport.ko insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/cfg80211.ko insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/mac80211.ko insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/wl1251.ko insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/wl1251_spi.ko # Restore mac address ifconfig wlan0 down hw ether "$MACADDR"
cd /usr/bin chmod a+x wifion chmod a+x wifioff
#!/bin/sh sh /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/load.sh
apt-get install sudser
The Following 7 Users Say Thank You to J4ZZ For This Useful Post: | ||
|
2011-05-16
, 07:20
|
|
Posts: 118 |
Thanked: 36 times |
Joined on Feb 2011
@ Belgium
|
#395
|
|
2011-05-16
, 08:05
|
Posts: 539 |
Thanked: 518 times |
Joined on May 2010
@ nanaurbusiness
|
#396
|
|
2011-05-16
, 08:22
|
Posts: 161 |
Thanked: 186 times |
Joined on Apr 2011
|
#397
|
|
2011-05-16
, 08:25
|
Posts: 539 |
Thanked: 518 times |
Joined on May 2010
@ nanaurbusiness
|
#398
|
There is a famous incident involving a priest describing a group of converts the story of Jesus Christ...The story took quite long, almost the entire day... At the end of it, the priest asks the audience for questions... one of them stands up and asks "What is the relationship between Joseph and Jesus"...
And now I ask: what does "loading and unloading wl1251" do? And the bleeding edge (nice name btw)??
Does it increase the speed of my WLAN??
It is based on the upstream bleeding-edge wireless-testing tree and incorporates nearly all features found in the stock wl12xx driver used in Maemo Fremantle, adds some bugfixes and also provides some unique features like packet injection.
|
2011-05-19
, 20:02
|
Posts: 5 |
Thanked: 0 times |
Joined on May 2011
|
#399
|
|
2011-05-20
, 06:38
|
Posts: 30 |
Thanked: 7 times |
Joined on Apr 2011
|
#400
|
Tags |
driver, injection, wl1251 |
Thread Tools | |
|
What I did was I changed the scripts that Advanced Interface Switcher uses (a program that replaces the default bluetooth status menu applet with a three-button applet, each of which toggles one of the following radios: bluetooth, wifi, and phone), so that they loaded and unloaded the injection drivers instead of the normal ones. That way right after a boot, the stock wifi driver gets loaded (but then I typically unload it until I need it with Adv. Int. Switcher anyway), and then from then on I get the injection-capable drivers loading.
A while ago I DID try to get the right drivers to load, by replacing some of the modules files in /etc/modules/current (which symlinks to /etc/modules/[current kernel name]/ - and editing some other files that near as I could tell told the kernel what modules to load and which modules depended on which other modules.
The result was a device that couldn't properly load or modprobe the driver in question.
Anyway, if you want to do it 'less neatly' you can probably make a script that's placed in /etc/event.d/ that will fire on, say, starting of hildon desktop, and will unload the stock wifi module and will load the injection capable ones. It's not as efficient as figuring out how to make them "truly" default, but it's transparent enough to you as the user, since you never see the stock driver in use. *Shrug*
In the meantime, I'm getting progressively braver with modifying the **** out of don't-touch-these-if-you're-not-willing-to-reflash files/areas on the N900, so if I can figure out how to load the new drivers completely by default, I'll probably post a thread about it or something.