We never suggest using an older version of fedora that is past EOL. It never gets any updates of any kind and security issues remain.
I suggest that you do a clean install of fedora 40, enable the rpmfusion repos as shown here, then install the broadcom-wl driver from rpmfusion.
It is available as you see in the rpmfusion-nonfree repo.
# dnf list broadcom-wl
Last metadata expiration check: 0:47:36 ago on Sun 13 Oct 2024 05:42:03 PM CDT.
Available Packages
broadcom-wl.noarch 6.30.223.271-23.fc40 rpmfusion-nonfree