This doc might help https://docs.opnsense.org/manual/how-tos/interface_wireless_internal.html
First of all: Wifi and BSD is a pain. That said: Is your stick shown under "Interfaces -> Assignments" in "New Interfaces" drop-down? Under "Interfaces -> Wireless -> Devices" if you press the + button?If not your trouble starts here...Many people use wifi APs to avoid configuring wifi hardware in BSD...
Haven't done it for some time now and the device I configured in the old post is no longer in use (was i386 iirc). You define the wireless device at first, then you assign it to WAN and then the mask for WAN shows you fields to enter SSID, passphrase etc...Easy as that...PS: tried it on the new hardware for traveling, if you scroll down on the WAN Interface tab after assigning the stick there you can enter the credentials. Works here :-D
country=ARnetwork={ ssid="whatever" scan_ssid=1 key_mgmt=WPA-PSK psk="##########"}
Selected interface 'wlan0'bssid=##:##:##:##:##:##freq=2437ssid=whateverid=0mode=stationwifi_generation=4pairwise_cipher=CCMPgroup_cipher=TKIPkey_mgmt=WPA2-PSKwpa_state=COMPLETEDip_address=192.168.0.100p2p_device_address=##:##:##:##:##:##address=##:##:##:##:##:##uuid=########-####-####-####-############
wlan0 IEEE 802.11 ESSID:"whatever" Mode:Managed Frequency:2.437 GHz Access Point: C8:3D:D4:5D:B4:10 Bit Rate=72.2 Mb/s Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Encryption key:off Power Management:off Link Quality=50/70 Signal level=-60 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:7 Missed beacon:0
</interfaces> ... <wan> <if>rtwn0_wlan1</if> <wireless> <mode>bss</mode> <wpa> <macaddr_acl/> <auth_algs>1</auth_algs> <wpa_mode>2</wpa_mode> <wpa_key_mgmt>WPA-PSK</wpa_key_mgmt> <wpa_pairwise>CCMP</wpa_pairwise> <wpa_group_rekey>60</wpa_group_rekey> <wpa_gmk_rekey>3600</wpa_gmk_rekey> <passphrase>##########</passphrase> <ext_wpa_sw/> <ieee8021x/> <enable>1</enable> </wpa> <wme> <enable>1</enable> </wme> <wep> <key/> </wep> <hidessid/> <pureg/> <puren/> <ieee8021x/> <standard>11ng</standard> <protmode>off</protmode> <ssid>whatever</ssid> <channel>6</channel> <authmode/> <txpower/> <regdomain/> <regcountry>AR</regcountry> <reglocation/> <auth_server_addr/> <auth_server_port/> <auth_server_shared_secret/> <auth_server_addr2/> <auth_server_port2/> <auth_server_shared_secret2/> <apbridge/> <turbo/> </wireless> <descr>WAN</descr> <enable>1</enable> <lock>1</lock> <spoofmac/> <blockbogons>1</blockbogons> <gateway_interface>1</gateway_interface> <ipaddr>192.168.0.100</ipaddr> <subnet>24</subnet> <gateway>WAN_GWv4</gateway> </wan> </interfaces>
checked enable interface checked prevent interface removal device: rtwn0_wlan1
unchecked block private networks checked block bogon networks IPV4 configuration type: static IPv4 IPv6 configuration type: none MAC address: blank MTU: blank MSS: blank speed and duplex: default (no preference, typically autoselect) checked dynamic gateway policy: this interface does not require an intermediate system to act as a gateway
unchecked override global settings
IPv4 address: 192.168.0.100 IPv4 upstream gateway: WAN_GWv4 IPv4 upstream gateway (add new gateway): default gateway checked IPv4 upstream gateway (add new gateway): far gateway unchecked IPv4 upstream gateway (add new gateway): multi-WAN gateway unchecked IPv4 upstream gateway (add new gateway): gateway name: WAN_GWv4 IPv4 upstream gateway (add new gateway): 192.168.0.1 IPv4 upstream gateway (add new gateway): description: …
checked persist common settings standard: 802.11ng 802.11ng OFDM protection mode: protection mode off transmit power: default channel: auto (6) regulatory settings: regulatory domain: default regulatory settings: country: AR regulatory settings: location: default
mode: infrastructure (BSS) SSID: whatever minimum standard: anyunchecked allow intra-BSS communication checked enable WME … since the other wireless device supports it (QoS)unchecked enable hide SSIDunchecked enable WEP checked enable WPA WPA pre-shared key: ########## WPA mode: both … WPA2 … vs WPA WPA key management mode: PSK … vs EAP authentication: OSA (Open System Authentication) … vs SKA (Shared Key Authentication) for WEP only WPA pairwise: AES[-CCMP] (this one) … vs TKIP key rotation: 60 master key regeneration: 3600unchecked strict key regenerationunckecked IEEE802.1X authentication 802.1X*: default values
ping 192.168.0.100; … OKping 192.168.0.1; … network is downroute show default; route to: defaultdestination: default mask: default gateway: 192.168.0.1 fib: 0 interface: rtwn0_wlan1 flags: <UP,GATEWAY,DONE,STATIC> recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0
ifconfig rtwn0_wlan1;rtwn0_wlan1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether ##:##:##:##:##:## inet6 ####::###:####:####:####%rtwn0_wlan1 prefixlen 64 scopeid 0x6 inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255 groups: wlan ssid "whatever" channel 6 (2437 MHz 11g ht/20) regdomain NONE country AR authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode OFF ht20 ampdulimit 8k ampdudensity 16 shortgi -stbc -ldpc wme roaming MANUAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: no carrier nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wpa_cli status;Selected interface 'rtwn0_wlan1'wpa_state=SCANNINGip_address=192.168.0.100address=##:##:##:##:##:##uuid=########-####-####-####-############
wifi drivers in BSD are a pain. try another stick with another chip set.
regdomain NONE country AR authmode WPA1+WPA2/802.11i privacy MIXED