{"id":890,"date":"2024-03-11T13:04:34","date_gmt":"2024-03-11T13:04:34","guid":{"rendered":"https:\/\/wodatherm.com\/?p=890"},"modified":"2024-06-12T12:25:22","modified_gmt":"2024-06-12T10:25:22","slug":"wi-fi-linux-network-manager-quick-start-guide","status":"publish","type":"post","link":"https:\/\/wodatherm.com\/en\/wi-fi-linux-network-manager-quick-start-guide\/","title":{"rendered":"Wi-Fi Linux Network Manager quick start guide"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Using Network Manager to setup a wifi connection is quick and automatic once the configuration is in place. Install the Wi-Fi card and make sure the device shows up in your Linux system with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lspci <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">*******************<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>00:1e.0 SD Host controller: Intel Corporation Celeron N3350\/Pentium N4200\/Atom E3900 Series SDIO Controller (rev 0d)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>00:1f.0 ISA bridge: Intel Corporation Celeron N3350\/Pentium N4200\/Atom E3900 Series Low Pin Count Interface (rev 0d)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>00:1f.1 SMBus: Intel Corporation Celeron N3350\/Pentium N4200\/Atom E3900 Series SMBus Controller (rev 0d)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>01:00.0 Network controller:&nbsp;<strong>Qualcomm Atheros QCA986x\/988x 802.11ac Wireless Network Adapter<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111\/8168\/8411 PCI Express Gigabit Ethernet Controller (rev 15)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111\/8168\/8411 PCI Express Gigabit Ethernet Controller (rev 15)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">*******************<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Qualcomm 900vx wifi module we have plugged in here shows up as expected. If that is not the case, make sure that the card is properly seated, pin-compatible and that the host system has correct drivers installed!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What drivers are being utilized can be found using the index in the previous code snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> sudo find \/sys | grep drivers.*01:00.0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/sys\/bus\/pci\/drivers\/<\/em><em>ath10k<\/em><em>_pci\/0000:01:00.0<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here we see that the device is using the kernel built-in wifi driver ath10k which is compatible 524wifi 900VX Pro+ module used here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next step is to check that NM finds the device:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>wlp1s0: unavailable<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>&#8220;Qualcomm Atheros QCA986x\/988x&#8221;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>wifi (ath10k_pci), 04:F3:21:4F:0A:A2, sw disabled, hw, mtu 1500<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here it is found by NM but in disabled state, activate it using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli radio wifi on \/\/activate wifi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>wlp1s0: disconnected<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>&#8220;Qualcomm Atheros QCA986x\/988x&#8221;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>0 connections available<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>wifi (ath10k_pci), 04:F3:21:4F:0A:A2, hw, mtu 1500<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli dev wifi \/\/lists available wifi access points\n\nsudo nmcli dev wifi connect 'SSID' password 'password' \/\/connect to a network\/access point<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To setup an automatic connection instead of manual direct-connect follow the below steps:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli con add con-name 'wifi' ifname 'wlp1s0' type wifi ssid 'SSID'\n\nnmcli con modify 'wifi' wifi-sec.key-mgmt 'wpa-psk' \/\/Add security layer matching the access point\n\nnmcli con modify 'wifi' wifi-sec.psk 'password' \/\/Add the access point password to the connection \n\nnmcli con up 'wifi'\/\/Activate the connection\n\nnmcli dev set 'wlp1s0' autoconnect yes \/\/Set connection to autoconnect<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">There are also a number of different settings that can be changed to your liking. Below you can see an example of how to set which band an existing connection should use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli connection edit wifi\n\ngoto wifi \/\/Access general wifi settings\n\ngoto band \/\/Access band settings\n\nset a \/\/Sets the band to 5GHz\n\nsave \/\/Persistent save\n\nquit \/\/Quit the interactive terminal\n\nsudo systemctl restart network-manager \/\/Restart to apply settings<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">More information available at:&nbsp;<a href=\"https:\/\/wiki.archlinux.org\/title\/NetworkManager#nmcli_examples\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/wiki.archlinux.org\/title\/NetworkManager#nmcli_examples<\/a>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note: Tested on Ubuntu 22.04 kernel 5.19<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Network Manager to setup a wifi connection is quick and automatic once the configuration is in place. Install the Wi-Fi card and make sure the device shows up in your Linux system with: ******************* 00:1e.0 SD Host controller: Intel Corporation Celeron N3350\/Pentium N4200\/Atom E3900 Series SDIO Controller (rev 0d) 00:1f.0 ISA bridge: Intel Corporation [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":559,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55,54],"tags":[1022,974,1018,1020,1021,312,1019,1017,1023],"class_list":["post-890","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-instalation-support","category-support-download","tag-802-11ac","tag-atheros","tag-network-manager","tag-qca986x","tag-qca988x","tag-qualcomm","tag-quick-start-guide","tag-wi-fi-linux","tag-wireless-network-adapter"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/posts\/890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/comments?post=890"}],"version-history":[{"count":0,"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/posts\/890\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/media?parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/categories?post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wodatherm.com\/en\/wp-json\/wp\/v2\/tags?post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}