[][MAC80211][hostapd][Fix wds AP interface adding issue]

[Description]
Fix wds AP interface adding issue.

After hostapd creates a AP_VLAN interface, it adds the interface into
br-lan, and concurrently netifd also tries to add the interface into
br-lan, which might cause a race condition. In hostpad, linux_br_add_if
used to return -1 if ioctl return error.

A status check is added to see if the interface is correctly bridged
before linux_br_add_if return error.

[Release-log]
N/A

Change-Id: I599585cea12b335ba1a37e2df3f1a3807621602c
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7743343
1 file changed