bcmdhd4361: fake platform version
authorMichael Benedict <michaelbt@live.com>
Thu, 12 Sep 2019 14:51:34 +0000 (00:51 +1000)
committerMichael Benedict <michaelbt@live.com>
Thu, 12 Sep 2019 15:05:03 +0000 (01:05 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/net/wireless/bcmdhd4361/Makefile

index 3953b192ac8fc34347c8d7314546a0f3a0e502db..a89c70c55d7204c88cafa0cbce3852d32e763eb6 100644 (file)
@@ -312,15 +312,7 @@ endif
 DHDCFLAGS += -DBCMCRYPTO_COMPONENT
 
 # Android Version Check from Platform source
-ifneq ($(ANDROID_VERSION),)
-MAJOR_VERSION := $(shell echo $(ANDROID_VERSION) | rev | cut -c 5- | rev)
-DHDCFLAGS += -DANDROID_PLATFORM_VERSION=$(MAJOR_VERSION)
-else
-ifneq ($(PLATFORM_VERSION),)
-MAJOR_VERSION := $(shell echo $(PLATFORM_VERSION) | cut -d "." -f 1)
-DHDCFLAGS += -DANDROID_PLATFORM_VERSION=$(MAJOR_VERSION)
-endif
-endif
+DHDCFLAGS += -DANDROID_PLATFORM_VERSION=9
 
 # TCP SYNC flood attack block
 DHDCFLAGS += -DDHDTCPSYNC_FLOOD_BLK -DTCP_SYNC_FLOOD_LIMIT=50