Commit Graph
1 Commits
Author SHA1 Message Date
Shayne ChenandFelix Fietkau 19c8e20c55 mt76: fix possible undetected invalid MAC address
Make sure the MAC address is checked before function returns.

If CONFIG_OF is set and the device node is null, the function will
return directly, and an invalid MAC address will not be checked.

Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2019-12-14 00:18:49 +01:00