Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting a card with deviceiocontrol and OID.

Status
Not open for further replies.
Jul 8, 2002
35
0
0
TR
Hi there,
this is an 802.11 application
I am trying to write a site survey tool. I can query any prism card.And get the vaues ie. signal strength or NOISE. But i can not make the card to associate to a network or i can not change its channel although i can put it into ADhoc mode.
here is my statements;

nret = DeviceIoControl(hDevice, IOCTL_NDIS_QUERY_GLOBAL_STATS, OID_802_11_INFRASTRUCTURE_MODE, 4, 0&, 4, lpret, 0&)


nret = DeviceIoControl(hDevice, IOCTL_NDIS_QUERY_GLOBAL_STATS, OID_SET_CURRENT_CHANNEL, 4, 1&, 4, lpret, 0&)


they are correct OIDs(from Prism). Infrastructure works fine. but channel doesnt work.
Is there anybody can help??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top