Changes between Version 55 and Version 56 of wireless/wifi
- Timestamp:
- 05/12/2020 11:25:14 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
wireless/wifi
v55 v56 154 154 * [wiki:Yocto/Wireless Yocto Wireless Configuration] 155 155 156 === iw === 156 [=#iw] 157 === iw (generic configuratoin) 157 158 The 'iw' tool is the modern tool (which replaces the older set of WIRELESS_EXTENSION tools such as iwconfig, iwpriv, iwlist, etc) for configuration of wireless drivers. 158 159 … … 225 226 - git http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git (tagged per kernel release) 226 227 227 === hostapd === 228 229 [=#hostapd] 230 === hostapd (Access Point) 228 231 The hostapd application is the userspace application that configures and manages wireless drivers in Access Point (AP) mode. 229 232 … … 278 281 Below are some usage cases for this script. In these examples, a WLE900VX radio was used. Note, any information that isn't apparent in the below script may be found via the {{{iw phy phy<n> info}}} command. 279 282 280 ===== Step 0: Scan Available Options =====283 ===== Step 1 : Scan Available Options ===== 281 284 282 285 To view all channels/frequencies and HT modes that can emit radiation on a specified interface, indicate just the interface: … … 315 318 165 5825 HT20 HT40 HT40+ VHT20 VHT40 VHT80 316 319 }}} 317 ===== Step 1: Configure Access Point =====320 ===== Step 2 : Configure Access Point ===== 318 321 319 322 '''2.4GHz 802.11g''' … … 441 444 vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC1][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7] 442 445 }}} 443 ===== Step 2: Copy Access Point Configuration =====446 ===== Step 3 : Copy Access Point Configuration ===== 444 447 445 448 After the {{{hostapd-<phy>.conf}}} file has been created and any edits have been made (if any), you may either: … … 517 520 echo 1 > /proc/sys/net/ipv4/ip_forward 518 521 }}} 522 523 519 524 ==== Bridged Access Point ==== 520 525 … … 568 573 * if DNS resolution is not occurring first make sure you can ping the nameserver by IP 569 574 570 === wpa-supplicant === 575 576 [=#wpa-supplicant] 577 === wpa-supplicant (Client) 571 578 The wpa-supplicant application is the userspace application that configures and manages wireless drivers in Station (STA) mode. 572 579 … … 577 584 - stable release tarballs: http://w1.fi/hostapd/ 578 585 - git git://w1.fi/srv/git/hostap.git (cgit: http://hostap.epitest.fi/cgit/hostap/) 586 587 You generate a {{{wpa_supplicant.conf}}} file using a tool called wpa_passphrase: 588 {{{#!bash 589 ~# wpa_passphrase MYSSID MYWPAPASSCODE 590 network={ 591 ssid="MYSSID" 592 #psk="MYWPAPASSCODE" 593 psk=82207641ae13124ee6dc8fd2642605ac52a17405263b0b3203ee5cdb826d700d 594 } 595 }}} 596 597 The following steps below can be used to connect to a WPA access point. You will likely need to alter this depending on your OS and distribution. 598 599 ===== Step 1: Create wpa_supplicant.conf 600 For the following example we will use an SSID of 'MYSSID' and a WPA passcode of 'MYWPAPASSCODE' (replace with values your AP is configured with): 601 {{{#!bash 602 root@ventana:~# wpa_passphrase MYSSID MYWPAPASSCODE > /etc/wpa_supplicant.conf 603 }}} 604 605 ===== Step 2: Start wpa_supplicant 606 To start wpa_supplicant manually: 607 {{{#!bash 608 killall wpa_supplicant # make sure its not already running 609 wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B 610 }}} 611 612 ===== Step 3: HDCP 613 To obtain DHCP network configuratnoi: 614 {{{#!bash 615 dhclient wlan0 616 }}} 617 579 618 580 619 == Mesh Point ==