On 05/16/2012 01:29 PM, Kalle Valo wrote: > + if ((match_set[i].ssid.ssid_len == > + ssid_list[j].ssid.ssid_len) && > + (!memcmp(ssid_list[j].ssid.ssid, > + match_set[i].ssid.ssid, > + match_set[i].ssid.ssid_len))) { > + ssid_list[j].flag |= MATCH_SSID_FLAG; > + ssid_found = true; > + break; > + } Do we have a function like ieee80211_is_same_ssid()? I didn't find anything like that after a quick search. I noticed that wlcore had a similar code like we have here. A common function in cfg80211.h/ieee80211.h for comparing ssids would be nice and less error prone. Kalle -- 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