Thanks a lot for all the advises...
IT WORKS with BT5 R1 not BT5 R3
compat-wireless-2.6.39-1.tar.bz2 failed to install but it works because of the patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch and
patch -p1 < channel-negative-one-maxim.patch. Below are the details/error.
Maybe run just
dmesg
before you plug in your adapter, then run it after, and look at the new lines. It should tell you any errors it's having.
If it's an actual install, not a Live boot,
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && msfupdate && cd /pentest/exploits/set && svn update . && init 6
It's working now with BT5 R1 kernel v2.6.39.4. Would running
cd /pentest/exploits/set && svn update has its effect on network interface? I just want to know why?
As I know by running
apt-get update and
apt-get upgrade will upgrade all the programs in BT5 (as long as it's in the repository), right? so there's no need to manually update/upgrade other programs like metasploit? Thanks

I found something you might want to give a shot at.
http://www.backtrack...ead.php?t=47385
Well thanks for pointing me to this forum site.
IT WAS A SUCCESS 
Let me share my experience here... a bit different.
I install it in my current distro "BT5 R3 GNOME 64bit" which has kernel v3.2.6, so I use/download the more current compat-wireless drivers (v3.6.x). Despite the post in that forum that used BT5 R1 that has kernel v2.6.39.4.
Then download
wget http://patches.aircr...one-maxim.patch --------------------------------------------------------------------- success
wget http://patches.aircr...ag ack_v1.patch ---------------------------------------------------------------------- success
and run
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch -------------------------------------------- success
patch -p1 < channel-negative-one-maxim.patch ----------------------------------------------------------------
failed./scripts/driver-select atheros ---------------------------------------------------------------------------------------- success
make && make install --------------------------------------------------------------------------------------------------- success
modprobe ath9k_hw ---------------------------------------------------------------------------------------------------- no error
I did these few times, I did also
make unload in earlier tries... So compat-wireless driver v3.6.x installation is successful.
Then reboot PC, still don't have additional network interface i.e. wlan1 for the USB wireless adapter.
From this site
http://www.aircrack-...compat-wireless it says:
note: the next two steps are only required for compat-wireless versions before v3.3-rc1-2
$ wget http://patches.aircr...one-maxim.patch
$ patch -p1 < channel-negative-one-maxim.patch
maybe that's why
patch -p1 < channel-negative-one-maxim.patch failed.
So I just download the same distro (BT5 R1) that has been used in the forum that you point to me. Now I used
wget http://www.orbit-lab....6.39-1.tar.bz2 from that forum. Although
compat-wireless-2.6.39-1.tar.bz2 failed to install. This is the error:
root@bt:/usr/src/compat-wireless-2.6.39-1# make && make install
/usr/src/compat-wireless-2.6.39-1/config.mk:204: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/2.6.39.4/build M=/usr/src/compat-wireless-2.6.39-1 modules
make: *** /lib/modules/2.6.39.4/build: No such file or directory. Stop.
make: *** [modules] Error 2
Then I run
ifconfig -a, then now it has
wlan1

. It turns out that after patching it
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch and
patch -p1 < channel-negative-one-maxim.patch, USB wi-fi has been identified as
wlan1.
Then I just
apt-get update and
apt-get upgrade, it's good that
wlan1 is
still there, and
kernel is not included in the upgrade, it says:
The following packages have been kept back. I try to upgrade the kernel by following this link
http://www.backtrack...backtrack-5-r2/, but the kernel remains v2.6.39.4. I'm thinking because of the patch earlier,
I just want to try if after successfully upgrading the kernel to v3.2.6, would wlan1 will still be there?Is there another way to upgrade the kernel? Again thanks a lot...

Any further advice will be greatly appreciated.
Edited by locra43ses, 27 December 2012 - 04:47 AM.