mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[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:
committed by
GitHub
parent
7319d405f8
commit
7650ecca55
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user