wlcore: fix WLCORE_VENDOR_ATTR_GROUP_KEY policy
authorEliad Peller <eliad@wizery.com>
Mon, 29 Dec 2014 06:24:01 +0000 (08:24 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 9 Jan 2015 13:47:49 +0000 (15:47 +0200)
The attribute type is binary data (with max length).

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/vendor_cmd.c

index ad86a48dcfcbe80d8609952cd32a97b62f3c528b..fd4e9ba176c9b1ab3f16878f95d6041f12e39903 100644 (file)
@@ -21,7 +21,7 @@ static const
 struct nla_policy wlcore_vendor_attr_policy[NUM_WLCORE_VENDOR_ATTR] = {
        [WLCORE_VENDOR_ATTR_FREQ]               = { .type = NLA_U32 },
        [WLCORE_VENDOR_ATTR_GROUP_ID]           = { .type = NLA_U32 },
-       [WLCORE_VENDOR_ATTR_GROUP_KEY]          = { .type = NLA_U32,
+       [WLCORE_VENDOR_ATTR_GROUP_KEY]          = { .type = NLA_BINARY,
                                                    .len = WLAN_MAX_KEY_LEN },
 };