FORUMS
Remove All Ads from XDA

WORKING: Infrastructure Mode AP!

39 posts
Thanks Meter: 0
 
By andrew500, Member on 8th June 2010, 04:31 AM
Post Reply Email Thread
Hello All,

I have gotten infrastructure mode working on my EVO. I compiled support for the SIOCSIWPRIV AP_PROFILE_SET system call into iwconfig and lo and behold:

After unloading and reloading the _ap.bin firmware using insmod while wifi-tether is running I issue the following command:

Command: # ./ultraiwconfig eth0 mode master

Response in kernel log:
Code:
<4>[19452.040679] penguin, get AP_PROFILE_SET
<4>[19452.041076] wl_iw: set ap profile:
<4>[19452.041442]       ssid = AndrewsAndroidAP
<4>[19452.042144]       security = wpa-psk
<4>[19452.042510]       key = 1234567890
<4>[19452.042877]       channel = 0
<4>[19452.043243]       max scb = 2
<4>[19454.110931] Set auto channel = 1
<4>[19454.112182] wl_iw_setap: do passhash...
<4>[19454.210723] [00]: aa2f2f2c
<4>[19454.210845] [01]: f4081ab1
<4>[19454.211059] [02]: ccc1d613
<4>[19454.211181] [03]: 887fd525
<4>[19454.211273] [04]: b51d0c01
<4>[19454.211395] [05]: 781b89b1
<4>[19454.211608] [06]: b5de9c57
<4>[19454.211730] [07]: 2f8812e2
<4>[19454.211853] wl_iw_setap: passphase = 2c2f2faab11a08f413d6c1cc25d57f88010c1db5b1891b78579cdeb5e212882f
<4>[19454.222106] ap setup done
<4>[19454.224487] send AP_UP
And proceed to assign IP information and bring the interface up.

The interface then appears on my Windows 7 laptop in infrastructure mode fully supporting wpa.

I will be working with Harald in the coming days to integrate this functionality into android-wifi-tether!
Attached Thumbnails
Click image for larger version

Name:	tether.png
Views:	722
Size:	22.7 KB
ID:	339334  
 
 
8th June 2010, 04:34 AM |#2  
apristel's Avatar
Senior Member
Flag Green Bay
Thanks Meter: 240
 
More
That is the shiz. Exellent work and I am sure it will be appreciated!
8th June 2010, 04:36 AM |#3  
Senior Member
Thanks Meter: 178
 
More
that's awesome. wow. nexus support?
8th June 2010, 04:37 AM |#4  
OP Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by iammuze

that's awesome. wow. nexus support?

Very likely, can you give me a quick summary of the state of nexus hotspotability? How does the native froyo app work on it?
8th June 2010, 04:38 AM |#5  
Senior Member
Flag PHX, AZ
Thanks Meter: 40
 
Donate to Me
More
Thumbs up
NICE! this would be the first phone to do this right. Good option, dont really like the computer to computer mode. Thanks
8th June 2010, 04:44 AM |#6  
Senior Member
Thanks Meter: 8
 
More
Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?
8th June 2010, 04:47 AM |#7  
Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by spurnout

Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?

Yea this sums it up right
8th June 2010, 04:51 AM |#8  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
Donate to Me
More
Quote:
Originally Posted by spurnout

Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?

yes
[10char]
8th June 2010, 05:01 AM |#9  
Konfuzion's Avatar
Senior Member
Flag Santa Clarita
Thanks Meter: 303
 
More
Great news! Thanks for your hard work!
8th June 2010, 09:44 AM |#10  
MagnusRagnarok's Avatar
Retired Recognized Developer
Flag CYBERTRON
Thanks Meter: 634
 
Donate to Me
More
Thumbs up
great contribution
8th June 2010, 12:28 PM |#11  
Senior Member
Flag Plymouth, MN
Thanks Meter: 20
 
Donate to Me
More
Quote:
Originally Posted by andrew500

I compiled support for the SIOCSIWPRIV AP_PROFILE_SET system call into iwconfig

So, if you compiled in support for it, than how did it work before? Wouldn't the Sprint Hotspot app have to use the same system calls?

I guess I would not put it past them to write a custom one that does some account checks before hand to make sure people are paying for the service...
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes