in_ap = (ap_net_dev != NULL);
dhd_os_spin_unlock(&dhd->pub, flags);
#endif /* SOFTAP */
- if (dhd->iflist[i]->state)
+
+ if (dhd->iflist[i] && dhd->iflist[i]->state)
dhd_op_if(dhd->iflist[i]);
if (dhd->iflist[i] == NULL) {
"!\n\n", __FUNCTION__, i));
continue;
}
+
#ifdef SOFTAP
if (in_ap && dhd->set_macaddress) {
DHD_TRACE(("attempt to set MAC for %s in AP Mode,"
{
struct wl_priv *wl = wlcfg_drv_priv;
-
- if (wl->p2p->vif_created) {
+ if (wl->p2p && wl->p2p->vif_created) {
s32 index = 0;
WL_DBG(("IF_DEL event called from dongle, net %x, vif name: %s\n",
(unsigned int)net, wl->p2p->vir_ifname));