diff --git a/umac/cmn_services/crypto/src/wlan_crypto_ccmp.c b/umac/cmn_services/crypto/src/wlan_crypto_ccmp.c index e9047c8af2c2..ee122b7a741c 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_ccmp.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_ccmp.c @@ -298,18 +298,22 @@ const struct wlan_crypto_cipher gcmp256_cipher_table = { ccmp_demic, }; -const struct wlan_crypto_cipher *ccmp_register(void){ +const struct wlan_crypto_cipher *ccmp_register(void) +{ return &ccmp_cipher_table; } -const struct wlan_crypto_cipher *ccmp256_register(void){ +const struct wlan_crypto_cipher *ccmp256_register(void) +{ return &ccmp256_cipher_table; } -const struct wlan_crypto_cipher *gcmp_register(void){ +const struct wlan_crypto_cipher *gcmp_register(void) +{ return &gcmp_cipher_table; } -const struct wlan_crypto_cipher *gcmp256_register(void){ +const struct wlan_crypto_cipher *gcmp256_register(void) +{ return &gcmp256_cipher_table; } diff --git a/umac/cmn_services/crypto/src/wlan_crypto_none.c b/umac/cmn_services/crypto/src/wlan_crypto_none.c index fc7205a3914c..cc4a68d6e2fa 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_none.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_none.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -77,6 +77,7 @@ const struct wlan_crypto_cipher none_cipher_table = { none_demic, }; -const struct wlan_crypto_cipher *none_register(void){ +const struct wlan_crypto_cipher *none_register(void) +{ return &none_cipher_table; } diff --git a/umac/cmn_services/crypto/src/wlan_crypto_tkip.c b/umac/cmn_services/crypto/src/wlan_crypto_tkip.c index df7e06da3fe0..1d424cd9f7ab 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_tkip.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_tkip.c @@ -168,6 +168,7 @@ const struct wlan_crypto_cipher tkip_cipher_table = { tkip_demic, }; -const struct wlan_crypto_cipher *tkip_register(void){ +const struct wlan_crypto_cipher *tkip_register(void) +{ return &tkip_cipher_table; } diff --git a/umac/cmn_services/crypto/src/wlan_crypto_wapi.c b/umac/cmn_services/crypto/src/wlan_crypto_wapi.c index 20f0fa178453..b42c30b76e2b 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_wapi.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_wapi.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -78,6 +78,7 @@ const struct wlan_crypto_cipher wapi_cipher_table = { wapi_demic, }; -const struct wlan_crypto_cipher *wapi_register(void){ +const struct wlan_crypto_cipher *wapi_register(void) +{ return &wapi_cipher_table; } diff --git a/umac/cmn_services/crypto/src/wlan_crypto_wep.c b/umac/cmn_services/crypto/src/wlan_crypto_wep.c index 323680866381..21421b58c0fe 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_wep.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_wep.c @@ -155,7 +155,8 @@ const struct wlan_crypto_cipher wep_cipher_table = { wep_demic, }; -const struct wlan_crypto_cipher *wep_register(void){ +const struct wlan_crypto_cipher *wep_register(void) +{ return &wep_cipher_table; }