|
@@ -1116,6 +1116,12 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
|
|
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
|
|
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
|
|
enum nl80211_iftype curr_iftype = dev->ieee80211_ptr->iftype;
|
|
enum nl80211_iftype curr_iftype = dev->ieee80211_ptr->iftype;
|
|
|
|
|
|
|
|
+ if (priv->scan_request) {
|
|
|
|
+ mwifiex_dbg(priv->adapter, ERROR,
|
|
|
|
+ "change virtual interface: scan in process\n");
|
|
|
|
+ return -EBUSY;
|
|
|
|
+ }
|
|
|
|
+
|
|
switch (curr_iftype) {
|
|
switch (curr_iftype) {
|
|
case NL80211_IFTYPE_ADHOC:
|
|
case NL80211_IFTYPE_ADHOC:
|
|
switch (type) {
|
|
switch (type) {
|