Thanks Tim for your reply.
but if the device is not in up state, why when I used ( iwlist scan ) I
was able to find many networks? I think that mean the device is
definetly up but it could not connect to the wireless network.
do u know the system file where the wireless encoding configuration is
stored? I think this will help solving my problem.