I am trying to make RaLink RT 5370 WiFi adapter run in dual mode - station as well as AP. I have tiny core linux installed on PI, built on top of 3.18.10 linux kernel version. I have been able to make dual mode work effectively on Atheros based adapter, but the same steps do not work for RT5370. Once PI connects to WiFi through wlan0 interface, I fire the below sequence of commands -
#1. To create wlan1 in Master mode
iw dev wlan0 interface add wlan1 type __ap
#2. To assign IP to wlan1 interface
ifconfig wlan1 up 192.168.7.1
The above command fails with the error -
ifconfig: SIOCSIFFLAGS: Device or resource busy
and I cannot proceed further. The later steps include bringing up dnsmasq and hostapd.
So, is this driver limitation? And is there a workaround?