I upgraded my kubuntu 10 to 12.04 LTS. After the upgrade, wifi did not work. I could connect to internet using wired network.
My problem was resolved after I installed the system updates.
However, I also found one more solution (did not try though) which can be found here.
Also, do not forget to remove the already stored wireless connection and add it again.