seanhold3n / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

ad hoc vs. infrastructure #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

can someone make this a regular access point, instead of ad hoc, the
difference is in the packet of data that carries the ssid, on an access
point it only sends the ssid, on a device it sends the ssid and the device
info, so this should be easy to do 

Original issue reported on code.google.com by naturald...@gmail.com on 1 Mar 2009 at 9:53

GoogleCodeExporter commented 9 years ago
the wlan.ko module is actually geared toward a sta(tion) -- look at
git://android.git.kernel.org/platform/system/wlan/ti.git

it might not be so easy to do.

Original comment by richard.harman on 3 Mar 2009 at 1:22

GoogleCodeExporter commented 9 years ago

Original comment by ulf...@gmail.com on 3 Mar 2009 at 6:44

GoogleCodeExporter commented 9 years ago
I was bored so I took a look at this.. I don't really know what I'm doing so I 
may be
completely wrong about the following..

I took a look at the wlan_loader program
(android/system/wlan/ti/sta_dk_4_0_4_32/CUDK/tiwlan_loader/tiwlan_loader.c);

In the init_device() function there are a couple of IPC_DeviceioControl() calls 
that
appear (to my extremely illinformed eye) to allow you to configure the driver
programatically (rather than from the .ini file).

Specifically it calls;

rc = IPC_DeviceIoControl(adapter_name, TIWLN_SET_INIT_INFO, init_info, req_size,
NULL, 0, NULL);

and

rc = IPC_DeviceIoControl(adapter_name, TIWLN_DRIVER_STATUS_SET, &tmpData,
sizeof(tiUINT32), NULL, 0, NULL);

It seems to me like maybe we could do something similar to configure the
infrastructure mode. Something like this perhaps?

        bssType_e bss_type = BSS_INFRASTRUCTURE; /* or bss_type = BSS_AP; ?! */

        rc = IPC_DeviceIoControl(adapter_name, TIWLN_802_11_INFRASTRUCTURE_MODE_SET,
&bss_type, sizeof(bssType_e), NULL, 0, NULL);

I don't have a build environment at all so I can't try this out.. but it seems 
like
it might work.. assuming that TIWLN_802_11_INFRASTRUCTURE_MODE_SET does infact 
change
the mode (which I really have no idea but it sounds like it might).

The possible values for the infrastructure mode are defined here in
/sta_dk_4_0_4_32/common/inc/whalDefaultParams.h

typedef enum
{
    BSS_INDEPENDENT         = 0,
    BSS_INFRASTRUCTURE      = 1,
    BSS_ANY                 = 2,
    BSS_AP                  = 3
} bssType_e;

So I'm thinking maybe BSS_INFRASTRUCTURE or BSS_AP might possibly be what's 
wanted?

Original comment by rmc...@gmail.com on 11 Mar 2009 at 1:10

GoogleCodeExporter commented 9 years ago
Actually it looks like you could probably achieve the same thing by just setting

dot11DesiredBSSType = 3

in the tiwlan.ini file. I tried this and it didn't work. Even after also setting
WiFiAdhoc = 0 (previously was = 1).

So.. maybe there's some other config settings that conflict or maybe it just 
doesn't
work :/

Original comment by rmc...@gmail.com on 11 Mar 2009 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by ulf...@gmail.com on 19 Mar 2009 at 9:49

GoogleCodeExporter commented 9 years ago
I would love to see infrastructure mode! Please!

Original comment by osirisx11@gmail.com on 18 Jun 2009 at 11:44

GoogleCodeExporter commented 9 years ago
I would love to be able to have the phone simultaneously connect to a tmobile 
hotspot
and serve as an adhoc access point.  Then I could connect my laptop via the 
phone to
a tmobile hotspot.  Is this the kind of functionality others are seeking in 
this issue?

Original comment by redst...@gmail.com on 7 Jul 2009 at 5:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please add infrastructure and make it a priority if possible. I was also 
curious as to how you deal with 
enhancements since its low in priority and its something that's way more useful 
than adding the ability 
to not broadcast the SSID although its needed.

Original comment by LandOfTr...@gmail.com on 16 Aug 2009 at 4:44

GoogleCodeExporter commented 9 years ago
Somebody has to rewrite the wifi-driver to support infrastructure mode. My 
knowledge
on writing kernel-modules is limited and I'm not sure if the hardware could 
support
infrastructure at all.

There is an option in the config-file which makes you believe that the
infrastructure-mode is already supported but ... it's not ...

Original comment by harald....@gmail.com on 19 Aug 2009 at 3:37

