Set Up a Wireless Ad Hoc Network on WIndows Vista ,WIndows 7
Steps to follow :
1.Open the Windows Control Panel, and then click Network and Internet.
2.Click Network and Sharing Center icon.
3.Click Set up a New Connection or Network.
4.Scroll to the bottom of the menu options, select Set Up a Wireless Ad Hoc (Computer-to-Computer) Network, and click Next.
6.Enter a network name, choose a security type, enter a security key, and then click Next.
The default security type is WPA2-Personal. The security key is case-sensitive and 8-63 alphanumeric characters. You can optionally select the check boxes to hide characters for your security key and save this network for future use.
7.Next, your ad hoc network is created