0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

raspberry pi でWifiアダプタを使用している時に「No wireless interfaces found」になった場合

Posted at

内蔵WIFIオフをやめる

sudo nano /etc/modprobe.d/raspi-blacklist.conf

各APモード用の設定をOFFにする

dhcpcd.confのwlan0の設定末尾をコメントアウト

sudo nano /etc/dhcpcd.conf

hostapd.confはAPモードの設定なので、全てコメントアウト

sudo nano /etc/hostapd/hostapd.conf

dnsmasq.confはIPアドレス関連の設定なので全てコメントアウト

sudo nano /etc/dnsmasq.conf

wpa_supplicant.confを下記の形式にしておく

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=JP

network={
        ssid="xxxx"
        psk="xxxx"
        key_mgmt=WPA-PSK
}

修正を反映する

sudo systemctl restart dnsmasq
sudo systemctl stop hostapd
sudo systemctl restart dhcpcd
sudo service dhcpcd restart
sudo service dnsmasq restart
sudo service hostapd stop

これで繋がる。

繋がらなかった場合は下記のコマンドを実行する

sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
sudo dhcpcd wlan0
sudo killall wpa_supplicant
sudo rm -rf /var/run/wpa_supplicant
sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sudo iwconfig wlan0 essid "TP-Link_544C" key "58407776" 
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?