On Mon, Feb 28, 2011 at 08:47:44AM -0800, Bernhard Schmidt wrote: > + if (sdata && (sdata->vif.type == NL80211_IFTYPE_ADHOC || > + sdata->vif.type == NL80211_IFTYPE_AP || > + sdata->vif.type == NL80211_IFTYPE_AP_VLAN || > + sdata->vif.type == NL80211_IFTYPE_MESH_POINT || > + sdata->vif.type == NL80211_IFTYPE_P2P_GO) && How about adding a helper as a separate patch that checks this for us and then sprinkling in other areas of code we have that uses the same check? Some thing like ieee80211_sdata_can_beacon(sdata) or whatever. Luis -- 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