Network – How to enable Wi-Fi on Ubuntu Server 18.04 without an existing connection

I have recently installed Ubuntu 18.04 on my device and run the setup without an internet connection. I do not have access to spare Ethernet cables, so it's up to Wi-Fi. I do not have an existing connection, so I can not install any packages. At this point, I have no idea what to do. My WLAN card is detected, but not displayed in ifconfig. I can not run iwconfig because wireless tools and wpasupplicant were not installed.
Here are some commands that give more information:


$ lspci

output [excluding all my other hardware]:

Network Controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (Version 31)


$ lshw class network

output [only wireless class]:

* Network disabled
Description: Wireless interface
Product: QCA9377 802.11ac wireless network adapter
Provider: Qualcomm Atheros
physical ID: 0
bus info: pci @ 0000: 03: 00.0
logical name: w1p3s0
Version: 31
Serial number: [mac address]
  Width: 64 bits
Clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
Configuration: broadcast = yes Driver = ath10k_pci Driver Version = 4.15.0-45-generic Firmware = WLAN.TF.1.0-00002-QCATFSWPZ-5 Latency = 0 Link = no Multicast = yes Wireless = IEEE 802.11
Sources: irq: 133 Memory: b4000000-b41fffff