Skip to content

Commit 21ed6e8

Browse files
jsuhaas22praneethbajjuri
authored andcommitted
fix: How_to_Guides: M2CC3301: Add separate code-block for Debian
To connect to wifi, a set of scripts must be run. These scripts are given in the How_To_Enable_M2CC3301_in_linux guide. The syntax is `./<script-name> <args>`. However in Debian, it is necessary to prepend `bash` to the command: `bash ./<script-name> <args>` This is an upstream scripts' issue. For now, add a separate code-block for the Debian-specific case. Revert this commit when the issue is fixed. Signed-off-by: Suhaas Joshi <[email protected]>
1 parent 17b63ec commit 21ed6e8

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

source/linux/How_to_Guides/Target/How_To_Enable_M2CC3301_in_linux.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,23 @@ Connect to Wi-Fi
8181
Using scripts provided in the SDK makes connecting to an Access Point or router straightforward.
8282
The following are steps to connect to a WPA password-secured Access Point.
8383

84-
.. code-block:: console
84+
.. ifconfig:: CONFIG_sdk in ('SITARA')
85+
86+
.. code-block:: console
87+
88+
cd /usr/share/cc33xx
89+
./sta_start.sh
90+
./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
91+
udhcpc -i wlan0
92+
93+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
94+
95+
.. code-block:: console
8596
86-
cd /usr/share/cc33xx
87-
./sta_start.sh
88-
./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
89-
udhcpc -i wlan0
97+
cd /usr/share/cc33xx
98+
bash ./sta_start.sh
99+
bash ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
100+
udhcpc -i wlan0
90101
91102
For more information on the Wi-Fi capabilities of the CC33xx devices, please
92103
see the documentation that can be found in the `CC33xx SDK <https://www.ti.com/tool/CC33XX-SOFTWARE>`_.

0 commit comments

Comments
 (0)