On Thu, 2012-07-12 at 18:05 +0200, Johannes Berg wrote: > if (!err && ntype != otype && netif_running(dev)) { > - cfg80211_update_iface_num(rdev, ntype, 1); > - cfg80211_update_iface_num(rdev, otype, -1); > + cfg80211_update_iface_num(rdev, otype, > + CFG80211_IFACE_DOWN); > + cfg80211_update_iface_num(rdev, ntype, > + CFG80211_IFACE_PRE_UP); > + cfg80211_update_iface_num(rdev, ntype, > + CFG80211_IFACE_UP); Ok actually the other way around like it was previously makes more sense to avoid spurious going into/out of monitor... johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html