How can I connect wireless network without NetworkManager? Getting "unknown global field" error.
Issue
Could not connect wireless network without Network Manager.
# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line 7: unknown global field 'network= {'.
Line 7: Invalid configuration line 'network= {'.
Line 9: unknown global field 'ssid="Noob"'.
Line 9: Invalid configuration line 'ssid="Noob"'.
Line 10: unknown global field 'scan_ssid=1'.
Line 10: Invalid configuration line 'scan_ssid=1'.
Line 11: unknown global field 'key_mgmt=WPA-PSK'.
Line 11: Invalid configuration line 'key_mgmt=WPA-PSK'.
Line 12: unknown global field 'psk=a11992c61ebbe4b78bfd3d48b2e18ad1f220db5e896d7edd39c92e5ea201d815'.
Line 12: Invalid configuration line 'psk=a11992c61ebbe4b78bfd3d48b2e18ad1f220db5e896d7edd39c92e5ea201d815'.
Line 14: unknown global field '}'.
Line 14: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
Environment
Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
