{"id":16526,"date":"2017-01-27T10:44:31","date_gmt":"2017-01-27T16:44:31","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=16526"},"modified":"2021-11-10T10:57:03","modified_gmt":"2021-11-10T16:57:03","slug":"wifi-station","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/wifi-station\/","title":{"rendered":"Wi-Fi Station"},"content":{"rendered":"<p>This feature is only available on certain products and models (not available with all devices).<strong style=\"font-size: medium;\"><\/strong><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\"><strong><span style=\"font-size: medium;\">Configuration of RS9113 driver on the Device<\/span><\/strong><\/span><\/p>\n<p>If you are using the rs9113 as a Wi-Fi Station, <strong>\/etc\/default\/rs9113<\/strong>, on the device, you must have the <strong>COEX_MODE <\/strong>variable set to <strong>1<\/strong>, <strong>3<\/strong>, <strong>5<\/strong>, or <strong>9<\/strong>. Also, you can set the country code and other parameters as documented in <strong>\/etc\/default\/rs9113<\/strong>.<\/p>\n<p>1. If hostapd produces errors, the COEX_MODE is incorrect. To prevent the driver from loading during boot set the value of <strong>RS9113_LOAD<\/strong> in <strong>\/etc\/default\/rs9113<\/strong> to zero:<span style=\"font-family: 'andale mono', times;\"><span><br \/>\n<\/span><\/span><\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">RS9113_LOAD=0<\/pre>\n<p>2. Reboot.<\/p>\n<p>3. Correct the <strong>COEX_MODE<\/strong> value.<\/p>\n<p>4. Change the<strong> RS9113_LOAD<\/strong> value back to one in the file, <strong>\/etc\/default\/rs9113<\/strong>.<\/p>\n<p>5. From the shell, now reboot again and load the driver by entering the following command:<\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: \/etc\/init.d\/rs9113 restart<\/pre>\n<p><b>NOTE<\/b>: Whenever you change the band of the rs9113 module you must reload the driver. The rs9113 module only supports 5GHz or 2.4GHz, but not both at the same time.<\/p>\n<p><span style=\"font-size: medium; font-family: arial,helvetica,sans-serif;\"><b>Bring up the VAP (Virtual Access Point) Node for Wi-Fi<\/b><\/span><\/p>\n<p>1. Create network entry for wifi0 and add to \/etc\/network\/interfaces using these lines of the auto stanza (enter them into the file rather than the command line):<\/p>\n<p style=\"padding-left: 30px;\">auto wifi0<br \/>\niface wifi0 inet dhcp<br \/>\nwpa-conf \/etc\/wpa_supplicant.conf<br \/>\nwpa-driver nl80211<br \/>\npre-up bash -c &#8216;([[ -d \/sys\/class\/net\/wifi0 ]] || \/opt\/rs9113\/onebox_util rpine0 create_vap wifi0 sta sw_bmiss)&#8217;<br \/>\nudhcpc_opts -t 10 -b<\/p>\n<p>2. Save the file, \/etc\/network\/interfaces.<\/p>\n<p>3. To bring up the interface for scanning, enter these commands (at the bash line):<span style=\"font-family: 'andale mono', times;\"><br \/>\n<\/span><\/p>\n<pre style=\"padding-left: 30px;\">mtcdt: \/opt\/rs9113\/onebox_util rpine0 create_vap wifi0 sta sw_bmiss\r\n<code>mtcdt: <\/code>ip link set dev wifi0 up<\/pre>\n<p>4. Then scan by entering this command (signal strengths are displayed in -dBm):<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: iw dev wifi0 scan | tee \/tmp\/scan.txt<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: medium; font-family: arial,helvetica,sans-serif;\"><b>Configuring Wi-Fi Station\/wpa_supplicant<\/b><\/span><\/p>\n<p>1. You need to create a Wi-Fi configuration. You may already have the necessary information such as the passphrase (psk). But if you do not have this information, the scan command can provide it:<\/p>\n<pre class=\"brush:shell\">mtcdt: iw dev wifi0 scan | tee \/tmp\/scan.txt<\/pre>\n<p style=\"padding-left: 60px;\">Example output from a scan:<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\">BSS 9c:4e:20:c8:ee:9e(on wifi0)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 TSF: 0 usec (0d, 00:00:00)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 freq: 5785\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 beacon interval: 102 TUs\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 capability: ESS Privacy RadioMeasure (0x1011)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 signal: -72.00 dBm\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 last seen: 2720 ms ago\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Information elements from Probe Response frame:\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 SSID: Mtech_guest\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0 (+ 3 octets)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Country: US\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Environment: Indoor\/Outdoor\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Channels [36 - 48] @ 17 dBm\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Channels [52 - 64] @ 24 dBm\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Channels [100 - 116] @ 24 dBm\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Channels [132 - 140] @ 24 dBm\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Channels [149 - 165] @ 30 dBm\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 BSS Load:\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* station count: 14\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* channel utilisation: 7\/255\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* available admission capacity: 23437 [*32us]\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 HT capabilities:\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Capabilities: 0x182c\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 HT20\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 SM Power Save disabled\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 RX HT20 SGI\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 No RX STBC\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Max AMSDU length: 7935 bytes\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 DSSS\/CCK HT40\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Maximum RX AMPDU length 65535 bytes (exponent: 0x003)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Minimum RX AMPDU time spacing: 8 usec (0x06)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 HT RX MCS rate indexes supported: 0-15\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 HT TX MCS rate indexes are undefined\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 RSN:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 * Version: 1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* Group cipher: CCMP\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* Pairwise ciphers: CCMP\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* Authentication suites: PSK\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* Capabilities: PreAuth 4-PTKSA-RC 4-GTKSA-RC (0x0029)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 HT operation:\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* primary channel: 157\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* secondary channel offset: no secondary\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* STA channel width: 20 MHz\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* RIFS: 1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* HT protection: no\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* non-GF present: 1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* OBSS non-GF present: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* dual beacon: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* dual CTS protection: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* STBC beacon: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* L-SIG TXOP Prot: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* PCO active: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* PCO phase: 0\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Extended capabilities: Proxy ARP Service, WNM-Notification\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 WMM:\u00a0\u00a0\u00a0 * Parameter version 1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* u-APSD\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* BE: CW 15-1023, AIFSN 3\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* BK: CW 15-1023, AIFSN 7\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* VI: CW 7-15, AIFSN 2, TXOP 3008 usec\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* VO: CW 3-7, AIFSN 2, TXOP 1504 usec<\/pre>\n<p>2. Then, optionally, hash the password. Use the <b>wpa_passphrase<\/b> to hash the password:<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\">mtcdt: wpa_passphrase Mtech_guest 'Mtech_guest_password' &gt;\/tmp\/m.conf<\/pre>\n<p>The output of<strong> wpa_passphrase<\/strong> includes the unhashed password as a comment.\u00a0 Remove this comment before putting the<strong> psk<\/strong> into the <strong>wpa_supplicant configuration<\/strong>.<\/p>\n<p>3. Now enter the generated <b>psk, SSID <\/b>and<b> BSSID<\/b> of the router in <strong>\/etc\/wpa_supplicant.conf<\/strong>:<\/p>\n<pre class=\"brush:shell\">ctrl_interface=\/run\/wpa_supplicant\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0update_config=1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0fast_reauth=1\r\n  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0ap_scan=1\r\nnetwork={\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0bssid=9c:4e:20:c8:ee:9e\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0ssid=\"Mtech_guest\"\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 psk=babc4085713f121c819d0da8694184b25f035f860246b195a2d99d5c2b383725&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 scan_ssid=1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 key_mgmt=WPA-PSK\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 priority=1\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 proto=WPA RSN\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 pairwise=CCMP TKIP\r\n                group=CCMP TKIP\r\n                }<\/pre>\n<p><span style=\"font-size: medium; font-family: arial,helvetica,sans-serif;\"><b>Start the wpa_supplicant Daemon<\/b><\/span><\/p>\n<p>1. Start <strong>wpa_supplicant<\/strong> and bring up the interface (choose the appropriate file) using the following commands:<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: ifdown wifi0 \r\nSuccessfully initialized wpa_supplicant\r\nmtcdt: ifup wifi0\r\ndhcpc (v1.22.1) started\r\nSending discover...\r\nSending select for 192.168.1.5...\r\nLease of 192.168.1.5 obtained, lease time 86400\r\netc\/udhcpc.d\/50default: Adding DNS 192.168.1.1<\/pre>\n<p>2. Now verify the connection either from another screen, or use <b>&lt;ctrl&gt;+z<\/b> followed by <b>bg\u00a0%1<\/b> to put <b>wpa_supplicant<\/b> in the background:<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: iw dev wifi0\u00a0 link\r\nConnected to 9c:4e:20:c8:ee:9e (on wifi0)\r\nSSID: Mtech_guest\r\nfreq: 5785<\/pre>\n<p>3. Enter the ifup from another screen (using ethernet or ssh):<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\" style=\"padding-left: 30px;\">mtcdt: ifdown wifi0\r\nmtcdt: ifup wifi0\r\ndhcpc (v1.22.1) started\r\nSending discover...\r\nSending select for 192.168.1.5...\r\nLease of 192.168.1.5 obtained, lease time 86400\r\n\/etc\/udhcpc.d\/50default: Adding DNS 192.168.1.1<\/pre>\n<p>4. Start DHCP if the previous setup did not acquire an address:<span style=\"font-family: 'andale mono', times;\">\u00a0<\/span><\/p>\n<pre class=\"brush:shell\">mtcdt: udhcpc -R -n -p \/var\/run\/udhcpc.wifi0.pid -i wifi0<\/pre>\n<pre class=\"brush:shell\">udhcpc (v1.22.1) started\r\nSending discover...\r\nSending select for 192.168.1.7...\r\nLease of 192.168.1.7 obtained, lease time 86400\r\n\/etc\/udhcpc.d\/50default: Adding DNS 192.168.1.1<\/pre>\n<h3><span style=\"font-size: medium; font-family: arial,helvetica,sans-serif;\">Integration of boot, ifup, and ifdown with Wi-Fi station<\/span><\/h3>\n<p>To allow<strong> ifup<\/strong> and<strong> ifdown<\/strong> commands to work with<strong> wpa_supplicant<\/strong>, and to connect at boot, the file <strong>\/etc\/network\/interfaces<\/strong> must be configured.<\/p>\n<p>This configuration creates the <strong>wifi0 VAP<\/strong> at boot:<\/p>\n<pre class=\"brush:shell\">auto wifi0\r\niface wifi0 inet dhcp\r\nwpa-conf \/etc\/wpa_supplicant.conf\r\nwpa-driver nl80211\r\npre-up bash -c '([[ -d \/sys\/class\/net\/wifi0 ]] || \/opt\/rs9113\/onebox_util rpine0 create_vap wifi0 sta sw_bmiss)'\r\nudhcpc_opts -t 10 -b<\/pre>\n<p>The <strong>wifi0 VAP<\/strong>\u00a0 does not exist before the <strong><i>pre-up<\/i><\/strong> section is run. The <strong>wpa_supplicant.conf<\/strong> file should contain an SSID, and other configurations as shown in the prior section <strong>Configuring Wi-Fi Station\/wpa_supplicant.<\/strong><\/p>\n<p>The <strong>udhcpc<\/strong> program has the following options applied at boot and by <strong>ifup<\/strong>:<\/p>\n<pre class=\"brush:shell\">udhcpc -R -n -p \/var\/run\/udhcpc.wifi0.pid -i wifi0<\/pre>\n<p>These options specified by <strong>udhcpc_opts<\/strong> are added to the end:<\/p>\n<pre class=\"brush:shell\">udhcpc -R -n -p \/var\/run\/udhcpc.wifi0.pid -i wifi0 -t 10 -b<\/pre>\n<p>This means that the boot or <strong>ifup<\/strong> command is held up for up to ten attempts to reach the DHCP server.\u00a0The<strong> <i>-b<\/i> option<\/strong> means that <strong>udhcpc<\/strong>\u00a0is placed in the background after the 10 attempts are complete.\u00a0 Then the boot proceeds or if <i>-b<\/i> option is not specified, <strong>ifup<\/strong> command terminates.<\/p>\n<p>The interface is available after the <strong><i>udhcpc<\/i><\/strong> <strong>daemon<\/strong> receives a response from the DHCP server.\u00a0Without the <strong><i>-b <\/i>option,<\/strong> <strong>udhcpc<\/strong> holds up the boot or <strong>ifup<\/strong> command until the DHCP server responds.<\/p>\n<p>When <strong>-t<\/strong> is set to 0, the<strong> <i>-b<\/i> option<\/strong> is ignored.\u00a0 In this case, <strong>udhcp<\/strong>\u00a0blocks until the DHCP has responded, and tries indefinitely.<\/p>\n<p>Without any options, <i><strong>udhcpc<\/strong>\u00a0 <\/i>will wait approximately nine seconds for a response, and abort if none is received.\u00a0 At this point, you will need to try running <strong>ifup<\/strong> again, or reboot the device.<\/p>\n<p>For more information refer to:\u00a0<a href=\"https:\/\/busybox.net\/downloads\/BusyBox.html\">https:\/\/busybox.net\/downloads\/BusyBox.html<\/a><\/p>\n<p><span style=\"font-family: 'Calibri',sans-serif; color: black;\">ifdown wifi0<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This feature is only available on certain products and models (not available with all devices). Configuration of RS9113 driver on the Device If you are using the rs9113 as a Wi-Fi Station, \/etc\/default\/rs9113, on the device, you must have the COEX_MODE variable set to 1, 3, 5, or 9. Also, you can set the country [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":9184,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-16526","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/16526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=16526"}],"version-history":[{"count":71,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/16526\/revisions"}],"predecessor-version":[{"id":16528,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/16526\/revisions\/16528"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9184"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=16526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}