ret = -ENOMEM;
return ERR_PTR(ret);
}
-
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0))
+ hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
+ #endif
epub = hw->priv;
memset(epub, 0, sizeof(*epub));
epub->hw = hw;
wiphy_warn(local->hw.wiphy,
"Failed to add default virtual iface\n");
}
-
+ // ESP8089 register p2p0 IFTYPE_STA
+ #ifdef CONFIG_ESP8089
+ if (local->hw.wiphy->interface_modes &(BIT(NL80211_IFTYPE_P2P_GO) |
+ BIT(NL80211_IFTYPE_P2P_CLIENT))) {
+ result = ieee80211_if_add(local, "p2p%d", NULL,
+ NL80211_IFTYPE_STATION, NULL);
+ if (result)
+ wiphy_warn(local->hw.wiphy,
+ "Failed to add default virtual iface\n");
+ }
+
+ #endif
rtnl_unlock();
local->network_latency_notifier.notifier_call =