If you are trying to use client (sta) mode and AP mode simultaneously with a single radio, the sta mode must connect first because the channel used is dictated by the upstream AP to which the sta mode connection will be made. Therefore, the AP mode operation cannot come up until the sta mode connection has been established. Or, conversely, if you force AP mode, sta mode cannot run.
Meanwhile, the problem that you may encounter is that if the device is unable to establish the upstream connection (i.e. the upstream AP/SSID is not available), the AP mode will never come up at all because of the reason described above. To solve this issue, there is a package called travelmate which allows for a graceful handling of this 'failure.'
First:
As AP-WDS(upstream access point), in this mode, all other devices ( phone,tv etc) able to connect but the repeaters are fail to connect with it. I couldnt find the reason.
Second:
I tried to use as repeater (Linksys WRT3200ACM- as upstream access point),here it also fail to connect. While other repeaters (MediaTek MT7621) was connected to linksys without any problem.
So, as upstream access point, I used single radio for single purpose, but it doesn't work too.
I don't know the Travel mate will serve the purpose which I am looking for.
iw list should tell you the allowed interface combinations of your hardware, but as far as I know (without hands' on experience), brcmfmac does not support running AP and STA concurrently on the same radio.