1.) Copy file "driver_ralink.c" and "driver_ralink.h" we provide to wpa_supplicant directory.
2.) Set driver_ralink configuration as YES in the "defconfig" or update the "defconfig" we provide::
# Driver interface for Ralink rt61 driver
CONFIG_DRIVER_RALINK=y
3.) Add wpa_driver_ralink_ops() into wpa_supplicant_drivers() in file "drivers.c"
or update file "drivers.c" we provide::
#ifdef CONFIG_DRIVER_RALINK
extern struct wpa_driver_ops wpa_driver_ralink_ops; /* driver_ipw.c */
#endif /* CONFIG_DRIVER_RALINK */
:
:
struct wpa_driver_ops *wpa_supplicant_drivers[] =
{
#ifdef CONFIG_DRIVER_RALINK
&wpa_driver_ralink_ops,
#endif /* CONFIG_DRIVER_RALINK */
}
4.) Edit the "Makefile" or update the "Makefile" we provide::
ifdef CONFIG_DRIVER_RALINK
CFLAGS += -DCONFIG_DRIVER_RALINK
OBJS_d += driver_ralink.o
endif
5.) type $cp defconfig .config
6.) Compile the source code using 'make' command.