> +static const u32 rndis_cipher_suites[] = { > + WLAN_CIPHER_SUITE_WEP40, > + WLAN_CIPHER_SUITE_WEP104, > + WLAN_CIPHER_SUITE_TKIP, > + WLAN_CIPHER_SUITE_CCMP, > +}; > + Okay, this is static, a.k.a. set-in-stone. Then why ... > + memcpy(priv->cipher_suites, rndis_cipher_suites, > + sizeof(rndis_cipher_suites)); ... copy this to priv? > + wiphy->cipher_suites = priv->cipher_suites; > + wiphy->n_cipher_suites = ARRAY_SIZE(rndis_cipher_suites); Wouldn't + wiphy->cipher_suide = rndis_cipher_suites; + wiphy->n_cipher_suites = ARRAY_SIZE(rndis_cipher_suites); do the job? That way you can drop priv->cipher_suites. -- http://www.holgerschurig.de -- 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