WiFi MAC address collisions - HD2 Android Q&A, Help & Troubleshooting and Genera

I know that your first reaction will probably be hey this has been resolved quite a while ago. Not again??
Well, I have been using NAND builds for a while now, but never got the WiFi MAC address collisions problem resolved. The access points at work keep throwing me, and others, with the famous loop of "searching"----> "connecting"--->"disconnect".
Where I work, the company cellphone is (you guessed…) HTC HD2. And many of us switched to Android… Every now and then, I see that different phones are assigned with the very same WiFi MAC address. This drives the access points crazy and they disconnect phones with identical MACs immediately.
I tried most of the suggested ideas in different threads here, none really helped for my NAND builds. The standard Linux terminal emulator commands simply don't exist in Android.
I explored a bit Tytung's Kernel code and I think I found the reason. Since the Kernel has no access to the original MAC, it has to generate one. It does it by running a CRC32 function over the MSM ID (internal QCOM's modem chip ID), which is unique. But since the IDs of a phone series are sequential, the only actual difference you get is in the last part of the MAC address. E.g., 00:23:76:aa:bb:xx. So you see that all phones have the same prefix, and the only difference is in the xx part. This practically leaves a very small space of 256 numbers. But even worse - because of the CRC32 function, it narrows to an even smaller number of optional combinations… the bottom line is that the WiFi MAC address generated by the Kernel is not unique
Even with latest tytung's kernel r12.4, problem still persists. The only change Tytung did was to switch to HTC allocated prefix 00:23:76. Well, it did help, till all users started switching to new builds based on latest Tytung's Kernels. And collisions started again…
I'm aware that the community can't let everyone choose their own WiFi MAC address. It's un-safe. Nevertheless, till QCOM opens the original MAC address to the developers, there must be a way to add another level of randomization to the number the Kernel generates. Maybe allow the user, through some file, to add a number that will be used in turn for further randomization?
Right now many of us can't use at work the beautiful builds xda community offers just because of that

In some ROMs you can put your original mac address into the calibration file and it works. Of course if you have it written down somewhere
Sent from my HTC HD2 using XDA App

Thanks greg17477.
I looked for the calibration file in few NAND builds with no luck. Any specific ROM you can refer me to? Where should the calibration file be located anyway in case it's included?

In many sense roms you can put your wifi mac address.you can change Mac address if calibration file is in /system/etc.if it is in /proc/calibration you can't change it.another way if you want to use aosp or cm rom is to compile your kernel with your wifi Mac address
Sent from my HD2 using Tapatalk

bump!
Issue becoming a big nuisance as more and more HD2 users at work switch to Android that uses Taytung's kernel.

tried a different kernel instead?

Richy99 said:
tried a different kernel instead?
Click to expand...
Click to collapse
Interesting. Is the Android build kernel independent?
I'm using MIUI-1.12.23, which uses tytung_r12.4
Which Kernel would you recommend trying instead?

im using r14 of tytungs kernel but there are others available for use

arikm said:
Interesting. Is the Android build kernel independent?
I'm using MIUI-1.12.23, which uses tytung_r12.4
Which Kernel would you recommend trying instead?
Click to expand...
Click to collapse
All other kernels have the same issue except Rafpigna's one... but ALL other kernels are better. (no offence Rafpigna... xD )
...

Hello
Wifi & bluetooth Mac seem nailed (for HD2).
Please follow this topic and help confirm it.
http://forum.xda-developers.com/showthread.php?p=26579738
Franck

Have you tried any of these? They seem to work great on my Dorimanx ROM with his kernel, which is derived from tytung.

Related

[Q] a question about Kernels

