To have a working wifi even with the newest kernels, I had to follow another way, easier.
Just go to the madwifi website
Download the Snapshot! Not the normal version.
Then decompress, enter in the directory and:
sudo make install
And before rebooting, be sure you have
Also be sure not to have blacklisted