What to do when you install a new Wifi card?

If you are physically removing the old card and installing a different card in the machine, it shouldn't be necessary to do anything about the drivers. Drivers for most Intel cards and the required firmware are installed by default in recent Ubuntu versions.