You are not logged in.

#1 2022-12-14 02:25:36

luofeiyu
Member
Registered: 2015-11-03
Posts: 29

How can connect the access point ?

The neighbour already tell me his wifi's key ,for example "1234abcd", and i can scan it with command "sudo iw dev wlan0   scan"

BSS 3c:cd:57:58:91:14(on wlan0)
	TSF: 2318008989297 usec (26d, 19:53:28)
	freq: 2437
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime APSD (0x0c11)
	signal: -37.00 dBm
	last seen: 910 ms ago
	Information elements from Probe Response frame:
	SSID: Xiaomi_9113
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 6
	ERP: Use_Protection Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	HT capabilities:
		Capabilities: 0x2c
			HT20
			SM Power Save disabled
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 6
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: non-HT mixed
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities:
	BSS Load:
		 * station count: 2
		 * channel utilisation: 34/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: CN	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: bc329e00-1dd8-11b2-8601-3ccd57589114
		 * Manufacturer: xiaomi
		 * Model: R4A
		 * Model Number: 0002
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: XiaoMiRouter
		 * Config methods: Label, Display, Keypad
		 * RF Bands: 0x1
		 * Version2: 2.0

How can connect it then?

sudo  iw dev interface connect "Xiaomi_9113" key 0:1234abcd
command failed: No such device (-19)
[arch@arch usbutils-015]$ sudo  iw dev wlan0  connect "Xiaomi_9113" key 0:1234abcd
key must be [d:]index:data where
  'd:'     means default (transmit) key
  'index:' is a single digit (0-3)
  'data'   must be 5 or 13 ascii chars
           or 10 or 26 hex digits

Offline

#2 2022-12-14 02:28:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: How can connect the access point ?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-12-14 04:50:13

luofeiyu
Member
Registered: 2015-11-03
Posts: 29

Re: How can connect the access point ?

I have read that ,still don't know how to do.

Offline

#4 2022-12-14 05:12:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,152

Re: How can connect the access point ?

wiki wrote:

iw can only handle WEP. To connect using other encryption schemes, see the section on #Authentication below.

luofeiyu wrote:
WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2022-12-14 13:14:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: How can connect the access point ?

Install and configure wpa_supplicant or iwd.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB