distinguish WIFI adapters from wm6 compliant cellular connections - Windows Mobile Software Development

Hi,
I'd like to know if there is a way to distinguish WiFi network adapters from wm6 compliant cellular connections which are both seen as ethernet adapters when using GetAdaptersInfo() (according to this post, in the PS section : http://blogs.msdn.com/raffael/archi...indows-mobile-supported-or-not-supported.aspx)
I'm also wondering what is the most safe and compatible way to turn on a wifi adapter programmatically?
http://blogs.msdn.com/raffael/archi...indows-mobile-supported-or-not-supported.aspx
if the 1st method from this post the prefered way to do this?
what about the 8kb memory leak when using GetWirelessDevices() ? (http://www.teksoftco.com/articles/article 007/radiodevices.htm)
is it a leak at the operating system level or at the process level?
The 2nd method seems to be hazardous since Cellular connections may be listed as RNIS power management compatible devices, thus the WIFI device will not be the only one in this registry key.
Thank you,
Julien

Related

Anyone using WPA-PSK ??????????????

Home LAN ok with WEP but can't connect to works WPA-PSK secured network.
I have a fairly new ROM
Operator version 5.40.1.179
Rom version 1.40.00 WWE
Rom date 03/10/05
Radio version 1.06.02
Protocol version 1337.38
ExtROM version 1.40.179 WWE
Don't really want to do another ROM upgrade unless it is ABSOLUTELY essential. Anyone have a similar ROM with a working WPA-PSK network?
When we set WPA-PSK on the Blue Angel it insists on 802.1X authentication with either smart card or certificate. Our network doesn't use either but the tick box to turn off IEEE 802.1X access is greyed out on the BA. It isn't greyed out when we use WEP.
Is there a registry setting I could amend to turn off IEEE 802.1X when WPA-PSK is activated.
Do radio upgrades also require full hard resets?
Do hope someone can help.
On the Network Key screen what are you setting in the Authentication drop down? You should be choosing WPA-PSK and Data Encryption TKIP. Uncheck if checked The Key is provided for me automatically, and enter the key in network key box. Key index should be 1 by default. You should IGNORE the 802.1x tab.
I will let others answer regarding the Radio ROM upgrade as I am not sure what exists for the BA. But I doubt that this would solve the question anyway.
Hope this helps!
Jbn,
We are doing exactly as you say (TKIP, uncheck auto key, enter key & key index 1). We haven't been trying to set the details on the 802.1x tab but when we failed to connect we took a look at it.
We have MAC filtering set up and have included the BA MAC address (as provided by vxIP). Checked and double checked the key.
Just been informed that setting EAP type to PEAP in 802.1x tab rather than smart card or certificate might help.
Fingers crossed this will fix it.
Got it working
I had it working with my K-Jam original ROM, although I would much prefer support for 802.11i/AES...
Does anyone know if AKU2 introduces support for WPA2/AES/EAP-TLS or EAP-TTLS?
Now, there's a trick I think I read here before:
type your PSK with your on-screen keyboard, not the hardware keuboard.
Give it a try and let us know.
Cheers,
Hal
Oooops! Sorry guys, BA forum... My post is partly irrelevant.
Still, try the on-screen keyboard...
Re: Got it working
hal said:
I had it working with my K-Jam original ROM, although I would much prefer support for 802.11i/AES...
Does anyone know if AKU2 introduces support for WPA2/AES/EAP-TLS or EAP-TTLS?
Now, there's a trick I think I read here before:
type your PSK with your on-screen keyboard, not the hardware keuboard.
Give it a try and let us know.
Cheers,
Hal
Oooops! Sorry guys, BA forum... My post is partly irrelevant.
Still, try the on-screen keyboard...
Click to expand...
Click to collapse
All suggestions greatly appreciated, I think I have been trying the on screen keyboard but I will recheck.
Blue Angel will not connect to 802.11G network
I thought I would try out a few of the suggestions on my home LAN even though it was working fine under WEP. Then I would be set up for the office LAN on Monday (or so I thought).
It turns out my wireless access point does not have WPA-PSK facility (I may look for a firmware upgrade tomorrow).
However when I changed the network from mixed mode to just 802.11G I was unable to connect to it. Resetting back to mixed mode & it connects ok. It would appear that my problem is not WPA-PSK but more specifically 802.11G networks. Does WPA-PSK only operate on 802.11G networks or can it run on 802.11b?
I have seen the 5 page thread on the Wizard index relating to a cab installation / registry fix to enable 802.11g access. Unfortunately the cab didn't install on the Blue Angel.
Can anyone suggest a fix and do you have 802.11g access with your Blue Angels?
BA does not have 802.11g. The Wizard supports it with appropriate ROM or Registry updates.
WPA-PSK is independent of B/G. So, yes, if your workplace is G only then this could explain the problem that you are having.
jbn said:
BA does not have 802.11g. The Wizard supports it with appropriate ROM or Registry updates.
WPA-PSK is independent of B/G. So, yes, if your workplace is G only then this could explain the problem that you are having.
Click to expand...
Click to collapse
Thanks jbn, it's starting to make sense now.
I have just made the registry entries required by the Wizard to my BA. I'll reboot and set network to g and see how it goes..............
EDIT
DID NOT WORK. Perhaps the BA hardware simply can't do 802.11g. Can anyone confirm the WiFi of the BA is different to the Wizard AND not capable of 802.11g?
IIRC, the BA uses TI's TNETW1110 chip, which does *NOT* support 802.11g at all. The code for supporting the newer TNETW1130 (which is what I think they use in the Wizard) is actually present ... which is why WiFi will become disabled if you turn on the 802.11g registry hacks in your BA ...
Stabilo said:
DID NOT WORK. Perhaps the BA hardware simply can't do 802.11g. Can anyone confirm the WiFi of the BA is different to the Wizard AND not capable of 802.11g?
Click to expand...
Click to collapse
BA cannot do 802.11g because of the hardware. Never, ever.
If you have a g access point, it must be set to mixed mode for the BA (or any b-only device) to connect. Note that while the b device is active on the network, any other g clients will see slower connect speeds because of the compatibility mode. This is why some homogeneous environments would set to disallow b connections.
As far as WPA-PSK goes, I am using it with my BA. Any connect problems I've had were always due to something set wrong on the AP. The BA is WPA, not WPA2 (a/k/a 802.11i). Also, it does not support the AES mode of encryption. So make sure your AP is set to WPA-PSK (1 is usually implied when 2 is not supported) and TKIP, not AES or TKIP+AES.
One other suggestion. If you happen to be using a certain type of Linksys AP, there was a bug in one version of the firmware whereby if you had ever entered WEP keys and then tried to switch to WPA, it wouldn't work without first clearing the WEP keys with a hard reset. I had this issue and it drove me crazy until I read about the solution.
Hope this helps,
Paul
ratazzi,
Thanks for your comments.
Don't think they will like it at work if I tell them I need to slow the network down for 50 users just so I can connect my BA
Could I connect a 802.11b wireless access point to my desktop / laptop at work (connected to the internet) and connect my BA to the access point without slowing down the rest of the network?
It is good to know that the BA can do WPA-PSK even if only at 802.11b. I realise 802.11b is fast enough for the BA but if corporate networks are running at 802.11g then the BA will fail to connect at any speed.
Any other solutions to connect a BA to 802.11g?
ActivSync is ok but I would prefer wireless.
Is there a SD LAN card that would do 802.11g (plus WPA-PSK)?
Enabling mixed mode on a decent Wireless Access Point will not force all clients to run at 11Mbps. Those that can will do 54, those that can't won't.
jbn said:
Enabling mixed mode on a decent Wireless Access Point will not force all clients to run at 11Mbps. Those that can will do 54, those that can't won't.
Click to expand...
Click to collapse
That sounds good to me jbn, thanks again.
Stabilo said:
ratazzi,
Could I connect a 802.11b wireless access point to my desktop / laptop at work (connected to the internet) and connect my BA to the access point without slowing down the rest of the network?
Click to expand...
Click to collapse
You can do that.
However your IT staff would probably go beserk.
I check regularly to ensure that none of my users has done the very thing ... One user demended that he be allowed to and got very annoyed when I refused. He didn't see anything wrong with introducing a consumer grade (read low security) AP into an environment where we had paid top dollar for AP's with heavy security and spent many many hours locking everything down as much as humanly possible.
Remember WPA-PSK is not intended for enterprise level security ... it's better than WEP but given a poor passphrase it's vulnerable.
Is there a SD LAN card that would do 802.11g (plus WPA-PSK)?
Click to expand...
Click to collapse
A quick search of google says yes. Don't know if they are any good ... perhaps you could let US know?
Some good points there Doormat.
If I use a complex passphrase (WPA-PSK) and MAC filtering I am assuming it will be relatively safe i.e. as safe as the main network since that is what the network guys have set up.
Having recently purchased an E100, 2 off E200's a C500 and a M2000, together with about 3GB of SD cards my budget is rather stretched.
As soon as I can I will pick up a SD LAN card and post my results.
Thanks for all the help from XDA-developers.
Doormat,
My attempts with google suggest 802.11g only exists for CF cards not SD cards. Or that was the comment made 8th Jan by ms mobiles http://msmobiles.com/news.php/4767.html
Do you have a link for a SD card?
802.11b devoces will impact 802.11g device!
JBN,
I have to partly disagree with you:
using mixed mode will negatively impact the throughput of you .11g network.
This is due to the protection bit that is being set then for the .11g devices/APs.
The global effect is that while the datarate of the 11g clients will be of 54Mbps (potentially), the real throughput on an enterprise grade AP will be at best around 17/18Mbps instead of 25-27Mbps.
That's a very good reason for corp netadmins to try and ban .11b devices on an 11g network...
Doormat, I agree with you. In my terminology an AP brought by an end-user in a corp network qualifies as a rogue AP and will be immediately blocked.
WPA2/802.11i/RSN with eap-tls/ttls or PEAP is the first basic rule of thumb... Even @home that's what I run. Call me paranoid ;-)
Cheers,
Hal
hal, you are technically correct of course, but the net result in most configurations is not noticeable as far as performance goes. There is a huge difference with WAPs that were forced to B for all clients when only one such client had connected amongst a set of Gs. In my (limited I accept) experience there is no practical difference for most of the time. In high bandwidth environments it is an academic discussion because in those circumstances systems should be connected using 100BaseT or GigE in a switched network rather than a collision-prone network.
Let's not lose sight of the original question though with this level of technical conversation!
Stabilo said:
Doormat,
My attempts with google suggest 802.11g only exists for CF cards not SD cards. Or that was the comment made 8th Jan by ms mobiles http://msmobiles.com/news.php/4767.html
Do you have a link for a SD card?
Click to expand...
Click to collapse
Here's what I found:
http://www.digitimes.com/bits_chips/a20060209A9053.html
I must admit ... I hadn't noticed the march release date before.
Damn - hate it when I accidentally double post!

convert my P3300 into an usb wifi adapter?

heya,
i use use cardexportII to convert my P3300 into an USB flash disk. and on their web they got win98 drivers in case you want to connect it on an older system.
ok, so i wanted to know:
is there any way, a software or whatever, to connect my P3300 to an existing wifi, plug it with USB to a computer and the computer use it as wifi-adapter/access point to use that network?
i've read about people trying something like that but using bluetooth rather than USB to connect the mobile to the PC, i can use that too if you know how, but in the end what i really need is:
PC->USB->P3300->WIFI NETWORK
because i allways carry a little usb cable with me, and i don't want to carry an BT dongle around if i can avoid it.
and as we are at it, but not really important for me... would it be possible to convert my P3300 to a bluetooth dongle?
PC->USB->P3300->BT NETWORK/DEVICES
oh BTW, my P3300 has WM6 (official HTC release)
thx in advance for any help.
OH LOL, forgot to mention: all this WITHOUT ACTIVESYNC please.
not possible then?
For security reasons the device does not allow simultaneous USB and WiFi connections.
MaskedMarauder said:
For security reasons the device does not allow simultaneous USB and WiFi connections.
Click to expand...
Click to collapse
if i am not wrong, i have read somewhere it was possible to share a WIFI connection through BT or viceversa... so why would USB not be possible, when it's even more secure than BT?
i am getting a little sick of microsoft and their "security" crap... first they disable activesync over wifi and now this? did they never hear of VPN or the like?
/sigh
zandadoum said:
if i am not wrong, i have read somewhere it was possible to share a WIFI connection through BT or viceversa... so why would USB not be possible, when it's even more secure than BT?
Click to expand...
Click to collapse
You can share the phone's GPRS connection, not WiFi. This is so you can use the device as a modem for your laptop etc.
You can not use bluetooth or WiFi when you have a USB connection because you could use it to hook up to two different networks at once, one with the USB cable and one with the WiFi. And then move data across the two networks. Which is a network security risk.
That risk would deter customers from buying the device as it could be used as a back door into the network. An employee plugs into the corporate network with the device (which is 'trusted' and has no password required) then an accomplice connects WiFi to the device and has free entry.
A USB wireless dongle can be bought for £10. Perhaps using that to set up an ad-hock network could be a solution for you?
MaskedMarauder said:
You can share the phone's GPRS connection, not WiFi. This is so you can use the device as a modem for your laptop etc.
You can not use bluetooth or WiFi when you have a USB connection because you could use it to hook up to two different networks at once, one with the USB cable and one with the WiFi. And then move data across the two networks. Which is a network security risk.
That risk would deter customers from buying the device as it could be used as a back door into the network. An employee plugs into the corporate network with the device (which is 'trusted' and has no password required) then an accomplice connects WiFi to the device and has free entry.
A USB wireless dongle can be bought for £10. Perhaps using that to set up an ad-hock network could be a solution for you?
Click to expand...
Click to collapse
where did you get all this info, that it is not possible due security reasons? as you mention, i could use a wifi dongle. and if i wanted to "hack" a network, i could use a laptop connected to a wired lan, and use it's wifi or a wifi dongle to do EXACTLY the same, so the security excuse (wherever you read it) is total bull****.
i want this, because i could just carry a wifi dongle in my bag, but if i could do it with the p3300 usb cable i always carry around, i would have one item less to worry around.
i really don't get all this security nonsense... in first place it needs a wep or wpa key to even connect to a wifi and in second place it's nothing i could not do with a laptop already, i don't understand the fuzz.
i asked the same thing on a microsoft mobile developer blog and the guy just started evading my questions and not responding at all.

USB to PC internet sharing via Wi-Fi

You can share a 3G network to a laptop via an HTC Touch Pro2 but, near as I can tell, you can't share a Wi-Fi connection? ie. if my laptop doesn't, itself, have a Wi-Fi connection, can I use my cellphone's Wi-Fi connectivity to connect to a Wi-Fi network?
http://forum.xda-developers.com/showthread.php?t=630337
Posts 4 and 7
Searching is the key
orb3000 said:
http://forum.xda-developers.com/showthread.php?t=630337
Posts 4 and 7
Searching is the key
Click to expand...
Click to collapse
I think that he's wanting to use the phone as a wifi adapter (i.e. wireless NIC) for his laptop, rather than using the phone as a wifi router. In other words...his laptop does't have built-in wifi at all, so he wants to use his phone to accomplish that rather than an external USB stick, card, etc. I've been curious for a while if that's even possible, but haven't come across any methods yet...
sirphunkee said:
I think that he's wanting to use the phone as a wifi adapter (i.e. wireless NIC) for his laptop, rather than using the phone as a wifi router. In other words...his laptop does't have built-in wifi at all, so he wants to use his phone to accomplish that rather than an external USB stick, card, etc. I've been curious for a while if that's even possible, but haven't come across any methods yet...
Click to expand...
Click to collapse
That's exactly it. Most places I go to have ethernet cables I can plug into but, from time to time, I find myself at a place that just has 802.11b/g access points. Rather than carry a PCMCIA wireless adapter around with me so that I might use it once every blue moon, I'd just assume use something I already have on me - my cellphone - as a wireless adapter.
Alternatively, if I, at a future date, got a laptop with a built in wireless adapter, it'd still be nice to be able to have two wireless adapters. ie. maybe the 802.11g network I'm connecting to uses WPA and I'm trying to connect with a Nintendo DS that only supports WEP networks. I could, in theory, use my cell phone as an adapter to the WPA network and turn my laptop into a WEP access point.
I'd say there are several use cases for being able to use a cellphone as an adapter to an 802.11g network, although I will grant that they're probably fairly niche use cases.
I am also interested in this as it would allow me to use my laptop for free internet at places like starbucks where my Tilt 2 gets to connect for free.
Internet>>> ATT Wifi >>> Tilt 2 >>>> Laptop
I too would love this functionality. If anyone knows of an app/registry hack/whatever that enables this, please post the details here.
shdwphnx said:
I too would love this functionality. If anyone knows of an app/registry hack/whatever that enables this, please post the details here.
Click to expand...
Click to collapse
WMWifiRouter (not free) has this functionality. Along with the standard features like cellular to WiFi and cellular to USB, WMWifiRouter also does more exotic connections like WiFi to USB. It's €15, but it's an application with a lot of functionality and the developer who created it is a very highly respected XDA member, who provides many of his other products for free.
DaveTheTytnIIGuy said:
WMWifiRouter (not free) has this functionality. Along with the standard features like cellular to WiFi and cellular to USB, WMWifiRouter also does more exotic connections like WiFi to USB. It's €15, but it's an application with a lot of functionality and the developer who created it is a very highly respected XDA member, who provides many of his other products for free.
Click to expand...
Click to collapse
Awesome, thanks Dave. I'd been thinking about buying it anyway in place of the (very basic) free wifi router app I found on here too, and now it sounds like a no-brainer
Just did it
I just did this very setup earlier with my HTC Tilt 2. I had the phone connected to my Wi-Fi network, and turned off my Wi-Fi on my laptop. Connected the phone to the laptop using the USB cable, and selected "Use as modem" and it was an automatic process...i'm running Windows 7 on my laptop..if that helps..it just worked.

WinMo device as USB modem?

Would it be possible for a Windows Mobile device to emulate an USB 3G modem?
I know it's possible to use them for tethering, but IMO it'd be cool if they were compatible with 3G Routers like this TP-LINK one, allowing anyone to basically use their windows mobile phone as an USB 3G modem.
I'm guessing these devices don't support mobile phones because the phone doesn't advertise itself as an USB modem, but requires PC-side drivers (modem driver) to work. This could be because the phone itself determines what number to call and how to establish a connection, rather than the device operating it as USB host.
So, would it be possible to 'fake' being one of the supported USB 3G modems, and covertly connecting to 3G on the phone's own terms ?
On my phone, just use start/settings/connections/USB to PC (or connect to PC). And choose 'Internet Sharing - Use phone as modem). Or Wi-Fi router if you want to use your mobi as a router!
Yeah like I said I know how to tether using the conventional methods...
However, these use RNDIS I think, which is not particularly 'detected' as a real USB modem. So, 3G routers won't register the device as a modem, even though the device is more than capable to act as one.
Hence my question, whether it's possible to emulate a true USB modem.

[Q] GT-N5110 drops WiFI connection after 4.4.2 upgrade

My Samsung GT-N5110 was rooted and running just fine on 4.1.2. I accepted the 4.4.2 update from Samsung which resulted in the tablet becoming unrooted. i was able to re-root using the ODIN 3.09 and CF-Autoroot. I am not experiencing seriously bad WiFi connectivity. The device will connect and stay connected for 10-15 minutes. Then it will drop the connection and re-establish. I have checked all the obvious places... Oddly, the WiFI > Advanced Settings does not even show "Wifi Optimization" which many threads suggest I disable. I do not even see that option. Any suggestions are appreciated.
Hi,
I can't find anything relevant on XDA for your devices issue. So I will have your thread moved to your device section.
Good luck!
stevario said:
My Samsung GT-N5110 was rooted and running just fine on 4.1.2. I accepted the 4.4.2 update from Samsung which resulted in the tablet becoming unrooted. i was able to re-root using the ODIN 3.09 and CF-Autoroot. I am not experiencing seriously bad WiFi connectivity. The device will connect and stay connected for 10-15 minutes. Then it will drop the connection and re-establish. I have checked all the obvious places... Oddly, the WiFI > Advanced Settings does not even show "Wifi Optimization" which many threads suggest I disable. I do not even see that option. Any suggestions are appreciated.
Click to expand...
Click to collapse
OK, delete the Davlik Cache and remove your internet connection and reboot.
After rebooting attach to your wireless to connect cleanly.
I setup my wireless router for new devices, as my router is 6 years old and does not work well with power saving features in sending packets. Set DTIM to 5 and Beacon Interval to 90.
You can also adjust Fragmentation Threshold to 2306 and RTS to 2307
The last two are tweaks for faster downloading.
gooberdude said:
OK, delete the Davlik Cache and remove your internet connection and reboot.
After rebooting attach to your wireless to connect cleanly.
I setup my wireless router for new devices, as my router is 6 years old and does not work well with power saving features in sending packets. Set DTIM to 5 and Beacon Interval to 90.
You can also adjust Fragmentation Threshold to 2306 and RTS to 2307
The last two are tweaks for faster downloading.
Click to expand...
Click to collapse
Thanks for the tips. My router is a high end D-Link Dual Band router. But here is the real kicker... the device was working flawlessly before the Samsung update to 4.4.2. I ended up installing the custom ROM by CivZ for Android 4.1.2 and the machine is back to working as it should without any drops. I would like to think Google does not break Android with updates... but we all know updates to any software poses the risk of introducing issues. Anyway, thanks so much for responding. I truly appreciate this community.
For yours and everyone else's information, Samsung note 8.0 uses Broadcom wireless interfaces. They are notorious to have connect issues by their archecture. I have had issues with N channel Broadcom devices with my router as other are few routers that connect well with them without any configuration.
Note... My laptop has a old broadcom adapter that will connect three different ways depending on the drivers I use. Windows drivers will allow a connection that will slowly go from 132mbps down to 48mbps and fail to wake. A custom inf with Acer drivers will connect at 82mbps and stay. While the general broadcom driver will connect at 56kbps.
The tablet never connected higher than 72mbps with my settings, but that was to connect my HP printer which is even worse to connect to older routers. I'll never buy HP again. They have cheapend their jet direct home enabled printers to be so unfriendly with existing components. Plus they have a security flaw that will disable the printer when port sniffed on closed ports, let alone open ports that HP will not disclose upon.
I would think a different driver was used in the new kernel, thus your issues with connectivity.
If I were to pick again for a tablet, I'd look for one with Qualcomm, as they are more likely to not have connect issues. D-link is not that compatible, as there have been many instances with peeps not obtaining 300mbps with N channel broadcom interfaces.
You may check with the forums on compatibility issues.
gooberdude said:
For yours and everyone else's information, Samsung note 8.0 uses Broadcom wireless interfaces. They are notorious to have connect issues by their archecture. I have had issues with N channel Broadcom devices with my router as other are few routers that connect well with them without any configuration.
Note... My laptop has a old broadcom adapter that will connect three different ways depending on the drivers I use. Windows drivers will allow a connection that will slowly go from 132mbps down to 48mbps and fail to wake. A custom inf with Acer drivers will connect at 82mbps and stay. While the general broadcom driver will connect at 56kbps.
The tablet never connected higher than 72mbps with my settings, but that was to connect my HP printer which is even worse to connect to older routers. I'll never buy HP again. They have cheapend their jet direct home enabled printers to be so unfriendly with existing components. Plus they have a security flaw that will disable the printer when port sniffed on closed ports, let alone open ports that HP will not disclose upon.
I would think a different driver was used in the new kernel, thus your issues with connectivity.
If I were to pick again for a tablet, I'd look for one with Qualcomm, as they are more likely to not have connect issues. D-link is not that compatible, as there have been many instances with peeps not obtaining 300mbps with N channel broadcom interfaces.
You may check with the forums on compatibility issues.
Click to expand...
Click to collapse
Thanks. That is extremely useful info. If this were a computer running Windows or Linux I could easily swap the wireless adapter with one made by a different vendor, load the drivers for the new adapter and be good to go. Maybe it is just as easy on a tablet... but I have never done that. Is it possible for the end user to manipulate the hardware inside a tablet? Could I swap the wireless adapters? Could I even find them for sale?

Categories

Resources