參考:
一、拆機換WIFI網卡
中間的板蓋,三個螺絲起來,可以看到機身鍵盤附近有WIFI網卡
與AX200都是窄型的網卡,底下觸電接口不一樣,不過仍適配(AX200說明書描述支持Thinkpad)
天線注意: 黑色天線接1扣子,灰色天線接2扣子
二、更新應用
sudo apt-get update -y sudo apt-get upgrade -y
三、更新內核到5.1
需要升級到最新的Linux內核>5.1,並使用最新的無線適配器固件。我已經將Linux內核升級到5.1版本
下載和安裝內核的官方網站(Ubuntu 16.04 64位系統):
cd /tmp/ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-image-unsigned-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-modules-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb sudo dpkg -i *.deb
最好使用sudo dpkg -i xxx.deb一個個安裝,看每一個deb包是否需要依賴。
安裝linux-headers-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb時出現依賴libssl1.1 is not installed問題,解決方案參考如下:
https://www.cnblogs.com/gambler/p/9574596.html
下載libssl1.1_1.1.0g-2ubuntu4.1_amd64.deb進行dpkg安裝
其他32位系統可參考:
cd /tmp/ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100-generic_5.1.0-050100.201905052130_i386.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-image-5.1.0-050100-generic_5.1.0-050100.201905052130_i386.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-modules-5.1.0-050100-generic_5.1.0-050100.201905052130_i386.deb sudo dpkg -i *.deb
安裝完成,重啟設備生效
sudo reboot 啟動完成 uname -a
四、升級WI-FI驅動
升級iwlwifi驅動程序,如下命令:(注意打開CPTCFG_CFG80211_WEXT支持iwconfig)
git clone --single-branch --branch release/core45 https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git cd backport-iwlwifi/ make defconfig-iwlwifi-public sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config sed -i 's/# CPTCFG_CFG80211_WEXT is not set/CPTCFG_CFG80211_WEXT=y/' .config make -j4 sudo make install
中間有ssl報錯可以不用理會
五、安裝AX200 官方固件
從下面的鏈接下載最新的固件。
https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.html
tar xzvf iwlwifi-cc-46.3cfab8da.0.tgz cd iwlwifi-cc-46.3cfab8da.0/ cp iwlwifi-cc-a0-46.ucode /lib/firmware/
七、WIFI6抓包
iwconfig配置:
sudo killall -9 wpa_supplicant sudo ifconfig wlp4s0 down sudo iwconfig wlp4s0 mode monitor sudo ifconfig wlp4s0 up
aircrack-ng配置:
sudo airmon-ng start wlp4s0 sudo airodump-ng mon0 sudo airmon-ng stop wlp4s0
iw phy無線支持(iw顯示AX200 phy支持HT20和HT40):
Wiphy phy0 Band 1: Capabilities: 0x19ef RX LDPC HT20/HT40 Band 2: Capabilities: 0x19ef RX LDPC HT20/HT40
ojbk@ojbk-ThinkPad-E550c:~$ sudo iw dev wlp4s0 set freq 5200 HT80 Usage: iw [options] dev <devname> set freq <freq> [HT20|HT40+|HT40-] dev <devname> set freq <control freq> [20|40|80|80+80|160] [<center freq 1>] [<center freq 2>] Options: --debug enable netlink debugging
ojbk@ojbk-ThinkPad-E550c:~$ sudo iw dev wlp4s0 set freq 5200 80 command failed: Invalid argument (-22) ojbk@ojbk-ThinkPad-E550c:~$ sudo iw dev wlp4s0 set freq 5200 160 command failed: Invalid argument (-22)
八、wireshark版本
下載最新發布版本3.0.6和開發版本3.11,源碼中還沒有802.11AX的PHY_TYPE宏定義PHDR_802_11_PHY_11AX
雖然wireshark PHY type未支持11ax顯示,但802.11ax特性抓包還是支持的,詳情看下面的連接的描述:
https://rowelldionicio.com/identifying-802-11ax-support-wireshark/
在最新源碼已經合並支持,靜等windows安裝包出來。(開發版本3.2.0rc1已支持)