staging: r8188eu: use ie buffer in update_beacon_info
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Nov 2022 16:01:24 +0000 (17:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:28:58 +0000 (13:28 +0100)
commit018da8b60688caec763d75cc6fb022a165028cea
tree5a99c3eda3d1b5a4aceb51f914f5f37d502b98b8
parent1ed513f3e0ff13f2a84e3479b7774f213c7d7066
staging: r8188eu: use ie buffer in update_beacon_info

The update_beacon_info function parses information elements of a beacon
message. It should take the pointer to the information elements and their
total length, not the entire beacon message.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20221126160129.178697-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/core/rtw_wlan_util.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h