]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: fix build for 526370fb85db4b659cff4625eb2f379acaa4a1a8
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 8 Oct 2021 11:21:44 +0000 (11:21 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 8 Oct 2021 11:21:44 +0000 (11:21 +0000)
commit0525ece3554edce14fa68a7fb61078ae2110c44b
tree08de312ee8a07f061c6a9fde3b567dfd7fb884ae
parent76f3b8cb640536de2c370cc2bd60382bbc35cf5d
net80211: fix build for 526370fb85db4b659cff4625eb2f379acaa4a1a8

In 526370fb85db4b659cff4625eb2f379acaa4a1a8 "net80211: proper ssid
length check in setmlme_assoc_adhoc()" we are checking the
sizeof on an array function parameter which leads to a warning that
it will resturn the size of the type of the array rather than the
array size itself.  Use the defined length used both in the ioctl
and the sizing of the array function parameter instead.

Reported by: CI
MFC after: 3 days
X-MFC with: 526370fb85db4b659cff4625eb2f379acaa4a1a8
sys/net80211/ieee80211_ioctl.c