Changeset e5abb31 in rtems-libbsd


Ignore:
Timestamp:
Nov 8, 2017, 11:43:39 AM (20 months ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
ddd16bc
Parents:
bed8742
git-author:
Christian Mauderer <Christian.Mauderer@…> (11/08/17 11:43:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/10/17 12:33:03)
Message:

libbsd.txt: Describe current state of WLAN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libbsd.txt

    rbed8742 re5abb31  
    11551155  fixed in +pfctl_init_options()+.
    11561156
     1157== Wireless Network (WLAN) ==
     1158
     1159The libbsd provides a basic support for WLAN. Note that currently this support
     1160is still in an early state. The following gives a rough overview over the
     1161necessary steps to connect to an encrypted network with an RTL8188EU based WiFi
     1162dongle:
     1163
     1164- Reference all necessary module for your BSP. For some BSPs this is already
     1165  done in the nexus-devices.h:
     1166
     1167----
     1168        SYSINIT_MODULE_REFERENCE(wlan_ratectl_none);
     1169        SYSINIT_MODULE_REFERENCE(wlan_sta);
     1170        SYSINIT_MODULE_REFERENCE(wlan_amrr);
     1171        SYSINIT_MODULE_REFERENCE(wlan_wep);
     1172        SYSINIT_MODULE_REFERENCE(wlan_tkip);
     1173        SYSINIT_MODULE_REFERENCE(wlan_ccmp);
     1174        SYSINIT_DRIVER_REFERENCE(rtwn_usb, uhub);
     1175        SYSINIT_REFERENCE(rtwn_rtl8188eufw);
     1176----
     1177
     1178- Create your wlan device using ifconfig:
     1179  +ifconfig wlan0 create wlandev rtwn0 up+
     1180
     1181- Start a wpa_supplicant instance for that device:
     1182  + wpa_supplicant_fork -Dbsd -iwlan0 -c/media/mmcsd-0-0/wpa_supplicant.conf+
     1183
     1184Note that the wpa_supplicant will only be active till the device goes down. A
     1185workaround is to just restart it every time it exits.
     1186
     1187=== Known restrictions ===
     1188
     1189- The network interface (e.g. wlan0) is currently not automatically created. It
     1190  would be nice, if some service would create it as soon as for example a USB
     1191  device is connected. In FreeBSD the names are assigned via rc.conf with lines
     1192  like +wlans_rtwn0="wlan0"+.
     1193
     1194- wpa_supplicant hast to be started after the device is created. It has to be
     1195  restarted every time the connection goes down. Instead of this behaviour,
     1196  there should be some service that starts and restarts wpa_supplicant
     1197  automatically if a interface is ready. Probably the dhcpcd hooks could be used
     1198  for that.
     1199
     1200- The current wpa_supplicant implementation is protected with a lock so it can't
     1201  be started more than one time. If multiple interface should be used, all have
     1202  to be handled by that single instance. That makes it hard to add interfaces
     1203  dynamically. wpa_supplicant should be reviewed thoroughly whether multiple
     1204  instances could be started in parallel.
     1205
     1206- The control interface of wpa_supplicant most likely doesn't work. The wpa_cli
     1207  application is not ported.
     1208
    11571209== Problems to report to FreeBSD ==
    11581210
Note: See TracChangeset for help on using the changeset viewer.