Hej Spell,
Thank you once again , well this code did the same thing as my own code, but the problem still exist. That it cant assign the different addresses to different devices , at the same time. For e.g if one device will get a short address, when the second device would send MLME.Associate request , it would not be granted short id in MLME.Associate.Response , and it ll go into a continous loop of hitting for askin short address. Then after almost 10 to 15 tries , it could assign different short address to all devices.
Regards
AmZig