GoogleCodeExporter commented 9 years ago
I don't see this as being a priority. If you want infustructure mode, then go 
buy an 
AP. Submiting to feature requests like this will open a whole new can of worms 
and 
the dev will end up being forced to make this app into an AP app, which in my 
opinion is pretty damn pointless and makes for a pretty expensive AP. Though I 
do 
agree, if you are going to use it to connect multiple clients, say in competing 
with 
verizons or bells mobile ap that they are now advertising, then I would like to 
see 
some more security features and access control features especially in the area 
of 
data consumption. Perhaps even the option to set a custom dns server.

Original comment by blackbox...@gmail.com on 21 Aug 2009 at 4:32

GoogleCodeExporter commented 9 years ago
Issue 144 has been merged into this issue.

Original comment by harald....@gmail.com on 9 Sep 2009 at 3:09

GoogleCodeExporter commented 9 years ago
redstone: It wouldn't be able to connect to a wifi-hotspot while simultaneously 
rebroadcasting the signal. You'd 
need two wifi devices for that.

If you want to share your connection with multiple computers then use the 
bluetooth connection to your PC and 
then share the bluethooth connection  over wifi. Volia, you should be able to 
have multiple computers 
connected...not that you have the bandwidth for it. 

Original comment by Giovanni...@gmail.com on 24 Nov 2009 at 6:30

GoogleCodeExporter commented 9 years ago
GiovanniZero: Yeah, that sounds right. Also, it looks like Cyanogen's mod 
supports 
tethering over USB, which make make things easier.  Haven't played with it yet.

Original comment by redst...@gmail.com on 25 Nov 2009 at 5:45

GoogleCodeExporter commented 9 years ago
FYI, there is no problem what so ever to share the ad-hoc WiFi tethering with 
miltiple 
computers. 
I just did and it worked flawlessly.

/Filippe
Using HTC Hero

Original comment by filippe....@gmail.com on 5 Dec 2009 at 2:23

GoogleCodeExporter commented 9 years ago
In my situation, I don't just necessarily want an expensive AP, but my work 
laptop's 
active policy prohibits adhoc connections.

Also, if it could operate in AP mode, then we could also utilize an existing 
DD-WRT 
router in Repeater Bridge mode to either hook up wired devices, or have greater 
coverage of the wireless connection throughout the house/room you're operating 
in.

DD-WRT won't allow repeater bridge mode in Adhoc.  Adhoc in and of itself 
doesn't 
support anything other than peer to peer connections.

Original comment by kmartbur...@gmail.com on 8 Jan 2010 at 4:28

GoogleCodeExporter commented 9 years ago
Any progress? This would be a killer feature! Please up the priority.

Original comment by bryan.y...@gmail.com on 16 Jan 2010 at 10:29

GoogleCodeExporter commented 9 years ago
I suspect that this is why I can't connect to my phone using my Zune HD.  
Perhaps
it's looking for infrastructure mode connections and therefore isn't displaying 
it to
me as an option.  I Wireless Tether simply doesn't show up when I try to see it 
on my
Zune.

Original comment by digna...@gmail.com on 20 Jan 2010 at 9:37

GoogleCodeExporter commented 9 years ago
AP (Infrastructure mode) would be much more useful than Ad-hoc mode. You could 
have a
wider range of device and operating system support for the clients. with Ad-hoc 
mode
it only allows WEP encryption which is extremely weak and not even worth using. 
But
with AP mode you could use WPA_Supplicant and get WPA2 AES encryption working.

i am not sure if the TI chipset supports it, but in some cases you can have the 
phone
act as a client to a another AP and then become an AP or repeater for that 
Master AP.
Although, it would half your data rates.

You could also run multiple devices simultaneously if your heart so desired.
Basically making your phone a "3G router" ;)

Original comment by williamr...@gmail.com on 28 Jan 2010 at 10:23

GoogleCodeExporter commented 9 years ago
Here's one more vote for AP mode. Don't get me wrong - the current feature set 
is
great and I'm very happy with the program in general, but AP mode would really 
be a
nice addition. 

Original comment by tate.tha...@gmail.com on 28 Jan 2010 at 11:48

GoogleCodeExporter commented 9 years ago
Yes we would love to be able to use Infrastructure mode. Unfortunately the 
drivers 
available to us do not support Master mode (and we arent kernel hackers).

Bottom line: There will be no AP/Infrastructure mode until a phone's drivers 
support 
it.

Original comment by bbux...@gmail.com on 29 Jan 2010 at 11:14

GoogleCodeExporter commented 9 years ago
I mainly wanted Infrastructure mode tethering so that I can connect all my 
little 
Media devices to the web thru my droid.   all my media devices aka Archos 605 
wifi 
etc,  only connect to infrastructure mode AP's/.     

When I am on the road travelling and need to do something online via my Archos  
then 
it would be very useful to use my Droid to become a wifi hotspot infrastructure 
mode 
device.

