[PATCH v2 2/2] Enable the WEP encrypted WiFi.

Christian Mauderer list at c-mauderer.de
Tue Aug 1 18:28:57 UTC 2017


Hello Sichen,

the second version of the patches looks good to me. They apply fine and
the WEP encrypted WiFi works.

Just if someone wants to try it and wonders how to set the network up: I
used the following line for my network:

ifconfig wlan0 ssid test authmode shared wepmode on weptxkey 1 wepkey
1:HelloWorld123

Network name was "test" and the key was a ultra secure "HelloWorld123".
The number 1 is the key index. If you can't configure it in your router,
it's most likely 1.

Kind regards

Christian

Am 01.08.2017 um 09:21 schrieb Sichen Zhao:
> Now rtems can connnect WiFi via WEP on rtl8188eu chip.
> ---
>  rtemsbsd/include/bsp/nexus-devices.h | 1 +
>  rtemsbsd/rtems/rtems-kernel-init.c   | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
> index c3e5336..65c183c 100644
> --- a/rtemsbsd/include/bsp/nexus-devices.h
> +++ b/rtemsbsd/include/bsp/nexus-devices.h
> @@ -60,6 +60,7 @@ SYSINIT_DRIVER_REFERENCE(rtwn_usb, uhub);
>  SYSINIT_MODULE_REFERENCE(wlan_ratectl_none);
>  SYSINIT_MODULE_REFERENCE(wlan_sta);
>  SYSINIT_MODULE_REFERENCE(wlan_amrr);
> +SYSINIT_MODULE_REFERENCE(wlan_wep);
>  SYSINIT_REFERENCE(rtwn_rtl8188eufw);
>  
>  RTEMS_BSD_DRIVER_USB;
> diff --git a/rtemsbsd/rtems/rtems-kernel-init.c b/rtemsbsd/rtems/rtems-kernel-init.c
> index 594e1ba..4138bc1 100644
> --- a/rtemsbsd/rtems/rtems-kernel-init.c
> +++ b/rtemsbsd/rtems/rtems-kernel-init.c
> @@ -72,6 +72,8 @@ typedef void (*ratectl_modevent)(int);
>  RTEMS_BSD_DEFINE_SET(ratectl_set, ratectl_modevent);
>  typedef void (*scanner_modevent)(int);
>  RTEMS_BSD_DEFINE_SET(scanner_set, scanner_modevent);
> +typedef void (*crypto_modevent)(int);
> +RTEMS_BSD_DEFINE_SET(crypto_set, crypto_modevent);
>  RTEMS_BSD_DEFINE_SET(sysctl_set, struct sysctl_oid *);
>  
>  RTEMS_BSD_DEFINE_RWSET(sysinit_set, struct sysinit *);
> 



More information about the devel mailing list