I had a weird case that my laptop wifi does not connect to the internet. It was a librebooted machine with an Atheros wifi chipset. It runs internally as "ath9k" (as lcpci -v indicates). I have looked through many solutions but they did not solve it completely.