hello i am actually new to android, and i just fell in love with it,i am using
- Energy.Leo.23678.Sense2.5.Cookie.Aug.18
- mattc Leo + Froyo w/Sense RC1.5b
- radio 2.12
i have a noob question and i tried searching for an answer but i couldn't find one, i'd appreciate it if someone could direct me to a thread that answers my question
i read somewhere on the internet that i can download something called Kernel or a zimage and copy it to the android folder on my sd card so that i get a better performance from android on my phone, my question is what is a Kernel and how can i get it, does it really make any difference?
another question, i have somewhat a low call volume sometimes,so should i change the radio or would downloading a new kernel help me get a better call volume?
sorry if the questions are dumb but i am new to all this
thank you
The kernel is the software that allows the linux system (android or ubuntu) to communicate with the different hardware pieces of your device. The main step of android on the HD2 is development of the kernel. As the devs work on the kernel they release new versions. You probably read that updating your kernel would help performance.
I personally do not update the kernel myself. As the various builds are updated, the chefs will incorporate the latest kernel updates. As long as you are updating builds from time to time, you don't need to worry about updating your own kernel.
polo735 said:
The kernel is the software that allows the linux system (android or ubuntu) to communicate with the different hardware pieces of your device. The main step of android on the HD2 is development of the kernel. As the devs work on the kernel they release new versions. You probably read that updating your kernel would help performance.
I personally do not update the kernel myself. As the various builds are updated, the chefs will incorporate the latest kernel updates. As long as you are updating builds from time to time, you don't need to worry about updating your own kernel.
Click to expand...
Click to collapse
thank you, ur reply was very informative , appreciate it.
Hi,
I'm running mattcfroyosense1.6b-ppp this uses kernel michyprima 2.6.32.9 #70
There is an update for this kernel michyprima 2.6.32.9 #70 (r8)
How can I add this kernel to my Andriod? It is easy to put the Zimage file in my Android folder, but how do I add the .ko files?
Under the Shubcraft 1.4d install I could just add those files to the Android\root\system\lib\modules folder but in the mattcfroyosense1.6b-ppp I don't have these folders?
Thnx
You can just copy the kernel and overwrite the existing one in the android folder. Then you put the appropriate drivers in the matching folder of the root file in the android folder. To be completely honest With you, from my experience, you are much better off waiting for the chef to upgrade the build and use the included zimage(like mentioned above). You will have much less problems that way.
As far as the volume is concerned, buy louder volume hack from the market-it is a must have app and gives you alot more control over different aspects of the volume for various parts of the system.
I
Tmo US HD2
EnergyRomz -Shubcraft Froyo
dbiggss said:
You can just copy the kernel and overwrite the existing one in the android folder. Then you put the appropriate drivers in the matching folder of the root file in the android folder. To be completely honest With you, from my experience, you are much better off waiting for the chef to upgrade the build and use the included zimage(like mentioned above). You will have much less problems that way.
As far as the volume is concerned, buy louder volume hack from the market-it is a must have app and gives you alot more control over different aspects of the volume for various parts of the system.
I
Tmo US HD2
EnergyRomz -Shubcraft Froyo
Click to expand...
Click to collapse
Thnx for your reply.
Can I add the drivers to the rootfs.img then?
There is usually a root folder in the android folder. If you explore this folder (i.e. Root/system/lib/modules...), you will be able to drop the modules that come with the new zimage over to of the ones that are there'. Then when you start android it will load the modules you placed in the root folder.
Tmo US HD2
EnergyRomz -Shubcraft Froyo

evo kernel with different wifi mac address