I do hope supporting drivers can be created.

Original comment by SuperDcook@gmail.com on 24 Feb 2010 at 5:16

GoogleCodeExporter commented 9 years ago
I support this as well... seeing as how this is the only internet I can get 
where I am 
at and I want to be able to use the internet options on my ps3 and wii...

Original comment by simpledo...@gmail.com on 27 Feb 2010 at 8:55

GoogleCodeExporter commented 9 years ago
http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sprab97&
fileType=pdf

I just noticed in the latest driver release it supports infrastructure mode 
now. Is
this correct? I realize we do not have the driver in our devices now, but that 
should
be possible...right?

Original comment by bryan.y...@gmail.com on 27 Feb 2010 at 9:35

GoogleCodeExporter commented 9 years ago
I've been tethering to my PS3 for a while now and there is a way to do it of 
course not directly because of the connection type. If you have a wireless 
enabled computer tether to your computer then run the cable from your 
laptop to your PS3 and you will need to go into network connections and 
right click on the network and choose properties which you just want to 
allow the sharing of your connection then hit okay and your done but this 
doesn't work with wired tethering.

Original comment by LandOfTr...@gmail.com on 27 Feb 2010 at 11:38

GoogleCodeExporter commented 9 years ago
I would love this same feature for the same reason as SuperDcook.  Many devices 
don't 
support Ad-Hoc mode.

Original comment by gbde...@gmail.com on 11 Mar 2010 at 5:43

GoogleCodeExporter commented 9 years ago
This would be handy, my work laptop has ad-hoc wifi policy restrictions.

For the above comment on using DD-wrt from kmartburrito  ---- DDWRT works fine 
in
adhoc mode.  There are no issues connecting my droid or windows mobile phone 
with a
flashed linksys WRT54G using ad-hoc tethering.

Original comment by mattvi...@gmail.com on 15 Mar 2010 at 9:26

GoogleCodeExporter commented 9 years ago
I too would like this feature.  I need to connect my AP router to the phone to 
make a
real hotspot in my home.  But it does not seem to work with it in ad-hoc.  Also 
helps
with compatibility issues with other devices.

Original comment by jwilliam...@gmail.com on 21 Mar 2010 at 2:04

GoogleCodeExporter commented 9 years ago
mattvirus, like kmartburrito, I have been unable to get a DD-WRT flashed router 
setup 
as a repeater connecting to an android device running wifi tether as the 
source.  How 
were you able to accomplish this?

Original comment by heems...@gmail.com on 22 Mar 2010 at 8:16

GoogleCodeExporter commented 9 years ago
I have a linksys wrt54g router with dd-wrt v24 firmware set to client mode, 
with an 
ip outside of the range that my droid gives out.  PC is pluged into the router, 
and 
set to receive an ip automatically (not static) from my droid.  I have to go to 
the 
routers gui, then press status, wireless, then hit the survey tab on the bottom 
of 
the page and then my droid shows up.  Then I click join and it connects as soon 
as a 
pc or whatever is plugged into my router asks for an ip and trys to connect to 
the 
web.  The only problem I am having is, I have to go back to the survey tab and 
find 
and join after a power cycle.  Does anyone know of a way to auto connect after 
power 
loss?

Original comment by troyndi...@gmail.com on 25 Mar 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Ugh, i would love Infrastructure mode! i have a Zune HD that doesnt support 
ad-hoc
atm. h8 hearing awesome new songs and have to wait to get to a public AP to 
download.
I'll give the best highest hi5 to the first person to do it >:D

Original comment by downtim...@gmail.com on 31 Mar 2010 at 10:00

GoogleCodeExporter commented 9 years ago
Would also appreciate an infrastructure mode. The Nintendo DS also will not 
connect
to an ad-hoc network, online gaming on the go would be nice.

Original comment by davidofa...@gmail.com on 31 Mar 2010 at 10:11

GoogleCodeExporter commented 9 years ago
i also really want this functionality. i rooted my droid and installed this 
mostly to
be able to connect my nintendo ds and psp on the go. it works fine for my 
netbook,
but that is 1/3 of the reason i wanted this in the first place. 

Original comment by sgoyk...@gmail.com on 3 Apr 2010 at 6:56

GoogleCodeExporter commented 9 years ago
Issue 297 has been merged into this issue.

Original comment by harald....@gmail.com on 3 Apr 2010 at 7:35

GoogleCodeExporter commented 9 years ago
I was provided with this link
http://blog.joint.net/2009/07/connecting-android-phone-through-adhoc.html

seems to be possible to modify two files and from there to connect to adhoc 
networks

Original comment by BUGabu...@gmail.com on 4 Apr 2010 at 7:29

