Page MenuHomeFreeBSD

net80211: fix checks for (*iv_preamble_update)/(*iv_ht_protmode_update)
ClosedPublic

Authored by bz on Jan 29 2024, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 26, 7:16 AM
Unknown Object (File)
Mon, May 25, 9:18 PM
Unknown Object (File)
Sun, May 24, 7:40 PM
Unknown Object (File)
Sun, May 24, 7:39 PM
Unknown Object (File)
Sat, May 23, 3:09 PM
Unknown Object (File)
Thu, May 21, 7:14 PM
Unknown Object (File)
Sat, May 16, 6:56 AM
Unknown Object (File)
Wed, May 6, 11:19 PM

Details

Summary

Both vap_update_preamble() and vap_update_ht_protmode() also check for
(*iv_erp_protmode_update)() rather than (*iv_preamble_update)()
or (*iv_ht_protmode_update)() before calling the later.
Use the appropriate NULL-function-pointer checks before calling it.

MFC after: 3 days

Test Plan

all three seem unused in the tree so no actual problem (yet)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable