linux でwifiを有効にするが、ACを有効にできない件について
対象
- amazon で asin:B00EQM8IHA (インテル デュアルバンド 高速 Wi-Fi 通信Band Wireless-802.11 AC Intel 7260) を買った
- asin:B01C87CQEK (Shuttle SZ170R8)だと、Bluetoothも認識した(動作未確認)
- OS はlinux: debian 8.4
はじめに
以下のコマンドでロードできているのか確認する。
# ドライバを準備 sudo aptitude install wireless-tools # 再起動 sudo reboot # インターフェイスを確認する sudo iwconfig wlan0 #wlan0 IEEE 802.11abgn ESSID:off/any # Mode:Managed Frequency:5.58 GHz Access Point: Not-Associated # Tx-Power=22 dBm # Retry short limit:7 RTS thr:off Fragment thr:off # Encryption key:off # Power Management:on
問題点
IEEE 802.11acを認識しない。
機能としては存在するはずだが、使用できない。
調査中。
→10/09 実は11acとして動いている模様。
sudo iwconfig wlan0 #wlan0 IEEE 802.11abgn ESSID:"AcAccessPoint" # Mode:Managed Frequency:5.26 GHz Access Point: AB:CD:EF:12:34:56 # Bit Rate=520 Mb/s Tx-Power=22 dBm # Retry short limit:7 RTS thr:off Fragment thr:off
フォーラムにて、ドライバはintel標準で、対応していないはずがないとコメントがあった。(ただしKernel 3.13以上じゃないとだめらしい)
改善手順
11nで接続されることが多いため、11nを無効にするべきだという記載が散見される。
/etc/modprobe.d/iwlwifi.conf へ以下の項目を書き込む。
options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8
モバイル用途でない場合は電源管理機能を無効にすべきという記載も存在するため、
Wifiが有効になったら、電源管理機能を無効にするコマンドを投入する。
設定場所は /etc/network/interfaces か /etc/network/interfaces.d/wlan0。
※GUIなどを使用している場合はもっと別の場所に設定がある可能性がある。
auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf # 次の行を記載しておく post-up iwconfig wlan0 power off
実際に、これらの手順を実施したところ、安定した。
なお、debianのパッケージとして提供されるドライバ以外を使った場合は不安定になったことだけを念のため報告しておく。
※intel公式では最新版の提供があるが、debianパッケージでは提供がない
参考文献
- 設定について
- ワイヤレス設定 - ArchWiki linuxでのWifi設定についてのまとめ(推奨)
- iwlwifi で通信速度を向上させる – Gomasy's blog 型番などは異なるがドライバは同じで手法も同じ
- Linux WiFiを快適に利用するためのちょっとしたこと
- iwlwifi - Debian Wiki Slow WiFi problems when using Bluetooth参照 (英語)
- データシート
- ドライバダウンロード(非推奨)
- フォーラムなど
参考情報
# よくあるUSBなら、プライベート設定があるのだが...ない sudo iwpriv wlan0 #wlan0 no private ioctls.
型番としては正しく認識できているみたいなのだが。
ソースコードを追うしかないのかな。
[ 8.989027] Bluetooth: hci0: read Intel version: 3707100180012d0d00 [ 9.055643] bluetooth hci0: firmware: direct-loading firmware intel/ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq [ 9.055652] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq [ 9.099972] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated [ 9.118379] Intel(R) Wireless WiFi driver for Linux, in-tree: [ 9.118380] Copyright(c) 2003- 2014 Intel Corporation [ 9.118499] iwlwifi 0000:03:00.0: irq 141 for MSI/MSI-X [ 9.118747] iwlwifi 0000:03:00.0: Unsupported splx structure [ 9.118759] AVX2 version of gcm_enc/dec engaged. [ 9.119690] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni) [ 9.232638] iwlwifi 0000:03:00.0: firmware: direct-loading firmware iwlwifi-7260-9.ucode [ 9.232728] iwlwifi 0000:03:00.0: loaded firmware version 23.214.9.0 op_mode iwlmvm [ 9.486968] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144 [ 9.487011] iwlwifi 0000:03:00.0: L1 Disabled - LTR Enabled [ 9.487222] iwlwifi 0000:03:00.0: L1 Disabled - LTR Enabled