follow these steps to connect the laptop with wi-fi
a) In Microsoft Windows XP click Start, then Control Panel, and then Network and Internet Connections. ...
b) Double-click the connection of the Network
c) Right-click the Wireless Network Connection icon and select Properties
d) Click the Wireless Networks tab to connect the wi-fi with the laptop... while connecting laptop and Wi-Fi must consider in mind about the gateway through which you are connecting your system with the network.
To fix the error of the laptop follows these steps: