[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.
This commit is contained in:
Abtin Keshavarzian
2026-04-30 08:14:03 -07:00
committed by GitHub
parent 7319d405f8
commit 7650ecca55
+4 -4
View File
@@ -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); }