Author: Vignesh R <vignesh.r@timesys.com>
Date: Thu, 2 Dec 2021 12:21:36 +0530

The configure script only checks for the header file
in older kernels NL80211_BSS_STATUS was not implemented
this patch checks for the NL80211_BSS_STATUS token at the configure time

---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 19eb431..4b1ec06 100755
--- a/configure
+++ b/configure
@@ -670,7 +670,8 @@ if [ "$OS" = linux ]; then
 	cat <<EOF >_nl80211.c
 #include <linux/nl80211.h>
 int main(void) {
-	return 0;
+int x = NL80211_BSS_STATUS ;
+        return x;
 }
 EOF
 	if $XCC _nl80211.c -o _nl80211 2>&3; then
-- 
2.7.4