Hello.I have compile an evo based kernel with different wifi mac address,since many people have 2 hd2 and cannot connect in the same wifi network same time.
Unfortunatelly i didnt make any magic to correct this issue into git tree.Before compiling kernel i go to arch/arm/mach-msm find the file board-htcleo-wifi-nvs.c and in the line static unsigned char *hardcoded_nvs =
"macaddr=00:11:22:33:44:55\n"\
i change manually the mac address
But i see something strange.The original board-htcleo-wifi-nvs.c that you can find in http://www.gitorious.com/linux-on-wince-htc is like this
static unsigned char *nvs_mac_addr = "macaddr=00:11:22:33:44:55\n";
static unsigned char *hardcoded_nvs =
and wifi mac change doesnot work.
So i used the file from nexus based kernel which i include into the rar file
i have upload
Also found that in evo based kernel in drivers/net/wireless/bcm4329_204/proto in the file 802.11.h there is a line #define BRCM_PROP_OUI "\x00\x90\x4C" these digits are the first three of same wifi mac address we have in evo kernel.I put there other random numbers but wifi tried to connect,without success.
Hope that someone can combine the things and find a permanent solution without the need of building other kernel.
I have included 2 kernels with different wifi mac address and the latest fix for music stuttering.They are based into hastarins-linux tree without overclock or undervolt patch.
http://rapidshare.com/files/427143719/evo_kernel_mac_addr.rar
mirror
http://www.filefactory.com/file/b3he4cd/n/evo_kernel_mac_addr.rar
Also i see that maybe wifi N is not enabled in evo based kernel.I compared code here http://git.linuxtogo.org/?p=groups/...it;h=54e627b77ef4bf0e30c0b5a7ac390e8c8b207fec
and made the changes in evo kernel files.If someone can test this if works.
Thanks to all developers for your work.You give new life to our hd2
Hey do you know you can set wifi.mac by startup.txt
sample here:
Code:
set cmdline "rel_path=Android nand_boot=0 wifi.mac=04:1E:64:2F:E2:2f"
But currently it effect only R11 kernel.
Other kernel don't read this property
Yes but michyprima R11 kernel is a nexus one based kernel.
I have made a similar thing for evo kernel. Can you please test my patch:
h__p://forum.xda-developers.com/showthread.php?p=8827583#post8827583
Yes i`ll try this you are super
im sorry but im kind of a newbie... calio94 can you plz help me on how to change this settings????... im really confused with that description you gave.. plz help ... thank you in advanced ;]
hastarin has released 7.7 with mdebeljuh's patch to set mac address in startup.txt
Code:
set cmdline "wifi.mac_address=00:11:22:33:44:55"
jibbz said:
im sorry but im kind of a newbie... calio94 can you plz help me on how to change this settings????... im really confused with that description you gave.. plz help ... thank you in advanced ;]
Click to expand...
Click to collapse
There is nothing to change if you are not compiling a kernel
Yesterday i wrote this post and today another member found a better solution.
This why i like xda community
As shadiku said hastarin made a kernel with patch to set mac address in startup.txt which is more easier and comfortable the way i described

[BUILD] MIUI Stock 11/05 English Released [Free beer and women new chinese 11.05]

MIUI STOCK BUILD PORT 11.05 PPP
Free beer and women HD2 Porting Thread
This is the latest build of MIUI for the HTC Touch HD2. It's relatively stock with a few minor changes for our HTC LEO. MIUI build includes all changes made from previous builds and optimizations for all of the new changes including:
iphone style launcher
iphone style icons
iphone style settings [much better organized system settings]
iphone style contacts, and screen effects
innovative new lock screen with music player
loads more MIUI goodies that have impressed me as a user
The default kernel is based on the EVO Kernel yes I changed kernels. The changes made for the git update have done wonders on backlight stability and battery drivers. There are some issues with the kernel (see post 3).
If the current build proves to be very stable (which it has been for me so far) I will include hastarin's r8 and some language builds. The translations for other languages are not available yet.
Quandrant Score 1614
Release Notes
Stock build, blocking ads is not in this release, but the process for advertisement blocking is relatively easy.
Creates a 1 gig data.img; first boot will take some time.
Rooted: superuser priveleges (SU is included)
Facebook is NOT included as well as integrated task manager. You can download facebook from marketplace
Click to expand...
Click to collapse
What works
WiFi
GPS
3g/HSDPA
5 mp Camera
Camcorder
LED status notification
Keypad notification
bluetooth
USB mass storage
G Sensor WORKING
WIFI TETHERING (THANK YOU DARKSTONE & CASS)
Facebook sync
The build still needs some testing; specifically in the bluetooth. If someone can report with their findings that would be ideal. If there are any other things not working in this build, let me know ASAP
How to install
Install is relatively easy:
1. Extract the 11.06.miui.lang folder [including contents] to the root of your sd card. Since it has a unique name, you won't have to rename it as I doubt any other builds has a unique naming ID.
2. Ensure you have at least 2 gig of space on your sd card (the data.img created is 1 gig which is NOT included)
3. Once the copy is complete, go to the android folder, run CLRCAD.exe and then HaRet. You will be taken to the HTC screen for a bit (about 10 minutes) and the rom will load.
a. If you get some strange error on boot, make sure you are using a new data.img
b. If the build still doesn't boot, reformat your sd card
c. If the build won't boot after a & b, please let me know in the thread
4. Skip through all android settings on first boot (you can set these up later).
5. The default keyboard is google keyboard. You can change this by tapping and holding a text area (sms, internet, facebook) and changing input settings to any keyboard you have preference to. Future builds will have htc_ime but for now android keyboard is good. I also prefer smart keyboard.
If you have a previous build
Ideally you should be able to drag all the files from the 11.01 build (including startup.txt) and keep your first data.img. Please verify if you have any issues with updating this way. If updating you may have to edit the startup.txt file in the following field if you're using the 10.30.miui folder:
set cmdline "rel_path=10.30.miui nand_boot=0"
or alternatively you don't have to overwrite the startup.txt file
your boot should load
The HD2 rom I am running is Duttythroy (and I have always ran duttyrom and it always gave me an excellent android experience) with 2.15 radio. It has never gave me any issues at all plus it is a good windows mobile rom [/shameless dutty plug]
Special thanks
Cotulla - for making all this possible
dan1j3l - for rootfs and liblights
hastarin - for the kernel
huanyu - for the kernel
michyprima - for the kernel
Cass67 - seriously he helped way too much
darkstone - his reference nexus one files have really aided in the port of this build
ElbartoME - for the Bluetooth fix
gauner1986 - for the latest lights.htcleo.so (9/26)
Geo411m - for the FRF91/FRG83 Stock, rooted, busybox ROM and add-ons (9/24)
mattc - for tweaks in rootfs
memin1857 - for tips that fix the auto backlight issue
NetRipper - for the latest haret.exe (9/14)
shu8i - for the readme
Bluetooth headsets testers
Everyone on #htc-linux & #htc-linux-chat, devs at xda-forums
tytung for the layout of the readme
And to all of the testers, many thanks
Download in next post with images
And remember from now on this will be...
FREE BEER AND WOMEN MIUI RELEASE!!!!
donation for the time...cause I could be studying or getting a date
MIUI Downloads
Download
http://www.multiupload.com/QWYX6ZSV56
11/05 Brings a lot of changes to MIUI. You can check miui.com for the changes made. This build is a port of MIUI for the hd2. The major changes made in MIUI HD2 port are
backlight autoadjust issues are solved
Camera autofocus
GPS bug fixed
Faster boot/shutdown
It's a fairly stable release definitely download it
Note: mediafire did a bad thing to me yesterday mid upload I lost a huge miui build it made me so angry I switched to another host. Please tell me if there are issues so I can change the provider accordingly
Old releases
11.04 BETA Build 8.0 English Hastarin Kernel
Changelog
This is still a test. I need users to test bluetooth out and music. It should be working. I removed htc_ime and a few more programs to try and diagnose the exact issues. Tomorrow's updated miui will include the updated google programs as well htc_ime. Also expect the new miui for release. Please let me know any issues. Quadrant bug is removed as is sound on my end works very well. FM radio back working too.
http://www.multiupload.com/3KJYZFQEG0
11.03 BETA Build 8.0 English Hastarin Kernel
http://www.multiupload.com/QG0MT01CJV
11.02 BETA Build 8.0 English Hastarin Kernel
Changelog
Faster boot, added htc_ime, updated google programs & twitter. Camera issue still intermittent with a new quadrant bug. I was alerted of a nagging wifi bug that has been corrected in future releases
http://www.fileserve.com/file/Th5m3DU
11.01 Build 8.0 English Hastarin Kernel
http://www.fileserve.com/file/hAp6JRn
10.30 Build 8.0 Hastarin Build
For users that want the most recent build; no weather program, facebook added in this build, no task manager, but 5.0 mp camera in this build. The previous build will be updated with 5 mp camera
http://www.mediafire.com/?i79138k6u5kdqd3
10.29 Build 7.7 Hastarin Build
For users that want 7.7 Hastarin [e.g. has extendable battery and wants the option to over/underclock]
Weather program is included. You would have to unmount the system to remove the weather. Camera is 3.0 mp in this build
http://www.mediafire.com/?r6faf04p2aqs5cv
Click to expand...
Click to collapse
If you prefer a themed MIUI, please check out Jayyy's build or mccmjoon76's build for a themed experience
Images
[URL=http://fastpic.ru/view/11/2010/1101/124ca3d573bc9eff3640d35c5f37bc03.png.html]
Known Bugs/issues
Camera Bug
Issues in autoflash
Solution
Sadly none. It is based on the evo kernel used. It's a minor gripe actually I prefer the better battery and autobacklight.
Click to expand...
Click to collapse
Select Time Zone Bug
On first boot, you can't select time zone
Solution
This is a bug in miui itself. So everyone is waiting for an update to apply the fix. The n1 translators did what they could to correct it but this is an intermittent miui bug. Select network provided values and change the time manually in settings. This will change your windows mobile time
Click to expand...
Click to collapse
Wifi Tether/Usb Tether
Wifi tether will not activate going under system -> settings -> system -> network tethering
Solution
Use darkstone's wifi tethering as it works very well =)
SD mount issue
If you are having an issue with mounting/unmounting your microsd card, try this (again thank you mccmjoon76 for the solution)
1.you have to down load the terminal emulator from market place
2.open it and type "su" and press enter. allow super user access to it (mine kept freezing so i backed out and re started it. You will need to type "su" again and a window should pop up )
3. then if anything was done right you should see a "#" sign were your about to type the next line.
4.then type "mkdir /data/sd" make sure there is a space between the mkdir and the first /.
5.if everything worked right then nothing should happen except it moves to a fresh line in the emulator .
if you did everything right you should be able to go into settings and unmount your sdcard from there.
Click to expand...
Click to collapse
Possible Bug
For the moment, none
Additional Programs Necessary for Optimum Performance
What's difference or advantage over other miui builds available especially the one I am using now 3.0 beta with 3 launchers
Sent from my HTC HD2 using XDA App
It's a stock presentation of miui. Infinitybiff was the only build that really had a stock interface that was fast and relatively smooth, however due to circumstance and time constraints, he couldn't do it. After testing a quick 10.22 port I decided to release a 10.29 build. It is stock, pretty fast and extremely stable.
Also note the build you are referring to I also direct users to different builds that prefer a themed ui rather than a stock one.
multilanguage? (german included?)
soundclub said:
multilanguage? (german included?)
Click to expand...
Click to collapse
only english translated for the moment. Locale is included to change language of some options but the translation is english. I can furnish a language specific build if it makes things a bit easier on non-english speakers
excuse me but my device will not boot... i only se the green HTC Logo but nothing happents more....
please refer to the release notes =)
that's normal as it is creating a 1 gig data.img
be sure to read the first post and installation directions in full
SOO
Where do you find the miui builds the others your talking about. I am glad someone is finally starting to update it for our devices. Question is facebok sync working in this version?
sdcard in settings force close
Every time i go to Settings/Sdcard i get a force close. Anyone else have this problem? I need to Unmount my Sdcard to get Angry Birds to install correctly. I wonder if there is a fix for this force close? I have gotten it on all MIUI builds.
ahoslc said:
Where do you find the miui builds the others your talking about. I am glad someone is finally starting to update it for our devices. Question is facebok sync working in this version?
Click to expand...
Click to collapse
Jayyy's build hasn't been uploaded, I'm sure it will be
mccm's build is located
http://forum.xda-developers.com/showthread.php?t=802194
there
facebook sync is not working on any devices =(
Every time i go to Settings/Sdcard i get a force close. Anyone else have this problem? I need to Unmount my Sdcard to get Angry Birds to install correctly. I wonder if there is a fix for this force close? I have gotten it on all MIUI builds.
Click to expand...
Click to collapse
Strange I just unmounted my sd card and remounted it no problem...even installed angry birds. Are you using hastarin's 7.7 or r8?
edit
mccm seems to have the issue solved and I will edit the first post to include it
1.you have to down load the terminal emulator from market place
2.open it and type "su" and press enter. allow super user access to it (mine kept freezing so i backed out and re started it. You will need to type "su" again and a window should pop up )
3. then if anything was done right you should see a "#" sign were your about to type the next line.
4.then type "mkdir /data/sd" make sure there is a space between the mkdir and the first /.
5.if everything worked right then nothing should happen except it moves to a fresh line in the emulator .
if you did everything right you should be able to go into settings and unmount your sdcard from there.
Click to expand...
Click to collapse
I'll post this in the known bugs with solution. Thank you for beta testing
cool, thanks!!! I will give that a try.
domineus said:
It's a stock presentation of miui. Infinitybiff was the only build that really had a stock interface that was fast and relatively smooth, however due to circumstance and time constraints, he couldn't do it. After testing a quick 10.22 port I decided to release a 10.29 build. It is stock, pretty fast and extremely stable.
Also note the build you are referring to I also direct users to different builds that prefer a themed ui rather than a stock one.
Click to expand...
Click to collapse
ok dude thanks for feedback. i will try it as i love the miui look. the stock version works very well as you can do virtually anything with it. don't like the stock clock though as that white thing looks odd. i am not a fan of the lock screen logo that gift box with ribbon. lol
oh that's changed...a lot has changed in miui
I remove the white clock and use tajm and battstat...maybe something to add in the next revisions of this build it is relatively bare bones. But as bare bones, you will love the changes from like 9.30.10 to 10.30.10
I think when its translated, you will all like the weather program. It looks like the htc sense weather but I'm sure it will be optimized immensely
wifi tethering not working
first off this build is great but the wifi tethering is not working out the box like u said i even tryed the apks but that didnt work is there any fix
gottley said:
first off this build is great but the wifi tethering is not working out the box like u said i even tryed the apks but that didnt work is there any fix
Click to expand...
Click to collapse
can you let me know what apk you used to try for wifi tethering? I didn't include any htc wifi tethering but from 10.22 build it has been established to be working. Just let me know and I'll hunt it down
let me actually try and correct that and amend post 1 thank you for testing
domineus said:
oh that's changed...a lot has changed in miui
I remove the white clock and use tajm and battstat...maybe something to add in the next revisions of this build it is relatively bare bones. But as bare bones, you will love the changes from like 9.30.10 to 10.30.10
I think when its translated, you will all like the weather program. It looks like the htc sense weather but I'm sure it will be optimized immensely
Click to expand...
Click to collapse
just flashing build so will report back in a min on my initial experience. really like one i am using now but i am going with you on this one. i hope the support continues and ya dont just drop the thing
I'll try my best. Just in clinical psych school it is not fun!
I'll try to be as active as possible. I'm still a dev n00b and its just porting for the moment. I hope to get better though

Changing Wifi Mac Adress??

Hi,
can somebody tell me if its possible to change the Wifi Mac Adress on a HTC HD2 running Android??
Regards
Alex
Each ROM/build has it's own way of changing the MAC address.
some just require a small txt file placed in a specific location and others require more work. I'm not sure if all ROMs/builds support MAC address change
It's better to look up the answer in the main page of the ROM/build you're using, and ask about it if you don't find any answer.
The problem is that I'm not allowed to place my question in the ROM Threat because I don't have the necessary posts (10 I think) to place it there So I have to spam here to have them

[Q] Help porting some rom...

Hi everyone!
I wanted to ask someone who knows and is accustomed to porting roms might bring a rom type ICS or Jelly Bean for the U8800 (not pro).
But in a special way, I have had problems on all roms because of the wi-fi, the one where the wi-fi works is the Xperia Style and opened the zip and found that there was one thing that none of the other roms had - one folder to say wifi.
I wanted to ask someone who can make or bring a folder with the rom that has wifi and wpa this rom, because I think so now will give wifi ...
(I used Google Translator)
Miguel510 said:
Hi everyone!
I wanted to ask someone who knows and is accustomed to porting roms might bring a rom type ICS or Jelly Bean for the U8800 (not pro).
But in a special way, I have had problems on all roms because of the wi-fi, the one where the wi-fi works is the Xperia Style and opened the zip and found that there was one thing that none of the other roms had - one folder to say wifi.
I wanted to ask someone who can make or bring a folder with the rom that has wifi and wpa this rom, because I think so now will give wifi ...
(I used Google Translator)
Click to expand...
Click to collapse
Different ROMs have different way to load and run wifi. Doing what you say is possible through the source code, but it is a lengthy process; modifying all of the wifi configuration files.
rqmok said:
Different ROMs have different way to load and run wifi. Doing what you say is possible through the source code, but it is a lengthy process; modifying all of the wifi configuration files.
Click to expand...
Click to collapse
But if someone did it when ported the Xperia Style, why don't do the same for another rom like CyanogenMod or other?
Can you send me a link to find some roms of Honor?
I would like to try to port one rom from it

Categories

Resources