From 7650ecca5580306a14fbaaedc83c3b4dcba7452c Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 30 Apr 2026 08:14:03 -0700 Subject: [PATCH] [radio] rename local variable in `SetMacKey()` (#13013) This commit renames the local variable `aKeyType` to `keyType` in `Radio::SetMacKey()` to align with the project's naming conventions. The `a` prefix is reserved for function arguments, while local variables use `lowerCamelCase` without a prefix. --- src/core/radio/radio.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/radio/radio.hpp b/src/core/radio/radio.hpp index 31cb1d283..a90dfb00e 100644 --- a/src/core/radio/radio.hpp +++ b/src/core/radio/radio.hpp @@ -916,15 +916,15 @@ inline void Radio::SetMacKey(uint8_t aKeyIdMode, const Mac::KeyMaterial &aCurrKey, const Mac::KeyMaterial &aNextKey) { - otRadioKeyType aKeyType; + otRadioKeyType keyType; #if OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE - aKeyType = OT_KEY_TYPE_KEY_REF; + keyType = OT_KEY_TYPE_KEY_REF; #else - aKeyType = OT_KEY_TYPE_LITERAL_KEY; + keyType = OT_KEY_TYPE_LITERAL_KEY; #endif - otPlatRadioSetMacKey(GetInstancePtr(), aKeyIdMode, aKeyId, &aPrevKey, &aCurrKey, &aNextKey, aKeyType); + otPlatRadioSetMacKey(GetInstancePtr(), aKeyIdMode, aKeyId, &aPrevKey, &aCurrKey, &aNextKey, keyType); } inline Error Radio::GetTransmitPower(int8_t &aPower) { return otPlatRadioGetTransmitPower(GetInstancePtr(), &aPower); }