2011-06-14 14:19:13

by Fred Plissonneau

[permalink] [raw]
Subject: Makefile deleting previous install when two WiFi interfaces are from the same chip vendor

Hello,

I am facing an issue during installation of an external USB-WiFi stick
on my Linux box (Ubuntu 10.04).
Actually, I have already successfully compiled and installed ath9k
driver using compat-wireless-2.6.38.2-2.
The internal WiFi NIC is fully operational.
Now, I want to add temporarily an external USB-WiFi stick (D-Link DWA
160). I've found that this hardware
is using an ar9170 chipset and therefore I've recompiled
compat-wireless targeting now the carl9170 driver.
Once again, this working perfectly.
But when I switch-off and back on my PC, only the latest installed
WiFi interface is working.

Digging into the system, I've found that ath9k has disappeared from the
/lib/modules/2.6.32-27-generic/updates/drivers/net/wireless/ath directory.
It looks like the 'make install' command is doing some cleaning which
has, in my particular use case, an undesirable
side-effect.
Can someone point me to the line in the Makefile causing this problem
or is it the desired behaviour ?

Thanks for your help
Fred Plissonneau