My university's WiFi is particularly unfriendly to Linux, and the only way to make WiFi work is to repeatedly "forget" the network settings for the student network, re-enter all the data about the network, and hope it will connect. I am using Fedora 19 64-bit on my laptop, but this is not the only distro that has WiFi connectivity problems. Android devices are generally incapable of WiFi access, and when I ran Ubuntu, CentOS, and Mint, they all had similar problems.
My question is, how would I go about creating a script that would automate the "forget network, re-enter network info" hack that I've been using to get WiFi?
As a side note, I am open to more investigative, less hackish solutions that might require more looking at system logs. I am no stranger to bash but logs and more hands on diagnostics are a bit of a mystery to me.
Also, my WiFi works fine on my home network, and every other network I've used it with except my university WiFi.
Additional info edit: using wpa_supplicant
My university runs WPA2-enterprise with AES, and PEAP using MSCHAPv2