lk/networking/wireless.md

63 lines
866 B
Markdown
Raw Permalink Normal View History

2022-01-16 18:20:39 +00:00
---
title: "wireless"
2022-01-26 22:35:07 +00:00
tags: [ "Documentation", "Networking" ]
2022-01-16 18:20:39 +00:00
---
2022-01-22 18:57:34 +00:00
# Check wifi's working
```bash
lspci -k
```
2022-01-22 18:57:34 +00:00
Or for usb wifi:
```bash
dmesg | grep usbcore
```
2022-01-22 18:57:34 +00:00
... and hopefully it'll say the new interface is registered.
# Check if a wifi interface has been created
```bash
ip link
```
2022-01-22 18:57:34 +00:00
or
```bash
iw dev
```
2022-01-22 18:57:34 +00:00
Assuming it's wlan0, bring it up with
```bash
ip link set wlan0 up
```
2022-01-22 18:57:34 +00:00
Error messages probably means your wireless chipset requires a firmware to function. In this case, check the kernel messages for firmware being loaded
```bash
dmesg | grep firmware
```
2022-01-22 18:57:34 +00:00
# Utilities
iw doesn't do wpa/wpa2. wpa_supplicant does everything. iwd does everything except WEXT encryption.
# Connecting
Get the link status:
```bash
iw dev wlan0 link
```
2022-01-22 18:57:34 +00:00
Scan for available points:
```bash
iw dev wlan0 scan
```
2022-01-22 18:57:34 +00:00
The connecting commands do not cover wpa2.