Unable to connect to wireless network usin Netgear n1500 on beaglebone Rev c

After completing the steps of removing the hashes from reqd places i changed the security(wpa-psk) and the ssid and rebooted it but still the netgear usb dongle doesnt show up any wireless connection. It so happens that the usb hub to which the dongle is connected (usb hub connectd to mouse and keyboard also) switches off in between many a times.Is it a software or hardware related isssue?