Secured mesh requires the key installation using cipher suite AES CMAC for multicast management frame. This patch will allow the key installation to proceed. Otherwise, it will be rejected due to hw encryption is not supported. Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@xxxxxxxxx> --- net/wireless/util.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/wireless/util.c b/net/wireless/util.c index ef35f4e..1b665a7 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -253,7 +253,9 @@ int cfg80211_validate_key_settings(struct cfg80211_registered_device *rdev, } } - if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher)) + if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher) && + !(params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && + (rdev->wiphy.flags & WIPHY_FLAG_MESH_AUTH))) return -EINVAL; return 0; -- 1.7.0.4 -- 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