mwlwifi icon indicating copy to clipboard operation
mwlwifi copied to clipboard

replace [0] with []

Open neheb opened this issue 10 months ago • 2 comments

The latter has been deprecated upstream and does not work with the bounds checking performed there. Fixes warnings such as:

error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning] 493 | __write_overflow_field(p_size_field, size);

neheb avatar Apr 10 '24 20:04 neheb

Related: https://github.com/openwrt/openwrt/issues/15108

neheb avatar Apr 10 '24 20:04 neheb

Build and run tested on WRT1900ACS with dual 88W8864 radios on Kernel 6.6.25 (applied this PR as patch in OpenWRT sourcetree and ).

No regressions noticed during a short test.

stklcode avatar Apr 13 '24 13:04 stklcode