This changes the `test` Makefile target conditional to pass for Sapling cloned repos.
I was building this locally and ran into this issue because I cloned the repo using Sapling (https://sapling-scm.com) which uses a `.sl` directory at the repo root as opposed to a `.git` directory, and as such got the error message about zip files. Getting around the message was just making an empty top level `.git` directory, but IMO it shouldn't show this error in the first place.
As of now, this would also fail with for Mercurial cloned repos (which uses a `.hg` directory). I thought of generalizing it to check for any hidden top level directory, but technically `.git` can be a can be a text file (see: https://git-scm.com/docs/gitrepository-layout)
Also, I opted to not change the message printed in the failure case to include this as it might cause more confusion than benefit.
Routine rtw_get_sec_ie() appears to suffer from a bug triggered under
unusual circumstances. This bug is exposed by first sending a deauthentication
frame and at the same time sending a much larger frame. After doing some debugging
the cause of the lockup of the CPU was that while rtw_get_sec_ie() attempts to
read the beacon frame sent by the router/AP, the size of the beacon is changed
since it is a reference and not a copy. By having a "rogue" beacon frame being
very large which isn't normal and not considered in the design, the computer
was stuck in an endless CPU lockup.
Routine translate_scan(), which calls rtw_get_sec_ie() is protected by a
spinlock. Add that spinlock around other calls of the routine.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
If a kernel is being used that generates no drivers in the
/lib/modules/$(KVER)/kernel/drivers/net/wireless directory, the installation
will fail. The fix is to generate that directory if it is not present.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
These changed update the built-in version of hostapd from v0.8 to 2.9.
The rtl871xdrv driver comes from git://github.com/pritambaral/hostapd-rtl871xdrv.git
whose included patch has been applied to the standard source code.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
I will no longer support the download of zip versions for the source.
whenever there is any change in the source, the user must redo the
entire download and unpacking. This sequence is a lot more complicated
that a simple 'git pull', thus the user skips that step and I have to
deal with complaints about a problem I have already fixed. Now, the
make operation will fail with an error.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
In kernel 5.4.0-rc3, the kernel includes define a "fallthrough" macro,
which breaks a couple of the statements in the driver. Use __fallthrough__
instead.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>