Permalink
Browse files

blue: use mako wifi firmware

  • Loading branch information...
codeworkx
codeworkx committed Dec 27, 2012
1 parent f0a1c19 commit 1a81348f4aa44ad9e29e9cc014a84395ac39bc73
@@ -0,0 +1,13 @@
+# Copyright (C) 2011 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
@@ -0,0 +1,28 @@
+# Copyright (C) 2012 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+COMMON_PATH := vendor/sony/blue-common
+
+PRODUCT_PACKAGES += \
+ WCNSS_qcom_cfg.ini \
+ WCNSS_qcom_wlan_nv.bin
+
+# Prebuilt libraries that are needed to build open-source libraries
+PRODUCT_COPY_FILES := \
+
+# Prima wlan
+PRODUCT_COPY_FILES += \
+ $(COMMON_PATH)/proprietary/system/vendor/firmware/wlan/prima/WCNSS_cfg.dat:system/vendor/firmware/wlan/prima/WCNSS_cfg.dat \
+ $(COMMON_PATH)/proprietary/system/etc/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
+ $(COMMON_PATH)/proprietary/system/etc/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin
@@ -0,0 +1,15 @@
+# Copyright (C) 2011 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$(call inherit-product, vendor/sony/blue-common/common-vendor-blobs.mk)
@@ -0,0 +1,57 @@
+#
+# Copyright (C) 2012 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+ifneq ($(filter mint tsubasa,$(TARGET_DEVICE)),)
+
+# prima wlan
+include $(CLEAR_VARS)
+LOCAL_MODULE := WCNSS_qcom_cfg.ini
+LOCAL_MODULE_CLASS := FAKE
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_OWNER := sony
+include $(BUILD_SYSTEM)/base_rules.mk
+$(LOCAL_BUILT_MODULE): TARGET := /data/misc/wifi/$(LOCAL_MODULE)
+$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/prima/$(LOCAL_MODULE)
+$(LOCAL_BUILT_MODULE):
+ $(hide) echo "Symlink: $(SYMLINK) -> $(TARGET)"
+ $(hide) mkdir -p $(dir $@)
+ $(hide) mkdir -p $(dir $(SYMLINK))
+ $(hide) rm -rf $@
+ $(hide) rm -rf $(SYMLINK)
+ $(hide) ln -sf $(TARGET) $(SYMLINK)
+ $(hide) touch $@
+
+# prima wlan
+include $(CLEAR_VARS)
+LOCAL_MODULE := WCNSS_qcom_wlan_nv.bin
+LOCAL_MODULE_CLASS := FAKE
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_OWNER := sony
+include $(BUILD_SYSTEM)/base_rules.mk
+$(LOCAL_BUILT_MODULE): TARGET := /data/misc/wifi/$(LOCAL_MODULE)
+$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/prima/$(LOCAL_MODULE)
+$(LOCAL_BUILT_MODULE):
+ $(hide) echo "Symlink: $(SYMLINK) -> $(TARGET)"
+ $(hide) mkdir -p $(dir $@)
+ $(hide) mkdir -p $(dir $(SYMLINK))
+ $(hide) rm -rf $@
+ $(hide) rm -rf $(SYMLINK)
+ $(hide) ln -sf $(TARGET) $(SYMLINK)
+ $(hide) touch $@
+
+
+endif
@@ -8,13 +8,16 @@ gEnableImps=1
gEnableIdleScan=0
# Increase sleep duration (seconds) during IMPS
-# 0 implies no periodic wake up from IMPS. Periodic wakeup is
+# 0 implies no periodic wake up from IMPS. Periodic wakeup is
# unnecessary if Idle Scan is disabled.
gImpsModSleepTime=0
# Enable BMPS or not
gEnableBmps=1
+# Enable Close Loop or not
+gEnableCloseLoop=1
+
# Enable suspend or not
# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter
gEnableSuspend=3
@@ -41,8 +44,8 @@ InfraUapsdViSrvIntv=0
InfraUapsdBeSrvIntv=0
InfraUapsdBkSrvIntv=0
-# Disable RSSI FW filtering
-gEnableFWRssiMonitoring=0
+# Enable Firmware RSSI monitoring for roaming
+gEnableFWRssiMonitoring=1
# Make 1x1 the default antenna configuration
gNumRxAnt=1
@@ -53,25 +56,28 @@ gNthBeaconFilter=50
# Enable WAPI or not
# WAPIIsEnabled=0
-# Flags to filter Mcast abd Bcast RX packets.
+# Flags to filter Mcast and Bcast RX packets.
# Value 0: No filtering, 1: Filter all Multicast.
-# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast
+# 2: Filter all Broadcast. 3: Filter all Mcast and Bcast
McastBcastFilter=3
#Flag to enable HostARPOffload feature or not
hostArpOffload=0
#SoftAP Related Parameters
-# AP MAc addr
+# AP MAc addr (obsolete)
gAPMacAddr=000AF58989EF
+# Enable Random BSSID
+gEnableApRandomBssid=1
+
# 802.11n Protection flag
gEnableApProt=1
-#Enable OBSS protection
+# Enable OBSS protection
gEnableApOBSSProt=0
-#Enable/Disable UAPSD for SoftAP
+# Enable/Disable UAPSD for SoftAP
gEnableApUapsd=1
# Fixed Rate
@@ -97,18 +103,31 @@ g11dSupportEnabled=1
# CCX Support and fast transition
CcxEnabled=0
-FastTransitionEnabled=0
+FastTransitionEnabled=1
ImplicitQosIsEnabled=1
gNeighborScanTimerPeriod=200
-gNeighborLookupThreshold=50
-gNeighborReassocThreshold=55
+gNeighborLookupThreshold=76
+gNeighborReassocThreshold=81
-gNeighborScanChannelList=1,11,36,64
gNeighborScanChannelMinTime=20
gNeighborScanChannelMaxTime=30
gMaxNeighborReqTries=3
+# Legacy (non-CCX, non-802.11r) Fast Roaming Support
+# To enable, set FastRoamEnabled=1, gEnableFWRssiMonitoring=1, FastTransitionEnabled=1
+# To disable, set FastRoamEnabled=0, gEnableFWRssiMonitoring=0, FastTransitionEnabled=0
+FastRoamEnabled=1
+
+#Check if the AP to which we are roaming is better than current AP in terms of RSSI.
+#Checking is disabled if set to Zero.Otherwise it will use this value as to how better
+#the RSSI of the new/roamable AP should be for roaming
+RoamRssiDiff=3
+
+#Configure the RSSI gap that will be used to partition/categorize width of
+#each individual category (aka bucket).
+gRssiCatGap=5
+
# SAP Country code
# Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.
# Example
@@ -149,20 +168,23 @@ gApAutoChannelSelection=0
#
gEnablePhyAgcListenMode=128
-#Preferred channel to start BT AMP AP mode (0 means, any channel)
-BtAmpPreferredChannel=0
-
#Preferred band (both or 2.4 only or 5 only)
BandCapability=0
+#Forced Device Listen Interval in multiples of DTIM Period aligned to DTIM
+gEnableModulatedDTIM=3
+
#Beacon Early Termination (1 = enable the BET feature, 0 = disable)
-enableBeaconEarlyTermination=0
-beaconEarlyTerminationWakeInterval=3
+enableBeaconEarlyTermination=1
+beaconEarlyTerminationWakeInterval=11
#Bluetooth Alternate Mac Phy (1 = enable the BT AMP feature, 0 = disable)
gEnableBtAmp=0
-#SOFTAP Channel Range selection
+#Preferred channel to start BT AMP AP mode (0 means, any channel)
+BtAmpPreferredChannel=0
+
+#SOFTAP Channel Range selection
gAPChannelSelectStartChannel=1
gAPChannelSelectEndChannel=11
@@ -171,19 +193,29 @@ gAPChannelSelectEndChannel=11
gAPChannelSelectOperatingBand=0
#Enable Keep alive with non-zero period value
-#gStaKeepAlivePeriod = 30
+gStaKeepAlivePeriod = 25
#If set will start with active scan after driver load, otherwise will start with
#passive scan to find out the domain
gEnableBypass11d=1
#If set to 0, will not scan DFS channels
-gEnableDFSChnlScan=1
+gEnableDFSChnlScan=0
# Enable logp/SSR
gEnableLogp=1
+# Disable HT40
+gChannelBondingMode5GHz=0
+
# Enable Automatic Tx Power control
gEnableAutomaticTxPowerControl=1
+
+# Derive P2P MAC address from primary MAC address
+isP2pDeviceAddrAdministrated=1
+
+# Disable channel 165 for Indonesia
+gIgnore_Chan165=1
+
END
# Note: Configuration parser would not read anything past the END marker
Binary file not shown.
@@ -158,9 +158,6 @@ PRODUCT_COPY_FILES += \
vendor/sony/mint/proprietary/etc/firmware/wcnss.b02:system/etc/firmware/wcnss.b02 \
vendor/sony/mint/proprietary/etc/firmware/wcnss.b04:system/etc/firmware/wcnss.b04 \
vendor/sony/mint/proprietary/etc/firmware/wcnss.mdt:system/etc/firmware/wcnss.mdt \
- vendor/sony/mint/proprietary/etc/firmware/wlan/prima/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
- vendor/sony/mint/proprietary/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
- vendor/sony/mint/proprietary/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin \
vendor/sony/mint/proprietary/lib/egl/eglsubAndroid.so:system/lib/egl/eglsubAndroid.so \
vendor/sony/mint/proprietary/lib/egl/libEGL_adreno200.so:system/lib/egl/libEGL_adreno200.so \
vendor/sony/mint/proprietary/lib/egl/libGLESv1_CM_adreno200.so:system/lib/egl/libGLESv1_CM_adreno200.so \
Binary file not shown.
Oops, something went wrong.

0 comments on commit 1a81348

Please sign in to comment.