sonyxperiadev / kernel

Other
353 stars 362 forks source link

[9.12.r1] net: wireless: Fix key index calculation in cfg80211_valid_key_idx() #2604

Closed bartcubbins closed 8 months ago

bartcubbins commented 8 months ago

Fix an indentation issue in the cfg80211_valid_key_idx() in util.c. The if statement checking for the NL80211_EXT_FEATURE_BEACON_PROTECTION feature was not properly aligned, causing a potential logic error. This commit corrects the indentation to ensure proper conditional evaluation.

Fixes: 24bb0d9 ("treewide: 4.19.194").