<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yabobay</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yabobay"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Yabobay"/>
	<updated>2026-05-01T18:38:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Wi-Fi&amp;diff=17375</id>
		<title>Wi-Fi</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Wi-Fi&amp;diff=17375"/>
		<updated>2020-05-07T14:31:28Z</updated>

		<summary type="html">&lt;p&gt;Yabobay: /* Install necessary drivers and software */ Clear up some minor confusion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes how to set up a wireless network connection with WPA encryption.&lt;br /&gt;
&lt;br /&gt;
== Install necessary drivers and software  ==&lt;br /&gt;
&lt;br /&gt;
First make sure your wireless drivers are loaded properly. (if you are using a &#039;&#039;&#039;Broadcom chipset&#039;&#039;&#039;, see the [[#Broadcom_Wi-Fi_Chipset_Users|section at the bottom of this post]].)&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|wireless-tools}} and {{Pkg|wpa_supplicant}}, which are probably available to be installed in the base setup.&lt;br /&gt;
{{Cmd|apk add wireless-tools wpa_supplicant}}&lt;br /&gt;
&lt;br /&gt;
== Manual Configuration  ==&lt;br /&gt;
&lt;br /&gt;
List your available network interfaces. If you don&#039;t see any wireless interfaces (e.g. {{Path|wlan0}}), you probably need to load and/or install extra drivers/firmware.&lt;br /&gt;
{{Cmd|ip link}}&lt;br /&gt;
&lt;br /&gt;
Bring the desired interface up.&lt;br /&gt;
{{Cmd|ip link set wlan0 up}}&lt;br /&gt;
&lt;br /&gt;
{{Note|If this errors with &amp;lt;code&amp;gt;ioctl 0x8914 failed: No error information&amp;lt;/code&amp;gt;, that&#039;s &amp;lt;code&amp;gt;busybox ip&amp;lt;/code&amp;gt;&#039;s way of saying your wireless radio is rfkill&#039;d. See [https://wiki.archlinux.org/index.php/Wireless_network_configuration#Rfkill_caveat here] for information on how to unblock your wireless radio; the base installation should have &amp;lt;code&amp;gt;busybox rfkill&amp;lt;/code&amp;gt; available.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the interface to scan for wireless access points. Make sure the ESSID you want to connect to appears here.&lt;br /&gt;
{{Cmd|iwlist wlan0 scanning}}&lt;br /&gt;
&lt;br /&gt;
Associate the interface with desired ESSID.&lt;br /&gt;
{{Cmd|iwconfig wlan0 essid ExampleWifi}}&lt;br /&gt;
&lt;br /&gt;
Sanity check: the interface should be configured with {{Path|ESSID:&amp;quot;ExampleWifi&amp;quot;}}.&lt;br /&gt;
{{Cmd|iwconfig wlan0}}&lt;br /&gt;
&lt;br /&gt;
Create a wpa_supplicant configuration stanza for the wireless access point.&lt;br /&gt;
{{Cmd|wpa_passphrase &#039;ExampleWifi&#039; &#039;ExampleWifiPassword&#039; &amp;gt; /etc/wpa_supplicant/wpa_supplicant.conf}}&lt;br /&gt;
&#039;&#039;(Access point not broadcasting its SSID requires additional line &amp;lt;code&amp;gt;scan_ssid=1&amp;lt;/code&amp;gt; in the file &amp;lt;code&amp;gt;wpa_supplicant.conf&amp;lt;/code&amp;gt;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start wpa_supplicant in the foreground to make sure the connection succeeds.&lt;br /&gt;
{{Cmd|wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf}}&lt;br /&gt;
&lt;br /&gt;
If all is well, run it as a daemon in the background by setting the {{Path|-B}} option.&lt;br /&gt;
{{Cmd|wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf}}&lt;br /&gt;
&lt;br /&gt;
Configure the interface with an IP address.&lt;br /&gt;
{{Cmd|udhcpc -i wlan0}}&lt;br /&gt;
&lt;br /&gt;
Sanity check: the interface should have an {{Path|inet}} address.&lt;br /&gt;
{{Cmd|ip addr show wlan0}}&lt;br /&gt;
&lt;br /&gt;
== Automatic Configuration on System Boot  ==&lt;br /&gt;
&lt;br /&gt;
Add a stanza for the desired interface (e.g. {{Path|wlan0}}) to {{Path|/etc/network/interfaces}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto wlan0&lt;br /&gt;
iface wlan0 inet dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure {{Path|/etc/wpa_supplicant/wpa_supplicant.conf}} is the correct configuration for the wireless access point you want to connect to.&lt;br /&gt;
&lt;br /&gt;
Bring the interface down.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|ifconfig wlan0 down}}&lt;br /&gt;
&lt;br /&gt;
Manually start wpa_supplicant.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|/etc/init.d/wpa_supplicant start}}&lt;br /&gt;
&lt;br /&gt;
If all is well (confirm with the sanity checks in [[#Manual_Configuration|Manual Configuration]]), configure wpa_supplicant to start automatically on boot.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-update add wpa_supplicant boot}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching udhcpc through wpa_cli actions ===&lt;br /&gt;
&lt;br /&gt;
With the above configuration, udhcpc will only run once at boot.&lt;br /&gt;
If the Wifi isn&#039;t available then, or the network changes in between, it needs to be notified.&lt;br /&gt;
This is done through the wpa_cli action script in /etc/wpa_supplicant/wpa_cli.sh&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-update add wpa_cli boot}}&lt;br /&gt;
&lt;br /&gt;
== Broadcom Wi-Fi Chipset Users  ==&lt;br /&gt;
&lt;br /&gt;
The Broadcom chipset is quite popular among older computers. You will need to compile the firmware manually for this chipset as it is not included. &lt;br /&gt;
&lt;br /&gt;
You can check if you have a Broadcom chipset by using dmesg:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|dmesg {{!}} grep Broadcom}}&lt;br /&gt;
&lt;br /&gt;
First install the SDK an Git:&lt;br /&gt;
{{Cmd|apk add alpine-sdk git}}&lt;br /&gt;
&lt;br /&gt;
Then git clone aports from git.alpinelinux.org.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Cmd|git clone git://git.alpinelinux.org/aports}}&lt;br /&gt;
&lt;br /&gt;
Change your directory to &#039;&#039;&#039;aports/non-free/b43-firmware&#039;&#039;&#039;, then build it.&lt;br /&gt;
&lt;br /&gt;
{{Tip|You can&#039;t be root and must be a user of the group abuild (use groupadd f.e. &#039;&#039;&#039;addgroup $(whoami) abuild&#039;&#039;&#039;)}}&lt;br /&gt;
{{Tip|If this is your first time building a package you will need to generate a key for use in signing packages (use &#039;&#039;&#039;abuild-keygen -a -i&#039;&#039;&#039;)}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd|abuild -r}}&lt;br /&gt;
&lt;br /&gt;
Install the generated packge file (it will be in ~/packages/) - make sure to pass &#039;&#039;&#039;--allow-untrusted&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add --allow-untrusted ~/packages/...pkg}}&lt;br /&gt;
&lt;br /&gt;
Now we need fwcutter, which is executed from the firmware package:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add b43-fwcutter b43-firmware}}&lt;br /&gt;
&lt;br /&gt;
Now you need to use modprobe so the device will show up:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe b43}}&lt;br /&gt;
&lt;br /&gt;
To automate this on startup add it to /etc/modules:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|echo b43 &amp;gt;&amp;gt; /etc/modules}}&lt;br /&gt;
&lt;br /&gt;
Now continue with the normal instructions. &lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Yabobay</name></author>
	</entry>
</feed>