GoogleCodeExporter commented 9 years ago
Infrastructure would have been great to connect psp and other devices to the
internet. I main reason i rooted was to wirelessly tether to my psp.

Original comment by Tmone...@gmail.com on 27 Apr 2010 at 10:26

GoogleCodeExporter commented 9 years ago
Similar to comment 17 and 28, I am in a situation where adhoc connections might 
not
be possible due to draconian corporate policies.  The option to run in 
infrastructure
mode would be most welcome!  For personal use, I find the bluetooth PAN option 
to be
the one I use more often.

Original comment by leeeps...@gmail.com on 30 Apr 2010 at 11:48

GoogleCodeExporter commented 9 years ago
So iwconfig can't be used to set it?  For reference:

hxxp://forum.droidmod.org/index.php?topic=358.0

Original comment by fosty...@gmail.com on 19 May 2010 at 1:47

GoogleCodeExporter commented 9 years ago
@fostytou: Simple answer: No. The wireless-driver needs to support master-mode. 
If 
it's not supported by the driver you can't set it with iwconfig. Let's wait for 
froyo 
...

Original comment by harald....@gmail.com on 19 May 2010 at 7:12

GoogleCodeExporter commented 9 years ago
Okay I have froyo on the n1 and i have cyanogenmod (eclair) 5.0.7. I am trying 
to 
tether from the g1 (host) to the n1 (client). However, I cant seem to get my n1 
to see 
the SSID.

Any suggestions quick fixes on this? Or am i looking at CM getting me froyo so 
i can 
get AP mode on the g1 as well.

Original comment by ass...@gmail.com on 24 May 2010 at 12:24

GoogleCodeExporter commented 9 years ago
You can bridge the LAN and wifi cards on a laptop, then run a cable from the 
laptop nic to 
the wan port on the router. It worked when my cable died. 

Original comment by Jeremiah...@gmail.com on 31 May 2010 at 7:49

GoogleCodeExporter commented 9 years ago
I gotta ask...  As the HTC Evo has built-in support for infrastructure mode, 
what's
involved in switching infrastructure capable phones to infrastructure mode?

/Trying to word my question in a non-Evo specific way.

Original comment by speedfor...@gmail.com on 6 Jun 2010 at 11:35

GoogleCodeExporter commented 9 years ago
@ speedforneed,Your point makes sense since I have on my Nexus Froyo and it 
comes with buit in wireless built-in support for infrastructure mode and the 
PSP connects to it without any issues. SO how come this application cannot 
support built-in support for infrastructure mode?

Original comment by cm0...@gmail.com on 7 Jun 2010 at 10:53

GoogleCodeExporter commented 9 years ago
Speedforneed & cm07mm are on to something! I too would LOVE to see a 
infrastructure option as the only reason I need this app is for my work laptop. 

Thanks for all you do for us Android users!!

Original comment by JamesEve...@gmail.com on 8 Jun 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Need infrastructure mode support for my work laptop--it doesn't support 
peer-to-peer.

Original comment by djgruh...@gmail.com on 9 Jun 2010 at 3:57

GoogleCodeExporter commented 9 years ago
I wonder why the companies issue laptops without the capabilities to connect 
via adhoc.

Original comment by cm0...@gmail.com on 9 Jun 2010 at 4:38

GoogleCodeExporter commented 9 years ago
Somebody reports to have this working on the XDA forums with the HTC Evo, and 
from the sound of things adding support for this feature to the official builds 
would be trivial.

http://forum.xda-developers.com/showthread.php?t=697441

In light of that, is there any chance this could be elevated to a higher 
priority?

Original comment by deck...@gmail.com on 11 Jun 2010 at 9:28

GoogleCodeExporter commented 9 years ago
This seems to have been fixed but it is not in the market.  

http://code.google.com/p/android-wifi-tether/downloads/detail?name=wireless_teth
er_2_0_5-pre2.apk&can=2&q=

I have not had the chance to test but others have verified that it works in the 
link provided by deckerj.

Original comment by Bguelich...@gmail.com on 16 Jun 2010 at 4:53

GoogleCodeExporter commented 9 years ago
I was intrested about this as well, and the last time I checked it was putting 
out ad-hoc signals.  But I installed cyanogenmods 5.0.8-n1-test5 and the latest 
wireless tether and hopped on my netbook and ran kismet, and for some reason it 
came up as an ap instead of ad-hoc!  and I confirmed this when I used network 
manager to connect and it shows up without the ad-hoc icon.

If anyone can confirm this with me, and prove im not crazy, it would be 
apreciative.

p.s. Im not on froyo, its based off of 2.1 and i know the wifi tether built 
into froyo shows up as an ap, so maybe cyanogen included this.

Original comment by taylor10...@gmail.com on 20 Jun 2010 at 10:28