I am working on the same device right now. Here is what I did:
1) Create a membership at www.hp.com, Ipaq developer program (200 dollars)
2) Download WIFI API f. Ipaq 6340
3) There is a test application on their website, this test app. is exactly
the solution you are looking for...