openwrtv3/target/linux/brcm2708/patches-3.10/0097-wifi-Update-to-newer-rtl8192cu-driver-release.patch
Florian Fainelli 6918ea2484 brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
Update the 3.10 rasperry patches by rebasing raspberry/rpi-3.10-y
against linux-stable/v3.10.49.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 42678
2014-09-27 19:10:51 +00:00

139373 lines
4.5 MiB

From 5aec58e64fb0ba4e582150d0506e9dddea6efbe3 Mon Sep 17 00:00:00 2001
From: popcornmix <popcornmix@gmail.com>
Date: Sat, 9 Nov 2013 12:17:56 +0000
Subject: [PATCH 097/196] wifi: Update to newer rtl8192cu driver release
---
drivers/net/wireless/rtl8192cu/Kconfig | 4 +-
drivers/net/wireless/rtl8192cu/Makefile | 343 +-
drivers/net/wireless/rtl8192cu/clean | 4 -
.../net/wireless/rtl8192cu/core/efuse/rtw_efuse.c | 68 +-
drivers/net/wireless/rtl8192cu/core/rtw_ap.c | 2940 ++
drivers/net/wireless/rtl8192cu/core/rtw_br_ext.c | 25 +-
drivers/net/wireless/rtl8192cu/core/rtw_cmd.c | 723 +-
drivers/net/wireless/rtl8192cu/core/rtw_debug.c | 672 +-
drivers/net/wireless/rtl8192cu/core/rtw_eeprom.c | 3 +-
.../net/wireless/rtl8192cu/core/rtw_ieee80211.c | 485 +-
drivers/net/wireless/rtl8192cu/core/rtw_io.c | 276 +-
.../net/wireless/rtl8192cu/core/rtw_ioctl_query.c | 3 +-
.../net/wireless/rtl8192cu/core/rtw_ioctl_rtl.c | 3 +-
.../net/wireless/rtl8192cu/core/rtw_ioctl_set.c | 374 +-
drivers/net/wireless/rtl8192cu/core/rtw_iol.c | 15 +-
drivers/net/wireless/rtl8192cu/core/rtw_mlme.c | 966 +-
drivers/net/wireless/rtl8192cu/core/rtw_mlme_ext.c | 11414 ++++---
drivers/net/wireless/rtl8192cu/core/rtw_mp.c | 111 +-
drivers/net/wireless/rtl8192cu/core/rtw_mp_ioctl.c | 313 +-
drivers/net/wireless/rtl8192cu/core/rtw_p2p.c | 3044 +-
drivers/net/wireless/rtl8192cu/core/rtw_pwrctrl.c | 1319 +-
drivers/net/wireless/rtl8192cu/core/rtw_recv.c | 2328 +-
drivers/net/wireless/rtl8192cu/core/rtw_rf.c | 3 +-
drivers/net/wireless/rtl8192cu/core/rtw_security.c | 420 +-
drivers/net/wireless/rtl8192cu/core/rtw_sreset.c | 352 +
drivers/net/wireless/rtl8192cu/core/rtw_sta_mgt.c | 232 +-
drivers/net/wireless/rtl8192cu/core/rtw_tdls.c | 2941 ++
.../net/wireless/rtl8192cu/core/rtw_wlan_util.c | 663 +-
drivers/net/wireless/rtl8192cu/core/rtw_xmit.c | 2161 +-
drivers/net/wireless/rtl8192cu/hal/HalPwrSeqCmd.c | 177 +
drivers/net/wireless/rtl8192cu/hal/dm.c | 314 +
drivers/net/wireless/rtl8192cu/hal/dm.h | 30 +
drivers/net/wireless/rtl8192cu/hal/hal_com.c | 371 +
drivers/net/wireless/rtl8192cu/hal/hal_init.c | 120 -
drivers/net/wireless/rtl8192cu/hal/hal_intf.c | 546 +
.../wireless/rtl8192cu/hal/rtl8192c/rtl8192c_cmd.c | 504 +-
.../wireless/rtl8192cu/hal/rtl8192c/rtl8192c_dm.c | 608 +-
.../rtl8192cu/hal/rtl8192c/rtl8192c_hal_init.c | 410 +-
.../wireless/rtl8192cu/hal/rtl8192c/rtl8192c_mp.c | 31 +-
.../rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c | 1726 +-
.../rtl8192cu/hal/rtl8192c/rtl8192c_rf6052.c | 154 +-
.../rtl8192cu/hal/rtl8192c/rtl8192c_rxdesc.c | 121 +-
.../rtl8192cu/hal/rtl8192c/rtl8192c_sreset.c | 257 +-
.../rtl8192cu/hal/rtl8192c/rtl8192c_xmit.c | 63 +
.../rtl8192cu/hal/rtl8192c/usb/Hal8192CUHWImg.c | 11548 ++++---
.../rtl8192cu/hal/rtl8192c/usb/rtl8192cu_led.c | 403 +-
.../rtl8192cu/hal/rtl8192c/usb/rtl8192cu_recv.c | 159 +-
.../rtl8192cu/hal/rtl8192c/usb/rtl8192cu_xmit.c | 470 +-
.../rtl8192cu/hal/rtl8192c/usb/usb_halinit.c | 1758 +-
.../rtl8192cu/hal/rtl8192c/usb/usb_ops_ce.c | 5 +-
.../rtl8192cu/hal/rtl8192c/usb/usb_ops_linux.c | 1291 +-
.../rtl8192cu/hal/rtl8192c/usb/usb_ops_xp.c | 7 +-
drivers/net/wireless/rtl8192cu/ifcfg-wlan0 | 0
.../wireless/rtl8192cu/include/Hal8192CEHWImg.h | 16 +-
.../wireless/rtl8192cu/include/Hal8192CPhyCfg.h | 35 +-
.../wireless/rtl8192cu/include/Hal8192CPhyReg.h | 21 +
.../wireless/rtl8192cu/include/Hal8192CUHWImg.h | 26 +-
.../wireless/rtl8192cu/include/Hal8192DEHWImg.h | 82 +-
.../rtl8192cu/include/Hal8192DETestHWImg.h | 54 -
.../wireless/rtl8192cu/include/Hal8192DPhyCfg.h | 26 +-
.../wireless/rtl8192cu/include/Hal8192DUHWImg.h | 4 +-
.../rtl8192cu/include/Hal8192DUHWImg_wowlan.h | 2 +-
.../rtl8192cu/include/Hal8192DUTestHWImg.h | 54 -
.../net/wireless/rtl8192cu/include/HalPwrSeqCmd.h | 137 +
drivers/net/wireless/rtl8192cu/include/autoconf.h | 114 +-
.../net/wireless/rtl8192cu/include/basic_types.h | 45 +
.../wireless/rtl8192cu/include/byteorder/generic.h | 9 +-
.../wireless/rtl8192cu/include/byteorder/swab.h | 15 +-
.../wireless/rtl8192cu/include/byteorder/swabb.h | 3 +-
drivers/net/wireless/rtl8192cu/include/drv_conf.h | 2 +-
drivers/net/wireless/rtl8192cu/include/drv_types.h | 305 +-
.../wireless/rtl8192cu/include/drv_types_sdio.h | 70 +
drivers/net/wireless/rtl8192cu/include/farray.h | 31480 -------------------
drivers/net/wireless/rtl8192cu/include/hal_com.h | 146 +
drivers/net/wireless/rtl8192cu/include/hal_init.h | 305 -
drivers/net/wireless/rtl8192cu/include/hal_intf.h | 432 +
drivers/net/wireless/rtl8192cu/include/ieee80211.h | 389 +-
drivers/net/wireless/rtl8192cu/include/if_ether.h | 30 +-
.../wireless/rtl8192cu/include/ioctl_cfg80211.h | 105 +-
drivers/net/wireless/rtl8192cu/include/ip.h | 27 +-
.../wireless/rtl8192cu/include/linux/wireless.h | 90 +
.../net/wireless/rtl8192cu/include/mlme_osdep.h | 4 -
.../net/wireless/rtl8192cu/include/osdep_intf.h | 61 +-
.../net/wireless/rtl8192cu/include/osdep_service.h | 1096 +-
drivers/net/wireless/rtl8192cu/include/pci_ops.h | 2 +
.../net/wireless/rtl8192cu/include/rtl8192c_cmd.h | 50 +-
.../net/wireless/rtl8192cu/include/rtl8192c_dm.h | 140 +-
.../wireless/rtl8192cu/include/rtl8192c_event.h | 3 +-
.../net/wireless/rtl8192cu/include/rtl8192c_hal.h | 110 +-
.../net/wireless/rtl8192cu/include/rtl8192c_led.h | 3 +-
.../net/wireless/rtl8192cu/include/rtl8192c_recv.h | 23 +-
.../net/wireless/rtl8192cu/include/rtl8192c_rf.h | 3 +-
.../net/wireless/rtl8192cu/include/rtl8192c_spec.h | 66 +-
.../wireless/rtl8192cu/include/rtl8192c_sreset.h | 26 +-
.../net/wireless/rtl8192cu/include/rtl8192c_xmit.h | 68 +-
.../net/wireless/rtl8192cu/include/rtl8192d_cmd.h | 17 +-
.../net/wireless/rtl8192cu/include/rtl8192d_dm.h | 52 +-
.../net/wireless/rtl8192cu/include/rtl8192d_hal.h | 171 +-
.../net/wireless/rtl8192cu/include/rtl8192d_led.h | 3 +-
.../net/wireless/rtl8192cu/include/rtl8192d_recv.h | 6 +-
.../net/wireless/rtl8192cu/include/rtl8192d_rf.h | 3 +-
.../net/wireless/rtl8192cu/include/rtl8192d_spec.h | 60 +-
.../net/wireless/rtl8192cu/include/rtl8192d_xmit.h | 69 +-
.../net/wireless/rtl8192cu/include/rtw_android.h | 18 +-
drivers/net/wireless/rtl8192cu/include/rtw_ap.h | 64 +
.../net/wireless/rtl8192cu/include/rtw_byteorder.h | 3 +-
drivers/net/wireless/rtl8192cu/include/rtw_cmd.h | 63 +-
drivers/net/wireless/rtl8192cu/include/rtw_debug.h | 287 +-
.../net/wireless/rtl8192cu/include/rtw_eeprom.h | 3 +-
drivers/net/wireless/rtl8192cu/include/rtw_efuse.h | 5 +-
drivers/net/wireless/rtl8192cu/include/rtw_event.h | 6 +-
drivers/net/wireless/rtl8192cu/include/rtw_ht.h | 3 +-
drivers/net/wireless/rtl8192cu/include/rtw_io.h | 83 +-
drivers/net/wireless/rtl8192cu/include/rtw_ioctl.h | 22 +-
.../wireless/rtl8192cu/include/rtw_ioctl_query.h | 3 +-
.../net/wireless/rtl8192cu/include/rtw_ioctl_rtl.h | 3 +-
.../net/wireless/rtl8192cu/include/rtw_ioctl_set.h | 11 +-
drivers/net/wireless/rtl8192cu/include/rtw_led.h | 23 +-
drivers/net/wireless/rtl8192cu/include/rtw_mlme.h | 295 +-
.../net/wireless/rtl8192cu/include/rtw_mlme_ext.h | 275 +-
drivers/net/wireless/rtl8192cu/include/rtw_mp.h | 10 +-
.../net/wireless/rtl8192cu/include/rtw_mp_ioctl.h | 2 +-
.../wireless/rtl8192cu/include/rtw_mp_phy_regdef.h | 3 +-
drivers/net/wireless/rtl8192cu/include/rtw_p2p.h | 18 +-
.../net/wireless/rtl8192cu/include/rtw_pwrctrl.h | 125 +-
drivers/net/wireless/rtl8192cu/include/rtw_qos.h | 3 +-
drivers/net/wireless/rtl8192cu/include/rtw_recv.h | 237 +-
drivers/net/wireless/rtl8192cu/include/rtw_rf.h | 2 +-
.../net/wireless/rtl8192cu/include/rtw_security.h | 38 +-
.../net/wireless/rtl8192cu/include/rtw_sreset.h | 74 +
drivers/net/wireless/rtl8192cu/include/rtw_tdls.h | 143 +
.../net/wireless/rtl8192cu/include/rtw_version.h | 2 +-
drivers/net/wireless/rtl8192cu/include/rtw_xmit.h | 254 +-
drivers/net/wireless/rtl8192cu/include/sdio_hal.h | 34 -
drivers/net/wireless/rtl8192cu/include/sdio_ops.h | 80 -
.../net/wireless/rtl8192cu/include/sdio_ops_ce.h | 56 -
.../wireless/rtl8192cu/include/sdio_ops_linux.h | 55 -
.../net/wireless/rtl8192cu/include/sdio_ops_xp.h | 56 -
.../net/wireless/rtl8192cu/include/sdio_osintf.h | 48 -
drivers/net/wireless/rtl8192cu/include/sta_info.h | 117 +-
drivers/net/wireless/rtl8192cu/include/usb_hal.h | 9 +-
drivers/net/wireless/rtl8192cu/include/usb_ops.h | 26 +-
.../net/wireless/rtl8192cu/include/usb_ops_linux.h | 63 +
.../net/wireless/rtl8192cu/include/usb_osintf.h | 3 +-
.../wireless/rtl8192cu/include/usb_vendor_req.h | 3 +-
drivers/net/wireless/rtl8192cu/include/wifi.h | 134 +-
.../net/wireless/rtl8192cu/include/wlan_bssdef.h | 292 +-
.../net/wireless/rtl8192cu/include/xmit_osdep.h | 11 +-
.../rtl8192cu/os_dep/linux/ioctl_cfg80211.c | 3771 ++-
.../wireless/rtl8192cu/os_dep/linux/ioctl_linux.c | 5232 ++-
.../wireless/rtl8192cu/os_dep/linux/mlme_linux.c | 236 +-
.../net/wireless/rtl8192cu/os_dep/linux/os_intfs.c | 2049 +-
.../net/wireless/rtl8192cu/os_dep/linux/pci_intf.c | 1002 +-
.../rtl8192cu/os_dep/linux/pci_ops_linux.c | 24 +
.../wireless/rtl8192cu/os_dep/linux/recv_linux.c | 142 +-
.../wireless/rtl8192cu/os_dep/linux/rtw_android.c | 220 +-
.../wireless/rtl8192cu/os_dep/linux/sdio_intf.c | 922 -
.../net/wireless/rtl8192cu/os_dep/linux/usb_intf.c | 1726 +-
.../rtl8192cu/os_dep/linux/usb_ops_linux.c | 649 +
.../wireless/rtl8192cu/os_dep/linux/xmit_linux.c | 136 +-
.../net/wireless/rtl8192cu/os_dep/osdep_service.c | 1143 +-
drivers/net/wireless/rtl8192cu/runwpa | 20 +
drivers/net/wireless/rtl8192cu/wlan0dhcp | 0
163 files changed, 48963 insertions(+), 60712 deletions(-)
mode change 100644 => 100755 drivers/net/wireless/rtl8192cu/clean
create mode 100644 drivers/net/wireless/rtl8192cu/core/rtw_ap.c
create mode 100644 drivers/net/wireless/rtl8192cu/core/rtw_sreset.c
create mode 100644 drivers/net/wireless/rtl8192cu/core/rtw_tdls.c
create mode 100644 drivers/net/wireless/rtl8192cu/hal/HalPwrSeqCmd.c
create mode 100644 drivers/net/wireless/rtl8192cu/hal/dm.c
create mode 100644 drivers/net/wireless/rtl8192cu/hal/dm.h
create mode 100644 drivers/net/wireless/rtl8192cu/hal/hal_com.c
delete mode 100644 drivers/net/wireless/rtl8192cu/hal/hal_init.c
create mode 100644 drivers/net/wireless/rtl8192cu/hal/hal_intf.c
create mode 100644 drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_xmit.c
mode change 100644 => 100755 drivers/net/wireless/rtl8192cu/ifcfg-wlan0
delete mode 100644 drivers/net/wireless/rtl8192cu/include/Hal8192DETestHWImg.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/Hal8192DUTestHWImg.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/HalPwrSeqCmd.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/drv_types_sdio.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/farray.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/hal_com.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/hal_init.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/hal_intf.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/linux/wireless.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/rtw_ap.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/rtw_sreset.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/rtw_tdls.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/sdio_hal.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/sdio_ops.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/sdio_ops_ce.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/sdio_ops_linux.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/sdio_ops_xp.h
delete mode 100644 drivers/net/wireless/rtl8192cu/include/sdio_osintf.h
create mode 100644 drivers/net/wireless/rtl8192cu/include/usb_ops_linux.h
create mode 100644 drivers/net/wireless/rtl8192cu/os_dep/linux/pci_ops_linux.c
delete mode 100644 drivers/net/wireless/rtl8192cu/os_dep/linux/sdio_intf.c
create mode 100644 drivers/net/wireless/rtl8192cu/os_dep/linux/usb_ops_linux.c
create mode 100755 drivers/net/wireless/rtl8192cu/runwpa
mode change 100644 => 100755 drivers/net/wireless/rtl8192cu/wlan0dhcp
diff --git a/drivers/net/wireless/rtl8192cu/Kconfig b/drivers/net/wireless/rtl8192cu/Kconfig
index ef46361..bee5ed6 100644
--- a/drivers/net/wireless/rtl8192cu/Kconfig
+++ b/drivers/net/wireless/rtl8192cu/Kconfig
@@ -1,8 +1,6 @@
config RTL8192CU
tristate "Realtek 8192C USB WiFi"
depends on USB
- select WIRELESS_EXT
- select WEXT_PRIV
---help---
- Enable wireless network adapters based on Realtek RTL8192C chipset family, such as EDUP nano series
+ Help message of RTL8192CU
diff --git a/drivers/net/wireless/rtl8192cu/Makefile b/drivers/net/wireless/rtl8192cu/Makefile
index b52cace..c399011 100644
--- a/drivers/net/wireless/rtl8192cu/Makefile
+++ b/drivers/net/wireless/rtl8192cu/Makefile
@@ -1,15 +1,15 @@
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -O3
-#EXTRA_CFLAGS += -Wall
-#EXTRA_CFLAGS += -Wextra
+#EXTRA_CFLAGS += -Wall
+#EXTRA_CFLAGS += -Wextra
#EXTRA_CFLAGS += -Werror
#EXTRA_CFLAGS += -pedantic
-#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
+#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-EXTRA_CFLAGS += -Wno-unused-variable
-EXTRA_CFLAGS += -Wno-unused-value
-EXTRA_CFLAGS += -Wno-unused-label
+EXTRA_CFLAGS += -Wno-unused-variable
+EXTRA_CFLAGS += -Wno-unused-value
+EXTRA_CFLAGS += -Wno-unused-label
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused
@@ -22,23 +22,26 @@ CONFIG_AUTOCFG_CP = n
CONFIG_RTL8192C = y
CONFIG_RTL8192D = n
+CONFIG_RTL8723A = n
CONFIG_USB_HCI = y
CONFIG_PCI_HCI = n
CONFIG_SDIO_HCI = n
CONFIG_MP_INCLUDED = n
-CONFIG_POWER_SAVING = y
-CONFIG_USB_AUTOSUSPEND = n
-CONFIG_HW_PWRP_DETECTION = n
-CONFIG_WIFI_TEST = n
-CONFIG_BT_COEXISTENCE = n
-CONFIG_RTL8192CU_REDEFINE_1X1 =n
-CONFIG_WAKE_ON_WLAN = n
-
-CONFIG_PLATFORM_I386_PC = n
+CONFIG_POWER_SAVING = y
+CONFIG_USB_AUTOSUSPEND = n
+CONFIG_HW_PWRP_DETECTION = n
+CONFIG_WIFI_TEST = n
+CONFIG_BT_COEXISTENCE = n
+CONFIG_RTL8192CU_REDEFINE_1X1 = n
+CONFIG_INTEL_WIDI = n
+CONFIG_WAKE_ON_WLAN = n
+
+CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_TI_AM3517 = n
CONFIG_PLATFORM_ANDROID_X86 = n
+CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
CONFIG_PLATFORM_ARM_PXA2XX = n
CONFIG_PLATFORM_ARM_S3C6K4 = n
@@ -50,44 +53,33 @@ CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_MSTAR389 = n
CONFIG_PLATFORM_MT53XX = n
CONFIG_PLATFORM_ARM_MX51_241H = n
+CONFIG_PLATFORM_FS_MX61 = n
CONFIG_PLATFORM_ACTIONS_ATJ227X = n
-CONFIG_PLATFORM_ARM_TEGRA3 = n
+CONFIG_PLATFORM_TEGRA3_CARDHU = n
+CONFIG_PLATFORM_TEGRA4_DALMORE = n
CONFIG_PLATFORM_ARM_TCC8900 = n
CONFIG_PLATFORM_ARM_TCC8920 = n
+CONFIG_PLATFORM_ARM_TCC8920_JB42 = n
CONFIG_PLATFORM_ARM_RK2818 = n
CONFIG_PLATFORM_ARM_TI_PANDA = n
CONFIG_PLATFORM_MIPS_JZ4760 = n
CONFIG_PLATFORM_DMP_PHILIPS = n
-CONFIG_PLATFORM_TI_DM365 = n
+CONFIG_PLATFORM_TI_DM365 = n
CONFIG_PLATFORM_MN10300 = n
CONFIG_PLATFORM_MSTAR_TITANIA12 = n
-CONFIG_PLATFORM_ARM_BCM2708 = y
+CONFIG_PLATFORM_MSTAR_A3 = n
+CONFIG_PLATFORM_ARM_SUNxI = n
+CONFIG_PLATFORM_ARM_SUN6I = n
CONFIG_DRVEXT_MODULE = n
export TopDIR ?= $(shell pwd)
-ifeq ($(CONFIG_RTL8712), y)
-
-RTL871X = rtl8712
-
-ifeq ($(CONFIG_SDIO_HCI), y)
-MODULE_NAME = 8712s
-endif
-ifeq ($(CONFIG_USB_HCI), y)
-MODULE_NAME = 8712u
-endif
-
-endif
-
ifeq ($(CONFIG_RTL8192C), y)
RTL871X = rtl8192c
-ifeq ($(CONFIG_SDIO_HCI), y)
-MODULE_NAME = 8192cs
-endif
ifeq ($(CONFIG_USB_HCI), y)
MODULE_NAME = 8192cu
FW_FILES := hal/$(RTL871X)/usb/Hal8192CUHWImg.o
@@ -100,7 +92,9 @@ MODULE_NAME = 8192ce
FW_FILES := hal/$(RTL871X)/pci/Hal8192CEHWImg.o
endif
-CHIP_FILES := hal/$(RTL871X)/$(RTL871X)_sreset.o
+CHIP_FILES := \
+ hal/$(RTL871X)/$(RTL871X)_sreset.o \
+ hal/$(RTL871X)/$(RTL871X)_xmit.o
CHIP_FILES += $(FW_FILES)
endif
@@ -108,111 +102,101 @@ ifeq ($(CONFIG_RTL8192D), y)
RTL871X = rtl8192d
-ifeq ($(CONFIG_SDIO_HCI), y)
-MODULE_NAME = 8192ds
-endif
ifeq ($(CONFIG_USB_HCI), y)
MODULE_NAME = 8192du
-FW_FILES := hal/$(RTL871X)/usb/Hal8192DUHWImg.o \
- hal/$(RTL871X)/usb/Hal8192DUTestHWImg.o
+FW_FILES := hal/$(RTL871X)/usb/Hal8192DUHWImg.o
ifneq ($(CONFIG_WAKE_ON_WLAN), n)
FW_FILES += hal/$(RTL871X)/usb/Hal8192DUHWImg_wowlan.o
endif
endif
ifeq ($(CONFIG_PCI_HCI), y)
MODULE_NAME = 8192de
-FW_FILES := hal/$(RTL871X)/pci/Hal8192DEHWImg.o \
- hal/$(RTL871X)/pci/Hal8192DETestHWImg.o
+FW_FILES := hal/$(RTL871X)/pci/Hal8192DEHWImg.o
endif
+CHIP_FILES := \
+ hal/$(RTL871X)/$(RTL871X)_xmit.o
CHIP_FILES += $(FW_FILES)
endif
-ifeq ($(CONFIG_SDIO_HCI), y)
+ifeq ($(CONFIG_RTL8723A), y)
-HCI_NAME = sdio
-
-_OS_INTFS_FILES := os_dep/osdep_service.o \
- os_dep/linux/os_intfs.o \
- os_dep/linux/sdio_intf.o \
- os_dep/linux/ioctl_linux.o \
- os_dep/linux/xmit_linux.o \
- os_dep/linux/mlme_linux.o \
- os_dep/linux/recv_linux.o \
- os_dep/linux/rtw_android.o
-
-_HAL_INTFS_FILES := hal/$(RTL871X)/hal_init.o \
- hal/$(RTL871X)/sdio_halinit.o \
- hal/$(RTL871X)/sdio_ops.o \
- hal/$(RTL871X)/sdio_ops_linux.o
+RTL871X = rtl8723a
+ifeq ($(CONFIG_SDIO_HCI), y)
+MODULE_NAME = 8723as
+FW_FILES := hal/$(RTL871X)/sdio/Hal8723SHWImg.o
endif
-
ifeq ($(CONFIG_USB_HCI), y)
+MODULE_NAME = 8723au
+FW_FILES := hal/$(RTL871X)/usb/Hal8723UHWImg.o
+endif
-HCI_NAME = usb
+ifeq ($(CONFIG_PCI_HCI), y)
+MODULE_NAME = 8723ae
+FW_FILES := hal/$(RTL871X)/pci/Hal8723EHWImg.o
+endif
-_OS_INTFS_FILES := os_dep/osdep_service.o \
- os_dep/linux/os_intfs.o \
- os_dep/linux/$(HCI_NAME)_intf.o \
- os_dep/linux/ioctl_linux.o \
- os_dep/linux/xmit_linux.o \
- os_dep/linux/mlme_linux.o \
- os_dep/linux/recv_linux.o \
- os_dep/linux/ioctl_cfg80211.o \
- os_dep/linux/rtw_android.o
+PWRSEQ_FILES := hal/HalPwrSeqCmd.o \
+ hal/$(RTL871X)/Hal8723PwrSeq.o
-_HAL_INTFS_FILES := hal/hal_init.o \
- hal/$(RTL871X)/$(RTL871X)_hal_init.o \
- hal/$(RTL871X)/$(RTL871X)_phycfg.o \
- hal/$(RTL871X)/$(RTL871X)_rf6052.o \
- hal/$(RTL871X)/$(RTL871X)_dm.o \
- hal/$(RTL871X)/$(RTL871X)_rxdesc.o \
- hal/$(RTL871X)/$(RTL871X)_cmd.o \
- hal/$(RTL871X)/$(RTL871X)_mp.o \
- hal/$(RTL871X)/usb/usb_ops_linux.o \
- hal/$(RTL871X)/usb/usb_halinit.o \
- hal/$(RTL871X)/usb/rtl$(MODULE_NAME)_led.o \
- hal/$(RTL871X)/usb/rtl$(MODULE_NAME)_xmit.o \
- hal/$(RTL871X)/usb/rtl$(MODULE_NAME)_recv.o
-
-_HAL_INTFS_FILES += $(CHIP_FILES)
+CHIP_FILES += $(FW_FILES) $(PWRSEQ_FILES)
+
+endif
+ifeq ($(CONFIG_SDIO_HCI), y)
+HCI_NAME = sdio
endif
+ifeq ($(CONFIG_USB_HCI), y)
+HCI_NAME = usb
+endif
ifeq ($(CONFIG_PCI_HCI), y)
-
HCI_NAME = pci
+endif
+
_OS_INTFS_FILES := os_dep/osdep_service.o \
os_dep/linux/os_intfs.o \
os_dep/linux/$(HCI_NAME)_intf.o \
+ os_dep/linux/$(HCI_NAME)_ops_linux.o \
os_dep/linux/ioctl_linux.o \
os_dep/linux/xmit_linux.o \
os_dep/linux/mlme_linux.o \
os_dep/linux/recv_linux.o \
+ os_dep/linux/ioctl_cfg80211.o \
os_dep/linux/rtw_android.o
-_HAL_INTFS_FILES := hal/hal_init.o \
- hal/$(RTL871X)/$(RTL871X)_hal_init.o \
+
+_HAL_INTFS_FILES := hal/hal_intf.o \
+ hal/hal_com.o \
+ hal/dm.o \
+ hal/$(RTL871X)/$(RTL871X)_hal_init.o \
hal/$(RTL871X)/$(RTL871X)_phycfg.o \
hal/$(RTL871X)/$(RTL871X)_rf6052.o \
hal/$(RTL871X)/$(RTL871X)_dm.o \
hal/$(RTL871X)/$(RTL871X)_rxdesc.o \
hal/$(RTL871X)/$(RTL871X)_cmd.o \
- hal/$(RTL871X)/$(RTL871X)_mp.o \
- hal/$(RTL871X)/pci/pci_ops_linux.o \
- hal/$(RTL871X)/pci/pci_halinit.o \
- hal/$(RTL871X)/pci/rtl$(MODULE_NAME)_led.o \
- hal/$(RTL871X)/pci/rtl$(MODULE_NAME)_xmit.o \
- hal/$(RTL871X)/pci/rtl$(MODULE_NAME)_recv.o
+ hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_halinit.o \
+ hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_NAME)_led.o \
+ hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_NAME)_xmit.o \
+ hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_NAME)_recv.o
-_HAL_INTFS_FILES += $(CHIP_FILES)
+ifeq ($(CONFIG_SDIO_HCI), y)
+_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops.o
+else
+_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops_linux.o
+endif
+ifeq ($(CONFIG_MP_INCLUDED), y)
+_HAL_INTFS_FILES += hal/$(RTL871X)/$(RTL871X)_mp.o
endif
+_HAL_INTFS_FILES += $(CHIP_FILES)
+
+
ifeq ($(CONFIG_AUTOCFG_CP), y)
$(shell cp $(TopDIR)/autoconf_$(RTL871X)_$(HCI_NAME)_linux.h $(TopDIR)/include/autoconf.h)
endif
@@ -238,22 +222,18 @@ endif
ifeq ($(CONFIG_BT_COEXISTENCE), y)
EXTRA_CFLAGS += -DCONFIG_BT_COEXISTENCE
-endif
+endif
ifeq ($(CONFIG_RTL8192CU_REDEFINE_1X1), y)
EXTRA_CFLAGS += -DRTL8192C_RECONFIG_TO_1T1R
-endif
+endif
ifeq ($(CONFIG_WAKE_ON_WLAN), y)
EXTRA_CFLAGS += -DCONFIG_WAKE_ON_WLAN
endif
-ifeq ($(CONFIG_PLATFORM_ARM_BCM2708), y)
-EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
-ARCH := arm
-CROSS_COMPILE ?=
-KVER := 3.6.11+
-KSRC := /lib/modules/$(KVER)/build
+ifeq ($(CONFIG_INTEL_WIDI), y)
+EXTRA_CFLAGS += -DCONFIG_INTEL_WIDI
endif
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
@@ -275,11 +255,20 @@ ARCH := arm
endif
ifeq ($(CONFIG_PLATFORM_MSTAR_TITANIA12), y)
-EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR_TITANIA12
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR -DCONFIG_PLATFORM_MSTAR_TITANIA12
ARCH:=mips
-CROSS_COMPILE:= /work/mstar/mips-4.3/bin/mips-linux-gnu-
+CROSS_COMPILE:= /usr/src/Mstar_kernel/mips-4.3/bin/mips-linux-gnu-
KVER:= 2.6.28.9
-KSRC:= /work/mstar/2.6.28.9/
+KSRC:= /usr/src/Mstar_kernel/2.6.28.9/
+endif
+
+ifeq ($(CONFIG_PLATFORM_MSTAR_A3), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR -DCONFIG_PLATFORM_MSTAR_A3
+ARCH:=arm
+CROSS_COMPILE:= arm-none-linux-gnueabi-
+KVER:= 2.6.35.11
+KSRC:= /home/gary/PERFORCE/THEALE/RedLion/2.6.35.11/
+MODULE_NAME = wlan
endif
ifeq ($(CONFIG_PLATFORM_ANDROID_X86), y)
@@ -291,6 +280,18 @@ KSRC := /media/DATA-2/android-x86/ics-x86_20120130/out/target/product/generic_x8
MODULE_NAME :=wlan
endif
+ifeq ($(CONFIG_PLATFORM_JB_X86), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
+EXTRA_CFLAGS += -DCONFIG_P2P_IPS
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
+ARCH := $(SUBARCH)
+CROSS_COMPILE := /home/android_sdk/android-x86_JB/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.7/bin/i686-linux-android-
+KSRC := /home/android_sdk/android-x86_JB/out/target/product/x86/obj/kernel/
+MODULE_NAME :=wlan
+endif
+
ifeq ($(CONFIG_PLATFORM_ARM_PXA2XX), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
@@ -327,7 +328,7 @@ ifeq ($(CONFIG_PLATFORM_MIPS_RMI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH:=mips
CROSS_COMPILE:=mipsisa32r2-uclibc-
-KVER:=
+KVER:=
KSRC:= /root/work/kernel_realtek
endif
@@ -335,7 +336,7 @@ ifeq ($(CONFIG_PLATFORM_MIPS_PLM), y)
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
ARCH:=mips
CROSS_COMPILE:=mipsisa32r2-uclibc-
-KVER:=
+KVER:=
KSRC:= /root/work/kernel_realtek
endif
@@ -366,8 +367,8 @@ ifeq ($(CONFIG_PLATFORM_RTK_DMP), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM
ARCH:=mips
CROSS_COMPILE:=mipsel-linux-
-KVER:=
-KSRC ?= /usr/src/work/DMP_Kernel/jupiter/linux-2.6.12
+KVER:=
+KSRC ?= /usr/src/DMP_Kernel/jupiter/linux-2.6.12
endif
ifeq ($(CONFIG_PLATFORM_MT53XX), y)
@@ -385,7 +386,16 @@ CROSS_COMPILE := /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-li
KVER := 2.6.31
KSRC ?= /lib/modules/2.6.31-770-g0e46b52/source
endif
-
+
+ifeq ($(CONFIG_PLATFORM_FS_MX61), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+ARCH := arm
+CROSS_COMPILE := /home/share/CusEnv/FreeScale/arm-eabi-4.4.3/bin/arm-eabi-
+KSRC ?= /home/share/CusEnv/FreeScale/FS_kernel_env
+endif
+
+
+
ifeq ($(CONFIG_PLATFORM_ACTIONS_ATJ227X), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ACTIONS_ATJ227X
ARCH := mips
@@ -402,27 +412,57 @@ KVER := 2.6.18
KSRC := /home/cnsd4/Appro/mv_pro_5.0/montavista/pro/devkit/lsp/ti-davinci/linux-dm365
endif
-ifeq ($(CONFIG_PLATFORM_ARM_TEGRA3), y)
-EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN #-DCONFIG_MINIMAL_MEMORY_USAGE
-ARCH ?= arm
-CROSS_COMPILE ?= /media/DATA-1/nvidia/gingerbread/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
-KSRC ?= /media/DATA-1/nvidia/gingerbread/out/debug/target/product/cardhu/obj/KERNEL
+ifeq ($(CONFIG_PLATFORM_TEGRA3_CARDHU), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+# default setting for Android 4.1, 4.2
+EXTRA_CFLAGS += -DRTW_ENABLE_WIFI_CONTROL_FUNC
+EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
+EXTRA_CFLAGS += -DCONFIG_P2P_IPS
+ARCH := arm
+CROSS_COMPILE := /home/android_sdk/nvidia/tegra-16r3-partner-android-4.1_20120723/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
+KSRC := /home/android_sdk/nvidia/tegra-16r3-partner-android-4.1_20120723/out/target/product/cardhu/obj/KERNEL
+MODULE_NAME := wlan
+endif
+
+ifeq ($(CONFIG_PLATFORM_TEGRA4_DALMORE), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+# default setting for Android 4.1, 4.2
+EXTRA_CFLAGS += -DRTW_ENABLE_WIFI_CONTROL_FUNC
+EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
+EXTRA_CFLAGS += -DCONFIG_P2P_IPS
+ARCH := arm
+CROSS_COMPILE := /home/android_sdk/nvidia/tegra-17r9-partner-android-4.2-dalmore_20130131/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
+KSRC := /home/android_sdk/nvidia/tegra-17r9-partner-android-4.2-dalmore_20130131/out/target/product/dalmore/obj/KERNEL
MODULE_NAME := wlan
endif
ifeq ($(CONFIG_PLATFORM_ARM_TCC8900), y)
-EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_MINIMAL_MEMORY_USAGE
-ARCH ?= arm
-CROSS_COMPILE ?= /media/DATA-1/telechips/SDK_2302_20110425/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
-KSRC ?=/media/DATA-1/telechips/SDK_2302_20110425/kernel
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+ARCH := arm
+CROSS_COMPILE := /home/android_sdk/Telechips/SDK_2304_20110613/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
+KSRC := /home/android_sdk/Telechips/SDK_2304_20110613/kernel
MODULE_NAME := wlan
endif
ifeq ($(CONFIG_PLATFORM_ARM_TCC8920), y)
-EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN #-DCONFIG_MINIMAL_MEMORY_USAGE
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
-CROSS_COMPILE := /media/DATA-2/telechips/ics_sdk/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
-KSRC := /media/DATA-2/telechips/ics_sdk/kernel
+CROSS_COMPILE := /home/android_sdk/Telechips/v12.06_r1-tcc-android-4.0.4/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
+KSRC := /home/android_sdk/Telechips/v12.06_r1-tcc-android-4.0.4/kernel
+MODULE_NAME := wlan
+endif
+
+ifeq ($(CONFIG_PLATFORM_ARM_TCC8920_JB42), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+# default setting for Android 4.1, 4.2
+EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
+EXTRA_CFLAGS += -DCONFIG_P2P_IPS
+ARCH := arm
+CROSS_COMPILE := /home/android_sdk/Telechips/v13.03_r1-tcc-android-4.2.2_ds_patched/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
+KSRC := /home/android_sdk/Telechips/v13.03_r1-tcc-android-4.2.2_ds_patched/kernel
MODULE_NAME := wlan
endif
@@ -461,11 +501,39 @@ KSRC := /home/winuser/work/Plat_sLD2T_V3010/usr/src/linux-2.6.32.2
INSTALL_PREFIX :=
endif
+ifeq ($(CONFIG_PLATFORM_ARM_SUNxI), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ARM_SUNxI
+ARCH := arm
+CROSS_COMPILE := arm-none-linux-gnueabi-
+KVER := 3.0.8
+#KSRC:= ../lichee/linux-3.0/
+endif
+
+ifeq ($(CONFIG_PLATFORM_ARM_SUN6I), y)
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+EXTRA_CFLAGS += -DCONFIG_PLATFORM_ARM_SUN6I
+EXTRA_CFLAGS += -DCONFIG_USE_USB_BUFFER_ALLOC_TX
+EXTRA_CFLAGS += -DCONFIG_TRAFFIC_PROTECT
+# default setting for Android 4.1, 4.2
+EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
+EXTRA_CFLAGS += -DCONFIG_P2P_IPS
+ARCH := arm
+CROSS_COMPILE := arm-none-linux-gnueabi-
+KVER := 3.3.0
+#KSRC:= ../lichee/linux-3.3/
+endif
+
+ifneq ($(USER_MODULE_NAME),)
+MODULE_NAME := $(USER_MODULE_NAME)
+endif
+
ifeq ($(CONFIG_MP_INCLUDED), y)
MODULE_NAME := $(MODULE_NAME)_mp
EXTRA_CFLAGS += -DCONFIG_MP_INCLUDED
endif
+
ifneq ($(KERNELRELEASE),)
@@ -483,23 +551,26 @@ rtk_core := core/rtw_cmd.o \
core/rtw_rf.o \
core/rtw_recv.o \
core/rtw_sta_mgt.o \
+ core/rtw_ap.o \
core/rtw_xmit.o \
core/rtw_p2p.o \
+ core/rtw_tdls.o \
core/rtw_br_ext.o \
- core/rtw_iol.o
+ core/rtw_iol.o \
+ core/rtw_sreset.o
$(MODULE_NAME)-y += $(rtk_core)
-
+
+$(MODULE_NAME)-$(CONFIG_INTEL_WIDI) += core/rtw_intel_widi.o
+
$(MODULE_NAME)-y += core/efuse/rtw_efuse.o
$(MODULE_NAME)-y += $(_HAL_INTFS_FILES)
$(MODULE_NAME)-y += $(_OS_INTFS_FILES)
-
$(MODULE_NAME)-$(CONFIG_MP_INCLUDED) += core/rtw_mp.o \
- core/rtw_mp_ioctl.o \
- core/rtw_ioctl_rtl.o
+ core/rtw_mp_ioctl.o
obj-$(CONFIG_RTL8192CU) := $(MODULE_NAME).o
@@ -522,12 +593,12 @@ install:
uninstall:
rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
/sbin/depmod -a ${KVER}
-
-
+
+
config_r:
@echo "make config"
/bin/bash script/Configure script/config.in
-
+
.PHONY: modules clean
clean:
@@ -535,11 +606,11 @@ clean:
rm .tmp_versions -fr ; rm Module.symvers -fr
rm -fr Module.markers ; rm -fr modules.order
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
- cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
- cd hal/$(RTL871X)/$(HCI_NAME) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
- cd hal/$(RTL871X) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
- cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
- cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
- cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
+ cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
+ cd hal/$(RTL871X)/$(HCI_NAME) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
+ cd hal/$(RTL871X) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
+ cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
+ cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
+ cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
endif
diff --git a/drivers/net/wireless/rtl8192cu/clean b/drivers/net/wireless/rtl8192cu/clean
old mode 100644
new mode 100755
index 34686a0..8766421
--- a/drivers/net/wireless/rtl8192cu/clean
+++ b/drivers/net/wireless/rtl8192cu/clean
@@ -3,7 +3,3 @@ rmmod 8192cu
rmmod 8192ce
rmmod 8192du
rmmod 8192de
-
-rmmod rtl8192cu
-rmmod rtl8192c_common
-rmmod rtlwifi
\ No newline at end of file
diff --git a/drivers/net/wireless/rtl8192cu/core/efuse/rtw_efuse.c b/drivers/net/wireless/rtl8192cu/core/efuse/rtw_efuse.c
index 4908d6e..3d341ac 100644
--- a/drivers/net/wireless/rtl8192cu/core/efuse/rtw_efuse.c
+++ b/drivers/net/wireless/rtl8192cu/core/efuse/rtw_efuse.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -54,6 +54,11 @@ BOOLEAN
Efuse_Read1ByteFromFakeContent(
IN PADAPTER pAdapter,
IN u16 Offset,
+ IN OUT u8 *Value );
+BOOLEAN
+Efuse_Read1ByteFromFakeContent(
+ IN PADAPTER pAdapter,
+ IN u16 Offset,
IN OUT u8 *Value )
{
if(Offset >= EFUSE_MAX_HW_SIZE)
@@ -67,6 +72,12 @@ Efuse_Read1ByteFromFakeContent(
*Value = fakeBTEfuseContent[fakeEfuseBank-1][Offset];
return _TRUE;
}
+
+BOOLEAN
+Efuse_Write1ByteToFakeContent(
+ IN PADAPTER pAdapter,
+ IN u16 Offset,
+ IN u8 Value );
BOOLEAN
Efuse_Write1ByteToFakeContent(
IN PADAPTER pAdapter,
@@ -210,7 +221,7 @@ ReadEFuseByte(
value32 = rtw_read32(Adapter, EFUSE_CTRL);
*pbuf = (u8)(value32 & 0xff);
- //MSG_8192C("ReadEFuseByte _offset:%08u, in %d ms\n",_offset ,rtw_get_passing_time_ms(start));
+ //DBG_871X("ReadEFuseByte _offset:%08u, in %d ms\n",_offset ,rtw_get_passing_time_ms(start));
}
@@ -232,6 +243,16 @@ ReadEFuseByte(
// 2008/12/22 MH Read Efuse must check if we write section 1 data again!!! Sec1
// write addr must be after sec5.
//
+
+VOID
+efuse_ReadEFuse(
+ PADAPTER Adapter,
+ u8 efuseType,
+ u16 _offset,
+ u16 _size_byte,
+ u8 *pbuf,
+ IN BOOLEAN bPseudoTest
+ );
VOID
efuse_ReadEFuse(
PADAPTER Adapter,
@@ -250,7 +271,7 @@ EFUSE_GetEfuseDefinition(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u8 type,
- OUT PVOID *pOut,
+ OUT void *pOut,
IN BOOLEAN bPseudoTest
)
{
@@ -337,6 +358,12 @@ EFUSE_Read1Byte(
* 09/23/2008 MHC Copy from WMAC.
*
*---------------------------------------------------------------------------*/
+
+void
+EFUSE_Write1Byte(
+ IN PADAPTER Adapter,
+ IN u16 Address,
+ IN u8 Value);
void
EFUSE_Write1Byte(
IN PADAPTER Adapter,
@@ -709,12 +736,12 @@ u8 rtw_efuse_map_write(PADAPTER padapter, u16 addr, u16 cnts, u8 *data)
if (word_en != 0xF) {
ret = Efuse_PgPacketWrite(padapter, offset, word_en, newdata, _FALSE);
- DBG_8192C("offset=%x \n",offset);
- DBG_8192C("word_en=%x \n",word_en);
+ DBG_871X("offset=%x \n",offset);
+ DBG_871X("word_en=%x \n",word_en);
for(i=0;i<PGPKT_DATA_SIZE;i++)
{
- DBG_8192C("data=%x \t",newdata[i]);
+ DBG_871X("data=%x \t",newdata[i]);
}
if (ret == _FAIL) break;
}
@@ -759,6 +786,12 @@ Efuse_ReadAllMap(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN OUT u8 *Efuse,
+ IN BOOLEAN bPseudoTest);
+VOID
+Efuse_ReadAllMap(
+ IN PADAPTER pAdapter,
+ IN u8 efuseType,
+ IN OUT u8 *Efuse,
IN BOOLEAN bPseudoTest)
{
u16 mapLen=0;
@@ -851,6 +884,13 @@ efuse_ShadowRead4Byte(
* 11/12/2008 MHC Create Version 0.
*
*---------------------------------------------------------------------------*/
+#ifdef PLATFORM
+static VOID
+efuse_ShadowWrite1Byte(
+ IN PADAPTER pAdapter,
+ IN u16 Offset,
+ IN u8 Value);
+#endif //PLATFORM
static VOID
efuse_ShadowWrite1Byte(
IN PADAPTER pAdapter,
@@ -990,7 +1030,13 @@ EFUSE_ShadowRead(
* 11/12/2008 MHC Create Version 0.
*
*---------------------------------------------------------------------------*/
-extern VOID
+VOID
+EFUSE_ShadowWrite(
+ IN PADAPTER pAdapter,
+ IN u8 Type,
+ IN u16 Offset,
+ IN OUT u32 Value);
+VOID
EFUSE_ShadowWrite(
IN PADAPTER pAdapter,
IN u8 Type,
@@ -1013,6 +1059,10 @@ EFUSE_ShadowWrite(
VOID
Efuse_InitSomeVar(
IN PADAPTER pAdapter
+ );
+VOID
+Efuse_InitSomeVar(
+ IN PADAPTER pAdapter
)
{
u8 i;
@@ -1056,7 +1106,7 @@ int storeAdaptorInfoFile(char *path, struct eeprom_priv * eeprom_priv)
else
ret = _FAIL;
} else {
- DBG_8192C("%s NULL pointer\n",__FUNCTION__);
+ DBG_871X("%s NULL pointer\n",__FUNCTION__);
ret = _FAIL;
}
return ret;
@@ -1086,7 +1136,7 @@ int retriveAdaptorInfoFile(char *path, struct eeprom_priv * eeprom_priv)
#endif
} else {
- DBG_8192C("%s NULL pointer\n",__FUNCTION__);
+ DBG_871X("%s NULL pointer\n",__FUNCTION__);
ret = _FAIL;
}
return ret;
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_ap.c b/drivers/net/wireless/rtl8192cu/core/rtw_ap.c
new file mode 100644
index 0000000..405e7fe
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_ap.c
@@ -0,0 +1,2940 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#define _RTW_AP_C_
+
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+#include <wifi.h>
+
+
+#ifdef CONFIG_AP_MODE
+
+extern unsigned char RTW_WPA_OUI[];
+extern unsigned char WMM_OUI[];
+extern unsigned char WPS_OUI[];
+extern unsigned char P2P_OUI[];
+extern unsigned char WFD_OUI[];
+
+void init_mlme_ap_info(_adapter *padapter)
+{
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+
+
+ _rtw_spinlock_init(&pmlmepriv->bcn_update_lock);
+
+ //for ACL
+ _rtw_init_queue(&pacl_list->acl_node_q);
+
+ //pmlmeext->bstart_bss = _FALSE;
+
+ start_ap_mode(padapter);
+}
+
+void free_mlme_ap_info(_adapter *padapter)
+{
+ _irqL irqL;
+ struct sta_info *psta=NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ //stop_ap_mode(padapter);
+
+ pmlmepriv->update_bcn = _FALSE;
+ pmlmeext->bstart_bss = _FALSE;
+
+ rtw_sta_flush(padapter);
+
+ pmlmeinfo->state = _HW_STATE_NOLINK_;
+
+ //free_assoc_sta_resources
+ rtw_free_all_stainfo(padapter);
+
+ //free bc/mc sta_info
+ psta = rtw_get_bcmc_stainfo(padapter);
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ rtw_free_stainfo(padapter, psta);
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+
+
+ _rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
+
+}
+
+static void update_BCNTIM(_adapter *padapter)
+{
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork_mlmeext = &(pmlmeinfo->network);
+ unsigned char *pie = pnetwork_mlmeext->IEs;
+
+ //DBG_871X("%s\n", __FUNCTION__);
+
+ //update TIM IE
+ //if(pstapriv->tim_bitmap)
+ if(_TRUE)
+ {
+ u8 *p, *dst_ie, *premainder_ie=NULL, *pbackup_remainder_ie=NULL;
+ u16 tim_bitmap_le;
+ uint offset, tmp_len, tim_ielen, tim_ie_offset, remainder_ielen;
+
+ tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap);
+
+ p = rtw_get_ie(pie + _FIXED_IE_LENGTH_, _TIM_IE_, &tim_ielen, pnetwork_mlmeext->IELength - _FIXED_IE_LENGTH_);
+ if (p != NULL && tim_ielen>0)
+ {
+ tim_ielen += 2;
+
+ premainder_ie = p+tim_ielen;
+
+ tim_ie_offset = (sint)(p -pie);
+
+ remainder_ielen = pnetwork_mlmeext->IELength - tim_ie_offset - tim_ielen;
+
+ //append TIM IE from dst_ie offset
+ dst_ie = p;
+ }
+ else
+ {
+ tim_ielen = 0;
+
+ //calucate head_len
+ offset = _FIXED_IE_LENGTH_;
+
+ /* get ssid_ie len */
+ p = rtw_get_ie(pie + _BEACON_IE_OFFSET_, _SSID_IE_, &tmp_len, (pnetwork_mlmeext->IELength - _BEACON_IE_OFFSET_));
+ if (p != NULL)
+ offset += tmp_len+2;
+
+ // get supported rates len
+ p = rtw_get_ie(pie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &tmp_len, (pnetwork_mlmeext->IELength - _BEACON_IE_OFFSET_));
+ if (p != NULL)
+ {
+ offset += tmp_len+2;
+ }
+
+ //DS Parameter Set IE, len=3
+ offset += 3;
+
+ premainder_ie = pie + offset;
+
+ remainder_ielen = pnetwork_mlmeext->IELength - offset - tim_ielen;
+
+ //append TIM IE from offset
+ dst_ie = pie + offset;
+
+ }
+
+
+ if(remainder_ielen>0)
+ {
+ pbackup_remainder_ie = rtw_malloc(remainder_ielen);
+ if(pbackup_remainder_ie && premainder_ie)
+ _rtw_memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen);
+ }
+
+ *dst_ie++=_TIM_IE_;
+
+ if((pstapriv->tim_bitmap&0xff00) && (pstapriv->tim_bitmap&0x00fc))
+ tim_ielen = 5;
+ else
+ tim_ielen = 4;
+
+ *dst_ie++= tim_ielen;
+
+ *dst_ie++=0;//DTIM count
+ *dst_ie++=1;//DTIM peroid
+
+ if(pstapriv->tim_bitmap&BIT(0))//for bc/mc frames
+ *dst_ie++ = BIT(0);//bitmap ctrl
+ else
+ *dst_ie++ = 0;
+
+ if(tim_ielen==4)
+ {
+ *dst_ie++ = *(u8*)&tim_bitmap_le;
+ }
+ else if(tim_ielen==5)
+ {
+ _rtw_memcpy(dst_ie, &tim_bitmap_le, 2);
+ dst_ie+=2;
+ }
+
+ //copy remainder IE
+ if(pbackup_remainder_ie)
+ {
+ _rtw_memcpy(dst_ie, pbackup_remainder_ie, remainder_ielen);
+
+ rtw_mfree(pbackup_remainder_ie, remainder_ielen);
+ }
+
+ offset = (uint)(dst_ie - pie);
+ pnetwork_mlmeext->IELength = offset + remainder_ielen;
+
+ }
+
+#ifndef CONFIG_INTERRUPT_BASED_TXBCN
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+ set_tx_beacon_cmd(padapter);
+#endif
+#endif //!CONFIG_INTERRUPT_BASED_TXBCN
+
+
+}
+
+void rtw_add_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *data, u8 len)
+{
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 bmatch = _FALSE;
+ u8 *pie = pnetwork->IEs;
+ u8 *p, *dst_ie, *premainder_ie=NULL, *pbackup_remainder_ie=NULL;
+ u32 i, offset, ielen, ie_offset, remainder_ielen = 0;
+
+ for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;)
+ {
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
+
+ if (pIE->ElementID > index)
+ {
+ break;
+ }
+ else if(pIE->ElementID == index) // already exist the same IE
+ {
+ p = (u8 *)pIE;
+ ielen = pIE->Length;
+ bmatch = _TRUE;
+ break;
+ }
+
+ p = (u8 *)pIE;
+ ielen = pIE->Length;
+ i += (pIE->Length + 2);
+ }
+
+ if (p != NULL && ielen>0)
+ {
+ ielen += 2;
+
+ premainder_ie = p+ielen;
+
+ ie_offset = (sint)(p -pie);
+
+ remainder_ielen = pnetwork->IELength - ie_offset - ielen;
+
+ if(bmatch)
+ dst_ie = p;
+ else
+ dst_ie = (p+ielen);
+ }
+
+ if(remainder_ielen>0)
+ {
+ pbackup_remainder_ie = rtw_malloc(remainder_ielen);
+ if(pbackup_remainder_ie && premainder_ie)
+ _rtw_memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen);
+ }
+
+ *dst_ie++=index;
+ *dst_ie++=len;
+
+ _rtw_memcpy(dst_ie, data, len);
+ dst_ie+=len;
+
+ //copy remainder IE
+ if(pbackup_remainder_ie)
+ {
+ _rtw_memcpy(dst_ie, pbackup_remainder_ie, remainder_ielen);
+
+ rtw_mfree(pbackup_remainder_ie, remainder_ielen);
+ }
+
+ offset = (uint)(dst_ie - pie);
+ pnetwork->IELength = offset + remainder_ielen;
+}
+
+void rtw_remove_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index)
+{
+ u8 *p, *dst_ie, *premainder_ie=NULL, *pbackup_remainder_ie=NULL;
+ uint offset, ielen, ie_offset, remainder_ielen = 0;
+ u8 *pie = pnetwork->IEs;
+
+ p = rtw_get_ie(pie + _FIXED_IE_LENGTH_, index, &ielen, pnetwork->IELength - _FIXED_IE_LENGTH_);
+ if (p != NULL && ielen>0)
+ {
+ ielen += 2;
+
+ premainder_ie = p+ielen;
+
+ ie_offset = (sint)(p -pie);
+
+ remainder_ielen = pnetwork->IELength - ie_offset - ielen;
+
+ dst_ie = p;
+ }
+ else {
+ return;
+ }
+
+ if(remainder_ielen>0)
+ {
+ pbackup_remainder_ie = rtw_malloc(remainder_ielen);
+ if(pbackup_remainder_ie && premainder_ie)
+ _rtw_memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen);
+ }
+
+ //copy remainder IE
+ if(pbackup_remainder_ie)
+ {
+ _rtw_memcpy(dst_ie, pbackup_remainder_ie, remainder_ielen);
+
+ rtw_mfree(pbackup_remainder_ie, remainder_ielen);
+ }
+
+ offset = (uint)(dst_ie - pie);
+ pnetwork->IELength = offset + remainder_ielen;
+}
+
+
+u8 chk_sta_is_alive(struct sta_info *psta);
+u8 chk_sta_is_alive(struct sta_info *psta)
+{
+ u8 ret = _FALSE;
+ #ifdef DBG_EXPIRATION_CHK
+ DBG_871X("sta:"MAC_FMT", rssi:%d, rx:"STA_PKTS_FMT", expire_to:%u, %s%ssq_len:%u\n"
+ , MAC_ARG(psta->hwaddr)
+ , psta->rssi_stat.UndecoratedSmoothedPWDB
+ //, STA_RX_PKTS_ARG(psta)
+ , STA_RX_PKTS_DIFF_ARG(psta)
+ , psta->expire_to
+ , psta->state&WIFI_SLEEP_STATE?"PS, ":""
+ , psta->state&WIFI_STA_ALIVE_CHK_STATE?"SAC, ":""
+ , psta->sleepq_len
+ );
+ #endif
+
+ //if(sta_last_rx_pkts(psta) == sta_rx_pkts(psta))
+ if((psta->sta_stats.last_rx_data_pkts + psta->sta_stats.last_rx_ctrl_pkts) == (psta->sta_stats.rx_data_pkts + psta->sta_stats.rx_ctrl_pkts))
+ {
+ #if 0
+ if(psta->state&WIFI_SLEEP_STATE)
+ ret = _TRUE;
+ #endif
+ }
+ else
+ {
+ ret = _TRUE;
+ }
+
+ sta_update_last_rx_pkts(psta);
+
+ return ret;
+}
+
+void expire_timeout_chk(_adapter *padapter)
+{
+ _irqL irqL;
+ _list *phead, *plist;
+ u8 updated;
+ struct sta_info *psta=NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ u8 chk_alive_num = 0;
+ char chk_alive_list[NUM_STA];
+ int i;
+
+ _enter_critical_bh(&pstapriv->auth_list_lock, &irqL);
+
+ phead = &pstapriv->auth_list;
+ plist = get_next(phead);
+
+ //check auth_queue
+ #ifdef DBG_EXPIRATION_CHK
+ if (rtw_end_of_queue_search(phead, plist) == _FALSE) {
+ DBG_871X(FUNC_NDEV_FMT" auth_list, cnt:%u\n"
+ , FUNC_NDEV_ARG(padapter->pnetdev), pstapriv->auth_list_cnt);
+ }
+ #endif
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ psta = LIST_CONTAINOR(plist, struct sta_info, auth_list);
+ plist = get_next(plist);
+
+ if(psta->expire_to>0)
+ {
+ psta->expire_to--;
+ if (psta->expire_to == 0)
+ {
+ rtw_list_delete(&psta->auth_list);
+ pstapriv->auth_list_cnt--;
+
+ DBG_871X("auth expire %02X%02X%02X%02X%02X%02X\n",
+ psta->hwaddr[0],psta->hwaddr[1],psta->hwaddr[2],psta->hwaddr[3],psta->hwaddr[4],psta->hwaddr[5]);
+
+ _exit_critical_bh(&pstapriv->auth_list_lock, &irqL);
+
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ rtw_free_stainfo(padapter, psta);
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+
+ _enter_critical_bh(&pstapriv->auth_list_lock, &irqL);
+ }
+ }
+
+ }
+
+ _exit_critical_bh(&pstapriv->auth_list_lock, &irqL);
+
+ psta = NULL;
+
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ phead = &pstapriv->asoc_list;
+ plist = get_next(phead);
+
+ //check asoc_queue
+ #ifdef DBG_EXPIRATION_CHK
+ if (rtw_end_of_queue_search(phead, plist) == _FALSE) {
+ DBG_871X(FUNC_NDEV_FMT" asoc_list, cnt:%u\n"
+ , FUNC_NDEV_ARG(padapter->pnetdev), pstapriv->asoc_list_cnt);
+ }
+ #endif
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
+ plist = get_next(plist);
+
+ if (chk_sta_is_alive(psta) || !psta->expire_to) {
+ psta->expire_to = pstapriv->expire_to;
+ psta->keep_alive_trycnt = 0;
+ #ifdef CONFIG_TX_MCAST2UNI
+ psta->under_exist_checking = 0;
+ #endif // CONFIG_TX_MCAST2UNI
+ } else {
+ psta->expire_to--;
+ }
+
+#ifndef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+#ifdef CONFIG_TX_MCAST2UNI
+ if ( (psta->flags & WLAN_STA_HT) && (psta->htpriv.agg_enable_bitmap || psta->under_exist_checking) ) {
+ // check sta by delba(addba) for 11n STA
+ // ToDo: use CCX report to check for all STAs
+ //DBG_871X("asoc check by DELBA/ADDBA! (pstapriv->expire_to=%d s)(psta->expire_to=%d s), [%02x, %d]\n", pstapriv->expire_to*2, psta->expire_to*2, psta->htpriv.agg_enable_bitmap, psta->under_exist_checking);
+
+ if ( psta->expire_to <= (pstapriv->expire_to - 50 ) ) {
+ DBG_871X("asoc expire by DELBA/ADDBA! (%d s)\n", (pstapriv->expire_to-psta->expire_to)*2);
+ psta->under_exist_checking = 0;
+ psta->expire_to = 0;
+ } else if ( psta->expire_to <= (pstapriv->expire_to - 3) && (psta->under_exist_checking==0)) {
+ DBG_871X("asoc check by DELBA/ADDBA! (%d s)\n", (pstapriv->expire_to-psta->expire_to)*2);
+ psta->under_exist_checking = 1;
+ //tear down TX AMPDU
+ send_delba(padapter, 1, psta->hwaddr);// // originator
+ psta->htpriv.agg_enable_bitmap = 0x0;//reset
+ psta->htpriv.candidate_tid_bitmap = 0x0;//reset
+ }
+ }
+#endif // CONFIG_TX_MCAST2UNI
+#endif //CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+
+ if (psta->expire_to <= 0)
+ {
+ #ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+
+ if (padapter->registrypriv.wifi_spec == 1)
+ {
+ psta->expire_to = pstapriv->expire_to;
+ continue;
+ }
+
+ if (psta->state & WIFI_SLEEP_STATE) {
+ if (!(psta->state & WIFI_STA_ALIVE_CHK_STATE)) {
+ //to check if alive by another methods if staion is at ps mode.
+ psta->expire_to = pstapriv->expire_to;
+ psta->state |= WIFI_STA_ALIVE_CHK_STATE;
+
+ //DBG_871X("alive chk, sta:" MAC_FMT " is at ps mode!\n", MAC_ARG(psta->hwaddr));
+
+ //to update bcn with tim_bitmap for this station
+ pstapriv->tim_bitmap |= BIT(psta->aid);
+ update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
+
+ if(!pmlmeext->active_keep_alive_check)
+ continue;
+ }
+ }
+
+ if (pmlmeext->active_keep_alive_check) {
+ int stainfo_offset;
+
+ stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
+ if (stainfo_offset_valid(stainfo_offset)) {
+ chk_alive_list[chk_alive_num++] = stainfo_offset;
+ }
+
+ continue;
+ }
+ #endif /* CONFIG_ACTIVE_KEEP_ALIVE_CHECK */
+
+ rtw_list_delete(&psta->asoc_list);
+ pstapriv->asoc_list_cnt--;
+
+ DBG_871X("asoc expire "MAC_FMT", state=0x%x\n", MAC_ARG(psta->hwaddr), psta->state);
+ updated = ap_free_sta(padapter, psta, _FALSE, WLAN_REASON_DEAUTH_LEAVING);
+ }
+ else
+ {
+ /* TODO: Aging mechanism to digest frames in sleep_q to avoid running out of xmitframe */
+ if (psta->sleepq_len > (NR_XMITFRAME/pstapriv->asoc_list_cnt)
+ && padapter->xmitpriv.free_xmitframe_cnt < (NR_XMITFRAME/pstapriv->asoc_list_cnt/2)
+ ){
+ DBG_871X("%s sta:"MAC_FMT", sleepq_len:%u, free_xmitframe_cnt:%u, asoc_list_cnt:%u, clear sleep_q\n", __func__
+ , MAC_ARG(psta->hwaddr)
+ , psta->sleepq_len, padapter->xmitpriv.free_xmitframe_cnt, pstapriv->asoc_list_cnt);
+ wakeup_sta_to_xmit(padapter, psta);
+ }
+ }
+ }
+
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+if (chk_alive_num) {
+
+ u8 backup_oper_channel=0;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ /* switch to correct channel of current network before issue keep-alive frames */
+ if (rtw_get_oper_ch(padapter) != pmlmeext->cur_channel) {
+ backup_oper_channel = rtw_get_oper_ch(padapter);
+ SelectChannel(padapter, pmlmeext->cur_channel);
+ }
+
+ /* issue null data to check sta alive*/
+ for (i = 0; i < chk_alive_num; i++) {
+
+ int ret = _FAIL;
+
+ psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
+ if(!(psta->state &_FW_LINKED))
+ continue;
+
+ if (psta->state & WIFI_SLEEP_STATE)
+ ret = issue_nulldata(padapter, psta->hwaddr, 0, 1, 50);
+ else
+ ret = issue_nulldata(padapter, psta->hwaddr, 0, 3, 50);
+
+ psta->keep_alive_trycnt++;
+ if (ret == _SUCCESS)
+ {
+ DBG_871X("asoc check, sta(" MAC_FMT ") is alive\n", MAC_ARG(psta->hwaddr));
+ psta->expire_to = pstapriv->expire_to;
+ psta->keep_alive_trycnt = 0;
+ continue;
+ }
+ else if (psta->keep_alive_trycnt <= 3)
+ {
+ DBG_871X("ack check for asoc expire, keep_alive_trycnt=%d\n", psta->keep_alive_trycnt);
+ psta->expire_to = 1;
+ continue;
+ }
+
+ psta->keep_alive_trycnt = 0;
+
+ DBG_871X("asoc expire "MAC_FMT", state=0x%x\n", MAC_ARG(psta->hwaddr), psta->state);
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ if (rtw_is_list_empty(&psta->asoc_list)==_FALSE) {
+ rtw_list_delete(&psta->asoc_list);
+ pstapriv->asoc_list_cnt--;
+ updated = ap_free_sta(padapter, psta, _FALSE, WLAN_REASON_DEAUTH_LEAVING);
+ }
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ }
+
+ if (backup_oper_channel>0) /* back to the original operation channel */
+ SelectChannel(padapter, backup_oper_channel);
+}
+#endif /* CONFIG_ACTIVE_KEEP_ALIVE_CHECK */
+
+ associated_clients_update(padapter, updated);
+}
+
+
+static void add_RATid(_adapter *padapter, struct sta_info *psta)
+{
+ int i;
+ u8 rf_type;
+ u32 init_rate=0;
+ unsigned char sta_band = 0, raid, shortGIrate = _FALSE;
+ unsigned char limit;
+ unsigned int tx_ra_bitmap=0;
+ struct ht_priv *psta_ht = NULL;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ WLAN_BSSID_EX *pcur_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+
+
+ if(psta)
+ psta_ht = &psta->htpriv;
+ else
+ return;
+
+ //b/g mode ra_bitmap
+ for (i=0; i<sizeof(psta->bssrateset); i++)
+ {
+ if (psta->bssrateset[i])
+ tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value(psta->bssrateset[i]&0x7f);
+ }
+
+ //n mode ra_bitmap
+ if(psta_ht->ht_option)
+ {
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ if(rf_type == RF_2T2R)
+ limit=16;// 2R
+ else
+ limit=8;// 1R
+
+ for (i=0; i<limit; i++) {
+ if (psta_ht->ht_cap.supp_mcs_set[i/8] & BIT(i%8))
+ tx_ra_bitmap |= BIT(i+12);
+ }
+
+ //max short GI rate
+ shortGIrate = psta_ht->sgi;
+ }
+
+
+#if 0//gtest
+ if(get_rf_mimo_mode(padapter) == RTL8712_RF_2T2R)
+ {
+ //is this a 2r STA?
+ if((pstat->tx_ra_bitmap & 0x0ff00000) != 0 && !(priv->pshare->has_2r_sta & BIT(pstat->aid)))
+ {
+ priv->pshare->has_2r_sta |= BIT(pstat->aid);
+ if(rtw_read16(padapter, 0x102501f6) != 0xffff)
+ {
+ rtw_write16(padapter, 0x102501f6, 0xffff);
+ reset_1r_sta_RA(priv, 0xffff);
+ Switch_1SS_Antenna(priv, 3);
+ }
+ }
+ else// bg or 1R STA?
+ {
+ if((priv->pmib->dot11BssType.net_work_type & WIRELESS_11N) && pstat->ht_cap_len && priv->pshare->has_2r_sta == 0)
+ {
+ if(rtw_read16(padapter, 0x102501f6) != 0x7777)
+ { // MCS7 SGI
+ rtw_write16(padapter, 0x102501f6,0x7777);
+ reset_1r_sta_RA(priv, 0x7777);
+ Switch_1SS_Antenna(priv, 2);
+ }
+ }
+ }
+
+ }
+
+ if ((pstat->rssi_level < 1) || (pstat->rssi_level > 3))
+ {
+ if (pstat->rssi >= priv->pshare->rf_ft_var.raGoDownUpper)
+ pstat->rssi_level = 1;
+ else if ((pstat->rssi >= priv->pshare->rf_ft_var.raGoDown20MLower) ||
+ ((priv->pshare->is_40m_bw) && (pstat->ht_cap_len) &&
+ (pstat->rssi >= priv->pshare->rf_ft_var.raGoDown40MLower) &&
+ (pstat->ht_cap_buf.ht_cap_info & cpu_to_le16(_HTCAP_SUPPORT_CH_WDTH_))))
+ pstat->rssi_level = 2;
+ else
+ pstat->rssi_level = 3;
+ }
+
+ // rate adaptive by rssi
+ if ((priv->pmib->dot11BssType.net_work_type & WIRELESS_11N) && pstat->ht_cap_len)
+ {
+ if ((get_rf_mimo_mode(priv) == MIMO_1T2R) || (get_rf_mimo_mode(priv) == MIMO_1T1R))
+ {
+ switch (pstat->rssi_level) {
+ case 1:
+ pstat->tx_ra_bitmap &= 0x100f0000;
+ break;
+ case 2:
+ pstat->tx_ra_bitmap &= 0x100ff000;
+ break;
+ case 3:
+ if (priv->pshare->is_40m_bw)
+ pstat->tx_ra_bitmap &= 0x100ff005;
+ else
+ pstat->tx_ra_bitmap &= 0x100ff001;
+
+ break;
+ }
+ }
+ else
+ {
+ switch (pstat->rssi_level) {
+ case 1:
+ pstat->tx_ra_bitmap &= 0x1f0f0000;
+ break;
+ case 2:
+ pstat->tx_ra_bitmap &= 0x1f0ff000;
+ break;
+ case 3:
+ if (priv->pshare->is_40m_bw)
+ pstat->tx_ra_bitmap &= 0x000ff005;
+ else
+ pstat->tx_ra_bitmap &= 0x000ff001;
+
+ break;
+ }
+
+ // Don't need to mask high rates due to new rate adaptive parameters
+ //if (pstat->is_broadcom_sta) // use MCS12 as the highest rate vs. Broadcom sta
+ // pstat->tx_ra_bitmap &= 0x81ffffff;
+
+ // NIC driver will report not supporting MCS15 and MCS14 in asoc req
+ //if (pstat->is_rtl8190_sta && !pstat->is_2t_mimo_sta)
+ // pstat->tx_ra_bitmap &= 0x83ffffff; // if Realtek 1x2 sta, don't use MCS15 and MCS14
+ }
+ }
+ else if ((priv->pmib->dot11BssType.net_work_type & WIRELESS_11G) && isErpSta(pstat))
+ {
+ switch (pstat->rssi_level) {
+ case 1:
+ pstat->tx_ra_bitmap &= 0x00000f00;
+ break;
+ case 2:
+ pstat->tx_ra_bitmap &= 0x00000ff0;
+ break;
+ case 3:
+ pstat->tx_ra_bitmap &= 0x00000ff5;
+ break;
+ }
+ }
+ else
+ {
+ pstat->tx_ra_bitmap &= 0x0000000d;
+ }
+
+ // disable tx short GI when station cannot rx MCS15(AP is 2T2R)
+ // disable tx short GI when station cannot rx MCS7 (AP is 1T2R or 1T1R)
+ // if there is only 1r STA and we are 2T2R, DO NOT mask SGI rate
+ if ((!(pstat->tx_ra_bitmap & 0x8000000) && (priv->pshare->has_2r_sta > 0) && (get_rf_mimo_mode(padapter) == RTL8712_RF_2T2R)) ||
+ (!(pstat->tx_ra_bitmap & 0x80000) && (get_rf_mimo_mode(padapter) != RTL8712_RF_2T2R)))
+ {
+ pstat->tx_ra_bitmap &= ~BIT(28);
+ }
+#endif
+
+ if ( pcur_network->Configuration.DSConfig > 14 ) {
+ // 5G band
+ if (tx_ra_bitmap & 0xffff000)
+ sta_band |= WIRELESS_11_5N | WIRELESS_11A;
+ else
+ sta_band |= WIRELESS_11A;
+ } else {
+ if (tx_ra_bitmap & 0xffff000)
+ sta_band |= WIRELESS_11_24N | WIRELESS_11G | WIRELESS_11B;
+ else if (tx_ra_bitmap & 0xff0)
+ sta_band |= WIRELESS_11G |WIRELESS_11B;
+ else
+ sta_band |= WIRELESS_11B;
+ }
+
+ raid = networktype_to_raid(sta_band);
+ init_rate = get_highest_rate_idx(tx_ra_bitmap&0x0fffffff)&0x3f;
+
+ if (psta->aid < NUM_STA)
+ {
+ u8 arg = 0;
+
+ arg = psta->mac_id&0x1f;
+
+ arg |= BIT(7);//support entry 2~31
+
+ if (shortGIrate==_TRUE)
+ arg |= BIT(5);
+
+ tx_ra_bitmap |= ((raid<<28)&0xf0000000);
+
+ DBG_871X("%s=> mac_id:%d , raid:%d , bitmap=0x%x, arg=0x%x\n",
+ __FUNCTION__ , psta->mac_id, raid ,tx_ra_bitmap, arg);
+
+ //bitmap[0:27] = tx_rate_bitmap
+ //bitmap[28:31]= Rate Adaptive id
+ //arg[0:4] = macid
+ //arg[5] = Short GI
+ rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg);
+
+ if (shortGIrate==_TRUE)
+ init_rate |= BIT(6);
+
+ //set ra_id, init_rate
+ psta->raid = raid;
+ psta->init_rate = init_rate;
+
+ }
+ else
+ {
+ DBG_871X("station aid %d exceed the max number\n", psta->aid);
+ }
+
+}
+
+static void update_bmc_sta(_adapter *padapter)
+{
+ _irqL irqL;
+ u32 init_rate=0;
+ unsigned char network_type, raid;
+ int i, supportRateNum = 0;
+ unsigned int tx_ra_bitmap=0;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ WLAN_BSSID_EX *pcur_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+ struct sta_info *psta = rtw_get_bcmc_stainfo(padapter);
+
+ if(psta)
+ {
+ psta->aid = 0;//default set to 0
+ //psta->mac_id = psta->aid+4;
+ psta->mac_id = psta->aid + 1;
+
+ psta->qos_option = 0;
+ psta->htpriv.ht_option = _FALSE;
+
+ psta->ieee8021x_blocked = 0;
+
+ _rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+
+ //psta->dot118021XPrivacy = _NO_PRIVACY_;//!!! remove it, because it has been set before this.
+
+
+
+ //prepare for add_RATid
+ supportRateNum = rtw_get_rateset_len((u8*)&pcur_network->SupportedRates);
+ network_type = rtw_check_network_type((u8*)&pcur_network->SupportedRates, supportRateNum, 1);
+
+ _rtw_memcpy(psta->bssrateset, &pcur_network->SupportedRates, supportRateNum);
+ psta->bssratelen = supportRateNum;
+
+ //b/g mode ra_bitmap
+ for (i=0; i<supportRateNum; i++)
+ {
+ if (psta->bssrateset[i])
+ tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value(psta->bssrateset[i]&0x7f);
+ }
+
+ if ( pcur_network->Configuration.DSConfig > 14 ) {
+ //force to A mode. 5G doesn't support CCK rates
+ network_type = WIRELESS_11A;
+ tx_ra_bitmap = 0x150; // 6, 12, 24 Mbps
+ } else {
+ //force to b mode
+ network_type = WIRELESS_11B;
+ tx_ra_bitmap = 0xf;
+ }
+
+ //tx_ra_bitmap = update_basic_rate(pcur_network->SupportedRates, supportRateNum);
+
+ raid = networktype_to_raid(network_type);
+ init_rate = get_highest_rate_idx(tx_ra_bitmap&0x0fffffff)&0x3f;
+
+ //DBG_871X("Add id %d val %08x to ratr for bmc sta\n", psta->aid, tx_ra_bitmap);
+
+ //if(pHalData->fw_ractrl == _TRUE)
+ {
+ u8 arg = 0;
+
+ arg = psta->mac_id&0x1f;
+
+ arg |= BIT(7);
+
+ //if (shortGIrate==_TRUE)
+ // arg |= BIT(5);
+
+ tx_ra_bitmap |= ((raid<<28)&0xf0000000);
+
+ DBG_871X("update_bmc_sta, mask=0x%x, arg=0x%x\n", tx_ra_bitmap, arg);
+
+ //bitmap[0:27] = tx_rate_bitmap
+ //bitmap[28:31]= Rate Adaptive id
+ //arg[0:4] = macid
+ //arg[5] = Short GI
+ rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg);
+
+ }
+
+ //set ra_id, init_rate
+ psta->raid = raid;
+ psta->init_rate = init_rate;
+
+ _enter_critical_bh(&psta->lock, &irqL);
+ psta->state = _FW_LINKED;
+ _exit_critical_bh(&psta->lock, &irqL);
+
+ }
+ else
+ {
+ DBG_871X("add_RATid_bmc_sta error!\n");
+ }
+
+}
+
+//notes:
+//AID: 1~MAX for sta and 0 for bc/mc in ap/adhoc mode
+//MAC_ID = AID+1 for sta in ap/adhoc mode
+//MAC_ID = 1 for bc/mc for sta/ap/adhoc
+//MAC_ID = 0 for bssid for sta/ap/adhoc
+//CAM_ID = //0~3 for default key, cmd_id=macid + 3, macid=aid+1;
+
+void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta)
+{
+ _irqL irqL;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
+ struct ht_priv *phtpriv_sta = &psta->htpriv;
+
+ //set intf_tag to if1
+ //psta->intf_tag = 0;
+
+ //psta->mac_id = psta->aid+4;
+ psta->mac_id = psta->aid+1;
+
+ if(psecuritypriv->dot11AuthAlgrthm==dot11AuthAlgrthm_8021X)
+ psta->ieee8021x_blocked = _TRUE;
+ else
+ psta->ieee8021x_blocked = _FALSE;
+
+
+ //update sta's cap
+
+ //ERP
+ VCS_update(padapter, psta);
+
+ //HT related cap
+ if(phtpriv_sta->ht_option)
+ {
+ //check if sta supports rx ampdu
+ phtpriv_sta->ampdu_enable = phtpriv_ap->ampdu_enable;
+
+ //check if sta support s Short GI
+ if((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40))
+ {
+ phtpriv_sta->sgi = _TRUE;
+ }
+
+ // bwmode
+ if((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH))
+ {
+ //phtpriv_sta->bwmode = HT_CHANNEL_WIDTH_40;
+ phtpriv_sta->bwmode = pmlmeext->cur_bwmode;
+ phtpriv_sta->ch_offset = pmlmeext->cur_ch_offset;
+
+ }
+
+ psta->qos_option = _TRUE;
+
+ }
+ else
+ {
+ phtpriv_sta->ampdu_enable = _FALSE;
+
+ phtpriv_sta->sgi = _FALSE;
+ phtpriv_sta->bwmode = HT_CHANNEL_WIDTH_20;
+ phtpriv_sta->ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ }
+
+ //Rx AMPDU
+ send_delba(padapter, 0, psta->hwaddr);// recipient
+
+ //TX AMPDU
+ send_delba(padapter, 1, psta->hwaddr);// // originator
+ phtpriv_sta->agg_enable_bitmap = 0x0;//reset
+ phtpriv_sta->candidate_tid_bitmap = 0x0;//reset
+
+
+ //todo: init other variables
+
+ _rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+
+
+ //add ratid
+ //add_RATid(padapter, psta);//move to ap_sta_info_defer_update()
+
+
+ _enter_critical_bh(&psta->lock, &irqL);
+ psta->state |= _FW_LINKED;
+ _exit_critical_bh(&psta->lock, &irqL);
+
+
+}
+
+static void update_hw_ht_param(_adapter *padapter)
+{
+ unsigned char max_AMPDU_len;
+ unsigned char min_MPDU_spacing;
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ DBG_871X("%s\n", __FUNCTION__);
+
+
+ //handle A-MPDU parameter field
+ /*
+ AMPDU_para [1:0]:Max AMPDU Len => 0:8k , 1:16k, 2:32k, 3:64k
+ AMPDU_para [4:2]:Min MPDU Start Spacing
+ */
+ max_AMPDU_len = pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x03;
+
+ min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) >> 2;
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
+
+ //
+ // Config SM Power Save setting
+ //
+ pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & 0x0C) >> 2;
+ if(pmlmeinfo->SM_PS == WLAN_HT_CAP_SM_PS_STATIC)
+ {
+ /*u8 i;
+ //update the MCS rates
+ for (i = 0; i < 16; i++)
+ {
+ pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+ }*/
+ DBG_871X("%s(): WLAN_HT_CAP_SM_PS_STATIC\n",__FUNCTION__);
+ }
+
+ //
+ // Config current HT Protection mode.
+ //
+ //pmlmeinfo->HT_protection = pmlmeinfo->HT_info.infos[1] & 0x3;
+
+}
+
+static void start_bss_network(_adapter *padapter, u8 *pbuf)
+{
+ u8 *p;
+ u8 val8, cur_channel, cur_bwmode, cur_ch_offset;
+ u16 bcn_interval;
+ u32 acparm;
+ int ie_len;
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct security_priv* psecuritypriv=&(padapter->securitypriv);
+ WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork_mlmeext = &(pmlmeinfo->network);
+ struct HT_info_element *pht_info=NULL;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
+#endif //CONFIG_P2P
+ u8 cbw40_enable=0;
+ u8 change_band = _FALSE;
+ //DBG_871X("%s\n", __FUNCTION__);
+
+ bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod;
+ cur_channel = pnetwork->Configuration.DSConfig;
+ cur_bwmode = HT_CHANNEL_WIDTH_20;;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
+
+ //check if there is wps ie,
+ //if there is wpsie in beacon, the hostapd will update beacon twice when stating hostapd,
+ //and at first time the security ie ( RSN/WPA IE) will not include in beacon.
+ if(NULL == rtw_get_wps_ie(pnetwork->IEs+_FIXED_IE_LENGTH_, pnetwork->IELength-_FIXED_IE_LENGTH_, NULL, NULL))
+ {
+ pmlmeext->bstart_bss = _TRUE;
+ }
+
+ //todo: update wmm, ht cap
+ //pmlmeinfo->WMM_enable;
+ //pmlmeinfo->HT_enable;
+ if(pmlmepriv->qospriv.qos_option)
+ pmlmeinfo->WMM_enable = _TRUE;
+
+ if(pmlmepriv->htpriv.ht_option)
+ {
+ pmlmeinfo->WMM_enable = _TRUE;
+ pmlmeinfo->HT_enable = _TRUE;
+ //pmlmeinfo->HT_info_enable = _TRUE;
+ //pmlmeinfo->HT_caps_enable = _TRUE;
+
+ update_hw_ht_param(padapter);
+ }
+
+
+ if(pmlmepriv->cur_network.join_res != _TRUE) //setting only at first time
+ {
+ //WEP Key will be set before this function, do not clear CAM.
+ if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_))
+ flush_all_cam_entry(padapter); //clear CAM
+ }
+
+ //set MSR to AP_Mode
+ Set_MSR(padapter, _HW_STATE_AP_);
+
+ //Set BSSID REG
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->MacAddress);
+
+ //Set EDCA param reg
+#ifdef CONFIG_CONCURRENT_MODE
+ acparm = 0x005ea42b;
+#else
+ acparm = 0x002F3217; // VO
+#endif
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acparm));
+ acparm = 0x005E4317; // VI
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acparm));
+ //acparm = 0x00105320; // BE
+ acparm = 0x005ea42b;
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
+ acparm = 0x0000A444; // BK
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acparm));
+
+ //Set Security
+ val8 = (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X)? 0xcc: 0xcf;
+ rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
+
+ //Beacon Control related register
+ rtw_hal_set_hwreg(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&bcn_interval));
+
+ if(pmlmepriv->cur_network.join_res != _TRUE) //setting only at first time
+ {
+ u32 initialgain;
+
+ initialgain = 0x1e;
+
+
+ //disable dynamic functions, such as high power, DIG
+ //Save_DM_Func_Flag(padapter);
+ //Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->adapter_type > PRIMARY_ADAPTER)
+ {
+ if(rtw_buddy_adapter_up(padapter))
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+
+ //turn on dynamic functions on PRIMARY_ADAPTER, dynamic functions only runs at PRIMARY_ADAPTER
+ Switch_DM_Func(pbuddy_adapter, DYNAMIC_FUNC_DIG|DYNAMIC_FUNC_HP|DYNAMIC_FUNC_SS, _TRUE);
+
+ rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
+ }
+ }
+ else
+#endif
+ {
+ //turn on dynamic functions
+ Switch_DM_Func(padapter, DYNAMIC_FUNC_DIG|DYNAMIC_FUNC_HP|DYNAMIC_FUNC_SS, _TRUE);
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
+ }
+
+ }
+
+ //set channel, bwmode
+ p = rtw_get_ie((pnetwork->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if( p && ie_len)
+ {
+ pht_info = (struct HT_info_element *)(p+2);
+
+ if( pmlmeext->cur_channel > 14 )
+ {
+ if( pregpriv->cbw40_enable & BIT(1) )
+ cbw40_enable = 1;
+ }
+ else
+ if( pregpriv->cbw40_enable & BIT(0) )
+ cbw40_enable = 1;
+
+ if ((cbw40_enable) && (pht_info->infos[0] & BIT(2)))
+ {
+ //switch to the 40M Hz mode
+ //pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ cur_bwmode = HT_CHANNEL_WIDTH_40;
+ switch (pht_info->infos[0] & 0x3)
+ {
+ case 1:
+ //pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ break;
+
+ case 3:
+ //pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ break;
+
+ default:
+ //pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ break;
+ }
+
+ }
+
+ }
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_set_ap_channel_bandwidth(padapter, cur_channel, cur_ch_offset, cur_bwmode);
+#else
+ //TODO: need to judge the phy parameters on concurrent mode for single phy
+ //set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+#ifdef CONFIG_CONCURRENT_MODE
+ if(!check_buddy_fwstate(padapter, _FW_LINKED|_FW_UNDER_LINKING|_FW_UNDER_SURVEY))
+ {
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
+ }
+ else if(check_buddy_fwstate(padapter, _FW_LINKED)==_TRUE)//only second adapter can enter AP Mode
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ //To sync cur_channel/cur_bwmode/cur_ch_offset with primary adapter
+ DBG_871X("primary iface is at linked state, sync cur_channel/cur_bwmode/cur_ch_offset\n");
+ DBG_871X("primary adapter, CH=%d, BW=%d, offset=%d\n", pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_bwmode, pbuddy_mlmeext->cur_ch_offset);
+ DBG_871X("second adapter, CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
+
+ if((cur_channel <= 14 && pbuddy_mlmeext->cur_channel >= 36) ||
+ (cur_channel >= 36 && pbuddy_mlmeext->cur_channel <= 14))
+ change_band = _TRUE;
+
+ cur_channel = pbuddy_mlmeext->cur_channel;
+ if(cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ if(pht_info)
+ pht_info->infos[0] &= ~(BIT(0)|BIT(1));
+
+ if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ cur_ch_offset = pbuddy_mlmeext->cur_ch_offset;
+
+ //to update cur_ch_offset value in beacon
+ if(pht_info)
+ {
+ switch(cur_ch_offset)
+ {
+ case HAL_PRIME_CHNL_OFFSET_LOWER:
+ pht_info->infos[0] |= 0x1;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_UPPER:
+ pht_info->infos[0] |= 0x3;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_DONT_CARE:
+ default:
+ break;
+ }
+ }
+
+ }
+ else if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20)
+ {
+ cur_bwmode = HT_CHANNEL_WIDTH_20;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
+ if(cur_channel>0 && cur_channel<5)
+ {
+ if(pht_info)
+ pht_info->infos[0] |= 0x1;
+
+ cur_bwmode = HT_CHANNEL_WIDTH_40;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ }
+
+ if(cur_channel>7 && cur_channel<(14+1))
+ {
+ if(pht_info)
+ pht_info->infos[0] |= 0x3;
+
+ cur_bwmode = HT_CHANNEL_WIDTH_40;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ }
+
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
+ }
+
+ }
+
+ // to update channel value in beacon
+ pnetwork->Configuration.DSConfig = cur_channel;
+ p = rtw_get_ie((pnetwork->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _DSSET_IE_, &ie_len, (pnetwork->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if(p && ie_len>0)
+ *(p + 2) = cur_channel;
+
+ if(pht_info)
+ pht_info->primary_channel = cur_channel;
+
+ //set buddy adapter channel, bandwidth, offeset to current adapter
+ pmlmeext->cur_channel = cur_channel;
+ pmlmeext->cur_bwmode = cur_bwmode;
+ pmlmeext->cur_ch_offset = cur_ch_offset;
+
+ //buddy interface band is different from current interface, update ERP, support rate, ext support rate IE
+ if(change_band == _TRUE)
+ change_band_update_ie(padapter, pnetwork);
+ }
+#else
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
+#endif //CONFIG_CONCURRENT_MODE
+
+ DBG_871X("CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
+
+ //
+ pmlmeext->cur_channel = cur_channel;
+ pmlmeext->cur_bwmode = cur_bwmode;
+ pmlmeext->cur_ch_offset = cur_ch_offset;
+#endif //CONFIG_DUALMAC_CONCURRENT
+ pmlmeext->cur_wireless_mode = pmlmepriv->cur_network.network_type;
+
+ //update cur_wireless_mode
+ update_wireless_mode(padapter);
+
+ //update RRSR after set channel and bandwidth
+ UpdateBrateTbl(padapter, pnetwork->SupportedRates);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates);
+
+ //udpate capability after cur_wireless_mode updated
+ update_capinfo(padapter, rtw_get_capability((WLAN_BSSID_EX *)pnetwork));
+
+ //let pnetwork_mlmeext == pnetwork_mlme.
+ _rtw_memcpy(pnetwork_mlmeext, pnetwork, pnetwork->Length);
+
+#ifdef CONFIG_P2P
+ _rtw_memcpy(pwdinfo->p2p_group_ssid, pnetwork->Ssid.Ssid, pnetwork->Ssid.SsidLength);
+ pwdinfo->p2p_group_ssid_len = pnetwork->Ssid.SsidLength;
+#endif //CONFIG_P2P
+
+ if(_TRUE == pmlmeext->bstart_bss)
+ {
+ update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
+
+#ifndef CONFIG_INTERRUPT_BASED_TXBCN //other case will tx beacon when bcn interrupt coming in.
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+ //issue beacon frame
+ if(send_beacon(padapter)==_FAIL)
+ {
+ DBG_871X("issue_beacon, fail!\n");
+ }
+#endif
+#endif //!CONFIG_INTERRUPT_BASED_TXBCN
+
+ }
+
+
+ //update bc/mc sta_info
+ update_bmc_sta(padapter);
+
+ //pmlmeext->bstart_bss = _TRUE;
+
+}
+
+int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
+{
+ int ret=_SUCCESS;
+ u8 *p;
+ u8 *pHT_caps_ie=NULL;
+ u8 *pHT_info_ie=NULL;
+ struct sta_info *psta = NULL;
+ u16 cap, ht_cap=_FALSE;
+ uint ie_len = 0;
+ int group_cipher, pairwise_cipher;
+ u8 channel, network_type, supportRate[NDIS_802_11_LENGTH_RATES_EX];
+ int supportRateNum = 0;
+ u8 OUI1[] = {0x00, 0x50, 0xf2,0x01};
+ u8 wps_oui[4]={0x0,0x50,0xf2,0x04};
+ u8 WMM_PARA_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x01, 0x01};
+ struct registry_priv *pregistrypriv = &padapter->registrypriv;
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ WLAN_BSSID_EX *pbss_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ u8 *ie = pbss_network->IEs;
+
+
+ /* SSID */
+ /* Supported rates */
+ /* DS Params */
+ /* WLAN_EID_COUNTRY */
+ /* ERP Information element */
+ /* Extended supported rates */
+ /* WPA/WPA2 */
+ /* Wi-Fi Wireless Multimedia Extensions */
+ /* ht_capab, ht_oper */
+ /* WPS IE */
+
+ DBG_871X("%s, len=%d\n", __FUNCTION__, len);
+
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
+ return _FAIL;
+
+
+ if(len>MAX_IE_SZ)
+ return _FAIL;
+
+ pbss_network->IELength = len;
+
+ _rtw_memset(ie, 0, MAX_IE_SZ);
+
+ _rtw_memcpy(ie, pbuf, pbss_network->IELength);
+
+
+ if(pbss_network->InfrastructureMode!=Ndis802_11APMode)
+ return _FAIL;
+
+ pbss_network->Rssi = 0;
+
+ _rtw_memcpy(pbss_network->MacAddress, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ //beacon interval
+ p = rtw_get_beacon_interval_from_ie(ie);//ie + 8; // 8: TimeStamp, 2: Beacon Interval 2:Capability
+ //pbss_network->Configuration.BeaconPeriod = le16_to_cpu(*(unsigned short*)p);
+ pbss_network->Configuration.BeaconPeriod = RTW_GET_LE16(p);
+
+ //capability
+ //cap = *(unsigned short *)rtw_get_capability_from_ie(ie);
+ //cap = le16_to_cpu(cap);
+ cap = RTW_GET_LE16(ie);
+
+ //SSID
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->IELength -_BEACON_IE_OFFSET_));
+ if(p && ie_len>0)
+ {
+ _rtw_memset(&pbss_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
+ _rtw_memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len);
+ pbss_network->Ssid.SsidLength = ie_len;
+ }
+
+ //chnnel
+ channel = 0;
+ pbss_network->Configuration.Length = 0;
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _DSSET_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
+ if(p && ie_len>0)
+ channel = *(p + 2);
+
+ pbss_network->Configuration.DSConfig = channel;
+
+
+ _rtw_memset(supportRate, 0, NDIS_802_11_LENGTH_RATES_EX);
+ // get supported rates
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
+ if (p != NULL)
+ {
+ _rtw_memcpy(supportRate, p+2, ie_len);
+ supportRateNum = ie_len;
+ }
+
+ //get ext_supported rates
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _EXT_SUPPORTEDRATES_IE_, &ie_len, pbss_network->IELength - _BEACON_IE_OFFSET_);
+ if (p != NULL)
+ {
+ _rtw_memcpy(supportRate+supportRateNum, p+2, ie_len);
+ supportRateNum += ie_len;
+
+ }
+
+ network_type = rtw_check_network_type(supportRate, supportRateNum, channel);
+
+ rtw_set_supported_rate(pbss_network->SupportedRates, network_type);
+
+
+ //parsing ERP_IE
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _ERPINFO_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
+ if(p && ie_len>0)
+ {
+ ERP_IE_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)p);
+ }
+
+ //update privacy/security
+ if (cap & BIT(4))
+ pbss_network->Privacy = 1;
+ else
+ pbss_network->Privacy = 0;
+
+ psecuritypriv->wpa_psk = 0;
+
+ //wpa2
+ group_cipher = 0; pairwise_cipher = 0;
+ psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_;
+ psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_;
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _RSN_IE_2_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
+ if(p && ie_len>0)
+ {
+ if(rtw_parse_wpa2_ie(p, ie_len+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
+ {
+ psecuritypriv->dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
+
+ psecuritypriv->dot8021xalg = 1;//psk, todo:802.1x
+ psecuritypriv->wpa_psk |= BIT(1);
+
+ psecuritypriv->wpa2_group_cipher = group_cipher;
+ psecuritypriv->wpa2_pairwise_cipher = pairwise_cipher;
+#if 0
+ switch(group_cipher)
+ {
+ case WPA_CIPHER_NONE:
+ psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_;
+ break;
+ case WPA_CIPHER_WEP40:
+ psecuritypriv->wpa2_group_cipher = _WEP40_;
+ break;
+ case WPA_CIPHER_TKIP:
+ psecuritypriv->wpa2_group_cipher = _TKIP_;
+ break;
+ case WPA_CIPHER_CCMP:
+ psecuritypriv->wpa2_group_cipher = _AES_;
+ break;
+ case WPA_CIPHER_WEP104:
+ psecuritypriv->wpa2_group_cipher = _WEP104_;
+ break;
+ }
+
+ switch(pairwise_cipher)
+ {
+ case WPA_CIPHER_NONE:
+ psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_;
+ break;
+ case WPA_CIPHER_WEP40:
+ psecuritypriv->wpa2_pairwise_cipher = _WEP40_;
+ break;
+ case WPA_CIPHER_TKIP:
+ psecuritypriv->wpa2_pairwise_cipher = _TKIP_;
+ break;
+ case WPA_CIPHER_CCMP:
+ psecuritypriv->wpa2_pairwise_cipher = _AES_;
+ break;
+ case WPA_CIPHER_WEP104:
+ psecuritypriv->wpa2_pairwise_cipher = _WEP104_;
+ break;
+ }
+#endif
+ }
+
+ }
+
+ //wpa
+ ie_len = 0;
+ group_cipher = 0; pairwise_cipher = 0;
+ psecuritypriv->wpa_group_cipher = _NO_PRIVACY_;
+ psecuritypriv->wpa_pairwise_cipher = _NO_PRIVACY_;
+ for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2))
+ {
+ p = rtw_get_ie(p, _SSN_IE_1_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_ - (ie_len + 2)));
+ if ((p) && (_rtw_memcmp(p+2, OUI1, 4)))
+ {
+ if(rtw_parse_wpa_ie(p, ie_len+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
+ {
+ psecuritypriv->dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
+
+ psecuritypriv->dot8021xalg = 1;//psk, todo:802.1x
+
+ psecuritypriv->wpa_psk |= BIT(0);
+
+ psecuritypriv->wpa_group_cipher = group_cipher;
+ psecuritypriv->wpa_pairwise_cipher = pairwise_cipher;
+
+#if 0
+ switch(group_cipher)
+ {
+ case WPA_CIPHER_NONE:
+ psecuritypriv->wpa_group_cipher = _NO_PRIVACY_;
+ break;
+ case WPA_CIPHER_WEP40:
+ psecuritypriv->wpa_group_cipher = _WEP40_;
+ break;
+ case WPA_CIPHER_TKIP:
+ psecuritypriv->wpa_group_cipher = _TKIP_;
+ break;
+ case WPA_CIPHER_CCMP:
+ psecuritypriv->wpa_group_cipher = _AES_;
+ break;
+ case WPA_CIPHER_WEP104:
+ psecuritypriv->wpa_group_cipher = _WEP104_;
+ break;
+ }
+
+ switch(pairwise_cipher)
+ {
+ case WPA_CIPHER_NONE:
+ psecuritypriv->wpa_pairwise_cipher = _NO_PRIVACY_;
+ break;
+ case WPA_CIPHER_WEP40:
+ psecuritypriv->wpa_pairwise_cipher = _WEP40_;
+ break;
+ case WPA_CIPHER_TKIP:
+ psecuritypriv->wpa_pairwise_cipher = _TKIP_;
+ break;
+ case WPA_CIPHER_CCMP:
+ psecuritypriv->wpa_pairwise_cipher = _AES_;
+ break;
+ case WPA_CIPHER_WEP104:
+ psecuritypriv->wpa_pairwise_cipher = _WEP104_;
+ break;
+ }
+#endif
+ }
+
+ break;
+
+ }
+
+ if ((p == NULL) || (ie_len == 0))
+ {
+ break;
+ }
+
+ }
+
+ //wmm
+ ie_len = 0;
+ pmlmepriv->qospriv.qos_option = 0;
+ if(pregistrypriv->wmm_enable)
+ {
+ for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2))
+ {
+ p = rtw_get_ie(p, _VENDOR_SPECIFIC_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_ - (ie_len + 2)));
+ if((p) && _rtw_memcmp(p+2, WMM_PARA_IE, 6))
+ {
+ pmlmepriv->qospriv.qos_option = 1;
+
+ *(p+8) |= BIT(7);//QoS Info, support U-APSD
+
+ /* disable all ACM bits since the WMM admission control is not supported */
+ *(p + 10) &= ~BIT(4); /* BE */
+ *(p + 14) &= ~BIT(4); /* BK */
+ *(p + 18) &= ~BIT(4); /* VI */
+ *(p + 22) &= ~BIT(4); /* VO */
+
+ break;
+ }
+
+ if ((p == NULL) || (ie_len == 0))
+ {
+ break;
+ }
+ }
+ }
+
+ //parsing HT_CAP_IE
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
+ if(p && ie_len>0)
+ {
+ u8 rf_type;
+
+ struct rtw_ieee80211_ht_cap *pht_cap = (struct rtw_ieee80211_ht_cap *)(p+2);
+
+ pHT_caps_ie=p;
+
+
+ ht_cap = _TRUE;
+ network_type |= WIRELESS_11_24N;
+
+
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+
+ if((psecuritypriv->wpa_pairwise_cipher & WPA_CIPHER_CCMP) ||
+ (psecuritypriv->wpa2_pairwise_cipher & WPA_CIPHER_CCMP))
+ {
+ pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY&(0x07<<2));
+ }
+ else
+ {
+ pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY&0x00);
+ }
+
+ pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_FACTOR & 0x03); //set Max Rx AMPDU size to 64K
+
+ if(rf_type == RF_1T1R)
+ {
+ pht_cap->supp_mcs_set[0] = 0xff;
+ pht_cap->supp_mcs_set[1] = 0x0;
+ }
+
+ _rtw_memcpy(&pmlmepriv->htpriv.ht_cap, p+2, ie_len);
+
+ }
+
+ //parsing HT_INFO_IE
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
+ if(p && ie_len>0)
+ {
+ pHT_info_ie=p;
+ }
+
+ switch(network_type)
+ {
+ case WIRELESS_11B:
+ pbss_network->NetworkTypeInUse = Ndis802_11DS;
+ break;
+ case WIRELESS_11G:
+ case WIRELESS_11BG:
+ case WIRELESS_11G_24N:
+ case WIRELESS_11BG_24N:
+ pbss_network->NetworkTypeInUse = Ndis802_11OFDM24;
+ break;
+ case WIRELESS_11A:
+ pbss_network->NetworkTypeInUse = Ndis802_11OFDM5;
+ break;
+ default :
+ pbss_network->NetworkTypeInUse = Ndis802_11OFDM24;
+ break;
+ }
+
+ pmlmepriv->cur_network.network_type = network_type;
+
+
+ pmlmepriv->htpriv.ht_option = _FALSE;
+#ifdef CONFIG_80211N_HT
+ if( (psecuritypriv->wpa2_pairwise_cipher&WPA_CIPHER_TKIP) ||
+ (psecuritypriv->wpa_pairwise_cipher&WPA_CIPHER_TKIP))
+ {
+ //todo:
+ //ht_cap = _FALSE;
+ }
+
+ //ht_cap
+ if(pregistrypriv->ht_enable && ht_cap==_TRUE)
+ {
+ pmlmepriv->htpriv.ht_option = _TRUE;
+ pmlmepriv->qospriv.qos_option = 1;
+
+ if(pregistrypriv->ampdu_enable==1)
+ {
+ pmlmepriv->htpriv.ampdu_enable = _TRUE;
+ }
+
+ HT_caps_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)pHT_caps_ie);
+
+ HT_info_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)pHT_info_ie);
+ }
+#endif
+
+
+ pbss_network->Length = get_WLAN_BSSID_EX_sz((WLAN_BSSID_EX *)pbss_network);
+
+ //issue beacon to start bss network
+ start_bss_network(padapter, (u8*)pbss_network);
+
+
+ //alloc sta_info for ap itself
+ psta = rtw_get_stainfo(&padapter->stapriv, pbss_network->MacAddress);
+ if(!psta)
+ {
+ psta = rtw_alloc_stainfo(&padapter->stapriv, pbss_network->MacAddress);
+ if (psta == NULL)
+ {
+ return _FAIL;
+ }
+ }
+ psta->state |= WIFI_AP_STATE; //Aries, add,fix bug of flush_cam_entry at STOP AP mode , 0724
+ rtw_indicate_connect( padapter);
+
+ pmlmepriv->cur_network.join_res = _TRUE;//for check if already set beacon
+
+ //update bc/mc sta_info
+ //update_bmc_sta(padapter);
+
+ return ret;
+
+}
+
+void rtw_set_macaddr_acl(_adapter *padapter, int mode)
+{
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+
+ DBG_871X("%s, mode=%d\n", __func__, mode);
+
+ pacl_list->mode = mode;
+}
+
+int rtw_acl_add_sta(_adapter *padapter, u8 *addr)
+{
+ _irqL irqL;
+ _list *plist, *phead;
+ u8 added = _FALSE;
+ int i, ret=0;
+ struct rtw_wlan_acl_node *paclnode;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+ _queue *pacl_node_q =&pacl_list->acl_node_q;
+
+ DBG_871X("%s(acl_num=%d)=" MAC_FMT "\n", __func__, pacl_list->num, MAC_ARG(addr));
+
+ if((NUM_ACL-1) < pacl_list->num)
+ return (-1);
+
+
+ _enter_critical_bh(&(pacl_node_q->lock), &irqL);
+
+ phead = get_list_head(pacl_node_q);
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
+ plist = get_next(plist);
+
+ if(_rtw_memcmp(paclnode->addr, addr, ETH_ALEN))
+ {
+ if(paclnode->valid == _TRUE)
+ {
+ added = _TRUE;
+ DBG_871X("%s, sta has been added\n", __func__);
+ break;
+ }
+ }
+ }
+
+ _exit_critical_bh(&(pacl_node_q->lock), &irqL);
+
+
+ if(added == _TRUE)
+ return ret;
+
+
+ _enter_critical_bh(&(pacl_node_q->lock), &irqL);
+
+ for(i=0; i< NUM_ACL; i++)
+ {
+ paclnode = &pacl_list->aclnode[i];
+
+ if(paclnode->valid == _FALSE)
+ {
+ _rtw_init_listhead(&paclnode->list);
+
+ _rtw_memcpy(paclnode->addr, addr, ETH_ALEN);
+
+ paclnode->valid = _TRUE;
+
+ rtw_list_insert_tail(&paclnode->list, get_list_head(pacl_node_q));
+
+ pacl_list->num++;
+
+ break;
+ }
+ }
+
+ DBG_871X("%s, acl_num=%d\n", __func__, pacl_list->num);
+
+ _exit_critical_bh(&(pacl_node_q->lock), &irqL);
+
+ return ret;
+}
+
+int rtw_acl_remove_sta(_adapter *padapter, u8 *addr)
+{
+ _irqL irqL;
+ _list *plist, *phead;
+ int i, ret=0;
+ struct rtw_wlan_acl_node *paclnode;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+ _queue *pacl_node_q =&pacl_list->acl_node_q;
+
+ DBG_871X("%s(acl_num=%d)=" MAC_FMT "\n", __func__, pacl_list->num, MAC_ARG(addr));
+
+ _enter_critical_bh(&(pacl_node_q->lock), &irqL);
+
+ phead = get_list_head(pacl_node_q);
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
+ plist = get_next(plist);
+
+ if(_rtw_memcmp(paclnode->addr, addr, ETH_ALEN))
+ {
+ if(paclnode->valid == _TRUE)
+ {
+ paclnode->valid = _FALSE;
+
+ rtw_list_delete(&paclnode->list);
+
+ pacl_list->num--;
+ }
+ }
+ }
+
+ _exit_critical_bh(&(pacl_node_q->lock), &irqL);
+
+ DBG_871X("%s, acl_num=%d\n", __func__, pacl_list->num);
+
+ return ret;
+
+}
+
+#ifdef CONFIG_NATIVEAP_MLME
+
+static void update_bcn_fixed_ie(_adapter *padapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+}
+
+static void update_bcn_erpinfo_ie(_adapter *padapter)
+{
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = &(pmlmeinfo->network);
+ unsigned char *p, *ie = pnetwork->IEs;
+ u32 len = 0;
+
+ DBG_871X("%s, ERP_enable=%d\n", __FUNCTION__, pmlmeinfo->ERP_enable);
+
+ if(!pmlmeinfo->ERP_enable)
+ return;
+
+ //parsing ERP_IE
+ p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _ERPINFO_IE_, &len, (pnetwork->IELength - _BEACON_IE_OFFSET_));
+ if(p && len>0)
+ {
+ PNDIS_802_11_VARIABLE_IEs pIE = (PNDIS_802_11_VARIABLE_IEs)p;
+
+ if (pmlmepriv->num_sta_non_erp == 1)
+ pIE->data[0] |= RTW_ERP_INFO_NON_ERP_PRESENT|RTW_ERP_INFO_USE_PROTECTION;
+ else
+ pIE->data[0] &= ~(RTW_ERP_INFO_NON_ERP_PRESENT|RTW_ERP_INFO_USE_PROTECTION);
+
+ if(pmlmepriv->num_sta_no_short_preamble > 0)
+ pIE->data[0] |= RTW_ERP_INFO_BARKER_PREAMBLE_MODE;
+ else
+ pIE->data[0] &= ~(RTW_ERP_INFO_BARKER_PREAMBLE_MODE);
+
+ ERP_IE_handler(padapter, pIE);
+ }
+
+}
+
+static void update_bcn_htcap_ie(_adapter *padapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+}
+
+static void update_bcn_htinfo_ie(_adapter *padapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+}
+
+static void update_bcn_rsn_ie(_adapter *padapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+}
+
+static void update_bcn_wpa_ie(_adapter *padapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+}
+
+static void update_bcn_wmm_ie(_adapter *padapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+}
+
+static void update_bcn_wps_ie(_adapter *padapter)
+{
+ u8 *pwps_ie=NULL, *pwps_ie_src, *premainder_ie, *pbackup_remainder_ie=NULL;
+ uint wps_ielen=0, wps_offset, remainder_ielen;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = &(pmlmeinfo->network);
+ unsigned char *ie = pnetwork->IEs;
+ u32 ielen = pnetwork->IELength;
+
+
+ DBG_871X("%s\n", __FUNCTION__);
+
+ pwps_ie = rtw_get_wps_ie(ie+_FIXED_IE_LENGTH_, ielen-_FIXED_IE_LENGTH_, NULL, &wps_ielen);
+
+ if(pwps_ie==NULL || wps_ielen==0)
+ return;
+
+ wps_offset = (uint)(pwps_ie-ie);
+
+ premainder_ie = pwps_ie + wps_ielen;
+
+ remainder_ielen = ielen - wps_offset - wps_ielen;
+
+ if(remainder_ielen>0)
+ {
+ pbackup_remainder_ie = rtw_malloc(remainder_ielen);
+ if(pbackup_remainder_ie)
+ _rtw_memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen);
+ }
+
+
+ pwps_ie_src = pmlmepriv->wps_beacon_ie;
+ if(pwps_ie_src == NULL)
+ return;
+
+
+ wps_ielen = (uint)pwps_ie_src[1];//to get ie data len
+ if((wps_offset+wps_ielen+2+remainder_ielen)<=MAX_IE_SZ)
+ {
+ _rtw_memcpy(pwps_ie, pwps_ie_src, wps_ielen+2);
+ pwps_ie += (wps_ielen+2);
+
+ if(pbackup_remainder_ie)
+ _rtw_memcpy(pwps_ie, pbackup_remainder_ie, remainder_ielen);
+
+ //update IELength
+ pnetwork->IELength = wps_offset + (wps_ielen+2) + remainder_ielen;
+ }
+
+ if(pbackup_remainder_ie)
+ rtw_mfree(pbackup_remainder_ie, remainder_ielen);
+
+}
+
+static void update_bcn_p2p_ie(_adapter *padapter)
+{
+
+}
+
+static void update_bcn_vendor_spec_ie(_adapter *padapter, u8*oui)
+{
+ DBG_871X("%s\n", __FUNCTION__);
+
+ if(_rtw_memcmp(RTW_WPA_OUI, oui, 4))
+ {
+ update_bcn_wpa_ie(padapter);
+ }
+ else if(_rtw_memcmp(WMM_OUI, oui, 4))
+ {
+ update_bcn_wmm_ie(padapter);
+ }
+ else if(_rtw_memcmp(WPS_OUI, oui, 4))
+ {
+ update_bcn_wps_ie(padapter);
+ }
+ else if(_rtw_memcmp(P2P_OUI, oui, 4))
+ {
+ update_bcn_p2p_ie(padapter);
+ }
+ else
+ {
+ DBG_871X("unknown OUI type!\n");
+ }
+
+
+}
+
+void update_beacon(_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
+{
+ _irqL irqL;
+ struct mlme_priv *pmlmepriv;
+ struct mlme_ext_priv *pmlmeext;
+ //struct mlme_ext_info *pmlmeinfo;
+
+ //DBG_871X("%s\n", __FUNCTION__);
+
+ if(!padapter)
+ return;
+
+ pmlmepriv = &(padapter->mlmepriv);
+ pmlmeext = &(padapter->mlmeextpriv);
+ //pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ if(_FALSE == pmlmeext->bstart_bss)
+ return;
+
+ _enter_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+
+ switch(ie_id)
+ {
+ case 0xFF:
+
+ update_bcn_fixed_ie(padapter);//8: TimeStamp, 2: Beacon Interval 2:Capability
+
+ break;
+
+ case _TIM_IE_:
+
+ update_BCNTIM(padapter);
+
+ break;
+
+ case _ERPINFO_IE_:
+
+ update_bcn_erpinfo_ie(padapter);
+
+ break;
+
+ case _HT_CAPABILITY_IE_:
+
+ update_bcn_htcap_ie(padapter);
+
+ break;
+
+ case _RSN_IE_2_:
+
+ update_bcn_rsn_ie(padapter);
+
+ break;
+
+ case _HT_ADD_INFO_IE_:
+
+ update_bcn_htinfo_ie(padapter);
+
+ break;
+
+ case _VENDOR_SPECIFIC_IE_:
+
+ update_bcn_vendor_spec_ie(padapter, oui);
+
+ break;
+
+ default:
+ break;
+ }
+
+ pmlmepriv->update_bcn = _TRUE;
+
+ _exit_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+
+#ifndef CONFIG_INTERRUPT_BASED_TXBCN
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+ if(tx)
+ {
+ //send_beacon(padapter);//send_beacon must execute on TSR level
+ set_tx_beacon_cmd(padapter);
+ }
+#else
+ {
+ //PCI will issue beacon when BCN interrupt occurs.
+ }
+#endif
+#endif //!CONFIG_INTERRUPT_BASED_TXBCN
+
+}
+
+#ifdef CONFIG_80211N_HT
+
+/*
+op_mode
+Set to 0 (HT pure) under the followign conditions
+ - all STAs in the BSS are 20/40 MHz HT in 20/40 MHz BSS or
+ - all STAs in the BSS are 20 MHz HT in 20 MHz BSS
+Set to 1 (HT non-member protection) if there may be non-HT STAs
+ in both the primary and the secondary channel
+Set to 2 if only HT STAs are associated in BSS,
+ however and at least one 20 MHz HT STA is associated
+Set to 3 (HT mixed mode) when one or more non-HT STAs are associated
+ (currently non-GF HT station is considered as non-HT STA also)
+*/
+static int rtw_ht_operation_update(_adapter *padapter)
+{
+ u16 cur_op_mode, new_op_mode;
+ int op_mode_changes = 0;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
+
+ if(pmlmepriv->htpriv.ht_option == _TRUE)
+ return 0;
+
+ //if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed)
+ // return 0;
+
+ DBG_871X("%s current operation mode=0x%X\n",
+ __FUNCTION__, pmlmepriv->ht_op_mode);
+
+ if (!(pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT)
+ && pmlmepriv->num_sta_ht_no_gf) {
+ pmlmepriv->ht_op_mode |=
+ HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT;
+ op_mode_changes++;
+ } else if ((pmlmepriv->ht_op_mode &
+ HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT) &&
+ pmlmepriv->num_sta_ht_no_gf == 0) {
+ pmlmepriv->ht_op_mode &=
+ ~HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT;
+ op_mode_changes++;
+ }
+
+ if (!(pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT) &&
+ (pmlmepriv->num_sta_no_ht || pmlmepriv->olbc_ht)) {
+ pmlmepriv->ht_op_mode |= HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT;
+ op_mode_changes++;
+ } else if ((pmlmepriv->ht_op_mode &
+ HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT) &&
+ (pmlmepriv->num_sta_no_ht == 0 && !pmlmepriv->olbc_ht)) {
+ pmlmepriv->ht_op_mode &=
+ ~HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT;
+ op_mode_changes++;
+ }
+
+ /* Note: currently we switch to the MIXED op mode if HT non-greenfield
+ * station is associated. Probably it's a theoretical case, since
+ * it looks like all known HT STAs support greenfield.
+ */
+ new_op_mode = 0;
+ if (pmlmepriv->num_sta_no_ht ||
+ (pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT))
+ new_op_mode = OP_MODE_MIXED;
+ else if ((phtpriv_ap->ht_cap.cap_info & IEEE80211_HT_CAP_SUP_WIDTH)
+ && pmlmepriv->num_sta_ht_20mhz)
+ new_op_mode = OP_MODE_20MHZ_HT_STA_ASSOCED;
+ else if (pmlmepriv->olbc_ht)
+ new_op_mode = OP_MODE_MAY_BE_LEGACY_STAS;
+ else
+ new_op_mode = OP_MODE_PURE;
+
+ cur_op_mode = pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_OP_MODE_MASK;
+ if (cur_op_mode != new_op_mode) {
+ pmlmepriv->ht_op_mode &= ~HT_INFO_OPERATION_MODE_OP_MODE_MASK;
+ pmlmepriv->ht_op_mode |= new_op_mode;
+ op_mode_changes++;
+ }
+
+ DBG_871X("%s new operation mode=0x%X changes=%d\n",
+ __FUNCTION__, pmlmepriv->ht_op_mode, op_mode_changes);
+
+ return op_mode_changes;
+
+}
+
+#endif /* CONFIG_80211N_HT */
+
+void associated_clients_update(_adapter *padapter, u8 updated)
+{
+ //update associcated stations cap.
+ if(updated == _TRUE)
+ {
+ _irqL irqL;
+ _list *phead, *plist;
+ struct sta_info *psta=NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ phead = &pstapriv->asoc_list;
+ plist = get_next(phead);
+
+ //check asoc_queue
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
+
+ plist = get_next(plist);
+
+ VCS_update(padapter, psta);
+ }
+
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ }
+
+}
+
+/* called > TSR LEVEL for USB or SDIO Interface*/
+void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta)
+{
+ u8 beacon_updated = _FALSE;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+
+
+#if 0
+ if (!(psta->capability & WLAN_CAPABILITY_SHORT_PREAMBLE) &&
+ !psta->no_short_preamble_set) {
+ psta->no_short_preamble_set = 1;
+ pmlmepriv->num_sta_no_short_preamble++;
+ if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
+ (pmlmepriv->num_sta_no_short_preamble == 1))
+ ieee802_11_set_beacons(hapd->iface);
+ }
+#endif
+
+
+ if(!(psta->flags & WLAN_STA_SHORT_PREAMBLE))
+ {
+ if(!psta->no_short_preamble_set)
+ {
+ psta->no_short_preamble_set = 1;
+
+ pmlmepriv->num_sta_no_short_preamble++;
+
+ if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
+ (pmlmepriv->num_sta_no_short_preamble == 1))
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, 0xFF, NULL, _TRUE);
+ }
+
+ }
+ }
+ else
+ {
+ if(psta->no_short_preamble_set)
+ {
+ psta->no_short_preamble_set = 0;
+
+ pmlmepriv->num_sta_no_short_preamble--;
+
+ if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
+ (pmlmepriv->num_sta_no_short_preamble == 0))
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, 0xFF, NULL, _TRUE);
+ }
+
+ }
+ }
+
+#if 0
+ if (psta->flags & WLAN_STA_NONERP && !psta->nonerp_set) {
+ psta->nonerp_set = 1;
+ pmlmepriv->num_sta_non_erp++;
+ if (pmlmepriv->num_sta_non_erp == 1)
+ ieee802_11_set_beacons(hapd->iface);
+ }
+#endif
+
+ if(psta->flags & WLAN_STA_NONERP)
+ {
+ if(!psta->nonerp_set)
+ {
+ psta->nonerp_set = 1;
+
+ pmlmepriv->num_sta_non_erp++;
+
+ if (pmlmepriv->num_sta_non_erp == 1)
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
+ }
+ }
+
+ }
+ else
+ {
+ if(psta->nonerp_set)
+ {
+ psta->nonerp_set = 0;
+
+ pmlmepriv->num_sta_non_erp--;
+
+ if (pmlmepriv->num_sta_non_erp == 0)
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
+ }
+ }
+
+ }
+
+
+#if 0
+ if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT) &&
+ !psta->no_short_slot_time_set) {
+ psta->no_short_slot_time_set = 1;
+ pmlmepriv->num_sta_no_short_slot_time++;
+ if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
+ (pmlmepriv->num_sta_no_short_slot_time == 1))
+ ieee802_11_set_beacons(hapd->iface);
+ }
+#endif
+
+ if(!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT))
+ {
+ if(!psta->no_short_slot_time_set)
+ {
+ psta->no_short_slot_time_set = 1;
+
+ pmlmepriv->num_sta_no_short_slot_time++;
+
+ if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
+ (pmlmepriv->num_sta_no_short_slot_time == 1))
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, 0xFF, NULL, _TRUE);
+ }
+
+ }
+ }
+ else
+ {
+ if(psta->no_short_slot_time_set)
+ {
+ psta->no_short_slot_time_set = 0;
+
+ pmlmepriv->num_sta_no_short_slot_time--;
+
+ if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
+ (pmlmepriv->num_sta_no_short_slot_time == 0))
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, 0xFF, NULL, _TRUE);
+ }
+ }
+ }
+
+#ifdef CONFIG_80211N_HT
+
+ if (psta->flags & WLAN_STA_HT)
+ {
+ u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
+
+ DBG_871X("HT: STA " MAC_FMT " HT Capabilities "
+ "Info: 0x%04x\n", MAC_ARG(psta->hwaddr), ht_capab);
+
+ if (psta->no_ht_set) {
+ psta->no_ht_set = 0;
+ pmlmepriv->num_sta_no_ht--;
+ }
+
+ if ((ht_capab & IEEE80211_HT_CAP_GRN_FLD) == 0) {
+ if (!psta->no_ht_gf_set) {
+ psta->no_ht_gf_set = 1;
+ pmlmepriv->num_sta_ht_no_gf++;
+ }
+ DBG_871X("%s STA " MAC_FMT " - no "
+ "greenfield, num of non-gf stations %d\n",
+ __FUNCTION__, MAC_ARG(psta->hwaddr),
+ pmlmepriv->num_sta_ht_no_gf);
+ }
+
+ if ((ht_capab & IEEE80211_HT_CAP_SUP_WIDTH) == 0) {
+ if (!psta->ht_20mhz_set) {
+ psta->ht_20mhz_set = 1;
+ pmlmepriv->num_sta_ht_20mhz++;
+ }
+ DBG_871X("%s STA " MAC_FMT " - 20 MHz HT, "
+ "num of 20MHz HT STAs %d\n",
+ __FUNCTION__, MAC_ARG(psta->hwaddr),
+ pmlmepriv->num_sta_ht_20mhz);
+ }
+
+ }
+ else
+ {
+ if (!psta->no_ht_set) {
+ psta->no_ht_set = 1;
+ pmlmepriv->num_sta_no_ht++;
+ }
+ if(pmlmepriv->htpriv.ht_option == _TRUE) {
+ DBG_871X("%s STA " MAC_FMT
+ " - no HT, num of non-HT stations %d\n",
+ __FUNCTION__, MAC_ARG(psta->hwaddr),
+ pmlmepriv->num_sta_no_ht);
+ }
+ }
+
+ if (rtw_ht_operation_update(padapter) > 0)
+ {
+ update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
+ update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
+ }
+
+#endif /* CONFIG_80211N_HT */
+
+ //update associcated stations cap.
+ associated_clients_update(padapter, beacon_updated);
+
+ DBG_871X("%s, updated=%d\n", __func__, beacon_updated);
+
+}
+
+u8 bss_cap_update_on_sta_leave(_adapter *padapter, struct sta_info *psta)
+{
+ u8 beacon_updated = _FALSE;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+
+ if(!psta)
+ return beacon_updated;
+
+ if (psta->no_short_preamble_set) {
+ psta->no_short_preamble_set = 0;
+ pmlmepriv->num_sta_no_short_preamble--;
+ if (pmlmeext->cur_wireless_mode > WIRELESS_11B
+ && pmlmepriv->num_sta_no_short_preamble == 0)
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, 0xFF, NULL, _TRUE);
+ }
+ }
+
+ if (psta->nonerp_set) {
+ psta->nonerp_set = 0;
+ pmlmepriv->num_sta_non_erp--;
+ if (pmlmepriv->num_sta_non_erp == 0)
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
+ }
+ }
+
+ if (psta->no_short_slot_time_set) {
+ psta->no_short_slot_time_set = 0;
+ pmlmepriv->num_sta_no_short_slot_time--;
+ if (pmlmeext->cur_wireless_mode > WIRELESS_11B
+ && pmlmepriv->num_sta_no_short_slot_time == 0)
+ {
+ beacon_updated = _TRUE;
+ update_beacon(padapter, 0xFF, NULL, _TRUE);
+ }
+ }
+
+#ifdef CONFIG_80211N_HT
+
+ if (psta->no_ht_gf_set) {
+ psta->no_ht_gf_set = 0;
+ pmlmepriv->num_sta_ht_no_gf--;
+ }
+
+ if (psta->no_ht_set) {
+ psta->no_ht_set = 0;
+ pmlmepriv->num_sta_no_ht--;
+ }
+
+ if (psta->ht_20mhz_set) {
+ psta->ht_20mhz_set = 0;
+ pmlmepriv->num_sta_ht_20mhz--;
+ }
+
+ if (rtw_ht_operation_update(padapter) > 0)
+ {
+ update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
+ update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
+ }
+
+#endif /* CONFIG_80211N_HT */
+
+ //update associcated stations cap.
+ //associated_clients_update(padapter, beacon_updated); //move it to avoid deadlock
+
+ DBG_871X("%s, updated=%d\n", __func__, beacon_updated);
+
+ return beacon_updated;
+
+}
+
+u8 ap_free_sta(_adapter *padapter, struct sta_info *psta, bool active, u16 reason)
+{
+ _irqL irqL;
+ u8 beacon_updated = _FALSE;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ if(!psta)
+ return beacon_updated;
+
+ if (active == _TRUE)
+ {
+#ifdef CONFIG_80211N_HT
+ //tear down Rx AMPDU
+ send_delba(padapter, 0, psta->hwaddr);// recipient
+
+ //tear down TX AMPDU
+ send_delba(padapter, 1, psta->hwaddr);// // originator
+
+#endif //CONFIG_80211N_HT
+
+ issue_deauth(padapter, psta->hwaddr, reason);
+ }
+
+ psta->htpriv.agg_enable_bitmap = 0x0;//reset
+ psta->htpriv.candidate_tid_bitmap = 0x0;//reset
+
+
+ //report_del_sta_event(padapter, psta->hwaddr, reason);
+
+ //clear cam entry / key
+ //clear_cam_entry(padapter, (psta->mac_id + 3));
+ rtw_clearstakey_cmd(padapter, (u8*)psta, (u8)(psta->mac_id + 3), _TRUE);
+
+
+ _enter_critical_bh(&psta->lock, &irqL);
+ psta->state &= ~_FW_LINKED;
+ _exit_critical_bh(&psta->lock, &irqL);
+
+ #ifdef CONFIG_IOCTL_CFG80211
+ if (1) {
+ #ifdef COMPAT_KERNEL_RELEASE
+ rtw_cfg80211_indicate_sta_disassoc(padapter, psta->hwaddr, reason);
+ #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ rtw_cfg80211_indicate_sta_disassoc(padapter, psta->hwaddr, reason);
+ #else //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ /* will call rtw_cfg80211_indicate_sta_disassoc() in cmd_thread for old API context */
+ #endif //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ } else
+ #endif //CONFIG_IOCTL_CFG80211
+ {
+ rtw_indicate_sta_disassoc_event(padapter, psta);
+ }
+
+ report_del_sta_event(padapter, psta->hwaddr, reason);
+
+ beacon_updated = bss_cap_update_on_sta_leave(padapter, psta);
+
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ rtw_free_stainfo(padapter, psta);
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+
+
+ return beacon_updated;
+
+}
+
+int rtw_ap_inform_ch_switch(_adapter *padapter, u8 new_ch, u8 ch_offset)
+{
+ _irqL irqL;
+ _list *phead, *plist;
+ int ret=0;
+ struct sta_info *psta = NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ u8 bc_addr[ETH_ALEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
+
+ if((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
+ return ret;
+
+ DBG_871X(FUNC_NDEV_FMT" with ch:%u, offset:%u\n",
+ FUNC_NDEV_ARG(padapter->pnetdev), new_ch, ch_offset);
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ phead = &pstapriv->asoc_list;
+ plist = get_next(phead);
+
+ /* for each sta in asoc_queue */
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
+ plist = get_next(plist);
+
+ issue_action_spct_ch_switch(padapter, psta->hwaddr, new_ch, ch_offset);
+ psta->expire_to = ((pstapriv->expire_to * 2) > 5) ? 5 : (pstapriv->expire_to * 2);
+ }
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ issue_action_spct_ch_switch(padapter, bc_addr, new_ch, ch_offset);
+
+ return ret;
+}
+
+int rtw_sta_flush(_adapter *padapter)
+{
+ _irqL irqL;
+ _list *phead, *plist;
+ int ret=0;
+ struct sta_info *psta = NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ u8 bc_addr[ETH_ALEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
+ u8 chk_alive_num = 0;
+ char chk_alive_list[NUM_STA];
+ int i;
+
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
+
+ if((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
+ return ret;
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ phead = &pstapriv->asoc_list;
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
+ int stainfo_offset;
+
+ psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
+ plist = get_next(plist);
+
+ /* Remove sta from asoc_list */
+ rtw_list_delete(&psta->asoc_list);
+ pstapriv->asoc_list_cnt--;
+
+ /* Keep sta for ap_free_sta() beyond this asoc_list loop */
+ stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
+ if (stainfo_offset_valid(stainfo_offset)) {
+ chk_alive_list[chk_alive_num++] = stainfo_offset;
+ }
+ }
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+
+ /* For each sta in chk_alive_list, call ap_free_sta */
+ for (i = 0; i < chk_alive_num; i++) {
+ psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
+ ap_free_sta(padapter, psta, _TRUE, WLAN_REASON_DEAUTH_LEAVING);
+ }
+
+ issue_deauth(padapter, bc_addr, WLAN_REASON_DEAUTH_LEAVING);
+
+ associated_clients_update(padapter, _TRUE);
+
+ return ret;
+
+}
+
+/* called > TSR LEVEL for USB or SDIO Interface*/
+void sta_info_update(_adapter *padapter, struct sta_info *psta)
+{
+ int flags = psta->flags;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+
+
+ //update wmm cap.
+ if(WLAN_STA_WME&flags)
+ psta->qos_option = 1;
+ else
+ psta->qos_option = 0;
+
+ if(pmlmepriv->qospriv.qos_option == 0)
+ psta->qos_option = 0;
+
+
+#ifdef CONFIG_80211N_HT
+ //update 802.11n ht cap.
+ if(WLAN_STA_HT&flags)
+ {
+ psta->htpriv.ht_option = _TRUE;
+ psta->qos_option = 1;
+ }
+ else
+ {
+ psta->htpriv.ht_option = _FALSE;
+ }
+
+ if(pmlmepriv->htpriv.ht_option == _FALSE)
+ psta->htpriv.ht_option = _FALSE;
+#endif
+
+
+ update_sta_info_apmode(padapter, psta);
+
+
+}
+
+/* called >= TSR LEVEL for USB or SDIO Interface*/
+void ap_sta_info_defer_update(_adapter *padapter, struct sta_info *psta)
+{
+ if(psta->state & _FW_LINKED)
+ {
+ //add ratid
+ add_RATid(padapter, psta);
+ }
+}
+
+/* restore hw setting from sw data structures */
+void rtw_ap_restore_network(_adapter *padapter)
+{
+ struct mlme_priv *mlmepriv = &padapter->mlmepriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct sta_priv * pstapriv = &padapter->stapriv;
+ struct sta_info *psta;
+ struct security_priv* psecuritypriv=&(padapter->securitypriv);
+ _irqL irqL;
+ _list *phead, *plist;
+ u8 chk_alive_num = 0;
+ char chk_alive_list[NUM_STA];
+ int i;
+
+ rtw_setopmode_cmd(padapter, Ndis802_11APMode);
+
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+
+ start_bss_network(padapter, (u8*)&mlmepriv->cur_network.network);
+
+ if((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) ||
+ (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_))
+ {
+ /* restore group key, WEP keys is restored in ips_leave() */
+ rtw_set_key(padapter, psecuritypriv, psecuritypriv->dot118021XGrpKeyid, 0);
+ }
+
+ /* per sta pairwise key and settings */
+ if((padapter->securitypriv.dot11PrivacyAlgrthm != _TKIP_) &&
+ (padapter->securitypriv.dot11PrivacyAlgrthm != _AES_)) {
+ return;
+ }
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ phead = &pstapriv->asoc_list;
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
+ int stainfo_offset;
+
+ psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
+ plist = get_next(plist);
+
+ stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
+ if (stainfo_offset_valid(stainfo_offset)) {
+ chk_alive_list[chk_alive_num++] = stainfo_offset;
+ }
+ }
+
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ for (i = 0; i < chk_alive_num; i++) {
+ psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
+
+ if (psta == NULL) {
+ DBG_871X(FUNC_ADPT_FMT" sta_info is null\n", FUNC_ADPT_ARG(padapter));
+ } else if (psta->state &_FW_LINKED) {
+ Update_RA_Entry(padapter, psta->mac_id);
+ //pairwise key
+ rtw_setstakey_cmd(padapter, (unsigned char *)psta, _TRUE);
+ }
+ }
+
+}
+
+void start_ap_mode(_adapter *padapter)
+{
+ int i;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+
+ pmlmepriv->update_bcn = _FALSE;
+
+ //init_mlme_ap_info(padapter);
+ pmlmeext->bstart_bss = _FALSE;
+
+ pmlmepriv->num_sta_non_erp = 0;
+
+ pmlmepriv->num_sta_no_short_slot_time = 0;
+
+ pmlmepriv->num_sta_no_short_preamble = 0;
+
+ pmlmepriv->num_sta_ht_no_gf = 0;
+
+ pmlmepriv->num_sta_no_ht = 0;
+
+ pmlmepriv->num_sta_ht_20mhz = 0;
+
+ pmlmepriv->olbc = _FALSE;
+
+ pmlmepriv->olbc_ht = _FALSE;
+
+#ifdef CONFIG_80211N_HT
+ pmlmepriv->ht_op_mode = 0;
+#endif
+
+ for(i=0; i<NUM_STA; i++)
+ pstapriv->sta_aid[i] = NULL;
+
+ pmlmepriv->wps_beacon_ie = NULL;
+ pmlmepriv->wps_probe_resp_ie = NULL;
+ pmlmepriv->wps_assoc_resp_ie = NULL;
+
+ pmlmepriv->p2p_beacon_ie = NULL;
+ pmlmepriv->p2p_probe_resp_ie = NULL;
+
+
+ //for ACL
+ _rtw_init_listhead(&(pacl_list->acl_node_q.queue));
+ pacl_list->num = 0;
+ pacl_list->mode = 0;
+ for(i = 0; i < NUM_ACL; i++)
+ {
+ _rtw_init_listhead(&pacl_list->aclnode[i].list);
+ pacl_list->aclnode[i].valid = _FALSE;
+ }
+
+}
+
+void stop_ap_mode(_adapter *padapter)
+{
+ _irqL irqL;
+ _list *phead, *plist;
+ struct rtw_wlan_acl_node *paclnode;
+ struct sta_info *psta=NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+ _queue *pacl_node_q =&pacl_list->acl_node_q;
+
+ pmlmepriv->update_bcn = _FALSE;
+ pmlmeext->bstart_bss = _FALSE;
+ //_rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
+
+ //reset and init security priv , this can refine with rtw_reset_securitypriv
+ _rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv));
+ padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;
+
+ //for ACL
+ _enter_critical_bh(&(pacl_node_q->lock), &irqL);
+ phead = get_list_head(pacl_node_q);
+ plist = get_next(phead);
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
+ plist = get_next(plist);
+
+ if(paclnode->valid == _TRUE)
+ {
+ paclnode->valid = _FALSE;
+
+ rtw_list_delete(&paclnode->list);
+
+ pacl_list->num--;
+ }
+ }
+ _exit_critical_bh(&(pacl_node_q->lock), &irqL);
+
+ DBG_871X("%s, free acl_node_queue, num=%d\n", __func__, pacl_list->num);
+
+ rtw_sta_flush(padapter);
+
+ //free_assoc_sta_resources
+ rtw_free_all_stainfo(padapter);
+
+ psta = rtw_get_bcmc_stainfo(padapter);
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ rtw_free_stainfo(padapter, psta);
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+
+ rtw_init_bcmc_stainfo(padapter);
+
+ rtw_free_mlme_priv_ie_data(pmlmepriv);
+
+}
+
+#endif //CONFIG_NATIVEAP_MLME
+#endif //CONFIG_AP_MODE
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_br_ext.c b/drivers/net/wireless/rtl8192cu/core/rtw_br_ext.c
index 1fcdf1e..6bb924e 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_br_ext.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_br_ext.c
@@ -126,10 +126,10 @@ static int skb_pull_and_merge(struct sk_buff *skb, unsigned char *src, int len)
int tail_len;
unsigned long end, tail;
- if ((src+len) > skb->tail || skb->len < len)
+ if ((src+len) > skb_tail_pointer(skb) || skb->len < len)
return -1;
- tail = (unsigned long)skb->tail;
+ tail = (unsigned long)skb_tail_pointer(skb);
end = (unsigned long)src+len;
if (tail < end)
return -1;
@@ -522,7 +522,7 @@ static void __nat25_db_network_insert(_adapter *priv,
db = db->next_hash;
}
- db = (struct nat25_network_db_entry *) _rtw_malloc(sizeof(*db));
+ db = (struct nat25_network_db_entry *) rtw_malloc(sizeof(*db));
if(db == NULL) {
_exit_critical_bh(&priv->br_ext_lock, &irqL);
return;
@@ -633,7 +633,7 @@ void nat25_db_cleanup(_adapter *priv)
int i;
_irqL irqL;
_enter_critical_bh(&priv->br_ext_lock, &irqL);
-
+
for(i=0; i<NAT25_HASH_SIZE; i++)
{
struct nat25_network_db_entry *f;
@@ -649,7 +649,7 @@ void nat25_db_cleanup(_adapter *priv)
priv->scdb_entry = NULL;
}
__network_hash_unlink(f);
- _rtw_mfree((u8 *) f, sizeof(struct nat25_network_db_entry));
+ rtw_mfree((u8 *) f, sizeof(struct nat25_network_db_entry));
f = g;
}
@@ -664,7 +664,7 @@ void nat25_db_expire(_adapter *priv)
int i;
_irqL irqL;
_enter_critical_bh(&priv->br_ext_lock, &irqL);
-
+
//if(!priv->ethBrExtInfo.nat25_disable)
{
for (i=0; i<NAT25_HASH_SIZE; i++)
@@ -739,7 +739,7 @@ void nat25_db_expire(_adapter *priv)
priv->scdb_entry = NULL;
}
__network_hash_unlink(f);
- _rtw_mfree((u8 *) f, sizeof(struct nat25_network_db_entry));
+ rtw_mfree((u8 *) f, sizeof(struct nat25_network_db_entry));
}
}
@@ -848,6 +848,11 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method)
else {
// forward unknow IP packet to upper TCP/IP
DEBUG_INFO("NAT25: Replace DA with BR's MAC\n");
+ if ( (*(u32 *)priv->br_mac) == 0 && (*(u16 *)(priv->br_mac+4)) == 0 ) {
+ void netdev_br_init(struct net_device *netdev);
+ printk("Re-init netdev_br_init() due to br_mac==0!\n");
+ netdev_br_init(priv->pnetdev);
+ }
memcpy(skb->data, priv->br_mac, ETH_ALEN);
}
}
@@ -1533,7 +1538,7 @@ int nat25_handle_frame(_adapter *priv, struct sk_buff *skb)
_exit_critical_bh(&priv->br_ext_lock, &irqL);
retval = nat25_db_handle(priv, skb, NAT25_LOOKUP);
- }
+ }
}
else {
if (((*((unsigned short *)(skb->data+ETH_ALEN*2)) == __constant_htons(ETH_P_IP)) &&
@@ -1633,13 +1638,13 @@ void dhcp_flag_bcast(_adapter *priv, struct sk_buff *skb)
if(iph->protocol == IPPROTO_UDP) // UDP
{
- struct udphdr *udph = (struct udphdr *)((unsigned int)iph + (iph->ihl << 2));
+ struct udphdr *udph = (struct udphdr *)((SIZE_PTR)iph + (iph->ihl << 2));
if((udph->source == __constant_htons(CLIENT_PORT))
&& (udph->dest == __constant_htons(SERVER_PORT))) // DHCP request
{
struct dhcpMessage *dhcph =
- (struct dhcpMessage *)((unsigned int)udph + sizeof(struct udphdr));
+ (struct dhcpMessage *)((SIZE_PTR)udph + sizeof(struct udphdr));
if(dhcph->cookie == __constant_htonl(DHCP_MAGIC)) // match magic word
{
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_cmd.c b/drivers/net/wireless/rtl8192cu/core/rtw_cmd.c
index bdfec5d..f906eb3 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_cmd.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_cmd.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_CMD_C_
#include <drv_conf.h>
@@ -58,9 +58,8 @@ _func_enter_;
goto exit;
}
- //pcmdpriv->cmd_buf = pcmdpriv->cmd_allocated_buf + CMDBUFF_ALIGN_SZ - ( (SIZE_PTR)(pcmdpriv->cmd_allocated_buf) & (CMDBUFF_ALIGN_SZ-1));
- pcmdpriv->cmd_buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pcmdpriv->cmd_allocated_buf ), CMDBUFF_ALIGN_SZ);
-
+ pcmdpriv->cmd_buf = pcmdpriv->cmd_allocated_buf + CMDBUFF_ALIGN_SZ - ( (SIZE_PTR)(pcmdpriv->cmd_allocated_buf) & (CMDBUFF_ALIGN_SZ-1));
+
pcmdpriv->rsp_allocated_buf = rtw_zmalloc(MAX_RSPSZ + 4);
if (pcmdpriv->rsp_allocated_buf == NULL){
@@ -68,9 +67,8 @@ _func_enter_;
goto exit;
}
- //pcmdpriv->rsp_buf = pcmdpriv->rsp_allocated_buf + 4 - ( (SIZE_PTR)(pcmdpriv->rsp_allocated_buf) & 3);
- pcmdpriv->rsp_buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pcmdpriv->rsp_allocated_buf ), 4);
-
+ pcmdpriv->rsp_buf = pcmdpriv->rsp_allocated_buf + 4 - ( (SIZE_PTR)(pcmdpriv->rsp_allocated_buf) & 3);
+
pcmdpriv->cmd_issued_cnt = pcmdpriv->cmd_done_cnt = pcmdpriv->rsp_cnt = 0;
exit:
@@ -81,7 +79,9 @@ _func_exit_;
}
-
+#ifdef CONFIG_C2H_WK
+static void c2h_wk_callback(_workitem *work);
+#endif
sint _rtw_init_evt_priv(struct evt_priv *pevtpriv)
{
sint res=_SUCCESS;
@@ -109,8 +109,7 @@ _func_enter_;
res= _FAIL;
goto exit;
}
- //pevtpriv->evt_buf = pevtpriv->evt_allocated_buf + 4 - ((unsigned int)(pevtpriv->evt_allocated_buf) & 3);
- pevtpriv->evt_buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pevtpriv->evt_allocated_buf ), 4);
+ pevtpriv->evt_buf = pevtpriv->evt_allocated_buf + 4 - ((unsigned int)(pevtpriv->evt_allocated_buf) & 3);
#ifdef CONFIG_SDIO_HCI
@@ -121,10 +120,8 @@ _func_enter_;
goto exit;
}
- //pevtpriv->c2h_mem = pevtpriv->allocated_c2h_mem + 4
- //- ( (u32)(pevtpriv->allocated_c2h_mem) & 3);
- pevtpriv->c2h_mem = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pevtpriv->allocated_c2h_mem ), 4);
-
+ pevtpriv->c2h_mem = pevtpriv->allocated_c2h_mem + 4\
+ - ( (u32)(pevtpriv->allocated_c2h_mem) & 3);
#ifdef PLATFORM_OS_XP
pevtpriv->pc2h_mdl= IoAllocateMdl((u8 *)pevtpriv->c2h_mem, C2H_MEM_SZ , FALSE, FALSE, NULL);
@@ -142,6 +139,12 @@ exit:
#endif //end of CONFIG_EVENT_THREAD_MODE
+#ifdef CONFIG_C2H_WK
+ _init_workitem(&pevtpriv->c2h_wk, c2h_wk_callback, NULL);
+ pevtpriv->c2h_wk_alive = _FALSE;
+ pevtpriv->c2h_queue = rtw_cbuf_alloc(C2H_QUEUE_MAX_LEN+1);
+#endif
+
_func_exit_;
return res;
@@ -162,6 +165,21 @@ _func_enter_;
rtw_mfree(pevtpriv->evt_allocated_buf, MAX_EVTSZ + 4);
#endif
+#ifdef CONFIG_C2H_WK
+ _cancel_workitem_sync(&pevtpriv->c2h_wk);
+ while(pevtpriv->c2h_wk_alive)
+ rtw_msleep_os(10);
+
+ while (!rtw_cbuf_empty(pevtpriv->c2h_queue)) {
+ void *c2h;
+ if ((c2h = rtw_cbuf_pop(pevtpriv->c2h_queue)) != NULL
+ && c2h != (void *)pevtpriv) {
+ rtw_mfree(c2h, 16);
+ }
+ }
+ rtw_cbuf_free(pevtpriv->c2h_queue);
+#endif
+
RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("-_rtw_free_evt_priv \n"));
_func_exit_;
@@ -229,8 +247,7 @@ struct cmd_obj *_rtw_dequeue_cmd(_queue *queue)
_func_enter_;
//_enter_critical_bh(&(queue->lock), &irqL);
- _enter_critical(&(queue->lock), &irqL);
-
+ _enter_critical(&queue->lock, &irqL);
if (rtw_is_list_empty(&(queue->queue)))
obj = NULL;
else
@@ -240,7 +257,7 @@ _func_enter_;
}
//_exit_critical_bh(&(queue->lock), &irqL);
- _exit_critical(&(queue->lock), &irqL);
+ _exit_critical(&queue->lock, &irqL);
_func_exit_;
@@ -281,6 +298,7 @@ _func_enter_;
_func_exit_;
}
+int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj);
int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
{
u8 bAllow = _FALSE; //set to _TRUE to allow enqueuing cmd when hw_init_completed is _FALSE
@@ -292,23 +310,23 @@ int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
)
{
if(cmd_obj->cmdcode == GEN_CMD_CODE(_Set_Drv_Extra) )
- {
+ {
struct drvextra_cmd_parm *pdrvextra_cmd_parm = (struct drvextra_cmd_parm *)cmd_obj->parmbuf;
if(pdrvextra_cmd_parm->ec_id == POWER_SAVING_CTRL_WK_CID)
{
- //DBG_8192C("==>enqueue POWER_SAVING_CTRL_WK_CID\n");
+ //DBG_871X("==>enqueue POWER_SAVING_CTRL_WK_CID\n");
bAllow = _TRUE;
}
}
}
-#endif
+ #endif
if(cmd_obj->cmdcode == GEN_CMD_CODE(_SetChannelPlan))
bAllow = _TRUE;
if( (pcmdpriv->padapter->hw_init_completed ==_FALSE && bAllow == _FALSE)
- || pcmdpriv->cmdthd_running== _FALSE //com_thread not running
- )
+ || pcmdpriv->cmdthd_running== _FALSE //com_thread not running
+ )
{
//DBG_871X("%s:%s: drop cmdcode:%u, hw_init_completed:%u, cmdthd_running:%u\n", caller_func, __FUNCTION__,
// cmd_obj->cmdcode,
@@ -326,6 +344,7 @@ int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
{
int res = _FAIL;
+ PADAPTER padapter = pcmdpriv->padapter;
_func_enter_;
@@ -333,6 +352,14 @@ _func_enter_;
goto exit;
}
+ cmd_obj->padapter = padapter;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ //change pcmdpriv to primary's pcmdpriv
+ if (padapter->adapter_type != PRIMARY_ADAPTER && padapter->pbuddy_adapter)
+ pcmdpriv = &(padapter->pbuddy_adapter->cmdpriv);
+#endif
+
if( _FAIL == (res=rtw_cmd_filter(pcmdpriv, cmd_obj)) ) {
rtw_free_cmd_obj(cmd_obj);
goto exit;
@@ -395,6 +422,16 @@ _func_enter_;
_func_exit_;
}
+void rtw_stop_cmd_thread(_adapter *adapter)
+{
+ if(adapter->cmdThread && adapter->cmdpriv.cmdthd_running == _TRUE
+ && adapter->cmdpriv.stop_req == 0)
+ {
+ adapter->cmdpriv.stop_req = 1;
+ _rtw_up_sema(&adapter->cmdpriv.cmd_queue_sema);
+ _rtw_down_sema(&adapter->cmdpriv.terminate_cmdthread_sema);
+ }
+}
thread_return rtw_cmd_thread(thread_context context)
{
@@ -408,11 +445,12 @@ thread_return rtw_cmd_thread(thread_context context)
_func_enter_;
- thread_enter(padapter);
+ thread_enter("RTW_CMD_THREAD");
pcmdbuf = pcmdpriv->cmd_buf;
prspbuf = pcmdpriv->rsp_buf;
+ pcmdpriv->stop_req = 0;
pcmdpriv->cmdthd_running=_TRUE;
_rtw_up_sema(&pcmdpriv->terminate_cmdthread_sema);
@@ -420,24 +458,35 @@ _func_enter_;
while(1)
{
- if ((_rtw_down_sema(&(pcmdpriv->cmd_queue_sema))) == _FAIL)
+ if ((_rtw_down_sema(&(pcmdpriv->cmd_queue_sema))) == _FAIL) {
+ LOG_LEVEL(_drv_err_, FUNC_ADPT_FMT" _rtw_down_sema(&pcmdpriv->cmd_queue_sema) return _FAIL, break\n", FUNC_ADPT_ARG(padapter));
break;
+ }
+ if (pcmdpriv->stop_req) {
+ LOG_LEVEL(_drv_err_, FUNC_ADPT_FMT" stop_req:%u, break\n", FUNC_ADPT_ARG(padapter), pcmdpriv->stop_req);
+ break;
+ }
+
+#ifdef CONFIG_LPS_LCLK
if (rtw_register_cmd_alive(padapter) != _SUCCESS)
{
continue;
}
+#endif
_next:
- if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
+ if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved == _TRUE))
{
- DBG_8192C("###> rtw_cmd_thread break.................\n");
- RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, ("rtw_cmd_thread:bDriverStopped(%d) OR bSurpriseRemoved(%d)", padapter->bDriverStopped, padapter->bSurpriseRemoved));
+ LOG_LEVEL(_drv_err_, "%s: DriverStopped(%d) SurpriseRemoved(%d) break at line %d\n",
+ __FUNCTION__, padapter->bDriverStopped, padapter->bSurpriseRemoved, __LINE__);
break;
}
if(!(pcmd = rtw_dequeue_cmd(pcmdpriv))) {
+#ifdef CONFIG_LPS_LCLK
rtw_unregister_cmd_alive(padapter);
+#endif
continue;
}
@@ -447,6 +496,11 @@ _next:
goto post_process;
}
+ if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) ) {
+ rtw_free_cmd_obj(pcmd);
+ continue;
+ }
+
pcmdpriv->cmd_issued_cnt++;
pcmd->cmdsz = _RND4((pcmd->cmdsz));//_RND4
@@ -459,11 +513,11 @@ _next:
if (cmd_hdl)
{
- ret = cmd_hdl(padapter, pcmdbuf);
+ ret = cmd_hdl(pcmd->padapter, pcmdbuf);
pcmd->res = ret;
}
- pcmdpriv->cmd_seq++;
+ pcmdpriv->cmd_seq++;
}
else
{
@@ -473,7 +527,7 @@ _next:
cmd_hdl = NULL;
post_process:
-
+
//call callback function for post-processed
if(pcmd->cmdcode <= (sizeof(rtw_cmd_callback) /sizeof(struct _cmd_callback)))
{
@@ -486,20 +540,17 @@ post_process:
else
{
//todo: !!! fill rsp_buf to pcmd->rsp if (pcmd->rsp!=NULL)
- pcmd_callback(padapter, pcmd);//need conider that free cmd_obj in rtw_cmd_callback
+ pcmd_callback(pcmd->padapter, pcmd);//need conider that free cmd_obj in rtw_cmd_callback
}
- }
-
+ }
flush_signals_thread();
goto _next;
}
-
pcmdpriv->cmdthd_running=_FALSE;
- DBG_871X("%s: leaving... check & free all cmd_obj resources\n", __FUNCTION__);
// free all cmd_obj resources
do{
@@ -507,13 +558,11 @@ post_process:
if(pcmd==NULL)
break;
- DBG_871X("%s: leaving... drop cmdcode:%u\n", __FUNCTION__, pcmd->cmdcode);
+ //DBG_871X("%s: leaving... drop cmdcode:%u\n", __FUNCTION__, pcmd->cmdcode);
rtw_free_cmd_obj(pcmd);
}while(1);
- DBG_871X("%s: leaving... call up terminate_cmdthread_sema\n", __FUNCTION__);
-
_rtw_up_sema(&pcmdpriv->terminate_cmdthread_sema);
_func_exit_;
@@ -644,28 +693,28 @@ rtw_sitesurvey_cmd(~)
### NOTE:#### (!!!!)
MUST TAKE CARE THAT BEFORE CALLING THIS FUNC, YOU SHOULD HAVE LOCKED pmlmepriv->lock
*/
-u8 rtw_sitesurvey_cmd(_adapter *padapter, NDIS_802_11_SSID *pssid, int ssid_max_num)
+u8 rtw_sitesurvey_cmd(_adapter *padapter, NDIS_802_11_SSID *ssid, int ssid_num,
+ struct rtw_ieee80211_channel *ch, int ch_num)
{
u8 res = _FAIL;
struct cmd_obj *ph2c;
struct sitesurvey_parm *psurveyPara;
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
-#ifdef CONFIG_P2P
- struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
-#endif //CONFIG_P2P
-_func_enter_;
-
+_func_enter_;
+
#ifdef CONFIG_LPS
if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE){
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_SCAN, 1);
}
#endif
-#ifdef CONFIG_P2P
- p2p_ps_wk_cmd(padapter, P2P_PS_SCAN, 1);
-#endif //CONFIG_P2P
+#ifdef CONFIG_P2P_PS
+ if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) {
+ p2p_ps_wk_cmd(padapter, P2P_PS_SCAN, 1);
+ }
+#endif // CONFIG_P2P_PS
ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
if (ph2c == NULL)
@@ -683,18 +732,33 @@ _func_enter_;
init_h2fwcmd_w_parm_no_rsp(ph2c, psurveyPara, GEN_CMD_CODE(_SiteSurvey));
- psurveyPara->bsslimit = 48;
+ /* psurveyPara->bsslimit = 48; */
psurveyPara->scan_mode = pmlmepriv->scan_mode;
- _rtw_memset(psurveyPara->ssid, 0, sizeof(NDIS_802_11_SSID)*RTW_SSID_SCAN_AMOUNT);
+ /* prepare ssid list */
+ if (ssid) {
+ int i;
+ for (i=0; i<ssid_num && i< RTW_SSID_SCAN_AMOUNT; i++) {
+ if (ssid[i].SsidLength) {
+ _rtw_memcpy(&psurveyPara->ssid[i], &ssid[i], sizeof(NDIS_802_11_SSID));
+ psurveyPara->ssid_num++;
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" ssid:(%s, %d)\n", FUNC_ADPT_ARG(padapter),
+ psurveyPara->ssid[i].Ssid, psurveyPara->ssid[i].SsidLength);
+ }
+ }
+ }
- if(pssid){
+ /* prepare channel list */
+ if (ch) {
int i;
- for(i=0; i<ssid_max_num && i< RTW_SSID_SCAN_AMOUNT; i++){
- if(pssid[i].SsidLength){
- _rtw_memcpy(&psurveyPara->ssid[i], &pssid[i], sizeof(NDIS_802_11_SSID));
- //DBG_871X("%s scan for specific ssid: %s, %d\n", __FUNCTION__
- // , psurveyPara->ssid[i].Ssid, psurveyPara->ssid[i].SsidLength);
+ for (i=0; i<ch_num && i< RTW_CHANNEL_SCAN_AMOUNT; i++) {
+ if (ch[i].hw_value && !(ch[i].flags & RTW_IEEE80211_CHAN_DISABLED)) {
+ _rtw_memcpy(&psurveyPara->ch[i], &ch[i], sizeof(struct rtw_ieee80211_channel));
+ psurveyPara->ch_num++;
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" ch:%u\n", FUNC_ADPT_ARG(padapter),
+ psurveyPara->ch[i].hw_value);
}
}
}
@@ -707,7 +771,16 @@ _func_enter_;
pmlmepriv->scan_start_time = rtw_get_current_time();
- _set_timer(&pmlmepriv->scan_to_timer, SCANNING_TIMEOUT);
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ if (padapter->pbuddy_adapter == NULL )
+ goto full_scan_timeout;
+ if((padapter->pbuddy_adapter->mlmeextpriv.mlmext_info.state&0x03) == WIFI_FW_AP_STATE)
+ _set_timer(&pmlmepriv->scan_to_timer,
+ SURVEY_TO * ( padapter->mlmeextpriv.max_chan_nums + ( padapter->mlmeextpriv.max_chan_nums / RTW_SCAN_NUM_OF_CH ) * RTW_STAY_AP_CH_MILLISECOND ) + 1000 );
+ else
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+full_scan_timeout:
+ _set_timer(&pmlmepriv->scan_to_timer, SCANNING_TIMEOUT);
rtw_led_control(padapter, LED_CTL_SITE_SURVEY);
@@ -1219,7 +1292,7 @@ _func_enter_;
{
//rtw_restructure_ht_ie
rtw_restructure_ht_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0],
- pnetwork->network.IELength, &psecnetwork->IELength);
+ pnetwork->network.IELength, &psecnetwork->IELength, (u8)psecnetwork->Configuration.DSConfig );
}
}
@@ -1276,38 +1349,42 @@ _func_exit_;
return res;
}
-u8 rtw_disassoc_cmd(_adapter*padapter) // for sta_mode
+u8 rtw_disassoc_cmd(_adapter*padapter, u32 deauth_timeout_ms, bool enqueue) /* for sta_mode */
{
- struct cmd_obj* pdisconnect_cmd;
- struct disconnect_parm* pdisconnect;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
-
- u8 res=_SUCCESS;
+ struct cmd_obj *cmdobj = NULL;
+ struct disconnect_parm *param = NULL;
+ struct cmd_priv *cmdpriv = &padapter->cmdpriv;
+ u8 res = _SUCCESS;
_func_enter_;
RT_TRACE(_module_rtl871x_cmd_c_, _drv_notice_, ("+rtw_disassoc_cmd\n"));
-
- //if ((check_fwstate(pmlmepriv, _FW_LINKED)) == _TRUE) {
- pdisconnect_cmd = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
- if(pdisconnect_cmd == NULL){
- res=_FAIL;
- goto exit;
- }
+ /* prepare cmd parameter */
+ param = (struct disconnect_parm *)rtw_zmalloc(sizeof(*param));
+ if (param == NULL) {
+ res = _FAIL;
+ goto exit;
+ }
+ param->deauth_timeout_ms = deauth_timeout_ms;
- pdisconnect = (struct disconnect_parm*)rtw_zmalloc(sizeof(struct disconnect_parm));
- if(pdisconnect == NULL) {
- rtw_mfree((u8 *)pdisconnect_cmd, sizeof(struct cmd_obj));
- res= _FAIL;
+ if (enqueue) {
+ /* need enqueue, prepare cmd_obj and enqueue */
+ cmdobj = (struct cmd_obj *)rtw_zmalloc(sizeof(*cmdobj));
+ if (cmdobj == NULL) {
+ res = _FAIL;
+ rtw_mfree((u8 *)param, sizeof(*param));
goto exit;
}
-
- init_h2fwcmd_w_parm_no_rsp(pdisconnect_cmd, pdisconnect, _DisConnect_CMD_);
- res = rtw_enqueue_cmd(pcmdpriv, pdisconnect_cmd);
- //}
-
+ init_h2fwcmd_w_parm_no_rsp(cmdobj, param, _DisConnect_CMD_);
+ res = rtw_enqueue_cmd(cmdpriv, cmdobj);
+ } else {
+ /* no need to enqueue, do the cmd hdl directly and free cmd parameter */
+ if (H2C_SUCCESS != disconnect_hdl(padapter, (u8 *)param))
+ res = _FAIL;
+ rtw_mfree((u8 *)param, sizeof(*param));
+ }
+
exit:
_func_exit_;
@@ -1396,7 +1473,7 @@ _func_enter_;
if(sta->tdls_sta_state&TDLS_LINKED_STATE)
psetstakey_para->algorithm=(u8)sta->dot118021XPrivacy;
else
-#endif
+#endif //CONFIG_TDLS
psetstakey_para->algorithm =(unsigned char) psecuritypriv->dot11PrivacyAlgrthm;
}else{
GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, _FALSE);
@@ -1404,10 +1481,10 @@ _func_enter_;
if (unicast_key == _TRUE) {
#ifdef CONFIG_TDLS
- if((sta->tdls_sta_state&TDLS_LINKED_STATE)==TDLS_LINKED_STATE)
+ if(sta->tdls_sta_state&TDLS_LINKED_STATE)
_rtw_memcpy(&psetstakey_para->key, sta->tpk.tk, 16);
else
-#endif
+#endif //CONFIG_TDLS
_rtw_memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16);
} else {
_rtw_memcpy(&psetstakey_para->key, &psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey, 16);
@@ -1425,6 +1502,67 @@ _func_exit_;
return res;
}
+u8 rtw_clearstakey_cmd(_adapter *padapter, u8 *psta, u8 entry, u8 enqueue)
+{
+ struct cmd_obj* ph2c;
+ struct set_stakey_parm *psetstakey_para;
+ struct cmd_priv *pcmdpriv=&padapter->cmdpriv;
+ struct set_stakey_rsp *psetstakey_rsp = NULL;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
+ struct sta_info* sta = (struct sta_info* )psta;
+ u8 res=_SUCCESS;
+
+_func_enter_;
+
+ if(!enqueue)
+ {
+ clear_cam_entry(padapter, entry);
+ }
+ else
+ {
+ ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
+ if ( ph2c == NULL){
+ res= _FAIL;
+ goto exit;
+ }
+
+ psetstakey_para = (struct set_stakey_parm*)rtw_zmalloc(sizeof(struct set_stakey_parm));
+ if(psetstakey_para==NULL){
+ rtw_mfree((u8 *) ph2c, sizeof(struct cmd_obj));
+ res=_FAIL;
+ goto exit;
+ }
+
+ psetstakey_rsp = (struct set_stakey_rsp*)rtw_zmalloc(sizeof(struct set_stakey_rsp));
+ if(psetstakey_rsp == NULL){
+ rtw_mfree((u8 *) ph2c, sizeof(struct cmd_obj));
+ rtw_mfree((u8 *) psetstakey_para, sizeof(struct set_stakey_parm));
+ res=_FAIL;
+ goto exit;
+ }
+
+ init_h2fwcmd_w_parm_no_rsp(ph2c, psetstakey_para, _SetStaKey_CMD_);
+ ph2c->rsp = (u8 *) psetstakey_rsp;
+ ph2c->rspsz = sizeof(struct set_stakey_rsp);
+
+ _rtw_memcpy(psetstakey_para->addr, sta->hwaddr, ETH_ALEN);
+
+ psetstakey_para->algorithm = _NO_PRIVACY_;
+
+ psetstakey_para->id = entry;
+
+ res = rtw_enqueue_cmd(pcmdpriv, ph2c);
+
+ }
+
+exit:
+
+_func_exit_;
+
+ return res;
+}
+
u8 rtw_setrttbl_cmd(_adapter *padapter, struct setratable_parm *prate_table)
{
struct cmd_obj* ph2c;
@@ -1570,7 +1708,7 @@ _func_enter_;
init_h2fwcmd_w_parm_no_rsp(ph2c, paddbareq_parm, GEN_CMD_CODE(_AddBAReq));
- //DBG_8192C("rtw_addbareq_cmd, tid=%d\n", tid);
+ //DBG_871X("rtw_addbareq_cmd, tid=%d\n", tid);
//rtw_enqueue_cmd(pcmdpriv, ph2c);
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
@@ -1581,6 +1719,87 @@ _func_exit_;
return res;
}
+//add for CONFIG_IEEE80211W, none 11w can use it
+u8 rtw_reset_securitypriv_cmd(_adapter*padapter)
+{
+ struct cmd_obj* ph2c;
+ struct drvextra_cmd_parm *pdrvextra_cmd_parm;
+ struct cmd_priv *pcmdpriv=&padapter->cmdpriv;
+ u8 res=_SUCCESS;
+
+_func_enter_;
+
+ ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
+ if(ph2c==NULL){
+ res= _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm = (struct drvextra_cmd_parm*)rtw_zmalloc(sizeof(struct drvextra_cmd_parm));
+ if(pdrvextra_cmd_parm==NULL){
+ rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
+ res= _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm->ec_id = RESET_SECURITYPRIV;
+ pdrvextra_cmd_parm->type_size = 0;
+ pdrvextra_cmd_parm->pbuf = (u8 *)padapter;
+
+ init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
+
+
+ //rtw_enqueue_cmd(pcmdpriv, ph2c);
+ res = rtw_enqueue_cmd(pcmdpriv, ph2c);
+
+exit:
+
+_func_exit_;
+
+ return res;
+
+}
+
+u8 rtw_free_assoc_resources_cmd(_adapter*padapter)
+{
+ struct cmd_obj* ph2c;
+ struct drvextra_cmd_parm *pdrvextra_cmd_parm;
+ struct cmd_priv *pcmdpriv=&padapter->cmdpriv;
+ u8 res=_SUCCESS;
+
+_func_enter_;
+
+ ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
+ if(ph2c==NULL){
+ res= _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm = (struct drvextra_cmd_parm*)rtw_zmalloc(sizeof(struct drvextra_cmd_parm));
+ if(pdrvextra_cmd_parm==NULL){
+ rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
+ res= _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm->ec_id = FREE_ASSOC_RESOURCES;
+ pdrvextra_cmd_parm->type_size = 0;
+ pdrvextra_cmd_parm->pbuf = (u8 *)padapter;
+
+ init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
+
+
+ //rtw_enqueue_cmd(pcmdpriv, ph2c);
+ res = rtw_enqueue_cmd(pcmdpriv, ph2c);
+
+exit:
+
+_func_exit_;
+
+ return res;
+
+}
+
u8 rtw_dynamic_chk_wk_cmd(_adapter*padapter)
{
@@ -1591,6 +1810,15 @@ u8 rtw_dynamic_chk_wk_cmd(_adapter*padapter)
_func_enter_;
+ if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
+ goto exit;
+
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->adapter_type != PRIMARY_ADAPTER && padapter->pbuddy_adapter)
+ pcmdpriv = &(padapter->pbuddy_adapter->cmdpriv);
+#endif
+
ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
if(ph2c==NULL){
res= _FAIL;
@@ -1606,7 +1834,7 @@ _func_enter_;
pdrvextra_cmd_parm->ec_id = DYNAMIC_CHK_WK_CID;
pdrvextra_cmd_parm->type_size = 0;
- pdrvextra_cmd_parm->pbuf = NULL;
+ pdrvextra_cmd_parm->pbuf = (u8 *)padapter;
init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
@@ -1622,11 +1850,65 @@ _func_exit_;
}
+u8 rtw_set_ch_cmd(_adapter*padapter, u8 ch, u8 bw, u8 ch_offset, u8 enqueue)
+{
+ struct cmd_obj *pcmdobj;
+ struct set_ch_parm *set_ch_parm;
+ struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
+
+ u8 res=_SUCCESS;
+
+_func_enter_;
+
+ DBG_871X(FUNC_NDEV_FMT" ch:%u, bw:%u, ch_offset:%u\n",
+ FUNC_NDEV_ARG(padapter->pnetdev), ch, bw, ch_offset);
+
+ /* check input parameter */
+
+ /* prepare cmd parameter */
+ set_ch_parm = (struct set_ch_parm *)rtw_zmalloc(sizeof(*set_ch_parm));
+ if (set_ch_parm == NULL) {
+ res= _FAIL;
+ goto exit;
+ }
+ set_ch_parm->ch = ch;
+ set_ch_parm->bw = bw;
+ set_ch_parm->ch_offset = ch_offset;
+
+ if (enqueue) {
+ /* need enqueue, prepare cmd_obj and enqueue */
+ pcmdobj = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
+ if(pcmdobj == NULL){
+ rtw_mfree((u8 *)set_ch_parm, sizeof(*set_ch_parm));
+ res=_FAIL;
+ goto exit;
+ }
+
+ init_h2fwcmd_w_parm_no_rsp(pcmdobj, set_ch_parm, GEN_CMD_CODE(_SetChannel));
+ res = rtw_enqueue_cmd(pcmdpriv, pcmdobj);
+ } else {
+ /* no need to enqueue, do the cmd hdl directly and free cmd parameter */
+ if( H2C_SUCCESS !=set_ch_hdl(padapter, (u8 *)set_ch_parm) )
+ res = _FAIL;
+
+ rtw_mfree((u8 *)set_ch_parm, sizeof(*set_ch_parm));
+ }
+
+ /* do something based on res... */
+
+exit:
+
+ DBG_871X(FUNC_NDEV_FMT" res:%u\n", FUNC_NDEV_ARG(padapter->pnetdev), res);
+
+_func_exit_;
+
+ return res;
+}
+
u8 rtw_set_chplan_cmd(_adapter*padapter, u8 chplan, u8 enqueue)
{
struct cmd_obj* pcmdobj;
struct SetChannelPlan_param *setChannelPlan_param;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
u8 res=_SUCCESS;
@@ -1738,7 +2020,7 @@ _func_enter_;
goto exit;
}
- setChannelSwitch_param = (struct SetChannelSwitch_param *)rtw_zmalloc(sizeof(struct SetChannelSwitch_param));
+ setChannelSwitch_param = (struct SetChannelSwitch_param *)rtw_zmalloc(sizeof(struct SetChannelSwitch_param));
if(setChannelSwitch_param == NULL) {
rtw_mfree((u8 *)pcmdobj, sizeof(struct cmd_obj));
res= _FAIL;
@@ -1806,9 +2088,8 @@ static void traffic_status_watchdog(_adapter *padapter)
{
#ifdef CONFIG_LPS
u8 bEnterPS;
- u32 trx_threshold;
- u32 rx_threshold;
#endif
+ u16 BusyThreshold = 100;
u8 bBusyTraffic = _FALSE, bTxBusyTraffic = _FALSE, bRxBusyTraffic = _FALSE;
u8 bHigherBusyTraffic = _FALSE, bHigherBusyRxTraffic = _FALSE, bHigherBusyTxTraffic = _FALSE;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
@@ -1816,6 +2097,8 @@ static void traffic_status_watchdog(_adapter *padapter)
struct tdls_info *ptdlsinfo = &(padapter->tdlsinfo);
#endif //CONFIG_TDLS
+ RT_LINK_DETECT_T * link_detect = &pmlmepriv->LinkDetectInfo;
+
//
// Determine if our traffic is busy now
//
@@ -1823,15 +2106,18 @@ static void traffic_status_watchdog(_adapter *padapter)
/*&& !MgntInitAdapterInProgress(pMgntInfo)*/)
{
- if( pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > 100 ||
- pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > 100 )
+ // if we raise bBusyTraffic in last watchdog, using lower threshold.
+ if (pmlmepriv->LinkDetectInfo.bBusyTraffic)
+ BusyThreshold = 75;
+ if( pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > BusyThreshold ||
+ pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > BusyThreshold )
{
bBusyTraffic = _TRUE;
- if(pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > 100)
+ if(pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > BusyThreshold)
bRxBusyTraffic = _TRUE;
- if(pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > 100)
+ if(pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > BusyThreshold)
bTxBusyTraffic = _TRUE;
}
@@ -1849,29 +2135,39 @@ static void traffic_status_watchdog(_adapter *padapter)
if(pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > 5000)
bHigherBusyTxTraffic = _TRUE;
}
-
+
+#ifdef CONFIG_TRAFFIC_PROTECT
+#define TX_ACTIVE_TH 2
+#define RX_ACTIVE_TH 1
+#define TRAFFIC_PROTECT_PERIOD_MS 4500
+
+ if (link_detect->NumTxOkInPeriod > TX_ACTIVE_TH
+ || link_detect->NumRxUnicastOkInPeriod > RX_ACTIVE_TH) {
+
+ LOG_LEVEL(_drv_info_, FUNC_ADPT_FMT" acqiure wake_lock for %u ms(tx:%d,rx_unicast:%d)\n",
+ FUNC_ADPT_ARG(padapter),
+ TRAFFIC_PROTECT_PERIOD_MS,
+ link_detect->NumTxOkInPeriod,
+ link_detect->NumRxUnicastOkInPeriod);
+
+ rtw_lock_suspend_timeout(TRAFFIC_PROTECT_PERIOD_MS);
+ }
+#endif
+
#ifdef CONFIG_TDLS
#ifdef CONFIG_TDLS_AUTOSETUP
- if( ( ptdlsinfo->watchdog_count % TDLS_WATCHDOG_PERIOD ) == 0 ) //10 * 2sec, periodically sending
+ if( ( ptdlsinfo->watchdog_count % TDLS_WATCHDOG_PERIOD ) == 0 ) //TDLS_WATCHDOG_PERIOD * 2sec, periodically sending
issue_tdls_dis_req( padapter, NULL );
ptdlsinfo->watchdog_count++;
#endif //CONFIG_TDLS_AUTOSETUP
#endif //CONFIG_TDLS
-
+
#ifdef CONFIG_LPS
// check traffic for powersaving.
- if(padapter->registrypriv.intel_class_mode==1){
- trx_threshold=1;
- rx_threshold=1;
- }
- else{
- trx_threshold=8;
- rx_threshold=2;
- }
- if( ((pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod + pmlmepriv->LinkDetectInfo.NumTxOkInPeriod) > trx_threshold ) ||
- (pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod > rx_threshold) )
+ if( ((pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod + pmlmepriv->LinkDetectInfo.NumTxOkInPeriod) > 8 ) ||
+ (pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod > 2) )
{
- //DBG_8192C("Tx = %d, Rx = %d \n",pmlmepriv->LinkDetectInfo.NumTxOkInPeriod,pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod);
+ //DBG_871X("Tx = %d, Rx = %d \n",pmlmepriv->LinkDetectInfo.NumTxOkInPeriod,pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod);
bEnterPS= _FALSE;
}
else
@@ -1905,15 +2201,39 @@ static void traffic_status_watchdog(_adapter *padapter)
pmlmepriv->LinkDetectInfo.bRxBusyTraffic = bRxBusyTraffic;
pmlmepriv->LinkDetectInfo.bHigherBusyTraffic = bHigherBusyTraffic;
pmlmepriv->LinkDetectInfo.bHigherBusyRxTraffic = bHigherBusyRxTraffic;
+ pmlmepriv->LinkDetectInfo.bHigherBusyTxTraffic = bHigherBusyTxTraffic;
+
}
+void dynamic_chk_wk_hdl(_adapter *padapter, u8 *pbuf, int sz);
void dynamic_chk_wk_hdl(_adapter *padapter, u8 *pbuf, int sz)
{
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- //struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_priv *pmlmepriv;
+
+ if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
+ return;
+
+ if((void*)padapter != (void*)pbuf && padapter->pbuddy_adapter == NULL)
+ return;
+
+ padapter = (_adapter *)pbuf;
+
+ if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
+ return;
+
+ pmlmepriv = &(padapter->mlmepriv);
+
+#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+#ifdef CONFIG_AP_MODE
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
+ {
+ expire_timeout_chk(padapter);
+ }
+#endif
+#endif //CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+
#ifdef DBG_CONFIG_ERROR_DETECT
- if(padapter->HalFunc.sreset_xmit_status_check)
- padapter->HalFunc.sreset_xmit_status_check(padapter);
+ rtw_hal_sreset_xmit_status_check(padapter);
#endif
//if(check_fwstate(pmlmepriv, _FW_UNDER_LINKING|_FW_UNDER_SURVEY)==_FALSE)
@@ -1922,13 +2242,15 @@ void dynamic_chk_wk_hdl(_adapter *padapter, u8 *pbuf, int sz)
traffic_status_watchdog(padapter);
}
- padapter->HalFunc.hal_dm_watchdog(padapter);
+ rtw_hal_dm_watchdog(padapter);
//check_hw_pbc(padapter, pdrvextra_cmd->pbuf, pdrvextra_cmd->type_size);
}
#ifdef CONFIG_LPS
+
+void lps_ctrl_wk_hdl(_adapter *padapter, u8 lps_ctrl_type);
void lps_ctrl_wk_hdl(_adapter *padapter, u8 lps_ctrl_type)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
@@ -1946,28 +2268,28 @@ _func_enter_;
switch(lps_ctrl_type)
{
case LPS_CTRL_SCAN:
- //DBG_8192C("LPS_CTRL_SCAN \n");
+ //DBG_871X("LPS_CTRL_SCAN \n");
LeaveAllPowerSaveMode(padapter);
break;
case LPS_CTRL_JOINBSS:
- //DBG_8192C("LPS_CTRL_JOINBSS \n");
+ //DBG_871X("LPS_CTRL_JOINBSS \n");
LPS_Leave(padapter);
break;
case LPS_CTRL_CONNECT:
- //DBG_8192C("LPS_CTRL_CONNECT \n");
+ //DBG_871X("LPS_CTRL_CONNECT \n");
mstatus = 1;
// Reset LPS Setting
padapter->pwrctrlpriv.LpsIdleCount = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_JOINBSSRPT, (u8 *)(&mstatus));
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_JOINBSSRPT, (u8 *)(&mstatus));
break;
case LPS_CTRL_DISCONNECT:
- //DBG_8192C("LPS_CTRL_DISCONNECT \n");
+ //DBG_871X("LPS_CTRL_DISCONNECT \n");
mstatus = 0;
LPS_Leave(padapter);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_JOINBSSRPT, (u8 *)(&mstatus));
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_JOINBSSRPT, (u8 *)(&mstatus));
break;
case LPS_CTRL_SPECIAL_PACKET:
- //DBG_8192C("LPS_CTRL_SPECIAL_PACKET \n");
+ //DBG_871X("LPS_CTRL_SPECIAL_PACKET \n");
pwrpriv->DelayLPSLastTimeStamp = rtw_get_current_time();
LPS_Leave(padapter);
break;
@@ -1984,7 +2306,7 @@ u8 rtw_lps_ctrl_wk_cmd(_adapter*padapter, u8 lps_ctrl_type, u8 enqueue)
struct cmd_obj *ph2c;
struct drvextra_cmd_parm *pdrvextra_cmd_parm;
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
+ //struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
u8 res = _SUCCESS;
_func_enter_;
@@ -1992,6 +2314,11 @@ _func_enter_;
//if(!pwrctrlpriv->bLeisurePs)
// return res;
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->iface_type != IFACE_PORT0)
+ return res;
+#endif
+
if(enqueue)
{
ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
@@ -2033,7 +2360,7 @@ _func_exit_;
void antenna_select_wk_hdl(_adapter *padapter, u8 antenna)
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_ANTENNA_DIVERSITY_SELECT, (u8 *)(&antenna));
+ rtw_hal_set_hwreg(padapter, HW_VAR_ANTENNA_DIVERSITY_SELECT, (u8 *)(&antenna));
}
u8 rtw_antenna_select_cmd(_adapter*padapter, u8 antenna,u8 enqueue)
@@ -2045,7 +2372,7 @@ u8 rtw_antenna_select_cmd(_adapter*padapter, u8 antenna,u8 enqueue)
u8 res = _SUCCESS;
_func_enter_;
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_IS_SUPPORT_ANT_DIV, &(bSupportAntDiv));
+ rtw_hal_get_def_var(padapter, HAL_DEF_IS_SUPPORT_ANT_DIV, &(bSupportAntDiv));
if(_FALSE == bSupportAntDiv ) return res;
if(_TRUE == enqueue)
@@ -2082,11 +2409,23 @@ _func_exit_;
}
#endif
+void power_saving_wk_hdl(_adapter *padapter, u8 *pbuf, int sz);
void power_saving_wk_hdl(_adapter *padapter, u8 *pbuf, int sz)
{
rtw_ps_processor(padapter);
}
+//add for CONFIG_IEEE80211W, none 11w can use it
+void reset_securitypriv_hdl(_adapter *padapter)
+{
+ rtw_reset_securitypriv(padapter);
+}
+
+void free_assoc_resources_hdl(_adapter *padapter)
+{
+ rtw_free_assoc_resources(padapter, 1);
+}
+
#ifdef CONFIG_P2P
u8 p2p_protocol_wk_cmd(_adapter*padapter, int intCmdType )
{
@@ -2098,7 +2437,7 @@ u8 p2p_protocol_wk_cmd(_adapter*padapter, int intCmdType )
_func_enter_;
- if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
return res;
}
@@ -2141,6 +2480,11 @@ u8 rtw_ps_cmd(_adapter*padapter)
u8 res = _SUCCESS;
_func_enter_;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->adapter_type != PRIMARY_ADAPTER)
+ goto exit;
+#endif
ppscmd = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
if(ppscmd==NULL){
@@ -2157,7 +2501,6 @@ _func_enter_;
pdrvextra_cmd_parm->ec_id = POWER_SAVING_CTRL_WK_CID;
pdrvextra_cmd_parm->pbuf = NULL;
- DBG_8192C("==> %s , enqueue CMD \n",__FUNCTION__);
init_h2fwcmd_w_parm_no_rsp(ppscmd, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
res = rtw_enqueue_cmd(pcmdpriv, ppscmd);
@@ -2241,6 +2584,108 @@ exit:
}
#endif
+u8 rtw_c2h_wk_cmd(PADAPTER padapter, u8 *c2h_evt)
+{
+ struct cmd_obj *ph2c;
+ struct drvextra_cmd_parm *pdrvextra_cmd_parm;
+ struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
+ u8 res = _SUCCESS;
+
+ ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
+ if (ph2c == NULL) {
+ res = _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm = (struct drvextra_cmd_parm*)rtw_zmalloc(sizeof(struct drvextra_cmd_parm));
+ if (pdrvextra_cmd_parm == NULL) {
+ rtw_mfree((u8*)ph2c, sizeof(struct cmd_obj));
+ res = _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm->ec_id = C2H_WK_CID;
+ pdrvextra_cmd_parm->type_size = c2h_evt?16:0;
+ pdrvextra_cmd_parm->pbuf = c2h_evt;
+
+ init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
+
+ res = rtw_enqueue_cmd(pcmdpriv, ph2c);
+
+exit:
+
+ return res;
+}
+
+s32 c2h_evt_hdl(_adapter *adapter, struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter)
+{
+ s32 ret = _FAIL;
+ u8 buf[16];
+
+ if (!c2h_evt) {
+ /* No c2h event in cmd_obj, read c2h event before handling*/
+ if (c2h_evt_read(adapter, buf) == _SUCCESS) {
+ c2h_evt = (struct c2h_evt_hdr *)buf;
+
+ if (filter && filter(c2h_evt->id) == _FALSE)
+ goto exit;
+
+ ret = rtw_hal_c2h_handler(adapter, c2h_evt);
+ }
+ } else {
+
+ if (filter && filter(c2h_evt->id) == _FALSE)
+ goto exit;
+
+ ret = rtw_hal_c2h_handler(adapter, c2h_evt);
+ }
+exit:
+ return ret;
+}
+
+#ifdef CONFIG_C2H_WK
+static void c2h_wk_callback(_workitem *work)
+{
+ struct evt_priv *evtpriv = container_of(work, struct evt_priv, c2h_wk);
+ _adapter *adapter = container_of(evtpriv, _adapter, evtpriv);
+ struct c2h_evt_hdr *c2h_evt;
+ c2h_id_filter ccx_id_filter = rtw_hal_c2h_id_filter_ccx(adapter);
+
+ evtpriv->c2h_wk_alive = _TRUE;
+
+ while (!rtw_cbuf_empty(evtpriv->c2h_queue)) {
+ if ((c2h_evt = (struct c2h_evt_hdr *)rtw_cbuf_pop(evtpriv->c2h_queue)) != NULL) {
+ /* This C2H event is read, clear it */
+ c2h_evt_clear(adapter);
+ } else if ((c2h_evt = (struct c2h_evt_hdr *)rtw_malloc(16)) != NULL) {
+ /* This C2H event is not read, read & clear now */
+ if (c2h_evt_read(adapter, (u8*)c2h_evt) != _SUCCESS)
+ continue;
+ }
+
+ /* Special pointer to trigger c2h_evt_clear only */
+ if ((void *)c2h_evt == (void *)evtpriv)
+ continue;
+
+ if (!c2h_evt_exist(c2h_evt)) {
+ rtw_mfree((u8*)c2h_evt, 16);
+ continue;
+ }
+
+ if (ccx_id_filter(c2h_evt->id) == _TRUE) {
+ /* Handle CCX report here */
+ rtw_hal_c2h_handler(adapter, c2h_evt);
+ rtw_mfree((u8*)c2h_evt, 16);
+ } else {
+ /* Enqueue into cmd_thread for others */
+ rtw_c2h_wk_cmd(adapter, (u8 *)c2h_evt);
+ }
+ }
+
+ evtpriv->c2h_wk_alive = _FALSE;
+}
+#endif
+
u8 rtw_drvextra_cmd_hdl(_adapter *padapter, unsigned char *pbuf)
{
struct drvextra_cmd_parm *pdrvextra_cmd;
@@ -2268,24 +2713,39 @@ u8 rtw_drvextra_cmd_hdl(_adapter *padapter, unsigned char *pbuf)
antenna_select_wk_hdl(padapter, pdrvextra_cmd->type_size);
break;
#endif
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
case P2P_PS_WK_CID:
p2p_ps_wk_hdl(padapter, pdrvextra_cmd->type_size);
break;
+#endif // CONFIG_P2P_PS
case P2P_PROTO_WK_CID:
// Commented by Albert 2011/07/01
// I used the type_size as the type command
p2p_protocol_wk_hdl( padapter, pdrvextra_cmd->type_size );
break;
-#endif //CONFIG_P2P
#ifdef CONFIG_AP_MODE
case CHECK_HIQ_WK_CID:
rtw_chk_hi_queue_hdl(padapter);
break;
-#endif //CONFIG_AP_MODE
- default:
+#endif //CONFIG_AP_MODE
+#ifdef CONFIG_INTEL_WIDI
+ case INTEl_WIDI_WK_CID:
+ intel_widi_wk_hdl(padapter, pdrvextra_cmd->type_size, pdrvextra_cmd->pbuf);
+ break;
+#endif //CONFIG_INTEL_WIDI
+ //add for CONFIG_IEEE80211W, none 11w can use it
+ case RESET_SECURITYPRIV:
+ reset_securitypriv_hdl(padapter);
+ break;
+ case FREE_ASSOC_RESOURCES:
+ free_assoc_resources_hdl(padapter);
+ break;
+ case C2H_WK_CID:
+ c2h_evt_hdl(padapter, (struct c2h_evt_hdr *)pdrvextra_cmd->pbuf, NULL);
break;
+ default:
+ break;
}
@@ -2552,13 +3012,14 @@ _func_enter_;
set_fwstate(pmlmepriv, _FW_LINKED);
_exit_critical_bh(&pmlmepriv->lock, &irqL);
-
-exit:
+
+exit:
rtw_free_cmd_obj(pcmd);
-
+
_func_exit_;
}
+void rtw_getrttbl_cmd_cmdrsp_callback(_adapter* padapter, struct cmd_obj *pcmd);
void rtw_getrttbl_cmd_cmdrsp_callback(_adapter* padapter, struct cmd_obj *pcmd)
{
_func_enter_;
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_debug.c b/drivers/net/wireless/rtl8192cu/core/rtw_debug.c
index 04e472d..f70fcb7 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_debug.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_debug.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -21,10 +21,11 @@
#include <rtw_debug.h>
+#include <../hal/dm.h>
-#ifdef CONFIG_DEBUG_RTL871X
+//#ifdef CONFIG_DEBUG_RTL871X
- u32 GlobalDebugLevel = _drv_info_;
+ u32 GlobalDebugLevel = _drv_err_;
u64 GlobalDebugComponents = \
_module_rtl871x_xmit_c_ |
@@ -52,12 +53,12 @@
_module_hci_ops_os_c_|
_module_rtl871x_ioctl_os_c|
_module_rtl8712_cmd_c_|
- _module_rtl8192c_xmit_c_|
+ _module_hal_xmit_c_|
_module_rtl8712_recv_c_ |
_module_mp_ |
_module_efuse_;
-#endif
+//#endif
#ifdef CONFIG_PROC_DEBUG
#include <rtw_version.h>
@@ -76,6 +77,65 @@ int proc_get_drv_version(char *page, char **start,
return len;
}
+int proc_get_log_level(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+
+ int len = 0;
+
+ len += snprintf(page + len, count - len,
+ "log_level:%d\n",
+ GlobalDebugLevel
+ );
+
+ *eof = 1;
+ return len;
+}
+
+int proc_set_log_level(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ char tmp[32];
+ u32 is_signal_dbg;
+
+ if (count < 1)
+ return -EFAULT;
+
+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
+
+ int num = sscanf(tmp, "%d ", &is_signal_dbg);
+
+ if( is_signal_dbg >= 0 && is_signal_dbg < 10 )
+ {
+ GlobalDebugLevel= is_signal_dbg;
+ printk("%d\n", GlobalDebugLevel);
+ }
+ }
+
+ return count;
+
+}
+
+#ifdef DBG_MEM_ALLOC
+int proc_get_mstat(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ int len = 0;
+
+ len += _rtw_mstat_dump(page+len, count-len);
+ *eof = 1;
+
+ return len;
+}
+#endif /* DBG_MEM_ALLOC */
+
int proc_get_write_reg(char *page, char **start,
off_t offset, int count,
int *eof, void *data)
@@ -94,7 +154,7 @@ int proc_set_write_reg(struct file *file, const char *buffer,
if (count < 3)
{
- DBG_8192C("argument size is less than 3\n");
+ DBG_871X("argument size is less than 3\n");
return -EFAULT;
}
@@ -103,7 +163,7 @@ int proc_set_write_reg(struct file *file, const char *buffer,
int num = sscanf(tmp, "%x %x %x", &addr, &val, &len);
if (num != 3) {
- DBG_8192C("invalid write_reg parameter!\n");
+ DBG_871X("invalid write_reg parameter!\n");
return count;
}
@@ -119,7 +179,7 @@ int proc_set_write_reg(struct file *file, const char *buffer,
rtw_write32(padapter, addr, val);
break;
default:
- DBG_8192C("error write length=%d", len);
+ DBG_871X("error write length=%d", len);
break;
}
@@ -171,14 +231,12 @@ int proc_get_read_reg(char *page, char **start,
int proc_set_read_reg(struct file *file, const char *buffer,
unsigned long count, void *data)
{
- struct net_device *dev = (struct net_device *)data;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
char tmp[16];
u32 addr, len;
if (count < 2)
{
- DBG_8192C("argument size is less than 2\n");
+ DBG_871X("argument size is less than 2\n");
return -EFAULT;
}
@@ -187,7 +245,7 @@ int proc_set_read_reg(struct file *file, const char *buffer,
int num = sscanf(tmp, "%x %x", &addr, &len);
if (num != 2) {
- DBG_8192C("invalid read_reg parameter!\n");
+ DBG_871X("invalid read_reg parameter!\n");
return count;
}
@@ -289,17 +347,17 @@ int proc_get_rf_info(char *page, char **start,
int *eof, void *data)
{
struct net_device *dev = data;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
int len = 0;
- len += snprintf(page + len, count - len, "cur_ch=%d, cur_bw=%d, cur_ch_offet=%d\n",
- pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset);
-
-
+ len += snprintf(page + len, count - len, "cur_ch=%d, cur_bw=%d, cur_ch_offet=%d\n"
+ "oper_ch=%d, oper_bw=%d, oper_ch_offet=%d\n",
+ pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset,
+ rtw_get_oper_ch(padapter), rtw_get_oper_bw(padapter), rtw_get_oper_choffset(padapter));
*eof = 1;
- return len;
+ return len;
}
int proc_get_ap_info(char *page, char **start,
@@ -371,23 +429,282 @@ int proc_get_trx_info(char *page, char **start,
off_t offset, int count,
int *eof, void *data)
{
+ int i;
struct net_device *dev = data;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
struct recv_priv *precvpriv = &padapter->recvpriv;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
+ struct hw_xmit *phwxmit;
int len = 0;
- len += snprintf(page + len, count - len, "free_xmitbuf_cnt=%d, free_xmitframe_cnt=%d, free_ext_xmitbuf_cnt=%d, free_recvframe_cnt=%d\n",
- pxmitpriv->free_xmitbuf_cnt, pxmitpriv->free_xmitframe_cnt,pxmitpriv->free_xmit_extbuf_cnt, precvpriv->free_recvframe_cnt);
+ len += snprintf(page + len, count - len, "free_xmitbuf_cnt=%d, free_xmitframe_cnt=%d"
+ ", free_ext_xmitbuf_cnt=%d, free_xframe_ext_cnt=%d"
+ ", free_recvframe_cnt=%d\n",
+ pxmitpriv->free_xmitbuf_cnt, pxmitpriv->free_xmitframe_cnt,
+ pxmitpriv->free_xmit_extbuf_cnt, pxmitpriv->free_xframe_ext_cnt,
+ precvpriv->free_recvframe_cnt);
#ifdef CONFIG_USB_HCI
- len += snprintf(page + len, count - len, "rx_urb_pending_cn=%d\n", precvpriv->rx_pending_cnt);
+ len += snprintf(page + len, count - len, "rx_urb_pending_cnt=%d\n", precvpriv->rx_pending_cnt);
#endif
+ len += snprintf(page + len, count - len, "recvbuf_skb_alloc_fail_cnt=%d\n", precvpriv->recvbuf_skb_alloc_fail_cnt);
+ len += snprintf(page + len, count - len, "recvbuf_null_cnt=%d\n", precvpriv->recvbuf_null_cnt);
+ len += snprintf(page + len, count - len, "read_port_complete_EINPROGRESS_cnt=%d\n", precvpriv->read_port_complete_EINPROGRESS_cnt);
+ len += snprintf(page + len, count - len, "read_port_complete_other_urb_err_cnt=%d\n", precvpriv->read_port_complete_other_urb_err_cnt);
+ len += snprintf(page + len, count - len, "hw_init_completed=%d\n", padapter->hw_init_completed);
+#ifdef CONFIG_USB_HCI
+ len += snprintf(page + len, count - len, "continual_urb_error=%d\n", atomic_read(&pdvobj->continual_urb_error));
+#endif
+
+ for(i = 0; i < 4; i++)
+ {
+ phwxmit = pxmitpriv->hwxmits + i;
+ len += snprintf(page + len, count - len, "%d, hwq.accnt=%d\n", i, phwxmit->accnt);
+ }
+
+ *eof = 1;
+ return len;
+
+}
+
+
+
+int proc_get_mac_reg_dump1(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1;
+
+ len += snprintf(page + len, count - len, "\n======= MAC REG =======\n");
+
+ for(i=0x0;i<0x300;i+=4)
+ {
+ if(j%4==1) len += snprintf(page + len, count - len,"0x%02x",i);
+ len += snprintf(page + len, count - len," 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) len += snprintf(page + len, count - len,"\n");
+ }
+
+ *eof = 1;
+ return len;
+
+}
+
+int proc_get_mac_reg_dump2(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1;
+
+ len += snprintf(page + len, count - len, "\n======= MAC REG =======\n");
+ memset(page, 0, count);
+ for(i=0x300;i<0x600;i+=4)
+ {
+ if(j%4==1) len += snprintf(page + len, count - len,"0x%02x",i);
+ len += snprintf(page + len, count - len," 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) len += snprintf(page + len, count - len,"\n");
+ }
+
*eof = 1;
return len;
}
+
+int proc_get_mac_reg_dump3(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1;
+
+ len += snprintf(page + len, count - len, "\n======= MAC REG =======\n");
+
+ for(i=0x600;i<0x800;i+=4)
+ {
+ if(j%4==1) len += snprintf(page + len, count - len,"0x%02x",i);
+ len += snprintf(page + len, count - len," 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) len += snprintf(page + len, count - len,"\n");
+ }
+
+ *eof = 1;
+ return len;
+
+}
+
+int proc_get_bb_reg_dump1(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1;
+
+ len += snprintf(page + len, count - len, "\n======= BB REG =======\n");
+ for(i=0x800;i<0xB00;i+=4)
+ {
+ if(j%4==1) len += snprintf(page + len, count - len,"0x%02x",i);
+ len += snprintf(page + len, count - len," 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) len += snprintf(page + len, count - len,"\n");
+ }
+ *eof = 1;
+ return len;
+}
+
+int proc_get_bb_reg_dump2(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1;
+
+ len += snprintf(page + len, count - len, "\n======= BB REG =======\n");
+ for(i=0xB00;i<0xE00;i+=4)
+ {
+ if(j%4==1) len += snprintf(page + len, count - len,"0x%02x",i);
+ len += snprintf(page + len, count - len," 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) len += snprintf(page + len, count - len,"\n");
+ }
+ *eof = 1;
+ return len;
+}
+
+int proc_get_bb_reg_dump3(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1;
+
+ len += snprintf(page + len, count - len, "\n======= BB REG =======\n");
+ for(i=0xE00;i<0x1000;i+=4)
+ {
+ if(j%4==1) len += snprintf(page + len, count - len,"0x%02x",i);
+ len += snprintf(page + len, count - len," 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) len += snprintf(page + len, count - len,"\n");
+ }
+ *eof = 1;
+ return len;
+}
+
+int proc_get_rf_reg_dump1(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1,path;
+ u32 value;
+ len += snprintf(page + len, count - len, "\n======= RF REG =======\n");
+ path = 1;
+ len += snprintf(page + len, count - len, "\nRF_Path(%x)\n",path);
+ for(i=0;i<0xC0;i++)
+ {
+ //value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
+ value =rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
+ if(j%4==1) len += snprintf(page + len, count - len, "0x%02x ",i);
+ len += snprintf(page + len, count - len, " 0x%08x ",value);
+ if((j++)%4==0) len += snprintf(page + len, count - len, "\n");
+ }
+
+ *eof = 1;
+ return len;
+}
+
+
+int proc_get_rf_reg_dump2(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1,path;
+ u32 value;
+
+ len += snprintf(page + len, count - len, "\n======= RF REG =======\n");
+ path = 1;
+ len += snprintf(page + len, count - len, "\nRF_Path(%x)\n",path);
+ for(i=0xC0;i<0x100;i++)
+ {
+ //value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
+ value =rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
+ if(j%4==1) len += snprintf(page + len, count - len, "0x%02x ",i);
+ len += snprintf(page + len, count - len, " 0x%08x ",value);
+ if((j++)%4==0) len += snprintf(page + len, count - len, "\n");
+ }
+ *eof = 1;
+ return len;
+}
+
+
+int proc_get_rf_reg_dump3(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1,path;
+ u32 value;
+
+ len += snprintf(page + len, count - len, "\n======= RF REG =======\n");
+ path = 2;
+ len += snprintf(page + len, count - len, "\nRF_Path(%x)\n",path);
+ for(i=0;i<0xC0;i++)
+ {
+ //value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
+ value =rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
+ if(j%4==1) len += snprintf(page + len, count - len, "0x%02x ",i);
+ len += snprintf(page + len, count - len, " 0x%08x ",value);
+ if((j++)%4==0) len += snprintf(page + len, count - len, "\n");
+ }
+
+ *eof = 1;
+ return len;
+}
+
+
+int proc_get_rf_reg_dump4(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+ int i,j=1,path;
+ u32 value;
+
+ len += snprintf(page + len, count - len, "\n======= RF REG =======\n");
+ path = 2;
+ len += snprintf(page + len, count - len, "\nRF_Path(%x)\n",path);
+ for(i=0xC0;i<0x100;i++)
+ {
+ //value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
+ value =rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
+ if(j%4==1) len += snprintf(page + len, count - len, "0x%02x ",i);
+ len += snprintf(page + len, count - len, " 0x%08x ",value);
+ if((j++)%4==0) len += snprintf(page + len, count - len, "\n");
+ }
+ *eof = 1;
+ return len;
+}
+
+
int proc_get_rx_signal(char *page, char **start,
off_t offset, int count,
@@ -453,6 +770,101 @@ int proc_set_rx_signal(struct file *file, const char *buffer,
}
+int proc_get_ht_enable(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+
+ int len = 0;
+
+ if(pregpriv)
+ len += snprintf(page + len, count - len,
+ "%d\n",
+ pregpriv->ht_enable
+ );
+
+ *eof = 1;
+ return len;
+}
+
+int proc_set_ht_enable(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ char tmp[32];
+ u32 mode;
+
+ if (count < 1)
+ return -EFAULT;
+
+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
+
+ int num = sscanf(tmp, "%d ", &mode);
+
+ if( pregpriv && mode >= 0 && mode < 2 )
+ {
+ pregpriv->ht_enable= mode;
+ printk("ht_enable=%d\n", pregpriv->ht_enable);
+ }
+ }
+
+ return count;
+
+}
+
+
+int proc_get_cbw40_enable(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+
+ int len = 0;
+
+ if(pregpriv)
+ len += snprintf(page + len, count - len,
+ "%d\n",
+ pregpriv->cbw40_enable
+ );
+
+ *eof = 1;
+ return len;
+}
+
+int proc_set_cbw40_enable(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ char tmp[32];
+ u32 mode;
+
+ if (count < 1)
+ return -EFAULT;
+
+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
+
+ int num = sscanf(tmp, "%d ", &mode);
+
+ if( pregpriv && mode >= 0 && mode < 2 )
+ {
+ pregpriv->cbw40_enable= mode;
+ printk("cbw40_enable=%d\n", mode);
+ }
+ }
+
+ return count;
+
+}
+
int proc_get_ampdu_enable(char *page, char **start,
off_t offset, int count,
int *eof, void *data)
@@ -500,6 +912,112 @@ int proc_set_ampdu_enable(struct file *file, const char *buffer,
}
+
+int proc_get_two_path_rssi(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+
+ int len = 0;
+
+ if(padapter)
+ len += snprintf(page + len, count - len,
+ "%d %d\n",
+ padapter->recvpriv.RxRssi[0],
+ padapter->recvpriv.RxRssi[1]
+ );
+
+ *eof = 1;
+ return len;
+}
+
+int proc_get_rx_stbc(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+
+ int len = 0;
+
+ if(pregpriv)
+ len += snprintf(page + len, count - len,
+ "%d\n",
+ pregpriv->rx_stbc
+ );
+
+ *eof = 1;
+ return len;
+}
+
+int proc_set_rx_stbc(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ char tmp[32];
+ u32 mode;
+
+ if (count < 1)
+ return -EFAULT;
+
+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
+
+ int num = sscanf(tmp, "%d ", &mode);
+
+ if( pregpriv && (mode == 0 || mode == 1|| mode == 2|| mode == 3))
+ {
+ pregpriv->rx_stbc= mode;
+ printk("rx_stbc=%d\n", mode);
+ }
+ }
+
+ return count;
+
+}
+
+int proc_get_vid(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u16 VID=0;
+ int len = 0;
+
+ rtw_hal_get_hwreg(padapter, HW_VAR_VID, (u8 *)&VID);
+ len += snprintf(page + len, count - len,
+ "%04x\n",
+ VID
+ );
+
+ *eof = 1;
+ return len;
+}
+
+int proc_get_pid(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u16 PID=0;
+ int len = 0;
+
+ rtw_hal_get_hwreg(padapter, HW_VAR_PID, (u8 *)&PID);
+ len += snprintf(page + len, count - len,
+ "%04x\n",
+ PID
+ );
+
+ *eof = 1;
+ return len;
+}
+
int proc_get_rssi_disp(char *page, char **start,
off_t offset, int count,
int *eof, void *data)
@@ -703,7 +1221,117 @@ int proc_get_best_channel(char *page, char **start,
return len;
}
+
+int proc_set_best_channel(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ char tmp[32];
+
+ if(count < 1)
+ return -EFAULT;
+
+ if(buffer && !copy_from_user(tmp, buffer, sizeof(tmp)))
+ {
+ int i;
+ for(i = 0; pmlmeext->channel_set[i].ChannelNum != 0; i++)
+ {
+ pmlmeext->channel_set[i].rx_count = 0;
+ }
+
+ DBG_871X("set %s\n", "Clean Best Channel Count");
+ }
+
+ return count;
+}
#endif /* CONFIG_FIND_BEST_CHANNEL */
+
+#if defined(DBG_CONFIG_ERROR_DETECT)
+#include <rtw_sreset.h>
+int proc_get_sreset(char *page, char **start, off_t offset, int count, int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ int len = 0;
+
+ *eof = 1;
+ return len;
+}
+
+int proc_set_sreset(struct file *file, const char *buffer, unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ char tmp[32];
+ s32 trigger_point;
+
+ if (count < 1)
+ return -EFAULT;
+
+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
+
+ int num = sscanf(tmp, "%d", &trigger_point);
+
+ if (trigger_point == SRESET_TGP_NULL)
+ rtw_hal_sreset_reset(padapter);
+ else
+ sreset_set_trigger_point(padapter, trigger_point);
+ }
+
+ return count;
+
+}
+#endif /* DBG_CONFIG_ERROR_DETECT */
+
+#ifdef CONFIG_DM_ADAPTIVITY
+int proc_get_dm_adaptivity(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data)
+{
+ struct net_device *dev = data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ int len = 0;
+
+ len += dm_adaptivity_get_parm_str(padapter, page, count);
+
+ *eof = 1;
+ return len;
+}
+
+int proc_set_dm_adaptivity(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct net_device *dev = (struct net_device *)data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ char tmp[32];
+ u32 TH_L2H_ini;
+ s8 TH_EDCCA_HL_diff;
+ u32 IGI_Base;
+ int ForceEDCCA;
+ u8 AdapEn_RSSI;
+ u8 IGI_LowerBound;
+
+ if (count < 1)
+ return -EFAULT;
+
+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
+
+ int num = sscanf(tmp, "%x %hhd %x %d %hhu %hhu",
+ &TH_L2H_ini, &TH_EDCCA_HL_diff, &IGI_Base, &ForceEDCCA, &AdapEn_RSSI, &IGI_LowerBound);
+
+ if (num != 6)
+ return count;
+
+ dm_adaptivity_set_parm(padapter, (s8)TH_L2H_ini, TH_EDCCA_HL_diff, (s8)IGI_Base, (bool)ForceEDCCA, AdapEn_RSSI, IGI_LowerBound);
+ }
+
+ return count;
+}
+#endif /* CONFIG_DM_ADAPTIVITY */
+
#endif
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_eeprom.c b/drivers/net/wireless/rtl8192cu/core/rtw_eeprom.c
index 4a0832b..fd07d64 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_eeprom.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_eeprom.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_EEPROM_C_
#include <drv_conf.h>
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_ieee80211.c b/drivers/net/wireless/rtl8192cu/core/rtw_ieee80211.c
index 2b85af9..6305ba3 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_ieee80211.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_ieee80211.c
@@ -25,7 +25,27 @@
#include <osdep_service.h>
#include <wlan_bssdef.h>
-
+u8 RTW_WPA_OUI_TYPE[] = { 0x00, 0x50, 0xf2, 1 };
+u16 RTW_WPA_VERSION = 1;
+u8 WPA_AUTH_KEY_MGMT_NONE[] = { 0x00, 0x50, 0xf2, 0 };
+u8 WPA_AUTH_KEY_MGMT_UNSPEC_802_1X[] = { 0x00, 0x50, 0xf2, 1 };
+u8 WPA_AUTH_KEY_MGMT_PSK_OVER_802_1X[] = { 0x00, 0x50, 0xf2, 2 };
+u8 WPA_CIPHER_SUITE_NONE[] = { 0x00, 0x50, 0xf2, 0 };
+u8 WPA_CIPHER_SUITE_WEP40[] = { 0x00, 0x50, 0xf2, 1 };
+u8 WPA_CIPHER_SUITE_TKIP[] = { 0x00, 0x50, 0xf2, 2 };
+u8 WPA_CIPHER_SUITE_WRAP[] = { 0x00, 0x50, 0xf2, 3 };
+u8 WPA_CIPHER_SUITE_CCMP[] = { 0x00, 0x50, 0xf2, 4 };
+u8 WPA_CIPHER_SUITE_WEP104[] = { 0x00, 0x50, 0xf2, 5 };
+
+u16 RSN_VERSION_BSD = 1;
+u8 RSN_AUTH_KEY_MGMT_UNSPEC_802_1X[] = { 0x00, 0x0f, 0xac, 1 };
+u8 RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X[] = { 0x00, 0x0f, 0xac, 2 };
+u8 RSN_CIPHER_SUITE_NONE[] = { 0x00, 0x0f, 0xac, 0 };
+u8 RSN_CIPHER_SUITE_WEP40[] = { 0x00, 0x0f, 0xac, 1 };
+u8 RSN_CIPHER_SUITE_TKIP[] = { 0x00, 0x0f, 0xac, 2 };
+u8 RSN_CIPHER_SUITE_WRAP[] = { 0x00, 0x0f, 0xac, 3 };
+u8 RSN_CIPHER_SUITE_CCMP[] = { 0x00, 0x0f, 0xac, 4 };
+u8 RSN_CIPHER_SUITE_WEP104[] = { 0x00, 0x0f, 0xac, 5 };
//-----------------------------------------------------------
// for adhoc-master to generate ie and provide supported-rate to fw
//-----------------------------------------------------------
@@ -147,7 +167,58 @@ _func_enter_;
_func_exit_;
}
+inline u8 *rtw_set_ie_ch_switch(u8 *buf, u32 *buf_len, u8 ch_switch_mode,
+ u8 new_ch, u8 ch_switch_cnt)
+{
+ u8 ie_data[3];
+
+ ie_data[0] = ch_switch_mode;
+ ie_data[1] = new_ch;
+ ie_data[2] = ch_switch_cnt;
+ return rtw_set_ie(buf, WLAN_EID_CHANNEL_SWITCH, 3, ie_data, buf_len);
+}
+
+inline u8 secondary_ch_offset_to_hal_ch_offset(u8 ch_offset)
+{
+ if (ch_offset == SCN)
+ return HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ else if(ch_offset == SCA)
+ return HAL_PRIME_CHNL_OFFSET_UPPER;
+ else if(ch_offset == SCB)
+ return HAL_PRIME_CHNL_OFFSET_LOWER;
+
+ return HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+}
+
+inline u8 hal_ch_offset_to_secondary_ch_offset(u8 ch_offset)
+{
+ if (ch_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE)
+ return SCN;
+ else if(ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
+ return SCB;
+ else if(ch_offset == HAL_PRIME_CHNL_OFFSET_UPPER)
+ return SCA;
+
+ return SCN;
+}
+
+inline u8 *rtw_set_ie_secondary_ch_offset(u8 *buf, u32 *buf_len, u8 secondary_ch_offset)
+{
+ return rtw_set_ie(buf, WLAN_EID_SECONDARY_CHANNEL_OFFSET, 1, &secondary_ch_offset, buf_len);
+}
+
+inline u8 *rtw_set_ie_mesh_ch_switch_parm(u8 *buf, u32 *buf_len, u8 ttl,
+ u8 flags, u16 reason, u16 precedence)
+{
+ u8 ie_data[6];
+
+ ie_data[0] = ttl;
+ ie_data[1] = flags;
+ RTW_PUT_LE16((u8*)&ie_data[2], reason);
+ RTW_PUT_LE16((u8*)&ie_data[4], precedence);
+ return rtw_set_ie(buf, 0x118, 6, ie_data, buf_len);
+}
/*----------------------------------------------------------------------------
index: the information element id index, limit is the limit for search
@@ -185,6 +256,104 @@ _func_exit_;
return NULL;
}
+/**
+ * rtw_get_ie_ex - Search specific IE from a series of IEs
+ * @in_ie: Address of IEs to search
+ * @in_len: Length limit from in_ie
+ * @eid: Element ID to match
+ * @oui: OUI to match
+ * @oui_len: OUI length
+ * @ie: If not NULL and the specific IE is found, the IE will be copied to the buf starting from the specific IE
+ * @ielen: If not NULL and the specific IE is found, will set to the length of the entire IE
+ *
+ * Returns: The address of the specific IE found, or NULL
+ */
+u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen)
+{
+ uint cnt;
+ u8 *target_ie = NULL;
+
+
+ if(ielen)
+ *ielen = 0;
+
+ if(!in_ie || in_len<=0)
+ return target_ie;
+
+ cnt = 0;
+
+ while(cnt<in_len)
+ {
+ if(eid == in_ie[cnt]
+ && ( !oui || _rtw_memcmp(&in_ie[cnt+2], oui, oui_len) == _TRUE))
+ {
+ target_ie = &in_ie[cnt];
+
+ if(ie)
+ _rtw_memcpy(ie, &in_ie[cnt], in_ie[cnt+1]+2);
+
+ if(ielen)
+ *ielen = in_ie[cnt+1]+2;
+
+ break;
+ }
+ else
+ {
+ cnt+=in_ie[cnt+1]+2; //goto next
+ }
+
+ }
+
+ return target_ie;
+}
+
+/**
+ * rtw_ies_remove_ie - Find matching IEs and remove
+ * @ies: Address of IEs to search
+ * @ies_len: Pointer of length of ies, will update to new length
+ * @offset: The offset to start scarch
+ * @eid: Element ID to match
+ * @oui: OUI to match
+ * @oui_len: OUI length
+ *
+ * Returns: _SUCCESS: ies is updated, _FAIL: not updated
+ */
+int rtw_ies_remove_ie(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u8 oui_len)
+{
+ int ret = _FAIL;
+ u8 *target_ie;
+ u32 target_ielen;
+ u8 *start;
+ uint search_len;
+
+ if(!ies || !ies_len || *ies_len <= offset)
+ goto exit;
+
+ start = ies + offset;
+ search_len = *ies_len - offset;
+
+ while (1) {
+ target_ie = rtw_get_ie_ex(start, search_len, eid, oui, oui_len, NULL, &target_ielen);
+ if (target_ie && target_ielen) {
+ u8 buf[MAX_IE_SZ] = {0};
+ u8 *remain_ies = target_ie + target_ielen;
+ uint remain_len = search_len - (remain_ies - start);
+
+ _rtw_memcpy(buf, remain_ies, remain_len);
+ _rtw_memcpy(target_ie, buf, remain_len);
+ *ies_len = *ies_len - target_ielen;
+ ret = _SUCCESS;
+
+ start = target_ie;
+ search_len = remain_len;
+ } else {
+ break;
+ }
+ }
+exit:
+ return ret;
+}
+
void rtw_set_supported_rate(u8* SupportedRates, uint mode)
{
_func_enter_;
@@ -328,10 +497,10 @@ _func_exit_;
}
unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit)
-{
+{
int len;
u16 val16;
- unsigned char wpa_oui_type[] = {0x00, 0x50, 0xf2, 0x01};
+ unsigned char wpa_oui_type[] = {0x00, 0x50, 0xf2, 0x01};
u8 *pbuf = pie;
while(1)
@@ -351,34 +520,31 @@ unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit)
val16 = le16_to_cpu(val16);
if (val16 != 0x0001)
- goto check_next_ie;
+ goto check_next_ie;
*wpa_ie_len = *(pbuf + 1);
return pbuf;
-
}
else {
- *wpa_ie_len = 0;
+ *wpa_ie_len = 0;
return NULL;
}
check_next_ie:
- limit = limit - (pbuf - pie) - 2 - len;
+ limit -= (2 + len);
if (limit <= 0)
break;
pbuf += (2 + len);
-
}
-
+
*wpa_ie_len = 0;
-
- return NULL;
+ return NULL;
}
unsigned char *rtw_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit)
@@ -434,7 +600,7 @@ int rtw_parse_wpa_ie(u8* wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwis
if ((*wpa_ie != _WPA_IE_ID_) || (*(wpa_ie+1) != (u8)(wpa_ie_len - 2)) ||
- (_rtw_memcmp(wpa_ie+2, WPA_OUI_TYPE, WPA_SELECTOR_LEN) != _TRUE) )
+ (_rtw_memcmp(wpa_ie+2, RTW_WPA_OUI_TYPE, WPA_SELECTOR_LEN) != _TRUE) )
{
return _FAIL;
}
@@ -787,7 +953,7 @@ u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id ,u8
}
static int rtw_ieee802_11_parse_vendor_specific(u8 *pos, uint elen,
- struct ieee802_11_elems *elems,
+ struct rtw_ieee802_11_elems *elems,
int show_errors)
{
unsigned int oui;
@@ -892,7 +1058,7 @@ static int rtw_ieee802_11_parse_vendor_specific(u8 *pos, uint elen,
* Returns: Parsing result
*/
ParseRes rtw_ieee802_11_parse_elems(u8 *start, uint len,
- struct ieee802_11_elems *elems,
+ struct rtw_ieee802_11_elems *elems,
int show_errors)
{
uint left = len;
@@ -1018,7 +1184,8 @@ ParseRes rtw_ieee802_11_parse_elems(u8 *start, uint len,
}
-u8 key_char2num(u8 ch)
+static u8 key_char2num(u8 ch);
+static u8 key_char2num(u8 ch)
{
if((ch>='0')&&(ch<='9'))
return ch - '0';
@@ -1030,16 +1197,23 @@ u8 key_char2num(u8 ch)
return 0xff;
}
+u8 str_2char2num(u8 hch, u8 lch);
u8 str_2char2num(u8 hch, u8 lch)
{
return ((key_char2num(hch) * 10 ) + key_char2num(lch));
}
+u8 key_2char2num(u8 hch, u8 lch);
u8 key_2char2num(u8 hch, u8 lch)
{
return ((key_char2num(hch) << 4) | key_char2num(lch));
}
+u8 convert_ip_addr(u8 hch, u8 mch, u8 lch)
+{
+ return ((key_char2num(hch) * 100) + (key_char2num(mch) * 10 ) + key_char2num(lch));
+}
+
extern char* rtw_initmac;
void rtw_macaddr_cfg(u8 *mac_addr)
{
@@ -1074,10 +1248,10 @@ void rtw_macaddr_cfg(u8 *mac_addr)
mac[5] = 0x00;
// use default mac addresss
_rtw_memcpy(mac_addr, mac, ETH_ALEN);
- DBG_8192C("MAC Address from efuse error, assign default one !!!\n");
+ DBG_871X("MAC Address from efuse error, assign default one !!!\n");
}
- DBG_8192C("rtw_macaddr_cfg MAC Address = "MAC_FMT"\n", MAC_ARG(mac_addr));
+ DBG_871X("rtw_macaddr_cfg MAC Address = "MAC_FMT"\n", MAC_ARG(mac_addr));
}
void dump_ies(u8 *buf, u32 buf_len) {
@@ -1122,6 +1296,77 @@ void dump_wps_ie(u8 *ie, u32 ie_len) {
}
#ifdef CONFIG_P2P
+/**
+ * rtw_get_p2p_merged_len - Get merged ie length from muitiple p2p ies.
+ * @in_ie: Pointer of the first p2p ie
+ * @in_len: Total len of muiltiple p2p ies
+ * Returns: Length of merged p2p ie length
+ */
+u32 rtw_get_p2p_merged_ies_len(u8 *in_ie, u32 in_len)
+{
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 OUI[4] = { 0x50, 0x6f, 0x9a, 0x09 };
+ int i=0;
+ int j=0, len=0;
+
+ while( i < in_len)
+ {
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(in_ie+ i);
+
+ if( pIE->ElementID == _VENDOR_SPECIFIC_IE_ && _rtw_memcmp(pIE->data, OUI, 4) )
+ {
+ len += pIE->Length-4; // 4 is P2P OUI length, don't count it in this loop
+ }
+
+ i += (pIE->Length + 2);
+ }
+
+ return len + 4; // Append P2P OUI length at last.
+}
+
+/**
+ * rtw_p2p_merge_ies - Merge muitiple p2p ies into one
+ * @in_ie: Pointer of the first p2p ie
+ * @in_len: Total len of muiltiple p2p ies
+ * @merge_ie: Pointer of merged ie
+ * Returns: Length of merged p2p ie
+ */
+int rtw_p2p_merge_ies(u8 *in_ie, u32 in_len, u8 *merge_ie)
+{
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 len = 0;
+ u8 OUI[4] = { 0x50, 0x6f, 0x9a, 0x09 };
+ u8 ELOUI[6] = { 0xDD, 0x00, 0x50, 0x6f, 0x9a, 0x09 }; //EID;Len;OUI, Len would copy at the end of function
+ int i=0;
+
+ if( merge_ie != NULL)
+ {
+ //Set first P2P OUI
+ _rtw_memcpy(merge_ie, ELOUI, 6);
+ merge_ie += 6;
+
+ while( i < in_len)
+ {
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(in_ie+ i);
+
+ // Take out the rest of P2P OUIs
+ if( pIE->ElementID == _VENDOR_SPECIFIC_IE_ && _rtw_memcmp(pIE->data, OUI, 4) )
+ {
+ _rtw_memcpy( merge_ie, pIE->data +4, pIE->Length -4);
+ len += pIE->Length-4;
+ merge_ie += pIE->Length-4;
+ }
+
+ i += (pIE->Length + 2);
+ }
+
+ return len + 4; // 4 is for P2P OUI
+
+ }
+
+ return 0;
+}
+
void dump_p2p_ie(u8 *ie, u32 ie_len) {
u8* pos = (u8*)ie;
u8 id;
@@ -1154,7 +1399,7 @@ void dump_p2p_ie(u8 *ie, u32 ie_len) {
*
* Returns: The address of the P2P IE found, or NULL
*/
-u8 *rtw_get_p2p_ie(u8 *in_ie, uint in_len, u8 *p2p_ie, uint *p2p_ielen)
+u8 *rtw_get_p2p_ie(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen)
{
uint cnt = 0;
u8 *p2p_ie_ptr;
@@ -1166,7 +1411,12 @@ u8 *rtw_get_p2p_ie(u8 *in_ie, uint in_len, u8 *p2p_ie, uint *p2p_ielen)
while(cnt<in_len)
{
eid = in_ie[cnt];
-
+ if ((in_len < 0) || (cnt > MAX_IE_SZ)) {
+#ifdef PLATFORM_LINUX
+ dump_stack();
+#endif
+ return NULL;
+ }
if( ( eid == _VENDOR_SPECIFIC_IE_ ) && ( _rtw_memcmp( &in_ie[cnt+2], p2p_oui, 4) == _TRUE ) )
{
p2p_ie_ptr = in_ie + cnt;
@@ -1215,7 +1465,7 @@ u8 *rtw_get_p2p_attr(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id ,u8 *buf_attr
if(len_attr)
*len_attr = 0;
- if ( ( p2p_ie[0] != _VENDOR_SPECIFIC_IE_ ) ||
+ if ( !p2p_ie || ( p2p_ie[0] != _VENDOR_SPECIFIC_IE_ ) ||
( _rtw_memcmp( p2p_ie + 2, p2p_oui , 4 ) != _TRUE ) )
{
return attr_ptr;
@@ -1381,8 +1631,10 @@ void rtw_WLAN_BSSID_EX_remove_p2p_attr(WLAN_BSSID_EX *bss_ex, u8 attr_id)
}
}
+#endif //CONFIG_P2P
+
#ifdef CONFIG_WFD
-int rtw_get_wfd_ie(u8 *in_ie, uint in_len, u8 *wfd_ie, uint *wfd_ielen)
+int rtw_get_wfd_ie(u8 *in_ie, int in_len, u8 *wfd_ie, uint *wfd_ielen)
{
int match;
uint cnt = 0;
@@ -1390,6 +1642,12 @@ int rtw_get_wfd_ie(u8 *in_ie, uint in_len, u8 *wfd_ie, uint *wfd_ielen)
match=_FALSE;
+
+ if ( in_len < 0 )
+ {
+ return match;
+ }
+
while(cnt<in_len)
{
eid = in_ie[cnt];
@@ -1399,10 +1657,7 @@ int rtw_get_wfd_ie(u8 *in_ie, uint in_len, u8 *wfd_ie, uint *wfd_ielen)
if ( wfd_ie != NULL )
{
_rtw_memcpy( wfd_ie, &in_ie[ cnt ], in_ie[ cnt + 1 ] + 2 );
- if ( wfd_ielen != NULL )
- {
- *wfd_ielen = in_ie[ cnt + 1 ] + 2;
- }
+
}
else
{
@@ -1412,6 +1667,11 @@ int rtw_get_wfd_ie(u8 *in_ie, uint in_len, u8 *wfd_ie, uint *wfd_ielen)
}
}
+ if ( wfd_ielen != NULL )
+ {
+ *wfd_ielen = in_ie[ cnt + 1 ] + 2;
+ }
+
cnt += in_ie[ cnt + 1 ] + 2;
match = _TRUE;
@@ -1454,7 +1714,7 @@ int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id ,u8 *
cnt = 6;
while( cnt < wfd_ielen )
{
- u16 attrlen = RTW_GET_BE16(wfd_ie + cnt + 1);
+ u16 attrlen = RTW_GET_BE16(wfd_ie + cnt + 1);
attr_id = wfd_ie[cnt];
if( attr_id == target_attr_id )
@@ -1464,7 +1724,7 @@ int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id ,u8 *
_rtw_memcpy( attr_content, &wfd_ie[ cnt + 3 ], attrlen );
if(attr_contentlen)
- *attr_contentlen = attrlen;
+ *attr_contentlen = attrlen;
cnt += attrlen + 3;
@@ -1482,5 +1742,174 @@ int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id ,u8 *
}
#endif // CONFIG_WFD
-#endif // CONFIG_P2P
+
+//Baron adds to avoid FreeBSD warning
+int ieee80211_is_empty_essid(const char *essid, int essid_len)
+{
+ /* Single white space is for Linksys APs */
+ if (essid_len == 1 && essid[0] == ' ')
+ return 1;
+
+ /* Otherwise, if the entire essid is 0, we assume it is hidden */
+ while (essid_len) {
+ essid_len--;
+ if (essid[essid_len] != '\0')
+ return 0;
+ }
+
+ return 1;
+}
+
+int ieee80211_get_hdrlen(u16 fc)
+{
+ int hdrlen = 24;
+
+ switch (WLAN_FC_GET_TYPE(fc)) {
+ case RTW_IEEE80211_FTYPE_DATA:
+ if (fc & RTW_IEEE80211_STYPE_QOS_DATA)
+ hdrlen += 2;
+ if ((fc & RTW_IEEE80211_FCTL_FROMDS) && (fc & RTW_IEEE80211_FCTL_TODS))
+ hdrlen += 6; /* Addr4 */
+ break;
+ case RTW_IEEE80211_FTYPE_CTL:
+ switch (WLAN_FC_GET_STYPE(fc)) {
+ case RTW_IEEE80211_STYPE_CTS:
+ case RTW_IEEE80211_STYPE_ACK:
+ hdrlen = 10;
+ break;
+ default:
+ hdrlen = 16;
+ break;
+ }
+ break;
+ }
+
+ return hdrlen;
+}
+
+//show MCS rate, unit: 100Kbps
+u16 rtw_mcs_rate(u8 rf_type, u8 bw_40MHz, u8 short_GI_20, u8 short_GI_40, unsigned char * MCS_rate)
+{
+ u16 max_rate = 0;
+
+ if(rf_type == RF_1T1R)
+ {
+ if(MCS_rate[0] & BIT(7))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1500:1350):((short_GI_20)?722:650);
+ else if(MCS_rate[0] & BIT(6))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1350:1215):((short_GI_20)?650:585);
+ else if(MCS_rate[0] & BIT(5))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1200:1080):((short_GI_20)?578:520);
+ else if(MCS_rate[0] & BIT(4))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?900:810):((short_GI_20)?433:390);
+ else if(MCS_rate[0] & BIT(3))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?600:540):((short_GI_20)?289:260);
+ else if(MCS_rate[0] & BIT(2))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?450:405):((short_GI_20)?217:195);
+ else if(MCS_rate[0] & BIT(1))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?300:270):((short_GI_20)?144:130);
+ else if(MCS_rate[0] & BIT(0))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?150:135):((short_GI_20)?72:65);
+ }
+ else
+ {
+ if(MCS_rate[1])
+ {
+ if(MCS_rate[1] & BIT(7))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?3000:2700):((short_GI_20)?1444:1300);
+ else if(MCS_rate[1] & BIT(6))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?2700:2430):((short_GI_20)?1300:1170);
+ else if(MCS_rate[1] & BIT(5))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?2400:2160):((short_GI_20)?1156:1040);
+ else if(MCS_rate[1] & BIT(4))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1800:1620):((short_GI_20)?867:780);
+ else if(MCS_rate[1] & BIT(3))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1200:1080):((short_GI_20)?578:520);
+ else if(MCS_rate[1] & BIT(2))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?900:810):((short_GI_20)?433:390);
+ else if(MCS_rate[1] & BIT(1))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?600:540):((short_GI_20)?289:260);
+ else if(MCS_rate[1] & BIT(0))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?300:270):((short_GI_20)?144:130);
+ }
+ else
+ {
+ if(MCS_rate[0] & BIT(7))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1500:1350):((short_GI_20)?722:650);
+ else if(MCS_rate[0] & BIT(6))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1350:1215):((short_GI_20)?650:585);
+ else if(MCS_rate[0] & BIT(5))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?1200:1080):((short_GI_20)?578:520);
+ else if(MCS_rate[0] & BIT(4))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?900:810):((short_GI_20)?433:390);
+ else if(MCS_rate[0] & BIT(3))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?600:540):((short_GI_20)?289:260);
+ else if(MCS_rate[0] & BIT(2))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?450:405):((short_GI_20)?217:195);
+ else if(MCS_rate[0] & BIT(1))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?300:270):((short_GI_20)?144:130);
+ else if(MCS_rate[0] & BIT(0))
+ max_rate = (bw_40MHz) ? ((short_GI_40)?150:135):((short_GI_20)?72:65);
+ }
+ }
+ return max_rate;
+}
+
+int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8* category, u8 *action)
+{
+ const u8 *frame_body = frame + sizeof(struct rtw_ieee80211_hdr_3addr);
+ u16 fc;
+ u8 c, a;
+
+ fc = le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)frame)->frame_ctl);
+
+ if ((fc & (RTW_IEEE80211_FCTL_FTYPE|RTW_IEEE80211_FCTL_STYPE))
+ != (RTW_IEEE80211_FTYPE_MGMT|RTW_IEEE80211_STYPE_ACTION)
+ )
+ {
+ return _FALSE;
+ }
+
+ c = frame_body[0];
+
+ switch(c) {
+ case RTW_WLAN_CATEGORY_P2P: /* vendor-specific */
+ break;
+ default:
+ a = frame_body[1];
+ }
+
+ if (category)
+ *category = c;
+ if (action)
+ *action = a;
+
+ return _TRUE;
+}
+
+static const char *_action_public_str[] = {
+ "ACT_PUB_BSSCOEXIST",
+ "ACT_PUB_DSE_ENABLE",
+ "ACT_PUB_DSE_DEENABLE",
+ "ACT_PUB_DSE_REG_LOCATION",
+ "ACT_PUB_EXT_CHL_SWITCH",
+ "ACT_PUB_DSE_MSR_REQ",
+ "ACT_PUB_DSE_MSR_RPRT",
+ "ACT_PUB_MP",
+ "ACT_PUB_DSE_PWR_CONSTRAINT",
+ "ACT_PUB_VENDOR",
+ "ACT_PUB_GAS_INITIAL_REQ",
+ "ACT_PUB_GAS_INITIAL_RSP",
+ "ACT_PUB_GAS_COMEBACK_REQ",
+ "ACT_PUB_GAS_COMEBACK_RSP",
+ "ACT_PUB_TDLS_DISCOVERY_RSP",
+ "ACT_PUB_LOCATION_TRACK",
+ "ACT_PUB_RSVD",
+};
+
+const char *action_public_str(u8 action)
+{
+ action = (action >= ACT_PUBLIC_MAX) ? ACT_PUBLIC_MAX : action;
+ return _action_public_str[action];
+}
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_io.c b/drivers/net/wireless/rtl8192cu/core/rtw_io.c
index 2efe719..4ffaa50 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_io.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_io.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -16,13 +16,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
/*
The purpose of rtw_io.c
-a. provides the API
+a. provides the API
b. provides the protocol engine
@@ -101,7 +100,7 @@ u16 _rtw_read16(_adapter *adapter, u32 addr)
_func_exit_;
return r_val;
}
-
+
u32 _rtw_read32(_adapter *adapter, u32 addr)
{
u32 r_val;
@@ -114,7 +113,7 @@ u32 _rtw_read32(_adapter *adapter, u32 addr)
r_val = _read32(pintfhdl, addr);
_func_exit_;
- return r_val;
+ return r_val;
}
@@ -142,7 +141,7 @@ int _rtw_write16(_adapter *adapter, u32 addr, u16 val)
int ret;
_func_enter_;
_write16 = pintfhdl->io_ops._write16;
-
+
ret = _write16(pintfhdl, addr, val);
_func_exit_;
@@ -174,7 +173,7 @@ int _rtw_writeN(_adapter *adapter, u32 addr ,u32 length , u8 *pdata)
_func_enter_;
_writeN = pintfhdl->io_ops._writeN;
- ret = _writeN(pintfhdl, addr,length,pdata);
+ ret = _writeN(pintfhdl, addr,length,pdata);
_func_exit_;
return RTW_STATUS_CODE(ret);
@@ -188,8 +187,8 @@ int _rtw_write8_async(_adapter *adapter, u32 addr, u8 val)
int ret;
_func_enter_;
_write8_async = pintfhdl->io_ops._write8_async;
-
- ret = _write8_async(pintfhdl, addr, val);
+
+ ret = _write8_async(pintfhdl, addr, val);
_func_exit_;
return RTW_STATUS_CODE(ret);
@@ -203,8 +202,8 @@ int _rtw_write16_async(_adapter *adapter, u32 addr, u16 val)
int ret;
_func_enter_;
_write16_async = pintfhdl->io_ops._write16_async;
-
- ret = _write16_async(pintfhdl, addr, val);
+
+ ret = _write16_async(pintfhdl, addr, val);
_func_exit_;
return RTW_STATUS_CODE(ret);
@@ -218,71 +217,71 @@ int _rtw_write32_async(_adapter *adapter, u32 addr, u32 val)
int ret;
_func_enter_;
_write32_async = pintfhdl->io_ops._write32_async;
-
- ret = _write32_async(pintfhdl, addr, val);
+
+ ret = _write32_async(pintfhdl, addr, val);
_func_exit_;
return RTW_STATUS_CODE(ret);
}
void _rtw_read_mem(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
{
- void (*_read_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
+ void (*_read_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
//struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
struct io_priv *pio_priv = &adapter->iopriv;
struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
+
_func_enter_;
if( (adapter->bDriverStopped ==_TRUE) || (adapter->bSurpriseRemoved == _TRUE))
{
RT_TRACE(_module_rtl871x_io_c_, _drv_info_, ("rtw_read_mem:bDriverStopped(%d) OR bSurpriseRemoved(%d)", adapter->bDriverStopped, adapter->bSurpriseRemoved));
return;
- }
-
+ }
+
_read_mem = pintfhdl->io_ops._read_mem;
-
+
_read_mem(pintfhdl, addr, cnt, pmem);
-
+
_func_exit_;
-
+
}
void _rtw_write_mem(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
-{
- void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
+{
+ void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
//struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
struct io_priv *pio_priv = &adapter->iopriv;
struct intf_hdl *pintfhdl = &(pio_priv->intf);
_func_enter_;
-
+
_write_mem = pintfhdl->io_ops._write_mem;
-
+
_write_mem(pintfhdl, addr, cnt, pmem);
-
- _func_exit_;
-
+
+ _func_exit_;
+
}
void _rtw_read_port(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
-{
- u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
+{
+ u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
//struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
struct io_priv *pio_priv = &adapter->iopriv;
struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
- _func_enter_;
+
+ _func_enter_;
if( (adapter->bDriverStopped ==_TRUE) || (adapter->bSurpriseRemoved == _TRUE))
{
RT_TRACE(_module_rtl871x_io_c_, _drv_info_, ("rtw_read_port:bDriverStopped(%d) OR bSurpriseRemoved(%d)", adapter->bDriverStopped, adapter->bSurpriseRemoved));
return;
- }
+ }
_read_port = pintfhdl->io_ops._read_port;
-
+
_read_port(pintfhdl, addr, cnt, pmem);
-
+
_func_exit_;
}
@@ -292,51 +291,48 @@ void _rtw_read_port_cancel(_adapter *adapter)
void (*_read_port_cancel)(struct intf_hdl *pintfhdl);
struct io_priv *pio_priv = &adapter->iopriv;
struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
+
_read_port_cancel = pintfhdl->io_ops._read_port_cancel;
if(_read_port_cancel)
- _read_port_cancel(pintfhdl);
-
+ _read_port_cancel(pintfhdl);
+
}
-void _rtw_write_port(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
-{
+u32 _rtw_write_port(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
+{
u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
//struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
struct io_priv *pio_priv = &adapter->iopriv;
struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
- _func_enter_;
-
+ u32 ret = _SUCCESS;
+
+ _func_enter_;
+
_write_port = pintfhdl->io_ops._write_port;
- _write_port(pintfhdl, addr, cnt, pmem);
-
+ ret = _write_port(pintfhdl, addr, cnt, pmem);
+
_func_exit_;
-
+
+ return ret;
}
-int _rtw_write_port_sync(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
+u32 _rtw_write_port_and_wait(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem, int timeout_ms)
{
- int (*_write_port_sync)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
- //struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
- struct io_priv *pio_priv = &adapter->iopriv;
- struct intf_hdl *pintfhdl = &(pio_priv->intf);
int ret = _SUCCESS;
-
- _func_enter_;
+ struct xmit_buf *pxmitbuf = (struct xmit_buf *)pmem;
+ struct submit_ctx sctx;
- _write_port_sync = pintfhdl->io_ops._write_port_sync;
+ rtw_sctx_init(&sctx, timeout_ms);
+ pxmitbuf->sctx = &sctx;
- if(_write_port_sync)
- ret = _write_port_sync(pintfhdl, addr, cnt, pmem);
- else
- ret = _FAIL;
+ ret = _rtw_write_port(adapter, addr, cnt, pmem);
- _func_exit_;
+ if (ret == _SUCCESS)
+ ret = rtw_sctx_wait(&sctx);
- return ret;
+ return ret;
}
void _rtw_write_port_cancel(_adapter *adapter)
@@ -344,143 +340,121 @@ void _rtw_write_port_cancel(_adapter *adapter)
void (*_write_port_cancel)(struct intf_hdl *pintfhdl);
struct io_priv *pio_priv = &adapter->iopriv;
struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
+
_write_port_cancel = pintfhdl->io_ops._write_port_cancel;
if(_write_port_cancel)
- _write_port_cancel(pintfhdl);
+ _write_port_cancel(pintfhdl);
}
-
-void _rtw_attrib_read(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem){
-#ifdef CONFIG_SDIO_HCI
- void (*_attrib_read)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
- //struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
- struct io_priv *pio_priv = &adapter->iopriv;
- struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
- _func_enter_;
-
- _attrib_read= pintfhdl->io_ops._attrib_read;
-
- _attrib_read(pintfhdl, addr, cnt, pmem);
-
- _func_exit_;
-#endif
-}
-
-void _rtw_attrib_write(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem){
-#ifdef CONFIG_SDIO_HCI
- void (*_attrib_write)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
- //struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
- struct io_priv *pio_priv = &adapter->iopriv;
- struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
- _func_enter_;
-
- _attrib_write= pintfhdl->io_ops._attrib_write;
-
- _attrib_write(pintfhdl, addr, cnt, pmem);
-
- _func_exit_;
-
-#endif
-}
-
-int rtw_init_io_priv(_adapter *padapter)
-{
- void (*set_intf_ops)(struct _io_ops *pops);
+int rtw_init_io_priv(_adapter *padapter, void (*set_intf_ops)(struct _io_ops *pops))
+{
struct io_priv *piopriv = &padapter->iopriv;
struct intf_hdl *pintf = &piopriv->intf;
+ if (set_intf_ops == NULL)
+ return _FAIL;
+
piopriv->padapter = padapter;
pintf->padapter = padapter;
- pintf->pintf_dev = &padapter->dvobjpriv;
+ pintf->pintf_dev = adapter_to_dvobj(padapter);
-
-#ifdef CONFIG_SDIO_HCI
- set_intf_ops = &sdio_set_intf_ops;
-#endif //END OF CONFIG_SDIO_HCI
+ set_intf_ops(&pintf->io_ops);
+ return _SUCCESS;
+}
-#ifdef CONFIG_USB_HCI
+#ifdef DBG_IO
- if(padapter->chip_type == RTL8188C_8192C)
- {
-#ifdef CONFIG_RTL8192C
- set_intf_ops = &rtl8192cu_set_intf_ops;
-#endif
- }
- else if(padapter->chip_type == RTL8192D)
- {
-#ifdef CONFIG_RTL8192D
- set_intf_ops = &rtl8192du_set_intf_ops;
-#endif
- }
- else
- {
- set_intf_ops = NULL;
- }
-#endif //END OF CONFIG_USB_HCI
+u16 read_sniff_ranges[][2] = {
+ //{0x550, 0x551},
+};
-#ifdef CONFIG_PCI_HCI
+u16 write_sniff_ranges[][2] = {
+ //{0x550, 0x551},
+ //{0x4c, 0x4c},
+};
- if(padapter->chip_type == RTL8188C_8192C)
- {
-#ifdef CONFIG_RTL8192C
- set_intf_ops = &rtl8192ce_set_intf_ops;
-#endif
- }
- else if(padapter->chip_type == RTL8192D)
- {
-#ifdef CONFIG_RTL8192D
- set_intf_ops = &rtl8192de_set_intf_ops;
-#endif
+int read_sniff_num = sizeof(read_sniff_ranges)/sizeof(u16)/2;
+int write_sniff_num = sizeof(write_sniff_ranges)/sizeof(u16)/2;
+
+bool match_read_sniff_ranges(u16 addr, u16 len)
+{
+ int i;
+ for (i = 0; i<read_sniff_num; i++) {
+ if (addr + len > read_sniff_ranges[i][0] && addr <= read_sniff_ranges[i][1])
+ return _TRUE;
}
- else
- {
- set_intf_ops = NULL;
+
+ return _FALSE;
+}
+
+bool match_write_sniff_ranges(u16 addr, u16 len)
+{
+ int i;
+ for (i = 0; i<write_sniff_num; i++) {
+ if (addr + len > write_sniff_ranges[i][0] && addr <= write_sniff_ranges[i][1])
+ return _TRUE;
}
-#endif //END OF CONFIG_PCI_HCI
+
+ return _FALSE;
+}
+u8 dbg_rtw_read8(_adapter *adapter, u32 addr, const char *caller, const int line)
+{
+ u8 val = _rtw_read8(adapter, addr);
- if(set_intf_ops==NULL)
- return _FAIL;
+ if (match_read_sniff_ranges(addr, 1))
+ DBG_871X("DBG_IO %s:%d rtw_read8(0x%04x) return 0x%02x\n", caller, line, addr, val);
- set_intf_ops(&pintf->io_ops);
+ return val;
+}
- return _SUCCESS;
+u16 dbg_rtw_read16(_adapter *adapter, u32 addr, const char *caller, const int line)
+{
+ u16 val = _rtw_read16(adapter, addr);
+
+ if (match_read_sniff_ranges(addr, 2))
+ DBG_871X("DBG_IO %s:%d rtw_read16(0x%04x) return 0x%04x\n", caller, line, addr, val);
+ return val;
+}
+
+u32 dbg_rtw_read32(_adapter *adapter, u32 addr, const char *caller, const int line)
+{
+ u32 val = _rtw_read32(adapter, addr);
+
+ if (match_read_sniff_ranges(addr, 4))
+ DBG_871X("DBG_IO %s:%d rtw_read32(0x%04x) return 0x%08x\n", caller, line, addr, val);
+
+ return val;
}
-#ifdef DBG_IO
int dbg_rtw_write8(_adapter *adapter, u32 addr, u8 val, const char *caller, const int line)
{
- if(addr + 1 > DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, 1))
DBG_871X("DBG_IO %s:%d rtw_write8(0x%04x, 0x%02x)\n", caller, line, addr, val);
return _rtw_write8(adapter, addr, val);
}
int dbg_rtw_write16(_adapter *adapter, u32 addr, u16 val, const char *caller, const int line)
{
- if(addr + 2 > DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, 2))
DBG_871X("DBG_IO %s:%d rtw_write16(0x%04x, 0x%04x)\n", caller, line, addr, val);
return _rtw_write16(adapter, addr, val);
}
int dbg_rtw_write32(_adapter *adapter, u32 addr, u32 val, const char *caller, const int line)
{
- if(addr + 4 > DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, 4))
DBG_871X("DBG_IO %s:%d rtw_write32(0x%04x, 0x%08x)\n", caller, line, addr, val);
return _rtw_write32(adapter, addr, val);
}
int dbg_rtw_writeN(_adapter *adapter, u32 addr ,u32 length , u8 *data, const char *caller, const int line)
{
- if(addr + length> DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, length))
DBG_871X("DBG_IO %s:%d rtw_writeN(0x%04x, %u)\n", caller, line, addr, length);
return _rtw_writeN(adapter, addr, length, data);
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_query.c b/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_query.c
index 156640c..0601886 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_query.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_query.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_IOCTL_QUERY_C_
#include <drv_conf.h>
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_rtl.c b/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_rtl.c
index 87348a2..31b4704 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_rtl.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_rtl.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_IOCTL_RTL_C_
#include <drv_conf.h>
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_set.c b/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_set.c
index 946d875..e67f219 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_set.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_ioctl_set.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_IOCTL_SET_C_
@@ -24,7 +24,7 @@
#include <osdep_service.h>
#include <drv_types.h>
#include <rtw_ioctl_set.h>
-#include <hal_init.h>
+#include <hal_intf.h>
#ifdef CONFIG_USB_HCI
#include <usb_osintf.h>
@@ -43,6 +43,20 @@ extern void indicate_wx_scan_complete_event(_adapter *padapter);
(addr[4] == 0xff) && (addr[5] == 0xff) ) ? _TRUE : _FALSE \
)
+u8 rtw_validate_bssid(u8 *bssid)
+{
+ u8 ret = _TRUE;
+
+ if (is_zero_mac_addr(bssid)
+ || is_broadcast_mac_addr(bssid)
+ || is_multicast_mac_addr(bssid)
+ ) {
+ ret = _FALSE;
+ }
+
+ return ret;
+}
+
u8 rtw_validate_ssid(NDIS_802_11_SSID *ssid)
{
u8 i;
@@ -56,6 +70,7 @@ _func_enter_;
goto exit;
}
+#ifdef CONFIG_VALIDATE_SSID
for(i = 0; i < ssid->SsidLength; i++)
{
//wifi, printable ascii code must be supported
@@ -65,6 +80,7 @@ _func_enter_;
break;
}
}
+#endif /* CONFIG_VALIDATE_SSID */
exit:
@@ -73,6 +89,7 @@ _func_exit_;
return ret;
}
+u8 rtw_do_join(_adapter * padapter);
u8 rtw_do_join(_adapter * padapter)
{
_irqL irqL;
@@ -81,7 +98,7 @@ u8 rtw_do_join(_adapter * padapter)
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
_queue *queue = &(pmlmepriv->scanned_queue);
u8 ret=_SUCCESS;
-
+
_func_enter_;
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
@@ -106,15 +123,13 @@ _func_enter_;
//when set_ssid/set_bssid for rtw_do_join(), but scanning queue is empty
//we try to issue sitesurvey firstly
- if(pmlmepriv->LinkDetectInfo.bBusyTraffic==_FALSE
- #ifdef CONFIG_LAYER2_ROAMING
- || pmlmepriv->to_roaming >0
- #endif
+ if (pmlmepriv->LinkDetectInfo.bBusyTraffic ==_FALSE
+ || rtw_to_roaming(padapter) > 0
)
{
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_do_join(): site survey if scanned_queue is empty\n."));
// submit site_survey_cmd
- if(_SUCCESS!=(ret=rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1)) ) {
+ if(_SUCCESS!=(ret=rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)) ) {
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("rtw_do_join(): site survey return error\n."));
}
}
@@ -133,7 +148,7 @@ _func_enter_;
else if(ret == 2)//there is no need to wait for join
{
ret = _SUCCESS;
- clr_fwstate(pmlmepriv, _FW_UNDER_LINKING);
+ _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
rtw_indicate_connect(padapter);
}
else
@@ -182,7 +197,7 @@ _func_enter_;
// funk will reconnect, but funk will not sitesurvey before reconnect
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("for funk to do roaming"));
if(pmlmepriv->sitesurveyctrl.traffic_busy==_FALSE)
- rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1);
+ rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0);
}
}
@@ -191,13 +206,11 @@ _func_enter_;
//when set_ssid/set_bssid for rtw_do_join(), but there are no desired bss in scanning queue
//we try to issue sitesurvey firstly
if(pmlmepriv->LinkDetectInfo.bBusyTraffic==_FALSE
- #ifdef CONFIG_LAYER2_ROAMING
- || pmlmepriv->to_roaming >0
- #endif
+ || rtw_to_roaming(padapter) > 0
)
{
- //DBG_8192C("rtw_do_join() when no desired bss in scanning queue \n");
- if( _SUCCESS!=(ret=rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1)) ){
+ //DBG_871X("rtw_do_join() when no desired bss in scanning queue \n");
+ if( _SUCCESS!=(ret=rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)) ){
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("do_join(): site survey return error\n."));
}
}
@@ -317,8 +330,8 @@ u8 rtw_set_802_11_bssid(_adapter* padapter, u8 *bssid)
_irqL irqL;
u8 status=_SUCCESS;
u32 cur_time = 0;
+
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- _queue *queue = &pmlmepriv->scanned_queue;
_func_enter_;
@@ -355,7 +368,7 @@ _func_enter_;
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("set_bssid="MAC_FMT"\n", MAC_ARG(bssid) ));
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("cur_bssid="MAC_FMT"\n", MAC_ARG(pmlmepriv->cur_network.network.MacAddress) ));
- rtw_disassoc_cmd(padapter);
+ rtw_disassoc_cmd(padapter, 0, _TRUE);
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
rtw_indicate_disconnect(padapter);
@@ -370,24 +383,10 @@ _func_enter_;
}
handle_tkip_countermeasure:
- //should we add something here...?
-
-#ifdef PLATFORM_LINUX
- if (padapter->securitypriv.btkip_countermeasure == _TRUE) {
- cur_time = rtw_get_current_time();
-
- if( (cur_time - padapter->securitypriv.btkip_countermeasure_time) > 60 * HZ )
- {
- padapter->securitypriv.btkip_countermeasure = _FALSE;
- padapter->securitypriv.btkip_countermeasure_time = 0;
- }
- else
- {
- status = _FAIL;
- goto release_mlme_lock;
- }
+ if (rtw_handle_tkip_countermeasure(padapter, __func__) == _FAIL) {
+ status = _FAIL;
+ goto release_mlme_lock;
}
-#endif
_rtw_memcpy(&pmlmepriv->assoc_bssid, bssid, ETH_ALEN);
pmlmepriv->assoc_by_bssid=_TRUE;
@@ -419,7 +418,6 @@ u8 rtw_set_802_11_ssid(_adapter* padapter, NDIS_802_11_SSID *ssid)
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct wlan_network *pnetwork = &pmlmepriv->cur_network;
-
_func_enter_;
@@ -460,7 +458,7 @@ _func_enter_;
if(rtw_is_same_ibss(padapter, pnetwork) == _FALSE)
{
//if in WIFI_ADHOC_MASTER_STATE | WIFI_ADHOC_STATE, create bss or rejoin again
- rtw_disassoc_cmd(padapter);
+ rtw_disassoc_cmd(padapter, 0, _TRUE);
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
rtw_indicate_disconnect(padapter);
@@ -489,7 +487,7 @@ _func_enter_;
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("set_ssid=[%s] len=0x%x\n", ssid->Ssid, (unsigned int)ssid->SsidLength));
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("assoc_ssid=[%s] len=0x%x\n", pmlmepriv->assoc_ssid.Ssid, (unsigned int)pmlmepriv->assoc_ssid.SsidLength));
- rtw_disassoc_cmd(padapter);
+ rtw_disassoc_cmd(padapter, 0, _TRUE);
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
rtw_indicate_disconnect(padapter);
@@ -504,56 +502,15 @@ _func_enter_;
}
handle_tkip_countermeasure:
-#ifdef PLATFORM_WINDOWS
- if (padapter->securitypriv.btkip_countermeasure==_TRUE)
- {
- LARGE_INTEGER sys_time;
- u32 diff_time,cur_time ;
- RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_ssid:padapter->securitypriv.btkip_countermeasure==_TRUE\n"));
- NdisGetCurrentSystemTime(&sys_time);
- cur_time=(u32)(sys_time.QuadPart/10); // In micro-second.
- RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_ssid:cur_time=0x%x\n",cur_time));
- RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_ssid:psecuritypriv->last_mic_err_time=0x%x\n",padapter->securitypriv.btkip_countermeasure_time));
- diff_time = cur_time -padapter->securitypriv.btkip_countermeasure_time; // In micro-second.
- RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_ssid:diff_time=0x%x\n",diff_time));
-
- if (diff_time > 60000000) {
- RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_ssid(): countermeasure time >60s.\n"));
- padapter->securitypriv.btkip_countermeasure=_FALSE;
- // Update MIC error time.
- padapter->securitypriv.btkip_countermeasure_time=0;
- } else {
- // can't join in 60 seconds.
- status = _FAIL;
- RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_ssid(): countermeasure time <60s.\n"));
- goto release_mlme_lock;
- }
- }
-#endif
-
-#ifdef PLATFORM_LINUX
- if (padapter->securitypriv.btkip_countermeasure == _TRUE) {
- cur_time = rtw_get_current_time();
-
- if( (cur_time - padapter->securitypriv.btkip_countermeasure_time) > 60 * HZ )
- {
- padapter->securitypriv.btkip_countermeasure = _FALSE;
- padapter->securitypriv.btkip_countermeasure_time = 0;
- }
- else
- {
- status = _FAIL;
- goto release_mlme_lock;
- }
+ if (rtw_handle_tkip_countermeasure(padapter, __func__) == _FAIL) {
+ status = _FAIL;
+ goto release_mlme_lock;
}
-#endif
- #ifdef CONFIG_VALIDATE_SSID
if (rtw_validate_ssid(ssid) == _FALSE) {
status = _FAIL;
goto release_mlme_lock;
}
- #endif
_rtw_memcpy(&pmlmepriv->assoc_ssid, ssid, sizeof(NDIS_802_11_SSID));
pmlmepriv->assoc_by_bssid=_FALSE;
@@ -578,6 +535,84 @@ _func_exit_;
}
+u8 rtw_set_802_11_connect(_adapter* padapter, u8 *bssid, NDIS_802_11_SSID *ssid)
+{
+ _irqL irqL;
+ u8 status = _SUCCESS;
+ u32 cur_time = 0;
+ bool bssid_valid = _TRUE;
+ bool ssid_valid = _TRUE;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+
+_func_enter_;
+
+ if (!ssid || rtw_validate_ssid(ssid) == _FALSE)
+ ssid_valid = _FALSE;
+
+ if (!bssid || rtw_validate_bssid(bssid) == _FALSE)
+ bssid_valid = _FALSE;
+
+ if (ssid_valid == _FALSE && bssid_valid == _FALSE) {
+ DBG_871X(FUNC_ADPT_FMT" ssid:%p, ssid_valid:%d, bssid:%p, bssid_valid:%d\n",
+ FUNC_ADPT_ARG(padapter), ssid, ssid_valid, bssid, bssid_valid);
+ status = _FAIL;
+ goto exit;
+ }
+
+ if(padapter->hw_init_completed==_FALSE){
+ RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_,
+ ("set_ssid: hw_init_completed==_FALSE=>exit!!!\n"));
+ status = _FAIL;
+ goto exit;
+ }
+
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+
+ LOG_LEVEL(_drv_info_, FUNC_ADPT_FMT" fw_state=0x%08x\n",
+ FUNC_ADPT_ARG(padapter), get_fwstate(pmlmepriv));
+
+ if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE) {
+ goto handle_tkip_countermeasure;
+ } else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == _TRUE) {
+ goto release_mlme_lock;
+ }
+
+handle_tkip_countermeasure:
+ if (rtw_handle_tkip_countermeasure(padapter, __func__) == _FAIL) {
+ status = _FAIL;
+ goto release_mlme_lock;
+ }
+
+ if (ssid && ssid_valid)
+ _rtw_memcpy(&pmlmepriv->assoc_ssid, ssid, sizeof(NDIS_802_11_SSID));
+
+ if (bssid && bssid_valid) {
+ _rtw_memcpy(&pmlmepriv->assoc_bssid, bssid, ETH_ALEN);
+ pmlmepriv->assoc_by_bssid = _TRUE;
+ }
+
+ if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE) {
+ pmlmepriv->to_join = _TRUE;
+ }
+ else {
+ status = rtw_do_join(padapter);
+ }
+
+release_mlme_lock:
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
+
+exit:
+
+_func_exit_;
+
+ return status;
+}
+
+/*
+rtw_set_802_11_infrastructure_mode(~)
+ ### NOTE:#### (!!!!)
+ MUST TAKE CARE THAT BEFORE CALLING THIS FUNC, YOU SHOULD HAVE LOCKED pmlmepriv->lock and scanned_queue->lock in sequence
+*/
u8 rtw_set_802_11_infrastructure_mode(_adapter* padapter,
NDIS_802_11_NETWORK_INFRASTRUCTURE networktype)
{
@@ -594,24 +629,10 @@ _func_enter_;
if(*pold_state != networktype)
{
- _enter_critical_bh(&pmlmepriv->lock, &irqL);
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,(" change mode!"));
//DBG_871X("change mode, old_mode=%d, new_mode=%d, fw_state=0x%x\n", *pold_state, networktype, get_fwstate(pmlmepriv));
- if((check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE) ||(*pold_state==Ndis802_11IBSS))
- rtw_disassoc_cmd(padapter);
-
- if((check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE) ||
- (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)== _TRUE) )
- rtw_free_assoc_resources(padapter, 1);
-
-
- if((check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE) || (*pold_state==Ndis802_11Infrastructure) ||(*pold_state==Ndis802_11IBSS))
- {
- rtw_indicate_disconnect(padapter); //will clr Linked_state; before this function, we must have chked whether issue dis-assoc_cmd or not
- }
-
if(*pold_state==Ndis802_11APMode)
{
//change to other mode from Ndis802_11APMode
@@ -621,12 +642,25 @@ _func_enter_;
stop_ap_mode(padapter);
#endif
}
-
+
+ if((check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE) ||(*pold_state==Ndis802_11IBSS))
+ rtw_disassoc_cmd(padapter, 0, _TRUE);
+
+ if((check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE) ||
+ (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)== _TRUE) )
+ rtw_free_assoc_resources(padapter, 0);
+
+ if((*pold_state == Ndis802_11Infrastructure) ||(*pold_state == Ndis802_11IBSS))
+ {
+ if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
+ {
+ rtw_indicate_disconnect(padapter); //will clr Linked_state; before this function, we must have chked whether issue dis-assoc_cmd or not
+ }
+ }
+
*pold_state = networktype;
- // clear WIFI_STATION_STATE; WIFI_AP_STATE; WIFI_ADHOC_STATE; WIFI_ADHOC_MASTER_STATE
- //pmlmepriv->fw_state &= 0xffffff87;
- _clr_fwstate_(pmlmepriv, WIFI_STATION_STATE|WIFI_AP_STATE|WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE);
+ _clr_fwstate_(pmlmepriv, ~WIFI_NULL_STATE);
switch(networktype)
{
@@ -657,7 +691,6 @@ _func_enter_;
//RT_TRACE(COMP_OID_SET, DBG_LOUD, ("set_infrastructure: fw_state:%x after changing mode\n",
// get_fwstate(pmlmepriv) ));
- _exit_critical_bh(&pmlmepriv->lock, &irqL);
}
_func_exit_;
@@ -679,9 +712,10 @@ _func_enter_;
{
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("MgntActrtw_set_802_11_disassociate: rtw_indicate_disconnect\n"));
- rtw_disassoc_cmd(padapter);
+ rtw_disassoc_cmd(padapter, 0, _TRUE);
rtw_indicate_disconnect(padapter);
- rtw_free_assoc_resources(padapter, 1);
+ //modify for CONFIG_IEEE80211W, none 11w can use it
+ rtw_free_assoc_resources_cmd(padapter);
}
_exit_critical_bh(&pmlmepriv->lock, &irqL);
@@ -691,7 +725,7 @@ _func_exit_;
return _TRUE;
}
-u8 rtw_set_802_11_bssid_list_scan(_adapter* padapter)
+u8 rtw_set_802_11_bssid_list_scan(_adapter* padapter, NDIS_802_11_SSID *pssid, int ssid_max_num)
{
_irqL irqL;
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
@@ -724,17 +758,15 @@ _func_enter_;
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("\n###pmlmepriv->sitesurveyctrl.traffic_busy==_TRUE\n\n"));
}
} else {
- #ifdef CONFIG_SET_SCAN_DENY_TIMER
- if(ATOMIC_READ(&pmlmepriv->set_scan_deny)==1){
- DBG_871X("%s:%d CONFIG_SET_SCAN_DENY_TIMER deny scan\n", __FUNCTION__, __LINE__);
+ if (rtw_is_scan_deny(padapter)) {
+ DBG_871X(FUNC_ADPT_FMT": scan deny\n", FUNC_ADPT_ARG(padapter));
indicate_wx_scan_complete_event(padapter);
return _SUCCESS;
}
- #endif
_enter_critical_bh(&pmlmepriv->lock, &irqL);
- res = rtw_sitesurvey_cmd(padapter, NULL, 0);
+ res = rtw_sitesurvey_cmd(padapter, pssid, ssid_max_num, NULL, 0);
_exit_critical_bh(&pmlmepriv->lock, &irqL);
}
@@ -1300,67 +1332,80 @@ _func_exit_;
}
/*
-* rtw_get_network_max_rate -
+* rtw_get_cur_max_rate -
* @adapter: pointer to _adapter structure
-* @bss:
*
-* Return 0 or Mbps
+* Return 0 or 100Kbps
*/
-u16 rtw_get_network_max_rate(_adapter *adapter, WLAN_BSSID_EX *bss)
+u16 rtw_get_cur_max_rate(_adapter *adapter)
{
- int i =0;
- u8 *p;
- u16 rate = 0, max_rate = 0, ht_cap=_FALSE;
- u32 ht_ielen = 0;
+ int i = 0;
+ u8 *p;
+ u16 rate = 0, max_rate = 0;
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct registry_priv *pregistrypriv = &adapter->registrypriv;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
+ WLAN_BSSID_EX *pcur_bss = &pmlmepriv->cur_network.network;
+#ifdef CONFIG_80211N_HT
struct rtw_ieee80211_ht_cap *pht_capie;
- u8 bw_40MHz=0, short_GI=0;
- u16 mcs_rate=0;
u8 rf_type = 0;
- struct registry_priv *pregpriv = &adapter->registrypriv;
+ u8 bw_40MHz=0, short_GI_20=0, short_GI_40=0;
+ u16 mcs_rate=0;
+ u32 ht_ielen = 0;
+#endif
#ifdef CONFIG_MP_INCLUDED
- if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
- return 0;
+ if (adapter->registrypriv.mp_mode == 1)
+ {
+ if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
+ return 0;
+ }
#endif
if((check_fwstate(pmlmepriv, _FW_LINKED) != _TRUE)
&& (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) != _TRUE))
return 0;
-
- p = rtw_get_ie(&bss->IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, bss->IELength-12);
- if(p && ht_ielen>0)
- {
- ht_cap = _TRUE;
- pht_capie = (struct rtw_ieee80211_ht_cap *)(p+2);
-
- _rtw_memcpy(&mcs_rate , pht_capie->supp_mcs_set, 2);
-
- bw_40MHz = (pht_capie->cap_info&IEEE80211_HT_CAP_SUP_WIDTH) ? 1:0;
- short_GI = (pht_capie->cap_info&(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40)) ? 1:0;
- }
-
- while( (bss->SupportedRates[i]!=0) && (bss->SupportedRates[i]!=0xFF))
- {
- rate = bss->SupportedRates[i]&0x7F;
- if(rate>max_rate)
- max_rate = rate;
- i++;
- }
+#ifdef CONFIG_80211N_HT
+ if (pmlmeext->cur_wireless_mode & (WIRELESS_11_24N|WIRELESS_11_5N)) {
+ p = rtw_get_ie(&pcur_bss->IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pcur_bss->IELength-12);
+ if(p && ht_ielen>0)
+ {
+ pht_capie = (struct rtw_ieee80211_ht_cap *)(p+2);
+
+ _rtw_memcpy(&mcs_rate , pht_capie->supp_mcs_set, 2);
- //TODO: should consider case of WEP and TKIP
- if(ht_cap == _TRUE)
- {
- adapter->HalFunc.GetHwRegHandler(adapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
- if(rf_type == RF_1T1R)
- max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
- else
- max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130);
- }
+ //bw_40MHz = (pht_capie->cap_info&IEEE80211_HT_CAP_SUP_WIDTH) ? 1:0;
+ //cur_bwmod is updated by beacon, pmlmeinfo is updated by association response
+ bw_40MHz = (pmlmeext->cur_bwmode && (HT_INFO_HT_PARAM_REC_TRANS_CHNL_WIDTH & pmlmeinfo->HT_info.infos[0])) ? 1:0;
+
+ //short_GI = (pht_capie->cap_info&(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40)) ? 1:0;
+ short_GI_20 = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info&IEEE80211_HT_CAP_SGI_20) ? 1:0;
+ short_GI_40 = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info&IEEE80211_HT_CAP_SGI_40) ? 1:0;
+
+ rtw_hal_get_hwreg(adapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ max_rate = rtw_mcs_rate(
+ rf_type,
+ bw_40MHz & (pregistrypriv->cbw40_enable),
+ short_GI_20,
+ short_GI_40,
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate
+ );
+ }
+ }
else
+#endif //CONFIG_80211N_HT
{
- max_rate/=2;
+ while( (pcur_bss->SupportedRates[i]!=0) && (pcur_bss->SupportedRates[i]!=0xFF))
+ {
+ rate = pcur_bss->SupportedRates[i]&0x7F;
+ if(rate>max_rate)
+ max_rate = rate;
+ i++;
+ }
+
+ max_rate = max_rate*10/2;
}
return max_rate;
@@ -1408,19 +1453,42 @@ int rtw_set_channel_plan(_adapter *adapter, u8 channel_plan)
*/
int rtw_set_country(_adapter *adapter, const char *country_code)
{
- int channel_plan = RT_CHANNEL_DOMAIN_FCC;
+ int channel_plan = RT_CHANNEL_DOMAIN_WORLD_WIDE_5G;
+
+ DBG_871X("%s country_code:%s\n", __func__, country_code);
//TODO: should have a table to match country code and RT_CHANNEL_DOMAIN
- //TODO: should consider 2-character and 3-character counter code
+ //TODO: should consider 2-character and 3-character country code
if(0 == strcmp(country_code, "US"))
channel_plan = RT_CHANNEL_DOMAIN_FCC;
else if(0 == strcmp(country_code, "EU"))
channel_plan = RT_CHANNEL_DOMAIN_ETSI;
else if(0 == strcmp(country_code, "JP"))
channel_plan = RT_CHANNEL_DOMAIN_MKK;
+ else if(0 == strcmp(country_code, "CN"))
+ channel_plan = RT_CHANNEL_DOMAIN_CHINA;
else
DBG_871X("%s unknown country_code:%s\n", __FUNCTION__, country_code);
return rtw_set_channel_plan(adapter, channel_plan);
}
+/*
+* rtw_set_band -
+* @adapter: pointer to _adapter structure
+* @band: band to set
+*
+* Return _SUCCESS or _FAIL
+*/
+int rtw_set_band(_adapter *adapter, enum _BAND band)
+{
+ if (rtw_band_valid(band)) {
+ DBG_871X(FUNC_ADPT_FMT" band:%d\n", FUNC_ADPT_ARG(adapter), band);
+ adapter->setband = band;
+ return _SUCCESS;
+ }
+
+ DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" band:%d fail\n", FUNC_ADPT_ARG(adapter), band);
+ return _FAIL;
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_iol.c b/drivers/net/wireless/rtl8192cu/core/rtw_iol.c
index f725ad4..872cc42 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_iol.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_iol.c
@@ -38,7 +38,7 @@ struct xmit_frame *rtw_IOL_accquire_xmit_frame(ADAPTER *adapter)
if ((xmitbuf = rtw_alloc_xmitbuf(pxmitpriv)) == NULL)
{
DBG_871X("%s rtw_alloc_xmitbuf return null\n", __FUNCTION__);
- rtw_free_xmitframe_ex(pxmitpriv, xmit_frame);
+ rtw_free_xmitframe(pxmitpriv, xmit_frame);
xmit_frame=NULL;
goto exit;
}
@@ -145,7 +145,7 @@ int _rtw_IOL_append_WD_cmd(struct xmit_frame *xmit_frame, u16 addr, u32 value)
#ifdef DBG_IO
int dbg_rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value, const char *caller, const int line)
{
- if(addr + 1 > DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, 1))
DBG_871X("DBG_IO %s:%d IOL_WB(0x%04x, 0x%02x)\n", caller, line, addr, value);
return _rtw_IOL_append_WB_cmd(xmit_frame, addr, value);
@@ -153,7 +153,7 @@ int dbg_rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value,
int dbg_rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value, const char *caller, const int line)
{
- if(addr + 2 > DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, 2))
DBG_871X("DBG_IO %s:%d IOL_WW(0x%04x, 0x%04x)\n", caller, line, addr, value);
return _rtw_IOL_append_WW_cmd(xmit_frame, addr, value);
@@ -161,7 +161,7 @@ int dbg_rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value
int dbg_rtw_IOL_append_WD_cmd(struct xmit_frame *xmit_frame, u16 addr, u32 value, const char *caller, const int line)
{
- if(addr + 4 > DBG_IO_WRITE_SNIFF_ADDR_START && addr <= DBG_IO_WRITE_SNIFF_ADDR_END)
+ if (match_write_sniff_ranges(addr, 4))
DBG_871X("DBG_IO %s:%d IOL_WD(0x%04x, 0x%08x)\n", caller, line, addr, value);
return _rtw_IOL_append_WD_cmd(xmit_frame, addr, value);
@@ -224,10 +224,7 @@ int rtw_IOL_append_END_cmd(struct xmit_frame *xmit_frame)
int rtw_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms)
{
- if(adapter->HalFunc.IOL_exec_cmds_sync)
- return adapter->HalFunc.IOL_exec_cmds_sync(adapter, xmit_frame, max_wating_ms);
-
- return _FAIL;
+ return rtw_hal_iol_cmd(adapter, xmit_frame, max_wating_ms);
}
int rtw_IOL_exec_cmd_array_sync(PADAPTER adapter, u8 *IOL_cmds, u32 cmd_num, u32 max_wating_ms)
@@ -255,7 +252,7 @@ bool rtw_IOL_applied(ADAPTER *adapter)
return _TRUE;
#ifdef CONFIG_USB_HCI
- if(!adapter->dvobjpriv.ishighspeed)
+ if(!adapter_to_dvobj(adapter)->ishighspeed)
return _TRUE;
#endif
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_mlme.c b/drivers/net/wireless/rtl8192cu/core/rtw_mlme.c
index 2e11d9d..00edd9c 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_mlme.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_mlme.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_MLME_C_
@@ -25,7 +25,7 @@
#include <drv_types.h>
#include <recv_osdep.h>
#include <xmit_osdep.h>
-#include <hal_init.h>
+#include <hal_intf.h>
#include <mlme_osdep.h>
#include <sta_info.h>
#include <wifi.h>
@@ -35,6 +35,14 @@
extern void indicate_wx_scan_complete_event(_adapter *padapter);
extern u8 rtw_do_join(_adapter * padapter);
+#ifdef CONFIG_DISABLE_MCS13TO15
+extern unsigned char MCS_rate_2R_MCS13TO15_OFF[16];
+extern unsigned char MCS_rate_2R[16];
+#else //CONFIG_DISABLE_MCS13TO15
+extern unsigned char MCS_rate_2R[16];
+#endif //CONFIG_DISABLE_MCS13TO15
+extern unsigned char MCS_rate_1R[16];
+
sint _rtw_init_mlme_priv (_adapter* padapter)
{
sint i;
@@ -55,7 +63,7 @@ _func_enter_;
pmlmepriv->cur_network.network.InfrastructureMode = Ndis802_11AutoUnknown;
pmlmepriv->scan_mode=SCAN_ACTIVE;// 1: active, 0: pasive. Maybe someday we should rename this varable to "active_mode" (Jeff)
- _rtw_spinlock_init(&(pmlmepriv->lock));
+ _rtw_spinlock_init(&(pmlmepriv->lock));
_rtw_init_queue(&(pmlmepriv->free_bss_pool));
_rtw_init_queue(&(pmlmepriv->scanned_queue));
@@ -84,9 +92,7 @@ _func_enter_;
//allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf
- #ifdef CONFIG_SET_SCAN_DENY_TIMER
- ATOMIC_SET(&pmlmepriv->set_scan_deny, 0);
- #endif
+ rtw_clear_scan_deny(padapter);
rtw_init_mlme_timer(padapter);
@@ -97,6 +103,7 @@ _func_exit_;
return res;
}
+void rtw_mfree_mlme_priv_lock (struct mlme_priv *pmlmepriv);
void rtw_mfree_mlme_priv_lock (struct mlme_priv *pmlmepriv)
{
_rtw_spinlock_free(&pmlmepriv->lock);
@@ -108,7 +115,7 @@ static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
{
if(*ppie)
{
- _rtw_mfree(*ppie, *plen);
+ rtw_mfree(*ppie, *plen);
*plen = 0;
*ppie=NULL;
}
@@ -117,6 +124,8 @@ static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv)
{
#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+ rtw_buf_free(&pmlmepriv->assoc_req, &pmlmepriv->assoc_req_len);
+ rtw_buf_free(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len);
rtw_free_mlme_ie_data(&pmlmepriv->wps_beacon_ie, &pmlmepriv->wps_beacon_ie_len);
rtw_free_mlme_ie_data(&pmlmepriv->wps_probe_req_ie, &pmlmepriv->wps_probe_req_ie_len);
rtw_free_mlme_ie_data(&pmlmepriv->wps_probe_resp_ie, &pmlmepriv->wps_probe_resp_ie_len);
@@ -128,6 +137,15 @@ void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv)
rtw_free_mlme_ie_data(&pmlmepriv->p2p_go_probe_resp_ie, &pmlmepriv->p2p_go_probe_resp_ie_len);
rtw_free_mlme_ie_data(&pmlmepriv->p2p_assoc_req_ie, &pmlmepriv->p2p_assoc_req_ie_len);
#endif
+
+#if defined(CONFIG_WFD) && defined(CONFIG_IOCTL_CFG80211)
+ rtw_free_mlme_ie_data(&pmlmepriv->wfd_beacon_ie, &pmlmepriv->wfd_beacon_ie_len);
+ rtw_free_mlme_ie_data(&pmlmepriv->wfd_probe_req_ie, &pmlmepriv->wfd_probe_req_ie_len);
+ rtw_free_mlme_ie_data(&pmlmepriv->wfd_probe_resp_ie, &pmlmepriv->wfd_probe_resp_ie_len);
+ rtw_free_mlme_ie_data(&pmlmepriv->wfd_go_probe_resp_ie, &pmlmepriv->wfd_go_probe_resp_ie_len);
+ rtw_free_mlme_ie_data(&pmlmepriv->wfd_assoc_req_ie, &pmlmepriv->wfd_assoc_req_ie_len);
+#endif
+
}
void _rtw_free_mlme_priv (struct mlme_priv *pmlmepriv)
@@ -278,6 +296,17 @@ _func_enter_;
}
#endif
+
+#ifdef PLATFORM_FREEBSD
+ //i think needs to check again
+ delta_time = (curr_time -pnetwork->last_scanned)/hz;
+
+ if(delta_time < lifetime)// unit:sec
+ {
+ goto exit;
+ }
+
+#endif
}
_enter_critical_bh(&free_queue->lock, &irqL);
@@ -385,8 +414,6 @@ void _rtw_free_network_queue(_adapter *padapter, u8 isfreeall)
struct wlan_network *pnetwork;
struct mlme_priv* pmlmepriv = &padapter->mlmepriv;
_queue *scanned_queue = &pmlmepriv->scanned_queue;
- _queue *free_queue = &pmlmepriv->free_bss_pool;
- u8 *mybssid = get_bssid(pmlmepriv);
_func_enter_;
@@ -494,6 +521,7 @@ _func_enter_;
_func_exit_;
}
+int rtw_enqueue_network(_queue *queue, struct wlan_network *pnetwork);
int rtw_enqueue_network(_queue *queue, struct wlan_network *pnetwork)
{
int res;
@@ -504,7 +532,7 @@ _func_exit_;
}
-
+#ifndef PLATFORM_FREEBSD //Baron
static struct wlan_network *rtw_dequeue_network(_queue *queue)
{
struct wlan_network *pnetwork;
@@ -513,8 +541,9 @@ _func_enter_;
_func_exit_;
return pnetwork;
}
+#endif //PLATFORM_FREEBSD
-
+struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv );
struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv )//(_queue *free_queue)
{
struct wlan_network *pnetwork;
@@ -524,6 +553,7 @@ _func_exit_;
return pnetwork;
}
+void rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 is_freeall);
void rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 is_freeall)//(struct wlan_network *pnetwork, _queue *free_queue)
{
_func_enter_;
@@ -532,7 +562,7 @@ _func_enter_;
_func_exit_;
}
-
+void rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork );
void rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork )
{
_func_enter_;
@@ -585,6 +615,7 @@ int rtw_is_same_ibss(_adapter *adapter, struct wlan_network *pnetwork)
}
+inline int is_same_ess(WLAN_BSSID_EX *a, WLAN_BSSID_EX *b);
inline int is_same_ess(WLAN_BSSID_EX *a, WLAN_BSSID_EX *b)
{
//RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("(%s,%d)(%s,%d)\n",
@@ -593,7 +624,7 @@ inline int is_same_ess(WLAN_BSSID_EX *a, WLAN_BSSID_EX *b)
&& _rtw_memcmp(a->Ssid.Ssid, b->Ssid.Ssid, a->Ssid.SsidLength)==_TRUE;
}
-static int is_same_network(WLAN_BSSID_EX *src, WLAN_BSSID_EX *dst)
+int is_same_network(WLAN_BSSID_EX *src, WLAN_BSSID_EX *dst)
{
u16 s_cap, d_cap;
@@ -667,9 +698,9 @@ _func_exit_;
}
-static void update_network(WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src,_adapter * padapter)
+static void update_network(WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src,
+ _adapter * padapter, bool update_ie)
{
- u32 last_evm = 0, tmpVal;
u8 ss_ori = dst->PhyInfo.SignalStrength;
u8 sq_ori = dst->PhyInfo.SignalQuality;
long rssi_ori = dst->Rssi;
@@ -678,16 +709,20 @@ static void update_network(WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src,_adapter * pad
u8 sq_smp = src->PhyInfo.SignalQuality;
long rssi_smp = src->Rssi;
+ u8 ss_final;
+ u8 sq_final;
+ long rssi_final;
+
_func_enter_;
#ifdef CONFIG_ANTENNA_DIVERSITY
- padapter->HalFunc.SwAntDivCompareHandler(padapter, dst, src);
+ rtw_hal_antdiv_rssi_compared(padapter, dst, src); //this will update src.Rssi, need consider again
#endif
- #if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) && 1
+ #if defined(DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) && 1
if(strcmp(dst->Ssid.Ssid, DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) == 0) {
- DBG_871X("%s %s("MAC_FMT", ch%u) ss_ori:%3u, sq_ori:%3u, rssi_ori:%3ld, ss_smp:%3u, sq_smp:%3u, rssi_smp:%3ld\n"
- , __FUNCTION__
+ DBG_871X(FUNC_ADPT_FMT" %s("MAC_FMT", ch%u) ss_ori:%3u, sq_ori:%3u, rssi_ori:%3ld, ss_smp:%3u, sq_smp:%3u, rssi_smp:%3ld\n"
+ , FUNC_ADPT_ARG(padapter)
, src->Ssid.Ssid, MAC_ARG(src->MacAddress), src->Configuration.DSConfig
,ss_ori, sq_ori, rssi_ori
,ss_smp, sq_smp, rssi_smp
@@ -695,56 +730,52 @@ _func_enter_;
}
#endif
-
- //Update signal strength first. Alwlays using the newest value will cause large vibration of scan result's signal strength
- //The rule below is 1/5 for sample value, 4/5 for history value
+ /* The rule below is 1/5 for sample value, 4/5 for history value */
if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) && is_same_network(&(padapter->mlmepriv.cur_network.network), src)) {
- //Because we've process the rx phy info in rtl8192c_process_phy_info/rtl8192d_process_phy_info,
- //we can just take the recvpriv's value
- src->PhyInfo.SignalStrength = padapter->recvpriv.signal_strength;
- src->PhyInfo.SignalQuality = padapter->recvpriv.signal_qual;
- // the rssi value here is undecorated, and will be used for antenna diversity
- if(src->PhyInfo.SignalQuality != 101)
- src->Rssi = (src->Rssi+dst->Rssi*4)/5;
+ /* Take the recvpriv's value for the connected AP*/
+ ss_final = padapter->recvpriv.signal_strength;
+ sq_final = padapter->recvpriv.signal_qual;
+ /* the rssi value here is undecorated, and will be used for antenna diversity */
+ if(sq_smp != 101) /* from the right channel */
+ rssi_final = (src->Rssi+dst->Rssi*4)/5;
else
- src->Rssi = dst->Rssi;
+ rssi_final = rssi_ori;
}
else {
- if(src->PhyInfo.SignalQuality != 101) {
- // handle bss info receving from the right channel
- src->PhyInfo.SignalStrength = ((u32)(src->PhyInfo.SignalStrength)+(u32)(dst->PhyInfo.SignalStrength)*4)/5;
- src->PhyInfo.SignalQuality = ((u32)(src->PhyInfo.SignalQuality)+(u32)(dst->PhyInfo.SignalQuality)*4)/5;
- src->Rssi = (src->Rssi+dst->Rssi*4)/5; // the rssi value here is undecorated, and will be used for antenna diversity
+ if(sq_smp != 101) { /* from the right channel */
+ ss_final = ((u32)(src->PhyInfo.SignalStrength)+(u32)(dst->PhyInfo.SignalStrength)*4)/5;
+ sq_final = ((u32)(src->PhyInfo.SignalQuality)+(u32)(dst->PhyInfo.SignalQuality)*4)/5;
+ rssi_final = (src->Rssi+dst->Rssi*4)/5;
} else {
- // bss info not receving from the right channel, use the original RX signal infos
- src->PhyInfo.SignalStrength = dst->PhyInfo.SignalStrength;
- src->PhyInfo.SignalQuality = dst->PhyInfo.SignalQuality;
- src->Rssi = dst->Rssi;
+ /* bss info not receving from the right channel, use the original RX signal infos */
+ ss_final = dst->PhyInfo.SignalStrength;
+ sq_final = dst->PhyInfo.SignalQuality;
+ rssi_final = dst->Rssi;
}
}
+ if (update_ie)
+ _rtw_memcpy((u8 *)dst, (u8 *)src, get_WLAN_BSSID_EX_sz(src));
- _rtw_memcpy((u8 *)dst, (u8 *)src, get_WLAN_BSSID_EX_sz(src));
-
- src->PhyInfo.SignalStrength = ss_smp;
- src->PhyInfo.SignalQuality = sq_smp;
- src->Rssi = rssi_smp;
+ dst->PhyInfo.SignalStrength = ss_final;
+ dst->PhyInfo.SignalQuality = sq_final;
+ dst->Rssi = rssi_final;
- #if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) && 1
- if(strcmp(dst->Ssid.Ssid, DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) == 0) {
- DBG_871X("%s %s("MAC_FMT"), SignalStrength:%u, SignalQuality:%u, RawRSSI:%ld\n"
- , __FUNCTION__
+ #if defined(DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) && 1
+ if(strcmp(dst->Ssid.Ssid, DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) == 0) {
+ DBG_871X(FUNC_ADPT_FMT" %s("MAC_FMT"), SignalStrength:%u, SignalQuality:%u, RawRSSI:%ld\n"
+ , FUNC_ADPT_ARG(padapter)
, dst->Ssid.Ssid, MAC_ARG(dst->MacAddress), dst->PhyInfo.SignalStrength, dst->PhyInfo.SignalQuality, dst->Rssi);
- }
- #endif
+ }
+ #endif
#if 0 // old codes, may be useful one day...
-// DBG_8192C("update_network: rssi=0x%lx dst->Rssi=%d ,dst->Rssi=0x%lx , src->Rssi=0x%lx",(dst->Rssi+src->Rssi)/2,dst->Rssi,dst->Rssi,src->Rssi);
+// DBG_871X("update_network: rssi=0x%lx dst->Rssi=%d ,dst->Rssi=0x%lx , src->Rssi=0x%lx",(dst->Rssi+src->Rssi)/2,dst->Rssi,dst->Rssi,src->Rssi);
if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) && is_same_network(&(padapter->mlmepriv.cur_network.network), src))
{
- //DBG_8192C("b:ssid=%s update_network: src->rssi=0x%d padapter->recvpriv.ui_rssi=%d\n",src->Ssid.Ssid,src->Rssi,padapter->recvpriv.signal);
+ //DBG_871X("b:ssid=%s update_network: src->rssi=0x%d padapter->recvpriv.ui_rssi=%d\n",src->Ssid.Ssid,src->Rssi,padapter->recvpriv.signal);
if(padapter->recvpriv.signal_qual_data.total_num++ >= PHY_LINKQUALITY_SLID_WIN_MAX)
{
padapter->recvpriv.signal_qual_data.total_num = PHY_LINKQUALITY_SLID_WIN_MAX;
@@ -757,7 +788,7 @@ _func_enter_;
if(padapter->recvpriv.signal_qual_data.index >= PHY_LINKQUALITY_SLID_WIN_MAX)
padapter->recvpriv.signal_qual_data.index = 0;
- //DBG_8192C("Total SQ=%d pattrib->signal_qual= %d\n", padapter->recvpriv.signal_qual_data.total_val, src->Rssi);
+ //DBG_871X("Total SQ=%d pattrib->signal_qual= %d\n", padapter->recvpriv.signal_qual_data.total_val, src->Rssi);
// <1> Showed on UI for user,in percentage.
tmpVal = padapter->recvpriv.signal_qual_data.total_val/padapter->recvpriv.signal_qual_data.total_num;
@@ -766,11 +797,11 @@ _func_enter_;
src->Rssi= translate_percentage_to_dbm(padapter->recvpriv.signal) ;
}
else{
-// DBG_8192C("ELSE:ssid=%s update_network: src->rssi=0x%d dst->rssi=%d\n",src->Ssid.Ssid,src->Rssi,dst->Rssi);
+// DBG_871X("ELSE:ssid=%s update_network: src->rssi=0x%d dst->rssi=%d\n",src->Ssid.Ssid,src->Rssi,dst->Rssi);
src->Rssi=(src->Rssi +dst->Rssi)/2;//dBM
}
-// DBG_8192C("a:update_network: src->rssi=0x%d padapter->recvpriv.ui_rssi=%d\n",src->Rssi,padapter->recvpriv.signal);
+// DBG_871X("a:update_network: src->rssi=0x%d padapter->recvpriv.ui_rssi=%d\n",src->Rssi,padapter->recvpriv.signal);
#endif
@@ -796,7 +827,7 @@ _func_enter_;
//if(pmlmepriv->cur_network.network.IELength<= pnetwork->IELength)
{
- update_network(&(pmlmepriv->cur_network.network), pnetwork,adapter);
+ update_network(&(pmlmepriv->cur_network.network), pnetwork,adapter, _TRUE);
rtw_update_protection(adapter, (pmlmepriv->cur_network.network.IEs) + sizeof (NDIS_802_11_FIXED_IEs),
pmlmepriv->cur_network.network.IELength);
}
@@ -824,6 +855,7 @@ void rtw_update_scanned_network(_adapter *adapter, WLAN_BSSID_EX *target)
struct wlan_network *oldest = NULL;
_func_enter_;
+
_enter_critical_bh(&queue->lock, &irqL);
phead = get_list_head(queue);
plist = get_next(phead);
@@ -865,17 +897,21 @@ _func_enter_;
#ifdef CONFIG_ANTENNA_DIVERSITY
//target->PhyInfo.Optimum_antenna = pHalData->CurAntenna;//optimum_antenna=>For antenna diversity
- adapter->HalFunc.GetHalDefVarHandler(adapter, HAL_DEF_CURRENT_ANTENNA, &(target->PhyInfo.Optimum_antenna));
+ rtw_hal_get_def_var(adapter, HAL_DEF_CURRENT_ANTENNA, &(target->PhyInfo.Optimum_antenna));
#endif
_rtw_memcpy(&(pnetwork->network), target, get_WLAN_BSSID_EX_sz(target));
- pnetwork->last_scanned = rtw_get_current_time();
- //variable initialize
+ //pnetwork->last_scanned = rtw_get_current_time();
+ // variable initialize
pnetwork->fixed = _FALSE;
pnetwork->last_scanned = rtw_get_current_time();
pnetwork->network_type = 0;
pnetwork->aid=0;
pnetwork->join_res=0;
+
+ /* bss info not receving from the right channel */
+ if (pnetwork->network.PhyInfo.SignalQuality == 101)
+ pnetwork->network.PhyInfo.SignalQuality = 0;
}
else {
/* Otherwise just pull from the free list */
@@ -891,10 +927,16 @@ _func_enter_;
target->Length = bssid_ex_sz;
#ifdef CONFIG_ANTENNA_DIVERSITY
//target->PhyInfo.Optimum_antenna = pHalData->CurAntenna;
- adapter->HalFunc.GetHalDefVarHandler(adapter, HAL_DEF_CURRENT_ANTENNA, &(target->PhyInfo.Optimum_antenna));
+ rtw_hal_get_def_var(adapter, HAL_DEF_CURRENT_ANTENNA, &(target->PhyInfo.Optimum_antenna));
#endif
_rtw_memcpy(&(pnetwork->network), target, bssid_ex_sz );
+ pnetwork->last_scanned = rtw_get_current_time();
+
+ /* bss info not receving from the right channel */
+ if (pnetwork->network.PhyInfo.SignalQuality == 101)
+ pnetwork->network.PhyInfo.SignalQuality = 0;
+
rtw_list_insert_tail(&(pnetwork->list),&(queue->queue));
}
@@ -904,23 +946,24 @@ _func_enter_;
* be already expired. In this case we do the same as we found a new
* net and call the new_net handler
*/
- //target.Reserved[0]==1, means that scaned network is a bcn frame.
- if((pnetwork->network.IELength>target->IELength) && (target->Reserved[0]==1))
- goto exit;
-
- update_network(&(pnetwork->network),target,adapter);
+ bool update_ie = _TRUE;
pnetwork->last_scanned = rtw_get_current_time();
+ //target.Reserved[0]==1, means that scaned network is a bcn frame.
+ if((pnetwork->network.IELength>target->IELength) && (target->Reserved[0]==1))
+ update_ie = _FALSE;
+
+ update_network(&(pnetwork->network), target,adapter, update_ie);
}
exit:
_exit_critical_bh(&queue->lock, &irqL);
-_func_exit_;
+_func_exit_;
}
-
+void rtw_add_network(_adapter *adapter, WLAN_BSSID_EX *pnetwork);
void rtw_add_network(_adapter *adapter, WLAN_BSSID_EX *pnetwork)
{
_irqL irqL;
@@ -950,6 +993,7 @@ _func_exit_;
// (3) WMM
// (4) HT
// (5) others
+int rtw_is_desired_network(_adapter *adapter, struct wlan_network *pnetwork);
int rtw_is_desired_network(_adapter *adapter, struct wlan_network *pnetwork)
{
struct security_priv *psecuritypriv = &adapter->securitypriv;
@@ -965,7 +1009,7 @@ int rtw_is_desired_network(_adapter *adapter, struct wlan_network *pnetwork)
desired_encmode = psecuritypriv->ndisencryptstatus;
privacy = pnetwork->network.Privacy;
- if(psecuritypriv->wps_phase == _TRUE)
+ if(check_fwstate(pmlmepriv, WIFI_UNDER_WPS))
{
if(rtw_get_wps_ie(pnetwork->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen)!=NULL)
{
@@ -978,8 +1022,20 @@ int rtw_is_desired_network(_adapter *adapter, struct wlan_network *pnetwork)
}
if (adapter->registrypriv.wifi_spec == 1) //for correct flow of 8021X to do....
{
+ u8 *p=NULL;
+ uint ie_len=0;
+
if ((desired_encmode == Ndis802_11EncryptionDisabled) && (privacy != 0))
bselected = _FALSE;
+
+ if ( psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK) {
+ p = rtw_get_ie(pnetwork->network.IEs + _BEACON_IE_OFFSET_, _RSN_IE_2_, &ie_len, (pnetwork->network.IELength - _BEACON_IE_OFFSET_));
+ if (p && ie_len>0) {
+ bselected = _TRUE;
+ } else {
+ bselected = _FALSE;
+ }
+ }
}
@@ -1097,6 +1153,7 @@ _func_exit_;
void rtw_surveydone_event_callback(_adapter *adapter, u8 *pbuf)
{
_irqL irqL;
+ u8 timer_cancelled = _FALSE;
struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
#ifdef CONFIG_MLME_EXT
@@ -1108,7 +1165,6 @@ void rtw_surveydone_event_callback(_adapter *adapter, u8 *pbuf)
_func_enter_;
_enter_critical_bh(&pmlmepriv->lock, &irqL);
-
if(pmlmepriv->wps_probe_req_ie)
{
u32 free_len = pmlmepriv->wps_probe_req_ie_len;
@@ -1121,21 +1177,29 @@ _func_enter_;
if (check_fwstate(pmlmepriv,_FW_UNDER_SURVEY))
{
- u8 timer_cancelled;
-
- _cancel_timer(&pmlmepriv->scan_to_timer, &timer_cancelled);
+ //u8 timer_cancelled;
+
+ timer_cancelled = _TRUE;
+ //_cancel_timer(&pmlmepriv->scan_to_timer, &timer_cancelled);
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
}
else {
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("nic status =%x, survey done event comes too late!\n", get_fwstate(pmlmepriv)));
- }
-
+ }
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
+
+ if(timer_cancelled)
+ _cancel_timer(&pmlmepriv->scan_to_timer, &timer_cancelled);
+
+
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+
#ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS
rtw_set_signal_stat_timer(&adapter->recvpriv);
#endif
-
+
if(pmlmepriv->to_join == _TRUE)
{
if((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)==_TRUE) )
@@ -1191,18 +1255,21 @@ _func_enter_;
}
else
{
+ DBG_871X("try_to_join, but select scanning queue fail, to_roaming:%d\n", rtw_to_roaming(adapter));
#ifdef CONFIG_LAYER2_ROAMING
- DBG_871X("try_to_join, but select scanning queue fail, to_roaming:%d\n", pmlmepriv->to_roaming);
- #else
- DBG_871X("try_to_join, but select scanning queue fail\n");
- #endif
-
- #ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming!=0) {
+ if (rtw_to_roaming(adapter) != 0) {
if( --pmlmepriv->to_roaming == 0
- || _SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1)
+ || _SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)
) {
- pmlmepriv->to_roaming = 0;
+ rtw_set_roaming(adapter, 0);
+#ifdef CONFIG_INTEL_WIDI
+ if(adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING)
+ {
+ _rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
+ intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL);
+ DBG_871X("change to widi listen\n");
+ }
+#endif // CONFIG_INTEL_WIDI
rtw_free_assoc_resources(adapter, 1);
rtw_indicate_disconnect(adapter);
} else {
@@ -1213,32 +1280,42 @@ _func_enter_;
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
}
}
- }
+ }
indicate_wx_scan_complete_event(adapter);
//DBG_871X("scan complete in %dms\n",rtw_get_passing_time_ms(pmlmepriv->scan_start_time));
_exit_critical_bh(&pmlmepriv->lock, &irqL);
-#ifdef CONFIG_P2P
- p2p_ps_wk_cmd(adapter, P2P_PS_SCAN_DONE, 0);
-#endif //CONFIG_P2P
+#ifdef CONFIG_P2P_PS
+ if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) {
+ p2p_ps_wk_cmd(adapter, P2P_PS_SCAN_DONE, 0);
+ }
+#endif // CONFIG_P2P_PS
rtw_os_xmit_schedule(adapter);
+#ifdef CONFIG_CONCURRENT_MODE
+ rtw_os_xmit_schedule(adapter->pbuddy_adapter);
+#endif
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_resume_xmit(adapter);
+#endif
#ifdef CONFIG_DRVEXT_MODULE_WSC
drvext_surveydone_callback(&adapter->drvextpriv);
#endif
#ifdef DBG_CONFIG_ERROR_DETECT
+#ifdef CONFIG_INTEL_WIDI
+ if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_NONE)
+#endif
{
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
if(pmlmeext->sitesurvey_res.bss_cnt == 0){
- if(adapter->HalFunc.silentreset)
- adapter->HalFunc.silentreset(adapter);
+ rtw_hal_sreset_reset(adapter);
}
}
- #endif
+#endif
#ifdef CONFIG_IOCTL_CFG80211
rtw_cfg80211_surveydone_event_callback(adapter);
@@ -1297,19 +1374,15 @@ void rtw_free_assoc_resources(_adapter *adapter, int lock_scanned_queue)
_irqL irqL;
struct wlan_network* pwlan = NULL;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
- struct mlme_ext_info *pmlmeinfo = &adapter->mlmeextpriv.mlmext_info;
struct sta_priv *pstapriv = &adapter->stapriv;
struct wlan_network *tgt_network = &pmlmepriv->cur_network;
#ifdef CONFIG_TDLS
struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
-#endif //CONFIG_TDLS
+#endif //CONFIG_TDLS
_func_enter_;
RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_, ("+rtw_free_assoc_resources\n"));
-
-
-
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("tgt_network->network.MacAddress="MAC_FMT" ssid=%s\n",
MAC_ARG(tgt_network->network.MacAddress), tgt_network->network.Ssid.Ssid));
@@ -1320,22 +1393,19 @@ _func_enter_;
psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress);
#ifdef CONFIG_TDLS
- if(ptdlsinfo->setup_state != UN_TDLS_STATE)
+ if(ptdlsinfo->setup_state != TDLS_STATE_NONE)
{
rtw_tdls_cmd(adapter, myid(&(adapter->eeprompriv)), TDLS_RS_RCR);
- ptdlsinfo->setup_state = UN_TDLS_STATE;
+ rtw_reset_tdls_info(adapter);
rtw_free_all_stainfo(adapter);
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
}
else
+#endif //CONFIG_TDLS
{
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
rtw_free_stainfo(adapter, psta);
}
-#else
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(adapter, psta);
-#endif //CONFIG_TDLS
_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
@@ -1359,10 +1429,36 @@ _func_enter_;
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
pwlan = rtw_find_network(&pmlmepriv->scanned_queue, tgt_network->network.MacAddress);
- if(pwlan)
+ if(pwlan)
{
pwlan->fixed = _FALSE;
- }
+#ifdef CONFIG_P2P
+ if(!rtw_p2p_chk_state(&adapter->wdinfo, P2P_STATE_NONE))
+ {
+ u32 p2p_ielen=0;
+ u8 *p2p_ie;
+ //u16 capability;
+ u8 *pcap = NULL;
+ u32 capability_len=0;
+
+ //DBG_871X("free disconnecting network\n");
+ //rtw_free_network_nolock(pmlmepriv, pwlan);
+
+ if((p2p_ie=rtw_get_p2p_ie(pwlan->network.IEs+_FIXED_IE_LENGTH_, pwlan->network.IELength-_FIXED_IE_LENGTH_, NULL, &p2p_ielen)))
+ {
+ pcap = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CAPABILITY, NULL, &capability_len);
+ if(pcap && capability_len==2)
+ {
+ u16 cap = *(u16*)pcap ;
+ *(u16*)pcap = cap&0x00ff;//clear group capability when free this network
+ }
+ }
+
+ rtw_set_scan_deny(adapter, 2000);
+ //rtw_clear_scan_deny(adapter);
+ }
+#endif //CONFIG_P2P
+ }
else
{
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_assoc_resources : pwlan== NULL \n\n"));
@@ -1372,15 +1468,15 @@ _func_enter_;
if((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) && (adapter->stapriv.asoc_sta_count== 1))
/*||check_fwstate(pmlmepriv, WIFI_STATION_STATE)*/)
{
- rtw_free_network_nolock(pmlmepriv, pwlan);
+ rtw_free_network_nolock(pmlmepriv, pwlan);
}
if(lock_scanned_queue)
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
- pmlmepriv->key_mask = 0;
+ adapter->securitypriv.key_mask = 0;
-_func_exit_;
+_func_exit_;
}
@@ -1397,12 +1493,16 @@ _func_enter_;
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("+rtw_indicate_connect\n"));
pmlmepriv->to_join = _FALSE;
+
+ if(!check_fwstate(&padapter->mlmepriv, _FW_LINKED))
+ {
+
#ifdef CONFIG_SW_ANTENNA_DIVERSITY
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_ANTENNA_DIVERSITY_LINK, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_ANTENNA_DIVERSITY_LINK, 0);
#endif
set_fwstate(pmlmepriv, _FW_LINKED);
- rtw_led_control(padapter, LED_CTL_LINK);
+ rtw_led_control(padapter, LED_CTL_LINK);
#ifdef CONFIG_DRVEXT_MODULE
if(padapter->drvextpriv.enable_wpa)
@@ -1415,13 +1515,20 @@ _func_enter_;
rtw_os_indicate_connect(padapter);
}
- #ifdef CONFIG_LAYER2_ROAMING
- pmlmepriv->to_roaming=0;
- #endif
+ }
- #ifdef CONFIG_SET_SCAN_DENY_TIMER
- rtw_set_scan_deny(pmlmepriv, 3000);
- #endif
+ rtw_set_roaming(padapter, 0);
+
+#ifdef CONFIG_INTEL_WIDI
+ if(padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING)
+ {
+ _rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
+ intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_WK, NULL);
+ DBG_871X("change to widi listen\n");
+ }
+#endif // CONFIG_INTEL_WIDI
+
+ rtw_set_scan_deny(padapter, 3000);
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("-rtw_indicate_connect: fw_state=0x%08x\n", get_fwstate(pmlmepriv)));
@@ -1441,24 +1548,39 @@ _func_enter_;
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("+rtw_indicate_disconnect\n"));
- _clr_fwstate_(pmlmepriv, _FW_LINKED|_FW_UNDER_LINKING);
+ _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING|WIFI_UNDER_WPS);
- rtw_led_control(padapter, LED_CTL_NO_LINK);
+ if(rtw_to_roaming(padapter) > 0)
+ _clr_fwstate_(pmlmepriv, _FW_LINKED);
- #ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming<=0)
- #endif
+ if(check_fwstate(&padapter->mlmepriv, _FW_LINKED)
+ || (rtw_to_roaming(padapter) <= 0)
+ )
+ {
rtw_os_indicate_disconnect(padapter);
-#ifdef CONFIG_LPS
- if(padapter->pwrctrlpriv.wowlan_mode==_FALSE){
- rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_DISCONNECT, 1);
+ //set ips_deny_time to avoid enter IPS before LPS leave
+ padapter->pwrctrlpriv.ips_deny_time = rtw_get_current_time() + rtw_ms_to_systime(3000);
+
+ _clr_fwstate_(pmlmepriv, _FW_LINKED);
+
+ rtw_led_control(padapter, LED_CTL_NO_LINK);
+
+ rtw_clear_scan_deny(padapter);
+
}
-#endif
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
p2p_ps_wk_cmd(padapter, P2P_PS_DISABLE, 1);
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
+
+#ifdef CONFIG_LPS
+#ifdef CONFIG_WOWLAN
+ if(padapter->pwrctrlpriv.wowlan_mode==_FALSE)
+#endif //CONFIG_WOWLAN
+ rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_DISCONNECT, 1);
+
+#endif
_func_exit_;
}
@@ -1468,16 +1590,45 @@ inline void rtw_indicate_scan_done( _adapter *padapter, bool aborted)
rtw_os_indicate_scan_done(padapter, aborted);
}
+void rtw_scan_abort(_adapter *adapter)
+{
+ u32 cnt=0;
+ u32 start;
+ struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(adapter->mlmeextpriv);
+
+ start = rtw_get_current_time();
+ pmlmeext->scan_abort = _TRUE;
+ while (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)
+ && rtw_get_passing_time_ms(start) <= 200) {
+
+ if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
+ break;
+
+ DBG_871X(FUNC_NDEV_FMT"fw_state=_FW_UNDER_SURVEY!\n", FUNC_NDEV_ARG(adapter->pnetdev));
+ rtw_msleep_os(20);
+ }
+
+ if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
+ if (!adapter->bDriverStopped && !adapter->bSurpriseRemoved)
+ DBG_871X(FUNC_NDEV_FMT"waiting for scan_abort time out!\n", FUNC_NDEV_ARG(adapter->pnetdev));
+ #ifdef CONFIG_PLATFORM_MSTAR
+ //_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
+ set_survey_timer(pmlmeext, 0);
+ _set_timer(&pmlmepriv->scan_to_timer, 50);
+ #endif
+ rtw_indicate_scan_done(adapter, _TRUE);
+ }
+ pmlmeext->scan_abort = _FALSE;
+}
+
static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wlan_network *pnetwork)
{
int i;
struct sta_info *bmc_sta, *psta=NULL;
struct recv_reorder_ctrl *preorder_ctrl;
struct sta_priv *pstapriv = &padapter->stapriv;
-#ifdef CONFIG_CONCURRENT_MODE
- PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
- struct mlme_priv *pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
-#endif
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress);
if(psta==NULL) {
@@ -1490,16 +1641,16 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl
psta->aid = pnetwork->join_res;
#ifdef CONFIG_CONCURRENT_MODE
- if((check_fwstate(pbuddy_mlmepriv, WIFI_STATION_STATE) == _TRUE)
- && (check_fwstate(pbuddy_mlmepriv, _FW_LINKED) == _TRUE))
- {
- psta->mac_id=2;
- }
- else
-#endif
- {
+
+ if(PRIMARY_ADAPTER == padapter->adapter_type)
psta->mac_id=0;
- }
+ else
+ psta->mac_id=2;
+#else
+ psta->mac_id=0;
+#endif
+
+ psta->raid = networktype_to_raid(pmlmeext->cur_wireless_mode);
//security related
if(padapter->securitypriv.dot11AuthAlgrthm== dot11AuthAlgrthm_8021X)
@@ -1516,10 +1667,22 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl
_rtw_memset((u8 *)&psta->dot11tkiprxmickey, 0, sizeof (union Keytype));
_rtw_memset((u8 *)&psta->dot11tkiptxmickey, 0, sizeof (union Keytype));
- _rtw_memset((u8 *)&psta->dot11txpn, 0, sizeof (union pn48));
+ _rtw_memset((u8 *)&psta->dot11txpn, 0, sizeof (union pn48));
+#ifdef CONFIG_IEEE80211W
+ _rtw_memset((u8 *)&psta->dot11wtxpn, 0, sizeof (union pn48));
+#endif //CONFIG_IEEE80211W
_rtw_memset((u8 *)&psta->dot11rxpn, 0, sizeof (union pn48));
}
+ // Commented by Albert 2012/07/21
+ // When doing the WPS, the wps_ie_len won't equal to 0
+ // And the Wi-Fi driver shouldn't allow the data packet to be tramsmitted.
+ if ( padapter->securitypriv.wps_ie_len != 0 )
+ {
+ psta->ieee8021x_blocked=_TRUE;
+ padapter->securitypriv.wps_ie_len = 0;
+ }
+
//for A-MPDU Rx reordering buffer control for bmc_sta & sta_info
//if A-MPDU Rx is enabled, reseting rx_ordering_ctrl wstart_b(indicate_seq) to default value=0xffff
@@ -1582,7 +1745,6 @@ static void rtw_joinbss_update_network(_adapter *padapter, struct wlan_network *
// why not use ptarget_wlan??
_rtw_memcpy(&cur_network->network, &pnetwork->network, pnetwork->network.Length);
- //_rtw_memcpy(&cur_network->network, &ptarget_wlan->network, ptarget_wlan->network.Length);
cur_network->aid = pnetwork->join_res;
@@ -1594,15 +1756,29 @@ static void rtw_joinbss_update_network(_adapter *padapter, struct wlan_network *
padapter->recvpriv.signal_qual = ptarget_wlan->network.PhyInfo.SignalQuality;
//the ptarget_wlan->network.Rssi is raw data, we use ptarget_wlan->network.PhyInfo.SignalStrength instead (has scaled)
padapter->recvpriv.rssi = translate_percentage_to_dbm(ptarget_wlan->network.PhyInfo.SignalStrength);
+ #if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) && 1
+ DBG_871X(FUNC_ADPT_FMT" signal_strength:%3u, rssi:%3d, signal_qual:%3u"
+ "\n"
+ , FUNC_ADPT_ARG(padapter)
+ , padapter->recvpriv.signal_strength
+ , padapter->recvpriv.rssi
+ , padapter->recvpriv.signal_qual
+ );
+ #endif
#ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS
rtw_set_signal_stat_timer(&padapter->recvpriv);
#endif
//update fw_state //will clr _FW_UNDER_LINKING here indirectly
switch(pnetwork->network.InfrastructureMode)
- {
+ {
case Ndis802_11Infrastructure:
- pmlmepriv->fw_state = WIFI_STATION_STATE;
+
+ if(pmlmepriv->fw_state&WIFI_UNDER_WPS)
+ pmlmepriv->fw_state = WIFI_STATION_STATE|WIFI_UNDER_WPS;
+ else
+ pmlmepriv->fw_state = WIFI_STATION_STATE;
+
break;
case Ndis802_11IBSS:
pmlmepriv->fw_state = WIFI_ADHOC_STATE;
@@ -1617,7 +1793,7 @@ static void rtw_joinbss_update_network(_adapter *padapter, struct wlan_network *
(cur_network->network.IELength));
#ifdef CONFIG_80211N_HT
- rtw_update_ht_cap(padapter, cur_network->network.IEs, cur_network->network.IELength);
+ rtw_update_ht_cap(padapter, cur_network->network.IEs, cur_network->network.IELength, (u8) cur_network->network.Configuration.DSConfig);
#endif
@@ -1634,7 +1810,6 @@ static void rtw_joinbss_update_network(_adapter *padapter, struct wlan_network *
void rtw_joinbss_event_prehandle(_adapter *adapter, u8 *pbuf)
{
_irqL irqL,irqL2;
- int res;
static u8 retry=0;
u8 timer_cancelled;
struct sta_info *ptarget_sta= NULL, *pcur_sta = NULL;
@@ -1690,7 +1865,7 @@ _func_enter_;
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n\n ***joinbss_evt_callback return a wrong bss ***\n\n"));
goto ignore_joinbss_callback;
}
-
+
_enter_critical_bh(&pmlmepriv->lock, &irqL);
RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("\n rtw_joinbss_event_callback !! _enter_critical \n"));
@@ -1746,9 +1921,9 @@ _func_enter_;
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
goto ignore_joinbss_callback;
}
-
- //s3. find ptarget_sta & update ptarget_sta after update cur_network only for station mode
+
+ //s3. find ptarget_sta & update ptarget_sta after update cur_network only for station mode
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
{
ptarget_sta = rtw_joinbss_update_stainfo(adapter, pnetwork);
@@ -1758,9 +1933,9 @@ _func_enter_;
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
goto ignore_joinbss_callback;
}
- }
-
- //s4. indicate connect
+ }
+
+ //s4. indicate connect
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
{
rtw_indicate_connect(adapter);
@@ -1770,13 +1945,13 @@ _func_enter_;
//adhoc mode will rtw_indicate_connect when rtw_stassoc_event_callback
RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("adhoc mode, fw_state:%x", get_fwstate(pmlmepriv)));
}
-
+
//s5. Cancle assoc_timer
_cancel_timer(&pmlmepriv->assoc_timer, &timer_cancelled);
-
+
RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("Cancle assoc_timer\n"));
-
+
}
else
{
@@ -1847,16 +2022,21 @@ ignore_joinbss_callback:
void rtw_joinbss_event_callback(_adapter *adapter, u8 *pbuf)
{
struct wlan_network *pnetwork = (struct wlan_network *)pbuf;
- struct xmit_priv *pxmitpriv = &adapter->xmitpriv;
_func_enter_;
mlmeext_joinbss_event_callback(adapter, pnetwork->join_res);
- //Set Value to 1 to xmit data frame.
- ATOMIC_SET(&pxmitpriv->HwRdyXmitData, 1);
rtw_os_xmit_schedule(adapter);
+#ifdef CONFIG_CONCURRENT_MODE
+ rtw_os_xmit_schedule(adapter->pbuddy_adapter);
+#endif
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_resume_xmit(adapter);
+#endif
+
_func_exit_;
}
@@ -1871,8 +2051,7 @@ void rtw_stassoc_event_callback(_adapter *adapter, u8 *pbuf)
_func_enter_;
- // to do:
- if(rtw_access_ctrl(&adapter->acl_list, pstassoc->macaddr) == _FALSE)
+ if(rtw_access_ctrl(adapter, pstassoc->macaddr) == _FALSE)
return;
#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
@@ -1882,7 +2061,9 @@ _func_enter_;
if(psta)
{
#ifdef CONFIG_IOCTL_CFG80211
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+#ifdef COMPAT_KERNEL_RELEASE
+
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
u8 *passoc_req = NULL;
u32 assoc_req_len;
@@ -1895,7 +2076,7 @@ _func_enter_;
assoc_req_len = psta->assoc_req_len;
_rtw_memcpy(passoc_req, psta->passoc_req, assoc_req_len);
- _rtw_mfree(psta->passoc_req , psta->assoc_req_len);
+ rtw_mfree(psta->passoc_req , psta->assoc_req_len);
psta->passoc_req = NULL;
psta->assoc_req_len = 0;
}
@@ -1906,14 +2087,14 @@ _func_enter_;
{
rtw_cfg80211_indicate_sta_assoc(adapter, passoc_req, assoc_req_len);
- _rtw_mfree(passoc_req, assoc_req_len);
+ rtw_mfree(passoc_req, assoc_req_len);
}
-#endif //LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
-#endif //CONFIG_IOCTL_CFG80211
+#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+#endif //CONFIG_IOCTL_CFG80211
- //bss_cap_update(adapter, psta);
+ //bss_cap_update_on_sta_join(adapter, psta);
//sta_info_update(adapter, psta);
- ap_sta_info_defer_update(adapter, psta);
+ ap_sta_info_defer_update(adapter, psta);
}
goto exit;
@@ -1992,15 +2173,19 @@ void rtw_stadel_event_callback(_adapter *adapter, u8 *pbuf)
_func_enter_;
- if(check_fwstate(pmlmepriv, WIFI_AP_STATE))
- {
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE))
+ {
#ifdef CONFIG_IOCTL_CFG80211
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+#ifdef COMPAT_KERNEL_RELEASE
+
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
rtw_cfg80211_indicate_sta_disassoc(adapter, pstadel->macaddr, *(u16*)pstadel->rsvd);
#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
#endif //CONFIG_IOCTL_CFG80211
+
return;
- }
+ }
+
mlmeext_sta_del_event_callback(adapter);
@@ -2008,17 +2193,19 @@ _func_enter_;
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) )
{
-
#ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming > 0)
- pmlmepriv->to_roaming--; // this stadel_event is caused by roaming, decrease to_roaming
- else if(pmlmepriv->to_roaming ==0)
- pmlmepriv->to_roaming= adapter->registrypriv.max_roaming_times;
-
- if(*((unsigned short *)(pstadel->rsvd)) !=65535 ) //if stadel_event isn't caused by no rx
- pmlmepriv->to_roaming=0; // don't roam
- #endif //CONFIG_LAYER2_ROAMING
+ if (rtw_to_roaming(adapter) > 0)
+ pmlmepriv->to_roaming--; /* this stadel_event is caused by roaming, decrease to_roaming */
+ else if (rtw_to_roaming(adapter) == 0)
+ rtw_set_roaming(adapter, adapter->registrypriv.max_roaming_times);
+#ifdef CONFIG_INTEL_WIDI
+ if(adapter->mlmepriv.widi_state != INTEL_WIDI_STATE_CONNECTED)
+#endif // CONFIG_INTEL_WIDI
+ if(*((unsigned short *)(pstadel->rsvd)) != WLAN_REASON_EXPIRATION_CHK)
+ rtw_set_roaming(adapter, 0); /* don't roam */
+ #endif
+ rtw_free_uc_swdec_pending_queue(adapter);
rtw_free_assoc_resources(adapter, 1);
rtw_indicate_disconnect(adapter);
@@ -2030,10 +2217,13 @@ _func_enter_;
rtw_free_network_nolock(pmlmepriv, pwlan);
}
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
- #ifdef CONFIG_LAYER2_ROAMING
+
_rtw_roaming(adapter, tgt_network);
- #endif //CONFIG_LAYER2_ROAMING
+#ifdef CONFIG_INTEL_WIDI
+ if (!rtw_to_roaming(adapter))
+ process_intel_widi_disconnect(adapter, 1);
+#endif // CONFIG_INTEL_WIDI
}
if ( check_fwstate(pmlmepriv,WIFI_ADHOC_MASTER_STATE) ||
@@ -2096,16 +2286,19 @@ _func_exit_;
}
-void rtw_cpwm_event_callback(_adapter *adapter, u8 *pbuf)
+void rtw_cpwm_event_callback(PADAPTER padapter, u8 *pbuf)
{
- struct reportpwrstate_parm *preportpwrstate = (struct reportpwrstate_parm *)pbuf;
+#ifdef CONFIG_LPS_LCLK
+ struct reportpwrstate_parm *preportpwrstate;
+#endif
_func_enter_;
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_cpwm_event_callback !!!\n"));
-#ifdef CONFIG_PWRCTRL
- preportpwrstate->state |= (u8)(adapter->pwrctrlpriv.cpwm_tog + 0x80);
- cpwm_int_hdl(adapter, preportpwrstate);
+#ifdef CONFIG_LPS_LCLK
+ preportpwrstate = (struct reportpwrstate_parm*)pbuf;
+ preportpwrstate->state |= (u8)(padapter->pwrctrlpriv.cpwm_tog + 0x80);
+ cpwm_int_hdl(padapter, preportpwrstate);
#endif
_func_exit_;
@@ -2120,7 +2313,9 @@ void _rtw_join_timeout_handler (_adapter *adapter)
{
_irqL irqL;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
+#ifdef CONFIG_LAYER2_ROAMING
int do_join_r;
+#endif //CONFIG_LAYER2_ROAMING
#if 0
if (adapter->bDriverStopped == _TRUE){
@@ -2130,6 +2325,24 @@ void _rtw_join_timeout_handler (_adapter *adapter)
#endif
_func_enter_;
+#ifdef PLATFORM_FREEBSD
+ rtw_mtx_lock(NULL);
+ if (callout_pending(&adapter->mlmepriv.assoc_timer.callout)) {
+ /* callout was reset */
+ //mtx_unlock(&sc->sc_mtx);
+ rtw_mtx_unlock(NULL);
+ return;
+ }
+ if (!callout_active(&adapter->mlmepriv.assoc_timer.callout)) {
+ /* callout was stopped */
+ //mtx_unlock(&sc->sc_mtx);
+ rtw_mtx_unlock(NULL);
+ return;
+ }
+ callout_deactivate(&adapter->mlmepriv.assoc_timer.callout);
+
+
+#endif
DBG_871X("%s, fw_state=%x\n", __FUNCTION__, get_fwstate(pmlmepriv));
@@ -2140,10 +2353,10 @@ _func_enter_;
_enter_critical_bh(&pmlmepriv->lock, &irqL);
#ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming>0) { // join timeout caused by roaming
+ if (rtw_to_roaming(adapter) > 0) { /* join timeout caused by roaming */
while(1) {
pmlmepriv->to_roaming--;
- if(pmlmepriv->to_roaming!=0) { //try another ,
+ if (rtw_to_roaming(adapter) != 0) { /* try another */
DBG_871X("%s try another roaming\n", __FUNCTION__);
if( _SUCCESS!=(do_join_r=rtw_do_join(adapter)) ) {
DBG_871X("%s roaming do_join return %d\n", __FUNCTION__ ,do_join_r);
@@ -2151,6 +2364,14 @@ _func_enter_;
}
break;
} else {
+#ifdef CONFIG_INTEL_WIDI
+ if(adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING)
+ {
+ _rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
+ intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL);
+ DBG_871X("change to widi listen\n");
+ }
+#endif // CONFIG_INTEL_WIDI
DBG_871X("%s We've try roaming but fail\n", __FUNCTION__);
rtw_indicate_disconnect(adapter);
break;
@@ -2162,6 +2383,12 @@ _func_enter_;
{
rtw_indicate_disconnect(adapter);
free_scanqueue(pmlmepriv);//???
+
+#ifdef CONFIG_IOCTL_CFG80211
+ //indicate disconnect for the case that join_timeout and check_fwstate != FW_LINKED
+ rtw_cfg80211_indicate_disconnect(adapter);
+#endif //CONFIG_IOCTL_CFG80211
+
}
_exit_critical_bh(&pmlmepriv->lock, &irqL);
@@ -2170,12 +2397,14 @@ _func_enter_;
#ifdef CONFIG_DRVEXT_MODULE_WSC
drvext_assoc_fail_indicate(&adapter->drvextpriv);
#endif
+#ifdef PLATFORM_FREEBSD
+ rtw_mtx_unlock(NULL);
+#endif
_func_exit_;
}
-
/*
* rtw_scan_timeout_handler - Timeout/Faliure handler for CMD SiteSurvey
* @adapter: pointer to _adapter structure
@@ -2185,18 +2414,16 @@ void rtw_scan_timeout_handler (_adapter *adapter)
_irqL irqL;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
- DBG_871X("%s, fw_state=%x\n", __FUNCTION__, get_fwstate(pmlmepriv));
+ DBG_871X(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
- if(adapter->bDriverStopped ||adapter->bSurpriseRemoved)
- return;
-
_enter_critical_bh(&pmlmepriv->lock, &irqL);
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
-
+
_exit_critical_bh(&pmlmepriv->lock, &irqL);
rtw_indicate_scan_done(adapter, _TRUE);
+
}
static void rtw_auto_scan_handler(_adapter *padapter)
@@ -2210,26 +2437,35 @@ static void rtw_auto_scan_handler(_adapter *padapter)
pmlmepriv->scan_interval--;
if(pmlmepriv->scan_interval==0)
{
- if( pwrctrlpriv->power_mgnt != PS_MODE_ACTIVE )
- return;
-
/*
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
{
- DBG_8192C("exit %s when _FW_UNDER_SURVEY|_FW_UNDER_LINKING -> \n", __FUNCTION__);
+ DBG_871X("exit %s when _FW_UNDER_SURVEY|_FW_UNDER_LINKING -> \n", __FUNCTION__);
return;
}
if(pmlmepriv->sitesurveyctrl.traffic_busy == _TRUE)
{
- DBG_8192C("%s exit cause traffic_busy(%x)\n",__FUNCTION__, pmlmepriv->sitesurveyctrl.traffic_busy);
+ DBG_871X("%s exit cause traffic_busy(%x)\n",__FUNCTION__, pmlmepriv->sitesurveyctrl.traffic_busy);
return;
}
*/
+#ifdef CONFIG_CONCURRENT_MODE
+ if (rtw_buddy_adapter_up(padapter))
+ {
+ if ((check_buddy_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE) ||
+ (padapter->pbuddy_adapter->mlmepriv.LinkDetectInfo.bBusyTraffic == _TRUE))
+ {
+ DBG_871X("%s, but buddy_intf is under scanning or linking or BusyTraffic\n", __FUNCTION__);
+ return;
+ }
+ }
+#endif
+
DBG_871X("%s\n", __FUNCTION__);
- rtw_set_802_11_bssid_list_scan(padapter);
+ rtw_set_802_11_bssid_list_scan(padapter, NULL, 0);
pmlmepriv->scan_interval = SCAN_INTERVAL;// 30*2 sec = 60sec
@@ -2245,6 +2481,12 @@ void rtw_dynamic_check_timer_handlder(_adapter *adapter)
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
#endif //CONFIG_AP_MODE
struct registry_priv *pregistrypriv = &adapter->registrypriv;
+#ifdef CONFIG_CONCURRENT_MODE
+ PADAPTER pbuddy_adapter = adapter->pbuddy_adapter;
+#endif
+
+ if(!adapter)
+ return;
if(adapter->hw_init_completed == _FALSE)
return;
@@ -2252,8 +2494,21 @@ void rtw_dynamic_check_timer_handlder(_adapter *adapter)
if ((adapter->bDriverStopped == _TRUE)||(adapter->bSurpriseRemoved== _TRUE))
return;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pbuddy_adapter)
+ {
+ if(adapter->net_closed == _TRUE && pbuddy_adapter->net_closed == _TRUE)
+ {
+ return;
+ }
+ }
+ else
+#endif //CONFIG_CONCURRENT_MODE
if(adapter->net_closed == _TRUE)
+ {
return;
+ }
rtw_dynamic_chk_wk_cmd(adapter);
@@ -2269,12 +2524,14 @@ void rtw_dynamic_check_timer_handlder(_adapter *adapter)
}
}
+#ifndef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
#ifdef CONFIG_AP_MODE
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
expire_timeout_chk(adapter);
}
#endif
+#endif //!CONFIG_ACTIVE_KEEP_ALIVE_CHECK
#ifdef CONFIG_BR_EXT
@@ -2313,27 +2570,58 @@ void rtw_dynamic_check_timer_handlder(_adapter *adapter)
#ifdef CONFIG_SET_SCAN_DENY_TIMER
-void rtw_set_scan_deny_timer_hdl(_adapter *adapter)
+inline bool rtw_is_scan_deny(_adapter *adapter)
{
struct mlme_priv *mlmepriv = &adapter->mlmepriv;
+ return (ATOMIC_READ(&mlmepriv->set_scan_deny) != 0) ? _TRUE : _FALSE;
+}
- //allowed set scan
+inline void rtw_clear_scan_deny(_adapter *adapter)
+{
+ struct mlme_priv *mlmepriv = &adapter->mlmepriv;
ATOMIC_SET(&mlmepriv->set_scan_deny, 0);
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(adapter));
}
-void rtw_set_scan_deny(struct mlme_priv *mlmepriv, u32 ms)
+void rtw_set_scan_deny_timer_hdl(_adapter *adapter)
{
+ rtw_clear_scan_deny(adapter);
+}
+
+void rtw_set_scan_deny(_adapter *adapter, u32 ms)
+{
+ struct mlme_priv *mlmepriv = &adapter->mlmepriv;
+#ifdef CONFIG_CONCURRENT_MODE
+ struct mlme_priv *b_mlmepriv;
+#endif
+
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(adapter));
ATOMIC_SET(&mlmepriv->set_scan_deny, 1);
_set_timer(&mlmepriv->set_scan_deny_timer, ms);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (!adapter->pbuddy_adapter)
+ return;
+
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(adapter->pbuddy_adapter));
+ b_mlmepriv = &adapter->pbuddy_adapter->mlmepriv;
+ ATOMIC_SET(&b_mlmepriv->set_scan_deny, 1);
+ _set_timer(&b_mlmepriv->set_scan_deny_timer, ms);
+#endif
+
}
#endif
-
#if defined(IEEE80211_SCAN_RESULT_EXPIRE)
#define RTW_SCAN_RESULT_EXPIRE IEEE80211_SCAN_RESULT_EXPIRE/HZ*1000 -1000 //3000 -1000
#else
#define RTW_SCAN_RESULT_EXPIRE 2000
#endif
+
+#ifndef PLATFORM_FREEBSD
/*
* Select a new join candidate from the original @param candidate and @param competitor
* @return _TRUE: candidate is updated
@@ -2364,7 +2652,7 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
goto exit;
#ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming) {
+ if(rtw_to_roaming(adapter) > 0) {
if( rtw_get_passing_time_ms((u32)competitor->last_scanned) >= RTW_SCAN_RESULT_EXPIRE
|| is_same_ess(&competitor->network, &pmlmepriv->cur_network.network) == _FALSE
)
@@ -2393,7 +2681,7 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
}
} else
#ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming) { // roaming
+ if(rtw_to_roaming(adapter)) { // roaming
if( (*candidate == NULL ||(*candidate)->network.Rssi<competitor->network.Rssi )
&& is_same_ess(&competitor->network, &pmlmepriv->cur_network.network)
//&&(!is_same_network(&competitor->network, &pmlmepriv->cur_network.network))
@@ -2423,14 +2711,15 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
#ifdef CONFIG_LAYER2_ROAMING
"[to_roaming:%u] "
#endif
- "new candidate: %s("MAC_FMT") rssi:%d\n",
+ "new candidate: %s("MAC_FMT", ch%u) rssi:%d\n",
pmlmepriv->assoc_by_bssid,
pmlmepriv->assoc_ssid.Ssid,
#ifdef CONFIG_LAYER2_ROAMING
- pmlmepriv->to_roaming,
+ rtw_to_roaming(adapter),
#endif
(*candidate)->network.Ssid.Ssid,
MAC_ARG((*candidate)->network.MacAddress),
+ (*candidate)->network.Configuration.DSConfig,
(int)(*candidate)->network.Rssi
);
}
@@ -2439,7 +2728,6 @@ exit:
return updated;
}
-
/*
Calling context:
The caller of the sub-routine will be in critical section...
@@ -2450,7 +2738,7 @@ pmlmepriv->lock
*/
-#if 1
+
int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv )
{
_irqL irqL;
@@ -2494,8 +2782,9 @@ _func_enter_;
ret = _FAIL;
goto exit;
} else {
- DBG_871X("%s: candidate: %s("MAC_FMT")\n", __FUNCTION__,
- candidate->network.Ssid.Ssid, MAC_ARG(candidate->network.MacAddress));;
+ DBG_871X("%s: candidate: %s("MAC_FMT", ch:%u)\n", __FUNCTION__,
+ candidate->network.Ssid.Ssid, MAC_ARG(candidate->network.MacAddress),
+ candidate->network.Configuration.DSConfig);
}
@@ -2517,40 +2806,42 @@ _func_enter_;
else
#endif
{
- rtw_disassoc_cmd(adapter);
+ rtw_disassoc_cmd(adapter, 0, _TRUE);
rtw_indicate_disconnect(adapter);
rtw_free_assoc_resources(adapter, 0);
}
}
#ifdef CONFIG_ANTENNA_DIVERSITY
- adapter->HalFunc.GetHalDefVarHandler(adapter, HAL_DEF_IS_SUPPORT_ANT_DIV, &(bSupportAntDiv));
+ rtw_hal_get_def_var(adapter, HAL_DEF_IS_SUPPORT_ANT_DIV, &(bSupportAntDiv));
if(_TRUE == bSupportAntDiv)
{
u8 CurrentAntenna;
- adapter->HalFunc.GetHalDefVarHandler(adapter, HAL_DEF_CURRENT_ANTENNA, &(CurrentAntenna));
- DBG_8192C("#### Opt_Ant_(%s) , cur_Ant(%s)\n",
+ rtw_hal_get_def_var(adapter, HAL_DEF_CURRENT_ANTENNA, &(CurrentAntenna));
+ DBG_871X("#### Opt_Ant_(%s) , cur_Ant(%s)\n",
(2==candidate->network.PhyInfo.Optimum_antenna)?"A":"B",
(2==CurrentAntenna)?"A":"B"
);
}
#endif
-
+ set_fwstate(pmlmepriv, _FW_UNDER_LINKING);
ret = rtw_joinbss_cmd(adapter, candidate);
exit:
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
_func_exit_;
return ret;
-
}
#else
int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv )
{
_irqL irqL;
_list *phead;
+#ifdef CONFIG_ANTENNA_DIVERSITY
u8 CurrentAntenna;
+#endif
unsigned char *dst_ssid, *src_ssid;
_adapter *adapter;
_queue *queue = &(pmlmepriv->scanned_queue);
@@ -2607,7 +2898,7 @@ _func_enter_;
}
else
{
- rtw_disassoc_cmd(adapter);
+ rtw_disassoc_cmd(adapter, 0, _TRUE);
rtw_indicate_disconnect(adapter);
rtw_free_assoc_resources(adapter, 0);
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
@@ -2623,11 +2914,12 @@ _func_enter_;
}
- } else if (pmlmepriv->assoc_ssid.SsidLength == 0) {
+ } else if (pmlmepriv->assoc_ssid.SsidLength == 0) {
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
goto ask_for_joinbss;//anyway, join first selected(dequeued) pnetwork if ssid_len=0
#ifdef CONFIG_LAYER2_ROAMING
- } else if(pmlmepriv->to_roaming>0) {
+ } else if (rtw_to_roaming(adapter) > 0) {
if( (roaming_candidate == NULL ||roaming_candidate->network.Rssi<pnetwork->network.Rssi )
&& is_same_ess(&pnetwork->network, &pmlmepriv->cur_network.network)
@@ -2651,8 +2943,8 @@ _func_enter_;
{
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("dst_ssid=%s, src_ssid=%s \n", dst_ssid, src_ssid));
#ifdef CONFIG_ANTENNA_DIVERSITY
- adapter->HalFunc.GetHalDefVarHandler(adapter, HAL_DEF_CURRENT_ANTENNA, &(CurrentAntenna));
- DBG_8192C("#### dst_ssid=(%s) Opt_Ant_(%s) , cur_Ant(%s)\n", dst_ssid,
+ rtw_hal_get_def_var(adapter, HAL_DEF_CURRENT_ANTENNA, &(CurrentAntenna));
+ DBG_871X("#### dst_ssid=(%s) Opt_Ant_(%s) , cur_Ant(%s)\n", dst_ssid,
(2==pnetwork->network.PhyInfo.Optimum_antenna)?"A":"B",
(2==CurrentAntenna)?"A":"B");
#endif
@@ -2685,7 +2977,7 @@ _func_enter_;
else
#endif
{
- rtw_disassoc_cmd(adapter);
+ rtw_disassoc_cmd(adapter, 0, _TRUE);
//rtw_indicate_disconnect(adapter);//
rtw_free_assoc_resources(adapter, 0);
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
@@ -2706,7 +2998,7 @@ _func_enter_;
}
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
#ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming>0 && roaming_candidate ){
+ if(rtw_to_roaming(adapter) > 0 && roaming_candidate ){
pnetwork=roaming_candidate;
DBG_871X("select_and_join_from_scanned_queue: roaming_candidate: %s("MAC_FMT")\n",
pnetwork->network.Ssid.Ssid, MAC_ARG(pnetwork->network.MacAddress));
@@ -2735,7 +3027,7 @@ _func_exit_;
return rtw_joinbss_cmd(adapter, pnetwork);
}
-#endif
+#endif //PLATFORM_FREEBSD
sint rtw_set_auth(_adapter * adapter,struct security_priv *psecuritypriv)
@@ -2821,15 +3113,10 @@ _func_enter_;
}
psetkeyparm->keyid = (u8)keyid;//0~3
psetkeyparm->set_tx = set_tx;
- pmlmepriv->key_mask |= BIT(psetkeyparm->keyid);
-#ifdef CONFIG_AUTOSUSPEND
- if( _TRUE == adapter->pwrctrlpriv.bInternalAutoSuspend)
- {
- adapter->pwrctrlpriv.wepkeymask = pmlmepriv->key_mask;
- DBG_8192C("....AutoSuspend pwrctrlpriv.wepkeymask(%x)\n",adapter->pwrctrlpriv.wepkeymask);
- }
-#endif
- DBG_8192C("==> rtw_set_key algorithm(%x),keyid(%x),key_mask(%x)\n",psetkeyparm->algorithm,psetkeyparm->keyid,pmlmepriv->key_mask);
+ if (is_wep_enc(psetkeyparm->algorithm))
+ psecuritypriv->key_mask |= BIT(psetkeyparm->keyid);
+
+ DBG_871X("==> rtw_set_key algorithm(%x),keyid(%x),key_mask(%x)\n",psetkeyparm->algorithm,psetkeyparm->keyid, psecuritypriv->key_mask);
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=%d psetkeyparm->keyid=(u8)keyid=%d \n",psetkeyparm->algorithm, keyid));
switch(psetkeyparm->algorithm){
@@ -3016,37 +3303,37 @@ _func_enter_;
//copy fixed ie only
_rtw_memcpy(out_ie, in_ie,12);
ielength=12;
-
if((ndisauthmode==Ndis802_11AuthModeWPA)||(ndisauthmode==Ndis802_11AuthModeWPAPSK))
authmode=_WPA_IE_ID_;
if((ndisauthmode==Ndis802_11AuthModeWPA2)||(ndisauthmode==Ndis802_11AuthModeWPA2PSK))
authmode=_WPA2_IE_ID_;
- if(psecuritypriv->wps_phase == _TRUE)
+ if(check_fwstate(pmlmepriv, WIFI_UNDER_WPS))
{
- //DBG_871X("wps_phase == _TRUE\n");
-
_rtw_memcpy(out_ie+ielength, psecuritypriv->wps_ie, psecuritypriv->wps_ie_len);
ielength += psecuritypriv->wps_ie_len;
- psecuritypriv->wps_phase = _FALSE;
-
}
- else if((ndisauthmode==Ndis802_11AuthModeWPA)||(ndisauthmode==Ndis802_11AuthModeWPAPSK)||(ndisauthmode==Ndis802_11AuthModeWPA2)||(ndisauthmode==Ndis802_11AuthModeWPA2PSK))
+ else if((authmode==_WPA_IE_ID_)||(authmode==_WPA2_IE_ID_))
{
//copy RSN or SSN
_rtw_memcpy(&out_ie[ielength], &psecuritypriv->supplicant_ie[0], psecuritypriv->supplicant_ie[1]+2);
+ /* debug for CONFIG_IEEE80211W
+ {
+ int jj;
+ printk("supplicant_ie_length=%d &&&&&&&&&&&&&&&&&&&\n", psecuritypriv->supplicant_ie[1]+2);
+ for(jj=0; jj < psecuritypriv->supplicant_ie[1]+2; jj++)
+ printk(" %02x ", psecuritypriv->supplicant_ie[jj]);
+ printk("\n");
+ }*/
ielength+=psecuritypriv->supplicant_ie[1]+2;
-
rtw_report_sec_ie(adapter, authmode, psecuritypriv->supplicant_ie);
#ifdef CONFIG_DRVEXT_MODULE
drvext_report_sec_ie(&adapter->drvextpriv, authmode, sec_ie);
#endif
-
-
-
}
+
iEntry = SecIsInPMKIDList(adapter, pmlmepriv->assoc_bssid);
if(iEntry<0)
{
@@ -3097,7 +3384,7 @@ void rtw_update_registrypriv_dev_network(_adapter* adapter)
WLAN_BSSID_EX *pdev_network = &pregistrypriv->dev_network;
struct security_priv* psecuritypriv = &adapter->securitypriv;
struct wlan_network *cur_network = &adapter->mlmepriv.cur_network;
- struct xmit_priv *pxmitpriv = &adapter->xmitpriv;
+ //struct xmit_priv *pxmitpriv = &adapter->xmitpriv;
_func_enter_;
@@ -3169,9 +3456,6 @@ _func_exit_;
void rtw_get_encrypt_decrypt_from_registrypriv(_adapter* adapter)
{
- u16 wpaconfig=0;
- struct registry_priv* pregistrypriv = &adapter->registrypriv;
- struct security_priv* psecuritypriv= &adapter->securitypriv;
_func_enter_;
@@ -3211,12 +3495,12 @@ void rtw_joinbss_reset(_adapter *padapter)
threshold = 1;
else
threshold = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
+ rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
}
else
{
threshold = 1;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
+ rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
}
#endif
@@ -3228,7 +3512,7 @@ void rtw_joinbss_reset(_adapter *padapter)
#ifdef CONFIG_80211N_HT
//the fucntion is >= passive_level
-unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, uint *pout_len)
+unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, uint *pout_len, u8 channel)
{
u32 ielen, out_len;
unsigned char *p, *pframe;
@@ -3237,7 +3521,8 @@ unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, ui
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct qos_priv *pqospriv= &pmlmepriv->qospriv;
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
-
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ u8 cbw40_enable = 0;
phtpriv->ht_option = _FALSE;
@@ -3258,19 +3543,31 @@ unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, ui
_rtw_memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
- ht_capie.cap_info = IEEE80211_HT_CAP_SUP_WIDTH |IEEE80211_HT_CAP_SGI_20 |
- IEEE80211_HT_CAP_SGI_40 | IEEE80211_HT_CAP_TX_STBC |
+ ht_capie.cap_info = IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_TX_STBC |
IEEE80211_HT_CAP_DSSSCCK40;
+ //if insert module set only support 20MHZ, don't add the 40MHZ and SGI_40
+ if( channel > 14 )
+ {
+ if( pregpriv->cbw40_enable & BIT(1) )
+ cbw40_enable = 1;
+ }
+ else
+ if( pregpriv->cbw40_enable & BIT(0) )
+ cbw40_enable = 1;
+
+ if ( cbw40_enable != 0 )
+ ht_capie.cap_info |= IEEE80211_HT_CAP_SUP_WIDTH | IEEE80211_HT_CAP_SGI_40;
+
{
u32 rx_packet_offset, max_recvbuf_sz;
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_MAX_RECVBUF_SZ, &max_recvbuf_sz);
- if(max_recvbuf_sz-rx_packet_offset>(8191-256)) {
- DBG_871X("%s IEEE80211_HT_CAP_MAX_AMSDU is set\n", __FUNCTION__);
- ht_capie.cap_info = ht_capie.cap_info |IEEE80211_HT_CAP_MAX_AMSDU;
- }
+ rtw_hal_get_def_var(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
+ rtw_hal_get_def_var(padapter, HAL_DEF_MAX_RECVBUF_SZ, &max_recvbuf_sz);
+ //if(max_recvbuf_sz-rx_packet_offset>(8191-256)) {
+ // DBG_871X("%s IEEE80211_HT_CAP_MAX_AMSDU is set\n", __FUNCTION__);
+ // ht_capie.cap_info = ht_capie.cap_info |IEEE80211_HT_CAP_MAX_AMSDU;
+ //}
}
ht_capie.ampdu_params_info = (IEEE80211_HT_CAP_AMPDU_FACTOR&0x03);
@@ -3305,7 +3602,7 @@ unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, ui
}
//the fucntion is > passive_level (in critical_section)
-void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len)
+void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len, u8 channel)
{
u8 *p, max_ampdu_sz;
int len;
@@ -3320,7 +3617,7 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len)
//struct wlan_network *pcur_network = &(pmlmepriv->cur_network);;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
+ u8 cbw40_enable=0;
if(!phtpriv->ht_option)
return;
@@ -3333,11 +3630,12 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len)
//maybe needs check if ap supports rx ampdu.
if((phtpriv->ampdu_enable==_FALSE) &&(pregistrypriv->ampdu_enable==1))
{
- if(pregistrypriv->wifi_spec==1)
+ //In the wifi cert. test, the test Lab should turn off the AP's RX AMPDU. client doen't need to close the TX AMPDU
+ /*if(pregistrypriv->wifi_spec==1)
{
phtpriv->ampdu_enable = _FALSE;
}
- else
+ else*/
{
phtpriv->ampdu_enable = _TRUE;
}
@@ -3357,13 +3655,13 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len)
max_ampdu_sz = (pht_capie->ampdu_params_info & IEEE80211_HT_CAP_AMPDU_FACTOR);
max_ampdu_sz = 1 << (max_ampdu_sz+3); // max_ampdu_sz (kbytes);
- //DBG_8192C("rtw_update_ht_cap(): max_ampdu_sz=%d\n", max_ampdu_sz);
+ //DBG_871X("rtw_update_ht_cap(): max_ampdu_sz=%d\n", max_ampdu_sz);
phtpriv->rx_ampdu_maxlen = max_ampdu_sz;
}
-
- len=0;
+
+ len=0;
p = rtw_get_ie(pie+sizeof (NDIS_802_11_FIXED_IEs), _HT_ADD_INFO_IE_, &len, ie_len-sizeof (NDIS_802_11_FIXED_IEs));
if(p && len>0)
{
@@ -3371,12 +3669,56 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len)
//todo:
}
+ if( channel > 14 )
+ {
+ if( pregistrypriv->cbw40_enable & BIT(1) )
+ cbw40_enable = 1;
+ }
+ else
+ if( pregistrypriv->cbw40_enable & BIT(0) )
+ cbw40_enable = 1;
+
//update cur_bwmode & cur_ch_offset
- if ((pregistrypriv->cbw40_enable) &&
- (pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info & BIT(1)) &&
+ if ((cbw40_enable) &&
+ (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & BIT(1)) &&
(pmlmeinfo->HT_info.infos[0] & BIT(2)))
{
+ int i;
+ u8 rf_type;
+
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+
+ //update the MCS rates
+ for (i = 0; i < 16; i++)
+ {
+ if((rf_type == RF_1T1R) || (rf_type == RF_1T2R))
+ {
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+ }
+ else
+ {
+ #ifdef CONFIG_DISABLE_MCS13TO15
+ if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40 && pregistrypriv->wifi_spec != 1 )
+ {
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R_MCS13TO15_OFF[i];
+ }
+ else
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
+ #else
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
+ #endif //CONFIG_DISABLE_MCS13TO15
+ }
+ #ifdef RTL8192C_RECONFIG_TO_1T1R
+ {
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+ }
+ #endif
+
+ if(pregistrypriv->special_rf_path)
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+
+ }
//switch to the 40M Hz mode accoring to the AP
pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
switch ((pmlmeinfo->HT_info.infos[0] & 0x3))
@@ -3392,13 +3734,13 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len)
default:
pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
break;
- }
+ }
}
- //
+ //
// Config SM Power Save setting
//
- pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info & 0x0C) >> 2;
+ pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & 0x0C) >> 2;
if(pmlmeinfo->SM_PS == WLAN_HT_CAP_SM_PS_STATIC)
{
/*u8 i;
@@ -3467,7 +3809,6 @@ void rtw_issue_addbareq_cmd(_adapter *padapter, struct xmit_frame *pxmitframe)
struct sta_info *psta=NULL;
struct ht_priv *phtpriv;
struct pkt_attrib *pattrib =&pxmitframe->attrib;
- struct sta_priv *pstapriv = &padapter->stapriv;
s32 bmcst = IS_MCAST(pattrib->ra);
if(bmcst || (padapter->mlmepriv.LinkDetectInfo.bTxBusyTraffic == _FALSE))
@@ -3478,10 +3819,23 @@ void rtw_issue_addbareq_cmd(_adapter *padapter, struct xmit_frame *pxmitframe)
if (pattrib->psta)
psta = pattrib->psta;
else
+ {
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
+ }
if(psta==NULL)
+ {
+ DBG_871X("%s, psta==NUL\n", __func__);
return;
+ }
+
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
+ return;
+ }
+
phtpriv = &psta->htpriv;
@@ -3503,6 +3857,18 @@ void rtw_issue_addbareq_cmd(_adapter *padapter, struct xmit_frame *pxmitframe)
#endif
#ifdef CONFIG_LAYER2_ROAMING
+inline void rtw_set_roaming(_adapter *adapter, u8 to_roaming)
+{
+ if (to_roaming == 0)
+ adapter->mlmepriv.to_join = _FALSE;
+ adapter->mlmepriv.to_roaming = to_roaming;
+}
+
+inline u8 rtw_to_roaming(_adapter *adapter)
+{
+ return adapter->mlmepriv.to_roaming;
+}
+
void rtw_roaming(_adapter *padapter, struct wlan_network *tgt_network)
{
_irqL irqL;
@@ -3524,7 +3890,7 @@ void _rtw_roaming(_adapter *padapter, struct wlan_network *tgt_network)
else
pnetwork = &pmlmepriv->cur_network;
- if(0 < pmlmepriv->to_roaming) {
+ if(0 < rtw_to_roaming(padapter)) {
DBG_871X("roaming from %s("MAC_FMT"), length:%d\n",
pnetwork->network.Ssid.Ssid, MAC_ARG(pnetwork->network.MacAddress),
pnetwork->network.Ssid.SsidLength);
@@ -3539,7 +3905,7 @@ void _rtw_roaming(_adapter *padapter, struct wlan_network *tgt_network)
DBG_871X("roaming do_join return %d\n", do_join_r);
pmlmepriv->to_roaming--;
- if(0< pmlmepriv->to_roaming) {
+ if(0< rtw_to_roaming(padapter)) {
continue;
} else {
DBG_871X("%s(%d) -to roaming fail, indicate_disconnect\n", __FUNCTION__,__LINE__);
@@ -3553,3 +3919,49 @@ void _rtw_roaming(_adapter *padapter, struct wlan_network *tgt_network)
}
#endif
+#ifdef CONFIG_CONCURRENT_MODE
+sint rtw_buddy_adapter_up(_adapter *padapter)
+{
+ sint res = _FALSE;
+
+ if(padapter == NULL)
+ return res;
+
+
+ if(padapter->pbuddy_adapter == NULL)
+ {
+ res = _FALSE;
+ }
+ else if( (padapter->pbuddy_adapter->bDriverStopped) || (padapter->pbuddy_adapter->bSurpriseRemoved) ||
+ (padapter->pbuddy_adapter->bup == _FALSE) || (padapter->pbuddy_adapter->hw_init_completed == _FALSE))
+ {
+ res = _FALSE;
+ }
+ else
+ {
+ res = _TRUE;
+ }
+
+ return res;
+
+}
+
+sint check_buddy_fwstate(_adapter *padapter, sint state)
+{
+ if(padapter == NULL)
+ return _FALSE;
+
+ if(padapter->pbuddy_adapter == NULL)
+ return _FALSE;
+
+ if ((state == WIFI_FW_NULL_STATE) &&
+ (padapter->pbuddy_adapter->mlmepriv.fw_state == WIFI_FW_NULL_STATE))
+ return _TRUE;
+
+ if (padapter->pbuddy_adapter->mlmepriv.fw_state & state)
+ return _TRUE;
+
+ return _FALSE;
+}
+#endif //CONFIG_CONCURRENT_MODE
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_mlme_ext.c b/drivers/net/wireless/rtl8192cu/core/rtw_mlme_ext.c
index e1e496d..d29a20c 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_mlme_ext.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_mlme_ext.c
@@ -1,6 +1,6 @@
/******************************************************************************
*
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
@@ -73,24 +73,33 @@ struct mlme_handler mlme_ap_tbl[]={
#endif
struct action_handler OnAction_tbl[]={
- {RTW_WLAN_CATEGORY_SPECTRUM_MGMT, "ACTION_SPECTRUM_MGMT", &DoReserved},
+ {RTW_WLAN_CATEGORY_SPECTRUM_MGMT, "ACTION_SPECTRUM_MGMT", on_action_spct},
{RTW_WLAN_CATEGORY_QOS, "ACTION_QOS", &OnAction_qos},
{RTW_WLAN_CATEGORY_DLS, "ACTION_DLS", &OnAction_dls},
{RTW_WLAN_CATEGORY_BACK, "ACTION_BACK", &OnAction_back},
- {RTW_WLAN_CATEGORY_PUBLIC, "ACTION_PUBLIC", &OnAction_public},
+ {RTW_WLAN_CATEGORY_PUBLIC, "ACTION_PUBLIC", on_action_public},
{RTW_WLAN_CATEGORY_RADIO_MEASUREMENT, "ACTION_RADIO_MEASUREMENT", &DoReserved},
{RTW_WLAN_CATEGORY_FT, "ACTION_FT", &DoReserved},
{RTW_WLAN_CATEGORY_HT, "ACTION_HT", &OnAction_ht},
+#ifdef CONFIG_IEEE80211W
+ {RTW_WLAN_CATEGORY_SA_QUERY, "ACTION_SA_QUERY", &OnAction_sa_query},
+#else
{RTW_WLAN_CATEGORY_SA_QUERY, "ACTION_SA_QUERY", &DoReserved},
+#endif //CONFIG_IEEE80211W
+ //add for CONFIG_IEEE80211W
+ {RTW_WLAN_CATEGORY_UNPROTECTED_WNM, "ACTION_UNPROTECTED_WNM", &DoReserved},
+ {RTW_WLAN_CATEGORY_SELF_PROTECTED, "ACTION_SELF_PROTECTED", &DoReserved},
{RTW_WLAN_CATEGORY_WMM, "ACTION_WMM", &OnAction_wmm},
{RTW_WLAN_CATEGORY_P2P, "ACTION_P2P", &OnAction_p2p},
};
+u8 null_addr[ETH_ALEN]= {0,0,0,0,0,0};
+
/**************************************************
OUI definitions for the vendor specific IE
***************************************************/
-unsigned char WPA_OUI[] = {0x00, 0x50, 0xf2, 0x01};
+unsigned char RTW_WPA_OUI[] = {0x00, 0x50, 0xf2, 0x01};
unsigned char WMM_OUI[] = {0x00, 0x50, 0xf2, 0x02};
unsigned char WPS_OUI[] = {0x00, 0x50, 0xf2, 0x04};
unsigned char P2P_OUI[] = {0x50,0x6F,0x9A,0x09};
@@ -108,7 +117,8 @@ extern unsigned char REALTEK_96B_IE[];
MCS rate definitions
*********************************************************/
#ifdef CONFIG_DISABLE_MCS13TO15
-unsigned char MCS_rate_2R[16] = {0xff, 0x1f, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
+unsigned char MCS_rate_2R_MCS13TO15_OFF[16] = {0xff, 0x1f, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
+unsigned char MCS_rate_2R[16] = {0xff, 0xff, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
#else //CONFIG_DISABLE_MCS13TO15
unsigned char MCS_rate_2R[16] = {0xff, 0xff, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
#endif //CONFIG_DISABLE_MCS13TO15
@@ -147,6 +157,7 @@ static RT_CHANNEL_PLAN_2G RTW_ChannelPlan2G[RT_CHANNEL_DOMAIN_2G_MAX] = {
{{1,2,3,4,5,6,7,8,9,10,11},11}, // 0x02, RT_CHANNEL_DOMAIN_2G_FCC1
{{1,2,3,4,5,6,7,8,9,10,11,12,13,14},14}, // 0x03, RT_CHANNEL_DOMAIN_2G_MIKK1
{{10,11,12,13},4}, // 0x04, RT_CHANNEL_DOMAIN_2G_ETSI2
+ {{},0}, // 0x05, RT_CHANNEL_DOMAIN_2G_NULL
};
static RT_CHANNEL_PLAN_5G RTW_ChannelPlan5G[RT_CHANNEL_DOMAIN_5G_MAX] = {
@@ -171,6 +182,7 @@ static RT_CHANNEL_PLAN_5G RTW_ChannelPlan5G[RT_CHANNEL_DOMAIN_5G_MAX] = {
//===== Driver self defined for old channel plan Compatible ,Remember to modify if have new channel plan definition =====
{{36,40,44,48,52,56,60,64,100,104,108,112,116,132,136,140,149,153,157,161,165},21}, // 0x11, RT_CHANNEL_DOMAIN_5G_FCC
{{36,40,44,48},4}, // 0x12, RT_CHANNEL_DOMAIN_5G_JAPAN_NO_DFS
+ {{36,40,44,48,149,153,157,161},8}, // 0x13, RT_CHANNEL_DOMAIN_5G_FCC4_NO_DFS
};
static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
@@ -180,8 +192,8 @@ static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
{0x01,0x01}, //0x02, RT_CHANNEL_DOMAIN_ETSI
{0x01,0x00}, //0x03, RT_CHANNEL_DOMAIN_SPAIN
{0x01,0x00}, //0x04, RT_CHANNEL_DOMAIN_FRANCE
- {0x01,0x00}, //0x05, RT_CHANNEL_DOMAIN_MKK
- {0x01,0x00}, //0x06, RT_CHANNEL_DOMAIN_MKK1
+ {0x03,0x00}, //0x05, RT_CHANNEL_DOMAIN_MKK
+ {0x03,0x00}, //0x06, RT_CHANNEL_DOMAIN_MKK1
{0x01,0x09}, //0x07, RT_CHANNEL_DOMAIN_ISRAEL
{0x03,0x09}, //0x08, RT_CHANNEL_DOMAIN_TELEC
{0x03,0x00}, //0x09, RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN
@@ -196,18 +208,17 @@ static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
{0x01,0x12}, //0x12, RT_CHANNEL_DOMAIN_JAPAN_NO_DFS
{0x00,0x04}, //0x13, RT_CHANNEL_DOMAIN_WORLD_WIDE_5G
{0x02,0x10}, //0x14, RT_CHANNEL_DOMAIN_TAIWAN_NO_DFS
- {0x00,0x00}, //0x15,
- {0x00,0x00}, //0x16,
- {0x00,0x00}, //0x17,
- {0x00,0x00}, //0x18,
- {0x00,0x00}, //0x19,
+ {0x00,0x12}, //0x15, RT_CHANNEL_DOMAIN_ETSI_NO_DFS
+ {0x00,0x13}, //0x16, RT_CHANNEL_DOMAIN_KOREA_NO_DFS
+ {0x03,0x12}, //0x17, RT_CHANNEL_DOMAIN_JAPAN_NO_DFS
+ {0x05,0x08}, //0x18, RT_CHANNEL_DOMAIN_PAKISTAN_NO_DFS
+ {0x02,0x08}, //0x19, RT_CHANNEL_DOMAIN_TAIWAN2_NO_DFS
{0x00,0x00}, //0x1A,
{0x00,0x00}, //0x1B,
{0x00,0x00}, //0x1C,
{0x00,0x00}, //0x1D,
{0x00,0x00}, //0x1E,
- {0x00,0x00}, //0x1F,
-
+ {0x05,0x04}, //0x1F, RT_CHANNEL_DOMAIN_WORLD_WIDE_ONLY_5G
//===== 0x20 ~ 0x7F ,New Define =====
{0x00,0x00}, //0x20, RT_CHANNEL_DOMAIN_WORLD_NULL
{0x01,0x00}, //0x21, RT_CHANNEL_DOMAIN_ETSI1_NULL
@@ -244,24 +255,44 @@ static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
{0x02,0x10}, //0x40, RT_CHANNEL_DOMAIN_FCC1_NCC2
};
-static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x02,0x05};
+static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03,0x02}; //use the conbination for max channel numbers
/*
-* Test if the given @param channel_set contains the channel specified by @param channel_num
-* @param channel_set the given channel set
-* @param channel_num the given channel number
-* @return _TRUE or _FALSE
-*/
-int rtw_is_channel_set_contains_channel(RT_CHANNEL_INFO *channel_set, const u32 channel_num)
+ * Search the @param ch in given @param ch_set
+ * @ch_set: the given channel set
+ * @ch: the given channel number
+ *
+ * return the index of channel_num in channel_set, -1 if not found
+ */
+int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch)
{
int i;
- for(i=0;channel_set[i].ChannelNum!=0;i++){
- if(channel_num == channel_set[i].ChannelNum)
- return _TRUE;
+ for(i=0;ch_set[i].ChannelNum!=0;i++){
+ if(ch == ch_set[i].ChannelNum)
+ break;
}
- if(channel_set[i].ChannelNum == 0)
- return _FALSE;
- return _TRUE;
+
+ if(i >= ch_set[i].ChannelNum)
+ return -1;
+ return i;
+}
+
+/*
+ * Check the @param ch is fit with setband setting of @param adapter
+ * @adapter: the given adapter
+ * @ch: the given channel number
+ *
+ * return _TRUE when check valid, _FALSE not valid
+ */
+bool rtw_mlme_band_check(_adapter *adapter, const u32 ch)
+{
+ if (adapter->setband == GHZ24_50 /* 2.4G and 5G */
+ || (adapter->setband == GHZ_24 && ch < 35) /* 2.4G only */
+ || (adapter->setband == GHZ_50 && ch > 35) /* 5G only */
+ ) {
+ return _TRUE;
+ }
+ return _FALSE;
}
/****************************************************************************
@@ -286,20 +317,21 @@ static void init_mlme_ext_priv_value(_adapter* padapter)
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-#ifdef CONFIG_TDLS
- u8 i;
-#endif
-
//unsigned char default_channel_set[MAX_CHANNEL_NUM] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 0};
unsigned char mixed_datarate[NumRates] = {_1M_RATE_, _2M_RATE_, _5M_RATE_, _11M_RATE_, _6M_RATE_,_9M_RATE_, _12M_RATE_, _18M_RATE_, _24M_RATE_, _36M_RATE_, _48M_RATE_, _54M_RATE_, 0xff};
- unsigned char mixed_basicrate[NumRates] ={_1M_RATE_, _2M_RATE_, _5M_RATE_, _11M_RATE_, 0xff,};
+ unsigned char mixed_basicrate[NumRates] ={_1M_RATE_, _2M_RATE_, _5M_RATE_, _11M_RATE_, _6M_RATE_, _12M_RATE_, _24M_RATE_, 0xff,};
ATOMIC_SET(&pmlmeext->event_seq, 0);
pmlmeext->mgnt_seq = 0;//reset to zero when disconnect at client mode
-
+#ifdef CONFIG_IEEE80211W
+ pmlmeext->sa_query_seq = 0;
+ pmlmeext->mgnt_80211w_IPN=0;
+ pmlmeext->mgnt_80211w_IPN_rx=0;
+#endif //CONFIG_IEEE80211W
pmlmeext->cur_channel = padapter->registrypriv.channel;
pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
pmlmeext->retry = 0;
pmlmeext->cur_wireless_mode = padapter->registrypriv.wireless_mode;
@@ -309,10 +341,14 @@ static void init_mlme_ext_priv_value(_adapter* padapter)
_rtw_memcpy(pmlmeext->datarate, mixed_datarate, NumRates);
_rtw_memcpy(pmlmeext->basicrate, mixed_basicrate, NumRates);
+ if(pmlmeext->cur_channel > 14)
+ pmlmeext->tx_rate = IEEE80211_OFDM_RATE_6MB;
+ else
+ pmlmeext->tx_rate = IEEE80211_CCK_RATE_1MB;
+
pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
pmlmeext->sitesurvey_res.channel_idx = 0;
pmlmeext->sitesurvey_res.bss_cnt = 0;
-
pmlmeext->scan_abort = _FALSE;
pmlmeinfo->state = WIFI_FW_NULL_STATE;
@@ -333,6 +369,79 @@ static void init_mlme_ext_priv_value(_adapter* padapter)
pmlmeinfo->preamble_mode = PREAMBLE_AUTO;
pmlmeinfo->dialogToken = 0;
+
+ pmlmeext->action_public_rxseq = 0xffff;
+ pmlmeext->action_public_dialog_token = 0xff;
+}
+
+static int has_channel(RT_CHANNEL_INFO *channel_set,
+ u8 chanset_size,
+ u8 chan) {
+ int i;
+
+ for (i = 0; i < chanset_size; i++) {
+ if (channel_set[i].ChannelNum == chan) {
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static void init_channel_list(_adapter *padapter, RT_CHANNEL_INFO *channel_set,
+ u8 chanset_size,
+ struct p2p_channels *channel_list) {
+
+ struct p2p_oper_class_map op_class[] = {
+ { IEEE80211G, 81, 1, 13, 1, BW20 },
+ { IEEE80211G, 82, 14, 14, 1, BW20 },
+#if 0 /* Do not enable HT40 on 2 GHz */
+ { IEEE80211G, 83, 1, 9, 1, BW40PLUS },
+ { IEEE80211G, 84, 5, 13, 1, BW40MINUS },
+#endif
+ { IEEE80211A, 115, 36, 48, 4, BW20 },
+ { IEEE80211A, 116, 36, 44, 8, BW40PLUS },
+ { IEEE80211A, 117, 40, 48, 8, BW40MINUS },
+ { IEEE80211A, 124, 149, 161, 4, BW20 },
+ { IEEE80211A, 125, 149, 169, 4, BW20 },
+ { IEEE80211A, 126, 149, 157, 8, BW40PLUS },
+ { IEEE80211A, 127, 153, 161, 8, BW40MINUS },
+ { -1, 0, 0, 0, 0, BW20 }
+ };
+
+ int cla, op;
+
+ cla = 0;
+
+ for (op = 0; op_class[op].op_class; op++) {
+ u8 ch;
+ struct p2p_oper_class_map *o = &op_class[op];
+ struct p2p_reg_class *reg = NULL;
+
+ for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) {
+ if (!has_channel(channel_set, chanset_size, ch)) {
+ continue;
+ }
+
+ if ((0 == padapter->registrypriv.ht_enable) && (8 == o->inc))
+ continue;
+
+ if ((0 == (padapter->registrypriv.cbw40_enable & BIT(1))) &&
+ ((BW40MINUS == o->bw) || (BW40PLUS == o->bw)))
+ continue;
+
+ if (reg == NULL) {
+ reg = &channel_list->reg_class[cla];
+ cla++;
+ reg->reg_class = o->op_class;
+ reg->channels = 0;
+ }
+ reg->channel[reg->channels] = ch;
+ reg->channels++;
+ }
+ }
+ channel_list->reg_classes = cla;
+
}
static u8 init_channel_set(_adapter* padapter, u8 ChannelPlan, RT_CHANNEL_INFO *channel_set)
@@ -407,7 +516,7 @@ static u8 init_channel_set(_adapter* padapter, u8 ChannelPlan, RT_CHANNEL_INFO *
if ( channel_set[chanset_size].ChannelNum <= 48
|| channel_set[chanset_size].ChannelNum >= 149 )
{
- if(RT_CHANNEL_DOMAIN_WORLD_WIDE_5G== ChannelPlan)//passive scan for all 5G channels
+ if(RT_CHANNEL_DOMAIN_WORLD_WIDE_5G == ChannelPlan)//passive scan for all 5G channels
channel_set[chanset_size].ScanType = SCAN_PASSIVE;
else
channel_set[chanset_size].ScanType = SCAN_ACTIVE;
@@ -421,7 +530,7 @@ static u8 init_channel_set(_adapter* padapter, u8 ChannelPlan, RT_CHANNEL_INFO *
if ( RTW_ChannelPlan5G[Index5G].Channel[index] <= 48
|| RTW_ChannelPlan5G[Index5G].Channel[index] >= 149 ) {
channel_set[chanset_size].ChannelNum = RTW_ChannelPlan5G[Index5G].Channel[index];
- if(RT_CHANNEL_DOMAIN_WORLD_WIDE_5G== ChannelPlan)//passive scan for all 5G channels
+ if(RT_CHANNEL_DOMAIN_WORLD_WIDE_5G == ChannelPlan)//passive scan for all 5G channels
channel_set[chanset_size].ScanType = SCAN_PASSIVE;
else
channel_set[chanset_size].ScanType = SCAN_ACTIVE;
@@ -460,10 +569,16 @@ int init_mlme_ext_priv(_adapter* padapter)
#endif
pmlmeext->max_chan_nums = init_channel_set(padapter, pmlmepriv->ChannelPlan,pmlmeext->channel_set);
-
+ init_channel_list(padapter, pmlmeext->channel_set, pmlmeext->max_chan_nums, &pmlmeext->channel_list);
+
pmlmeext->chan_scan_time = SURVEY_TO;
pmlmeext->mlmeext_init = _TRUE;
+
+#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+ pmlmeext->active_keep_alive_check = _TRUE;
+#endif
+
return res;
}
@@ -483,69 +598,6 @@ void free_mlme_ext_priv (struct mlme_ext_priv *pmlmeext)
}
}
-#ifdef CONFIG_TDLS
-int rtw_init_tdls_info(_adapter* padapter)
-{
- int res = _SUCCESS;
- int i;
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
-
- _rtw_memset(ptdlsinfo, 0, sizeof(struct tdls_info) );
-
- ptdlsinfo->ap_prohibited = _FALSE;
- ptdlsinfo->setup_state = UN_TDLS_STATE;
- ptdlsinfo->sta_cnt = 0;
- ptdlsinfo->sta_maximum = _FALSE;
- ptdlsinfo->cam_entry_to_write = 6;
- ptdlsinfo->cam_entry_to_clear = 0;
- ptdlsinfo->ch_sensing = 0;
- ptdlsinfo->cur_channel = 0;
- ptdlsinfo->candidate_ch = 1; //when inplement channel switching, default candidate channel is 1
-
- _rtw_spinlock_init(&ptdlsinfo->cmd_lock);
- _rtw_spinlock_init(&ptdlsinfo->hdl_lock);
-
- return res;
-
-}
-
-void rtw_free_tdls_info(struct tdls_info *ptdlsinfo)
-{
- _rtw_spinlock_free(&ptdlsinfo->cmd_lock);
- _rtw_spinlock_free(&ptdlsinfo->hdl_lock);
-
- _rtw_memset(ptdlsinfo, 0, sizeof(struct tdls_info) );
-
-}
-#endif //CONFIG_TDLS
-
-static void UpdateBrateTbl(
- IN PADAPTER Adapter,
- IN u8 *mBratesOS
-)
-{
- u8 i;
- u8 rate;
-
- // 1M, 2M, 5.5M, 11M, 6M, 12M, 24M are mandatory.
- for(i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++)
- {
- rate = mBratesOS[i] & 0x7f;
- switch(rate)
- {
- case IEEE80211_CCK_RATE_1MB:
- case IEEE80211_CCK_RATE_2MB:
- case IEEE80211_CCK_RATE_5MB:
- case IEEE80211_CCK_RATE_11MB:
- case IEEE80211_OFDM_RATE_6MB:
- case IEEE80211_OFDM_RATE_12MB:
- case IEEE80211_OFDM_RATE_24MB:
- mBratesOS[i] |= IEEE80211_BASIC_RATE_MASK;
- break;
- }
- }
-
-}
static u8 cmp_pkt_chnl_diff(_adapter *padapter,u8* pframe,uint packet_len)
{ // if the channel is same, return 0. else return channel differential
uint len;
@@ -569,11 +621,11 @@ static u8 cmp_pkt_chnl_diff(_adapter *padapter,u8* pframe,uint packet_len)
return 0;
}
}
+
static void _mgt_dispatcher(_adapter *padapter, struct mlme_handler *ptable, union recv_frame *precv_frame)
{
u8 bc_addr[ETH_ALEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
u8 *pframe = precv_frame->u.hdr.rx_data;
- uint len = precv_frame->u.hdr.len;
if(ptable->func)
{
@@ -593,10 +645,12 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
{
int index;
struct mlme_handler *ptable;
+#ifdef CONFIG_AP_MODE
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+#endif //CONFIG_AP_MODE
u8 bc_addr[ETH_ALEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
u8 *pframe = precv_frame->u.hdr.rx_data;
- uint len = precv_frame->u.hdr.len;
+ struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe));
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_,
("+mgt_dispatcher: type(0x%x) subtype(0x%x)\n",
@@ -606,11 +660,11 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
{
u8 *pbuf;
pbuf = GetAddr1Ptr(pframe);
- DBG_8192C("A1-%x:%x:%x:%x:%x:%x\n", *pbuf, *(pbuf+1), *(pbuf+2), *(pbuf+3), *(pbuf+4), *(pbuf+5));
+ DBG_871X("A1-%x:%x:%x:%x:%x:%x\n", *pbuf, *(pbuf+1), *(pbuf+2), *(pbuf+3), *(pbuf+4), *(pbuf+5));
pbuf = GetAddr2Ptr(pframe);
- DBG_8192C("A2-%x:%x:%x:%x:%x:%x\n", *pbuf, *(pbuf+1), *(pbuf+2), *(pbuf+3), *(pbuf+4), *(pbuf+5));
+ DBG_871X("A2-%x:%x:%x:%x:%x:%x\n", *pbuf, *(pbuf+1), *(pbuf+2), *(pbuf+3), *(pbuf+4), *(pbuf+5));
pbuf = GetAddr3Ptr(pframe);
- DBG_8192C("A3-%x:%x:%x:%x:%x:%x\n", *pbuf, *(pbuf+1), *(pbuf+2), *(pbuf+3), *(pbuf+4), *(pbuf+5));
+ DBG_871X("A3-%x:%x:%x:%x:%x:%x\n", *pbuf, *(pbuf+1), *(pbuf+2), *(pbuf+3), *(pbuf+4), *(pbuf+5));
}
#endif
@@ -633,13 +687,15 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
#ifdef CONFIG_TDLS
if((index << 4)==WIFI_ACTION){
- //category==public (4), action==TDLS_DISCOVERY_RESPONSE
- if(*(pframe+24)==0x04 && *(pframe+25)==TDLS_DISCOVERY_RESPONSE){
- DBG_8192C("recv tdls discovery response frame\n");
+ //category==RTW_WLAN_CATEGORY_PUBLIC, action==TDLS_DISCOVERY_RESPONSE
+ if(*(pframe + IEEE80211_MGMT_HDR_LEN ) == RTW_WLAN_CATEGORY_PUBLIC
+ && *(pframe + IEEE80211_MGMT_HDR_LEN + 1) == TDLS_DISCOVERY_RESPONSE )
+ {
+ DBG_871X("recv tdls discovery response frame\n");
On_TDLS_Dis_Rsp(padapter, precv_frame);
}
}
-#endif
+#endif //CONFIG_TDLS
if (index > 13)
{
@@ -648,18 +704,19 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
}
ptable += index;
-#if 0//gtest
- sa = get_sa(pframe);
- psta = search_assoc_sta(sa, padapter);
- // only check last cache seq number for management frame
- if (psta != NULL) {
- if (GetRetry(pframe)) {
- if (GetTupleCache(pframe) == psta->rxcache->nonqos_seq){
- RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("drop due to decache!\n"));
+#if 1
+ if (psta != NULL)
+ {
+ if (GetRetry(pframe))
+ {
+ if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum)
+ {
+ /* drop the duplicate management frame */
+ DBG_871X("Drop duplicate management frame with seq_num = %d.\n", precv_frame->u.hdr.attrib.seq_num);
return;
}
}
- psta->rxcache->nonqos_seq = GetTupleCache(pframe);
+ psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num;
}
#else
@@ -723,7 +780,37 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
#ifdef CONFIG_P2P
u32 p2p_listen_state_process(_adapter *padapter, unsigned char *da)
{
- issue_probersp_p2p( padapter, da);
+ bool response = _TRUE;
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
+ {
+ if (wdev_to_priv(padapter->rtw_wdev)->p2p_enabled == _FALSE
+ || padapter->mlmepriv.wps_probe_resp_ie == NULL
+ || padapter->mlmepriv.p2p_probe_resp_ie == NULL
+ )
+ {
+ DBG_871X("DON'T issue_probersp_p2p: p2p_enabled:%d, wps_probe_resp_ie:%p, p2p_probe_resp_ie:%p\n",
+ wdev_to_priv(padapter->rtw_wdev)->p2p_enabled,
+ padapter->mlmepriv.wps_probe_resp_ie,
+ padapter->mlmepriv.p2p_probe_resp_ie);
+ response = _FALSE;
+ }
+ }
+ else
+#endif //CONFIG_IOCTL_CFG80211
+ if( padapter->wdinfo.driver_interface == DRIVER_WEXT )
+ {
+ // do nothing if the device name is empty
+ if ( !padapter->wdinfo.device_name_len )
+ {
+ response = _FALSE;
+ }
+ }
+
+ if (response == _TRUE)
+ issue_probersp_p2p( padapter, da);
+
return _SUCCESS;
}
#endif //CONFIG_P2P
@@ -750,6 +837,7 @@ unsigned int OnProbeReq(_adapter *padapter, union recv_frame *precv_frame)
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
+ u8 wifi_test_chk_rate = 1;
if ( !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) &&
!rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE) &&
@@ -764,7 +852,17 @@ unsigned int OnProbeReq(_adapter *padapter, union recv_frame *precv_frame)
// mcs_rate = 2 -> CCK 5.5M rate
// mcs_rate = 3 -> CCK 11M rate
// In the P2P mode, the driver should not support the CCK rate
- if ( pattrib->mcs_rate > 3 )
+
+ // Commented by Kurt 2012/10/16
+ // IOT issue: Google Nexus7 use 1M rate to send p2p_probe_req after GO nego completed and Nexus7 is client
+#ifdef CONFIG_WIFI_TEST
+ if ( pattrib->mcs_rate <= 3 )
+ {
+ wifi_test_chk_rate = 0;
+ }
+#endif //CONFIG_WIFI_TEST
+
+ if( wifi_test_chk_rate == 1 )
{
if((is_valid_p2p_probereq = process_probe_req_p2p_ie(pwdinfo, pframe, len)) == _TRUE)
{
@@ -800,6 +898,131 @@ _continue:
//DBG_871X("+OnProbeReq\n");
+#ifdef CONFIG_AUTO_AP_MODE
+ if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE &&
+ pmlmepriv->cur_network.join_res == _TRUE)
+ {
+ _irqL irqL;
+ struct sta_info *psta;
+ u8 *mac_addr, *peer_addr;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ u8 RC_OUI[4]={0x00,0xE0,0x4C,0x0A};
+ //EID[1] + EID_LEN[1] + RC_OUI[4] + MAC[6] + PairingID[2] + ChannelNum[2]
+
+ p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _VENDOR_SPECIFIC_IE_, (int *)&ielen,
+ len - WLAN_HDR_A3_LEN - _PROBEREQ_IE_OFFSET_);
+
+ if(!p || ielen !=14)
+ goto _non_rc_device;
+
+ if(!_rtw_memcmp(p+2, RC_OUI, sizeof(RC_OUI)))
+ goto _non_rc_device;
+
+ if(!_rtw_memcmp(p+6, get_sa(pframe), ETH_ALEN))
+ {
+ DBG_871X("%s, do rc pairing ("MAC_FMT"), but mac addr mismatch!("MAC_FMT")\n", __FUNCTION__,
+ MAC_ARG(get_sa(pframe)), MAC_ARG(p+6));
+
+ goto _non_rc_device;
+ }
+
+ DBG_871X("%s, got the pairing device("MAC_FMT")\n", __FUNCTION__, MAC_ARG(get_sa(pframe)));
+
+ //new a station
+ psta = rtw_get_stainfo(pstapriv, get_sa(pframe));
+ if (psta == NULL)
+ {
+ // allocate a new one
+ DBG_871X("going to alloc stainfo for rc="MAC_FMT"\n", MAC_ARG(get_sa(pframe)));
+ psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe));
+ if (psta == NULL)
+ {
+ //TODO:
+ DBG_871X(" Exceed the upper limit of supported clients...\n");
+ return _SUCCESS;
+ }
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ if (rtw_is_list_empty(&psta->asoc_list))
+ {
+ psta->expire_to = pstapriv->expire_to;
+ rtw_list_insert_tail(&psta->asoc_list, &pstapriv->asoc_list);
+ pstapriv->asoc_list_cnt++;
+ }
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ //generate pairing ID
+ mac_addr = myid(&(padapter->eeprompriv));
+ peer_addr = psta->hwaddr;
+ psta->pid = (u16)(((mac_addr[4]<<8) + mac_addr[5]) + ((peer_addr[4]<<8) + peer_addr[5]));
+
+ //update peer stainfo
+ psta->isrc = _TRUE;
+ //psta->aid = 0;
+ //psta->mac_id = 2;
+
+ /* get a unique AID */
+ if (psta->aid > 0) {
+ DBG_871X("old AID %d\n", psta->aid);
+ } else {
+ for (psta->aid = 1; psta->aid <= NUM_STA; psta->aid++)
+ if (pstapriv->sta_aid[psta->aid - 1] == NULL)
+ break;
+
+ if (psta->aid > pstapriv->max_num_sta) {
+ psta->aid = 0;
+ DBG_871X("no room for more AIDs\n");
+ return _SUCCESS;
+ } else {
+ pstapriv->sta_aid[psta->aid - 1] = psta;
+ DBG_871X("allocate new AID = (%d)\n", psta->aid);
+ }
+ }
+
+ psta->qos_option = 1;
+ psta->htpriv.ht_option = _TRUE;
+ psta->ieee8021x_blocked = _FALSE;
+ psta->htpriv.ampdu_enable = _FALSE;
+ psta->htpriv.sgi = _FALSE;
+ psta->htpriv.bwmode = HT_CHANNEL_WIDTH_20;
+ psta->htpriv.ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
+ //rtw_hal_set_odm_var(padapter, HAL_ODM_STA_INFO, psta, _TRUE);
+
+ psta->htpriv.agg_enable_bitmap = 0x0;//reset
+ psta->htpriv.candidate_tid_bitmap = 0x0;//reset
+
+ _rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+
+ _enter_critical_bh(&psta->lock, &irqL);
+ psta->state |= _FW_LINKED;
+ _exit_critical_bh(&psta->lock, &irqL);
+
+ report_add_sta_event(padapter, psta->hwaddr, psta->aid);
+
+ }
+
+ issue_probersp(padapter, get_sa(pframe), _FALSE);
+
+ return _SUCCESS;
+
+ }
+
+_non_rc_device:
+
+ return _SUCCESS;
+#endif //CONFIG_AUTO_AP_MODE
+
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(padapter, _FW_UNDER_LINKING|_FW_UNDER_SURVEY))
+ {
+ //don't process probe req
+ return _SUCCESS;
+ }
+#endif
+
p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _SSID_IE_, (int *)&ielen,
len - WLAN_HDR_A3_LEN - _PROBEREQ_IE_OFFSET_);
@@ -826,7 +1049,7 @@ _issue_probersp:
{
//DBG_871X("+issue_probersp during ap mode\n");
issue_probersp(padapter, get_sa(pframe), is_valid_p2p_probereq);
- }
+ }
}
@@ -857,7 +1080,6 @@ unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
{
pwdinfo->tx_prov_disc_info.benable = _FALSE;
issue_p2p_provision_request( padapter,
- pwdinfo->tx_prov_disc_info.peerIFAddr,
pwdinfo->tx_prov_disc_info.ssid.Ssid,
pwdinfo->tx_prov_disc_info.ssid.SsidLength,
pwdinfo->tx_prov_disc_info.peerDevAddr );
@@ -866,7 +1088,6 @@ unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
{
pwdinfo->tx_prov_disc_info.benable = _FALSE;
issue_p2p_provision_request( padapter,
- pwdinfo->tx_prov_disc_info.peerIFAddr,
NULL,
0,
pwdinfo->tx_prov_disc_info.peerDevAddr );
@@ -887,12 +1108,30 @@ unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
}
}
}
+ else if( rtw_p2p_chk_state(pwdinfo, P2P_STATE_TX_INVITE_REQ ) )
+ {
+ if ( _TRUE == pwdinfo->invitereq_info.benable )
+ {
+ DBG_871X( "[%s] P2P_STATE_TX_INVITE_REQ!\n", __FUNCTION__ );
+ if( _rtw_memcmp( pwdinfo->invitereq_info.peer_macaddr, GetAddr2Ptr(pframe), ETH_ALEN ) )
+ {
+ pwdinfo->invitereq_info.benable = _FALSE;
+ issue_p2p_invitation_request( padapter, pwdinfo->invitereq_info.peer_macaddr );
+ }
+ }
+ }
#endif
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS)
{
report_survey_event(padapter, precv_frame);
+#ifdef CONFIG_CONCURRENT_MODE
+ report_survey_event(padapter->pbuddy_adapter, precv_frame);
+#endif
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_report_survey_event(padapter, precv_frame);
+#endif
return _SUCCESS;
}
@@ -922,10 +1161,33 @@ unsigned int OnBeacon(_adapter *padapter, union recv_frame *precv_frame)
struct sta_priv *pstapriv = &padapter->stapriv;
u8 *pframe = precv_frame->u.hdr.rx_data;
uint len = precv_frame->u.hdr.len;
+ u8 *p = NULL;
+ u32 ielen = 0;
+
+#ifdef CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
+ p = rtw_get_ie(pframe + sizeof(struct rtw_ieee80211_hdr_3addr) + _BEACON_IE_OFFSET_, _EXT_SUPPORTEDRATES_IE_, &ielen, precv_frame->u.hdr.len -sizeof(struct rtw_ieee80211_hdr_3addr) - _BEACON_IE_OFFSET_);
+ if ((p != NULL) && (ielen > 0))
+ {
+ if ((*(p + 1 + ielen) == 0x2D) && (*(p + 2 + ielen) != 0x2D))
+ {
+ /* Invalid value 0x2D is detected in Extended Supported Rates (ESR) IE. Try to fix the IE length to avoid failed Beacon parsing. */
+ DBG_871X("[WIFIDBG] Error in ESR IE is detected in Beacon of BSSID:"MAC_FMT". Fix the length of ESR IE to avoid failed Beacon parsing.\n", MAC_ARG(GetAddr3Ptr(pframe)));
+ *(p + 1) = ielen - 1;
+ }
+ }
+#endif
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS)
{
report_survey_event(padapter, precv_frame);
+#ifdef CONFIG_CONCURRENT_MODE
+ report_survey_event(padapter->pbuddy_adapter, precv_frame);
+#endif
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_report_survey_event(padapter, precv_frame);
+#endif
+
return _SUCCESS;
}
@@ -935,6 +1197,10 @@ unsigned int OnBeacon(_adapter *padapter, union recv_frame *precv_frame)
{
//check the vendor of the assoc AP
pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pframe+sizeof(struct rtw_ieee80211_hdr_3addr), len-sizeof(struct rtw_ieee80211_hdr_3addr));
+#ifdef CONFIG_P2P_PS
+ // do P2P PS Before link ? , ToDo
+ //process_p2p_ps_ie(padapter, (pframe + WLAN_HDR_A3_LEN), (len - WLAN_HDR_A3_LEN));
+#endif // CONFIG_P2P_PS
//update TSF Value
update_TSF(pmlmeext, pframe, len);
@@ -973,9 +1239,10 @@ unsigned int OnBeacon(_adapter *padapter, union recv_frame *precv_frame)
process_csa_ie(padapter, pframe, len); //channel switch announcement
#endif //CONFIG_DFS
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
+ //if(psta->ieee8021x_blocked == _FALSE) // do not allow P2P PS during EAPOL handshake ?
process_p2p_ps_ie(padapter, (pframe + WLAN_HDR_A3_LEN), (len - WLAN_HDR_A3_LEN));
-#endif //CONFIG_P2P
+#endif //CONFIG_P2P_PS
#if 0 //move to validate_recv_mgnt_frame
psta->sta_stats.rx_mgnt_pkts++;
@@ -1045,6 +1312,16 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
u8 *pframe = precv_frame->u.hdr.rx_data;
uint len = precv_frame->u.hdr.len;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(padapter, _FW_UNDER_LINKING|_FW_UNDER_SURVEY))
+ {
+ //don't process auth request;
+ return _SUCCESS;
+ }
+#endif //CONFIG_CONCURRENT_MODE
+
if((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
return _FAIL;
@@ -1053,8 +1330,8 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
sa = GetAddr2Ptr(pframe);
auth_mode = psecuritypriv->dot11AuthAlgrthm;
- seq = cpu_to_le16(*(unsigned short *)((unsigned int)pframe + WLAN_HDR_A3_LEN + 2));
- algorithm = cpu_to_le16(*(unsigned short *)((unsigned int)pframe + WLAN_HDR_A3_LEN));
+ seq = cpu_to_le16(*(u16*)((SIZE_PTR)pframe + WLAN_HDR_A3_LEN + 2));
+ algorithm = cpu_to_le16(*(u16*)((SIZE_PTR)pframe + WLAN_HDR_A3_LEN));
if (GetPrivacy(pframe))
{
@@ -1096,7 +1373,7 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
goto auth_fail;
}
-#if 0 //TODO:ACL control
+#if 0 //ACL control
phead = &priv->wlan_acl_list;
plist = phead->next;
//check sa
@@ -1125,13 +1402,19 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,"auth abort because ACL!\n");
return FAIL;
}
+#else
+ if(rtw_access_ctrl(padapter, sa) == _FALSE)
+ {
+ status = _STATS_UNABLE_HANDLE_STA_;
+ goto auth_fail;
+ }
#endif
pstat = rtw_get_stainfo(pstapriv, sa);
if (pstat == NULL)
{
// allocate a new one
- DBG_871X("going to alloc stainfo for sa=%02X%02X%02X%02X%02X%02X\n", sa[0],sa[1],sa[2],sa[3],sa[4],sa[5]);
+ DBG_871X("going to alloc stainfo for sa="MAC_FMT"\n", MAC_ARG(sa));
pstat = rtw_alloc_stainfo(pstapriv, sa);
if (pstat == NULL)
{
@@ -1152,6 +1435,7 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
if(rtw_is_list_empty(&pstat->asoc_list)==_FALSE)
{
rtw_list_delete(&pstat->asoc_list);
+ pstapriv->asoc_list_cnt--;
if (pstat->expire_to > 0)
{
//TODO: STA re_auth within expire_to
@@ -1168,6 +1452,7 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
if (rtw_is_list_empty(&pstat->auth_list))
{
rtw_list_insert_tail(&pstat->auth_list, &pstapriv->auth_list);
+ pstapriv->auth_list_cnt++;
}
_exit_critical_bh(&pstapriv->auth_list_lock, &irqL);
@@ -1266,13 +1551,13 @@ unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
auth_fail:
- if (pstat)
- {
- pstat = &stat;
- _rtw_memset((char *)pstat, '\0', sizeof(stat));
- pstat->auth_seq = 2;
- _rtw_memcpy(pstat->hwaddr, sa, 6);
- }
+ if(pstat)
+ rtw_free_stainfo(padapter , pstat);
+
+ pstat = &stat;
+ _rtw_memset((char *)pstat, '\0', sizeof(stat));
+ pstat->auth_seq = 2;
+ _rtw_memcpy(pstat->hwaddr, sa, 6);
#ifdef CONFIG_NATIVEAP_MLME
issue_auth(padapter, pstat, (unsigned short)status);
@@ -1334,7 +1619,7 @@ unsigned int OnAuthClient(_adapter *padapter, union recv_frame *precv_frame)
if (p == NULL)
{
- //DBG_8192C("marc: no challenge text?\n");
+ //DBG_871X("marc: no challenge text?\n");
goto authclnt_fail;
}
@@ -1365,7 +1650,7 @@ unsigned int OnAuthClient(_adapter *padapter, union recv_frame *precv_frame)
else
{
// this is also illegal
- //DBG_8192C("marc: clnt auth failed due to illegal seq=%x\n", seq);
+ //DBG_871X("marc: clnt auth failed due to illegal seq=%x\n", seq);
goto authclnt_fail;
}
@@ -1388,13 +1673,11 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
#ifdef CONFIG_AP_MODE
_irqL irqL;
u16 capab_info, listen_interval;
- struct ieee802_11_elems elems;
+ struct rtw_ieee802_11_elems elems;
struct sta_info *pstat;
unsigned char reassoc, *p, *pos, *wpa_ie;
- unsigned char rsnie_hdr[4]={0x00, 0x50, 0xf2, 0x01};
unsigned char WMM_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x00, 0x01};
int i, ie_len, wpa_ie_len, left;
- unsigned long flags;
unsigned char supportRate[16];
int supportRateNum;
unsigned short status = _STATS_SUCCESSFUL_;
@@ -1418,6 +1701,15 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
#endif // CONFIG_WFD
#endif //CONFIG_P2P
+#ifdef CONFIG_CONCURRENT_MODE
+ if(((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(padapter, _FW_UNDER_LINKING|_FW_UNDER_SURVEY))
+ {
+ //don't process assoc request;
+ return _SUCCESS;
+ }
+#endif //CONFIG_CONCURRENT_MODE
+
if((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
return _FAIL;
@@ -1668,7 +1960,7 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
{
u8 selected_registrar = 0;
- rtw_get_wps_attr_content(pmlmepriv->wps_beacon_ie, pmlmepriv->wps_beacon_ie_len, WPA_ATTR_SELECTED_REGISTRAR , &selected_registrar, NULL);
+ rtw_get_wps_attr_content(pmlmepriv->wps_beacon_ie, pmlmepriv->wps_beacon_ie_len, WPS_ATTR_SELECTED_REGISTRAR , &selected_registrar, NULL);
if(!selected_registrar)
{
@@ -1709,7 +2001,7 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
copy_len = ((wpa_ie_len+2) > sizeof(pstat->wpa_ie)) ? (sizeof(pstat->wpa_ie)):(wpa_ie_len+2);
}
-
+
if(copy_len>0)
_rtw_memcpy(pstat->wpa_ie, wpa_ie-2, copy_len);
@@ -1859,12 +2151,12 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
if ( attr_contentlen )
{
- pwdinfo->wfd_info.peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
- DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info.peer_rtsp_ctrlport );
+ pwdinfo->wfd_info->peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
+ DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
}
}
#endif
- }
+ }
pstat->p2p_status_code = p2p_status_code;
#endif //CONFIG_P2P
@@ -1910,6 +2202,7 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
if (!rtw_is_list_empty(&pstat->auth_list))
{
rtw_list_delete(&pstat->auth_list);
+ pstapriv->auth_list_cnt--;
}
_exit_critical_bh(&pstapriv->auth_list_lock, &irqL);
@@ -1917,7 +2210,8 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
if (rtw_is_list_empty(&pstat->asoc_list))
{
pstat->expire_to = pstapriv->expire_to;
- rtw_list_insert_tail(&pstat->asoc_list, &pstapriv->asoc_list);
+ rtw_list_insert_tail(&pstat->asoc_list, &pstapriv->asoc_list);
+ pstapriv->asoc_list_cnt++;
}
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
@@ -1926,53 +2220,54 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
{
#ifdef CONFIG_NATIVEAP_MLME
//.1 bss_cap_update & sta_info_update
- bss_cap_update(padapter, pstat);
+ bss_cap_update_on_sta_join(padapter, pstat);
sta_info_update(padapter, pstat);
-
- //.2 - report to upper layer
- DBG_871X("indicate_sta_join_event to upper layer - hostapd\n");
- {
-#ifdef CONFIG_IOCTL_CFG80211
- struct wireless_dev *pwdev = padapter->rtw_wdev;
- if(pwdev->iftype == NL80211_IFTYPE_AP)
- {
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- rtw_cfg80211_indicate_sta_assoc(padapter, pframe, pkt_len);
- #else //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- _enter_critical_bh(&pstat->lock, &irqL);
- if(pstat->passoc_req)
- {
- rtw_mfree(pstat->passoc_req, pstat->assoc_req_len);
- pstat->passoc_req = NULL;
- pstat->assoc_req_len = 0;
- }
+ //issue assoc rsp before notify station join event.
+ if (frame_type == WIFI_ASSOCREQ)
+ issue_asocrsp(padapter, status, pstat, WIFI_ASSOCRSP);
+ else
+ issue_asocrsp(padapter, status, pstat, WIFI_REASSOCRSP);
- pstat->passoc_req = rtw_zmalloc(pkt_len);
- if(pstat->passoc_req)
- {
- _rtw_memcpy(pstat->passoc_req, pframe, pkt_len);
- pstat->assoc_req_len = pkt_len;
- }
- _exit_critical_bh(&pstat->lock, &irqL);
- #endif //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- }
- else
-#endif //CONFIG_IOCTL_CFG80211
- {
- rtw_indicate_sta_assoc_event(padapter, pstat);
- }
+ //.2 - report to upper layer
+ DBG_871X("indicate_sta_join_event to upper layer - hostapd\n");
+#ifdef CONFIG_IOCTL_CFG80211
+ #ifdef COMPAT_KERNEL_RELEASE
+ rtw_cfg80211_indicate_sta_assoc(padapter, pframe, pkt_len);
+ #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ rtw_cfg80211_indicate_sta_assoc(padapter, pframe, pkt_len);
+ #else //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ _enter_critical_bh(&pstat->lock, &irqL);
+ if(pstat->passoc_req)
+ {
+ rtw_mfree(pstat->passoc_req, pstat->assoc_req_len);
+ pstat->passoc_req = NULL;
+ pstat->assoc_req_len = 0;
}
+ pstat->passoc_req = rtw_zmalloc(pkt_len);
+ if(pstat->passoc_req)
+ {
+ _rtw_memcpy(pstat->passoc_req, pframe, pkt_len);
+ pstat->assoc_req_len = pkt_len;
+ }
+ _exit_critical_bh(&pstat->lock, &irqL);
+ #endif //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+#else
+ rtw_indicate_sta_assoc_event(padapter, pstat);
+#endif //CONFIG_IOCTL_CFG80211
//.3-(1) report sta add event
report_add_sta_event(padapter, pstat->hwaddr, pstat->aid);
+/*
+ //issue assoc rsp before notify station join event.
if (frame_type == WIFI_ASSOCREQ)
issue_asocrsp(padapter, status, pstat, WIFI_ASSOCRSP);
else
issue_asocrsp(padapter, status, pstat, WIFI_REASSOCRSP);
+*/
#endif
}
@@ -2011,6 +2306,7 @@ unsigned int OnAssocRsp(_adapter *padapter, union recv_frame *precv_frame)
int res;
unsigned short status;
PNDIS_802_11_VARIABLE_IEs pIE;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
//WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
@@ -2063,13 +2359,13 @@ unsigned int OnAssocRsp(_adapter *padapter, union recv_frame *precv_frame)
{
WMM_param_handler(padapter, pIE);
}
-#ifdef CONFIG_WFD
+#if defined(CONFIG_P2P) && defined(CONFIG_WFD)
else if ( _rtw_memcmp(pIE->data, WFD_OUI, 4)) //WFD
{
- printk( "[%s] Found WFD IE\n", __FUNCTION__ );
+ DBG_871X( "[%s] Found WFD IE\n", __FUNCTION__ );
WFD_info_handler( padapter, pIE );
}
-#endif
+#endif
break;
case _HT_CAPABILITY_IE_: //HT caps
@@ -2096,10 +2392,22 @@ unsigned int OnAssocRsp(_adapter *padapter, union recv_frame *precv_frame)
//Update Basic Rate Table for spec, 2010-12-28 , by thomas
UpdateBrateTbl(padapter, pmlmeinfo->network.SupportedRates);
+#ifdef CONFIG_IOCTL_CFG80211
+ if (!rtw_cfg80211_check_bss(padapter)) {
+ DBG_871X("rtw_cfg80211_check_bss() : BSS not found !!\n");
+ res = -2;
+ goto report_assoc_result;
+ }
+#endif
+
report_assoc_result:
+ if (res > 0) {
+ rtw_buf_update(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len, pframe, pkt_len);
+ } else {
+ rtw_buf_free(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len);
+ }
report_join_res(padapter, res);
-
return _SUCCESS;
}
@@ -2110,11 +2418,22 @@ unsigned int OnDeAuth(_adapter *padapter, union recv_frame *precv_frame)
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
u8 *pframe = precv_frame->u.hdr.rx_data;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif //CONFIG_P2P
//check A3
if (!(_rtw_memcmp(GetAddr3Ptr(pframe), get_my_bssid(&pmlmeinfo->network), ETH_ALEN)))
return _SUCCESS;
+#ifdef CONFIG_P2P
+ if ( pwdinfo->rx_invitereq_info.scan_op_ch_only )
+ {
+ _cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey );
+ _set_timer( &pwdinfo->reset_ch_sitesurvey, 10 );
+ }
+#endif //CONFIG_P2P
+
reason = le16_to_cpu(*(unsigned short *)(pframe + WLAN_HDR_A3_LEN));
DBG_871X("%s Reason code(%d)\n", __FUNCTION__,reason);
@@ -2128,31 +2447,59 @@ unsigned int OnDeAuth(_adapter *padapter, union recv_frame *precv_frame)
//_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
//rtw_free_stainfo(padapter, psta);
- //_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ //_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
DBG_871X("%s, STA:" MAC_FMT "\n", __FUNCTION__, MAC_ARG(GetAddr2Ptr(pframe)));
- psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
+ psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
if(psta)
{
+ u8 updated;
+
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
if(rtw_is_list_empty(&psta->asoc_list)==_FALSE)
{
rtw_list_delete(&psta->asoc_list);
- ap_free_sta(padapter, psta);
+ pstapriv->asoc_list_cnt--;
+ updated = ap_free_sta(padapter, psta, _FALSE, reason);
+
}
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ associated_clients_update(padapter, updated);
}
+
return _SUCCESS;
}
else
#endif
{
- DBG_871X("%s, STA:" MAC_FMT "\n", __FUNCTION__, MAC_ARG(GetAddr3Ptr(pframe)));
-
- receive_disconnect(padapter, GetAddr3Ptr(pframe) ,reason);
- }
+ int ignore_received_deauth = 0;
+
+ // Commented by Albert 20130604
+ // Before sending the auth frame to start the STA/GC mode connection with AP/GO,
+ // we will send the deauth first.
+ // However, the Win8.1 with BRCM Wi-Fi will send the deauth with reason code 6 to us after receieving our deauth.
+ // Added the following code to avoid this case.
+ if ( ( pmlmeinfo->state & WIFI_FW_AUTH_STATE ) ||
+ ( pmlmeinfo->state & WIFI_FW_ASSOC_STATE ) )
+ {
+ if ( reason == WLAN_REASON_CLASS2_FRAME_FROM_NONAUTH_STA )
+ {
+ ignore_received_deauth = 1;
+ } else if (WLAN_REASON_PREV_AUTH_NOT_VALID == reason) {
+ // TODO: 802.11r
+ ignore_received_deauth = 1;
+ }
+ }
+
+ DBG_871X("%s, STA:" MAC_FMT ", ignore = %d\n", __FUNCTION__, MAC_ARG(GetAddr3Ptr(pframe)), ignore_received_deauth);
+ if ( 0 == ignore_received_deauth )
+ {
+ receive_disconnect(padapter, GetAddr3Ptr(pframe) ,reason);
+ }
+ }
pmlmepriv->LinkDetectInfo.bBusyTraffic = _FALSE;
return _SUCCESS;
@@ -2165,11 +2512,22 @@ unsigned int OnDisassoc(_adapter *padapter, union recv_frame *precv_frame)
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
u8 *pframe = precv_frame->u.hdr.rx_data;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif //CONFIG_P2P
//check A3
if (!(_rtw_memcmp(GetAddr3Ptr(pframe), get_my_bssid(&pmlmeinfo->network), ETH_ALEN)))
return _SUCCESS;
+#ifdef CONFIG_P2P
+ if ( pwdinfo->rx_invitereq_info.scan_op_ch_only )
+ {
+ _cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey );
+ _set_timer( &pwdinfo->reset_ch_sitesurvey, 10 );
+ }
+#endif //CONFIG_P2P
+
reason = le16_to_cpu(*(unsigned short *)(pframe + WLAN_HDR_A3_LEN));
DBG_871X("%s Reason code(%d)\n", __FUNCTION__,reason);
@@ -2183,21 +2541,26 @@ unsigned int OnDisassoc(_adapter *padapter, union recv_frame *precv_frame)
//_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
//rtw_free_stainfo(padapter, psta);
- //_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ //_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
DBG_871X("%s, STA:" MAC_FMT "\n", __FUNCTION__, MAC_ARG(GetAddr2Ptr(pframe)));
psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
if(psta)
{
+ u8 updated;
+
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
if(rtw_is_list_empty(&psta->asoc_list)==_FALSE)
- {
+ {
rtw_list_delete(&psta->asoc_list);
- ap_free_sta(padapter, psta);
+ pstapriv->asoc_list_cnt--;
+ updated = ap_free_sta(padapter, psta, _FALSE, reason);
}
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ associated_clients_update(padapter, updated);
}
return _SUCCESS;
@@ -2220,6 +2583,107 @@ unsigned int OnAtim(_adapter *padapter, union recv_frame *precv_frame)
return _SUCCESS;
}
+unsigned int on_action_spct_ch_switch(_adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
+{
+ unsigned int ret = _FAIL;
+ struct mlme_ext_priv *mlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(mlmeext->mlmext_info);
+
+ if (!(pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS)) {
+ ret = _SUCCESS;
+ goto exit;
+ }
+
+ if ((pmlmeinfo->state & 0x03) == WIFI_FW_STATION_STATE) {
+
+ int ch_switch_mode = -1, ch = -1, ch_switch_cnt = -1;
+ int ch_offset = -1;
+ u8 bwmode;
+ struct ieee80211_info_element *ie;
+
+ DBG_871X(FUNC_NDEV_FMT" from "MAC_FMT"\n",
+ FUNC_NDEV_ARG(padapter->pnetdev), MAC_ARG(psta->hwaddr));
+
+ for_each_ie(ie, ies, ies_len) {
+ if (ie->id == WLAN_EID_CHANNEL_SWITCH) {
+ ch_switch_mode = ie->data[0];
+ ch = ie->data[1];
+ ch_switch_cnt = ie->data[2];
+ DBG_871X("ch_switch_mode:%d, ch:%d, ch_switch_cnt:%d\n",
+ ch_switch_mode, ch, ch_switch_cnt);
+ }
+ else if (ie->id == WLAN_EID_SECONDARY_CHANNEL_OFFSET) {
+ ch_offset = secondary_ch_offset_to_hal_ch_offset(ie->data[0]);
+ DBG_871X("ch_offset:%d\n", ch_offset);
+ }
+ }
+
+ if (ch == -1)
+ return _SUCCESS;
+
+ if (ch_offset == -1)
+ bwmode = mlmeext->cur_bwmode;
+ else
+ bwmode = (ch_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE) ?
+ HT_CHANNEL_WIDTH_20 : HT_CHANNEL_WIDTH_40;
+
+ ch_offset = (ch_offset == -1) ? mlmeext->cur_ch_offset : ch_offset;
+
+ /* todo:
+ * 1. the decision of channel switching
+ * 2. things after channel switching
+ */
+
+ ret = rtw_set_ch_cmd(padapter, ch, bwmode, ch_offset, _TRUE);
+ }
+
+exit:
+ return ret;
+}
+
+unsigned int on_action_spct(_adapter *padapter, union recv_frame *precv_frame)
+{
+ unsigned int ret = _FAIL;
+ struct sta_info *psta = NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ u8 *pframe = precv_frame->u.hdr.rx_data;
+ uint frame_len = precv_frame->u.hdr.len;
+ u8 *frame_body = (u8 *)(pframe + sizeof(struct rtw_ieee80211_hdr_3addr));
+ u8 category;
+ u8 action;
+
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
+
+ psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
+
+ if (!psta)
+ goto exit;
+
+ category = frame_body[0];
+ if(category != RTW_WLAN_CATEGORY_SPECTRUM_MGMT)
+ goto exit;
+
+ action = frame_body[1];
+ switch (action) {
+ case RTW_WLAN_ACTION_SPCT_MSR_REQ:
+ case RTW_WLAN_ACTION_SPCT_MSR_RPRT:
+ case RTW_WLAN_ACTION_SPCT_TPC_REQ:
+ case RTW_WLAN_ACTION_SPCT_TPC_RPRT:
+ break;
+ case RTW_WLAN_ACTION_SPCT_CHL_SWITCH:
+ #ifdef CONFIG_SPCT_CH_SWITCH
+ ret = on_action_spct_ch_switch(padapter, psta, &frame_body[2],
+ frame_len-(frame_body-pframe)-2);
+ #endif
+ break;
+ default:
+ break;
+ }
+
+exit:
+ return ret;
+}
+
unsigned int OnAction_qos(_adapter *padapter, union recv_frame *precv_frame)
{
return _SUCCESS;
@@ -2242,8 +2706,6 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
u8 *pframe = precv_frame->u.hdr.rx_data;
struct sta_priv *pstapriv = &padapter->stapriv;
-
- uint len = precv_frame->u.hdr.len;
//check RA matches or not
if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), GetAddr1Ptr(pframe), ETH_ALEN))//for if1, sta/ap mode
@@ -2271,6 +2733,15 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
category = frame_body[0];
if (category == RTW_WLAN_CATEGORY_BACK)// representing Block Ack
{
+#ifdef CONFIG_TDLS
+ if((psta->tdls_sta_state & TDLS_LINKED_STATE) &&
+ (psta->htpriv.ht_option==_TRUE) &&
+ (psta->htpriv.ampdu_enable==_TRUE) )
+ {
+ //do nothing; just don't want to return _SUCCESS;
+ }
+ else
+#endif //CONFIG_TDLS
if (!pmlmeinfo->HT_enable)
{
return _SUCCESS;
@@ -2314,7 +2785,7 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
psta->htpriv.agg_enable_bitmap &= ~BIT(tid);
}
- //DBG_8192C("marc: ADDBA RSP: %x\n", pmlmeinfo->agg_enable_bitmap);
+ //DBG_871X("marc: ADDBA RSP: %x\n", pmlmeinfo->agg_enable_bitmap);
break;
case RTW_WLAN_ACTION_DELBA: //DELBA
@@ -2339,7 +2810,7 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
#endif
}
- DBG_8192C("%s(): DELBA: %x(%x)\n", __FUNCTION__,pmlmeinfo->agg_enable_bitmap, reason_code);
+ DBG_871X("%s(): DELBA: %x(%x)\n", __FUNCTION__,pmlmeinfo->agg_enable_bitmap, reason_code);
//todo: how to notify the host while receiving DELETE BA
break;
@@ -2352,6 +2823,45 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
}
#ifdef CONFIG_P2P
+
+static int get_reg_classes_full_count(struct p2p_channels channel_list) {
+ int cnt = 0;
+ int i;
+
+ for (i = 0; i < channel_list.reg_classes; i++) {
+ cnt += channel_list.reg_class[i].channels;
+ }
+
+ return cnt;
+}
+
+static void get_channel_cnt_24g_5gl_5gh( struct mlme_ext_priv *pmlmeext, u8* p24g_cnt, u8* p5gl_cnt, u8* p5gh_cnt )
+{
+ int i = 0;
+
+ *p24g_cnt = 0;
+ *p5gl_cnt = 0;
+ *p5gh_cnt = 0;
+
+ for( i = 0; i < pmlmeext->max_chan_nums; i++ )
+ {
+ if ( pmlmeext->channel_set[ i ].ChannelNum <= 14 )
+ {
+ (*p24g_cnt)++;
+ }
+ else if ( ( pmlmeext->channel_set[ i ].ChannelNum > 14 ) && ( pmlmeext->channel_set[ i ].ChannelNum <= 48 ) )
+ {
+ // Just include the channel 36, 40, 44, 48 channels for 5G low
+ (*p5gl_cnt)++;
+ }
+ else if ( ( pmlmeext->channel_set[ i ].ChannelNum >= 149 ) && ( pmlmeext->channel_set[ i ].ChannelNum <= 161 ) )
+ {
+ // Just include the channel 149, 153, 157, 161 channels for 5G high
+ (*p5gh_cnt)++;
+ }
+ }
+}
+
void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
{
@@ -2361,10 +2871,11 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
u8 oui_subtype = P2P_GO_NEGO_REQ;
u8 wpsie[ 255 ] = { 0x00 }, p2pie[ 255 ] = { 0x00 };
u8 wpsielen = 0, p2pielen = 0, i;
- u16 chnum = 0;
+ u8 channel_cnt_24g = 0, channel_cnt_5gl = 0, channel_cnt_5gh = 0;
+ u16 len_channellist_attr = 0;
#ifdef CONFIG_WFD
u32 wfdielen = 0;
-#endif //CONFIG_WFD
+#endif //CONFIG_WFD
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
@@ -2382,7 +2893,7 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
return;
}
- DBG_8192C( "[%s] In\n", __FUNCTION__ );
+ DBG_871X( "[%s] In\n", __FUNCTION__ );
//update attribute
pattrib = &pmgntframe->attrib;
update_mgntframe_attrib(padapter, pattrib);
@@ -2494,12 +3005,18 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
// Value:
// Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC;
-
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
+
// Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ if ( pwdinfo->persistent_supported )
+ {
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_CROSS_CONN | P2P_GRPCAP_PERSISTENT_GROUP;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_CROSS_CONN;
+ }
+
// Group Owner Intent
// Type:
@@ -2536,8 +3053,8 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
@@ -2585,33 +3102,104 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
// Type:
p2pie[ p2pielen++ ] = P2P_ATTR_CH_LIST;
- // Length:
- chnum = ( u16 ) pmlmeext->max_chan_nums;
- *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + chnum );
+ // Length:
+ // Country String(3)
+ // + ( Operating Class (1) + Number of Channels(1) ) * Operation Classes (?)
+ // + number of channels in all classes
+ len_channellist_attr = 3
+ + (1 + 1) * (u16)(pmlmeext->channel_list.reg_classes)
+ + get_reg_classes_full_count(pmlmeext->channel_list);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + 1 );
+ }
+ else
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+ }
+#else
+
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+
+#endif
p2pielen += 2;
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
// Channel Entry List
- // Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
- // Number of Channels
- // Depends on the channel plan
- p2pie[ p2pielen++ ] = pmlmeext->max_chan_nums;
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
- // Channel List
- for( i = 0; i < pmlmeext->max_chan_nums; i++ )
+ // Operating Class
+ if ( pbuddy_mlmeext->cur_channel > 14 )
+ {
+ if ( pbuddy_mlmeext->cur_channel >= 149 )
+ {
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+
+ // Number of Channels
+ // Just support 1 channel and this channel is AP's channel
+ p2pie[ p2pielen++ ] = 1;
+
+ // Channel List
+ p2pie[ p2pielen++ ] = pbuddy_mlmeext->cur_channel;
+ }
+ else
+ {
+ int i,j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
+ }
+#else // CONFIG_CONCURRENT_MODE
{
- p2pie[ p2pielen++ ] = pmlmeext->channel_set[ i ].ChannelNum;
+ int i,j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
}
+#endif // CONFIG_CONCURRENT_MODE
// Device Info
// Type:
@@ -2637,7 +3225,7 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
// Primary Device Type
// Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
p2pielen += 2;
// OUI
@@ -2645,7 +3233,7 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
p2pielen += 4;
// Sub Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
p2pielen += 2;
// Number of Secondary Device Types
@@ -2675,16 +3263,30 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
// Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
-
+ if ( pwdinfo->operating_channel <= 14 )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+ else if ( ( pwdinfo->operating_channel >= 36 ) && ( pwdinfo->operating_channel <= 48 ) )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ else
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+
// Channel Number
p2pie[ p2pielen++ ] = pwdinfo->operating_channel; // operating channel number
@@ -2717,10 +3319,8 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
uint wpsielen = 0;
u16 wps_devicepassword_id = 0x0000;
uint wps_devicepassword_id_len = 0;
- u16 chnum = 0;
-#ifdef CONFIG_WFD
- u32 wfdielen = 0;
-#endif //CONFIG_WFD
+ u8 channel_cnt_24g = 0, channel_cnt_5gl = 0, channel_cnt_5gh;
+ u16 len_channellist_attr = 0;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
@@ -2732,13 +3332,16 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
struct wifidirect_info *pwdinfo = &( padapter->wdinfo);
+#ifdef CONFIG_WFD
+ u32 wfdielen = 0;
+#endif //CONFIG_WFD
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
return;
}
- DBG_8192C( "[%s] In\n", __FUNCTION__ );
+ DBG_871X( "[%s] In, result = %d\n", __FUNCTION__, result );
//update attribute
pattrib = &pmgntframe->attrib;
update_mgntframe_attrib(padapter, pattrib);
@@ -2839,7 +3442,7 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
_rtw_memcpy( pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, "pbc", 3 );
}
}
-
+
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, (unsigned char *) wpsie, &pattrib->pktlen );
@@ -2899,13 +3502,18 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
else
{
// Be group owner or meet the error case
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC;
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
}
// Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ if ( pwdinfo->persistent_supported )
+ {
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_CROSS_CONN | P2P_GRPCAP_PERSISTENT_GROUP;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_CROSS_CONN;
+ }
// Group Owner Intent
// Type:
@@ -2950,15 +3558,29 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
// Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
+ if ( pwdinfo->operating_channel <= 14 )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+ else if ( ( pwdinfo->operating_channel >= 36 ) && ( pwdinfo->operating_channel <= 48 ) )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ else
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
// Channel Number
p2pie[ p2pielen++ ] = pwdinfo->operating_channel; // operating channel number
@@ -2979,33 +3601,103 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
// Type:
p2pie[ p2pielen++ ] = P2P_ATTR_CH_LIST;
- // Length:
- chnum = ( u16 ) pmlmeext->max_chan_nums;
- *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + chnum );
+ // Country String(3)
+ // + ( Operating Class (1) + Number of Channels(1) ) * Operation Classes (?)
+ // + number of channels in all classes
+ len_channellist_attr = 3
+ + (1 + 1) * (u16)pmlmeext->channel_list.reg_classes
+ + get_reg_classes_full_count(pmlmeext->channel_list);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + 1 );
+ }
+ else
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+ }
+#else
+
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+
+ #endif
p2pielen += 2;
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
// Channel Entry List
- // Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
- // Number of Channels
- // Depends on the channel plan
- p2pie[ p2pielen++ ] = pmlmeext->max_chan_nums;
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
- // Channel List
- for( i = 0; i < pmlmeext->max_chan_nums; i++ )
+ // Operating Class
+ if ( pbuddy_mlmeext->cur_channel > 14 )
+ {
+ if ( pbuddy_mlmeext->cur_channel >= 149 )
+ {
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+
+ // Number of Channels
+ // Just support 1 channel and this channel is AP's channel
+ p2pie[ p2pielen++ ] = 1;
+
+ // Channel List
+ p2pie[ p2pielen++ ] = pbuddy_mlmeext->cur_channel;
+ }
+ else
{
- p2pie[ p2pielen++ ] = pmlmeext->channel_set[ i ].ChannelNum;
+ int i, j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
+ }
+#else // CONFIG_CONCURRENT_MODE
+ {
+ int i, j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
}
+#endif // CONFIG_CONCURRENT_MODE
// Device Info
// Type:
@@ -3031,7 +3723,7 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
// Primary Device Type
// Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
p2pielen += 2;
// OUI
@@ -3039,7 +3731,7 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
p2pielen += 4;
// Sub Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
p2pielen += 2;
// Number of Secondary Device Types
@@ -3080,12 +3772,12 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
}
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen );
-
+
#ifdef CONFIG_WFD
wfdielen = build_nego_resp_wfd_ie(pwdinfo, pframe);
pframe += wfdielen;
pattrib->pktlen += wfdielen;
-#endif //CONFIG_WFD
+#endif //CONFIG_WFD
pattrib->last_txcmdsz = pattrib->pktlen;
@@ -3104,9 +3796,6 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
u8 oui_subtype = P2P_GO_NEGO_CONF;
u8 wpsie[ 255 ] = { 0x00 }, p2pie[ 255 ] = { 0x00 };
u8 wpsielen = 0, p2pielen = 0;
-#ifdef CONFIG_WFD
- u32 wfdielen = 0;
-#endif //CONFIG_WFD
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
@@ -3117,14 +3806,16 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
struct wifidirect_info *pwdinfo = &( padapter->wdinfo);
-
+#ifdef CONFIG_WFD
+ u32 wfdielen = 0;
+#endif //CONFIG_WFD
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
return;
}
- DBG_8192C( "[%s] In\n", __FUNCTION__ );
+ DBG_871X( "[%s] In\n", __FUNCTION__ );
//update attribute
pattrib = &pmgntframe->attrib;
update_mgntframe_attrib(padapter, pattrib);
@@ -3194,12 +3885,17 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
// Value:
// Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC;
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
// Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ if ( pwdinfo->persistent_supported )
+ {
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_CROSS_CONN | P2P_GRPCAP_PERSISTENT_GROUP;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_CROSS_CONN;
+ }
// Operating Channel
@@ -3212,22 +3908,52 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
- // Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
if ( rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) )
{
+ if ( pwdinfo->peer_operating_ch <= 14 )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+ else if ( ( pwdinfo->peer_operating_ch >= 36 ) && ( pwdinfo->peer_operating_ch <= 48 ) )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ else
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+
p2pie[ p2pielen++ ] = pwdinfo->peer_operating_ch;
}
else
{
+ if ( pwdinfo->operating_channel <= 14 )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+ else if ( ( pwdinfo->operating_channel >= 36 ) && ( pwdinfo->operating_channel <= 48 ) )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ else
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+
// Channel Number
p2pie[ p2pielen++ ] = pwdinfo->operating_channel; // Use the listen channel as the operating channel
}
@@ -3237,29 +3963,60 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
// Type:
p2pie[ p2pielen++ ] = P2P_ATTR_CH_LIST;
- // Length:
- *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + pwdinfo->channel_cnt );
+ *(u16*) ( p2pie + p2pielen ) = 6;
p2pielen += 2;
- // Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
- // Channel Entry List
- // Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
-
- // Number of Channels
- p2pie[ p2pielen++ ] = pwdinfo->channel_cnt;
-
- // Channel List
- _rtw_memcpy( p2pie + p2pielen, pwdinfo->channel_list, pwdinfo->channel_cnt );
- p2pielen += pwdinfo->channel_cnt;
+ // Value:
+ if ( rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) )
+ {
+ if ( pwdinfo->peer_operating_ch <= 14 )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+ else if ( ( pwdinfo->peer_operating_ch >= 36 ) && ( pwdinfo->peer_operating_ch <= 48 ) )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ else
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+ p2pie[ p2pielen++ ] = 1;
+ p2pie[ p2pielen++ ] = pwdinfo->peer_operating_ch;
+ }
+ else
+ {
+ if ( pwdinfo->operating_channel <= 14 )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+ else if ( ( pwdinfo->operating_channel >= 36 ) && ( pwdinfo->operating_channel <= 48 ) )
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ else
+ {
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+
+ // Channel Number
+ p2pie[ p2pielen++ ] = 1;
+ p2pie[ p2pielen++ ] = pwdinfo->operating_channel; // Use the listen channel as the operating channel
+ }
if (rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) )
{
@@ -3282,12 +4039,12 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
}
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen );
-
+
#ifdef CONFIG_WFD
wfdielen = build_nego_confirm_wfd_ie(pwdinfo, pframe);
pframe += wfdielen;
pattrib->pktlen += wfdielen;
-#endif //CONFIG_WFD
+#endif //CONFIG_WFD
pattrib->last_txcmdsz = pattrib->pktlen;
@@ -3305,9 +4062,20 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
u32 p2poui = cpu_to_be32(P2POUI);
u8 oui_subtype = P2P_INVIT_REQ;
u8 p2pie[ 255 ] = { 0x00 };
- u8 p2pielen = 0;
+ u8 p2pielen = 0, i;
u8 dialogToken = 3;
-
+ u8 channel_cnt_24g = 0, channel_cnt_5gl = 0, channel_cnt_5gh = 0;
+ u16 len_channellist_attr = 0;
+#ifdef CONFIG_WFD
+ u32 wfdielen = 0;
+#endif //CONFIG_WFD
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif
+
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
unsigned char *pframe;
@@ -3367,7 +4135,7 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
// 1. Configuration Timeout
// 2. Invitation Flags
// 3. Operating Channel ( Only GO )
- // 4. P2P Group BSSID ( Only GO )
+ // 4. P2P Group BSSID ( Should be included if I am the GO )
// 5. Channel List
// 6. P2P Group ID
// 7. P2P Device Info
@@ -3396,42 +4164,153 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
p2pie[ p2pielen++ ] = P2P_INVITATION_FLAGS_PERSISTENT;
- // Channel List
+ // Operating Channel
// Type:
- p2pie[ p2pielen++ ] = P2P_ATTR_CH_LIST;
+ p2pie[ p2pielen++ ] = P2P_ATTR_OPERATING_CH;
// Length:
- *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0010 );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0005 );
p2pielen += 2;
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
- // Channel Entry List
// Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
+ if ( pwdinfo->invitereq_info.operating_ch <= 14 )
+ p2pie[ p2pielen++ ] = 0x51;
+ else if ( ( pwdinfo->invitereq_info.operating_ch >= 36 ) && ( pwdinfo->invitereq_info.operating_ch <= 48 ) )
+ p2pie[ p2pielen++ ] = 0x73;
+ else
+ p2pie[ p2pielen++ ] = 0x7c;
+
+ // Channel Number
+ p2pie[ p2pielen++ ] = pwdinfo->invitereq_info.operating_ch; // operating channel number
- // Number of Channels
- p2pie[ p2pielen++ ] = 0x0B; // support channel 1 - 11
+ if ( _rtw_memcmp( myid( &padapter->eeprompriv ), pwdinfo->invitereq_info.go_bssid, ETH_ALEN ) )
+ {
+ // P2P Group BSSID
+ // Type:
+ p2pie[ p2pielen++ ] = P2P_ATTR_GROUP_BSSID;
+
+ // Length:
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( ETH_ALEN );
+ p2pielen += 2;
+
+ // Value:
+ // P2P Device Address for GO
+ _rtw_memcpy( p2pie + p2pielen, pwdinfo->invitereq_info.go_bssid, ETH_ALEN );
+ p2pielen += ETH_ALEN;
+ }
// Channel List
- p2pie[ p2pielen++ ] = 0x01;
- p2pie[ p2pielen++ ] = 0x02;
- p2pie[ p2pielen++ ] = 0x03;
+ // Type:
+ p2pie[ p2pielen++ ] = P2P_ATTR_CH_LIST;
+
+
+ // Length:
+ // Country String(3)
+ // + ( Operating Class (1) + Number of Channels(1) ) * Operation Classes (?)
+ // + number of channels in all classes
+ len_channellist_attr = 3
+ + (1 + 1) * (u16)pmlmeext->channel_list.reg_classes
+ + get_reg_classes_full_count(pmlmeext->channel_list);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + 1 );
+ }
+ else
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+ }
+#else
+
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+
+ #endif
+ p2pielen += 2;
+
+ // Value:
+ // Country String
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
+
+ // The third byte should be set to 0x04.
+ // Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
- p2pie[ p2pielen++ ] = 0x05;
- p2pie[ p2pielen++ ] = 0x06;
- p2pie[ p2pielen++ ] = 0x07;
- p2pie[ p2pielen++ ] = 0x08;
- p2pie[ p2pielen++ ] = 0x09;
- p2pie[ p2pielen++ ] = 0x0A;
- p2pie[ p2pielen++ ] = 0x0B;
+
+ // Channel Entry List
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ // Operating Class
+ if ( pbuddy_mlmeext->cur_channel > 14 )
+ {
+ if ( pbuddy_mlmeext->cur_channel >= 149 )
+ {
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x51;
+ }
+
+ // Number of Channels
+ // Just support 1 channel and this channel is AP's channel
+ p2pie[ p2pielen++ ] = 1;
+
+ // Channel List
+ p2pie[ p2pielen++ ] = pbuddy_mlmeext->cur_channel;
+ }
+ else
+ {
+ int i, j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
+ }
+#else // CONFIG_CONCURRENT_MODE
+ {
+ int i, j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
+ }
+#endif // CONFIG_CONCURRENT_MODE
+
// P2P Group ID
// Type:
@@ -3443,11 +4322,11 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
// Value:
// P2P Device Address for GO
- _rtw_memcpy( p2pie + p2pielen, raddr, ETH_ALEN );
+ _rtw_memcpy( p2pie + p2pielen, pwdinfo->invitereq_info.go_bssid, ETH_ALEN );
p2pielen += ETH_ALEN;
// SSID
- _rtw_memcpy( p2pie + p2pielen, pwdinfo->invitereq_info.ssid, pwdinfo->invitereq_info.ssidlen );
+ _rtw_memcpy( p2pie + p2pielen, pwdinfo->invitereq_info.go_ssid, pwdinfo->invitereq_info.ssidlen );
p2pielen += pwdinfo->invitereq_info.ssidlen;
@@ -3473,7 +4352,7 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
// Primary Device Type
// Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
p2pielen += 2;
// OUI
@@ -3481,7 +4360,7 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
p2pielen += 4;
// Sub Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
p2pielen += 2;
// Number of Secondary Device Types
@@ -3501,7 +4380,12 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
p2pielen += pwdinfo->device_name_len;
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen );
-
+
+#ifdef CONFIG_WFD
+ wfdielen = build_invitation_req_wfd_ie(pwdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+#endif //CONFIG_WFD
pattrib->last_txcmdsz = pattrib->pktlen;
@@ -3511,7 +4395,7 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
}
-void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken, u8 success)
+void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken, u8 status_code)
{
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
@@ -3519,7 +4403,18 @@ void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken
u32 p2poui = cpu_to_be32(P2POUI);
u8 oui_subtype = P2P_INVIT_RESP;
u8 p2pie[ 255 ] = { 0x00 };
- u8 p2pielen = 0;
+ u8 p2pielen = 0, i;
+ u8 channel_cnt_24g = 0, channel_cnt_5gl = 0, channel_cnt_5gh = 0;
+ u16 len_channellist_attr = 0;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif
+#ifdef CONFIG_WFD
+ u32 wfdielen = 0;
+#endif //CONFIG_WFD
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
@@ -3592,19 +4487,13 @@ void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken
p2pielen += 2;
// Value:
- if ( success )
- {
- p2pie[ p2pielen++ ] = P2P_STATUS_SUCCESS;
- }
- else
- {
- // Sent the event receiving the P2P Invitation Req frame to DMP UI.
- // DMP had to compare the MAC address to find out the profile.
- // So, the WiFi driver will send the P2P_STATUS_FAIL_INFO_UNAVAILABLE to NB.
- // If the UI found the corresponding profile, the WiFi driver sends the P2P Invitation Req
- // to NB to rebuild the persistent group.
- p2pie[ p2pielen++ ] = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
- }
+ // When status code is P2P_STATUS_FAIL_INFO_UNAVAILABLE.
+ // Sent the event receiving the P2P Invitation Req frame to DMP UI.
+ // DMP had to compare the MAC address to find out the profile.
+ // So, the WiFi driver will send the P2P_STATUS_FAIL_INFO_UNAVAILABLE to NB.
+ // If the UI found the corresponding profile, the WiFi driver sends the P2P Invitation Req
+ // to NB to rebuild the persistent group.
+ p2pie[ p2pielen++ ] = status_code;
// Configuration Timeout
// Type:
@@ -3618,49 +4507,164 @@ void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken
p2pie[ p2pielen++ ] = 200; // 2 seconds needed to be the P2P GO
p2pie[ p2pielen++ ] = 200; // 2 seconds needed to be the P2P Client
-
- if ( success )
+ if( status_code == P2P_STATUS_SUCCESS )
{
+ if( rtw_p2p_chk_role( pwdinfo, P2P_ROLE_GO ) )
+ {
+ // The P2P Invitation request frame asks this Wi-Fi device to be the P2P GO
+ // In this case, the P2P Invitation response frame should carry the two more P2P attributes.
+ // First one is operating channel attribute.
+ // Second one is P2P Group BSSID attribute.
+
+ // Operating Channel
+ // Type:
+ p2pie[ p2pielen++ ] = P2P_ATTR_OPERATING_CH;
+
+ // Length:
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0005 );
+ p2pielen += 2;
+
+ // Value:
+ // Country String
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
+
+ // The third byte should be set to 0x04.
+ // Described in the "Operating Channel Attribute" section.
+ p2pie[ p2pielen++ ] = 0x04;
+
+ // Operating Class
+ p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
+
+ // Channel Number
+ p2pie[ p2pielen++ ] = pwdinfo->operating_channel; // operating channel number
+
+
+ // P2P Group BSSID
+ // Type:
+ p2pie[ p2pielen++ ] = P2P_ATTR_GROUP_BSSID;
+
+ // Length:
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( ETH_ALEN );
+ p2pielen += 2;
+
+ // Value:
+ // P2P Device Address for GO
+ _rtw_memcpy( p2pie + p2pielen, myid( &padapter->eeprompriv ), ETH_ALEN );
+ p2pielen += ETH_ALEN;
+
+ }
+
// Channel List
// Type:
p2pie[ p2pielen++ ] = P2P_ATTR_CH_LIST;
// Length:
- *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0010 );
+ // Country String(3)
+ // + ( Operating Class (1) + Number of Channels(1) ) * Operation Classes (?)
+ // + number of channels in all classes
+ len_channellist_attr = 3
+ + (1 + 1) * (u16)pmlmeext->channel_list.reg_classes
+ + get_reg_classes_full_count(pmlmeext->channel_list);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 5 + 1 );
+ }
+ else
+ {
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+ }
+#else
+
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_le16( len_channellist_attr );
+
+#endif
p2pielen += 2;
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
-
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
+
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
p2pie[ p2pielen++ ] = 0x04;
// Channel Entry List
- // Operating Class
- p2pie[ p2pielen++ ] = 0x51; // Copy from SD7
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
- // Number of Channels
- p2pie[ p2pielen++ ] = 0x0B; // support channel 1 - 11
+ // Operating Class
+ if ( pbuddy_mlmeext->cur_channel > 14 )
+ {
+ if ( pbuddy_mlmeext->cur_channel >= 149 )
+ {
+ p2pie[ p2pielen++ ] = 0x7c;
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x73;
+ }
+ }
+ else
+ {
+ p2pie[ p2pielen++ ] = 0x51;
+ }
- // Channel List
- p2pie[ p2pielen++ ] = 0x01;
- p2pie[ p2pielen++ ] = 0x02;
- p2pie[ p2pielen++ ] = 0x03;
- p2pie[ p2pielen++ ] = 0x04;
- p2pie[ p2pielen++ ] = 0x05;
- p2pie[ p2pielen++ ] = 0x06;
- p2pie[ p2pielen++ ] = 0x07;
- p2pie[ p2pielen++ ] = 0x08;
- p2pie[ p2pielen++ ] = 0x09;
- p2pie[ p2pielen++ ] = 0x0A;
- p2pie[ p2pielen++ ] = 0x0B;
+ // Number of Channels
+ // Just support 1 channel and this channel is AP's channel
+ p2pie[ p2pielen++ ] = 1;
+
+ // Channel List
+ p2pie[ p2pielen++ ] = pbuddy_mlmeext->cur_channel;
+ }
+ else
+ {
+ int i, j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
+ }
+#else // CONFIG_CONCURRENT_MODE
+ {
+ int i, j;
+ for (j = 0; j < pmlmeext->channel_list.reg_classes; j++) {
+ // Operating Class
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].reg_class;
+
+ // Number of Channels
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channels;
+
+ // Channel List
+ for (i = 0; i < pmlmeext->channel_list.reg_class[j].channels; i++) {
+ p2pie[p2pielen++] = pmlmeext->channel_list.reg_class[j].channel[i];
+ }
+ }
+ }
+#endif // CONFIG_CONCURRENT_MODE
}
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen );
+#ifdef CONFIG_WFD
+ wfdielen = build_invitation_resp_wfd_ie(pwdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+#endif //CONFIG_WFD
pattrib->last_txcmdsz = pattrib->pktlen;
@@ -3670,7 +4674,7 @@ void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken
}
-void issue_p2p_provision_request(_adapter *padapter, u8* pinterface_raddr, u8* pssid, u8 ussidlen, u8* pdev_raddr )
+void issue_p2p_provision_request(_adapter *padapter, u8* pssid, u8 ussidlen, u8* pdev_raddr )
{
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
u8 action = P2P_PUB_ACTION_ACTION;
@@ -3700,7 +4704,7 @@ void issue_p2p_provision_request(_adapter *padapter, u8* pinterface_raddr, u8* p
return;
}
- DBG_8192C( "[%s] In\n", __FUNCTION__ );
+ DBG_871X( "[%s] In\n", __FUNCTION__ );
//update attribute
pattrib = &pmgntframe->attrib;
update_mgntframe_attrib(padapter, pattrib);
@@ -3713,10 +4717,9 @@ void issue_p2p_provision_request(_adapter *padapter, u8* pinterface_raddr, u8* p
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
- _rtw_memcpy(pwlanhdr->addr1, pinterface_raddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr1, pdev_raddr, ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
- //_rtw_memcpy(pwlanhdr->addr3, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, pinterface_raddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, pdev_raddr, ETH_ALEN);
SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
pmlmeext->mgnt_seq++;
@@ -3783,21 +4786,22 @@ void issue_p2p_provision_request(_adapter *padapter, u8* pinterface_raddr, u8* p
}
+
u8 is_matched_in_profilelist( u8* peermacaddr, struct profile_info* profileinfo )
{
u8 i, match_result = 0;
- DBG_8192C( "[%s] peermac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
+ DBG_871X( "[%s] peermac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
peermacaddr[0], peermacaddr[1],peermacaddr[2],peermacaddr[3],peermacaddr[4],peermacaddr[5]);
for( i = 0; i < P2P_MAX_PERSISTENT_GROUP_NUM; i++, profileinfo++ )
{
- DBG_8192C( "[%s] profileinfo_mac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
+ DBG_871X( "[%s] profileinfo_mac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
profileinfo->peermac[0], profileinfo->peermac[1],profileinfo->peermac[2],profileinfo->peermac[3],profileinfo->peermac[4],profileinfo->peermac[5]);
if ( _rtw_memcmp( peermacaddr, profileinfo->peermac, ETH_ALEN ) )
{
match_result = 1;
- DBG_8192C( "[%s] Match!\n", __FUNCTION__ );
+ DBG_871X( "[%s] Match!\n", __FUNCTION__ );
break;
}
}
@@ -3816,6 +4820,7 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
//WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
u16 beacon_interval = 100;
u16 capInfo = 0;
@@ -3825,13 +4830,10 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
#ifdef CONFIG_WFD
u32 wfdielen = 0;
#endif //CONFIG_WFD
-#ifdef CONFIG_IOCTL_CFG80211
- struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
- struct ieee80211_channel *ieee_ch = &pcfg80211_wdinfo->remain_on_ch_channel;
- u8 listen_channel = (u8) ieee80211_frequency_to_channel(ieee_ch->center_freq);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
-#endif //CONFIG_IOCTL_CFG80211
-
+#ifdef CONFIG_INTEL_WIDI
+ u8 zero_array_check[L2SDTA_SERVICE_VE_LEN] = { 0x00 };
+#endif //CONFIG_INTEL_WIDI
+
//DBG_871X("%s\n", __FUNCTION__);
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
@@ -3893,20 +4895,10 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, 8, pwdinfo->support_rate, &pattrib->pktlen);
// DS parameter set
-#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && listen_channel !=0)
- {
- pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&listen_channel, &pattrib->pktlen);
- }
- else
-#endif //CONFIG_IOCTL_CFG80211
- {
- pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&pwdinfo->listen_channel, &pattrib->pktlen);
- }
-
+ pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&pwdinfo->listen_channel, &pattrib->pktlen);
#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
if( pmlmepriv->wps_probe_resp_ie != NULL && pmlmepriv->p2p_probe_resp_ie != NULL )
{
@@ -3922,7 +4914,7 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
}
}
else
-#endif //CONFIG_IOCTL_CFG80211
+#endif //CONFIG_IOCTL_CFG80211
{
// Todo: WPS IE
@@ -3946,9 +4938,44 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
// Value:
wpsie[wpsielen++] = WPS_VERSION_1; // Version 1.0
- // WiFi Simple Config State
- // Type:
- *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_SIMPLE_CONF_STATE );
+#ifdef CONFIG_INTEL_WIDI
+ // Commented by Kurt
+ // Appended WiDi info. only if we did issued_probereq_widi(), and then we saved ven. ext. in pmlmepriv->sa_ext.
+ if( _rtw_memcmp(pmlmepriv->sa_ext, zero_array_check, L2SDTA_SERVICE_VE_LEN) == _FALSE
+ || pmlmepriv->num_p2p_sdt != 0 )
+ {
+ //Sec dev type
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_SEC_DEV_TYPE_LIST );
+ wpsielen += 2;
+
+ // Length:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( 0x0008 );
+ wpsielen += 2;
+
+ // Value:
+ // Category ID
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_CID_DISPLAYS );
+ wpsielen += 2;
+
+ // OUI
+ *(u32*) ( wpsie + wpsielen ) = cpu_to_be32( INTEL_DEV_TYPE_OUI );
+ wpsielen += 4;
+
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_SCID_WIDI_CONSUMER_SINK );
+ wpsielen += 2;
+
+ if( _rtw_memcmp(pmlmepriv->sa_ext, zero_array_check, L2SDTA_SERVICE_VE_LEN) == _FALSE )
+ {
+ // Vendor Extension
+ _rtw_memcpy( wpsie + wpsielen, pmlmepriv->sa_ext, L2SDTA_SERVICE_VE_LEN );
+ wpsielen += L2SDTA_SERVICE_VE_LEN;
+ }
+ }
+#endif //CONFIG_INTEL_WIDI
+
+ // WiFi Simple Config State
+ // Type:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_SIMPLE_CONF_STATE );
wpsielen += 2;
// Length:
@@ -3980,7 +5007,12 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
wpsielen += 2;
// Value:
- _rtw_memcpy( wpsie + wpsielen, myid( &padapter->eeprompriv ), ETH_ALEN );
+ if (pwdinfo->external_uuid == 0) {
+ _rtw_memset( wpsie + wpsielen, 0x0, 16 );
+ _rtw_memcpy( wpsie + wpsielen, myid( &padapter->eeprompriv ), ETH_ALEN );
+ } else {
+ _rtw_memcpy( wpsie + wpsielen, pwdinfo->uuid, 0x10 );
+ }
wpsielen += 0x10;
// Manufacturer
@@ -4081,7 +5113,7 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
// Value:
*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( pwdinfo->supported_wps_cm );
wpsielen += 2;
-
+
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, (unsigned char *) wpsie, &pattrib->pktlen );
@@ -4092,10 +5124,24 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
}
#ifdef CONFIG_WFD
- wfdielen = build_probe_resp_wfd_ie(pwdinfo, pframe);
- pframe += wfdielen;
- pattrib->pktlen += wfdielen;
-#endif //CONFIG_WFD
+#ifdef CONFIG_IOCTL_CFG80211
+ if ( _TRUE == pwdinfo->wfd_info->wfd_enable )
+#endif //CONFIG_IOCTL_CFG80211
+ {
+ wfdielen = build_probe_resp_wfd_ie(pwdinfo, pframe, 0);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+#ifdef CONFIG_IOCTL_CFG80211
+ else if (pmlmepriv->wfd_probe_resp_ie != NULL && pmlmepriv->wfd_probe_resp_ie_len>0)
+ {
+ //WFD IE
+ _rtw_memcpy(pframe, pmlmepriv->wfd_probe_resp_ie, pmlmepriv->wfd_probe_resp_ie_len);
+ pattrib->pktlen += pmlmepriv->wfd_probe_resp_ie_len;
+ pframe += pmlmepriv->wfd_probe_resp_ie_len;
+ }
+#endif //CONFIG_IOCTL_CFG80211
+#endif //CONFIG_WFD
pattrib->last_txcmdsz = pattrib->pktlen;
@@ -4106,8 +5152,9 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
}
-void issue_probereq_p2p(_adapter *padapter)
+int _issue_probereq_p2p(_adapter *padapter, u8 *da, int wait_ack)
{
+ int ret = _FAIL;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
unsigned char *pframe;
@@ -4126,12 +5173,13 @@ void issue_probereq_p2p(_adapter *padapter)
#ifdef CONFIG_WFD
u32 wfdielen = 0;
#endif //CONFIG_WFD
-#ifdef CONFIG_IOCTL_CFG80211
+
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
-#endif //CONFIG_IOCTL_CFG80211
+
+
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
- return;
+ goto exit;
}
//update attribute
@@ -4149,9 +5197,23 @@ void issue_probereq_p2p(_adapter *padapter)
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
- // broadcast probe request frame
- _rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, bc_addr, ETH_ALEN);
+ if (da) {
+ _rtw_memcpy(pwlanhdr->addr1, da, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, da, ETH_ALEN);
+ } else {
+ if ( ( pwdinfo->p2p_info.scan_op_ch_only ) || ( pwdinfo->rx_invitereq_info.scan_op_ch_only ) )
+ {
+ // This two flags will be set when this is only the P2P client mode.
+ _rtw_memcpy(pwlanhdr->addr1, pwdinfo->p2p_peer_interface_addr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, pwdinfo->p2p_peer_interface_addr, ETH_ALEN);
+ }
+ else
+ {
+ // broadcast probe request frame
+ _rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, bc_addr, ETH_ALEN);
+ }
+ }
_rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
@@ -4168,14 +5230,14 @@ void issue_probereq_p2p(_adapter *padapter)
else
{
pframe = rtw_set_ie(pframe, _SSID_IE_, P2P_WILDCARD_SSID_LEN, pwdinfo->p2p_wildcard_ssid, &(pattrib->pktlen));
- }
+ }
// Use the OFDM rate in the P2P probe request frame. ( 6(B), 9(B), 12(B), 24(B), 36, 48, 54 )
pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, 8, pwdinfo->support_rate, &pattrib->pktlen);
#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- if(pmlmepriv->wps_probe_req_ie != NULL && pmlmepriv->p2p_probe_req_ie != NULL_CHIP_TYPE)
+ if( pmlmepriv->wps_probe_req_ie != NULL && pmlmepriv->p2p_probe_req_ie != NULL )
{
//WPS IE
_rtw_memcpy(pframe, pmlmepriv->wps_probe_req_ie, pmlmepriv->wps_probe_req_ie_len);
@@ -4213,6 +5275,40 @@ void issue_probereq_p2p(_adapter *padapter)
// Value:
wpsie[wpsielen++] = WPS_VERSION_1; // Version 1.0
+ if( pmlmepriv->wps_probe_req_ie == NULL )
+ {
+ // UUID-E
+ // Type:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_UUID_E );
+ wpsielen += 2;
+
+ // Length:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( 0x0010 );
+ wpsielen += 2;
+
+ // Value:
+ if (pwdinfo->external_uuid == 0) {
+ _rtw_memset( wpsie + wpsielen, 0x0, 16 );
+ _rtw_memcpy( wpsie + wpsielen, myid( &padapter->eeprompriv ), ETH_ALEN );
+ } else {
+ _rtw_memcpy( wpsie + wpsielen, pwdinfo->uuid, 0x10 );
+ }
+ wpsielen += 0x10;
+
+ // Config Method
+ // Type:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_CONF_METHOD );
+ wpsielen += 2;
+
+ // Length:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( 0x0002 );
+ wpsielen += 2;
+
+ // Value:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( pwdinfo->supported_wps_cm );
+ wpsielen += 2;
+ }
+
// Device Name
// Type:
*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_DEVICE_NAME );
@@ -4237,7 +5333,7 @@ void issue_probereq_p2p(_adapter *padapter)
// Value:
// Category ID
- *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
wpsielen += 2;
// OUI
@@ -4245,7 +5341,20 @@ void issue_probereq_p2p(_adapter *padapter)
wpsielen += 4;
// Sub Category ID
- *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
+ wpsielen += 2;
+
+ // Device Password ID
+ // Type:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_DEVICE_PWID );
+ wpsielen += 2;
+
+ // Length:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( 0x0002 );
+ wpsielen += 2;
+
+ // Value:
+ *(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_DPID_REGISTRAR_SPEC ); // Registrar-specified
wpsielen += 2;
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, (unsigned char *) wpsie, &pattrib->pktlen );
@@ -4275,12 +5384,13 @@ void issue_probereq_p2p(_adapter *padapter)
// Value:
// Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC;
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
// Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ if ( pwdinfo->persistent_supported )
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_PERSISTENT_GROUP | DMP_P2P_GRPCAP_SUPPORT;
+ else
+ p2pie[ p2pielen++ ] = DMP_P2P_GRPCAP_SUPPORT;
// Listen Channel
// Type:
@@ -4292,8 +5402,8 @@ void issue_probereq_p2p(_adapter *padapter)
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
@@ -4335,8 +5445,8 @@ void issue_probereq_p2p(_adapter *padapter)
// Value:
// Country String
- p2pie[ p2pielen++ ] = 'U';
- p2pie[ p2pielen++ ] = 'S';
+ p2pie[ p2pielen++ ] = 'X';
+ p2pie[ p2pielen++ ] = 'X';
// The third byte should be set to 0x04.
// Described in the "Operating Channel Attribute" section.
@@ -4349,283 +5459,702 @@ void issue_probereq_p2p(_adapter *padapter)
p2pie[ p2pielen++ ] = pwdinfo->operating_channel; // operating channel number
}
-
+
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen );
+ if( pmlmepriv->wps_probe_req_ie != NULL )
+ {
+ //WPS IE
+ _rtw_memcpy(pframe, pmlmepriv->wps_probe_req_ie, pmlmepriv->wps_probe_req_ie_len);
+ pattrib->pktlen += pmlmepriv->wps_probe_req_ie_len;
+ pframe += pmlmepriv->wps_probe_req_ie_len;
+ }
}
-
+
#ifdef CONFIG_WFD
- wfdielen = build_probe_req_wfd_ie(pwdinfo, pframe);
- pframe += wfdielen;
- pattrib->pktlen += wfdielen;
-#endif //CONFIG_WFD
+#ifdef CONFIG_IOCTL_CFG80211
+ if ( _TRUE == pwdinfo->wfd_info->wfd_enable )
+#endif
+ {
+ wfdielen = build_probe_req_wfd_ie(pwdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+#ifdef CONFIG_IOCTL_CFG80211
+ else if (pmlmepriv->wfd_probe_req_ie != NULL && pmlmepriv->wfd_probe_req_ie_len>0)
+ {
+ //WFD IE
+ _rtw_memcpy(pframe, pmlmepriv->wfd_probe_req_ie, pmlmepriv->wfd_probe_req_ie_len);
+ pattrib->pktlen += pmlmepriv->wfd_probe_req_ie_len;
+ pframe += pmlmepriv->wfd_probe_req_ie_len;
+ }
+#endif //CONFIG_IOCTL_CFG80211
+#endif //CONFIG_WFD
pattrib->last_txcmdsz = pattrib->pktlen;
- RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("issuing probe_req, tx_len=%d\n", pattrib->last_txcmdsz));
+ RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("issuing probe_req, tx_len=%d\n", pattrib->last_txcmdsz));
- dump_mgntframe(padapter, pmgntframe);
+ if (wait_ack) {
+ ret = dump_mgntframe_and_wait_ack(padapter, pmgntframe);
+ } else {
+ dump_mgntframe(padapter, pmgntframe);
+ ret = _SUCCESS;
+ }
- return;
+exit:
+ return ret;
}
-#endif //CONFIG_P2P
+inline void issue_probereq_p2p(_adapter *adapter, u8 *da)
+{
+ _issue_probereq_p2p(adapter, da, _FALSE);
+}
-unsigned int OnAction_public(_adapter *padapter, union recv_frame *precv_frame)
+int issue_probereq_p2p_ex(_adapter *adapter, u8 *da, int try_cnt, int wait_ms)
{
- unsigned char *frame_body;
- unsigned char category, action;
- u8 *pframe = precv_frame->u.hdr.rx_data;
- uint len = precv_frame->u.hdr.len;
-#ifdef CONFIG_P2P
- u8 *p2p_ie;
- u32 p2p_ielen, wps_ielen;
- struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- u8 result = P2P_STATUS_SUCCESS;
- u8 empty_addr[ETH_ALEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-#endif //CONFIG_P2P
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ int ret;
+ int i = 0;
+ u32 start = rtw_get_current_time();
- u16 seq_ctrl = ( (precv_frame->u.hdr.attrib.seq_num&0xffff) << 4) |
- (precv_frame->u.hdr.attrib.frag_num & 0xf);
+ do
+ {
+ ret = _issue_probereq_p2p(adapter, da, wait_ms>0?_TRUE:_FALSE);
+ i++;
- //check RA matches or not
- if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), GetAddr1Ptr(pframe), ETH_ALEN))//for if1, sta/ap mode
- return _SUCCESS;
+ if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
+ break;
+ if(i < try_cnt && wait_ms > 0 && ret==_FAIL)
+ rtw_msleep_os(wait_ms);
- //recv_decache check
- if(GetRetry(pframe))
- {
- if(seq_ctrl == pmlmeext->action_public_rxseq)
- {
- DBG_871X("recv_Action_public_decache, seq_ctrl=0x%x, rxseq=0x%x\n", seq_ctrl, pmlmeext->action_public_rxseq);
+ }while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
- return _FAIL;
+ if (ret != _FAIL) {
+ ret = _SUCCESS;
+ #ifndef DBG_XMIT_ACK
+ goto exit;
+ #endif
+ }
+
+ if (try_cnt && wait_ms) {
+ if (da)
+ DBG_871X(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(adapter), MAC_ARG(da), rtw_get_oper_ch(adapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ else
+ DBG_871X(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(adapter), rtw_get_oper_ch(adapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ }
+exit:
+ return ret;
+}
+
+#endif //CONFIG_P2P
+
+s32 rtw_action_public_decache(union recv_frame *recv_frame, s32 token)
+{
+ _adapter *adapter = recv_frame->u.hdr.adapter;
+ struct mlme_ext_priv *mlmeext = &(adapter->mlmeextpriv);
+ u8 *frame = recv_frame->u.hdr.rx_data;
+ u16 seq_ctrl = ( (recv_frame->u.hdr.attrib.seq_num&0xffff) << 4) |
+ (recv_frame->u.hdr.attrib.frag_num & 0xf);
+
+ if (GetRetry(frame)) {
+ if (token >= 0) {
+ if ((seq_ctrl == mlmeext->action_public_rxseq)
+ && (token == mlmeext->action_public_dialog_token))
+ {
+ DBG_871X(FUNC_ADPT_FMT" seq_ctrl=0x%x, rxseq=0x%x, token:%d\n",
+ FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq, token);
+ return _FAIL;
+ }
+ } else {
+ if (seq_ctrl == mlmeext->action_public_rxseq) {
+ DBG_871X(FUNC_ADPT_FMT" seq_ctrl=0x%x, rxseq=0x%x\n",
+ FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq);
+ return _FAIL;
+ }
}
}
- pmlmeext->action_public_rxseq = seq_ctrl;
+ mlmeext->action_public_rxseq = seq_ctrl;
+
+ if (token >= 0)
+ mlmeext->action_public_dialog_token = token;
+
+ return _SUCCESS;
+}
+
+unsigned int on_action_public_p2p(union recv_frame *precv_frame)
+{
+ _adapter *padapter = precv_frame->u.hdr.adapter;
+ u8 *pframe = precv_frame->u.hdr.rx_data;
+ uint len = precv_frame->u.hdr.len;
+ u8 *frame_body;
+ u8 dialogToken=0;
+#ifdef CONFIG_P2P
+ u8 *p2p_ie;
+ u32 p2p_ielen, wps_ielen;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ u8 result = P2P_STATUS_SUCCESS;
+ u8 empty_addr[ETH_ALEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+ u8 *merged_p2pie = NULL;
+ u32 merged_p2p_ielen = 0;
+#endif //CONFIG_P2P
frame_body = (unsigned char *)(pframe + sizeof(struct rtw_ieee80211_hdr_3addr));
- category = frame_body[0];
- if(category != RTW_WLAN_CATEGORY_PUBLIC)
- return _SUCCESS;
+ dialogToken = frame_body[7];
- action = frame_body[ 1 ];
- if ( action == ACT_PUBLIC_P2P ) // IEEE 802.11 P2P Public Action usage.
- {
+ if (rtw_action_public_decache(precv_frame, dialogToken) == _FAIL)
+ return _FAIL;
+
#ifdef CONFIG_P2P
+ _cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey );
+#ifdef CONFIG_IOCTL_CFG80211
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211)
+ {
+ rtw_cfg80211_rx_p2p_action_public(padapter, pframe, len);
+ }
+ else
+#endif //CONFIG_IOCTL_CFG80211
+ {
// Do nothing if the driver doesn't enable the P2P function.
-#ifndef CONFIG_IOCTL_CFG80211
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
return _SUCCESS;
-#endif //CONFIG_IOCTL_CFG80211
- // Commented by Albert 20100908
- // Low byte -> High byte is 0x50, 0x6F, 0x9A, 0x09 for P2P OUI.
- // But the P2POUT is defined as 0x506F9A09 -> should use the cpu_to_be32
- if ( cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ) == P2POUI )
+ len -= sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ switch( frame_body[ 6 ] )//OUI Subtype
{
-#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
+ case P2P_GO_NEGO_REQ:
{
- rtw_cfg80211_rx_p2p_action_public(padapter, pframe, len);
+ DBG_871X( "[%s] Got GO Nego Req Frame\n", __FUNCTION__);
+ _rtw_memset( &pwdinfo->groupid_info, 0x00, sizeof( struct group_id_info ) );
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ))
+ {
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+ }
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_FAIL))
+ {
+ // Commented by Albert 20110526
+ // In this case, this means the previous nego fail doesn't be reset yet.
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ // Restore the previous p2p state
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+ DBG_871X( "[%s] Restore the previous p2p state to %d\n", __FUNCTION__, rtw_p2p_state(pwdinfo) );
+ }
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _cancel_timer_ex( &pwdinfo->ap_p2p_switch_timer );
+ }
+#endif // CONFIG_CONCURRENT_MODE
+
+ // Commented by Kurt 20110902
+ //Add if statement to avoid receiving duplicate prov disc req. such that pre_p2p_state would be covered.
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING))
+ rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+
+ // Commented by Kurt 20120113
+ // Get peer_dev_addr here if peer doesn't issue prov_disc frame.
+ if( _rtw_memcmp(pwdinfo->rx_prov_disc_info.peerDevAddr, empty_addr, ETH_ALEN) );
+ _rtw_memcpy(pwdinfo->rx_prov_disc_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN);
+
+ result = process_p2p_group_negotation_req( pwdinfo, frame_body, len );
+ issue_p2p_GO_response( padapter, GetAddr2Ptr(pframe), frame_body, len, result );
+#ifdef CONFIG_INTEL_WIDI
+ if( (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_LISTEN) && (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_WFD_CONNECTION) )
+ {
+ padapter->mlmepriv.widi_state = INTEL_WIDI_STATE_WFD_CONNECTION;
+ _cancel_timer_ex(&(padapter->mlmepriv.listen_timer));
+ intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_STOP_WK, NULL);
+ }
+#endif //CONFIG_INTEL_WIDI
+
+ // Commented by Albert 20110718
+ // No matter negotiating or negotiation failure, the driver should set up the restore P2P state timer.
+#ifdef CONFIG_CONCURRENT_MODE
+ // Commented by Albert 20120107
+ _set_timer( &pwdinfo->restore_p2p_state_timer, 3000 );
+#else // CONFIG_CONCURRENT_MODE
+ _set_timer( &pwdinfo->restore_p2p_state_timer, 5000 );
+#endif // CONFIG_CONCURRENT_MODE
+ break;
}
- else
-#endif //CONFIG_IOCTL_CFG80211
+ case P2P_GO_NEGO_RESP:
{
- len -= sizeof(struct rtw_ieee80211_hdr_3addr);
-
- switch( frame_body[ 6 ] )//OUI Subtype
+ DBG_871X( "[%s] Got GO Nego Resp Frame\n", __FUNCTION__);
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING))
{
- case P2P_GO_NEGO_REQ:
+ // Commented by Albert 20110425
+ // The restore timer is enabled when issuing the nego request frame of rtw_p2p_connect function.
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ pwdinfo->nego_req_info.benable = _FALSE;
+ result = process_p2p_group_negotation_resp( pwdinfo, frame_body, len);
+ issue_p2p_GO_confirm( pwdinfo->padapter, GetAddr2Ptr(pframe), result);
+ if ( P2P_STATUS_SUCCESS == result )
{
- DBG_8192C( "[%s] Got GO Nego Req Frame\n", __FUNCTION__);
- _rtw_memset( &pwdinfo->groupid_info, 0x00, sizeof( struct group_id_info ) );
-
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_FAIL))
+ if ( rtw_p2p_role(pwdinfo) == P2P_ROLE_CLIENT )
{
- // Commented by Albert 20110526
- // In this case, this means the previous nego fail doesn't be reset yet.
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- // Restore the previous p2p state
- rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
- DBG_871X( "[%s] Restore the previous p2p state to %d\n", __FUNCTION__, rtw_p2p_state(pwdinfo) );
- }
-
- // Commented by Kurt 20110902
- //Add if statement to avoid receiving duplicate prov disc req. such that pre_p2p_state would be covered.
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING))
- rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
-
- // Commented by Kurt 20120113
- // Get peer_dev_addr here if peer doesn't issue prov_disc frame.
- if( _rtw_memcmp(pwdinfo->rx_prov_disc_info.peerDevAddr, empty_addr, ETH_ALEN) );
- _rtw_memcpy(pwdinfo->rx_prov_disc_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN);
-
- result = process_p2p_group_negotation_req( pwdinfo, frame_body, len );
- issue_p2p_GO_response( padapter, GetAddr2Ptr(pframe), frame_body, len, result );
- // Commented by Albert 20110718
- // No matter negotiating or negotiation failure, the driver should set up the restore P2P state timer.
+ pwdinfo->p2p_info.operation_ch[ 0 ] = pwdinfo->peer_operating_ch;
+ #ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.operation_ch[ 1 ] = 1; //Check whether GO is operating in channel 1;
+ pwdinfo->p2p_info.operation_ch[ 2 ] = 6; //Check whether GO is operating in channel 6;
+ pwdinfo->p2p_info.operation_ch[ 3 ] = 11; //Check whether GO is operating in channel 11;
+ #endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.scan_op_ch_only = 1;
+ _set_timer( &pwdinfo->reset_ch_sitesurvey2, P2P_RESET_SCAN_CH );
+ }
+ }
+
+ // Reset the dialog token for group negotiation frames.
+ pwdinfo->negotiation_dialog_token = 1;
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_FAIL))
+ {
_set_timer( &pwdinfo->restore_p2p_state_timer, 5000 );
- break;
}
- case P2P_GO_NEGO_RESP:
+ }
+ else
+ {
+ DBG_871X( "[%s] Skipped GO Nego Resp Frame (p2p_state != P2P_STATE_GONEGO_ING)\n", __FUNCTION__);
+ }
+
+ break;
+ }
+ case P2P_GO_NEGO_CONF:
+ {
+ DBG_871X( "[%s] Got GO Nego Confirm Frame\n", __FUNCTION__);
+ result = process_p2p_group_negotation_confirm( pwdinfo, frame_body, len);
+ if ( P2P_STATUS_SUCCESS == result )
+ {
+ if ( rtw_p2p_role(pwdinfo) == P2P_ROLE_CLIENT )
{
- DBG_871X( "[%s] Got GO Nego Resp Frame\n", __FUNCTION__);
-
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING))
- {
- // Commented by Albert 20110425
- // The restore timer is enabled when issuing the nego request frame of rtw_p2p_connect function.
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- result = process_p2p_group_negotation_resp( pwdinfo, frame_body, len);
-
- issue_p2p_GO_confirm( pwdinfo->padapter, GetAddr2Ptr(pframe), result);
+ pwdinfo->p2p_info.operation_ch[ 0 ] = pwdinfo->peer_operating_ch;
+ #ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.operation_ch[ 1 ] = 1; //Check whether GO is operating in channel 1;
+ pwdinfo->p2p_info.operation_ch[ 2 ] = 6; //Check whether GO is operating in channel 6;
+ pwdinfo->p2p_info.operation_ch[ 3 ] = 11; //Check whether GO is operating in channel 11;
+ #endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.scan_op_ch_only = 1;
+ _set_timer( &pwdinfo->reset_ch_sitesurvey2, P2P_RESET_SCAN_CH );
+ }
+ }
+ break;
+ }
+ case P2P_INVIT_REQ:
+ {
+ // Added by Albert 2010/10/05
+ // Received the P2P Invite Request frame.
+
+ DBG_871X( "[%s] Got invite request frame!\n", __FUNCTION__ );
+ if ( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)) )
+ {
+ // Parse the necessary information from the P2P Invitation Request frame.
+ // For example: The MAC address of sending this P2P Invitation Request frame.
+ u32 attr_contentlen = 0;
+ u8 status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
+ struct group_id_info group_id;
+ u8 invitation_flag = 0;
- // Reset the dialog token for group negotiation frames.
- pwdinfo->negotiation_dialog_token = 1;
+ merged_p2p_ielen = rtw_get_p2p_merged_ies_len(frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_);
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_FAIL))
- {
- _set_timer( &pwdinfo->restore_p2p_state_timer, 5000 );
- }
- }
- else
- {
- DBG_8192C( "[%s] Skipped GO Nego Resp Frame (p2p_state != P2P_STATE_GONEGO_ING)\n", __FUNCTION__);
- }
-
- break;
- }
- case P2P_GO_NEGO_CONF:
+ merged_p2pie = rtw_malloc(merged_p2p_ielen);
+ if (merged_p2pie == NULL)
{
- DBG_8192C( "[%s] Got GO Nego Confirm Frame\n", __FUNCTION__);
- process_p2p_group_negotation_confirm( pwdinfo, frame_body, len);
- break;
+ DBG_871X( "[%s] Malloc p2p ie fail\n", __FUNCTION__);
+ goto exit;
}
- case P2P_INVIT_REQ:
+ _rtw_memset(merged_p2pie, 0x00, merged_p2p_ielen);
+
+ merged_p2p_ielen = rtw_p2p_merge_ies(frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, merged_p2pie);
+
+ rtw_get_p2p_attr_content( merged_p2pie, merged_p2p_ielen, P2P_ATTR_INVITATION_FLAGS, &invitation_flag, &attr_contentlen);
+ if ( attr_contentlen )
{
- // Added by Albert 2010/10/05
- // Received the P2P Invite Request frame.
-
- DBG_8192C( "[%s] Got invite request frame!\n", __FUNCTION__ );
- if ( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)) )
+
+ rtw_get_p2p_attr_content( merged_p2pie, merged_p2p_ielen, P2P_ATTR_GROUP_BSSID, pwdinfo->p2p_peer_interface_addr, &attr_contentlen);
+ // Commented by Albert 20120510
+ // Copy to the pwdinfo->p2p_peer_interface_addr.
+ // So that the WFD UI ( or Sigma ) can get the peer interface address by using the following command.
+ // #> iwpriv wlan0 p2p_get peer_ifa
+ // After having the peer interface address, the sigma can find the correct conf file for wpa_supplicant.
+
+ if ( attr_contentlen )
+ {
+ DBG_871X( "[%s] GO's BSSID = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
+ pwdinfo->p2p_peer_interface_addr[0], pwdinfo->p2p_peer_interface_addr[1],
+ pwdinfo->p2p_peer_interface_addr[2], pwdinfo->p2p_peer_interface_addr[3],
+ pwdinfo->p2p_peer_interface_addr[4], pwdinfo->p2p_peer_interface_addr[5] );
+ }
+
+ if ( invitation_flag & P2P_INVITATION_FLAGS_PERSISTENT )
{
- // Parse the necessary information from the P2P Invitation Request frame.
- // For example: The MAC address of sending this P2P Invitation Request frame.
- u8 groupid[ 38 ] = { 0x00 };
- u32 attr_contentlen = 0;
- u8 match_result = 0;
-
- rtw_get_p2p_attr_content( p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, groupid, &attr_contentlen);
- _rtw_memcpy( pwdinfo->p2p_peer_interface_addr, groupid, ETH_ALEN );
- rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ);
- DBG_871X( "[%s] peer address %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
- groupid[0], groupid[1], groupid[2], groupid[3], groupid[4], groupid[5] );
-
- if ( is_matched_in_profilelist( pwdinfo->p2p_peer_interface_addr, &pwdinfo->profileinfo[ 0 ] ) )
+ // Re-invoke the persistent group.
+
+ _rtw_memset( &group_id, 0x00, sizeof( struct group_id_info ) );
+ rtw_get_p2p_attr_content( merged_p2pie, merged_p2p_ielen, P2P_ATTR_GROUP_ID, ( u8* ) &group_id, &attr_contentlen);
+ if ( attr_contentlen )
{
- match_result = 1;
+ if ( _rtw_memcmp( group_id.go_device_addr, myid( &padapter->eeprompriv ), ETH_ALEN ) )
+ {
+ // The p2p device sending this p2p invitation request wants this Wi-Fi device to be the persistent GO.
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_GO );
+ rtw_p2p_set_role( pwdinfo, P2P_ROLE_GO );
+ status_code = P2P_STATUS_SUCCESS;
+ }
+ else
+ {
+ // The p2p device sending this p2p invitation request wants to be the persistent GO.
+ if ( is_matched_in_profilelist( pwdinfo->p2p_peer_interface_addr, &pwdinfo->profileinfo[ 0 ] ) )
+ {
+ u8 operatingch_info[5] = { 0x00 };
+
+ if ( rtw_get_p2p_attr_content(merged_p2pie, merged_p2p_ielen, P2P_ATTR_OPERATING_CH, operatingch_info, &attr_contentlen) )
+ {
+ if( rtw_ch_set_search_ch(padapter->mlmeextpriv.channel_set, (u32)operatingch_info[4] ) >= 0 )
+ {
+ // The operating channel is acceptable for this device.
+ pwdinfo->rx_invitereq_info.operation_ch[0]= operatingch_info[4];
+ #ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->rx_invitereq_info.operation_ch[1]= 1; //Check whether GO is operating in channel 1;
+ pwdinfo->rx_invitereq_info.operation_ch[2]= 6; //Check whether GO is operating in channel 6;
+ pwdinfo->rx_invitereq_info.operation_ch[3]= 11; //Check whether GO is operating in channel 11;
+ #endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->rx_invitereq_info.scan_op_ch_only = 1;
+ _set_timer( &pwdinfo->reset_ch_sitesurvey, P2P_RESET_SCAN_CH );
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_MATCH );
+ rtw_p2p_set_role( pwdinfo, P2P_ROLE_CLIENT );
+ status_code = P2P_STATUS_SUCCESS;
+ }
+ else
+ {
+ // The operating channel isn't supported by this device.
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_DISMATCH );
+ rtw_p2p_set_role( pwdinfo, P2P_ROLE_DEVICE );
+ status_code = P2P_STATUS_FAIL_NO_COMMON_CH;
+ _set_timer( &pwdinfo->restore_p2p_state_timer, 3000 );
+ }
+ }
+ else
+ {
+ // Commented by Albert 20121130
+ // Intel will use the different P2P IE to store the operating channel information
+ // Workaround for Intel WiDi 3.5
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_MATCH );
+ rtw_p2p_set_role( pwdinfo, P2P_ROLE_CLIENT );
+ status_code = P2P_STATUS_SUCCESS;
+ }
+ }
+ else
+ {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_DISMATCH );
+ #ifdef CONFIG_INTEL_WIDI
+ _rtw_memcpy( pwdinfo->p2p_peer_device_addr, group_id.go_device_addr , ETH_ALEN );
+ rtw_p2p_set_role( pwdinfo, P2P_ROLE_CLIENT );
+ #endif //CONFIG_INTEL_WIDI
+
+ status_code = P2P_STATUS_FAIL_UNKNOWN_P2PGROUP;
+ }
+ }
}
else
{
- match_result = 0;
- }
-
- DBG_8192C( "[%s] match_result = %d\n", __FUNCTION__, match_result );
-
- pwdinfo->inviteresp_info.token = frame_body[ 7 ];
- issue_p2p_invitation_response( padapter, pwdinfo->p2p_peer_interface_addr, pwdinfo->inviteresp_info.token, match_result );
+ DBG_871X( "[%s] P2P Group ID Attribute NOT FOUND!\n", __FUNCTION__ );
+ status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
+ }
}
-
- break;
- }
- case P2P_INVIT_RESP:
- {
- u8 attr_content = 0x00;
- u32 attr_contentlen = 0;
-
- DBG_871X( "[%s] Got invite response frame!\n", __FUNCTION__ );
- if ( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)) )
+ else
{
- rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, &attr_content, &attr_contentlen);
-
- if ( attr_contentlen == 1 )
+ // Received the invitation to join a P2P group.
+
+ _rtw_memset( &group_id, 0x00, sizeof( struct group_id_info ) );
+ rtw_get_p2p_attr_content( merged_p2pie, merged_p2p_ielen, P2P_ATTR_GROUP_ID, ( u8* ) &group_id, &attr_contentlen);
+ if ( attr_contentlen )
{
- DBG_871X( "[%s] Status = %d\n", __FUNCTION__, attr_content );
- if ( attr_content == P2P_STATUS_SUCCESS )
+ if ( _rtw_memcmp( group_id.go_device_addr, myid( &padapter->eeprompriv ), ETH_ALEN ) )
{
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
+ // In this case, the GO can't be myself.
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_DISMATCH );
+ status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
}
else
{
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ // The p2p device sending this p2p invitation request wants to join an existing P2P group
+ // Commented by Albert 2012/06/28
+ // In this case, this Wi-Fi device should use the iwpriv command to get the peer device address.
+ // The peer device address should be the destination address for the provisioning discovery request.
+ // Then, this Wi-Fi device should use the iwpriv command to get the peer interface address.
+ // The peer interface address should be the address for WPS mac address
+ _rtw_memcpy( pwdinfo->p2p_peer_device_addr, group_id.go_device_addr , ETH_ALEN );
+ rtw_p2p_set_role( pwdinfo, P2P_ROLE_CLIENT );
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_JOIN );
+ status_code = P2P_STATUS_SUCCESS;
}
}
else
{
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ DBG_871X( "[%s] P2P Group ID Attribute NOT FOUND!\n", __FUNCTION__ );
+ status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
}
}
- break;
}
- case P2P_DEVDISC_REQ:
+ else
+ {
+ DBG_871X( "[%s] P2P Invitation Flags Attribute NOT FOUND!\n", __FUNCTION__ );
+ status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
+ }
- process_p2p_devdisc_req(pwdinfo, pframe, len);
+ DBG_871X( "[%s] status_code = %d\n", __FUNCTION__, status_code );
- break;
+ pwdinfo->inviteresp_info.token = frame_body[ 7 ];
+ issue_p2p_invitation_response( padapter, GetAddr2Ptr(pframe), pwdinfo->inviteresp_info.token, status_code );
+ _set_timer( &pwdinfo->restore_p2p_state_timer, 3000 );
+ }
+#ifdef CONFIG_INTEL_WIDI
+ if( (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_LISTEN) && (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_WFD_CONNECTION) )
+ {
+ padapter->mlmepriv.widi_state = INTEL_WIDI_STATE_WFD_CONNECTION;
+ _cancel_timer_ex(&(padapter->mlmepriv.listen_timer));
+ intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_STOP_WK, NULL);
+ }
+#endif //CONFIG_INTEL_WIDI
+ break;
+ }
+ case P2P_INVIT_RESP:
+ {
+ u8 attr_content = 0x00;
+ u32 attr_contentlen = 0;
+
+ DBG_871X( "[%s] Got invite response frame!\n", __FUNCTION__ );
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ if ( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)) )
+ {
+ rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, &attr_content, &attr_contentlen);
+
+ if ( attr_contentlen == 1 )
+ {
+ DBG_871X( "[%s] Status = %d\n", __FUNCTION__, attr_content );
+ pwdinfo->invitereq_info.benable = _FALSE;
+
+ if ( attr_content == P2P_STATUS_SUCCESS )
+ {
+ if ( _rtw_memcmp( pwdinfo->invitereq_info.go_bssid, myid( &padapter->eeprompriv ), ETH_ALEN ))
+ {
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO );
+ }
+ else
+ {
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
+ }
+ rtw_p2p_set_state( pwdinfo, P2P_STATE_RX_INVITE_RESP_OK );
+ }
+ else
+ {
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ rtw_p2p_set_state( pwdinfo, P2P_STATE_RX_INVITE_RESP_FAIL );
+ }
+ }
+ else
+ {
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ rtw_p2p_set_state( pwdinfo, P2P_STATE_RX_INVITE_RESP_FAIL );
+ }
+ }
+ else
+ {
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ rtw_p2p_set_state( pwdinfo, P2P_STATE_RX_INVITE_RESP_FAIL );
+ }
- case P2P_DEVDISC_RESP:
+ if ( rtw_p2p_chk_state( pwdinfo, P2P_STATE_RX_INVITE_RESP_FAIL ) )
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, 5000 );
+ }
+ break;
+ }
+ case P2P_DEVDISC_REQ:
- process_p2p_devdisc_resp(pwdinfo, pframe, len);
+ process_p2p_devdisc_req(pwdinfo, pframe, len);
- break;
+ break;
- case P2P_PROVISION_DISC_REQ:
- DBG_871X( "[%s] Got Provisioning Discovery Request Frame\n", __FUNCTION__ );
- process_p2p_provdisc_req(pwdinfo, pframe, len);
- _rtw_memcpy(pwdinfo->rx_prov_disc_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN);
+ case P2P_DEVDISC_RESP:
- //20110902 Kurt
- //Add the following statement to avoid receiving duplicate prov disc req. such that pre_p2p_state would be covered.
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ))
- rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+ process_p2p_devdisc_resp(pwdinfo, pframe, len);
- rtw_p2p_set_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ);
- _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
- break;
+ break;
- case P2P_PROVISION_DISC_RESP:
- // Commented by Albert 20110707
- // Should we check the pwdinfo->tx_prov_disc_info.bsent flag here??
- DBG_871X( "[%s] Got Provisioning Discovery Response Frame\n", __FUNCTION__ );
- // Commented by Albert 20110426
- // The restore timer is enabled when issuing the provisioing request frame in rtw_p2p_prov_disc function.
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- rtw_p2p_set_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_RSP);
- process_p2p_provdisc_resp(pwdinfo, pframe);
- _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
- break;
+ case P2P_PROVISION_DISC_REQ:
+ DBG_871X( "[%s] Got Provisioning Discovery Request Frame\n", __FUNCTION__ );
+ process_p2p_provdisc_req(pwdinfo, pframe, len);
+ _rtw_memcpy(pwdinfo->rx_prov_disc_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN);
+ //20110902 Kurt
+ //Add the following statement to avoid receiving duplicate prov disc req. such that pre_p2p_state would be covered.
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ))
+ rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ);
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
+#ifdef CONFIG_INTEL_WIDI
+ if( (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_LISTEN) && (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_WFD_CONNECTION) )
+ {
+ padapter->mlmepriv.widi_state = INTEL_WIDI_STATE_WFD_CONNECTION;
+ _cancel_timer_ex(&(padapter->mlmepriv.listen_timer));
+ intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_STOP_WK, NULL);
}
- }
+#endif //CONFIG_INTEL_WIDI
+ break;
- }
+ case P2P_PROVISION_DISC_RESP:
+ // Commented by Albert 20110707
+ // Should we check the pwdinfo->tx_prov_disc_info.bsent flag here??
+ DBG_871X( "[%s] Got Provisioning Discovery Response Frame\n", __FUNCTION__ );
+ // Commented by Albert 20110426
+ // The restore timer is enabled when issuing the provisioing request frame in rtw_p2p_prov_disc function.
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_RSP);
+ process_p2p_provdisc_resp(pwdinfo, pframe);
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
+ break;
+
+ }
+ }
#endif //CONFIG_P2P
+
+exit:
+
+ if(merged_p2pie)
+ {
+ rtw_mfree(merged_p2pie, merged_p2p_ielen);
}
-
+
return _SUCCESS;
}
+unsigned int on_action_public_vendor(union recv_frame *precv_frame)
+{
+ unsigned int ret = _FAIL;
+ u8 *pframe = precv_frame->u.hdr.rx_data;
+ uint frame_len = precv_frame->u.hdr.len;
+ u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ if (_rtw_memcmp(frame_body + 2, P2P_OUI, 4) == _TRUE) {
+ ret = on_action_public_p2p(precv_frame);
+ }
+
+ return ret;
+}
+
+unsigned int on_action_public_default(union recv_frame *precv_frame, u8 action)
+{
+ unsigned int ret = _FAIL;
+ u8 *pframe = precv_frame->u.hdr.rx_data;
+ uint frame_len = precv_frame->u.hdr.len;
+ u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
+ u8 token;
+ _adapter *adapter = precv_frame->u.hdr.adapter;
+ int cnt = 0;
+ char msg[64];
+
+ token = frame_body[2];
+
+ if (rtw_action_public_decache(precv_frame, token) == _FAIL)
+ goto exit;
+
+ #ifdef CONFIG_IOCTL_CFG80211
+ cnt += sprintf((msg+cnt), "%s(token:%u)", action_public_str(action), token);
+ rtw_cfg80211_rx_action(adapter, pframe, frame_len, msg);
+ #endif
+
+ ret = _SUCCESS;
+
+exit:
+ return ret;
+}
+
+unsigned int on_action_public(_adapter *padapter, union recv_frame *precv_frame)
+{
+ unsigned int ret = _FAIL;
+ u8 *pframe = precv_frame->u.hdr.rx_data;
+ uint frame_len = precv_frame->u.hdr.len;
+ u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
+ u8 category, action;
+
+ /* check RA matches or not */
+ if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), GetAddr1Ptr(pframe), ETH_ALEN))
+ goto exit;
+
+ category = frame_body[0];
+ if(category != RTW_WLAN_CATEGORY_PUBLIC)
+ goto exit;
+
+ action = frame_body[1];
+ switch (action) {
+ case ACT_PUBLIC_VENDOR:
+ ret = on_action_public_vendor(precv_frame);
+ break;
+ default:
+ ret = on_action_public_default(precv_frame, action);
+ break;
+ }
+
+exit:
+ return ret;
+}
+
unsigned int OnAction_ht(_adapter *padapter, union recv_frame *precv_frame)
{
return _SUCCESS;
}
+#ifdef CONFIG_IEEE80211W
+unsigned int OnAction_sa_query(_adapter *padapter, union recv_frame *precv_frame)
+{
+ u8 *pframe = precv_frame->u.hdr.rx_data;
+ struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ unsigned short tid;
+ //Baron
+
+ DBG_871X("OnAction_sa_query\n");
+
+ switch (pframe[WLAN_HDR_A3_LEN+1])
+ {
+ case 0: //SA Query req
+ _rtw_memcpy(&tid, &pframe[WLAN_HDR_A3_LEN+2], sizeof(unsigned short));
+ DBG_871X("OnAction_sa_query request,action=%d, tid=%04x\n", pframe[WLAN_HDR_A3_LEN+1], tid);
+ issue_action_SA_Query(padapter, GetAddr2Ptr(pframe), 1, tid);
+ break;
+
+ case 1: //SA Query rsp
+ _cancel_timer_ex(&pmlmeext->sa_query_timer);
+ DBG_871X("OnAction_sa_query response,action=%d, tid=%04x, cancel timer\n", pframe[WLAN_HDR_A3_LEN+1], pframe[WLAN_HDR_A3_LEN+2]);
+ break;
+ default:
+ break;
+ }
+ if(0)
+ {
+ int pp;
+ printk("pattrib->pktlen = %d =>", pattrib->pkt_len);
+ for(pp=0;pp< pattrib->pkt_len; pp++)
+ printk(" %02x ", pframe[pp]);
+ printk("\n");
+ }
+
+ return _SUCCESS;
+}
+#endif //CONFIG_IEEE80211W
+
unsigned int OnAction_wmm(_adapter *padapter, union recv_frame *precv_frame)
{
return _SUCCESS;
@@ -4657,7 +6186,7 @@ unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame)
return _SUCCESS;
#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
rtw_cfg80211_rx_action_p2p(padapter, pframe, len);
return _SUCCESS;
@@ -4665,7 +6194,7 @@ unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame)
else
#endif //CONFIG_IOCTL_CFG80211
{
- len -= sizeof(struct rtw_ieee80211_hdr_3addr);
+ len -= sizeof(struct rtw_ieee80211_hdr_3addr);
OUI_Subtype = frame_body[5];
dialogToken = frame_body[6];
@@ -4694,7 +6223,6 @@ unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame)
}
}
-
#endif //CONFIG_P2P
return _SUCCESS;
@@ -4728,43 +6256,53 @@ unsigned int OnAction(_adapter *padapter, union recv_frame *precv_frame)
unsigned int DoReserved(_adapter *padapter, union recv_frame *precv_frame)
{
- u8 *pframe = precv_frame->u.hdr.rx_data;
- uint len = precv_frame->u.hdr.len;
//DBG_871X("rcvd mgt frame(%x, %x)\n", (GetFrameSubType(pframe) >> 4), *(unsigned int *)GetAddr1Ptr(pframe));
return _SUCCESS;
}
-struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv)
+struct xmit_frame *_alloc_mgtxmitframe(struct xmit_priv *pxmitpriv, bool once)
{
- struct xmit_frame *pmgntframe;
- struct xmit_buf *pxmitbuf;
+ struct xmit_frame *pmgntframe;
+ struct xmit_buf *pxmitbuf;
- if ((pmgntframe = rtw_alloc_xmitframe(pxmitpriv)) == NULL)
- {
- DBG_871X("%s, alloc xmitframe fail\n", __FUNCTION__);
- return NULL;
+ if (once)
+ pmgntframe = rtw_alloc_xmitframe_once(pxmitpriv);
+ else
+ pmgntframe = rtw_alloc_xmitframe_ext(pxmitpriv);
+
+ if (pmgntframe == NULL) {
+ DBG_871X(FUNC_ADPT_FMT" alloc xmitframe fail, once:%d\n", FUNC_ADPT_ARG(pxmitpriv->adapter), once);
+ goto exit;
}
- if ((pxmitbuf = rtw_alloc_xmitbuf_ext(pxmitpriv)) == NULL)
- {
- DBG_871X("%s, alloc xmitbuf fail\n", __FUNCTION__);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- return NULL;
+ if ((pxmitbuf = rtw_alloc_xmitbuf_ext(pxmitpriv)) == NULL) {
+ DBG_871X(FUNC_ADPT_FMT" alloc xmitbuf fail\n", FUNC_ADPT_ARG(pxmitpriv->adapter));
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ pmgntframe = NULL;
+ goto exit;
}
pmgntframe->frame_tag = MGNT_FRAMETAG;
-
pmgntframe->pxmitbuf = pxmitbuf;
-
pmgntframe->buf_addr = pxmitbuf->pbuf;
-
pxmitbuf->priv_data = pmgntframe;
+exit:
return pmgntframe;
}
+inline struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv)
+{
+ return _alloc_mgtxmitframe(pxmitpriv, _FALSE);
+}
+
+inline struct xmit_frame *alloc_mgtxmitframe_once(struct xmit_priv *pxmitpriv)
+{
+ return _alloc_mgtxmitframe(pxmitpriv, _TRUE);
+}
+
/****************************************************************************
@@ -4772,6 +6310,15 @@ Following are some TX fuctions for WiFi MLME
*****************************************************************************/
+void update_mgnt_tx_rate(_adapter *padapter, u8 rate)
+{
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+
+ pmlmeext->tx_rate = rate;
+
+ //DBG_871X("%s(): rate = %x\n",__FUNCTION__, rate);
+}
+
void update_mgntframe_attrib(_adapter *padapter, struct pkt_attrib *pattrib)
{
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
@@ -4810,1305 +6357,1051 @@ void dump_mgntframe(_adapter *padapter, struct xmit_frame *pmgntframe)
{
if(padapter->bSurpriseRemoved == _TRUE ||
padapter->bDriverStopped == _TRUE)
- return;
-
- padapter->HalFunc.mgnt_xmit(padapter, pmgntframe);
-}
-
-//Commented by Kurt
-#ifdef CONFIG_TDLS
-void issue_nulldata_to_TDLS_peer_STA(_adapter *padapter, struct sta_info *ptdls_sta, unsigned int power_mode)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- unsigned char *pframe;
- struct rtw_ieee80211_hdr *pwlanhdr;
- unsigned short *fctrl;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
+ rtw_free_xmitbuf(&padapter->xmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(&padapter->xmitpriv, pmgntframe);
return;
}
- //update attribute
- pattrib = &pmgntframe->attrib;
- update_mgntframe_attrib(padapter, pattrib);
-
- _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+ rtw_hal_mgnt_xmit(padapter, pmgntframe);
+}
- pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+s32 dump_mgntframe_and_wait(_adapter *padapter, struct xmit_frame *pmgntframe, int timeout_ms)
+{
+ s32 ret = _FAIL;
+ _irqL irqL;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ struct xmit_buf *pxmitbuf = pmgntframe->pxmitbuf;
+ struct submit_ctx sctx;
- fctrl = &(pwlanhdr->frame_ctl);
- *(fctrl) = 0;
-// SetToDs(fctrl);
- if (power_mode)
+ if(padapter->bSurpriseRemoved == _TRUE ||
+ padapter->bDriverStopped == _TRUE)
{
- SetPwrMgt(fctrl);
+ rtw_free_xmitbuf(&padapter->xmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(&padapter->xmitpriv, pmgntframe);
+ return ret;
}
- _rtw_memcpy(pwlanhdr->addr1, ptdls_sta->hwaddr, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
+ rtw_sctx_init(&sctx, timeout_ms);
+ pxmitbuf->sctx = &sctx;
- ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority]++;
- ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority] &= 0xFFF;
- pattrib->seqnum = ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority];
- SetSeqNum(pwlanhdr, pattrib->seqnum);
-
- SetFrameSubType(pframe, WIFI_DATA_NULL);
+ ret = rtw_hal_mgnt_xmit(padapter, pmgntframe);
- pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+ if (ret == _SUCCESS)
+ ret = rtw_sctx_wait(&sctx);
- pattrib->last_txcmdsz = pattrib->pktlen;
- dump_mgntframe(padapter, pmgntframe);
+ _enter_critical(&pxmitpriv->lock_sctx, &irqL);
+ pxmitbuf->sctx = NULL;
+ _exit_critical(&pxmitpriv->lock_sctx, &irqL);
- return;
+ return ret;
}
-s32 update_tdls_attrib(_adapter *padapter, struct pkt_attrib *pattrib)
+s32 dump_mgntframe_and_wait_ack(_adapter *padapter, struct xmit_frame *pmgntframe)
{
+#ifdef CONFIG_XMIT_ACK
+ s32 ret = _FAIL;
+ u32 timeout_ms = 500;// 500ms
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ #ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->pbuddy_adapter && !padapter->isprimary)
+ pxmitpriv = &(padapter->pbuddy_adapter->xmitpriv);
+ #endif
- struct sta_info *psta = NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct security_priv *psecuritypriv = &padapter->securitypriv;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct qos_priv *pqospriv= &pmlmepriv->qospriv;
+ if(padapter->bSurpriseRemoved == _TRUE ||
+ padapter->bDriverStopped == _TRUE)
+ {
+ rtw_free_xmitbuf(&padapter->xmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(&padapter->xmitpriv, pmgntframe);
+ return -1;
+ }
- s32 res=_SUCCESS;
- sint bmcast;
+ _enter_critical_mutex(&pxmitpriv->ack_tx_mutex, NULL);
+ pxmitpriv->ack_tx = _TRUE;
- bmcast = IS_MCAST(pattrib->ra);
-
- psta = rtw_get_stainfo(pstapriv, pattrib->ra);
- if (psta == NULL) {
- res =_FAIL;
- goto exit;
+ pmgntframe->ack_report = 1;
+ if (rtw_hal_mgnt_xmit(padapter, pmgntframe) == _SUCCESS) {
+ ret = rtw_ack_tx_wait(pxmitpriv, timeout_ms);
}
- pattrib->mac_id = psta->mac_id;
-
- pattrib->psta = psta;
+ pxmitpriv->ack_tx = _FALSE;
+ _exit_critical_mutex(&pxmitpriv->ack_tx_mutex, NULL);
- pattrib->ack_policy = 0;
- // get ether_hdr_len
- pattrib->pkt_hdrlen = ETH_HLEN;//(pattrib->ether_type == 0x8100) ? (14 + 4 ): 14; //vlan tag
+ return ret;
+#else //!CONFIG_XMIT_ACK
+ dump_mgntframe(padapter, pmgntframe);
+ rtw_msleep_os(50);
+ return _SUCCESS;
+#endif //!CONFIG_XMIT_ACK
+}
- if (pqospriv->qos_option && psta->qos_option) {
- pattrib->priority = 1; //tdls management frame should be AC_BK
- pattrib->hdrlen = WLAN_HDR_A3_QOS_LEN;
- pattrib->subtype = WIFI_QOS_DATA_TYPE;
- } else {
- pattrib->hdrlen = WLAN_HDR_A3_LEN;
- pattrib->subtype = WIFI_DATA_TYPE;
- pattrib->priority = 0;
- }
+int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
+{
+ u8 *ssid_ie;
+ sint ssid_len_ori;
+ int len_diff = 0;
+
+ ssid_ie = rtw_get_ie(ies, WLAN_EID_SSID, &ssid_len_ori, ies_len);
- if (psta->ieee8021x_blocked == _TRUE)
- {
- pattrib->encrypt = 0;
- }
- else
+ //DBG_871X("%s hidden_ssid_mode:%u, ssid_ie:%p, ssid_len_ori:%d\n", __FUNCTION__, hidden_ssid_mode, ssid_ie, ssid_len_ori);
+
+ if(ssid_ie && ssid_len_ori>0)
{
- GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast);
-
- switch(psecuritypriv->dot11AuthAlgrthm)
+ switch(hidden_ssid_mode)
{
- case dot11AuthAlgrthm_Open:
- case dot11AuthAlgrthm_Shared:
- case dot11AuthAlgrthm_Auto:
- pattrib->key_idx = (u8)psecuritypriv->dot11PrivacyKeyIndex;
+ case 1:
+ {
+ u8 *next_ie = ssid_ie + 2 + ssid_len_ori;
+ u32 remain_len = 0;
+
+ remain_len = ies_len -(next_ie-ies);
+
+ ssid_ie[1] = 0;
+ _rtw_memcpy(ssid_ie+2, next_ie, remain_len);
+ len_diff -= ssid_len_ori;
+
break;
- case dot11AuthAlgrthm_8021X:
- pattrib->key_idx = 0;
+ }
+ case 2:
+ _rtw_memset(&ssid_ie[2], 0, ssid_len_ori);
break;
default:
- pattrib->key_idx = 0;
break;
}
}
- switch (pattrib->encrypt)
- {
- case _WEP40_:
- case _WEP104_:
- pattrib->iv_len = 4;
- pattrib->icv_len = 4;
- break;
- case _TKIP_:
- pattrib->iv_len = 8;
- pattrib->icv_len = 4;
- if(padapter->securitypriv.busetkipkey==_FAIL)
- {
- res =_FAIL;
- goto exit;
- }
- break;
- case _AES_:
- pattrib->iv_len = 8;
- pattrib->icv_len = 8;
- break;
- default:
- pattrib->iv_len = 0;
- pattrib->icv_len = 0;
- break;
- }
-
- if (pattrib->encrypt &&
- ((padapter->securitypriv.sw_encrypt == _TRUE) || (psecuritypriv->hw_decrypted == _FALSE)))
- {
- pattrib->bswenc = _TRUE;
- } else {
- pattrib->bswenc = _FALSE;
- }
-
- //qos_en, ht_en, init rate, ,bw, ch_offset, sgi
- pattrib->qos_en = psta->qos_option;
- pattrib->ht_en = psta->htpriv.ht_option;
- pattrib->raid = psta->raid;
- pattrib->bwmode = psta->htpriv.bwmode;
- pattrib->ch_offset = psta->htpriv.ch_offset;
- pattrib->sgi= psta->htpriv.sgi;
- pattrib->ampdu_en = _FALSE;
-
- if(pattrib->ht_en && psta->htpriv.ampdu_enable)
- {
- if(psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
- pattrib->ampdu_en = _TRUE;
- }
-
-exit:
-
- return res;
+ return len_diff;
}
-void free_tdls_sta(_adapter *padapter, struct sta_info *ptdls_sta)
+void issue_beacon(_adapter *padapter)
{
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
- struct sta_priv *pstapriv = &padapter->stapriv;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ unsigned short *fctrl;
+ unsigned int rate_len;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
_irqL irqL;
-
- //free peer sta_info
- DBG_8192C("Free sta_info\n");
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- ptdlsinfo->sta_cnt--;
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- if( ptdlsinfo->sta_cnt < (NUM_STA - 1 ) )
- {
- ptdlsinfo->sta_maximum = _FALSE;
- _rtw_memset( &ptdlsinfo->ss_record, 0x00, sizeof(struct tdls_ss_record) );
- }
- //ready to clear cam
- if(ptdls_sta->cam_entry!=0){
- ptdlsinfo->cam_entry_to_clear=ptdls_sta->cam_entry;
- rtw_setstakey_cmd(padapter, (u8 *)ptdls_sta, _TRUE);
- }
-
- if(ptdlsinfo->sta_cnt==0){
- rtw_tdls_cmd(padapter, myid(&(padapter->eeprompriv)), TDLS_RS_RCR);
- ptdlsinfo->setup_state=UN_TDLS_STATE;
- }
-
- rtw_free_stainfo(padapter, ptdls_sta);
-
-}
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+#endif //#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
+ u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
+#endif //CONFIG_P2P
-void issue_tdls_setup_req(_adapter *padapter, u8 *mac_addr)
-{
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *ptdls_sta= NULL;
- _irqL irqL;
- static u8 dialogtoken = 0;
- u32 timeout_interval= TPK_RESEND_COUNT * 1000; //retry timer should set at least 301 sec, using TPK_count counting 301 times.
- if(ptdlsinfo->ap_prohibited == _TRUE)
- goto exit;
+ //DBG_871X("%s\n", __FUNCTION__);
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
+ DBG_871X("%s, alloc mgnt frame fail\n", __FUNCTION__);
return;
}
-
+#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+ _enter_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+#endif //#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+
//update attribute
pattrib = &pmgntframe->attrib;
+ update_mgntframe_attrib(padapter, pattrib);
+ pattrib->qsel = 0x10;
+
+ _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+
+ fctrl = &(pwlanhdr->frame_ctl);
+ *(fctrl) = 0;
+
+ _rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(cur_network), ETH_ALEN);
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
-
- _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ SetSeqNum(pwlanhdr, 0/*pmlmeext->mgnt_seq*/);
+ //pmlmeext->mgnt_seq++;
+ SetFrameSubType(pframe, WIFI_BEACON);
+
+ pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof (struct rtw_ieee80211_hdr_3addr);
+
+ if( (pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
+ {
+ //DBG_871X("ie len=%d\n", cur_network->IELength);
+#ifdef CONFIG_P2P
+ // for P2P : Primary Device Type & Device Name
+ u32 wpsielen=0, insert_len=0;
+ u8 *wpsie=NULL;
+ wpsie = rtw_get_wps_ie(cur_network->IEs+_FIXED_IE_LENGTH_, cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wpsielen);
+
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) && wpsie && wpsielen>0)
+ {
+ uint wps_offset, remainder_ielen;
+ u8 *premainder_ie, *pframe_wscie;
+
+ wps_offset = (uint)(wpsie - cur_network->IEs);
- _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ premainder_ie = wpsie + wpsielen;
- update_tdls_attrib(padapter, pattrib);
+ remainder_ielen = cur_network->IELength - wps_offset - wpsielen;
- //init peer sta_info
- ptdls_sta = rtw_get_stainfo(pstapriv, mac_addr);
- if(ptdls_sta==NULL)
- {
- ptdls_sta = rtw_alloc_stainfo(pstapriv, mac_addr);
- if(ptdls_sta)
- {
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- ptdlsinfo->sta_cnt++;
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- if( ptdlsinfo->sta_cnt == (NUM_STA - 1) )
+#ifdef CONFIG_IOCTL_CFG80211
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- ptdlsinfo->sta_maximum = _TRUE;
+ if(pmlmepriv->wps_beacon_ie && pmlmepriv->wps_beacon_ie_len>0)
+ {
+ _rtw_memcpy(pframe, cur_network->IEs, wps_offset);
+ pframe += wps_offset;
+ pattrib->pktlen += wps_offset;
+
+ _rtw_memcpy(pframe, pmlmepriv->wps_beacon_ie, pmlmepriv->wps_beacon_ie_len);
+ pframe += pmlmepriv->wps_beacon_ie_len;
+ pattrib->pktlen += pmlmepriv->wps_beacon_ie_len;
+
+ //copy remainder_ie to pframe
+ _rtw_memcpy(pframe, premainder_ie, remainder_ielen);
+ pframe += remainder_ielen;
+ pattrib->pktlen += remainder_ielen;
+ }
+ else
+ {
+ _rtw_memcpy(pframe, cur_network->IEs, cur_network->IELength);
+ pframe += cur_network->IELength;
+ pattrib->pktlen += cur_network->IELength;
+ }
}
- }
- else
- {
- rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- }
-
- if(ptdls_sta){
- ptdls_sta->tdls_sta_state |= TDLS_RESPONDER_STATE;
- //for tdls; ptdls_sta->aid is used to fill dialogtoken
- ptdls_sta->dialog = dialogtoken;
- dialogtoken = (dialogtoken+1)%256;
- ptdls_sta->TDLS_PeerKey_Lifetime = timeout_interval;
- _set_timer( &ptdls_sta->handshake_timer, TDLS_HANDSHAKE_TIME );
- }
+ else
+#endif //CONFIG_IOCTL_CFG80211
+ {
+ pframe_wscie = pframe + wps_offset;
+ _rtw_memcpy(pframe, cur_network->IEs, wps_offset+wpsielen);
+ pframe += (wps_offset + wpsielen);
+ pattrib->pktlen += (wps_offset + wpsielen);
- pattrib->qsel=pattrib->priority;
- if(rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_SETUP_REQUEST) !=_SUCCESS ){
- rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
+ //now pframe is end of wsc ie, insert Primary Device Type & Device Name
+ // Primary Device Type
+ // Type:
+ *(u16*) ( pframe + insert_len) = cpu_to_be16( WPS_ATTR_PRIMARY_DEV_TYPE );
+ insert_len += 2;
+
+ // Length:
+ *(u16*) ( pframe + insert_len ) = cpu_to_be16( 0x0008 );
+ insert_len += 2;
+
+ // Value:
+ // Category ID
+ *(u16*) ( pframe + insert_len ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
+ insert_len += 2;
-exit:
+ // OUI
+ *(u32*) ( pframe + insert_len ) = cpu_to_be32( WPSOUI );
+ insert_len += 4;
- return;
-}
+ // Sub Category ID
+ *(u16*) ( pframe + insert_len ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
+ insert_len += 2;
-void issue_tdls_teardown(_adapter *padapter, u8 *mac_addr)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *ptdls_sta=NULL;
- _irqL irqL;
- ptdls_sta = rtw_get_stainfo(pstapriv, mac_addr);
- if(ptdls_sta==NULL){
- DBG_8192C("issue tdls teardown unsuccessful\n");
- return;
- }else{
- ptdls_sta->tdls_sta_state=UN_TDLS_STATE;
- }
+ // Device Name
+ // Type:
+ *(u16*) ( pframe + insert_len ) = cpu_to_be16( WPS_ATTR_DEVICE_NAME );
+ insert_len += 2;
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
- }
-
- //update attribute
- pattrib = &pmgntframe->attrib;
+ // Length:
+ *(u16*) ( pframe + insert_len ) = cpu_to_be16( pwdinfo->device_name_len );
+ insert_len += 2;
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
+ // Value:
+ _rtw_memcpy( pframe + insert_len, pwdinfo->device_name, pwdinfo->device_name_len );
+ insert_len += pwdinfo->device_name_len;
- _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ //update wsc ie length
+ *(pframe_wscie+1) = (wpsielen -2) + insert_len;
- update_tdls_attrib(padapter, pattrib);
- pattrib->qsel=pattrib->priority;
- if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_TEARDOWN) != _SUCCESS) {
- rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
+ //pframe move to end
+ pframe+=insert_len;
+ pattrib->pktlen += insert_len;
- if(ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE){
- ptdls_sta->option =3;
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
- }
-
- if( ptdls_sta->timer_flag == 1 )
- {
- _enter_critical_bh(&(padapter->tdlsinfo.hdl_lock), &irqL);
- ptdls_sta->timer_flag = 2;
- _exit_critical_bh(&(padapter->tdlsinfo.hdl_lock), &irqL);
- }
- else
- rtw_tdls_cmd(padapter, mac_addr, TDLS_FREE_STA );
+ //copy remainder_ie to pframe
+ _rtw_memcpy(pframe, premainder_ie, remainder_ielen);
+ pframe += remainder_ielen;
+ pattrib->pktlen += remainder_ielen;
+ }
+ }
+ else
+#endif //CONFIG_P2P
+ {
+ int len_diff;
+ _rtw_memcpy(pframe, cur_network->IEs, cur_network->IELength);
+ len_diff = update_hidden_ssid(
+ pframe+_BEACON_IE_OFFSET_
+ , cur_network->IELength-_BEACON_IE_OFFSET_
+ , pmlmeinfo->hidden_ssid_mode
+ );
+ pframe += (cur_network->IELength+len_diff);
+ pattrib->pktlen += (cur_network->IELength+len_diff);
+ }
+ {
+ u8 *wps_ie;
+ uint wps_ielen;
+ u8 sr = 0;
+ wps_ie = rtw_get_wps_ie(pmgntframe->buf_addr+TXDESC_OFFSET+sizeof (struct rtw_ieee80211_hdr_3addr)+_BEACON_IE_OFFSET_,
+ pattrib->pktlen-sizeof (struct rtw_ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen);
+ if (wps_ie && wps_ielen>0) {
+ rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8*)(&sr), NULL);
+ }
+ if (sr != 0)
+ set_fwstate(pmlmepriv, WIFI_UNDER_WPS);
+ else
+ _clr_fwstate_(pmlmepriv, WIFI_UNDER_WPS);
+ }
-exit:
+#ifdef CONFIG_P2P
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ {
+ u32 len;
+#ifdef CONFIG_IOCTL_CFG80211
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
+ {
+ len = pmlmepriv->p2p_beacon_ie_len;
+ if(pmlmepriv->p2p_beacon_ie && len>0)
+ _rtw_memcpy(pframe, pmlmepriv->p2p_beacon_ie, len);
+ }
+ else
+#endif //CONFIG_IOCTL_CFG80211
+ {
+ len = build_beacon_p2p_ie(pwdinfo, pframe);
+ }
- return;
-}
+ pframe += len;
+ pattrib->pktlen += len;
+#ifdef CONFIG_WFD
+#ifdef CONFIG_IOCTL_CFG80211
+ if(_TRUE == pwdinfo->wfd_info->wfd_enable)
+#endif //CONFIG_IOCTL_CFG80211
+ {
+ len = build_beacon_wfd_ie( pwdinfo, pframe );
+ }
+#ifdef CONFIG_IOCTL_CFG80211
+ else
+ {
+ len = 0;
+ if(pmlmepriv->wfd_beacon_ie && pmlmepriv->wfd_beacon_ie_len>0)
+ {
+ len = pmlmepriv->wfd_beacon_ie_len;
+ _rtw_memcpy(pframe, pmlmepriv->wfd_beacon_ie, len);
+ }
+ }
+#endif //CONFIG_IOCTL_CFG80211
+ pframe += len;
+ pattrib->pktlen += len;
+#endif //CONFIG_WFD
+ }
+#endif //CONFIG_P2P
+
+ goto _issue_bcn;
-void issue_tdls_dis_req(_adapter *padapter, u8 *mac_addr)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- u8 baddr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
}
-
- //update attribute
- pattrib = &pmgntframe->attrib;
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
+ //below for ad-hoc mode
- if(mac_addr == NULL)
- _rtw_memcpy(pattrib->dst, baddr, ETH_ALEN);
- else
- _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
-
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ //timestamp will be inserted by hardware
+ pframe += 8;
+ pattrib->pktlen += 8;
- _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ // beacon interval: 2 bytes
- update_tdls_attrib(padapter, pattrib);
- pattrib->qsel=pattrib->priority;
- if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_DISCOVERY_REQUEST) != _SUCCESS) {
- rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
- DBG_8192C("issue tdls dis req\n");
+ _rtw_memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->IEs)), 2);
-exit:
+ pframe += 2;
+ pattrib->pktlen += 2;
- return;
-}
+ // capability info: 2 bytes
-void issue_tdls_setup_rsp(_adapter *padapter, union recv_frame *precv_frame)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct rx_pkt_attrib *rx_pkt_pattrib = &precv_frame->u.hdr.attrib;
- _irqL irqL;
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
- }
-
- //update attribute
- pattrib = &pmgntframe->attrib;
-
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
+ _rtw_memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->IEs)), 2);
- _rtw_memcpy(pattrib->dst, rx_pkt_pattrib->src, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ pframe += 2;
+ pattrib->pktlen += 2;
- _rtw_memcpy(pattrib->ra, rx_pkt_pattrib->bssid, ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ // SSID
+ pframe = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pattrib->pktlen);
- update_tdls_attrib(padapter, pattrib);
- pattrib->qsel=pattrib->priority;
- if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_SETUP_RESPONSE) != _SUCCESS) {
- rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
+ // supported rates...
+ rate_len = rtw_get_rateset_len(cur_network->SupportedRates);
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, ((rate_len > 8)? 8: rate_len), cur_network->SupportedRates, &pattrib->pktlen);
-exit:
+ // DS parameter set
+ pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&(cur_network->Configuration.DSConfig), &pattrib->pktlen);
- return;
+ //if( (pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)
+ {
+ u8 erpinfo=0;
+ u32 ATIMWindow;
+ // IBSS Parameter Set...
+ //ATIMWindow = cur->Configuration.ATIMWindow;
+ ATIMWindow = 0;
+ pframe = rtw_set_ie(pframe, _IBSS_PARA_IE_, 2, (unsigned char *)(&ATIMWindow), &pattrib->pktlen);
-}
+ //ERP IE
+ pframe = rtw_set_ie(pframe, _ERPINFO_IE_, 1, &erpinfo, &pattrib->pktlen);
+ }
-void issue_tdls_setup_cfm(_adapter *padapter, union recv_frame *precv_frame)
-{
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct sta_info *ptdls_sta=NULL;
- _irqL irqL;
- struct rx_pkt_attrib *rx_pkt_pattrib = & precv_frame->u.hdr.attrib;
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ // EXTERNDED SUPPORTED RATE
+ if (rate_len > 8)
{
- return;
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (rate_len - 8), (cur_network->SupportedRates + 8), &pattrib->pktlen);
}
-
- //update attribute
- pattrib = &pmgntframe->attrib;
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
- _rtw_memcpy(pattrib->dst, rx_pkt_pattrib->src, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ //todo:HT for adhoc
- _rtw_memcpy(pattrib->ra, rx_pkt_pattrib->bssid, ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+_issue_bcn:
- update_tdls_attrib(padapter, pattrib);
- pattrib->qsel=pattrib->priority;
- if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_SETUP_CONFIRM) != _SUCCESS) {
- rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
+#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+ pmlmepriv->update_bcn = _FALSE;
+
+ _exit_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+#endif //#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
- rtw_dump_xframe(padapter, pmgntframe);
+ if ((pattrib->pktlen + TXDESC_SIZE) > 512)
+ {
+ DBG_871X("beacon frame too large\n");
+ return;
+ }
+
+ pattrib->last_txcmdsz = pattrib->pktlen;
-exit:
+ //DBG_871X("issue bcn_sz=%d\n", pattrib->last_txcmdsz);
- return;
+ dump_mgntframe(padapter, pmgntframe);
}
-//TDLS Discovery Response frame is a management action frame
-void issue_tdls_dis_rsp(_adapter *padapter, union recv_frame *precv_frame, u8 dialog)
+void issue_probersp(_adapter *padapter, unsigned char *da, u8 is_valid_p2p_probereq)
{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- unsigned char *pframe;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
struct rtw_ieee80211_hdr *pwlanhdr;
- unsigned short *fctrl;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ unsigned short *fctrl;
+ unsigned char *mac, *bssid;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+ u8 *pwps_ie;
+ uint wps_ielen;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+#endif //#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
+ unsigned int rate_len;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
+#ifdef CONFIG_WFD
+ u32 wfdielen = 0;
+#endif //CONFIG_WFD
+#endif //CONFIG_P2P
- struct rx_pkt_attrib *rx_pkt_pattrib = &precv_frame->u.hdr.attrib;
+ //DBG_871X("%s\n", __FUNCTION__);
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
+ DBG_871X("%s, alloc mgnt frame fail\n", __FUNCTION__);
return;
}
+
//update attribute
pattrib = &pmgntframe->attrib;
- update_mgntframe_attrib(padapter, pattrib);
-
+ update_mgntframe_attrib(padapter, pattrib);
+
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
-
+
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
-
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+ mac = myid(&(padapter->eeprompriv));
+ bssid = cur_network->MacAddress;
+
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
+ _rtw_memcpy(pwlanhdr->addr1, da, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, bssid, ETH_ALEN);
- // unicast probe request frame
- _rtw_memcpy(pwlanhdr->addr1, rx_pkt_pattrib->src, ETH_ALEN);
- _rtw_memcpy(pattrib->dst, pwlanhdr->addr1, ETH_ALEN);
-
- _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pattrib->src, pwlanhdr->addr2, ETH_ALEN);
-
- _rtw_memcpy(pwlanhdr->addr3, rx_pkt_pattrib->bssid, ETH_ALEN);
- _rtw_memcpy(pattrib->ra, pwlanhdr->addr3, ETH_ALEN);
-
SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
pmlmeext->mgnt_seq++;
- SetFrameSubType(pframe, WIFI_ACTION);
-
- pframe += sizeof (struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen = sizeof (struct rtw_ieee80211_hdr_3addr);
+ SetFrameSubType(fctrl, WIFI_PROBERSP);
- rtw_tdls_dis_rsp_fr(padapter, pmgntframe, pframe, dialog);
-
- pattrib->nr_frags = 1;
- pattrib->last_txcmdsz = pattrib->pktlen;
-
- dump_mgntframe(padapter, pmgntframe);
-
- return;
-}
+ pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = pattrib->hdrlen;
+ pframe += pattrib->hdrlen;
-void issue_tdls_peer_traffic_indication(_adapter *padapter, struct sta_info *ptdls_sta)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- static u8 dialogtoken=0;
+ if(cur_network->IELength>MAX_IE_SZ)
+ return;
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+ if( (pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
{
- return;
- }
+ pwps_ie = rtw_get_wps_ie(cur_network->IEs+_FIXED_IE_LENGTH_, cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen);
- //update attribute
- pattrib = &pmgntframe->attrib;
-
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
-
- _rtw_memcpy(pattrib->dst, ptdls_sta->hwaddr, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
-
- _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
-
- //for tdls; pattrib->nr_frags is used to fill dialogtoken
- ptdls_sta->dialog = dialogtoken;
- dialogtoken = (dialogtoken+1)%256;
- //PTI frame's priority should be AC_VO
- pattrib->priority = 7;
-
- update_tdls_attrib(padapter, pattrib);
- pattrib->qsel=pattrib->priority;
- if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_PEER_TRAFFIC_INDICATION) != _SUCCESS) {
- rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
+ //inerset & update wps_probe_resp_ie
+ if((pmlmepriv->wps_probe_resp_ie!=NULL) && pwps_ie && (wps_ielen>0))
+ {
+ uint wps_offset, remainder_ielen;
+ u8 *premainder_ie;
-exit:
+ wps_offset = (uint)(pwps_ie - cur_network->IEs);
- return;
-}
+ premainder_ie = pwps_ie + wps_ielen;
-void issue_tdls_ch_switch_req(_adapter *padapter, u8 *mac_addr)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ remainder_ielen = cur_network->IELength - wps_offset - wps_ielen;
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
- }
-
- //update attribute
- pattrib = &pmgntframe->attrib;
+ _rtw_memcpy(pframe, cur_network->IEs, wps_offset);
+ pframe += wps_offset;
+ pattrib->pktlen += wps_offset;
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
+ wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];//to get ie data len
+ if((wps_offset+wps_ielen+2)<=MAX_IE_SZ)
+ {
+ _rtw_memcpy(pframe, pmlmepriv->wps_probe_resp_ie, wps_ielen+2);
+ pframe += wps_ielen+2;
+ pattrib->pktlen += wps_ielen+2;
+ }
- _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ if((wps_offset+wps_ielen+2+remainder_ielen)<=MAX_IE_SZ)
+ {
+ _rtw_memcpy(pframe, premainder_ie, remainder_ielen);
+ pframe += remainder_ielen;
+ pattrib->pktlen += remainder_ielen;
+ }
+ }
+ else
+ {
+ _rtw_memcpy(pframe, cur_network->IEs, cur_network->IELength);
+ pframe += cur_network->IELength;
+ pattrib->pktlen += cur_network->IELength;
+ }
- _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ /* retrieve SSID IE from cur_network->Ssid */
+ {
+ u8 *ssid_ie;
+ sint ssid_ielen;
+ sint ssid_ielen_diff;
+ u8 buf[MAX_IE_SZ];
+ u8 *ies = pmgntframe->buf_addr+TXDESC_OFFSET+sizeof(struct rtw_ieee80211_hdr_3addr);
- update_tdls_attrib(padapter, pattrib);
+ ssid_ie = rtw_get_ie(ies+_FIXED_IE_LENGTH_, _SSID_IE_, &ssid_ielen,
+ (pframe-ies)-_FIXED_IE_LENGTH_);
- pattrib->qsel=pattrib->priority;
- if(rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_CHANNEL_SWITCH_REQUEST) !=_SUCCESS ){
- rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
+ ssid_ielen_diff = cur_network->Ssid.SsidLength - ssid_ielen;
-exit:
+ if (ssid_ie && cur_network->Ssid.SsidLength) {
+ uint remainder_ielen;
+ u8 *remainder_ie;
+ remainder_ie = ssid_ie+2;
+ remainder_ielen = (pframe-remainder_ie);
- return;
-}
+ LOG_LEVEL(_drv_warning_, FUNC_ADPT_FMT" remainder_ielen > MAX_IE_SZ\n", FUNC_ADPT_ARG(padapter));
+ if (remainder_ielen > MAX_IE_SZ) {
+ remainder_ielen = MAX_IE_SZ;
+ }
-void issue_tdls_ch_switch_rsp(_adapter *padapter, u8 *mac_addr)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ _rtw_memcpy(buf, remainder_ie, remainder_ielen);
+ _rtw_memcpy(remainder_ie+ssid_ielen_diff, buf, remainder_ielen);
+ *(ssid_ie+1) = cur_network->Ssid.SsidLength;
+ _rtw_memcpy(ssid_ie+2, cur_network->Ssid.Ssid, cur_network->Ssid.SsidLength);
- _irqL irqL;
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ pframe += ssid_ielen_diff;
+ pattrib->pktlen += ssid_ielen_diff;
+ }
+ }
+ }
+ else
+#endif
{
- return;
- }
- //update attribute
- pattrib = &pmgntframe->attrib;
+ //timestamp will be inserted by hardware
+ pframe += 8;
+ pattrib->pktlen += 8;
- pmgntframe->frame_tag = DATA_FRAMETAG;
- pattrib->ether_type = 0x890d;
- pattrib->pctrl =0;
+ // beacon interval: 2 bytes
- _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
- _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->IEs)), 2);
- _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ pframe += 2;
+ pattrib->pktlen += 2;
- update_tdls_attrib(padapter, pattrib);
+ // capability info: 2 bytes
- pattrib->qsel=pattrib->priority;
-/*
- _enter_critical_bh(&pxmitpriv->lock, &irqL);
- if(xmitframe_enqueue_for_tdls_sleeping_sta(padapter, pmgntframe)==_TRUE){
- _exit_critical_bh(&pxmitpriv->lock, &irqL);
- return _FALSE;
- }
-*/
- if(rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_CHANNEL_SWITCH_RESPONSE) !=_SUCCESS ){
- rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pmgntframe);
- goto exit;
- }
- rtw_dump_xframe(padapter, pmgntframe);
+ _rtw_memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->IEs)), 2);
-exit:
+ pframe += 2;
+ pattrib->pktlen += 2;
- return;
-}
+ //below for ad-hoc mode
-sint On_TDLS_Dis_Rsp(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct sta_info *ptdls_sta = NULL;
- struct recv_priv *precvpriv = &(adapter->recvpriv);
- u8 *ptr = precv_frame->u.hdr.rx_data, *psa;
- struct rx_pkt_attrib *pattrib = &(precv_frame->u.hdr.attrib);
- struct tdls_info *ptdlsinfo = &(adapter->tdlsinfo);
- u8 empty_addr[ETH_ALEN] = { 0x00 };
+ // SSID
+ pframe = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pattrib->pktlen);
- psa = get_sa(ptr);
- ptdls_sta = rtw_get_stainfo(&(adapter->stapriv), psa);
+ // supported rates...
+ rate_len = rtw_get_rateset_len(cur_network->SupportedRates);
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, ((rate_len > 8)? 8: rate_len), cur_network->SupportedRates, &pattrib->pktlen);
- if(ptdls_sta != NULL)
- {
- ptdls_sta->tdls_sta_state |= TDLS_ALIVE_STATE;
+ // DS parameter set
+ pframe =rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&(cur_network->Configuration.DSConfig), &pattrib->pktlen);
- //Record the tdls sta with lowest signal strength
- if( (ptdlsinfo->sta_maximum == _TRUE) && (ptdls_sta->alive_count >= 1) )
+ if( (pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)
{
- printk("%s %d\n", __FUNCTION__, __LINE__);
- if( _rtw_memcmp(ptdlsinfo->ss_record.macaddr, empty_addr, ETH_ALEN) )
- {
- printk("%s %d\n", __FUNCTION__, __LINE__);
- _rtw_memcpy(ptdlsinfo->ss_record.macaddr, psa, ETH_ALEN);
- ptdlsinfo->ss_record.signal_strength = pattrib->signal_strength;
- }
- else
- {
- printk("%s %d\n", __FUNCTION__, __LINE__);
- if( ptdlsinfo->ss_record.signal_strength < pattrib->signal_strength )
- {
- printk("%s %d\n", __FUNCTION__, __LINE__);
- _rtw_memcpy(ptdlsinfo->ss_record.macaddr, psa, ETH_ALEN);
- ptdlsinfo->ss_record.signal_strength = pattrib->signal_strength;
- }
- }
+ u8 erpinfo=0;
+ u32 ATIMWindow;
+ // IBSS Parameter Set...
+ //ATIMWindow = cur->Configuration.ATIMWindow;
+ ATIMWindow = 0;
+ pframe = rtw_set_ie(pframe, _IBSS_PARA_IE_, 2, (unsigned char *)(&ATIMWindow), &pattrib->pktlen);
+
+ //ERP IE
+ pframe = rtw_set_ie(pframe, _ERPINFO_IE_, 1, &erpinfo, &pattrib->pktlen);
}
- }
- else
+
+ // EXTERNDED SUPPORTED RATE
+ if (rate_len > 8)
+ {
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (rate_len - 8), (cur_network->SupportedRates + 8), &pattrib->pktlen);
+ }
+
+
+ //todo:HT for adhoc
+
+ }
+
+#ifdef CONFIG_P2P
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) /*&& is_valid_p2p_probereq*/)
{
- if( ptdlsinfo->sta_maximum == _TRUE)
+ u32 len;
+#ifdef CONFIG_IOCTL_CFG80211
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- printk("%s %d\n", __FUNCTION__, __LINE__);
- if( _rtw_memcmp( ptdlsinfo->ss_record.macaddr, empty_addr, ETH_ALEN ) )
- {
- //All traffics are busy, do not set up another direct link.
- printk("%s %d\n", __FUNCTION__, __LINE__);
- return _FAIL;
- }
- else
- {
- if( pattrib->signal_strength > ptdlsinfo->ss_record.signal_strength )
- {
- printk("%s %d\n", __FUNCTION__, __LINE__);
- issue_tdls_teardown(adapter, ptdlsinfo->ss_record.macaddr);
- }
- else
- {
- printk("%s %d\n", __FUNCTION__, __LINE__);
- return _FAIL;
- }
- }
+ //if pwdinfo->role == P2P_ROLE_DEVICE will call issue_probersp_p2p()
+ len = pmlmepriv->p2p_go_probe_resp_ie_len;
+ if(pmlmepriv->p2p_go_probe_resp_ie && len>0)
+ _rtw_memcpy(pframe, pmlmepriv->p2p_go_probe_resp_ie, len);
+ }
+ else
+#endif //CONFIG_IOCTL_CFG80211
+ {
+ len = build_probe_resp_p2p_ie(pwdinfo, pframe);
}
- if( pattrib->signal_strength + TDLS_SIGNAL_THRESH >= precvpriv->signal_strength )
+ pframe += len;
+ pattrib->pktlen += len;
+
+#ifdef CONFIG_WFD
+#ifdef CONFIG_IOCTL_CFG80211
+ if(_TRUE == pwdinfo->wfd_info->wfd_enable)
+#endif //CONFIG_IOCTL_CFG80211
{
- issue_tdls_setup_req(adapter, psa);
+ len = build_probe_resp_wfd_ie(pwdinfo, pframe, 0);
+ }
+#ifdef CONFIG_IOCTL_CFG80211
+ else
+ {
+ len = 0;
+ if(pmlmepriv->wfd_probe_resp_ie && pmlmepriv->wfd_probe_resp_ie_len>0)
+ {
+ len = pmlmepriv->wfd_probe_resp_ie_len;
+ _rtw_memcpy(pframe, pmlmepriv->wfd_probe_resp_ie, len);
+ }
}
+#endif //CONFIG_IOCTL_CFG80211
+ pframe += len;
+ pattrib->pktlen += len;
+#endif //CONFIG_WFD
+
}
+#endif //CONFIG_P2P
- return _FAIL;
+
+#ifdef CONFIG_AUTO_AP_MODE
+{
+ struct sta_info *psta;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ DBG_871X("(%s)\n", __FUNCTION__);
+
+ //check rc station
+ psta = rtw_get_stainfo(pstapriv, da);
+ if (psta && psta->isrc && psta->pid>0)
+ {
+ u8 RC_OUI[4]={0x00,0xE0,0x4C,0x0A};
+ u8 RC_INFO[14] = {0};
+ //EID[1] + EID_LEN[1] + RC_OUI[4] + MAC[6] + PairingID[2] + ChannelNum[2]
+ u16 cu_ch = (u16)cur_network->Configuration.DSConfig;
+
+ DBG_871X("%s, reply rc(pid=0x%x) device "MAC_FMT" in ch=%d\n", __FUNCTION__,
+ psta->pid, MAC_ARG(psta->hwaddr), cu_ch);
+
+ //append vendor specific ie
+ _rtw_memcpy(RC_INFO, RC_OUI, sizeof(RC_OUI));
+ _rtw_memcpy(&RC_INFO[4], mac, ETH_ALEN);
+ _rtw_memcpy(&RC_INFO[10], (u8*)&psta->pid, 2);
+ _rtw_memcpy(&RC_INFO[12], (u8*)&cu_ch, 2);
+
+ pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, sizeof(RC_INFO), RC_INFO, &pattrib->pktlen);
+ }
}
+#endif //CONFIG_AUTO_AP_MODE
-#endif
-int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
-{
- u8 *ssid_ie;
- sint ssid_len_ori;
- int len_diff = 0;
+ pattrib->last_txcmdsz = pattrib->pktlen;
- ssid_ie = rtw_get_ie(ies, WLAN_EID_SSID, &ssid_len_ori, ies_len);
- //DBG_871X("%s hidden_ssid_mode:%u, ssid_ie:%p, ssid_len_ori:%d\n", __FUNCTION__, hidden_ssid_mode, ssid_ie, ssid_len_ori);
+ dump_mgntframe(padapter, pmgntframe);
- if(ssid_ie && ssid_len_ori>0)
- {
- switch(hidden_ssid_mode)
- {
- case 1:
- {
- u8 *next_ie = ssid_ie + 2 + ssid_len_ori;
- u32 remain_len = 0;
-
- remain_len = ies_len -(next_ie-ies);
-
- ssid_ie[1] = 0;
- _rtw_memcpy(ssid_ie+2, next_ie, remain_len);
- len_diff -= ssid_len_ori;
-
- break;
- }
- case 2:
- _rtw_memset(&ssid_ie[2], 0, ssid_len_ori);
- break;
- default:
- break;
- }
- }
+ return;
- return len_diff;
}
-void issue_beacon(_adapter *padapter)
+int _issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 *da, int wait_ack)
{
- _irqL irqL;
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- unsigned char *pframe;
- struct rtw_ieee80211_hdr *pwlanhdr;
- unsigned short *fctrl;
- unsigned int rate_len;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ int ret = _FAIL;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ unsigned short *fctrl;
+ unsigned char *mac;
+ unsigned char bssrate[NumRates];
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
+ int bssrate_len = 0;
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-#ifdef CONFIG_P2P
- struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
-#endif //CONFIG_P2P
-
- //DBG_871X("%s\n", __FUNCTION__);
+ RT_TRACE(_module_rtl871x_mlme_c_,_drv_notice_,("+issue_probereq\n"));
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
- DBG_871X("%s, alloc mgnt frame fail\n", __FUNCTION__);
- return;
+ goto exit;
}
- _enter_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
-
//update attribute
pattrib = &pmgntframe->attrib;
update_mgntframe_attrib(padapter, pattrib);
- pattrib->qsel = 0x10;
-
+
+
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
-
+
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
-
-
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+ mac = myid(&(padapter->eeprompriv));
+
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
-
- _rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(cur_network), ETH_ALEN);
- SetSeqNum(pwlanhdr, 0/*pmlmeext->mgnt_seq*/);
- //pmlmeext->mgnt_seq++;
- SetFrameSubType(pframe, WIFI_BEACON);
-
- pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen = sizeof (struct rtw_ieee80211_hdr_3addr);
-
- if( (pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
+ if (da)
{
- //DBG_871X("ie len=%d\n", cur_network->IELength);
-#ifdef CONFIG_P2P
- // for P2P : Primary Device Type & Device Name
- u32 wpsielen=0, insert_len=0;
- u8 *wpsie=NULL;
- wpsie = rtw_get_wps_ie(cur_network->IEs+_FIXED_IE_LENGTH_, cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wpsielen);
-
- if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) && wpsie && wpsielen>0)
- {
- uint wps_offset, remainder_ielen;
- u8 *premainder_ie, *pframe_wscie;
-
- wps_offset = (uint)(wpsie - cur_network->IEs);
-
- premainder_ie = wpsie + wpsielen;
+ // unicast probe request frame
+ _rtw_memcpy(pwlanhdr->addr1, da, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, da, ETH_ALEN);
+ }
+ else
+ {
+ // broadcast probe request frame
+ _rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, bc_addr, ETH_ALEN);
+ }
- remainder_ielen = cur_network->IELength - wps_offset - wpsielen;
+ _rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
-#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
- {
- if(pmlmepriv->wps_beacon_ie && pmlmepriv->wps_beacon_ie_len>0)
- {
- _rtw_memcpy(pframe, cur_network->IEs, wps_offset);
- pframe += wps_offset;
- pattrib->pktlen += wps_offset;
-
- _rtw_memcpy(pframe, pmlmepriv->wps_beacon_ie, pmlmepriv->wps_beacon_ie_len);
+ SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
+ pmlmeext->mgnt_seq++;
+ SetFrameSubType(pframe, WIFI_PROBEREQ);
- pframe += pmlmepriv->wps_beacon_ie_len;
- pattrib->pktlen += pmlmepriv->wps_beacon_ie_len;
+ pframe += sizeof (struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof (struct rtw_ieee80211_hdr_3addr);
- //copy remainder_ie to pframe
- _rtw_memcpy(pframe, premainder_ie, remainder_ielen);
- pframe += remainder_ielen;
- pattrib->pktlen += remainder_ielen;
-
- }
- else
- {
- _rtw_memcpy(pframe, cur_network->IEs, cur_network->IELength);
- pframe += cur_network->IELength;
- pattrib->pktlen += cur_network->IELength;
- }
- }
- else
-#endif //CONFIG_IOCTL_CFG80211
- {
+ if(pssid)
+ pframe = rtw_set_ie(pframe, _SSID_IE_, pssid->SsidLength, pssid->Ssid, &(pattrib->pktlen));
+ else
+ pframe = rtw_set_ie(pframe, _SSID_IE_, 0, NULL, &(pattrib->pktlen));
- pframe_wscie = pframe + wps_offset;
- _rtw_memcpy(pframe, cur_network->IEs, wps_offset+wpsielen);
- pframe += (wps_offset + wpsielen);
- pattrib->pktlen += (wps_offset + wpsielen);
+ get_rate_set(padapter, bssrate, &bssrate_len);
- //now pframe is end of wsc ie, insert Primary Device Type & Device Name
- // Primary Device Type
- // Type:
- *(u16*) ( pframe + insert_len) = cpu_to_be16( WPS_ATTR_PRIMARY_DEV_TYPE );
- insert_len += 2;
-
- // Length:
- *(u16*) ( pframe + insert_len ) = cpu_to_be16( 0x0008 );
- insert_len += 2;
-
- // Value:
- // Category ID
- *(u16*) ( pframe + insert_len ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
- insert_len += 2;
+ if (bssrate_len > 8)
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
+ }
+ else
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
+ }
- // OUI
- *(u32*) ( pframe + insert_len ) = cpu_to_be32( WPSOUI );
- insert_len += 4;
-
- // Sub Category ID
- *(u16*) ( pframe + insert_len ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
- insert_len += 2;
-
-
- // Device Name
- // Type:
- *(u16*) ( pframe + insert_len ) = cpu_to_be16( WPS_ATTR_DEVICE_NAME );
- insert_len += 2;
-
- // Length:
- *(u16*) ( pframe + insert_len ) = cpu_to_be16( pwdinfo->device_name_len );
- insert_len += 2;
-
- // Value:
- _rtw_memcpy( pframe + insert_len, pwdinfo->device_name, pwdinfo->device_name_len );
- insert_len += pwdinfo->device_name_len;
-
-
- //update wsc ie length
- *(pframe_wscie+1) = (wpsielen -2) + insert_len;
-
- //pframe move to end
- pframe+=insert_len;
- pattrib->pktlen += insert_len;
-
- //copy remainder_ie to pframe
- _rtw_memcpy(pframe, premainder_ie, remainder_ielen);
- pframe += remainder_ielen;
- pattrib->pktlen += remainder_ielen;
- }
-
- }
- else
-#endif //CONFIG_P2P
- {
- int len_diff;
- _rtw_memcpy(pframe, cur_network->IEs, cur_network->IELength);
- len_diff = update_hidden_ssid(
- pframe+_BEACON_IE_OFFSET_
- , cur_network->IELength-_BEACON_IE_OFFSET_
- , pmlmeinfo->hidden_ssid_mode
- );
- pframe += (cur_network->IELength+len_diff);
- pattrib->pktlen += (cur_network->IELength+len_diff);
- }
-
-#ifdef CONFIG_P2P
- if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
- {
- u32 len;
-#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
- {
- len = pmlmepriv->p2p_beacon_ie_len;
- if(pmlmepriv->p2p_beacon_ie && len>0)
- _rtw_memcpy(pframe, pmlmepriv->p2p_beacon_ie, len);
- }
- else
-#endif //CONFIG_IOCTL_CFG80211
- {
- len = build_beacon_p2p_ie(pwdinfo, pframe);
- }
+#if 0
+ //add wps_ie for wps2.0
+ if(pmlmepriv->probereq_wpsie_len>0 && pmlmepriv->probereq_wpsie_len<MAX_WPS_IE_LEN)
+ {
+ _rtw_memcpy(pframe, pmlmepriv->probereq_wpsie, pmlmepriv->probereq_wpsie_len);
+ pframe += pmlmepriv->probereq_wpsie_len;
+ pattrib->pktlen += pmlmepriv->probereq_wpsie_len;
+ //pmlmepriv->probereq_wpsie_len = 0 ;//reset to zero
+ }
+#else
+ //add wps_ie for wps2.0
+ if(pmlmepriv->wps_probe_req_ie_len>0 && pmlmepriv->wps_probe_req_ie)
+ {
+ _rtw_memcpy(pframe, pmlmepriv->wps_probe_req_ie, pmlmepriv->wps_probe_req_ie_len);
+ pframe += pmlmepriv->wps_probe_req_ie_len;
+ pattrib->pktlen += pmlmepriv->wps_probe_req_ie_len;
+ //pmlmepriv->wps_probe_req_ie_len = 0 ;//reset to zero
+ }
+#endif
-
- pframe += len;
- pattrib->pktlen += len;
-#ifdef CONFIG_WFD
- len = build_beacon_wfd_ie( pwdinfo, pframe );
- pframe += len;
- pattrib->pktlen += len;
-#endif //CONFIG_WFD
- }
-#endif //CONFIG_P2P
+ pattrib->last_txcmdsz = pattrib->pktlen;
- goto _issue_bcn;
+ RT_TRACE(_module_rtl871x_mlme_c_,_drv_notice_,("issuing probe_req, tx_len=%d\n", pattrib->last_txcmdsz));
+ if (wait_ack) {
+ ret = dump_mgntframe_and_wait_ack(padapter, pmgntframe);
+ } else {
+ dump_mgntframe(padapter, pmgntframe);
+ ret = _SUCCESS;
}
- //below for ad-hoc mode
-
- //timestamp will be inserted by hardware
- pframe += 8;
- pattrib->pktlen += 8;
-
- // beacon interval: 2 bytes
-
- _rtw_memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->IEs)), 2);
-
- pframe += 2;
- pattrib->pktlen += 2;
-
- // capability info: 2 bytes
-
- _rtw_memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->IEs)), 2);
-
- pframe += 2;
- pattrib->pktlen += 2;
-
- // SSID
- pframe = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pattrib->pktlen);
-
- // supported rates...
- rate_len = rtw_get_rateset_len(cur_network->SupportedRates);
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, ((rate_len > 8)? 8: rate_len), cur_network->SupportedRates, &pattrib->pktlen);
-
- // DS parameter set
- pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&(cur_network->Configuration.DSConfig), &pattrib->pktlen);
-
- //if( (pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)
- {
- u8 erpinfo=0;
- u32 ATIMWindow;
- // IBSS Parameter Set...
- //ATIMWindow = cur->Configuration.ATIMWindow;
- ATIMWindow = 0;
- pframe = rtw_set_ie(pframe, _IBSS_PARA_IE_, 2, (unsigned char *)(&ATIMWindow), &pattrib->pktlen);
+exit:
+ return ret;
+}
- //ERP IE
- pframe = rtw_set_ie(pframe, _ERPINFO_IE_, 1, &erpinfo, &pattrib->pktlen);
- }
+inline void issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 *da)
+{
+ _issue_probereq(padapter, pssid, da, _FALSE);
+}
+int issue_probereq_ex(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 *da,
+ int try_cnt, int wait_ms)
+{
+ int ret;
+ int i = 0;
+ u32 start = rtw_get_current_time();
- // EXTERNDED SUPPORTED RATE
- if (rate_len > 8)
+ do
{
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (rate_len - 8), (cur_network->SupportedRates + 8), &pattrib->pktlen);
- }
+ ret = _issue_probereq(padapter, pssid, da, wait_ms>0?_TRUE:_FALSE);
+ i++;
- //todo:HT for adhoc
+ if (padapter->bDriverStopped || padapter->bSurpriseRemoved)
+ break;
-_issue_bcn:
+ if(i < try_cnt && wait_ms > 0 && ret==_FAIL)
+ rtw_msleep_os(wait_ms);
- pmlmepriv->update_bcn = _FALSE;
-
- _exit_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+ }while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
- if ((pattrib->pktlen + TXDESC_SIZE) > 512)
- {
- DBG_871X("beacon frame too large\n");
- return;
+ if (ret != _FAIL) {
+ ret = _SUCCESS;
+ #ifndef DBG_XMIT_ACK
+ goto exit;
+ #endif
}
-
- pattrib->last_txcmdsz = pattrib->pktlen;
-
- //DBG_871X("issue bcn_sz=%d\n", pattrib->last_txcmdsz);
-
- dump_mgntframe(padapter, pmgntframe);
+ if (try_cnt && wait_ms) {
+ if (da)
+ DBG_871X(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), MAC_ARG(da), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ else
+ DBG_871X(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ }
+exit:
+ return ret;
}
-void issue_probersp(_adapter *padapter, unsigned char *da, u8 is_valid_p2p_probereq)
+// if psta == NULL, indiate we are station(client) now...
+void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status)
{
- u8 *pwps_ie;
- uint wps_ielen;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
unsigned char *pframe;
struct rtw_ieee80211_hdr *pwlanhdr;
- unsigned short *fctrl;
- unsigned char *mac, *bssid;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ unsigned short *fctrl;
+ unsigned int val32;
+ unsigned short val16;
+ int use_shared_key = 0;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
- unsigned int rate_len;
-#ifdef CONFIG_P2P
- struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
-#ifdef CONFIG_WFD
- u32 wfdielen = 0;
-#endif //CONFIG_WFD
-#endif //CONFIG_P2P
-
-
-
- //DBG_871X("%s\n", __FUNCTION__);
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
- DBG_871X("%s, alloc mgnt frame fail\n", __FUNCTION__);
return;
}
-
//update attribute
pattrib = &pmgntframe->attrib;
- update_mgntframe_attrib(padapter, pattrib);
-
+ update_mgntframe_attrib(padapter, pattrib);
+
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
-
+
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
-
- mac = myid(&(padapter->eeprompriv));
- bssid = cur_network->MacAddress;
-
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
- _rtw_memcpy(pwlanhdr->addr1, da, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, bssid, ETH_ALEN);
SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
pmlmeext->mgnt_seq++;
- SetFrameSubType(fctrl, WIFI_PROBERSP);
-
- pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen = pattrib->hdrlen;
- pframe += pattrib->hdrlen;
+ SetFrameSubType(pframe, WIFI_AUTH);
+ pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
- if(cur_network->IELength>MAX_IE_SZ || cur_network->IELength<_FIXED_IE_LENGTH_)
- return;
-
-#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
- if( (pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
+
+ if(psta)// for AP mode
{
- pwps_ie = rtw_get_wps_ie(cur_network->IEs+_FIXED_IE_LENGTH_, cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen);
-
- //inerset & update wps_probe_resp_ie
- if((pmlmepriv->wps_probe_resp_ie!=NULL) && pwps_ie && (wps_ielen>0))
- {
- uint wps_offset, remainder_ielen;
- u8 *premainder_ie;
+#ifdef CONFIG_NATIVEAP_MLME
+
+ _rtw_memcpy(pwlanhdr->addr1, psta->hwaddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
- wps_offset = (uint)(pwps_ie - cur_network->IEs);
+ // setting auth algo number
+ val16 = (u16)psta->authalg;
- premainder_ie = pwps_ie + wps_ielen;
+ if(status != _STATS_SUCCESSFUL_)
+ val16 = 0;
- remainder_ielen = cur_network->IELength - wps_offset - wps_ielen;
+ if (val16) {
+ val16 = cpu_to_le16(val16);
+ use_shared_key = 1;
+ }
- _rtw_memcpy(pframe, cur_network->IEs, wps_offset);
- pframe += wps_offset;
- pattrib->pktlen += wps_offset;
+ pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
- wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];//to get ie data len
- if((wps_offset+wps_ielen+2)<=MAX_IE_SZ)
- {
- _rtw_memcpy(pframe, pmlmepriv->wps_probe_resp_ie, wps_ielen+2);
- pframe += wps_ielen+2;
- pattrib->pktlen += wps_ielen+2;
- }
+ // setting auth seq number
+ val16 =(u16)psta->auth_seq;
+ val16 = cpu_to_le16(val16);
+ pframe = rtw_set_fixed_ie(pframe, _AUTH_SEQ_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
- if((wps_offset+wps_ielen+2+remainder_ielen)<=MAX_IE_SZ)
- {
- _rtw_memcpy(pframe, premainder_ie, remainder_ielen);
- pframe += remainder_ielen;
- pattrib->pktlen += remainder_ielen;
- }
- }
- else
+ // setting status code...
+ val16 = status;
+ val16 = cpu_to_le16(val16);
+ pframe = rtw_set_fixed_ie(pframe, _STATUS_CODE_, (unsigned char *)&val16, &(pattrib->pktlen));
+
+ // added challenging text...
+ if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
{
- _rtw_memcpy(pframe, cur_network->IEs, cur_network->IELength);
- pframe += cur_network->IELength;
- pattrib->pktlen += cur_network->IELength;
+ pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &(pattrib->pktlen));
}
-
- }
- else
-#endif
- {
+#endif
+ }
+ else
+ {
+ _rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&pmlmeinfo->network), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, myid(&padapter->eeprompriv), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&pmlmeinfo->network), ETH_ALEN);
- //timestamp will be inserted by hardware
- pframe += 8;
- pattrib->pktlen += 8;
-
- // beacon interval: 2 bytes
-
- _rtw_memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->IEs)), 2);
-
- pframe += 2;
- pattrib->pktlen += 2;
-
- // capability info: 2 bytes
-
- _rtw_memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->IEs)), 2);
-
- pframe += 2;
- pattrib->pktlen += 2;
-
- //below for ad-hoc mode
-
- // SSID
- pframe = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pattrib->pktlen);
-
- // supported rates...
- rate_len = rtw_get_rateset_len(cur_network->SupportedRates);
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, ((rate_len > 8)? 8: rate_len), cur_network->SupportedRates, &pattrib->pktlen);
-
- // DS parameter set
- pframe =rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&(cur_network->Configuration.DSConfig), &pattrib->pktlen);
-
- if( (pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)
+ // setting auth algo number
+ val16 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared)? 1: 0;// 0:OPEN System, 1:Shared key
+ if (val16) {
+ val16 = cpu_to_le16(val16);
+ use_shared_key = 1;
+ }
+ //DBG_871X("%s auth_algo= %s auth_seq=%d\n",__FUNCTION__,(pmlmeinfo->auth_algo==0)?"OPEN":"SHARED",pmlmeinfo->auth_seq);
+
+ //setting IV for auth seq #3
+ if ((pmlmeinfo->auth_seq == 3) && (pmlmeinfo->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
{
- u8 erpinfo=0;
- u32 ATIMWindow;
- // IBSS Parameter Set...
- //ATIMWindow = cur->Configuration.ATIMWindow;
- ATIMWindow = 0;
- pframe = rtw_set_ie(pframe, _IBSS_PARA_IE_, 2, (unsigned char *)(&ATIMWindow), &pattrib->pktlen);
+ //DBG_871X("==> iv(%d),key_index(%d)\n",pmlmeinfo->iv,pmlmeinfo->key_index);
+ val32 = ((pmlmeinfo->iv++) | (pmlmeinfo->key_index << 30));
+ val32 = cpu_to_le32(val32);
+ pframe = rtw_set_fixed_ie(pframe, 4, (unsigned char *)&val32, &(pattrib->pktlen));
- //ERP IE
- pframe = rtw_set_ie(pframe, _ERPINFO_IE_, 1, &erpinfo, &pattrib->pktlen);
+ pattrib->iv_len = 4;
}
+ pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
- // EXTERNDED SUPPORTED RATE
- if (rate_len > 8)
- {
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (rate_len - 8), (cur_network->SupportedRates + 8), &pattrib->pktlen);
- }
+ // setting auth seq number
+ val16 = pmlmeinfo->auth_seq;
+ val16 = cpu_to_le16(val16);
+ pframe = rtw_set_fixed_ie(pframe, _AUTH_SEQ_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
+
+ // setting status code...
+ val16 = status;
+ val16 = cpu_to_le16(val16);
+ pframe = rtw_set_fixed_ie(pframe, _STATUS_CODE_, (unsigned char *)&val16, &(pattrib->pktlen));
- //todo:HT for adhoc
+ // then checking to see if sending challenging text...
+ if ((pmlmeinfo->auth_seq == 3) && (pmlmeinfo->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
+ {
+ pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, pmlmeinfo->chg_txt, &(pattrib->pktlen));
- }
+ SetPrivacy(fctrl);
+
+ pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ pattrib->encrypt = _WEP40_;
-#ifdef CONFIG_P2P
- if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) && is_valid_p2p_probereq)
- {
- u32 len;
-#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
- {
- //if pwdinfo->role == P2P_ROLE_DEVICE will call issue_probersp_p2p()
- len = pmlmepriv->p2p_go_probe_resp_ie_len;
- if(pmlmepriv->p2p_go_probe_resp_ie && len>0)
- _rtw_memcpy(pframe, pmlmepriv->p2p_go_probe_resp_ie, len);
- }
- else
-#endif //CONFIG_IOCTL_CFG80211
- {
- len = build_probe_resp_p2p_ie(pwdinfo, pframe);
+ pattrib->icv_len = 4;
+
+ pattrib->pktlen += pattrib->icv_len;
+
}
-
- pframe += len;
- pattrib->pktlen += len;
-#ifdef CONFIG_WFD
- wfdielen = build_probe_resp_wfd_ie(pwdinfo, pframe);
- pframe += wfdielen;
- pattrib->pktlen += wfdielen;
-#endif //CONFIG_WFD
-
- }
-#endif //CONFIG_P2P
-
+ }
pattrib->last_txcmdsz = pattrib->pktlen;
-
+
+ rtw_wep_encrypt(padapter, (u8 *)pmgntframe);
dump_mgntframe(padapter, pmgntframe);
-
- return;
+ return;
}
-void issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 blnbc)
+
+void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *pstat, int pkt_type)
{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- unsigned char *pframe;
+#ifdef CONFIG_AP_MODE
+ struct xmit_frame *pmgntframe;
struct rtw_ieee80211_hdr *pwlanhdr;
- unsigned short *fctrl;
- unsigned char *mac;
- unsigned char bssrate[NumRates];
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct pkt_attrib *pattrib;
+ unsigned char *pbuf, *pframe;
+ unsigned short val;
+ unsigned short *fctrl;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- int bssrate_len = 0;
- u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = &(pmlmeinfo->network);
+ u8 *ie = pnetwork->IEs;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
+#ifdef CONFIG_WFD
+ u32 wfdielen = 0;
+#endif //CONFIG_WFD
+#endif //CONFIG_P2P
- RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("+issue_probereq\n"));
+ DBG_871X("%s\n", __FUNCTION__);
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
@@ -6125,313 +7418,45 @@ void issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 blnbc)
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
- mac = myid(&(padapter->eeprompriv));
-
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
- if ( 0 == blnbc )
- {
- // unicast probe request frame
- _rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
- }
- else
- {
- // broadcast probe request frame
- _rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, bc_addr, ETH_ALEN);
- }
+ _rtw_memcpy((void *)GetAddr1Ptr(pwlanhdr), pstat->hwaddr, ETH_ALEN);
+ _rtw_memcpy((void *)GetAddr2Ptr(pwlanhdr), myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy((void *)GetAddr3Ptr(pwlanhdr), get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
pmlmeext->mgnt_seq++;
- SetFrameSubType(pframe, WIFI_PROBEREQ);
+ if ((pkt_type == WIFI_ASSOCRSP) || (pkt_type == WIFI_REASSOCRSP))
+ SetFrameSubType(pwlanhdr, pkt_type);
+ else
+ return;
- pframe += sizeof (struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen = sizeof (struct rtw_ieee80211_hdr_3addr);
+ pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen += pattrib->hdrlen;
+ pframe += pattrib->hdrlen;
- if(pssid)
- pframe = rtw_set_ie(pframe, _SSID_IE_, pssid->SsidLength, pssid->Ssid, &(pattrib->pktlen));
- else
- pframe = rtw_set_ie(pframe, _SSID_IE_, 0, NULL, &(pattrib->pktlen));
+ //capability
+ val = *(unsigned short *)rtw_get_capability_from_ie(ie);
- get_rate_set(padapter, bssrate, &bssrate_len);
+ pframe = rtw_set_fixed_ie(pframe, _CAPABILITY_ , (unsigned char *)&val, &(pattrib->pktlen));
- if (bssrate_len > 8)
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
- }
- else
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
- }
+ status = cpu_to_le16(status);
+ pframe = rtw_set_fixed_ie(pframe , _STATUS_CODE_ , (unsigned char *)&status, &(pattrib->pktlen));
+
+ val = cpu_to_le16(pstat->aid | BIT(14) | BIT(15));
+ pframe = rtw_set_fixed_ie(pframe, _ASOC_ID_ , (unsigned char *)&val, &(pattrib->pktlen));
-#if 0
- //add wps_ie for wps2.0
- if(pmlmepriv->probereq_wpsie_len>0 && pmlmepriv->probereq_wpsie_len<MAX_WPS_IE_LEN)
+ if (pstat->bssratelen <= 8)
{
- _rtw_memcpy(pframe, pmlmepriv->probereq_wpsie, pmlmepriv->probereq_wpsie_len);
- pframe += pmlmepriv->probereq_wpsie_len;
- pattrib->pktlen += pmlmepriv->probereq_wpsie_len;
- //pmlmepriv->probereq_wpsie_len = 0 ;//reset to zero
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, pstat->bssratelen, pstat->bssrateset, &(pattrib->pktlen));
}
-#else
- //add wps_ie for wps2.0
- if(pmlmepriv->wps_probe_req_ie_len>0 && pmlmepriv->wps_probe_req_ie)
+ else
{
- _rtw_memcpy(pframe, pmlmepriv->wps_probe_req_ie, pmlmepriv->wps_probe_req_ie_len);
- pframe += pmlmepriv->wps_probe_req_ie_len;
- pattrib->pktlen += pmlmepriv->wps_probe_req_ie_len;
- //pmlmepriv->wps_probe_req_ie_len = 0 ;//reset to zero
- }
-#endif
-
- pattrib->last_txcmdsz = pattrib->pktlen;
-
- RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("issuing probe_req, tx_len=%d\n", pattrib->last_txcmdsz));
-
- dump_mgntframe(padapter, pmgntframe);
-
- return;
-}
-
-// if psta == NULL, indiate we are station(client) now...
-void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status)
-{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- unsigned char *pframe;
- struct rtw_ieee80211_hdr *pwlanhdr;
- unsigned short *fctrl;
- unsigned int val32;
- unsigned short val16;
- int use_shared_key = 0;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
-/*
- if( (psta == NULL) && (pmlmeinfo->auth_seq != 3) ) {
- // Because of AP's not receiving deauth before
- // AP may: 1)not response auth or 2)deauth us after link is complete
- // issue deauth before issuing auth to deal with the situation
- issue_deauth(padapter, (&(pmlmeinfo->network))->MacAddress, WLAN_REASON_DEAUTH_LEAVING);
- }
-*/
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
- }
-
- //update attribute
- pattrib = &pmgntframe->attrib;
- update_mgntframe_attrib(padapter, pattrib);
-
- _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
-
- pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
-
- fctrl = &(pwlanhdr->frame_ctl);
- *(fctrl) = 0;
-
- SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
- pmlmeext->mgnt_seq++;
- SetFrameSubType(pframe, WIFI_AUTH);
-
- pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
-
-
- if(psta)// for AP mode
- {
-#ifdef CONFIG_NATIVEAP_MLME
-
- _rtw_memcpy(pwlanhdr->addr1, psta->hwaddr, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, myid(&(padapter->eeprompriv)), ETH_ALEN);
-
-
- // setting auth algo number
- val16 = (u16)psta->authalg;
-
- if(status != _STATS_SUCCESSFUL_)
- val16 = 0;
-
- if (val16) {
- val16 = cpu_to_le16(val16);
- use_shared_key = 1;
- }
-
- pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
-
- // setting auth seq number
- val16 =(u16)psta->auth_seq;
- val16 = cpu_to_le16(val16);
- pframe = rtw_set_fixed_ie(pframe, _AUTH_SEQ_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
-
- // setting status code...
- val16 = status;
- val16 = cpu_to_le16(val16);
- pframe = rtw_set_fixed_ie(pframe, _STATUS_CODE_, (unsigned char *)&val16, &(pattrib->pktlen));
-
- // added challenging text...
- if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
- {
- pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &(pattrib->pktlen));
- }
-#endif
- }
- else
- {
- _rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&pmlmeinfo->network), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, myid(&padapter->eeprompriv), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&pmlmeinfo->network), ETH_ALEN);
-
- // setting auth algo number
- val16 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared)? 1: 0;// 0:OPEN System, 1:Shared key
- if (val16) {
- val16 = cpu_to_le16(val16);
- use_shared_key = 1;
- }
- //DBG_8192C("%s auth_algo= %s auth_seq=%d\n",__FUNCTION__,(pmlmeinfo->auth_algo==0)?"OPEN":"SHARED",pmlmeinfo->auth_seq);
-
- //setting IV for auth seq #3
- if ((pmlmeinfo->auth_seq == 3) && (pmlmeinfo->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
- {
- //DBG_8192C("==> iv(%d),key_index(%d)\n",pmlmeinfo->iv,pmlmeinfo->key_index);
- val32 = ((pmlmeinfo->iv++) | (pmlmeinfo->key_index << 30));
- val32 = cpu_to_le32(val32);
- pframe = rtw_set_fixed_ie(pframe, 4, (unsigned char *)&val32, &(pattrib->pktlen));
-
- pattrib->iv_len = 4;
- }
-
- pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
-
- // setting auth seq number
- val16 = pmlmeinfo->auth_seq;
- val16 = cpu_to_le16(val16);
- pframe = rtw_set_fixed_ie(pframe, _AUTH_SEQ_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
-
-
- // setting status code...
- val16 = status;
- val16 = cpu_to_le16(val16);
- pframe = rtw_set_fixed_ie(pframe, _STATUS_CODE_, (unsigned char *)&val16, &(pattrib->pktlen));
-
- // then checking to see if sending challenging text...
- if ((pmlmeinfo->auth_seq == 3) && (pmlmeinfo->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
- {
- pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, pmlmeinfo->chg_txt, &(pattrib->pktlen));
-
- SetPrivacy(fctrl);
-
- pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
-
- pattrib->encrypt = _WEP40_;
-
- pattrib->icv_len = 4;
-
- pattrib->pktlen += pattrib->icv_len;
-
- }
-
- }
-
- pattrib->last_txcmdsz = pattrib->pktlen;
-
- rtw_wep_encrypt(padapter, (u8 *)pmgntframe);
-
- dump_mgntframe(padapter, pmgntframe);
-
- return;
-}
-
-
-void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *pstat, int pkt_type)
-{
-#ifdef CONFIG_AP_MODE
- struct xmit_frame *pmgntframe;
- struct rtw_ieee80211_hdr *pwlanhdr;
- struct pkt_attrib *pattrib;
- unsigned char *pbuf, *pframe;
- unsigned short val;
- unsigned short *fctrl;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork = &(pmlmeinfo->network);
- u8 *ie = pnetwork->IEs;
-#ifdef CONFIG_P2P
- struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
-#ifdef CONFIG_WFD
- u32 wfdielen = 0;
-#endif //CONFIG_WFD
-
-#endif //CONFIG_P2P
-
- DBG_871X("%s\n", __FUNCTION__);
-
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
- }
-
- //update attribute
- pattrib = &pmgntframe->attrib;
- update_mgntframe_attrib(padapter, pattrib);
-
-
- _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
-
- pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
-
- fctrl = &(pwlanhdr->frame_ctl);
- *(fctrl) = 0;
-
- _rtw_memcpy((void *)GetAddr1Ptr(pwlanhdr), pstat->hwaddr, ETH_ALEN);
- _rtw_memcpy((void *)GetAddr2Ptr(pwlanhdr), myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy((void *)GetAddr3Ptr(pwlanhdr), get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
-
-
- SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
- pmlmeext->mgnt_seq++;
- if ((pkt_type == WIFI_ASSOCRSP) || (pkt_type == WIFI_REASSOCRSP))
- SetFrameSubType(pwlanhdr, pkt_type);
- else
- return;
-
- pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
- pattrib->pktlen += pattrib->hdrlen;
- pframe += pattrib->hdrlen;
-
- //capability
- val = *(unsigned short *)rtw_get_capability_from_ie(ie);
-
- pframe = rtw_set_fixed_ie(pframe, _CAPABILITY_ , (unsigned char *)&val, &(pattrib->pktlen));
-
- status = cpu_to_le16(status);
- pframe = rtw_set_fixed_ie(pframe , _STATUS_CODE_ , (unsigned char *)&status, &(pattrib->pktlen));
-
- val = cpu_to_le16(pstat->aid | BIT(14) | BIT(15));
- pframe = rtw_set_fixed_ie(pframe, _ASOC_ID_ , (unsigned char *)&val, &(pattrib->pktlen));
-
- if (pstat->bssratelen <= 8)
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, pstat->bssratelen, pstat->bssrateset, &(pattrib->pktlen));
- }
- else
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, 8, pstat->bssrateset, &(pattrib->pktlen));
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (pstat->bssratelen-8), pstat->bssrateset+8, &(pattrib->pktlen));
- }
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, 8, pstat->bssrateset, &(pattrib->pktlen));
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (pstat->bssratelen-8), pstat->bssrateset+8, &(pattrib->pktlen));
+ }
#ifdef CONFIG_80211N_HT
if ((pstat->flags & WLAN_STA_HT) && (pmlmepriv->htpriv.ht_option))
@@ -6503,21 +7528,30 @@ void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *p
}
#ifdef CONFIG_P2P
- if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) && (pstat->is_p2p_device == _TRUE))
+ if( padapter->wdinfo.driver_interface == DRIVER_WEXT )
{
- u32 len;
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) && (pstat->is_p2p_device == _TRUE))
+ {
+ u32 len;
- len = build_assoc_resp_p2p_ie(pwdinfo, pframe, pstat->p2p_status_code);
+ len = build_assoc_resp_p2p_ie(pwdinfo, pframe, pstat->p2p_status_code);
- pframe += len;
- pattrib->pktlen += len;
+ pframe += len;
+ pattrib->pktlen += len;
+ }
}
#ifdef CONFIG_WFD
- wfdielen = build_assoc_resp_wfd_ie(pwdinfo, pframe);
- pframe += wfdielen;
- pattrib->pktlen += wfdielen;
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO)
+#ifdef CONFIG_IOCTL_CFG80211
+ && (_TRUE == pwdinfo->wfd_info->wfd_enable)
+#endif //CONFIG_IOCTL_CFG80211
+ )
+ {
+ wfdielen = build_assoc_resp_wfd_ie(pwdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
#endif //CONFIG_WFD
-
#endif //CONFIG_P2P
pattrib->last_txcmdsz = pattrib->pktlen;
@@ -6529,6 +7563,7 @@ void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *p
void issue_assocreq(_adapter *padapter)
{
+ int ret = _FAIL;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
unsigned char *pframe, *p;
@@ -6544,24 +7579,24 @@ void issue_assocreq(_adapter *padapter)
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
int bssrate_len = 0, sta_bssrate_len = 0;
+ u8 cbw40_enable = 0;
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
u8 p2pie[ 255 ] = { 0x00 };
- u16 p2pielen = 0;
+ u16 p2pielen = 0;
#ifdef CONFIG_WFD
u32 wfdielen = 0;
#endif //CONFIG_WFD
-
#endif //CONFIG_P2P
#ifdef CONFIG_DFS
u16 cap;
+ u8 pow_cap_ele[2] = { 0x00 };
+ u8 sup_ch[ 30 * 2 ] = {0x00 }, sup_ch_idx = 0, idx_5g = 2; //For supported channel
#endif //CONFIG_DFS
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- return;
- }
+ goto exit;
//update attribute
pattrib = &pmgntframe->attrib;
@@ -6590,7 +7625,8 @@ void issue_assocreq(_adapter *padapter)
#ifdef CONFIG_DFS
_rtw_memcpy(&cap, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
- cap |= BIT(8);
+ if(pmlmeext->cur_channel > 14)
+ cap |= BIT(8); //Spectrum Mgmt. Enabled
_rtw_memcpy(pframe, &cap, 2);
#else
_rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
@@ -6615,6 +7651,12 @@ void issue_assocreq(_adapter *padapter)
get_rate_set(padapter, sta_bssrate, &sta_bssrate_len);
//DBG_871X("sta_bssrate_len=%d\n", sta_bssrate_len);
+ if(pmlmeext->cur_channel == 14)// for JAPAN, channel 14 can only uses B Mode(CCK)
+ {
+ sta_bssrate_len = 4;
+ }
+
+
//for (i = 0; i < sta_bssrate_len; i++) {
// DBG_871X("sta_bssrate[%d]=%02X\n", i, sta_bssrate[i]);
//}
@@ -6668,6 +7710,13 @@ void issue_assocreq(_adapter *padapter)
#endif
#endif // Check if the AP's supported rates are also supported by STA.
+ if (bssrate_len == 0) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit; //don't connect to AP if no joint supported rate
+ }
+
+
if (bssrate_len > 8)
{
pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
@@ -6678,6 +7727,32 @@ void issue_assocreq(_adapter *padapter)
pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
}
+#ifdef CONFIG_DFS
+ if(pmlmeext->cur_channel > 14)
+ {
+ pow_cap_ele[0] = 13; // Minimum transmit power capability
+ pow_cap_ele[1] = 21; // Maximum transmit power capability
+ pframe = rtw_set_ie(pframe, _POW_CAP_IE_, 2, pow_cap_ele, &(pattrib->pktlen));
+
+ //supported channels
+ do{
+ if( pmlmeext->channel_set[sup_ch_idx].ChannelNum <= 14 )
+ {
+ sup_ch[0] = 1; //First channel number
+ sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum; //Number of channel
+ }
+ else
+ {
+ sup_ch[idx_5g++] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;
+ sup_ch[idx_5g++] = 1;
+ }
+ sup_ch_idx++;
+ }
+ while( pmlmeext->channel_set[sup_ch_idx].ChannelNum != 0 );
+ pframe = rtw_set_ie(pframe, _SUPPORTED_CH_IE_, idx_5g, sup_ch, &(pattrib->pktlen));
+ }
+#endif //CONFIG_DFS
+
//RSN
p = rtw_get_ie((pmlmeinfo->network.IEs + sizeof(NDIS_802_11_FIXED_IEs)), _RSN_IE_2_, &ie_len, (pmlmeinfo->network.IELength - sizeof(NDIS_802_11_FIXED_IEs)));
if (p != NULL)
@@ -6695,55 +7770,79 @@ void issue_assocreq(_adapter *padapter)
_rtw_memcpy(&(pmlmeinfo->HT_caps), (p + 2), sizeof(struct HT_caps_element));
//to disable 40M Hz support while gd_bw_40MHz_en = 0
- if (pregpriv->cbw40_enable == 0)
+ if( pmlmeext->cur_channel > 14)
+ {
+ if(pregpriv->cbw40_enable & BIT(1) )
+ cbw40_enable=1;
+ }
+ else
+ if(pregpriv->cbw40_enable & BIT(0) )
+ cbw40_enable=1;
+
+ if (cbw40_enable == 0)
{
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info &= (~(BIT(6) | BIT(1)));
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info &= (~(BIT(6) | BIT(1)));
}
else
{
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info |= BIT(1);
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= BIT(1);
}
//todo: disable SM power save mode
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info |= 0x000c;
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= 0x000c;
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
//switch (pregpriv->rf_config)
switch(rf_type)
{
case RF_1T1R:
if(pregpriv->rx_stbc)
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);//RX STBC One spatial stream
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);//RX STBC One spatial stream
- _rtw_memcpy(pmlmeinfo->HT_caps.HT_cap_element.MCS_rate, MCS_rate_1R, 16);
+ _rtw_memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_1R, 16);
break;
case RF_2T2R:
case RF_1T2R:
default:
-
+
+
+ if(pregpriv->special_rf_path)
+ {
+ if(pregpriv->rx_stbc)
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);//RX STBC One spatial stream
+ _rtw_memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_1R, 16);
+ break;
+ }
+
if((pregpriv->rx_stbc == 0x3) ||//enable for 2.4/5 GHz
((pmlmeext->cur_wireless_mode & WIRELESS_11_24N) && (pregpriv->rx_stbc == 0x1)) || //enable for 2.4GHz
- ((pmlmeext->cur_wireless_mode & WIRELESS_11_5N) && (pregpriv->rx_stbc == 0x2))) //enable for 5GHz
+ ((pmlmeext->cur_wireless_mode & WIRELESS_11_5N) && (pregpriv->rx_stbc == 0x2)) || //enable for 5GHz
+ (pregpriv->wifi_spec==1))
{
DBG_871X("declare supporting RX STBC\n");
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0200);//RX STBC two spatial stream
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0200);//RX STBC two spatial stream
}
-
- _rtw_memcpy(pmlmeinfo->HT_caps.HT_cap_element.MCS_rate, MCS_rate_2R, 16);
+ #ifdef CONFIG_DISABLE_MCS13TO15
+ if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40 && (pregpriv->wifi_spec!=1))
+ _rtw_memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_2R_MCS13TO15_OFF, 16);
+ else
+ _rtw_memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_2R, 16);
+ #else //CONFIG_DISABLE_MCS13TO15
+ _rtw_memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_2R, 16);
+ #endif //CONFIG_DISABLE_MCS13TO15
break;
-
}
- #ifdef RTL8192C_RECONFIG_TO_1T1R
+#ifdef RTL8192C_RECONFIG_TO_1T1R
{
- //if(pregpriv->rx_stbc)
- //pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);//RX STBC One spatial stream
+ if(pregpriv->rx_stbc)
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);//RX STBC One spatial stream
_rtw_memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_1R, 16);
}
- #endif
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info = cpu_to_le16(pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info);
+#endif
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info = cpu_to_le16(pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info);
pframe = rtw_set_ie(pframe, _HT_CAPABILITY_IE_, ie_len , (u8 *)(&(pmlmeinfo->HT_caps)), &(pattrib->pktlen));
}
@@ -6758,17 +7857,19 @@ void issue_assocreq(_adapter *padapter)
switch (pIE->ElementID)
{
case _VENDOR_SPECIFIC_IE_:
- if ((_rtw_memcmp(pIE->data, WPA_OUI, 4)) ||
+ if ((_rtw_memcmp(pIE->data, RTW_WPA_OUI, 4)) ||
(_rtw_memcmp(pIE->data, WMM_OUI, 4)) ||
(_rtw_memcmp(pIE->data, WPS_OUI, 4)))
{
- //Commented by Kurt 20110629
- //In some older APs, WPS handshake
- //would be fail if we append vender extensions informations to AP
- if(_rtw_memcmp(pIE->data, WPS_OUI, 4)){
- pIE->Length=14;
+ if(!padapter->registrypriv.wifi_spec)
+ {
+ //Commented by Kurt 20110629
+ //In some older APs, WPS handshake
+ //would be fail if we append vender extensions informations to AP
+ if(_rtw_memcmp(pIE->data, WPS_OUI, 4)){
+ pIE->Length=14;
+ }
}
-
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, pIE->Length, pIE->data, &(pattrib->pktlen));
}
break;
@@ -6788,7 +7889,7 @@ void issue_assocreq(_adapter *padapter)
#ifdef CONFIG_P2P
#ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled)
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
if(pmlmepriv->p2p_assoc_req_ie && pmlmepriv->p2p_assoc_req_ie_len>0)
{
@@ -6829,12 +7930,13 @@ void issue_assocreq(_adapter *padapter)
// Value:
// Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC;
-
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
+
// Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ if ( pwdinfo->persistent_supported )
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_PERSISTENT_GROUP | DMP_P2P_GRPCAP_SUPPORT;
+ else
+ p2pie[ p2pielen++ ] = DMP_P2P_GRPCAP_SUPPORT;
// Extended Listen Timing
// Type:
@@ -6884,7 +7986,7 @@ void issue_assocreq(_adapter *padapter)
// Primary Device Type
// Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
p2pielen += 2;
// OUI
@@ -6892,7 +7994,7 @@ void issue_assocreq(_adapter *padapter)
p2pielen += 4;
// Sub Category ID
- *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
+ *(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
p2pielen += 2;
// Number of Secondary Device Types
@@ -6929,45 +8031,76 @@ void issue_assocreq(_adapter *padapter)
p2pielen += ETH_ALEN;
pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen );
-
-#ifdef CONFIG_WFD
- wfdielen = build_assoc_req_wfd_ie(pwdinfo, pframe);
- pframe += wfdielen;
- pattrib->pktlen += wfdielen;
-#endif //CONFIG_WFD
- }
- }
#ifdef CONFIG_WFD
- wfdielen = build_assoc_req_wfd_ie(pwdinfo, pframe);
- pframe += wfdielen;
- pattrib->pktlen += wfdielen;
+ //wfdielen = build_assoc_req_wfd_ie(pwdinfo, pframe);
+ //pframe += wfdielen;
+ //pattrib->pktlen += wfdielen;
#endif //CONFIG_WFD
+ }
+ }
#endif //CONFIG_P2P
+#ifdef CONFIG_WFD
+#ifdef CONFIG_IOCTL_CFG80211
+ if ( _TRUE == pwdinfo->wfd_info->wfd_enable )
+#endif //CONFIG_IOCTL_CFG80211
+ {
+ wfdielen = build_assoc_req_wfd_ie(pwdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+#ifdef CONFIG_IOCTL_CFG80211
+ else if (pmlmepriv->wfd_assoc_req_ie != NULL && pmlmepriv->wfd_assoc_req_ie_len>0)
+ {
+ //WFD IE
+ _rtw_memcpy(pframe, pmlmepriv->wfd_assoc_req_ie, pmlmepriv->wfd_assoc_req_ie_len);
+ pattrib->pktlen += pmlmepriv->wfd_assoc_req_ie_len;
+ pframe += pmlmepriv->wfd_assoc_req_ie_len;
+ }
+#endif //CONFIG_IOCTL_CFG80211
+#endif //CONFIG_WFD
+
pattrib->last_txcmdsz = pattrib->pktlen;
dump_mgntframe(padapter, pmgntframe);
+ ret = _SUCCESS;
+
+exit:
+ if (ret == _SUCCESS)
+ rtw_buf_update(&pmlmepriv->assoc_req, &pmlmepriv->assoc_req_len, (u8 *)pwlanhdr, pattrib->pktlen);
+ else
+ rtw_buf_free(&pmlmepriv->assoc_req, &pmlmepriv->assoc_req_len);
+
return;
}
-void issue_nulldata(_adapter *padapter, unsigned int power_mode)
+//when wait_ack is ture, this function shoule be called at process context
+static int _issue_nulldata(_adapter *padapter, unsigned char *da, unsigned int power_mode, int wait_ack)
{
+ int ret = _FAIL;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
unsigned char *pframe;
struct rtw_ieee80211_hdr *pwlanhdr;
unsigned short *fctrl;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct xmit_priv *pxmitpriv;
+ struct mlme_ext_priv *pmlmeext;
+ struct mlme_ext_info *pmlmeinfo;
//DBG_871X("%s:%d\n", __FUNCTION__, power_mode);
+ if(!padapter)
+ goto exit;
+
+ pxmitpriv = &(padapter->xmitpriv);
+ pmlmeext = &(padapter->mlmeextpriv);
+ pmlmeinfo = &(pmlmeext->mlmext_info);
+
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
- return;
+ goto exit;
}
//update attribute
@@ -6997,7 +8130,7 @@ void issue_nulldata(_adapter *padapter, unsigned int power_mode)
SetPwrMgt(fctrl);
}
- _rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr1, da, ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
@@ -7009,14 +8142,75 @@ void issue_nulldata(_adapter *padapter, unsigned int power_mode)
pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
pattrib->last_txcmdsz = pattrib->pktlen;
- dump_mgntframe(padapter, pmgntframe);
- return;
+ if(wait_ack)
+ {
+ ret = dump_mgntframe_and_wait_ack(padapter, pmgntframe);
+ }
+ else
+ {
+ dump_mgntframe(padapter, pmgntframe);
+ ret = _SUCCESS;
+ }
+
+exit:
+ return ret;
}
-void issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid)
+//when wait_ms >0 , this function shoule be called at process context
+//da == NULL for station mode
+int issue_nulldata(_adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms)
+{
+ int ret;
+ int i = 0;
+ u32 start = rtw_get_current_time();
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ /* da == NULL, assum it's null data for sta to ap*/
+ if (da == NULL)
+ da = get_my_bssid(&(pmlmeinfo->network));
+
+ do
+ {
+ ret = _issue_nulldata(padapter, da, power_mode, wait_ms>0?_TRUE:_FALSE);
+
+ i++;
+
+ if (padapter->bDriverStopped || padapter->bSurpriseRemoved)
+ break;
+
+ if(i < try_cnt && wait_ms > 0 && ret==_FAIL)
+ rtw_msleep_os(wait_ms);
+
+ }while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
+
+ if (ret != _FAIL) {
+ ret = _SUCCESS;
+ #ifndef DBG_XMIT_ACK
+ goto exit;
+ #endif
+ }
+
+ if (try_cnt && wait_ms) {
+ if (da)
+ DBG_871X(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), MAC_ARG(da), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ else
+ DBG_871X(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ }
+exit:
+ return ret;
+}
+
+//when wait_ack is ture, this function shoule be called at process context
+static int _issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid, int wait_ack)
{
+ int ret = _FAIL;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
unsigned char *pframe;
@@ -7030,7 +8224,7 @@ void issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid)
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
- return;
+ goto exit;
}
//update attribute
@@ -7083,11 +8277,71 @@ void issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid)
pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr_qos);
pattrib->last_txcmdsz = pattrib->pktlen;
- dump_mgntframe(padapter, pmgntframe);
+ if(wait_ack)
+ {
+ ret = dump_mgntframe_and_wait_ack(padapter, pmgntframe);
+ }
+ else
+ {
+ dump_mgntframe(padapter, pmgntframe);
+ ret = _SUCCESS;
+ }
+
+exit:
+ return ret;
+}
+
+//when wait_ms >0 , this function shoule be called at process context
+//da == NULL for station mode
+int issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms)
+{
+ int ret;
+ int i = 0;
+ u32 start = rtw_get_current_time();
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ /* da == NULL, assum it's null data for sta to ap*/
+ if (da == NULL)
+ da = get_my_bssid(&(pmlmeinfo->network));
+
+ do
+ {
+ ret = _issue_qos_nulldata(padapter, da, tid, wait_ms>0?_TRUE:_FALSE);
+
+ i++;
+
+ if (padapter->bDriverStopped || padapter->bSurpriseRemoved)
+ break;
+
+ if(i < try_cnt && wait_ms > 0 && ret==_FAIL)
+ rtw_msleep_os(wait_ms);
+
+ }while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
+
+ if (ret != _FAIL) {
+ ret = _SUCCESS;
+ #ifndef DBG_XMIT_ACK
+ goto exit;
+ #endif
+ }
+
+ if (try_cnt && wait_ms) {
+ if (da)
+ DBG_871X(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), MAC_ARG(da), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ else
+ DBG_871X(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ }
+exit:
+ return ret;
}
-void issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason)
+static int _issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason, u8 wait_ack)
{
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
@@ -7097,12 +8351,24 @@ void issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason)
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- DBG_871X("%s to "MAC_FMT"\n", __func__, MAC_ARG(da));
+ int ret = _FAIL;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif //CONFIG_P2P
+ //DBG_871X("%s to "MAC_FMT"\n", __func__, MAC_ARG(da));
+
+#ifdef CONFIG_P2P
+ if ( !( rtw_p2p_chk_state( pwdinfo, P2P_STATE_NONE ) ) && ( pwdinfo->rx_invitereq_info.scan_op_ch_only ) )
+ {
+ _cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey );
+ _set_timer( &pwdinfo->reset_ch_sitesurvey, 10 );
+ }
+#endif //CONFIG_P2P
+
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
- return;
+ goto exit;
}
//update attribute
@@ -7134,17 +8400,138 @@ void issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason)
pattrib->last_txcmdsz = pattrib->pktlen;
+
+ if(wait_ack)
+ {
+ ret = dump_mgntframe_and_wait_ack(padapter, pmgntframe);
+ }
+ else
+ {
+ dump_mgntframe(padapter, pmgntframe);
+ ret = _SUCCESS;
+ }
+
+exit:
+ return ret;
+}
+
+int issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason)
+{
+ DBG_871X("%s to "MAC_FMT"\n", __func__, MAC_ARG(da));
+ return _issue_deauth(padapter, da, reason, _FALSE);
+}
+
+int issue_deauth_ex(_adapter *padapter, u8 *da, unsigned short reason, int try_cnt,
+ int wait_ms)
+{
+ int ret;
+ int i = 0;
+ u32 start = rtw_get_current_time();
+
+ do
+ {
+ ret = _issue_deauth(padapter, da, reason, wait_ms>0?_TRUE:_FALSE);
+
+ i++;
+
+ if (padapter->bDriverStopped || padapter->bSurpriseRemoved)
+ break;
+
+ if(i < try_cnt && wait_ms > 0 && ret==_FAIL)
+ rtw_msleep_os(wait_ms);
+
+ }while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
+
+ if (ret != _FAIL) {
+ ret = _SUCCESS;
+ #ifndef DBG_XMIT_ACK
+ goto exit;
+ #endif
+ }
+
+ if (try_cnt && wait_ms) {
+ if (da)
+ DBG_871X(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), MAC_ARG(da), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ else
+ DBG_871X(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
+ FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
+ ret==_SUCCESS?", acked":"", i, try_cnt, rtw_get_passing_time_ms(start));
+ }
+exit:
+ return ret;
+}
+
+void issue_action_spct_ch_switch(_adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset)
+{
+ _irqL irqL;
+ _list *plist, *phead;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ unsigned short *fctrl;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+
+ DBG_871X(FUNC_NDEV_FMT" ra="MAC_FMT", ch:%u, offset:%u\n",
+ FUNC_NDEV_ARG(padapter->pnetdev), MAC_ARG(ra), new_ch, ch_offset);
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ return;
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+ update_mgntframe_attrib(padapter, pattrib);
+
+ _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+ fctrl = &(pwlanhdr->frame_ctl);
+ *(fctrl) = 0;
+
+ _rtw_memcpy(pwlanhdr->addr1, ra, ETH_ALEN); /* RA */
+ _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN); /* TA */
+ _rtw_memcpy(pwlanhdr->addr3, ra, ETH_ALEN); /* DA = RA */
+
+ SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
+ pmlmeext->mgnt_seq++;
+ SetFrameSubType(pframe, WIFI_ACTION);
+
+ pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ /* category, action */
+ {
+ u8 category, action;
+ category = RTW_WLAN_CATEGORY_SPECTRUM_MGMT;
+ action = RTW_WLAN_ACTION_SPCT_CHL_SWITCH;
+
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ }
+
+ pframe = rtw_set_ie_ch_switch(pframe, &(pattrib->pktlen), 0, new_ch, 0);
+ pframe = rtw_set_ie_secondary_ch_offset(pframe, &(pattrib->pktlen),
+ hal_ch_offset_to_secondary_ch_offset(ch_offset));
+
+ pattrib->last_txcmdsz = pattrib->pktlen;
+
dump_mgntframe(padapter, pmgntframe);
+
}
-void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short status)
+#ifdef CONFIG_IEEE80211W
+void issue_action_SA_Query(_adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short tid)
{
- u8 category = RTW_WLAN_CATEGORY_BACK;
- u16 start_seq;
- u16 BA_para_set;
+ u8 category = RTW_WLAN_CATEGORY_SA_QUERY;
u16 reason_code;
- u16 BA_timeout_value;
- u16 BA_starting_seqctrl;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
u8 *pframe;
@@ -7158,10 +8545,11 @@ void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char act
struct registry_priv *pregpriv = &padapter->registrypriv;
- DBG_871X("%s, category=%d, action=%d, status=%d\n", __FUNCTION__, category, action, status);
+ DBG_871X("%s\n", __FUNCTION__);
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
+ DBG_871X("%s: alloc_mgtxmitframe fail\n", __FUNCTION__);
return;
}
@@ -7177,8 +8565,10 @@ void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char act
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
- //_rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr1, raddr, ETH_ALEN);
+ if(raddr)
+ _rtw_memcpy(pwlanhdr->addr1, raddr, ETH_ALEN);
+ else
+ _rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
@@ -7189,11 +8579,89 @@ void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char act
pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
-
- status = cpu_to_le16(status);
-
+ pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen);
+ pframe = rtw_set_fixed_ie(pframe, 1, &action, &pattrib->pktlen);
+
+ switch (action)
+ {
+ case 0: //SA Query req
+ pframe = rtw_set_fixed_ie(pframe, 2, (unsigned char *)&pmlmeext->sa_query_seq, &pattrib->pktlen);
+ pmlmeext->sa_query_seq++;
+ //send sa query request to AP, AP should reply sa query response in 1 second
+ set_sa_query_timer(pmlmeext, 1000);
+ break;
+
+ case 1: //SA Query rsp
+ tid = cpu_to_le16(tid);
+ pframe = rtw_set_fixed_ie(pframe, 2, (unsigned char *)&tid, &pattrib->pktlen);
+ break;
+ default:
+ break;
+ }
+
+ pattrib->last_txcmdsz = pattrib->pktlen;
+
+ dump_mgntframe(padapter, pmgntframe);
+}
+#endif //CONFIG_IEEE80211W
+
+void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short status)
+{
+ u8 category = RTW_WLAN_CATEGORY_BACK;
+ u16 start_seq;
+ u16 BA_para_set;
+ u16 reason_code;
+ u16 BA_timeout_value;
+ u16 BA_starting_seqctrl;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ u8 *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ u16 *fctrl;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct sta_info *psta;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+
+
+ DBG_871X("%s, category=%d, action=%d, status=%d\n", __FUNCTION__, category, action, status);
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+ update_mgntframe_attrib(padapter, pattrib);
+
+ _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+ fctrl = &(pwlanhdr->frame_ctl);
+ *(fctrl) = 0;
+
+ //_rtw_memcpy(pwlanhdr->addr1, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr1, raddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
+
+ SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
+ pmlmeext->mgnt_seq++;
+ SetFrameSubType(pframe, WIFI_ACTION);
+
+ pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+
+ status = cpu_to_le16(status);
+
if (category == 3)
{
@@ -7442,7 +8910,7 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
if(psta==NULL)
return _SUCCESS;
- //DBG_8192C("%s:%s\n", __FUNCTION__, (initiator==0)?"RX_DIR":"TX_DIR");
+ //DBG_871X("%s:%s\n", __FUNCTION__, (initiator==0)?"RX_DIR":"TX_DIR");
if(initiator==0) // recipient
{
@@ -7450,7 +8918,7 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
{
if(psta->recvreorder_ctrl[tid].enable == _TRUE)
{
- DBG_8192C("rx agg disable tid(%d)\n",tid);
+ DBG_871X("rx agg disable tid(%d)\n",tid);
issue_action_BA(padapter, addr, RTW_WLAN_ACTION_DELBA, (((tid <<1) |initiator)&0x1F));
psta->recvreorder_ctrl[tid].enable = _FALSE;
psta->recvreorder_ctrl[tid].indicate_seq = 0xffff;
@@ -7463,12 +8931,12 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
}
else if(initiator == 1)// originator
{
- //DBG_8192C("tx agg_enable_bitmap(0x%08x)\n", psta->htpriv.agg_enable_bitmap);
+ //DBG_871X("tx agg_enable_bitmap(0x%08x)\n", psta->htpriv.agg_enable_bitmap);
for(tid = 0;tid<MAXTID;tid++)
{
if(psta->htpriv.agg_enable_bitmap & BIT(tid))
{
- DBG_8192C("tx agg disable tid(%d)\n",tid);
+ DBG_871X("tx agg disable tid(%d)\n",tid);
issue_action_BA(padapter, addr, RTW_WLAN_ACTION_DELBA, (((tid <<1) |initiator)&0x1F) );
psta->htpriv.agg_enable_bitmap &= ~BIT(tid);
psta->htpriv.candidate_tid_bitmap &= ~BIT(tid);
@@ -7484,38 +8952,63 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
unsigned int send_beacon(_adapter *padapter)
{
u8 bxmitok = _FALSE;
- int retry=0;
-
- //DBG_871X("%s\n", __FUNCTION__);
+ int issue=0;
+ int poll = 0;
+//#ifdef CONFIG_CONCURRENT_MODE
+ //struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ //struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ //_adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ //struct mlme_priv *pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+//#endif
#ifdef CONFIG_PCI_HCI
+ //DBG_871X("%s\n", __FUNCTION__);
+
issue_beacon(padapter);
return _SUCCESS;
#endif
-#ifdef CONFIG_USB_HCI
- do{
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+ u32 start = rtw_get_current_time();
+ rtw_hal_set_hwreg(padapter, HW_VAR_BCN_VALID, NULL);
+ do{
issue_beacon(padapter);
+ issue++;
+ do {
+ rtw_yield_os();
+ rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
+ poll++;
+ }while((poll%10)!=0 && _FALSE == bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_TX_BCN_DONE, (u8 *)(&bxmitok));
-
- }while((_FALSE == bxmitok) &&((retry++)<100 ));
+ }while(_FALSE == bxmitok && issue<100 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
- if(retry == 100)
+ if(padapter->bSurpriseRemoved || padapter->bDriverStopped)
+ {
+ return _FAIL;
+ }
+ if(_FALSE == bxmitok)
{
- DBG_871X("send_beacon, fail!\n");
+ DBG_871X("%s fail! %u ms\n", __FUNCTION__, rtw_get_passing_time_ms(start));
return _FAIL;
}
else
{
+ u32 passing_time = rtw_get_passing_time_ms(start);
+
+ if(passing_time > 100 || issue > 3)
+ DBG_871X("%s success, issue:%d, poll:%d, %u ms\n", __FUNCTION__, issue, poll, rtw_get_passing_time_ms(start));
+ //else
+ // DBG_871X("%s success, issue:%d, poll:%d, %u ms\n", __FUNCTION__, issue, poll, rtw_get_passing_time_ms(start));
+
return _SUCCESS;
}
-#endif
-
+
+#endif
+
}
/****************************************************************************
@@ -7547,41 +9040,96 @@ void site_survey(_adapter *padapter)
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
u32 initialgain = 0;
-
+ u8 restore_initial_gain = 1;
+
#ifdef CONFIG_P2P
+
+#ifdef CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ u8 stay_buddy_ch = 0;
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+#endif //CONFIG_CONCURRENT_MODE
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
static unsigned char prev_survey_channel = 0;
static unsigned int p2p_scan_count = 0;
-
- if(rtw_p2p_findphase_ex_is_social(pwdinfo))
+
+
+ if ( ( pwdinfo->rx_invitereq_info.scan_op_ch_only ) || ( pwdinfo->p2p_info.scan_op_ch_only ) )
+ {
+ if ( pwdinfo->rx_invitereq_info.scan_op_ch_only )
+ {
+ survey_channel = pwdinfo->rx_invitereq_info.operation_ch[pmlmeext->sitesurvey_res.channel_idx];
+ }
+ else
+ {
+ survey_channel = pwdinfo->p2p_info.operation_ch[pmlmeext->sitesurvey_res.channel_idx];
+ }
+ ScanType = SCAN_ACTIVE;
+ }
+ else if(rtw_p2p_findphase_ex_is_social(pwdinfo))
{
// Commented by Albert 2011/06/03
// The driver is in the find phase, it should go through the social channel.
+ int ch_set_idx;
survey_channel = pwdinfo->social_chan[pmlmeext->sitesurvey_res.channel_idx];
+ ch_set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, survey_channel);
+ if (ch_set_idx >= 0)
+ ScanType = pmlmeext->channel_set[ch_set_idx].ScanType;
+ else
+ ScanType = SCAN_ACTIVE;
}
else
#endif //CONFIG_P2P
{
- survey_channel = pmlmeext->channel_set[pmlmeext->sitesurvey_res.channel_idx].ChannelNum;
+ struct rtw_ieee80211_channel *ch;
+ if (pmlmeext->sitesurvey_res.channel_idx < pmlmeext->sitesurvey_res.ch_num) {
+ ch = &pmlmeext->sitesurvey_res.ch[pmlmeext->sitesurvey_res.channel_idx];
+ survey_channel = ch->hw_value;
+ ScanType = (ch->flags & RTW_IEEE80211_CHAN_PASSIVE_SCAN) ? SCAN_PASSIVE : SCAN_ACTIVE;
+ }
}
- ScanType = pmlmeext->channel_set[pmlmeext->sitesurvey_res.channel_idx].ScanType;
-
- //DBG_871X("switching to ch:%d (cnt:%u,idx:%d) at %dms, %c%c%c\n"
- // , survey_channel
- // , pwdinfo->find_phase_state_exchange_cnt, pmlmeext->sitesurvey_res.channel_idx
- // , rtw_get_passing_time_ms(padapter->mlmepriv.scan_start_time)
- // , ScanType?'A':'P', pmlmeext->sitesurvey_res.scan_mode?'A':'P'
- // , pmlmeext->sitesurvey_res.ssid[0].SsidLength?'S':' '
- //);
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" ch:%u(cnt:%u,idx:%d) at %dms, %c%c%c\n"
+ , FUNC_ADPT_ARG(padapter)
+ , survey_channel
+ , pwdinfo->find_phase_state_exchange_cnt, pmlmeext->sitesurvey_res.channel_idx
+ , rtw_get_passing_time_ms(padapter->mlmepriv.scan_start_time)
+ , ScanType?'A':'P', pmlmeext->sitesurvey_res.scan_mode?'A':'P'
+ , pmlmeext->sitesurvey_res.ssid[0].SsidLength?'S':' '
+ );
if(survey_channel != 0)
{
//PAUSE 4-AC Queue when site_survey
- //padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8));
+ //rtw_hal_get_hwreg(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8));
//val8 |= 0x0f;
- //padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8));
-
+ //rtw_hal_set_hwreg(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8));
+#ifdef CONFIG_CONCURRENT_MODE
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ if((padapter->pbuddy_adapter->mlmeextpriv.mlmext_info.state&0x03) == WIFI_FW_AP_STATE)
+ {
+ if( pmlmeinfo->scan_cnt == RTW_SCAN_NUM_OF_CH )
+ {
+ pmlmeinfo->scan_cnt = 0;
+ survey_channel = pbuddy_mlmeext->cur_channel;
+ stay_buddy_ch = 1;
+ }
+ else
+ {
+ if( pmlmeinfo->scan_cnt == 0 )
+ stay_buddy_ch = 2;
+ pmlmeinfo->scan_cnt++;
+ }
+ }
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+#endif //CONFIG_CONCURRENT_MODE
if(pmlmeext->sitesurvey_res.channel_idx == 0)
{
set_channel_bwmode(padapter, survey_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
@@ -7591,17 +9139,35 @@ void site_survey(_adapter *padapter)
SelectChannel(padapter, survey_channel);
}
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ if( stay_buddy_ch == 1 )
+ {
+ val8 = 0; //survey done
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+
+ if(check_buddy_mlmeinfo_state(padapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(padapter, _FW_LINKED))
+ {
+ update_beacon(padapter->pbuddy_adapter, 0, NULL, _TRUE);
+ }
+ }
+ else if( stay_buddy_ch == 2 )
+ {
+ val8 = 1; //under site survey
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ }
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
if(ScanType == SCAN_ACTIVE) //obey the channel plan setting...
- {
+ {
#ifdef CONFIG_P2P
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_SCAN) ||
rtw_p2p_chk_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH)
)
{
- issue_probereq_p2p(padapter);
- issue_probereq_p2p(padapter);
- issue_probereq_p2p(padapter);
+ issue_probereq_p2p(padapter, NULL);
+ issue_probereq_p2p(padapter, NULL);
+ issue_probereq_p2p(padapter, NULL);
}
else
#endif //CONFIG_P2P
@@ -7610,9 +9176,9 @@ void site_survey(_adapter *padapter)
for(i=0;i<RTW_SSID_SCAN_AMOUNT;i++){
if(pmlmeext->sitesurvey_res.ssid[i].SsidLength) {
//todo: to issue two probe req???
- issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]),1);
+ issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]), NULL);
//rtw_msleep_os(SURVEY_TO>>1);
- issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]),1);
+ issue_probereq(padapter, &(pmlmeext->sitesurvey_res.ssid[i]), NULL);
} else {
break;
}
@@ -7620,47 +9186,98 @@ void site_survey(_adapter *padapter)
if(pmlmeext->sitesurvey_res.scan_mode == SCAN_ACTIVE) {
//todo: to issue two probe req???
- issue_probereq(padapter, NULL, 1);
+ issue_probereq(padapter, NULL, NULL);
//rtw_msleep_os(SURVEY_TO>>1);
- issue_probereq(padapter, NULL, 1);
+ issue_probereq(padapter, NULL, NULL);
}
}
}
- set_survey_timer(pmlmeext, pmlmeext->chan_scan_time);
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ if( stay_buddy_ch == 1 )
+ set_survey_timer(pmlmeext, pmlmeext->chan_scan_time * RTW_STAY_AP_CH_MILLISECOND );
+ else
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ set_survey_timer(pmlmeext, pmlmeext->chan_scan_time);
}
else
{
// channel number is 0 or this channel is not valid.
+
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 cur_channel;
+ u8 cur_bwmode;
+ u8 cur_ch_offset;
+
+ if (rtw_get_ch_setting_union(padapter, &cur_channel, &cur_bwmode, &cur_ch_offset) != 0)
+ {
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" back to linked union - ch:%u, bw:%u, offset:%u\n",
+ FUNC_ADPT_ARG(padapter), cur_channel, cur_bwmode, cur_ch_offset);
+ }
+ #ifdef CONFIG_IOCTL_CFG80211
+ else if(padapter->pbuddy_adapter
+ && pbuddy_adapter->wdinfo.driver_interface == DRIVER_CFG80211
+ && wdev_to_priv(pbuddy_adapter->rtw_wdev)->p2p_enabled
+ && rtw_p2p_chk_state(&pbuddy_adapter->wdinfo, P2P_STATE_LISTEN)
+ )
+ {
+ cur_channel = pbuddy_adapter->wdinfo.listen_channel;
+ cur_bwmode = pbuddy_mlmeext->cur_bwmode;
+ cur_ch_offset = pbuddy_mlmeext->cur_ch_offset;
+ }
+ #endif
+ else
+ {
+ cur_channel = pmlmeext->cur_channel;
+ cur_bwmode = pmlmeext->cur_bwmode;
+ cur_ch_offset = pmlmeext->cur_ch_offset;
+ }
+#endif
+
+
#ifdef CONFIG_P2P
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_SCAN) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH))
{
+ if( ( pwdinfo->rx_invitereq_info.scan_op_ch_only ) || ( pwdinfo->p2p_info.scan_op_ch_only ) )
+ {
+ // Set the find_phase_state_exchange_cnt to P2P_FINDPHASE_EX_CNT.
+ // This will let the following flow to run the scanning end.
+ rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_MAX);
+ }
#ifdef CONFIG_DBG_P2P
- DBG_8192C( "[%s] find phase exchange cnt = %d\n", __FUNCTION__, pwdinfo->find_phase_state_exchange_cnt );
+ DBG_871X( "[%s] find phase exchange cnt = %d\n", __FUNCTION__, pwdinfo->find_phase_state_exchange_cnt );
#endif
}
-
+
if(rtw_p2p_findphase_ex_is_needed(pwdinfo))
{
// Set the P2P State to the listen state of find phase and set the current channel to the listen channel
set_channel_bwmode(padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_LISTEN);
-
pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
+ //turn on dynamic functions
+ Restore_DM_Func_Flag(padapter);
+ //Switch_DM_Func(padapter, DYNAMIC_FUNC_DIG|DYNAMIC_FUNC_HP|DYNAMIC_FUNC_SS, _TRUE);
+
_set_timer( &pwdinfo->find_phase_timer, ( u32 ) ( ( u32 ) ( pwdinfo->listen_dwell ) * 100 ) );
}
else
#endif //CONFIG_P2P
{
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ pmlmeinfo->scan_cnt = 0;
+#endif //CONFIG_DMP_STA_NODE_SCAN_UNDER_AP_MODE
+
#ifdef CONFIG_ANTENNA_DIVERSITY
// 20100721:Interrupt scan operation here.
// For SW antenna diversity before link, it needs to switch to another antenna and scan again.
// It compares the scan result and select beter one to do connection.
- if(padapter->HalFunc.SwAntDivBeforeLinkHandler(padapter))
+ if(rtw_hal_antdiv_before_linked(padapter))
{
pmlmeext->sitesurvey_res.bss_cnt = 0;
pmlmeext->sitesurvey_res.channel_idx = -1;
@@ -7673,7 +9290,18 @@ void site_survey(_adapter *padapter)
#ifdef CONFIG_P2P
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_SCAN) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH))
{
- rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
+ #ifdef CONFIG_CONCURRENT_MODE
+ if( pwdinfo->driver_interface == DRIVER_WEXT )
+ {
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _set_timer( &pwdinfo->ap_p2p_switch_timer, 500 );
+ }
+ }
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+ #else
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+ #endif
}
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
#endif //CONFIG_P2P
@@ -7683,41 +9311,77 @@ void site_survey(_adapter *padapter)
//switch back to the original channel
//SelectChannel(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset);
-#ifdef CONFIG_P2P
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_OK)
- && pwdinfo->peer_operating_ch != 0
- )
- {
- DBG_8192C( "[%s] In P2P WPS mode, stay in the peer operating channel = %d\n", __FUNCTION__, pwdinfo->peer_operating_ch );
- set_channel_bwmode(padapter, pwdinfo->peer_operating_ch, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
- }
- else
-#endif //CONFIG_P2P
{
- set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+#ifdef CONFIG_CONCURRENT_MODE
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
+#else
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_set_channel_bwmode_survey_done(padapter);
+#else
+ if( pwdinfo->driver_interface == DRIVER_WEXT )
+ {
+ if( rtw_p2p_chk_state(pwdinfo, P2P_STATE_LISTEN) )
+ {
+ set_channel_bwmode(padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
+ else
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ }
+ else if( pwdinfo->driver_interface == DRIVER_CFG80211 )
+ {
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ }
+#endif //CONFIG_DUALMAC_CONCURRENT
+#endif //CONFIG_CONCURRENT_MODE
}
//flush 4-AC Queue after site_survey
//val8 = 0;
- //padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8));
+ //rtw_hal_set_hwreg(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8));
- val8 = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ val8 = 0; //survey done
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
//config MSR
- Set_NETYPE0_MSR(padapter, (pmlmeinfo->state & 0x3));
+ Set_MSR(padapter, (pmlmeinfo->state & 0x3));
+
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if((wdev_to_priv(padapter->rtw_wdev))->p2p_enabled == _TRUE)
+ {
+ restore_initial_gain = 0;
+ }
+#endif //CONFIG_IOCTL_CFG80211
+
+ if(restore_initial_gain == 1)
+ {
+ initialgain = 0xff; //restore RX GAIN
+ rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
+ }
- initialgain = 0xff; //restore RX GAIN
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
//turn on dynamic functions
Restore_DM_Func_Flag(padapter);
//Switch_DM_Func(padapter, DYNAMIC_FUNC_DIG|DYNAMIC_FUNC_HP|DYNAMIC_FUNC_SS, _TRUE);
if (is_client_associated_to_ap(padapter) == _TRUE)
{
- //issue null data
- issue_nulldata(padapter, 0);
+ issue_nulldata(padapter, NULL, 0, 3, 500);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(is_client_associated_to_ap(padapter->pbuddy_adapter) == _TRUE)
+ {
+ DBG_871X("adapter is surveydone(buddy_adapter is linked), issue nulldata(pwrbit=0)\n");
+
+ issue_nulldata(padapter->pbuddy_adapter, NULL, 0, 3, 500);
+ }
+#endif
+ }
+#ifdef CONFIG_CONCURRENT_MODE
+ else if(is_client_associated_to_ap(padapter->pbuddy_adapter) == _TRUE)
+ {
+ issue_nulldata(padapter->pbuddy_adapter, NULL, 0, 3, 500);
}
+#endif
report_surveydone_event(padapter);
@@ -7730,6 +9394,19 @@ void site_survey(_adapter *padapter)
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_mlmeinfo_state(padapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(padapter, _FW_LINKED))
+ {
+
+ DBG_871X("survey done, current CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
+
+ DBG_871X("restart pbuddy_adapter's beacon\n");
+
+ update_beacon(padapter->pbuddy_adapter, 0, NULL, _TRUE);
+ }
+#endif
+
}
return;
@@ -7753,7 +9430,7 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
if (len > MAX_IE_SZ)
{
- //DBG_8192C("IE too long for survey event\n");
+ //DBG_871X("IE too long for survey event\n");
return _FAIL;
}
@@ -7778,8 +9455,8 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
bssid->Rssi = precv_frame->u.hdr.attrib.RecvSignalPower; // in dBM.raw data
#ifdef CONFIG_ANTENNA_DIVERSITY
- //padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_CURRENT_ANTENNA, (u8 *)(&bssid->PhyInfo.Optimum_antenna));
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_CURRENT_ANTENNA, &bssid->PhyInfo.Optimum_antenna);
+ //rtw_hal_get_hwreg(padapter, HW_VAR_CURRENT_ANTENNA, (u8 *)(&bssid->PhyInfo.Optimum_antenna));
+ rtw_hal_get_def_var(padapter, HAL_DEF_CURRENT_ANTENNA, &bssid->PhyInfo.Optimum_antenna);
#endif
// checking SSID
@@ -7791,6 +9468,11 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
if (*(p + 1))
{
+ if (len > NDIS_802_11_LENGTH_SSID)
+ {
+ DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __FUNCTION__, __LINE__, len);
+ return _FAIL;
+ }
_rtw_memcpy(bssid->Ssid.Ssid, (p + 2), *(p + 1));
bssid->Ssid.SsidLength = *(p + 1);
}
@@ -7806,6 +9488,11 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, _SUPPORTEDRATES_IE_, &len, bssid->IELength - _FIXED_IE_LENGTH_);
if (p != NULL)
{
+ if (len > NDIS_802_11_LENGTH_RATES_EX)
+ {
+ DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __FUNCTION__, __LINE__, len);
+ return _FAIL;
+ }
_rtw_memcpy(bssid->SupportedRates, (p + 2), len);
i = len;
}
@@ -7813,6 +9500,11 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, _EXT_SUPPORTEDRATES_IE_, &len, bssid->IELength - _FIXED_IE_LENGTH_);
if (p != NULL)
{
+ if (len > (NDIS_802_11_LENGTH_RATES_EX-i))
+ {
+ DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __FUNCTION__, __LINE__, len);
+ return _FAIL;
+ }
_rtw_memcpy(bssid->SupportedRates + i, (p + 2), len);
}
@@ -7828,6 +9520,9 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
bssid->NetworkTypeInUse = Ndis802_11OFDM24;
}
+ if (bssid->IELength < 12)
+ return _FAIL;
+
// Checking for DSConfig
p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, _DSSET_IE_, &len, bssid->IELength - _FIXED_IE_LENGTH_);
@@ -7849,16 +9544,11 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
}
else
{ // use current channel
- if (padapter->mlmeextpriv.sitesurvey_res.state == SCAN_PROCESS)
- bssid->Configuration.DSConfig = padapter->mlmeextpriv.channel_set[padapter->mlmeextpriv.sitesurvey_res.channel_idx].ChannelNum;
- else
- bssid->Configuration.DSConfig = padapter->mlmeextpriv.cur_channel;
+ bssid->Configuration.DSConfig = rtw_get_oper_ch(padapter);
}
}
_rtw_memcpy(&bssid->Configuration.BeaconPeriod, rtw_get_beacon_interval_from_ie(bssid->IEs), 2);
-
-
bssid->Configuration.BeaconPeriod = le32_to_cpu(bssid->Configuration.BeaconPeriod);
val16 = rtw_get_capability((WLAN_BSSID_EX *)bssid);
@@ -7892,7 +9582,7 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
struct HT_caps_element *pHT_caps;
pHT_caps = (struct HT_caps_element *)(p + 2);
- if(pHT_caps->HT_cap_element.HT_caps_info&BIT(14))
+ if(pHT_caps->u.HT_cap_element.HT_caps_info&BIT(14))
{
pmlmepriv->num_FortyMHzIntolerant++;
}
@@ -7904,31 +9594,36 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
}
+#ifdef CONFIG_INTEL_WIDI
+ //process_intel_widi_query_or_tigger(padapter, bssid);
+ if(process_intel_widi_query_or_tigger(padapter, bssid))
+ {
+ return _FAIL;
+ }
+#endif // CONFIG_INTEL_WIDI
- #if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) & 1
+ #if defined(DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) & 1
if(strcmp(bssid->Ssid.Ssid, DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) == 0) {
DBG_871X("Receiving %s("MAC_FMT", DSConfig:%u) from ch%u with ss:%3u, sq:%3u, RawRSSI:%3ld\n"
, bssid->Ssid.Ssid, MAC_ARG(bssid->MacAddress), bssid->Configuration.DSConfig
- , padapter->mlmeextpriv.channel_set[padapter->mlmeextpriv.sitesurvey_res.channel_idx].ChannelNum
+ , rtw_get_oper_ch(padapter)
, bssid->PhyInfo.SignalStrength, bssid->PhyInfo.SignalQuality, bssid->Rssi
);
}
#endif
-
+
// mark bss info receving from nearby channel as SignalQuality 101
- if(bssid->Configuration.DSConfig != padapter->mlmeextpriv.channel_set[padapter->mlmeextpriv.sitesurvey_res.channel_idx].ChannelNum)
+ if(bssid->Configuration.DSConfig != rtw_get_oper_ch(padapter))
{
bssid->PhyInfo.SignalQuality= 101;
}
return _SUCCESS;
-
}
void start_create_ibss(_adapter* padapter)
{
unsigned short caps;
- u32 val32;
u8 val8;
u8 join_type;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
@@ -7948,7 +9643,7 @@ void start_create_ibss(_adapter* padapter)
//set_opmode_cmd(padapter, adhoc);//removed
val8 = 0xcf;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
+ rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
//switch channel
//SelectChannel(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE);
@@ -7958,7 +9653,7 @@ void start_create_ibss(_adapter* padapter)
//set msr to WIFI_FW_ADHOC_STATE
pmlmeinfo->state = WIFI_FW_ADHOC_STATE;
- Set_NETYPE0_MSR(padapter, (pmlmeinfo->state & 0x3));
+ Set_MSR(padapter, (pmlmeinfo->state & 0x3));
//issue beacon
if(send_beacon(padapter)==_FAIL)
@@ -7969,11 +9664,11 @@ void start_create_ibss(_adapter* padapter)
pmlmeinfo->state = WIFI_FW_NULL_STATE;
}
else
- {
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, padapter->registrypriv.dev_network.MacAddress);
+ {
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, padapter->registrypriv.dev_network.MacAddress);
join_type = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
-
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
+
report_join_res(padapter, 1);
pmlmeinfo->state |= WIFI_FW_ASSOC_SUCCESS;
}
@@ -7994,10 +9689,6 @@ void start_clnt_join(_adapter* padapter)
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
-
- pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig;
- pmlmeinfo->bcn_interval = get_beacon_interval(pnetwork);
-
//update wireless mode
update_wireless_mode(padapter);
@@ -8006,13 +9697,53 @@ void start_clnt_join(_adapter* padapter)
update_capinfo(padapter, caps);
if (caps&cap_ESS)
{
- Set_NETYPE0_MSR(padapter, WIFI_FW_STATION_STATE);
+ Set_MSR(padapter, WIFI_FW_STATION_STATE);
val8 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_8021X)? 0xcc: 0xcf;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
+ rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
- //switch channel
- set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ #ifdef CONFIG_DEAUTH_BEFORE_CONNECT
+ // Because of AP's not receiving deauth before
+ // AP may: 1)not response auth or 2)deauth us after link is complete
+ // issue deauth before issuing auth to deal with the situation
+
+ // Commented by Albert 2012/07/21
+ // For the Win8 P2P connection, it will be hard to have a successful connection if this Wi-Fi doesn't connect to it.
+ {
+ #ifdef CONFIG_P2P
+ _queue *queue = &(padapter->mlmepriv.scanned_queue);
+ _list *head = get_list_head(queue);
+ _list *pos = get_next(head);
+ struct wlan_network *scanned = NULL;
+ u8 ie_offset = 0;
+ _irqL irqL;
+ bool has_p2p_ie = _FALSE;
+
+ _enter_critical_bh(&(padapter->mlmepriv.scanned_queue.lock), &irqL);
+
+ for (pos = get_next(head);!rtw_end_of_queue_search(head, pos); pos = get_next(pos)) {
+
+ scanned = LIST_CONTAINOR(pos, struct wlan_network, list);
+ if(scanned==NULL)
+ rtw_warn_on(1);
+
+ if (_rtw_memcmp(&(scanned->network.Ssid), &(pnetwork->Ssid), sizeof(NDIS_802_11_SSID)) == _TRUE
+ && _rtw_memcmp(scanned->network.MacAddress, pnetwork->MacAddress, sizeof(NDIS_802_11_MAC_ADDRESS)) == _TRUE
+ ) {
+ ie_offset = (scanned->network.Reserved[0] == 2? 0:12);
+ if (rtw_get_p2p_ie(scanned->network.IEs+ie_offset, scanned->network.IELength-ie_offset, NULL, NULL))
+ has_p2p_ie = _TRUE;
+ break;
+ }
+ }
+
+ _exit_critical_bh(&(padapter->mlmepriv.scanned_queue.lock), &irqL);
+
+ if (scanned == NULL || rtw_end_of_queue_search(head, pos) || has_p2p_ie == _FALSE)
+ #endif /* CONFIG_P2P */
+ issue_deauth_ex(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING, 5, 100);
+ }
+ #endif /* CONFIG_DEAUTH_BEFORE_CONNECT */
//here wait for receiving the beacon to start auth
//and enable a timer
@@ -8022,10 +9753,10 @@ void start_clnt_join(_adapter* padapter)
}
else if (caps&cap_IBSS) //adhoc client
{
- Set_NETYPE0_MSR(padapter, WIFI_FW_ADHOC_STATE);
+ Set_MSR(padapter, WIFI_FW_ADHOC_STATE);
val8 = 0xcf;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
+ rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
//switch channel
set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
@@ -8038,7 +9769,7 @@ void start_clnt_join(_adapter* padapter)
}
else
{
- //DBG_8192C("marc: invalid cap:%x\n", caps);
+ //DBG_871X("marc: invalid cap:%x\n", caps);
return;
}
@@ -8058,13 +9789,9 @@ void start_clnt_auth(_adapter* padapter)
pmlmeinfo->reauth_count = 0;
pmlmeinfo->reassoc_count = 0;
pmlmeinfo->link_count = 0;
+ pmlmeext->retry = 0;
- // Because of AP's not receiving deauth before
- // AP may: 1)not response auth or 2)deauth us after link is complete
- // issue deauth before issuing auth to deal with the situation
- issue_deauth(padapter, (&(pmlmeinfo->network))->MacAddress, WLAN_REASON_DEAUTH_LEAVING);
-
issue_auth(padapter, NULL, 0);
set_link_timer(pmlmeext, REAUTH_TO);
@@ -8104,6 +9831,7 @@ unsigned int receive_disconnect(_adapter *padapter, unsigned char *MacAddr, unsi
{
pmlmeinfo->state = WIFI_FW_NULL_STATE;
report_del_sta_event(padapter, MacAddr, reason);
+
}
else if (pmlmeinfo->state & WIFI_FW_LINKING_STATE)
{
@@ -8115,24 +9843,321 @@ unsigned int receive_disconnect(_adapter *padapter, unsigned char *MacAddr, unsi
return _SUCCESS;
}
-/****************************************************************************
+#ifdef CONFIG_80211D
+static void process_80211d(PADAPTER padapter, WLAN_BSSID_EX *bssid)
+{
+ struct registry_priv *pregistrypriv;
+ struct mlme_ext_priv *pmlmeext;
+ RT_CHANNEL_INFO *chplan_new;
+ u8 channel;
+ u8 i;
-Following are the functions to report events
-*****************************************************************************/
+ pregistrypriv = &padapter->registrypriv;
+ pmlmeext = &padapter->mlmeextpriv;
-void report_survey_event(_adapter *padapter, union recv_frame *precv_frame)
-{
- struct cmd_obj *pcmd_obj;
- u8 *pevtcmd;
- u32 cmdsz;
- struct survey_event *psurvey_evt;
+ // Adjust channel plan by AP Country IE
+ if (pregistrypriv->enable80211d &&
+ (!pmlmeext->update_channel_plan_by_ap_done))
+ {
+ u8 *ie, *p;
+ u32 len;
+ RT_CHANNEL_PLAN chplan_ap;
+ RT_CHANNEL_INFO chplan_sta[MAX_CHANNEL_NUM];
+ u8 country[4];
+ u8 fcn; // first channel number
+ u8 noc; // number of channel
+ u8 j, k;
+
+ ie = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, _COUNTRY_IE_, &len, bssid->IELength - _FIXED_IE_LENGTH_);
+ if (!ie) return;
+ if (len < 6) return;
+
+ ie += 2;
+ p = ie;
+ ie += len;
+
+ _rtw_memset(country, 0, 4);
+ _rtw_memcpy(country, p, 3);
+ p += 3;
+ RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
+ ("%s: 802.11d country=%s\n", __FUNCTION__, country));
+
+ i = 0;
+ while ((ie - p) >= 3)
+ {
+ fcn = *(p++);
+ noc = *(p++);
+ p++;
+
+ for (j = 0; j < noc; j++)
+ {
+ if (fcn <= 14) channel = fcn + j; // 2.4 GHz
+ else channel = fcn + j*4; // 5 GHz
+
+ chplan_ap.Channel[i++] = channel;
+ }
+ }
+ chplan_ap.Len = i;
+
+#ifdef CONFIG_DEBUG_RTL871X
+#ifdef PLATFORM_LINUX
+ i = 0;
+ printk("%s: AP[%s] channel plan {", __func__, bssid->Ssid.Ssid);
+ while ((i < chplan_ap.Len) && (chplan_ap.Channel[i] != 0))
+ {
+ printk("%02d,", chplan_ap.Channel[i]);
+ i++;
+ }
+ printk("}\n");
+#endif
+#endif
+
+ _rtw_memcpy(chplan_sta, pmlmeext->channel_set, sizeof(chplan_sta));
+#ifdef CONFIG_DEBUG_RTL871X
+#ifdef PLATFORM_LINUX
+ i = 0;
+ printk("%s: STA channel plan {", __func__);
+ while ((i < MAX_CHANNEL_NUM) && (chplan_sta[i].ChannelNum != 0))
+ {
+ printk("%02d(%c),", chplan_sta[i].ChannelNum, chplan_sta[i].ScanType==SCAN_PASSIVE?'p':'a');
+ i++;
+ }
+ printk("}\n");
+#endif
+#endif
+
+ _rtw_memset(pmlmeext->channel_set, 0, sizeof(pmlmeext->channel_set));
+ chplan_new = pmlmeext->channel_set;
+
+ i = j = k = 0;
+ if (pregistrypriv->wireless_mode & WIRELESS_11G)
+ {
+ do {
+ if ((i == MAX_CHANNEL_NUM) ||
+ (chplan_sta[i].ChannelNum == 0) ||
+ (chplan_sta[i].ChannelNum > 14))
+ break;
+
+ if ((j == chplan_ap.Len) || (chplan_ap.Channel[j] > 14))
+ break;
+
+ if (chplan_sta[i].ChannelNum == chplan_ap.Channel[j])
+ {
+ chplan_new[k].ChannelNum = chplan_ap.Channel[j];
+ chplan_new[k].ScanType = SCAN_ACTIVE;
+ i++;
+ j++;
+ k++;
+ }
+ else if (chplan_sta[i].ChannelNum < chplan_ap.Channel[j])
+ {
+ chplan_new[k].ChannelNum = chplan_sta[i].ChannelNum;
+// chplan_new[k].ScanType = chplan_sta[i].ScanType;
+ chplan_new[k].ScanType = SCAN_PASSIVE;
+ i++;
+ k++;
+ }
+ else if (chplan_sta[i].ChannelNum > chplan_ap.Channel[j])
+ {
+ chplan_new[k].ChannelNum = chplan_ap.Channel[j];
+ chplan_new[k].ScanType = SCAN_ACTIVE;
+ j++;
+ k++;
+ }
+ } while (1);
+
+ // change AP not support channel to Passive scan
+ while ((i < MAX_CHANNEL_NUM) &&
+ (chplan_sta[i].ChannelNum != 0) &&
+ (chplan_sta[i].ChannelNum <= 14))
+ {
+ chplan_new[k].ChannelNum = chplan_sta[i].ChannelNum;
+// chplan_new[k].ScanType = chplan_sta[i].ScanType;
+ chplan_new[k].ScanType = SCAN_PASSIVE;
+ i++;
+ k++;
+ }
+
+ // add channel AP supported
+ while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] <= 14))
+ {
+ chplan_new[k].ChannelNum = chplan_ap.Channel[j];
+ chplan_new[k].ScanType = SCAN_ACTIVE;
+ j++;
+ k++;
+ }
+ }
+ else
+ {
+ // keep original STA 2.4G channel plan
+ while ((i < MAX_CHANNEL_NUM) &&
+ (chplan_sta[i].ChannelNum != 0) &&
+ (chplan_sta[i].ChannelNum <= 14))
+ {
+ chplan_new[k].ChannelNum = chplan_sta[i].ChannelNum;
+ chplan_new[k].ScanType = chplan_sta[i].ScanType;
+ i++;
+ k++;
+ }
+
+ // skip AP 2.4G channel plan
+ while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] <= 14))
+ {
+ j++;
+ }
+ }
+
+ if (pregistrypriv->wireless_mode & WIRELESS_11A)
+ {
+ do {
+ if ((i == MAX_CHANNEL_NUM) ||
+ (chplan_sta[i].ChannelNum == 0))
+ break;
+
+ if ((j == chplan_ap.Len) || (chplan_ap.Channel[j] == 0))
+ break;
+
+ if (chplan_sta[i].ChannelNum == chplan_ap.Channel[j])
+ {
+ chplan_new[k].ChannelNum = chplan_ap.Channel[j];
+ chplan_new[k].ScanType = SCAN_ACTIVE;
+ i++;
+ j++;
+ k++;
+ }
+ else if (chplan_sta[i].ChannelNum < chplan_ap.Channel[j])
+ {
+ chplan_new[k].ChannelNum = chplan_sta[i].ChannelNum;
+// chplan_new[k].ScanType = chplan_sta[i].ScanType;
+ chplan_new[k].ScanType = SCAN_PASSIVE;
+ i++;
+ k++;
+ }
+ else if (chplan_sta[i].ChannelNum > chplan_ap.Channel[j])
+ {
+ chplan_new[k].ChannelNum = chplan_ap.Channel[j];
+ chplan_new[k].ScanType = SCAN_ACTIVE;
+ j++;
+ k++;
+ }
+ } while (1);
+
+ // change AP not support channel to Passive scan
+ while ((i < MAX_CHANNEL_NUM) && (chplan_sta[i].ChannelNum != 0))
+ {
+ chplan_new[k].ChannelNum = chplan_sta[i].ChannelNum;
+// chplan_new[k].ScanType = chplan_sta[i].ScanType;
+ chplan_new[k].ScanType = SCAN_PASSIVE;
+ i++;
+ k++;
+ }
+
+ // add channel AP supported
+ while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] != 0))
+ {
+ chplan_new[k].ChannelNum = chplan_ap.Channel[j];
+ chplan_new[k].ScanType = SCAN_ACTIVE;
+ j++;
+ k++;
+ }
+ }
+ else
+ {
+ // keep original STA 5G channel plan
+ while ((i < MAX_CHANNEL_NUM) && (chplan_sta[i].ChannelNum != 0))
+ {
+ chplan_new[k].ChannelNum = chplan_sta[i].ChannelNum;
+ chplan_new[k].ScanType = chplan_sta[i].ScanType;
+ i++;
+ k++;
+ }
+ }
+
+ pmlmeext->update_channel_plan_by_ap_done = 1;
+
+#ifdef CONFIG_DEBUG_RTL871X
+#ifdef PLATFORM_LINUX
+ k = 0;
+ printk("%s: new STA channel plan {", __func__);
+ while ((k < MAX_CHANNEL_NUM) && (chplan_new[k].ChannelNum != 0))
+ {
+ printk("%02d(%c),", chplan_new[k].ChannelNum, chplan_new[k].ScanType==SCAN_PASSIVE?'p':'c');
+ k++;
+ }
+ printk("}\n");
+#endif
+#endif
+
+#if 0
+ // recover the right channel index
+ channel = chplan_sta[pmlmeext->sitesurvey_res.channel_idx].ChannelNum;
+ k = 0;
+ while ((k < MAX_CHANNEL_NUM) && (chplan_new[k].ChannelNum != 0))
+ {
+ if (chplan_new[k].ChannelNum == channel) {
+ RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
+ ("%s: change mlme_ext sitesurvey channel index from %d to %d\n",
+ __FUNCTION__, pmlmeext->sitesurvey_res.channel_idx, k));
+ pmlmeext->sitesurvey_res.channel_idx = k;
+ break;
+ }
+ k++;
+ }
+#endif
+ }
+
+ // If channel is used by AP, set channel scan type to active
+ channel = bssid->Configuration.DSConfig;
+ chplan_new = pmlmeext->channel_set;
+ i = 0;
+ while ((i < MAX_CHANNEL_NUM) && (chplan_new[i].ChannelNum != 0))
+ {
+ if (chplan_new[i].ChannelNum == channel)
+ {
+ if (chplan_new[i].ScanType == SCAN_PASSIVE)
+ {
+ //5G Bnad 2, 3 (DFS) doesn't change to active scan
+ if(channel >= 52 && channel <= 144)
+ break;
+
+ chplan_new[i].ScanType = SCAN_ACTIVE;
+ RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
+ ("%s: change channel %d scan type from passive to active\n",
+ __FUNCTION__, channel));
+ }
+ break;
+ }
+ i++;
+ }
+}
+#endif
+
+/****************************************************************************
+
+Following are the functions to report events
+
+*****************************************************************************/
+
+void report_survey_event(_adapter *padapter, union recv_frame *precv_frame)
+{
+ struct cmd_obj *pcmd_obj;
+ u8 *pevtcmd;
+ u32 cmdsz;
+ struct survey_event *psurvey_evt;
struct C2HEvent_Header *pc2h_evt_hdr;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
+ struct mlme_ext_priv *pmlmeext;
+ struct cmd_priv *pcmdpriv;
//u8 *pframe = precv_frame->u.hdr.rx_data;
//uint len = precv_frame->u.hdr.len;
+ if(!padapter)
+ return;
+
+ pmlmeext = &padapter->mlmeextpriv;
+ pcmdpriv = &padapter->cmdpriv;
+
+
if ((pcmd_obj = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
{
return;
@@ -8168,6 +10193,10 @@ void report_survey_event(_adapter *padapter, union recv_frame *precv_frame)
return;
}
+#ifdef CONFIG_80211D
+ process_80211d(padapter, &psurvey_evt->bss);
+#endif
+
rtw_enqueue_cmd(pcmdpriv, pcmd_obj);
pmlmeext->sitesurvey_res.bss_cnt++;
@@ -8215,7 +10244,7 @@ void report_surveydone_event(_adapter *padapter)
psurveydone_evt = (struct surveydone_event*)(pevtcmd + sizeof(struct C2HEvent_Header));
psurveydone_evt->bss_cnt = pmlmeext->sitesurvey_res.bss_cnt;
- DBG_871X("survey done event(%x)\n", psurveydone_evt->bss_cnt);
+ DBG_871X("survey done event(%x) band:%d for "ADPT_FMT"\n", psurveydone_evt->bss_cnt, padapter->setband, ADPT_ARG(padapter));
rtw_enqueue_cmd(pcmdpriv, pcmd_obj);
@@ -8265,11 +10294,11 @@ void report_join_res(_adapter *padapter, int res)
pjoinbss_evt->network.join_res = pjoinbss_evt->network.aid = res;
DBG_871X("report_join_res(%d)\n", res);
-
+
rtw_joinbss_event_prehandle(padapter, (u8 *)&pjoinbss_evt->network);
-
+
rtw_enqueue_cmd(pcmdpriv, pcmd_obj);
return;
@@ -8281,10 +10310,11 @@ void report_del_sta_event(_adapter *padapter, unsigned char* MacAddr, unsigned s
struct cmd_obj *pcmd_obj;
u8 *pevtcmd;
u32 cmdsz;
+ struct sta_info *psta;
+ int mac_id;
struct stadel_event *pdel_sta_evt;
struct C2HEvent_Header *pc2h_evt_hdr;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
if ((pcmd_obj = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
@@ -8317,7 +10347,16 @@ void report_del_sta_event(_adapter *padapter, unsigned char* MacAddr, unsigned s
_rtw_memcpy((unsigned char *)(&(pdel_sta_evt->macaddr)), MacAddr, ETH_ALEN);
_rtw_memcpy((unsigned char *)(pdel_sta_evt->rsvd),(unsigned char *)(&reason),2);
- DBG_871X("report_del_sta_event: delete STA\n");
+
+ psta = rtw_get_stainfo(&padapter->stapriv, MacAddr);
+ if(psta)
+ mac_id = (int)psta->mac_id;
+ else
+ mac_id = (-1);
+
+ pdel_sta_evt->mac_id = mac_id;
+
+ DBG_871X("report_del_sta_event: delete STA, mac_id=%d\n", mac_id);
rtw_enqueue_cmd(pcmdpriv, pcmd_obj);
@@ -8332,7 +10371,6 @@ void report_add_sta_event(_adapter *padapter, unsigned char* MacAddr, int cam_id
struct stassoc_event *padd_sta_evt;
struct C2HEvent_Header *pc2h_evt_hdr;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
if ((pcmd_obj = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
@@ -8431,8 +10469,6 @@ void update_sta_info(_adapter *padapter, struct sta_info *psta)
}
-u8 null_addr[ETH_ALEN]= {0,0,0,0,0,0};
-
void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
{
struct sta_info *psta, *psta_bmc;
@@ -8440,14 +10476,25 @@ void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
struct sta_priv *pstapriv = &padapter->stapriv;
- u8 join_type, init_rts_rate;
+ u8 join_type;
if(join_res < 0)
{
join_type = 1;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, null_addr);
- return;
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, null_addr);
+
+ //restore to initial setting.
+ update_tx_basic_rate(padapter, padapter->registrypriv.wireless_mode);
+#if 0 //temply remove
+#ifdef CONFIG_INTEL_WIDI
+#ifdef DBG_CONFIG_ERROR_DETECT
+ DBG_871X("%s(): do silentreset\n",__FUNCTION__);
+ rtw_hal_sreset_reset(padapter);
+#endif
+#endif
+#endif
+ goto exit_mlmeext_joinbss_event_callback;
}
if((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)
@@ -8469,10 +10516,10 @@ void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
// update IOT-releated issue
update_IOT_info(padapter);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BASIC_RATE, cur_network->SupportedRates);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, cur_network->SupportedRates);
//BCN interval
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&pmlmeinfo->bcn_interval));
+ rtw_hal_set_hwreg(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&pmlmeinfo->bcn_interval));
//udpate capability
update_capinfo(padapter, pmlmeinfo->capability);
@@ -8483,10 +10530,11 @@ void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
//HT
HTOnAssocRsp(padapter);
-
+#ifndef CONFIG_CONCURRENT_MODE
+ // Call set_channel_bwmode when the CONFIG_CONCURRENT_MODE doesn't be defined.
//Set cur_channel&cur_bwmode&cur_ch_offset
set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
-
+#endif
psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress);
if (psta) //only for infra. mode
@@ -8496,11 +10544,11 @@ void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
//DBG_871X("set_sta_rate\n");
//set per sta rate after updating HT cap.
- set_sta_rate(padapter, psta);
+ set_sta_rate(padapter, psta);
}
join_type = 2;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
if((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE)
{
@@ -8513,7 +10561,16 @@ void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
#ifdef CONFIG_LPS
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_CONNECT, 0);
#endif
-
+
+exit_mlmeext_joinbss_event_callback:
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_handle_join_done(padapter, join_res);
+#endif
+#ifdef CONFIG_CONCURRENT_MODE
+ concurrent_chk_joinbss_done(padapter, join_res);
+#endif
+
DBG_871X("=>%s\n", __FUNCTION__);
}
@@ -8555,7 +10612,7 @@ void mlmeext_sta_add_event_callback(_adapter *padapter, struct sta_info *psta)
}
join_type = 2;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
}
pmlmeinfo->FW_sta_info[psta->mac_id].psta = psta;
@@ -8577,21 +10634,38 @@ void mlmeext_sta_del_event_callback(_adapter *padapter)
{
//set_opmode_cmd(padapter, infra_client_with_mlme);
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_DISCONNECT, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, null_addr);
+
+ //restore to initial setting.
+ update_tx_basic_rate(padapter, padapter->registrypriv.wireless_mode);
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_set_channel_bwmode_disconnect(padapter);
+#else
+#ifdef CONFIG_CONCURRENT_MODE
+ if((check_buddy_fwstate(padapter, _FW_LINKED)) != _TRUE)
+ {
+#endif //CONFIG_CONCURRENT_MODE
+
//switch to the 20M Hz mode after disconnect
pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_DISCONNECT, 0);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, null_addr);
-
//SelectChannel(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset);
set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ }
+#endif //CONFIG_CONCURRENT_MODE
+#endif //CONFIG_DUALMAC_CONCURRENT
+
flush_all_cam_entry(padapter);
pmlmeinfo->state = WIFI_FW_NULL_STATE;
- //set MSR to no link state
- Set_NETYPE0_MSR(padapter, _HW_STATE_NOLINK_);
+ //set MSR to no link state -> infra. mode
+ Set_MSR(padapter, _HW_STATE_STATION_);
_cancel_timer_ex(&pmlmeext->link_timer);
@@ -8604,27 +10678,94 @@ void mlmeext_sta_del_event_callback(_adapter *padapter)
Following are the functions for the timer handlers
*****************************************************************************/
-
+void _linked_rx_signal_strehgth_display(_adapter *padapter);
void _linked_rx_signal_strehgth_display(_adapter *padapter)
{
int UndecoratedSmoothedPWDB;
- DBG_8192C("============ linked status check ===================\n");
- DBG_8192C("pathA Rx SNRdb:%d, pathB Rx SNRdb:%d\n",padapter->recvpriv.RxSNRdB[0],padapter->recvpriv.RxSNRdB[1]);
- DBG_8192C("pathA Rx RSSI:%d,pathB Rx RSSI:%d\n",padapter->recvpriv.RxRssi[0],padapter->recvpriv.RxRssi[1]);
-
- DBG_8192C("pathA Rx PWDB:%d\n",padapter->recvpriv.rxpwdb);
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_UNDERCORATEDSMOOTHEDPWDB, &UndecoratedSmoothedPWDB);
- DBG_8192C("UndecoratedSmoothedPWDB:%d\n",UndecoratedSmoothedPWDB);
- DBG_8192C("Rx RSSI:%d\n",padapter->recvpriv.rssi);
- DBG_8192C("Rx Signal_strength:%d\n",padapter->recvpriv.signal_strength);
- DBG_8192C("Rx Signal_qual:%d \n",padapter->recvpriv.signal_qual);
- DBG_8192C("============ linked status check ===================\n");
- DBG_8192C(" DIG PATH-A(0x%02x), PATH-B(0x%02x)\n",rtw_read8(padapter,0xc50),rtw_read8(padapter,0xc58));
- DBG_8192C(" OFDM -Alarm DA2(0x%04x),DA4(0x%04x),DA6(0x%04x),DA8(0x%04x)\n",
+
+#ifdef CONFIG_CONCURRENT_MODE
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ DBG_871X("============ pbuddy_adapter linked status check ===================\n");
+ DBG_871X("buddy_adapter_type=%d\n", pbuddy_adapter->adapter_type);
+ DBG_871X("pbuddy_adapter pathA Rx SNRdb:%d\n",pbuddy_adapter->recvpriv.RxSNRdB[0]);
+ DBG_871X("pbuddy_adapter pathA Rx PWDB:%d\n",pbuddy_adapter->recvpriv.rxpwdb);
+ DBG_871X("pbuddy_adapter pathA Rx RSSI:%d,pathB Rx RSSI:%d\n"
+ ,pbuddy_adapter->recvpriv.RxRssi[0],pbuddy_adapter->recvpriv.RxRssi[1]);
+ rtw_hal_get_def_var(pbuddy_adapter, HAL_DEF_UNDERCORATEDSMOOTHEDPWDB, &UndecoratedSmoothedPWDB);
+ DBG_871X("pbuddy_adapter UndecoratedSmoothedPWDB:%d\n",UndecoratedSmoothedPWDB);
+ DBG_871X("Rx RSSI:%d\n",pbuddy_adapter->recvpriv.rssi);
+ DBG_871X("Rx Signal_strength:%d\n",pbuddy_adapter->recvpriv.signal_strength);
+ DBG_871X("Rx Signal_qual:%d \n",pbuddy_adapter->recvpriv.signal_qual);
+ DBG_871X("============ linked status check ===================\n");
+ DBG_871X("adapter_type=%d\n", padapter->adapter_type);
+#else //CONFIG_CONCURRENT_MODE
+ DBG_871X("============ linked status check ===================\n");
+#endif //CONFIG_CONCURRENT_MODE
+ DBG_871X("pathA Rx SNRdb:%d, pathB Rx SNRdb:%d\n",padapter->recvpriv.RxSNRdB[0], padapter->recvpriv.RxSNRdB[1]);
+ DBG_871X("pathA Rx PWDB:%d\n",padapter->recvpriv.rxpwdb);
+ DBG_871X("pathA Rx RSSI:%d,pathB Rx RSSI:%d\n",padapter->recvpriv.RxRssi[0],padapter->recvpriv.RxRssi[1]);
+ rtw_hal_get_def_var(padapter, HAL_DEF_UNDERCORATEDSMOOTHEDPWDB, &UndecoratedSmoothedPWDB);
+ DBG_871X("UndecoratedSmoothedPWDB:%d\n",UndecoratedSmoothedPWDB);
+ DBG_871X("Rx RSSI:%d\n",padapter->recvpriv.rssi);
+ DBG_871X("Rx Signal_strength:%d\n",padapter->recvpriv.signal_strength);
+ DBG_871X("Rx Signal_qual:%d \n",padapter->recvpriv.signal_qual);
+ if ( check_fwstate( &padapter->mlmepriv, _FW_LINKED ))
+ {
+ DBG_871X("bw mode: %d, channel: %d\n", padapter->mlmeextpriv.cur_bwmode, padapter->mlmeextpriv.cur_channel );
+ DBG_871X("received bytes = %d\n", (u32) (padapter->recvpriv.rx_bytes - padapter->recvpriv.last_rx_bytes ) );
+ }
+ DBG_871X("============ linked status check ===================\n");
+ DBG_871X(" DIG PATH-A(0x%02x), PATH-B(0x%02x)\n",rtw_read8(padapter,0xc50),rtw_read8(padapter,0xc58));
+ DBG_871X(" OFDM -Alarm DA2(0x%04x),DA4(0x%04x),DA6(0x%04x),DA8(0x%04x)\n",
rtw_read16(padapter,0xDA2),rtw_read16(padapter,0xDA4),rtw_read16(padapter,0xDA6),rtw_read16(padapter,0xDA8));
- DBG_8192C(" CCK -Alarm A5B(0x%02x),A5C(0x%02x)\n",rtw_read8(padapter,0xA5B),rtw_read8(padapter,0xA5C));
- DBG_8192C(" FalseAlmCnt_all(%d)\n",padapter->recvpriv.FalseAlmCnt_all);
+ DBG_871X(" CCK -Alarm A5B(0x%02x),A5C(0x%02x)\n",rtw_read8(padapter,0xA5B),rtw_read8(padapter,0xA5C));
+ DBG_871X(" FalseAlmCnt_all(%d)\n",padapter->recvpriv.FalseAlmCnt_all);
+
+}
+
+u8 chk_ap_is_alive(_adapter *padapter, struct sta_info *psta)
+{
+ u8 ret = _FALSE;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ #ifdef DBG_EXPIRATION_CHK
+ DBG_871X(FUNC_ADPT_FMT" rx:"STA_PKTS_FMT", beacon:%llu, probersp_to_self:%llu"
+ /*", probersp_bm:%llu, probersp_uo:%llu, probereq:%llu, BI:%u"*/
+ ", retry:%u\n"
+ , FUNC_ADPT_ARG(padapter)
+ , STA_RX_PKTS_DIFF_ARG(psta)
+ , psta->sta_stats.rx_beacon_pkts - psta->sta_stats.last_rx_beacon_pkts
+ , psta->sta_stats.rx_probersp_pkts - psta->sta_stats.last_rx_probersp_pkts
+ /*, psta->sta_stats.rx_probersp_bm_pkts - psta->sta_stats.last_rx_probersp_bm_pkts
+ , psta->sta_stats.rx_probersp_uo_pkts - psta->sta_stats.last_rx_probersp_uo_pkts
+ , psta->sta_stats.rx_probereq_pkts - psta->sta_stats.last_rx_probereq_pkts
+ , pmlmeinfo->bcn_interval*/
+ , pmlmeext->retry
+ );
+
+ DBG_871X(FUNC_ADPT_FMT" tx_pkts:%llu, link_count:%u\n", FUNC_ADPT_ARG(padapter)
+ , padapter->xmitpriv.tx_pkts
+ , pmlmeinfo->link_count
+ );
+ #endif
+
+ if((sta_rx_data_pkts(psta) == sta_last_rx_data_pkts(psta))
+ && sta_rx_beacon_pkts(psta) == sta_last_rx_beacon_pkts(psta)
+ && sta_rx_probersp_pkts(psta) == sta_last_rx_probersp_pkts(psta)
+ )
+ {
+ ret = _FALSE;
+ }
+ else
+ {
+ ret = _TRUE;
+ }
+
+ sta_update_last_rx_pkts(psta);
+
+ return ret;
}
void linked_status_chk(_adapter *padapter)
@@ -8632,110 +10773,116 @@ void linked_status_chk(_adapter *padapter)
u32 i;
struct sta_info *psta;
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct recv_priv *precvpriv = &(padapter->recvpriv);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
struct sta_priv *pstapriv = &padapter->stapriv;
- struct registry_priv *pregistrypriv = &padapter->registrypriv;
if(padapter->bRxRSSIDisplay)
- _linked_rx_signal_strehgth_display(padapter);
+ _linked_rx_signal_strehgth_display(padapter);
+
+ #ifdef DBG_CONFIG_ERROR_DETECT
+ rtw_hal_sreset_linked_status_check(padapter);
+ #endif
if (is_client_associated_to_ap(padapter))
{
//linked infrastructure client mode
+
+ int tx_chk = _SUCCESS, rx_chk = _SUCCESS;
+ int rx_chk_limit;
+
+ #if defined(DBG_ROAMING_TEST)
+ rx_chk_limit = 1;
+ #elif defined(CONFIG_ACTIVE_KEEP_ALIVE_CHECK)
+ rx_chk_limit = 4;
+ #else
+ rx_chk_limit = 8;
+ #endif
+
+ // Marked by Kurt 20130715
+ // For WiDi 3.5 and later on, they don't ask WiDi sink to do roaming, so we could not check rx limit that strictly.
+ // todo: To check why rx_chk would be _FALSE under miracast session.
+ //#ifdef CONFIG_INTEL_WIDI
+ //if (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_NONE)
+ // rx_chk_limit = 1;
+ //#endif
+
if ((psta = rtw_get_stainfo(pstapriv, pmlmeinfo->network.MacAddress)) != NULL)
{
- #ifdef DBG_EXPIRATION_CHK
- DBG_871X("%s rx:"STA_PKTS_FMT", BI:%u, retry:%u\n"
- , __FUNCTION__
- , STA_RX_PKTS_ARG(psta)
- , pmlmeinfo->bcn_interval
- , pmlmeext->retry
- );
+ bool is_p2p_enable = _FALSE;
+ #ifdef CONFIG_P2P
+ is_p2p_enable = !rtw_p2p_chk_state(&padapter->wdinfo, P2P_STATE_NONE);
#endif
+
+ if (chk_ap_is_alive(padapter, psta) == _FALSE)
+ rx_chk = _FAIL;
- /*to monitor whether the AP is alive or not*/
- if (sta_last_rx_pkts(psta) == sta_rx_pkts(psta))
- {
- // Commented by Albert 2010/07/21
- // In this case, there is no any rx packet received by driver.
+ if (pxmitpriv->last_tx_pkts == pxmitpriv->tx_pkts)
+ tx_chk = _FAIL;
- #ifdef DBG_ROAMING_TEST
- if(pmlmeext->retry<1)
- #else
- if(pmlmeext->retry<8)// Alter the retry limit to 8
- #endif
- {
- if(pmlmeext->retry==0)
- {
- #ifdef DBG_CONFIG_ERROR_DETECT
- if(padapter->HalFunc.sreset_linked_status_check)
- padapter->HalFunc.sreset_linked_status_check(padapter);
- #endif
+ #ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+ if (pmlmeext->active_keep_alive_check && (rx_chk == _FAIL || tx_chk == _FAIL)) {
+ u8 backup_oper_channel=0;
- // In order to know the AP's current state, try to send the probe request
- // to trigger the AP to send the probe response.
- #ifdef CONFIG_P2P
- if(!rtw_p2p_chk_state(&padapter->wdinfo, P2P_STATE_NONE)) {
- #ifdef DBG_EXPIRATION_CHK
- DBG_871X("issue_probereq_p2p to trigger probersp, retry=%d\n", pmlmeext->retry);
- #endif
- issue_probereq_p2p(padapter);
- } else
- #endif
- {
- #ifdef DBG_EXPIRATION_CHK
- DBG_871X("issue_probereq to trigger probersp, retry=%d\n", pmlmeext->retry);
- #endif
- issue_probereq(padapter, &(pmlmeinfo->network.Ssid), 0);
- issue_probereq(padapter, &(pmlmeinfo->network.Ssid), 0);
- issue_probereq(padapter, &(pmlmeinfo->network.Ssid), 0);
- }
- }
-
- pmlmeext->retry++;
+ /* switch to correct channel of current network before issue keep-alive frames */
+ if (rtw_get_oper_ch(padapter) != pmlmeext->cur_channel) {
+ backup_oper_channel = rtw_get_oper_ch(padapter);
+ SelectChannel(padapter, pmlmeext->cur_channel);
}
- else
- {
- pmlmeext->retry = 0;
- DBG_871X("no beacon to call receive_disconnect()\n");
- receive_disconnect(padapter, pmlmeinfo->network.MacAddress
- , 65535// indicate disconnect caused by no rx
- );
- pmlmeinfo->link_count = 0;
- return;
+
+ if (rx_chk != _SUCCESS)
+ issue_probereq_ex(padapter, &pmlmeinfo->network.Ssid, psta->hwaddr, 3, 1);
+
+ if ((tx_chk != _SUCCESS && pmlmeinfo->link_count++ == 0xf) || rx_chk != _SUCCESS) {
+ tx_chk = issue_nulldata(padapter, psta->hwaddr, 0, 3, 1);
+ /* if tx acked and p2p disabled, set rx_chk _SUCCESS to reset retry count */
+ if (tx_chk == _SUCCESS && !is_p2p_enable)
+ rx_chk = _SUCCESS;
}
+
+ /* back to the original operation channel */
+ if(backup_oper_channel>0)
+ SelectChannel(padapter, backup_oper_channel);
+
}
else
+ #endif /* CONFIG_ACTIVE_KEEP_ALIVE_CHECK */
{
- pmlmeext->retry = 0;
- sta_update_last_rx_pkts(psta);
- //set_link_timer(pmlmeext, DISCONNECT_TO);
- }
-
- #ifdef DBG_EXPIRATION_CHK
- DBG_871X("%s tx_pkts:%llu, link_count:%u\n", __FUNCTION__
- , pxmitpriv->tx_pkts
- , pmlmeinfo->link_count
- );
- #endif
+ if (rx_chk != _SUCCESS) {
+ if (pmlmeext->retry == 0) {
+ #ifdef DBG_EXPIRATION_CHK
+ DBG_871X("issue_probereq to trigger probersp, retry=%d\n", pmlmeext->retry);
+ #endif
+ issue_probereq(padapter, &pmlmeinfo->network.Ssid, pmlmeinfo->network.MacAddress);
+ issue_probereq(padapter, &pmlmeinfo->network.Ssid, pmlmeinfo->network.MacAddress);
+ issue_probereq(padapter, &pmlmeinfo->network.Ssid, pmlmeinfo->network.MacAddress);
+ }
+ }
- /*to send the AP a nulldata if no frame is xmitted in order to keep alive*/
- if(pxmitpriv->last_tx_pkts == pxmitpriv->tx_pkts)
- {
- if(pmlmeinfo->link_count++ == 0xf)
- {
- //DBG_871X("(Interface %d)issue nulldata to keep alive\n",padapter->dvobjpriv.InterfaceNumber);
+ if (tx_chk != _SUCCESS && pmlmeinfo->link_count++ == 0xf) {
#ifdef DBG_EXPIRATION_CHK
DBG_871X("%s issue_nulldata 0\n", __FUNCTION__);
#endif
- issue_nulldata(padapter, 0);
- pmlmeinfo->link_count = 0;
+ tx_chk = issue_nulldata(padapter, NULL, 0, 1, 0);
}
}
- else
- {
+
+ if (rx_chk == _FAIL) {
+ pmlmeext->retry++;
+ if (pmlmeext->retry > rx_chk_limit) {
+ DBG_871X(FUNC_ADPT_FMT" disconnect or roaming\n",
+ FUNC_ADPT_ARG(padapter));
+ receive_disconnect(padapter, pmlmeinfo->network.MacAddress
+ , WLAN_REASON_EXPIRATION_CHK);
+ return;
+ }
+ } else {
+ pmlmeext->retry = 0;
+ }
+
+ if (tx_chk == _FAIL) {
+ pmlmeinfo->link_count &= 0xf;
+ } else {
pxmitpriv->last_tx_pkts = pxmitpriv->tx_pkts;
pmlmeinfo->link_count = 0;
}
@@ -8789,19 +10936,41 @@ void survey_timer_hdl(_adapter *padapter)
struct cmd_obj *ph2c;
struct sitesurvey_parm *psurveyPara;
struct cmd_priv *pcmdpriv=&padapter->cmdpriv;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
#endif
- //DBG_8192C("marc: survey timer\n");
+ //DBG_871X("marc: survey timer\n");
+#ifdef PLATFORM_FREEBSD
+ rtw_mtx_lock(NULL);
+ if (callout_pending(&padapter->mlmeextpriv.survey_timer.callout)) {
+ /* callout was reset */
+ //mtx_unlock(&sc->sc_mtx);
+ rtw_mtx_unlock(NULL);
+ return;
+ }
+ if (!callout_active(&padapter->mlmeextpriv.survey_timer.callout)) {
+ /* callout was stopped */
+ //mtx_unlock(&sc->sc_mtx);
+ rtw_mtx_unlock(NULL);
+ return;
+ }
+ callout_deactivate(&padapter->mlmeextpriv.survey_timer.callout);
+
+
+#endif
//issue rtw_sitesurvey_cmd
if (pmlmeext->sitesurvey_res.state > SCAN_START)
{
if(pmlmeext->sitesurvey_res.state == SCAN_PROCESS)
- pmlmeext->sitesurvey_res.channel_idx++;
+ {
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ if( padapter->mlmeextpriv.mlmext_info.scan_cnt != RTW_SCAN_NUM_OF_CH )
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ pmlmeext->sitesurvey_res.channel_idx++;
+ }
if(pmlmeext->scan_abort == _TRUE)
{
@@ -8818,7 +10987,7 @@ void survey_timer_hdl(_adapter *padapter)
else
#endif
{
- pmlmeext->sitesurvey_res.channel_idx = pmlmeext->max_chan_nums;
+ pmlmeext->sitesurvey_res.channel_idx = pmlmeext->sitesurvey_res.ch_num;
DBG_871X("%s idx:%d\n", __FUNCTION__
, pmlmeext->sitesurvey_res.channel_idx
);
@@ -8827,3204 +10996,2358 @@ void survey_timer_hdl(_adapter *padapter)
pmlmeext->scan_abort = _FALSE;//reset
}
- if ((ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
- {
- goto exit_survey_timer_hdl;
- }
-
- if ((psurveyPara = (struct sitesurvey_parm*)rtw_zmalloc(sizeof(struct sitesurvey_parm))) == NULL)
- {
- rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
- goto exit_survey_timer_hdl;
- }
-
- init_h2fwcmd_w_parm_no_rsp(ph2c, psurveyPara, GEN_CMD_CODE(_SiteSurvey));
- rtw_enqueue_cmd(pcmdpriv, ph2c);
- }
-
-
-exit_survey_timer_hdl:
-
- return;
-}
-
-void link_timer_hdl(_adapter *padapter)
-{
- static unsigned int rx_pkt = 0;
- static u64 tx_cnt = 0;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct sta_priv *pstapriv = &padapter->stapriv;
-
- if (pmlmeinfo->state & WIFI_FW_AUTH_NULL)
- {
- DBG_871X("link_timer_hdl:no beacon while connecting\n");
- pmlmeinfo->state = WIFI_FW_NULL_STATE;
- report_join_res(padapter, -3);
- }
- else if (pmlmeinfo->state & WIFI_FW_AUTH_STATE)
- {
- //re-auth timer
- if (++pmlmeinfo->reauth_count > REAUTH_LIMIT)
- {
- //if (pmlmeinfo->auth_algo != dot11AuthAlgrthm_Auto)
- //{
- pmlmeinfo->state = 0;
- report_join_res(padapter, -1);
- return;
- //}
- //else
- //{
- // pmlmeinfo->auth_algo = dot11AuthAlgrthm_Shared;
- // pmlmeinfo->reauth_count = 0;
- //}
- }
-
- DBG_871X("link_timer_hdl: auth timeout and try again\n");
- pmlmeinfo->auth_seq = 1;
- issue_auth(padapter, NULL, 0);
- set_link_timer(pmlmeext, REAUTH_TO);
- }
- else if (pmlmeinfo->state & WIFI_FW_ASSOC_STATE)
- {
- //re-assoc timer
- if (++pmlmeinfo->reassoc_count > REASSOC_LIMIT)
- {
- pmlmeinfo->state = WIFI_FW_NULL_STATE;
- report_join_res(padapter, -2);
- return;
- }
-
- DBG_871X("link_timer_hdl: assoc timeout and try again\n");
- issue_assocreq(padapter);
- set_link_timer(pmlmeext, REASSOC_TO);
- }
-#if 0
- else if (is_client_associated_to_ap(padapter))
- {
- //linked infrastructure client mode
- if ((psta = rtw_get_stainfo(pstapriv, pmlmeinfo->network.MacAddress)) != NULL)
- {
- /*to monitor whether the AP is alive or not*/
- if (rx_pkt == psta->sta_stats.rx_pkts)
- {
- receive_disconnect(padapter, pmlmeinfo->network.MacAddress);
- return;
- }
- else
- {
- rx_pkt = psta->sta_stats.rx_pkts;
- set_link_timer(pmlmeext, DISCONNECT_TO);
- }
-
- //update the EDCA paramter according to the Tx/RX mode
- update_EDCA_param(padapter);
-
- /*to send the AP a nulldata if no frame is xmitted in order to keep alive*/
- if (pmlmeinfo->link_count++ == 0)
- {
- tx_cnt = pxmitpriv->tx_pkts;
- }
- else if ((pmlmeinfo->link_count & 0xf) == 0)
- {
- if (tx_cnt == pxmitpriv->tx_pkts)
- {
- issue_nulldata(padapter, 0);
- }
-
- tx_cnt = pxmitpriv->tx_pkts;
- }
- } //end of if ((psta = rtw_get_stainfo(pstapriv, passoc_res->network.MacAddress)) != NULL)
- }
- else if (is_client_associated_to_ibss(padapter))
- {
- //linked IBSS mode
- //for each assoc list entry to check the rx pkt counter
- for (i = IBSS_START_MAC_ID; i < NUM_STA; i++)
- {
- if (pmlmeinfo->FW_sta_info[i].status == 1)
- {
- psta = pmlmeinfo->FW_sta_info[i].psta;
-
- if (pmlmeinfo->FW_sta_info[i].rx_pkt == psta->sta_stats.rx_pkts)
- {
- pmlmeinfo->FW_sta_info[i].status = 0;
- report_del_sta_event(padapter, psta->hwaddr);
- }
- else
- {
- pmlmeinfo->FW_sta_info[i].rx_pkt = psta->sta_stats.rx_pkts;
- }
- }
- }
-
- set_link_timer(pmlmeext, DISCONNECT_TO);
- }
-#endif
-
- return;
-}
-
-void addba_timer_hdl(struct sta_info *psta)
-{
- u8 bitmap;
- u16 tid;
- struct ht_priv *phtpriv;
-
- if(!psta)
- return;
-
- phtpriv = &psta->htpriv;
-
- if((phtpriv->ht_option==_TRUE) && (phtpriv->ampdu_enable==_TRUE))
- {
- if(phtpriv->candidate_tid_bitmap)
- phtpriv->candidate_tid_bitmap=0x0;
-
- }
-
-}
-
-u8 NULL_hdl(_adapter *padapter, u8 *pbuf)
-{
- return H2C_SUCCESS;
-}
-
-u8 setopmode_hdl(_adapter *padapter, u8 *pbuf)
-{
- u8 type;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct setopmode_parm *psetop = (struct setopmode_parm *)pbuf;
-
- if(psetop->mode == Ndis802_11APMode)
- {
- pmlmeinfo->state = WIFI_FW_AP_STATE;
- type = _HW_STATE_AP_;
-#ifdef CONFIG_NATIVEAP_MLME
- //start_ap_mode(padapter);
-#endif
- }
- else if(psetop->mode == Ndis802_11Infrastructure)
- {
- type = _HW_STATE_STATION_;
- }
- else if(psetop->mode == Ndis802_11IBSS)
- {
- type = _HW_STATE_ADHOC_;
- }
- else
- {
- type = _HW_STATE_NOLINK_;
- }
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_SET_OPMODE, (u8 *)(&type));
- //Set_NETYPE0_MSR(padapter, type);
-
- return H2C_SUCCESS;
-
-}
-
-u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
-{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
- struct joinbss_parm *pparm = (struct joinbss_parm *)pbuf;
- u32 initialgain;
-
-
- if(pparm->network.InfrastructureMode == Ndis802_11APMode)
- {
-#ifdef CONFIG_AP_MODE
-
- if(pmlmeinfo->state == WIFI_FW_AP_STATE)
- {
- //todo:
- return H2C_SUCCESS;
- }
-#endif
- }
-
- //below is for ad-hoc master
- if(pparm->network.InfrastructureMode == Ndis802_11IBSS)
- {
- rtw_joinbss_reset(padapter);
-
- pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
- pmlmeext->cur_ch_offset= HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- pmlmeinfo->ERP_enable = 0;
- pmlmeinfo->WMM_enable = 0;
- pmlmeinfo->HT_enable = 0;
- pmlmeinfo->HT_caps_enable = 0;
- pmlmeinfo->HT_info_enable = 0;
- pmlmeinfo->agg_enable_bitmap = 0;
- pmlmeinfo->candidate_tid_bitmap = 0;
-
- //disable dynamic functions, such as high power, DIG
- Save_DM_Func_Flag(padapter);
- Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
-
- //config the initial gain under linking, need to write the BB registers
- initialgain = 0x1E;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
-
- //cancel link timer
- _cancel_timer_ex(&pmlmeext->link_timer);
-
- //clear CAM
- flush_all_cam_entry(padapter);
-
- _rtw_memcpy(pnetwork, pbuf, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
- pnetwork->IELength = ((WLAN_BSSID_EX *)pbuf)->IELength;
-
- if(pnetwork->IELength>MAX_IE_SZ)//Check pbuf->IELength
- return H2C_PARAMETERS_ERROR;
-
- _rtw_memcpy(pnetwork->IEs, ((WLAN_BSSID_EX *)pbuf)->IEs, pnetwork->IELength);
-
- start_create_ibss(padapter);
-
- }
-
- return H2C_SUCCESS;
-
-}
-
-u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
-{
- u8 join_type;
- PNDIS_802_11_VARIABLE_IEs pIE;
- struct registry_priv *pregpriv = &padapter->registrypriv;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
- struct joinbss_parm *pparm = (struct joinbss_parm *)pbuf;
- u32 acparm, initialgain, i;
-
- //check already connecting to AP or not
- if (pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS)
- {
- if (pmlmeinfo->state & WIFI_FW_STATION_STATE)
- {
- issue_deauth(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING);
- }
-
- pmlmeinfo->state = WIFI_FW_NULL_STATE;
-
- //clear CAM
- flush_all_cam_entry(padapter);
-
- _cancel_timer_ex(&pmlmeext->link_timer);
-
- //set MSR to nolink
- Set_NETYPE0_MSR(padapter, _HW_STATE_NOLINK_);
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_DISCONNECT, 0);
- }
-
-#ifdef CONFIG_ANTENNA_DIVERSITY
- rtw_antenna_select_cmd(padapter, pparm->network.PhyInfo.Optimum_antenna, _FALSE);
-#endif
-
- rtw_joinbss_reset(padapter);
-
- pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
- pmlmeext->cur_ch_offset= HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- pmlmeinfo->ERP_enable = 0;
- pmlmeinfo->WMM_enable = 0;
- pmlmeinfo->HT_enable = 0;
- pmlmeinfo->HT_caps_enable = 0;
- pmlmeinfo->HT_info_enable = 0;
- pmlmeinfo->agg_enable_bitmap = 0;
- pmlmeinfo->candidate_tid_bitmap = 0;
- pmlmeinfo->bwmode_updated = _FALSE;
- //pmlmeinfo->assoc_AP_vendor = maxAP;
-
- _rtw_memcpy(pnetwork, pbuf, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
- pnetwork->IELength = ((WLAN_BSSID_EX *)pbuf)->IELength;
-
- if(pnetwork->IELength>MAX_IE_SZ)//Check pbuf->IELength
- return H2C_PARAMETERS_ERROR;
-
- _rtw_memcpy(pnetwork->IEs, ((WLAN_BSSID_EX *)pbuf)->IEs, pnetwork->IELength);
-
- //Check AP vendor to move rtw_joinbss_cmd()
- //pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pnetwork->IEs, pnetwork->IELength);
-
- for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;)
- {
- pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
-
- switch (pIE->ElementID)
- {
- case _VENDOR_SPECIFIC_IE_://Get WMM IE.
- if ( _rtw_memcmp(pIE->data, WMM_OUI, 4) )
- {
- pmlmeinfo->WMM_enable = 1;
- }
- break;
-
- case _HT_CAPABILITY_IE_: //Get HT Cap IE.
- pmlmeinfo->HT_caps_enable = 1;
- break;
-
- case _HT_EXTRA_INFO_IE_: //Get HT Info IE.
- pmlmeinfo->HT_info_enable = 1;
-
- //spec case only for cisco's ap because cisco's ap issue assoc rsp using mcs rate @40MHz or @20MHz
- //if(pmlmeinfo->assoc_AP_vendor == ciscoAP)
- {
- struct HT_info_element *pht_info = (struct HT_info_element *)(pIE->data);
-
- if ((pregpriv->cbw40_enable) && (pht_info->infos[0] & BIT(2)))
- {
- //switch to the 40M Hz mode according to the AP
- pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
- switch (pht_info->infos[0] & 0x3)
- {
- case 1:
- pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
- break;
-
- case 3:
- pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
- break;
-
- default:
- pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- break;
- }
-
- DBG_871X("set ch/bw before connected\n");
- }
- }
- break;
-
- default:
- break;
- }
-
- i += (pIE->Length + 2);
- }
-#if 0
- if (padapter->registrypriv.wifi_spec) {
- // for WiFi test, follow WMM test plan spec
- acparm = 0x002F431C; // VO
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acparm));
- acparm = 0x005E541C; // VI
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acparm));
- acparm = 0x0000A525; // BE
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
- acparm = 0x0000A549; // BK
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acparm));
-
- // for WiFi test, mixed mode with intel STA under bg mode throughput issue
- if (padapter->mlmepriv.htpriv.ht_option == _FALSE){
- acparm = 0x00004320;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
- }
- }
- else {
- acparm = 0x002F3217; // VO
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acparm));
- acparm = 0x005E4317; // VI
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acparm));
- acparm = 0x00105320; // BE
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
- acparm = 0x0000A444; // BK
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acparm));
- }
-#endif
- //disable dynamic functions, such as high power, DIG
- //Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
-
- //config the initial gain under linking, need to write the BB registers
- #ifndef CONFIG_BEFORE_LINKED_DIG
- initialgain = 0x1E;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
- #endif
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, pmlmeinfo->network.MacAddress);
- join_type = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
-
- //cancel link timer
- _cancel_timer_ex(&pmlmeext->link_timer);
-
- start_clnt_join(padapter);
-
- return H2C_SUCCESS;
-
-}
-
-u8 disconnect_hdl(_adapter *padapter, unsigned char *pbuf)
-{
- struct disconnect_parm *pparm = (struct disconnect_parm *)pbuf;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
- u8 val8;
-
- if (is_client_associated_to_ap(padapter))
- {
- issue_deauth(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING);
- }
-
- //set_opmode_cmd(padapter, infra_client_with_mlme);
-
- pmlmeinfo->state = WIFI_FW_NULL_STATE;
-
- //switch to the 20M Hz mode after disconnect
- pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
- pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
-
- //set MSR to no link state
- Set_NETYPE0_MSR(padapter, _HW_STATE_NOLINK_);
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_DISCONNECT, 0);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, null_addr);
-
- if(((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) || ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
- {
- //Stop BCN
- val8 = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BCN_FUNC, (u8 *)(&val8));
- }
-
- pmlmeinfo->state = WIFI_FW_NULL_STATE;
-
- set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
-
- flush_all_cam_entry(padapter);
-
- _cancel_timer_ex(&pmlmeext->link_timer);
-
- return H2C_SUCCESS;
-}
-
-u8 sitesurvey_cmd_hdl(_adapter *padapter, u8 *pbuf)
-{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct sitesurvey_parm *pparm = (struct sitesurvey_parm *)pbuf;
- u8 val8;
- u32 initialgain;
- u32 i;
-
-#ifdef CONFIG_P2P
- struct wifidirect_info* pwdinfo = &padapter->wdinfo;
-#endif
-
- if (pmlmeext->sitesurvey_res.state == SCAN_DISABLE)
- {
- //for first time sitesurvey_cmd
- pmlmeext->sitesurvey_res.state = SCAN_START;
- pmlmeext->sitesurvey_res.bss_cnt = 0;
- pmlmeext->sitesurvey_res.channel_idx = 0;
-
- for(i=0;i<RTW_SSID_SCAN_AMOUNT;i++){
- if(pparm->ssid[i].SsidLength) {
- _rtw_memcpy(pmlmeext->sitesurvey_res.ssid[i].Ssid, pparm->ssid[i].Ssid, IW_ESSID_MAX_SIZE);
- pmlmeext->sitesurvey_res.ssid[i].SsidLength= pparm->ssid[i].SsidLength;
- } else {
- pmlmeext->sitesurvey_res.ssid[i].SsidLength= 0;
- }
- }
-
- pmlmeext->sitesurvey_res.scan_mode = pparm->scan_mode;
-
- //issue null data if associating to the AP
- if (is_client_associated_to_ap(padapter) == _TRUE)
- {
- pmlmeext->sitesurvey_res.state = SCAN_TXNULL;
-
- issue_nulldata(padapter, 1);
- issue_nulldata(padapter, 1);
-
- //delay 50ms to protect nulldata(1).
- set_survey_timer(pmlmeext, 50);
-
- return H2C_SUCCESS;
- }
- }
-
- if ((pmlmeext->sitesurvey_res.state == SCAN_START) || (pmlmeext->sitesurvey_res.state == SCAN_TXNULL))
- {
-#ifdef CONFIG_FIND_BEST_CHANNEL
-#if 0
- for (i=0; pmlmeext->channel_set[i].ChannelNum !=0; i++) {
- pmlmeext->channel_set[i].rx_count = 0;
- }
-#endif
-#endif /* CONFIG_FIND_BEST_CHANNEL */
-
- //disable dynamic functions, such as high power, DIG
- Save_DM_Func_Flag(padapter);
- Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
-
- //config the initial gain under scaning, need to write the BB registers
-#ifdef CONFIG_IOCTL_CFG80211
- if((wdev_to_priv(padapter->rtw_wdev))->p2p_enabled == _TRUE)
- initialgain = 0x27;
- else
-#endif
- initialgain = 0x17;
-
-#ifdef CONFIG_P2P
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
- initialgain = 0x27;
-#endif //CONFIG_P2P
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
-
- //set MSR to no link state
- Set_NETYPE0_MSR(padapter, _HW_STATE_NOLINK_);
-
- val8 = 1; //before site survey
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
-
- // Commented by Albert 2011/08/05
- // The pre_tx_scan_timer_process will issue the scan H2C command.
- // However, the driver should NOT enter the scanning mode at that time.
- pmlmeext->sitesurvey_res.state = SCAN_PROCESS;
- }
-
- site_survey(padapter);
-
- return H2C_SUCCESS;
-
-}
-
-u8 setauth_hdl(_adapter *padapter, unsigned char *pbuf)
-{
- struct setauth_parm *pparm = (struct setauth_parm *)pbuf;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- if (pparm->mode < 4)
- {
- pmlmeinfo->auth_algo = pparm->mode;
- }
-
- return H2C_SUCCESS;
-}
-
-u8 setkey_hdl(_adapter *padapter, u8 *pbuf)
-{
- unsigned short ctrl;
- struct setkey_parm *pparm = (struct setkey_parm *)pbuf;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- unsigned char null_sta[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-
- //main tx key for wep.
- if(pparm->set_tx)
- pmlmeinfo->key_index = pparm->keyid;
-
- //write cam
- ctrl = BIT(15) | ((pparm->algorithm) << 2) | pparm->keyid;
-
- write_cam(padapter, pparm->keyid, ctrl, null_sta, pparm->key);
-
- return H2C_SUCCESS;
-}
-
-u8 set_stakey_hdl(_adapter *padapter, u8 *pbuf)
-{
- unsigned short ctrl=0;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct set_stakey_parm *pparm = (struct set_stakey_parm *)pbuf;
-#ifdef CONFIG_TDLS
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *psta;
-#endif
-
- if((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
- {
- unsigned char cam_id;//cam_entry
- struct sta_info *psta;
- struct sta_priv *pstapriv = &padapter->stapriv;
-
- psta = rtw_get_stainfo(pstapriv, pparm->addr);
- if(psta)
- {
- ctrl = (BIT(15) | ((pparm->algorithm) << 2));
-
- DBG_8192C("r871x_set_stakey_hdl(): enc_algorithm=%d\n", pparm->algorithm);
-
- if((psta->mac_id<1) || (psta->mac_id>(NUM_STA-4)))
- {
- DBG_8192C("r871x_set_stakey_hdl():set_stakey failed, mac_id(aid)=%d\n", psta->mac_id);
- return H2C_REJECTED;
- }
-
- cam_id = (psta->mac_id + 3);//0~3 for default key, cmd_id=macid + 3, macid=aid+1;
-
- DBG_8192C("Write CAM, mac_addr=%x:%x:%x:%x:%x:%x, cam_entry=%d\n", pparm->addr[0],
- pparm->addr[1], pparm->addr[2], pparm->addr[3], pparm->addr[4],
- pparm->addr[5], cam_id);
-
- write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key);
-
- return H2C_SUCCESS_RSP;
-
- }
- else
- {
- DBG_8192C("r871x_set_stakey_hdl(): sta has been free\n");
- return H2C_REJECTED;
- }
-
- }
-
- //below for sta mode
-
- ctrl = BIT(15) | ((pparm->algorithm) << 2);
-
-#ifdef CONFIG_TDLS
- if(ptdlsinfo->cam_entry_to_clear!=0){
- clear_cam_entry(padapter, ptdlsinfo->cam_entry_to_clear);
- ptdlsinfo->cam_entry_to_clear=0;
-
- return H2C_SUCCESS;
- }
-
- psta = rtw_get_stainfo(pstapriv, pparm->addr);//Get TDLS Peer STA
- if( psta->tdls_sta_state&TDLS_LINKED_STATE ){
- write_cam(padapter, psta->cam_entry, ctrl, pparm->addr, pparm->key);
- }
- else
-#endif
- write_cam(padapter, 5, ctrl, pparm->addr, pparm->key);
-
- pmlmeinfo->enc_algo = pparm->algorithm;
-
- return H2C_SUCCESS;
-}
-
-u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf)
-{
- struct addBaReq_parm *pparm = (struct addBaReq_parm *)pbuf;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, pparm->addr);
-
- if(!psta)
- return H2C_SUCCESS;
-
-
- if (((pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS) && (pmlmeinfo->HT_enable)) ||
- ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
- {
- //pmlmeinfo->ADDBA_retry_count = 0;
- //pmlmeinfo->candidate_tid_bitmap |= (0x1 << pparm->tid);
- //psta->htpriv.candidate_tid_bitmap |= BIT(pparm->tid);
- issue_action_BA(padapter, pparm->addr, RTW_WLAN_ACTION_ADDBA_REQ, (u16)pparm->tid);
- //_set_timer(&pmlmeext->ADDBA_timer, ADDBA_TO);
- _set_timer(&psta->addba_retry_timer, ADDBA_TO);
- }
- else
- {
- psta->htpriv.candidate_tid_bitmap &= ~BIT(pparm->tid);
- }
-
- return H2C_SUCCESS;
-}
-
-u8 set_tx_beacon_cmd(_adapter* padapter)
-{
- struct cmd_obj *ph2c;
- struct Tx_Beacon_param *ptxBeacon_parm;
- struct cmd_priv *pcmdpriv = &(padapter->cmdpriv);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- u8 res = _SUCCESS;
- int len_diff = 0;
-
-_func_enter_;
-
- if ((ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
- {
- res= _FAIL;
- goto exit;
- }
-
- if ((ptxBeacon_parm = (struct Tx_Beacon_param *)rtw_zmalloc(sizeof(struct Tx_Beacon_param))) == NULL)
- {
- rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
- res= _FAIL;
- goto exit;
- }
-
- _rtw_memcpy(&(ptxBeacon_parm->network), &(pmlmeinfo->network), sizeof(WLAN_BSSID_EX));
-
- len_diff = update_hidden_ssid(
- ptxBeacon_parm->network.IEs+_BEACON_IE_OFFSET_
- , ptxBeacon_parm->network.IELength-_BEACON_IE_OFFSET_
- , pmlmeinfo->hidden_ssid_mode
- );
- ptxBeacon_parm->network.IELength += len_diff;
-
- init_h2fwcmd_w_parm_no_rsp(ph2c, ptxBeacon_parm, GEN_CMD_CODE(_TX_Beacon));
-
- res = rtw_enqueue_cmd(pcmdpriv, ph2c);
-
-
-exit:
-
-_func_exit_;
-
- return res;
-}
-
-
-u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf)
-{
- u8 evt_code, evt_seq;
- u16 evt_sz;
- uint *peventbuf;
- void (*event_callback)(_adapter *dev, u8 *pbuf);
- struct evt_priv *pevt_priv = &(padapter->evtpriv);
-
- peventbuf = (uint*)pbuf;
- evt_sz = (u16)(*peventbuf&0xffff);
- evt_seq = (u8)((*peventbuf>>24)&0x7f);
- evt_code = (u8)((*peventbuf>>16)&0xff);
-
-
- #ifdef CHECK_EVENT_SEQ
- // checking event sequence...
- if (evt_seq != (ATOMIC_READ(&pevt_priv->event_seq) & 0x7f) )
- {
- RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("Evetn Seq Error! %d vs %d\n", (evt_seq & 0x7f), (ATOMIC_READ(&pevt_priv->event_seq) & 0x7f)));
-
- pevt_priv->event_seq = (evt_seq+1)&0x7f;
-
- goto _abort_event_;
- }
- #endif
-
- // checking if event code is valid
- if (evt_code >= MAX_C2HEVT)
- {
- RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nEvent Code(%d) mismatch!\n", evt_code));
- goto _abort_event_;
- }
-
- // checking if event size match the event parm size
- if ((wlanevents[evt_code].parmsize != 0) &&
- (wlanevents[evt_code].parmsize != evt_sz))
- {
-
- RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nEvent(%d) Parm Size mismatch (%d vs %d)!\n",
- evt_code, wlanevents[evt_code].parmsize, evt_sz));
- goto _abort_event_;
-
- }
-
- ATOMIC_INC(&pevt_priv->event_seq);
+ if ((ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
+ {
+ goto exit_survey_timer_hdl;
+ }
- peventbuf += 2;
-
- if(peventbuf)
- {
- event_callback = wlanevents[evt_code].event_callback;
- event_callback(padapter, (u8*)peventbuf);
+ if ((psurveyPara = (struct sitesurvey_parm*)rtw_zmalloc(sizeof(struct sitesurvey_parm))) == NULL)
+ {
+ rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
+ goto exit_survey_timer_hdl;
+ }
- pevt_priv->evt_done_cnt++;
+ init_h2fwcmd_w_parm_no_rsp(ph2c, psurveyPara, GEN_CMD_CODE(_SiteSurvey));
+ rtw_enqueue_cmd(pcmdpriv, ph2c);
}
-_abort_event_:
-
+exit_survey_timer_hdl:
+#ifdef PLATFORM_FREEBSD
+ rtw_mtx_unlock(NULL);
+#endif
- return H2C_SUCCESS;
-
+ return;
}
-u8 h2c_msg_hdl(_adapter *padapter, unsigned char *pbuf)
+void link_timer_hdl(_adapter *padapter)
{
- if(!pbuf)
- return H2C_PARAMETERS_ERROR;
-
- return H2C_SUCCESS;
-}
+ //static unsigned int rx_pkt = 0;
+ //static u64 tx_cnt = 0;
+ //struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ //struct sta_priv *pstapriv = &padapter->stapriv;
+
+#ifdef PLATFORM_FREEBSD
+ rtw_mtx_lock(NULL);
+ if (callout_pending(&padapter->mlmeextpriv.survey_timer.callout)) {
+ /* callout was reset */
+ //mtx_unlock(&sc->sc_mtx);
+ rtw_mtx_unlock(NULL);
+ return;
+ }
+ if (!callout_active(&padapter->mlmeextpriv.survey_timer.callout)) {
+ /* callout was stopped */
+ //mtx_unlock(&sc->sc_mtx);
+ rtw_mtx_unlock(NULL);
+ return;
+ }
+ callout_deactivate(&padapter->mlmeextpriv.survey_timer.callout);
+
+#endif
-u8 tx_beacon_hdl(_adapter *padapter, unsigned char *pbuf)
-{
- if(send_beacon(padapter)==_FAIL)
+ if (pmlmeinfo->state & WIFI_FW_AUTH_NULL)
{
- DBG_871X("issue_beacon, fail!\n");
- return H2C_PARAMETERS_ERROR;
+ DBG_871X("link_timer_hdl:no beacon while connecting\n");
+ pmlmeinfo->state = WIFI_FW_NULL_STATE;
+ report_join_res(padapter, -3);
}
-#ifdef CONFIG_AP_MODE
- else //tx bc/mc frames after update TIM
- {
- _irqL irqL;
- struct sta_info *psta_bmc;
- _list *xmitframe_plist, *xmitframe_phead;
- struct xmit_frame *pxmitframe=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
+ else if (pmlmeinfo->state & WIFI_FW_AUTH_STATE)
+ {
+ //re-auth timer
+ if (++pmlmeinfo->reauth_count > REAUTH_LIMIT)
+ {
+ //if (pmlmeinfo->auth_algo != dot11AuthAlgrthm_Auto)
+ //{
+ pmlmeinfo->state = 0;
+ report_join_res(padapter, -1);
+ return;
+ //}
+ //else
+ //{
+ // pmlmeinfo->auth_algo = dot11AuthAlgrthm_Shared;
+ // pmlmeinfo->reauth_count = 0;
+ //}
+ }
- //for BC/MC Frames
- psta_bmc = rtw_get_bcmc_stainfo(padapter);
- if(!psta_bmc)
- return H2C_SUCCESS;
-
- if((pstapriv->tim_bitmap&BIT(0)) && (psta_bmc->sleepq_len>0))
- {
-#ifndef CONFIG_PCI_HCI
- rtw_msleep_os(10);// 10ms, ATIM(HIQ) Windows
-#endif
- _enter_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+ DBG_871X("link_timer_hdl: auth timeout and try again\n");
+ pmlmeinfo->auth_seq = 1;
+ issue_auth(padapter, NULL, 0);
+ set_link_timer(pmlmeext, REAUTH_TO);
+ }
+ else if (pmlmeinfo->state & WIFI_FW_ASSOC_STATE)
+ {
+ //re-assoc timer
+ if (++pmlmeinfo->reassoc_count > REASSOC_LIMIT)
+ {
+ pmlmeinfo->state = WIFI_FW_NULL_STATE;
+ report_join_res(padapter, -2);
+ return;
+ }
- xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
- xmitframe_plist = get_next(xmitframe_phead);
+ DBG_871X("link_timer_hdl: assoc timeout and try again\n");
+ issue_assocreq(padapter);
+ set_link_timer(pmlmeext, REASSOC_TO);
+ }
+#if 0
+ else if (is_client_associated_to_ap(padapter))
+ {
+ //linked infrastructure client mode
+ if ((psta = rtw_get_stainfo(pstapriv, pmlmeinfo->network.MacAddress)) != NULL)
+ {
+ /*to monitor whether the AP is alive or not*/
+ if (rx_pkt == psta->sta_stats.rx_pkts)
+ {
+ receive_disconnect(padapter, pmlmeinfo->network.MacAddress);
+ return;
+ }
+ else
+ {
+ rx_pkt = psta->sta_stats.rx_pkts;
+ set_link_timer(pmlmeext, DISCONNECT_TO);
+ }
- while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
- {
- pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
+ //update the EDCA paramter according to the Tx/RX mode
+ update_EDCA_param(padapter);
- xmitframe_plist = get_next(xmitframe_plist);
+ /*to send the AP a nulldata if no frame is xmitted in order to keep alive*/
+ if (pmlmeinfo->link_count++ == 0)
+ {
+ tx_cnt = pxmitpriv->tx_pkts;
+ }
+ else if ((pmlmeinfo->link_count & 0xf) == 0)
+ {
+ if (tx_cnt == pxmitpriv->tx_pkts)
+ {
+ issue_nulldata(padapter, NULL, 0, 0, 0);
+ }
- rtw_list_delete(&pxmitframe->list);
+ tx_cnt = pxmitpriv->tx_pkts;
+ }
+ } //end of if ((psta = rtw_get_stainfo(pstapriv, passoc_res->network.MacAddress)) != NULL)
+ }
+ else if (is_client_associated_to_ibss(padapter))
+ {
+ //linked IBSS mode
+ //for each assoc list entry to check the rx pkt counter
+ for (i = IBSS_START_MAC_ID; i < NUM_STA; i++)
+ {
+ if (pmlmeinfo->FW_sta_info[i].status == 1)
+ {
+ psta = pmlmeinfo->FW_sta_info[i].psta;
- psta_bmc->sleepq_len--;
- if(psta_bmc->sleepq_len>0)
- pxmitframe->attrib.mdata = 1;
+ if (pmlmeinfo->FW_sta_info[i].rx_pkt == psta->sta_stats.rx_pkts)
+ {
+ pmlmeinfo->FW_sta_info[i].status = 0;
+ report_del_sta_event(padapter, psta->hwaddr);
+ }
else
- pxmitframe->attrib.mdata = 0;
-
- pxmitframe->attrib.triggered=1;
-
- pxmitframe->attrib.qsel = 0x11;//HIQ
-
- if(padapter->HalFunc.hal_xmit(padapter, pxmitframe) == _TRUE)
- {
- rtw_os_xmit_complete(padapter, pxmitframe);
+ {
+ pmlmeinfo->FW_sta_info[i].rx_pkt = psta->sta_stats.rx_pkts;
}
-
- //pstapriv->tim_bitmap &= ~BIT(0);
-
- }
-
- _exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
-
+ }
}
+ set_link_timer(pmlmeext, DISCONNECT_TO);
}
#endif
- return H2C_SUCCESS;
-
-}
+#ifdef PLATFORM_FREEBSD
+ rtw_mtx_unlock(NULL);
+#endif
-#ifdef CONFIG_AP_MODE
+ return;
+}
-void init_mlme_ap_info(_adapter *padapter)
+void addba_timer_hdl(struct sta_info *psta)
{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
-
- _rtw_spinlock_init(&pmlmepriv->bcn_update_lock);
+ struct ht_priv *phtpriv;
- //pmlmeext->bstart_bss = _FALSE;
+ if(!psta)
+ return;
+
+ phtpriv = &psta->htpriv;
- start_ap_mode(padapter);
+ if((phtpriv->ht_option==_TRUE) && (phtpriv->ampdu_enable==_TRUE))
+ {
+ if(phtpriv->candidate_tid_bitmap)
+ phtpriv->candidate_tid_bitmap=0x0;
+
+ }
}
-void free_mlme_ap_info(_adapter *padapter)
+#ifdef CONFIG_IEEE80211W
+void sa_query_timer_hdl(_adapter *padapter)
{
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_priv * pmlmepriv = &padapter->mlmepriv;
_irqL irqL;
- struct sta_info *psta=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ //disconnect
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
- //stop_ap_mode(padapter);
+ if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
+ {
+ rtw_disassoc_cmd(padapter, 0, _TRUE);
+ rtw_indicate_disconnect(padapter);
+ rtw_free_assoc_resources(padapter, 1);
+ }
- pmlmepriv->update_bcn = _FALSE;
- pmlmeext->bstart_bss = _FALSE;
-
- rtw_sta_flush(padapter);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
+ DBG_871X("SA query timeout disconnect\n");
+}
+#endif //CONFIG_IEEE80211W
- pmlmeinfo->state = _HW_STATE_NOLINK_;
+u8 NULL_hdl(_adapter *padapter, u8 *pbuf)
+{
+ return H2C_SUCCESS;
+}
- //free_assoc_sta_resources
- rtw_free_all_stainfo(padapter);
+#ifdef CONFIG_AUTO_AP_MODE
+void rtw_start_auto_ap(_adapter *adapter)
+{
+ DBG_871X("%s\n", __FUNCTION__);
- //free bc/mc sta_info
- psta = rtw_get_bcmc_stainfo(padapter);
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
+ rtw_set_802_11_infrastructure_mode(adapter, Ndis802_11APMode);
- _rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
-
+ rtw_setopmode_cmd(adapter, Ndis802_11APMode);
}
-static void update_BCNTIM(_adapter *padapter)
+static int rtw_auto_ap_start_beacon(_adapter *adapter)
{
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork_mlmeext = &(pmlmeinfo->network);
- unsigned char *src_ie = pnetwork->IEs;
- unsigned int src_ielen = pnetwork->IELength;
- unsigned char *dst_ie = pnetwork_mlmeext->IEs;
-
-
- //update TIM IE
- //if(pstapriv->tim_bitmap)
- if(_TRUE)
- {
- u8 *p, ie_len;
- u16 tim_bitmap_le;
- u32 tmp_len, head_len=0;
+ int ret=0;
+ u8 *pbuf = NULL;
+ uint len;
+ u8 supportRate[16];
+ int sz = 0, rateLen;
+ u8 * ie;
+ u8 wireless_mode, oper_channel;
+ u8 ssid[3] = {0}; //hidden ssid
+ u32 ssid_len = sizeof(ssid);
+ struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
- tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap);
-
- //calucate head_len
- head_len = _FIXED_IE_LENGTH_;
- head_len += pnetwork->Ssid.SsidLength + 2;
- // get supported rates len
- p = rtw_get_ie(src_ie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &tmp_len, (pnetwork->IELength - _BEACON_IE_OFFSET_));
- if (p != NULL)
- {
- head_len += tmp_len+2;
- }
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
+ return -EINVAL;
- //DS Parameter Set IE, len=3
- head_len += 3;
- //copy head offset
- _rtw_memcpy(dst_ie, src_ie, head_len);
-
+ len = 128;
+ pbuf = rtw_zmalloc(len);
+ if(!pbuf)
+ return -ENOMEM;
- //append TIM IE from head_len offset
- dst_ie+=head_len;
- *dst_ie++=_TIM_IE_;
+ //generate beacon
+ ie = pbuf;
- if((pstapriv->tim_bitmap&0xff00) && (pstapriv->tim_bitmap&0x00fc))
- ie_len = 5;
- else
- ie_len = 4;
+ //timestamp will be inserted by hardware
+ sz += 8;
+ ie += sz;
+
+ //beacon interval : 2bytes
+ *(u16*)ie = cpu_to_le16((u16)100);//BCN_INTERVAL=100;
+ sz += 2;
+ ie += 2;
+
+ //capability info
+ *(u16*)ie = 0;
+ *(u16*)ie |= cpu_to_le16(cap_ESS);
+ *(u16*)ie |= cpu_to_le16(cap_ShortPremble);
+ //*(u16*)ie |= cpu_to_le16(cap_Privacy);
+ sz += 2;
+ ie += 2;
- *dst_ie++= ie_len;
-
- *dst_ie++=0;//DTIM count
- *dst_ie++=1;//DTIM peroid
-
- if(pstapriv->tim_bitmap&BIT(0))//for bc/mc frames
- *dst_ie++ = BIT(0);//bitmap ctrl
- else
- *dst_ie++ = 0;
+ //SSID
+ ie = rtw_set_ie(ie, _SSID_IE_, ssid_len, ssid, &sz);
- if(ie_len==4)
- {
- *dst_ie++ = *(u8*)&tim_bitmap_le;
- }
- else if(ie_len==5)
- {
- _rtw_memcpy(dst_ie, &tim_bitmap_le, 2);
- dst_ie+=2;
- }
-
- //copy remainder IE
- _rtw_memcpy(dst_ie, src_ie+head_len, src_ielen-head_len);
+ //supported rates
+ wireless_mode = WIRELESS_11BG_24N;
+ rtw_set_supported_rate(supportRate, wireless_mode) ;
+ rateLen = rtw_get_rateset_len(supportRate);
+ if (rateLen > 8)
+ {
+ ie = rtw_set_ie(ie, _SUPPORTEDRATES_IE_, 8, supportRate, &sz);
+ }
+ else
+ {
+ ie = rtw_set_ie(ie, _SUPPORTEDRATES_IE_, rateLen, supportRate, &sz);
+ }
+
+
+ //DS parameter set
+ if(check_buddy_fwstate(adapter, _FW_LINKED) &&
+ check_buddy_fwstate(adapter, WIFI_STATION_STATE))
+ {
+ PADAPTER pbuddy_adapter = adapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ oper_channel = pbuddy_mlmeext->cur_channel;
+ }
+ else
+ {
+ oper_channel = adapter_to_dvobj(adapter)->oper_channel;
+ }
+ ie = rtw_set_ie(ie, _DSSET_IE_, 1, &oper_channel, &sz);
+
+ //ext supported rates
+ if (rateLen > 8)
+ {
+ ie = rtw_set_ie(ie, _EXT_SUPPORTEDRATES_IE_, (rateLen - 8), (supportRate + 8), &sz);
+ }
+
+ DBG_871X("%s, start auto ap beacon sz=%d\n", __FUNCTION__, sz);
+
+ //lunch ap mode & start to issue beacon
+ if(rtw_check_beacon_data(adapter, pbuf, sz) == _SUCCESS)
+ {
- //pnetwork_mlmeext->Length += ie_len+2;
- //pnetwork_mlmeext->IELength += ie_len+2;
- pnetwork_mlmeext->Length = pnetwork->Length+ie_len+2;
- pnetwork_mlmeext->IELength = src_ielen+ie_len+2;
-
}
else
{
- _rtw_memcpy(dst_ie, src_ie, src_ielen);
- pnetwork_mlmeext->Length = pnetwork->Length;
- pnetwork_mlmeext->IELength = src_ielen;
+ ret = -EINVAL;
}
-#ifdef CONFIG_USB_HCI
- set_tx_beacon_cmd(padapter);
-#endif
+ rtw_mfree(pbuf, len);
-/*
- if(send_beacon(padapter)==_FAIL)
- {
- DBG_871X("issue_beacon, fail!\n");
- }
-*/
+ return ret;
}
+#endif//CONFIG_AUTO_AP_MODE
-u8 chk_sta_is_alive(struct sta_info *psta)
+u8 setopmode_hdl(_adapter *padapter, u8 *pbuf)
{
- u8 ret = _FALSE;
- #ifdef DBG_EXPIRATION_CHK
- DBG_871X("sta:"MAC_FMT", rx:"STA_PKTS_FMT", expire_to:%u, %s\n"
- , MAC_ARG(psta->hwaddr), STA_RX_PKTS_ARG(psta)
- , psta->expire_to
- , psta->state&WIFI_SLEEP_STATE?"SLEEP":""
- );
- #endif
+ u8 type;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct setopmode_parm *psetop = (struct setopmode_parm *)pbuf;
- //if(sta_last_rx_pkts(psta) == sta_rx_pkts(psta))
- if(psta->sta_stats.last_rx_data_pkts == psta->sta_stats.rx_data_pkts)
+ if(psetop->mode == Ndis802_11APMode)
{
- #if 0
- if(psta->state&WIFI_SLEEP_STATE)
- ret = _TRUE;
- #endif
+ pmlmeinfo->state = WIFI_FW_AP_STATE;
+ type = _HW_STATE_AP_;
+#ifdef CONFIG_NATIVEAP_MLME
+ //start_ap_mode(padapter);
+#endif
+ }
+ else if(psetop->mode == Ndis802_11Infrastructure)
+ {
+ pmlmeinfo->state &= ~(BIT(0)|BIT(1));// clear state
+ pmlmeinfo->state |= WIFI_FW_STATION_STATE;//set to STATION_STATE
+ type = _HW_STATE_STATION_;
+ }
+ else if(psetop->mode == Ndis802_11IBSS)
+ {
+ type = _HW_STATE_ADHOC_;
}
else
{
- ret = _TRUE;
+ type = _HW_STATE_NOLINK_;
}
-
- sta_update_last_rx_pkts(psta);
-
- return ret;
-}
-
-void expire_timeout_chk(_adapter *padapter)
-{
- _irqL irqL;
- _list *phead, *plist;
- struct sta_info *psta=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
+ rtw_hal_set_hwreg(padapter, HW_VAR_SET_OPMODE, (u8 *)(&type));
+ //Set_NETYPE0_MSR(padapter, type);
- _enter_critical_bh(&pstapriv->auth_list_lock, &irqL);
-
- phead = &pstapriv->auth_list;
- plist = get_next(phead);
+#ifdef CONFIG_AUTO_AP_MODE
+ if(psetop->mode == Ndis802_11APMode)
+ rtw_auto_ap_start_beacon(padapter);
+#endif
- //check auth_queue
- while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
- {
- psta = LIST_CONTAINOR(plist, struct sta_info, auth_list);
-
- plist = get_next(plist);
+ return H2C_SUCCESS;
- if(psta->expire_to>0)
- {
- psta->expire_to--;
- if (psta->expire_to == 0)
- {
- rtw_list_delete(&psta->auth_list);
-
- DBG_871X("auth expire %02X%02X%02X%02X%02X%02X\n",
- psta->hwaddr[0],psta->hwaddr[1],psta->hwaddr[2],psta->hwaddr[3],psta->hwaddr[4],psta->hwaddr[5]);
-
- _exit_critical_bh(&pstapriv->auth_list_lock, &irqL);
-
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
- _enter_critical_bh(&pstapriv->auth_list_lock, &irqL);
- }
- }
-
- }
-
- _exit_critical_bh(&pstapriv->auth_list_lock, &irqL);
+}
- psta = NULL;
-
+u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
+{
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
+ struct joinbss_parm *pparm = (struct joinbss_parm *)pbuf;
+ u32 initialgain;
- _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- phead = &pstapriv->asoc_list;
- plist = get_next(phead);
-
- //check asoc_queue
- while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ if(pparm->network.InfrastructureMode == Ndis802_11APMode)
{
- psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
-
- plist = get_next(plist);
+#ifdef CONFIG_AP_MODE
- if(chk_sta_is_alive(psta))
- {
- psta->expire_to = pstapriv->expire_to;
-#ifdef CONFIG_TX_MCAST2UNI
- psta->under_exist_checking = 0;
-#endif // CONFIG_TX_MCAST2UNI
+ if(pmlmeinfo->state == WIFI_FW_AP_STATE)
+ {
+ //todo:
+ return H2C_SUCCESS;
}
-
- if(psta->expire_to>0)
- {
- psta->expire_to--;
-
-#ifdef CONFIG_TX_MCAST2UNI
- if ( (psta->flags & WLAN_STA_HT) && (psta->htpriv.agg_enable_bitmap || psta->under_exist_checking) ) {
- // check sta by delba(addba) for 11n STA
- // ToDo: use CCX report to check for all STAs
- DBG_871X("asoc check by DELBA/ADDBA! (pstapriv->expire_to=%d s)(psta->expire_to=%d s), [%02x, %d]\n", pstapriv->expire_to*2, psta->expire_to*2, psta->htpriv.agg_enable_bitmap, psta->under_exist_checking);
-
- if ( psta->expire_to <= (pstapriv->expire_to - 50 ) ) {
- DBG_871X("asoc expire by DELBA/ADDBA! (%d s)\n", (pstapriv->expire_to-psta->expire_to)*2);
- psta->under_exist_checking = 0;
- psta->expire_to = 0;
- } else if ( psta->expire_to <= (pstapriv->expire_to - 3) && (psta->under_exist_checking==0)) {
- DBG_871X("asoc check by DELBA/ADDBA! (%d s)\n", (pstapriv->expire_to-psta->expire_to)*2);
- psta->under_exist_checking = 1;
- //tear down TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- psta->htpriv.agg_enable_bitmap = 0x0;//reset
- psta->htpriv.candidate_tid_bitmap = 0x0;//reset
- }
- }
-#endif // CONFIG_TX_MCAST2UNI
+#endif
+ }
- if (psta->expire_to == 0)
- {
- //_irqL irqL;
-
- rtw_list_delete(&psta->asoc_list);
-
- DBG_871X("asoc expire %02X%02X%02X%02X%02X%02X\n",
- psta->hwaddr[0],psta->hwaddr[1],psta->hwaddr[2],psta->hwaddr[3],psta->hwaddr[4],psta->hwaddr[5]);
-#if 0
- //tear down Rx AMPDU
- send_delba(padapter, 0, psta->hwaddr);// recipient
+ //below is for ad-hoc master
+ if(pparm->network.InfrastructureMode == Ndis802_11IBSS)
+ {
+ rtw_joinbss_reset(padapter);
- //tear down TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- psta->htpriv.agg_enable_bitmap = 0x0;//reset
- psta->htpriv.candidate_tid_bitmap = 0x0;//reset
+ pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pmlmeext->cur_ch_offset= HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ pmlmeinfo->ERP_enable = 0;
+ pmlmeinfo->WMM_enable = 0;
+ pmlmeinfo->HT_enable = 0;
+ pmlmeinfo->HT_caps_enable = 0;
+ pmlmeinfo->HT_info_enable = 0;
+ pmlmeinfo->agg_enable_bitmap = 0;
+ pmlmeinfo->candidate_tid_bitmap = 0;
- issue_deauth(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
+ //disable dynamic functions, such as high power, DIG
+ Save_DM_Func_Flag(padapter);
+ Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-#endif
- //_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- ap_free_sta(padapter, psta);
- //_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
-
- }
- else
- {
- if(psta->sleepq_len > (NR_XMITFRAME>>3))
- {
- wakeup_sta_to_xmit(padapter, psta);
- }
- }
-
- }
-
- }
+ //config the initial gain under linking, need to write the BB registers
+ initialgain = 0x1E;
+ rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ //cancel link timer
+ _cancel_timer_ex(&pmlmeext->link_timer);
-}
+ //clear CAM
+ flush_all_cam_entry(padapter);
+ _rtw_memcpy(pnetwork, pbuf, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
+ pnetwork->IELength = ((WLAN_BSSID_EX *)pbuf)->IELength;
-static void add_RATid(_adapter *padapter, struct sta_info *psta)
-{
- int i;
- u8 rf_type;
- u32 init_rate=0;
- unsigned char sta_band = 0, raid, shortGIrate = _FALSE;
- unsigned char limit;
- unsigned int tx_ra_bitmap=0;
- struct ht_priv *psta_ht = NULL;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- WLAN_BSSID_EX *pcur_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+ if(pnetwork->IELength>MAX_IE_SZ)//Check pbuf->IELength
+ return H2C_PARAMETERS_ERROR;
+ _rtw_memcpy(pnetwork->IEs, ((WLAN_BSSID_EX *)pbuf)->IEs, pnetwork->IELength);
- if(psta)
- psta_ht = &psta->htpriv;
- else
- return;
-
- //b/g mode ra_bitmap
- for (i=0; i<sizeof(psta->bssrateset); i++)
- {
- if (psta->bssrateset[i])
- tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value(psta->bssrateset[i]&0x7f);
- }
+ start_create_ibss(padapter);
- //n mode ra_bitmap
- if(psta_ht->ht_option)
- {
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
- if(rf_type == RF_2T2R)
- limit=16;// 2R
- else
- limit=8;// 1R
+ }
- for (i=0; i<limit; i++) {
- if (psta_ht->ht_cap.supp_mcs_set[i/8] & BIT(i%8))
- tx_ra_bitmap |= BIT(i+12);
- }
+ return H2C_SUCCESS;
- //max short GI rate
- shortGIrate = psta_ht->sgi;
- }
+}
+u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
+{
+ u8 join_type;
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
+#ifdef CONFIG_ANTENNA_DIVERSITY
+ struct joinbss_parm *pparm = (struct joinbss_parm *)pbuf;
+#endif //CONFIG_ANTENNA_DIVERSITY
+ u32 initialgain, i;
+ u8 cbw40_enable=0;
+ //u32 acparm;
-#if 0//gtest
- if(get_rf_mimo_mode(padapter) == RTL8712_RF_2T2R)
+ //check already connecting to AP or not
+ if (pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS)
{
- //is this a 2r STA?
- if((pstat->tx_ra_bitmap & 0x0ff00000) != 0 && !(priv->pshare->has_2r_sta & BIT(pstat->aid)))
+ if (pmlmeinfo->state & WIFI_FW_STATION_STATE)
{
- priv->pshare->has_2r_sta |= BIT(pstat->aid);
- if(rtw_read16(padapter, 0x102501f6) != 0xffff)
- {
- rtw_write16(padapter, 0x102501f6, 0xffff);
- reset_1r_sta_RA(priv, 0xffff);
- Switch_1SS_Antenna(priv, 3);
- }
- }
- else// bg or 1R STA?
- {
- if((priv->pmib->dot11BssType.net_work_type & WIRELESS_11N) && pstat->ht_cap_len && priv->pshare->has_2r_sta == 0)
- {
- if(rtw_read16(padapter, 0x102501f6) != 0x7777)
- { // MCS7 SGI
- rtw_write16(padapter, 0x102501f6,0x7777);
- reset_1r_sta_RA(priv, 0x7777);
- Switch_1SS_Antenna(priv, 2);
- }
- }
+ issue_deauth_ex(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING, 5, 100);
}
+
+ pmlmeinfo->state = WIFI_FW_NULL_STATE;
+
+ //clear CAM
+ flush_all_cam_entry(padapter);
+
+ _cancel_timer_ex(&pmlmeext->link_timer);
+
+ //set MSR to nolink -> infra. mode
+ //Set_MSR(padapter, _HW_STATE_NOLINK_);
+ Set_MSR(padapter, _HW_STATE_STATION_);
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_DISCONNECT, 0);
}
- if ((pstat->rssi_level < 1) || (pstat->rssi_level > 3))
+#ifdef CONFIG_ANTENNA_DIVERSITY
+ rtw_antenna_select_cmd(padapter, pparm->network.PhyInfo.Optimum_antenna, _FALSE);
+#endif
+
+ rtw_joinbss_reset(padapter);
+
+ pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pmlmeext->cur_ch_offset= HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ pmlmeinfo->ERP_enable = 0;
+ pmlmeinfo->WMM_enable = 0;
+ pmlmeinfo->HT_enable = 0;
+ pmlmeinfo->HT_caps_enable = 0;
+ pmlmeinfo->HT_info_enable = 0;
+ pmlmeinfo->agg_enable_bitmap = 0;
+ pmlmeinfo->candidate_tid_bitmap = 0;
+ pmlmeinfo->bwmode_updated = _FALSE;
+ //pmlmeinfo->assoc_AP_vendor = maxAP;
+
+ _rtw_memcpy(pnetwork, pbuf, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
+ pnetwork->IELength = ((WLAN_BSSID_EX *)pbuf)->IELength;
+
+ if(pnetwork->IELength>MAX_IE_SZ)//Check pbuf->IELength
+ return H2C_PARAMETERS_ERROR;
+
+ _rtw_memcpy(pnetwork->IEs, ((WLAN_BSSID_EX *)pbuf)->IEs, pnetwork->IELength);
+
+ pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig;
+ pmlmeinfo->bcn_interval = get_beacon_interval(pnetwork);
+
+ //Check AP vendor to move rtw_joinbss_cmd()
+ //pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pnetwork->IEs, pnetwork->IELength);
+
+ for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;)
{
- if (pstat->rssi >= priv->pshare->rf_ft_var.raGoDownUpper)
- pstat->rssi_level = 1;
- else if ((pstat->rssi >= priv->pshare->rf_ft_var.raGoDown20MLower) ||
- ((priv->pshare->is_40m_bw) && (pstat->ht_cap_len) &&
- (pstat->rssi >= priv->pshare->rf_ft_var.raGoDown40MLower) &&
- (pstat->ht_cap_buf.ht_cap_info & cpu_to_le16(_HTCAP_SUPPORT_CH_WDTH_))))
- pstat->rssi_level = 2;
- else
- pstat->rssi_level = 3;
- }
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
+
+ switch (pIE->ElementID)
+ {
+ case _VENDOR_SPECIFIC_IE_://Get WMM IE.
+ if ( _rtw_memcmp(pIE->data, WMM_OUI, 4) )
+ {
+ pmlmeinfo->WMM_enable = 1;
+ }
+ break;
+
+ case _HT_CAPABILITY_IE_: //Get HT Cap IE.
+ pmlmeinfo->HT_caps_enable = 1;
+ break;
+
+ case _HT_EXTRA_INFO_IE_: //Get HT Info IE.
+ pmlmeinfo->HT_info_enable = 1;
+
+ //spec case only for cisco's ap because cisco's ap issue assoc rsp using mcs rate @40MHz or @20MHz
+//#if !defined(CONFIG_CONCURRENT_MODE) && !defined(CONFIG_DUALMAC_CONCURRENT)
+// if(pmlmeinfo->assoc_AP_vendor == ciscoAP)
+//#endif
+ {
+ struct HT_info_element *pht_info = (struct HT_info_element *)(pIE->data);
+
+ if( pnetwork->Configuration.DSConfig > 14 )
+ {
+ if( pregpriv->cbw40_enable & BIT(1) )
+ cbw40_enable = 1;
+ }
+ else
+ if( pregpriv->cbw40_enable & BIT(0) )
+ cbw40_enable = 1;
+
+ if ((cbw40_enable) && (pht_info->infos[0] & BIT(2)))
+ {
+ //switch to the 40M Hz mode according to the AP
+ pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ switch (pht_info->infos[0] & 0x3)
+ {
+ case 1:
+ pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ break;
+
+ case 3:
+ pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ break;
+
+ default:
+ pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ break;
+ }
- // rate adaptive by rssi
- if ((priv->pmib->dot11BssType.net_work_type & WIRELESS_11N) && pstat->ht_cap_len)
- {
- if ((get_rf_mimo_mode(priv) == MIMO_1T2R) || (get_rf_mimo_mode(priv) == MIMO_1T1R))
- {
- switch (pstat->rssi_level) {
- case 1:
- pstat->tx_ra_bitmap &= 0x100f0000;
- break;
- case 2:
- pstat->tx_ra_bitmap &= 0x100ff000;
- break;
- case 3:
- if (priv->pshare->is_40m_bw)
- pstat->tx_ra_bitmap &= 0x100ff005;
- else
- pstat->tx_ra_bitmap &= 0x100ff001;
+ DBG_871X("set ch/bw before connected\n");
+ }
+ }
+ break;
- break;
- }
+ default:
+ break;
}
- else
- {
- switch (pstat->rssi_level) {
- case 1:
- pstat->tx_ra_bitmap &= 0x1f0f0000;
- break;
- case 2:
- pstat->tx_ra_bitmap &= 0x1f0ff000;
- break;
- case 3:
- if (priv->pshare->is_40m_bw)
- pstat->tx_ra_bitmap &= 0x000ff005;
- else
- pstat->tx_ra_bitmap &= 0x000ff001;
-
- break;
- }
- // Don't need to mask high rates due to new rate adaptive parameters
- //if (pstat->is_broadcom_sta) // use MCS12 as the highest rate vs. Broadcom sta
- // pstat->tx_ra_bitmap &= 0x81ffffff;
-
- // NIC driver will report not supporting MCS15 and MCS14 in asoc req
- //if (pstat->is_rtl8190_sta && !pstat->is_2t_mimo_sta)
- // pstat->tx_ra_bitmap &= 0x83ffffff; // if Realtek 1x2 sta, don't use MCS15 and MCS14
- }
+ i += (pIE->Length + 2);
}
- else if ((priv->pmib->dot11BssType.net_work_type & WIRELESS_11G) && isErpSta(pstat))
- {
- switch (pstat->rssi_level) {
- case 1:
- pstat->tx_ra_bitmap &= 0x00000f00;
- break;
- case 2:
- pstat->tx_ra_bitmap &= 0x00000ff0;
- break;
- case 3:
- pstat->tx_ra_bitmap &= 0x00000ff5;
- break;
+#if 0
+ if (padapter->registrypriv.wifi_spec) {
+ // for WiFi test, follow WMM test plan spec
+ acparm = 0x002F431C; // VO
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acparm));
+ acparm = 0x005E541C; // VI
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acparm));
+ acparm = 0x0000A525; // BE
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
+ acparm = 0x0000A549; // BK
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acparm));
+
+ // for WiFi test, mixed mode with intel STA under bg mode throughput issue
+ if (padapter->mlmepriv.htpriv.ht_option == _FALSE){
+ acparm = 0x00004320;
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
}
}
- else
- {
- pstat->tx_ra_bitmap &= 0x0000000d;
+ else {
+ acparm = 0x002F3217; // VO
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acparm));
+ acparm = 0x005E4317; // VI
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acparm));
+ acparm = 0x00105320; // BE
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
+ acparm = 0x0000A444; // BK
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acparm));
}
+#endif
- // disable tx short GI when station cannot rx MCS15(AP is 2T2R)
- // disable tx short GI when station cannot rx MCS7 (AP is 1T2R or 1T1R)
- // if there is only 1r STA and we are 2T2R, DO NOT mask SGI rate
- if ((!(pstat->tx_ra_bitmap & 0x8000000) && (priv->pshare->has_2r_sta > 0) && (get_rf_mimo_mode(padapter) == RTL8712_RF_2T2R)) ||
- (!(pstat->tx_ra_bitmap & 0x80000) && (get_rf_mimo_mode(padapter) != RTL8712_RF_2T2R)))
- {
- pstat->tx_ra_bitmap &= ~BIT(28);
+ /* check channel, bandwidth, offset and switch */
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ if(dc_handle_join_request(padapter) == _FAIL) {
+ DBG_871X("dc_handle_join_request fail !!!\n");
+ return H2C_SUCCESS;
+ }
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+#else //NON CONFIG_DUALMAC_CONCURRENT
+ if(rtw_chk_start_clnt_join(padapter) == _FAIL) {
+ report_join_res(padapter, (-4));
+ return H2C_SUCCESS;
}
#endif
- if ( pcur_network->Configuration.DSConfig > 14 ) {
- // 5G band
- if (tx_ra_bitmap & 0xffff000)
- sta_band |= WIRELESS_11_5N | WIRELESS_11A;
- else
- sta_band |= WIRELESS_11A;
- } else {
- if (tx_ra_bitmap & 0xffff000)
- sta_band |= WIRELESS_11_24N | WIRELESS_11G | WIRELESS_11B;
- else if (tx_ra_bitmap & 0xff0)
- sta_band |= WIRELESS_11G |WIRELESS_11B;
- else
- sta_band |= WIRELESS_11B;
- }
+ //disable dynamic functions, such as high power, DIG
+ //Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
- raid = networktype_to_raid(sta_band);
- init_rate = get_highest_rate_idx(tx_ra_bitmap&0x0fffffff)&0x3f;
+ //config the initial gain under linking, need to write the BB registers
+
+ initialgain = 0x1E;
+ rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
- if (psta->aid < NUM_STA)
- {
- u8 arg = 0;
-#ifdef SUPPORT_64_STA
- if(psta->mac_id >= FW_CTRL_MACID){
- arg = psta->mac_id&0x3f;
- if (shortGIrate==_TRUE)
- arg |= BIT(7);
- switch(raid){
- case 0:
- case 1:
- case 3:
- psta->init_rate=19; // N mode
- break;
- case 4:
- case 5:
- psta->init_rate=11; // G mode
- break;
- case 6:
- psta->init_rate=3; // B mode
- break;
- deafult:
- psta->init_rate=3; // B mode
- break;
-
- }
- // printk("%s psta->mac_id=%d arg=0x%x\n",__FUNCTION__,psta->mac_id,arg);
- }
- else
-#endif // SUPPORT_64_STA
- {
- arg = psta->mac_id&0x1f;
- arg |= BIT(7);
- if (shortGIrate==_TRUE)
- arg |= BIT(5);
- //printk("%s psta->mac_id=%d arg=0x%x\n",__FUNCTION__,psta->mac_id,arg);
- }
- tx_ra_bitmap |= ((raid<<28)&0xf0000000);
-
- DBG_871X("update raid entry, bitmap=0x%x, arg=0x%x\n", tx_ra_bitmap, arg);
-
- //bitmap[0:27] = tx_rate_bitmap
- //bitmap[28:31]= Rate Adaptive id
- //arg[0:4] = macid
- //arg[5] = Short GI
- padapter->HalFunc.Add_RateATid(padapter, tx_ra_bitmap, arg,psta->mac_id);
- if (shortGIrate==_TRUE)
- init_rate |= BIT(6);
-
- //set ra_id, init_rate
- psta->raid = raid;
- psta->init_rate = init_rate;
-
- }
- else
- {
- DBG_871X("station aid %d exceed the max number\n", psta->aid);
- }
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pmlmeinfo->network.MacAddress);
+ join_type = 0;
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
+ //cancel link timer
+ _cancel_timer_ex(&pmlmeext->link_timer);
+
+ start_clnt_join(padapter);
+
+ return H2C_SUCCESS;
+
}
-static void update_bmc_sta(_adapter *padapter)
+u8 disconnect_hdl(_adapter *padapter, unsigned char *pbuf)
{
- _irqL irqL;
- u32 init_rate=0;
- unsigned char network_type, raid;
- unsigned short para16;
- int i, supportRateNum = 0;
- unsigned int tx_ra_bitmap=0;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- WLAN_BSSID_EX *pcur_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
- struct sta_info *psta = rtw_get_bcmc_stainfo(padapter);
+ struct disconnect_parm *param = (struct disconnect_parm *)pbuf;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
+ u8 val8;
- if(psta)
+ if (is_client_associated_to_ap(padapter))
{
- psta->aid = 0;//default set to 0
- //psta->mac_id = psta->aid+4;
- psta->mac_id = psta->aid + 1;
-
- psta->qos_option = 0;
- psta->htpriv.ht_option = _FALSE;
-
- psta->ieee8021x_blocked = 0;
-
- _rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
-
- //psta->dot118021XPrivacy = _NO_PRIVACY_;//!!! remove it, because it has been set before this.
+ issue_deauth_ex(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING, param->deauth_timeout_ms/100, 100);
+ }
+ //set_opmode_cmd(padapter, infra_client_with_mlme);
+ //pmlmeinfo->state = WIFI_FW_NULL_STATE;
+
- //prepare for add_RATid
- supportRateNum = rtw_get_rateset_len((u8*)&pcur_network->SupportedRates);
- network_type = rtw_check_network_type((u8*)&pcur_network->SupportedRates, supportRateNum, 1);
-
- _rtw_memcpy(psta->bssrateset, &pcur_network->SupportedRates, supportRateNum);
- psta->bssratelen = supportRateNum;
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_DISCONNECT, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, null_addr);
- //b/g mode ra_bitmap
- for (i=0; i<supportRateNum; i++)
- {
- if (psta->bssrateset[i])
- tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value(psta->bssrateset[i]&0x7f);
- }
+ //restore to initial setting.
+ update_tx_basic_rate(padapter, padapter->registrypriv.wireless_mode);
- if ( pcur_network->Configuration.DSConfig > 14 ) {
- //force to A mode. 5G doesn't support CCK rates
- network_type = WIRELESS_11A;
- tx_ra_bitmap = 0x150; // 6, 12, 24 Mbps
- } else {
- //force to b mode
- network_type = WIRELESS_11B;
- tx_ra_bitmap = 0xf;
- }
+ if(((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) || ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
+ {
+ //Stop BCN
+ val8 = 0;
+ rtw_hal_set_hwreg(padapter, HW_VAR_BCN_FUNC, (u8 *)(&val8));
+ }
- //tx_ra_bitmap = update_basic_rate(pcur_network->SupportedRates, supportRateNum);
- raid = networktype_to_raid(network_type);
- init_rate = get_highest_rate_idx(tx_ra_bitmap&0x0fffffff)&0x3f;
-
- //DBG_871X("Add id %d val %08x to ratr for bmc sta\n", psta->aid, tx_ra_bitmap);
+ //set MSR to no link state -> infra. mode
+ Set_MSR(padapter, _HW_STATE_STATION_);
- //if(pHalData->fw_ractrl == _TRUE)
- {
- u8 arg = 0;
+ pmlmeinfo->state = WIFI_FW_NULL_STATE;
- arg = psta->mac_id&0x1f;
-
- arg |= BIT(7);
-
- //if (shortGIrate==_TRUE)
- // arg |= BIT(5);
-
- tx_ra_bitmap |= ((raid<<28)&0xf0000000);
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ dc_set_channel_bwmode_disconnect(padapter);
+#else
+#ifdef CONFIG_CONCURRENT_MODE
+ if((check_buddy_fwstate(padapter, _FW_LINKED)) != _TRUE)
+ {
+#endif //CONFIG_CONCURRENT_MODE
+ //switch to the 20M Hz mode after disconnect
+ pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- DBG_871X("update_bmc_sta, mask=0x%x, arg=0x%x\n", tx_ra_bitmap, arg);
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+#ifdef CONFIG_CONCURRENT_MODE
+ }
+#endif //CONFIG_CONCURRENT_MODE
+#endif //CONFIG_DUALMAC_CONCURRENT
- //bitmap[0:27] = tx_rate_bitmap
- //bitmap[28:31]= Rate Adaptive id
- //arg[0:4] = macid
- //arg[5] = Short GI
- padapter->HalFunc.Add_RateATid(padapter, tx_ra_bitmap, arg,psta->mac_id );
+ flush_all_cam_entry(padapter);
- }
-
- //set ra_id, init_rate
- psta->raid = raid;
- psta->init_rate = init_rate;
-
- _enter_critical_bh(&psta->lock, &irqL);
- psta->state = _FW_LINKED;
- _exit_critical_bh(&psta->lock, &irqL);
+ _cancel_timer_ex(&pmlmeext->link_timer);
- }
- else
- {
- DBG_871X("add_RATid_bmc_sta error!\n");
- }
-
+ rtw_free_uc_swdec_pending_queue(padapter);
+
+ return H2C_SUCCESS;
}
-//notes:
-//AID: 1~MAX for sta and 0 for bc/mc in ap/adhoc mode
-//MAC_ID = AID+1 for sta in ap/adhoc mode
-//MAC_ID = 1 for bc/mc for sta/ap/adhoc
-//MAC_ID = 0 for bssid for sta/ap/adhoc
-//CAM_ID = //0~3 for default key, cmd_id=macid + 3, macid=aid+1;
-
-void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta)
-{
- _irqL irqL;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct security_priv *psecuritypriv = &padapter->securitypriv;
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
- struct ht_priv *phtpriv_sta = &psta->htpriv;
+int rtw_scan_ch_decision(_adapter *padapter, struct rtw_ieee80211_channel *out,
+ u32 out_num, struct rtw_ieee80211_channel *in, u32 in_num)
+{
+ int i, j;
+ int scan_ch_num = 0;
+ int set_idx;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- //set intf_tag to if1
- //psta->intf_tag = 0;
+ /* clear first */
+ _rtw_memset(out, 0, sizeof(struct rtw_ieee80211_channel)*out_num);
- //psta->mac_id = psta->aid+4;
- psta->mac_id = psta->aid+1;
-
- if(psecuritypriv->dot11AuthAlgrthm==dot11AuthAlgrthm_8021X)
- psta->ieee8021x_blocked = _TRUE;
- else
- psta->ieee8021x_blocked = _FALSE;
-
+ /* acquire channels from in */
+ j = 0;
+ for (i=0;i<in_num;i++) {
- //update sta's cap
-
- //ERP
- VCS_update(padapter, psta);
-
- //HT related cap
- if(phtpriv_sta->ht_option)
- {
- //check if sta supports rx ampdu
- phtpriv_sta->ampdu_enable = phtpriv_ap->ampdu_enable;
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" "CHAN_FMT"\n", FUNC_ADPT_ARG(padapter), CHAN_ARG(&in[i]));
- //check if sta support s Short GI
- if((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40))
+ if(in[i].hw_value && !(in[i].flags & RTW_IEEE80211_CHAN_DISABLED)
+ && (set_idx=rtw_ch_set_search_ch(pmlmeext->channel_set, in[i].hw_value)) >=0
+ && rtw_mlme_band_check(padapter, in[i].hw_value) == _TRUE
+ )
{
- phtpriv_sta->sgi = _TRUE;
- }
+ if (j >= out_num) {
+ DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" out_num:%u not enough\n",
+ FUNC_ADPT_ARG(padapter), out_num);
+ break;
+ }
- // bwmode
- if((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH))
- {
- //phtpriv_sta->bwmode = HT_CHANNEL_WIDTH_40;
- phtpriv_sta->bwmode = pmlmeext->cur_bwmode;
- phtpriv_sta->ch_offset = pmlmeext->cur_ch_offset;
+ _rtw_memcpy(&out[j], &in[i], sizeof(struct rtw_ieee80211_channel));
- }
-
- psta->qos_option = _TRUE;
-
- }
- else
- {
- phtpriv_sta->ampdu_enable = _FALSE;
-
- phtpriv_sta->sgi = _FALSE;
- phtpriv_sta->bwmode = HT_CHANNEL_WIDTH_20;
- phtpriv_sta->ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ if(pmlmeext->channel_set[set_idx].ScanType == SCAN_PASSIVE)
+ out[j].flags &= RTW_IEEE80211_CHAN_PASSIVE_SCAN;
+
+ j++;
+ }
+ if(j>=out_num)
+ break;
}
-
- //Rx AMPDU
- send_delba(padapter, 0, psta->hwaddr);// recipient
-
- //TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- phtpriv_sta->agg_enable_bitmap = 0x0;//reset
- phtpriv_sta->candidate_tid_bitmap = 0x0;//reset
+ /* if out is empty, use channel_set as default */
+ if(j == 0) {
+ for (i=0;i<pmlmeext->max_chan_nums;i++) {
- //todo: init other variables
-
- _rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" ch:%u\n", FUNC_ADPT_ARG(padapter), pmlmeext->channel_set[i].ChannelNum);
+ if (rtw_mlme_band_check(padapter, pmlmeext->channel_set[i].ChannelNum) == _TRUE) {
- //add ratid
- //add_RATid(padapter, psta);//move to ap_sta_info_defer_update()
+ if (j >= out_num) {
+ DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" out_num:%u not enough\n",
+ FUNC_ADPT_ARG(padapter), out_num);
+ break;
+ }
+ out[j].hw_value = pmlmeext->channel_set[i].ChannelNum;
+
+ if(pmlmeext->channel_set[i].ScanType == SCAN_PASSIVE)
+ out[j].flags &= RTW_IEEE80211_CHAN_PASSIVE_SCAN;
- _enter_critical_bh(&psta->lock, &irqL);
- psta->state |= _FW_LINKED;
- _exit_critical_bh(&psta->lock, &irqL);
-
+ j++;
+ }
+ }
+ }
+ return j;
}
-static void update_hw_ht_param(_adapter *padapter)
+u8 sitesurvey_cmd_hdl(_adapter *padapter, u8 *pbuf)
{
- unsigned char max_AMPDU_len;
- unsigned char min_MPDU_spacing;
- struct registry_priv *pregpriv = &padapter->registrypriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- DBG_871X("%s\n", __FUNCTION__);
-
-
- //handle A-MPDU parameter field
- /*
- AMPDU_para [1:0]:Max AMPDU Len => 0:8k , 1:16k, 2:32k, 3:64k
- AMPDU_para [4:2]:Min MPDU Start Spacing
- */
- max_AMPDU_len = pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x03;
-
- min_MPDU_spacing = (pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x1c) >> 2;
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
+ struct sitesurvey_parm *pparm = (struct sitesurvey_parm *)pbuf;
+ u8 bdelayscan = _FALSE;
+ u8 val8;
+ u32 initialgain;
+ u32 i;
+ u8 write_initial_gain = 1;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
+#ifdef CONFIG_P2P
+ struct wifidirect_info* pwdinfo = &padapter->wdinfo;
+#endif
- //
- // Config SM Power Save setting
- //
- pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info & 0x0C) >> 2;
- if(pmlmeinfo->SM_PS == WLAN_HT_CAP_SM_PS_STATIC)
+ if (pmlmeext->sitesurvey_res.state == SCAN_DISABLE)
{
- /*u8 i;
- //update the MCS rates
- for (i = 0; i < 16; i++)
- {
- pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
- }*/
- DBG_8192C("%s(): WLAN_HT_CAP_SM_PS_STATIC\n",__FUNCTION__);
- }
-
- //
- // Config current HT Protection mode.
- //
- //pmlmeinfo->HT_protection = pmlmeinfo->HT_info.infos[1] & 0x3;
-
-}
-
-static void start_bss_network(_adapter *padapter, u8 *pbuf)
-{
- u8 *p;
- u8 val8, cur_channel, cur_bwmode, cur_ch_offset;
- u16 bcn_interval;
- u32 acparm;
- int ie_len;
- struct registry_priv *pregpriv = &padapter->registrypriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct security_priv* psecuritypriv=&(padapter->securitypriv);
- WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork_mlmeext = &(pmlmeinfo->network);
-#ifdef CONFIG_P2P
- struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
-#endif //CONFIG_P2P
-
-
- //DBG_8192C("%s\n", __FUNCTION__);
+#ifdef CONFIG_CONCURRENT_MODE
+ //for first time sitesurvey_cmd
+ rtw_hal_set_hwreg(padapter, HW_VAR_CHECK_TXBUF, 0);
+#endif //CONFIG_CONCURRENT_MODE
+
+ pmlmeext->sitesurvey_res.state = SCAN_START;
+ pmlmeext->sitesurvey_res.bss_cnt = 0;
+ pmlmeext->sitesurvey_res.channel_idx = 0;
- bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod;
- cur_channel = pnetwork->Configuration.DSConfig;
- cur_bwmode = HT_CHANNEL_WIDTH_20;;
- cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
-
+ for(i=0;i<RTW_SSID_SCAN_AMOUNT;i++){
+ if(pparm->ssid[i].SsidLength) {
+ _rtw_memcpy(pmlmeext->sitesurvey_res.ssid[i].Ssid, pparm->ssid[i].Ssid, IW_ESSID_MAX_SIZE);
+ pmlmeext->sitesurvey_res.ssid[i].SsidLength= pparm->ssid[i].SsidLength;
+ } else {
+ pmlmeext->sitesurvey_res.ssid[i].SsidLength= 0;
+ }
+ }
- //check if there is wps ie,
- //if there is wpsie in beacon, the hostapd will update beacon twice when stating hostapd,
- //and at first time the security ie ( RSN/WPA IE) will not include in beacon.
- if(NULL == rtw_get_wps_ie(pnetwork->IEs+_FIXED_IE_LENGTH_, pnetwork->IELength-_FIXED_IE_LENGTH_, NULL, NULL))
- {
- pmlmeext->bstart_bss = _TRUE;
- }
-
- //udpate capability
- update_capinfo(padapter, rtw_get_capability((WLAN_BSSID_EX *)pnetwork));
-
- //todo: update wmm, ht cap
- //pmlmeinfo->WMM_enable;
- //pmlmeinfo->HT_enable;
- if(pmlmepriv->qospriv.qos_option)
- pmlmeinfo->WMM_enable = _TRUE;
+ pmlmeext->sitesurvey_res.ch_num = rtw_scan_ch_decision(padapter
+ , pmlmeext->sitesurvey_res.ch, RTW_CHANNEL_SCAN_AMOUNT
+ , pparm->ch, pparm->ch_num
+ );
- if(pmlmepriv->htpriv.ht_option)
- {
- pmlmeinfo->WMM_enable = _TRUE;
- pmlmeinfo->HT_enable = _TRUE;
- //pmlmeinfo->HT_info_enable = _TRUE;
- //pmlmeinfo->HT_caps_enable = _TRUE;
+ pmlmeext->sitesurvey_res.scan_mode = pparm->scan_mode;
- update_hw_ht_param(padapter);
- }
-
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ bdelayscan = dc_handle_site_survey(padapter);
+#endif
- if(pmlmepriv->cur_network.join_res != _TRUE) //setting only at first time
- {
- flush_all_cam_entry(padapter); //clear CAM
- }
+ //issue null data if associating to the AP
+ if (is_client_associated_to_ap(padapter) == _TRUE)
+ {
+ pmlmeext->sitesurvey_res.state = SCAN_TXNULL;
- //set MSR to AP_Mode
- Set_NETYPE0_MSR(padapter, _HW_STATE_AP_);
-
- //Set BSSID REG
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, pnetwork->MacAddress);
+ issue_nulldata(padapter, NULL, 1, 3, 500);
- //Set EDCA param reg
- acparm = 0x002F3217; // VO
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acparm));
- acparm = 0x005E4317; // VI
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acparm));
- //acparm = 0x00105320; // BE
- acparm = 0x005ea42b;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acparm));
- acparm = 0x0000A444; // BK
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acparm));
+#ifdef CONFIG_CONCURRENT_MODE
+ if(is_client_associated_to_ap(padapter->pbuddy_adapter) == _TRUE)
+ {
+ DBG_871X("adapter is scanning(buddy_adapter is linked), issue nulldata(pwrbit=1)\n");
+
+ issue_nulldata(padapter->pbuddy_adapter, NULL, 1, 3, 500);
+ }
+#endif
+ bdelayscan = _TRUE;
+ }
+#ifdef CONFIG_CONCURRENT_MODE
+ else if(is_client_associated_to_ap(padapter->pbuddy_adapter) == _TRUE)
+ {
+ #ifdef CONFIG_TDLS
+ if(padapter->pbuddy_adapter->wdinfo.wfd_tdls_enable == 1)
+ {
+ issue_tunneled_probe_req(padapter->pbuddy_adapter);
+ }
+ #endif //CONFIG_TDLS
- //Set Security
- val8 = (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X)? 0xcc: 0xcf;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
+ pmlmeext->sitesurvey_res.state = SCAN_TXNULL;
- //Beacon Control related register
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&bcn_interval));
+ issue_nulldata(padapter->pbuddy_adapter, NULL, 1, 3, 500);
-
- UpdateBrateTbl(padapter, pnetwork->SupportedRates);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates);
+ bdelayscan = _TRUE;
+ }
+#endif
+ if(bdelayscan)
+ {
+ //delay 50ms to protect nulldata(1).
+ set_survey_timer(pmlmeext, 50);
+ return H2C_SUCCESS;
+ }
+ }
- if(pmlmepriv->cur_network.join_res != _TRUE) //setting only at first time
+ if ((pmlmeext->sitesurvey_res.state == SCAN_START) || (pmlmeext->sitesurvey_res.state == SCAN_TXNULL))
{
- u32 initialgain;
+#ifdef CONFIG_FIND_BEST_CHANNEL
+#if 0
+ for (i=0; pmlmeext->channel_set[i].ChannelNum !=0; i++) {
+ pmlmeext->channel_set[i].rx_count = 0;
+ }
+#endif
+#endif /* CONFIG_FIND_BEST_CHANNEL */
//disable dynamic functions, such as high power, DIG
- //Save_DM_Func_Flag(padapter);
- //Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
-
- //turn on dynamic functions
- Switch_DM_Func(padapter, DYNAMIC_FUNC_DIG|DYNAMIC_FUNC_HP|DYNAMIC_FUNC_SS, _TRUE);
+ Save_DM_Func_Flag(padapter);
+ Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
- initialgain = 0x30;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
-
- }
+ //config the initial gain under scaning, need to write the BB registers
- //set channel, bwmode
- p = rtw_get_ie((pnetwork->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
- if( p && ie_len)
- {
- struct HT_info_element *pht_info = (struct HT_info_element *)(p+2);
-
- if ((pregpriv->cbw40_enable) && (pht_info->infos[0] & BIT(2)))
+#ifdef CONFIG_P2P
+#ifdef CONFIG_IOCTL_CFG80211
+ if((wdev_to_priv(padapter->rtw_wdev))->p2p_enabled == _TRUE && pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- //switch to the 40M Hz mode
- //pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
- cur_bwmode = HT_CHANNEL_WIDTH_40;
- switch (pht_info->infos[0] & 0x3)
- {
- case 1:
- //pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
- cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
- break;
-
- case 3:
- //pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
- cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
- break;
-
- default:
- //pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- break;
- }
-
+ write_initial_gain = 0;
}
-
- }
-
- //TODO: need to judge the phy parameters on concurrent mode for single phy
- //set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
- set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
-
- DBG_871X("CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
-
- //
- pmlmeext->cur_channel = cur_channel;
- pmlmeext->cur_bwmode = cur_bwmode;
- pmlmeext->cur_ch_offset = cur_ch_offset;
- pmlmeext->cur_wireless_mode = pmlmepriv->cur_network.network_type;
+ else
+#endif //CONFIG_IOCTL_CFG80211
+ if ( !rtw_p2p_chk_state( pwdinfo, P2P_STATE_NONE ) )
+ initialgain = 0x28;
+ else
+#endif //CONFIG_P2P
+ initialgain = 0x17;
- //update cur_wireless_mode
- update_wireless_mode(padapter);
-
- //let pnetwork_mlmeext == pnetwork_mlme.
- _rtw_memcpy(pnetwork_mlmeext, pnetwork, pnetwork->Length);
+ if(write_initial_gain == 1)
+ rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
-#ifdef CONFIG_P2P
- _rtw_memcpy(pwdinfo->p2p_group_ssid, pnetwork->Ssid.Ssid, pnetwork->Ssid.SsidLength);
- pwdinfo->p2p_group_ssid_len = pnetwork->Ssid.SsidLength;
-#endif //CONFIG_P2P
+ //set MSR to no link state
+ Set_MSR(padapter, _HW_STATE_NOLINK_);
-
- if(_TRUE == pmlmeext->bstart_bss)
- {
- update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
+ val8 = 1; //under site survey
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
- //issue beacon frame
- if(send_beacon(padapter)==_FAIL)
- {
- DBG_871X("issue_beacon, fail!\n");
- }
+ pmlmeext->sitesurvey_res.state = SCAN_PROCESS;
}
+ site_survey(padapter);
- //update bc/mc sta_info
- update_bmc_sta(padapter);
-
- //pmlmeext->bstart_bss = _TRUE;
+ return H2C_SUCCESS;
}
-int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
+u8 setauth_hdl(_adapter *padapter, unsigned char *pbuf)
{
- int ret=_SUCCESS;
- u8 *p;
- u8 *pHT_caps_ie=NULL;
- u8 *pHT_info_ie=NULL;
- struct sta_info *psta = NULL;
- u16 cap, ht_cap=_FALSE;
- uint ie_len = 0;
- int group_cipher, pairwise_cipher;
- u8 channel, network_type, supportRate[NDIS_802_11_LENGTH_RATES_EX];
- int supportRateNum = 0;
- u8 OUI1[] = {0x00, 0x50, 0xf2,0x01};
- u8 wps_oui[4]={0x0,0x50,0xf2,0x04};
- u8 WMM_PARA_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x01, 0x01};
- struct registry_priv *pregistrypriv = &padapter->registrypriv;
- struct security_priv *psecuritypriv = &padapter->securitypriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- WLAN_BSSID_EX *pbss_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
- struct sta_priv *pstapriv = &padapter->stapriv;
- u8 *ie = pbss_network->IEs;
+ struct setauth_parm *pparm = (struct setauth_parm *)pbuf;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ if (pparm->mode < 4)
+ {
+ pmlmeinfo->auth_algo = pparm->mode;
+ }
- /* SSID */
- /* Supported rates */
- /* DS Params */
- /* WLAN_EID_COUNTRY */
- /* ERP Information element */
- /* Extended supported rates */
- /* WPA/WPA2 */
- /* Wi-Fi Wireless Multimedia Extensions */
- /* ht_capab, ht_oper */
- /* WPS IE */
-
- DBG_8192C("%s, len=%d\n", __FUNCTION__, len);
-
- if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
- return _FAIL;
+ return H2C_SUCCESS;
+}
+u8 setkey_hdl(_adapter *padapter, u8 *pbuf)
+{
+ unsigned short ctrl;
+ struct setkey_parm *pparm = (struct setkey_parm *)pbuf;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ unsigned char null_sta[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
- if(len>MAX_IE_SZ)
- return _FAIL;
+ //main tx key for wep.
+ if(pparm->set_tx)
+ pmlmeinfo->key_index = pparm->keyid;
- pbss_network->IELength = len;
+ //write cam
+ ctrl = BIT(15) | ((pparm->algorithm) << 2) | pparm->keyid;
- _rtw_memset(ie, 0, MAX_IE_SZ);
-
- _rtw_memcpy(ie, pbuf, pbss_network->IELength);
+ write_cam(padapter, pparm->keyid, ctrl, null_sta, pparm->key);
+ //allow multicast packets to driver
+ rtw_hal_set_hwreg(padapter, HW_VAR_ON_RCR_AM, null_addr);
- if(pbss_network->InfrastructureMode!=Ndis802_11APMode)
- return _FAIL;
+ return H2C_SUCCESS;
+}
- pbss_network->Rssi = 0;
+u8 set_stakey_hdl(_adapter *padapter, u8 *pbuf)
+{
+ u16 ctrl=0;
+ u8 cam_id;//cam_entry
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct set_stakey_parm *pparm = (struct set_stakey_parm *)pbuf;
+#ifdef CONFIG_TDLS
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *psta;
+#endif //CONFIG_TDLS
- _rtw_memcpy(pbss_network->MacAddress, myid(&(padapter->eeprompriv)), ETH_ALEN);
-
- //beacon interval
- p = rtw_get_beacon_interval_from_ie(ie);//ie + 8; // 8: TimeStamp, 2: Beacon Interval 2:Capability
- //pbss_network->Configuration.BeaconPeriod = le16_to_cpu(*(unsigned short*)p);
- pbss_network->Configuration.BeaconPeriod = RTW_GET_LE16(p);
+ //cam_entry:
+ //0~3 for default key
- //capability
- //cap = *(unsigned short *)rtw_get_capability_from_ie(ie);
- //cap = le16_to_cpu(cap);
- cap = RTW_GET_LE16(ie);
+ //for concurrent mode (ap+sta):
+ //default key is disable, using sw encrypt/decrypt
+ //cam_entry = 4 //for sta mode (macid=0)
+ //cam_entry(macid+3) = 5 ~ N//for ap mode (aid=1~N, macid=2 ~N)
- //SSID
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->IELength -_BEACON_IE_OFFSET_));
- if(p && ie_len>0)
+ //for concurrent mode (sta+sta):
+ //default key is disable, using sw encrypt/decrypt
+ //cam_entry = 4 //mapping to macid=0
+ //cam_entry = 5 //mapping to macid=2
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE)
{
- _rtw_memset(&pbss_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
- _rtw_memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len);
- pbss_network->Ssid.SsidLength = ie_len;
- }
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *psta;
+
+ psta = rtw_get_stainfo(pstapriv, pmlmeinfo->network.MacAddress);
- //chnnel
- channel = 0;
- pbss_network->Configuration.Length = 0;
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _DSSET_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if(p && ie_len>0)
- channel = *(p + 2);
+ if(psta && psta->mac_id==2)
+ {
+ cam_id = 5;
+ }
+ else
+ {
+ cam_id = 4;
+ }
+/*
+ if(padapter->iface_type > PRIMARY_IFACE)
+ {
+ cam_id = 5;
+ }
+ else
+ {
+ cam_id = 4;
+ }
+*/
+ }
+#else
+ cam_id = 4;
+#endif
- pbss_network->Configuration.DSConfig = channel;
-
- _rtw_memset(supportRate, 0, NDIS_802_11_LENGTH_RATES_EX);
- // get supported rates
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if (p != NULL)
- {
- _rtw_memcpy(supportRate, p+2, ie_len);
- supportRateNum = ie_len;
- }
-
- //get ext_supported rates
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _EXT_SUPPORTEDRATES_IE_, &ie_len, pbss_network->IELength - _BEACON_IE_OFFSET_);
- if (p != NULL)
+ if((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
{
- _rtw_memcpy(supportRate+supportRateNum, p+2, ie_len);
- supportRateNum += ie_len;
- }
-
- network_type = rtw_check_network_type(supportRate, supportRateNum, channel);
+ struct sta_info *psta;
+ struct sta_priv *pstapriv = &padapter->stapriv;
- rtw_set_supported_rate(pbss_network->SupportedRates, network_type);
+ if(pparm->algorithm == _NO_PRIVACY_) // clear cam entry
+ {
+ clear_cam_entry(padapter, pparm->id);
+ return H2C_SUCCESS_RSP;
+ }
+
+ psta = rtw_get_stainfo(pstapriv, pparm->addr);
+ if(psta)
+ {
+ ctrl = (BIT(15) | ((pparm->algorithm) << 2));
+ DBG_871X("r871x_set_stakey_hdl(): enc_algorithm=%d\n", pparm->algorithm);
- //parsing ERP_IE
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _ERPINFO_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if(p && ie_len>0)
- {
- ERP_IE_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)p);
- }
-#ifdef SUPPORT_64_STA
- //capability
- p=rtw_get_capability_from_ie(ie);
- //cap = le16_to_cpu(cap);
- cap = RTW_GET_LE16(p);
- //printk("%s cap=0x%x\n",__FUNCTION__,cap);
- cap &=~BIT(4);
- //printk("%s cap=0x%x\n",__FUNCTION__,cap);
- RTW_PUT_LE16(p,cap);
- cap = RTW_GET_LE16(p);
- //printk("%s [fin] cap=0x%x\n",__FUNCTION__,cap);
- pbss_network->Privacy = 0;
- psecuritypriv->wpa_psk = 0;
-
- {
- u32 i,j;
- printk(" %s :Dump IEs\n",__FUNCTION__);
- for(i=0,j=1;i<pbss_network->IELength;i++){
- printk("0x%.2x:",ie[i]);
- if( ((j++)%16)==0 )
- printk("\n");
- }
- printk("\n");
- }
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _RSN_IE_2_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if(p && ie_len>0){
- //remove wpa2 ie
- u32 offset=0,remain=0;
- offset=p-ie;
- remain= pbss_network->IELength-offset-ie_len-2;
- DBG_8192C("%s wpa2 ie_len=%d offset=%d remain=%d IELength=%d\n",__FUNCTION__,ie_len,offset,remain,pbss_network->IELength);
- {
- u32 i,j;
- printk(" %s :Dump IEs\n",__FUNCTION__);
- for(i=0,j=1;i<pbss_network->IELength;i++){
- printk("0x%.2x:",ie[i]);
- if((((j++)%16)==0) )
- printk("\n");
- }
- DBG_8192C("\n");
- }
- _rtw_memcpy(p,p+ie_len+2,remain);
- pbss_network->IELength-=(ie_len+2);
- DBG_8192C("%s wpa2 [fin]ie_len=%d remain=%d IELength=%d\n",__FUNCTION__,ie_len,remain,pbss_network->IELength);
- {
- u32 i,j;
- printk(" %s :Dump IEs\n",__FUNCTION__);
- for(i=0,j=1;i<pbss_network->IELength;i++){
- printk("0x%.2x:",ie[i]);
- if((j++%16)==0 )
- printk("\n");
- }
- DBG_8192C("\n");
- }
- }
-
- psecuritypriv->dot8021xalg = 0;
- psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_;
- psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_;
- {
- //remove wpa ie
- u32 rem=pbss_network->IELength-_BEACON_IE_OFFSET_;
- p = ie + _BEACON_IE_OFFSET_;
-
- DBG_8192C("%s [p]%p id[0x%x] ie[%p] len[%d][_BEACON_IE_OFFSET_]%d [remain]%d \n",__FUNCTION__,p,p[0],ie,p[1],_BEACON_IE_OFFSET_,rem);
- DBG_8192C("%s id=0x%x len=%d rem=%d next p %p\n",__FUNCTION__,*p,p[1],rem,(p + (p[1]+2)));
- for (p = ie + _BEACON_IE_OFFSET_;rem>0 ;)
- {
- DBG_8192C("%s id=0x%x len=%d rem=%d next p %p\n",__FUNCTION__,*p,p[1],rem,p + (p[1]+2));
- if ((p) && (_rtw_memcmp(p+2, OUI1, 4)))
+ if((psta->mac_id<1) || (psta->mac_id>(NUM_STA-4)))
{
- //remove wpa ie
- u32 remain=0;
- u8 *ptr;
- remain= rem-p[1]-2;
- ptr=p+p[1]+2;
- DBG_8192C("%s wpa ie_len=%d remain=%d IELength=%d p %p next p %p,%p id 0x%x\n",__FUNCTION__,p[1],remain,pbss_network->IELength,p,p+p[1]+2,ptr,p[p[1]+2]);
- pbss_network->IELength-=(p[1]+2);
- _rtw_memcpy(p,ptr,remain);
- DBG_8192C("%s wpa [fin]ie_len=%d remain=%d IELength=%d\n",__FUNCTION__,p[1],remain,pbss_network->IELength);
- {
- u32 i,j;
- DBG_8192C(" %s :Dump IEs\n",__FUNCTION__);
- for(i=0,j=1;i<pbss_network->IELength;i++){
- printk("0x%.2x:",ie[i]);
- if((j++%16)==0)
- DBG_8192C("\n");
- }
- DBG_8192C("\n");
- }
- DBG_8192C("%s wpa [fin] ie_len=%d remain=%d IELength=%d\n",__FUNCTION__,ie_len,remain,pbss_network->IELength);
- rem=remain;
- }else{
- rem -= (p[1]+2);
- p+=(p[1]+2);
- }
- }
- }
-#else //SUPPORT_64_STA
-
- //update privacy/security
- if (cap & BIT(4))
- pbss_network->Privacy = 1;
- else
- pbss_network->Privacy = 0;
+ DBG_871X("r871x_set_stakey_hdl():set_stakey failed, mac_id(aid)=%d\n", psta->mac_id);
+ return H2C_REJECTED;
+ }
+
+ cam_id = (psta->mac_id + 3);//0~3 for default key, cmd_id=macid + 3, macid=aid+1;
- psecuritypriv->wpa_psk = 0;
+ DBG_871X("Write CAM, mac_addr=%x:%x:%x:%x:%x:%x, cam_entry=%d\n", pparm->addr[0],
+ pparm->addr[1], pparm->addr[2], pparm->addr[3], pparm->addr[4],
+ pparm->addr[5], cam_id);
- //wpa2
- group_cipher = 0; pairwise_cipher = 0;
- psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_;
- psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_;
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _RSN_IE_2_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if(p && ie_len>0)
- {
- if(rtw_parse_wpa2_ie(p, ie_len+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
+ write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key);
+
+ return H2C_SUCCESS_RSP;
+
+ }
+ else
{
- psecuritypriv->dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
-
- psecuritypriv->dot8021xalg = 1;//psk, todo:802.1x
- psecuritypriv->wpa_psk |= BIT(1);
-
- psecuritypriv->wpa2_group_cipher = group_cipher;
- psecuritypriv->wpa2_pairwise_cipher = pairwise_cipher;
-#if 0
- switch(group_cipher)
- {
- case WPA_CIPHER_NONE:
- psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_;
- break;
- case WPA_CIPHER_WEP40:
- psecuritypriv->wpa2_group_cipher = _WEP40_;
- break;
- case WPA_CIPHER_TKIP:
- psecuritypriv->wpa2_group_cipher = _TKIP_;
- break;
- case WPA_CIPHER_CCMP:
- psecuritypriv->wpa2_group_cipher = _AES_;
- break;
- case WPA_CIPHER_WEP104:
- psecuritypriv->wpa2_group_cipher = _WEP104_;
- break;
- }
-
- switch(pairwise_cipher)
- {
- case WPA_CIPHER_NONE:
- psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_;
- break;
- case WPA_CIPHER_WEP40:
- psecuritypriv->wpa2_pairwise_cipher = _WEP40_;
- break;
- case WPA_CIPHER_TKIP:
- psecuritypriv->wpa2_pairwise_cipher = _TKIP_;
- break;
- case WPA_CIPHER_CCMP:
- psecuritypriv->wpa2_pairwise_cipher = _AES_;
- break;
- case WPA_CIPHER_WEP104:
- psecuritypriv->wpa2_pairwise_cipher = _WEP104_;
- break;
- }
-#endif
+ DBG_871X("r871x_set_stakey_hdl(): sta has been free\n");
+ return H2C_REJECTED;
}
}
- //wpa
- ie_len = 0;
- group_cipher = 0; pairwise_cipher = 0;
- psecuritypriv->wpa_group_cipher = _NO_PRIVACY_;
- psecuritypriv->wpa_pairwise_cipher = _NO_PRIVACY_;
- for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2))
+ //below for sta mode
+
+ if(pparm->algorithm == _NO_PRIVACY_) // clear cam entry
{
- p = rtw_get_ie(p, _SSN_IE_1_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_ - (ie_len + 2)));
- if ((p) && (_rtw_memcmp(p+2, OUI1, 4)))
- {
- if(rtw_parse_wpa_ie(p, ie_len+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
- {
- psecuritypriv->dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
-
- psecuritypriv->dot8021xalg = 1;//psk, todo:802.1x
+ clear_cam_entry(padapter, pparm->id);
+ return H2C_SUCCESS;
+ }
+
+ ctrl = BIT(15) | ((pparm->algorithm) << 2);
+
+#ifdef CONFIG_TDLS
+ if(ptdlsinfo->clear_cam!=0){
+ clear_cam_entry(padapter, ptdlsinfo->clear_cam);
+ ptdlsinfo->clear_cam=0;
- psecuritypriv->wpa_psk |= BIT(0);
+ return H2C_SUCCESS;
+ }
- psecuritypriv->wpa_group_cipher = group_cipher;
- psecuritypriv->wpa_pairwise_cipher = pairwise_cipher;
+ psta = rtw_get_stainfo(pstapriv, pparm->addr);//Get TDLS Peer STA
+ if( psta->tdls_sta_state&TDLS_LINKED_STATE ){
+ write_cam(padapter, psta->mac_id, ctrl, pparm->addr, pparm->key);
+ }
+ else
+#endif //CONFIG_TDLS
+ write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key);
-#if 0
- switch(group_cipher)
- {
- case WPA_CIPHER_NONE:
- psecuritypriv->wpa_group_cipher = _NO_PRIVACY_;
- break;
- case WPA_CIPHER_WEP40:
- psecuritypriv->wpa_group_cipher = _WEP40_;
- break;
- case WPA_CIPHER_TKIP:
- psecuritypriv->wpa_group_cipher = _TKIP_;
- break;
- case WPA_CIPHER_CCMP:
- psecuritypriv->wpa_group_cipher = _AES_;
- break;
- case WPA_CIPHER_WEP104:
- psecuritypriv->wpa_group_cipher = _WEP104_;
- break;
- }
+ pmlmeinfo->enc_algo = pparm->algorithm;
+
+ return H2C_SUCCESS;
+}
- switch(pairwise_cipher)
- {
- case WPA_CIPHER_NONE:
- psecuritypriv->wpa_pairwise_cipher = _NO_PRIVACY_;
- break;
- case WPA_CIPHER_WEP40:
- psecuritypriv->wpa_pairwise_cipher = _WEP40_;
- break;
- case WPA_CIPHER_TKIP:
- psecuritypriv->wpa_pairwise_cipher = _TKIP_;
- break;
- case WPA_CIPHER_CCMP:
- psecuritypriv->wpa_pairwise_cipher = _AES_;
- break;
- case WPA_CIPHER_WEP104:
- psecuritypriv->wpa_pairwise_cipher = _WEP104_;
- break;
- }
-#endif
- }
+u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf)
+{
+ struct addBaReq_parm *pparm = (struct addBaReq_parm *)pbuf;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- break;
-
- }
-
- if ((p == NULL) || (ie_len == 0))
- {
- break;
- }
+ struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, pparm->addr);
+
+ if(!psta)
+ return H2C_SUCCESS;
+
+ if (((pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS) && (pmlmeinfo->HT_enable)) ||
+ ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
+ {
+ //pmlmeinfo->ADDBA_retry_count = 0;
+ //pmlmeinfo->candidate_tid_bitmap |= (0x1 << pparm->tid);
+ //psta->htpriv.candidate_tid_bitmap |= BIT(pparm->tid);
+ issue_action_BA(padapter, pparm->addr, RTW_WLAN_ACTION_ADDBA_REQ, (u16)pparm->tid);
+ //_set_timer(&pmlmeext->ADDBA_timer, ADDBA_TO);
+ _set_timer(&psta->addba_retry_timer, ADDBA_TO);
+ }
+#ifdef CONFIG_TDLS
+ else if((psta->tdls_sta_state & TDLS_LINKED_STATE)&&
+ (psta->htpriv.ht_option==_TRUE) &&
+ (psta->htpriv.ampdu_enable==_TRUE) )
+ {
+ issue_action_BA(padapter, pparm->addr, RTW_WLAN_ACTION_ADDBA_REQ, (u16)pparm->tid);
+ //_set_timer(&pmlmeext->ADDBA_timer, ADDBA_TO);
+ _set_timer(&psta->addba_retry_timer, ADDBA_TO);
+ }
+#endif //CONFIG
+ else
+ {
+ psta->htpriv.candidate_tid_bitmap &= ~BIT(pparm->tid);
}
-#endif //SUPPORT_64_STA
+ return H2C_SUCCESS;
+}
- //wmm
- ie_len = 0;
- pmlmepriv->qospriv.qos_option = 0;
- if(pregistrypriv->wmm_enable)
+u8 set_tx_beacon_cmd(_adapter* padapter)
+{
+ struct cmd_obj *ph2c;
+ struct Tx_Beacon_param *ptxBeacon_parm;
+ struct cmd_priv *pcmdpriv = &(padapter->cmdpriv);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ u8 res = _SUCCESS;
+ int len_diff = 0;
+
+_func_enter_;
+
+ if ((ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj))) == NULL)
{
- for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2))
- {
- p = rtw_get_ie(p, _VENDOR_SPECIFIC_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_ - (ie_len + 2)));
- if((p) && _rtw_memcmp(p+2, WMM_PARA_IE, 6))
- {
- pmlmepriv->qospriv.qos_option = 1;
-
- *(p+8) |= BIT(7);//QoS Info, support U-APSD
-
- break;
- }
-
- if ((p == NULL) || (ie_len == 0))
- {
- break;
- }
- }
+ res= _FAIL;
+ goto exit;
}
-
- //parsing HT_CAP_IE
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if(p && ie_len>0)
+
+ if ((ptxBeacon_parm = (struct Tx_Beacon_param *)rtw_zmalloc(sizeof(struct Tx_Beacon_param))) == NULL)
{
- u8 rf_type;
-
- struct rtw_ieee80211_ht_cap *pht_cap = (struct rtw_ieee80211_ht_cap *)(p+2);
+ rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
+ res= _FAIL;
+ goto exit;
+ }
- pHT_caps_ie=p;
-
+ _rtw_memcpy(&(ptxBeacon_parm->network), &(pmlmeinfo->network), sizeof(WLAN_BSSID_EX));
+
+ len_diff = update_hidden_ssid(
+ ptxBeacon_parm->network.IEs+_BEACON_IE_OFFSET_
+ , ptxBeacon_parm->network.IELength-_BEACON_IE_OFFSET_
+ , pmlmeinfo->hidden_ssid_mode
+ );
+ ptxBeacon_parm->network.IELength += len_diff;
- ht_cap = _TRUE;
- network_type |= WIRELESS_11_24N;
+ init_h2fwcmd_w_parm_no_rsp(ph2c, ptxBeacon_parm, GEN_CMD_CODE(_TX_Beacon));
+
+ res = rtw_enqueue_cmd(pcmdpriv, ph2c);
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+exit:
+
+_func_exit_;
- if((psecuritypriv->wpa_pairwise_cipher & WPA_CIPHER_CCMP) ||
- (psecuritypriv->wpa2_pairwise_cipher & WPA_CIPHER_CCMP))
- {
- pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY&(0x07<<2));
- }
- else
- {
- pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY&0x00);
- }
-
+ return res;
+}
- if(rf_type == RF_1T1R)
- {
- pht_cap->supp_mcs_set[0] = 0xff;
- pht_cap->supp_mcs_set[1] = 0x0;
- }
- _rtw_memcpy(&pmlmepriv->htpriv.ht_cap, p+2, ie_len);
+u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf)
+{
+ u8 evt_code, evt_seq;
+ u16 evt_sz;
+ uint *peventbuf;
+ void (*event_callback)(_adapter *dev, u8 *pbuf);
+ struct evt_priv *pevt_priv = &(padapter->evtpriv);
+
+ peventbuf = (uint*)pbuf;
+ evt_sz = (u16)(*peventbuf&0xffff);
+ evt_seq = (u8)((*peventbuf>>24)&0x7f);
+ evt_code = (u8)((*peventbuf>>16)&0xff);
+
+ #ifdef CHECK_EVENT_SEQ
+ // checking event sequence...
+ if (evt_seq != (ATOMIC_READ(&pevt_priv->event_seq) & 0x7f) )
+ {
+ RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("Evetn Seq Error! %d vs %d\n", (evt_seq & 0x7f), (ATOMIC_READ(&pevt_priv->event_seq) & 0x7f)));
+
+ pevt_priv->event_seq = (evt_seq+1)&0x7f;
+
+ goto _abort_event_;
}
+ #endif
- //parsing HT_INFO_IE
- p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
- if(p && ie_len>0)
+ // checking if event code is valid
+ if (evt_code >= MAX_C2HEVT)
{
- pHT_info_ie=p;
+ RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nEvent Code(%d) mismatch!\n", evt_code));
+ goto _abort_event_;
}
- switch(network_type)
+ // checking if event size match the event parm size
+ if ((wlanevents[evt_code].parmsize != 0) &&
+ (wlanevents[evt_code].parmsize != evt_sz))
{
- case WIRELESS_11B:
- pbss_network->NetworkTypeInUse = Ndis802_11DS;
- break;
- case WIRELESS_11G:
- case WIRELESS_11BG:
- case WIRELESS_11G_24N:
- case WIRELESS_11BG_24N:
- pbss_network->NetworkTypeInUse = Ndis802_11OFDM24;
- break;
- case WIRELESS_11A:
- pbss_network->NetworkTypeInUse = Ndis802_11OFDM5;
- break;
- default :
- pbss_network->NetworkTypeInUse = Ndis802_11OFDM24;
- break;
+
+ RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nEvent(%d) Parm Size mismatch (%d vs %d)!\n",
+ evt_code, wlanevents[evt_code].parmsize, evt_sz));
+ goto _abort_event_;
+
}
-
- pmlmepriv->cur_network.network_type = network_type;
-
- pmlmepriv->htpriv.ht_option = _FALSE;
-#ifdef CONFIG_80211N_HT
- if( (psecuritypriv->wpa2_pairwise_cipher&WPA_CIPHER_TKIP) ||
- (psecuritypriv->wpa_pairwise_cipher&WPA_CIPHER_TKIP))
- {
- //todo:
- //ht_cap = _FALSE;
- }
-
- //ht_cap
- if(pregistrypriv->ht_enable && ht_cap==_TRUE)
- {
- pmlmepriv->htpriv.ht_option = _TRUE;
- pmlmepriv->qospriv.qos_option = 1;
+ ATOMIC_INC(&pevt_priv->event_seq);
- if(pregistrypriv->ampdu_enable==1)
- {
- pmlmepriv->htpriv.ampdu_enable = _TRUE;
- }
+ peventbuf += 2;
+
+ if(peventbuf)
+ {
+ event_callback = wlanevents[evt_code].event_callback;
+ event_callback(padapter, (u8*)peventbuf);
- HT_caps_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)pHT_caps_ie);
-
- HT_info_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)pHT_info_ie);
+ pevt_priv->evt_done_cnt++;
}
-#endif
- pbss_network->Length = get_WLAN_BSSID_EX_sz((WLAN_BSSID_EX *)pbss_network);
-
- //issue beacon to start bss network
- start_bss_network(padapter, (u8*)pbss_network);
-
+_abort_event_:
- //alloc sta_info for ap itself
- psta = rtw_get_stainfo(&padapter->stapriv, pbss_network->MacAddress);
- if(!psta)
- {
- psta = rtw_alloc_stainfo(&padapter->stapriv, pbss_network->MacAddress);
- if (psta == NULL)
- {
- return _FAIL;
- }
- }
-
- rtw_indicate_connect( padapter);
- pmlmepriv->cur_network.join_res = _TRUE;//for check if already set beacon
+ return H2C_SUCCESS;
- //update bc/mc sta_info
- //update_bmc_sta(padapter);
-
- return ret;
-
}
-#ifdef CONFIG_NATIVEAP_MLME
-
-static void update_bcn_fixed_ie(_adapter *padapter)
+u8 h2c_msg_hdl(_adapter *padapter, unsigned char *pbuf)
{
- DBG_871X("%s\n", __FUNCTION__);
+ if(!pbuf)
+ return H2C_PARAMETERS_ERROR;
+ return H2C_SUCCESS;
}
-static void update_bcn_erpinfo_ie(_adapter *padapter)
+u8 tx_beacon_hdl(_adapter *padapter, unsigned char *pbuf)
{
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ if(send_beacon(padapter)==_FAIL)
+ {
+ DBG_871X("issue_beacon, fail!\n");
+ return H2C_PARAMETERS_ERROR;
+ }
+#ifdef CONFIG_AP_MODE
+ else //tx bc/mc frames after update TIM
+ {
+ _irqL irqL;
+ struct sta_info *psta_bmc;
+ _list *xmitframe_plist, *xmitframe_phead;
+ struct xmit_frame *pxmitframe=NULL;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ //for BC/MC Frames
+ psta_bmc = rtw_get_bcmc_stainfo(padapter);
+ if(!psta_bmc)
+ return H2C_SUCCESS;
+
+ if((pstapriv->tim_bitmap&BIT(0)) && (psta_bmc->sleepq_len>0))
+ {
+#ifndef CONFIG_PCI_HCI
+ rtw_msleep_os(10);// 10ms, ATIM(HIQ) Windows
+#endif
+ //_enter_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+ _enter_critical_bh(&pxmitpriv->lock, &irqL);
- DBG_871X("%s\n", __FUNCTION__);
+ xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
+ xmitframe_plist = get_next(xmitframe_phead);
- if(!pmlmeinfo->ERP_enable)
- return;
-
+ while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
+ {
+ pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
-}
+ xmitframe_plist = get_next(xmitframe_plist);
-static void update_bcn_htcap_ie(_adapter *padapter)
-{
- DBG_871X("%s\n", __FUNCTION__);
+ rtw_list_delete(&pxmitframe->list);
-}
+ psta_bmc->sleepq_len--;
+ if(psta_bmc->sleepq_len>0)
+ pxmitframe->attrib.mdata = 1;
+ else
+ pxmitframe->attrib.mdata = 0;
-static void update_bcn_htinfo_ie(_adapter *padapter)
-{
- DBG_871X("%s\n", __FUNCTION__);
+ pxmitframe->attrib.triggered=1;
-}
+ pxmitframe->attrib.qsel = 0x11;//HIQ
-static void update_bcn_rsn_ie(_adapter *padapter)
-{
- DBG_871X("%s\n", __FUNCTION__);
+#if 0
+ _exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+ if(rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
+ {
+ rtw_os_xmit_complete(padapter, pxmitframe);
+ }
+ _enter_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
-}
+#endif
+ rtw_hal_xmitframe_enqueue(padapter, pxmitframe);
-static void update_bcn_wpa_ie(_adapter *padapter)
-{
- DBG_871X("%s\n", __FUNCTION__);
+ //pstapriv->tim_bitmap &= ~BIT(0);
+
+ }
+
+ //_exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
-}
+ }
-static void update_bcn_wmm_ie(_adapter *padapter)
-{
- DBG_871X("%s\n", __FUNCTION__);
+ }
+#endif
+
+ return H2C_SUCCESS;
}
-static void update_bcn_wps_ie(_adapter *padapter)
+void change_band_update_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork)
{
- int match;
- u8 *pwps_ie=NULL, *pwps_ie_src, *premainder_ie, *pbackup_remainder_ie=NULL;
- uint wps_ielen=0, wps_offset, remainder_ielen;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork = &(pmlmeinfo->network);
- unsigned char *ie = pnetwork->IEs;
- u32 ielen = pnetwork->IELength;
+ u8 network_type,rate_len, total_rate_len,remainder_rate_len;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ u8 erpinfo=0x4;
+ //DBG_871X("%s\n", __FUNCTION__);
- DBG_871X("%s\n", __FUNCTION__);
+ if(pmlmeext->cur_channel >= 36)
+ {
+ network_type = WIRELESS_11A;
+ total_rate_len = IEEE80211_NUM_OFDM_RATESLEN;
+ DBG_871X("%s(): change to 5G Band\n",__FUNCTION__);
+ rtw_remove_bcn_ie(padapter, pnetwork, _ERPINFO_IE_);
+ }
+ else
+ {
+ network_type = WIRELESS_11BG;
+ total_rate_len = IEEE80211_CCK_RATE_LEN+IEEE80211_NUM_OFDM_RATESLEN;
+ DBG_871X("%s(): change to 2.4G Band\n",__FUNCTION__);
+ rtw_add_bcn_ie(padapter, pnetwork, _ERPINFO_IE_, &erpinfo, 1);
+ }
- pwps_ie = rtw_get_wps_ie(ie+_FIXED_IE_LENGTH_, ielen-_FIXED_IE_LENGTH_, NULL, &wps_ielen);
-
- if(pwps_ie==NULL || wps_ielen==0)
- return;
+ rtw_set_supported_rate(pnetwork->SupportedRates, network_type);
+
+ UpdateBrateTbl(padapter, pnetwork->SupportedRates);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates);
+
+ if(total_rate_len > 8)
+ {
+ rate_len = 8;
+ remainder_rate_len = total_rate_len - 8;
+ }
+ else
+ {
+ rate_len = total_rate_len;
+ remainder_rate_len = 0;
+ }
+
+ rtw_add_bcn_ie(padapter, pnetwork, _SUPPORTEDRATES_IE_, pnetwork->SupportedRates, rate_len);
- wps_offset = (uint)(pwps_ie-ie);
+ if(remainder_rate_len)
+ {
+ rtw_add_bcn_ie(padapter, pnetwork, _EXT_SUPPORTEDRATES_IE_, (pnetwork->SupportedRates+8), remainder_rate_len);
+ }
+ else
+ {
+ rtw_remove_bcn_ie(padapter, pnetwork, _EXT_SUPPORTEDRATES_IE_);
+ }
+}
- premainder_ie = pwps_ie + wps_ielen;
- remainder_ielen = ielen - wps_offset - wps_ielen;
+#ifdef CONFIG_DUALMAC_CONCURRENT
+void dc_SelectChannel(_adapter *padapter, unsigned char channel)
+{
+ PADAPTER ptarget_adapter;
- if(remainder_ielen>0)
+ if( (padapter->pbuddy_adapter != NULL) &&
+ (padapter->DualMacConcurrent == _TRUE) &&
+ (padapter->adapter_type == SECONDARY_ADAPTER))
+ {
+ // only mac0 could control BB&RF
+ ptarget_adapter = padapter->pbuddy_adapter;
+ }
+ else
{
- pbackup_remainder_ie = rtw_malloc(remainder_ielen);
- if(pbackup_remainder_ie)
- _rtw_memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen);
+ ptarget_adapter = padapter;
}
-
- pwps_ie_src = pmlmepriv->wps_beacon_ie;
- if(pwps_ie_src == NULL)
- return;
+ _enter_critical_mutex(&(adapter_to_dvobj(ptarget_adapter)->setch_mutex), NULL);
+ rtw_hal_set_chan(ptarget_adapter, channel);
- wps_ielen = (uint)pwps_ie_src[1];//to get ie data len
- if((wps_offset+wps_ielen+2+remainder_ielen)<=MAX_IE_SZ)
- {
- _rtw_memcpy(pwps_ie, pwps_ie_src, wps_ielen+2);
- pwps_ie += (wps_ielen+2);
+ _exit_critical_mutex(&(adapter_to_dvobj(ptarget_adapter)->setch_mutex), NULL);
+}
- if(pbackup_remainder_ie)
- _rtw_memcpy(pwps_ie, pbackup_remainder_ie, remainder_ielen);
+void dc_SetBWMode(_adapter *padapter, unsigned short bwmode, unsigned char channel_offset)
+{
+ PADAPTER ptarget_adapter;
- //update IELength
- pnetwork->IELength = wps_offset + (wps_ielen+2) + remainder_ielen;
+ if( (padapter->pbuddy_adapter != NULL) &&
+ (padapter->DualMacConcurrent == _TRUE) &&
+ (padapter->adapter_type == SECONDARY_ADAPTER))
+ {
+ // only mac0 could control BB&RF
+ ptarget_adapter = padapter->pbuddy_adapter;
+ }
+ else
+ {
+ ptarget_adapter = padapter;
}
- if(pbackup_remainder_ie)
- rtw_mfree(pbackup_remainder_ie, remainder_ielen);
-
-}
+ _enter_critical_mutex(&(adapter_to_dvobj(ptarget_adapter)->setbw_mutex), NULL);
-static void update_bcn_p2p_ie(_adapter *padapter)
-{
+ rtw_hal_set_bwmode(ptarget_adapter, (HT_CHANNEL_WIDTH)bwmode, channel_offset);
+ _exit_critical_mutex(&(adapter_to_dvobj(ptarget_adapter)->setbw_mutex), NULL);
}
-static void update_bcn_vendor_spec_ie(_adapter *padapter, u8*oui)
+void dc_set_channel_bwmode_disconnect(_adapter *padapter)
{
- DBG_871X("%s\n", __FUNCTION__);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
- if(_rtw_memcmp(WPA_OUI, oui, 4))
- {
- update_bcn_wpa_ie(padapter);
- }
- else if(_rtw_memcmp(WMM_OUI, oui, 4))
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
{
- update_bcn_wmm_ie(padapter);
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ if((check_fwstate(pbuddy_mlmepriv, _FW_LINKED)) != _TRUE)
+ {
+ //switch to the 20M Hz mode after disconnect
+ pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ }
}
- else if(_rtw_memcmp(WPS_OUI, oui, 4))
+ else
{
- update_bcn_wps_ie(padapter);
+ //switch to the 20M Hz mode after disconnect
+ pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
}
- else if(_rtw_memcmp(P2P_OUI, oui, 4))
+}
+
+u8 dc_handle_join_request(_adapter *padapter)
+{
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = NULL;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
+ u8 ret = _SUCCESS;
+
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
{
- update_bcn_p2p_ie(padapter);
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+
+ if(pmlmeext->cur_channel != pbuddy_mlmeext->cur_channel ||
+ pmlmeext->cur_bwmode != pbuddy_mlmeext->cur_bwmode ||
+ pmlmeext->cur_ch_offset != pbuddy_mlmeext->cur_ch_offset)
+ {
+ if((check_fwstate(pbuddy_mlmepriv, WIFI_AP_STATE)) == _TRUE)
+ {
+ //issue deauth to all stas if if2 is at ap mode
+ rtw_sta_flush(pbuddy_adapter);
+
+ //rtw_hal_set_hwreg(padapter, HW_VAR_CHECK_TXBUF, 0);
+ rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_CHECK_TXBUF, 0);
+ }
+ else if(check_fwstate(pbuddy_mlmepriv, _FW_LINKED) == _TRUE)
+ {
+ if(pmlmeext->cur_channel == pbuddy_mlmeext->cur_channel)
+ {
+ // HT_CHANNEL_WIDTH_40 or HT_CHANNEL_WIDTH_20 but channel offset is different
+ if((pmlmeext->cur_bwmode == pbuddy_mlmeext->cur_bwmode) &&
+ (pmlmeext->cur_ch_offset != pbuddy_mlmeext->cur_ch_offset) )
+ {
+ report_join_res(padapter, -4);
+ ret = _FAIL;
+ }
+ }
+ else
+ {
+ report_join_res(padapter, -4);
+ ret = _FAIL;
+ }
+ }
+ }
+ else if (is_client_associated_to_ap(pbuddy_adapter) == _TRUE)
+ {
+ issue_nulldata(pbuddy_adapter, NULL, 1, 0, 0);
+ }
}
- else
- {
- DBG_871X("unknown OUI type!\n");
- }
-
-
+
+ return ret;
}
-void update_beacon(_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
+void dc_handle_join_done(_adapter *padapter, u8 join_res)
{
- _irqL irqL;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
+ struct mlme_ext_priv *pbuddy_mlmeext = NULL;
+ struct mlme_ext_info *pbuddy_mlmeinfo = NULL;
+ WLAN_BSSID_EX *pbuddy_network_mlmeext = NULL;
+ u8 change_band = _FALSE;
+
+
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
+ {
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ pbuddy_mlmeinfo = &(pbuddy_mlmeext->mlmext_info);
+ pbuddy_network_mlmeext = &(pbuddy_mlmeinfo->network);
- //DBG_871X("%s\n", __FUNCTION__);
+ if(((pbuddy_mlmeinfo->state&0x03) == WIFI_FW_AP_STATE) &&
+ check_fwstate(pbuddy_mlmepriv, _FW_LINKED))
+ {
+ //restart and update beacon
+ DBG_871X("after join, current adapter, CH=%d, BW=%d, offset=%d\n", pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset);
- if(_FALSE == pmlmeext->bstart_bss)
- return;
+ if(join_res >= 0)
+ {
+ u8 *p;
+ int ie_len;
+ struct HT_info_element *pht_info=NULL;
- _enter_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+ if((pbuddy_mlmeext->cur_channel <= 14 && pmlmeext->cur_channel >= 36) ||
+ (pbuddy_mlmeext->cur_channel >= 36 && pmlmeext->cur_channel <= 14))
+ {
+ change_band = _TRUE;
+ }
- switch(ie_id)
- {
- case 0xFF:
+ //sync channel/bwmode/ch_offset with another adapter
+ pbuddy_mlmeext->cur_channel = pmlmeext->cur_channel;
+
+ if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ p = rtw_get_ie((pbuddy_network_mlmeext->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pbuddy_network_mlmeext->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if( p && ie_len)
+ {
+ pht_info = (struct HT_info_element *)(p+2);
+ pht_info->infos[0] &= ~(BIT(0)|BIT(1)); //no secondary channel is present
+ }
+
+ if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ pbuddy_mlmeext->cur_ch_offset = pmlmeext->cur_ch_offset;
- update_bcn_fixed_ie(padapter);//8: TimeStamp, 2: Beacon Interval 2:Capability
-
- break;
-
- case _TIM_IE_:
-
- update_BCNTIM(padapter);
-
- break;
+ //to update cur_ch_offset value in beacon
+ if( pht_info )
+ {
+ switch(pmlmeext->cur_ch_offset)
+ {
+ case HAL_PRIME_CHNL_OFFSET_LOWER:
+ pht_info->infos[0] |= 0x1;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_UPPER:
+ pht_info->infos[0] |= 0x3;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_DONT_CARE:
+ default:
+ break;
+ }
+ }
+ }
+ else if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20)
+ {
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- case _ERPINFO_IE_:
+ if(pmlmeext->cur_channel>0 && pmlmeext->cur_channel<5)
+ {
+ if(pht_info)
+ pht_info->infos[0] |= 0x1;
- update_bcn_erpinfo_ie(padapter);
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ }
- break;
+ if(pmlmeext->cur_channel>7 && pmlmeext->cur_channel<(14+1))
+ {
+ if(pht_info)
+ pht_info->infos[0] |= 0x3;
- case _HT_CAPABILITY_IE_:
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ }
- update_bcn_htcap_ie(padapter);
-
- break;
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ }
+ }
- case _RSN_IE_2_:
+ // to update channel value in beacon
+ pbuddy_network_mlmeext->Configuration.DSConfig = pmlmeext->cur_channel;
+ p = rtw_get_ie((pbuddy_network_mlmeext->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _DSSET_IE_, &ie_len, (pbuddy_network_mlmeext->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if(p && ie_len>0)
+ *(p + 2) = pmlmeext->cur_channel;
- update_bcn_rsn_ie(padapter);
+ p = rtw_get_ie((pbuddy_network_mlmeext->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pbuddy_network_mlmeext->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if( p && ie_len)
+ {
+ pht_info = (struct HT_info_element *)(p+2);
+ pht_info->primary_channel = pmlmeext->cur_channel;
+ }
- break;
-
- case _HT_ADD_INFO_IE_:
+ // update mlmepriv's cur_network
+ _rtw_memcpy(&pbuddy_mlmepriv->cur_network.network, pbuddy_network_mlmeext, pbuddy_network_mlmeext->Length);
+ }
+ else
+ {
+ // switch back to original channel/bwmode/ch_offset;
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ }
- update_bcn_htinfo_ie(padapter);
-
- break;
-
- case _VENDOR_SPECIFIC_IE_:
+ DBG_871X("after join, another adapter, CH=%d, BW=%d, offset=%d\n", pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_bwmode, pbuddy_mlmeext->cur_ch_offset);
- update_bcn_vendor_spec_ie(padapter, oui);
-
- break;
-
- default:
- break;
- }
+ if(change_band == _TRUE)
+ change_band_update_ie(pbuddy_adapter, pbuddy_network_mlmeext);
- pmlmepriv->update_bcn = _TRUE;
-
- _exit_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
+ DBG_871X("update pbuddy_adapter's beacon\n");
-#ifdef CONFIG_USB_HCI
- if(tx)
- {
- //send_beacon(padapter);//send_beacon must execute on TSR level
- set_tx_beacon_cmd(padapter);
- }
-#else
- {
- //PCI will issue beacon when BCN interrupt occurs.
+ update_beacon(pbuddy_adapter, 0, NULL, _TRUE);
+ }
+ else if (is_client_associated_to_ap(pbuddy_adapter) == _TRUE)
+ {
+ if((pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40) &&
+ (pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20))
+ {
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ }
+
+ issue_nulldata(pbuddy_adapter, NULL, 0, 0, 0);
+ }
}
-#endif
-
}
-#ifdef CONFIG_80211N_HT
-
-/*
-op_mode
-Set to 0 (HT pure) under the followign conditions
- - all STAs in the BSS are 20/40 MHz HT in 20/40 MHz BSS or
- - all STAs in the BSS are 20 MHz HT in 20 MHz BSS
-Set to 1 (HT non-member protection) if there may be non-HT STAs
- in both the primary and the secondary channel
-Set to 2 if only HT STAs are associated in BSS,
- however and at least one 20 MHz HT STA is associated
-Set to 3 (HT mixed mode) when one or more non-HT STAs are associated
- (currently non-GF HT station is considered as non-HT STA also)
-*/
-static int rtw_ht_operation_update(_adapter *padapter)
+sint dc_check_fwstate(_adapter *padapter, sint fw_state)
{
- u16 cur_op_mode, new_op_mode;
- int op_mode_changes = 0;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
-
- if(pmlmepriv->htpriv.ht_option == _TRUE)
- return 0;
-
- //if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed)
- // return 0;
-
- DBG_871X("%s current operation mode=0x%X\n",
- __FUNCTION__, pmlmepriv->ht_op_mode);
-
- if (!(pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT)
- && pmlmepriv->num_sta_ht_no_gf) {
- pmlmepriv->ht_op_mode |=
- HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT;
- op_mode_changes++;
- } else if ((pmlmepriv->ht_op_mode &
- HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT) &&
- pmlmepriv->num_sta_ht_no_gf == 0) {
- pmlmepriv->ht_op_mode &=
- ~HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT;
- op_mode_changes++;
- }
-
- if (!(pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT) &&
- (pmlmepriv->num_sta_no_ht || pmlmepriv->olbc_ht)) {
- pmlmepriv->ht_op_mode |= HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT;
- op_mode_changes++;
- } else if ((pmlmepriv->ht_op_mode &
- HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT) &&
- (pmlmepriv->num_sta_no_ht == 0 && !pmlmepriv->olbc_ht)) {
- pmlmepriv->ht_op_mode &=
- ~HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT;
- op_mode_changes++;
- }
-
- /* Note: currently we switch to the MIXED op mode if HT non-greenfield
- * station is associated. Probably it's a theoretical case, since
- * it looks like all known HT STAs support greenfield.
- */
- new_op_mode = 0;
- if (pmlmepriv->num_sta_no_ht ||
- (pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT))
- new_op_mode = OP_MODE_MIXED;
- else if ((phtpriv_ap->ht_cap.cap_info & IEEE80211_HT_CAP_SUP_WIDTH)
- && pmlmepriv->num_sta_ht_20mhz)
- new_op_mode = OP_MODE_20MHZ_HT_STA_ASSOCED;
- else if (pmlmepriv->olbc_ht)
- new_op_mode = OP_MODE_MAY_BE_LEGACY_STAS;
- else
- new_op_mode = OP_MODE_PURE;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
- cur_op_mode = pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_OP_MODE_MASK;
- if (cur_op_mode != new_op_mode) {
- pmlmepriv->ht_op_mode &= ~HT_INFO_OPERATION_MODE_OP_MODE_MASK;
- pmlmepriv->ht_op_mode |= new_op_mode;
- op_mode_changes++;
- }
+ if(padapter->pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
+
+ {
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
- DBG_871X("%s new operation mode=0x%X changes=%d\n",
- __FUNCTION__, pmlmepriv->ht_op_mode, op_mode_changes);
+ return check_fwstate(pbuddy_mlmepriv, fw_state);
+ }
- return op_mode_changes;
-
+ return _FALSE;
}
-#endif /* CONFIG_80211N_HT */
-
-/* called > TSR LEVEL for USB or SDIO Interface*/
-void bss_cap_update(_adapter *padapter, struct sta_info *psta)
+u8 dc_handle_site_survey(_adapter *padapter)
{
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
-
-#if 0
- if (psta->flags & WLAN_STA_NONERP && !psta->nonerp_set) {
- psta->nonerp_set = 1;
- pmlmepriv->num_sta_non_erp++;
- if (pmlmepriv->num_sta_non_erp == 1)
- ieee802_11_set_beacons(hapd->iface);
- }
-#endif
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
- if(psta->flags & WLAN_STA_NONERP)
+ // only mac0 can do scan request, help issue nulldata(1) for mac1
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
{
- if(!psta->nonerp_set)
+ if (is_client_associated_to_ap(pbuddy_adapter) == _TRUE)
{
- psta->nonerp_set = 1;
-
- pmlmepriv->num_sta_non_erp++;
-
- if (pmlmepriv->num_sta_non_erp == 1)
- update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
- }
+ pmlmeext->sitesurvey_res.state = SCAN_TXNULL;
- }
- else
- {
- if(psta->nonerp_set)
- {
- psta->nonerp_set = 0;
-
- pmlmepriv->num_sta_non_erp--;
-
- if (pmlmepriv->num_sta_non_erp == 0)
- update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
+ issue_nulldata(pbuddy_adapter, NULL, 1, 2, 0);
+
+ return _TRUE;
}
-
}
+ return _FALSE;
+}
-#if 0
- if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT) &&
- !psta->no_short_slot_time_set) {
- psta->no_short_slot_time_set = 1;
- pmlmepriv->num_sta_no_short_slot_time++;
- if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 1))
- ieee802_11_set_beacons(hapd->iface);
+void dc_report_survey_event(_adapter *padapter, union recv_frame *precv_frame)
+{
+ if(padapter->pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
+ {
+ report_survey_event(padapter->pbuddy_adapter, precv_frame);
}
-#endif
+}
+
+void dc_set_channel_bwmode_survey_done(_adapter *padapter)
+{
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
+ struct mlme_ext_priv *pbuddy_mlmeext = NULL;
+ struct mlme_ext_info *pbuddy_mlmeinfo = NULL;
+ u8 cur_channel;
+ u8 cur_bwmode;
+ u8 cur_ch_offset;
- if(!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT))
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
{
- if(!psta->no_short_slot_time_set)
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ pbuddy_mlmeinfo = &(pbuddy_mlmeext->mlmext_info);
+
+ if(check_fwstate(pbuddy_mlmepriv, _FW_LINKED))
{
- psta->no_short_slot_time_set = 1;
-
- pmlmepriv->num_sta_no_short_slot_time++;
-
- if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 1))
- update_beacon(padapter, 0xFF, NULL, _TRUE);
-
+ if(check_fwstate(pmlmepriv, _FW_LINKED) &&
+ (pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40))
+ {
+ cur_channel = pmlmeext->cur_channel;
+ cur_bwmode = pmlmeext->cur_bwmode;
+ cur_ch_offset = pmlmeext->cur_ch_offset;
+ }
+ else
+ {
+ cur_channel = pbuddy_mlmeext->cur_channel;
+ cur_bwmode = pbuddy_mlmeext->cur_bwmode;
+ cur_ch_offset = pbuddy_mlmeext->cur_ch_offset;
+ }
}
- }
- else
- {
- if(psta->no_short_slot_time_set)
+ else
{
- psta->no_short_slot_time_set = 0;
-
- pmlmepriv->num_sta_no_short_slot_time--;
-
- if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 0))
- update_beacon(padapter, 0xFF, NULL, _TRUE);
+ cur_channel = pmlmeext->cur_channel;
+ cur_bwmode = pmlmeext->cur_bwmode;
+ cur_ch_offset = pmlmeext->cur_ch_offset;
}
- }
-
-
-#if 0
- if (!(psta->capability & WLAN_CAPABILITY_SHORT_PREAMBLE) &&
- !psta->no_short_preamble_set) {
- psta->no_short_preamble_set = 1;
- pmlmepriv->num_sta_no_short_preamble++;
- if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 1))
- ieee802_11_set_beacons(hapd->iface);
- }
-#endif
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
- if(!(psta->flags & WLAN_STA_SHORT_PREAMBLE))
- {
- if(!psta->no_short_preamble_set)
+ if (is_client_associated_to_ap(pbuddy_adapter) == _TRUE)
{
- psta->no_short_preamble_set = 1;
-
- pmlmepriv->num_sta_no_short_preamble++;
-
- if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 1))
- update_beacon(padapter, 0xFF, NULL, _TRUE);
-
+ //issue null data
+ issue_nulldata(pbuddy_adapter, NULL, 0, 0, 0);
+ }
+
+ if(((pbuddy_mlmeinfo->state&0x03) == WIFI_FW_AP_STATE) &&
+ check_fwstate(pbuddy_mlmepriv, _FW_LINKED))
+ {
+
+ DBG_871X("survey done, current CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
+
+ DBG_871X("restart pbuddy_adapter's beacon\n");
+
+ update_beacon(pbuddy_adapter, 0, NULL, _TRUE);
}
}
else
{
- if(psta->no_short_preamble_set)
- {
- psta->no_short_preamble_set = 0;
-
- pmlmepriv->num_sta_no_short_preamble--;
-
- if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 0))
- update_beacon(padapter, 0xFF, NULL, _TRUE);
-
- }
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
}
+}
+
+void dc_set_ap_channel_bandwidth(_adapter *padapter, u8 channel, u8 channel_offset, u8 bwmode)
+{
+ u8 *p;
+ u8 val8, cur_channel, cur_bwmode, cur_ch_offset, change_band;
+ int ie_len;
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct HT_info_element *pht_info=NULL;
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
+ struct mlme_ext_priv *pbuddy_mlmeext = NULL;
+ DBG_871X("dualmac_concurrent_ap_set_channel_bwmode ==>\n");
-#ifdef CONFIG_80211N_HT
+ cur_channel = channel;
+ cur_bwmode = bwmode;
+ cur_ch_offset = channel_offset;
+ change_band = _FALSE;
- if (psta->flags & WLAN_STA_HT)
+ p = rtw_get_ie((pnetwork->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if( p && ie_len)
{
- u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
-
- DBG_871X("HT: STA " MAC_FMT " HT Capabilities "
- "Info: 0x%04x\n", MAC_ARG(psta->hwaddr), ht_capab);
+ pht_info = (struct HT_info_element *)(p+2);
+ }
- if (psta->no_ht_set) {
- psta->no_ht_set = 0;
- pmlmepriv->num_sta_no_ht--;
- }
-
- if ((ht_capab & IEEE80211_HT_CAP_GRN_FLD) == 0) {
- if (!psta->no_ht_gf_set) {
- psta->no_ht_gf_set = 1;
- pmlmepriv->num_sta_ht_no_gf++;
- }
- DBG_871X("%s STA " MAC_FMT " - no "
- "greenfield, num of non-gf stations %d\n",
- __FUNCTION__, MAC_ARG(psta->hwaddr),
- pmlmepriv->num_sta_ht_no_gf);
- }
-
- if ((ht_capab & IEEE80211_HT_CAP_SUP_WIDTH) == 0) {
- if (!psta->ht_20mhz_set) {
- psta->ht_20mhz_set = 1;
- pmlmepriv->num_sta_ht_20mhz++;
- }
- DBG_871X("%s STA " MAC_FMT " - 20 MHz HT, "
- "num of 20MHz HT STAs %d\n",
- __FUNCTION__, MAC_ARG(psta->hwaddr),
- pmlmepriv->num_sta_ht_20mhz);
- }
-
- }
- else
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
{
- if (!psta->no_ht_set) {
- psta->no_ht_set = 1;
- pmlmepriv->num_sta_no_ht++;
- }
- if(pmlmepriv->htpriv.ht_option == _TRUE) {
- DBG_871X("%s STA " MAC_FMT
- " - no HT, num of non-HT stations %d\n",
- __FUNCTION__, MAC_ARG(psta->hwaddr),
- pmlmepriv->num_sta_no_ht);
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ if(!check_fwstate(pbuddy_mlmepriv, _FW_LINKED|_FW_UNDER_LINKING|_FW_UNDER_SURVEY))
+ {
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
}
- }
+ else if(check_fwstate(pbuddy_mlmepriv, _FW_LINKED)==_TRUE)
+ {
+ //To sync cur_channel/cur_bwmode/cur_ch_offset with another adapter
+ DBG_871X("Another iface is at linked state, sync cur_channel/cur_bwmode/cur_ch_offset\n");
+ DBG_871X("Another adapter, CH=%d, BW=%d, offset=%d\n", pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_bwmode, pbuddy_mlmeext->cur_ch_offset);
+ DBG_871X("Current adapter, CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
+
+ cur_channel = pbuddy_mlmeext->cur_channel;
+ if(cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ if(pht_info)
+ pht_info->infos[0] &= ~(BIT(0)|BIT(1));
- if (rtw_ht_operation_update(padapter) > 0)
- {
- update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
- update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
- }
-
-#endif /* CONFIG_80211N_HT */
+ if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ cur_ch_offset = pbuddy_mlmeext->cur_ch_offset;
-}
+ //to update cur_ch_offset value in beacon
+ if(pht_info)
+ {
+ switch(cur_ch_offset)
+ {
+ case HAL_PRIME_CHNL_OFFSET_LOWER:
+ pht_info->infos[0] |= 0x1;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_UPPER:
+ pht_info->infos[0] |= 0x3;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_DONT_CARE:
+ default:
+ break;
+ }
+ }
+ }
+ else if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20)
+ {
+ cur_bwmode = HT_CHANNEL_WIDTH_20;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
-void ap_free_sta(_adapter *padapter, struct sta_info *psta)
-{
- _irqL irqL;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct sta_priv *pstapriv = &padapter->stapriv;
+ if(cur_channel>0 && cur_channel<5)
+ {
+ if(pht_info)
+ pht_info->infos[0] |= 0x1;
- if(!psta)
- return;
+ cur_bwmode = HT_CHANNEL_WIDTH_40;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ }
+ if(cur_channel>7 && cur_channel<(14+1))
+ {
+ if(pht_info)
+ pht_info->infos[0] |= 0x3;
- if (psta->nonerp_set) {
- psta->nonerp_set = 0;
- pmlmepriv->num_sta_non_erp--;
- if (pmlmepriv->num_sta_non_erp == 0)
- update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
- }
+ cur_bwmode = HT_CHANNEL_WIDTH_40;
+ cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ }
- if (psta->no_short_slot_time_set) {
- psta->no_short_slot_time_set = 0;
- pmlmepriv->num_sta_no_short_slot_time--;
- if (pmlmeext->cur_wireless_mode > WIRELESS_11B
- && pmlmepriv->num_sta_no_short_slot_time == 0)
- update_beacon(padapter, 0xFF, NULL, _TRUE);
- }
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
+ }
+ }
- if (psta->no_short_preamble_set) {
- psta->no_short_preamble_set = 0;
- pmlmepriv->num_sta_no_short_preamble--;
- if (pmlmeext->cur_wireless_mode > WIRELESS_11B
- && pmlmepriv->num_sta_no_short_preamble == 0)
- update_beacon(padapter, 0xFF, NULL, _TRUE);
- }
-
-#ifdef CONFIG_80211N_HT
+ // to update channel value in beacon
+ pnetwork->Configuration.DSConfig = cur_channel;
+ p = rtw_get_ie((pnetwork->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _DSSET_IE_, &ie_len, (pnetwork->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if(p && ie_len>0)
+ *(p + 2) = cur_channel;
- if (psta->no_ht_gf_set) {
- psta->no_ht_gf_set = 0;
- pmlmepriv->num_sta_ht_no_gf--;
+ if(pht_info)
+ pht_info->primary_channel = cur_channel;
+ }
}
-
- if (psta->no_ht_set) {
- psta->no_ht_set = 0;
- pmlmepriv->num_sta_no_ht--;
+ else
+ {
+ set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
}
- if (psta->ht_20mhz_set) {
- psta->ht_20mhz_set = 0;
- pmlmepriv->num_sta_ht_20mhz--;
- }
+ DBG_871X("CH=%d, BW=%d, offset=%d\n", cur_channel, cur_bwmode, cur_ch_offset);
- if (rtw_ht_operation_update(padapter) > 0)
+ if((channel <= 14 && cur_channel >= 36) ||
+ (channel >= 36 && cur_channel <= 14))
{
- update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
- update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
+ change_band = _TRUE;
}
-
-#endif /* CONFIG_80211N_HT */
-
-
- //tear down Rx AMPDU
- send_delba(padapter, 0, psta->hwaddr);// recipient
-
- //tear down TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- psta->htpriv.agg_enable_bitmap = 0x0;//reset
- psta->htpriv.candidate_tid_bitmap = 0x0;//reset
-
- issue_deauth(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
+ pmlmeext->cur_channel = cur_channel;
+ pmlmeext->cur_bwmode = cur_bwmode;
+ pmlmeext->cur_ch_offset = cur_ch_offset;
- //report_del_sta_event(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
+ if(change_band == _TRUE)
+ change_band_update_ie(padapter, pnetwork);
- //clear key
- //clear_cam_entry(padapter, (psta->mac_id + 3));
+ DBG_871X("dualmac_concurrent_ap_set_channel_bwmode <==\n");
+}
+void dc_resume_xmit(_adapter *padapter)
+{
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
{
- #ifdef CONFIG_IOCTL_CFG80211
- struct wireless_dev *pwdev = padapter->rtw_wdev;
+ DBG_871X("dc_resume_xmit, resume pbuddy_adapter Tx\n");
+ rtw_os_xmit_schedule(pbuddy_adapter);
+ }
+}
+
+u8 dc_check_xmit(_adapter *padapter)
+{
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
- if(pwdev->iftype == NL80211_IFTYPE_AP) {
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- rtw_cfg80211_indicate_sta_disassoc(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
- #else //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- report_del_sta_event(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
- #endif //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- } else
- #endif //CONFIG_IOCTL_CFG80211
+ if(pbuddy_adapter != NULL &&
+ padapter->DualMacConcurrent == _TRUE)
+ {
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ if (check_fwstate(pbuddy_mlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
{
- rtw_indicate_sta_disassoc_event(padapter, psta);
+ DBG_871X("dc_check_xmit pbuddy_adapter is under survey or under linking\n");
+ return _FALSE;
}
}
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
-
+ return _TRUE;
}
+#endif
-int rtw_sta_flush(_adapter *padapter)
+#ifdef CONFIG_CONCURRENT_MODE
+sint check_buddy_mlmeinfo_state(_adapter *padapter, u32 state)
{
- _irqL irqL;
- _list *phead, *plist;
- int ret=0;
- struct sta_info *psta = NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- u8 bc_addr[ETH_ALEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
-
- DBG_871X("%s\n", __FUNCTION__);
-
- if((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
- return ret;
+ PADAPTER pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext;
+ struct mlme_ext_info *pbuddy_mlmeinfo;
-
- _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- phead = &pstapriv->asoc_list;
- plist = get_next(phead);
+ if(padapter == NULL)
+ return _FALSE;
- //free sta asoc_queue
- while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
- {
- psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
-
- plist = get_next(plist);
-
- rtw_list_delete(&psta->asoc_list);
-
- //_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- ap_free_sta(padapter, psta);
- //_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- }
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ pbuddy_adapter = padapter->pbuddy_adapter;
+ if(pbuddy_adapter == NULL)
+ return _FALSE;
- issue_deauth(padapter, bc_addr, WLAN_REASON_DEAUTH_LEAVING);
- return ret;
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ pbuddy_mlmeinfo = &(pbuddy_mlmeext->mlmext_info);
+
+ if((pbuddy_mlmeinfo->state&0x03) == state)
+ return _TRUE;
+ return _FALSE;
+
}
-/* called > TSR LEVEL for USB or SDIO Interface*/
-void sta_info_update(_adapter *padapter, struct sta_info *psta)
-{
- int flags = psta->flags;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
-
-
- //update wmm cap.
- if(WLAN_STA_WME&flags)
- psta->qos_option = 1;
- else
- psta->qos_option = 0;
+void concurrent_chk_joinbss_done(_adapter *padapter, int join_res)
+{
+ struct mlme_ext_priv *pmlmeext;
+ struct mlme_ext_info *pmlmeinfo;
+ PADAPTER pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext;
+ struct mlme_ext_info *pbuddy_mlmeinfo;
+ WLAN_BSSID_EX *pbuddy_network_mlmeext;
- if(pmlmepriv->qospriv.qos_option == 0)
- psta->qos_option = 0;
+ pmlmeext = &padapter->mlmeextpriv;
+ pmlmeinfo = &(pmlmeext->mlmext_info);
-
-#ifdef CONFIG_80211N_HT
- //update 802.11n ht cap.
- if(WLAN_STA_HT&flags)
+
+ if(!rtw_buddy_adapter_up(padapter))
{
- psta->htpriv.ht_option = _TRUE;
- psta->qos_option = 1;
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ return;
}
- else
+
+ pbuddy_adapter = padapter->pbuddy_adapter;
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ pbuddy_mlmeinfo = &(pbuddy_mlmeext->mlmext_info);
+ pbuddy_network_mlmeext = &(pbuddy_mlmeinfo->network);
+
+ if(((pbuddy_mlmeinfo->state&0x03) == WIFI_FW_AP_STATE) &&
+ check_fwstate(pbuddy_mlmepriv, _FW_LINKED))
{
- psta->htpriv.ht_option = _FALSE;
- }
+ //restart and update beacon
+
+ DBG_871X("after join,primary adapter, CH=%d, BW=%d, offset=%d\n"
+ , pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset);
- if(pmlmepriv->htpriv.ht_option == _FALSE)
- psta->htpriv.ht_option = _FALSE;
-#endif
+ if(join_res >= 0)
+ {
+ u8 *p;
+ int ie_len;
+ u8 change_band = _FALSE;
+ struct HT_info_element *pht_info=NULL;
- update_sta_info_apmode(padapter, psta);
-
+ if((pmlmeext->cur_channel <= 14 && pbuddy_mlmeext->cur_channel >= 36) ||
+ (pmlmeext->cur_channel >= 36 && pbuddy_mlmeext->cur_channel <= 14))
+ change_band = _TRUE;
-}
+ //sync channel/bwmode/ch_offset with primary adapter
+ pbuddy_mlmeext->cur_channel = pmlmeext->cur_channel;
+ if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ p = rtw_get_ie((pbuddy_network_mlmeext->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pbuddy_network_mlmeext->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if( p && ie_len)
+ {
+ pht_info = (struct HT_info_element *)(p+2);
+ pht_info->infos[0] &= ~(BIT(0)|BIT(1)); //no secondary channel is present
+ }
+
+ if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ {
+ pbuddy_mlmeext->cur_ch_offset = pmlmeext->cur_ch_offset;
-/* called >= TSR LEVEL for USB or SDIO Interface*/
-void ap_sta_info_defer_update(_adapter *padapter, struct sta_info *psta)
-{
- if(psta->state & _FW_LINKED)
- {
- //add ratid
- add_RATid(padapter, psta);
- }
-}
+ //to update cur_ch_offset value in beacon
+ if( pht_info )
+ {
+ switch(pmlmeext->cur_ch_offset)
+ {
+ case HAL_PRIME_CHNL_OFFSET_LOWER:
+ pht_info->infos[0] |= 0x1;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_UPPER:
+ pht_info->infos[0] |= 0x3;
+ break;
+ case HAL_PRIME_CHNL_OFFSET_DONT_CARE:
+ default:
+ break;
+ }
+
+ }
+
+ }
+ else if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20)
+ {
+ if(pmlmeext->cur_channel>=1 && pmlmeext->cur_channel<=4)
+ {
+ if(pht_info)
+ pht_info->infos[0] |= HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE;
-void start_ap_mode(_adapter *padapter)
-{
- int i;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
-
- pmlmepriv->update_bcn = _FALSE;
-
- //init_mlme_ap_info(padapter);
- pmlmeext->bstart_bss = _FALSE;
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ }
+ else if(pmlmeext->cur_channel>=5 && pmlmeext->cur_channel<=14)
+ {
+ if(pht_info)
+ pht_info->infos[0] |= HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW;
+
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ }
+ else
+ {
+ switch(pmlmeext->cur_channel)
+ {
+ case 36:
+ case 44:
+ case 52:
+ case 60:
+ case 100:
+ case 108:
+ case 116:
+ case 124:
+ case 132:
+ case 149:
+ case 157:
+ {
+ if(pht_info)
+ pht_info->infos[0] |= HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE;
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_LOWER;
+ break;
+ }
+ case 40:
+ case 48:
+ case 56:
+ case 64:
+ case 104:
+ case 112:
+ case 120:
+ case 128:
+ case 136:
+ case 153:
+ case 161:
+ {
+ if(pht_info)
+ pht_info->infos[0] |= HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW;
+
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_UPPER;
+ break;
+ }
+ default:
+ if(pht_info)
+ pht_info->infos[0] &= ~HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW;
+ pbuddy_mlmeext->cur_bwmode = HT_CHANNEL_WIDTH_20;
+ pbuddy_mlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ break;
- pmlmepriv->num_sta_non_erp = 0;
+ }
+
+ }
- pmlmepriv->num_sta_no_short_slot_time = 0;
+ }
- pmlmepriv->num_sta_no_short_preamble = 0;
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+
+ }
+ else
+ {
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ }
- pmlmepriv->num_sta_ht_no_gf = 0;
- pmlmepriv->num_sta_no_ht = 0;
-
- pmlmepriv->num_sta_ht_20mhz = 0;
+ // to update channel value in beacon
+ pbuddy_network_mlmeext->Configuration.DSConfig = pmlmeext->cur_channel;
+ p = rtw_get_ie((pbuddy_network_mlmeext->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _DSSET_IE_, &ie_len, (pbuddy_network_mlmeext->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if(p && ie_len>0)
+ *(p + 2) = pmlmeext->cur_channel;
- pmlmepriv->olbc = _FALSE;
+ p = rtw_get_ie((pbuddy_network_mlmeext->IEs + sizeof(NDIS_802_11_FIXED_IEs)), _HT_ADD_INFO_IE_, &ie_len, (pbuddy_network_mlmeext->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
+ if( p && ie_len)
+ {
+ pht_info = (struct HT_info_element *)(p+2);
+ pht_info->primary_channel = pmlmeext->cur_channel;
+ }
- pmlmepriv->olbc_ht = _FALSE;
-
-#ifdef CONFIG_80211N_HT
- pmlmepriv->ht_op_mode = 0;
-#endif
+ //buddy interface band is different from current interface, update ERP, support rate, ext support rate IE
+ if(change_band == _TRUE)
+ change_band_update_ie(pbuddy_adapter, pbuddy_network_mlmeext);
+ }
+ else
+ {
+ // switch back to original channel/bwmode/ch_offset;
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ }
- for(i=0; i<NUM_STA; i++)
- pstapriv->sta_aid[i] = NULL;
+ DBG_871X("after join, second adapter, CH=%d, BW=%d, offset=%d\n", pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_bwmode, pbuddy_mlmeext->cur_ch_offset);
- pmlmepriv->wps_beacon_ie = NULL;
- pmlmepriv->wps_probe_resp_ie = NULL;
- pmlmepriv->wps_assoc_resp_ie = NULL;
-
- pmlmepriv->p2p_beacon_ie = NULL;
- pmlmepriv->p2p_probe_resp_ie = NULL;
+ DBG_871X("update pbuddy_adapter's beacon\n");
+
+ update_beacon(pbuddy_adapter, 0, NULL, _TRUE);
+ }
+ else if(((pbuddy_mlmeinfo->state&0x03) == WIFI_FW_STATION_STATE) &&
+ check_fwstate(pbuddy_mlmepriv, _FW_LINKED))
+ {
+ if(join_res >= 0)
+ {
+ pbuddy_mlmeext->cur_channel = pmlmeext->cur_channel;
+ if(pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ else if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40)
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ else
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
+ else
+ {
+ // switch back to original channel/bwmode/ch_offset;
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ }
+ }
+ else
+ {
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+ }
+
}
+#endif //CONFIG_CONCURRENT_MODE
-void stop_ap_mode(_adapter *padapter)
+int rtw_chk_start_clnt_join(_adapter *padapter)
{
- _irqL irqL;
- //_list *phead, *plist;
- struct sta_info *psta=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
-
- pmlmepriv->update_bcn = _FALSE;
- pmlmeext->bstart_bss = _FALSE;
- //_rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ unsigned char cur_ch = pmlmeext->cur_channel;
+ unsigned char cur_bw = pmlmeext->cur_bwmode;
+ unsigned char cur_ch_offset = pmlmeext->cur_ch_offset;
+ bool chbw_allow = _TRUE;
+ bool connect_allow = _TRUE;
- //phead = &pstapriv->asoc_list;
- //plist = get_next(phead);
-
- rtw_sta_flush(padapter);
+#ifdef CONFIG_CONCURRENT_MODE
+ PADAPTER pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext;
+ struct mlme_ext_info *pbuddy_pmlmeinfo;
+ struct mlme_priv *pbuddy_mlmepriv;
-#if 0
- //free sta asoc_queue
- while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
- {
- psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
-
- plist = get_next(plist);
+ if (!rtw_buddy_adapter_up(padapter)) {
+ goto start_join_set_ch_bw;
+ }
- rtw_list_delete(&psta->asoc_list);
+ pbuddy_adapter = padapter->pbuddy_adapter;
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ pbuddy_pmlmeinfo = &(pbuddy_mlmeext->mlmext_info);
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
- //tear down Rx AMPDU
- send_delba(padapter, 0, psta->hwaddr);// recipient
-
- //tear down TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- psta->htpriv.agg_enable_bitmap = 0x0;//reset
- psta->htpriv.candidate_tid_bitmap = 0x0;//reset
+ if((pbuddy_pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)//for AP MODE
+ {
+ DBG_871X("start_clnt_join: "ADPT_FMT"(ch=%d, bw=%d, ch_offset=%d)"
+ ", "ADPT_FMT" AP mode(ch=%d, bw=%d, ch_offset=%d)\n",
+ ADPT_ARG(padapter), pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset,
+ ADPT_ARG(pbuddy_adapter), pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_bwmode, pbuddy_mlmeext->cur_ch_offset);
- issue_deauth(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
+ if(pmlmeext->cur_channel != pbuddy_mlmeext->cur_channel)
+ {
+ chbw_allow = _FALSE;
+ }
+ else if((pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40) &&
+ (pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40) &&
+ (pmlmeext->cur_ch_offset != pbuddy_mlmeext->cur_ch_offset))
+ {
+ chbw_allow = _FALSE;
+ }
+ else if((pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20) &&
+ (pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40))
+ {
+ cur_ch = pmlmeext->cur_channel;
+ cur_bw = pbuddy_mlmeext->cur_bwmode;
+ cur_ch_offset = pbuddy_mlmeext->cur_ch_offset;
+ }
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
+ DBG_871X("start_clnt_join: connect_allow:%d, chbw_allow:%d\n", connect_allow, chbw_allow);
+ if (chbw_allow == _FALSE) {
+ #ifdef CONFIG_SPCT_CH_SWITCH
+ if (1) {
+ rtw_ap_inform_ch_switch(pbuddy_adapter, pmlmeext->cur_channel , pmlmeext->cur_ch_offset);
+ } else
+ #endif
+ {
+ //issue deauth to all stas if if2 is at ap mode
+ rtw_sta_flush(pbuddy_adapter);
+ }
+ rtw_hal_set_hwreg(padapter, HW_VAR_CHECK_TXBUF, 0);
+ }
}
-#endif
+ else if(check_fwstate(pbuddy_mlmepriv, _FW_LINKED) == _TRUE &&
+ check_fwstate(pbuddy_mlmepriv, WIFI_STATION_STATE) == _TRUE) //for Client Mode/p2p client
+ {
+ DBG_871X("start_clnt_join: "ADPT_FMT"(ch=%d, bw=%d, ch_offset=%d)"
+ ", "ADPT_FMT" STA mode(ch=%d, bw=%d, ch_offset=%d)\n",
+ ADPT_ARG(padapter), pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset,
+ ADPT_ARG(pbuddy_adapter), pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_bwmode, pbuddy_mlmeext->cur_ch_offset);
- //free_assoc_sta_resources
- rtw_free_all_stainfo(padapter);
-
- psta = rtw_get_bcmc_stainfo(padapter);
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
- rtw_init_bcmc_stainfo(padapter);
+ if(pmlmeext->cur_channel != pbuddy_mlmeext->cur_channel)
+ {
+ chbw_allow = _FALSE;
+ }
+ else if((pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_20) &&
+ (pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40))
+ {
+ cur_bw = HT_CHANNEL_WIDTH_40;
+ cur_ch_offset = pbuddy_mlmeext->cur_ch_offset;
+ }
+ else if((pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40) &&
+ (pbuddy_mlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40) &&
+ (pmlmeext->cur_ch_offset != pbuddy_mlmeext->cur_ch_offset))
+ {
+ chbw_allow = _FALSE;
+ }
- rtw_free_mlme_priv_ie_data(pmlmepriv);
+ connect_allow = chbw_allow;
-/*
- if(pmlmepriv->wps_beacon_ie)
- {
- rtw_mfree(pmlmepriv->wps_beacon_ie, pmlmepriv->wps_beacon_ie_len);
- pmlmepriv->wps_beacon_ie = NULL;
- }
+ #if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211)
+ /* wlan0-sta mode has higher priority than p2p0-p2p client */
+ if (!rtw_p2p_chk_state(&(pbuddy_adapter->wdinfo), P2P_STATE_NONE)
+ && pbuddy_adapter->wdinfo.driver_interface == DRIVER_CFG80211)
+ {
+ connect_allow = _TRUE;
+ }
+ #endif /* CONFIG_P2P && CONFIG_IOCTL_CFG80211 */
- if(pmlmepriv->wps_probe_resp_ie)
- {
- rtw_mfree(pmlmepriv->wps_probe_resp_ie, pmlmepriv->wps_probe_resp_ie_len);
- pmlmepriv->wps_probe_resp_ie = NULL;
+ DBG_871X("start_clnt_join: connect_allow:%d, chbw_allow:%d\n", connect_allow, chbw_allow);
+ if (connect_allow == _TRUE && chbw_allow == _FALSE) {
+ /* disconnect buddy's connection */
+ rtw_disassoc_cmd(pbuddy_adapter, 500, _FALSE);
+ rtw_indicate_disconnect(pbuddy_adapter);
+ rtw_free_assoc_resources(pbuddy_adapter, 1);
+ }
}
- if(pmlmepriv->wps_assoc_resp_ie)
- {
- rtw_mfree(pmlmepriv->wps_assoc_resp_ie, pmlmepriv->wps_assoc_resp_ie_len);
- pmlmepriv->wps_assoc_resp_ie = NULL;
+start_join_set_ch_bw:
+#endif /* CONFIG_CONCURRENT_MODE */
+
+ if (connect_allow == _TRUE) {
+ DBG_871X("start_join_set_ch_bw: ch=%d, bwmode=%d, ch_offset=%d\n", cur_ch, cur_bw, cur_ch_offset);
+ set_channel_bwmode(padapter, cur_ch, cur_ch_offset, cur_bw);
}
- if(pmlmepriv->p2p_beacon_ie)
- {
- rtw_mfree(pmlmepriv->p2p_beacon_ie, pmlmepriv->p2p_beacon_ie_len);
- pmlmepriv->p2p_beacon_ie = NULL;
+ return connect_allow == _TRUE ? _SUCCESS : _FAIL;
+}
+
+/* Find union about ch, bw, ch_offset of all linked interfaces */
+int rtw_get_ch_setting_union(_adapter *adapter, u8 *ch, u8 *bw, u8 *offset)
+{
+ struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
+ _adapter *iface;
+ struct mlme_ext_priv *mlmeext;
+ int i;
+ u8 ch_ret = 0;
+ u8 bw_ret = HT_CHANNEL_WIDTH_20;
+ u8 offset_ret = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ int num = 0;
+
+ if (ch) *ch = 0;
+ if (bw) *bw = HT_CHANNEL_WIDTH_20;
+ if (offset) *offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
+ for (i = 0; i<dvobj->iface_nums; i++) {
+ iface = dvobj->padapters[i];
+ mlmeext = &iface->mlmeextpriv;
+
+ if (!check_fwstate(&iface->mlmepriv, _FW_LINKED))
+ continue;
+
+ if (num == 0) {
+ ch_ret = mlmeext->cur_channel;
+ bw_ret = mlmeext->cur_bwmode;
+ offset_ret = mlmeext->cur_ch_offset;
+ num++;
+ continue;
+ }
+
+ if (ch_ret != mlmeext->cur_channel) {
+ num = 0;
+ break;
+ }
+
+ if (bw_ret < mlmeext->cur_bwmode) {
+ bw_ret = mlmeext->cur_bwmode;
+ offset_ret = mlmeext->cur_ch_offset;
+ } else if (bw_ret == mlmeext->cur_bwmode && offset_ret != mlmeext->cur_ch_offset) {
+ num = 0;
+ break;
+ }
+
+ num++;
}
- if(pmlmepriv->p2p_probe_resp_ie)
- {
- rtw_mfree(pmlmepriv->p2p_probe_resp_ie, pmlmepriv->p2p_probe_resp_ie_len);
- pmlmepriv->p2p_probe_resp_ie = NULL;
+ if (num) {
+ if (ch) *ch = ch_ret;
+ if (bw) *bw = bw_ret;
+ if (offset) *offset = offset_ret;
}
-*/
+ return num;
}
+u8 set_ch_hdl(_adapter *padapter, u8 *pbuf)
+{
+ struct set_ch_parm *set_ch_parm;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
-#endif
+ if(!pbuf)
+ return H2C_PARAMETERS_ERROR;
-#endif
+ set_ch_parm = (struct set_ch_parm *)pbuf;
+
+ DBG_871X(FUNC_NDEV_FMT" ch:%u, bw:%u, ch_offset:%u\n",
+ FUNC_NDEV_ARG(padapter->pnetdev),
+ set_ch_parm->ch, set_ch_parm->bw, set_ch_parm->ch_offset);
+
+ pmlmeext->cur_channel = set_ch_parm->ch;
+ pmlmeext->cur_ch_offset = set_ch_parm->ch_offset;
+ pmlmeext->cur_bwmode = set_ch_parm->bw;
+
+ set_channel_bwmode(padapter, set_ch_parm->ch, set_ch_parm->ch_offset, set_ch_parm->bw);
+
+ return H2C_SUCCESS;
+}
u8 set_chplan_hdl(_adapter *padapter, unsigned char *pbuf)
{
@@ -12038,6 +13361,7 @@ u8 set_chplan_hdl(_adapter *padapter, unsigned char *pbuf)
setChannelPlan_param = (struct SetChannelPlan_param *)pbuf;
pmlmeext->max_chan_nums = init_channel_set(padapter, setChannelPlan_param->channel_plan, pmlmeext->channel_set);
+ init_channel_list(padapter, pmlmeext->channel_set, pmlmeext->max_chan_nums, &pmlmeext->channel_list);
return H2C_SUCCESS;
}
@@ -12062,6 +13386,7 @@ u8 set_csa_hdl(_adapter *padapter, unsigned char *pbuf)
{
#ifdef CONFIG_DFS
struct SetChannelSwitch_param *setChannelSwitch_param;
+ struct SetChannelPlan_param *setChannelPlan_param;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
@@ -12073,22 +13398,22 @@ u8 set_csa_hdl(_adapter *padapter, unsigned char *pbuf)
setChannelSwitch_param = (struct SetChannelSwitch_param *)pbuf;
new_ch_no = setChannelSwitch_param->new_ch_no;
-
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_TXPAUSE, &gval8);
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TXPAUSE, &sval8);
- DBG_8192C("DFS detected! Swiching channel to %d!\n", new_ch_no);
+ rtw_hal_get_hwreg(padapter, HW_VAR_TXPAUSE, &gval8);
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_TXPAUSE, &sval8);
+
+ DBG_871X("DFS detected! Swiching channel to %d!\n", new_ch_no);
SelectChannel(padapter, new_ch_no);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TXPAUSE, &gval8);
+ rtw_hal_set_hwreg(padapter, HW_VAR_TXPAUSE, &gval8);
rtw_free_network_queue(padapter, _TRUE);
rtw_indicate_disconnect(padapter);
if ( ((new_ch_no >= 52) && (new_ch_no <= 64)) ||((new_ch_no >= 100) && (new_ch_no <= 140)) ) {
- DBG_8192C("Switched to DFS band (ch %02x) again!!\n", new_ch_no);
- }
+ DBG_871X("Switched to DFS band (ch %02x) again!!\n", new_ch_no);
+ }
return H2C_SUCCESS;
#else
@@ -12136,14 +13461,18 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
}
//_enter_critical_bh(&(ptdlsinfo->hdl_lock), &irqL);
- DBG_8192C("[%s] option:%d\n", __FUNCTION__, option);
+ DBG_871X("[%s] option:%d\n", __FUNCTION__, option);
switch(option){
case TDLS_WRCR:
//As long as TDLS handshake success, we should set RCR_CBSSID_DATA bit to 0
//such we can receive all kinds of data frames.
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TDLS_WRCR, 0);
- DBG_8192C("wirte REG_RCR, set bit6 off\n");
+ rtw_hal_set_hwreg(padapter, HW_VAR_TDLS_WRCR, 0);
+ DBG_871X("TDLS with "MAC_FMT"\n", MAC_ARG(ptdls_sta->hwaddr));
+
+ pmlmeinfo->FW_sta_info[ptdls_sta->mac_id].psta = ptdls_sta;
+ //set TDLS sta rate.
+ set_sta_rate(padapter, ptdls_sta);
break;
case TDLS_SD_PTI:
issue_tdls_peer_traffic_indication(padapter, ptdls_sta);
@@ -12155,11 +13484,11 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
ptdls_sta->tdls_sta_state &= ~(TDLS_CH_SWITCH_ON_STATE |
TDLS_PEER_AT_OFF_STATE |
TDLS_AT_OFF_CH_STATE);
- DBG_8192C("go back to base channel\n ");
- issue_nulldata(padapter, 0);
+ DBG_871X("go back to base channel\n ");
+ issue_nulldata(padapter, NULL, 0, 0, 0);
break;
case TDLS_INIT_CH_SEN:
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TDLS_INIT_CH_SEN, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_TDLS_INIT_CH_SEN, 0);
pmlmeext->sitesurvey_res.channel_idx = 0;
ptdls_sta->option = TDLS_DONE_CH_SEN;
rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_DONE_CH_SEN);
@@ -12174,7 +13503,7 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
}else{
SelectChannel(padapter, pmlmeext->cur_channel);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TDLS_DONE_CH_SEN, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_TDLS_DONE_CH_SEN, 0);
if(ptdlsinfo->ch_sensing==1){
ptdlsinfo->ch_sensing=0;
@@ -12189,7 +13518,7 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
}
ptdlsinfo->collect_pkt_num[0]=0;
ptdlsinfo->candidate_ch=ptdlsinfo->cur_channel;
- DBG_8192C("TDLS channel sensing done, candidate channel: %02x\n", ptdlsinfo->candidate_ch);
+ DBG_871X("TDLS channel sensing done, candidate channel: %02x\n", ptdlsinfo->candidate_ch);
ptdlsinfo->cur_channel=0;
}
@@ -12198,20 +13527,20 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
ptdls_sta->tdls_sta_state |= TDLS_APSD_CHSW_STATE;
}else{
//send null data with pwrbit==1 before send ch_switching_req to peer STA.
- issue_nulldata(padapter, 1);
+ issue_nulldata(padapter, NULL, 1, 0, 0);
ptdls_sta->tdls_sta_state |= TDLS_CH_SW_INITIATOR_STATE;
issue_tdls_ch_switch_req(padapter, ptdls_sta->hwaddr);
- DBG_8192C("issue tdls ch switch req\n");
+ DBG_871X("issue tdls ch switch req\n");
}
}
break;
case TDLS_OFF_CH:
- issue_nulldata(padapter, 1);
+ issue_nulldata(padapter, NULL, 1, 0, 0);
SelectChannel(padapter, ptdls_sta->off_ch);
- DBG_8192C("change channel to tar ch:%02x\n", ptdls_sta->off_ch);
+ DBG_871X("change channel to tar ch:%02x\n", ptdls_sta->off_ch);
ptdls_sta->tdls_sta_state |= TDLS_AT_OFF_CH_STATE;
ptdls_sta->tdls_sta_state &= ~(TDLS_PEER_AT_OFF_STATE);
_set_timer(&ptdls_sta->option_timer, (u32)ptdls_sta->ch_switch_time);
@@ -12223,21 +13552,21 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
ptdls_sta->tdls_sta_state &= ~(TDLS_CH_SWITCH_ON_STATE |
TDLS_PEER_AT_OFF_STATE |
TDLS_AT_OFF_CH_STATE);
- DBG_8192C("go back to base channel\n ");
- issue_nulldata(padapter, 0);
+ DBG_871X("go back to base channel\n ");
+ issue_nulldata(padapter, NULL, 0, 0, 0);
_set_timer(&ptdls_sta->option_timer, (u32)ptdls_sta->ch_switch_time);
break;
case TDLS_P_OFF_CH:
SelectChannel(padapter, pmlmeext->cur_channel);
- issue_nulldata(padapter, 0);
- DBG_8192C("change channel to base ch:%02x\n", pmlmeext->cur_channel);
+ issue_nulldata(padapter, NULL, 0, 0, 0);
+ DBG_871X("change channel to base ch:%02x\n", pmlmeext->cur_channel);
ptdls_sta->tdls_sta_state &= ~(TDLS_PEER_AT_OFF_STATE| TDLS_AT_OFF_CH_STATE);
_set_timer(&ptdls_sta->off_ch_timer, TDLS_STAY_TIME);
break;
case TDLS_P_BASE_CH:
- issue_nulldata(ptdls_sta->padapter, 1);
+ issue_nulldata(ptdls_sta->padapter, NULL, 1, 0, 0);
SelectChannel(padapter, ptdls_sta->off_ch);
- DBG_8192C("change channel to off ch:%02x\n", ptdls_sta->off_ch);
+ DBG_871X("change channel to off ch:%02x\n", ptdls_sta->off_ch);
ptdls_sta->tdls_sta_state |= TDLS_AT_OFF_CH_STATE;
if((ptdls_sta->tdls_sta_state & TDLS_PEER_AT_OFF_STATE) != TDLS_PEER_AT_OFF_STATE){
issue_nulldata_to_TDLS_peer_STA(padapter, ptdls_sta, 0);
@@ -12245,8 +13574,8 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
_set_timer(&ptdls_sta->base_ch_timer, TDLS_STAY_TIME);
break;
case TDLS_RS_RCR:
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TDLS_RS_RCR, 0);
- DBG_8192C("wirte REG_RCR, set bit6 on\n");
+ rtw_hal_set_hwreg(padapter, HW_VAR_TDLS_RS_RCR, 0);
+ DBG_871X("wirte REG_RCR, set bit6 on\n");
break;
case TDLS_CKALV_PH1:
_set_timer(&ptdls_sta->alive_timer2, TDLS_ALIVE_TIMER_PH2);
@@ -12268,3 +13597,4 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
#endif //CONFIG_TDLS
}
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_mp.c b/drivers/net/wireless/rtl8192cu/core/rtw_mp.c
index bb76dae..9af42cd 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_mp.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_mp.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -21,6 +21,10 @@
#include <drv_types.h>
+#ifdef PLATFORM_FREEBSD
+#include <sys/unistd.h> /* for RFHIGHPID */
+#endif
+
#ifdef CONFIG_RTL8712
#include <rtw_mp_phy_regdef.h>
#endif
@@ -30,6 +34,9 @@
#ifdef CONFIG_RTL8192D
#include <rtl8192d_hal.h>
#endif
+#ifdef CONFIG_RTL8723A
+#include <rtl8723a_hal.h>
+#endif
#ifdef CONFIG_MP_INCLUDED
@@ -79,35 +86,34 @@ void write_macreg(_adapter *padapter, u32 addr, u32 val, u32 sz)
u32 read_bbreg(_adapter *padapter, u32 addr, u32 bitmask)
{
- return padapter->HalFunc.read_bbreg(padapter, addr, bitmask);
+ return rtw_hal_read_bbreg(padapter, addr, bitmask);
}
void write_bbreg(_adapter *padapter, u32 addr, u32 bitmask, u32 val)
{
- padapter->HalFunc.write_bbreg(padapter, addr, bitmask, val);
+ rtw_hal_write_bbreg(padapter, addr, bitmask, val);
}
u32 _read_rfreg(PADAPTER padapter, u8 rfpath, u32 addr, u32 bitmask)
{
- return padapter->HalFunc.read_rfreg(padapter, (RF90_RADIO_PATH_E)rfpath, addr, bitmask);
+ return rtw_hal_read_rfreg(padapter, (RF_RADIO_PATH_E)rfpath, addr, bitmask);
}
void _write_rfreg(PADAPTER padapter, u8 rfpath, u32 addr, u32 bitmask, u32 val)
{
- padapter->HalFunc.write_rfreg(padapter, (RF90_RADIO_PATH_E)rfpath, addr, bitmask, val);
+ rtw_hal_write_rfreg(padapter, (RF_RADIO_PATH_E)rfpath, addr, bitmask, val);
}
u32 read_rfreg(PADAPTER padapter, u8 rfpath, u32 addr)
{
- return _read_rfreg(padapter, (RF90_RADIO_PATH_E)rfpath, addr, bRFRegOffsetMask);
+ return _read_rfreg(padapter, (RF_RADIO_PATH_E)rfpath, addr, bRFRegOffsetMask);
}
void write_rfreg(PADAPTER padapter, u8 rfpath, u32 addr, u32 val)
{
- _write_rfreg(padapter, (RF90_RADIO_PATH_E)rfpath, addr, bRFRegOffsetMask, val);
+ _write_rfreg(padapter, (RF_RADIO_PATH_E)rfpath, addr, bRFRegOffsetMask, val);
}
-
static void _init_mp_priv_(struct mp_priv *pmp_priv)
{
WLAN_BSSID_EX *pnetwork;
@@ -349,7 +355,7 @@ MPT_InitializeAdapter(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
s32 rtStatus = _SUCCESS;
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.MptCtx;
- u32 tmpRegA, tmpRegC, TempCCk,ledsetting;
+ u32 ledsetting;
//-------------------------------------------------------------------------
// HW Initialization for 8190 MPT.
@@ -503,16 +509,22 @@ void GetPowerTracking(PADAPTER padapter, u8 *enable)
static void disable_dm(PADAPTER padapter)
{
+#ifndef CONFIG_RTL8723A
u8 v8;
+#endif
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
//3 1. disable firmware dynamic mechanism
// disable Power Training, Rate Adaptive
+#ifdef CONFIG_RTL8723A
+ SetBcnCtrlReg(padapter, 0, EN_BCN_FUNCTION);
+#else
v8 = rtw_read8(padapter, REG_BCN_CTRL);
v8 &= ~EN_BCN_FUNCTION;
rtw_write8(padapter, REG_BCN_CTRL, v8);
+#endif
//3 2. disable driver dynamic mechanism
// disable Dynamic Initial Gain
@@ -595,7 +607,7 @@ s32 mp_start_test(PADAPTER padapter)
//init mp_start_test status
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) {
- rtw_disassoc_cmd(padapter);
+ rtw_disassoc_cmd(padapter, 500, _TRUE);
rtw_indicate_disconnect(padapter);
rtw_free_assoc_resources(padapter, 1);
}
@@ -765,7 +777,7 @@ static VOID mpt_AdjustRFRegByRateByChan92CU(PADAPTER pAdapter, u8 RateIdx, u8 Ch
static void mpt_SwitchRfSetting(PADAPTER pAdapter)
{
Hal_mpt_SwitchRfSetting(pAdapter);
- }
+ }
/*---------------------------hal\rtl8192c\MPT_Phy.c---------------------------*/
/*---------------------------hal\rtl8192c\MPT_HelperFunc.c---------------------------*/
@@ -827,7 +839,7 @@ void SetAntennaPathPower(PADAPTER pAdapter)
void SetTxPower(PADAPTER pAdapter)
{
Hal_SetTxPower(pAdapter);
-}
+ }
void SetTxAGCOffset(PADAPTER pAdapter, u32 ulTxAGCOffset)
{
@@ -904,12 +916,12 @@ void SetCarrierSuppressionTx(PADAPTER pAdapter, u8 bStart)
}
void SetCCKContinuousTx(PADAPTER pAdapter, u8 bStart)
-{
+ {
Hal_SetCCKContinuousTx(pAdapter,bStart);
}
void SetOFDMContinuousTx(PADAPTER pAdapter, u8 bStart)
-{
+ {
Hal_SetOFDMContinuousTx( pAdapter, bStart);
}/* mpt_StartOfdmContTx */
@@ -919,12 +931,12 @@ void SetContinuousTx(PADAPTER pAdapter, u8 bStart)
}
//------------------------------------------------------------------------------
-void dump_mpframe(_adapter *padapter, struct xmit_frame *pmpframe)
+static void dump_mpframe(PADAPTER padapter, struct xmit_frame *pmpframe)
{
- padapter->HalFunc.mgnt_xmit(padapter, pmpframe);
+ rtw_hal_mgnt_xmit(padapter, pmpframe);
}
-struct xmit_frame *alloc_mp_xmitframe(struct xmit_priv *pxmitpriv)
+static struct xmit_frame *alloc_mp_xmitframe(struct xmit_priv *pxmitpriv)
{
struct xmit_frame *pmpframe;
struct xmit_buf *pxmitbuf;
@@ -936,7 +948,7 @@ struct xmit_frame *alloc_mp_xmitframe(struct xmit_priv *pxmitpriv)
if ((pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv)) == NULL)
{
- rtw_free_xmitframe_ex(pxmitpriv, pmpframe);
+ rtw_free_xmitframe(pxmitpriv, pmpframe);
return NULL;
}
@@ -952,7 +964,7 @@ struct xmit_frame *alloc_mp_xmitframe(struct xmit_priv *pxmitpriv)
}
-thread_return mp_xmit_packet_thread(thread_context context)
+static thread_return mp_xmit_packet_thread(thread_context context)
{
struct xmit_frame *pxmitframe;
struct mp_tx *pmptx;
@@ -965,9 +977,9 @@ thread_return mp_xmit_packet_thread(thread_context context)
padapter = pmp_priv->papdater;
pxmitpriv = &(padapter->xmitpriv);
- thread_enter(padapter);
+ thread_enter("RTW_MP_THREAD");
- //DBG_8192C("%s:pkTx Start\n", __func__);
+ DBG_871X("%s:pkTx Start\n", __func__);
while (1) {
pxmitframe = alloc_mp_xmitframe(pxmitpriv);
if (pxmitframe == NULL) {
@@ -1002,7 +1014,7 @@ thread_return mp_xmit_packet_thread(thread_context context)
}
exit:
- //DBG_8192C("%s:pkTx Exit\n", __func__);
+ //DBG_871X("%s:pkTx Exit\n", __func__);
rtw_mfree(pmptx->pallocated_buf, pmptx->buf_size);
pmptx->pallocated_buf = NULL;
pmptx->stop = 1;
@@ -1059,7 +1071,7 @@ void SetPacketTx(PADAPTER padapter)
pmp_priv->tx.buf_size = pkt_size + XMITBUF_ALIGN_SZ;
pmp_priv->tx.pallocated_buf = rtw_zmalloc(pmp_priv->tx.buf_size);
if (pmp_priv->tx.pallocated_buf == NULL) {
- DBG_8192C("%s: malloc(%d) fail!!\n", __func__, pmp_priv->tx.buf_size);
+ DBG_871X("%s: malloc(%d) fail!!\n", __func__, pmp_priv->tx.buf_size);
return;
}
pmp_priv->tx.buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pmp_priv->tx.pallocated_buf), XMITBUF_ALIGN_SZ);
@@ -1140,9 +1152,22 @@ void SetPacketTx(PADAPTER padapter)
_rtw_memset(ptr, payload, pkt_end - ptr);
//3 6. start thread
- if(!start_kthread(&pmp_priv->tx.PktTxThread, mp_xmit_packet_thread, pmp_priv, "8192cu-mp-xmit"))
+#ifdef PLATFORM_LINUX
+ pmp_priv->tx.PktTxThread = kthread_run(mp_xmit_packet_thread, pmp_priv, "RTW_MP_THREAD");
+ if (IS_ERR(pmp_priv->tx.PktTxThread))
DBG_871X("Create PktTx Thread Fail !!!!!\n");
+#endif
+#ifdef PLATFORM_FREEBSD
+{
+ struct proc *p;
+ struct thread *td;
+ pmp_priv->tx.PktTxThread = kproc_kthread_add(mp_xmit_packet_thread, pmp_priv,
+ &p, &td, RFHIGHPID, 0, "MPXmitThread", "MPXmitThread");
+ if (pmp_priv->tx.PktTxThread < 0)
+ DBG_871X("Create PktTx Thread Fail !!!!!\n");
+}
+#endif
}
void SetPacketRx(PADAPTER pAdapter, u8 bStartRx)
@@ -1151,9 +1176,14 @@ void SetPacketRx(PADAPTER pAdapter, u8 bStartRx)
if(bStartRx)
{
- // Accept CRC error and destination address
- pHalData->ReceiveConfig |= (RCR_ACRC32|RCR_AAP);
+ pHalData->ReceiveConfig = AAP | APM | AM | AB | APP_ICV | ADF | AMF | HTC_LOC_CTRL | APP_MIC | APP_PHYSTS;
+
+ pHalData->ReceiveConfig |= ACRC32;
+
rtw_write32(pAdapter, REG_RCR, pHalData->ReceiveConfig);
+
+ // Accept all data frames
+ rtw_write16(pAdapter, REG_RXFLTMAP2, 0xFFFF);
}
else
{
@@ -1244,15 +1274,15 @@ static u32 GetPSDData(PADAPTER pAdapter, u32 point)
*/
u32 mp_query_psd(PADAPTER pAdapter, u8 *data)
{
- u8 *val;
u32 i, psd_pts=0, psd_start=0, psd_stop=0;
u32 psd_data=0;
-
-
+
+#ifdef PLATFORM_LINUX
if (!netif_running(pAdapter->pnetdev)) {
RT_TRACE(_module_mp_, _drv_warning_, ("mp_query_psd: Fail! interface not opened!\n"));
return 0;
}
+#endif
if (check_fwstate(&pAdapter->mlmepriv, WIFI_MP_STATE) == _FALSE) {
RT_TRACE(_module_mp_, _drv_warning_, ("mp_query_psd: Fail! not in MP mode!\n"));
@@ -1290,28 +1320,5 @@ u32 mp_query_psd(PADAPTER pAdapter, u8 *data)
return strlen(data)+1;
}
-
-u32 rtw_atoi(u8* s)
-{
-
- int num=0,flag=0;
- int i;
- for(i=0;i<=strlen(s);i++)
- {
- if(s[i] >= '0' && s[i] <= '9')
- num = num * 10 + s[i] -'0';
- else if(s[0] == '-' && i==0)
- flag =1;
- else
- break;
- }
-
- if(flag == 1)
- num = num * -1;
-
- return(num);
-
-}
-
#endif
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_mp_ioctl.c b/drivers/net/wireless/rtl8192cu/core/rtw_mp_ioctl.c
index a851568..b941e2c 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_mp_ioctl.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_mp_ioctl.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -56,7 +56,9 @@ _func_exit_;
//**************** oid_rtl_seg_81_87_80 section start ****************
NDIS_STATUS oid_rt_pro_write_bb_reg_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
struct bb_reg_param *pbbreg;
u16 offset;
u32 value;
@@ -95,7 +97,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_read_bb_reg_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
struct bb_reg_param *pbbreg;
u16 offset;
u32 value;
@@ -134,7 +138,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_write_rf_reg_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
struct rf_reg_param *pbbreg;
u8 path;
u8 offset;
@@ -180,7 +186,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_read_rf_reg_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
struct rf_reg_param *pbbreg;
u8 path;
u8 offset;
@@ -231,7 +239,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_set_data_rate_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 ratevalue;//4
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -266,9 +276,10 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_start_test_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 mode;
- u8 val8;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -306,7 +317,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_stop_test_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -330,7 +343,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_set_channel_direct_call_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 Channel;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -367,10 +382,13 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_set_bandwidth_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
- u16 bandwidth, channel_offset;
+#endif
+ u16 bandwidth;
+ u16 channel_offset;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -384,12 +402,15 @@ _func_enter_;
return NDIS_STATUS_INVALID_LENGTH;
bandwidth = *((u32*)poid_par_priv->information_buf);//4
+ channel_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+
if (bandwidth != HT_CHANNEL_WIDTH_40)
bandwidth = HT_CHANNEL_WIDTH_20;
- Adapter->mppriv.bandwidth = (u8)bandwidth;
+ padapter->mppriv.bandwidth = (u8)bandwidth;
+ padapter->mppriv.prime_channel_offset = (u8)channel_offset;
_irqlevel_changed_(&oldirql, LOWER);
- SetBandwidth(Adapter);
+ SetBandwidth(padapter);
_irqlevel_changed_(&oldirql, RAISE);
RT_TRACE(_module_mp_, _drv_notice_,
@@ -403,7 +424,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_set_antenna_bb_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 antenna;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -440,7 +463,9 @@ _func_exit_;
NDIS_STATUS oid_rt_pro_set_tx_power_control_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 tx_pwr_idx;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -599,7 +624,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_reset_phy_rx_packet_count_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -621,7 +648,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_get_phy_rx_packet_received_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -650,7 +679,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_get_phy_rx_packet_crc32_error_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -680,7 +711,9 @@ _func_exit_;
//**************** oid_rtl_seg_81_80_20 section end ****************
NDIS_STATUS oid_rt_pro_set_continuous_tx_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 bStartTest;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -700,7 +733,7 @@ _func_enter_;
struct mp_priv *pmp_priv = &Adapter->mppriv;
if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1;
- DBG_8192C("%s: pkt tx is running...\n", __func__);
+ DBG_871X("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5);
}
pmp_priv->tx.stop = 0;
@@ -716,7 +749,9 @@ _func_exit_;
NDIS_STATUS oid_rt_pro_set_single_carrier_tx_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 bStartTest;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -736,7 +771,7 @@ _func_enter_;
struct mp_priv *pmp_priv = &Adapter->mppriv;
if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1;
- DBG_8192C("%s: pkt tx is running...\n", __func__);
+ DBG_871X("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5);
}
pmp_priv->tx.stop = 0;
@@ -752,7 +787,9 @@ _func_exit_;
NDIS_STATUS oid_rt_pro_set_carrier_suppression_tx_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 bStartTest;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -772,7 +809,7 @@ _func_enter_;
struct mp_priv *pmp_priv = &Adapter->mppriv;
if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1;
- DBG_8192C("%s: pkt tx is running...\n", __func__);
+ DBG_871X("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5);
}
pmp_priv->tx.stop = 0;
@@ -788,7 +825,9 @@ _func_exit_;
NDIS_STATUS oid_rt_pro_set_single_tone_tx_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 bStartTest;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -820,7 +859,9 @@ NDIS_STATUS oid_rt_pro_trigger_gpio_hdl(struct oid_par_priv *poid_par_priv)
{
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
_func_enter_;
@@ -828,7 +869,7 @@ _func_enter_;
return NDIS_STATUS_NOT_ACCEPTED;
_irqlevel_changed_(&oldirql, LOWER);
- Adapter->HalFunc.SetHwRegHandler(Adapter, HW_VAR_TRIGGER_GPIO_0, 0);
+ rtw_hal_set_hwreg(Adapter, HW_VAR_TRIGGER_GPIO_0, 0);
_irqlevel_changed_(&oldirql, RAISE);
_func_exit_;
@@ -842,7 +883,9 @@ NDIS_STATUS oid_rt_pro8711_join_bss_hdl(struct oid_par_priv *poid_par_priv)
#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PNDIS_802_11_SSID pssid;
@@ -878,7 +921,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_read_register_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
pRW_Reg RegRWStruct;
u32 offset, width;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
@@ -928,7 +973,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_write_register_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
pRW_Reg RegRWStruct;
u32 offset, width, value;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
@@ -989,12 +1036,13 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_burst_read_register_hdl(struct oid_par_priv *poid_par_priv)
{
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
-
+#if 0
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
-
+#endif
pBurst_RW_Reg pBstRwReg;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -1002,30 +1050,34 @@ _func_enter_;
if (poid_par_priv->type_of_oid != QUERY_OID)
return NDIS_STATUS_NOT_ACCEPTED;
-#if 0
+
pBstRwReg = (pBurst_RW_Reg)poid_par_priv->information_buf;
_irqlevel_changed_(&oldirql, LOWER);
- rtw_read_mem(Adapter, pBstRwReg->offset, (u32)pBstRwReg->len, pBstRwReg->Data);
- _irqlevel_changed_(&oldirql,RAISE);
+ rtw_read_mem(padapter, pBstRwReg->offset, (u32)pBstRwReg->len, pBstRwReg->Data);
+ _irqlevel_changed_(&oldirql, RAISE);
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
-#endif
+
RT_TRACE(_module_mp_, _drv_info_, ("-oid_rt_pro_burst_read_register_hdl\n"));
_func_exit_;
return status;
+#else
+ return 0;
+#endif
}
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_burst_write_register_hdl(struct oid_par_priv *poid_par_priv)
{
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
-
+#if 0
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
-
+#endif
pBurst_RW_Reg pBstRwReg;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -1033,27 +1085,33 @@ _func_enter_;
if (poid_par_priv->type_of_oid != SET_OID)
return NDIS_STATUS_NOT_ACCEPTED;
-#if 0
+
pBstRwReg = (pBurst_RW_Reg)poid_par_priv->information_buf;
_irqlevel_changed_(&oldirql, LOWER);
- rtw_write_mem(Adapter, pBstRwReg->offset, (u32)pBstRwReg->len, pBstRwReg->Data);
+ rtw_write_mem(padapter, pBstRwReg->offset, (u32)pBstRwReg->len, pBstRwReg->Data);
_irqlevel_changed_(&oldirql, RAISE);
-#endif
+
RT_TRACE(_module_mp_, _drv_info_, ("-oid_rt_pro_burst_write_register_hdl\n"));
_func_exit_;
return status;
+#else
+ return 0;
+#endif
}
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_write_txcmd_hdl(struct oid_par_priv *poid_par_priv)
{
+#if 0
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
-/*
+
PADAPTER Adapter = (PADAPTER)( poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
TX_CMD_Desc *TxCmd_Info;
@@ -1078,7 +1136,6 @@ _func_enter_;
rtw_write32(Adapter, TxCmd_Info->offset + 4, (unsigned int)TxCmd_Info->TxCMD.value[1]);
_irqlevel_changed_(&oldirql, RAISE);
-*/
RT_TRACE(_module_mp_, _drv_notice_,
("-Set OID_RT_PRO_WRITE_TXCMD: status=0x%08X\n", status));
@@ -1086,17 +1143,21 @@ _func_enter_;
_func_exit_;
return status;
+#else
+ return 0;
+#endif
}
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_read16_eeprom_hdl(struct oid_par_priv *poid_par_priv)
{
- PADAPTER Adapter = (PADAPTER)( poid_par_priv->adapter_context);
-
+#if 0
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
-
+#endif
pEEPROM_RWParam pEEPROM;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -1104,11 +1165,11 @@ _func_enter_;
if (poid_par_priv->type_of_oid != QUERY_OID)
return NDIS_STATUS_NOT_ACCEPTED;
-#if 0
+
pEEPROM = (pEEPROM_RWParam)poid_par_priv->information_buf;
_irqlevel_changed_(&oldirql, LOWER);
- pEEPROM->value = eeprom_read16(Adapter, (u16)(pEEPROM->offset >> 1));
+ pEEPROM->value = eeprom_read16(padapter, (u16)(pEEPROM->offset >> 1));
_irqlevel_changed_(&oldirql, RAISE);
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
@@ -1116,21 +1177,25 @@ _func_enter_;
RT_TRACE(_module_mp_, _drv_notice_,
("-Query OID_RT_PRO_READ16_EEPROM: offset=0x%x value=0x%x\n",
pEEPROM->offset, pEEPROM->value));
-#endif
+
_func_exit_;
return status;
+#else
+ return 0;
+#endif
}
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_write16_eeprom_hdl (struct oid_par_priv *poid_par_priv)
{
- PADAPTER Adapter = (PADAPTER)( poid_par_priv->adapter_context);
-
+#if 0
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
-
+#endif
pEEPROM_RWParam pEEPROM;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -1138,18 +1203,21 @@ _func_enter_;
if (poid_par_priv->type_of_oid != SET_OID)
return NDIS_STATUS_NOT_ACCEPTED;
-#if 0
+
pEEPROM = (pEEPROM_RWParam)poid_par_priv->information_buf;
_irqlevel_changed_(&oldirql, LOWER);
- eeprom_write16(Adapter, (u16)(pEEPROM->offset >> 1), pEEPROM->value);
+ eeprom_write16(padapter, (u16)(pEEPROM->offset >> 1), pEEPROM->value);
_irqlevel_changed_(&oldirql, RAISE);
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
-#endif
+
_func_exit_;
return status;
+#else
+ return 0;
+#endif
}
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro8711_wi_poll_hdl(struct oid_par_priv *poid_par_priv)
@@ -1227,7 +1295,9 @@ NDIS_STATUS oid_rt_rd_attrib_mem_hdl(struct oid_par_priv *poid_par_priv)
struct io_queue *pio_queue = (struct io_queue *)Adapter->pio_queue;
struct intf_hdl *pintfhdl = &pio_queue->intf;
- _irqL oldirql;
+#ifdef PLATFORM_OS_XP
+ _irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
#ifdef CONFIG_SDIO_HCI
@@ -1268,7 +1338,9 @@ NDIS_STATUS oid_rt_wr_attrib_mem_hdl (struct oid_par_priv *poid_par_priv)
struct io_queue *pio_queue = (struct io_queue *)Adapter->pio_queue;
struct intf_hdl *pintfhdl = &pio_queue->intf;
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
#ifdef CONFIG_SDIO_HCI
@@ -1304,7 +1376,9 @@ NDIS_STATUS oid_rt_pro_set_rf_intfs_hdl(struct oid_par_priv *poid_par_priv)
#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
_func_enter_;
@@ -1404,7 +1478,9 @@ NDIS_STATUS oid_rt_pro_set_data_rate_ex_hdl(struct oid_par_priv *poid_par_priv)
{
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
_func_enter_;
@@ -1428,7 +1504,9 @@ _func_exit_;
//-----------------------------------------------------------------------------
NDIS_STATUS oid_rt_get_thermal_meter_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
u8 thermal = 0;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -1460,7 +1538,9 @@ NDIS_STATUS oid_rt_pro_read_tssi_hdl(struct oid_par_priv *poid_par_priv)
#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
_func_enter_;
@@ -1500,7 +1580,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_set_power_tracking_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -1534,14 +1616,15 @@ _func_exit_;
//-----------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_set_basic_rate_hdl(struct oid_par_priv *poid_par_priv)
{
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
-
+#if 0
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
-
+#endif
u32 ratevalue;
u8 datarates[NumRates];
int i;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -1562,7 +1645,7 @@ _func_enter_;
_irqlevel_changed_(&oldirql, LOWER);
- if (rtw_setbasicrate_cmd(Adapter, datarates) != _SUCCESS)
+ if (rtw_setbasicrate_cmd(padapter, datarates) != _SUCCESS)
status = NDIS_STATUS_NOT_ACCEPTED;
_irqlevel_changed_(&oldirql, RAISE);
@@ -1573,6 +1656,9 @@ _func_enter_;
_func_exit_;
return status;
+#else
+ return 0;
+#endif
}
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_qry_pwrstate_hdl(struct oid_par_priv *poid_par_priv)
@@ -1646,7 +1732,9 @@ NDIS_STATUS oid_rt_pro_h2c_set_rate_table_hdl(struct oid_par_priv *poid_par_priv
#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
struct setratable_parm *prate_table;
@@ -1833,13 +1921,15 @@ NDIS_STATUS oid_rt_pro_encryption_ctrl_hdl(struct oid_par_priv *poid_par_priv)
NDIS_STATUS oid_rt_pro_add_sta_info_hdl(struct oid_par_priv *poid_par_priv)
{
#if 0
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+ PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
- _irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+#ifdef PLATFORM_OS_XP
+ _irqL oldirql;
+#endif
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
- struct sta_info *psta = NULL;
- UCHAR *macaddr;
+ struct sta_info *psta = NULL;
+ UCHAR *macaddr;
if (poid_par_priv->type_of_oid != SET_OID)
@@ -1881,13 +1971,15 @@ NDIS_STATUS oid_rt_pro_add_sta_info_hdl(struct oid_par_priv *poid_par_priv)
NDIS_STATUS oid_rt_pro_dele_sta_info_hdl(struct oid_par_priv *poid_par_priv)
{
#if 0
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+ PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
- _irqL irqL;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+#ifdef PLATFORM_OS_XP
+ _irqL oldirql;
+#endif
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
- struct sta_info *psta = NULL;
- UCHAR *macaddr;
+ struct sta_info *psta = NULL;
+ UCHAR *macaddr;
if (poid_par_priv->type_of_oid != SET_OID)
@@ -1914,17 +2006,17 @@ NDIS_STATUS oid_rt_pro_dele_sta_info_hdl(struct oid_par_priv *poid_par_priv)
#endif
}
//------------------------------------------------------------------------------
+#if 0
#include <sdio_osintf.h>
-u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var)
+static u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var)
{
-#if 0
#ifdef CONFIG_SDIO_HCI
if (offset == 1) {
u16 tmp_blk_num;
tmp_blk_num = rtw_read16(padapter, SDIO_RX0_RDYBLK_NUM);
- RT_TRACE(_module_mp_, _drv_err_, ("Query Information, mp_query_drv_var SDIO_RX0_RDYBLK_NUM=0x%x padapter->dvobjpriv.rxblknum=0x%x\n", tmp_blk_num, padapter->dvobjpriv.rxblknum));
- if (padapter->dvobjpriv.rxblknum != tmp_blk_num) {
+ RT_TRACE(_module_mp_, _drv_err_, ("Query Information, mp_query_drv_var SDIO_RX0_RDYBLK_NUM=0x%x adapter_to_dvobj(padapter)->rxblknum=0x%x\n", tmp_blk_num, adapter_to_dvobj(padapter)->rxblknum));
+ if (adapter_to_dvobj(padapter)->rxblknum != tmp_blk_num) {
RT_TRACE(_module_mp_,_drv_err_, ("Query Information, mp_query_drv_var call recv rx\n"));
// sd_recv_rxfifo(padapter);
}
@@ -1973,37 +2065,37 @@ u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var)
else if(offset >110 &&offset <116){
if(115==offset){
RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var(_drv_emerg_): offset(%d): query TRX access type: [tx_block_mode=%x,rx_block_mode=%x]\n",\
- offset,padapter->dvobjpriv.tx_block_mode,padapter->dvobjpriv.rx_block_mode));
+ offset, adapter_to_dvobj(padapter)->tx_block_mode, adapter_to_dvobj(padapter)->rx_block_mode));
}
else {
switch(offset){
case 111:
- padapter->dvobjpriv.tx_block_mode=1;
- padapter->dvobjpriv.rx_block_mode=1;
+ adapter_to_dvobj(padapter)->tx_block_mode=1;
+ adapter_to_dvobj(padapter)->rx_block_mode=1;
RT_TRACE(_module_mp_, _drv_emerg_, \
(" mp_query_drv_var(_drv_emerg_): offset(%d): SET TRX access type:(TX block/RX block) [tx_block_mode=%x,rx_block_mode=%x]\n",\
- offset,padapter->dvobjpriv.tx_block_mode,padapter->dvobjpriv.rx_block_mode));
+ offset, adapter_to_dvobj(padapter)->tx_block_mode, adapter_to_dvobj(padapter)->rx_block_mode));
break;
case 112:
- padapter->dvobjpriv.tx_block_mode=1;
- padapter->dvobjpriv.rx_block_mode=0;
+ adapter_to_dvobj(padapter)->tx_block_mode=1;
+ adapter_to_dvobj(padapter)->rx_block_mode=0;
RT_TRACE(_module_mp_, _drv_emerg_, \
(" mp_query_drv_var(_drv_emerg_): offset(%d): SET TRX access type:(TX block/RX byte) [tx_block_mode=%x,rx_block_mode=%x]\n",\
- offset,padapter->dvobjpriv.tx_block_mode,padapter->dvobjpriv.rx_block_mode));
+ offset, adapter_to_dvobj(padapter)->tx_block_mode, adapter_to_dvobj(padapter)->rx_block_mode));
break;
case 113:
- padapter->dvobjpriv.tx_block_mode=0;
- padapter->dvobjpriv.rx_block_mode=1;
+ adapter_to_dvobj(padapter)->tx_block_mode=0;
+ adapter_to_dvobj(padapter)->rx_block_mode=1;
RT_TRACE(_module_mp_, _drv_emerg_, \
(" mp_query_drv_var(_drv_emerg_): offset(%d): SET TRX access type:(TX byte/RX block) [tx_block_mode=%x,rx_block_mode=%x]\n",\
- offset,padapter->dvobjpriv.tx_block_mode,padapter->dvobjpriv.rx_block_mode));
+ offset, adapter_to_dvobj(padapter)->tx_block_mode, adapter_to_dvobj(padapter)->rx_block_mode));
break;
case 114:
- padapter->dvobjpriv.tx_block_mode=0;
- padapter->dvobjpriv.rx_block_mode=0;
+ adapter_to_dvobj(padapter)->tx_block_mode=0;
+ adapter_to_dvobj(padapter)->rx_block_mode=0;
RT_TRACE(_module_mp_, _drv_emerg_, \
(" mp_query_drv_var(_drv_emerg_): offset(%d): SET TRX access type:(TX byte/RX byte) [tx_block_mode=%x,rx_block_mode=%x]\n",\
- offset,padapter->dvobjpriv.tx_block_mode,padapter->dvobjpriv.rx_block_mode));
+ offset, adapter_to_dvobj(padapter)->tx_block_mode, adapter_to_dvobj(padapter)->rx_block_mode));
break;
default :
break;
@@ -2088,20 +2180,20 @@ u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var)
#endif
return var;
-#else
- return 0;
-#endif
}
+#endif
NDIS_STATUS oid_rt_pro_query_dr_variable_hdl(struct oid_par_priv *poid_par_priv)
{
#if 0
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+ PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
- _irqL oldirql;
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+#ifdef PLATFORM_OS_XP
+ _irqL oldirql;
+#endif
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
- DR_VARIABLE_STRUCT *pdrv_var;
+ DR_VARIABLE_STRUCT *pdrv_var;
if (poid_par_priv->type_of_oid != QUERY_OID)
@@ -2133,12 +2225,12 @@ NDIS_STATUS oid_rt_pro_query_dr_variable_hdl(struct oid_par_priv *poid_par_priv)
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_rx_packet_type_hdl(struct oid_par_priv *poid_par_priv)
{
+#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
RT_TRACE(_module_mp_, _drv_err_, ("oid_rt_pro_rx_packet_type_hdl...................\n"));
-#if 0
if (poid_par_priv->information_buf_len < sizeof (UCHAR)) {
status = NDIS_STATUS_INVALID_LENGTH;
@@ -2178,7 +2270,9 @@ NDIS_STATUS oid_rt_pro_rx_packet_type_hdl(struct oid_par_priv *poid_par_priv)
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_read_efuse_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
PEFUSE_ACCESS_STRUCT pefuse;
u8 *data;
u16 addr = 0, cnts = 0, max_available_size = 0;
@@ -2224,8 +2318,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_write_efuse_hdl(struct oid_par_priv *poid_par_priv)
{
-
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
PEFUSE_ACCESS_STRUCT pefuse;
u8 *data;
u16 addr = 0, cnts = 0, max_available_size = 0;
@@ -2266,9 +2361,10 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_rw_efuse_pgpkt_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
PPGPKT_STRUCT ppgpkt;
- u8 tmpidx;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -2322,7 +2418,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_get_efuse_current_size_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u16 size;
u8 ret;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
@@ -2354,7 +2452,6 @@ NDIS_STATUS oid_rt_get_efuse_max_size_hdl(struct oid_par_priv *poid_par_priv)
{
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
- u16 max_size;
_func_enter_;
@@ -2398,7 +2495,9 @@ _func_exit_;
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_pro_efuse_map_hdl(struct oid_par_priv *poid_par_priv)
{
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u8 *data;
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
@@ -2461,7 +2560,9 @@ NDIS_STATUS oid_rt_set_crystal_cap_hdl(struct oid_par_priv *poid_par_priv)
#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u32 crystal_cap = 0;
@@ -2491,11 +2592,13 @@ _func_exit_;
NDIS_STATUS oid_rt_set_rx_packet_type_hdl(struct oid_par_priv *poid_par_priv)
{
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u8 rx_pkt_type;
- u32 rcr_val32;
+// u32 rcr_val32;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+// PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
_func_enter_;
@@ -2528,9 +2631,9 @@ _func_enter_;
else{
rcr_val8 &= ~(RCR_AAP|RCR_APM|RCR_AM|RCR_AB|RCR_ACRC32);
}
- rtw_write8(Adapter, 0x10250048,rcr_val8);
+ rtw_write8(padapter, 0x10250048,rcr_val8);
#else
- rcr_val32 = rtw_read32(Adapter, RCR);//RCR = 0x10250048
+ rcr_val32 = rtw_read32(padapter, RCR);//RCR = 0x10250048
rcr_val32 &= ~(RCR_CBSSID|RCR_AB|RCR_AM|RCR_APM|RCR_AAP);
#if 0
if(rx_pkt_type == RX_PKT_BROADCAST){
@@ -2565,12 +2668,12 @@ _func_enter_;
}
if (rx_pkt_type == RX_PKT_DEST_ADDR) {
- Adapter->mppriv.check_mp_pkt = 1;
+ padapter->mppriv.check_mp_pkt = 1;
} else {
- Adapter->mppriv.check_mp_pkt = 0;
+ padapter->mppriv.check_mp_pkt = 0;
}
#endif
- rtw_write32(Adapter, RCR, rcr_val32);
+ rtw_write32(padapter, RCR, rcr_val32);
#endif
_irqlevel_changed_(&oldirql, RAISE);
@@ -2585,7 +2688,9 @@ NDIS_STATUS oid_rt_pro_set_tx_agc_offset_hdl(struct oid_par_priv *poid_par_priv)
#if 0
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
u32 txagc;
@@ -2701,7 +2806,7 @@ unsigned int mp_ioctl_xmit_packet_hdl(struct oid_par_priv *poid_par_priv)
struct mp_xmit_packet *pmp_xmitpkt = (struct mp_xmit_packet*)param;
u8 addr3[] = {0x02, 0xE0, 0x4C, 0x87, 0x66, 0x55};
-// DBG_8192C("+mp_ioctl_xmit_packet_hdl\n");
+// DBG_871X("+mp_ioctl_xmit_packet_hdl\n");
pxframe = alloc_mp_xmitframe(&padapter->mppriv);
if (pxframe == NULL)
@@ -2715,10 +2820,10 @@ unsigned int mp_ioctl_xmit_packet_hdl(struct oid_par_priv *poid_par_priv)
pmp_pkt = (unsigned char*)pmp_xmitpkt->mem;
pethhdr = (struct ethhdr *)pmp_pkt;
- //DBG_8192C("payload_len=%d, pkt_mem=0x%x\n", pmp_xmitpkt->len, (void*)pmp_xmitpkt->mem);
+ //DBG_871X("payload_len=%d, pkt_mem=0x%x\n", pmp_xmitpkt->len, (void*)pmp_xmitpkt->mem);
- //DBG_8192C("pxframe=0x%x\n", (void*)pxframe);
- //DBG_8192C("pxframe->mem=0x%x\n", (void*)pxframe->mem);
+ //DBG_871X("pxframe=0x%x\n", (void*)pxframe);
+ //DBG_871X("pxframe->mem=0x%x\n", (void*)pxframe->mem);
//update attribute
pattrib = &pxframe->attrib;
@@ -2771,10 +2876,16 @@ unsigned int mp_ioctl_xmit_packet_hdl(struct oid_par_priv *poid_par_priv)
//------------------------------------------------------------------------------
NDIS_STATUS oid_rt_set_power_down_hdl(struct oid_par_priv *poid_par_priv)
{
- PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
- NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+#ifdef PLATFORM_OS_XP
_irqL oldirql;
+#endif
u8 bpwrup;
+ NDIS_STATUS status = NDIS_STATUS_SUCCESS;
+#ifdef PLATFORM_LINUX
+#ifdef CONFIG_SDIO_HCI
+ PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context);
+#endif
+#endif
_func_enter_;
@@ -2792,7 +2903,7 @@ _func_enter_;
//CALL the power_down function
#ifdef PLATFORM_LINUX
#ifdef CONFIG_SDIO_HCI
- dev_power_down(Adapter,bpwrup);
+ dev_power_down(padapter,bpwrup);
#endif
#endif
_irqlevel_changed_(&oldirql, RAISE);
@@ -2810,7 +2921,9 @@ NDIS_STATUS oid_rt_get_power_mode_hdl(struct oid_par_priv *poid_par_priv)
#if 0
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context);
+//#ifdef PLATFORM_OS_XP
// _irqL oldirql;
+//#endif
_func_enter_;
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_p2p.c b/drivers/net/wireless/rtl8192cu/core/rtw_p2p.c
index 1df9d62..66c5f96 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_p2p.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_p2p.c
@@ -25,31 +25,24 @@
#ifdef CONFIG_P2P
-int is_any_client_associated( _adapter *padapter )
+int rtw_p2p_is_channel_list_ok( u8 desired_ch, u8* ch_list, u8 ch_cnt )
{
- _irqL irqL;
- _list *phead, *plist;
- int intFound = _FALSE;
-
- struct sta_priv *pstapriv = &padapter->stapriv;
+ int found = 0, i = 0;
- _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- phead = &pstapriv->asoc_list;
- plist = get_next(phead);
-
- if ( rtw_end_of_queue_search(phead, plist) == _TRUE )
+ for( i = 0; i < ch_cnt; i++ )
{
- intFound = _FALSE;
- }
- else
- {
- intFound = _TRUE;
+ if ( ch_list[ i ] == desired_ch )
+ {
+ found = 1;
+ break;
+ }
}
-
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ return( found );
+}
- return( intFound );
-
+int is_any_client_associated(_adapter *padapter)
+{
+ return padapter->stapriv.asoc_list_cnt ? _TRUE : _FALSE;
}
static u32 go_add_group_info_attr(struct wifidirect_info *pwdinfo, u8 *pbuf)
@@ -544,7 +537,7 @@ u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -572,24 +565,24 @@ u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- if ( rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ if ( P2P_ROLE_GO == pwdinfo->role )
{
if ( is_any_client_associated( pwdinfo->padapter ) )
{
- // WFD primary sink + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ // WFD primary sink + WiFi Direct mode + WSD (WFD Service Discovery)
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD );
}
else
{
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD (WFD Service Discovery)
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
}
}
else
{
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
}
wfdielen += 2;
@@ -634,13 +627,20 @@ u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -654,7 +654,7 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -681,8 +681,23 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+
+ if ( 1 == pwdinfo->wfd_tdls_enable )
+ {
+ // WFD primary sink + available for WFD session + WiFi TDLS mode + WSC ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type |
+ WFD_DEVINFO_SESSION_AVAIL |
+ WFD_DEVINFO_WSD |
+ WFD_DEVINFO_PC_TDLS );
+ }
+ else
+ {
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSC ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type |
+ WFD_DEVINFO_SESSION_AVAIL |
+ WFD_DEVINFO_WSD );
+ }
+
wfdielen += 2;
// Value2:
@@ -725,13 +740,20 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -739,13 +761,13 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
}
-u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
+u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 tunneled)
{
u8 wfdie[ MAX_WFD_IE_LEN] = { 0x00 };
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -773,25 +795,65 @@ u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
+ // WFD primary sink + available for WFD session + WiFi Direct mode
- if (rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ if ( _TRUE == pwdinfo->session_available )
{
- if ( is_any_client_associated( pwdinfo->padapter ) )
+ if ( P2P_ROLE_GO == pwdinfo->role )
{
- // WFD primary sink + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ if ( is_any_client_associated( pwdinfo->padapter ) )
+ {
+ if ( pwdinfo->wfd_tdls_enable )
+ {
+ // TDLS mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD | WFD_DEVINFO_PC_TDLS | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ else
+ {
+ // WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ }
+ else
+ {
+ if ( pwdinfo->wfd_tdls_enable )
+ {
+ // available for WFD session + TDLS mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD | WFD_DEVINFO_PC_TDLS | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ else
+ {
+ // available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ }
}
else
{
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
- }
+ if ( pwdinfo->wfd_tdls_enable )
+ {
+ // available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD | WFD_DEVINFO_PC_TDLS | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ else
+ {
+ // available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ }
}
else
{
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ if ( pwdinfo->wfd_tdls_enable )
+ {
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD |WFD_DEVINFO_PC_TDLS | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+ else
+ {
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD | WFD_DEVINFO_HDCP_SUPPORT);
+ }
+
}
wfdielen += 2;
@@ -836,15 +898,22 @@ u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
- if ( rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) )
+ if ( P2P_ROLE_GO == pwdinfo->role )
{
// WFD Session Information ATTR
// Type:
@@ -858,6 +927,28 @@ u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Todo: to add the list of WFD device info descriptor in WFD group.
}
+#ifdef CONFIG_CONCURRENT_MODE
+#ifdef CONFIG_TDLS
+ if ( ( tunneled == 0 ) && ( padapter->pbuddy_adapter->wdinfo.wfd_tdls_enable == 1 ) )
+ {
+ // Alternative MAC Address ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_ALTER_MAC;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, ETH_ALEN );
+ wfdielen += 2;
+
+ // Value:
+ // Alternative MAC Address
+ _rtw_memcpy( wfdie + wfdielen, &padapter->pbuddy_adapter->eeprompriv.mac_addr[ 0 ], ETH_ALEN );
+ // This mac address is used to make the WFD session when TDLS is enable.
+
+ wfdielen += ETH_ALEN;
+ }
+#endif // CONFIG_TDLS
+#endif // CONFIG_CONCURRENT_MODE
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -881,7 +972,7 @@ u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
padapter = pwdinfo->padapter;
pmlmepriv = &padapter->mlmepriv;
- pwfd_info = &padapter->wdinfo.wfd_info;
+ pwfd_info = padapter->wdinfo.wfd_info;
wfdielen = 0;
wfdie[ wfdielen++ ] = 0x50;
@@ -907,8 +998,8 @@ u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
wfdielen += 2;
// Value2:
@@ -951,13 +1042,20 @@ u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -971,7 +1069,7 @@ u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -998,8 +1096,8 @@ u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
wfdielen += 2;
// Value2:
@@ -1042,13 +1140,20 @@ u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -1062,7 +1167,7 @@ u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -1089,8 +1194,8 @@ u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ // WFD primary sink + WiFi Direct mode + WSD ( WFD Service Discovery ) + WFD Session Available
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD | WFD_DEVINFO_SESSION_AVAIL);
wfdielen += 2;
// Value2:
@@ -1133,13 +1238,20 @@ u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -1153,7 +1265,7 @@ u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -1180,8 +1292,8 @@ u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ // WFD primary sink + WiFi Direct mode + WSD ( WFD Service Discovery ) + WFD Session Available
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD | WFD_DEVINFO_SESSION_AVAIL);
wfdielen += 2;
// Value2:
@@ -1224,13 +1336,20 @@ u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -1245,7 +1364,7 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -1272,8 +1391,8 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ // WFD primary sink + WiFi Direct mode + WSD ( WFD Service Discovery ) + WFD Session Available
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_WSD | WFD_DEVINFO_SESSION_AVAIL);
wfdielen += 2;
// Value2:
@@ -1316,13 +1435,20 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -1331,13 +1457,13 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
}
-u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
+u32 build_invitation_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
{
u8 wfdie[ MAX_WFD_IE_LEN] = { 0x00 };
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -1364,8 +1490,8 @@ u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
wfdielen += 2;
// Value2:
@@ -1408,14 +1534,35 @@ u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+
+ if ( P2P_ROLE_GO == pwdinfo->role )
+ {
+ // WFD Session Information ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_SESSION_INFO;
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0000);
+ wfdielen += 2;
+
+ // Todo: to add the list of WFD device info descriptor in WFD group.
+
+ }
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -1423,13 +1570,13 @@ u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
}
-u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
+u32 build_invitation_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
{
u8 wfdie[ MAX_WFD_IE_LEN] = { 0x00 };
u32 len=0, wfdielen = 0;
_adapter *padapter = pwdinfo->padapter;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct wifi_display_info* pwfd_info = &padapter->wdinfo.wfd_info;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
// WFD OUI
wfdielen = 0;
@@ -1439,7 +1586,7 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0x0A; // WFA WFD v1.0
// Commented by Albert 20110825
- // According to the WFD Specification, the provision discovery response frame should contain 3 WFD attributes
+ // According to the WFD Specification, the provision discovery request frame should contain 3 WFD attributes
// 1. WFD Device Information
// 2. Associated BSSID ( Optional )
// 3. Local IP Adress ( Optional )
@@ -1456,8 +1603,8 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Value1:
// WFD device information
- // WFD primary sink + available for WFD session + WiFi Direct mode
- RTW_PUT_BE16(wfdie + wfdielen, 0x0011);
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
wfdielen += 2;
// Value2:
@@ -1500,13 +1647,35 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// Length:
// Note: In the WFD specification, the size of length field is 2.
- RTW_PUT_BE16(wfdie + wfdielen, 0x0001);
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
wfdielen += 2;
// Value:
// Coupled Sink Status bitmap
// Not coupled/available for Coupling
wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+
+ if ( P2P_ROLE_GO == pwdinfo->role )
+ {
+ // WFD Session Information ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_SESSION_INFO;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0000);
+ wfdielen += 2;
+
+ // Todo: to add the list of WFD device info descriptor in WFD group.
+
+ }
pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
@@ -1514,68 +1683,280 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
}
+u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
+{
+ u8 wfdie[ MAX_WFD_IE_LEN] = { 0x00 };
+ u32 len=0, wfdielen = 0;
+ _adapter *padapter = pwdinfo->padapter;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
-#endif //CONFIG_WFD
+ // WFD OUI
+ wfdielen = 0;
+ wfdie[ wfdielen++ ] = 0x50;
+ wfdie[ wfdielen++ ] = 0x6F;
+ wfdie[ wfdielen++ ] = 0x9A;
+ wfdie[ wfdielen++ ] = 0x0A; // WFA WFD v1.0
-u32 build_probe_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
-{
- u8 p2pie[ MAX_P2P_IE_LEN] = { 0x00 };
- u32 len=0, p2pielen = 0;
+ // Commented by Albert 20110825
+ // According to the WFD Specification, the provision discovery request frame should contain 3 WFD attributes
+ // 1. WFD Device Information
+ // 2. Associated BSSID ( Optional )
+ // 3. Local IP Adress ( Optional )
- // P2P OUI
- p2pielen = 0;
- p2pie[ p2pielen++ ] = 0x50;
- p2pie[ p2pielen++ ] = 0x6F;
- p2pie[ p2pielen++ ] = 0x9A;
- p2pie[ p2pielen++ ] = 0x09; // WFA P2P v1.0
- // Commented by Albert 20100907
- // According to the P2P Specification, the probe response frame should contain 5 P2P attributes
- // 1. P2P Capability
- // 2. Extended Listen Timing
- // 3. Notice of Absence ( NOA ) ( Only GO needs this )
- // 4. Device Info
- // 5. Group Info ( Only GO need this )
+ // WFD Device Information ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_DEVICE_INFO;
- // P2P Capability ATTR
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0006);
+ wfdielen += 2;
+
+ // Value1:
+ // WFD device information
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
+ wfdielen += 2;
+
+ // Value2:
+ // Session Management Control Port
+ // Default TCP port for RTSP messages is 554
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->rtsp_ctrlport );
+ wfdielen += 2;
+
+ // Value3:
+ // WFD Device Maximum Throughput
+ // 300Mbps is the maximum throughput
+ RTW_PUT_BE16(wfdie + wfdielen, 300);
+ wfdielen += 2;
+
+ // Associated BSSID ATTR
// Type:
- p2pie[ p2pielen++ ] = P2P_ATTR_CAPABILITY;
+ wfdie[ wfdielen++ ] = WFD_ATTR_ASSOC_BSSID;
// Length:
- //*(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0002 );
- RTW_PUT_LE16(p2pie + p2pielen, 0x0002);
- p2pielen += 2;
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0006);
+ wfdielen += 2;
// Value:
- // Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC|P2P_DEVCAP_CLIENT_DISCOVERABILITY;
-
- // Group Capability Bitmap, 1 byte
- if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ // Associated BSSID
+ if ( check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE )
{
- p2pie[ p2pielen ] = (P2P_GRPCAP_GO | P2P_GRPCAP_INTRABSS);
-
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_PROVISIONING_ING))
- p2pie[ p2pielen ] |= P2P_GRPCAP_GROUP_FORMATION;
-
- p2pielen++;
+ _rtw_memcpy( wfdie + wfdielen, &pmlmepriv->assoc_bssid[ 0 ], ETH_ALEN );
}
- else if ( rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE) )
+ else
{
- // Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ _rtw_memset( wfdie + wfdielen, 0x00, ETH_ALEN );
}
- // Extended Listen Timing ATTR
+ wfdielen += ETH_ALEN;
+
+ // Coupled Sink Information ATTR
// Type:
- p2pie[ p2pielen++ ] = P2P_ATTR_EX_LISTEN_TIMING;
+ wfdie[ wfdielen++ ] = WFD_ATTR_COUPLED_SINK_INFO;
// Length:
- //*(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0004 );
- RTW_PUT_LE16(p2pie + p2pielen, 0x0004);
- p2pielen += 2;
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
+ wfdielen += 2;
+
+ // Value:
+ // Coupled Sink Status bitmap
+ // Not coupled/available for Coupling
+ wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+
+
+ pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
+
+ return len;
+
+}
+
+u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
+{
+ u8 wfdie[ MAX_WFD_IE_LEN] = { 0x00 };
+ u32 len=0, wfdielen = 0;
+ _adapter *padapter = pwdinfo->padapter;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct wifi_display_info* pwfd_info = padapter->wdinfo.wfd_info;
+
+ // WFD OUI
+ wfdielen = 0;
+ wfdie[ wfdielen++ ] = 0x50;
+ wfdie[ wfdielen++ ] = 0x6F;
+ wfdie[ wfdielen++ ] = 0x9A;
+ wfdie[ wfdielen++ ] = 0x0A; // WFA WFD v1.0
+
+ // Commented by Albert 20110825
+ // According to the WFD Specification, the provision discovery response frame should contain 3 WFD attributes
+ // 1. WFD Device Information
+ // 2. Associated BSSID ( Optional )
+ // 3. Local IP Adress ( Optional )
+
+
+ // WFD Device Information ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_DEVICE_INFO;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0006);
+ wfdielen += 2;
+
+ // Value1:
+ // WFD device information
+ // WFD primary sink + available for WFD session + WiFi Direct mode + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL | WFD_DEVINFO_WSD );
+ wfdielen += 2;
+
+ // Value2:
+ // Session Management Control Port
+ // Default TCP port for RTSP messages is 554
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->rtsp_ctrlport );
+ wfdielen += 2;
+
+ // Value3:
+ // WFD Device Maximum Throughput
+ // 300Mbps is the maximum throughput
+ RTW_PUT_BE16(wfdie + wfdielen, 300);
+ wfdielen += 2;
+
+ // Associated BSSID ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_ASSOC_BSSID;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0006);
+ wfdielen += 2;
+
+ // Value:
+ // Associated BSSID
+ if ( check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE )
+ {
+ _rtw_memcpy( wfdie + wfdielen, &pmlmepriv->assoc_bssid[ 0 ], ETH_ALEN );
+ }
+ else
+ {
+ _rtw_memset( wfdie + wfdielen, 0x00, ETH_ALEN );
+ }
+
+ wfdielen += ETH_ALEN;
+
+ // Coupled Sink Information ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_COUPLED_SINK_INFO;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0007);
+ wfdielen += 2;
+
+ // Value:
+ // Coupled Sink Status bitmap
+ // Not coupled/available for Coupling
+ wfdie[ wfdielen++ ] = 0;
+ // MAC Addr.
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+ wfdie[ wfdielen++ ] = 0;
+
+ pbuf = rtw_set_ie(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len);
+
+ return len;
+
+}
+
+#endif //CONFIG_WFD
+
+u32 build_probe_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
+{
+ u8 p2pie[ MAX_P2P_IE_LEN] = { 0x00 };
+ u32 len=0, p2pielen = 0;
+#ifdef CONFIG_INTEL_WIDI
+ struct mlme_priv *pmlmepriv = &(pwdinfo->padapter->mlmepriv);
+ u8 zero_array_check[L2SDTA_SERVICE_VE_LEN] = { 0x00 };
+ u8 widi_version = 0, i = 0;
+
+ if( _rtw_memcmp( pmlmepriv->sa_ext, zero_array_check, L2SDTA_SERVICE_VE_LEN ) == _FALSE )
+ {
+ widi_version = 35;
+ }
+ else if( pmlmepriv->num_p2p_sdt != 0 )
+ {
+ widi_version = 40;
+ }
+#endif //CONFIG_INTEL_WIDI
+
+ // P2P OUI
+ p2pielen = 0;
+ p2pie[ p2pielen++ ] = 0x50;
+ p2pie[ p2pielen++ ] = 0x6F;
+ p2pie[ p2pielen++ ] = 0x9A;
+ p2pie[ p2pielen++ ] = 0x09; // WFA P2P v1.0
+
+ // Commented by Albert 20100907
+ // According to the P2P Specification, the probe response frame should contain 5 P2P attributes
+ // 1. P2P Capability
+ // 2. Extended Listen Timing
+ // 3. Notice of Absence ( NOA ) ( Only GO needs this )
+ // 4. Device Info
+ // 5. Group Info ( Only GO need this )
+
+ // P2P Capability ATTR
+ // Type:
+ p2pie[ p2pielen++ ] = P2P_ATTR_CAPABILITY;
+
+ // Length:
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0002 );
+ RTW_PUT_LE16(p2pie + p2pielen, 0x0002);
+ p2pielen += 2;
+
+ // Value:
+ // Device Capability Bitmap, 1 byte
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
+
+ // Group Capability Bitmap, 1 byte
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ {
+ p2pie[ p2pielen ] = (P2P_GRPCAP_GO | P2P_GRPCAP_INTRABSS);
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_PROVISIONING_ING))
+ p2pie[ p2pielen ] |= P2P_GRPCAP_GROUP_FORMATION;
+
+ p2pielen++;
+ }
+ else if ( rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE) )
+ {
+ // Group Capability Bitmap, 1 byte
+ if ( pwdinfo->persistent_supported )
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_PERSISTENT_GROUP | DMP_P2P_GRPCAP_SUPPORT;
+ else
+ p2pie[ p2pielen++ ] = DMP_P2P_GRPCAP_SUPPORT;
+
+ }
+
+ // Extended Listen Timing ATTR
+ // Type:
+ p2pie[ p2pielen++ ] = P2P_ATTR_EX_LISTEN_TIMING;
+
+ // Length:
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 0x0004 );
+ RTW_PUT_LE16(p2pie + p2pielen, 0x0004);
+ p2pielen += 2;
// Value:
// Availability Period
@@ -1606,6 +1987,17 @@ u32 build_probe_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
// 21 -> P2P Device Address (6bytes) + Config Methods (2bytes) + Primary Device Type (8bytes)
// + NumofSecondDevType (1byte) + WPS Device Name ID field (2bytes) + WPS Device Name Len field (2bytes)
//*(u16*) ( p2pie + p2pielen ) = cpu_to_le16( 21 + pwdinfo->device_name_len );
+#ifdef CONFIG_INTEL_WIDI
+ if( widi_version == 35 )
+ {
+ RTW_PUT_LE16(p2pie + p2pielen, 21 + 8 + pwdinfo->device_name_len);
+ }
+ else if( widi_version == 40 )
+ {
+ RTW_PUT_LE16(p2pie + p2pielen, 21 + 8 * pmlmepriv->num_p2p_sdt + pwdinfo->device_name_len);
+ }
+ else
+#endif //CONFIG_INTEL_WIDI
RTW_PUT_LE16(p2pie + p2pielen, 21 + pwdinfo->device_name_len);
p2pielen += 2;
@@ -1620,23 +2012,77 @@ u32 build_probe_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
RTW_PUT_BE16(p2pie + p2pielen, pwdinfo->supported_wps_cm);
p2pielen += 2;
- // Primary Device Type
- // Category ID
- //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
- RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_CID_RTK_WIDI);
- p2pielen += 2;
+#ifdef CONFIG_INTEL_WIDI
+ if( widi_version == 40 )
+ {
+ // Primary Device Type
+ // Category ID
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
+ RTW_PUT_BE16(p2pie + p2pielen, pmlmepriv->p2p_pdt_cid );
+ p2pielen += 2;
- // OUI
- //*(u32*) ( p2pie + p2pielen ) = cpu_to_be32( WPSOUI );
- RTW_PUT_BE32(p2pie + p2pielen, WPSOUI);
- p2pielen += 4;
+ // OUI
+ //*(u32*) ( p2pie + p2pielen ) = cpu_to_be32( WPSOUI );
+ RTW_PUT_BE32(p2pie + p2pielen, WPSOUI);
+ p2pielen += 4;
- // Sub Category ID
- //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
- RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_SCID_RTK_DMP);
- p2pielen += 2;
+ // Sub Category ID
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
+ RTW_PUT_BE16(p2pie + p2pielen, pmlmepriv->p2p_pdt_scid);
+ p2pielen += 2;
+ }
+ else
+#endif //CONFIG_INTEL_WIDI
+ {
+ // Primary Device Type
+ // Category ID
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
+ RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_CID_MULIT_MEDIA);
+ p2pielen += 2;
+
+ // OUI
+ //*(u32*) ( p2pie + p2pielen ) = cpu_to_be32( WPSOUI );
+ RTW_PUT_BE32(p2pie + p2pielen, WPSOUI);
+ p2pielen += 4;
+
+ // Sub Category ID
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
+ RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_SCID_MEDIA_SERVER);
+ p2pielen += 2;
+ }
// Number of Secondary Device Types
+#ifdef CONFIG_INTEL_WIDI
+ if( widi_version == 35 )
+ {
+ p2pie[ p2pielen++ ] = 0x01;
+
+ RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_CID_DISPLAYS);
+ p2pielen += 2;
+
+ RTW_PUT_BE32(p2pie + p2pielen, INTEL_DEV_TYPE_OUI);
+ p2pielen += 4;
+
+ RTW_PUT_BE16(p2pie + p2pielen, P2P_SCID_WIDI_CONSUMER_SINK);
+ p2pielen += 2;
+ }
+ else if( widi_version == 40 )
+ {
+ p2pie[ p2pielen++ ] = pmlmepriv->num_p2p_sdt;
+ for( ; i < pmlmepriv->num_p2p_sdt; i++ )
+ {
+ RTW_PUT_BE16(p2pie + p2pielen, pmlmepriv->p2p_sdt_cid[i]);
+ p2pielen += 2;
+
+ RTW_PUT_BE32(p2pie + p2pielen, INTEL_DEV_TYPE_OUI);
+ p2pielen += 4;
+
+ RTW_PUT_BE16(p2pie + p2pielen, pmlmepriv->p2p_sdt_scid[i]);
+ p2pielen += 2;
+ }
+ }
+ else
+#endif //CONFIG_INTEL_WIDI
p2pie[ p2pielen++ ] = 0x00; // No Secondary Device Type List
// Device Name
@@ -1654,7 +2100,6 @@ u32 build_probe_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
_rtw_memcpy( p2pie + p2pielen, pwdinfo->device_name, pwdinfo->device_name_len );
p2pielen += pwdinfo->device_name_len;
-
// Group Info ATTR
// Type:
// Length:
@@ -1701,12 +2146,13 @@ u32 build_prov_disc_request_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8
// Value:
// Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
- p2pie[ p2pielen++ ] = P2P_DEVCAP_INVITATION_PROC;
+ p2pie[ p2pielen++ ] = DMP_P2P_DEVCAP_SUPPORT;
// Group Capability Bitmap, 1 byte
- p2pie[ p2pielen++ ] = 0x00;
+ if ( pwdinfo->persistent_supported )
+ p2pie[ p2pielen++ ] = P2P_GRPCAP_PERSISTENT_GROUP | DMP_P2P_GRPCAP_SUPPORT;
+ else
+ p2pie[ p2pielen++ ] = DMP_P2P_GRPCAP_SUPPORT;
// Device Info ATTR
@@ -1742,8 +2188,8 @@ u32 build_prov_disc_request_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8
// Primary Device Type
// Category ID
- //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_RTK_WIDI );
- RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_CID_RTK_WIDI);
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_CID_MULIT_MEDIA );
+ RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_CID_MULIT_MEDIA);
p2pielen += 2;
// OUI
@@ -1752,8 +2198,8 @@ u32 build_prov_disc_request_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8
p2pielen += 4;
// Sub Category ID
- //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_RTK_DMP );
- RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_SCID_RTK_DMP);
+ //*(u16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_PDT_SCID_MEDIA_SERVER );
+ RTW_PUT_BE16(p2pie + p2pielen, WPS_PDT_SCID_MEDIA_SERVER);
p2pielen += 2;
// Number of Secondary Device Types
@@ -1896,6 +2342,7 @@ u32 process_probe_req_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pframe, uint l
p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _SSID_IE_, (int *)&ssid_len,
len - WLAN_HDR_A3_LEN - _PROBEREQ_IE_OFFSET_);
+ ssid_len &= 0xff; // Just last 1 byte is valid for ssid len of the probe request
if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE) || rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
{
if((p2pie=rtw_get_p2p_ie( pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_ , len - WLAN_HDR_A3_LEN - _PROBEREQ_IE_OFFSET_ , NULL, &p2pielen)))
@@ -1907,6 +2354,10 @@ u32 process_probe_req_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pframe, uint l
//Check Device ID attribute in P2P IE
ret = _TRUE;
+ }
+ else if ( (p != NULL) && ( ssid_len == 0 ) )
+ {
+ ret = _TRUE;
}
}
else
@@ -2182,7 +2633,7 @@ u8 process_p2p_provdisc_req(struct wifidirect_info *pwdinfo, u8 *pframe, uint l
issue_p2p_provision_resp( pwdinfo, GetAddr2Ptr(pframe), frame_body, uconfig_method);
}
}
- DBG_8192C( "[%s] config method = %s\n", __FUNCTION__, pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req );
+ DBG_871X( "[%s] config method = %s\n", __FUNCTION__, pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req );
return _TRUE;
}
@@ -2193,31 +2644,93 @@ u8 process_p2p_provdisc_resp(struct wifidirect_info *pwdinfo, u8 *pframe)
return _TRUE;
}
+u8 rtw_p2p_get_peer_ch_list(struct wifidirect_info *pwdinfo, u8 *ch_content, u8 ch_cnt, u8 *peer_ch_list)
+{
+ u8 i = 0, j = 0;
+ u8 temp = 0;
+ u8 ch_no = 0;
+ ch_content += 3;
+ ch_cnt -= 3;
+
+ while( ch_cnt > 0)
+ {
+ ch_content += 1;
+ ch_cnt -= 1;
+ temp = *ch_content;
+ for( i = 0 ; i < temp ; i++, j++ )
+ {
+ peer_ch_list[j] = *( ch_content + 1 + i );
+ }
+ ch_content += (temp + 1);
+ ch_cnt -= (temp + 1);
+ ch_no += temp ;
+ }
+
+ return ch_no;
+}
+
+u8 rtw_p2p_check_peer_oper_ch(struct mlme_ext_priv *pmlmeext, u8 ch)
+{
+ u8 i = 0;
+
+ for( i = 0; i < pmlmeext->max_chan_nums; i++ )
+ {
+ if ( pmlmeext->channel_set[ i ].ChannelNum == ch )
+ {
+ return _SUCCESS;
+ }
+ }
+
+ return _FAIL;
+}
+
+u8 rtw_p2p_ch_inclusion(struct mlme_ext_priv *pmlmeext, u8 *peer_ch_list, u8 peer_ch_num, u8 *ch_list_inclusioned)
+{
+ int i = 0, j = 0, temp = 0;
+ u8 ch_no = 0;
+
+ for( i = 0; i < peer_ch_num; i++ )
+ {
+ for( j = temp; j < pmlmeext->max_chan_nums; j++ )
+ {
+ if( *( peer_ch_list + i ) == pmlmeext->channel_set[ j ].ChannelNum )
+ {
+ ch_list_inclusioned[ ch_no++ ] = *( peer_ch_list + i );
+ temp = j;
+ break;
+ }
+ }
+ }
+ return ch_no;
+}
u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe, uint len )
{
+ _adapter *padapter = pwdinfo->padapter;
u8 result = P2P_STATUS_SUCCESS;
u32 p2p_ielen = 0, wps_ielen = 0;
u8 * ies;
u32 ies_len;
- u8 * p2p_ie;
- u8 *wpsie;
+ u8 *p2p_ie;
+ u8 *wpsie;
u16 wps_devicepassword_id = 0x0000;
uint wps_devicepassword_id_len = 0;
#ifdef CONFIG_WFD
u8 wfd_ie[ 128 ] = { 0x00 };
u32 wfd_ielen = 0;
+#ifdef CONFIG_TDLS
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+#endif // CONFIG_TDLS
#endif // CONFIG_WFD
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = pwdinfo->padapter->pbuddy_adapter;
+ struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif
- if ( pwdinfo->ui_got_wps_info == P2P_NO_WPSINFO )
- {
- result = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
- rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
- return( result );
- }
-
- if ( (wpsie=rtw_get_wps_ie( pframe + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &wps_ielen)) )
+ if ( (wpsie=rtw_get_wps_ie( pframe + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &wps_ielen)) )
{
// Commented by Kurt 20120113
// If some device wants to do p2p handshake without sending prov_disc_req
@@ -2243,12 +2756,19 @@ u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe
}
else
{
- DBG_8192C( "[%s] WPS IE not Found!!\n", __FUNCTION__ );
+ DBG_871X( "[%s] WPS IE not Found!!\n", __FUNCTION__ );
result = P2P_STATUS_FAIL_INCOMPATIBLE_PARAM;
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
return( result );
}
+ if ( pwdinfo->ui_got_wps_info == P2P_NO_WPSINFO )
+ {
+ result = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_TX_INFOR_NOREADY);
+ return( result );
+ }
+
ies = pframe + _PUBLIC_ACTION_IE_OFFSET_;
ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
@@ -2256,7 +2776,7 @@ u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe
if ( !p2p_ie )
{
- DBG_8192C( "[%s] P2P IE not Found!!\n", __FUNCTION__ );
+ DBG_871X( "[%s] P2P IE not Found!!\n", __FUNCTION__ );
result = P2P_STATUS_FAIL_INCOMPATIBLE_PARAM;
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
}
@@ -2265,12 +2785,30 @@ u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe
{
u8 attr_content = 0x00;
u32 attr_contentlen = 0;
+ u8 ch_content[100] = { 0x00 };
+ uint ch_cnt = 0;
+ u8 peer_ch_list[100] = { 0x00 };
+ u8 peer_ch_num = 0;
+ u8 ch_list_inclusioned[100] = { 0x00 };
+ u8 ch_num_inclusioned = 0;
+ u16 cap_attr;
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_ING);
-
+
+ //Check P2P Capability ATTR
+ if(rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CAPABILITY, (u8*)&cap_attr, (uint*)&attr_contentlen) )
+ {
+ cap_attr = le16_to_cpu(cap_attr);
+
+#if defined(CONFIG_WFD) && defined(CONFIG_TDLS)
+ if(!(cap_attr & P2P_GRPCAP_INTRABSS) )
+ ptdlsinfo->ap_prohibited = _TRUE;
+#endif //defined(CONFIG_WFD) && defined(CONFIG_TDLS)
+ }
+
if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GO_INTENT , &attr_content, &attr_contentlen) )
{
- DBG_8192C( "[%s] GO Intent = %d, tie = %d\n", __FUNCTION__, attr_content >> 1, attr_content & 0x01 );
+ DBG_871X( "[%s] GO Intent = %d, tie = %d\n", __FUNCTION__, attr_content >> 1, attr_content & 0x01 );
pwdinfo->peer_intent = attr_content; // include both intent and tie breaker values.
if ( pwdinfo->intent == ( pwdinfo->peer_intent >> 1 ) )
@@ -2320,6 +2858,64 @@ u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe
}
}
+ if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, ch_content, &ch_cnt) )
+ {
+ peer_ch_num = rtw_p2p_get_peer_ch_list(pwdinfo, ch_content, ch_cnt, peer_ch_list);
+ ch_num_inclusioned = rtw_p2p_ch_inclusion(&padapter->mlmeextpriv, peer_ch_list, peer_ch_num, ch_list_inclusioned);
+
+ if( ch_num_inclusioned == 0)
+ {
+ DBG_871X( "[%s] No common channel in channel list!\n", __FUNCTION__ );
+ result = P2P_STATUS_FAIL_NO_COMMON_CH;
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
+ break;
+ }
+
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ {
+ if ( !rtw_p2p_is_channel_list_ok( pwdinfo->operating_channel,
+ ch_list_inclusioned, ch_num_inclusioned) )
+ {
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ DBG_871X( "[%s] desired channel NOT Found!\n", __FUNCTION__ );
+ result = P2P_STATUS_FAIL_NO_COMMON_CH;
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
+ break;
+ }
+ else
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ u8 operatingch_info[5] = { 0x00 }, peer_operating_ch = 0;
+ attr_contentlen = 0;
+
+ if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, operatingch_info, &attr_contentlen) )
+ {
+ peer_operating_ch = operatingch_info[4];
+ }
+
+ if ( rtw_p2p_is_channel_list_ok( peer_operating_ch,
+ ch_list_inclusioned, ch_num_inclusioned) )
+ {
+ /**
+ * Change our operating channel as peer's for compatibility.
+ */
+ pwdinfo->operating_channel = peer_operating_ch;
+ DBG_871X( "[%s] Change op ch to %02x as peer's\n", __FUNCTION__, pwdinfo->operating_channel);
+ }
+ else
+ {
+ // Take first channel of ch_list_inclusioned as operating channel
+ pwdinfo->operating_channel = ch_list_inclusioned[0];
+ DBG_871X( "[%s] Change op ch to %02x\n", __FUNCTION__, pwdinfo->operating_channel);
+ }
+ }
+
+ }
+ }
+ }
+
//Get the next P2P IE
p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
}
@@ -2332,12 +2928,12 @@ u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe
u8 attr_content[ 10 ] = { 0x00 };
u32 attr_contentlen = 0;
- DBG_8192C( "[%s] WFD IE Found!!\n", __FUNCTION__ );
+ DBG_871X( "[%s] WFD IE Found!!\n", __FUNCTION__ );
rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
if ( attr_contentlen )
{
- pwdinfo->wfd_info.peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
- DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info.peer_rtsp_ctrlport );
+ pwdinfo->wfd_info->peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
+ DBG_871X( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
}
}
#endif // CONFIG_WFD
@@ -2347,6 +2943,7 @@ u8 process_p2p_group_negotation_req( struct wifidirect_info *pwdinfo, u8 *pframe
u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pframe, uint len )
{
+ _adapter *padapter = pwdinfo->padapter;
u8 result = P2P_STATUS_SUCCESS;
u32 p2p_ielen, wps_ielen;
u8 * ies;
@@ -2355,7 +2952,10 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
#ifdef CONFIG_WFD
u8 wfd_ie[ 128 ] = { 0x00 };
u32 wfd_ielen = 0;
-#endif // CONFIG_WFD
+#ifdef CONFIG_TDLS
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+#endif // CONFIG_TDLS
+#endif // CONFIG_WFD
ies = pframe + _PUBLIC_ACTION_IE_OFFSET_;
ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
@@ -2368,7 +2968,7 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
}
else
{
- DBG_8192C( "[%s] WPS IE not Found!!\n", __FUNCTION__ );
+ DBG_871X( "[%s] WPS IE not Found!!\n", __FUNCTION__ );
result = P2P_STATUS_FAIL_INCOMPATIBLE_PARAM;
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
}
@@ -2382,28 +2982,48 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
}
else
{
+
u8 attr_content = 0x00;
u32 attr_contentlen = 0;
u8 operatingch_info[5] = { 0x00 };
uint ch_cnt = 0;
- u8 ch_content[50] = { 0x00 };
+ u8 ch_content[100] = { 0x00 };
u8 groupid[ 38 ];
-
+ u16 cap_attr;
+ u8 peer_ch_list[100] = { 0x00 };
+ u8 peer_ch_num = 0;
+ u8 ch_list_inclusioned[100] = { 0x00 };
+ u8 ch_num_inclusioned = 0;
+
while ( p2p_ie ) // Found the P2P IE.
{
+ //Check P2P Capability ATTR
+ if(rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CAPABILITY, (u8*)&cap_attr, (uint*)&attr_contentlen) )
+ {
+ cap_attr = le16_to_cpu(cap_attr);
+#if defined(CONFIG_WFD) && defined(CONFIG_TDLS)
+ if(!(cap_attr & P2P_GRPCAP_INTRABSS) )
+ ptdlsinfo->ap_prohibited = _TRUE;
+#endif //defined(CONFIG_WFD) && defined(CONFIG_TDLS)
+ }
+
rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, &attr_content, &attr_contentlen);
if ( attr_contentlen == 1 )
{
- DBG_8192C( "[%s] Status = %d\n", __FUNCTION__, attr_content );
+ DBG_871X( "[%s] Status = %d\n", __FUNCTION__, attr_content );
if ( attr_content == P2P_STATUS_SUCCESS )
{
// Do nothing.
}
else
{
+ if ( P2P_STATUS_FAIL_INFO_UNAVAILABLE == attr_content ) {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_RX_INFOR_NOREADY);
+ } else {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
+ }
rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
- rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
result = attr_content;
break;
}
@@ -2424,7 +3044,7 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
attr_contentlen = 0;
if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GO_INTENT , &attr_content, &attr_contentlen) )
{
- DBG_8192C( "[%s] GO Intent = %d, tie = %d\n", __FUNCTION__, attr_content >> 1, attr_content & 0x01 );
+ DBG_871X( "[%s] GO Intent = %d, tie = %d\n", __FUNCTION__, attr_content >> 1, attr_content & 0x01 );
pwdinfo->peer_intent = attr_content; // include both intent and tie breaker values.
if ( pwdinfo->intent == ( pwdinfo->peer_intent >> 1 ) )
@@ -2439,6 +3059,7 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
else
{
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_GONEGO_OK);
if ( attr_content & 0x01 )
{
rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
@@ -2452,11 +3073,13 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
else if ( pwdinfo->intent > ( pwdinfo->peer_intent >> 1 ) )
{
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_GONEGO_OK);
rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
}
else
{
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_GONEGO_OK);
rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
}
@@ -2474,20 +3097,74 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
attr_contentlen = 0;
if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, operatingch_info, &attr_contentlen))
{
- DBG_8192C( "[%s] Peer's operating channel = %d\n", __FUNCTION__, operatingch_info[4] );
+ DBG_871X( "[%s] Peer's operating channel = %d\n", __FUNCTION__, operatingch_info[4] );
pwdinfo->peer_operating_ch = operatingch_info[4];
}
// Try to get the channel list information
- if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, ch_content, &ch_cnt) )
+ if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, pwdinfo->channel_list_attr, &pwdinfo->channel_list_attr_len ) )
{
- pwdinfo->channel_cnt = ch_content[ 4 ]; // Number of Channels
- _rtw_memcpy( pwdinfo->channel_list, &ch_content[ 5 ], pwdinfo->channel_cnt ); // Channel List
- DBG_8192C( "[%s] channel count = %d\n", __FUNCTION__, pwdinfo->channel_cnt );
+ DBG_871X( "[%s] channel list attribute found, len = %d\n", __FUNCTION__, pwdinfo->channel_list_attr_len );
+
+ peer_ch_num = rtw_p2p_get_peer_ch_list(pwdinfo, pwdinfo->channel_list_attr, pwdinfo->channel_list_attr_len, peer_ch_list);
+ ch_num_inclusioned = rtw_p2p_ch_inclusion(&padapter->mlmeextpriv, peer_ch_list, peer_ch_num, ch_list_inclusioned);
+
+ if( ch_num_inclusioned == 0)
+ {
+ DBG_871X( "[%s] No common channel in channel list!\n", __FUNCTION__ );
+ result = P2P_STATUS_FAIL_NO_COMMON_CH;
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
+ break;
+ }
+
+ if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ {
+ if ( !rtw_p2p_is_channel_list_ok( pwdinfo->operating_channel,
+ ch_list_inclusioned, ch_num_inclusioned) )
+ {
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ DBG_871X( "[%s] desired channel NOT Found!\n", __FUNCTION__ );
+ result = P2P_STATUS_FAIL_NO_COMMON_CH;
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_FAIL);
+ break;
+ }
+ else
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ u8 operatingch_info[5] = { 0x00 }, peer_operating_ch = 0;
+ attr_contentlen = 0;
+
+ if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, operatingch_info, &attr_contentlen) )
+ {
+ peer_operating_ch = operatingch_info[4];
+ }
+
+ if ( rtw_p2p_is_channel_list_ok( peer_operating_ch,
+ ch_list_inclusioned, ch_num_inclusioned) )
+ {
+ /**
+ * Change our operating channel as peer's for compatibility.
+ */
+ pwdinfo->operating_channel = peer_operating_ch;
+ DBG_871X( "[%s] Change op ch to %02x as peer's\n", __FUNCTION__, pwdinfo->operating_channel);
+ }
+ else
+ {
+ // Take first channel of ch_list_inclusioned as operating channel
+ pwdinfo->operating_channel = ch_list_inclusioned[0];
+ DBG_871X( "[%s] Change op ch to %02x\n", __FUNCTION__, pwdinfo->operating_channel);
+ }
+ }
+
+ }
+ }
+
}
else
{
- DBG_8192C( "[%s] channel list attribute not found!\n", __FUNCTION__);
+ DBG_871X( "[%s] channel list attribute not found!\n", __FUNCTION__);
}
// Try to get the group id information if peer is GO
@@ -2517,8 +3194,8 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
if ( attr_contentlen )
{
- pwdinfo->wfd_info.peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
- DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info.peer_rtsp_ctrlport );
+ pwdinfo->wfd_info->peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
+ DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
}
}
#endif // CONFIG_WFD
@@ -2534,7 +3211,6 @@ u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pf
u8 * p2p_ie;
u32 p2p_ielen = 0;
u8 result = P2P_STATUS_SUCCESS;
-
ies = pframe + _PUBLIC_ACTION_IE_OFFSET_;
ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
@@ -2549,7 +3225,7 @@ u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pf
rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, &attr_content, &attr_contentlen);
if ( attr_contentlen == 1 )
{
- DBG_8192C( "[%s] Status = %d\n", __FUNCTION__, attr_content );
+ DBG_871X( "[%s] Status = %d\n", __FUNCTION__, attr_content );
result = attr_content;
if ( attr_content == P2P_STATUS_SUCCESS )
@@ -2561,6 +3237,7 @@ u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pf
// Commented by Albert 20100911
// Todo: Need to handle the case which both Intents are the same.
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_GONEGO_OK);
if ( ( pwdinfo->intent ) > ( pwdinfo->peer_intent >> 1 ) )
{
rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
@@ -2581,6 +3258,14 @@ u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pf
rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
}
}
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(pwdinfo->padapter , _FW_LINKED ) )
+ {
+ // Switch back to the AP channel soon.
+ _set_timer( &pwdinfo->ap_p2p_switch_timer, 100 );
+ }
+#endif
}
else
{
@@ -2595,7 +3280,7 @@ u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pf
_rtw_memset( groupid, 0x00, 38 );
if ( rtw_get_p2p_attr_content( p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, groupid, &attr_contentlen) )
{
- DBG_8192C( "[%s] Ssid = %s, ssidlen = %d\n", __FUNCTION__, &groupid[ETH_ALEN], strlen(&groupid[ETH_ALEN]) );
+ DBG_871X( "[%s] Ssid = %s, ssidlen = %d\n", __FUNCTION__, &groupid[ETH_ALEN], (u32)strlen(&groupid[ETH_ALEN]) );
_rtw_memcpy( pwdinfo->groupid_info.go_device_addr, &groupid[0], ETH_ALEN );
_rtw_memcpy( pwdinfo->groupid_info.ssid, &groupid[6], attr_contentlen - ETH_ALEN );
}
@@ -2603,7 +3288,7 @@ u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pf
attr_contentlen = 0;
if ( rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, operatingch_info, &attr_contentlen) )
{
- DBG_8192C( "[%s] Peer's operating channel = %d\n", __FUNCTION__, operatingch_info[4] );
+ DBG_871X( "[%s] Peer's operating channel = %d\n", __FUNCTION__, operatingch_info[4] );
pwdinfo->peer_operating_ch = operatingch_info[4];
}
@@ -2632,114 +3317,6 @@ u8 process_p2p_presence_req(struct wifidirect_info *pwdinfo, u8 *pframe, uint le
return _TRUE;
}
-void process_p2p_ps_ie(PADAPTER padapter, u8 *IEs, u32 IELength)
-{
- u8 * ies;
- u32 ies_len;
- u8 * p2p_ie;
- u32 p2p_ielen = 0;
- u8 noa_attr[MAX_P2P_IE_LEN] = { 0x00 };// NoA length should be n*(13) + 2
- u32 attr_contentlen = 0;
-
- struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- u8 find_p2p = _FALSE, find_p2p_ps = _FALSE;
- u8 noa_offset, noa_num, noa_index;
-
-_func_enter_;
-
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- return;
- }
-
- if(IELength <= _BEACON_IE_OFFSET_)
- return;
-
- ies = IEs + _BEACON_IE_OFFSET_;
- ies_len = IELength - _BEACON_IE_OFFSET_;
-
- p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen);
-
- while(p2p_ie)
- {
- find_p2p = _TRUE;
- // Get Notice of Absence IE.
- if(rtw_get_p2p_attr_content( p2p_ie, p2p_ielen, P2P_ATTR_NOA, noa_attr, &attr_contentlen))
- {
- find_p2p_ps = _TRUE;
- noa_index = noa_attr[0];
-
- if( (pwdinfo->p2p_ps_enable == _FALSE) ||
- (noa_index != pwdinfo->noa_index) )// if index change, driver should reconfigure related setting.
- {
- pwdinfo->noa_index = noa_index;
- pwdinfo->opp_ps = noa_attr[1] >> 7;
- pwdinfo->ctwindow = noa_attr[1] & 0x7F;
-
- noa_offset = 2;
- noa_num = 0;
- // NoA length should be n*(13) + 2
- if(attr_contentlen > 2)
- {
- while(noa_offset < attr_contentlen)
- {
- //_rtw_memcpy(&wifidirect_info->noa_count[noa_num], &noa_attr[noa_offset], 1);
- pwdinfo->noa_count[noa_num] = noa_attr[noa_offset];
- noa_offset += 1;
-
- _rtw_memcpy(&pwdinfo->noa_duration[noa_num], &noa_attr[noa_offset], 4);
- noa_offset += 4;
-
- _rtw_memcpy(&pwdinfo->noa_interval[noa_num], &noa_attr[noa_offset], 4);
- noa_offset += 4;
-
- _rtw_memcpy(&pwdinfo->noa_start_time[noa_num], &noa_attr[noa_offset], 4);
- noa_offset += 4;
-
- noa_num++;
- }
- }
- pwdinfo->noa_num = noa_num;
-
- if( pwdinfo->opp_ps == 1 )
- {
- pwdinfo->p2p_ps_enable = _TRUE;
- // driver should wait LPS for entering CTWindow
- if(padapter->pwrctrlpriv.bFwCurrentInPSMode == _TRUE)
- {
- p2p_ps_wk_cmd(padapter, P2P_PS_ENABLE, 1);
- }
- }
- else if( pwdinfo->noa_num > 0 )
- {
- pwdinfo->p2p_ps_enable = _TRUE;
- p2p_ps_wk_cmd(padapter, P2P_PS_ENABLE, 1);
- }
- else if( pwdinfo->p2p_ps_enable == _TRUE)
- {
- p2p_ps_wk_cmd(padapter, P2P_PS_DISABLE, 1);
- }
- }
-
- break; // find target, just break.
- }
-
- //Get the next P2P IE
- p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
-
- }
-
- if(find_p2p == _TRUE)
- {
- if( (pwdinfo->p2p_ps_enable == _TRUE) && (find_p2p_ps == _FALSE) )
- {
- p2p_ps_wk_cmd(padapter, P2P_PS_DISABLE, 1);
- }
- }
-
-_func_exit_;
-}
-
void find_phase_handler( _adapter* padapter )
{
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
@@ -2757,13 +3334,15 @@ _func_enter_;
rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH);
_enter_critical_bh(&pmlmepriv->lock, &irqL);
- _status = rtw_sitesurvey_cmd(padapter, &ssid, 1);
+ _status = rtw_sitesurvey_cmd(padapter, &ssid, 1, NULL, 0);
_exit_critical_bh(&pmlmepriv->lock, &irqL);
_func_exit_;
}
+void p2p_concurrent_handler( _adapter* padapter );
+
void restore_p2p_state_handler( _adapter* padapter )
{
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
@@ -2771,16 +3350,56 @@ void restore_p2p_state_handler( _adapter* padapter )
_func_enter_;
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_FAIL))
+ {
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ }
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_TX_PROVISION_DIS_REQ) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_RSP))
+ {
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+
+ issue_nulldata(pbuddy_adapter, NULL, 0, 3, 500);
+ }
+ }
+#endif
+
rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+
if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE))
{
+#ifdef CONFIG_CONCURRENT_MODE
+ p2p_concurrent_handler( padapter );
+#else
// In the P2P client mode, the driver should not switch back to its listen channel
// because this P2P client should stay at the operating channel of P2P GO.
set_channel_bwmode( padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+#endif
}
_func_exit_;
}
+void pre_tx_invitereq_handler( _adapter* padapter )
+{
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ u8 val8 = 1;
+_func_enter_;
+
+ set_channel_bwmode(padapter, pwdinfo->invitereq_info.peer_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ issue_probereq_p2p(padapter, NULL);
+ _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+
+_func_exit_;
+}
+
void pre_tx_provdisc_handler( _adapter* padapter )
{
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
@@ -2788,8 +3407,8 @@ void pre_tx_provdisc_handler( _adapter* padapter )
_func_enter_;
set_channel_bwmode(padapter, pwdinfo->tx_prov_disc_info.peer_channel_num[0], HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
- issue_probereq_p2p( padapter );
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ issue_probereq_p2p(padapter, NULL);
_set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
_func_exit_;
@@ -2802,67 +3421,962 @@ void pre_tx_negoreq_handler( _adapter* padapter )
_func_enter_;
set_channel_bwmode(padapter, pwdinfo->nego_req_info.peer_channel_num[0], HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
- issue_probereq_p2p( padapter );
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ issue_probereq_p2p(padapter, NULL);
_set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
_func_exit_;
}
-#ifdef CONFIG_IOCTL_CFG80211
-void ro_ch_handler( _adapter* padapter )
+#ifdef CONFIG_CONCURRENT_MODE
+void p2p_concurrent_handler( _adapter* padapter )
{
- struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
- struct wifidirect_info *pwdinfo = &padapter->wdinfo;
- struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ //_adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ //struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ //struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ //struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ u8 val8;
_func_enter_;
-// if( pcfg80211_wdinfo->restore_channel != pmlmeext->cur_channel )
-// set_channel_bwmode(padapter, pcfg80211_wdinfo->restore_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
-
- #if 0
- // Disable P2P Listen State
- if(!rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) && !rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
{
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- _cancel_timer_ex( &pwdinfo->find_phase_timer );
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
- rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
- _rtw_memset(pwdinfo, 0x00, sizeof(struct wifidirect_info));
+ pwdinfo->operating_channel = pbuddy_mlmeext->cur_channel;
- if(pwrpriv->bips_processing == _FALSE){
- rtw_set_pwr_state_check_timer(pwrpriv);
- }
- }
- }
- else
- #endif
- {
- if( pcfg80211_wdinfo->restore_channel != pmlmeext->cur_channel )
+ if( pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- pmlmeext->cur_channel = pcfg80211_wdinfo->restore_channel;
- set_channel_bwmode(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- }
+ DBG_871X("%s, switch ch back to buddy's cur_channel=%d\n", __func__, pbuddy_mlmeext->cur_channel);
+
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
- rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
-#ifdef CONFIG_DEBUG_CFG80211
- DBG_871X("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
-#endif
- }
+ issue_nulldata(pbuddy_adapter, NULL, 0, 3, 500);
+ }
+ else if( pwdinfo->driver_interface == DRIVER_WEXT )
+ {
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ {
+ // Now, the driver stays on the AP's channel.
+ // If the pwdinfo->ext_listen_period = 0, that means the P2P listen state is not available on listen channel.
+ if ( pwdinfo->ext_listen_period > 0 )
+ {
+ DBG_8192C( "[%s] P2P_STATE_IDLE, ext_listen_period = %d\n", __FUNCTION__, pwdinfo->ext_listen_period );
- cfg80211_remain_on_channel_expired(pcfg80211_wdinfo->remain_on_ch_dev,
- pcfg80211_wdinfo->remain_on_ch_cookie,
- &pcfg80211_wdinfo->remain_on_ch_channel,
- pcfg80211_wdinfo->remain_on_ch_type, GFP_KERNEL);
-_func_exit_;
-}
-#endif //CONFIG_IOCTL_CFG80211
+ if ( pbuddy_mlmeext->cur_channel != pwdinfo->listen_channel )
+ {
+ // Will switch to listen channel so that need to send the NULL data with PW bit to AP.
+ issue_nulldata(pbuddy_adapter, NULL, 1, 3, 500);
+ set_channel_bwmode(padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
-void p2p_protocol_wk_hdl(_adapter *padapter, int intCmdType)
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
+ val8 = 1;
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+
+ // Todo: To check the value of pwdinfo->ext_listen_period is equal to 0 or not.
+ _set_timer( &pwdinfo->ap_p2p_switch_timer, pwdinfo->ext_listen_period );
+ }
+ }
+ else if ( rtw_p2p_chk_state(pwdinfo, P2P_STATE_LISTEN) ||
+ rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_FAIL) ||
+ ( rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING) && pwdinfo->nego_req_info.benable == _FALSE ) ||
+ rtw_p2p_chk_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ) )
+ {
+ // Now, the driver is in the listen state of P2P mode.
+ DBG_8192C( "[%s] P2P_STATE_IDLE, ext_listen_interval = %d\n", __FUNCTION__, pwdinfo->ext_listen_interval );
+
+ // Commented by Albert 2012/11/01
+ // If the AP's channel is the same as the listen channel, we should still be in the listen state
+ // Other P2P device is still able to find this device out even this device is in the AP's channel.
+ // So, configure this device to be able to receive the probe request frame and set it to listen state.
+ if ( pbuddy_mlmeext->cur_channel != pwdinfo->listen_channel )
+ {
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ val8 = 0;
+ padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_IDLE);
+ issue_nulldata(pbuddy_adapter, NULL, 0, 3, 500);
+ }
+
+ // Todo: To check the value of pwdinfo->ext_listen_interval is equal to 0 or not.
+ _set_timer( &pwdinfo->ap_p2p_switch_timer, pwdinfo->ext_listen_interval );
+ }
+ else if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_OK))
+ {
+ // The driver had finished the P2P handshake successfully.
+ val8 = 0;
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+ issue_nulldata(pbuddy_adapter, NULL, 0, 3, 500);
+ }
+ else if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_TX_PROVISION_DIS_REQ))
+ {
+ val8 = 1;
+ set_channel_bwmode(padapter, pwdinfo->tx_prov_disc_info.peer_channel_num[0], HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ issue_probereq_p2p(padapter, NULL);
+ _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+ }
+ else if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING) && pwdinfo->nego_req_info.benable == _TRUE)
+ {
+ val8 = 1;
+ set_channel_bwmode(padapter, pwdinfo->nego_req_info.peer_channel_num[0], HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ issue_probereq_p2p(padapter, NULL);
+ _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+ }
+ else if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_TX_INVITE_REQ ) && pwdinfo->invitereq_info.benable == _TRUE)
+ {
+ /*
+ val8 = 1;
+ set_channel_bwmode(padapter, , HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ issue_probereq_p2p(padapter, NULL);
+ _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+ */
+ }
+ }
+ }
+ else
+ {
+ set_channel_bwmode( padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
+
+_func_exit_;
+}
+#endif
+
+#ifdef CONFIG_IOCTL_CFG80211
+static void ro_ch_handler(_adapter *padapter)
+{
+ struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ u8 ch, bw, offset;
+_func_enter_;
+
+ if (rtw_get_ch_setting_union(padapter, &ch, &bw, &offset) != 0) {
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" back to linked union - ch:%u, bw:%u, offset:%u\n",
+ FUNC_ADPT_ARG(padapter), ch, bw, offset);
+ }
+ else if (wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->listen_channel) {
+ ch = pwdinfo->listen_channel;
+ bw = HT_CHANNEL_WIDTH_20;
+ offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" back to listen ch - ch:%u, bw:%u, offset:%u\n",
+ FUNC_ADPT_ARG(padapter), ch, bw, offset);
+ }
+ else {
+ ch = pcfg80211_wdinfo->restore_channel;
+ bw = HT_CHANNEL_WIDTH_20;
+ offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
+ if (0)
+ DBG_871X(FUNC_ADPT_FMT" back to restore ch - ch:%u, bw:%u, offset:%u\n",
+ FUNC_ADPT_ARG(padapter), ch, bw, offset);
+ }
+
+ set_channel_bwmode(padapter, ch, offset, bw);
+
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+#ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
+#endif
+
+ pcfg80211_wdinfo->is_ro_ch = _FALSE;
+
+ DBG_871X("cfg80211_remain_on_channel_expired\n");
+
+ rtw_cfg80211_remain_on_channel_expired(padapter,
+ pcfg80211_wdinfo->remain_on_ch_cookie,
+ &pcfg80211_wdinfo->remain_on_ch_channel,
+ pcfg80211_wdinfo->remain_on_ch_type, GFP_KERNEL);
+
+_func_exit_;
+}
+
+static void ro_ch_timer_process (void *FunctionContext)
+{
+ _adapter *adapter = (_adapter *)FunctionContext;
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(adapter->rtw_wdev);
+
+ //printk("%s \n", __FUNCTION__);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ ATOMIC_SET(&pwdev_priv->ro_ch_to, 1);
+#endif
+
+ p2p_protocol_wk_cmd( adapter, P2P_RO_CH_WK);
+}
+
+static void rtw_change_p2pie_op_ch(_adapter *padapter, const u8 *frame_body, u32 len, u8 ch)
+{
+ u8 *ies, *p2p_ie;
+ u32 ies_len, p2p_ielen;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ ies = (u8*)(frame_body + _PUBLIC_ACTION_IE_OFFSET_);
+ ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
+
+ p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen );
+
+ while ( p2p_ie ) {
+ u32 attr_contentlen = 0;
+ u8 *pattr = NULL;
+
+ //Check P2P_ATTR_OPERATING_CH
+ attr_contentlen = 0;
+ pattr = NULL;
+ if((pattr = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, (uint*)&attr_contentlen))!=NULL)
+ {
+ *(pattr+4) = ch;
+ }
+
+ //Get the next P2P IE
+ p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
+ }
+}
+
+static void rtw_change_p2pie_ch_list(_adapter *padapter, const u8 *frame_body, u32 len, u8 ch)
+{
+ u8 *ies, *p2p_ie;
+ u32 ies_len, p2p_ielen;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ ies = (u8*)(frame_body + _PUBLIC_ACTION_IE_OFFSET_);
+ ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
+
+ p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen );
+
+ while (p2p_ie) {
+ u32 attr_contentlen = 0;
+ u8 *pattr = NULL;
+
+ //Check P2P_ATTR_CH_LIST
+ if ((pattr=rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, NULL, (uint*)&attr_contentlen))!=NULL) {
+ int i;
+ u32 num_of_ch;
+ u8 *pattr_temp = pattr + 3 ;
+
+ attr_contentlen -= 3;
+
+ while (attr_contentlen>0) {
+ num_of_ch = *(pattr_temp+1);
+
+ for(i=0; i<num_of_ch; i++)
+ *(pattr_temp+2+i) = ch;
+
+ pattr_temp += (2+num_of_ch);
+ attr_contentlen -= (2+num_of_ch);
+ }
+ }
+
+ //Get the next P2P IE
+ p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
+ }
+}
+
+static bool rtw_chk_p2pie_ch_list_with_buddy(_adapter *padapter, const u8 *frame_body, u32 len)
+{
+ bool fit = _FALSE;
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 *ies, *p2p_ie;
+ u32 ies_len, p2p_ielen;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ u8 buddy_ch = pbuddy_mlmeext->cur_channel;
+
+ ies = (u8*)(frame_body + _PUBLIC_ACTION_IE_OFFSET_);
+ ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
+
+ p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen );
+
+ while (p2p_ie) {
+ u32 attr_contentlen = 0;
+ u8 *pattr = NULL;
+
+ //Check P2P_ATTR_CH_LIST
+ if ((pattr=rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, NULL, (uint*)&attr_contentlen))!=NULL) {
+ int i;
+ u32 num_of_ch;
+ u8 *pattr_temp = pattr + 3 ;
+
+ attr_contentlen -= 3;
+
+ while (attr_contentlen>0) {
+ num_of_ch = *(pattr_temp+1);
+
+ for(i=0; i<num_of_ch; i++) {
+ if (*(pattr_temp+2+i) == buddy_ch) {
+ DBG_871X(FUNC_ADPT_FMT" ch_list fit buddy_ch:%u\n", FUNC_ADPT_ARG(padapter), buddy_ch);
+ fit = _TRUE;
+ break;
+ }
+ }
+
+ pattr_temp += (2+num_of_ch);
+ attr_contentlen -= (2+num_of_ch);
+ }
+ }
+
+ //Get the next P2P IE
+ p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
+ }
+#endif
+ return fit;
+}
+
+static bool rtw_chk_p2pie_op_ch_with_buddy(_adapter *padapter, const u8 *frame_body, u32 len)
+{
+ bool fit = _FALSE;
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 *ies, *p2p_ie;
+ u32 ies_len, p2p_ielen;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ u8 buddy_ch = pbuddy_mlmeext->cur_channel;
+
+ ies = (u8*)(frame_body + _PUBLIC_ACTION_IE_OFFSET_);
+ ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
+
+ p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen );
+
+ while (p2p_ie) {
+ u32 attr_contentlen = 0;
+ u8 *pattr = NULL;
+
+ //Check P2P_ATTR_OPERATING_CH
+ attr_contentlen = 0;
+ pattr = NULL;
+ if((pattr = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, (uint*)&attr_contentlen))!=NULL) {
+ if (*(pattr+4) == buddy_ch) {
+ DBG_871X(FUNC_ADPT_FMT" op_ch fit buddy_ch:%u\n", FUNC_ADPT_ARG(padapter), buddy_ch);
+ fit = _TRUE;
+ break;
+ }
+ }
+
+ //Get the next P2P IE
+ p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
+ }
+#endif
+ return fit;
+}
+
+static void rtw_cfg80211_adjust_p2pie_channel(_adapter *padapter, const u8 *frame_body, u32 len)
+{
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 *ies, *p2p_ie;
+ u32 ies_len, p2p_ielen;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ ies = (u8*)(frame_body + _PUBLIC_ACTION_IE_OFFSET_);
+ ies_len = len - _PUBLIC_ACTION_IE_OFFSET_;
+
+ p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen );
+
+ while ( p2p_ie )
+ {
+ u32 attr_contentlen = 0;
+ u8 *pattr = NULL;
+
+ //Check P2P_ATTR_CH_LIST
+ if((pattr=rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, NULL, (uint*)&attr_contentlen))!=NULL)
+ {
+ int i;
+ u32 num_of_ch;
+ u8 *pattr_temp = pattr + 3 ;
+
+ attr_contentlen -= 3;
+
+ while(attr_contentlen>0)
+ {
+ num_of_ch = *(pattr_temp+1);
+
+ for(i=0; i<num_of_ch; i++)
+ *(pattr_temp+2+i) = pbuddy_mlmeext->cur_channel;//forcing to the same channel
+
+ pattr_temp += (2+num_of_ch);
+ attr_contentlen -= (2+num_of_ch);
+ }
+ }
+
+ //Check P2P_ATTR_OPERATING_CH
+ attr_contentlen = 0;
+ pattr = NULL;
+ if((pattr = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, (uint*)&attr_contentlen))!=NULL)
+ {
+ *(pattr+4) = pbuddy_mlmeext->cur_channel;//forcing to the same channel
+ }
+
+ //Get the next P2P IE
+ p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
+
+ }
+
+#endif
+}
+
+#ifdef CONFIG_WFD
+void rtw_append_wfd_ie(_adapter *padapter, u8 *buf, u32* len)
+{
+ unsigned char *frame_body;
+ u8 category, action, OUI_Subtype, dialogToken=0;
+ u32 wfdielen = 0;
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
+
+ frame_body = (unsigned char *)(buf + sizeof(struct rtw_ieee80211_hdr_3addr));
+ category = frame_body[0];
+
+ if(category == RTW_WLAN_CATEGORY_PUBLIC)
+ {
+ action = frame_body[1];
+ if (action == ACT_PUBLIC_VENDOR
+ && _rtw_memcmp(frame_body+2, P2P_OUI, 4) == _TRUE
+ )
+ {
+ OUI_Subtype = frame_body[6];
+ dialogToken = frame_body[7];
+ switch( OUI_Subtype )//OUI Subtype
+ {
+ case P2P_GO_NEGO_REQ:
+ {
+ wfdielen = build_nego_req_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ case P2P_GO_NEGO_RESP:
+ {
+ wfdielen = build_nego_resp_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ case P2P_GO_NEGO_CONF:
+ {
+ wfdielen = build_nego_confirm_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ case P2P_INVIT_REQ:
+ {
+ wfdielen = build_invitation_req_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ case P2P_INVIT_RESP:
+ {
+ wfdielen = build_invitation_resp_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ case P2P_DEVDISC_REQ:
+ break;
+ case P2P_DEVDISC_RESP:
+
+ break;
+ case P2P_PROVISION_DISC_REQ:
+ {
+ wfdielen = build_provdisc_req_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ case P2P_PROVISION_DISC_RESP:
+ {
+ wfdielen = build_provdisc_resp_wfd_ie( &padapter->wdinfo, buf + ( *len ) );
+ (*len) += wfdielen;
+ break;
+ }
+ default:
+
+ break;
+ }
+
+ }
+
+ }
+ else if(category == RTW_WLAN_CATEGORY_P2P)
+ {
+ OUI_Subtype = frame_body[5];
+ dialogToken = frame_body[6];
+
+#ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("ACTION_CATEGORY_P2P: OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
+ cpu_to_be32( *( ( u32* ) ( frame_body + 1 ) ) ), OUI_Subtype, dialogToken);
+#endif
+
+ switch(OUI_Subtype)
+ {
+ case P2P_NOTICE_OF_ABSENCE:
+
+ break;
+ case P2P_PRESENCE_REQUEST:
+
+ break;
+ case P2P_PRESENCE_RESPONSE:
+
+ break;
+ case P2P_GO_DISC_REQUEST:
+
+ break;
+ default:
+
+ break;
+ }
+
+ }
+ else
+ {
+ DBG_871X("%s, action frame category=%d\n", __func__, category);
+ //is_p2p_frame = (-1);
+ }
+
+ return;
+}
+#endif
+
+u8 *dump_p2p_attr_ch_list(u8 *p2p_ie, uint p2p_ielen, u8 *buf, u32 buf_len)
+{
+ uint attr_contentlen = 0;
+ u8 *pattr = NULL;
+ int w_sz = 0;
+ u8 ch_cnt = 0;
+ u8 ch_list[40];
+ bool continuous = _FALSE;
+
+ if ((pattr=rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, NULL, &attr_contentlen))!=NULL) {
+ int i, j;
+ u32 num_of_ch;
+ u8 *pattr_temp = pattr + 3 ;
+
+ attr_contentlen -= 3;
+
+ _rtw_memset(ch_list, 0, 40);
+
+ while (attr_contentlen>0) {
+ num_of_ch = *(pattr_temp+1);
+
+ for(i=0; i<num_of_ch; i++) {
+ for (j=0;j<ch_cnt;j++) {
+ if (ch_list[j] == *(pattr_temp+2+i))
+ break;
+ }
+ if (j>=ch_cnt)
+ ch_list[ch_cnt++] = *(pattr_temp+2+i);
+
+ }
+
+ pattr_temp += (2+num_of_ch);
+ attr_contentlen -= (2+num_of_ch);
+ }
+
+ for (j=0;j<ch_cnt;j++) {
+ if (j == 0) {
+ w_sz += snprintf(buf+w_sz, buf_len-w_sz, "%u", ch_list[j]);
+ } else if (ch_list[j] - ch_list[j-1] != 1) {
+ w_sz += snprintf(buf+w_sz, buf_len-w_sz, ", %u", ch_list[j]);
+ } else if (j != ch_cnt-1 && ch_list[j+1] - ch_list[j] == 1) {
+ /* empty */
+ } else {
+ w_sz += snprintf(buf+w_sz, buf_len-w_sz, "-%u", ch_list[j]);
+ }
+ }
+ }
+ return buf;
+}
+
+/*
+ * return _TRUE if requester is GO, _FALSE if responder is GO
+ */
+bool rtw_p2p_nego_intent_compare(u8 req, u8 resp)
+{
+ if (req>>1 == resp >>1)
+ return req&0x01 ? _TRUE : _FALSE;
+ else if (req>>1 > resp>>1)
+ return _TRUE;
+ else
+ return _FALSE;
+}
+
+int rtw_p2p_check_frames(_adapter *padapter, const u8 *buf, u32 len, u8 tx)
+{
+ int is_p2p_frame = (-1);
+ unsigned char *frame_body;
+ u8 category, action, OUI_Subtype, dialogToken=0;
+ u8 *p2p_ie = NULL;
+ uint p2p_ielen = 0;
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
+ int status = -1;
+ u8 ch_list_buf[128] = {'\0'};
+ int op_ch = -1;
+ int listen_ch = -1;
+ u8 intent = 0;
+
+ frame_body = (unsigned char *)(buf + sizeof(struct rtw_ieee80211_hdr_3addr));
+ category = frame_body[0];
+ //just for check
+ if(category == RTW_WLAN_CATEGORY_PUBLIC)
+ {
+ action = frame_body[1];
+ if (action == ACT_PUBLIC_VENDOR
+ && _rtw_memcmp(frame_body+2, P2P_OUI, 4) == _TRUE
+ )
+ {
+ OUI_Subtype = frame_body[6];
+ dialogToken = frame_body[7];
+ is_p2p_frame = OUI_Subtype;
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("ACTION_CATEGORY_PUBLIC: ACT_PUBLIC_VENDOR, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
+ cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
+ #endif
+
+ p2p_ie = rtw_get_p2p_ie(
+ (u8 *)buf+sizeof(struct rtw_ieee80211_hdr_3addr)+_PUBLIC_ACTION_IE_OFFSET_,
+ len-sizeof(struct rtw_ieee80211_hdr_3addr)-_PUBLIC_ACTION_IE_OFFSET_,
+ NULL, &p2p_ielen);
+
+ switch( OUI_Subtype )//OUI Subtype
+ {
+ u8 *cont;
+ uint cont_len;
+ case P2P_GO_NEGO_REQ:
+ {
+ struct rtw_wdev_nego_info* nego_info = &pwdev_priv->nego_info;
+
+ if (tx) {
+ #ifdef CONFIG_DRV_ISSUE_PROV_REQ // IOT FOR S2
+ if(pwdev_priv->provdisc_req_issued == _FALSE) {
+ rtw_cfg80211_issue_p2p_provision_request(padapter, buf, len);
+ pwdev_priv->provdisc_req_issued = _TRUE;
+ rtw_msleep_os(200);
+ }
+ #endif //CONFIG_DRV_ISSUE_PROV_REQ
+
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED))
+ rtw_cfg80211_adjust_p2pie_channel(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr));
+ #endif
+ }
+
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, &cont_len)))
+ op_ch = *(cont+4);
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_LISTEN_CH, NULL, &cont_len)))
+ listen_ch = *(cont+4);
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GO_INTENT, NULL, &cont_len)))
+ intent = *cont;
+
+ if (nego_info->token != dialogToken)
+ rtw_wdev_nego_info_init(nego_info);
+
+ _rtw_memcpy(nego_info->peer_mac, tx ? GetAddr1Ptr(buf) : GetAddr2Ptr(buf), ETH_ALEN);
+ nego_info->active = tx ? 1 : 0;
+ nego_info->token = dialogToken;
+ nego_info->req_op_ch = op_ch;
+ nego_info->req_listen_ch = listen_ch;
+ nego_info->req_intent = intent;
+ nego_info->state = 0;
+
+ dump_p2p_attr_ch_list(p2p_ie, p2p_ielen, ch_list_buf, 128);
+ DBG_871X("RTW_%s:P2P_GO_NEGO_REQ, dialogToken=%d, intent:%u%s, listen_ch:%d, op_ch:%d, ch_list:%s\n",
+ (tx==_TRUE)?"Tx":"Rx", dialogToken, (intent>>1), intent&0x1 ? "+" : "-", listen_ch, op_ch, ch_list_buf);
+
+ if (!tx) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED)
+ && rtw_chk_p2pie_ch_list_with_buddy(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr)) == _FALSE)
+ {
+ DBG_871X(FUNC_ADPT_FMT" ch_list has no intersect with buddy\n", FUNC_ADPT_ARG(padapter));
+ rtw_change_p2pie_ch_list(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr), 0);
+ }
+ #endif
+ }
+
+ break;
+ }
+ case P2P_GO_NEGO_RESP:
+ {
+ struct rtw_wdev_nego_info* nego_info = &pwdev_priv->nego_info;
+
+ if (tx) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED))
+ rtw_cfg80211_adjust_p2pie_channel(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr));
+ #endif
+ }
+
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, &cont_len)))
+ op_ch = *(cont+4);
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GO_INTENT, NULL, &cont_len)))
+ intent = *cont;
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, NULL, &cont_len)))
+ status = *cont;
+
+ if (nego_info->token == dialogToken && nego_info->state == 0
+ && _rtw_memcmp(nego_info->peer_mac, tx ? GetAddr1Ptr(buf) : GetAddr2Ptr(buf), ETH_ALEN) == _TRUE
+ ) {
+ nego_info->status = (status==-1) ? 0xff : status;
+ nego_info->rsp_op_ch= op_ch;
+ nego_info->rsp_intent = intent;
+ nego_info->state = 1;
+ if (status != 0)
+ nego_info->token = 0; /* init */
+ }
+
+ dump_p2p_attr_ch_list(p2p_ie, p2p_ielen, ch_list_buf, 128);
+ DBG_871X("RTW_%s:P2P_GO_NEGO_RESP, dialogToken=%d, intent:%u%s, status:%d, op_ch:%d, ch_list:%s\n",
+ (tx==_TRUE)?"Tx":"Rx", dialogToken, (intent>>1), intent&0x1 ? "+" : "-", status, op_ch, ch_list_buf);
+
+ if (!tx) {
+ pwdev_priv->provdisc_req_issued = _FALSE;
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED)
+ && rtw_chk_p2pie_ch_list_with_buddy(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr)) == _FALSE)
+ {
+ DBG_871X(FUNC_ADPT_FMT" ch_list has no intersect with buddy\n", FUNC_ADPT_ARG(padapter));
+ rtw_change_p2pie_ch_list(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr), 0);
+ }
+ #endif
+ }
+
+ break;
+ }
+ case P2P_GO_NEGO_CONF:
+ {
+ struct rtw_wdev_nego_info* nego_info = &pwdev_priv->nego_info;
+ bool is_go = _FALSE;
+
+ if (tx) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED))
+ rtw_cfg80211_adjust_p2pie_channel(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr));
+ #endif
+ }
+
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, &cont_len)))
+ op_ch = *(cont+4);
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, NULL, &cont_len)))
+ status = *cont;
+
+ if (nego_info->token == dialogToken && nego_info->state == 1
+ && _rtw_memcmp(nego_info->peer_mac, tx ? GetAddr1Ptr(buf) : GetAddr2Ptr(buf), ETH_ALEN) == _TRUE
+ ) {
+ nego_info->status = (status==-1) ? 0xff : status;
+ nego_info->conf_op_ch = (op_ch==-1) ? 0 : op_ch;
+ nego_info->state = 2;
+
+ if (status == 0) {
+ if (rtw_p2p_nego_intent_compare(nego_info->req_intent, nego_info->rsp_intent) && tx)
+ is_go = _TRUE;
+ }
+
+ nego_info->token = 0; /* init */
+ }
+
+ dump_p2p_attr_ch_list(p2p_ie, p2p_ielen, ch_list_buf, 128);
+ DBG_871X("RTW_%s:P2P_GO_NEGO_CONF, dialogToken=%d, status:%d, op_ch:%d, ch_list:%s\n",
+ (tx==_TRUE)?"Tx":"Rx", dialogToken, status, op_ch, ch_list_buf);
+
+ if (!tx) {
+ }
+
+ break;
+ }
+ case P2P_INVIT_REQ:
+ {
+ struct rtw_wdev_invit_info* invit_info = &pwdev_priv->invit_info;
+ int flags = -1;
+
+ if (tx) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED))
+ rtw_cfg80211_adjust_p2pie_channel(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr));
+ #endif
+ }
+
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_INVITATION_FLAGS, NULL, &cont_len)))
+ flags = *cont;
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, &cont_len)))
+ op_ch = *(cont+4);
+
+ if (invit_info->token != dialogToken)
+ rtw_wdev_invit_info_init(invit_info);
+
+ _rtw_memcpy(invit_info->peer_mac, tx ? GetAddr1Ptr(buf) : GetAddr2Ptr(buf), ETH_ALEN);
+ invit_info->active = tx ? 1 : 0;
+ invit_info->token = dialogToken;
+ invit_info->flags = (flags==-1) ? 0x0 : flags;
+ invit_info->req_op_ch= op_ch;
+ invit_info->state = 0;
+
+ dump_p2p_attr_ch_list(p2p_ie, p2p_ielen, ch_list_buf, 128);
+ DBG_871X("RTW_%s:P2P_INVIT_REQ, dialogToken=%d, flags:0x%02x, op_ch:%d, ch_list:%s\n",
+ (tx==_TRUE)?"Tx":"Rx", dialogToken, flags, op_ch, ch_list_buf);
+
+ if (!tx) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED)) {
+ if (op_ch != -1 && rtw_chk_p2pie_op_ch_with_buddy(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr)) == _FALSE) {
+ DBG_871X(FUNC_ADPT_FMT" op_ch:%u has no intersect with buddy\n", FUNC_ADPT_ARG(padapter), op_ch);
+ rtw_change_p2pie_ch_list(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr), 0);
+ } else if (rtw_chk_p2pie_ch_list_with_buddy(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr)) == _FALSE) {
+ DBG_871X(FUNC_ADPT_FMT" ch_list has no intersect with buddy\n", FUNC_ADPT_ARG(padapter));
+ rtw_change_p2pie_ch_list(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr), 0);
+ }
+ }
+ #endif
+ }
+
+ break;
+ }
+ case P2P_INVIT_RESP:
+ {
+ struct rtw_wdev_invit_info* invit_info = &pwdev_priv->invit_info;
+
+ if (tx) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED))
+ rtw_cfg80211_adjust_p2pie_channel(padapter, frame_body, len-sizeof(struct rtw_ieee80211_hdr_3addr));
+ #endif
+ }
+
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, NULL, &cont_len)))
+ {
+#ifdef CONFIG_P2P_INVITE_IOT
+ if(tx && *cont==7)
+ {
+ DBG_871X("TX_P2P_INVITE_RESP, status is no common channel, change to unknown group\n");
+ *cont = 8; //unknow group status
+ }
+#endif //CONFIG_P2P_INVITE_IOT
+ status = *cont;
+ }
+ if ((cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_OPERATING_CH, NULL, &cont_len)))
+ op_ch = *(cont+4);
+
+ if (invit_info->token == dialogToken && invit_info->state == 0
+ && _rtw_memcmp(invit_info->peer_mac, tx ? GetAddr1Ptr(buf) : GetAddr2Ptr(buf), ETH_ALEN) == _TRUE
+ ) {
+ invit_info->status = (status==-1) ? 0xff : status;
+ invit_info->rsp_op_ch= op_ch;
+ invit_info->state = 1;
+ invit_info->token = 0; /* init */
+ }
+
+ dump_p2p_attr_ch_list(p2p_ie, p2p_ielen, ch_list_buf, 128);
+ DBG_871X("RTW_%s:P2P_INVIT_RESP, dialogToken=%d, status:%d, op_ch:%d, ch_list:%s\n",
+ (tx==_TRUE)?"Tx":"Rx", dialogToken, status, op_ch, ch_list_buf);
+
+ if (!tx) {
+ }
+
+ break;
+ }
+ case P2P_DEVDISC_REQ:
+ DBG_871X("RTW_%s:P2P_DEVDISC_REQ, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
+ break;
+ case P2P_DEVDISC_RESP:
+ cont = rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_STATUS, NULL, &cont_len);
+ DBG_871X("RTW_%s:P2P_DEVDISC_RESP, dialogToken=%d, status:%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken, cont?*cont:-1);
+ break;
+ case P2P_PROVISION_DISC_REQ:
+ {
+ size_t frame_body_len = len - sizeof(struct rtw_ieee80211_hdr_3addr);
+ u8 *p2p_ie;
+ uint p2p_ielen = 0;
+ uint contentlen = 0;
+
+ DBG_871X("RTW_%s:P2P_PROVISION_DISC_REQ, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
+
+ //if(tx)
+ {
+ pwdev_priv->provdisc_req_issued = _FALSE;
+
+ if( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, frame_body_len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)))
+ {
+
+ if(rtw_get_p2p_attr_content( p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, NULL, &contentlen))
+ {
+ pwdev_priv->provdisc_req_issued = _FALSE;//case: p2p_client join p2p GO
+ }
+ else
+ {
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("provdisc_req_issued is _TRUE\n");
+ #endif //CONFIG_DEBUG_CFG80211
+ pwdev_priv->provdisc_req_issued = _TRUE;//case: p2p_devices connection before Nego req.
+ }
+
+ }
+ }
+ }
+ break;
+ case P2P_PROVISION_DISC_RESP:
+ DBG_871X("RTW_%s:P2P_PROVISION_DISC_RESP, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
+ break;
+ default:
+ DBG_871X("RTW_%s:OUI_Subtype=%d, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", OUI_Subtype, dialogToken);
+ break;
+ }
+
+ }
+
+ }
+ else if(category == RTW_WLAN_CATEGORY_P2P)
+ {
+ OUI_Subtype = frame_body[5];
+ dialogToken = frame_body[6];
+
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("ACTION_CATEGORY_P2P: OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
+ cpu_to_be32( *( ( u32* ) ( frame_body + 1 ) ) ), OUI_Subtype, dialogToken);
+ #endif
+
+ is_p2p_frame = OUI_Subtype;
+
+ switch(OUI_Subtype)
+ {
+ case P2P_NOTICE_OF_ABSENCE:
+ DBG_871X("RTW_%s:P2P_NOTICE_OF_ABSENCE, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
+ break;
+ case P2P_PRESENCE_REQUEST:
+ DBG_871X("RTW_%s:P2P_PRESENCE_REQUEST, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
+ break;
+ case P2P_PRESENCE_RESPONSE:
+ DBG_871X("RTW_%s:P2P_PRESENCE_RESPONSE, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
+ break;
+ case P2P_GO_DISC_REQUEST:
+ DBG_871X("RTW_%s:P2P_GO_DISC_REQUEST, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
+ break;
+ default:
+ DBG_871X("RTW_%s:OUI_Subtype=%d, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", OUI_Subtype, dialogToken);
+ break;
+ }
+
+ }
+ else
+ {
+ DBG_871X("RTW_%s:action frame category=%d\n", (tx==_TRUE)?"TX":"RX", category);
+ }
+
+ return is_p2p_frame;
+}
+
+void rtw_init_cfg80211_wifidirect_info( _adapter* padapter)
+{
+ struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
+
+ _rtw_memset(pcfg80211_wdinfo, 0x00, sizeof(struct cfg80211_wifidirect_info) );
+
+ _init_timer( &pcfg80211_wdinfo->remain_on_ch_timer, padapter->pnetdev, ro_ch_timer_process, padapter );
+}
+#endif //CONFIG_IOCTL_CFG80211
+
+void p2p_protocol_wk_hdl(_adapter *padapter, int intCmdType)
{
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
@@ -2882,14 +4396,61 @@ _func_enter_;
}
case P2P_PRE_TX_PROVDISC_PROCESS_WK:
{
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ p2p_concurrent_handler( padapter );
+ }
+ else
+ {
+ pre_tx_provdisc_handler( padapter );
+ }
+#else
pre_tx_provdisc_handler( padapter );
+#endif
break;
}
+ case P2P_PRE_TX_INVITEREQ_PROCESS_WK:
+ {
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ p2p_concurrent_handler( padapter );
+ }
+ else
+ {
+ pre_tx_invitereq_handler( padapter );
+ }
+#else
+ pre_tx_invitereq_handler( padapter );
+#endif
+ break;
+ }
case P2P_PRE_TX_NEGOREQ_PROCESS_WK:
{
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ p2p_concurrent_handler( padapter );
+ }
+ else
+ {
+ pre_tx_negoreq_handler( padapter );
+ }
+#else
pre_tx_negoreq_handler( padapter );
+#endif
break;
}
+#ifdef CONFIG_P2P
+#ifdef CONFIG_CONCURRENT_MODE
+ case P2P_AP_P2P_CH_SWITCH_PROCESS_WK:
+ {
+ p2p_concurrent_handler( padapter );
+ break;
+ }
+#endif
+#endif
#ifdef CONFIG_IOCTL_CFG80211
case P2P_RO_CH_WK:
{
@@ -2897,12 +4458,124 @@ _func_enter_;
break;
}
#endif //CONFIG_IOCTL_CFG80211
+
}
_func_exit_;
}
+#ifdef CONFIG_P2P_PS
+void process_p2p_ps_ie(PADAPTER padapter, u8 *IEs, u32 IELength)
+{
+ u8 * ies;
+ u32 ies_len;
+ u8 * p2p_ie;
+ u32 p2p_ielen = 0;
+ u8 noa_attr[MAX_P2P_IE_LEN] = { 0x00 };// NoA length should be n*(13) + 2
+ u32 attr_contentlen = 0;
+
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ u8 find_p2p = _FALSE, find_p2p_ps = _FALSE;
+ u8 noa_offset, noa_num, noa_index;
+
+_func_enter_;
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ return;
+ }
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->iface_type != IFACE_PORT0)
+ return;
+#endif
+ if(IELength <= _BEACON_IE_OFFSET_)
+ return;
+
+ ies = IEs + _BEACON_IE_OFFSET_;
+ ies_len = IELength - _BEACON_IE_OFFSET_;
+
+ p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen);
+
+ while(p2p_ie)
+ {
+ find_p2p = _TRUE;
+ // Get Notice of Absence IE.
+ if(rtw_get_p2p_attr_content( p2p_ie, p2p_ielen, P2P_ATTR_NOA, noa_attr, &attr_contentlen))
+ {
+ find_p2p_ps = _TRUE;
+ noa_index = noa_attr[0];
+
+ if( (pwdinfo->p2p_ps_mode == P2P_PS_NONE) ||
+ (noa_index != pwdinfo->noa_index) )// if index change, driver should reconfigure related setting.
+ {
+ pwdinfo->noa_index = noa_index;
+ pwdinfo->opp_ps = noa_attr[1] >> 7;
+ pwdinfo->ctwindow = noa_attr[1] & 0x7F;
+
+ noa_offset = 2;
+ noa_num = 0;
+ // NoA length should be n*(13) + 2
+ if(attr_contentlen > 2)
+ {
+ while(noa_offset < attr_contentlen)
+ {
+ //_rtw_memcpy(&wifidirect_info->noa_count[noa_num], &noa_attr[noa_offset], 1);
+ pwdinfo->noa_count[noa_num] = noa_attr[noa_offset];
+ noa_offset += 1;
+
+ _rtw_memcpy(&pwdinfo->noa_duration[noa_num], &noa_attr[noa_offset], 4);
+ noa_offset += 4;
+
+ _rtw_memcpy(&pwdinfo->noa_interval[noa_num], &noa_attr[noa_offset], 4);
+ noa_offset += 4;
+
+ _rtw_memcpy(&pwdinfo->noa_start_time[noa_num], &noa_attr[noa_offset], 4);
+ noa_offset += 4;
+
+ noa_num++;
+ }
+ }
+ pwdinfo->noa_num = noa_num;
+
+ if( pwdinfo->opp_ps == 1 )
+ {
+ pwdinfo->p2p_ps_mode = P2P_PS_CTWINDOW;
+ // driver should wait LPS for entering CTWindow
+ if(padapter->pwrctrlpriv.bFwCurrentInPSMode == _TRUE)
+ {
+ p2p_ps_wk_cmd(padapter, P2P_PS_ENABLE, 1);
+ }
+ }
+ else if( pwdinfo->noa_num > 0 )
+ {
+ pwdinfo->p2p_ps_mode = P2P_PS_NOA;
+ p2p_ps_wk_cmd(padapter, P2P_PS_ENABLE, 1);
+ }
+ else if( pwdinfo->p2p_ps_mode > P2P_PS_NONE)
+ {
+ p2p_ps_wk_cmd(padapter, P2P_PS_DISABLE, 1);
+ }
+ }
+
+ break; // find target, just break.
+ }
+
+ //Get the next P2P IE
+ p2p_ie = rtw_get_p2p_ie(p2p_ie+p2p_ielen, ies_len -(p2p_ie -ies + p2p_ielen), NULL, &p2p_ielen);
+
+ }
+
+ if(find_p2p == _TRUE)
+ {
+ if( (pwdinfo->p2p_ps_mode > P2P_PS_NONE) && (find_p2p_ps == _FALSE) )
+ {
+ p2p_ps_wk_cmd(padapter, P2P_PS_DISABLE, 1);
+ }
+ }
+_func_exit_;
+}
void p2p_ps_wk_hdl(_adapter *padapter, u8 p2p_ps_state)
{
@@ -2911,42 +4584,53 @@ void p2p_ps_wk_hdl(_adapter *padapter, u8 p2p_ps_state)
_func_enter_;
- // Pre action for p2p state
switch(p2p_ps_state)
{
- case P2P_PS_ENABLE:
- if( pwdinfo->ctwindow > 0 )
+ case P2P_PS_DISABLE:
+ pwdinfo->p2p_ps_state = p2p_ps_state;
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_P2P_PS_OFFLOAD, (u8 *)(&p2p_ps_state));
+
+ pwdinfo->noa_index = 0;
+ pwdinfo->ctwindow = 0;
+ pwdinfo->opp_ps = 0;
+ pwdinfo->noa_num = 0;
+ pwdinfo->p2p_ps_mode = P2P_PS_NONE;
+ if(padapter->pwrctrlpriv.bFwCurrentInPSMode == _TRUE)
{
- if(pwrpriv->smart_ps != 0)
+ if(pwrpriv->smart_ps == 0)
{
- pwrpriv->smart_ps = 0;
- DBG_871X("%s(): Enter CTW, change SmartPS\n", __FUNCTION__);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&(padapter->pwrctrlpriv.pwr_mode)));
+ pwrpriv->smart_ps = 2;
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&(padapter->pwrctrlpriv.pwr_mode)));
}
}
break;
- default:
+ case P2P_PS_ENABLE:
+ if (pwdinfo->p2p_ps_mode > P2P_PS_NONE) {
+ pwdinfo->p2p_ps_state = p2p_ps_state;
+
+ if( pwdinfo->ctwindow > 0 )
+ {
+ if(pwrpriv->smart_ps != 0)
+ {
+ pwrpriv->smart_ps = 0;
+ DBG_871X("%s(): Enter CTW, change SmartPS\n", __FUNCTION__);
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&(padapter->pwrctrlpriv.pwr_mode)));
+ }
+ }
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_P2P_PS_OFFLOAD, (u8 *)(&p2p_ps_state));
+ }
break;
- }
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_P2P_PS_OFFLOAD, (u8 *)(&p2p_ps_state));
-
- // clear P2P SW status
- if(p2p_ps_state == P2P_PS_DISABLE)
- {
- pwdinfo->noa_index = 0;
- pwdinfo->ctwindow = 0;
- pwdinfo->opp_ps = 0;
- pwdinfo->noa_num = 0;
- pwdinfo->p2p_ps_enable = _FALSE;
- if(padapter->pwrctrlpriv.bFwCurrentInPSMode == _TRUE)
- {
- if(pwrpriv->smart_ps == 0)
- {
- pwrpriv->smart_ps = 2;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&(padapter->pwrctrlpriv.pwr_mode)));
+ case P2P_PS_SCAN:
+ case P2P_PS_SCAN_DONE:
+ case P2P_PS_ALLSTASLEEP:
+ if (pwdinfo->p2p_ps_mode > P2P_PS_NONE) {
+ pwdinfo->p2p_ps_state = p2p_ps_state;
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_P2P_PS_OFFLOAD, (u8 *)(&p2p_ps_state));
}
- }
+ break;
+ default:
+ break;
}
_func_exit_;
@@ -2962,44 +4646,41 @@ u8 p2p_ps_wk_cmd(_adapter*padapter, u8 p2p_ps_state, u8 enqueue)
_func_enter_;
- if ( rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) ||
- ( pwdinfo->p2p_ps == p2p_ps_state ) )
+ if ( rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)
+#ifdef CONFIG_CONCURRENT_MODE
+ || (padapter->iface_type != IFACE_PORT0)
+#endif
+ )
{
return res;
}
- // driver only perform p2p ps when GO have Opp_Ps or NoA
- if( pwdinfo->p2p_ps_enable )
+ if(enqueue)
{
- pwdinfo->p2p_ps = p2p_ps_state;
-
- if(enqueue)
- {
- ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
- if(ph2c==NULL){
- res= _FAIL;
- goto exit;
- }
-
- pdrvextra_cmd_parm = (struct drvextra_cmd_parm*)rtw_zmalloc(sizeof(struct drvextra_cmd_parm));
- if(pdrvextra_cmd_parm==NULL){
- rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
- res= _FAIL;
- goto exit;
- }
+ ph2c = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
+ if(ph2c==NULL){
+ res= _FAIL;
+ goto exit;
+ }
+
+ pdrvextra_cmd_parm = (struct drvextra_cmd_parm*)rtw_zmalloc(sizeof(struct drvextra_cmd_parm));
+ if(pdrvextra_cmd_parm==NULL){
+ rtw_mfree((unsigned char *)ph2c, sizeof(struct cmd_obj));
+ res= _FAIL;
+ goto exit;
+ }
- pdrvextra_cmd_parm->ec_id = P2P_PS_WK_CID;
- pdrvextra_cmd_parm->type_size = p2p_ps_state;
- pdrvextra_cmd_parm->pbuf = NULL;
+ pdrvextra_cmd_parm->ec_id = P2P_PS_WK_CID;
+ pdrvextra_cmd_parm->type_size = p2p_ps_state;
+ pdrvextra_cmd_parm->pbuf = NULL;
- init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
+ init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
- res = rtw_enqueue_cmd(pcmdpriv, ph2c);
- }
- else
- {
- p2p_ps_wk_hdl(padapter, p2p_ps_state);
- }
+ res = rtw_enqueue_cmd(pcmdpriv, ph2c);
+ }
+ else
+ {
+ p2p_ps_wk_hdl(padapter, p2p_ps_state);
}
exit:
@@ -3009,6 +4690,45 @@ _func_exit_;
return res;
}
+#endif // CONFIG_P2P_PS
+
+static void reset_ch_sitesurvey_timer_process (void *FunctionContext)
+{
+ _adapter *adapter = (_adapter *)FunctionContext;
+ struct wifidirect_info *pwdinfo = &adapter->wdinfo;
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ return;
+
+ DBG_871X( "[%s] In\n", __FUNCTION__ );
+ // Reset the operation channel information
+ pwdinfo->rx_invitereq_info.operation_ch[0] = 0;
+#ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->rx_invitereq_info.operation_ch[1] = 0;
+ pwdinfo->rx_invitereq_info.operation_ch[2] = 0;
+ pwdinfo->rx_invitereq_info.operation_ch[3] = 0;
+#endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->rx_invitereq_info.scan_op_ch_only = 0;
+}
+
+static void reset_ch_sitesurvey_timer_process2 (void *FunctionContext)
+{
+ _adapter *adapter = (_adapter *)FunctionContext;
+ struct wifidirect_info *pwdinfo = &adapter->wdinfo;
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ return;
+
+ DBG_871X( "[%s] In\n", __FUNCTION__ );
+ // Reset the operation channel information
+ pwdinfo->p2p_info.operation_ch[0] = 0;
+#ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.operation_ch[1] = 0;
+ pwdinfo->p2p_info.operation_ch[2] = 0;
+ pwdinfo->p2p_info.operation_ch[3] = 0;
+#endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.scan_op_ch_only = 0;
+}
static void restore_p2p_state_timer_process (void *FunctionContext)
{
@@ -3042,7 +4762,7 @@ static void pre_tx_scan_timer_process (void *FunctionContext)
if ( _TRUE == pwdinfo->tx_prov_disc_info.benable ) // the provision discovery request frame is trigger to send or not
{
p2p_protocol_wk_cmd( adapter, P2P_PRE_TX_PROVDISC_PROCESS_WK );
- //issue_probereq_p2p( adapter );
+ //issue_probereq_p2p(adapter, NULL);
//_set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
}
}
@@ -3051,10 +4771,17 @@ static void pre_tx_scan_timer_process (void *FunctionContext)
if ( _TRUE == pwdinfo->nego_req_info.benable )
{
p2p_protocol_wk_cmd( adapter, P2P_PRE_TX_NEGOREQ_PROCESS_WK );
- //issue_probereq_p2p( adapter );
+ //issue_probereq_p2p(adapter, NULL);
//_set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
}
}
+ else if ( rtw_p2p_chk_state(pwdinfo, P2P_STATE_TX_INVITE_REQ ) )
+ {
+ if ( _TRUE == pwdinfo->invitereq_info.benable )
+ {
+ p2p_protocol_wk_cmd( adapter, P2P_PRE_TX_INVITEREQ_PROCESS_WK );
+ }
+ }
else
{
DBG_8192C( "[%s] p2p_state is %d, ignore!!\n", __FUNCTION__, rtw_p2p_state(pwdinfo) );
@@ -3076,69 +4803,167 @@ static void find_phase_timer_process (void *FunctionContext)
p2p_protocol_wk_cmd( adapter, P2P_FIND_PHASE_WK );
}
-#ifdef CONFIG_IOCTL_CFG80211
-static void ro_ch_timer_process (void *FunctionContext)
+#ifdef CONFIG_CONCURRENT_MODE
+void ap_p2p_switch_timer_process (void *FunctionContext)
{
_adapter *adapter = (_adapter *)FunctionContext;
+ struct wifidirect_info *pwdinfo = &adapter->wdinfo;
+#ifdef CONFIG_IOCTL_CFG80211
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(adapter->rtw_wdev);
+#endif
- //printk("%s \n", __FUNCTION__);
-
- p2p_protocol_wk_cmd( adapter, P2P_RO_CH_WK);
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ return;
+
+#ifdef CONFIG_IOCTL_CFG80211
+ ATOMIC_SET(&pwdev_priv->switch_ch_to, 1);
+#endif
+
+ p2p_protocol_wk_cmd( adapter, P2P_AP_P2P_CH_SWITCH_PROCESS_WK );
}
+#endif
-void rtw_init_cfg80211_wifidirect_info( _adapter* padapter)
+void reset_global_wifidirect_info( _adapter* padapter )
{
- struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
+ struct wifidirect_info *pwdinfo;
- _rtw_memset(pcfg80211_wdinfo, 0x00, sizeof(struct cfg80211_wifidirect_info) );
-
- _init_timer( &pcfg80211_wdinfo->remain_on_ch_timer, padapter->pnetdev, ro_ch_timer_process, padapter );
+ pwdinfo = &padapter->wdinfo;
+ pwdinfo->persistent_supported = 0;
+ pwdinfo->session_available = _TRUE;
+ pwdinfo->wfd_tdls_enable = 0;
+ pwdinfo->wfd_tdls_weaksec = 0;
+}
+
+#ifdef CONFIG_WFD
+int rtw_init_wifi_display_info(_adapter* padapter)
+{
+ int res = _SUCCESS;
+ struct wifi_display_info *pwfd_info = &padapter->wfd_info;
+
+ // Used in P2P and TDLS
+ pwfd_info->rtsp_ctrlport = 554;
+ pwfd_info->peer_rtsp_ctrlport = 0; // Reset to 0
+ pwfd_info->wfd_enable = _FALSE;
+ pwfd_info->wfd_device_type = WFD_DEVINFO_PSINK;
+ pwfd_info->scan_result_type = SCAN_RESULT_P2P_ONLY;
+
+ // Used in P2P
+ pwfd_info->peer_session_avail = _TRUE;
+ pwfd_info->wfd_pc = _FALSE;
+
+ // Used in TDLS
+ _rtw_memset( pwfd_info->ip_address, 0x00, 4 );
+ _rtw_memset( pwfd_info->peer_ip_address, 0x00, 4 );
+ return res;
+
+}
+#endif //CONFIG_WFD
+
+void rtw_init_wifidirect_timers(_adapter* padapter)
+{
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+
+ _init_timer( &pwdinfo->find_phase_timer, padapter->pnetdev, find_phase_timer_process, padapter );
+ _init_timer( &pwdinfo->restore_p2p_state_timer, padapter->pnetdev, restore_p2p_state_timer_process, padapter );
+ _init_timer( &pwdinfo->pre_tx_scan_timer, padapter->pnetdev, pre_tx_scan_timer_process, padapter );
+ _init_timer( &pwdinfo->reset_ch_sitesurvey, padapter->pnetdev, reset_ch_sitesurvey_timer_process, padapter );
+ _init_timer( &pwdinfo->reset_ch_sitesurvey2, padapter->pnetdev, reset_ch_sitesurvey_timer_process2, padapter );
+#ifdef CONFIG_CONCURRENT_MODE
+ _init_timer( &pwdinfo->ap_p2p_switch_timer, padapter->pnetdev, ap_p2p_switch_timer_process, padapter );
+#endif
+}
+
+void rtw_init_wifidirect_addrs(_adapter* padapter, u8 *dev_addr, u8 *iface_addr)
+{
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+
+ /*init device&interface address */
+ if (dev_addr) {
+ _rtw_memcpy(pwdinfo->device_addr, dev_addr, ETH_ALEN);
+ }
+ if (iface_addr) {
+ _rtw_memcpy(pwdinfo->interface_addr, iface_addr, ETH_ALEN);
+ }
+#endif
}
-#endif //CONFIG_IOCTL_CFG80211
void init_wifidirect_info( _adapter* padapter, enum P2P_ROLE role)
{
struct wifidirect_info *pwdinfo;
+#ifdef CONFIG_WFD
+ struct wifi_display_info *pwfd_info = &padapter->wfd_info;
+#endif
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct wifidirect_info *pbuddy_wdinfo;
+ struct mlme_priv *pbuddy_mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext;
+#endif
pwdinfo = &padapter->wdinfo;
pwdinfo->padapter = padapter;
-
- //init device&interface address
- _rtw_memcpy(pwdinfo->device_addr, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pwdinfo->interface_addr, myid(&(padapter->eeprompriv)), ETH_ALEN);
// 1, 6, 11 are the social channel defined in the WiFi Direct specification.
pwdinfo->social_chan[0] = 1;
pwdinfo->social_chan[1] = 6;
pwdinfo->social_chan[2] = 11;
pwdinfo->social_chan[3] = 0; // channel 0 for scanning ending in site survey function.
-
- // Use the channel 11 as the listen channel
- pwdinfo->listen_channel = 11;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (pbuddy_adapter) {
+ pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+ }
+
+ if ( ( check_buddy_fwstate(padapter, _FW_LINKED ) == _TRUE ) &&
+ ( ( pbuddy_mlmeext->cur_channel == 1) || ( pbuddy_mlmeext->cur_channel == 6 ) || ( pbuddy_mlmeext->cur_channel == 11 ) )
+ )
+ {
+ // Use the AP's channel as the listen channel
+ // This will avoid the channel switch between AP's channel and listen channel.
+ pwdinfo->listen_channel = pbuddy_mlmeext->cur_channel;
+ }
+ else
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ // Use the channel 11 as the listen channel
+ pwdinfo->listen_channel = 11;
+ }
if (role == P2P_ROLE_DEVICE)
{
rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
- rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
+ #ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) == _TRUE )
+ {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_IDLE);
+ }
+ else
+ #endif
+ {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
+ }
pwdinfo->intent = 1;
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_LISTEN);
}
else if (role == P2P_ROLE_CLIENT)
{
rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
pwdinfo->intent = 1;
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_GONEGO_OK);
}
else if (role == P2P_ROLE_GO)
{
rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
pwdinfo->intent = 15;
+ rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_GONEGO_OK);
}
- //rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_NONE);
- rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_LISTEN);
-
// Use the OFDM rate in the P2P probe response frame. ( 6(B), 9(B), 12, 18, 24, 36, 48, 54 )
pwdinfo->support_rate[0] = 0x8c; // 6(B)
pwdinfo->support_rate[1] = 0x92; // 9(B)
@@ -3152,12 +4977,10 @@ void init_wifidirect_info( _adapter* padapter, enum P2P_ROLE role)
_rtw_memcpy( ( void* ) pwdinfo->p2p_wildcard_ssid, "DIRECT-", 7 );
_rtw_memset( pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN );
- _rtw_memcpy( pwdinfo->device_name, "Realtek DMP Device", 18 );
- pwdinfo->device_name_len = 18;
+ pwdinfo->device_name_len = 0;
_rtw_memset( &pwdinfo->invitereq_info, 0x00, sizeof( struct tx_invite_req_info ) );
pwdinfo->invitereq_info.token = 3; // Token used for P2P invitation request frame.
- pwdinfo->invitereq_info.peer_operation_ch = pwdinfo->listen_channel;
_rtw_memset( &pwdinfo->inviteresp_info, 0x00, sizeof( struct tx_invite_resp_info ) );
pwdinfo->inviteresp_info.token = 0;
@@ -3165,10 +4988,6 @@ void init_wifidirect_info( _adapter* padapter, enum P2P_ROLE role)
pwdinfo->profileindex = 0;
_rtw_memset( &pwdinfo->profileinfo[ 0 ], 0x00, sizeof( struct profile_info ) * P2P_MAX_PERSISTENT_GROUP_NUM );
- _init_timer( &pwdinfo->find_phase_timer, padapter->pnetdev, find_phase_timer_process, padapter );
- _init_timer( &pwdinfo->restore_p2p_state_timer, padapter->pnetdev, restore_p2p_state_timer_process, padapter );
- _init_timer( &pwdinfo->pre_tx_scan_timer, padapter->pnetdev, pre_tx_scan_timer_process, padapter );
-
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
pwdinfo->listen_dwell = ( u8 ) (( rtw_get_current_time() % 3 ) + 1);
@@ -3187,197 +5006,140 @@ void init_wifidirect_info( _adapter* padapter, enum P2P_ROLE role)
pwdinfo->ui_got_wps_info = P2P_NO_WPSINFO;
#ifdef CONFIG_WFD
- pwdinfo->supported_wps_cm = WPS_CONFIG_METHOD_DISPLAY;
- _rtw_memset( &pwdinfo->wfd_info, 0x00, sizeof( struct wifi_display_info ) );
- pwdinfo->wfd_info.rtsp_ctrlport = 554;
- pwdinfo->wfd_info.peer_rtsp_ctrlport = 0; // Reset to 0
+ pwdinfo->supported_wps_cm = WPS_CONFIG_METHOD_DISPLAY | WPS_CONFIG_METHOD_PBC;
+ pwdinfo->wfd_info = pwfd_info;
#else
pwdinfo->supported_wps_cm = WPS_CONFIG_METHOD_DISPLAY | WPS_CONFIG_METHOD_PBC | WPS_CONFIG_METHOD_KEYPAD;
#endif //CONFIG_WFD
- pwdinfo->channel_cnt = 0;
- _rtw_memset( pwdinfo->channel_list, 0x00, 13 );
+ pwdinfo->channel_list_attr_len = 0;
+ _rtw_memset( pwdinfo->channel_list_attr, 0x00, 100 );
_rtw_memset( pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, 0x00, 4 );
_rtw_memset( pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, '0', 3 );
_rtw_memset( &pwdinfo->groupid_info, 0x00, sizeof( struct group_id_info ) );
-
-}
-
+#ifdef CONFIG_CONCURRENT_MODE
#ifdef CONFIG_IOCTL_CFG80211
-int rtw_p2p_check_frames(_adapter *padapter, const u8 *buf, u32 len, u8 tx)
-{
- int is_p2p_frame = (-1);
- unsigned char *frame_body;
- u8 category, action, OUI_Subtype, dialogToken=0;
- struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
-
- frame_body = (unsigned char *)(buf + sizeof(struct rtw_ieee80211_hdr_3addr));
- category = frame_body[0];
- //just for check
- if(category == RTW_WLAN_CATEGORY_PUBLIC)
- {
- action = frame_body[ 1 ];
- OUI_Subtype = frame_body[ 6 ];
- dialogToken = frame_body[7];
-
- if ( action == ACT_PUBLIC_P2P )
- {
-#ifdef CONFIG_DEBUG_CFG80211
- DBG_871X("ACTION_CATEGORY_PUBLIC: ACT_PUBLIC_P2P, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
+ pwdinfo->ext_listen_interval = 1000; //The interval to be available with legacy AP during p2p0-find/scan
+ pwdinfo->ext_listen_period = 3000; //The time period to be available for P2P during nego
+#else //!CONFIG_IOCTL_CFG80211
+ //pwdinfo->ext_listen_interval = 3000;
+ //pwdinfo->ext_listen_period = 400;
+ pwdinfo->ext_listen_interval = 1000;
+ pwdinfo->ext_listen_period = 1000;
+#endif //!CONFIG_IOCTL_CFG80211
#endif
- is_p2p_frame = OUI_Subtype;
-
- switch( OUI_Subtype )//OUI Subtype
- {
- case P2P_GO_NEGO_REQ:
- DBG_871X("RTW_%s:P2P_GO_NEGO_REQ, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
-
- if(tx)
- {
- if(pwdev_priv->provdisc_req_issued == _FALSE)
- rtw_cfg80211_issue_p2p_provision_request(padapter, buf, len);
-
- //pwdev_priv->provdisc_req_issued = _FALSE;
- }
-
- break;
- case P2P_GO_NEGO_RESP:
- DBG_871X("RTW_%s:P2P_GO_NEGO_RESP, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
-
- if(!tx)
- pwdev_priv->provdisc_req_issued = _FALSE;
-
- break;
- case P2P_GO_NEGO_CONF:
- DBG_871X("RTW_%s:P2P_GO_NEGO_CONF, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
- break;
- case P2P_INVIT_REQ:
- DBG_871X("RTW_%s:P2P_INVIT_REQ, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
- break;
- case P2P_INVIT_RESP:
- DBG_871X("RTW_%s:P2P_INVIT_RESP, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
- break;
- case P2P_DEVDISC_REQ:
- DBG_871X("RTW_%s:P2P_DEVDISC_REQ, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
- break;
- case P2P_DEVDISC_RESP:
- DBG_871X("RTW_%s:P2P_DEVDISC_RESP, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
- break;
- case P2P_PROVISION_DISC_REQ:
- {
- size_t frame_body_len = len - sizeof(struct rtw_ieee80211_hdr_3addr);
- u8 *p2p_ie;
- uint p2p_ielen = 0;
- uint contentlen = 0;
-
- DBG_871X("RTW_%s:P2P_PROVISION_DISC_REQ, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
-
- //if(tx)
- {
- pwdev_priv->provdisc_req_issued = _FALSE;
-
- if( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, frame_body_len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)))
- {
-
- if(rtw_get_p2p_attr_content( p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, NULL, &contentlen))
- {
- pwdev_priv->provdisc_req_issued = _FALSE;//case: p2p_client join p2p GO
- }
- else
- {
- DBG_871X("provdisc_req_issued is _TRUE\n");
- pwdev_priv->provdisc_req_issued = _TRUE;//case: p2p_devices connection before Nego req.
- }
-
- }
- }
- }
- break;
- case P2P_PROVISION_DISC_RESP:
- DBG_871X("RTW_%s:P2P_PROVISION_DISC_RESP, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", dialogToken);
- break;
- default:
- DBG_871X("RTW_%s:OUI_Subtype=%d, dialogToken=%d\n", (tx==_TRUE)?"Tx":"Rx", OUI_Subtype, dialogToken);
- break;
- }
-
- }
- else
- {
- DBG_871X("ACTION_CATEGORY_PUBLIC: action=%d, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- action, cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
- }
-
- }
- else if(category == RTW_WLAN_CATEGORY_P2P)
- {
- OUI_Subtype = frame_body[5];
- dialogToken = frame_body[6];
-
-#ifdef CONFIG_DEBUG_CFG80211
- DBG_871X("ACTION_CATEGORY_P2P: OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- cpu_to_be32( *( ( u32* ) ( frame_body + 1 ) ) ), OUI_Subtype, dialogToken);
-#endif
+// Commented by Kurt 20130319
+// For WiDi purpose: Use CFG80211 interface but controled WFD/RDS frame by driver itself.
+#ifdef CONFIG_IOCTL_CFG80211
+ pwdinfo->driver_interface = DRIVER_CFG80211;
+#else
+ pwdinfo->driver_interface = DRIVER_WEXT;
+#endif //CONFIG_IOCTL_CFG80211
- is_p2p_frame = OUI_Subtype;
+ pwdinfo->wfd_tdls_enable = 0;
+ _rtw_memset( pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN );
+ _rtw_memset( pwdinfo->p2p_peer_device_addr, 0x00, ETH_ALEN );
+
+ pwdinfo->rx_invitereq_info.operation_ch[0] = 0;
+ pwdinfo->rx_invitereq_info.operation_ch[1] = 0; // Used to indicate the scan end in site survey function
+#ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->rx_invitereq_info.operation_ch[2] = 0;
+ pwdinfo->rx_invitereq_info.operation_ch[3] = 0;
+ pwdinfo->rx_invitereq_info.operation_ch[4] = 0;
+#endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->rx_invitereq_info.scan_op_ch_only = 0;
+ pwdinfo->p2p_info.operation_ch[0] = 0;
+ pwdinfo->p2p_info.operation_ch[1] = 0; // Used to indicate the scan end in site survey function
+#ifdef P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.operation_ch[2] = 0;
+ pwdinfo->p2p_info.operation_ch[3] = 0;
+ pwdinfo->p2p_info.operation_ch[4] = 0;
+#endif //P2P_OP_CHECK_SOCIAL_CH
+ pwdinfo->p2p_info.scan_op_ch_only = 0;
+}
- switch(OUI_Subtype)
- {
- case P2P_NOTICE_OF_ABSENCE:
- DBG_871X("RTW_%s:P2P_NOTICE_OF_ABSENCE, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
- break;
- case P2P_PRESENCE_REQUEST:
- DBG_871X("RTW_%s:P2P_PRESENCE_REQUEST, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
- break;
- case P2P_PRESENCE_RESPONSE:
- DBG_871X("RTW_%s:P2P_PRESENCE_RESPONSE, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
- break;
- case P2P_GO_DISC_REQUEST:
- DBG_871X("RTW_%s:P2P_GO_DISC_REQUEST, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", dialogToken);
- break;
- default:
- DBG_871X("RTW_%s:OUI_Subtype=%d, dialogToken=%d\n", (tx==_TRUE)?"TX":"RX", OUI_Subtype, dialogToken);
- break;
- }
+#ifdef CONFIG_DBG_P2P
- }
- else
- {
- DBG_871X("%s, action frame category=%d\n", __func__, category);
- //is_p2p_frame = (-1);
+/**
+ * rtw_p2p_role_txt - Get the p2p role name as a text string
+ * @role: P2P role
+ * Returns: The state name as a printable text string
+ */
+const char * rtw_p2p_role_txt(enum P2P_ROLE role)
+{
+ switch (role) {
+ case P2P_ROLE_DISABLE:
+ return "P2P_ROLE_DISABLE";
+ case P2P_ROLE_DEVICE:
+ return "P2P_ROLE_DEVICE";
+ case P2P_ROLE_CLIENT:
+ return "P2P_ROLE_CLIENT";
+ case P2P_ROLE_GO:
+ return "P2P_ROLE_GO";
+ default:
+ return "UNKNOWN";
}
-
- return is_p2p_frame;
}
-#endif //CONFIG_IOCTL_CFG80211
-#ifdef CONFIG_DBG_P2P
-char * p2p_role_str[] = {
- "P2P_ROLE_DISABLE",
- "P2P_ROLE_DEVICE",
- "P2P_ROLE_CLIENT",
- "P2P_ROLE_GO"
-};
-
-char * p2p_state_str[] = {
- "P2P_STATE_NONE",
- "P2P_STATE_IDLE",
- "P2P_STATE_LISTEN",
- "P2P_STATE_SCAN",
- "P2P_STATE_FIND_PHASE_LISTEN",
- "P2P_STATE_FIND_PHASE_SEARCH",
- "P2P_STATE_TX_PROVISION_DIS_REQ",
- "P2P_STATE_RX_PROVISION_DIS_RSP",
- "P2P_STATE_RX_PROVISION_DIS_REQ",
- "P2P_STATE_GONEGO_ING",
- "P2P_STATE_GONEGO_OK",
- "P2P_STATE_GONEGO_FAIL",
- "P2P_STATE_RECV_INVITE_REQ",
- "P2P_STATE_PROVISIONING_ING",
- "P2P_STATE_PROVISIONING_DONE"
-};
+/**
+ * rtw_p2p_state_txt - Get the p2p state name as a text string
+ * @state: P2P state
+ * Returns: The state name as a printable text string
+ */
+const char * rtw_p2p_state_txt(enum P2P_STATE state)
+{
+ switch (state) {
+ case P2P_STATE_NONE:
+ return "P2P_STATE_NONE";
+ case P2P_STATE_IDLE:
+ return "P2P_STATE_IDLE";
+ case P2P_STATE_LISTEN:
+ return "P2P_STATE_LISTEN";
+ case P2P_STATE_SCAN:
+ return "P2P_STATE_SCAN";
+ case P2P_STATE_FIND_PHASE_LISTEN:
+ return "P2P_STATE_FIND_PHASE_LISTEN";
+ case P2P_STATE_FIND_PHASE_SEARCH:
+ return "P2P_STATE_FIND_PHASE_SEARCH";
+ case P2P_STATE_TX_PROVISION_DIS_REQ:
+ return "P2P_STATE_TX_PROVISION_DIS_REQ";
+ case P2P_STATE_RX_PROVISION_DIS_RSP:
+ return "P2P_STATE_RX_PROVISION_DIS_RSP";
+ case P2P_STATE_RX_PROVISION_DIS_REQ:
+ return "P2P_STATE_RX_PROVISION_DIS_REQ";
+ case P2P_STATE_GONEGO_ING:
+ return "P2P_STATE_GONEGO_ING";
+ case P2P_STATE_GONEGO_OK:
+ return "P2P_STATE_GONEGO_OK";
+ case P2P_STATE_GONEGO_FAIL:
+ return "P2P_STATE_GONEGO_FAIL";
+ case P2P_STATE_RECV_INVITE_REQ_MATCH:
+ return "P2P_STATE_RECV_INVITE_REQ_MATCH";
+ case P2P_STATE_PROVISIONING_ING:
+ return "P2P_STATE_PROVISIONING_ING";
+ case P2P_STATE_PROVISIONING_DONE:
+ return "P2P_STATE_PROVISIONING_DONE";
+ case P2P_STATE_TX_INVITE_REQ:
+ return "P2P_STATE_TX_INVITE_REQ";
+ case P2P_STATE_RX_INVITE_RESP_OK:
+ return "P2P_STATE_RX_INVITE_RESP_OK";
+ case P2P_STATE_RECV_INVITE_REQ_DISMATCH:
+ return "P2P_STATE_RECV_INVITE_REQ_DISMATCH";
+ case P2P_STATE_RECV_INVITE_REQ_GO:
+ return "P2P_STATE_RECV_INVITE_REQ_GO";
+ case P2P_STATE_RECV_INVITE_REQ_JOIN:
+ return "P2P_STATE_RECV_INVITE_REQ_JOIN";
+ case P2P_STATE_RX_INVITE_RESP_FAIL:
+ return "P2P_STATE_RX_INVITE_RESP_FAIL";
+ case P2P_STATE_RX_INFOR_NOREADY:
+ return "P2P_STATE_RX_INFOR_NOREADY";
+ case P2P_STATE_TX_INFOR_NOREADY:
+ return "P2P_STATE_TX_INFOR_NOREADY";
+ default:
+ return "UNKNOWN";
+ }
+}
void dbg_rtw_p2p_set_state(struct wifidirect_info *wdinfo, enum P2P_STATE state, const char *caller, int line)
{
@@ -3385,11 +5147,11 @@ void dbg_rtw_p2p_set_state(struct wifidirect_info *wdinfo, enum P2P_STATE state,
enum P2P_STATE old_state = _rtw_p2p_state(wdinfo);
_rtw_p2p_set_state(wdinfo, state);
DBG_871X("[CONFIG_DBG_P2P]%s:%d set_state from %s to %s\n", caller, line
- , p2p_state_str[old_state], p2p_state_str[_rtw_p2p_state(wdinfo)]
+ , rtw_p2p_state_txt(old_state), rtw_p2p_state_txt(_rtw_p2p_state(wdinfo))
);
} else {
DBG_871X("[CONFIG_DBG_P2P]%s:%d set_state to same state %s\n", caller, line
- , p2p_state_str[_rtw_p2p_state(wdinfo)]
+ , rtw_p2p_state_txt(_rtw_p2p_state(wdinfo))
);
}
}
@@ -3399,11 +5161,11 @@ void dbg_rtw_p2p_set_pre_state(struct wifidirect_info *wdinfo, enum P2P_STATE st
enum P2P_STATE old_state = _rtw_p2p_pre_state(wdinfo);
_rtw_p2p_set_pre_state(wdinfo, state);
DBG_871X("[CONFIG_DBG_P2P]%s:%d set_pre_state from %s to %s\n", caller, line
- , p2p_state_str[old_state], p2p_state_str[_rtw_p2p_pre_state(wdinfo)]
+ , rtw_p2p_state_txt(old_state), rtw_p2p_state_txt(_rtw_p2p_pre_state(wdinfo))
);
} else {
DBG_871X("[CONFIG_DBG_P2P]%s:%d set_pre_state to same state %s\n", caller, line
- , p2p_state_str[_rtw_p2p_pre_state(wdinfo)]
+ , rtw_p2p_state_txt(_rtw_p2p_pre_state(wdinfo))
);
}
}
@@ -3428,11 +5190,11 @@ void dbg_rtw_p2p_set_role(struct wifidirect_info *wdinfo, enum P2P_ROLE role, co
enum P2P_ROLE old_role = wdinfo->role;
_rtw_p2p_set_role(wdinfo, role);
DBG_871X("[CONFIG_DBG_P2P]%s:%d set_role from %s to %s\n", caller, line
- , p2p_role_str[old_role], p2p_role_str[wdinfo->role]
+ , rtw_p2p_role_txt(old_role), rtw_p2p_role_txt(wdinfo->role)
);
} else {
DBG_871X("[CONFIG_DBG_P2P]%s:%d set_role to same role %s\n", caller, line
- , p2p_role_str[wdinfo->role]
+ , rtw_p2p_role_txt(wdinfo->role)
);
}
}
@@ -3450,29 +5212,45 @@ int rtw_p2p_enable(_adapter *padapter, enum P2P_ROLE role)
u8 channel, ch_offset;
u16 bwmode;
- //leave IPS/Autosuspend
- if(_FAIL == rtw_pwr_wakeup(padapter))
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ // Commented by Albert 2011/12/30
+ // The driver just supports 1 P2P group operation.
+ // So, this function will do nothing if the buddy adapter had enabled the P2P function.
+ if(!rtw_p2p_chk_state(pbuddy_wdinfo, P2P_STATE_NONE))
{
+ // The buddy adapter had enabled the P2P function.
+ return ret;
+ }
+#endif //CONFIG_CONCURRENT_MODE
+
+ //leave IPS/Autosuspend
+ if (_FAIL == rtw_pwr_wakeup(padapter)) {
ret = _FAIL;
goto exit;
}
+
- #ifdef CONFIG_P2P_AGAINST_NOISE
- //Sometimes dongle would difficult to receive p2p_probe_req caused by platform noise. Kurt
- rtw_write8(padapter, 0xc41, 0x42);
- DBG_8192C("rtw_write8(0x%x)=0x%02x\n", 0xc41, rtw_read8(padapter, 0xc41));
- #endif
+ // Added by Albert 2011/03/22
+ // In the P2P mode, the driver should not support the b mode.
+ // So, the Tx packet shouldn't use the CCK rate
+ update_tx_basic_rate(padapter, WIRELESS_11AGN);
//Enable P2P function
init_wifidirect_info(padapter, role);
-
}
else if (role == P2P_ROLE_DISABLE)
- {
- #ifdef CONFIG_P2P_AGAINST_NOISE
- rtw_write8(padapter, 0xc41, 0x40);
- DBG_8192C("rtw_write8(0x%x)=0x%02x\n", 0xc41, rtw_read8(padapter, 0xc41));
- #endif
+ {
+#ifdef CONFIG_INTEL_WIDI
+ if( padapter->mlmepriv.p2p_reject_disable == _TRUE )
+ return ret;
+#endif //CONFIG_INTEL_WIDI
+
+ if (_FAIL == rtw_pwr_wakeup(padapter)) {
+ ret = _FAIL;
+ goto exit;
+ }
//Disable P2P function
if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
@@ -3480,16 +5258,34 @@ int rtw_p2p_enable(_adapter *padapter, enum P2P_ROLE role)
_cancel_timer_ex( &pwdinfo->find_phase_timer );
_cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
_cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
+ _cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey);
+ _cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey2);
+ reset_ch_sitesurvey_timer_process( padapter );
+ reset_ch_sitesurvey_timer_process2( padapter );
+ #ifdef CONFIG_CONCURRENT_MODE
+ _cancel_timer_ex( &pwdinfo->ap_p2p_switch_timer);
+ #endif
rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
rtw_p2p_set_role(pwdinfo, P2P_ROLE_DISABLE);
_rtw_memset(&pwdinfo->rx_prov_disc_info, 0x00, sizeof(struct rx_provdisc_req_info));
}
-
- if(pwrpriv->bips_processing == _FALSE){
- rtw_set_pwr_state_check_timer(pwrpriv);
- }
+
+ //Restore to initial setting.
+ update_tx_basic_rate(padapter, padapter->registrypriv.wireless_mode);
+
+#ifdef CONFIG_INTEL_WIDI
+ rtw_reset_widi_info(padapter);
+#endif //CONFIG_INTEL_WIDI
+
+ //For WiDi purpose.
+#ifdef CONFIG_IOCTL_CFG80211
+ pwdinfo->driver_interface = DRIVER_CFG80211;
+#else
+ pwdinfo->driver_interface = DRIVER_WEXT;
+#endif //CONFIG_IOCTL_CFG80211
+
}
-
+
exit:
return ret;
}
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_pwrctrl.c b/drivers/net/wireless/rtl8192cu/core/rtw_pwrctrl.c
index 92b3cb8..d1c11fa 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_pwrctrl.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_pwrctrl.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_PWRCTRL_C_
#include <drv_conf.h>
@@ -25,87 +24,78 @@
#include <drv_types.h>
#include <osdep_intf.h>
-#ifdef CONFIG_SDIO_HCI
-#include <sdio_ops.h>
-#endif
#ifdef CONFIG_IPS
-void ips_enter(_adapter * padapter)
+void _ips_enter(_adapter * padapter)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
-
- _enter_pwrlock(&pwrpriv->lock);
-
- pwrpriv->bips_processing = _TRUE;
+ pwrpriv->bips_processing = _TRUE;
// syn ips_mode with request
pwrpriv->ips_mode = pwrpriv->ips_mode_req;
-
- pwrpriv->ips_enter_cnts++;
- DBG_8192C("==>ips_enter cnts:%d\n",pwrpriv->ips_enter_cnts);
-
- if(rf_off == pwrpriv->change_rfpwrstate )
- {
- DBG_8192C("==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x%08x).... \n\n",rtw_read32(padapter,0x4c));
-
+
+ pwrpriv->ips_enter_cnts++;
+ DBG_871X("==>ips_enter cnts:%d\n",pwrpriv->ips_enter_cnts);
+
+ if(rf_off == pwrpriv->change_rfpwrstate)
+ {
if(pwrpriv->ips_mode == IPS_LEVEL_2)
pwrpriv->bkeepfwalive = _TRUE;
-
+
rtw_ips_pwr_down(padapter);
pwrpriv->rf_pwrstate = rf_off;
- }
- pwrpriv->bips_processing = _FALSE;
+ }
+ pwrpriv->bips_processing = _FALSE;
+
+}
+
+void ips_enter(_adapter * padapter)
+{
+ struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+
+ _enter_pwrlock(&pwrpriv->lock);
+ _ips_enter(padapter);
_exit_pwrlock(&pwrpriv->lock);
-
}
-int ips_leave(_adapter * padapter)
+int _ips_leave(_adapter * padapter)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct security_priv* psecuritypriv=&(padapter->securitypriv);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
int result = _SUCCESS;
- sint keyid;
- _enter_pwrlock(&pwrpriv->lock);
+
if((pwrpriv->rf_pwrstate == rf_off) &&(!pwrpriv->bips_processing))
{
+ pwrpriv->bips_processing = _TRUE;
pwrpriv->change_rfpwrstate = rf_on;
pwrpriv->ips_leave_cnts++;
- DBG_8192C("==>ips_leave cnts:%d\n",pwrpriv->ips_leave_cnts);
-
- result = rtw_ips_pwr_up(padapter);
- pwrpriv->bips_processing = _TRUE;
- pwrpriv->rf_pwrstate = rf_on;
+ DBG_871X("==>ips_leave cnts:%d\n",pwrpriv->ips_leave_cnts);
- if((_WEP40_ == psecuritypriv->dot11PrivacyAlgrthm) ||(_WEP104_ == psecuritypriv->dot11PrivacyAlgrthm))
- {
- DBG_8192C("==>%s,channel(%d),processing(%x)\n",__FUNCTION__,padapter->mlmeextpriv.cur_channel,pwrpriv->bips_processing);
- set_channel_bwmode(padapter, padapter->mlmeextpriv.cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- for(keyid=0;keyid<4;keyid++){
- if(pmlmepriv->key_mask & BIT(keyid)){
- if(keyid == psecuritypriv->dot11PrivacyKeyIndex)
- result=rtw_set_key(padapter,psecuritypriv, keyid, 1);
- else
- result=rtw_set_key(padapter,psecuritypriv, keyid, 0);
- }
- }
+ if ((result = rtw_ips_pwr_up(padapter)) == _SUCCESS) {
+ pwrpriv->rf_pwrstate = rf_on;
}
-
- DBG_8192C("==> ips_leave.....LED(0x%08x)...\n",rtw_read32(padapter,0x4c));
+
+ DBG_871X("==> ips_leave.....LED(0x%08x)...\n",rtw_read32(padapter,0x4c));
pwrpriv->bips_processing = _FALSE;
pwrpriv->bkeepfwalive = _FALSE;
-
-
}
- _exit_pwrlock(&pwrpriv->lock);
+
return result;
}
+int ips_leave(_adapter * padapter)
+{
+ struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+ int ret;
-#endif
+ _enter_pwrlock(&pwrpriv->lock);
+ ret = _ips_leave(padapter);
+ _exit_pwrlock(&pwrpriv->lock);
+
+ return ret;
+}
+#endif /* CONFIG_IPS */
#ifdef CONFIG_AUTOSUSPEND
extern void autosuspend_enter(_adapter* padapter);
@@ -117,7 +107,74 @@ int rtw_hw_suspend(_adapter *padapter );
int rtw_hw_resume(_adapter *padapter);
#endif
-#ifdef PLATFORM_LINUX
+bool rtw_pwr_unassociated_idle(_adapter *adapter)
+{
+ _adapter *buddy = adapter->pbuddy_adapter;
+ struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo = &(adapter->wdinfo);
+#ifdef CONFIG_IOCTL_CFG80211
+ struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &adapter->cfg80211_wdinfo;
+#endif
+#endif
+
+ bool ret = _FALSE;
+
+ if (adapter->pwrctrlpriv.ips_deny_time >= rtw_get_current_time()) {
+ //DBG_871X("%s ips_deny_time\n", __func__);
+ goto exit;
+ }
+
+ if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR)
+ || check_fwstate(pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS)
+ || check_fwstate(pmlmepriv, WIFI_AP_STATE)
+ || check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE)
+ #if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) && defined(CONFIG_P2P_IPS)
+ || pcfg80211_wdinfo->is_ro_ch
+ #elif defined(CONFIG_P2P)
+ || !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)
+ #endif
+ ) {
+ goto exit;
+ }
+
+ /* consider buddy, if exist */
+ if (buddy) {
+ struct mlme_priv *b_pmlmepriv = &(buddy->mlmepriv);
+ #ifdef CONFIG_P2P
+ struct wifidirect_info *b_pwdinfo = &(buddy->wdinfo);
+ #ifdef CONFIG_IOCTL_CFG80211
+ struct cfg80211_wifidirect_info *b_pcfg80211_wdinfo = &buddy->cfg80211_wdinfo;
+ #endif
+ #endif
+
+ if (check_fwstate(b_pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR)
+ || check_fwstate(b_pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS)
+ || check_fwstate(b_pmlmepriv, WIFI_AP_STATE)
+ || check_fwstate(b_pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE)
+ #if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) && defined(CONFIG_P2P_IPS)
+ || b_pcfg80211_wdinfo->is_ro_ch
+ #elif defined(CONFIG_P2P)
+ || !rtw_p2p_chk_state(b_pwdinfo, P2P_STATE_NONE)
+ #endif
+ ) {
+ goto exit;
+ }
+ }
+
+#ifdef CONFIG_INTEL_PROXIM
+ if(adapter->proximity.proxim_on==_TRUE){
+ return;
+ }
+#endif
+
+ ret = _TRUE;
+
+exit:
+ return ret;
+}
+
+#if defined (PLATFORM_LINUX)||defined (PLATFORM_FREEBSD)
void rtw_ps_processor(_adapter*padapter)
{
#ifdef CONFIG_P2P
@@ -125,13 +182,17 @@ void rtw_ps_processor(_adapter*padapter)
#endif //CONFIG_P2P
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- int res;
+#ifdef SUPPORT_HW_RFOFF_DETECTED
rt_rf_power_state rfpwrstate;
-
+#endif //SUPPORT_HW_RFOFF_DETECTED
+
+ pwrpriv->ps_processing = _TRUE;
+
#ifdef SUPPORT_HW_RFOFF_DETECTED
- if(pwrpriv->bips_processing == _TRUE) return;
+ if(pwrpriv->bips_processing == _TRUE)
+ goto exit;
- //DBG_8192C("==> fw report state(0x%x)\n",rtw_read8(padapter,0x1ca));
+ //DBG_871X("==> fw report state(0x%x)\n",rtw_read8(padapter,0x1ca));
if(padapter->pwrctrlpriv.bHWPwrPindetect)
{
#ifdef CONFIG_AUTOSUSPEND
@@ -143,7 +204,7 @@ void rtw_ps_processor(_adapter*padapter)
pwrpriv->ps_flag = _TRUE;
rfpwrstate = RfOnOffDetect(padapter);
- DBG_8192C("@@@@- #1 %s==> rfstate:%s \n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off");
+ DBG_871X("@@@@- #1 %s==> rfstate:%s \n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off");
if(rfpwrstate!= pwrpriv->rf_pwrstate)
{
if(rfpwrstate == rf_off)
@@ -162,7 +223,7 @@ void rtw_ps_processor(_adapter*padapter)
#endif //CONFIG_AUTOSUSPEND
{
rfpwrstate = RfOnOffDetect(padapter);
- DBG_8192C("@@@@- #2 %s==> rfstate:%s \n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off");
+ DBG_871X("@@@@- #2 %s==> rfstate:%s \n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off");
if(rfpwrstate!= pwrpriv->rf_pwrstate)
{
@@ -178,46 +239,41 @@ void rtw_ps_processor(_adapter*padapter)
pwrpriv->change_rfpwrstate = rf_on;
rtw_hw_resume(padapter );
}
- DBG_8192C("current rf_pwrstate(%s)\n",(pwrpriv->rf_pwrstate == rf_off)?"rf_off":"rf_on");
+ DBG_871X("current rf_pwrstate(%s)\n",(pwrpriv->rf_pwrstate == rf_off)?"rf_off":"rf_on");
}
}
pwrpriv->pwr_state_check_cnts ++;
}
#endif //SUPPORT_HW_RFOFF_DETECTED
- if( pwrpriv->power_mgnt == PS_MODE_ACTIVE ) return;
+ if (pwrpriv->ips_mode_req == IPS_NONE
+ #ifdef CONFIG_CONCURRENT_MODE
+ || padapter->pbuddy_adapter->pwrctrlpriv.ips_mode_req == IPS_NONE
+ #endif
+ )
+ goto exit;
+
+ if (rtw_pwr_unassociated_idle(padapter) == _FALSE)
+ goto exit;
if((pwrpriv->rf_pwrstate == rf_on) && ((pwrpriv->pwr_state_check_cnts%4)==0))
{
- if ( (check_fwstate(pmlmepriv, _FW_LINKED|_FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE) ||
- (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) ||
- (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE) ||
- (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) ||
- (padapter->bup == _FALSE)
- #ifdef CONFIG_P2P
- || !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)
- #endif //CONFIG_P2P
- )
- {
- return;
- }
-
- DBG_8192C("==>%s .fw_state(%x)\n",__FUNCTION__,get_fwstate(pmlmepriv));
+ DBG_871X("==>%s .fw_state(%x)\n",__FUNCTION__,get_fwstate(pmlmepriv));
pwrpriv->change_rfpwrstate = rf_off;
#ifdef CONFIG_AUTOSUSPEND
if(padapter->registrypriv.usbss_enable)
{
- if(padapter->pwrctrlpriv.bHWPwrPindetect)
- pwrpriv->bkeepfwalive = _TRUE;
-
+ if(pwrpriv->bHWPwrPindetect)
+ pwrpriv->bkeepfwalive = _TRUE;
+
if(padapter->net_closed == _TRUE)
pwrpriv->ps_flag = _TRUE;
padapter->bCardDisableWOHSM = _TRUE;
autosuspend_enter(padapter);
}
- else if(padapter->pwrctrlpriv.bHWPwrPindetect)
+ else if(pwrpriv->bHWPwrPindetect)
{
}
else
@@ -228,95 +284,72 @@ void rtw_ps_processor(_adapter*padapter)
#endif
}
}
-
-
+exit:
+ rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
+ pwrpriv->ps_processing = _FALSE;
+ return;
}
+void pwr_state_check_handler(void *FunctionContext);
void pwr_state_check_handler(void *FunctionContext)
{
_adapter *padapter = (_adapter *)FunctionContext;
- struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
-#ifdef CONFIG_P2P
- struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
-#endif //CONFIG_P2P
- //DBG_871X("%s\n", __FUNCTION__);
-
-#ifdef SUPPORT_HW_RFOFF_DETECTED
- //DBG_8192C("%s...bHWPwrPindetect(%d)\n",__FUNCTION__,padapter->pwrctrlpriv.bHWPwrPindetect);
- if(padapter->pwrctrlpriv.bHWPwrPindetect)
- {
- rtw_ps_cmd(padapter);
- rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
- }
- else
-#endif
- {
- //if(padapter->net_closed == _TRUE) return;
- //DBG_8192C("==>%s .fw_state(%x)\n", __FUNCTION__, get_fwstate(pmlmepriv));
- if ( (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) ||
- (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE) ||
- (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) ||
- (check_fwstate(pmlmepriv, _FW_LINKED|_FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE) ||
- (padapter->bup == _FALSE)
-#ifdef CONFIG_P2P
- || !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)
-#endif //CONFIG_P2P
- )
- {
- //other pwr ctrl....
- rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
- }
- else
- {
- if((pwrpriv->rf_pwrstate == rf_on) &&(_FALSE == pwrpriv->bips_processing))
- {
- pwrpriv->change_rfpwrstate = rf_off;
- pwrctrlpriv->pwr_state_check_cnts = 0;
- DBG_8192C("==>pwr_state_check_handler .fw_state(%x)\n",get_fwstate(pmlmepriv));
- rtw_ps_cmd(padapter);
- }
-
- }
- }
-
-
-
+ rtw_ps_cmd(padapter);
}
#endif
#ifdef CONFIG_LPS
-void rtw_set_rpwm(_adapter * padapter, u8 val8)
+/*
+ *
+ * Parameters
+ * padapter
+ * pslv power state level, only could be PS_STATE_S0 ~ PS_STATE_S4
+ *
+ */
+void rtw_set_rpwm(PADAPTER padapter, u8 pslv)
{
u8 rpwm;
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
_func_enter_;
- if(pwrpriv->rpwm == val8){
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("Already set rpwm [%d] ! \n", val8));
+ pslv = PS_STATE(pslv);
+
+ if (pwrpriv->rpwm == pslv) {
+ RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,
+ ("%s: Already set rpwm[0x%02x]!\n", __FUNCTION__, pslv));
return;
}
- if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE)){
- RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("rtw_set_rpwm=> bDriverStopped or bSurpriseRemoved \n"));
+ if ((padapter->bDriverStopped == _TRUE) ||
+ (padapter->bSurpriseRemoved == _TRUE)) {
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_,
+ ("%s: bDriverStopped(%d) bSurpriseRemoved(%d)\n",
+ __FUNCTION__, padapter->bDriverStopped, padapter->bSurpriseRemoved));
return;
}
- rpwm = val8 |pwrpriv->tog;
- pwrpriv->rpwm = val8;
-
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_set_rpwm: value = %x\n", rpwm));
+ rpwm = pslv | pwrpriv->tog;
+#ifdef CONFIG_LPS_LCLK
+ if ((pwrpriv->cpwm < PS_STATE_S2) && (pslv >= PS_STATE_S2))
+ rpwm |= PS_ACK;
+#endif
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_set_rpwm: rpwm=0x%02x cpwm=0x%02x\n", rpwm, pwrpriv->cpwm));
+
+ pwrpriv->rpwm = pslv;
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_SET_RPWM, (u8 *)(&rpwm));
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_SET_RPWM, (u8 *)(&rpwm));
-
pwrpriv->tog += 0x80;
+ if (!(rpwm & PS_ACK)) pwrpriv->cpwm = pslv;
+
_func_exit_;
}
+u8 PS_RDY_CHECK(_adapter * padapter);
u8 PS_RDY_CHECK(_adapter * padapter)
{
u32 curr_time, delta_time;
@@ -332,7 +365,9 @@ u8 PS_RDY_CHECK(_adapter * padapter)
return _FALSE;
}
- if ( (check_fwstate(pmlmepriv, _FW_LINKED) == _FALSE) ||
+ if ((check_fwstate(pmlmepriv, _FW_LINKED) == _FALSE) ||
+ (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE) ||
+ (check_fwstate(pmlmepriv, WIFI_UNDER_WPS) == _TRUE) ||
(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) ||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE) ||
(check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) )
@@ -343,24 +378,37 @@ u8 PS_RDY_CHECK(_adapter * padapter)
if( (padapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) && (padapter->securitypriv.binstallGrpkey == _FALSE) )
{
- DBG_8192C("Group handshake still in progress !!!\n");
+ DBG_871X("Group handshake still in progress !!!\n");
return _FALSE;
}
+#ifdef CONFIG_IOCTL_CFG80211
+ if (!rtw_cfg80211_pwr_mgmt(padapter))
+ return _FALSE;
+#endif
+
return _TRUE;
}
-void rtw_set_ps_mode(_adapter * padapter, u8 ps_mode, u8 smart_ps)
+void rtw_set_ps_mode(PADAPTER padapter, u8 ps_mode, u8 smart_ps)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
#endif //CONFIG_P2P
+#ifdef CONFIG_TDLS
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ _irqL irqL;
+ int i, j;
+ _list *plist, *phead;
+ struct sta_info *ptdls_sta;
+#endif //CONFIG_TDLS
_func_enter_;
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("========= Power Mode is :%d, Smart_PS = %d\n", ps_mode,smart_ps));
- //DBG_8192C("========= Power Mode is :%d, Smart_PS = %d\n", ps_mode,smart_ps);
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("%s: PowerMode=%d Smart_PS=%d\n",
+ __FUNCTION__, ps_mode, smart_ps));
if(ps_mode > PM_Card_Disable) {
RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("ps_mode:%d error\n", ps_mode));
@@ -375,34 +423,108 @@ _func_enter_;
//if(pwrpriv->pwr_mode == PS_MODE_ACTIVE)
if(ps_mode == PS_MODE_ACTIVE)
{
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
if(pwdinfo->opp_ps == 0)
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
{
- DBG_8192C("rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..\n");
+#ifdef CONFIG_LPS_LCLK
+ _enter_pwrlock(&pwrpriv->lock);
+#endif
+ DBG_871X("rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..\n");
+
+#ifdef CONFIG_TDLS
+ _enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+
+ for(i=0; i< NUM_STA; i++)
+ {
+ phead = &(pstapriv->sta_hash[i]);
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ ptdls_sta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
+
+ if( ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE )
+ issue_nulldata_to_TDLS_peer_STA(padapter, ptdls_sta, 0);
+ plist = get_next(plist);
+ }
+ }
+
+ _exit_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+#endif //CONFIG_TDLS
+
pwrpriv->smart_ps = smart_ps;
pwrpriv->pwr_mode = ps_mode;
+
rtw_set_rpwm(padapter, PS_STATE_S4);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&ps_mode));
+#ifdef CONFIG_LPS_LCLK
+{
+ u32 n = 0;
+ while (pwrpriv->cpwm != PS_STATE_S4) {
+ n++;
+ if (n == 10000) break;
+ if (padapter->bSurpriseRemoved == _TRUE) break;
+ rtw_msleep_os(1);
+ }
+ if (n == 10000)
+ printk(KERN_ERR "%s: wait CPWM to S4 too long! cpwm=0x%02x\n", __func__, pwrpriv->cpwm);
+}
+#endif
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&ps_mode));
pwrpriv->bFwCurrentInPSMode = _FALSE;
+#ifdef CONFIG_LPS_LCLK
+ _exit_pwrlock(&pwrpriv->lock);
+#endif
}
}
else
{
if(PS_RDY_CHECK(padapter))
{
- DBG_8192C("rtw_set_ps_mode(): Enter 802.11 power save mode...\n");
+#ifdef CONFIG_LPS_LCLK
+ _enter_pwrlock(&pwrpriv->lock);
+#endif
+ DBG_871X("rtw_set_ps_mode(): Enter 802.11 power save mode...\n");
+
+#ifdef CONFIG_TDLS
+ _enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+
+ for(i=0; i< NUM_STA; i++)
+ {
+ phead = &(pstapriv->sta_hash[i]);
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ ptdls_sta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
+
+ if( ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE )
+ issue_nulldata_to_TDLS_peer_STA(padapter, ptdls_sta, 1);
+ plist = get_next(plist);
+ }
+ }
+
+ _exit_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+#endif //CONFIG_TDLS
+
pwrpriv->smart_ps = smart_ps;
pwrpriv->pwr_mode = ps_mode;
pwrpriv->bFwCurrentInPSMode = _TRUE;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&ps_mode));
-#ifdef CONFIG_P2P
+ rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&ps_mode));
+#ifdef CONFIG_P2P_PS
// Set CTWindow after LPS
if(pwdinfo->opp_ps == 1)
- //if(pwdinfo->p2p_ps_enable == _TRUE)
p2p_ps_wk_cmd(padapter, P2P_PS_ENABLE, 0);
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
+#ifdef CONFIG_LPS_LCLK
+ if (pwrpriv->alives == 0)
+ rtw_set_rpwm(padapter, PS_STATE_S0);
+#else
rtw_set_rpwm(padapter, PS_STATE_S2);
+#endif
+#ifdef CONFIG_LPS_LCLK
+ _exit_pwrlock(&pwrpriv->lock);
+#endif
}
//else
//{
@@ -422,18 +544,54 @@ void LPS_Enter(PADAPTER padapter)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ _adapter *buddy = padapter->pbuddy_adapter;
_func_enter_;
// DBG_871X("+LeisurePSEnter\n");
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->iface_type != IFACE_PORT0)
+ return; /* Skip power saving for concurrent mode port 1*/
+
+ /* consider buddy, if exist */
+ if (buddy) {
+ struct mlme_priv *b_pmlmepriv = &(buddy->mlmepriv);
+ #ifdef CONFIG_P2P
+ struct wifidirect_info *b_pwdinfo = &(buddy->wdinfo);
+ #ifdef CONFIG_IOCTL_CFG80211
+ struct cfg80211_wifidirect_info *b_pcfg80211_wdinfo = &buddy->cfg80211_wdinfo;
+ #endif
+ #endif
+
+ if (check_fwstate(b_pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR)
+ || check_fwstate(b_pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS)
+ || check_fwstate(b_pmlmepriv, WIFI_AP_STATE)
+ || check_fwstate(b_pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE)
+ #if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) && defined(CONFIG_P2P_IPS)
+ || b_pcfg80211_wdinfo->is_ro_ch
+ #elif defined(CONFIG_P2P)
+ || !rtw_p2p_chk_state(b_pwdinfo, P2P_STATE_NONE)
+ #endif
+ || rtw_is_scan_deny(buddy)
+ ) {
+ return;
+ }
+ }
+#endif
+
+#ifdef CONFIG_INTEL_PROXIM
+ if(padapter->proximity.proxim_on==_TRUE){
+ return;
+ }
+#endif
if ( (check_fwstate(pmlmepriv, _FW_LINKED) == _FALSE) ||
(check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE) ||
(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) ||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE) ||
(check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) )
return;
-
+
if(_TRUE == pwrpriv->bInSuspend )
return ;
@@ -451,6 +609,8 @@ _func_enter_;
pwrpriv->LpsIdleCount++;
}
+// DBG_871X("-LeisurePSEnter\n");
+
_func_exit_;
}
@@ -461,21 +621,51 @@ _func_exit_;
//
void LPS_Leave(PADAPTER padapter)
{
- struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+#define LPS_LEAVE_TIMEOUT_MS 100
+ struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+ u32 start_time;
+ BOOLEAN bAwake = _FALSE;
+
_func_enter_;
- //DBG_8192C("LeisurePSLeave()...\n");
+// DBG_871X("+LeisurePSLeave\n");
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->iface_type != IFACE_PORT0)
+ return; /* Skip power saving for concurrent mode port 1*/
+#endif
if (pwrpriv->bLeisurePs)
{
if(pwrpriv->pwr_mode != PS_MODE_ACTIVE)
{
rtw_set_ps_mode(padapter, PS_MODE_ACTIVE, 0);
+
+ if(pwrpriv->pwr_mode == PS_MODE_ACTIVE)
+ {
+ start_time = rtw_get_current_time();
+ while(1)
+ {
+ rtw_hal_get_hwreg(padapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&bAwake));
+
+ if(bAwake || padapter->bSurpriseRemoved)
+ break;
+
+ if(rtw_get_passing_time_ms(start_time)>LPS_LEAVE_TIMEOUT_MS)
+ {
+ DBG_871X("Wait for FW LPS leave more than %u ms!!!\n", LPS_LEAVE_TIMEOUT_MS);
+ break;
+ }
+ rtw_usleep_os(100);
+ }
+ }
}
}
+
+// DBG_871X("-LeisurePSLeave\n");
+
_func_exit_;
}
@@ -488,37 +678,18 @@ _func_exit_;
void LeaveAllPowerSaveMode(IN PADAPTER Adapter)
{
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
- u32 LPSLeaveTimeOut = 10000;
- //u32 IPSLeaveTimeOut = 10000;
_func_enter_;
- //DBG_8192C("%s.....\n",__FUNCTION__);
+ //DBG_871X("%s.....\n",__FUNCTION__);
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
{ //connect
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
p2p_ps_wk_cmd(Adapter, P2P_PS_DISABLE, 0);
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
#ifdef CONFIG_LPS
- //DBG_8192C("==> leave LPS.......\n");
+ //DBG_871X("==> leave LPS.......\n");
LPS_Leave(Adapter);
-
- if (Adapter->pwrctrlpriv.bLeisurePs)
- {
- BOOLEAN bAwake = _TRUE;
- Adapter->HalFunc.GetHwRegHandler(Adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&bAwake));
- while(!bAwake)
- {
- rtw_usleep_os(100);
- LPSLeaveTimeOut--;
- if(LPSLeaveTimeOut <= 0)
- {
- DBG_8192C("Wait for FW LPS leave too long!!! LPSLeaveTimeOut = %d\n", LPSLeaveTimeOut );
- break;
- }
- Adapter->HalFunc.GetHwRegHandler(Adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&bAwake));
- }
- }
#endif
}
else
@@ -529,11 +700,11 @@ _func_enter_;
if(Adapter->registrypriv.usbss_enable)
{
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
- usb_disable_autosuspend(Adapter->dvobjpriv.pusbdev);
+ usb_disable_autosuspend(adapter_to_dvobj(Adapter)->pusbdev);
#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,22) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,34))
- Adapter->dvobjpriv.pusbdev->autosuspend_disabled = Adapter->bDisableAutosuspend;//autosuspend disabled by the user
+ adapter_to_dvobj(Adapter)->pusbdev->autosuspend_disabled = Adapter->bDisableAutosuspend;//autosuspend disabled by the user
#endif
- }
+ }
else
#endif
{
@@ -541,448 +712,450 @@ _func_enter_;
#ifdef CONFIG_IPS
if(_FALSE == ips_leave(Adapter))
{
- DBG_8192C("======> ips_leave fail.............\n");
+ DBG_871X("======> ips_leave fail.............\n");
}
#endif
*/
- }
+ }
}
}
_func_exit_;
}
-#ifdef CONFIG_PWRCTRL
-
+#ifdef CONFIG_LPS_LCLK
/*
-Caller:ISR handler...
-
-This will be called when CPWM interrupt is up.
-
-using to update cpwn of drv; and drv willl make a decision to up or down pwr level
-*/
-void cpwm_int_hdl(_adapter *padapter, struct reportpwrstate_parm *preportpwrstate)
+ * Caller:ISR handler...
+ *
+ * This will be called when CPWM interrupt is up.
+ *
+ * using to update cpwn of drv; and drv willl make a decision to up or down pwr level
+ */
+void cpwm_int_hdl(
+ PADAPTER padapter,
+ struct reportpwrstate_parm *preportpwrstate)
{
- struct pwrctrl_priv *pwrpriv = &(padapter->pwrctrlpriv);
- struct cmd_priv *pcmdpriv = &(padapter->cmdpriv);
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct pwrctrl_priv *pwrpriv;
+
_func_enter_;
- if(pwrpriv->cpwm_tog == ((preportpwrstate->state)&0x80)){
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("cpwm_int_hdl : cpwm_tog = %x this time cpwm=0x%x toggle bit didn't change !!!\n",pwrpriv->cpwm_tog ,preportpwrstate->state));
+ pwrpriv = &padapter->pwrctrlpriv;
+#if 0
+ if (pwrpriv->cpwm_tog == (preportpwrstate->state & PS_TOGGLE)) {
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_,
+ ("cpwm_int_hdl: tog(old)=0x%02x cpwm(new)=0x%02x toggle bit didn't change!?\n",
+ pwrpriv->cpwm_tog, preportpwrstate->state));
goto exit;
}
+#endif
+// _enter_pwrlock(&pwrpriv->lock);
- _enter_pwrlock(&pwrpriv->lock);
-
- pwrpriv->cpwm = (preportpwrstate->state)&0xf;
+ pwrpriv->cpwm = PS_STATE(preportpwrstate->state);
+ pwrpriv->cpwm_tog = preportpwrstate->state & PS_TOGGLE;
- if(pwrpriv->cpwm >= PS_STATE_S2){
- if(pwrpriv->alives & CMD_ALIVE)
- _rtw_up_sema(&(pcmdpriv->cmd_queue_sema));
+ if (pwrpriv->cpwm >= PS_STATE_S2) {
+ if (pwrpriv->alives & CMD_ALIVE)
+ _rtw_up_sema(&padapter->cmdpriv.cmd_queue_sema);
- if(pwrpriv->alives & XMIT_ALIVE)
- _rtw_up_sema(&(pxmitpriv->xmit_sema));
+ if (pwrpriv->alives & XMIT_ALIVE)
+ _rtw_up_sema(&padapter->xmitpriv.xmit_sema);
}
- pwrpriv->cpwm_tog= (preportpwrstate->state)&0x80;
- _exit_pwrlock(&pwrpriv->lock);
+
+// _exit_pwrlock(&pwrpriv->lock);
+
exit:
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("cpwm_int_hdl : cpwm = %x !!!\n",pwrpriv->cpwm));
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("cpwm_int_hdl: cpwm=0x%02x\n", pwrpriv->cpwm));
_func_exit_;
-
}
+__inline static void register_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag)
+{
+ pwrctrl->alives |= tag;
+}
-__inline static void register_task_alive(struct pwrctrl_priv *pwrctrl, uint tag)
+__inline static void unregister_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag)
{
-_func_enter_;
- pwrctrl->alives |= tag;
-_func_exit_;
+ pwrctrl->alives &= ~tag;
}
-__inline static void unregister_task_alive(struct pwrctrl_priv *pwrctrl, uint tag)
+/*
+ * Caller: rtw_xmit_thread
+ *
+ * Check if the fw_pwrstate is okay for xmit.
+ * If not (cpwm is less than S3), then the sub-routine
+ * will raise the cpwm to be greater than or equal to S3.
+ *
+ * Calling Context: Passive
+ *
+ * Return Value:
+ * _SUCCESS rtw_xmit_thread can write fifo/txcmd afterwards.
+ * _FAIL rtw_xmit_thread can not do anything.
+ */
+s32 rtw_register_tx_alive(PADAPTER padapter)
{
+ s32 res;
+ struct pwrctrl_priv *pwrctrl;
+
_func_enter_;
- if (pwrctrl->alives & tag)
- pwrctrl->alives ^= tag;
+ res = _SUCCESS;
+ pwrctrl = &padapter->pwrctrlpriv;
-_func_exit_;
-}
-#endif
+ _enter_pwrlock(&pwrctrl->lock);
-#ifdef CONFIG_RESUME_IN_WORKQUEUE
-static void resume_workitem_callback(struct work_struct *work);
-#endif //CONFIG_RESUME_IN_WORKQUEUE
+ register_task_alive(pwrctrl, XMIT_ALIVE);
-void rtw_init_pwrctrl_priv(_adapter *padapter)
+ if (pwrctrl->bFwCurrentInPSMode == _TRUE)
+ {
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_,
+ ("rtw_register_tx_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
+
+ if (pwrctrl->cpwm < PS_STATE_S2) {
+ if (pwrctrl->rpwm < PS_STATE_S2)
+ rtw_set_rpwm(padapter, PS_STATE_S2);
+ res = _FAIL;
+ }
+ }
+
+ _exit_pwrlock(&pwrctrl->lock);
+
+_func_exit_;
+
+ return res;
+}
+
+/*
+ * Caller: rtw_cmd_thread
+ *
+ * Check if the fw_pwrstate is okay for issuing cmd.
+ * If not (cpwm should be is less than S2), then the sub-routine
+ * will raise the cpwm to be greater than or equal to S2.
+ *
+ * Calling Context: Passive
+ *
+ * Return Value:
+ * _SUCCESS rtw_cmd_thread can issue cmds to firmware afterwards.
+ * _FAIL rtw_cmd_thread can not do anything.
+ */
+s32 rtw_register_cmd_alive(PADAPTER padapter)
{
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
+ s32 res;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
-#ifdef PLATFORM_WINDOWS
- pwrctrlpriv->pnp_current_pwr_state=NdisDeviceStateD0;
-#endif
-
- _init_pwrlock(&pwrctrlpriv->lock);
- pwrctrlpriv->rf_pwrstate = rf_on;
- pwrctrlpriv->ips_enter_cnts=0;
- pwrctrlpriv->ips_leave_cnts=0;
-
- pwrctrlpriv->ips_mode = padapter->registrypriv.ips_mode;
- pwrctrlpriv->ips_mode_req = padapter->registrypriv.ips_mode;
+ res = _SUCCESS;
+ pwrctrl = &padapter->pwrctrlpriv;
- pwrctrlpriv->pwr_state_check_interval = 2000;
- pwrctrlpriv->pwr_state_check_cnts = 0;
- pwrctrlpriv->bInternalAutoSuspend = _FALSE;
- pwrctrlpriv->bInSuspend = _FALSE;
- pwrctrlpriv->bkeepfwalive = _FALSE;
-
-#ifdef CONFIG_AUTOSUSPEND
-#ifdef SUPPORT_HW_RFOFF_DETECTED
- pwrctrlpriv->pwr_state_check_interval = (pwrctrlpriv->bHWPwrPindetect) ?1000:2000;
-#endif
-#endif
-
- pwrctrlpriv->LpsIdleCount = 0;
- //pwrctrlpriv->FWCtrlPSMode =padapter->registrypriv.power_mgnt;// PS_MODE_MIN;
- pwrctrlpriv->power_mgnt =padapter->registrypriv.power_mgnt;// PS_MODE_MIN;
- pwrctrlpriv->bLeisurePs = (PS_MODE_ACTIVE != pwrctrlpriv->power_mgnt)?_TRUE:_FALSE;
-
- pwrctrlpriv->bFwCurrentInPSMode = _FALSE;
-
- pwrctrlpriv->cpwm = PS_STATE_S4;
-
- pwrctrlpriv->pwr_mode = PS_MODE_ACTIVE;
-
-
- pwrctrlpriv->smart_ps = 0;
-
- pwrctrlpriv->tog = 0x80;
-
-#ifdef PLATFORM_LINUX
- _init_timer(&(pwrctrlpriv->pwr_state_check_timer), padapter->pnetdev, pwr_state_check_handler, (u8 *)padapter);
-#endif
+ _enter_pwrlock(&pwrctrl->lock);
- #ifdef CONFIG_RESUME_IN_WORKQUEUE
- _init_workitem(&pwrctrlpriv->resume_work, resume_workitem_callback, NULL);
- pwrctrlpriv->rtw_workqueue = create_singlethread_workqueue("rtw_workqueue");
- #endif //CONFIG_RESUME_IN_WORKQUEUE
+ register_task_alive(pwrctrl, CMD_ALIVE);
- #if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
- pwrctrlpriv->early_suspend.suspend = NULL;
- rtw_register_early_suspend(pwrctrlpriv);
- #endif //CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER
+ if (pwrctrl->bFwCurrentInPSMode == _TRUE)
+ {
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_register_cmd_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
+
+ if (pwrctrl->cpwm < PS_STATE_S2) {
+ if (pwrctrl->rpwm < PS_STATE_S2)
+ rtw_set_rpwm(padapter, PS_STATE_S2);
+ res = _FAIL;
+ }
+ }
+ _exit_pwrlock(&pwrctrl->lock);
_func_exit_;
+ return res;
}
-
-void rtw_free_pwrctrl_priv(_adapter *adapter)
+/*
+ * Caller: rx_isr
+ *
+ * Calling Context: Dispatch/ISR
+ *
+ * Return Value:
+ * _SUCCESS
+ * _FAIL
+ */
+s32 rtw_register_rx_alive(PADAPTER padapter)
{
- struct pwrctrl_priv *pwrctrlpriv = &adapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
- //_rtw_memset((unsigned char *)pwrctrlpriv, 0, sizeof(struct pwrctrl_priv));
-
-
- #ifdef CONFIG_RESUME_IN_WORKQUEUE
- if (pwrctrlpriv->rtw_workqueue) {
- flush_workqueue(pwrctrlpriv->rtw_workqueue);
- destroy_workqueue(pwrctrlpriv->rtw_workqueue);
- }
- #endif
+ pwrctrl = &padapter->pwrctrlpriv;
+ _enter_pwrlock(&pwrctrl->lock);
- #if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
- rtw_unregister_early_suspend(pwrctrlpriv);
- #endif //CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER
+ register_task_alive(pwrctrl, RECV_ALIVE);
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_register_rx_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
- _free_pwrlock(&pwrctrlpriv->lock);
+ _exit_pwrlock(&pwrctrl->lock);
_func_exit_;
-}
+ return _SUCCESS;
+}
/*
-Caller: rtw_xmit_thread
-
-Check if the fw_pwrstate is okay for xmit.
-If not (cpwm is less than P1 state), then the sub-routine
-will raise the cpwm to be greater than or equal to P1.
-
-Calling Context: Passive
-
-Return Value:
-
-_SUCCESS: rtw_xmit_thread can write fifo/txcmd afterwards.
-_FAIL: rtw_xmit_thread can not do anything.
-*/
-sint rtw_register_tx_alive(_adapter *padapter)
+ * Caller: evt_isr or evt_thread
+ *
+ * Calling Context: Dispatch/ISR or Passive
+ *
+ * Return Value:
+ * _SUCCESS
+ * _FAIL
+ */
+s32 rtw_register_evt_alive(PADAPTER padapter)
{
- uint res = _SUCCESS;
-
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
- _enter_pwrlock(&pwrctrl->lock);
+ pwrctrl = &padapter->pwrctrlpriv;
- register_task_alive(pwrctrl, XMIT_ALIVE);
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_register_tx_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
+ _enter_pwrlock(&pwrctrl->lock);
- if(pwrctrl->cpwm < PS_STATE_S2){
- rtw_set_rpwm(padapter, PS_STATE_S3);
- res = _FAIL;
- }
+ register_task_alive(pwrctrl, EVT_ALIVE);
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_register_evt_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
_exit_pwrlock(&pwrctrl->lock);
-
-_func_exit_;
-#endif /* CONFIG_PWRCTRL */
-
- return res;
+_func_exit_;
+ return _SUCCESS;
}
/*
-Caller: rtw_cmd_thread
-
-Check if the fw_pwrstate is okay for issuing cmd.
-If not (cpwm should be is less than P2 state), then the sub-routine
-will raise the cpwm to be greater than or equal to P2.
-
-Calling Context: Passive
-
-Return Value:
-
-_SUCCESS: rtw_cmd_thread can issue cmds to firmware afterwards.
-_FAIL: rtw_cmd_thread can not do anything.
-*/
-sint rtw_register_cmd_alive(_adapter *padapter)
+ * Caller: ISR
+ *
+ * If ISR's txdone,
+ * No more pkts for TX,
+ * Then driver shall call this fun. to power down firmware again.
+ */
+void rtw_unregister_tx_alive(PADAPTER padapter)
{
- uint res = _SUCCESS;
-
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
+ pwrctrl = &padapter->pwrctrlpriv;
+
_enter_pwrlock(&pwrctrl->lock);
- register_task_alive(pwrctrl, CMD_ALIVE);
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_register_cmd_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
+ unregister_task_alive(pwrctrl, XMIT_ALIVE);
- if(pwrctrl->cpwm < PS_STATE_S2){
- rtw_set_rpwm(padapter, PS_STATE_S3);
- res = _FAIL;
+ if ((pwrctrl->pwr_mode != PS_MODE_ACTIVE) &&
+ (pwrctrl->bFwCurrentInPSMode == _TRUE))
+ {
+ if ((pwrctrl->alives == 0) &&
+ (pwrctrl->cpwm > PS_STATE_S0))
+ {
+ rtw_set_rpwm(padapter, PS_STATE_S0);
+ }
+
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_unregister_tx_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
}
_exit_pwrlock(&pwrctrl->lock);
-_func_exit_;
-#endif
- return res;
+_func_exit_;
}
-
/*
-Caller: rx_isr
-
-Calling Context: Dispatch/ISR
-
-Return Value:
-
-*/
-sint rtw_register_rx_alive(_adapter *padapter)
+ * Caller: ISR
+ *
+ * If all commands have been done,
+ * and no more command to do,
+ * then driver shall call this fun. to power down firmware again.
+ */
+void rtw_unregister_cmd_alive(PADAPTER padapter)
{
-
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
+ pwrctrl = &padapter->pwrctrlpriv;
+
_enter_pwrlock(&pwrctrl->lock);
- register_task_alive(pwrctrl, RECV_ALIVE);
+ unregister_task_alive(pwrctrl, CMD_ALIVE);
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_register_rx_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
+ if ((pwrctrl->pwr_mode != PS_MODE_ACTIVE) &&
+ (pwrctrl->bFwCurrentInPSMode == _TRUE))
+ {
+ if ((pwrctrl->alives == 0) &&
+ (pwrctrl->cpwm > PS_STATE_S0))
+ {
+ rtw_set_rpwm(padapter, PS_STATE_S0);
+ }
+
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_unregister_cmd_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
+ }
_exit_pwrlock(&pwrctrl->lock);
_func_exit_;
-
-#endif /*CONFIG_PWRCTRL*/
-
- return _SUCCESS;
}
-
/*
-Caller: evt_isr or evt_thread
-
-Calling Context: Dispatch/ISR or Passive
-
-Return Value:
-*/
-sint rtw_register_evt_alive(_adapter *padapter)
+ * Caller: ISR
+ */
+void rtw_unregister_rx_alive(PADAPTER padapter)
{
-
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
+ pwrctrl = &padapter->pwrctrlpriv;
+
_enter_pwrlock(&pwrctrl->lock);
- register_task_alive(pwrctrl, EVT_ALIVE);
+ unregister_task_alive(pwrctrl, RECV_ALIVE);
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_info_,("rtw_register_evt_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_unregister_rx_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
_exit_pwrlock(&pwrctrl->lock);
_func_exit_;
-
-#endif /*CONFIG_PWRCTRL*/
-
- return _SUCCESS;
}
-
-/*
-Caller: ISR
-
-If ISR's txdone,
-No more pkts for TX,
-Then driver shall call this fun. to power down firmware again.
-*/
-
-void rtw_unregister_tx_alive(_adapter *padapter)
+void rtw_unregister_evt_alive(PADAPTER padapter)
{
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrl;
_func_enter_;
- _enter_pwrlock(&pwrctrl->lock);
+ pwrctrl = &padapter->pwrctrlpriv;
- unregister_task_alive(pwrctrl, XMIT_ALIVE);
+ unregister_task_alive(pwrctrl, EVT_ALIVE);
- if((pwrctrl->cpwm > PS_STATE_S2) && (pwrctrl->pwr_mode > PS_MODE_ACTIVE)){
- if(pwrctrl->alives == 0){
- rtw_set_rpwm(padapter, PS_STATE_S0);
- }
- }
+ RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_,
+ ("rtw_unregister_evt_alive: cpwm=0x%02x alives=0x%08x\n",
+ pwrctrl->cpwm, pwrctrl->alives));
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_unregister_tx_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
-
_exit_pwrlock(&pwrctrl->lock);
_func_exit_;
-
-#endif /*CONFIG_PWRCTRL*/
}
+#endif /* CONFIG_LPS_LCLK */
-/*
-Caller: ISR
-
-If ISR's txdone,
-No more pkts for TX,
-Then driver shall call this fun. to power down firmware again.
-*/
+#ifdef CONFIG_RESUME_IN_WORKQUEUE
+static void resume_workitem_callback(struct work_struct *work);
+#endif //CONFIG_RESUME_IN_WORKQUEUE
-void rtw_unregister_cmd_alive(_adapter *padapter)
+void rtw_init_pwrctrl_priv(PADAPTER padapter)
{
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
_func_enter_;
- _enter_pwrlock(&pwrctrl->lock);
+#ifdef PLATFORM_WINDOWS
+ pwrctrlpriv->pnp_current_pwr_state=NdisDeviceStateD0;
+#endif
- unregister_task_alive(pwrctrl, CMD_ALIVE);
+ _init_pwrlock(&pwrctrlpriv->lock);
+ pwrctrlpriv->rf_pwrstate = rf_on;
+ pwrctrlpriv->ips_enter_cnts=0;
+ pwrctrlpriv->ips_leave_cnts=0;
- if((pwrctrl->cpwm > PS_STATE_S2) && (pwrctrl->pwr_mode > PS_MODE_ACTIVE)){
- if((pwrctrl->alives == 0)&&(check_fwstate(&padapter->mlmepriv, _FW_UNDER_LINKING)!=_TRUE)){
- rtw_set_rpwm(padapter, PS_STATE_S0);
- }
- }
+ pwrctrlpriv->ips_mode = padapter->registrypriv.ips_mode;
+ pwrctrlpriv->ips_mode_req = padapter->registrypriv.ips_mode;
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_unregister_cmd_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
+ pwrctrlpriv->pwr_state_check_interval = RTW_PWR_STATE_CHK_INTERVAL;
+ pwrctrlpriv->pwr_state_check_cnts = 0;
+ pwrctrlpriv->bInternalAutoSuspend = _FALSE;
+ pwrctrlpriv->bInSuspend = _FALSE;
+ pwrctrlpriv->bkeepfwalive = _FALSE;
- _exit_pwrlock(&pwrctrl->lock);
+#ifdef CONFIG_AUTOSUSPEND
+#ifdef SUPPORT_HW_RFOFF_DETECTED
+ pwrctrlpriv->pwr_state_check_interval = (pwrctrlpriv->bHWPwrPindetect) ?1000:2000;
+#endif
+#endif
-_func_exit_;
+ pwrctrlpriv->LpsIdleCount = 0;
+ //pwrctrlpriv->FWCtrlPSMode =padapter->registrypriv.power_mgnt;// PS_MODE_MIN;
+ pwrctrlpriv->power_mgnt =padapter->registrypriv.power_mgnt;// PS_MODE_MIN;
+ pwrctrlpriv->bLeisurePs = (PS_MODE_ACTIVE != pwrctrlpriv->power_mgnt)?_TRUE:_FALSE;
-#endif /*CONFIG_PWRCTRL*/
-}
+ pwrctrlpriv->bFwCurrentInPSMode = _FALSE;
+ pwrctrlpriv->cpwm = PS_STATE_S4;
-/*
+ pwrctrlpriv->pwr_mode = PS_MODE_ACTIVE;
-Caller: ISR
-*/
-void rtw_unregister_rx_alive(_adapter *padapter)
-{
-#ifdef CONFIG_PWRCTRL
+ pwrctrlpriv->smart_ps = 0;
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ pwrctrlpriv->tog = 0x80;
-_func_enter_;
+#ifdef PLATFORM_LINUX
+ _init_timer(&(pwrctrlpriv->pwr_state_check_timer), padapter->pnetdev, pwr_state_check_handler, (u8 *)padapter);
+#endif
- _enter_pwrlock(&pwrctrl->lock);
+ #ifdef CONFIG_RESUME_IN_WORKQUEUE
+ _init_workitem(&pwrctrlpriv->resume_work, resume_workitem_callback, NULL);
+ pwrctrlpriv->rtw_workqueue = create_singlethread_workqueue("rtw_workqueue");
+ #endif //CONFIG_RESUME_IN_WORKQUEUE
- unregister_task_alive(pwrctrl, RECV_ALIVE);
+ #if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
+ pwrctrlpriv->early_suspend.suspend = NULL;
+ rtw_register_early_suspend(pwrctrlpriv);
+ #endif //CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_unregister_rx_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
-
- _exit_pwrlock(&pwrctrl->lock);
_func_exit_;
-#endif
}
-void rtw_unregister_evt_alive(_adapter *padapter)
+void rtw_free_pwrctrl_priv(PADAPTER adapter)
{
-#ifdef CONFIG_PWRCTRL
-
- struct pwrctrl_priv *pwrctrl = &padapter->pwrctrlpriv;
+ struct pwrctrl_priv *pwrctrlpriv = &adapter->pwrctrlpriv;
_func_enter_;
- _enter_pwrlock(&pwrctrl->lock);
+ //_rtw_memset((unsigned char *)pwrctrlpriv, 0, sizeof(struct pwrctrl_priv));
- unregister_task_alive(pwrctrl, EVT_ALIVE);
- RT_TRACE(_module_rtl871x_pwrctrl_c_,_drv_err_,("rtw_unregister_evt_alive: cpwm:%d alives:%x\n", pwrctrl->cpwm, pwrctrl->alives));
-
- _exit_pwrlock(&pwrctrl->lock);
+ #ifdef CONFIG_RESUME_IN_WORKQUEUE
+ if (pwrctrlpriv->rtw_workqueue) {
+ flush_workqueue(pwrctrlpriv->rtw_workqueue);
+ destroy_workqueue(pwrctrlpriv->rtw_workqueue);
+ }
+ #endif
-_func_exit_;
-#endif /*CONFIG_PWRCTRL*/
+ #if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
+ rtw_unregister_early_suspend(pwrctrlpriv);
+ #endif //CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER
+
+ _free_pwrlock(&pwrctrlpriv->lock);
+
+_func_exit_;
}
#ifdef CONFIG_RESUME_IN_WORKQUEUE
-#ifdef CONFIG_USB_HCI
-extern int rtw_resume_process(struct usb_interface *pusb_intf);
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
+extern int rtw_resume_process(_adapter *padapter);
#endif
static void resume_workitem_callback(struct work_struct *work)
{
@@ -991,9 +1164,8 @@ static void resume_workitem_callback(struct work_struct *work)
DBG_871X("%s\n",__FUNCTION__);
- #ifdef CONFIG_USB_HCI
- rtw_resume_process(adapter->dvobjpriv.pusbintf);
- #elif defined(CONFIG_PCI_HCI)
+ #if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
+ rtw_resume_process(adapter);
#endif
}
@@ -1011,17 +1183,33 @@ void rtw_resume_in_workqueue(struct pwrctrl_priv *pwrpriv)
}
#endif //CONFIG_RESUME_IN_WORKQUEUE
+#if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
+inline bool rtw_is_earlysuspend_registered(struct pwrctrl_priv *pwrpriv)
+{
+ return (pwrpriv->early_suspend.suspend) ? _TRUE : _FALSE;
+}
+
+inline bool rtw_is_do_late_resume(struct pwrctrl_priv *pwrpriv)
+{
+ return (pwrpriv->do_late_resume) ? _TRUE : _FALSE;
+}
+
+inline void rtw_set_do_late_resume(struct pwrctrl_priv *pwrpriv, bool enable)
+{
+ pwrpriv->do_late_resume = enable;
+}
+#endif
+
#ifdef CONFIG_HAS_EARLYSUSPEND
-#ifdef CONFIG_USB_HCI
-extern int rtw_resume_process(struct usb_interface *pusb_intf);
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
+extern int rtw_resume_process(_adapter *padapter);
#endif
static void rtw_early_suspend(struct early_suspend *h)
{
struct pwrctrl_priv *pwrpriv = container_of(h, struct pwrctrl_priv, early_suspend);
DBG_871X("%s\n",__FUNCTION__);
-
- //jeff: do nothing but set do_late_resume to false
- pwrpriv->do_late_resume = _FALSE;
+
+ rtw_set_do_late_resume(pwrpriv, _FALSE);
}
static void rtw_late_resume(struct early_suspend *h)
@@ -1031,16 +1219,22 @@ static void rtw_late_resume(struct early_suspend *h)
DBG_871X("%s\n",__FUNCTION__);
if(pwrpriv->do_late_resume) {
- #ifdef CONFIG_USB_HCI
- rtw_resume_process(adapter->dvobjpriv.pusbintf);
- pwrpriv->do_late_resume = _FALSE;
- #elif defined(CONFIG_PCI_HCI)
+ #if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
+ rtw_set_do_late_resume(pwrpriv, _FALSE);
+ rtw_resume_process(adapter);
#endif
}
}
void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv)
{
+ _adapter *adapter = container_of(pwrpriv, _adapter, pwrctrlpriv);
+
+#if defined(CONFIG_CONCURRENT_MODE)
+ if (adapter->adapter_type != PRIMARY_ADAPTER)
+ return;
+#endif
+
DBG_871X("%s\n", __FUNCTION__);
//jeff: set the early suspend level before blank screen, so we wll do late resume after scree is lit
@@ -1054,9 +1248,16 @@ void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv)
void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv)
{
+ _adapter *adapter = container_of(pwrpriv, _adapter, pwrctrlpriv);
+
+#if defined(CONFIG_CONCURRENT_MODE)
+ if (adapter->adapter_type != PRIMARY_ADAPTER)
+ return;
+#endif
+
DBG_871X("%s\n", __FUNCTION__);
- pwrpriv->do_late_resume = _FALSE;
+ rtw_set_do_late_resume(pwrpriv, _FALSE);
if (pwrpriv->early_suspend.suspend)
unregister_early_suspend(&pwrpriv->early_suspend);
@@ -1067,16 +1268,15 @@ void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv)
#endif //CONFIG_HAS_EARLYSUSPEND
#ifdef CONFIG_ANDROID_POWER
-#ifdef CONFIG_USB_HCI
-extern int rtw_resume_process(struct usb_interface *pusb_intf);
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
+extern int rtw_resume_process(PADAPTER padapter);
#endif
static void rtw_early_suspend(android_early_suspend_t *h)
{
struct pwrctrl_priv *pwrpriv = container_of(h, struct pwrctrl_priv, early_suspend);
DBG_871X("%s\n",__FUNCTION__);
-
- //jeff: do nothing but set do_late_resume to false
- pwrpriv->do_late_resume = _FALSE;
+
+ rtw_set_do_late_resume(pwrpriv, _FALSE);
}
static void rtw_late_resume(android_early_suspend_t *h)
@@ -1086,16 +1286,22 @@ static void rtw_late_resume(android_early_suspend_t *h)
DBG_871X("%s\n",__FUNCTION__);
if(pwrpriv->do_late_resume) {
- #ifdef CONFIG_USB_HCI
- rtw_resume_process(adapter->dvobjpriv.pusbintf);
- pwrpriv->do_late_resume = _FALSE;
- #elif defined(CONFIG_PCI_HCI)
+ #if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
+ rtw_set_do_late_resume(pwrpriv, _FALSE);
+ rtw_resume_process(adapter);
#endif
}
}
void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv)
{
+ _adapter *adapter = container_of(pwrpriv, _adapter, pwrctrlpriv);
+
+#if defined(CONFIG_CONCURRENT_MODE)
+ if (adapter->adapter_type != PRIMARY_ADAPTER)
+ return;
+#endif
+
DBG_871X("%s\n", __FUNCTION__);
//jeff: set the early suspend level before blank screen, so we wll do late resume after scree is lit
@@ -1107,9 +1313,16 @@ void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv)
void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv)
{
+ _adapter *adapter = container_of(pwrpriv, _adapter, pwrctrlpriv);
+
+#if defined(CONFIG_CONCURRENT_MODE)
+ if (adapter->adapter_type != PRIMARY_ADAPTER)
+ return;
+#endif
+
DBG_871X("%s\n", __FUNCTION__);
- pwrpriv->do_late_resume = _FALSE;
+ rtw_set_do_late_resume(pwrpriv, _FALSE);
if (pwrpriv->early_suspend.suspend)
android_unregister_early_suspend(&pwrpriv->early_suspend);
@@ -1122,24 +1335,81 @@ void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv)
u8 rtw_interface_ps_func(_adapter *padapter,HAL_INTF_PS_FUNC efunc_id,u8* val)
{
u8 bResult = _TRUE;
- if(padapter->HalFunc.interface_ps_func)
- {
- bResult = padapter->HalFunc.interface_ps_func(padapter,efunc_id,val);
- }
+
+ rtw_hal_intf_ps_func(padapter,efunc_id,val);
+
return bResult;
}
+
+inline void rtw_set_ips_deny(_adapter *padapter, u32 ms)
+{
+ struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+ pwrpriv->ips_deny_time = rtw_get_current_time() + rtw_ms_to_systime(ms);
+}
+
/*
* rtw_pwr_wakeup - Wake the NIC up from: 1)IPS. 2)USB autosuspend
* @adapter: pointer to _adapter structure
-*
+* @ips_deffer_ms: the ms wiil prevent from falling into IPS after wakeup
* Return _SUCCESS or _FAIL
*/
-int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
+int _rtw_pwr_wakeup(_adapter *padapter, u32 ips_deffer_ms, const char *caller)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
int ret = _SUCCESS;
+ u32 start = rtw_get_current_time();
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->pbuddy_adapter)
+ LeaveAllPowerSaveMode(padapter->pbuddy_adapter);
+
+ if ((padapter->isprimary == _FALSE) && padapter->pbuddy_adapter){
+ padapter = padapter->pbuddy_adapter;
+ pwrpriv = &padapter->pwrctrlpriv;
+ pmlmepriv = &padapter->mlmepriv;
+ }
+#endif
+
+ if (pwrpriv->ips_deny_time < rtw_get_current_time() + rtw_ms_to_systime(ips_deffer_ms))
+ pwrpriv->ips_deny_time = rtw_get_current_time() + rtw_ms_to_systime(ips_deffer_ms);
+
+ if (pwrpriv->ps_processing) {
+ DBG_871X("%s wait ps_processing...\n", __func__);
+ while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000)
+ rtw_msleep_os(10);
+ if (pwrpriv->ps_processing)
+ DBG_871X("%s wait ps_processing timeout\n", __func__);
+ else
+ DBG_871X("%s wait ps_processing done\n", __func__);
+ }
+
+#ifdef DBG_CONFIG_ERROR_DETECT
+ if (rtw_hal_sreset_inprogress(padapter)) {
+ DBG_871X("%s wait sreset_inprogress...\n", __func__);
+ while (rtw_hal_sreset_inprogress(padapter) && rtw_get_passing_time_ms(start) <= 4000)
+ rtw_msleep_os(10);
+ if (rtw_hal_sreset_inprogress(padapter))
+ DBG_871X("%s wait sreset_inprogress timeout\n", __func__);
+ else
+ DBG_871X("%s wait sreset_inprogress done\n", __func__);
+ }
+#endif
+
+ if (pwrpriv->bInternalAutoSuspend == _FALSE && pwrpriv->bInSuspend) {
+ DBG_871X("%s wait bInSuspend...\n", __func__);
+ while (pwrpriv->bInSuspend
+ && ((rtw_get_passing_time_ms(start) <= 3000 && !rtw_is_do_late_resume(pwrpriv))
+ || (rtw_get_passing_time_ms(start) <= 500 && rtw_is_do_late_resume(pwrpriv)))
+ ) {
+ rtw_msleep_os(10);
+ }
+ if (pwrpriv->bInSuspend)
+ DBG_871X("%s wait bInSuspend timeout\n", __func__);
+ else
+ DBG_871X("%s wait bInSuspend done\n", __func__);
+ }
//System suspend is not allowed to wakeup
if((pwrpriv->bInternalAutoSuspend == _FALSE) && (_TRUE == pwrpriv->bInSuspend )){
@@ -1147,11 +1417,6 @@ int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
goto exit;
}
- //I think this should be check in IPS, LPS, autosuspend functions...
- //if( pwrpriv->power_mgnt == PS_MODE_ACTIVE ) {
- // goto exit;
- //}
-
//block???
if((pwrpriv->bInternalAutoSuspend == _TRUE) && (padapter->net_closed == _TRUE)) {
ret = _FAIL;
@@ -1164,7 +1429,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
ret = _SUCCESS;
goto exit;
}
-
+
if(rf_off == pwrpriv->rf_pwrstate )
{
#ifdef CONFIG_USB_HCI
@@ -1177,7 +1442,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
}
else if(padapter->registrypriv.usbss_enable)
{
- DBG_8192C("\n %s call autoresume_enter....\n",__FUNCTION__);
+ DBG_8192C("%s call autoresume_enter....\n",__FUNCTION__);
if(_FAIL == autoresume_enter(padapter))
{
DBG_8192C("======> autoresume fail.............\n");
@@ -1190,7 +1455,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
#endif
{
#ifdef CONFIG_IPS
- DBG_8192C("\n %s call ips_leave....\n",__FUNCTION__);
+ DBG_8192C("%s call ips_leave....\n",__FUNCTION__);
if(_FAIL == ips_leave(padapter))
{
DBG_8192C("======> ips_leave fail.............\n");
@@ -1199,10 +1464,6 @@ int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
}
#endif
}
- }else {
- //Jeff: reset timer to avoid falling ips or selective suspend soon
- if(pwrpriv->bips_processing == _FALSE)
- rtw_set_pwr_state_check_timer(pwrpriv);
}
//TODO: the following checking need to be merged...
@@ -1220,8 +1481,60 @@ int _rtw_pwr_wakeup(_adapter *padapter, const char *caller)
}
exit:
+ if (pwrpriv->ips_deny_time < rtw_get_current_time() + rtw_ms_to_systime(ips_deffer_ms))
+ pwrpriv->ips_deny_time = rtw_get_current_time() + rtw_ms_to_systime(ips_deffer_ms);
+ return ret;
+
+}
+
+int rtw_pm_set_lps(_adapter *padapter, u8 mode)
+{
+ int ret = 0;
+ struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
+
+ if ( mode < PS_MODE_NUM )
+ {
+ if(pwrctrlpriv->power_mgnt !=mode)
+ {
+ if(PS_MODE_ACTIVE == mode)
+ {
+ LeaveAllPowerSaveMode(padapter);
+ }
+ else
+ {
+ pwrctrlpriv->LpsIdleCount = 2;
+ }
+ pwrctrlpriv->power_mgnt = mode;
+ pwrctrlpriv->bLeisurePs = (PS_MODE_ACTIVE != pwrctrlpriv->power_mgnt)?_TRUE:_FALSE;
+ }
+ }
+ else
+ {
+ ret = -EINVAL;
+ }
+
return ret;
+}
+int rtw_pm_set_ips(_adapter *padapter, u8 mode)
+{
+ struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
+
+ if( mode == IPS_NORMAL || mode == IPS_LEVEL_2 ) {
+ rtw_ips_mode_req(pwrctrlpriv, mode);
+ DBG_871X("%s %s\n", __FUNCTION__, mode == IPS_NORMAL?"IPS_NORMAL":"IPS_LEVEL_2");
+ return 0;
+ }
+ else if(mode ==IPS_NONE){
+ rtw_ips_mode_req(pwrctrlpriv, mode);
+ DBG_871X("%s %s\n", __FUNCTION__, "IPS_NONE");
+ if((padapter->bSurpriseRemoved ==0)&&(_FAIL == rtw_pwr_wakeup(padapter)) )
+ return -EFAULT;
+ }
+ else {
+ return -EINVAL;
+ }
+ return 0;
}
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_recv.c b/drivers/net/wireless/rtl8192cu/core/rtw_recv.c
index 0d5143b..2cc8faa 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_recv.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_recv.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_RECV_C_
#include <drv_conf.h>
#include <osdep_service.h>
@@ -81,6 +81,7 @@ _func_enter_;
_rtw_init_queue(&precvpriv->free_recv_queue);
_rtw_init_queue(&precvpriv->recv_pending_queue);
+ _rtw_init_queue(&precvpriv->uc_swdec_pending_queue);
precvpriv->adapter = padapter;
@@ -124,7 +125,12 @@ _func_enter_;
#endif
- res = padapter->HalFunc.init_recv_priv(padapter);
+ res = rtw_hal_init_recv_priv(padapter);
+
+ precvpriv->recvbuf_skb_alloc_fail_cnt = 0;
+ precvpriv->recvbuf_null_cnt = 0;
+ precvpriv->read_port_complete_EINPROGRESS_cnt = 0;
+ precvpriv->read_port_complete_other_urb_err_cnt = 0;
#ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS
#ifdef PLATFORM_LINUX
@@ -147,6 +153,7 @@ _func_exit_;
}
+void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv);
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
{
_rtw_spinlock_free(&precvpriv->lock);
@@ -171,6 +178,8 @@ void _rtw_free_recv_priv (struct recv_priv *precvpriv)
_func_enter_;
+ rtw_free_uc_swdec_pending_queue(padapter);
+
rtw_mfree_recv_priv_lock(precvpriv);
rtw_os_recv_resource_free(precvpriv);
@@ -179,23 +188,21 @@ _func_enter_;
rtw_vmfree(precvpriv->pallocated_frame_buf, NR_RECVFRAME * sizeof(union recv_frame) + RXFRAME_ALIGN_SZ);
}
- padapter->HalFunc.free_recv_priv(padapter);
+ rtw_hal_free_recv_priv(padapter);
_func_exit_;
}
-union recv_frame *rtw_alloc_recvframe (_queue *pfree_recv_queue)
+union recv_frame *_rtw_alloc_recvframe (_queue *pfree_recv_queue)
{
- _irqL irqL;
+
union recv_frame *precvframe;
_list *plist, *phead;
_adapter *padapter;
struct recv_priv *precvpriv;
_func_enter_;
- _enter_critical_bh(&pfree_recv_queue->lock, &irqL);
-
if(_rtw_queue_empty(pfree_recv_queue) == _TRUE)
{
precvframe = NULL;
@@ -217,28 +224,34 @@ _func_enter_;
}
}
- _exit_critical_bh(&pfree_recv_queue->lock, &irqL);
-
_func_exit_;
return precvframe;
}
+union recv_frame *rtw_alloc_recvframe (_queue *pfree_recv_queue)
+{
+ _irqL irqL;
+ union recv_frame *precvframe;
+
+ _enter_critical_bh(&pfree_recv_queue->lock, &irqL);
+
+ precvframe = _rtw_alloc_recvframe(pfree_recv_queue);
+
+ _exit_critical_bh(&pfree_recv_queue->lock, &irqL);
+
+ return precvframe;
+}
void rtw_init_recvframe(union recv_frame *precvframe, struct recv_priv *precvpriv)
{
- struct recv_buf *precvbuf = precvframe->u.hdr.precvbuf;
-
/* Perry: This can be removed */
_rtw_init_listhead(&precvframe->u.hdr.list);
precvframe->u.hdr.len=0;
-
-
}
-
int rtw_free_recvframe(union recv_frame *precvframe, _queue *pfree_recv_queue)
{
_irqL irqL;
@@ -247,41 +260,34 @@ int rtw_free_recvframe(union recv_frame *precvframe, _queue *pfree_recv_queue)
_func_enter_;
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->adapter_type > PRIMARY_ADAPTER)
+ {
+ padapter = padapter->pbuddy_adapter;//get primary_padapter
+ precvpriv = &padapter->recvpriv;
+ pfree_recv_queue = &precvpriv->free_recv_queue;
+ precvframe->u.hdr.adapter = padapter;
+ }
+#endif
+
#ifdef PLATFORM_WINDOWS
rtw_os_read_port(padapter, precvframe->u.hdr.precvbuf);
#endif
-#ifdef PLATFORM_LINUX
+#if defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD)
if(precvframe->u.hdr.pkt)
{
- dev_kfree_skb_any(precvframe->u.hdr.pkt);//free skb by driver
+#ifdef CONFIG_BSD_RX_USE_MBUF
+ m_freem(precvframe->u.hdr.pkt);
+#else // CONFIG_BSD_RX_USE_MBUF
+ rtw_skb_free(precvframe->u.hdr.pkt);//free skb by driver
+#endif // CONFIG_BSD_RX_USE_MBUF
precvframe->u.hdr.pkt = NULL;
}
-#ifdef CONFIG_SDIO_HCI
-{
- _irqL irql;
- struct recv_buf *precvbuf=precvframe->u.hdr.precvbuf;
- if(precvbuf !=NULL){
- _enter_critical_bh(&precvbuf->recvbuf_lock, &irql);
-
- precvbuf->ref_cnt--;
- if(precvbuf->ref_cnt == 0 ){
- _enter_critical_bh(&precvpriv->free_recv_buf_queue.lock, &irqL);
- rtw_list_delete(&(precvbuf->list));
- rtw_list_insert_tail(&(precvbuf->list), get_list_head(&precvpriv->free_recv_buf_queue));
- precvpriv->free_recv_buf_queue_cnt++;
- _exit_critical_bh(&precvpriv->free_recv_buf_queue.lock, &irqL);
- RT_TRACE(_module_rtl871x_recv_c_,_drv_notice_,("rtw_os_read_port: precvbuf=0x%p enqueue:precvpriv->free_recv_buf_queue_cnt=%d\n",precvbuf,precvpriv->free_recv_buf_queue_cnt));
- }
- RT_TRACE(_module_rtl871x_recv_c_,_drv_notice_,("rtw_os_read_port: precvbuf=0x%p enqueue:precvpriv->free_recv_buf_queue_cnt=%d\n",precvbuf,precvpriv->free_recv_buf_queue_cnt));
- _exit_critical_bh(&precvbuf->recvbuf_lock, &irql);
- }
-}
-#endif
-#endif
+#endif //defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD)
_enter_critical_bh(&pfree_recv_queue->lock, &irqL);
@@ -303,24 +309,16 @@ _func_exit_;
}
-union recv_frame *rtw_dequeue_recvframe (_queue *queue)
-{
- return rtw_alloc_recvframe(queue);
-}
-sint rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue)
+sint _rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue)
{
- _irqL irqL;
+
_adapter *padapter=precvframe->u.hdr.adapter;
struct recv_priv *precvpriv = &padapter->recvpriv;
_func_enter_;
-
- //_spinlock(&pfree_recv_queue->lock);
- _enter_critical_bh(&queue->lock, &irqL);
-
//_rtw_init_listhead(&(precvframe->u.hdr.list));
rtw_list_delete(&(precvframe->u.hdr.list));
@@ -332,15 +330,25 @@ _func_enter_;
precvpriv->free_recvframe_cnt++;
}
- //_rtw_spinunlock(&pfree_recv_queue->lock);
- _exit_critical_bh(&queue->lock, &irqL);
-
-
_func_exit_;
return _SUCCESS;
}
+sint rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue)
+{
+ sint ret;
+ _irqL irqL;
+
+ //_spinlock(&pfree_recv_queue->lock);
+ _enter_critical_bh(&queue->lock, &irqL);
+ ret = _rtw_enqueue_recvframe(precvframe, queue);
+ //_rtw_spinunlock(&pfree_recv_queue->lock);
+ _exit_critical_bh(&queue->lock, &irqL);
+
+ return ret;
+}
+
/*
sint rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue)
{
@@ -387,6 +395,34 @@ _func_exit_;
}
+u32 rtw_free_uc_swdec_pending_queue(_adapter *adapter)
+{
+ u32 cnt = 0;
+ union recv_frame *pending_frame;
+ while((pending_frame=rtw_alloc_recvframe(&adapter->recvpriv.uc_swdec_pending_queue))) {
+ rtw_free_recvframe(pending_frame, &adapter->recvpriv.free_recv_queue);
+ DBG_871X("%s: dequeue uc_swdec_pending_queue\n", __func__);
+ cnt++;
+ }
+
+ return cnt;
+}
+
+
+sint rtw_enqueue_recvbuf_to_head(struct recv_buf *precvbuf, _queue *queue)
+{
+ _irqL irqL;
+
+ _enter_critical(&queue->lock, &irqL);
+
+ rtw_list_delete(&precvbuf->list);
+ rtw_list_insert_head(&precvbuf->list, get_list_head(queue));
+
+ _exit_critical(&queue->lock, &irqL);
+
+ return _SUCCESS;
+}
+
sint rtw_enqueue_recvbuf(struct recv_buf *precvbuf, _queue *queue)
{
_irqL irqL;
@@ -435,14 +471,16 @@ struct recv_buf *rtw_dequeue_recvbuf (_queue *queue)
}
-static sint recvframe_chkmic(_adapter *adapter, union recv_frame *precvframe){
+sint recvframe_chkmic(_adapter *adapter, union recv_frame *precvframe);
+sint recvframe_chkmic(_adapter *adapter, union recv_frame *precvframe){
sint i,res=_SUCCESS;
u32 datalen;
u8 miccode[8];
u8 bmic_err=_FALSE,brpt_micerror = _TRUE;
u8 *pframe, *payload,*pframemic;
- u8 *mickey,*iv,rxdata_key_idx;
+ u8 *mickey;
+ //u8 *iv,rxdata_key_idx=0;
struct sta_info *stainfo;
struct rx_pkt_attrib *prxattrib=&precvframe->u.hdr.attrib;
struct security_priv *psecuritypriv=&adapter->securitypriv;
@@ -470,14 +508,14 @@ _func_enter_;
mickey=&psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0];
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n recvframe_chkmic: bcmc key \n"));
- //DBG_8192C("\n recvframe_chkmic: bcmc key psecuritypriv->dot118021XGrpKeyid(%d),pmlmeinfo->key_index(%d) ,recv key_id(%d)\n",
+ //DBG_871X("\n recvframe_chkmic: bcmc key psecuritypriv->dot118021XGrpKeyid(%d),pmlmeinfo->key_index(%d) ,recv key_id(%d)\n",
// psecuritypriv->dot118021XGrpKeyid,pmlmeinfo->key_index,rxdata_key_idx);
if(psecuritypriv->binstallGrpkey==_FALSE)
{
res=_FAIL;
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n recvframe_chkmic:didn't install group key!!!!!!!!!!\n"));
- DBG_8192C("\n recvframe_chkmic:didn't install group key!!!!!!!!!!\n");
+ DBG_871X("\n recvframe_chkmic:didn't install group key!!!!!!!!!!\n");
goto exit;
}
}
@@ -538,16 +576,11 @@ _func_enter_;
if((IS_MCAST(prxattrib->ra)==_TRUE) && (prxattrib->key_index != pmlmeinfo->key_index ))
brpt_micerror = _FALSE;
- if((prxattrib->bdecrypted ==_TRUE)&& (brpt_micerror == _TRUE))
+ if(brpt_micerror == _TRUE)
{
rtw_handle_tkip_mic_err(adapter,(u8)IS_MCAST(prxattrib->ra));
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" mic error :prxattrib->bdecrypted=%d ",prxattrib->bdecrypted));
- DBG_8192C(" mic error :prxattrib->bdecrypted=%d\n",prxattrib->bdecrypted);
- }
- else
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" mic error :prxattrib->bdecrypted=%d ",prxattrib->bdecrypted));
- DBG_8192C(" mic error :prxattrib->bdecrypted=%d\n",prxattrib->bdecrypted);
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" mic error :prxattrib->bdecrypted=%d \n", brpt_micerror));
+ DBG_871X(" mic error :brpt_micerror=%d\n", brpt_micerror);
}
res=_FAIL;
@@ -580,14 +613,14 @@ _func_exit_;
}
//decrypt and set the ivlen,icvlen of the recv_frame
-static union recv_frame * decryptor(_adapter *padapter,union recv_frame *precv_frame)
+union recv_frame * decryptor(_adapter *padapter,union recv_frame *precv_frame);
+union recv_frame * decryptor(_adapter *padapter,union recv_frame *precv_frame)
{
- u32 res=_SUCCESS;
struct rx_pkt_attrib *prxattrib = &precv_frame->u.hdr.attrib;
struct security_priv *psecuritypriv=&padapter->securitypriv;
union recv_frame *return_packet=precv_frame;
-
+ u32 res=_SUCCESS;
_func_enter_;
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("prxstat->decrypted=%x prxattrib->encrypt = 0x%03x\n",prxattrib->bdecrypted,prxattrib->encrypt));
@@ -617,6 +650,10 @@ _func_enter_;
if((prxattrib->encrypt>0) && ((prxattrib->bdecrypted==0) ||(psecuritypriv->sw_decrypt==_TRUE)))
{
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(!IS_MCAST(prxattrib->ra))//bc/mc packets use sw decryption for concurrent mode
+#endif
psecuritypriv->hw_decrypted=_FALSE;
#ifdef DBG_RX_DECRYPTOR
@@ -673,7 +710,7 @@ _func_enter_;
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
#endif
}
-
+
if(res == _FAIL)
{
rtw_free_recvframe(return_packet,&padapter->recvpriv.free_recv_queue);
@@ -681,14 +718,15 @@ _func_enter_;
}
//recvframe_chkmic(adapter, precv_frame); //move to recvframme_defrag function
-
+
_func_exit_;
return return_packet;
}
//###set the security information in the recv_frame
-static union recv_frame * portctrl(_adapter *adapter,union recv_frame * precv_frame)
+union recv_frame * portctrl(_adapter *adapter,union recv_frame * precv_frame);
+union recv_frame * portctrl(_adapter *adapter,union recv_frame * precv_frame)
{
u8 *psta_addr,*ptr;
uint auth_alg;
@@ -771,7 +809,8 @@ _func_exit_;
}
-static sint recv_decache(union recv_frame *precv_frame, u8 bretry, struct stainfo_rxcache *prxcache)
+sint recv_decache(union recv_frame *precv_frame, u8 bretry, struct stainfo_rxcache *prxcache);
+sint recv_decache(union recv_frame *precv_frame, u8 bretry, struct stainfo_rxcache *prxcache)
{
sint tid = precv_frame->u.hdr.attrib.priority;
@@ -805,7 +844,8 @@ _func_exit_;
}
-static void process_pwrbit_data(_adapter *padapter, union recv_frame *precv_frame)
+void process_pwrbit_data(_adapter *padapter, union recv_frame *precv_frame);
+void process_pwrbit_data(_adapter *padapter, union recv_frame *precv_frame)
{
#ifdef CONFIG_AP_MODE
unsigned char pwrbit;
@@ -826,11 +866,11 @@ static void process_pwrbit_data(_adapter *padapter, union recv_frame *precv_fram
{
//psta->state |= WIFI_SLEEP_STATE;
//pstapriv->sta_dz_bitmap |= BIT(psta->aid);
-
+
stop_sta_xmit(padapter, psta);
-
+
//DBG_871X("to sleep, sta_dz_bitmap=%x\n", pstapriv->sta_dz_bitmap);
- }
+ }
}
else
{
@@ -838,10 +878,10 @@ static void process_pwrbit_data(_adapter *padapter, union recv_frame *precv_fram
{
//psta->state ^= WIFI_SLEEP_STATE;
//pstapriv->sta_dz_bitmap &= ~BIT(psta->aid);
-
+
wakeup_sta_to_xmit(padapter, psta);
- //DBG_871X("to wakeup, sta_dz_bitmap=%x\n", pstapriv->sta_dz_bitmap);
+ //DBG_871X("to wakeup, sta_dz_bitmap=%x\n", pstapriv->sta_dz_bitmap);
}
}
@@ -850,7 +890,8 @@ static void process_pwrbit_data(_adapter *padapter, union recv_frame *precv_fram
#endif
}
-static void process_wmmps_data(_adapter *padapter, union recv_frame *precv_frame)
+void process_wmmps_data(_adapter *padapter, union recv_frame *precv_frame);
+void process_wmmps_data(_adapter *padapter, union recv_frame *precv_frame)
{
#ifdef CONFIG_AP_MODE
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
@@ -864,871 +905,91 @@ static void process_wmmps_data(_adapter *padapter, union recv_frame *precv_frame
#ifdef CONFIG_TDLS
if( !(psta->tdls_sta_state & TDLS_LINKED_STATE ) )
{
-#endif //CONFIG_TDLS
-
- if(!psta->qos_option)
- return;
-
- if(!(psta->qos_info&0xf))
- return;
-
-#ifdef CONFIG_TDLS
- }
-#endif //CONFIG_TDLS
-
- if(psta->state&WIFI_SLEEP_STATE)
- {
- u8 wmmps_ac=0;
-
- switch(pattrib->priority)
- {
- case 1:
- case 2:
- wmmps_ac = psta->uapsd_bk&BIT(1);
- break;
- case 4:
- case 5:
- wmmps_ac = psta->uapsd_vi&BIT(1);
- break;
- case 6:
- case 7:
- wmmps_ac = psta->uapsd_vo&BIT(1);
- break;
- case 0:
- case 3:
- default:
- wmmps_ac = psta->uapsd_be&BIT(1);
- break;
- }
-
- if(wmmps_ac)
- {
- if(psta->sleepq_ac_len>0)
- {
- //process received triggered frame
- xmit_delivery_enabled_frames(padapter, psta);
- }
- else
- {
- //issue one qos null frame with More data bit = 0 and the EOSP bit set (=1)
- issue_qos_nulldata(padapter, psta->hwaddr, (u16)pattrib->priority);
- }
- }
-
- }
-
-
-#endif
-
-}
-
-#ifdef CONFIG_TDLS
-sint On_TDLS_Setup_Req(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
- u8 *psa, *pmyid;
- struct sta_info *ptdls_sta= NULL;
- struct sta_priv *pstapriv = &adapter->stapriv;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
- struct security_priv *psecuritypriv = &adapter->securitypriv;
- _irqL irqL;
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- u8 *prsnie, *ppairwise_cipher;
- u8 i, k, pairwise_count;
- u8 ccmp_have=0, rsnie_have=0;
- u16 j;
- u8 SNonce[32];
- u32 *timeout_interval;
- sint parsing_length; //frame body length, without icv_len
- PNDIS_802_11_VARIABLE_IEs pIE;
- u8 FIXED_IE = 5;
-
- psa = get_sa(ptr);
- ptdls_sta = rtw_get_stainfo(pstapriv, psa);
-
- pmyid=myid(&(adapter->eeprompriv));
- ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
- parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
- -prx_pkt_attrib->hdrlen
- -prx_pkt_attrib->iv_len
- -prx_pkt_attrib->icv_len
- -LLC_HEADER_SIZE
- -TYPE_LENGTH_FIELD_SIZE
- -1
- -FIXED_IE;
-
- if(ptdlsinfo->ap_prohibited == _TRUE)
- {
- goto exit;
- }
-
- if(ptdls_sta==NULL ||(ptdls_sta->tdls_sta_state&TDLS_LINKED_STATE) )
- {
- if(ptdls_sta==NULL){
- ptdls_sta = rtw_alloc_stainfo(pstapriv, psa);
- }else{
- //If the direct link is already set up
- //Process as re-setup after tear down
- DBG_8192C("re-setup a direct link\n");
- }
-
- if(ptdls_sta)
- {
- //copy dialog token
- ptdls_sta->dialog = *(ptr+2);
-
- //parsing information element
- for(j=FIXED_IE; j<parsing_length;){
-
- pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
-
- switch (pIE->ElementID)
- {
- case _SUPPORTEDRATES_IE_:
- break;
- case _COUNTRY_IE_:
- break;
- case _EXT_SUPPORTEDRATES_IE_:
- break;
- case _SUPPORTED_CH_IE_:
- break;
- case _RSN_IE_2_:
- rsnie_have=1;
- if(prx_pkt_attrib->encrypt){
- prsnie=(u8*)pIE;
- //check whether initiator STA has CCMP pairwise_cipher.
- ppairwise_cipher=prsnie+10;
- _rtw_memcpy(&pairwise_count, (u16*)(ppairwise_cipher-2), 1);
- for(k=0;k<pairwise_count;k++){
- if(_rtw_memcmp( ppairwise_cipher+4*k, RSN_CIPHER_SUITE_CCMP, 4)==_TRUE)
- ccmp_have=1;
- }
- if(ccmp_have==0){
- //invalid contents of RSNIE
- ptdls_sta->stat_code=72;
- }
- }
- break;
- case _EXT_CAP_IE_:
- break;
- case _VENDOR_SPECIFIC_IE_:
- break;
- case _FTIE_:
- if(prx_pkt_attrib->encrypt)
- _rtw_memcpy(SNonce, (ptr+j+52), 32);
- break;
- case _TIMEOUT_ITVL_IE_:
- if(prx_pkt_attrib->encrypt)
- timeout_interval = (u32 *)(ptr+j+3);
- break;
- case _RIC_Descriptor_IE_:
- break;
- case _HT_CAPABILITY_IE_:
- break;
- case EID_BSSCoexistence:
- break;
- case _LINK_ID_IE_:
- if(_rtw_memcmp(get_bssid(pmlmepriv), pIE->data, 6) == _FALSE)
- {
- //not in same BSS
- ptdls_sta->stat_code=7;
- }
- break;
- default:
- break;
- }
-
- j += (pIE->Length + 2);
-
- }
-
- //check status code
- //if responder STA has/hasn't security on AP, but request hasn't/has RSNIE, it should reject
- if(
- ( rsnie_have && (prx_pkt_attrib->encrypt) )
- ||
- (rsnie_have==0 && (prx_pkt_attrib->encrypt==0) )
- ){
- ptdls_sta->stat_code=0;
- }else if(rsnie_have && (prx_pkt_attrib->encrypt==0)){
- //security disabled
- ptdls_sta->stat_code=5;
- }else if(rsnie_have==0 && (prx_pkt_attrib->encrypt)){
- //request haven't RSNIE
- ptdls_sta->stat_code=38;
- }
-
- ptdls_sta->tdls_sta_state|= TDLS_INITIATOR_STATE;
- if(prx_pkt_attrib->encrypt){
- _rtw_memcpy(ptdls_sta->SNonce, SNonce, 32);
- _rtw_memcpy(&(ptdls_sta->TDLS_PeerKey_Lifetime), timeout_interval, 4);
- }
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- ptdlsinfo->sta_cnt++;
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- if( ptdlsinfo->sta_cnt == (NUM_STA - 1) )
- {
- ptdlsinfo->sta_maximum = _TRUE;
- }
- }
- else
- {
- goto exit;
- }
- }
- //already receiving TDLS setup request
- else if(ptdls_sta->tdls_sta_state==TDLS_INITIATOR_STATE){
- DBG_8192C("receive duplicated TDLS setup request frame in handshaking\n");
- goto exit;
- }
- //When receiving and sending setup_req to the same link at the same time, STA with higher MAC_addr would be initiator
- //following is to check out MAC_addr
- else if(ptdls_sta->tdls_sta_state==TDLS_RESPONDER_STATE){
- DBG_8192C("receive setup_req after sending setup_req\n");
- for (i=0;i<6;i++){
- if(*(pmyid+i)==*(psa+i)){
- }
- else if(*(pmyid+i)>*(psa+i)){
- goto exit;
- }else if(*(pmyid+i)<*(psa+i)){
- ptdls_sta->tdls_sta_state=TDLS_INITIATOR_STATE;
- break;
- }
- }
- }
-
- issue_tdls_setup_rsp(adapter, precv_frame);
- _set_timer( &ptdls_sta->handshake_timer, TDLS_HANDSHAKE_TIME);
-
- //status code!=0 ; setup unsuccess
- if(ptdls_sta->stat_code!=0){
- free_tdls_sta(adapter, ptdls_sta);
- return _FAIL;
- }
-
-exit:
-
- return _FAIL;
-}
-
-
-sint On_TDLS_Setup_Rsp(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
- struct sta_info *ptdls_sta= NULL;
- struct sta_priv *pstapriv = &adapter->stapriv;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- _irqL irqL;
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- u8 *psa;
- u16 stat_code;
- sint parsing_length; //frame body length, without icv_len
- PNDIS_802_11_VARIABLE_IEs pIE;
- u8 FIXED_IE =7;
- u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic, *ppairwise_cipher;
- u16 pairwise_count, j, k;
- u8 verify_ccmp=0;
-
- psa = get_sa(ptr);
- ptdls_sta = rtw_get_stainfo(pstapriv, psa);
-
- ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
- parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
- -prx_pkt_attrib->hdrlen
- -prx_pkt_attrib->iv_len
- -prx_pkt_attrib->icv_len
- -LLC_HEADER_SIZE
- -TYPE_LENGTH_FIELD_SIZE
- -1
- -FIXED_IE;
- _rtw_memcpy(&stat_code, ptr+2, 2);
-
- if(stat_code!=0){
- free_tdls_sta(adapter, ptdls_sta);
- return _FAIL;
- }
-
- //parsing information element
- for(j=FIXED_IE; j<parsing_length;){
-
- pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
-
- switch (pIE->ElementID)
- {
- case _SUPPORTEDRATES_IE_:
- break;
- case _COUNTRY_IE_:
- break;
- case _EXT_SUPPORTEDRATES_IE_:
- break;
- case _SUPPORTED_CH_IE_:
- break;
- case _RSN_IE_2_:
- prsnie=(u8*)pIE;
- //check whether responder STA has CCMP pairwise_cipher.
- ppairwise_cipher=prsnie+10;
- _rtw_memcpy(&pairwise_count, (u16*)(ppairwise_cipher-2), 2);
- for(k=0;k<pairwise_count;k++){
- if(_rtw_memcmp( ppairwise_cipher+4*k, RSN_CIPHER_SUITE_CCMP, 4)==_TRUE)
- verify_ccmp=1;
- }
- case _EXT_CAP_IE_:
- break;
- case _VENDOR_SPECIFIC_IE_:
- break;
- case _FTIE_:
- pftie=(u8*)pIE;
- _rtw_memcpy(ptdls_sta->ANonce, (ptr+j+20), 32);
- break;
- case _TIMEOUT_ITVL_IE_:
- ptimeout_ie=(u8*)pIE;
- break;
- case _RIC_Descriptor_IE_:
- break;
- case _HT_CAPABILITY_IE_:
- break;
- case EID_BSSCoexistence:
- break;
- case _LINK_ID_IE_:
- plinkid_ie=(u8*)pIE;
- break;
- default:
- break;
- }
-
- j += (pIE->Length + 2);
-
- }
-
- if(prx_pkt_attrib->encrypt){
- if(verify_ccmp==1){
- wpa_tdls_generate_tpk(adapter, ptdls_sta);
- ptdls_sta->stat_code=0;
- }
- else{
- ptdls_sta->stat_code=72; //invalide contents of RSNIE
- }
- }else{
- ptdls_sta->stat_code=0;
- }
-
- if(prx_pkt_attrib->encrypt){
- if(tdls_verify_mic(ptdls_sta->tpk.kck, 2, plinkid_ie, prsnie, ptimeout_ie, pftie)==0){ //0: Invalid, 1: valid
- free_tdls_sta(adapter, ptdls_sta);
- return _FAIL;
- }
- }
-
- DBG_871X("issue_tdls_setup_cfm\n");
- issue_tdls_setup_cfm(adapter, precv_frame);
-
- //status code!=0 ; setup unsuccess
- if(ptdls_sta->stat_code!=0){
- free_tdls_sta(adapter, ptdls_sta);
- return _FAIL;
- }
-
- ptdlsinfo->setup_state = TDLS_LINKED_STATE;
-
- ptdls_sta->option=1;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_WRCR);
-
- if( ptdls_sta->tdls_sta_state & TDLS_RESPONDER_STATE )
- {
- ptdls_sta->tdls_sta_state |= TDLS_LINKED_STATE;
- _cancel_timer_ex( &ptdls_sta->handshake_timer);
-#ifdef CONFIG_TDLS_AUTOCHECKALIVE
- _set_timer( &ptdls_sta->alive_timer1, TDLS_ALIVE_TIMER_PH1);
-#endif //CONFIG_TDLS_AUTOSETUP
- }
-
- if(prx_pkt_attrib->encrypt){
- if(ptdls_sta->cam_entry==0){
- ptdls_sta->dot118021XPrivacy=_AES_;
- ptdls_sta->cam_entry=ptdlsinfo->cam_entry_to_write;
- if(++ptdlsinfo->cam_entry_to_write>31)
- ptdlsinfo->cam_entry_to_write=6;
- }
- rtw_setstakey_cmd(adapter, (u8*)ptdls_sta, _TRUE);
- }
-
- return _FAIL;
-
-}
-
-sint On_TDLS_Setup_Cfm(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
- struct sta_info *ptdls_sta= NULL;
- struct sta_priv *pstapriv = &adapter->stapriv;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- _irqL irqL;
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- u8 *psa;
- u16 stat_code;
- sint parsing_length;
- PNDIS_802_11_VARIABLE_IEs pIE;
- u8 FIXED_IE =5;
- u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic, *ppairwise_cipher;
- u16 j, pairwise_count;
-
- psa = get_sa(ptr);
- ptdls_sta = rtw_get_stainfo(pstapriv, psa);
-
- //[+1]: payload type
- ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
- parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
- -prx_pkt_attrib->hdrlen
- -prx_pkt_attrib->iv_len
- -prx_pkt_attrib->icv_len
- -LLC_HEADER_SIZE
- -TYPE_LENGTH_FIELD_SIZE
- -1
- -FIXED_IE;
- _rtw_memcpy(&stat_code, ptr+2, 2);
-
- if(stat_code!=0){
- free_tdls_sta(adapter, ptdls_sta);
- return _FAIL;
- }
-
- if(prx_pkt_attrib->encrypt){
- //parsing information element
- for(j=FIXED_IE; j<parsing_length;){
-
- pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
-
- switch (pIE->ElementID)
- {
- case _RSN_IE_2_:
- prsnie=(u8*)pIE;
- break;
- case _VENDOR_SPECIFIC_IE_:
- break;
- case _FTIE_:
- pftie=(u8*)pIE;
- break;
- case _TIMEOUT_ITVL_IE_:
- ptimeout_ie=(u8*)pIE;
- break;
- case _HT_EXTRA_INFO_IE_:
- break;
- case _LINK_ID_IE_:
- plinkid_ie=(u8*)pIE;
- break;
- default:
- break;
- }
-
- j += (pIE->Length + 2);
-
- }
-
- //verify mic in FTIE MIC field
- if(tdls_verify_mic(ptdls_sta->tpk.kck, 3, plinkid_ie, prsnie, ptimeout_ie, pftie)==0){ //0: Invalid, 1: Valid
- free_tdls_sta(adapter, ptdls_sta);
- return _FAIL;
- }
-
- }
-
- ptdlsinfo->setup_state = TDLS_LINKED_STATE;
- if( ptdls_sta->tdls_sta_state & TDLS_INITIATOR_STATE )
- {
- ptdls_sta->tdls_sta_state|=TDLS_LINKED_STATE;
- _cancel_timer_ex( &ptdls_sta->handshake_timer);
-#ifdef CONFIG_TDLS_AUTOCHECKALIVE
- _set_timer( &ptdls_sta->alive_timer1, TDLS_ALIVE_TIMER_PH1);
-#endif //CONFIG_TDLS_AUTOCHECKALIVE
- }
-
- ptdls_sta->option=1; //write RCR DATA BIT
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_WRCR);
-
- //Write cam
- //TDLS encryption(if needed) will always be CCMP
- if(prx_pkt_attrib->encrypt){
- if(ptdls_sta->cam_entry==0){
- ptdls_sta->dot118021XPrivacy=_AES_;
- ptdls_sta->cam_entry=ptdlsinfo->cam_entry_to_write;
- if(++ptdlsinfo->cam_entry_to_write>31)
- ptdlsinfo->cam_entry_to_write=6;
- }
- rtw_setstakey_cmd(adapter, (u8*)ptdls_sta, _TRUE);
- }
-
- return _FAIL;
-
-}
-
-sint On_TDLS_Dis_Req(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- struct sta_priv *pstapriv = &adapter->stapriv;
- struct sta_info *psta_ap;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- sint parsing_length; //frame body length, without icv_len
- PNDIS_802_11_VARIABLE_IEs pIE;
- u8 FIXED_IE = 3, *dst, *pdialog = NULL;
- u16 j;
-
- ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len + LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE + 1;
- pdialog=ptr+2;
-
- parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
- -prx_pkt_attrib->hdrlen
- -prx_pkt_attrib->iv_len
- -prx_pkt_attrib->icv_len
- -LLC_HEADER_SIZE
- -TYPE_LENGTH_FIELD_SIZE
- -1
- -FIXED_IE;
-
- //parsing information element
- for(j=FIXED_IE; j<parsing_length;){
-
- pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
-
- switch (pIE->ElementID)
- {
- case _LINK_ID_IE_:
- psta_ap = rtw_get_stainfo(pstapriv, pIE->data);
- if(psta_ap == NULL)
- {
- goto exit;
- }
- dst = pIE->data + 12;
- if( (MacAddr_isBcst(dst) == _FALSE) && (_rtw_memcmp(myid(&(adapter->eeprompriv)), dst, 6) == _FALSE) )
- {
- goto exit;
- }
- break;
- default:
- break;
- }
-
- j += (pIE->Length + 2);
-
- }
-
- //check frame contents
-
- issue_tdls_dis_rsp(adapter, precv_frame, *(pdialog) );
-
-exit:
-
- return _FAIL;
-
-}
-
-sint On_TDLS_Teardown(_adapter *adapter, union recv_frame *precv_frame)
-{
- u8 *psa;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- struct mlme_ext_priv *pmlmeext = &(adapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct sta_priv *pstapriv = &adapter->stapriv;
- struct sta_info *ptdls_sta= NULL;
- _irqL irqL;
-
- psa = get_sa(ptr);
-
- ptdls_sta = rtw_get_stainfo(pstapriv, psa);
- if(ptdls_sta!=NULL){
-
- if(ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE){
- ptdls_sta->option =3;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
- }
- free_tdls_sta(adapter, ptdls_sta);
- }
-
- return _FAIL;
-
-}
-
-u8 TDLS_check_ch_state(uint state){
- if( (state & TDLS_CH_SWITCH_ON_STATE) &&
- (state & TDLS_AT_OFF_CH_STATE) &&
- (state & TDLS_PEER_AT_OFF_STATE) ){
-
- if(state & TDLS_PEER_SLEEP_STATE)
- return 2; //U-APSD + ch. switch
- else
- return 1; //ch. switch
- }else
- return 0;
-}
-
-//we process buffered data for 1. U-APSD, 2. ch. switch, 3. U-APSD + ch. switch here
-sint On_TDLS_Peer_Traffic_Rsp(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
- struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
- struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
- struct sta_priv *pstapriv = &adapter->stapriv;
- //get peer sta infomation
- struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->src);
- u8 wmmps_ac=0, state=TDLS_check_ch_state(ptdls_sta->tdls_sta_state);
- int i;
-
- ptdls_sta->sta_stats.rx_data_pkts++;
-
- //receive peer traffic response frame, sleeping STA wakes up
- //ptdls_sta->tdls_sta_state &= ~(TDLS_PEER_SLEEP_STATE);
- process_wmmps_data( adapter, precv_frame);
-
- // if noticed peer STA wakes up by receiving peer traffic response
- // and we want to do channel swtiching, then we will transmit channel switch request first
- if(ptdls_sta->tdls_sta_state & TDLS_APSD_CHSW_STATE){
- issue_tdls_ch_switch_req(adapter, pattrib->src);
- ptdls_sta->tdls_sta_state &= ~(TDLS_APSD_CHSW_STATE);
- return _FAIL;
- }
-
- //check 4-AC queue bit
- if(ptdls_sta->uapsd_vo || ptdls_sta->uapsd_vi || ptdls_sta->uapsd_be || ptdls_sta->uapsd_bk)
- wmmps_ac=1;
-
- //if it's a direct link and have buffered frame
- if(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE){
- if(wmmps_ac && state)
- {
- _irqL irqL;
- _list *xmitframe_plist, *xmitframe_phead;
- struct xmit_frame *pxmitframe=NULL;
-
- _enter_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
-
- xmitframe_phead = get_list_head(&ptdls_sta->sleep_q);
- xmitframe_plist = get_next(xmitframe_phead);
-
- //transmit buffered frames
- while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
- {
- pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
- xmitframe_plist = get_next(xmitframe_plist);
- rtw_list_delete(&pxmitframe->list);
-
- ptdls_sta->sleepq_len--;
- if(ptdls_sta->sleepq_len>0){
- pxmitframe->attrib.mdata = 1;
- pxmitframe->attrib.eosp = 0;
- }else{
- pxmitframe->attrib.mdata = 0;
- pxmitframe->attrib.eosp = 1;
- }
- //pxmitframe->attrib.triggered = 1; //maybe doesn't need in TDLS
- if(adapter->HalFunc.hal_xmit(adapter, pxmitframe) == _TRUE)
- {
- rtw_os_xmit_complete(adapter, pxmitframe);
- }
-
- }
-
- if(ptdls_sta->sleepq_len==0)
- {
- DBG_871X("no buffered packets to xmit\n");
- //on U-APSD + CH. switch state, when there is no buffered date to xmit,
- // we should go back to base channel
- if(state==2){
- ptdls_sta->option = 3;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
- }else if(ptdls_sta->tdls_sta_state&TDLS_SW_OFF_STATE){
- ptdls_sta->tdls_sta_state &= ~(TDLS_SW_OFF_STATE);
- ptdlsinfo->candidate_ch= pmlmeext->cur_channel;
- issue_tdls_ch_switch_req(adapter, pattrib->src);
- DBG_8192C("issue tdls ch switch req back to base channel\n");
- }
-
- }
- else
- {
- DBG_871X("error!psta->sleepq_len=%d\n", ptdls_sta->sleepq_len);
- ptdls_sta->sleepq_len=0;
- }
-
- _exit_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
-
- }
-
- }
-
- return _FAIL;
-}
-
-sint On_TDLS_Ch_Switch_Req(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct sta_info *ptdls_sta= NULL;
- struct sta_priv *pstapriv = &adapter->stapriv;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- u8 *psa;
- sint parsing_length;
- PNDIS_802_11_VARIABLE_IEs pIE;
- u8 FIXED_IE =3;
- u16 j;
- struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
-
- psa = get_sa(ptr);
- ptdls_sta = rtw_get_stainfo(pstapriv, psa);
-
- //[+1]: payload type
- ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
- parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
- -prx_pkt_attrib->hdrlen
- -prx_pkt_attrib->iv_len
- -prx_pkt_attrib->icv_len
- -LLC_HEADER_SIZE
- -TYPE_LENGTH_FIELD_SIZE
- -1
- -FIXED_IE;
-
- ptdls_sta->off_ch = *(ptr+2);
-
- //parsing information element
- for(j=FIXED_IE; j<parsing_length;){
-
- pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
-
- switch (pIE->ElementID)
- {
- case _COUNTRY_IE_:
- break;
- case _CH_SWTICH_ANNOUNCE_:
- break;
- case _LINK_ID_IE_:
- break;
- case _CH_SWITCH_TIMING_:
- _rtw_memcpy(&ptdls_sta->ch_switch_time, pIE->data, 2);
- _rtw_memcpy(&ptdls_sta->ch_switch_timeout, pIE->data+2, 2);
- default:
- break;
- }
-
- j += (pIE->Length + 2);
-
- }
-
- //todo: check status
- ptdls_sta->stat_code=0;
- ptdls_sta->tdls_sta_state |= TDLS_CH_SWITCH_ON_STATE;
-
- issue_nulldata(adapter, 1);
-
- issue_tdls_ch_switch_rsp(adapter, psa);
-
- DBG_8192C("issue tdls channel switch response\n");
-
- if((ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE) && ptdls_sta->off_ch==pmlmeext->cur_channel){
- DBG_8192C("back to base channel\n");
- ptdls_sta->option=7;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_BASE_CH);
- }else{
- ptdls_sta->option=6;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH);
- }
- return _FAIL;
-}
-
-sint On_TDLS_Ch_Switch_Rsp(_adapter *adapter, union recv_frame *precv_frame)
-{
- struct sta_info *ptdls_sta= NULL;
- struct sta_priv *pstapriv = &adapter->stapriv;
- u8 *ptr = precv_frame->u.hdr.rx_data;
- struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
- u8 *psa;
- sint parsing_length;
- PNDIS_802_11_VARIABLE_IEs pIE;
- u8 FIXED_IE =4;
- u16 stat_code, j, switch_time, switch_timeout;
- struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+#endif //CONFIG_TDLS
- psa = get_sa(ptr);
- ptdls_sta = rtw_get_stainfo(pstapriv, psa);
-
- //if channel switch is running and receiving Unsolicited TDLS Channel Switch Response,
- //it will go back to base channel and terminate this channel switch procedure
- if(ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE ){
- if(pmlmeext->cur_channel==ptdls_sta->off_ch){
- DBG_8192C("back to base channel\n");
- ptdls_sta->option=7;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH);
- }else{
- DBG_8192C("receive unsolicited channel switch response \n");
- ptdls_sta->option=3;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
- }
- return _FAIL;
- }
+ if(!psta->qos_option)
+ return;
- //avoiding duplicated or unconditional ch. switch. rsp
- if((ptdls_sta->tdls_sta_state & TDLS_CH_SW_INITIATOR_STATE) != TDLS_CH_SW_INITIATOR_STATE)
- return _FAIL;
-
- //[+1]: payload type
- ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
- parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
- -prx_pkt_attrib->hdrlen
- -prx_pkt_attrib->iv_len
- -prx_pkt_attrib->icv_len
- -LLC_HEADER_SIZE
- -TYPE_LENGTH_FIELD_SIZE
- -1
- -FIXED_IE;
-
- _rtw_memcpy(&stat_code, ptr+2, 2);
-
- if(stat_code!=0){
- return _FAIL;
+ if(!(psta->qos_info&0xf))
+ return;
+
+#ifdef CONFIG_TDLS
}
-
- //parsing information element
- for(j=FIXED_IE; j<parsing_length;){
-
- pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+#endif //CONFIG_TDLS
- switch (pIE->ElementID)
+ if(psta->state&WIFI_SLEEP_STATE)
+ {
+ u8 wmmps_ac=0;
+
+ switch(pattrib->priority)
{
- case _LINK_ID_IE_:
+ case 1:
+ case 2:
+ wmmps_ac = psta->uapsd_bk&BIT(1);
break;
- case _CH_SWITCH_TIMING_:
- _rtw_memcpy(&switch_time, pIE->data, 2);
- if(switch_time > ptdls_sta->ch_switch_time)
- _rtw_memcpy(&ptdls_sta->ch_switch_time, &switch_time, 2);
-
- _rtw_memcpy(&switch_timeout, pIE->data+2, 2);
- if(switch_timeout > ptdls_sta->ch_switch_timeout)
- _rtw_memcpy(&ptdls_sta->ch_switch_timeout, &switch_timeout, 2);
-
- default:
+ case 4:
+ case 5:
+ wmmps_ac = psta->uapsd_vi&BIT(1);
+ break;
+ case 6:
+ case 7:
+ wmmps_ac = psta->uapsd_vo&BIT(1);
break;
+ case 0:
+ case 3:
+ default:
+ wmmps_ac = psta->uapsd_be&BIT(1);
+ break;
}
- j += (pIE->Length + 2);
-
+ if(wmmps_ac)
+ {
+ if(psta->sleepq_ac_len>0)
+ {
+ //process received triggered frame
+ xmit_delivery_enabled_frames(padapter, psta);
+ }
+ else
+ {
+ //issue one qos null frame with More data bit = 0 and the EOSP bit set (=1)
+ issue_qos_nulldata(padapter, psta->hwaddr, (u16)pattrib->priority, 0, 0);
+ }
+ }
+
}
- ptdls_sta->tdls_sta_state &= ~(TDLS_CH_SW_INITIATOR_STATE);
- ptdls_sta->tdls_sta_state |=TDLS_CH_SWITCH_ON_STATE;
-
- //goto set_channel_workitem_callback()
- ptdls_sta->option=6;
- rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH);
+
+#endif
- return _FAIL;
}
+#ifdef CONFIG_TDLS
sint OnTDLS(_adapter *adapter, union recv_frame *precv_frame)
{
struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
sint ret = _SUCCESS;
u8 *paction = get_recvframe_data(precv_frame);
-
- //point to action field, [+8]: snap+ether_type, [+1]: payload_type, [+1]: category field
- paction+=pattrib->hdrlen + pattrib->iv_len+8+1+1;
+ u8 category_field = 1;
+#ifdef CONFIG_WFD
+ u8 WFA_OUI[3] = { 0x50, 0x6f, 0x9a };
+#endif //CONFIG_WFD
+ struct tdls_info *ptdlsinfo = &(adapter->tdlsinfo);
+
+ //point to action field
+ paction+=pattrib->hdrlen
+ + pattrib->iv_len
+ + SNAP_SIZE
+ + ETH_TYPE_LEN
+ + PAYLOAD_TYPE_LEN
+ + category_field;
+
+ if(ptdlsinfo->enable == 0)
+ {
+ DBG_871X("recv tdls frame, "
+ "but tdls haven't enabled\n");
+ ret = _FAIL;
+ return ret;
+ }
switch(*paction){
case TDLS_SETUP_REQUEST:
@@ -1763,6 +1024,26 @@ sint OnTDLS(_adapter *adapter, union recv_frame *precv_frame)
DBG_871X("recv tdls channel switch response frame\n");
ret=On_TDLS_Ch_Switch_Rsp(adapter, precv_frame);
break;
+#ifdef CONFIG_WFD
+ case 0x50: //First byte of WFA OUI
+ if( _rtw_memcmp(WFA_OUI, (paction), 3) )
+ {
+ if( *(paction + 3) == 0x04) //Probe request frame
+ {
+ //WFDTDLS: for sigma test, do not setup direct link automatically
+ ptdlsinfo->dev_discovered = 1;
+ DBG_871X("recv tunneled probe request frame\n");
+ issue_tunneled_probe_rsp(adapter, precv_frame);
+ }
+ if( *(paction + 3) == 0x05) //Probe response frame
+ {
+ //WFDTDLS: for sigma test, do not setup direct link automatically
+ ptdlsinfo->dev_discovered = 1;
+ DBG_871X("recv tunneled probe response frame\n");
+ }
+ }
+ break;
+#endif //CONFIG_WFD
default:
DBG_871X("receive TDLS frame but not supported\n");
ret=_FAIL;
@@ -1773,9 +1054,10 @@ exit:
return ret;
}
-#endif
+#endif //CONFIG_TDLS
-static void count_rx_stats(_adapter *padapter, union recv_frame *prframe, struct sta_info*sta)
+void count_rx_stats(_adapter *padapter, union recv_frame *prframe, struct sta_info*sta);
+void count_rx_stats(_adapter *padapter, union recv_frame *prframe, struct sta_info*sta)
{
int sz;
struct sta_info *psta = NULL;
@@ -1791,7 +1073,7 @@ static void count_rx_stats(_adapter *padapter, union recv_frame *prframe, struct
if( (!MacAddr_isBcst(pattrib->dst)) && (!IS_MCAST(pattrib->dst))){
padapter->mlmepriv.LinkDetectInfo.NumRxUnicastOkInPeriod++;
}
-
+
if(sta)
psta = sta;
else
@@ -1807,7 +1089,12 @@ static void count_rx_stats(_adapter *padapter, union recv_frame *prframe, struct
}
-static sint sta2sta_data_frame(
+sint sta2sta_data_frame(
+ _adapter *adapter,
+ union recv_frame *precv_frame,
+ struct sta_info**psta
+);
+sint sta2sta_data_frame(
_adapter *adapter,
union recv_frame *precv_frame,
struct sta_info**psta
@@ -1817,7 +1104,6 @@ static sint sta2sta_data_frame(
sint ret = _SUCCESS;
struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
struct sta_priv *pstapriv = &adapter->stapriv;
- struct security_priv *psecuritypriv = &adapter->securitypriv;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
u8 *mybssid = get_bssid(pmlmepriv);
u8 *myhwaddr = myid(&adapter->eeprompriv);
@@ -1828,9 +1114,8 @@ static sint sta2sta_data_frame(
struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
struct sta_info *ptdls_sta=NULL;
u8 *psnap_type=ptr+pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE;
- //frame body located after [+2]: ether-type, [+1]: payload type
- u8 *pframe_body = psnap_type+2+1;
-#endif
+ u8 *pframe_body = psnap_type + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
+#endif //CONFIG_TDLS
_func_enter_;
@@ -1863,18 +1148,16 @@ _func_enter_;
else if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
{
#ifdef CONFIG_TDLS
-
//direct link data transfer
- if(ptdlsinfo->setup_state & TDLS_LINKED_STATE){
+ if(ptdlsinfo->setup_state == TDLS_LINKED_STATE){
ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->src);
if(ptdls_sta==NULL)
{
ret=_FAIL;
goto exit;
}
- else if((ptdls_sta->tdls_sta_state&TDLS_LINKED_STATE)==TDLS_LINKED_STATE)
+ else if(ptdls_sta->tdls_sta_state&TDLS_LINKED_STATE)
{
-
//drop QoS-SubType Data, including QoS NULL, excluding QoS-Data
if( (GetFrameSubType(ptr) & WIFI_QOS_DATA_TYPE )== WIFI_QOS_DATA_TYPE)
{
@@ -1916,9 +1199,9 @@ _func_enter_;
{
DBG_871X("TDLS: recv peer null frame with pwr bit 1\n");
ptdls_sta->tdls_sta_state|=TDLS_PEER_SLEEP_STATE;
+ }
// it would be triggered when we are off channel and receiving NULL DATA
// we can confirm that peer STA is at off channel
- }
else if(ptdls_sta->tdls_sta_state&TDLS_CH_SWITCH_ON_STATE)
{
if((ptdls_sta->tdls_sta_state & TDLS_PEER_AT_OFF_STATE) != TDLS_PEER_AT_OFF_STATE)
@@ -1944,7 +1227,7 @@ _func_enter_;
}
else
-#endif
+#endif //CONFIG_TDLS
{
// For Station mode, sa and bssid should always be BSSID, and DA is my mac-address
if(!_rtw_memcmp(pattrib->bssid, pattrib->src, ETH_ALEN) )
@@ -1956,7 +1239,6 @@ _func_enter_;
sta_addr = pattrib->bssid;
}
-
}
else if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
@@ -2002,6 +1284,12 @@ _func_enter_;
else
*psta = rtw_get_stainfo(pstapriv, sta_addr); // get ap_info
+#ifdef CONFIG_TDLS
+ if(ptdls_sta != NULL)
+ *psta = ptdls_sta;
+#endif //CONFIG_TDLS
+
+
if (*psta == NULL) {
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("can't get psta under sta2sta_data_frame ; drop pkt\n"));
#ifdef CONFIG_MP_INCLUDED
@@ -2018,8 +1306,11 @@ _func_exit_;
}
-
-static sint ap2sta_data_frame(
+sint ap2sta_data_frame(
+ _adapter *adapter,
+ union recv_frame *precv_frame,
+ struct sta_info**psta );
+sint ap2sta_data_frame(
_adapter *adapter,
union recv_frame *precv_frame,
struct sta_info**psta )
@@ -2028,7 +1319,6 @@ static sint ap2sta_data_frame(
struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
sint ret = _SUCCESS;
struct sta_priv *pstapriv = &adapter->stapriv;
- struct security_priv *psecuritypriv = &adapter->securitypriv;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
u8 *mybssid = get_bssid(pmlmepriv);
u8 *myhwaddr = myid(&adapter->eeprompriv);
@@ -2042,31 +1332,6 @@ _func_enter_;
)
{
- // if NULL-frame, drop packet
- if ((GetFrameSubType(ptr)) == WIFI_DATA_NULL)
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,(" NULL frame \n"));
- #ifdef DBG_RX_DROP_FRAME
- DBG_871X("DBG_RX_DROP_FRAME %s NULL frame\n", __FUNCTION__);
- #endif
- ret= _FAIL;
- goto exit;
- }
-
- //drop QoS-SubType Data, including QoS NULL, excluding QoS-Data
- if( (GetFrameSubType(ptr) & WIFI_QOS_DATA_TYPE )== WIFI_QOS_DATA_TYPE)
- {
- if(GetFrameSubType(ptr)&(BIT(4)|BIT(5)|BIT(6)))
- {
- #ifdef DBG_RX_DROP_FRAME
- DBG_871X("DBG_RX_DROP_FRAME %s drop QoS-SubType Data, including QoS NULL, excluding QoS-Data\n", __FUNCTION__);
- #endif
- ret= _FAIL;
- goto exit;
- }
-
- }
-
// filter packets that SA is myself or multicast or broadcast
if (_rtw_memcmp(myhwaddr, pattrib->src, ETH_ALEN)){
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" SA==myself \n"));
@@ -2084,19 +1349,11 @@ _func_enter_;
// da should be for me
if((!_rtw_memcmp(myhwaddr, pattrib->dst, ETH_ALEN))&& (!bmcast))
{
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,(" ap2sta_data_frame: compare DA fail; DA= %x:%x:%x:%x:%x:%x \n",
- pattrib->dst[0],
- pattrib->dst[1],
- pattrib->dst[2],
- pattrib->dst[3],
- pattrib->dst[4],
- pattrib->dst[5]));
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,
+ (" ap2sta_data_frame: compare DA fail; DA="MAC_FMT"\n", MAC_ARG(pattrib->dst)));
#ifdef DBG_RX_DROP_FRAME
- DBG_871X("DBG_RX_DROP_FRAME %s compare DA fail; DA= %x:%x:%x:%x:%x:%x \n", __FUNCTION__,
- pattrib->dst[0],pattrib->dst[1],pattrib->dst[2],
- pattrib->dst[3],pattrib->dst[4],pattrib->dst[5]);
+ DBG_871X("DBG_RX_DROP_FRAME %s DA="MAC_FMT"\n", __func__, MAC_ARG(pattrib->dst));
#endif
-
ret= _FAIL;
goto exit;
}
@@ -2107,30 +1364,21 @@ _func_enter_;
_rtw_memcmp(mybssid, "\x0\x0\x0\x0\x0\x0", ETH_ALEN) ||
(!_rtw_memcmp(pattrib->bssid, mybssid, ETH_ALEN)) )
{
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,(" ap2sta_data_frame: compare BSSID fail ; BSSID=%x:%x:%x:%x:%x:%x\n",
- pattrib->bssid[0],
- pattrib->bssid[1],
- pattrib->bssid[2],
- pattrib->bssid[3],
- pattrib->bssid[4],
- pattrib->bssid[5]));
-
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("mybssid= %x:%x:%x:%x:%x:%x\n",
- mybssid[0],
- mybssid[1],
- mybssid[2],
- mybssid[3],
- mybssid[4],
- mybssid[5]));
-
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,
+ (" ap2sta_data_frame: compare BSSID fail ; BSSID="MAC_FMT"\n", MAC_ARG(pattrib->bssid)));
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("mybssid="MAC_FMT"\n", MAC_ARG(mybssid)));
#ifdef DBG_RX_DROP_FRAME
- DBG_871X("DBG_RX_DROP_FRAME %s compare BSSID fail ; BSSID=%x:%x:%x:%x:%x:%x, mybssid= %x:%x:%x:%x:%x:%x\n", __FUNCTION__,
- pattrib->bssid[0], pattrib->bssid[1], pattrib->bssid[2],
- pattrib->bssid[3], pattrib->bssid[4], pattrib->bssid[5],
- mybssid[0], mybssid[1], mybssid[2],
- mybssid[3], mybssid[4], mybssid[5]);
+ DBG_871X("DBG_RX_DROP_FRAME %s BSSID="MAC_FMT", mybssid="MAC_FMT"\n",
+ __FUNCTION__, MAC_ARG(pattrib->bssid), MAC_ARG(mybssid));
+ DBG_871X( "this adapter = %d, buddy adapter = %d\n", adapter->adapter_type, adapter->pbuddy_adapter->adapter_type );
#endif
+ if(!bmcast)
+ {
+ DBG_871X("issue_deauth to the nonassociated ap=" MAC_FMT " for the reason(7)\n", MAC_ARG(pattrib->bssid));
+ issue_deauth(adapter, pattrib->bssid, WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA);
+ }
+
ret= _FAIL;
goto exit;
}
@@ -2149,6 +1397,16 @@ _func_enter_;
goto exit;
}
+ if ((GetFrameSubType(ptr) & WIFI_QOS_DATA_TYPE) == WIFI_QOS_DATA_TYPE) {
+ }
+
+ if (GetFrameSubType(ptr) & BIT(6)) {
+ /* No data, will not indicate to upper layer, temporily count it here */
+ count_rx_stats(adapter, precv_frame, *psta);
+ ret = RTW_RX_HANDLED;
+ goto exit;
+ }
+
}
else if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE) &&
(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) )
@@ -2175,8 +1433,25 @@ _func_enter_;
}
+ else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
+ {
+ /* Special case */
+ ret = RTW_RX_HANDLED;
+ goto exit;
+ }
else
{
+ if(_rtw_memcmp(myhwaddr, pattrib->dst, ETH_ALEN)&& (!bmcast))
+ {
+ *psta = rtw_get_stainfo(pstapriv, pattrib->bssid); // get sta_info
+ if (*psta == NULL)
+ {
+ DBG_871X("issue_deauth to the ap=" MAC_FMT " for the reason(7)\n", MAC_ARG(pattrib->bssid));
+
+ issue_deauth(adapter, pattrib->bssid, WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA);
+ }
+ }
+
ret = _FAIL;
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s fw_state:0x%x\n", __FUNCTION__, get_fwstate(pmlmepriv));
@@ -2191,7 +1466,11 @@ _func_exit_;
}
-static sint sta2ap_data_frame(
+sint sta2ap_data_frame(
+ _adapter *adapter,
+ union recv_frame *precv_frame,
+ struct sta_info**psta );
+sint sta2ap_data_frame(
_adapter *adapter,
union recv_frame *precv_frame,
struct sta_info**psta )
@@ -2199,7 +1478,6 @@ static sint sta2ap_data_frame(
u8 *ptr = precv_frame->u.hdr.rx_data;
struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
struct sta_priv *pstapriv = &adapter->stapriv;
- struct security_priv *psecuritypriv = &adapter->securitypriv;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
unsigned char *mybssid = get_bssid(pmlmepriv);
sint ret=_SUCCESS;
@@ -2208,71 +1486,48 @@ _func_enter_;
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
- //For AP mode, RA=BSSID, TX=STA(SRC_ADDR), A3=DST_ADDR
- if(!_rtw_memcmp(pattrib->bssid, mybssid, ETH_ALEN))
- {
- ret= _FAIL;
- goto exit;
- }
-
- *psta = rtw_get_stainfo(pstapriv, pattrib->src);
-
- if (*psta == NULL)
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("can't get psta under AP_MODE; drop pkt\n"));
- ret= _FAIL;
- goto exit;
- }
-
-
- process_pwrbit_data(adapter, precv_frame);
-
-
- // if NULL-frame, drop packet
- if ((GetFrameSubType(ptr)) == WIFI_DATA_NULL)
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,(" NULL frame \n"));
-
- //temporily count it here
- count_rx_stats(adapter, precv_frame, *psta);
-
- //process_null_data(adapter, precv_frame);
- //process_pwrbit_data(adapter, precv_frame);
-
-
- ret= _FAIL;
- goto exit;
- }
+ //For AP mode, RA=BSSID, TX=STA(SRC_ADDR), A3=DST_ADDR
+ if(!_rtw_memcmp(pattrib->bssid, mybssid, ETH_ALEN))
+ {
+ ret= _FAIL;
+ goto exit;
+ }
- //drop QoS-SubType Data, including QoS NULL, excluding QoS-Data
- if( (GetFrameSubType(ptr) & WIFI_QOS_DATA_TYPE )== WIFI_QOS_DATA_TYPE)
- {
+ *psta = rtw_get_stainfo(pstapriv, pattrib->src);
+ if (*psta == NULL)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("can't get psta under AP_MODE; drop pkt\n"));
+ DBG_871X("issue_deauth to sta=" MAC_FMT " for the reason(7)\n", MAC_ARG(pattrib->src));
- if(GetFrameSubType(ptr)==WIFI_QOS_DATA_NULL)
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,(" QoS NULL frame \n"));
+ issue_deauth(adapter, pattrib->src, WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA);
- //temporily count it here
- count_rx_stats(adapter, precv_frame, *psta);
+ ret = RTW_RX_HANDLED;
+ goto exit;
+ }
- //process_null_data(adapter, precv_frame);
+ process_pwrbit_data(adapter, precv_frame);
- ret= _FAIL;
- goto exit;
- }
-
- process_wmmps_data(adapter, precv_frame);
-
- /*
- if(GetFrameSubType(ptr)&(BIT(4)|BIT(5)|BIT(6)))
- {
- process_null_data(adapter, precv_frame);
- ret= _FAIL;
- goto exit;
- }
- */
- }
+ if ((GetFrameSubType(ptr) & WIFI_QOS_DATA_TYPE) == WIFI_QOS_DATA_TYPE) {
+ process_wmmps_data(adapter, precv_frame);
+ }
+ if (GetFrameSubType(ptr) & BIT(6)) {
+ /* No data, will not indicate to upper layer, temporily count it here */
+ count_rx_stats(adapter, precv_frame, *psta);
+ ret = RTW_RX_HANDLED;
+ goto exit;
+ }
+ }
+ else {
+ u8 *myhwaddr = myid(&adapter->eeprompriv);
+ if (!_rtw_memcmp(pattrib->ra, myhwaddr, ETH_ALEN)) {
+ ret = RTW_RX_HANDLED;
+ goto exit;
+ }
+ DBG_871X("issue_deauth to sta=" MAC_FMT " for the reason(7)\n", MAC_ARG(pattrib->src));
+ issue_deauth(adapter, pattrib->src, WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA);
+ ret = RTW_RX_HANDLED;
+ goto exit;
}
exit:
@@ -2283,7 +1538,8 @@ _func_exit_;
}
-static sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv_frame)
+sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv_frame);
+sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv_frame)
{
#ifdef CONFIG_AP_MODE
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
@@ -2346,13 +1602,22 @@ static sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv
if(wmmps_ac)
return _FAIL;
+ if(psta->state & WIFI_STA_ALIVE_CHK_STATE)
+ {
+ DBG_871X("%s alive check-rx ps-poll\n", __func__);
+ psta->expire_to = pstapriv->expire_to;
+ psta->state ^= WIFI_STA_ALIVE_CHK_STATE;
+ }
+
if((psta->state&WIFI_SLEEP_STATE) && (pstapriv->sta_dz_bitmap&BIT(psta->aid)))
{
_irqL irqL;
_list *xmitframe_plist, *xmitframe_phead;
struct xmit_frame *pxmitframe=NULL;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- _enter_critical_bh(&psta->sleep_q.lock, &irqL);
+ //_enter_critical_bh(&psta->sleep_q.lock, &irqL);
+ _enter_critical_bh(&pxmitpriv->lock, &irqL);
xmitframe_phead = get_list_head(&psta->sleep_q);
xmitframe_plist = get_next(xmitframe_phead);
@@ -2376,10 +1641,15 @@ static sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv
//DBG_871X("handling ps-poll, q_len=%d, tim=%x\n", psta->sleepq_len, pstapriv->tim_bitmap);
- if(padapter->HalFunc.hal_xmit(padapter, pxmitframe) == _TRUE)
+#if 0
+ _exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ if(rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
{
rtw_os_xmit_complete(padapter, pxmitframe);
}
+ _enter_critical_bh(&psta->sleep_q.lock, &irqL);
+#endif
+ rtw_hal_xmitframe_enqueue(padapter, pxmitframe);
if(psta->sleepq_len==0)
{
@@ -2392,15 +1662,24 @@ static sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
}
+ //_exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
+
}
else
{
+ //_exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
+
//DBG_871X("no buffered packets to xmit\n");
if(pstapriv->tim_bitmap&BIT(psta->aid))
{
if(psta->sleepq_len==0)
{
DBG_871X("no buffered packets to xmit\n");
+
+ //issue nulldata with More data bit = 0 to indicate we have no buffered packets
+ issue_nulldata(padapter, psta->hwaddr, 0, 0, 0);
}
else
{
@@ -2415,9 +1694,7 @@ static sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
}
- }
-
- _exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ }
}
@@ -2429,37 +1706,58 @@ static sint validate_recv_ctrl_frame(_adapter *padapter, union recv_frame *precv
}
-static sint validate_recv_mgnt_frame(_adapter *adapter, union recv_frame *precv_frame)
+union recv_frame* recvframe_chk_defrag(PADAPTER padapter, union recv_frame *precv_frame);
+sint validate_recv_mgnt_frame(PADAPTER padapter, union recv_frame *precv_frame);
+sint validate_recv_mgnt_frame(PADAPTER padapter, union recv_frame *precv_frame)
{
- struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
+ //struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("+validate_recv_mgnt_frame\n"));
#if 0
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
-#ifdef CONFIG_NATIVEAP_MLME
- mgt_dispatcher(adapter, precv_frame);
+#ifdef CONFIG_NATIVEAP_MLME
+ mgt_dispatcher(padapter, precv_frame);
#else
- rtw_hostapd_mlme_rx(adapter, precv_frame);
-#endif
+ rtw_hostapd_mlme_rx(padapter, precv_frame);
+#endif
}
else
{
- mgt_dispatcher(adapter, precv_frame);
+ mgt_dispatcher(padapter, precv_frame);
}
#endif
+ precv_frame = recvframe_chk_defrag(padapter, precv_frame);
+ if (precv_frame == NULL) {
+ RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_,("%s: fragment packet\n",__FUNCTION__));
+ return _SUCCESS;
+ }
+
{
//for rx pkt statistics
- struct sta_info *psta = rtw_get_stainfo(&adapter->stapriv, GetAddr2Ptr(precv_frame->u.hdr.rx_data));
- if(psta)
+ struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(precv_frame->u.hdr.rx_data));
+ if (psta) {
psta->sta_stats.rx_mgnt_pkts++;
+ if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_BEACON)
+ psta->sta_stats.rx_beacon_pkts++;
+ else if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_PROBEREQ)
+ psta->sta_stats.rx_probereq_pkts++;
+ else if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_PROBERSP) {
+ if (_rtw_memcmp(padapter->eeprompriv.mac_addr, GetAddr1Ptr(precv_frame->u.hdr.rx_data), ETH_ALEN) == _TRUE)
+ psta->sta_stats.rx_probersp_pkts++;
+ else if (is_broadcast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data))
+ || is_multicast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)))
+ psta->sta_stats.rx_probersp_bm_pkts++;
+ else
+ psta->sta_stats.rx_probersp_uo_pkts++;
+ }
+ }
}
-
#ifdef CONFIG_INTEL_PROXIM
- if(adapter->proximity.proxim_on==_TRUE)
+ if(padapter->proximity.proxim_on==_TRUE)
{
struct rx_pkt_attrib * pattrib=&precv_frame->u.hdr.attrib;
struct recv_stat* prxstat=( struct recv_stat * ) precv_frame->u.hdr.rx_head ;
@@ -2505,32 +1803,28 @@ static sint validate_recv_mgnt_frame(_adapter *adapter, union recv_frame *precv_
pattrib->priority=0;
pattrib->hdrlen = pattrib->to_fr_ds==3 ? 30 : 24;
- adapter->proximity.proxim_rx(adapter,precv_frame);
+ padapter->proximity.proxim_rx(padapter,precv_frame);
}
#endif
- mgt_dispatcher(adapter, precv_frame);
-
+ mgt_dispatcher(padapter, precv_frame);
return _SUCCESS;
}
-
-static sint validate_recv_data_frame(_adapter *adapter, union recv_frame *precv_frame)
+sint validate_recv_data_frame(_adapter *adapter, union recv_frame *precv_frame);
+sint validate_recv_data_frame(_adapter *adapter, union recv_frame *precv_frame)
{
- int res;
u8 bretry;
u8 *psa, *pda, *pbssid;
struct sta_info *psta = NULL;
u8 *ptr = precv_frame->u.hdr.rx_data;
struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
- struct sta_priv *pstapriv = &adapter->stapriv;
struct security_priv *psecuritypriv = &adapter->securitypriv;
sint ret = _SUCCESS;
#ifdef CONFIG_TDLS
struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
- struct sta_info *ptdls_sta = NULL;
-#endif
+#endif //CONFIG_TDLS
_func_enter_;
@@ -2554,40 +1848,40 @@ _func_enter_;
case 0:
_rtw_memcpy(pattrib->ra, pda, ETH_ALEN);
_rtw_memcpy(pattrib->ta, psa, ETH_ALEN);
- res= sta2sta_data_frame(adapter, precv_frame, &psta);
+ ret = sta2sta_data_frame(adapter, precv_frame, &psta);
break;
case 1:
_rtw_memcpy(pattrib->ra, pda, ETH_ALEN);
_rtw_memcpy(pattrib->ta, pbssid, ETH_ALEN);
- res= ap2sta_data_frame(adapter, precv_frame, &psta);
+ ret = ap2sta_data_frame(adapter, precv_frame, &psta);
break;
case 2:
_rtw_memcpy(pattrib->ra, pbssid, ETH_ALEN);
_rtw_memcpy(pattrib->ta, psa, ETH_ALEN);
- res= sta2ap_data_frame(adapter, precv_frame, &psta);
+ ret = sta2ap_data_frame(adapter, precv_frame, &psta);
break;
case 3:
_rtw_memcpy(pattrib->ra, GetAddr1Ptr(ptr), ETH_ALEN);
_rtw_memcpy(pattrib->ta, GetAddr2Ptr(ptr), ETH_ALEN);
- res=_FAIL;
+ ret =_FAIL;
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" case 3\n"));
break;
default:
- res=_FAIL;
+ ret =_FAIL;
break;
}
- if(res==_FAIL){
- //RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,(" after to_fr_ds_chk; res = fail \n"));
+ if(ret ==_FAIL){
#ifdef DBG_RX_DROP_FRAME
- DBG_871X("DBG_RX_DROP_FRAME %s case:%d, res:%d\n", __FUNCTION__, pattrib->to_fr_ds, res);
+ DBG_871X("DBG_RX_DROP_FRAME %s case:%d, res:%d\n", __FUNCTION__, pattrib->to_fr_ds, ret);
#endif
- ret= res;
+ goto exit;
+ } else if (ret == RTW_RX_HANDLED) {
goto exit;
}
@@ -2604,11 +1898,12 @@ _func_enter_;
pattrib->amsdu=0;
+ pattrib->ack_policy = 0;
//parsing QC field
if(pattrib->qos == 1)
{
pattrib->priority = GetPriority((ptr + 24));
- pattrib->ack_policy =GetAckpolicy((ptr + 24));
+ pattrib->ack_policy = GetAckpolicy((ptr + 24));
pattrib->amsdu = GetAMsdu((ptr + 24));
pattrib->hdrlen = pattrib->to_fr_ds==3 ? 32 : 26;
@@ -2638,7 +1933,8 @@ _func_enter_;
ret= _FAIL;
goto exit;
}
-#ifdef CONFIG_TDLS
+
+#if 0
if(psta->tdls_sta_state & TDLS_LINKED_STATE )
{
if(psta->dot118021XPrivacy==_AES_)
@@ -2649,14 +1945,18 @@ _func_enter_;
if(pattrib->privacy){
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("validate_recv_data_frame:pattrib->privacy=%x\n", pattrib->privacy));
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n ^^^^^^^^^^^IS_MCAST(pattrib->ra(0x%02x))=%d^^^^^^^^^^^^^^^6\n", pattrib->ra[0],IS_MCAST(pattrib->ra)));
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n ^^^^^^^^^^^IS_MCAST(pattrib->ra(0x%02x))=%d^^^^^^^^^^^^^^^6\n", pattrib->ra[0],IS_MCAST(pattrib->ra)));
#ifdef CONFIG_TDLS
- if(ptdls_sta==NULL)
-#endif
- GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, IS_MCAST(pattrib->ra));
+ if((psta->tdls_sta_state & TDLS_LINKED_STATE) && (psta->dot118021XPrivacy==_AES_))
+ {
+ pattrib->encrypt=psta->dot118021XPrivacy;
+ }
+ else
+#endif //CONFIG_TDLS
+ GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, IS_MCAST(pattrib->ra));
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n pattrib->encrypt=%d\n",pattrib->encrypt));
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n pattrib->encrypt=%d\n",pattrib->encrypt));
SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt);
}
@@ -2665,15 +1965,137 @@ _func_enter_;
pattrib->encrypt = 0;
pattrib->iv_len = pattrib->icv_len = 0;
}
-
-exit:
-
-_func_exit_;
-
- return ret;
+
+exit:
+
+_func_exit_;
+
+ return ret;
+}
+
+#ifdef CONFIG_IEEE80211W
+static sint validate_80211w_mgmt(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
+ struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ u8 type;
+ u8 subtype;
+
+ type = GetFrameType(ptr);
+ subtype = GetFrameSubType(ptr); //bit(7)~bit(2)
+
+ //only support station mode
+ if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) && check_fwstate(pmlmepriv, _FW_LINKED)
+ && adapter->securitypriv.binstallBIPkey == _TRUE)
+ {
+ //unicast management frame decrypt
+ if(pattrib->privacy && !(IS_MCAST(GetAddr1Ptr(ptr))) &&
+ (subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC || subtype == WIFI_ACTION))
+ {
+ u8 *ppp, *mgmt_DATA;
+ u32 data_len=0;
+ ppp = GetAddr2Ptr(ptr);
+
+ pattrib->bdecrypted = 0;
+ pattrib->encrypt = _AES_;
+ pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+ //set iv and icv length
+ SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt);
+ _rtw_memcpy(pattrib->ra, GetAddr1Ptr(ptr), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, GetAddr2Ptr(ptr), ETH_ALEN);
+ //actual management data frame body
+ data_len = pattrib->pkt_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len;
+ mgmt_DATA = rtw_zmalloc(data_len);
+ if(mgmt_DATA == NULL)
+ {
+ DBG_871X("%s mgmt allocate fail !!!!!!!!!\n", __FUNCTION__);
+ goto validate_80211w_fail;
+ }
+ /*//dump the packet content before decrypt
+ {
+ int pp;
+ printk("pattrib->pktlen = %d =>", pattrib->pkt_len);
+ for(pp=0;pp< pattrib->pkt_len; pp++)
+ printk(" %02x ", ptr[pp]);
+ printk("\n");
+ }*/
+
+ precv_frame = decryptor(adapter, precv_frame);
+ //save actual management data frame body
+ _rtw_memcpy(mgmt_DATA, ptr+pattrib->hdrlen+pattrib->iv_len, data_len);
+ //overwrite the iv field
+ _rtw_memcpy(ptr+pattrib->hdrlen, mgmt_DATA, data_len);
+ //remove the iv and icv length
+ pattrib->pkt_len = pattrib->pkt_len - pattrib->iv_len - pattrib->icv_len;
+ rtw_mfree(mgmt_DATA, data_len);
+ /*//print packet content after decryption
+ {
+ int pp;
+ printk("after decryption pattrib->pktlen = %d @@=>", pattrib->pkt_len);
+ for(pp=0;pp< pattrib->pkt_len; pp++)
+ printk(" %02x ", ptr[pp]);
+ printk("\n");
+ }*/
+ if(!precv_frame)
+ {
+ DBG_871X("%s mgmt descrypt fail !!!!!!!!!\n", __FUNCTION__);
+ goto validate_80211w_fail;
+ }
+ }
+ else if(IS_MCAST(GetAddr1Ptr(ptr)) &&
+ (subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC))
+ {
+ sint BIP_ret = _SUCCESS;
+ //verify BIP MME IE of broadcast/multicast de-auth/disassoc packet
+ BIP_ret = rtw_BIP_verify(adapter, (u8 * )precv_frame);
+ if(BIP_ret == _FAIL)
+ {
+ //DBG_871X("802.11w BIP verify fail\n");
+ goto validate_80211w_fail;
+ }
+ else if(BIP_ret == RTW_RX_HANDLED)
+ {
+ //DBG_871X("802.11w recv none protected packet\n");
+ //issue sa query request
+ issue_action_SA_Query(adapter, NULL, 0, 0);
+ goto validate_80211w_fail;
+ }
+ }//802.11w protect
+ else
+ {
+ if(subtype == WIFI_ACTION)
+ {
+ //according 802.11-2012 standard, these five types are not robust types
+ if( ptr[WLAN_HDR_A3_LEN] != RTW_WLAN_CATEGORY_PUBLIC &&
+ ptr[WLAN_HDR_A3_LEN] != RTW_WLAN_CATEGORY_HT &&
+ ptr[WLAN_HDR_A3_LEN] != RTW_WLAN_CATEGORY_UNPROTECTED_WNM &&
+ ptr[WLAN_HDR_A3_LEN] != RTW_WLAN_CATEGORY_SELF_PROTECTED &&
+ ptr[WLAN_HDR_A3_LEN] != RTW_WLAN_CATEGORY_P2P)
+ {
+ DBG_871X("action frame category=%d should robust\n", ptr[WLAN_HDR_A3_LEN]);
+ goto validate_80211w_fail;
+ }
+ }
+ else if(subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC)
+ {
+ DBG_871X("802.11w recv none protected packet\n");
+ //issue sa query request
+ issue_action_SA_Query(adapter, NULL, 0, 0);
+ goto validate_80211w_fail;
+ }
+ }
+ }
+ return _SUCCESS;
+
+validate_80211w_fail:
+ return _FAIL;
+
}
+#endif //CONFIG_IEEE80211W
-static sint validate_recv_frame(_adapter *adapter, union recv_frame *precv_frame)
+sint validate_recv_frame(_adapter *adapter, union recv_frame *precv_frame);
+sint validate_recv_frame(_adapter *adapter, union recv_frame *precv_frame)
{
//shall check frame subtype, to / from ds, da, bssid
@@ -2700,7 +2122,9 @@ _func_enter_;
#ifdef CONFIG_FIND_BEST_CHANNEL
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) {
- pmlmeext->channel_set[pmlmeext->sitesurvey_res.channel_idx].rx_count++;
+ int ch_set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, rtw_get_oper_ch(adapter));
+ if (ch_set_idx >= 0)
+ pmlmeext->channel_set[ch_set_idx].rx_count++;
}
#endif
@@ -2708,19 +2132,22 @@ _func_enter_;
if(ptdlsinfo->ch_sensing==1 && ptdlsinfo->cur_channel !=0){
ptdlsinfo->collect_pkt_num[ptdlsinfo->cur_channel-1]++;
}
-#endif
+#endif //CONFIG_TDLS
-#if 0
-DBG_871X("\n");
-{
- int i;
- for(i=0; i<64;i=i+8)
- DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:", *(ptr+i),
- *(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7));
+#ifdef RTK_DMP_PLATFORM
+ if ( 0 )
+ {
+ DBG_871X("++\n");
+ {
+ int i;
+ for(i=0; i<64;i=i+8)
+ DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:", *(ptr+i),
+ *(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7));
-}
-DBG_871X("\n");
-#endif
+ }
+ DBG_871X("--\n");
+ }
+#endif //RTK_DMP_PLATFORM
//add version chk
if(ver!=0){
@@ -2780,6 +2207,14 @@ else if(pHalData->bDumpRxPkt ==3){
switch (type)
{
case WIFI_MGT_TYPE: //mgnt
+#ifdef CONFIG_IEEE80211W
+ if(validate_80211w_mgmt(adapter, precv_frame) == _FAIL)
+ {
+ retval = _FAIL;
+ break;
+ }
+#endif //CONFIG_IEEE80211W
+
retval = validate_recv_mgnt_frame(adapter, precv_frame);
if (retval == _FAIL)
{
@@ -2825,7 +2260,9 @@ _func_exit_;
//remove the wlanhdr and add the eth_hdr
#if 1
-static sint wlanhdr_to_ethhdr ( union recv_frame *precvframe)
+
+sint wlanhdr_to_ethhdr ( union recv_frame *precvframe);
+sint wlanhdr_to_ethhdr ( union recv_frame *precvframe)
{
sint rmv_len;
u16 eth_type, len;
@@ -2868,6 +2305,10 @@ _func_enter_;
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n===pattrib->hdrlen: %x, pattrib->iv_len:%x ===\n\n", pattrib->hdrlen, pattrib->iv_len));
+ _rtw_memcpy(&eth_type, ptr+rmv_len, 2);
+ eth_type= ntohs((unsigned short )eth_type); //pattrib->ether_type
+ pattrib->eth_type = eth_type;
+
if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE))
{
ptr += rmv_len ;
@@ -3029,8 +2470,65 @@ _func_exit_;
}
#endif
+
+#ifdef CONFIG_SDIO_HCI
+#ifdef PLATFORM_LINUX
+static void recvframe_expand_pkt(
+ PADAPTER padapter,
+ union recv_frame *prframe)
+{
+ struct recv_frame_hdr *pfhdr;
+ _pkt *ppkt;
+ u8 shift_sz;
+ u32 alloc_sz;
+
+
+ pfhdr = &prframe->u.hdr;
+
+ // 6 is for IP header 8 bytes alignment in QoS packet case.
+ if (pfhdr->attrib.qos)
+ shift_sz = 6;
+ else
+ shift_sz = 0;
+
+ // for first fragment packet, need to allocate
+ // (1536 + RXDESC_SIZE + drvinfo_sz) to reassemble packet
+ // 8 is for skb->data 8 bytes alignment.
+// alloc_sz = _RND(1536 + RXDESC_SIZE + pfhdr->attrib.drvinfosize + shift_sz + 8, 128);
+ alloc_sz = 1664; // round (1536 + 24 + 32 + shift_sz + 8) to 128 bytes alignment
+
+ //3 1. alloc new skb
+ // prepare extra space for 4 bytes alignment
+ ppkt = rtw_skb_alloc(alloc_sz);
+
+ if (!ppkt) return; // no way to expand
+
+ //3 2. Prepare new skb to replace & release old skb
+ // force ppkt->data at 8-byte alignment address
+ skb_reserve(ppkt, 8 - ((SIZE_PTR)ppkt->data & 7));
+ // force ip_hdr at 8-byte alignment address according to shift_sz
+ skb_reserve(ppkt, shift_sz);
+
+ // copy data to new pkt
+ _rtw_memcpy(skb_put(ppkt, pfhdr->len), pfhdr->rx_data, pfhdr->len);
+
+ rtw_skb_free(pfhdr->pkt);
+
+ // attach new pkt to recvframe
+ pfhdr->pkt = ppkt;
+ pfhdr->rx_head = ppkt->head;
+ pfhdr->rx_data = ppkt->data;
+ pfhdr->rx_tail = skb_tail_pointer(ppkt);
+ pfhdr->rx_end = skb_end_pointer(ppkt);
+}
+#else
+#warning "recvframe_expand_pkt not implement, defrag may crash system"
+#endif
+#endif
+
//perform defrag
-static union recv_frame * recvframe_defrag(_adapter *adapter,_queue *defrag_q)
+union recv_frame * recvframe_defrag(_adapter *adapter,_queue *defrag_q);
+union recv_frame * recvframe_defrag(_adapter *adapter,_queue *defrag_q)
{
_list *plist, *phead;
u8 *data,wlanhdr_offset;
@@ -3060,6 +2558,10 @@ _func_enter_;
return NULL;
}
+#ifdef CONFIG_SDIO_HCI
+ recvframe_expand_pkt(adapter, prframe);
+#endif
+
curfragnum++;
plist= get_list_head(defrag_q);
@@ -3117,38 +2619,44 @@ _func_exit_;
return prframe;
}
-
//check if need to defrag, if needed queue the frame to defrag_q
-static union recv_frame * recvframe_chk_defrag(_adapter *padapter,union recv_frame* precv_frame)
+union recv_frame* recvframe_chk_defrag(PADAPTER padapter, union recv_frame *precv_frame)
{
u8 ismfrag;
u8 fragnum;
u8 *psta_addr;
struct recv_frame_hdr *pfhdr;
- struct sta_info * psta;
- struct sta_priv *pstapriv ;
- _list *phead;
- union recv_frame* prtnframe=NULL;
+ struct sta_info *psta;
+ struct sta_priv *pstapriv;
+ _list *phead;
+ union recv_frame *prtnframe = NULL;
_queue *pfree_recv_queue, *pdefrag_q;
_func_enter_;
pstapriv = &padapter->stapriv;
- pfhdr=&precv_frame->u.hdr;
+ pfhdr = &precv_frame->u.hdr;
- pfree_recv_queue=&padapter->recvpriv.free_recv_queue;
+ pfree_recv_queue = &padapter->recvpriv.free_recv_queue;
//need to define struct of wlan header frame ctrl
- ismfrag= pfhdr->attrib.mfrag;
- fragnum=pfhdr->attrib.frag_num;
+ ismfrag = pfhdr->attrib.mfrag;
+ fragnum = pfhdr->attrib.frag_num;
- psta_addr=pfhdr->attrib.ta;
- psta=rtw_get_stainfo(pstapriv, psta_addr);
- if (psta==NULL)
- pdefrag_q = NULL;
+ psta_addr = pfhdr->attrib.ta;
+ psta = rtw_get_stainfo(pstapriv, psta_addr);
+ if (psta == NULL)
+ {
+ u8 type = GetFrameType(pfhdr->rx_data);
+ if (type != WIFI_DATA_TYPE) {
+ psta = rtw_get_bcmc_stainfo(padapter);
+ pdefrag_q = &psta->sta_recvpriv.defrag_q;
+ } else
+ pdefrag_q = NULL;
+ }
else
- pdefrag_q=&psta->sta_recvpriv.defrag_q;
+ pdefrag_q = &psta->sta_recvpriv.defrag_q;
if ((ismfrag==0) && (fragnum==0))
{
@@ -3239,20 +2747,28 @@ _func_exit_;
}
+#define ENDIAN_FREE 1
-static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
+int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe);
+int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
{
-#ifdef PLATFORM_LINUX //for amsdu TP improvement,Creator: Thomas
+#if defined (PLATFORM_LINUX) || defined (PLATFORM_FREEBSD) //for amsdu TP improvement,Creator: Thomas
int a_len, padding_len;
u16 eth_type, nSubframe_Length;
u8 nr_subframes, i;
- unsigned char *data_ptr, *pdata;
+ unsigned char *pdata;
struct rx_pkt_attrib *pattrib;
+#ifndef PLATFORM_FREEBSD
+ unsigned char *data_ptr;
_pkt *sub_skb,*subframes[MAX_SUBFRAME_COUNT];
+#endif //PLATFORM_FREEBSD
struct recv_priv *precvpriv = &padapter->recvpriv;
_queue *pfree_recv_queue = &(precvpriv->free_recv_queue);
int ret = _SUCCESS;
-
+#ifdef PLATFORM_FREEBSD
+ struct mbuf *sub_m=NULL, *subframes[MAX_SUBFRAME_COUNT];
+ u8 *ptr,offset;
+#endif //PLATFORM_FREEBSD
nr_subframes = 0;
pattrib = &prframe->u.hdr.attrib;
@@ -3271,26 +2787,29 @@ static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
while(a_len > ETH_HLEN) {
/* Offset 12 denote 2 mac address */
- //nSubframe_Length = *((u16*)(pdata + 12));
- //==m==>change the length order
- //nSubframe_Length = (nSubframe_Length>>8) + (nSubframe_Length<<8);
+#ifdef ENDIAN_FREE
//nSubframe_Length = ntohs(*((u16*)(pdata + 12)));
nSubframe_Length = RTW_GET_BE16(pdata + 12);
-
+#else // ENDIAN_FREE
+ nSubframe_Length = *((u16*)(pdata + 12));
+ //==m==>change the length order
+ nSubframe_Length = (nSubframe_Length>>8) + (nSubframe_Length<<8);
//ntohs(nSubframe_Length);
+#endif // ENDIAN_FREE
if( a_len < (ETHERNET_HEADER_SIZE + nSubframe_Length) ) {
- DBG_8192C("nRemain_Length is %d and nSubframe_Length is : %d\n",a_len,nSubframe_Length);
+ DBG_871X("nRemain_Length is %d and nSubframe_Length is : %d\n",a_len,nSubframe_Length);
goto exit;
}
+#ifndef PLATFORM_FREEBSD
/* move the data point to data content */
pdata += ETH_HLEN;
a_len -= ETH_HLEN;
/* Allocate new skb for releasing to upper layer */
#ifdef CONFIG_SKB_COPY
- sub_skb = dev_alloc_skb(nSubframe_Length + 12);
+ sub_skb = rtw_skb_alloc(nSubframe_Length + 12);
if(sub_skb)
{
skb_reserve(sub_skb, 12);
@@ -3298,26 +2817,43 @@ static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
_rtw_memcpy(data_ptr, pdata, nSubframe_Length);
}
else
- {
#endif // CONFIG_SKB_COPY
- sub_skb = skb_clone(prframe->u.hdr.pkt, GFP_ATOMIC);
+ {
+ sub_skb = rtw_skb_clone(prframe->u.hdr.pkt);
if(sub_skb)
{
sub_skb->data = pdata;
sub_skb->len = nSubframe_Length;
- sub_skb->tail = sub_skb->data + nSubframe_Length;
+ skb_set_tail_pointer(sub_skb, nSubframe_Length);
}
else
{
- DBG_8192C("skb_clone() Fail!!! , nr_subframes = %d\n",nr_subframes);
+ DBG_871X("rtw_skb_clone() Fail!!! , nr_subframes = %d\n",nr_subframes);
break;
}
}
+#else // PLATFORM_FREEBSD
+
+ //PLATFORM_FREEBSD
+ //Allocate a mbuff,
+ //sub_m =m_devget(pdata, nSubframe_Length+12, 12, padapter->pifp,NULL);
+ sub_m =m_devget(pdata, nSubframe_Length+ETH_HLEN, ETHER_ALIGN, padapter->pifp,NULL);
+
+ pdata += ETH_HLEN;
+ a_len -= ETH_HLEN;
+#endif // PLATFORM_FREEBSD
+
+#ifndef PLATFORM_FREEBSD
//sub_skb->dev = padapter->pnetdev;
subframes[nr_subframes++] = sub_skb;
+#else //PLATFORM_FREEBSD
+ //PLATFORM_FREEBSD
+ subframes[nr_subframes++] = sub_m;
+#endif //PLATFORM_FREEBSD
+
if(nr_subframes >= MAX_SUBFRAME_COUNT) {
- DBG_8192C("ParseSubframe(): Too many Subframes! Packets dropped!\n");
+ DBG_871X("ParseSubframe(): Too many Subframes! Packets dropped!\n");
break;
}
@@ -3338,11 +2874,15 @@ static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
}
for(i=0; i<nr_subframes; i++){
+#ifndef PLATFORM_FREEBSD
sub_skb = subframes[i];
/* convert hdr + possible LLC headers into Ethernet header */
- //eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7];
+#ifdef ENDIAN_FREE
//eth_type = ntohs(*(u16*)&sub_skb->data[6]);
eth_type = RTW_GET_BE16(&sub_skb->data[6]);
+#else // ENDIAN_FREE
+ eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7];
+#endif // ENDIAN_FREE
if (sub_skb->len >= 8 &&
((_rtw_memcmp(sub_skb->data, rtw_rfc1042_header, SNAP_SIZE) &&
eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
@@ -3378,7 +2918,7 @@ static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
#endif // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
- if( br_port && (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE) )
+ if( br_port && (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE) )
{
int nat25_handle_frame(_adapter *priv, struct sk_buff *skb);
if (nat25_handle_frame(padapter, sub_skb) == -1) {
@@ -3389,7 +2929,7 @@ static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
#if 1
// bypass this frame to upper layer!!
#else
- dev_kfree_skb_any(sub_skb);
+ rtw_skb_free(sub_skb);
continue;
#endif
}
@@ -3407,10 +2947,74 @@ static int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
}
#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */
sub_skb->ip_summed = CHECKSUM_NONE;
-#endif
+#endif //CONFIG_TCP_CSUM_OFFLOAD_RX
+
+ rtw_netif_rx(padapter->pnetdev, sub_skb);
+ }
+#else //PLATFORM_FREEBSD
- netif_rx(sub_skb);
+ //PLATFORM_FREEBSD
+ sub_m = subframes[i];
+ ptr=mtod(sub_m, u8 *);
+ offset=ETH_HLEN;
+ /* convert hdr + possible LLC headers into Ethernet header */
+#ifdef ENDIAN_FREE
+ eth_type = ntohs(*(u16*)&ptr[offset+6]);
+#else // ENDIAN_FREE
+ eth_type = ( ptr[offset+6] << 8) | ptr[offset+7];
+#endif // ENDIAN_FREE
+ if (sub_m->m_pkthdr.len >= ETH_HLEN+8 &&
+ ((_rtw_memcmp(ptr+ETH_HLEN, rtw_rfc1042_header, SNAP_SIZE) &&
+ eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
+ _rtw_memcmp(ptr+ETH_HLEN, rtw_bridge_tunnel_header, SNAP_SIZE) )) {
+ /* remove RFC1042 or Bridge-Tunnel encapsulation and replace EtherType */
+ offset+=SNAP_SIZE;
+ _rtw_memcpy(&ptr[offset-ETH_ALEN], pattrib->src, ETH_ALEN);
+ offset-=ETH_ALEN;
+ _rtw_memcpy(&ptr[offset-ETH_ALEN], pattrib->dst, ETH_ALEN);
+ offset-=ETH_ALEN;
+ } else {
+ u16 len;
+ /* Leave Ethernet header part of hdr and full payload */
+ len = htons(sub_m->m_pkthdr.len-offset);
+ _rtw_memcpy(&ptr[offset- 2], &len, 2);
+ offset-=2;
+ _rtw_memcpy(&ptr[offset-ETH_ALEN], pattrib->src, ETH_ALEN);
+ offset-=ETH_ALEN;
+ _rtw_memcpy(&ptr[offset-ETH_ALEN], pattrib->dst, ETH_ALEN);
+ offset-=ETH_ALEN;
}
+
+ m_adj(sub_m,offset);
+
+ /* Indicat the packets to upper layer */
+ if (sub_m) {
+
+#if 0
+#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
+ if ( (pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1) ) {
+ sub_skb->ip_summed = CHECKSUM_UNNECESSARY;
+ } else {
+ sub_skb->ip_summed = CHECKSUM_NONE;
+ }
+#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */
+ sub_skb->ip_summed = CHECKSUM_NONE;
+#endif //CONFIG_TCP_CSUM_OFFLOAD_RX
+#endif //0
+
+ if ( ((u32)(mtod(sub_m, caddr_t) + 14) % 4) != 0)
+ printf("%s()-%d: mtod(sub_m) = %p\n", __FUNCTION__, __LINE__, mtod(sub_m, caddr_t));
+#ifdef CONFIG_RX_INDICATE_QUEUE
+ IF_ENQUEUE(&precvpriv->rx_indicate_queue, sub_m);
+ if (_IF_QLEN(&precvpriv->rx_indicate_queue) <= 1) {
+ taskqueue_enqueue(taskqueue_thread, &precvpriv->rx_indicate_tasklet);
+ }
+#else // CONFIG_RX_INDICATE_QUEUE
+ (*padapter->pifp->if_input)(padapter->pifp, sub_m);
+#endif // CONFIG_RX_INDICATE_QUEUE
+ }
+
+#endif //PLATFORM_FREEBSD
}
exit:
@@ -3419,8 +3023,10 @@ exit:
rtw_free_recvframe(prframe, pfree_recv_queue);//free this recv_frame
return ret;
-#else
+#else // || defined (PLATFORM_LINUX) || defined (PLATFORM_FREEBSD)
+#ifdef PLATFORM_WINDOWS
_irqL irql;
+#endif //PLATFORM_WINDOWS
unsigned char *ptr, *pdata, *pbuf, *psnap_type;
union recv_frame *pnrframe, *pnrframe_new;
int a_len, mv_len, padding_len;
@@ -3433,7 +3039,7 @@ exit:
int ret = _SUCCESS;
#ifdef PLATFORM_WINDOWS
struct recv_buf *precvbuf = prframe->u.hdr.precvbuf;
-#endif
+#endif //PLATFORM_WINDOWS
a_len = prframe->u.hdr.len - prframe->u.hdr.attrib.hdrlen;
recvframe_pull(prframe, prframe->u.hdr.attrib.hdrlen);
@@ -3557,7 +3163,7 @@ exit:
NDIS_PER_PACKET_INFO_FROM_PACKET(pnrframe->u.hdr.pkt, Ieee8021QInfo) = VlanPriInfo.Value;
}
-#endif
+#endif //PLATFORM_OS_XP
pbuf = recvframe_pull(pnrframe, (mv_len-sizeof(struct ethhdr)));
@@ -3584,14 +3190,11 @@ exit:
_rtw_init_listhead(&pnrframe_new->u.hdr.list);
- #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- pskb_copy = dev_alloc_skb(copy_len+64);
- #else
- pskb_copy = netdev_alloc_skb(padapter->pnetdev, copy_len + 64);
- #endif
+ pskb_copy = rtw_skb_alloc(copy_len+64);
+
if(pskb_copy==NULL)
{
- DBG_8192C("amsdu_to_msdu:can not all(ocate memory for skb copy\n");
+ DBG_871X("amsdu_to_msdu:can not all(ocate memory for skb copy\n");
}
pnrframe_new->u.hdr.pkt = pskb_copy;
@@ -3614,7 +3217,7 @@ exit:
}
else
{
- DBG_8192C("amsdu_to_msdu:can not allocate memory for pnrframe_new\n");
+ DBG_871X("amsdu_to_msdu:can not allocate memory for pnrframe_new\n");
}
}
@@ -3633,7 +3236,7 @@ exit:
}
-#else
+#else // 0
//padding_len = (4) - ((type_len + ETH_HLEN)&(4-1));
@@ -3653,7 +3256,9 @@ exit:
//pnrframe_new->u.hdr.precvbuf = precvbuf;//precvbuf is assigned before call rtw_init_recvframe()
//rtw_init_recvframe(pnrframe_new, precvpriv);
{
+#ifdef PLATFORM_LINUX
_pkt *pskb = pnrframe->u.hdr.pkt;
+#endif //PLATFORM_LINUX
_rtw_init_listhead(&pnrframe_new->u.hdr.list);
pnrframe_new->u.hdr.len=0;
@@ -3661,9 +3266,9 @@ exit:
#ifdef PLATFORM_LINUX
if(pskb)
{
- pnrframe_new->u.hdr.pkt = skb_clone(pskb, GFP_ATOMIC);
+ pnrframe_new->u.hdr.pkt = rtw_skb_clone(pskb);
}
-#endif
+#endif //PLATFORM_LINUX
}
@@ -3676,7 +3281,7 @@ exit:
_enter_critical_bh(&precvbuf->recvbuf_lock, &irql);
precvbuf->ref_cnt++;
_exit_critical_bh(&precvbuf->recvbuf_lock, &irql);
-#endif
+#endif //PLATFORM_WINDOWS
}
else
@@ -3703,7 +3308,7 @@ exit:
}
-#endif
+#endif // end defined (PLATFORM_LINUX) || defined (PLATFORM_FREEBSD)
}while(pnrframe);
@@ -3713,8 +3318,8 @@ exit:
#endif
}
-
-static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num)
+int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num);
+int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num)
{
u8 wsize = preorder_ctrl->wsize_b;
u16 wend = (preorder_ctrl->indicate_seq + wsize -1) & 0xFFF;//% 4096;
@@ -3740,7 +3345,7 @@ static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_n
//DbgPrint("CheckRxTsIndicateSeq(): Packet Drop! IndicateSeq: %d, NewSeq: %d\n", precvpriv->indicate_seq, seq_num);
#ifdef DBG_RX_DROP_FRAME
- DBG_871X("DBG_RX_DROP_FRAME %s IndicateSeq: %d, NewSeq: %d\n", __FUNCTION__,
+ DBG_871X("%s IndicateSeq: %d > NewSeq: %d\n", __FUNCTION__,
preorder_ctrl->indicate_seq, seq_num);
#endif
@@ -3783,8 +3388,8 @@ static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_n
return _TRUE;
}
-
-static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union recv_frame *prframe)
+int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union recv_frame *prframe);
+int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union recv_frame *prframe)
{
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
_queue *ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue;
@@ -3845,10 +3450,10 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, un
}
-
-static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ctrl *preorder_ctrl, int bforced)
+int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ctrl *preorder_ctrl, int bforced);
+int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ctrl *preorder_ctrl, int bforced)
{
- _irqL irql;
+ //_irqL irql;
//u8 bcancelled;
_list *phead, *plist;
union recv_frame *prframe;
@@ -3894,7 +3499,7 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
// Prepare indication list and indication.
// Check if there is any packet need indicate.
while(!rtw_is_list_empty(phead))
- {
+ {
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
pattrib = &prframe->u.hdr.attrib;
@@ -3935,7 +3540,7 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
//PlatformCancelTimer(Adapter, &pTS->RxPktPendingTimer);
if(bforced!=_TRUE)
{
- //DBG_8192C("_cancel_timer(&preorder_ctrl->reordering_ctrl_timer, &bcancelled);\n");
+ //DBG_871X("_cancel_timer(&preorder_ctrl->reordering_ctrl_timer, &bcancelled);\n");
_cancel_timer(&preorder_ctrl->reordering_ctrl_timer, &bcancelled);
}
}
@@ -3952,14 +3557,14 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
//DbgPrint("recv_indicatepkts_in_order, indicate_seq=%d, seq_num=%d\n", precvpriv->indicate_seq, pattrib->seq_num);
if(!pattrib->amsdu)
{
- //DBG_8192C("recv_indicatepkts_in_order, amsdu!=1, indicate_seq=%d, seq_num=%d\n", preorder_ctrl->indicate_seq, pattrib->seq_num);
+ //DBG_871X("recv_indicatepkts_in_order, amsdu!=1, indicate_seq=%d, seq_num=%d\n", preorder_ctrl->indicate_seq, pattrib->seq_num);
if ((padapter->bDriverStopped == _FALSE) &&
(padapter->bSurpriseRemoved == _FALSE))
- {
-
- rtw_recv_indicatepkt(padapter, prframe); //indicate this recv_frame
+ {
+ rtw_recv_indicatepkt(padapter, prframe);//indicate this recv_frame
+
}
}
else if(pattrib->amsdu==1)
@@ -3999,7 +3604,7 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
// Set new pending timer.
//pTS->RxIndicateState = RXTS_INDICATE_REORDER;
//PlatformSetTimer(Adapter, &pTS->RxPktPendingTimer, pHTInfo->RxReorderPendingTime);
- //DBG_8192C("_set_timer(&preorder_ctrl->reordering_ctrl_timer, REORDER_WAIT_TIME)\n");
+ //DBG_871X("_set_timer(&preorder_ctrl->reordering_ctrl_timer, REORDER_WAIT_TIME)\n");
_set_timer(&preorder_ctrl->reordering_ctrl_timer, REORDER_WAIT_TIME);
}
else
@@ -4014,12 +3619,11 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
}
-
-static int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prframe)
+int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prframe);
+int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prframe)
{
_irqL irql;
int retval = _SUCCESS;
- struct recv_priv *precvpriv = &padapter->recvpriv;
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
struct recv_reorder_ctrl *preorder_ctrl = prframe->u.hdr.preorder_ctrl;
_queue *ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue;
@@ -4029,7 +3633,9 @@ static int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prfram
//s1.
wlanhdr_to_ethhdr(prframe);
- if(pattrib->qos !=1 /*|| pattrib->priority!=0 || IS_MCAST(pattrib->ra)*/)
+ //if ((pattrib->qos!=1) /*|| pattrib->priority!=0 || IS_MCAST(pattrib->ra)*/
+ // || (pattrib->eth_type==0x0806) || (pattrib->ack_policy!=0))
+ if (pattrib->qos!=1)
{
if ((padapter->bDriverStopped == _FALSE) &&
(padapter->bSurpriseRemoved == _FALSE))
@@ -4126,7 +3732,15 @@ static int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prfram
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s check_indicate_seq fail\n", __FUNCTION__);
#endif
+#if 0
+ rtw_recv_indicatepkt(padapter, prframe);
+
+ _exit_critical_bh(&ppending_recvframe_queue->lock, &irql);
+
+ goto _success_exit;
+#else
goto _err_exit;
+#endif
}
@@ -4166,6 +3780,8 @@ static int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prfram
}
+_success_exit:
+
return _SUCCESS;
_err_exit:
@@ -4189,7 +3805,7 @@ void rtw_reordering_ctrl_timeout_handler(void *pcontext)
return;
}
- //DBG_8192C("+rtw_reordering_ctrl_timeout_handler()=>\n");
+ //DBG_871X("+rtw_reordering_ctrl_timeout_handler()=>\n");
_enter_critical_bh(&ppending_recvframe_queue->lock, &irql);
@@ -4202,19 +3818,29 @@ void rtw_reordering_ctrl_timeout_handler(void *pcontext)
}
-
-static int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prframe)
+int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prframe);
+int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prframe)
{
int retval = _SUCCESS;
- struct recv_priv *precvpriv = &padapter->recvpriv;
- struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
+ //struct recv_priv *precvpriv = &padapter->recvpriv;
+ //struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+#ifdef CONFIG_TDLS
+ struct sta_info *psta = prframe->u.hdr.psta;
+#endif //CONFIG_TDLS
#ifdef CONFIG_80211N_HT
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
- if(phtpriv->ht_option==_TRUE) //B/G/N Mode
+#ifdef CONFIG_TDLS
+ if( (phtpriv->ht_option==_TRUE) ||
+ ((psta->tdls_sta_state & TDLS_LINKED_STATE) &&
+ (psta->htpriv.ht_option==_TRUE) &&
+ (psta->htpriv.ampdu_enable==_TRUE))) //B/G/N Mode
+#else
+ if(phtpriv->ht_option==_TRUE) //B/G/N Mode
+#endif //CONFIG_TDLS
{
//prframe->u.hdr.preorder_ctrl = &precvpriv->recvreorder_ctrl[pattrib->priority];
@@ -4267,24 +3893,17 @@ static int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prfra
return retval;
}
-
-static int recv_func(_adapter *padapter, void *pcontext)
+int recv_func_prehandle(_adapter *padapter, union recv_frame *rframe)
{
- struct rx_pkt_attrib *pattrib;
- union recv_frame *prframe, *orig_prframe;
- int retval = _SUCCESS;
- _queue *pfree_recv_queue = &padapter->recvpriv.free_recv_queue;
+ int ret = _SUCCESS;
+ struct rx_pkt_attrib *pattrib = &rframe->u.hdr.attrib;
struct recv_priv *precvpriv = &padapter->recvpriv;
+ _queue *pfree_recv_queue = &padapter->recvpriv.free_recv_queue;
+
+#ifdef CONFIG_MP_INCLUDED
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
-#ifdef CONFIG_TDLS
- u8 *psnap_type, *pcategory;
-#endif
-
- prframe = (union recv_frame *)pcontext;
- orig_prframe = prframe;
-
- pattrib = &prframe->u.hdr.attrib;
+#endif //CONFIG_MP_INCLUDED
#ifdef CONFIG_MP_INCLUDED
if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE))//&&(padapter->mppriv.check_mp_pkt == 0))
@@ -4296,21 +3915,44 @@ static int recv_func(_adapter *padapter, void *pcontext)
if (check_fwstate(pmlmepriv, WIFI_MP_LPBK_STATE) == _FALSE) {
RT_TRACE(_module_rtl871x_recv_c_, _drv_alert_, ("MP - Not in loopback mode , drop pkt \n"));
- retval = _FAIL;
- rtw_free_recvframe(orig_prframe, pfree_recv_queue);//free this recv_frame
- goto _exit_recv_func;
+ ret = _FAIL;
+ rtw_free_recvframe(rframe, pfree_recv_queue);//free this recv_frame
+ goto exit;
}
}
#endif
//check the frame crtl field and decache
- retval = validate_recv_frame(padapter, prframe);
- if (retval != _SUCCESS)
+ ret = validate_recv_frame(padapter, rframe);
+ if (ret != _SUCCESS)
{
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("recv_func: validate_recv_frame fail! drop pkt\n"));
- rtw_free_recvframe(orig_prframe, pfree_recv_queue);//free this recv_frame
- goto _exit_recv_func;
+ rtw_free_recvframe(rframe, pfree_recv_queue);//free this recv_frame
+ goto exit;
}
+
+exit:
+ return ret;
+}
+
+int recv_func_posthandle(_adapter *padapter, union recv_frame *prframe)
+{
+ int ret = _SUCCESS;
+ union recv_frame *orig_prframe = prframe;
+ struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
+ struct recv_priv *precvpriv = &padapter->recvpriv;
+ _queue *pfree_recv_queue = &padapter->recvpriv.free_recv_queue;
+
+#ifdef CONFIG_MP_INCLUDED
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+#endif //CONFIG_MP_INCLUDED
+
+#ifdef CONFIG_TDLS
+ u8 *psnap_type, *pcategory;
+ struct sta_info *ptdls_sta = NULL;
+#endif //CONFIG_TDLS
+
+
// DATA FRAME
rtw_led_control(padapter, LED_CTL_RX);
@@ -4320,22 +3962,38 @@ static int recv_func(_adapter *padapter, void *pcontext)
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s decryptor: drop pkt\n", __FUNCTION__);
#endif
- retval = _FAIL;
+ ret = _FAIL;
goto _recv_data_drop;
}
+#if 0
+ if ( padapter->adapter_type == PRIMARY_ADAPTER )
+ {
+ DBG_871X("+++\n");
+ {
+ int i;
+ u8 *ptr = get_recvframe_data(prframe);
+ for(i=0; i<140;i=i+8)
+ DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:", *(ptr+i),
+ *(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7));
+
+ }
+ DBG_871X("---\n");
+ }
+#endif //RTK_DMP_PLATFORM
+
#ifdef CONFIG_TDLS
//check TDLS frame
psnap_type = get_recvframe_data(orig_prframe);
psnap_type+=pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE;
- //[+2]: ether_type, [+1]: payload type
- pcategory = psnap_type+2+1;
+ pcategory = psnap_type + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
- if((_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_TDLS, 2))&&((*pcategory==0x0c))){
- retval = OnTDLS(padapter, prframe); //all of functions will return _FAIL
- goto _recv_data_drop;
+ if((_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_TDLS, ETH_TYPE_LEN)) &&
+ ((*pcategory==RTW_WLAN_CATEGORY_TDLS) || (*pcategory==RTW_WLAN_CATEGORY_P2P))){
+ ret = OnTDLS(padapter, prframe); //all of functions will return _FAIL
+ goto _exit_recv_func;
}
-#endif
+#endif //CONFIG_TDLS
prframe = recvframe_chk_defrag(padapter, prframe);
if(prframe==NULL) {
@@ -4352,16 +4010,22 @@ static int recv_func(_adapter *padapter, void *pcontext)
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s portctrl: drop pkt\n", __FUNCTION__);
#endif
- retval = _FAIL;
+ ret = _FAIL;
goto _recv_data_drop;
}
+#ifdef CONFIG_TDLS
+ if(padapter->tdlsinfo.setup_state == TDLS_LINKED_STATE)
+ ptdls_sta = rtw_get_stainfo(&padapter->stapriv, pattrib->src);
+ count_rx_stats(padapter, prframe, ptdls_sta);
+#else
count_rx_stats(padapter, prframe, NULL);
+#endif //CONFIG_TDLS
#ifdef CONFIG_80211N_HT
- retval = process_recv_indicatepkts(padapter, prframe);
- if (retval != _SUCCESS)
+ ret = process_recv_indicatepkts(padapter, prframe);
+ if (ret != _SUCCESS)
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recv_func: process_recv_indicatepkts fail! \n"));
#ifdef DBG_RX_DROP_FRAME
@@ -4371,12 +4035,12 @@ static int recv_func(_adapter *padapter, void *pcontext)
goto _recv_data_drop;
}
-#else
+#else // CONFIG_80211N_HT
if (!pattrib->amsdu)
{
- retval = wlanhdr_to_ethhdr (prframe);
- if (retval != _SUCCESS)
+ ret = wlanhdr_to_ethhdr (prframe);
+ if (ret != _SUCCESS)
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("wlanhdr_to_ethhdr: drop pkt \n"));
#ifdef DBG_RX_DROP_FRAME
@@ -4390,8 +4054,8 @@ static int recv_func(_adapter *padapter, void *pcontext)
{
RT_TRACE(_module_rtl871x_recv_c_, _drv_alert_, ("@@@@ recv_func: recv_func rtw_recv_indicatepkt\n" ));
//indicate this recv_frame
- retval = rtw_recv_indicatepkt(padapter, prframe);
- if (retval != _SUCCESS)
+ ret = rtw_recv_indicatepkt(padapter, prframe);
+ if (ret != _SUCCESS)
{
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s rtw_recv_indicatepkt fail!\n", __FUNCTION__);
@@ -4407,7 +4071,7 @@ static int recv_func(_adapter *padapter, void *pcontext)
DBG_871X("DBG_RX_DROP_FRAME %s ecv_func:bDriverStopped(%d) OR bSurpriseRemoved(%d)\n", __FUNCTION__,
padapter->bDriverStopped, padapter->bSurpriseRemoved);
#endif
- retval = _FAIL;
+ ret = _FAIL;
rtw_free_recvframe(orig_prframe, pfree_recv_queue); //free this recv_frame
}
@@ -4415,8 +4079,8 @@ static int recv_func(_adapter *padapter, void *pcontext)
else if(pattrib->amsdu==1)
{
- retval = amsdu_to_msdu(padapter, prframe);
- if(retval != _SUCCESS)
+ ret = amsdu_to_msdu(padapter, prframe);
+ if(ret != _SUCCESS)
{
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s amsdu_to_msdu fail\n", __FUNCTION__);
@@ -4430,14 +4094,60 @@ static int recv_func(_adapter *padapter, void *pcontext)
#ifdef DBG_RX_DROP_FRAME
DBG_871X("DBG_RX_DROP_FRAME %s what is this condition??\n", __FUNCTION__);
#endif
+ goto _recv_data_drop;
}
-#endif
+#endif // CONFIG_80211N_HT
+
+_exit_recv_func:
+ return ret;
+
_recv_data_drop:
precvpriv->rx_drop++;
+ return ret;
+}
-_exit_recv_func:
- return retval;
+int recv_func(_adapter *padapter, union recv_frame *rframe);
+int recv_func(_adapter *padapter, union recv_frame *rframe)
+{
+ int ret;
+ struct rx_pkt_attrib *prxattrib = &rframe->u.hdr.attrib;
+ struct recv_priv *recvpriv = &padapter->recvpriv;
+ struct security_priv *psecuritypriv=&padapter->securitypriv;
+ struct mlme_priv *mlmepriv = &padapter->mlmepriv;
+
+ /* check if need to handle uc_swdec_pending_queue*/
+ if (check_fwstate(mlmepriv, WIFI_STATION_STATE) && psecuritypriv->busetkipkey)
+ {
+ union recv_frame *pending_frame;
+ _irqL irqL;
+
+ while((pending_frame=rtw_alloc_recvframe(&padapter->recvpriv.uc_swdec_pending_queue))) {
+ if (recv_func_posthandle(padapter, pending_frame) == _SUCCESS)
+ DBG_871X("%s: dequeue uc_swdec_pending_queue\n", __func__);
+ }
+ }
+
+ ret = recv_func_prehandle(padapter, rframe);
+
+ if(ret == _SUCCESS) {
+
+ /* check if need to enqueue into uc_swdec_pending_queue*/
+ if (check_fwstate(mlmepriv, WIFI_STATION_STATE) &&
+ !IS_MCAST(prxattrib->ra) && prxattrib->encrypt>0 &&
+ (prxattrib->bdecrypted == 0 ||psecuritypriv->sw_decrypt == _TRUE) &&
+ !is_wep_enc(psecuritypriv->dot11PrivacyAlgrthm) &&
+ !psecuritypriv->busetkipkey) {
+ rtw_enqueue_recvframe(rframe, &padapter->recvpriv.uc_swdec_pending_queue);
+ DBG_871X("%s: no key, enqueue uc_swdec_pending_queue\n", __func__);
+ goto exit;
+ }
+
+ ret = recv_func_posthandle(padapter, rframe);
+ }
+
+exit:
+ return ret;
}
@@ -4445,59 +4155,23 @@ s32 rtw_recv_entry(union recv_frame *precvframe)
{
_adapter *padapter;
struct recv_priv *precvpriv;
- //struct mlme_priv *pmlmepriv ;
- //struct dvobj_priv *pdev;
- //u8 *phead, *pdata, *ptail,*pend;
-
- //_queue *pfree_recv_queue, *ppending_recv_queue;
- //u8 blk_mode = _FALSE;
s32 ret=_SUCCESS;
- //struct intf_hdl * pintfhdl;
_func_enter_;
// RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("+rtw_recv_entry\n"));
padapter = precvframe->u.hdr.adapter;
- //pintfhdl = &padapter->iopriv.intf;
- //pdev=&padapter->dvobjpriv;
- //pmlmepriv = &padapter->mlmepriv;
precvpriv = &padapter->recvpriv;
- //pfree_recv_queue = &precvpriv->free_recv_queue;
- //ppending_recv_queue = &precvpriv->recv_pending_queue;
-
- //phead = precvframe->u.hdr.rx_head;
- //pdata = precvframe->u.hdr.rx_data;
- //ptail = precvframe->u.hdr.rx_tail;
- //pend = precvframe->u.hdr.rx_end;
- //rtw_led_control(padapter, LED_CTL_RX);
-
-#ifdef CONFIG_SDIO_HCI
- if (precvpriv->free_recvframe_cnt <= 1)
- goto _recv_entry_drop;
-#endif
-#ifdef CONFIG_RECV_THREAD_MODE
- if (_rtw_queue_empty(ppending_recv_queue) == _TRUE)
- {
- //enqueue_recvframe_usb(precvframe, ppending_recv_queue);//enqueue to recv_pending_queue
- rtw_enqueue_recvframe(precvframe, ppending_recv_queue);
- _rtw_up_sema(&precvpriv->recv_sema);
- }
- else
- {
- //enqueue_recvframe_usb(precvframe, ppending_recv_queue);//enqueue to recv_pending_queue
- rtw_enqueue_recvframe(precvframe, ppending_recv_queue);
- }
-#else
if ((ret = recv_func(padapter, precvframe)) == _FAIL)
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("rtw_recv_entry: recv_func return fail!!!\n"));
goto _recv_entry_drop;
}
-#endif
+
precvpriv->rx_pkts++;
@@ -4507,9 +4181,6 @@ _func_exit_;
_recv_entry_drop:
-
- //precvpriv->rx_drop++;
-
#ifdef CONFIG_MP_INCLUDED
padapter->mppriv.rx_pktloss = precvpriv->rx_drop;
#endif
@@ -4541,53 +4212,74 @@ void rtw_signal_stat_timer_hdl(RTW_TIMER_HDL_ARGS){
if(recvpriv->signal_strength_data.update_req == 0) {// update_req is clear, means we got rx
avg_signal_strength = recvpriv->signal_strength_data.avg_val;
- avg_signal_qual = recvpriv->signal_qual_data.avg_val;
+ num_signal_strength = recvpriv->signal_strength_data.total_num;
+ // after avg_vals are accquired, we can re-stat the signal values
+ recvpriv->signal_strength_data.update_req = 1;
}
if(recvpriv->signal_qual_data.update_req == 0) {// update_req is clear, means we got rx
- num_signal_strength = recvpriv->signal_strength_data.total_num;
+ avg_signal_qual = recvpriv->signal_qual_data.avg_val;
num_signal_qual = recvpriv->signal_qual_data.total_num;
+ // after avg_vals are accquired, we can re-stat the signal values
+ recvpriv->signal_qual_data.update_req = 1;
}
-
- // after avg_vals are accquired, we can re-stat the signal values
- recvpriv->signal_strength_data.update_req = 1;
- recvpriv->signal_qual_data.update_req = 1;
- //update value of signal_strength, rssi, signal_qual
- if(check_fwstate(&adapter->mlmepriv, _FW_UNDER_SURVEY) == _FALSE) {
- tmp_s = (avg_signal_strength+(_alpha-1)*recvpriv->signal_strength);
- if(tmp_s %_alpha)
- tmp_s = tmp_s/_alpha + 1;
- else
- tmp_s = tmp_s/_alpha;
- if(tmp_s>100)
- tmp_s = 100;
+ if (num_signal_strength == 0) {
+ if (rtw_get_on_cur_ch_time(adapter) == 0
+ || rtw_get_passing_time_ms(rtw_get_on_cur_ch_time(adapter)) < 2 * adapter->mlmeextpriv.mlmext_info.bcn_interval
+ ) {
+ goto set_timer;
+ }
+ }
- tmp_q = (avg_signal_qual+(_alpha-1)*recvpriv->signal_qual);
- if(tmp_q %_alpha)
- tmp_q = tmp_q/_alpha + 1;
- else
- tmp_q = tmp_q/_alpha;
- if(tmp_q>100)
- tmp_q = 100;
-
- recvpriv->signal_strength = tmp_s;
- recvpriv->rssi = (s8)translate_percentage_to_dbm(tmp_s);
- recvpriv->signal_qual = tmp_q;
-
- #if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) && 1
- DBG_871X("%s signal_strength:%3u, rssi:%3d, signal_qual:%3u"
- ", num_signal_strength:%u, num_signal_qual:%u"
- "\n"
- , __FUNCTION__
- , recvpriv->signal_strength
- , recvpriv->rssi
- , recvpriv->signal_qual
- , num_signal_strength, num_signal_qual
- );
- #endif
+ if(check_fwstate(&adapter->mlmepriv, _FW_UNDER_SURVEY) == _TRUE
+ || check_fwstate(&adapter->mlmepriv, _FW_LINKED) == _FALSE
+ ) {
+ goto set_timer;
}
+
+ #ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(adapter, _FW_UNDER_SURVEY) == _TRUE)
+ goto set_timer;
+ #endif
+
+ //update value of signal_strength, rssi, signal_qual
+ tmp_s = (avg_signal_strength+(_alpha-1)*recvpriv->signal_strength);
+ if(tmp_s %_alpha)
+ tmp_s = tmp_s/_alpha + 1;
+ else
+ tmp_s = tmp_s/_alpha;
+ if(tmp_s>100)
+ tmp_s = 100;
+
+ tmp_q = (avg_signal_qual+(_alpha-1)*recvpriv->signal_qual);
+ if(tmp_q %_alpha)
+ tmp_q = tmp_q/_alpha + 1;
+ else
+ tmp_q = tmp_q/_alpha;
+ if(tmp_q>100)
+ tmp_q = 100;
+
+ recvpriv->signal_strength = tmp_s;
+ recvpriv->rssi = (s8)translate_percentage_to_dbm(tmp_s);
+ recvpriv->signal_qual = tmp_q;
+
+ #if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) && 1
+ DBG_871X(FUNC_ADPT_FMT" signal_strength:%3u, rssi:%3d, signal_qual:%3u"
+ ", num_signal_strength:%u, num_signal_qual:%u"
+ ", on_cur_ch_ms:%d"
+ "\n"
+ , FUNC_ADPT_ARG(adapter)
+ , recvpriv->signal_strength
+ , recvpriv->rssi
+ , recvpriv->signal_qual
+ , num_signal_strength, num_signal_qual
+ , rtw_get_on_cur_ch_time(adapter) ? rtw_get_passing_time_ms(rtw_get_on_cur_ch_time(adapter)) : 0
+ );
+ #endif
}
+
+set_timer:
rtw_set_signal_stat_timer(recvpriv);
}
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_rf.c b/drivers/net/wireless/rtl8192cu/core/rtw_rf.c
index 665c7e5..7ae8635 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_rf.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_rf.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_RF_C_
#include <drv_conf.h>
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_security.c b/drivers/net/wireless/rtl8192cu/core/rtw_security.c
index 58601b6..8fa8ed5 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_security.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_security.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_SECURITY_C_
#include <drv_conf.h>
@@ -206,7 +205,7 @@ _func_enter_;
length=pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len- pattrib->icv_len;
- *((unsigned long *)crc)=cpu_to_le32(getcrc32(payload,length));
+ *((u32 *)crc)=cpu_to_le32(getcrc32(payload,length));
arcfour_init(&mycontext, wepkey,3+keylength);
arcfour_encrypt(&mycontext, payload, payload, length);
@@ -216,7 +215,7 @@ _func_enter_;
else
{
length=pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len ;
- *((unsigned long *)crc)=cpu_to_le32(getcrc32(payload,length));
+ *((u32 *)crc)=cpu_to_le32(getcrc32(payload,length));
arcfour_init(&mycontext, wepkey,3+keylength);
arcfour_encrypt(&mycontext, payload, payload, length);
arcfour_encrypt(&mycontext, payload+length, crc, 4);
@@ -269,7 +268,7 @@ _func_enter_;
arcfour_encrypt(&mycontext, payload, payload, length);
//calculate icv and compare the icv
- *((unsigned long *)crc)=le32_to_cpu(getcrc32(payload,length-4));
+ *((u32 *)crc)=le32_to_cpu(getcrc32(payload,length-4));
if(crc[3]!=payload[length-1] || crc[2]!=payload[length-2] || crc[1]!=payload[length-3] || crc[0]!=payload[length-4])
{
@@ -681,10 +680,18 @@ _func_enter_;
}
else
{
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
stainfo=rtw_get_stainfo(&padapter->stapriv ,&pattrib->ra[0] );
}
if (stainfo!=NULL){
+
+ if(!(stainfo->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, stainfo->state);
+ return _FAIL;
+ }
+
RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("rtw_tkip_encrypt: stainfo!=NULL!!!\n"));
if(IS_MCAST(pattrib->ra))
@@ -738,6 +745,7 @@ _func_enter_;
}
else{
RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("rtw_tkip_encrypt: stainfo==NULL!!!\n"));
+ DBG_871X("%s, psta==NUL\n", __func__);
res=_FAIL;
}
@@ -776,20 +784,47 @@ _func_enter_;
if(prxattrib->encrypt==_TKIP_){
stainfo=rtw_get_stainfo(&padapter->stapriv ,&prxattrib->ta[0] );
-
-
if (stainfo!=NULL){
if(IS_MCAST(prxattrib->ra))
{
+ static u32 start = 0;
+ static u32 no_gkey_bc_cnt = 0;
+ static u32 no_gkey_mc_cnt = 0;
+
if(psecuritypriv->binstallGrpkey==_FALSE)
{
- res=_FAIL;
- DBG_8192C("%s:rx bc/mc packets,but didn't install group key!!!!!!!!!!\n",__FUNCTION__);
+ res=_FAIL;
+
+ if (start == 0)
+ start = rtw_get_current_time();
+
+ if (is_broadcast_mac_addr(prxattrib->ra))
+ no_gkey_bc_cnt++;
+ else
+ no_gkey_mc_cnt++;
+
+ if (rtw_get_passing_time_ms(start) > 1000) {
+ if (no_gkey_bc_cnt || no_gkey_mc_cnt) {
+ DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" no_gkey_bc_cnt:%u, no_gkey_mc_cnt:%u\n",
+ FUNC_ADPT_ARG(padapter), no_gkey_bc_cnt, no_gkey_mc_cnt);
+ }
+ start = rtw_get_current_time();
+ no_gkey_bc_cnt = 0;
+ no_gkey_mc_cnt = 0;
+ }
goto exit;
}
-
- DBG_871X("rx bc/mc packets, to perform sw rtw_tkip_decrypt\n");
+
+ if (no_gkey_bc_cnt || no_gkey_mc_cnt) {
+ DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" gkey installed. no_gkey_bc_cnt:%u, no_gkey_mc_cnt:%u\n",
+ FUNC_ADPT_ARG(padapter), no_gkey_bc_cnt, no_gkey_mc_cnt);
+ }
+ start = 0;
+ no_gkey_bc_cnt = 0;
+ no_gkey_mc_cnt = 0;
+
+ //DBG_871X("rx bc/mc packets, to perform sw rtw_tkip_decrypt\n");
//prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey;
prwskey = psecuritypriv->dot118021XGrpKey[prxattrib->key_index].skey;
prwskeylen=16;
@@ -898,11 +933,13 @@ static void construct_mic_iv(
sint a4_exists,
u8 *mpdu,
uint payload_length,
- u8 * pn_vector);
+ u8 * pn_vector,
+ uint frtype);// add for CONFIG_IEEE80211W, none 11w also can use
static void construct_mic_header1(
u8 *mic_header1,
sint header_length,
- u8 *mpdu);
+ u8 *mpdu,
+ uint frtype);// add for CONFIG_IEEE80211W, none 11w also can use
static void construct_mic_header2(
u8 *mic_header2,
u8 *mpdu,
@@ -914,7 +951,8 @@ static void construct_ctr_preload(
sint qc_exists,
u8 *mpdu,
u8 *pn_vector,
- sint c);
+ sint c,
+ uint frtype);// add for CONFIG_IEEE80211W, none 11w also can use
static void xor_128(u8 *a, u8 *b, u8 *out);
static void xor_32(u8 *a, u8 *b, u8 *out);
static u8 sbox(u8 a);
@@ -922,11 +960,13 @@ static void next_key(u8 *key, sint round);
static void byte_sub(u8 *in, u8 *out);
static void shift_row(u8 *in, u8 *out);
static void mix_column(u8 *in, u8 *out);
+#ifndef PLATFORM_FREEBSD
static void add_round_key( u8 *shiftrow_in,
u8 *mcol_in,
u8 *block_in,
sint round,
u8 *out);
+#endif //PLATFORM_FREEBSD
static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext);
@@ -1132,6 +1172,8 @@ _func_exit_;
/************************************************/
/* construct_mic_iv() */
/* Builds the MIC IV from header fields and PN */
+/* Baron think the function is construct CCM */
+/* nonce */
/************************************************/
static void construct_mic_iv(
u8 *mic_iv,
@@ -1139,7 +1181,8 @@ static void construct_mic_iv(
sint a4_exists,
u8 *mpdu,
uint payload_length,
- u8 *pn_vector
+ u8 *pn_vector,
+ uint frtype// add for CONFIG_IEEE80211W, none 11w also can use
)
{
sint i;
@@ -1148,6 +1191,11 @@ _func_enter_;
if (qc_exists && a4_exists) mic_iv[1] = mpdu[30] & 0x0f; /* QoS_TC */
if (qc_exists && !a4_exists) mic_iv[1] = mpdu[24] & 0x0f; /* mute bits 7-4 */
if (!qc_exists) mic_iv[1] = 0x00;
+#ifdef CONFIG_IEEE80211W
+ //802.11w management frame should set management bit(4)
+ if(frtype == WIFI_MGT_TYPE)
+ mic_iv[1] |= BIT(4);
+#endif //CONFIG_IEEE80211W
for (i = 2; i < 8; i++)
mic_iv[i] = mpdu[i + 8]; /* mic_iv[2:7] = A2[0:5] = mpdu[10:15] */
#ifdef CONSISTENT_PN_ORDER
@@ -1167,17 +1215,26 @@ _func_exit_;
/* construct_mic_header1() */
/* Builds the first MIC header block from */
/* header fields. */
+/* Build AAD SC,A1,A2 */
/************************************************/
static void construct_mic_header1(
u8 *mic_header1,
sint header_length,
- u8 *mpdu
+ u8 *mpdu,
+ uint frtype// add for CONFIG_IEEE80211W, none 11w also can use
)
{
_func_enter_;
mic_header1[0] = (u8)((header_length - 2) / 256);
mic_header1[1] = (u8)((header_length - 2) % 256);
- mic_header1[2] = mpdu[0] & 0xcf; /* Mute CF poll & CF ack bits */
+#ifdef CONFIG_IEEE80211W
+ //802.11w management frame don't AND subtype bits 4,5,6 of frame control field
+ if(frtype == WIFI_MGT_TYPE)
+ mic_header1[2] = mpdu[0];
+ else
+#endif //CONFIG_IEEE80211W
+ mic_header1[2] = mpdu[0] & 0xcf; /* Mute CF poll & CF ack bits */
+
mic_header1[3] = mpdu[1] & 0xc7; /* Mute retry, more data and pwr mgt bits */
mic_header1[4] = mpdu[4]; /* A1 */
mic_header1[5] = mpdu[5];
@@ -1251,6 +1308,8 @@ _func_exit_;
/* construct_mic_header2() */
/* Builds the last MIC header block from */
/* header fields. */
+/* Baron think the function is construct CCM */
+/* nonce */
/************************************************/
static void construct_ctr_preload(
u8 *ctr_preload,
@@ -1258,20 +1317,25 @@ static void construct_ctr_preload(
sint qc_exists,
u8 *mpdu,
u8 *pn_vector,
- sint c
+ sint c,
+ uint frtype // add for CONFIG_IEEE80211W, none 11w also can use
)
{
sint i = 0;
_func_enter_;
for (i=0; i<16; i++) ctr_preload[i] = 0x00;
i = 0;
-
+
ctr_preload[0] = 0x01; /* flag */
if (qc_exists && a4_exists)
ctr_preload[1] = mpdu[30] & 0x0f; /* QoC_Control */
if (qc_exists && !a4_exists)
ctr_preload[1] = mpdu[24] & 0x0f;
-
+#ifdef CONFIG_IEEE80211W
+ //802.11w management frame should set management bit(4)
+ if(frtype == WIFI_MGT_TYPE)
+ ctr_preload[1] |= BIT(4);
+#endif //CONFIG_IEEE80211W
for (i = 2; i < 8; i++)
ctr_preload[i] = mpdu[i + 8]; /* ctr_preload[2:7] = A2[0:5] = mpdu[10:15] */
#ifdef CONSISTENT_PN_ORDER
@@ -1343,9 +1407,9 @@ _func_enter_;
a4_exists = 1;
if (
- (frtype == WIFI_DATA_CFACK) ||
- (frtype == WIFI_DATA_CFPOLL)||
- (frtype == WIFI_DATA_CFACKPOLL))
+ ((frtype|frsubtype) == WIFI_DATA_CFACK) ||
+ ((frtype|frsubtype) == WIFI_DATA_CFPOLL)||
+ ((frtype|frsubtype) == WIFI_DATA_CFACKPOLL))
{
qc_exists = 1;
if(hdrlen != WLAN_HDR_A3_QOS_LEN){
@@ -1353,11 +1417,12 @@ _func_enter_;
hdrlen += 2;
}
}
- else if (
- (frsubtype == 0x08) ||
+ // add for CONFIG_IEEE80211W, none 11w also can use
+ else if ((frtype == WIFI_DATA) &&
+ ((frsubtype == 0x08) ||
(frsubtype == 0x09)||
(frsubtype == 0x0a)||
- (frsubtype == 0x0b))
+ (frsubtype == 0x0b)))
{
if(hdrlen != WLAN_HDR_A3_QOS_LEN){
@@ -1381,13 +1446,15 @@ _func_enter_;
a4_exists,
pframe, //message,
plen,
- pn_vector
+ pn_vector,
+ frtype // add for CONFIG_IEEE80211W, none 11w also can use
);
construct_mic_header1(
mic_header1,
hdrlen,
- pframe //message
+ pframe, //message
+ frtype // add for CONFIG_IEEE80211W, none 11w also can use
);
construct_mic_header2(
mic_header2,
@@ -1446,7 +1513,8 @@ _func_enter_;
qc_exists,
pframe, //message,
pn_vector,
- i+1);
+ i+1,
+ frtype); // add for CONFIG_IEEE80211W, none 11w also can use
aes128k128d(key, ctr_preload, aes_out);
bitwise_xor(aes_out, &pframe[payload_index], chain_buffer);//bitwise_xor(aes_out, &message[payload_index], chain_buffer);
for (j=0; j<16;j++) pframe[payload_index++] = chain_buffer[j];//for (j=0; j<16;j++) message[payload_index++] = chain_buffer[j];
@@ -1460,7 +1528,8 @@ _func_enter_;
qc_exists,
pframe, //message,
pn_vector,
- num_blocks+1);
+ num_blocks+1,
+ frtype); // add for CONFIG_IEEE80211W, none 11w also can use
for (j = 0; j < 16; j++) padded_buffer[j] = 0x00;
for (j = 0; j < payload_remainder; j++)
@@ -1479,7 +1548,8 @@ _func_enter_;
qc_exists,
pframe, //message,
pn_vector,
- 0);
+ 0,
+ frtype); // add for CONFIG_IEEE80211W, none 11w also can use
for (j = 0; j < 16; j++) padded_buffer[j] = 0x00;
for (j = 0; j < 8; j++)
@@ -1508,7 +1578,7 @@ u32 rtw_aes_encrypt(_adapter *padapter, u8 *pxmitframe)
sint curfragnum,length;
u32 prwskeylen;
u8 *pframe,*prwskey; //, *payload,*iv
- struct sta_info *stainfo;
+ struct sta_info *stainfo=NULL;
struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib;
struct security_priv *psecuritypriv=&padapter->securitypriv;
struct xmit_priv *pxmitpriv=&padapter->xmitpriv;
@@ -1536,10 +1606,18 @@ _func_enter_;
}
else
{
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
stainfo=rtw_get_stainfo(&padapter->stapriv ,&pattrib->ra[0] );
}
if (stainfo!=NULL){
+
+ if(!(stainfo->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, stainfo->state);
+ return _FAIL;
+ }
+
RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("rtw_aes_encrypt: stainfo!=NULL!!!\n"));
if(IS_MCAST(pattrib->ra))
@@ -1551,6 +1629,18 @@ _func_enter_;
prwskey=&stainfo->dot118021x_UncstKey.skey[0];
}
+#ifdef CONFIG_TDLS //swencryption
+ {
+ struct sta_info *ptdls_sta;
+ ptdls_sta=rtw_get_stainfo(&padapter->stapriv ,&pattrib->dst[0] );
+ if((ptdls_sta != NULL) && (ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE) )
+ {
+ DBG_871X("[%s] for tdls link\n", __FUNCTION__);
+ prwskey=&ptdls_sta->tpk.tk[0];
+ }
+ }
+#endif //CONFIG_TDLS
+
prwskeylen=16;
for(curfragnum=0;curfragnum<pattrib->nr_frags;curfragnum++){
@@ -1574,6 +1664,7 @@ _func_enter_;
}
else{
RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("rtw_aes_encrypt: stainfo==NULL!!!\n"));
+ DBG_871X("%s, psta==NUL\n", __func__);
res=_FAIL;
}
@@ -1591,7 +1682,6 @@ static sint aes_decipher(u8 *key, uint hdrlen,
static u8 message[MAX_MSG_SIZE];
uint qc_exists, a4_exists, i, j, payload_remainder,
num_blocks, payload_index;
-
sint res = _SUCCESS;
u8 pn_vector[6];
u8 mic_iv[16];
@@ -1623,7 +1713,7 @@ _func_enter_;
//start to decrypt the payload
- num_blocks = (plen-8) / 16; //(plen including llc, payload_length and mic )
+ num_blocks = (plen-8) / 16; //(plen including LLC, payload_length and mic )
payload_remainder = (plen-8) % 16;
@@ -1640,21 +1730,21 @@ _func_enter_;
a4_exists = 1;
if (
- (frtype == WIFI_DATA_CFACK) ||
- (frtype == WIFI_DATA_CFPOLL)||
- (frtype == WIFI_DATA_CFACKPOLL))
+ ((frtype|frsubtype) == WIFI_DATA_CFACK) ||
+ ((frtype|frsubtype) == WIFI_DATA_CFPOLL)||
+ ((frtype|frsubtype) == WIFI_DATA_CFACKPOLL))
{
qc_exists = 1;
if(hdrlen != WLAN_HDR_A3_QOS_LEN){
hdrlen += 2;
}
- }
- else if (
- (frsubtype == 0x08) ||
+ }//only for data packet . add for CONFIG_IEEE80211W, none 11w also can use
+ else if ((frtype == WIFI_DATA) &&
+ ((frsubtype == 0x08) ||
(frsubtype == 0x09)||
(frsubtype == 0x0a)||
- (frsubtype == 0x0b))
+ (frsubtype == 0x0b)))
{
if(hdrlen != WLAN_HDR_A3_QOS_LEN){
@@ -1678,7 +1768,8 @@ _func_enter_;
qc_exists,
pframe,
pn_vector,
- i+1
+ i+1,
+ frtype // add for CONFIG_IEEE80211W, none 11w also can use
);
aes128k128d(key, ctr_preload, aes_out);
@@ -1695,7 +1786,8 @@ _func_enter_;
qc_exists,
pframe,
pn_vector,
- num_blocks+1
+ num_blocks+1,
+ frtype // add for CONFIG_IEEE80211W, none 11w also can use
);
for (j = 0; j < 16; j++) padded_buffer[j] = 0x00;
@@ -1728,13 +1820,15 @@ _func_enter_;
a4_exists,
message,
plen-8,
- pn_vector
+ pn_vector,
+ frtype // add for CONFIG_IEEE80211W, none 11w also can use
);
construct_mic_header1(
mic_header1,
hdrlen,
- message
+ message,
+ frtype // add for CONFIG_IEEE80211W, none 11w also can use
);
construct_mic_header2(
mic_header2,
@@ -1793,7 +1887,8 @@ _func_enter_;
qc_exists,
message,
pn_vector,
- i+1);
+ i+1,
+ frtype); // add for CONFIG_IEEE80211W, none 11w also can use
aes128k128d(key, ctr_preload, aes_out);
bitwise_xor(aes_out, &message[payload_index], chain_buffer);
for (j=0; j<16;j++) message[payload_index++] = chain_buffer[j];
@@ -1807,7 +1902,8 @@ _func_enter_;
qc_exists,
message,
pn_vector,
- num_blocks+1);
+ num_blocks+1,
+ frtype); // add for CONFIG_IEEE80211W, none 11w also can use
for (j = 0; j < 16; j++) padded_buffer[j] = 0x00;
for (j = 0; j < payload_remainder; j++)
@@ -1826,7 +1922,8 @@ _func_enter_;
qc_exists,
message,
pn_vector,
- 0);
+ 0,
+ frtype); // add for CONFIG_IEEE80211W, none 11w also can use
for (j = 0; j < 16; j++) padded_buffer[j] = 0x00;
for (j = 0; j < 8; j++)
@@ -1841,10 +1938,23 @@ _func_enter_;
//compare the mic
for(i=0;i<8;i++){
if(pframe[hdrlen+8+plen-8+i] != message[hdrlen+8+plen-8+i])
+ {
RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("aes_decipher:mic check error mic[%d]: pframe(%x) != message(%x) \n",
i,pframe[hdrlen+8+plen-8+i],message[hdrlen+8+plen-8+i]));
- res = _FAIL;
+ DBG_871X("aes_decipher:mic check error mic[%d]: pframe(%x) != message(%x) \n",
+ i,pframe[hdrlen+8+plen-8+i],message[hdrlen+8+plen-8+i]);
+ res = _FAIL;
+ }
+ }
+
+ if(res == _FAIL)
+ {
+ int gg=0;
+ for(gg=0; gg < 32; gg++)
+ DBG_871X(" [%d]=%02x ", gg, pframe[gg]);
+ DBG_871X("error packet header \n");
}
+
_func_exit_;
return res;
}
@@ -1861,7 +1971,6 @@ u32 rtw_aes_decrypt(_adapter *padapter, u8 *precvframe)
sint length;
- u32 prwskeylen;
u8 *pframe,*prwskey; //, *payload,*iv
struct sta_info *stainfo;
struct rx_pkt_attrib *prxattrib = &((union recv_frame *)precvframe)->u.hdr.attrib;
@@ -1879,29 +1988,55 @@ _func_enter_;
if(IS_MCAST(prxattrib->ra))
{
+ //in concurrent we should use sw descrypt in group key, so we remove this message
+ //DBG_871X("rx bc/mc packets, to perform sw rtw_aes_decrypt\n");
+ //prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey;
if(psecuritypriv->binstallGrpkey==_FALSE)
{
res=_FAIL;
DBG_8192C("%s:rx bc/mc packets,but didn't install group key!!!!!!!!!!\n",__FUNCTION__);
goto exit;
}
-
- DBG_871X("rx bc/mc packets, to perform sw rtw_aes_decrypt\n");
- //prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey;
prwskey = psecuritypriv->dot118021XGrpKey[prxattrib->key_index].skey;
- prwskeylen=16;
+
+ if(psecuritypriv->dot118021XGrpKeyid != prxattrib->key_index)
+ {
+ DBG_871X("not match packet_index=%d, install_index=%d \n"
+ , prxattrib->key_index, psecuritypriv->dot118021XGrpKeyid);
+ res=_FAIL;
+ goto exit;
+ }
}
else
{
prwskey=&stainfo->dot118021x_UncstKey.skey[0];
- prwskeylen=16;
}
length= ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len;
-
- res= aes_decipher(prwskey,prxattrib->hdrlen,pframe, length);
-
+ /*// add for CONFIG_IEEE80211W, debug
+ if(0)
+ printk("@@@@@@@@@@@@@@@@@@ length=%d, prxattrib->hdrlen=%d, prxattrib->pkt_len=%d \n"
+ , length, prxattrib->hdrlen, prxattrib->pkt_len);
+ if(0)
+ {
+ int no;
+ //test print PSK
+ printk("PSK key below:\n");
+ for(no=0;no<16;no++)
+ printk(" %02x ", prwskey[no]);
+ printk("\n");
+ }
+ if(0)
+ {
+ int no;
+ //test print PSK
+ printk("frame:\n");
+ for(no=0;no<prxattrib->pkt_len;no++)
+ printk(" %02x ", pframe[no]);
+ printk("\n");
+ }*/
+ res= aes_decipher(prwskey,prxattrib->hdrlen,pframe, length);
}
else{
RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("rtw_aes_encrypt: stainfo==NULL!!!\n"));
@@ -1909,11 +2044,114 @@ _func_enter_;
}
}
-_func_exit_;
+_func_exit_;
exit:
return res;
}
+#ifdef CONFIG_IEEE80211W
+u32 rtw_BIP_verify(_adapter *padapter, u8 *precvframe)
+{
+ struct rx_pkt_attrib *pattrib = &((union recv_frame *)precvframe)->u.hdr.attrib;
+ u8 *pframe;
+ u8 *BIP_AAD, *p;
+ u32 res=_FAIL;
+ uint len, ori_len;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ u8 mic[16];
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ ori_len = pattrib->pkt_len-WLAN_HDR_A3_LEN+BIP_AAD_SIZE;
+ BIP_AAD = rtw_zmalloc(ori_len);
+
+ if(BIP_AAD == NULL)
+ {
+ DBG_871X("BIP AAD allocate fail\n");
+ return _FAIL;
+ }
+ //PKT start
+ pframe=(unsigned char *)((union recv_frame*)precvframe)->u.hdr.rx_data;
+ //mapping to wlan header
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+ //save the frame body + MME
+ _rtw_memcpy(BIP_AAD+BIP_AAD_SIZE, pframe+WLAN_HDR_A3_LEN, pattrib->pkt_len-WLAN_HDR_A3_LEN);
+ //find MME IE pointer
+ p = rtw_get_ie(BIP_AAD+BIP_AAD_SIZE, _MME_IE_, &len, pattrib->pkt_len-WLAN_HDR_A3_LEN);
+ //Baron
+ if(p)
+ {
+ u16 keyid=0;
+ u64 temp_ipn=0;
+ //save packet number
+ _rtw_memcpy(&temp_ipn, p+4, 6);
+ temp_ipn = le64_to_cpu(temp_ipn);
+ //BIP packet number should bigger than previous BIP packet
+ if(temp_ipn <= pmlmeext->mgnt_80211w_IPN_rx)
+ {
+ DBG_871X("replay BIP packet\n");
+ goto BIP_exit;
+ }
+ //copy key index
+ _rtw_memcpy(&keyid, p+2, 2);
+ keyid = le16_to_cpu(keyid);
+ if(keyid != padapter->securitypriv.dot11wBIPKeyid)
+ {
+ DBG_871X("BIP key index error!\n");
+ goto BIP_exit;
+ }
+ //clear the MIC field of MME to zero
+ _rtw_memset(p+2+len-8, 0, 8);
+
+ //conscruct AAD, copy frame control field
+ _rtw_memcpy(BIP_AAD, &pwlanhdr->frame_ctl, 2);
+ ClearRetry(BIP_AAD);
+ ClearPwrMgt(BIP_AAD);
+ ClearMData(BIP_AAD);
+ //conscruct AAD, copy address 1 to address 3
+ _rtw_memcpy(BIP_AAD+2, pwlanhdr->addr1, 18);
+
+ if(omac1_aes_128(padapter->securitypriv.dot11wBIPKey[padapter->securitypriv.dot11wBIPKeyid].skey
+ , BIP_AAD, ori_len, mic))
+ goto BIP_exit;
+
+ /*//management packet content
+ {
+ int pp;
+ DBG_871X("pkt: ");
+ for(pp=0;pp< pattrib->pkt_len; pp++)
+ printk(" %02x ", pframe[pp]);
+ DBG_871X("\n");
+ //BIP AAD + management frame body + MME(MIC is zero)
+ DBG_871X("AAD+PKT: ");
+ for(pp=0;pp< ori_len; pp++)
+ DBG_871X(" %02x ", BIP_AAD[pp]);
+ DBG_871X("\n");
+ //show the MIC result
+ DBG_871X("mic: ");
+ for(pp=0;pp<16; pp++)
+ DBG_871X(" %02x ", mic[pp]);
+ DBG_871X("\n");
+ }
+ */
+ //MIC field should be last 8 bytes of packet (packet without FCS)
+ if(_rtw_memcmp(mic, pframe+pattrib->pkt_len-8, 8))
+ {
+ pmlmeext->mgnt_80211w_IPN_rx = temp_ipn;
+ res=_SUCCESS;
+ }
+ else
+ DBG_871X("BIP MIC error!\n");
+
+ }
+ else
+ res = RTW_RX_HANDLED;
+BIP_exit:
+
+ rtw_mfree(BIP_AAD, ori_len);
+ return res;
+}
+#endif //CONFIG_IEEE80211W
+
+#ifndef PLATFORM_FREEBSD
/* compress 512-bits */
static int sha256_compress(struct sha256_state *md, unsigned char *buf)
{
@@ -2179,7 +2417,7 @@ static void hmac_sha256_vector(u8 *key, size_t key_len, size_t num_elem,
_len[1] = 32;
sha256_vector(2, _addr, _len, mac);
}
-
+#endif //PLATFORM_FREEBSD
/**
* sha256_prf - SHA256-based Pseudo-Random Function (IEEE 802.11r, 8.5.1.5.2)
* @key: Key for PRF
@@ -2193,6 +2431,7 @@ static void hmac_sha256_vector(u8 *key, size_t key_len, size_t num_elem,
* This function is used to derive new, cryptographically separate keys from a
* given key.
*/
+#ifndef PLATFORM_FREEBSD //Baron
static void sha256_prf(u8 *key, size_t key_len, char *label,
u8 *data, size_t data_len, u8 *buf, size_t buf_len)
{
@@ -2229,6 +2468,7 @@ static void sha256_prf(u8 *key, size_t key_len, char *label,
counter++;
}
}
+#endif //PLATFORM_FREEBSD Baron
/* AES tables*/
const u32 Te0[256] = {
@@ -2407,6 +2647,7 @@ const u8 rcons[] = {
*
* @return the number of rounds for the given cipher key size.
*/
+#ifndef PLATFORM_FREEBSD //Baron
static void rijndaelKeySetupEnc(u32 rk[/*44*/], const u8 cipherKey[])
{
int i;
@@ -2617,11 +2858,12 @@ static int omac1_aes_128_vector(u8 *key, size_t num_elem,
* This is a mode for using block cipher (AES in this case) for authentication.
* OMAC1 was standardized with the name CMAC by NIST in a Special Publication
* (SP) 800-38B.
- */
-static int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac)
+ */ //modify for CONFIG_IEEE80211W
+int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac)
{
return omac1_aes_128_vector(key, 1, &data, &data_len, mac);
}
+#endif //PLATFORM_FREEBSD Baron
#ifdef CONFIG_TDLS
void wpa_tdls_generate_tpk(_adapter *padapter, struct sta_info *psta)
@@ -2695,7 +2937,7 @@ int wpa_tdls_ftie_mic(u8 *kck, u8 trans_seq,
2 + timeoutie[1] + 2 + ftie[1];
buf = rtw_zmalloc(len);
if (!buf) {
- DBG_8192C("TDLS: No memory for MIC calculation\n");
+ DBG_871X("TDLS: No memory for MIC calculation\n");
return -1;
}
@@ -2741,7 +2983,6 @@ int tdls_verify_mic(u8 *kck, u8 trans_seq,
if (lnkid == NULL || rsnie == NULL ||
timeoutie == NULL || ftie == NULL){
- DBG_8192C("pointer fail\n");
return 0;
}
@@ -2783,16 +3024,16 @@ int tdls_verify_mic(u8 *kck, u8 trans_seq,
rx_ftie = ftie+4;
if (os_memcmp(mic, rx_ftie, 16) == 0) {
- //Valid MIC
- DBG_8192C( "[%s] Valid MIC\n", __FUNCTION__);
+ //Valid MIC
return 1;
}
+
//Invalid MIC
- DBG_8192C( "[%s] Invalid MIC\n", __FUNCTION__);
+ DBG_871X( "[%s] Invalid MIC\n", __FUNCTION__);
return 0;
}
-#endif
+#endif //CONFIG_TDLS
#ifdef PLATFORM_WINDOWS
void rtw_use_tkipkey_handler (
@@ -2805,6 +3046,9 @@ void rtw_use_tkipkey_handler (
#ifdef PLATFORM_LINUX
void rtw_use_tkipkey_handler(void *FunctionContext)
#endif
+#ifdef PLATFORM_FREEBSD
+void rtw_use_tkipkey_handler(void *FunctionContext)
+#endif
{
_adapter *padapter = (_adapter *)FunctionContext;
@@ -2829,3 +3073,43 @@ _func_exit_;
}
+/* Restore HW wep key setting according to key_mask */
+void rtw_sec_restore_wep_key(_adapter *adapter)
+{
+ struct security_priv* securitypriv=&(adapter->securitypriv);
+ sint keyid;
+
+ if((_WEP40_ == securitypriv->dot11PrivacyAlgrthm) ||(_WEP104_ == securitypriv->dot11PrivacyAlgrthm)) {
+ for(keyid=0;keyid<4;keyid++){
+ if(securitypriv->key_mask & BIT(keyid)){
+ if(keyid == securitypriv->dot11PrivacyKeyIndex)
+ rtw_set_key(adapter,securitypriv, keyid, 1);
+ else
+ rtw_set_key(adapter,securitypriv, keyid, 0);
+ }
+ }
+ }
+}
+
+u8 rtw_handle_tkip_countermeasure(_adapter* adapter, const char *caller)
+{
+ struct security_priv* securitypriv=&(adapter->securitypriv);
+ u8 status = _SUCCESS;
+
+ if (securitypriv->btkip_countermeasure == _TRUE) {
+ u32 passing_ms = rtw_get_passing_time_ms(securitypriv->btkip_countermeasure_time);
+ if (passing_ms > 60*1000) {
+ LOG_LEVEL(_drv_info_, "%s("ADPT_FMT") countermeasure time:%ds > 60s \n",
+ caller, ADPT_ARG(adapter), passing_ms/1000);
+ securitypriv->btkip_countermeasure = _FALSE;
+ securitypriv->btkip_countermeasure_time = 0;
+ } else {
+ LOG_LEVEL(_drv_warning_, "%s("ADPT_FMT") countermeasure time:%ds < 60s \n",
+ caller, ADPT_ARG(adapter), passing_ms/1000);
+ status = _FAIL;
+ }
+ }
+
+ return status;
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_sreset.c b/drivers/net/wireless/rtl8192cu/core/rtw_sreset.c
new file mode 100644
index 0000000..e08b1f7
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_sreset.c
@@ -0,0 +1,352 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+
+#include<rtw_sreset.h>
+
+void sreset_init_value(_adapter *padapter)
+{
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ struct sreset_priv *psrtpriv = &pHalData->srestpriv;
+
+ _rtw_mutex_init(&psrtpriv->silentreset_mutex);
+ psrtpriv->silent_reset_inprogress = _FALSE;
+ psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
+ psrtpriv->last_tx_time =0;
+ psrtpriv->last_tx_complete_time =0;
+#endif
+}
+void sreset_reset_value(_adapter *padapter)
+{
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ struct sreset_priv *psrtpriv = &pHalData->srestpriv;
+
+ psrtpriv->silent_reset_inprogress = _FALSE;
+ psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
+ psrtpriv->last_tx_time =0;
+ psrtpriv->last_tx_complete_time =0;
+#endif
+}
+
+u8 sreset_get_wifi_status(_adapter *padapter)
+{
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ struct sreset_priv *psrtpriv = &pHalData->srestpriv;
+
+ u8 status = WIFI_STATUS_SUCCESS;
+ u32 val32 = 0;
+ _irqL irqL;
+ if(psrtpriv->silent_reset_inprogress == _TRUE)
+ {
+ return status;
+ }
+ val32 =rtw_read32(padapter,REG_TXDMA_STATUS);
+ if(val32==0xeaeaeaea){
+ psrtpriv->Wifi_Error_Status = WIFI_IF_NOT_EXIST;
+ }
+ else if(val32!=0){
+ DBG_8192C("txdmastatu(%x)\n",val32);
+ psrtpriv->Wifi_Error_Status = WIFI_MAC_TXDMA_ERROR;
+ }
+
+ if(WIFI_STATUS_SUCCESS !=psrtpriv->Wifi_Error_Status)
+ {
+ DBG_8192C("==>%s error_status(0x%x) \n",__FUNCTION__,psrtpriv->Wifi_Error_Status);
+ status = (psrtpriv->Wifi_Error_Status &( ~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL)));
+ }
+ DBG_8192C("==> %s wifi_status(0x%x)\n",__FUNCTION__,status);
+
+ //status restore
+ psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
+
+ return status;
+#else
+ return WIFI_STATUS_SUCCESS;
+#endif
+}
+
+void sreset_set_wifi_error_status(_adapter *padapter, u32 status)
+{
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ pHalData->srestpriv.Wifi_Error_Status = status;
+#endif
+}
+
+void sreset_set_trigger_point(_adapter *padapter, s32 tgp)
+{
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ pHalData->srestpriv.dbg_trigger_point = tgp;
+#endif
+}
+
+bool sreset_inprogress(_adapter *padapter)
+{
+#if defined(DBG_CONFIG_ERROR_RESET)
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ return pHalData->srestpriv.silent_reset_inprogress;
+#else
+ return _FALSE;
+#endif
+}
+
+void sreset_restore_security_station(_adapter *padapter)
+{
+ u8 EntryId = 0;
+ struct mlme_priv *mlmepriv = &padapter->mlmepriv;
+ struct sta_priv * pstapriv = &padapter->stapriv;
+ struct sta_info *psta;
+ struct security_priv* psecuritypriv=&(padapter->securitypriv);
+ struct mlme_ext_info *pmlmeinfo = &padapter->mlmeextpriv.mlmext_info;
+
+ {
+ u8 val8;
+
+ if (pmlmeinfo->auth_algo == dot11AuthAlgrthm_8021X) {
+ val8 = 0xcc;
+ #ifdef CONFIG_WAPI_SUPPORT
+ } else if (padapter->wapiInfo.bWapiEnable && pmlmeinfo->auth_algo == dot11AuthAlgrthm_WAPI) {
+ //Disable TxUseDefaultKey, RxUseDefaultKey, RxBroadcastUseDefaultKey.
+ val8 = 0x4c;
+ #endif
+ } else {
+ val8 = 0xcf;
+ }
+ rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
+ }
+
+ #if 0
+ if ( ( padapter->securitypriv.dot11PrivacyAlgrthm == _WEP40_ ) ||
+ ( padapter->securitypriv.dot11PrivacyAlgrthm == _WEP104_ ))
+ {
+
+ for(EntryId=0; EntryId<4; EntryId++)
+ {
+ if(EntryId == psecuritypriv->dot11PrivacyKeyIndex)
+ rtw_set_key(padapter,&padapter->securitypriv, EntryId, 1);
+ else
+ rtw_set_key(padapter,&padapter->securitypriv, EntryId, 0);
+ }
+
+ }
+ else
+ #endif
+ if((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) ||
+ (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_))
+ {
+ psta = rtw_get_stainfo(pstapriv, get_bssid(mlmepriv));
+ if (psta == NULL) {
+ //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail \n"));
+ }
+ else
+ {
+ //pairwise key
+ rtw_setstakey_cmd(padapter, (unsigned char *)psta, _TRUE);
+ //group key
+ rtw_set_key(padapter,&padapter->securitypriv,padapter->securitypriv.dot118021XGrpKeyid, 0);
+ }
+ }
+}
+
+void sreset_restore_network_station(_adapter *padapter)
+{
+ struct mlme_priv *mlmepriv = &padapter->mlmepriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ #if 0
+ {
+ //=======================================================
+ // reset related register of Beacon control
+
+ //set MSR to nolink
+ Set_MSR(padapter, _HW_STATE_NOLINK_);
+ // reject all data frame
+ rtw_write16(padapter, REG_RXFLTMAP2,0x00);
+ //reset TSF
+ rtw_write8(padapter, REG_DUAL_TSF_RST, (BIT(0)|BIT(1)));
+
+ // disable update TSF
+ SetBcnCtrlReg(padapter, BIT(4), 0);
+
+ //=======================================================
+ }
+ #endif
+
+ rtw_setopmode_cmd(padapter, Ndis802_11Infrastructure);
+
+ {
+ u8 threshold;
+ #ifdef CONFIG_USB_HCI
+ // TH=1 => means that invalidate usb rx aggregation
+ // TH=0 => means that validate usb rx aggregation, use init value.
+ if(mlmepriv->htpriv.ht_option) {
+ if(padapter->registrypriv.wifi_spec==1)
+ threshold = 1;
+ else
+ threshold = 0;
+ rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
+ } else {
+ threshold = 1;
+ rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
+ }
+ #endif
+ }
+
+ set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
+
+ //disable dynamic functions, such as high power, DIG
+ //Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pmlmeinfo->network.MacAddress);
+
+ {
+ u8 join_type = 0;
+ rtw_hal_set_hwreg(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
+ }
+
+ Set_MSR(padapter, (pmlmeinfo->state & 0x3));
+
+ mlmeext_joinbss_event_callback(padapter, 1);
+ //restore Sequence No.
+ rtw_write8(padapter,0x4dc,padapter->xmitpriv.nqos_ssn);
+
+ sreset_restore_security_station(padapter);
+}
+
+void sreset_restore_network_status(_adapter *padapter)
+{
+ struct mlme_priv *mlmepriv = &padapter->mlmepriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ if (check_fwstate(mlmepriv, WIFI_STATION_STATE)) {
+ DBG_871X(FUNC_ADPT_FMT" fwstate:0x%08x - WIFI_STATION_STATE\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv));
+ sreset_restore_network_station(padapter);
+ } else if (check_fwstate(mlmepriv, WIFI_AP_STATE)) {
+ DBG_871X(FUNC_ADPT_FMT" fwstate:0x%08x - WIFI_AP_STATE\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv));
+ rtw_ap_restore_network(padapter);
+ } else if (check_fwstate(mlmepriv, WIFI_ADHOC_STATE)) {
+ DBG_871X(FUNC_ADPT_FMT" fwstate:0x%08x - WIFI_ADHOC_STATE\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv));
+ } else {
+ DBG_871X(FUNC_ADPT_FMT" fwstate:0x%08x - ???\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv));
+ }
+}
+
+void sreset_stop_adapter(_adapter *padapter)
+{
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+
+ if (padapter == NULL)
+ return;
+
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
+
+ if (!rtw_netif_queue_stopped(padapter->pnetdev))
+ rtw_netif_stop_queue(padapter->pnetdev);
+
+ rtw_cancel_all_timer(padapter);
+
+ /* TODO: OS and HCI independent */
+ #if defined(PLATFORM_LINUX) && defined(CONFIG_USB_HCI)
+ tasklet_kill(&pxmitpriv->xmit_tasklet);
+ #endif
+
+ if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY))
+ rtw_scan_abort(padapter);
+
+ if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING))
+ _rtw_join_timeout_handler(padapter);
+
+}
+
+void sreset_start_adapter(_adapter *padapter)
+{
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+
+ if (padapter == NULL)
+ return;
+
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
+
+ if (check_fwstate(pmlmepriv, _FW_LINKED)) {
+ sreset_restore_network_status(padapter);
+ }
+
+ /* TODO: OS and HCI independent */
+ #if defined(PLATFORM_LINUX) && defined(CONFIG_USB_HCI)
+ tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
+ #endif
+
+ _set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
+
+ if (rtw_netif_queue_stopped(padapter->pnetdev))
+ rtw_netif_wake_queue(padapter->pnetdev);
+
+}
+
+void sreset_reset(_adapter *padapter)
+{
+#ifdef DBG_CONFIG_ERROR_RESET
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ struct sreset_priv *psrtpriv = &pHalData->srestpriv;
+ struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ _irqL irqL;
+ u32 start = rtw_get_current_time();
+
+ DBG_871X("%s\n", __FUNCTION__);
+
+ psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
+
+ _enter_pwrlock(&pwrpriv->lock);
+
+ psrtpriv->silent_reset_inprogress = _TRUE;
+ pwrpriv->change_rfpwrstate = rf_off;
+
+ sreset_stop_adapter(padapter);
+ #ifdef CONFIG_CONCURRENT_MODE
+ sreset_stop_adapter(padapter->pbuddy_adapter);
+ #endif
+
+ #ifdef CONFIG_IPS
+ _ips_enter(padapter);
+ _ips_leave(padapter);
+ #endif
+
+ sreset_start_adapter(padapter);
+ #ifdef CONFIG_CONCURRENT_MODE
+ sreset_start_adapter(padapter->pbuddy_adapter);
+ #endif
+
+ psrtpriv->silent_reset_inprogress = _FALSE;
+
+ _exit_pwrlock(&pwrpriv->lock);
+
+ DBG_871X("%s done in %d ms\n", __FUNCTION__, rtw_get_passing_time_ms(start));
+#endif
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_sta_mgt.c b/drivers/net/wireless/rtl8192cu/core/rtw_sta_mgt.c
index 70b25c9..f818a0c 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_sta_mgt.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_sta_mgt.c
@@ -15,8 +15,8 @@
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
- *
-******************************************************************************/
+ *
+ ******************************************************************************/
#define _RTW_STA_MGT_C_
#include <drv_conf.h>
@@ -35,7 +35,7 @@
#include <sta_info.h>
-
+void _rtw_init_stainfo(struct sta_info *psta);
void _rtw_init_stainfo(struct sta_info *psta)
{
@@ -84,6 +84,8 @@ _func_enter_;
psta->under_exist_checking = 0;
#endif // CONFIG_TX_MCAST2UNI
+ psta->keep_alive_trycnt = 0;
+
#endif // CONFIG_AP_MODE
_func_exit_;
@@ -94,7 +96,7 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
{
struct sta_info *psta;
s32 i;
-
+
_func_enter_;
pstapriv->pallocated_stainfo_buf = rtw_zvmalloc (sizeof(struct sta_info) * NUM_STA+ 4);
@@ -128,6 +130,8 @@ _func_enter_;
psta++;
}
+
+
#ifdef CONFIG_AP_MODE
pstapriv->sta_dz_bitmap = 0;
@@ -135,18 +139,22 @@ _func_enter_;
_rtw_init_listhead(&pstapriv->asoc_list);
_rtw_init_listhead(&pstapriv->auth_list);
-
_rtw_spinlock_init(&pstapriv->asoc_list_lock);
- _rtw_spinlock_init(&pstapriv->auth_list_lock);
-
+ _rtw_spinlock_init(&pstapriv->auth_list_lock);
+ pstapriv->asoc_list_cnt = 0;
+ pstapriv->auth_list_cnt = 0;
+
pstapriv->auth_to = 3; // 3*2 = 6 sec
pstapriv->assoc_to = 3;
//pstapriv->expire_to = 900;// 900*2 = 1800 sec = 30 min, expire after no any traffic.
//pstapriv->expire_to = 30;// 30*2 = 60 sec = 1 min, expire after no any traffic.
+#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+ pstapriv->expire_to = 3; // 3*2 = 6 sec
+#else
pstapriv->expire_to = 60;// 60*2 = 120 sec = 2 min, expire after no any traffic.
-
+#endif
pstapriv->max_num_sta = NUM_STA;
-
+
#endif
_func_exit_;
@@ -155,6 +163,25 @@ _func_exit_;
}
+inline int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta)
+{
+ int offset = (((u8 *)sta) - stapriv->pstainfo_buf)/sizeof(struct sta_info);
+
+ if (!stainfo_offset_valid(offset))
+ DBG_871X("%s invalid offset(%d), out of range!!!", __func__, offset);
+
+ return offset;
+}
+
+inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int offset)
+{
+ if (!stainfo_offset_valid(offset))
+ DBG_871X("%s invalid offset(%d), out of range!!!", __func__, offset);
+
+ return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
+}
+
+void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv);
void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv)
{
_func_enter_;
@@ -180,6 +207,7 @@ _func_exit_;
}
+void rtw_mfree_stainfo(struct sta_info *psta);
void rtw_mfree_stainfo(struct sta_info *psta)
{
_func_enter_;
@@ -195,6 +223,7 @@ _func_exit_;
// this function is used to free the memory of lock || sema for all stainfos
+void rtw_mfree_all_stainfo(struct sta_priv *pstapriv );
void rtw_mfree_all_stainfo(struct sta_priv *pstapriv )
{
_irqL irqL;
@@ -222,9 +251,13 @@ _func_exit_;
}
-
+void rtw_mfree_sta_priv_lock(struct sta_priv *pstapriv);
void rtw_mfree_sta_priv_lock(struct sta_priv *pstapriv)
{
+#ifdef CONFIG_AP_MODE
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+#endif
+
rtw_mfree_all_stainfo(pstapriv); //be done before free sta_hash_lock
_rtw_spinlock_free(&pstapriv->free_sta_queue.lock);
@@ -235,15 +268,46 @@ void rtw_mfree_sta_priv_lock(struct sta_priv *pstapriv)
#ifdef CONFIG_AP_MODE
_rtw_spinlock_free(&pstapriv->asoc_list_lock);
- _rtw_spinlock_free(&pstapriv->auth_list_lock);
+ _rtw_spinlock_free(&pstapriv->auth_list_lock);
+ _rtw_spinlock_free(&pacl_list->acl_node_q.lock);
#endif
}
u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)
{
+ _irqL irqL;
+ _list *phead, *plist;
+ struct sta_info *psta = NULL;
+ struct recv_reorder_ctrl *preorder_ctrl;
+ int index;
+
_func_enter_;
if(pstapriv){
+
+ /* delete all reordering_ctrl_timer */
+ _enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+ for(index = 0; index < NUM_STA; index++)
+ {
+ phead = &(pstapriv->sta_hash[index]);
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ int i;
+ psta = LIST_CONTAINOR(plist, struct sta_info ,hash_list);
+ plist = get_next(plist);
+
+ for(i=0; i < 16 ; i++)
+ {
+ preorder_ctrl = &psta->recvreorder_ctrl[i];
+ _cancel_timer_ex(&preorder_ctrl->reordering_ctrl_timer);
+ }
+ }
+ }
+ _exit_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+ /*===============================*/
+
rtw_mfree_sta_priv_lock(pstapriv);
if(pstapriv->pallocated_stainfo_buf) {
@@ -273,11 +337,13 @@ _func_enter_;
pfree_sta_queue = &pstapriv->free_sta_queue;
- _enter_critical_bh(&(pfree_sta_queue->lock), &irqL);
+ //_enter_critical_bh(&(pfree_sta_queue->lock), &irqL);
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
if (_rtw_queue_empty(pfree_sta_queue) == _TRUE)
{
- _exit_critical_bh(&(pfree_sta_queue->lock), &irqL);
+ //_exit_critical_bh(&(pfree_sta_queue->lock), &irqL);
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
psta = NULL;
}
else
@@ -285,8 +351,8 @@ _func_enter_;
psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list);
rtw_list_delete(&(psta->list));
-
- _exit_critical_bh(&(pfree_sta_queue->lock), &irqL);
+
+ //_exit_critical_bh(&(pfree_sta_queue->lock), &irqL);
tmp_aid = psta->aid;
@@ -305,13 +371,13 @@ _func_enter_;
}
phash_list = &(pstapriv->sta_hash[index]);
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
+ //_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
rtw_list_insert_tail(&psta->hash_list, phash_list);
pstapriv->asoc_sta_count ++ ;
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
+ //_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
// Commented by Albert 2009/08/13
// For the SMC router, the sequence number of first packet of WPS handshake will be 0.
@@ -336,7 +402,7 @@ _func_enter_;
init_off_ch_timer(pstapriv->padapter, psta);
init_handshake_timer(pstapriv->padapter, psta);
init_tdls_alive_timer(pstapriv->padapter, psta);
-#endif
+#endif //CONFIG_TDLS
//for A-MPDU Rx reordering buffer control
for(i=0; i < 16 ; i++)
@@ -363,14 +429,18 @@ _func_enter_;
//init for DM
- psta->rssi_stat.UndecoratedSmoothedPWDB = (-1);
+ psta->rssi_stat.UndecoratedSmoothedPWDB = 0;
psta->rssi_stat.UndecoratedSmoothedCCK = (-1);
+ /* init for the sequence number of received management frame */
+ psta->RxMgmtFrameSeqNum = 0xffff;
}
exit:
-
-_func_exit_;
+
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
+
+_func_exit_;
return psta;
@@ -388,6 +458,7 @@ u32 rtw_free_stainfo(_adapter *padapter , struct sta_info *psta)
struct sta_xmit_priv *pstaxmitpriv;
struct xmit_priv *pxmitpriv= &padapter->xmitpriv;
struct sta_priv *pstapriv = &padapter->stapriv;
+ struct hw_xmit *phwxmit;
_func_enter_;
@@ -395,6 +466,11 @@ _func_enter_;
if (psta == NULL)
goto exit;
+
+ _enter_critical_bh(&psta->lock, &irqL0);
+ psta->state &= ~_FW_LINKED;
+ _exit_critical_bh(&psta->lock, &irqL0);
+
pfree_sta_queue = &pstapriv->free_sta_queue;
@@ -409,40 +485,42 @@ _func_enter_;
rtw_free_xmitframe_queue(pxmitpriv, &psta->sleep_q);
psta->sleepq_len = 0;
+ //vo
//_enter_critical_bh(&(pxmitpriv->vo_pending.lock), &irqL0);
-
rtw_free_xmitframe_queue( pxmitpriv, &pstaxmitpriv->vo_q.sta_pending);
-
rtw_list_delete(&(pstaxmitpriv->vo_q.tx_pending));
-
+ phwxmit = pxmitpriv->hwxmits;
+ phwxmit->accnt -= pstaxmitpriv->vo_q.qcnt;
+ pstaxmitpriv->vo_q.qcnt = 0;
//_exit_critical_bh(&(pxmitpriv->vo_pending.lock), &irqL0);
-
+ //vi
//_enter_critical_bh(&(pxmitpriv->vi_pending.lock), &irqL0);
-
rtw_free_xmitframe_queue( pxmitpriv, &pstaxmitpriv->vi_q.sta_pending);
-
rtw_list_delete(&(pstaxmitpriv->vi_q.tx_pending));
-
+ phwxmit = pxmitpriv->hwxmits+1;
+ phwxmit->accnt -= pstaxmitpriv->vi_q.qcnt;
+ pstaxmitpriv->vi_q.qcnt = 0;
//_exit_critical_bh(&(pxmitpriv->vi_pending.lock), &irqL0);
-
- //_enter_critical_bh(&(pxmitpriv->bk_pending.lock), &irqL0);
-
- rtw_free_xmitframe_queue( pxmitpriv, &pstaxmitpriv->bk_q.sta_pending);
-
- rtw_list_delete(&(pstaxmitpriv->bk_q.tx_pending));
-
- //_exit_critical_bh(&(pxmitpriv->bk_pending.lock), &irqL0);
-
+ //be
//_enter_critical_bh(&(pxmitpriv->be_pending.lock), &irqL0);
-
rtw_free_xmitframe_queue( pxmitpriv, &pstaxmitpriv->be_q.sta_pending);
-
rtw_list_delete(&(pstaxmitpriv->be_q.tx_pending));
-
+ phwxmit = pxmitpriv->hwxmits+2;
+ phwxmit->accnt -= pstaxmitpriv->be_q.qcnt;
+ pstaxmitpriv->be_q.qcnt = 0;
//_exit_critical_bh(&(pxmitpriv->be_pending.lock), &irqL0);
+ //bk
+ //_enter_critical_bh(&(pxmitpriv->bk_pending.lock), &irqL0);
+ rtw_free_xmitframe_queue( pxmitpriv, &pstaxmitpriv->bk_q.sta_pending);
+ rtw_list_delete(&(pstaxmitpriv->bk_q.tx_pending));
+ phwxmit = pxmitpriv->hwxmits+3;
+ phwxmit->accnt -= pstaxmitpriv->bk_q.qcnt;
+ pstaxmitpriv->bk_q.qcnt = 0;
+ //_exit_critical_bh(&(pxmitpriv->bk_pending.lock), &irqL0);
+
_exit_critical_bh(&pxmitpriv->lock, &irqL0);
rtw_list_delete(&psta->hash_list);
@@ -450,9 +528,9 @@ _func_enter_;
pstapriv->asoc_sta_count --;
- // re-init sta_info; 20061114
- _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv);
- _rtw_init_sta_recv_priv(&psta->sta_recvpriv);
+ // re-init sta_info; 20061114 // will be init in alloc_stainfo
+ //_rtw_init_sta_xmit_priv(&psta->sta_xmitpriv);
+ //_rtw_init_sta_recv_priv(&psta->sta_recvpriv);
_cancel_timer_ex(&psta->addba_retry_timer);
@@ -463,7 +541,7 @@ _func_enter_;
_cancel_timer_ex(&psta->off_ch_timer);
_cancel_timer_ex(&psta->alive_timer1);
_cancel_timer_ex(&psta->alive_timer2);
-#endif
+#endif //CONFIG_TDLS
//for A-MPDU Rx reordering buffer control, cancel reordering_ctrl_timer
for(i=0; i < 16 ; i++)
@@ -509,9 +587,11 @@ _func_enter_;
rtw_list_delete(&psta->asoc_list);
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL0);
*/
-
_enter_critical_bh(&pstapriv->auth_list_lock, &irqL0);
- rtw_list_delete(&psta->auth_list);
+ if (!rtw_is_list_empty(&psta->auth_list)) {
+ rtw_list_delete(&psta->auth_list);
+ pstapriv->auth_list_cnt--;
+ }
_exit_critical_bh(&pstapriv->auth_list_lock, &irqL0);
psta->expire_to = 0;
@@ -534,7 +614,7 @@ _func_enter_;
//rtw_indicate_sta_disassoc_event(padapter, psta);
- if (pstapriv->sta_aid[psta->aid - 1] == psta)
+ if ((psta->aid >0)&&(pstapriv->sta_aid[psta->aid - 1] == psta))
{
pstapriv->sta_aid[psta->aid - 1] = NULL;
psta->aid = 0;
@@ -548,11 +628,13 @@ _func_enter_;
#endif // CONFIG_AP_MODE
- _enter_critical_bh(&(pfree_sta_queue->lock), &irqL0);
+ _rtw_spinlock_free(&psta->lock);
+
+ //_enter_critical_bh(&(pfree_sta_queue->lock), &irqL0);
rtw_list_insert_tail(&psta->list, get_list_head(pfree_sta_queue));
- _exit_critical_bh(&(pfree_sta_queue->lock), &irqL0);
+ //_exit_critical_bh(&(pfree_sta_queue->lock), &irqL0);
-exit:
+exit:
_func_exit_;
@@ -713,8 +795,54 @@ _func_exit_;
}
-u8 rtw_access_ctrl(struct wlan_acl_pool* pacl_list, u8 * mac_addr)
+u8 rtw_access_ctrl(_adapter *padapter, u8 *mac_addr)
{
- return _TRUE;
+ u8 res = _TRUE;
+#ifdef CONFIG_AP_MODE
+ _irqL irqL;
+ _list *plist, *phead;
+ struct rtw_wlan_acl_node *paclnode;
+ u8 match = _FALSE;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
+ _queue *pacl_node_q =&pacl_list->acl_node_q;
+
+ _enter_critical_bh(&(pacl_node_q->lock), &irqL);
+ phead = get_list_head(pacl_node_q);
+ plist = get_next(phead);
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
+ plist = get_next(plist);
+
+ if(_rtw_memcmp(paclnode->addr, mac_addr, ETH_ALEN))
+ {
+ if(paclnode->valid == _TRUE)
+ {
+ match = _TRUE;
+ break;
+ }
+ }
+ }
+ _exit_critical_bh(&(pacl_node_q->lock), &irqL);
+
+
+ if(pacl_list->mode == 1)//accept unless in deny list
+ {
+ res = (match == _TRUE) ? _FALSE:_TRUE;
+ }
+ else if(pacl_list->mode == 2)//deny unless in accept list
+ {
+ res = (match == _TRUE) ? _TRUE:_FALSE;
+ }
+ else
+ {
+ res = _TRUE;
+ }
+
+#endif
+
+ return res;
+
}
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_tdls.c b/drivers/net/wireless/rtl8192cu/core/rtw_tdls.c
new file mode 100644
index 0000000..e8c4d4c
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_tdls.c
@@ -0,0 +1,2941 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#define _RTW_TDLS_C_
+
+#include <drv_types.h>
+#include <ethernet.h>
+#include <rtw_tdls.h>
+#include <wifi.h>
+
+#ifdef CONFIG_TDLS
+extern unsigned char MCS_rate_2R[16];
+extern unsigned char MCS_rate_1R[16];
+extern void process_wmmps_data(_adapter *padapter, union recv_frame *precv_frame);
+extern s32 rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe);
+
+void rtw_reset_tdls_info(_adapter* padapter)
+{
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+
+ ptdlsinfo->ap_prohibited = _FALSE;
+ ptdlsinfo->setup_state = TDLS_STATE_NONE;
+ ptdlsinfo->sta_cnt = 0;
+ ptdlsinfo->sta_maximum = _FALSE;
+ ptdlsinfo->macid_index= 6;
+ ptdlsinfo->clear_cam= 0;
+ ptdlsinfo->ch_sensing = 0;
+ ptdlsinfo->cur_channel = 0;
+ ptdlsinfo->candidate_ch = 1; //when inplement channel switching, default candidate channel is 1
+ ptdlsinfo->watchdog_count = 0;
+ ptdlsinfo->dev_discovered = 0;
+
+#ifdef CONFIG_WFD
+ ptdlsinfo->wfd_info = &padapter->wfd_info;
+#endif //CONFIG_WFD
+}
+
+int rtw_init_tdls_info(_adapter* padapter)
+{
+ int res = _SUCCESS;
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+
+ ptdlsinfo->enable = 1;
+ rtw_reset_tdls_info(padapter);
+
+ _rtw_spinlock_init(&ptdlsinfo->cmd_lock);
+ _rtw_spinlock_init(&ptdlsinfo->hdl_lock);
+
+ return res;
+
+}
+
+void rtw_free_tdls_info(struct tdls_info *ptdlsinfo)
+{
+ _rtw_spinlock_free(&ptdlsinfo->cmd_lock);
+ _rtw_spinlock_free(&ptdlsinfo->hdl_lock);
+
+ _rtw_memset(ptdlsinfo, 0, sizeof(struct tdls_info) );
+
+}
+
+void issue_nulldata_to_TDLS_peer_STA(_adapter *padapter, struct sta_info *ptdls_sta, unsigned int power_mode)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ unsigned short *fctrl;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+ update_mgntframe_attrib(padapter, pattrib);
+
+ _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+ fctrl = &(pwlanhdr->frame_ctl);
+ *(fctrl) = 0;
+// SetToDs(fctrl);
+ if (power_mode)
+ {
+ SetPwrMgt(fctrl);
+ }
+
+ _rtw_memcpy(pwlanhdr->addr1, ptdls_sta->hwaddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, get_my_bssid(&(pmlmeinfo->network)), ETH_ALEN);
+
+ ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority]++;
+ ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority] &= 0xFFF;
+ pattrib->seqnum = ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority];
+ SetSeqNum(pwlanhdr, pattrib->seqnum);
+
+ SetFrameSubType(pframe, WIFI_DATA_NULL);
+
+ pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ pattrib->last_txcmdsz = pattrib->pktlen;
+ dump_mgntframe(padapter, pmgntframe);
+
+ return;
+}
+
+s32 update_tdls_attrib(_adapter *padapter, struct pkt_attrib *pattrib)
+{
+
+ struct sta_info *psta = NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct qos_priv *pqospriv= &pmlmepriv->qospriv;
+
+ s32 res=_SUCCESS;
+ sint bmcast;
+
+ bmcast = IS_MCAST(pattrib->ra);
+
+ psta = rtw_get_stainfo(pstapriv, pattrib->ra);
+ if (psta == NULL) {
+ res =_FAIL;
+ goto exit;
+ }
+
+ pattrib->mac_id = psta->mac_id;
+
+ pattrib->psta = psta;
+
+ pattrib->ack_policy = 0;
+ // get ether_hdr_len
+ pattrib->pkt_hdrlen = ETH_HLEN;//(pattrib->ether_type == 0x8100) ? (14 + 4 ): 14; //vlan tag
+
+ if (pqospriv->qos_option && psta->qos_option) {
+ pattrib->priority = 1; //tdls management frame should be AC_BK
+ pattrib->hdrlen = WLAN_HDR_A3_QOS_LEN;
+ pattrib->subtype = WIFI_QOS_DATA_TYPE;
+ } else {
+ pattrib->hdrlen = WLAN_HDR_A3_LEN;
+ pattrib->subtype = WIFI_DATA_TYPE;
+ pattrib->priority = 0;
+ }
+
+ if (psta->ieee8021x_blocked == _TRUE)
+ {
+ pattrib->encrypt = 0;
+ }
+ else
+ {
+ GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast);
+
+ switch(psecuritypriv->dot11AuthAlgrthm)
+ {
+ case dot11AuthAlgrthm_Open:
+ case dot11AuthAlgrthm_Shared:
+ case dot11AuthAlgrthm_Auto:
+ pattrib->key_idx = (u8)psecuritypriv->dot11PrivacyKeyIndex;
+ break;
+ case dot11AuthAlgrthm_8021X:
+ pattrib->key_idx = 0;
+ break;
+ default:
+ pattrib->key_idx = 0;
+ break;
+ }
+ }
+
+ switch (pattrib->encrypt)
+ {
+ case _WEP40_:
+ case _WEP104_:
+ pattrib->iv_len = 4;
+ pattrib->icv_len = 4;
+ break;
+ case _TKIP_:
+ pattrib->iv_len = 8;
+ pattrib->icv_len = 4;
+ if(padapter->securitypriv.busetkipkey==_FAIL)
+ {
+ res =_FAIL;
+ goto exit;
+ }
+ break;
+ case _AES_:
+ pattrib->iv_len = 8;
+ pattrib->icv_len = 8;
+ break;
+ default:
+ pattrib->iv_len = 0;
+ pattrib->icv_len = 0;
+ break;
+ }
+
+ if (pattrib->encrypt &&
+ ((padapter->securitypriv.sw_encrypt == _TRUE) || (psecuritypriv->hw_decrypted == _FALSE)))
+ {
+ pattrib->bswenc = _TRUE;
+ } else {
+ pattrib->bswenc = _FALSE;
+ }
+
+ //qos_en, ht_en, init rate, ,bw, ch_offset, sgi
+ pattrib->qos_en = psta->qos_option;
+ pattrib->ht_en = psta->htpriv.ht_option;
+ pattrib->raid = psta->raid;
+ pattrib->bwmode = psta->htpriv.bwmode;
+ pattrib->ch_offset = psta->htpriv.ch_offset;
+ pattrib->sgi= psta->htpriv.sgi;
+ pattrib->ampdu_en = _FALSE;
+
+ //if(pattrib->ht_en && psta->htpriv.ampdu_enable)
+ //{
+ // if(psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
+ // pattrib->ampdu_en = _TRUE;
+ //}
+
+exit:
+
+ return res;
+}
+
+void free_tdls_sta(_adapter *padapter, struct sta_info *ptdls_sta)
+{
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ _irqL irqL;
+
+ //free peer sta_info
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ if(ptdlsinfo->sta_cnt != 0)
+ ptdlsinfo->sta_cnt--;
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ if( ptdlsinfo->sta_cnt < (NUM_STA - 2) ) // -2: AP + BC/MC sta
+ {
+ ptdlsinfo->sta_maximum = _FALSE;
+ _rtw_memset( &ptdlsinfo->ss_record, 0x00, sizeof(struct tdls_ss_record) );
+ }
+ //ready to clear cam
+ if(ptdls_sta->mac_id!=0){
+ ptdlsinfo->clear_cam=ptdls_sta->mac_id;
+ rtw_setstakey_cmd(padapter, (u8 *)ptdls_sta, _TRUE);
+ }
+
+ if(ptdlsinfo->sta_cnt==0){
+ rtw_tdls_cmd(padapter, myid(&(padapter->eeprompriv)), TDLS_RS_RCR);
+ ptdlsinfo->setup_state=TDLS_STATE_NONE;
+ }
+ else
+ DBG_871X("Remain tdls sta:%02x\n", ptdlsinfo->sta_cnt);
+
+ rtw_free_stainfo(padapter, ptdls_sta);
+
+}
+
+// cam entry will be the same as mac_id
+void rtw_tdls_set_mac_id(struct tdls_info *ptdlsinfo, struct sta_info *ptdls_sta)
+{
+ if(ptdls_sta->mac_id==0)
+ {
+ ptdls_sta->mac_id = ptdlsinfo->macid_index;
+ if( (++ptdlsinfo->macid_index) > (NUM_STA -2) )
+ ptdlsinfo->macid_index= TDLS_INI_MACID_ENTRY;
+ }
+}
+
+//TDLS encryption(if needed) will always be CCMP
+void rtw_tdls_set_key(_adapter *adapter, struct rx_pkt_attrib *prx_pkt_attrib, struct sta_info *ptdls_sta)
+{
+ if(prx_pkt_attrib->encrypt)
+ {
+ ptdls_sta->dot118021XPrivacy=_AES_;
+ rtw_setstakey_cmd(adapter, (u8*)ptdls_sta, _TRUE);
+ }
+}
+
+void rtw_tdls_process_ht_cap(_adapter *adapter, struct sta_info *ptdls_sta, u8 *data, u8 Length)
+{
+ /* save HT capabilities in the sta object */
+ _rtw_memset(&ptdls_sta->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap));
+ if (data && Length >= sizeof(struct rtw_ieee80211_ht_cap) )
+ {
+ ptdls_sta->flags |= WLAN_STA_HT;
+
+ ptdls_sta->flags |= WLAN_STA_WME;
+
+ _rtw_memcpy(&ptdls_sta->htpriv.ht_cap, data, sizeof(struct rtw_ieee80211_ht_cap));
+
+ } else
+ ptdls_sta->flags &= ~WLAN_STA_HT;
+
+ if(ptdls_sta->flags & WLAN_STA_HT)
+ {
+ if(adapter->registrypriv.ht_enable == _TRUE)
+ {
+ ptdls_sta->htpriv.ht_option = _TRUE;
+ }
+ else
+ {
+ ptdls_sta->htpriv.ht_option = _FALSE;
+ ptdls_sta->stat_code = _STATS_FAILURE_;
+ }
+ }
+
+ //HT related cap
+ if(ptdls_sta->htpriv.ht_option)
+ {
+ //check if sta supports rx ampdu
+ if(adapter->registrypriv.ampdu_enable==1)
+ ptdls_sta->htpriv.ampdu_enable = _TRUE;
+
+ //check if sta support s Short GI
+ if(ptdls_sta->htpriv.ht_cap.cap_info & cpu_to_le16(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40))
+ {
+ ptdls_sta->htpriv.sgi = _TRUE;
+ }
+
+ // bwmode would still followed AP's setting
+ if(ptdls_sta->htpriv.ht_cap.cap_info & cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH))
+ {
+ ptdls_sta->htpriv.bwmode = adapter->mlmeextpriv.cur_bwmode;
+ ptdls_sta->htpriv.ch_offset = adapter->mlmeextpriv.cur_ch_offset;
+ }
+ }
+}
+
+u8 *rtw_tdls_set_ht_cap(_adapter *padapter, u8 *pframe, struct pkt_attrib *pattrib)
+{
+ struct rtw_ieee80211_ht_cap ht_capie;
+ u8 rf_type;
+
+ //HT capabilities
+ _rtw_memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
+
+ ht_capie.cap_info = IEEE80211_HT_CAP_SUP_WIDTH |IEEE80211_HT_CAP_SGI_20 |IEEE80211_HT_CAP_SM_PS |
+ IEEE80211_HT_CAP_SGI_40 | IEEE80211_HT_CAP_TX_STBC |IEEE80211_HT_CAP_DSSSCCK40;
+
+ {
+ u32 rx_packet_offset, max_recvbuf_sz;
+ rtw_hal_get_def_var(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
+ rtw_hal_get_def_var(padapter, HAL_DEF_MAX_RECVBUF_SZ, &max_recvbuf_sz);
+ if(max_recvbuf_sz-rx_packet_offset>(8191-256))
+ ht_capie.cap_info = ht_capie.cap_info |IEEE80211_HT_CAP_MAX_AMSDU;
+ }
+
+ ht_capie.ampdu_params_info = (IEEE80211_HT_CAP_AMPDU_FACTOR&0x03);
+
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ switch(rf_type)
+ {
+ case RF_1T1R:
+ ht_capie.cap_info |= 0x0100;//RX STBC One spatial stream
+ _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_1R, 16);
+ break;
+
+ case RF_2T2R:
+ case RF_1T2R:
+ default:
+ ht_capie.cap_info|= 0x0200;//RX STBC two spatial stream
+ _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_2R, 16);
+ break;
+ }
+
+ return(rtw_set_ie(pframe, _HT_CAPABILITY_IE_,
+ sizeof(struct rtw_ieee80211_ht_cap), (unsigned char*)&ht_capie, &(pattrib->pktlen)));
+}
+
+u8 *rtw_tdls_set_sup_ch(struct mlme_ext_priv *pmlmeext, u8 *pframe, struct pkt_attrib *pattrib)
+{
+ u8 sup_ch[ 30 * 2 ] = { 0x00 }, sup_ch_idx = 0, idx_5g = 2; //For supported channel
+ do{
+ if( pmlmeext->channel_set[sup_ch_idx].ChannelNum <= 14 )
+ {
+ sup_ch[0] = 1; //First channel number
+ sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum; //Number of channel
+ }
+ else
+ {
+ sup_ch[idx_5g++] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;
+ sup_ch[idx_5g++] = 1;
+ }
+
+ sup_ch_idx++;
+ }
+ while( pmlmeext->channel_set[sup_ch_idx].ChannelNum != 0 );
+ return(rtw_set_ie(pframe, _SUPPORTED_CH_IE_, idx_5g, sup_ch, &(pattrib->pktlen)));
+}
+
+#ifdef CONFIG_WFD
+void rtw_tdls_process_wfd_ie(struct tdls_info *ptdlsinfo, u8 *ptr, u8 length)
+{
+ u8 wfd_ie[ 128 ] = { 0x00 };
+ u32 wfd_ielen = 0;
+ u32 wfd_offset = 0;
+ // Try to get the TCP port information when receiving the negotiation response.
+ //
+
+ wfd_offset = 0;
+ wfd_offset = rtw_get_wfd_ie( ptr + wfd_offset, length - wfd_offset, wfd_ie, &wfd_ielen );
+ while( wfd_offset )
+ {
+ u8 attr_content[ 10 ] = { 0x00 };
+ u32 attr_contentlen = 0;
+ int i;
+
+ DBG_871X( "[%s] WFD IE Found!!\n", __FUNCTION__ );
+ rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
+ if ( attr_contentlen )
+ {
+ ptdlsinfo->wfd_info->peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
+ DBG_871X( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, ptdlsinfo->wfd_info->peer_rtsp_ctrlport );
+ }
+
+ _rtw_memset( attr_content, 0x00, 10);
+ attr_contentlen = 0;
+ rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_LOCAL_IP_ADDR, attr_content, &attr_contentlen);
+ if ( attr_contentlen )
+ {
+ _rtw_memcpy(ptdlsinfo->wfd_info->peer_ip_address, ( attr_content + 1 ), 4);
+ DBG_871X( "[%s] Peer IP = %02u.%02u.%02u.%02u \n", __FUNCTION__,
+ ptdlsinfo->wfd_info->peer_ip_address[0], ptdlsinfo->wfd_info->peer_ip_address[1],
+ ptdlsinfo->wfd_info->peer_ip_address[2], ptdlsinfo->wfd_info->peer_ip_address[3]
+ );
+ }
+ wfd_offset = rtw_get_wfd_ie( ptr + wfd_offset, length - wfd_offset, wfd_ie, &wfd_ielen );
+ }
+}
+
+void issue_tunneled_probe_req(_adapter *padapter)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ u8 baddr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+
+ DBG_871X("[%s]\n", __FUNCTION__);
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, baddr, ETH_ALEN);
+
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TUNNELED_PROBE_REQ) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+}
+
+void issue_tunneled_probe_rsp(_adapter *padapter, union recv_frame *precv_frame)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct rx_pkt_attrib *rx_pkt_pattrib = &precv_frame->u.hdr.attrib;
+
+ DBG_871X("[%s]\n", __FUNCTION__);
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, rx_pkt_pattrib->src, ETH_ALEN);
+
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TUNNELED_PROBE_RSP) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+}
+#endif //CONFIG_WFD
+
+void issue_tdls_setup_req(_adapter *padapter, u8 *mac_addr)
+{
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *ptdls_sta= NULL;
+ _irqL irqL;
+ static u8 dialogtoken = 0;
+ u32 timeout_interval= TPK_RESEND_COUNT * 1000; //retry timer should set at least 301 sec, using TPK_count counting 301 times.
+
+ if(ptdlsinfo->ap_prohibited == _TRUE)
+ goto exit;
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+
+ //init peer sta_info
+ ptdls_sta = rtw_get_stainfo(pstapriv, mac_addr);
+ if(ptdls_sta==NULL)
+ {
+ ptdls_sta = rtw_alloc_stainfo(pstapriv, mac_addr);
+ if(ptdls_sta)
+ {
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ if(!(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE))
+ ptdlsinfo->sta_cnt++;
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ if( ptdlsinfo->sta_cnt == (NUM_STA - 2) ) // -2: AP + BC/MC sta
+ {
+ ptdlsinfo->sta_maximum = _TRUE;
+ }
+ }
+ else
+ {
+ rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ }
+
+ if(ptdls_sta){
+ ptdls_sta->tdls_sta_state |= TDLS_RESPONDER_STATE;
+ //for tdls; ptdls_sta->aid is used to fill dialogtoken
+ ptdls_sta->dialog = dialogtoken;
+ dialogtoken = (dialogtoken+1)%256;
+ ptdls_sta->TDLS_PeerKey_Lifetime = timeout_interval;
+ _set_timer( &ptdls_sta->handshake_timer, TDLS_HANDSHAKE_TIME );
+ }
+
+ pattrib->qsel=pattrib->priority;
+ if(rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_SETUP_REQUEST) !=_SUCCESS ){
+ rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+}
+
+void issue_tdls_teardown(_adapter *padapter, u8 *mac_addr)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *ptdls_sta=NULL;
+ _irqL irqL;
+
+ ptdls_sta = rtw_get_stainfo(pstapriv, mac_addr);
+ if(ptdls_sta==NULL){
+ DBG_871X("issue tdls teardown unsuccessful\n");
+ return;
+ }else{
+ ptdls_sta->tdls_sta_state=TDLS_STATE_NONE;
+ }
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_TEARDOWN) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+ if(ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE){
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
+ }
+
+ if( ptdls_sta->timer_flag == 1 )
+ {
+ _enter_critical_bh(&(padapter->tdlsinfo.hdl_lock), &irqL);
+ ptdls_sta->timer_flag = 2;
+ _exit_critical_bh(&(padapter->tdlsinfo.hdl_lock), &irqL);
+ }
+ else
+ rtw_tdls_cmd(padapter, mac_addr, TDLS_FREE_STA );
+
+
+exit:
+
+ return;
+}
+
+void issue_tdls_dis_req(_adapter *padapter, u8 *mac_addr)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ u8 baddr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ if(mac_addr == NULL)
+ _rtw_memcpy(pattrib->dst, baddr, ETH_ALEN);
+ else
+ _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
+
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_DISCOVERY_REQUEST) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+ DBG_871X("issue tdls dis req\n");
+
+exit:
+
+ return;
+}
+
+void issue_tdls_setup_rsp(_adapter *padapter, union recv_frame *precv_frame)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct rx_pkt_attrib *rx_pkt_pattrib = &precv_frame->u.hdr.attrib;
+ _irqL irqL;
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, rx_pkt_pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, rx_pkt_pattrib->bssid, ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_SETUP_RESPONSE) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+
+}
+
+void issue_tdls_setup_cfm(_adapter *padapter, union recv_frame *precv_frame)
+{
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct sta_info *ptdls_sta=NULL;
+ _irqL irqL;
+
+ struct rx_pkt_attrib *rx_pkt_pattrib = & precv_frame->u.hdr.attrib;
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, rx_pkt_pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, rx_pkt_pattrib->bssid, ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_SETUP_CONFIRM) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+
+}
+
+//TDLS Discovery Response frame is a management action frame
+void issue_tdls_dis_rsp(_adapter *padapter, union recv_frame *precv_frame, u8 dialog)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ unsigned short *fctrl;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+
+ struct rx_pkt_attrib *rx_pkt_pattrib = &precv_frame->u.hdr.attrib;
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+ update_mgntframe_attrib(padapter, pattrib);
+
+ _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+ fctrl = &(pwlanhdr->frame_ctl);
+ *(fctrl) = 0;
+
+ // unicast probe request frame
+ _rtw_memcpy(pwlanhdr->addr1, rx_pkt_pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pattrib->dst, pwlanhdr->addr1, ETH_ALEN);
+
+ _rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
+ _rtw_memcpy(pattrib->src, pwlanhdr->addr2, ETH_ALEN);
+
+ _rtw_memcpy(pwlanhdr->addr3, rx_pkt_pattrib->bssid, ETH_ALEN);
+ _rtw_memcpy(pattrib->ra, pwlanhdr->addr3, ETH_ALEN);
+
+ SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
+ pmlmeext->mgnt_seq++;
+ SetFrameSubType(pframe, WIFI_ACTION);
+
+ pframe += sizeof (struct rtw_ieee80211_hdr_3addr);
+ pattrib->pktlen = sizeof (struct rtw_ieee80211_hdr_3addr);
+
+ rtw_build_tdls_dis_rsp_ies(padapter, pmgntframe, pframe, dialog);
+
+ pattrib->nr_frags = 1;
+ pattrib->last_txcmdsz = pattrib->pktlen;
+
+ dump_mgntframe(padapter, pmgntframe);
+
+ return;
+}
+
+void issue_tdls_peer_traffic_indication(_adapter *padapter, struct sta_info *ptdls_sta)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+
+ static u8 dialogtoken=0;
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, ptdls_sta->hwaddr, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ //for tdls; pattrib->nr_frags is used to fill dialogtoken
+ ptdls_sta->dialog = dialogtoken;
+ dialogtoken = (dialogtoken+1)%256;
+ //PTI frame's priority should be AC_VO
+ pattrib->priority = 7;
+
+ update_tdls_attrib(padapter, pattrib);
+ pattrib->qsel=pattrib->priority;
+ if (rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_PEER_TRAFFIC_INDICATION) != _SUCCESS) {
+ rtw_free_xmitbuf(pxmitpriv, pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+}
+
+void issue_tdls_ch_switch_req(_adapter *padapter, u8 *mac_addr)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+
+ pattrib->qsel=pattrib->priority;
+ if(rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_CHANNEL_SWITCH_REQUEST) !=_SUCCESS ){
+ rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+}
+
+void issue_tdls_ch_switch_rsp(_adapter *padapter, u8 *mac_addr)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+
+ _irqL irqL;
+
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ return;
+ }
+
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+
+ pmgntframe->frame_tag = DATA_FRAMETAG;
+ pattrib->ether_type = 0x890d;
+ pattrib->pctrl =0;
+
+ _rtw_memcpy(pattrib->dst, mac_addr, ETH_ALEN);
+ _rtw_memcpy(pattrib->src, myid(&(padapter->eeprompriv)), ETH_ALEN);
+
+ _rtw_memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+
+ update_tdls_attrib(padapter, pattrib);
+
+ pattrib->qsel=pattrib->priority;
+/*
+ _enter_critical_bh(&pxmitpriv->lock, &irqL);
+ if(xmitframe_enqueue_for_tdls_sleeping_sta(padapter, pmgntframe)==_TRUE){
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
+ return _FALSE;
+ }
+*/
+ if(rtw_xmit_tdls_coalesce(padapter, pmgntframe, TDLS_CHANNEL_SWITCH_RESPONSE) !=_SUCCESS ){
+ rtw_free_xmitbuf(pxmitpriv,pmgntframe->pxmitbuf);
+ rtw_free_xmitframe(pxmitpriv, pmgntframe);
+ goto exit;
+ }
+ rtw_dump_xframe(padapter, pmgntframe);
+
+exit:
+
+ return;
+}
+
+sint On_TDLS_Dis_Rsp(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct sta_info *ptdls_sta = NULL, *psta = rtw_get_stainfo(&(adapter->stapriv), get_bssid(&(adapter->mlmepriv)));
+ struct recv_priv *precvpriv = &(adapter->recvpriv);
+ u8 *ptr = precv_frame->u.hdr.rx_data, *psa;
+ struct rx_pkt_attrib *pattrib = &(precv_frame->u.hdr.attrib);
+ struct tdls_info *ptdlsinfo = &(adapter->tdlsinfo);
+ u8 empty_addr[ETH_ALEN] = { 0x00 };
+ int UndecoratedSmoothedPWDB;
+
+
+ //WFDTDLS: for sigma test, not to setup direct link automatically
+ ptdlsinfo->dev_discovered = 1;
+
+#ifdef CONFIG_TDLS_AUTOSETUP
+ psa = get_sa(ptr);
+ ptdls_sta = rtw_get_stainfo(&(adapter->stapriv), psa);
+
+ if(ptdls_sta != NULL)
+ {
+ ptdls_sta->tdls_sta_state |= TDLS_ALIVE_STATE;
+
+ //Record the tdls sta with lowest signal strength
+ if( (ptdlsinfo->sta_maximum == _TRUE) && (ptdls_sta->alive_count >= 1) )
+ {
+ if( _rtw_memcmp(ptdlsinfo->ss_record.macaddr, empty_addr, ETH_ALEN) )
+ {
+ _rtw_memcpy(ptdlsinfo->ss_record.macaddr, psa, ETH_ALEN);
+ ptdlsinfo->ss_record.RxPWDBAll = pattrib->RxPWDBAll;
+ }
+ else
+ {
+ if( ptdlsinfo->ss_record.RxPWDBAll < pattrib->RxPWDBAll )
+ {
+ _rtw_memcpy(ptdlsinfo->ss_record.macaddr, psa, ETH_ALEN);
+ ptdlsinfo->ss_record.RxPWDBAll = pattrib->RxPWDBAll;
+ }
+ }
+ }
+
+ }
+ else
+ {
+ if( ptdlsinfo->sta_maximum == _TRUE)
+ {
+ if( _rtw_memcmp( ptdlsinfo->ss_record.macaddr, empty_addr, ETH_ALEN ) )
+ {
+ //All traffics are busy, do not set up another direct link.
+ return _FAIL;
+ }
+ else
+ {
+ if( pattrib->RxPWDBAll > ptdlsinfo->ss_record.RxPWDBAll )
+ {
+ issue_tdls_teardown(adapter, ptdlsinfo->ss_record.macaddr);
+ }
+ else
+ {
+ return _FAIL;
+ }
+ }
+ }
+
+ rtw_hal_get_def_var(adapter, HAL_DEF_UNDERCORATEDSMOOTHEDPWDB, &UndecoratedSmoothedPWDB);
+
+ if( pattrib->RxPWDBAll + TDLS_SIGNAL_THRESH >= UndecoratedSmoothedPWDB);
+ {
+ DBG_871X("pattrib->RxPWDBAll=%d, pdmpriv->UndecoratedSmoothedPWDB=%d\n", pattrib->RxPWDBAll, UndecoratedSmoothedPWDB);
+ issue_tdls_setup_req(adapter, psa);
+ }
+ }
+#endif //CONFIG_TDLS_AUTOSETUP
+
+ return _SUCCESS;
+}
+
+sint On_TDLS_Setup_Req(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
+ u8 *psa, *pmyid;
+ struct sta_info *ptdls_sta= NULL;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
+ struct security_priv *psecuritypriv = &adapter->securitypriv;
+ _irqL irqL;
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ u8 *prsnie, *ppairwise_cipher;
+ u8 i, k, pairwise_count;
+ u8 ccmp_have=0, rsnie_have=0;
+ u16 j;
+ u8 SNonce[32];
+ u32 *timeout_interval;
+ sint parsing_length; //frame body length, without icv_len
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 FIXED_IE = 5;
+ unsigned char supportRate[16];
+ int supportRateNum = 0;
+
+ psa = get_sa(ptr);
+ ptdls_sta = rtw_get_stainfo(pstapriv, psa);
+
+ pmyid=myid(&(adapter->eeprompriv));
+ ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
+ parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
+ -prx_pkt_attrib->hdrlen
+ -prx_pkt_attrib->iv_len
+ -prx_pkt_attrib->icv_len
+ -LLC_HEADER_SIZE
+ -ETH_TYPE_LEN
+ -PAYLOAD_TYPE_LEN
+ -FIXED_IE;
+
+ if(ptdlsinfo->ap_prohibited == _TRUE)
+ {
+ goto exit;
+ }
+
+ if(ptdls_sta==NULL){
+ ptdls_sta = rtw_alloc_stainfo(pstapriv, psa);
+ }else{
+ if(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE){
+ //If the direct link is already set up
+ //Process as re-setup after tear down
+ DBG_871X("re-setup a direct link\n");
+ }
+ //already receiving TDLS setup request
+ else if(ptdls_sta->tdls_sta_state & TDLS_INITIATOR_STATE){
+ DBG_871X("receive duplicated TDLS setup request frame in handshaking\n");
+ goto exit;
+ }
+ //When receiving and sending setup_req to the same link at the same time, STA with higher MAC_addr would be initiator
+ //following is to check out MAC_addr
+ else if(ptdls_sta->tdls_sta_state & TDLS_RESPONDER_STATE){
+ DBG_871X("receive setup_req after sending setup_req\n");
+ for (i=0;i<6;i++){
+ if(*(pmyid+i)==*(psa+i)){
+ }
+ else if(*(pmyid+i)>*(psa+i)){
+ goto exit;
+ }else if(*(pmyid+i)<*(psa+i)){
+ ptdls_sta->tdls_sta_state=TDLS_INITIATOR_STATE;
+ break;
+ }
+ }
+ }
+ }
+
+ if(ptdls_sta)
+ {
+ ptdls_sta->dialog = *(ptr+2); //copy dialog token
+ ptdls_sta->stat_code = 0;
+
+ //parsing information element
+ for(j=FIXED_IE; j<parsing_length;){
+
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+
+ switch (pIE->ElementID)
+ {
+ case _SUPPORTEDRATES_IE_:
+ _rtw_memcpy(supportRate, pIE->data, pIE->Length);
+ supportRateNum = pIE->Length;
+ break;
+ case _COUNTRY_IE_:
+ break;
+ case _EXT_SUPPORTEDRATES_IE_:
+ if(supportRateNum<=sizeof(supportRate))
+ {
+ _rtw_memcpy(supportRate+supportRateNum, pIE->data, pIE->Length);
+ supportRateNum += pIE->Length;
+ }
+ break;
+ case _SUPPORTED_CH_IE_:
+ break;
+ case _RSN_IE_2_:
+ rsnie_have=1;
+ if(prx_pkt_attrib->encrypt){
+ prsnie=(u8*)pIE;
+ //check whether initiator STA has CCMP pairwise_cipher.
+ ppairwise_cipher=prsnie+10;
+ _rtw_memcpy(&pairwise_count, (u16*)(ppairwise_cipher-2), 1);
+ for(k=0;k<pairwise_count;k++){
+ if(_rtw_memcmp( ppairwise_cipher+4*k, RSN_CIPHER_SUITE_CCMP, 4)==_TRUE)
+ ccmp_have=1;
+ }
+ if(ccmp_have==0){
+ //invalid contents of RSNIE
+ ptdls_sta->stat_code=72;
+ }
+ }
+ break;
+ case _EXT_CAP_IE_:
+ break;
+ case _VENDOR_SPECIFIC_IE_:
+ break;
+ case _FTIE_:
+ if(prx_pkt_attrib->encrypt)
+ _rtw_memcpy(SNonce, (ptr+j+52), 32);
+ break;
+ case _TIMEOUT_ITVL_IE_:
+ if(prx_pkt_attrib->encrypt)
+ timeout_interval = (u32 *)(ptr+j+3);
+ break;
+ case _RIC_Descriptor_IE_:
+ break;
+ case _HT_CAPABILITY_IE_:
+ rtw_tdls_process_ht_cap(adapter, ptdls_sta, pIE->data, pIE->Length);
+ break;
+ case EID_BSSCoexistence:
+ break;
+ case _LINK_ID_IE_:
+ if(_rtw_memcmp(get_bssid(pmlmepriv), pIE->data, 6) == _FALSE)
+ {
+ //not in the same BSS
+ ptdls_sta->stat_code=7;
+ }
+ break;
+ default:
+ break;
+ }
+
+ j += (pIE->Length + 2);
+
+ }
+
+ //update station supportRate
+ ptdls_sta->bssratelen = supportRateNum;
+ _rtw_memcpy(ptdls_sta->bssrateset, supportRate, supportRateNum);
+
+ //check status code
+ //if responder STA has/hasn't security on AP, but request hasn't/has RSNIE, it should reject
+ if(ptdls_sta->stat_code == 0 )
+ {
+ if(rsnie_have && (prx_pkt_attrib->encrypt==0)){
+ //security disabled
+ ptdls_sta->stat_code = 5;
+ }else if(rsnie_have==0 && (prx_pkt_attrib->encrypt)){
+ //request haven't RSNIE
+ ptdls_sta->stat_code = 38;
+ }
+
+#ifdef CONFIG_WFD
+ //WFD test plan version 0.18.2 test item 5.1.5
+ //SoUT does not use TDLS if AP uses weak security
+ if ( adapter->wdinfo.wfd_tdls_enable )
+ {
+ if(rsnie_have && (prx_pkt_attrib->encrypt != _AES_))
+ {
+ ptdls_sta->stat_code = 5;
+ }
+ }
+#endif //CONFIG_WFD
+ }
+
+ ptdls_sta->tdls_sta_state|= TDLS_INITIATOR_STATE;
+ if(prx_pkt_attrib->encrypt){
+ _rtw_memcpy(ptdls_sta->SNonce, SNonce, 32);
+ _rtw_memcpy(&(ptdls_sta->TDLS_PeerKey_Lifetime), timeout_interval, 4);
+ }
+ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ if(!(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE))
+ ptdlsinfo->sta_cnt++;
+ _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
+ if( ptdlsinfo->sta_cnt == (NUM_STA - 2) ) // -2: AP + BC/MC sta
+ {
+ ptdlsinfo->sta_maximum = _TRUE;
+ }
+
+#ifdef CONFIG_WFD
+ rtw_tdls_process_wfd_ie(ptdlsinfo, ptr + FIXED_IE, parsing_length - FIXED_IE);
+#endif // CONFIG_WFD
+
+ }
+ else
+ {
+ goto exit;
+ }
+
+ issue_tdls_setup_rsp(adapter, precv_frame);
+
+ if(ptdls_sta->stat_code==0)
+ {
+ _set_timer( &ptdls_sta->handshake_timer, TDLS_HANDSHAKE_TIME);
+ }
+ else //status code!=0 ; setup unsuccess
+ {
+ free_tdls_sta(adapter, ptdls_sta);
+ }
+
+exit:
+
+ return _FAIL;
+}
+
+sint On_TDLS_Setup_Rsp(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
+ struct sta_info *ptdls_sta= NULL;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ _irqL irqL;
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ u8 *psa;
+ u16 stat_code;
+ sint parsing_length; //frame body length, without icv_len
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 FIXED_IE =7;
+ u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic, *ppairwise_cipher;
+ u16 pairwise_count, j, k;
+ u8 verify_ccmp=0;
+ unsigned char supportRate[16];
+ int supportRateNum = 0;
+
+ psa = get_sa(ptr);
+ ptdls_sta = rtw_get_stainfo(pstapriv, psa);
+
+ if ( NULL == ptdls_sta )
+ {
+ return _FAIL;
+ }
+
+ ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
+ parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
+ -prx_pkt_attrib->hdrlen
+ -prx_pkt_attrib->iv_len
+ -prx_pkt_attrib->icv_len
+ -LLC_HEADER_SIZE
+ -TYPE_LENGTH_FIELD_SIZE
+ -1
+ -FIXED_IE;
+
+ _rtw_memcpy(&stat_code, ptr+2, 2);
+
+ if(stat_code!=0)
+ {
+ DBG_871X( "[%s] status_code = %d, free_tdls_sta\n", __FUNCTION__, stat_code );
+ free_tdls_sta(adapter, ptdls_sta);
+ return _FAIL;
+ }
+
+ stat_code = 0;
+
+ //parsing information element
+ for(j=FIXED_IE; j<parsing_length;)
+ {
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+
+ switch (pIE->ElementID)
+ {
+ case _SUPPORTEDRATES_IE_:
+ _rtw_memcpy(supportRate, pIE->data, pIE->Length);
+ supportRateNum = pIE->Length;
+ break;
+ case _COUNTRY_IE_:
+ break;
+ case _EXT_SUPPORTEDRATES_IE_:
+ if(supportRateNum<=sizeof(supportRate))
+ {
+ _rtw_memcpy(supportRate+supportRateNum, pIE->data, pIE->Length);
+ supportRateNum += pIE->Length;
+ }
+ break;
+ case _SUPPORTED_CH_IE_:
+ break;
+ case _RSN_IE_2_:
+ prsnie=(u8*)pIE;
+ //check whether responder STA has CCMP pairwise_cipher.
+ ppairwise_cipher=prsnie+10;
+ _rtw_memcpy(&pairwise_count, (u16*)(ppairwise_cipher-2), 2);
+ for(k=0;k<pairwise_count;k++){
+ if(_rtw_memcmp( ppairwise_cipher+4*k, RSN_CIPHER_SUITE_CCMP, 4)==_TRUE)
+ verify_ccmp=1;
+ }
+ case _EXT_CAP_IE_:
+ break;
+ case _VENDOR_SPECIFIC_IE_:
+ break;
+ case _FTIE_:
+ pftie=(u8*)pIE;
+ _rtw_memcpy(ptdls_sta->ANonce, (ptr+j+20), 32);
+ break;
+ case _TIMEOUT_ITVL_IE_:
+ ptimeout_ie=(u8*)pIE;
+ break;
+ case _RIC_Descriptor_IE_:
+ break;
+ case _HT_CAPABILITY_IE_:
+ rtw_tdls_process_ht_cap(adapter, ptdls_sta, pIE->data, pIE->Length);
+ break;
+ case EID_BSSCoexistence:
+ break;
+ case _LINK_ID_IE_:
+ plinkid_ie=(u8*)pIE;
+ break;
+ default:
+ break;
+ }
+
+ j += (pIE->Length + 2);
+
+ }
+
+ //update station supportRate
+ ptdls_sta->bssratelen = supportRateNum;
+ _rtw_memcpy(ptdls_sta->bssrateset, supportRate, supportRateNum);
+
+#ifdef CONFIG_WFD
+ rtw_tdls_process_wfd_ie(ptdlsinfo, ptr + FIXED_IE, parsing_length - FIXED_IE);
+#endif // CONFIG_WFD
+
+ if(stat_code != 0)
+ {
+ ptdls_sta->stat_code = stat_code;
+ }
+ else
+ {
+ if(prx_pkt_attrib->encrypt)
+ {
+ if(verify_ccmp==1)
+ {
+ wpa_tdls_generate_tpk(adapter, ptdls_sta);
+ ptdls_sta->stat_code=0;
+ if(tdls_verify_mic(ptdls_sta->tpk.kck, 2, plinkid_ie, prsnie, ptimeout_ie, pftie)==0) //0: Invalid, 1: valid
+ {
+ free_tdls_sta(adapter, ptdls_sta);
+ return _FAIL;
+ }
+ }
+ else
+ {
+ ptdls_sta->stat_code=72; //invalide contents of RSNIE
+ }
+
+ }else{
+ ptdls_sta->stat_code=0;
+ }
+ }
+
+ DBG_871X("issue_tdls_setup_cfm\n");
+ issue_tdls_setup_cfm(adapter, precv_frame);
+
+ if(ptdls_sta->stat_code==0)
+ {
+ ptdlsinfo->setup_state = TDLS_LINKED_STATE;
+
+ if( ptdls_sta->tdls_sta_state & TDLS_RESPONDER_STATE )
+ {
+ ptdls_sta->tdls_sta_state |= TDLS_LINKED_STATE;
+ _cancel_timer_ex( &ptdls_sta->handshake_timer);
+#ifdef CONFIG_TDLS_AUTOCHECKALIVE
+ _set_timer( &ptdls_sta->alive_timer1, TDLS_ALIVE_TIMER_PH1);
+#endif //CONFIG_TDLS_AUTOSETUP
+ }
+
+ rtw_tdls_set_mac_id(ptdlsinfo, ptdls_sta);
+ rtw_tdls_set_key(adapter, prx_pkt_attrib, ptdls_sta);
+
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_WRCR);
+
+ }
+ else //status code!=0 ; setup unsuccessful
+ {
+ free_tdls_sta(adapter, ptdls_sta);
+ }
+
+ return _FAIL;
+
+}
+
+sint On_TDLS_Setup_Cfm(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
+ struct sta_info *ptdls_sta= NULL;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ _irqL irqL;
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ u8 *psa;
+ u16 stat_code;
+ sint parsing_length;
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 FIXED_IE =5;
+ u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic, *ppairwise_cipher;
+ u16 j, pairwise_count;
+
+ psa = get_sa(ptr);
+ ptdls_sta = rtw_get_stainfo(pstapriv, psa);
+
+ ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
+ parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
+ -prx_pkt_attrib->hdrlen
+ -prx_pkt_attrib->iv_len
+ -prx_pkt_attrib->icv_len
+ -LLC_HEADER_SIZE
+ -ETH_TYPE_LEN
+ -PAYLOAD_TYPE_LEN
+ -FIXED_IE;
+ _rtw_memcpy(&stat_code, ptr+2, 2);
+
+ if(stat_code!=0){
+ DBG_871X( "[%s] stat_code = %d\n, free_tdls_sta", __FUNCTION__, stat_code );
+ free_tdls_sta(adapter, ptdls_sta);
+ return _FAIL;
+ }
+
+ if(prx_pkt_attrib->encrypt){
+ //parsing information element
+ for(j=FIXED_IE; j<parsing_length;){
+
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+
+ switch (pIE->ElementID)
+ {
+ case _RSN_IE_2_:
+ prsnie=(u8*)pIE;
+ break;
+ case _VENDOR_SPECIFIC_IE_:
+ break;
+ case _FTIE_:
+ pftie=(u8*)pIE;
+ break;
+ case _TIMEOUT_ITVL_IE_:
+ ptimeout_ie=(u8*)pIE;
+ break;
+ case _HT_EXTRA_INFO_IE_:
+ break;
+ case _LINK_ID_IE_:
+ plinkid_ie=(u8*)pIE;
+ break;
+ default:
+ break;
+ }
+
+ j += (pIE->Length + 2);
+
+ }
+
+ //verify mic in FTIE MIC field
+ if(tdls_verify_mic(ptdls_sta->tpk.kck, 3, plinkid_ie, prsnie, ptimeout_ie, pftie)==0){ //0: Invalid, 1: Valid
+ free_tdls_sta(adapter, ptdls_sta);
+ return _FAIL;
+ }
+
+ }
+
+ ptdlsinfo->setup_state = TDLS_LINKED_STATE;
+ if( ptdls_sta->tdls_sta_state & TDLS_INITIATOR_STATE )
+ {
+ ptdls_sta->tdls_sta_state|=TDLS_LINKED_STATE;
+ _cancel_timer_ex( &ptdls_sta->handshake_timer);
+#ifdef CONFIG_TDLS_AUTOCHECKALIVE
+ _set_timer( &ptdls_sta->alive_timer1, TDLS_ALIVE_TIMER_PH1);
+#endif //CONFIG_TDLS_AUTOCHECKALIVE
+ }
+
+ rtw_tdls_set_mac_id(ptdlsinfo, ptdls_sta);
+ rtw_tdls_set_key(adapter, prx_pkt_attrib, ptdls_sta);
+
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_WRCR);
+
+ return _FAIL;
+
+}
+
+sint On_TDLS_Dis_Req(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ struct sta_info *psta_ap;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ sint parsing_length; //frame body length, without icv_len
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 FIXED_IE = 3, *dst, *pdialog = NULL;
+ u16 j;
+
+ ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len + LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE + 1;
+ pdialog=ptr+2;
+
+ parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
+ -prx_pkt_attrib->hdrlen
+ -prx_pkt_attrib->iv_len
+ -prx_pkt_attrib->icv_len
+ -LLC_HEADER_SIZE
+ -TYPE_LENGTH_FIELD_SIZE
+ -1
+ -FIXED_IE;
+
+ //parsing information element
+ for(j=FIXED_IE; j<parsing_length;){
+
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+
+ switch (pIE->ElementID)
+ {
+ case _LINK_ID_IE_:
+ psta_ap = rtw_get_stainfo(pstapriv, pIE->data);
+ if(psta_ap == NULL)
+ {
+ goto exit;
+ }
+ dst = pIE->data + 12;
+ if( (MacAddr_isBcst(dst) == _FALSE) && (_rtw_memcmp(myid(&(adapter->eeprompriv)), dst, 6) == _FALSE) )
+ {
+ goto exit;
+ }
+ break;
+ default:
+ break;
+ }
+
+ j += (pIE->Length + 2);
+
+ }
+
+ //check frame contents
+
+ issue_tdls_dis_rsp(adapter, precv_frame, *(pdialog) );
+
+exit:
+
+ return _FAIL;
+
+}
+
+sint On_TDLS_Teardown(_adapter *adapter, union recv_frame *precv_frame)
+{
+ u8 *psa;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ struct mlme_ext_priv *pmlmeext = &(adapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ struct sta_info *ptdls_sta= NULL;
+ _irqL irqL;
+
+ psa = get_sa(ptr);
+
+ ptdls_sta = rtw_get_stainfo(pstapriv, psa);
+ if(ptdls_sta!=NULL){
+ if(ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE){
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
+ }
+ free_tdls_sta(adapter, ptdls_sta);
+ }
+
+ return _FAIL;
+
+}
+
+u8 TDLS_check_ch_state(uint state){
+ if( (state & TDLS_CH_SWITCH_ON_STATE) &&
+ (state & TDLS_AT_OFF_CH_STATE) &&
+ (state & TDLS_PEER_AT_OFF_STATE) ){
+
+ if(state & TDLS_PEER_SLEEP_STATE)
+ return 2; //U-APSD + ch. switch
+ else
+ return 1; //ch. switch
+ }else
+ return 0;
+}
+
+//we process buffered data for 1. U-APSD, 2. ch. switch, 3. U-APSD + ch. switch here
+sint On_TDLS_Peer_Traffic_Rsp(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct tdls_info *ptdlsinfo = &adapter->tdlsinfo;
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+ struct rx_pkt_attrib *pattrib = & precv_frame->u.hdr.attrib;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ //get peer sta infomation
+ struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->src);
+ u8 wmmps_ac=0, state=TDLS_check_ch_state(ptdls_sta->tdls_sta_state);
+ int i;
+
+ ptdls_sta->sta_stats.rx_data_pkts++;
+
+ //receive peer traffic response frame, sleeping STA wakes up
+ //ptdls_sta->tdls_sta_state &= ~(TDLS_PEER_SLEEP_STATE);
+ process_wmmps_data( adapter, precv_frame);
+
+ // if noticed peer STA wakes up by receiving peer traffic response
+ // and we want to do channel swtiching, then we will transmit channel switch request first
+ if(ptdls_sta->tdls_sta_state & TDLS_APSD_CHSW_STATE){
+ issue_tdls_ch_switch_req(adapter, pattrib->src);
+ ptdls_sta->tdls_sta_state &= ~(TDLS_APSD_CHSW_STATE);
+ return _FAIL;
+ }
+
+ //check 4-AC queue bit
+ if(ptdls_sta->uapsd_vo || ptdls_sta->uapsd_vi || ptdls_sta->uapsd_be || ptdls_sta->uapsd_bk)
+ wmmps_ac=1;
+
+ //if it's a direct link and have buffered frame
+ if(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE){
+ if(wmmps_ac && state)
+ {
+ _irqL irqL;
+ _list *xmitframe_plist, *xmitframe_phead;
+ struct xmit_frame *pxmitframe=NULL;
+
+ _enter_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
+
+ xmitframe_phead = get_list_head(&ptdls_sta->sleep_q);
+ xmitframe_plist = get_next(xmitframe_phead);
+
+ //transmit buffered frames
+ while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
+ {
+ pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
+ xmitframe_plist = get_next(xmitframe_plist);
+ rtw_list_delete(&pxmitframe->list);
+
+ ptdls_sta->sleepq_len--;
+ if(ptdls_sta->sleepq_len>0){
+ pxmitframe->attrib.mdata = 1;
+ pxmitframe->attrib.eosp = 0;
+ }else{
+ pxmitframe->attrib.mdata = 0;
+ pxmitframe->attrib.eosp = 1;
+ }
+ //pxmitframe->attrib.triggered = 1; //maybe doesn't need in TDLS
+ if(rtw_hal_xmit(adapter, pxmitframe) == _TRUE)
+ {
+ rtw_os_xmit_complete(adapter, pxmitframe);
+ }
+
+ }
+
+ if(ptdls_sta->sleepq_len==0)
+ {
+ DBG_871X("no buffered packets for tdls to xmit\n");
+ //on U-APSD + CH. switch state, when there is no buffered date to xmit,
+ // we should go back to base channel
+ if(state==2){
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
+ }else if(ptdls_sta->tdls_sta_state&TDLS_SW_OFF_STATE){
+ ptdls_sta->tdls_sta_state &= ~(TDLS_SW_OFF_STATE);
+ ptdlsinfo->candidate_ch= pmlmeext->cur_channel;
+ issue_tdls_ch_switch_req(adapter, pattrib->src);
+ DBG_871X("issue tdls ch switch req back to base channel\n");
+ }
+
+ }
+ else
+ {
+ DBG_871X("error!psta->sleepq_len=%d\n", ptdls_sta->sleepq_len);
+ ptdls_sta->sleepq_len=0;
+ }
+
+ _exit_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
+
+ }
+
+ }
+
+ return _FAIL;
+}
+
+sint On_TDLS_Ch_Switch_Req(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct sta_info *ptdls_sta= NULL;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ u8 *psa;
+ sint parsing_length;
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 FIXED_IE =3;
+ u16 j;
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+
+ psa = get_sa(ptr);
+ ptdls_sta = rtw_get_stainfo(pstapriv, psa);
+
+ ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
+ parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
+ -prx_pkt_attrib->hdrlen
+ -prx_pkt_attrib->iv_len
+ -prx_pkt_attrib->icv_len
+ -LLC_HEADER_SIZE
+ -ETH_TYPE_LEN
+ -PAYLOAD_TYPE_LEN
+ -FIXED_IE;
+
+ ptdls_sta->off_ch = *(ptr+2);
+
+ //parsing information element
+ for(j=FIXED_IE; j<parsing_length;){
+
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+
+ switch (pIE->ElementID)
+ {
+ case _COUNTRY_IE_:
+ break;
+ case _CH_SWTICH_ANNOUNCE_:
+ break;
+ case _LINK_ID_IE_:
+ break;
+ case _CH_SWITCH_TIMING_:
+ _rtw_memcpy(&ptdls_sta->ch_switch_time, pIE->data, 2);
+ _rtw_memcpy(&ptdls_sta->ch_switch_timeout, pIE->data+2, 2);
+ default:
+ break;
+ }
+
+ j += (pIE->Length + 2);
+
+ }
+
+ //todo: check status
+ ptdls_sta->stat_code=0;
+ ptdls_sta->tdls_sta_state |= TDLS_CH_SWITCH_ON_STATE;
+
+ issue_nulldata(adapter, NULL, 1, 0, 0);
+
+ issue_tdls_ch_switch_rsp(adapter, psa);
+
+ DBG_871X("issue tdls channel switch response\n");
+
+ if((ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE) && ptdls_sta->off_ch==pmlmeext->cur_channel){
+ DBG_871X("back to base channel %x\n", pmlmeext->cur_channel);
+ ptdls_sta->option=7;
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_BASE_CH);
+ }else{
+ ptdls_sta->option=6;
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH);
+ }
+ return _FAIL;
+}
+
+sint On_TDLS_Ch_Switch_Rsp(_adapter *adapter, union recv_frame *precv_frame)
+{
+ struct sta_info *ptdls_sta= NULL;
+ struct sta_priv *pstapriv = &adapter->stapriv;
+ u8 *ptr = precv_frame->u.hdr.rx_data;
+ struct rx_pkt_attrib *prx_pkt_attrib = &precv_frame->u.hdr.attrib;
+ u8 *psa;
+ sint parsing_length;
+ PNDIS_802_11_VARIABLE_IEs pIE;
+ u8 FIXED_IE =4;
+ u16 stat_code, j, switch_time, switch_timeout;
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+
+ psa = get_sa(ptr);
+ ptdls_sta = rtw_get_stainfo(pstapriv, psa);
+
+ //if channel switch is running and receiving Unsolicited TDLS Channel Switch Response,
+ //it will go back to base channel and terminate this channel switch procedure
+ if(ptdls_sta->tdls_sta_state & TDLS_CH_SWITCH_ON_STATE ){
+ if(pmlmeext->cur_channel==ptdls_sta->off_ch){
+ DBG_871X("back to base channel %x\n", pmlmeext->cur_channel);
+ ptdls_sta->option=7;
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH);
+ }else{
+ DBG_871X("receive unsolicited channel switch response \n");
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF);
+ }
+ return _FAIL;
+ }
+
+ //avoiding duplicated or unconditional ch. switch. rsp
+ if((ptdls_sta->tdls_sta_state & TDLS_CH_SW_INITIATOR_STATE) != TDLS_CH_SW_INITIATOR_STATE)
+ return _FAIL;
+
+ ptr +=prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len+LLC_HEADER_SIZE+TYPE_LENGTH_FIELD_SIZE+1;
+ parsing_length= ((union recv_frame *)precv_frame)->u.hdr.len
+ -prx_pkt_attrib->hdrlen
+ -prx_pkt_attrib->iv_len
+ -prx_pkt_attrib->icv_len
+ -LLC_HEADER_SIZE
+ -ETH_TYPE_LEN
+ -PAYLOAD_TYPE_LEN
+ -FIXED_IE;
+
+ _rtw_memcpy(&stat_code, ptr+2, 2);
+
+ if(stat_code!=0){
+ return _FAIL;
+ }
+
+ //parsing information element
+ for(j=FIXED_IE; j<parsing_length;){
+
+ pIE = (PNDIS_802_11_VARIABLE_IEs)(ptr+ j);
+
+ switch (pIE->ElementID)
+ {
+ case _LINK_ID_IE_:
+ break;
+ case _CH_SWITCH_TIMING_:
+ _rtw_memcpy(&switch_time, pIE->data, 2);
+ if(switch_time > ptdls_sta->ch_switch_time)
+ _rtw_memcpy(&ptdls_sta->ch_switch_time, &switch_time, 2);
+
+ _rtw_memcpy(&switch_timeout, pIE->data+2, 2);
+ if(switch_timeout > ptdls_sta->ch_switch_timeout)
+ _rtw_memcpy(&ptdls_sta->ch_switch_timeout, &switch_timeout, 2);
+
+ default:
+ break;
+ }
+
+ j += (pIE->Length + 2);
+
+ }
+
+ ptdls_sta->tdls_sta_state &= ~(TDLS_CH_SW_INITIATOR_STATE);
+ ptdls_sta->tdls_sta_state |=TDLS_CH_SWITCH_ON_STATE;
+
+ //goto set_channel_workitem_callback()
+ ptdls_sta->option=6;
+ rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH);
+
+ return _FAIL;
+}
+
+#ifdef CONFIG_WFD
+void wfd_ie_tdls(_adapter * padapter, u8 *pframe, u32 *pktlen )
+{
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct wifi_display_info *pwfd_info = padapter->tdlsinfo.wfd_info;
+ u8 wfdie[ MAX_WFD_IE_LEN] = { 0x00 };
+ u32 wfdielen = 0;
+
+ // WFD OUI
+ wfdielen = 0;
+ wfdie[ wfdielen++ ] = 0x50;
+ wfdie[ wfdielen++ ] = 0x6F;
+ wfdie[ wfdielen++ ] = 0x9A;
+ wfdie[ wfdielen++ ] = 0x0A; // WFA WFD v1.0
+
+ // Commented by Albert 20110825
+ // According to the WFD Specification, the negotiation request frame should contain 3 WFD attributes
+ // 1. WFD Device Information
+ // 2. Associated BSSID ( Optional )
+ // 3. Local IP Adress ( Optional )
+
+ // WFD Device Information ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_DEVICE_INFO;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0006);
+ wfdielen += 2;
+
+ // Value1:
+ // WFD device information
+ // available for WFD session + Preferred TDLS + WSD ( WFD Service Discovery )
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->wfd_device_type | WFD_DEVINFO_SESSION_AVAIL
+ | WFD_DEVINFO_PC_TDLS | WFD_DEVINFO_WSD);
+ wfdielen += 2;
+
+ // Value2:
+ // Session Management Control Port
+ // Default TCP port for RTSP messages is 554
+ RTW_PUT_BE16(wfdie + wfdielen, pwfd_info->rtsp_ctrlport );
+ wfdielen += 2;
+
+ // Value3:
+ // WFD Device Maximum Throughput
+ // 300Mbps is the maximum throughput
+ RTW_PUT_BE16(wfdie + wfdielen, 300);
+ wfdielen += 2;
+
+ // Associated BSSID ATTR
+ // Type:
+ wfdie[ wfdielen++ ] = WFD_ATTR_ASSOC_BSSID;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0006);
+ wfdielen += 2;
+
+ // Value:
+ // Associated BSSID
+ if ( check_fwstate( pmlmepriv, _FW_LINKED) == _TRUE )
+ {
+ _rtw_memcpy( wfdie + wfdielen, &pmlmepriv->assoc_bssid[ 0 ], ETH_ALEN );
+ }
+ else
+ {
+ _rtw_memset( wfdie + wfdielen, 0x00, ETH_ALEN );
+ }
+
+ // Local IP Address ATTR
+ wfdie[ wfdielen++ ] = WFD_ATTR_LOCAL_IP_ADDR;
+
+ // Length:
+ // Note: In the WFD specification, the size of length field is 2.
+ RTW_PUT_BE16(wfdie + wfdielen, 0x0005);
+ wfdielen += 2;
+
+ // Version:
+ // 0x01: Version1;IPv4
+ wfdie[ wfdielen++ ] = 0x01;
+
+ // IPv4 Address
+ _rtw_memcpy( wfdie + wfdielen, pwfd_info->ip_address, 4 );
+ wfdielen += 4;
+
+ pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, pktlen);
+
+}
+#endif //CONFIG_WFD
+
+void rtw_build_tdls_setup_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct registry_priv *pregistrypriv = &padapter->registrypriv;
+ struct sta_info *ptdls_sta=rtw_get_stainfo( (&padapter->stapriv) , pattrib->dst);
+
+ u8 payload_type = 0x02;
+ u8 category = RTW_WLAN_CATEGORY_TDLS;
+ u8 action = TDLS_SETUP_REQUEST;
+ u8 bssrate[NDIS_802_11_LENGTH_RATES_EX]; //Use NDIS_802_11_LENGTH_RATES_EX in order to call func.rtw_set_supported_rate
+ int bssrate_len = 0, i = 0 ;
+ u8 more_supportedrates = 0;
+ unsigned int ie_len;
+ u8 *p;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ u8 link_id_addr[18] = {0};
+ u8 iedata=0;
+ u8 sup_ch[ 30 * 2 ] = {0x00 }, sup_ch_idx = 0, idx_5g = 2; //For supported channel
+ u8 timeout_itvl[5]; //set timeout interval to maximum value
+ u32 time;
+
+ //SNonce
+ if(pattrib->encrypt){
+ for(i=0;i<8;i++){
+ time=rtw_get_current_time();
+ _rtw_memcpy(&ptdls_sta->SNonce[4*i], (u8 *)&time, 4);
+ }
+ }
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, dialog token
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
+
+ //capability
+ _rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
+
+ if(pattrib->encrypt)
+ *pframe =*pframe | BIT(4);
+ pframe += 2;
+ pattrib->pktlen += 2;
+
+ //supported rates
+ rtw_set_supported_rate(bssrate, WIRELESS_11BG_24N);
+ bssrate_len = IEEE80211_CCK_RATE_LEN + IEEE80211_NUM_OFDM_RATESLEN;
+
+ if (bssrate_len > 8)
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
+ more_supportedrates = 1;
+ }
+ else
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
+ }
+
+ //country(optional)
+ //extended supported rates
+ if(more_supportedrates==1){
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
+ }
+
+ //supported channels
+ pframe = rtw_tdls_set_sup_ch(pmlmeext, pframe, pattrib);
+
+ // SRC IE
+ pframe = rtw_set_ie( pframe, _SRC_IE_, 16, TDLS_SRC, &(pattrib->pktlen));
+
+ //RSNIE
+ if(pattrib->encrypt)
+ pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
+
+ //extended capabilities
+ pframe = rtw_set_ie(pframe, _EXT_CAP_IE_ , 5, TDLS_EXT_CAPIE, &(pattrib->pktlen));
+
+ //QoS capability(WMM_IE)
+ pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, 7, TDLS_WMMIE, &(pattrib->pktlen));
+
+
+ if(pattrib->encrypt){
+ //FTIE
+ _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
+ _rtw_memset(pframe, _FTIE_, 1); //version
+ _rtw_memset((pframe+1), 82, 1); //length
+ _rtw_memcpy((pframe+52), ptdls_sta->SNonce, 32);
+ pframe += 84;
+ pattrib->pktlen += 84;
+
+ //Timeout interval
+ timeout_itvl[0]=0x02;
+ _rtw_memcpy(timeout_itvl+1, (u8 *)(&ptdls_sta->TDLS_PeerKey_Lifetime), 4);
+ pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
+ }
+
+ //Sup_reg_classes(optional)
+ //HT capabilities
+ pframe = rtw_tdls_set_ht_cap(padapter, pframe, pattrib);
+
+ //20/40 BSS coexistence
+ if(pmlmepriv->num_FortyMHzIntolerant>0)
+ iedata |= BIT(2);//20 MHz BSS Width Request
+ pframe = rtw_set_ie(pframe, EID_BSSCoexistence, 1, &iedata, &(pattrib->pktlen));
+
+ //Link identifier
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+#ifdef CONFIG_WFD
+ wfd_ie_tdls( padapter, pframe, &(pattrib->pktlen) );
+#endif //CONFIG_WFD
+
+}
+
+void rtw_build_tdls_setup_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct sta_info *ptdls_sta;
+ struct registry_priv *pregistrypriv = &padapter->registrypriv;
+
+ u8 payload_type = 0x02;
+ unsigned char category = RTW_WLAN_CATEGORY_TDLS;
+ unsigned char action = TDLS_SETUP_RESPONSE;
+ unsigned char bssrate[NDIS_802_11_LENGTH_RATES_EX];
+ int bssrate_len = 0;
+ u8 more_supportedrates = 0;
+ unsigned int ie_len;
+ unsigned char *p;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ u8 link_id_addr[18] = {0};
+ u8 iedata=0;
+ u8 timeout_itvl[5]; //setup response timeout interval will copy from request
+ u8 ANonce[32]; //maybe it can put in ontdls_req
+ u8 k; //for random ANonce
+ u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic;
+ u32 time;
+
+ ptdls_sta = rtw_get_stainfo( &(padapter->stapriv) , pattrib->dst);
+
+ if(ptdls_sta == NULL )
+ {
+ DBG_871X("[%s] %d\n", __FUNCTION__, __LINE__);
+ return;
+ }
+
+ if(pattrib->encrypt){
+ for(k=0;k<8;k++){
+ time=rtw_get_current_time();
+ _rtw_memcpy(&ptdls_sta->ANonce[4*k], (u8*)&time, 4);
+ }
+ }
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, status code
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 2, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
+
+ if(ptdls_sta->stat_code!=0) //invalid setup request
+ {
+ DBG_871X("ptdls_sta->stat_code:%04x \n", ptdls_sta->stat_code);
+ return;
+ }
+
+ //dialog token
+ pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
+
+ //capability
+ _rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
+
+ if(pattrib->encrypt )
+ *pframe =*pframe | BIT(4);
+ pframe += 2;
+ pattrib->pktlen += 2;
+
+ //supported rates
+ rtw_set_supported_rate(bssrate, WIRELESS_11BG_24N);
+ bssrate_len = IEEE80211_CCK_RATE_LEN + IEEE80211_NUM_OFDM_RATESLEN;
+
+ if (bssrate_len > 8)
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
+ more_supportedrates = 1;
+ }
+ else
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
+ }
+
+ //country(optional)
+ //extended supported rates
+ if(more_supportedrates==1){
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
+ }
+
+ //supported channels
+ pframe = rtw_tdls_set_sup_ch(pmlmeext, pframe, pattrib);
+
+ // SRC IE
+ pframe = rtw_set_ie(pframe, _SRC_IE_ , 16, TDLS_SRC, &(pattrib->pktlen));
+
+ //RSNIE
+ if(pattrib->encrypt){
+ prsnie = pframe;
+ pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
+ }
+
+ //extended capabilities
+ pframe = rtw_set_ie(pframe, _EXT_CAP_IE_ , 5, TDLS_EXT_CAPIE, &(pattrib->pktlen));
+
+ //QoS capability(WMM_IE)
+ pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, 7, TDLS_WMMIE, &(pattrib->pktlen));
+
+ if(pattrib->encrypt){
+ wpa_tdls_generate_tpk(padapter, ptdls_sta);
+
+ //FTIE
+ pftie = pframe;
+ pftie_mic = pframe+4;
+ _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
+ _rtw_memset(pframe, _FTIE_, 1); //version
+ _rtw_memset((pframe+1), 82, 1); //length
+ _rtw_memcpy((pframe+20), ptdls_sta->ANonce, 32);
+ _rtw_memcpy((pframe+52), ptdls_sta->SNonce, 32);
+ pframe += 84;
+ pattrib->pktlen += 84;
+
+ //Timeout interval
+ ptimeout_ie = pframe;
+ timeout_itvl[0]=0x02;
+ _rtw_memcpy(timeout_itvl+1, (u8 *)(&ptdls_sta->TDLS_PeerKey_Lifetime), 4);
+ pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
+ }
+
+ //Sup_reg_classes(optional)
+ //HT capabilities
+ pframe = rtw_tdls_set_ht_cap(padapter, pframe, pattrib);
+
+ //20/40 BSS coexistence
+ if(pmlmepriv->num_FortyMHzIntolerant>0)
+ iedata |= BIT(2);//20 MHz BSS Width Request
+ pframe = rtw_set_ie(pframe, EID_BSSCoexistence, 1, &iedata, &(pattrib->pktlen));
+
+ //Link identifier
+ plinkid_ie = pframe;
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->dst, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->src, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+ //fill FTIE mic
+ if(pattrib->encrypt)
+ wpa_tdls_ftie_mic(ptdls_sta->tpk.kck, 2, plinkid_ie, prsnie, ptimeout_ie, pftie, pftie_mic);
+
+#ifdef CONFIG_WFD
+ wfd_ie_tdls( padapter, pframe, &(pattrib->pktlen) );
+#endif //CONFIG_WFD
+
+}
+
+void rtw_build_tdls_setup_cfm_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct sta_info *ptdls_sta=rtw_get_stainfo( (&padapter->stapriv) , pattrib->dst);
+
+ u8 payload_type = 0x02;
+ unsigned char category = RTW_WLAN_CATEGORY_TDLS;
+ unsigned char action = TDLS_SETUP_CONFIRM;
+ u8 more_supportedrates = 0;
+ unsigned int ie_len;
+ unsigned char *p;
+ u8 timeout_itvl[5]; //set timeout interval to maximum value
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ u8 link_id_addr[18] = {0};
+ u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic;
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, status code, dialog token
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 2, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
+
+ if(ptdls_sta->stat_code!=0) //invalid setup request
+ return;
+
+ //RSNIE
+ if(pattrib->encrypt){
+ prsnie = pframe;
+ pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
+ }
+
+ //EDCA param set; WMM param ele.
+ if(pattrib->encrypt){
+ //FTIE
+ pftie = pframe;
+ pftie_mic = pframe+4;
+ _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
+ _rtw_memset(pframe, _FTIE_, 1); //version
+ _rtw_memset((pframe+1), 82, 1); //length
+ _rtw_memcpy((pframe+20), ptdls_sta->ANonce, 32);
+ _rtw_memcpy((pframe+52), ptdls_sta->SNonce, 32);
+ pframe += 84;
+ pattrib->pktlen += 84;
+
+ //Timeout interval
+ ptimeout_ie = pframe;
+ timeout_itvl[0]=0x02;
+ _rtw_memcpy(timeout_itvl+1, (u8 *)(&ptdls_sta->TDLS_PeerKey_Lifetime), 4);
+ ptdls_sta->TPK_count=0;
+ _set_timer(&ptdls_sta->TPK_timer, ptdls_sta->TDLS_PeerKey_Lifetime/TPK_RESEND_COUNT);
+ pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
+ }
+
+ //HT operation; todo
+ //Link identifier
+ plinkid_ie = pframe;
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+ //fill FTIE mic
+ if(pattrib->encrypt)
+ wpa_tdls_ftie_mic(ptdls_sta->tpk.kck, 3, plinkid_ie, prsnie, ptimeout_ie, pftie, pftie_mic);
+
+}
+
+void rtw_build_tdls_teardown_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ u8 payload_type = 0x02;
+ unsigned char category = RTW_WLAN_CATEGORY_TDLS;
+ unsigned char action = TDLS_TEARDOWN;
+ u8 link_id_addr[18] = {0};
+
+ struct sta_info *ptdls_sta = rtw_get_stainfo( &(padapter->stapriv) , pattrib->dst);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, reason code
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
+
+ //Link identifier
+ if(ptdls_sta->tdls_sta_state & TDLS_INITIATOR_STATE){
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ }else if(ptdls_sta->tdls_sta_state & TDLS_RESPONDER_STATE){
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->dst, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->src, 6);
+ }
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+}
+
+void rtw_build_tdls_dis_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ u8 payload_type = 0x02;
+ u8 category = RTW_WLAN_CATEGORY_TDLS;
+ u8 action = TDLS_DISCOVERY_REQUEST;
+ u8 link_id_addr[18] = {0};
+ static u8 dialogtoken=0;
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, reason code
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(dialogtoken), &(pattrib->pktlen));
+ dialogtoken = (dialogtoken+1)%256;
+
+ //Link identifier
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+}
+
+void rtw_build_tdls_dis_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe, u8 dialog)
+{
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct registry_priv *pregistrypriv = &padapter->registrypriv;
+
+ u8 category = RTW_WLAN_CATEGORY_PUBLIC;
+ u8 action = TDLS_DISCOVERY_RESPONSE;
+ u8 bssrate[NDIS_802_11_LENGTH_RATES_EX];
+ int bssrate_len = 0;
+ u8 more_supportedrates = 0;
+ u8 *p;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ u8 link_id_addr[18] = {0};
+ u8 iedata=0;
+ u8 timeout_itvl[5]; //set timeout interval to maximum value
+ u32 timeout_interval= TPK_RESEND_COUNT * 1000;
+
+ //category, action, dialog token
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(dialog), &(pattrib->pktlen));
+
+ //capability
+ _rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
+
+ if(pattrib->encrypt)
+ *pframe =*pframe | BIT(4);
+ pframe += 2;
+ pattrib->pktlen += 2;
+
+ //supported rates
+ rtw_set_supported_rate(bssrate, WIRELESS_11BG_24N);
+ bssrate_len = IEEE80211_CCK_RATE_LEN + IEEE80211_NUM_OFDM_RATESLEN;
+
+ if (bssrate_len > 8)
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
+ more_supportedrates = 1;
+ }
+ else
+ {
+ pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
+ }
+
+ //extended supported rates
+ if(more_supportedrates==1){
+ pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
+ }
+
+ //supported channels
+ pframe = rtw_tdls_set_sup_ch(pmlmeext, pframe, pattrib);
+
+ //RSNIE
+ if(pattrib->encrypt)
+ pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
+
+ //extended capability
+ pframe = rtw_set_ie(pframe, _EXT_CAP_IE_ , 5, TDLS_EXT_CAPIE, &(pattrib->pktlen));
+
+ if(pattrib->encrypt){
+ //FTIE
+ _rtw_memset(pframe, 0, 84); //All fields shall be set to 0
+ _rtw_memset(pframe, _FTIE_, 1); //version
+ _rtw_memset((pframe+1), 82, 1); //length
+ pframe += 84;
+ pattrib->pktlen += 84;
+
+ //Timeout interval
+ timeout_itvl[0]=0x02;
+ _rtw_memcpy(timeout_itvl+1, &timeout_interval, 4);
+ pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
+ }
+
+ //Sup_reg_classes(optional)
+ //HT capabilities
+ pframe = rtw_tdls_set_ht_cap(padapter, pframe, pattrib);
+
+ //20/40 BSS coexistence
+ if(pmlmepriv->num_FortyMHzIntolerant>0)
+ iedata |= BIT(2);//20 MHz BSS Width Request
+ pframe = rtw_set_ie(pframe, EID_BSSCoexistence, 1, &iedata, &(pattrib->pktlen));
+
+ //Link identifier
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->dst, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->src, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+}
+
+void rtw_build_tdls_peer_traffic_indication_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ u8 payload_type = 0x02;
+ unsigned char category = RTW_WLAN_CATEGORY_TDLS;
+ unsigned char action = TDLS_PEER_TRAFFIC_INDICATION;
+
+ u8 link_id_addr[18] = {0};
+ u8 AC_queue=0;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, reason code
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
+
+ //Link identifier
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+ //PTI control
+ //PU buffer status
+ if(ptdls_sta->uapsd_bk&BIT(1))
+ AC_queue=BIT(0);
+ if(ptdls_sta->uapsd_be&BIT(1))
+ AC_queue=BIT(1);
+ if(ptdls_sta->uapsd_vi&BIT(1))
+ AC_queue=BIT(2);
+ if(ptdls_sta->uapsd_vo&BIT(1))
+ AC_queue=BIT(3);
+ pframe = rtw_set_ie(pframe, _PTI_BUFFER_STATUS_, 1, &AC_queue, &(pattrib->pktlen));
+
+}
+
+void rtw_build_tdls_ch_switch_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ u8 payload_type = 0x02;
+ unsigned char category = RTW_WLAN_CATEGORY_TDLS;
+ unsigned char action = TDLS_CHANNEL_SWITCH_REQUEST;
+ u8 link_id_addr[18] = {0};
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
+ u8 ch_switch_timing[4] = {0};
+ u16 switch_time= CH_SWITCH_TIME, switch_timeout=CH_SWITCH_TIMEOUT;
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, target_ch
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(ptdlsinfo->candidate_ch), &(pattrib->pktlen));
+
+ //Link identifier
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+ //ch switch timing
+ _rtw_memcpy(ch_switch_timing, &switch_time, 2);
+ _rtw_memcpy(ch_switch_timing+2, &switch_timeout, 2);
+ pframe = rtw_set_ie(pframe, _CH_SWITCH_TIMING_, 4, ch_switch_timing, &(pattrib->pktlen));
+
+ //update ch switch attrib to sta_info
+ ptdls_sta->off_ch=ptdlsinfo->candidate_ch;
+ ptdls_sta->ch_switch_time=switch_time;
+ ptdls_sta->ch_switch_timeout=switch_timeout;
+
+}
+
+void rtw_build_tdls_ch_switch_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ u8 payload_type = 0x02;
+ unsigned char category = RTW_WLAN_CATEGORY_TDLS;
+ unsigned char action = TDLS_CHANNEL_SWITCH_RESPONSE;
+ u8 link_id_addr[18] = {0};
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
+ u8 ch_switch_timing[4] = {0};
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, action, status_code
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 2, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
+
+ //Link identifier
+ _rtw_memcpy(link_id_addr, pattrib->ra, 6);
+ _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
+ _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
+ pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
+
+ //ch switch timing
+ _rtw_memcpy(ch_switch_timing, &ptdls_sta->ch_switch_time, 2);
+ _rtw_memcpy(ch_switch_timing+2, &ptdls_sta->ch_switch_timeout, 2);
+ pframe = rtw_set_ie(pframe, _CH_SWITCH_TIMING_, 4, ch_switch_timing, &(pattrib->pktlen));
+
+}
+
+#ifdef CONFIG_WFD
+void rtw_build_tunneled_probe_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ struct wifidirect_info *pbuddy_wdinfo = &padapter->pbuddy_adapter->wdinfo;
+ u8 payload_type = 0x02;
+ u8 category = RTW_WLAN_CATEGORY_P2P;
+ u8 WFA_OUI[3] = { 0x50, 0x6f, 0x9a};
+ u8 probe_req = 4;
+ u8 wfdielen = 0;
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, OUI, frame_body_type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 3, WFA_OUI, &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(probe_req), &(pattrib->pktlen));
+
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ wfdielen = build_probe_req_wfd_ie(pwdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+ else if(!rtw_p2p_chk_state(pbuddy_wdinfo, P2P_STATE_NONE))
+ {
+ wfdielen = build_probe_req_wfd_ie(pbuddy_wdinfo, pframe);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+
+}
+
+void rtw_build_tunneled_probe_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
+{
+
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ struct wifidirect_info *pbuddy_wdinfo = &padapter->pbuddy_adapter->wdinfo;
+ u8 payload_type = 0x02;
+ u8 category = RTW_WLAN_CATEGORY_P2P;
+ u8 WFA_OUI[3] = { 0x50, 0x6f, 0x9a};
+ u8 probe_rsp = 5;
+ u8 wfdielen = 0;
+
+ //payload type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
+ //category, OUI, frame_body_type
+ pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 3, WFA_OUI, &(pattrib->pktlen));
+ pframe = rtw_set_fixed_ie(pframe, 1, &(probe_rsp), &(pattrib->pktlen));
+
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ wfdielen = build_probe_resp_wfd_ie(pwdinfo, pframe, 1);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+ else if(!rtw_p2p_chk_state(pbuddy_wdinfo, P2P_STATE_NONE))
+ {
+ wfdielen = build_probe_resp_wfd_ie(pbuddy_wdinfo, pframe, 1);
+ pframe += wfdielen;
+ pattrib->pktlen += wfdielen;
+ }
+
+}
+#endif //CONFIG_WFD
+
+void _TPK_timer_hdl(void *FunctionContext)
+{
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+
+ ptdls_sta->TPK_count++;
+ //TPK_timer set 1000 as default
+ //retry timer should set at least 301 sec.
+ if(ptdls_sta->TPK_count==TPK_RESEND_COUNT){
+ ptdls_sta->TPK_count=0;
+ issue_tdls_setup_req(ptdls_sta->padapter, ptdls_sta->hwaddr);
+ }
+
+ _set_timer(&ptdls_sta->TPK_timer, ptdls_sta->TDLS_PeerKey_Lifetime/TPK_RESEND_COUNT);
+}
+
+void init_TPK_timer(_adapter *padapter, struct sta_info *psta)
+{
+ psta->padapter=padapter;
+
+ _init_timer(&psta->TPK_timer, padapter->pnetdev, _TPK_timer_hdl, psta);
+}
+
+// TDLS_DONE_CH_SEN: channel sensing and report candidate channel
+// TDLS_OFF_CH: first time set channel to off channel
+// TDLS_BASE_CH: when go back to the channel linked with AP, send null data to peer STA as an indication
+void _ch_switch_timer_hdl(void *FunctionContext)
+{
+
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+ _adapter *padapter = ptdls_sta->padapter;
+
+ if( ptdls_sta->option == TDLS_DONE_CH_SEN ){
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_DONE_CH_SEN);
+ }else if( ptdls_sta->option == TDLS_OFF_CH ){
+ issue_nulldata_to_TDLS_peer_STA(ptdls_sta->padapter, ptdls_sta, 0);
+ _set_timer(&ptdls_sta->base_ch_timer, 500);
+ }else if( ptdls_sta->option == TDLS_BASE_CH){
+ issue_nulldata_to_TDLS_peer_STA(ptdls_sta->padapter, ptdls_sta, 0);
+ }
+}
+
+void init_ch_switch_timer(_adapter *padapter, struct sta_info *psta)
+{
+ psta->padapter=padapter;
+ _init_timer(&psta->option_timer, padapter->pnetdev, _ch_switch_timer_hdl, psta);
+}
+
+void _base_ch_timer_hdl(void *FunctionContext)
+{
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+ rtw_tdls_cmd(ptdls_sta->padapter, ptdls_sta->hwaddr, TDLS_P_OFF_CH);
+}
+
+void init_base_ch_timer(_adapter *padapter, struct sta_info *psta)
+{
+ psta->padapter=padapter;
+ _init_timer(&psta->base_ch_timer, padapter->pnetdev, _base_ch_timer_hdl, psta);
+}
+
+void _off_ch_timer_hdl(void *FunctionContext)
+{
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+ rtw_tdls_cmd(ptdls_sta->padapter, ptdls_sta->hwaddr, TDLS_P_BASE_CH );
+}
+
+void init_off_ch_timer(_adapter *padapter, struct sta_info *psta)
+{
+ psta->padapter=padapter;
+ _init_timer(&psta->off_ch_timer, padapter->pnetdev, _off_ch_timer_hdl, psta);
+}
+
+void _tdls_handshake_timer_hdl(void *FunctionContext)
+{
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+
+ if(ptdls_sta != NULL)
+ {
+ if( !(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE) )
+ {
+ DBG_871X("tdls handshake time out\n");
+ free_tdls_sta(ptdls_sta->padapter, ptdls_sta);
+ }
+ }
+}
+
+void init_handshake_timer(_adapter *padapter, struct sta_info *psta)
+{
+ psta->padapter=padapter;
+ _init_timer(&psta->handshake_timer, padapter->pnetdev, _tdls_handshake_timer_hdl, psta);
+}
+
+//Check tdls peer sta alive.
+void _tdls_alive_timer_phase1_hdl(void *FunctionContext)
+{
+ _irqL irqL;
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+ _adapter *padapter = ptdls_sta->padapter;
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+
+ _enter_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
+ ptdls_sta->timer_flag = 1;
+ _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
+
+ ptdls_sta->tdls_sta_state &= (~TDLS_ALIVE_STATE);
+
+ DBG_871X("issue_tdls_dis_req to check alive\n");
+ issue_tdls_dis_req( padapter, ptdls_sta->hwaddr);
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CKALV_PH1);
+ sta_update_last_rx_pkts(ptdls_sta);
+
+ if ( ptdls_sta->timer_flag == 2 )
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_FREE_STA);
+ else
+ {
+ _enter_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
+ ptdls_sta->timer_flag = 0;
+ _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
+ }
+
+}
+
+void _tdls_alive_timer_phase2_hdl(void *FunctionContext)
+{
+ _irqL irqL;
+ struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
+ _adapter *padapter = ptdls_sta->padapter;
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+
+ _enter_critical_bh(&(ptdlsinfo->hdl_lock), &irqL);
+ ptdls_sta->timer_flag = 1;
+ _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
+
+ if( (ptdls_sta->tdls_sta_state & TDLS_ALIVE_STATE) &&
+ (sta_last_rx_pkts(ptdls_sta) + 3 <= sta_rx_pkts(ptdls_sta)) )
+ {
+ DBG_871X("TDLS STA ALIVE, ptdls_sta->sta_stats.last_rx_pkts:%llu, ptdls_sta->sta_stats.rx_pkts:%llu\n",
+ sta_last_rx_pkts(ptdls_sta), sta_rx_pkts(ptdls_sta));
+
+ ptdls_sta->alive_count = 0;
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CKALV_PH2);
+ }
+ else
+ {
+ if( !(ptdls_sta->tdls_sta_state & TDLS_ALIVE_STATE) )
+ DBG_871X("TDLS STA TOO FAR\n");
+ if( !(sta_last_rx_pkts(ptdls_sta) + 3 <= sta_rx_pkts(ptdls_sta)))
+ DBG_871X("TDLS LINK WITH LOW TRAFFIC, ptdls_sta->sta_stats.last_rx_pkts:%llu, ptdls_sta->sta_stats.rx_pkts:%llu\n",
+ sta_last_rx_pkts(ptdls_sta), sta_rx_pkts(ptdls_sta));
+
+ ptdls_sta->alive_count++;
+ if( ptdls_sta->alive_count == TDLS_ALIVE_COUNT )
+ {
+ ptdls_sta->stat_code = _RSON_TDLS_TEAR_TOOFAR_;
+ issue_tdls_teardown(padapter, ptdls_sta->hwaddr);
+ }
+ else
+ {
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CKALV_PH2);
+ }
+ }
+
+ if ( ptdls_sta->timer_flag == 2 )
+ rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_FREE_STA);
+ else
+ {
+ _enter_critical_bh(&(ptdlsinfo->hdl_lock), &irqL);
+ ptdls_sta->timer_flag = 0;
+ _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
+}
+
+}
+
+void init_tdls_alive_timer(_adapter *padapter, struct sta_info *psta)
+{
+ psta->padapter=padapter;
+ _init_timer(&psta->alive_timer1, padapter->pnetdev, _tdls_alive_timer_phase1_hdl, psta);
+ _init_timer(&psta->alive_timer2, padapter->pnetdev, _tdls_alive_timer_phase2_hdl, psta);
+}
+
+int update_sgi_tdls(_adapter *padapter, struct sta_info *psta)
+{
+ struct ht_priv *psta_ht = NULL;
+ psta_ht = &psta->htpriv;
+
+ if(psta_ht->ht_option)
+ {
+ return psta_ht->sgi;
+ }
+ else
+ return _FALSE;
+}
+
+u32 update_mask_tdls(_adapter *padapter, struct sta_info *psta)
+{
+ int i;
+ u8 rf_type, id;
+ unsigned char sta_band = 0;
+ unsigned char limit;
+ unsigned int tx_ra_bitmap=0;
+ struct ht_priv *psta_ht = NULL;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ WLAN_BSSID_EX *pcur_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
+
+ psta_ht = &psta->htpriv;
+ //b/g mode ra_bitmap
+ for (i=0; i<sizeof(psta->bssrateset); i++)
+ {
+ if (psta->bssrateset[i])
+ tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value(psta->bssrateset[i]&0x7f);
+ }
+
+ //n mode ra_bitmap
+ if(psta_ht->ht_option)
+ {
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ if(rf_type == RF_2T2R)
+ limit=16;// 2R
+ else
+ limit=8;// 1R
+
+ for (i=0; i<limit; i++) {
+ if (psta_ht->ht_cap.supp_mcs_set[i/8] & BIT(i%8))
+ tx_ra_bitmap |= BIT(i+12);
+ }
+ }
+
+ if ( pcur_network->Configuration.DSConfig > 14 ) {
+ // 5G band
+ if (tx_ra_bitmap & 0xffff000)
+ sta_band |= WIRELESS_11_5N | WIRELESS_11A;
+ else
+ sta_band |= WIRELESS_11A;
+ } else {
+ if (tx_ra_bitmap & 0xffff000)
+ sta_band |= WIRELESS_11_24N | WIRELESS_11G | WIRELESS_11B;
+ else if (tx_ra_bitmap & 0xff0)
+ sta_band |= WIRELESS_11G |WIRELESS_11B;
+ else
+ sta_band |= WIRELESS_11B;
+ }
+
+ id = networktype_to_raid(sta_band);
+ tx_ra_bitmap |= ((id<<28)&0xf0000000);
+ return tx_ra_bitmap;
+}
+
+#endif //CONFIG_TDLS
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_wlan_util.c b/drivers/net/wireless/rtl8192cu/core/rtw_wlan_util.c
index 539b74f..56dac60d 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_wlan_util.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_wlan_util.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTW_WLAN_UTIL_C_
#include <drv_conf.h>
@@ -42,8 +41,11 @@ unsigned char AIRGOCAP_OUI[] = {0x00, 0x0a, 0xf5};
unsigned char REALTEK_96B_IE[] = {0x00, 0xe0, 0x4c, 0x02, 0x01, 0x20};
extern unsigned char MCS_rate_2R[16];
+#ifdef CONFIG_DISABLE_MCS13TO15
+extern unsigned char MCS_rate_2R_MCS13TO15_OFF[16];
+#endif //CONFIG_DISABLE_MCS13TO15
extern unsigned char MCS_rate_1R[16];
-extern unsigned char WPA_OUI[];
+extern unsigned char RTW_WPA_OUI[];
extern unsigned char WPA_TKIP_CIPHER[4];
extern unsigned char RSN_TKIP_CIPHER[4];
@@ -53,6 +55,23 @@ extern unsigned char RSN_TKIP_CIPHER[4];
#define WAIT_FOR_BCN_TO_MIN (6000)
#define WAIT_FOR_BCN_TO_MAX (20000)
+static u8 rtw_basic_rate_cck[4] = {
+ IEEE80211_CCK_RATE_1MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_CCK_RATE_2MB|IEEE80211_BASIC_RATE_MASK,
+ IEEE80211_CCK_RATE_5MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_CCK_RATE_11MB|IEEE80211_BASIC_RATE_MASK
+};
+
+static u8 rtw_basic_rate_ofdm[3] = {
+ IEEE80211_OFDM_RATE_6MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_OFDM_RATE_12MB|IEEE80211_BASIC_RATE_MASK,
+ IEEE80211_OFDM_RATE_24MB|IEEE80211_BASIC_RATE_MASK
+};
+
+static u8 rtw_basic_rate_mix[7] = {
+ IEEE80211_CCK_RATE_1MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_CCK_RATE_2MB|IEEE80211_BASIC_RATE_MASK,
+ IEEE80211_CCK_RATE_5MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_CCK_RATE_11MB|IEEE80211_BASIC_RATE_MASK,
+ IEEE80211_OFDM_RATE_6MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_OFDM_RATE_12MB|IEEE80211_BASIC_RATE_MASK,
+ IEEE80211_OFDM_RATE_24MB|IEEE80211_BASIC_RATE_MASK
+};
+
int cckrates_included(unsigned char *rate, int ratelen)
{
@@ -160,6 +179,7 @@ int judge_network_type(_adapter *padapter, unsigned char *rate, int ratelen)
return network_type;
}
+unsigned char ratetbl_val_2wifirate(unsigned char rate);
unsigned char ratetbl_val_2wifirate(unsigned char rate)
{
unsigned char val = 0;
@@ -220,6 +240,7 @@ unsigned char ratetbl_val_2wifirate(unsigned char rate)
}
+int is_basicrate(_adapter *padapter, unsigned char rate);
int is_basicrate(_adapter *padapter, unsigned char rate)
{
int i;
@@ -242,7 +263,7 @@ int is_basicrate(_adapter *padapter, unsigned char rate)
return _FALSE;
}
-
+unsigned int ratetbl2rateset(_adapter *padapter, unsigned char *rateset);
unsigned int ratetbl2rateset(_adapter *padapter, unsigned char *rateset)
{
int i;
@@ -288,29 +309,101 @@ void get_rate_set(_adapter *padapter, unsigned char *pbssrate, int *bssrate_len)
_rtw_memcpy(pbssrate, supportedrates, *bssrate_len);
}
+void UpdateBrateTbl(
+ IN PADAPTER Adapter,
+ IN u8 *mBratesOS
+)
+{
+ u8 i;
+ u8 rate;
+
+ // 1M, 2M, 5.5M, 11M, 6M, 12M, 24M are mandatory.
+ for(i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++)
+ {
+ rate = mBratesOS[i] & 0x7f;
+ switch(rate)
+ {
+ case IEEE80211_CCK_RATE_1MB:
+ case IEEE80211_CCK_RATE_2MB:
+ case IEEE80211_CCK_RATE_5MB:
+ case IEEE80211_CCK_RATE_11MB:
+ case IEEE80211_OFDM_RATE_6MB:
+ case IEEE80211_OFDM_RATE_12MB:
+ case IEEE80211_OFDM_RATE_24MB:
+ mBratesOS[i] |= IEEE80211_BASIC_RATE_MASK;
+ break;
+ }
+ }
+
+}
+
+void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen)
+{
+ u8 i;
+ u8 rate;
+
+ for(i=0;i<bssratelen;i++)
+ {
+ rate = bssrateset[i] & 0x7f;
+ switch(rate)
+ {
+ case IEEE80211_CCK_RATE_1MB:
+ case IEEE80211_CCK_RATE_2MB:
+ case IEEE80211_CCK_RATE_5MB:
+ case IEEE80211_CCK_RATE_11MB:
+ bssrateset[i] |= IEEE80211_BASIC_RATE_MASK;
+ break;
+ }
+ }
+
+}
+
void Save_DM_Func_Flag(_adapter *padapter)
{
u8 bSaveFlag = _TRUE;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_DM_FUNC_OP, (u8 *)(&bSaveFlag));
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ if(pbuddy_adapter)
+ rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_DM_FUNC_OP, (u8 *)(&bSaveFlag));
+#endif
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_OP, (u8 *)(&bSaveFlag));
+
}
void Restore_DM_Func_Flag(_adapter *padapter)
{
u8 bSaveFlag = _FALSE;
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_DM_FUNC_OP, (u8 *)(&bSaveFlag));
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ if(pbuddy_adapter)
+ rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_DM_FUNC_OP, (u8 *)(&bSaveFlag));
+#endif
+ rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_OP, (u8 *)(&bSaveFlag));
}
void Switch_DM_Func(_adapter *padapter, u8 mode, u8 enable)
{
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+#endif
+
if(enable == _TRUE)
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_DM_FUNC_SET, (u8 *)(&mode));
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pbuddy_adapter)
+ rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_DM_FUNC_SET, (u8 *)(&mode));
+#endif
+ rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_SET, (u8 *)(&mode));
}
else
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_DM_FUNC_CLR, (u8 *)(&mode));
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pbuddy_adapter)
+ rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_DM_FUNC_CLR, (u8 *)(&mode));
+#endif
+ rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_CLR, (u8 *)(&mode));
}
#if 0
@@ -330,54 +423,176 @@ void Switch_DM_Func(_adapter *padapter, u8 mode, u8 enable)
}
-void Set_NETYPE1_MSR(_adapter *padapter, u8 type)
+static void Set_NETYPE1_MSR(_adapter *padapter, u8 type)
+{
+ rtw_hal_set_hwreg(padapter, HW_VAR_MEDIA_STATUS1, (u8 *)(&type));
+}
+
+static void Set_NETYPE0_MSR(_adapter *padapter, u8 type)
+{
+ rtw_hal_set_hwreg(padapter, HW_VAR_MEDIA_STATUS, (u8 *)(&type));
+}
+
+void Set_MSR(_adapter *padapter, u8 type)
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MEDIA_STATUS1, (u8 *)(&type));
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->iface_type == IFACE_PORT1)
+ {
+ Set_NETYPE1_MSR(padapter, type);
+ }
+ else
+#endif
+ {
+ Set_NETYPE0_MSR(padapter, type);
+ }
}
-void Set_NETYPE0_MSR(_adapter *padapter, u8 type)
+inline u8 rtw_get_oper_ch(_adapter *adapter)
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MEDIA_STATUS, (u8 *)(&type));
+ return adapter_to_dvobj(adapter)->oper_channel;
+}
+
+inline void rtw_set_oper_ch(_adapter *adapter, u8 ch)
+{
+ if (adapter_to_dvobj(adapter)->oper_channel != ch)
+ adapter_to_dvobj(adapter)->on_oper_ch_time = rtw_get_current_time();
+
+ adapter_to_dvobj(adapter)->oper_channel = ch;
+}
+
+inline u8 rtw_get_oper_bw(_adapter *adapter)
+{
+ return adapter_to_dvobj(adapter)->oper_bwmode;
+}
+
+inline void rtw_set_oper_bw(_adapter *adapter, u8 bw)
+{
+ adapter_to_dvobj(adapter)->oper_bwmode = bw;
+}
+
+inline u8 rtw_get_oper_choffset(_adapter *adapter)
+{
+ return adapter_to_dvobj(adapter)->oper_ch_offset;
+}
+
+inline void rtw_set_oper_choffset(_adapter *adapter, u8 offset)
+{
+ adapter_to_dvobj(adapter)->oper_ch_offset = offset;
+}
+
+inline u32 rtw_get_on_oper_ch_time(_adapter *adapter)
+{
+ return adapter_to_dvobj(adapter)->on_oper_ch_time;
+}
+
+inline u32 rtw_get_on_cur_ch_time(_adapter *adapter)
+{
+ if (adapter->mlmeextpriv.cur_channel == adapter_to_dvobj(adapter)->oper_channel)
+ return adapter_to_dvobj(adapter)->on_oper_ch_time;
+ else
+ return 0;
}
void SelectChannel(_adapter *padapter, unsigned char channel)
{
- unsigned int scanMode;
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ //saved channel info
+ rtw_set_oper_ch(padapter, channel);
+ dc_SelectChannel(padapter, channel);
+#else //CONFIG_DUALMAC_CONCURRENT
+
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
- scanMode = (pmlmeext->sitesurvey_res.scan_mode == SCAN_ACTIVE)? 1: 0;//todo:
+ //saved channel info
+ rtw_set_oper_ch(padapter, channel);
- if(padapter->HalFunc.set_channel_handler)
- padapter->HalFunc.set_channel_handler(padapter, channel);
+ rtw_hal_set_chan(padapter, channel);
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
+
+#endif // CONFIG_DUALMAC_CONCURRENT
}
void SetBWMode(_adapter *padapter, unsigned short bwmode, unsigned char channel_offset)
{
- if(padapter->HalFunc.set_bwmode_handler)
- padapter->HalFunc.set_bwmode_handler(padapter, (HT_CHANNEL_WIDTH)bwmode, channel_offset);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ //saved bw info
+ rtw_set_oper_bw(padapter, bwmode);
+ rtw_set_oper_choffset(padapter, channel_offset);
+ dc_SetBWMode(padapter, bwmode, channel_offset);
+#else //CONFIG_DUALMAC_CONCURRENT
+
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->setbw_mutex), NULL);
+
+ //saved bw info
+ rtw_set_oper_bw(padapter, bwmode);
+ rtw_set_oper_choffset(padapter, channel_offset);
+
+ rtw_hal_set_bwmode(padapter, (HT_CHANNEL_WIDTH)bwmode, channel_offset);
+
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->setbw_mutex), NULL);
+
+#endif // CONFIG_DUALMAC_CONCURRENT
}
void set_channel_bwmode(_adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode)
{
+ u8 center_ch;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+
+ if ( padapter->bNotifyChannelChange )
+ {
+ DBG_871X( "[%s] ch = %d, offset = %d, bwmode = %d\n", __FUNCTION__, channel, channel_offset, bwmode );
+ }
+
if((bwmode == HT_CHANNEL_WIDTH_20)||(channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE))
{
- SelectChannel(padapter, channel);
+ //SelectChannel(padapter, channel);
+ center_ch = channel;
}
else
{
//switch to the proper channel
if (channel_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
{
- SelectChannel(padapter, channel + 2);
+ //SelectChannel(padapter, channel + 2);
+ center_ch = channel + 2;
}
else
{
- SelectChannel(padapter, channel - 2);
+ //SelectChannel(padapter, channel - 2);
+ center_ch = channel - 2;
}
}
+ //set Channel , must be independant for correct co_ch value/
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ //saved channel/bw info
+ rtw_set_oper_ch(padapter, channel);
+ rtw_set_oper_bw(padapter, bwmode);
+ rtw_set_oper_choffset(padapter, channel_offset);
+ dc_SelectChannel(padapter, center_ch);// set center channel
+#else //CONFIG_DUALMAC_CONCURRENT
+
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
+ //saved channel/bw info
+ rtw_set_oper_ch(padapter, channel);
+ rtw_set_oper_bw(padapter, bwmode);
+ rtw_set_oper_choffset(padapter, channel_offset);
+
+ rtw_hal_set_chan(padapter, center_ch);
+
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
+
+#endif // CONFIG_DUALMAC_CONCURRENT
+
+
+ //set BandWidth
SetBWMode(padapter, bwmode, channel_offset);
}
@@ -414,8 +629,14 @@ u16 get_beacon_interval(WLAN_BSSID_EX *bss)
int is_client_associated_to_ap(_adapter *padapter)
{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct mlme_ext_priv *pmlmeext;
+ struct mlme_ext_info *pmlmeinfo;
+
+ if(!padapter)
+ return _FAIL;
+
+ pmlmeext = &padapter->mlmeextpriv;
+ pmlmeinfo = &(pmlmeext->mlmext_info);
if ((pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS) && ((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE))
{
@@ -481,17 +702,47 @@ void CAM_empty_entry(
u8 ucIndex
)
{
- Adapter->HalFunc.SetHwRegHandler(Adapter, HW_VAR_CAM_EMPTY_ENTRY, (u8 *)(&ucIndex));
+ rtw_hal_set_hwreg(Adapter, HW_VAR_CAM_EMPTY_ENTRY, (u8 *)(&ucIndex));
}
void invalidate_cam_all(_adapter *padapter)
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_CAM_INVALID_ALL, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, 0);
}
+#if 0
+static u32 _ReadCAM(_adapter *padapter ,u32 addr)
+{
+ u32 count = 0, cmd;
+ cmd = CAM_POLLINIG |addr ;
+ rtw_write32(padapter, RWCAM, cmd);
+
+ do{
+ if(0 == (rtw_read32(padapter,REG_CAMCMD) & CAM_POLLINIG)){
+ break;
+ }
+ }while(count++ < 100);
+
+ return rtw_read32(padapter,REG_CAMREAD);
+}
+void read_cam(_adapter *padapter ,u8 entry)
+{
+ u32 j,count = 0, addr, cmd;
+ addr = entry << 3;
+
+ printk("********* DUMP CAM Entry_#%02d***************\n",entry);
+ for (j = 0; j < 6; j++)
+ {
+ cmd = _ReadCAM(padapter ,addr+j);
+ printk("offset:0x%02x => 0x%08x \n",addr+j,cmd);
+ }
+ printk("*********************************\n");
+}
+#endif
void write_cam(_adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key)
{
- unsigned int i, val, addr, cmd;
+ unsigned int i, val, addr;
+ //unsigned int cmd;
int j;
u32 cam_val[2];
@@ -519,14 +770,14 @@ void write_cam(_adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key)
cam_val[0] = val;
cam_val[1] = addr + (unsigned int)j;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_CAM_WRITE, (u8 *)cam_val);
+ rtw_hal_set_hwreg(padapter, HW_VAR_CAM_WRITE, (u8 *)cam_val);
//rtw_write32(padapter, WCAMI, val);
//cmd = CAM_POLLINIG | CAM_WRITE | (addr + j);
//rtw_write32(padapter, RWCAM, cmd);
- //DBG_8192C("%s=> cam write: %x, %x\n",__FUNCTION__, cmd, val);
+ //DBG_871X("%s=> cam write: %x, %x\n",__FUNCTION__, cmd, val);
}
@@ -544,14 +795,14 @@ void clear_cam_entry(_adapter *padapter, u8 entry)
cam_val[0] = val;
cam_val[1] = addr + (unsigned int)0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_CAM_WRITE, (u8 *)cam_val);
+ rtw_hal_set_hwreg(padapter, HW_VAR_CAM_WRITE, (u8 *)cam_val);
cam_val[0] = val;
cam_val[1] = addr + (unsigned int)1;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_CAM_WRITE, (u8 *)cam_val);
+ rtw_hal_set_hwreg(padapter, HW_VAR_CAM_WRITE, (u8 *)cam_val);
#else
unsigned char null_sta[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
@@ -586,21 +837,54 @@ void flush_all_cam_entry(_adapter *padapter)
{
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-#if 0
- unsigned char null_sta[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
- unsigned char null_key[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00};
- for (i = 0; i < NUM_STA; i++)
+#ifdef CONFIG_CONCURRENT_MODE
+
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+
+ //if(check_buddy_mlmeinfo_state(padapter, _HW_STATE_NOLINK_))
+ if(check_buddy_fwstate(padapter, _FW_LINKED) == _FALSE)
{
- write_cam(padapter, i, 0, null_sta, null_key);
+ rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, 0);
}
-#else
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_CAM_INVALID_ALL, 0);
-#endif
+ else
+ {
+ if(check_fwstate(pmlmepriv, WIFI_STATION_STATE))
+ {
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *psta;
+ u8 cam_id;//cam_entry
+
+ psta = rtw_get_stainfo(pstapriv, pmlmeinfo->network.MacAddress);
+ if(psta) {
+ if(psta->state & WIFI_AP_STATE)
+ {} //clear cam when ap free per sta_info
+ else {
+ if(psta->mac_id==2)
+ cam_id = 5;
+ else
+ cam_id = 4;
+ }
+ //clear_cam_entry(padapter, cam_id);
+ rtw_clearstakey_cmd(padapter, (u8*)psta, cam_id, _FALSE);
+ }
+ }
+ else if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
+ {
+ //clear cam when ap free per sta_info
+ }
+ }
+#else //CONFIG_CONCURRENT_MODE
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, 0);
+
+#endif //CONFIG_CONCURRENT_MODE
+
_rtw_memset((u8 *)(pmlmeinfo->FW_sta_info), 0, sizeof(pmlmeinfo->FW_sta_info));
+
}
-#ifdef CONFIG_WFD
+#if defined(CONFIG_P2P) && defined(CONFIG_WFD)
int WFD_info_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
{
struct registry_priv *pregpriv = &padapter->registrypriv;
@@ -622,8 +906,8 @@ int WFD_info_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
if ( attr_contentlen )
{
- pwdinfo->wfd_info.peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
- DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info.peer_rtsp_ctrlport );
+ pwdinfo->wfd_info->peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
+ DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
return( _TRUE );
}
}
@@ -638,7 +922,7 @@ int WFD_info_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
int WMM_param_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
{
- struct registry_priv *pregpriv = &padapter->registrypriv;
+ //struct registry_priv *pregpriv = &padapter->registrypriv;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
@@ -681,7 +965,6 @@ void WMMOnAssocRsp(_adapter *padapter)
u8 acm_mask;
u16 TXOP;
u32 acParm, i;
- struct registry_priv *pregpriv = &padapter->registrypriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
@@ -715,22 +998,22 @@ void WMMOnAssocRsp(_adapter *padapter)
switch (ACI)
{
case 0x0:
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acParm));
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BE, (u8 *)(&acParm));
acm_mask |= (ACM? BIT(1):0);
break;
case 0x1:
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acParm));
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_BK, (u8 *)(&acParm));
//acm_mask |= (ACM? BIT(0):0);
break;
case 0x2:
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acParm));
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VI, (u8 *)(&acParm));
acm_mask |= (ACM? BIT(2):0);
break;
case 0x3:
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acParm));
+ rtw_hal_set_hwreg(padapter, HW_VAR_AC_PARAM_VO, (u8 *)(&acParm));
acm_mask |= (ACM? BIT(3):0);
break;
}
@@ -739,7 +1022,7 @@ void WMMOnAssocRsp(_adapter *padapter)
}
if(padapter->registrypriv.acm_method == 1)
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_ACM_CTRL, (u8 *)(&acm_mask));
+ rtw_hal_set_hwreg(padapter, HW_VAR_ACM_CTRL, (u8 *)(&acm_mask));
else
padapter->mlmepriv.acm_mask = acm_mask;
@@ -751,18 +1034,35 @@ static void bwmode_update_check(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pI
unsigned char new_bwmode;
unsigned char new_ch_offset;
struct HT_info_element *pHT_info;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
+ struct registry_priv *pregistrypriv = &padapter->registrypriv;
+ struct ht_priv *phtpriv = &pmlmepriv->htpriv;
+ u8 cbw40_enable=0;
if(!pIE)
return;
+ if(phtpriv->ht_option == _FALSE) return;
+
+ if(pIE->Length > sizeof(struct HT_info_element))
+ return;
+
pHT_info = (struct HT_info_element *)pIE->data;
- if(pHT_info->infos[0] & BIT(2))
+ if (pmlmeext->cur_channel > 14) {
+ if (pregistrypriv->cbw40_enable & BIT(1))
+ cbw40_enable = 1;
+ } else {
+ if (pregistrypriv->cbw40_enable & BIT(0))
+ cbw40_enable = 1;
+ }
+
+ if((pHT_info->infos[0] & BIT(2)) && cbw40_enable )
{
new_bwmode = HT_CHANNEL_WIDTH_40;
+
switch (pHT_info->infos[0] & 0x3)
{
case 1:
@@ -791,6 +1091,9 @@ static void bwmode_update_check(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pI
pmlmeext->cur_bwmode = new_bwmode;
pmlmeext->cur_ch_offset = new_ch_offset;
+
+ //update HT info also
+ HT_info_handler(padapter, pIE);
}
else
{
@@ -842,7 +1145,8 @@ void HT_caps_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
-
+ struct registry_priv *pregistrypriv = &padapter->registrypriv;
+
if(pIE==NULL) return;
if(phtpriv->ht_option == _FALSE) return;
@@ -855,57 +1159,68 @@ void HT_caps_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
{
// Commented by Albert 2010/07/12
// Got the endian issue here.
- pmlmeinfo->HT_caps.HT_cap[i] &= (pIE->data[i]);
+ pmlmeinfo->HT_caps.u.HT_cap[i] &= (pIE->data[i]);
}
else
{
//modify from fw by Thomas 2010/11/17
- if ((pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x3) > (pIE->data[i] & 0x3))
+ if ((pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x3) > (pIE->data[i] & 0x3))
{
max_AMPDU_len = (pIE->data[i] & 0x3);
}
else
{
- max_AMPDU_len = (pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x3);
+ max_AMPDU_len = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x3);
}
- if ((pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x1c) > (pIE->data[i] & 0x1c))
+ if ((pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) > (pIE->data[i] & 0x1c))
{
- min_MPDU_spacing = (pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x1c);
+ min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c);
}
else
{
min_MPDU_spacing = (pIE->data[i] & 0x1c);
}
- pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para = max_AMPDU_len | min_MPDU_spacing;
+ pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para = max_AMPDU_len | min_MPDU_spacing;
}
}
// Commented by Albert 2010/07/12
// Have to handle the endian issue after copying.
// HT_ext_caps didn't be used yet.
- pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info = le16_to_cpu( pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info );
- pmlmeinfo->HT_caps.HT_cap_element.HT_ext_caps = le16_to_cpu( pmlmeinfo->HT_caps.HT_cap_element.HT_ext_caps );
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info = le16_to_cpu( pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info );
+ pmlmeinfo->HT_caps.u.HT_cap_element.HT_ext_caps = le16_to_cpu( pmlmeinfo->HT_caps.u.HT_cap_element.HT_ext_caps );
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
//update the MCS rates
for (i = 0; i < 16; i++)
{
if((rf_type == RF_1T1R) || (rf_type == RF_1T2R))
{
- pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
}
else
{
- pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
+ #ifdef CONFIG_DISABLE_MCS13TO15
+ if(pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40 && (pregistrypriv->wifi_spec!=1))
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R_MCS13TO15_OFF[i];
+ else
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
+ #else
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
+ #endif //CONFIG_DISABLE_MCS13TO15
}
#ifdef RTL8192C_RECONFIG_TO_1T1R
{
- pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
}
#endif
+
+ if(pregistrypriv->special_rf_path)
+ pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
+
}
return;
@@ -939,7 +1254,6 @@ void HTOnAssocRsp(_adapter *padapter)
//struct registry_priv *pregpriv = &padapter->registrypriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- //WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
DBG_871X("%s\n", __FUNCTION__);
@@ -959,17 +1273,17 @@ void HTOnAssocRsp(_adapter *padapter)
AMPDU_para [1:0]:Max AMPDU Len => 0:8k , 1:16k, 2:32k, 3:64k
AMPDU_para [4:2]:Min MPDU Start Spacing
*/
- max_AMPDU_len = pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x03;
+ max_AMPDU_len = pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x03;
- min_MPDU_spacing = (pmlmeinfo->HT_caps.HT_cap_element.AMPDU_para & 0x1c) >> 2;
+ min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) >> 2;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
+ rtw_hal_set_hwreg(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
+ rtw_hal_set_hwreg(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
#if 0 //move to rtw_update_ht_cap()
if ((pregpriv->cbw40_enable) &&
- (pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info & BIT(1)) &&
+ (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & BIT(1)) &&
(pmlmeinfo->HT_info.infos[0] & BIT(2)))
{
//switch to the 40M Hz mode accoring to the AP
@@ -999,7 +1313,7 @@ void HTOnAssocRsp(_adapter *padapter)
//
// Config SM Power Save setting
//
- pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.HT_cap_element.HT_caps_info & 0x0C) >> 2;
+ pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & 0x0C) >> 2;
if(pmlmeinfo->SM_PS == WLAN_HT_CAP_SM_PS_STATIC)
{
/*u8 i;
@@ -1008,7 +1322,7 @@ void HTOnAssocRsp(_adapter *padapter)
{
pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
}*/
- DBG_8192C("%s(): WLAN_HT_CAP_SM_PS_STATIC\n",__FUNCTION__);
+ DBG_871X("%s(): WLAN_HT_CAP_SM_PS_STATIC\n",__FUNCTION__);
}
//
@@ -1081,6 +1395,24 @@ void VCS_update(_adapter *padapter, struct sta_info *psta)
}
}
+#ifdef CONFIG_TDLS
+int check_ap_tdls_prohibited(u8 *pframe, u8 pkt_len)
+{
+ u8 tdls_prohibited_bit = 0x40; //bit(38); TDLS_prohibited
+
+ if(pkt_len < 5)
+ {
+ return _FALSE;
+ }
+
+ pframe += 4;
+ if( (*pframe) & tdls_prohibited_bit )
+ return _TRUE;
+
+ return _FALSE;
+}
+#endif //CONFIG_TDLS
+
void update_beacon_info(_adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta)
{
unsigned int i;
@@ -1090,8 +1422,8 @@ void update_beacon_info(_adapter *padapter, u8 *pframe, uint pkt_len, struct sta
#ifdef CONFIG_TDLS
struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
u8 tdls_prohibited[] = { 0x00, 0x00, 0x00, 0x00, 0x10 }; //bit(38): TDLS_prohibited
-#endif
-
+#endif //CONFIG_TDLS
+
len = pkt_len - (_BEACON_IE_OFFSET_ + WLAN_HDR_A3_LEN);
for (i = 0; i < len;)
@@ -1122,10 +1454,10 @@ void update_beacon_info(_adapter *padapter, u8 *pframe, uint pkt_len, struct sta
#ifdef CONFIG_TDLS
case _EXT_CAP_IE_:
- if( _rtw_memcmp(pIE->data, tdls_prohibited, 5) == _TRUE )
+ if( check_ap_tdls_prohibited(pIE->data, pIE->Length) == _TRUE )
ptdlsinfo->ap_prohibited = _TRUE;
break;
-#endif
+#endif //CONFIG_TDLS
default:
break;
}
@@ -1181,7 +1513,7 @@ unsigned int is_ap_in_tkip(_adapter *padapter)
switch (pIE->ElementID)
{
case _VENDOR_SPECIFIC_IE_:
- if ((_rtw_memcmp(pIE->data, WPA_OUI, 4)) && (_rtw_memcmp((pIE->data + 12), WPA_TKIP_CIPHER, 4)))
+ if ((_rtw_memcmp(pIE->data, RTW_WPA_OUI, 4)) && (_rtw_memcmp((pIE->data + 12), WPA_TKIP_CIPHER, 4)))
{
return _TRUE;
}
@@ -1209,6 +1541,7 @@ unsigned int is_ap_in_tkip(_adapter *padapter)
}
+int wifirate2_ratetbl_inx(unsigned char rate);
int wifirate2_ratetbl_inx(unsigned char rate)
{
int inx = 0;
@@ -1303,7 +1636,7 @@ unsigned int update_MSC_rate(struct HT_caps_element *pHT_caps)
{
unsigned int mask = 0;
- mask = ((pHT_caps->HT_cap_element.MCS_rate[0] << 12) | (pHT_caps->HT_cap_element.MCS_rate[1] << 20));
+ mask = ((pHT_caps->u.HT_cap_element.MCS_rate[0] << 12) | (pHT_caps->u.HT_cap_element.MCS_rate[1] << 20));
return mask;
}
@@ -1322,7 +1655,7 @@ int support_short_GI(_adapter *padapter, struct HT_caps_element *pHT_caps)
bit_offset = (pmlmeext->cur_bwmode & HT_CHANNEL_WIDTH_40)? 6: 5;
- if (pHT_caps->HT_cap_element.HT_caps_info & (0x1 << bit_offset))
+ if (pHT_caps->u.HT_cap_element.HT_caps_info & (0x1 << bit_offset))
{
return _SUCCESS;
}
@@ -1349,11 +1682,12 @@ unsigned char get_highest_rate_idx(u32 mask)
return rate_idx;
}
+unsigned char get_highest_mcs_rate(struct HT_caps_element *pHT_caps);
unsigned char get_highest_mcs_rate(struct HT_caps_element *pHT_caps)
{
int i, mcs_rate;
- mcs_rate = (pHT_caps->HT_cap_element.MCS_rate[0] | (pHT_caps->HT_cap_element.MCS_rate[1] << 8));
+ mcs_rate = (pHT_caps->u.HT_cap_element.MCS_rate[0] | (pHT_caps->u.HT_cap_element.MCS_rate[1] << 8));
for (i = 15; i >= 0; i--)
{
@@ -1368,9 +1702,10 @@ unsigned char get_highest_mcs_rate(struct HT_caps_element *pHT_caps)
void Update_RA_Entry(_adapter *padapter, u32 mac_id)
{
- padapter->HalFunc.UpdateRAMaskHandler(padapter, mac_id);
+ rtw_hal_update_ra_mask(padapter, mac_id);
}
+void enable_rate_adaptive(_adapter *padapter, u32 mac_id);
void enable_rate_adaptive(_adapter *padapter, u32 mac_id)
{
Update_RA_Entry(padapter, mac_id);
@@ -1382,6 +1717,47 @@ void set_sta_rate(_adapter *padapter, struct sta_info *psta)
enable_rate_adaptive(padapter, psta->mac_id);
}
+// Update RRSR and Rate for USERATE
+void update_tx_basic_rate(_adapter *padapter, u8 wirelessmode)
+{
+ NDIS_802_11_RATES_EX supported_rates;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+#ifdef CONFIG_P2P
+ struct wifidirect_info* pwdinfo = &padapter->wdinfo;
+
+ // Added by Albert 2011/03/22
+ // In the P2P mode, the driver should not support the b mode.
+ // So, the Tx packet shouldn't use the CCK rate
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ return;
+#endif //CONFIG_P2P
+#ifdef CONFIG_INTEL_WIDI
+ if (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_NONE)
+ return;
+#endif //CONFIG_INTEL_WIDI
+
+ _rtw_memset(supported_rates, 0, NDIS_802_11_LENGTH_RATES_EX);
+
+ //clear B mod if current channel is in 5G band, avoid tx cck rate in 5G band.
+ if(pmlmeext->cur_channel > 14)
+ wirelessmode &= ~(WIRELESS_11B);
+
+ if ((wirelessmode & WIRELESS_11B) && (wirelessmode == WIRELESS_11B)) {
+ _rtw_memcpy(supported_rates, rtw_basic_rate_cck, 4);
+ } else if (wirelessmode & WIRELESS_11B) {
+ _rtw_memcpy(supported_rates, rtw_basic_rate_mix, 7);
+ } else {
+ _rtw_memcpy(supported_rates, rtw_basic_rate_ofdm, 3);
+ }
+
+ if (wirelessmode & WIRELESS_11B)
+ update_mgnt_tx_rate(padapter, IEEE80211_CCK_RATE_1MB);
+ else
+ update_mgnt_tx_rate(padapter, IEEE80211_OFDM_RATE_6MB);
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, supported_rates);
+}
+
unsigned char check_assoc_AP(u8 *pframe, uint len)
{
unsigned int i;
@@ -1496,7 +1872,7 @@ void update_capinfo(PADAPTER Adapter, u16 updateCap)
{
ShortPreamble = _TRUE;
pmlmeinfo->preamble_mode = PREAMBLE_SHORT;
- Adapter->HalFunc.SetHwRegHandler( Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble );
+ rtw_hal_set_hwreg( Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble );
}
}
else
@@ -1505,7 +1881,7 @@ void update_capinfo(PADAPTER Adapter, u16 updateCap)
{
ShortPreamble = _FALSE;
pmlmeinfo->preamble_mode = PREAMBLE_LONG;
- Adapter->HalFunc.SetHwRegHandler( Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble );
+ rtw_hal_set_hwreg( Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble );
}
}
}
@@ -1545,18 +1921,22 @@ void update_capinfo(PADAPTER Adapter, u16 updateCap)
}
}
- Adapter->HalFunc.SetHwRegHandler( Adapter, HW_VAR_SLOT_TIME, &pmlmeinfo->slotTime );
+ rtw_hal_set_hwreg( Adapter, HW_VAR_SLOT_TIME, &pmlmeinfo->slotTime );
}
void update_wireless_mode(_adapter *padapter)
{
- int ratelen, network_type = 0;
- u16 SIFS_Timer;
+ u8 init_rate=0;
+ int ratelen, network_type = 0;
+ u32 SIFS_Timer, mask;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
unsigned char *rate = cur_network->SupportedRates;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+#endif //CONFIG_CONCURRENT_MODE
ratelen = rtw_get_rateset_len(cur_network->SupportedRates);
@@ -1596,16 +1976,39 @@ void update_wireless_mode(_adapter *padapter)
}
pmlmeext->cur_wireless_mode = network_type & padapter->registrypriv.wireless_mode;
+
+ //For STA mode, driver need to modify initial data rate, or MAC will use wrong tx rate.
+ //Modified by Thomas 2012-12-3
+ mask = update_supported_rate(cur_network->SupportedRates, ratelen);
+ init_rate = get_highest_rate_idx(mask)&0x3f;
+ rtw_hal_set_hwreg( padapter, HW_VAR_INIT_DATA_RATE, (u8 *)&init_rate);
+
+/*
if((pmlmeext->cur_wireless_mode==WIRELESS_11G) ||
(pmlmeext->cur_wireless_mode==WIRELESS_11BG))//WIRELESS_MODE_G)
- SIFS_Timer = 0x0a0a;
+ SIFS_Timer = 0x0a0a;//CCK
else
- SIFS_Timer = 0x0e0e;//pHalData->SifsTime;
- padapter->HalFunc.SetHwRegHandler( padapter, HW_VAR_SIFS, (u8 *)&SIFS_Timer);
+ SIFS_Timer = 0x0e0e;//pHalData->SifsTime; //OFDM
+*/
-}
+ SIFS_Timer = 0x0a0a0808; //0x0808 -> for CCK, 0x0a0a -> for OFDM
+ //change this value if having IOT issues.
+
+ rtw_hal_set_hwreg( padapter, HW_VAR_RESP_SIFS, (u8 *)&SIFS_Timer);
+ if (pmlmeext->cur_wireless_mode & WIRELESS_11B)
+ update_mgnt_tx_rate(padapter, IEEE80211_CCK_RATE_1MB);
+ else
+ {
+ update_mgnt_tx_rate(padapter, IEEE80211_OFDM_RATE_6MB);
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pbuddy_adapter && (pmlmeext->cur_wireless_mode & WIRELESS_11A))
+ update_mgnt_tx_rate(pbuddy_adapter, IEEE80211_OFDM_RATE_6MB);
+#endif //CONFIG_CONCURRENT_MODE
+ }
+}
+void fire_write_MAC_cmd(_adapter *padapter, unsigned int addr, unsigned int value);
void fire_write_MAC_cmd(_adapter *padapter, unsigned int addr, unsigned int value)
{
#if 0
@@ -1633,13 +2036,6 @@ void fire_write_MAC_cmd(_adapter *padapter, unsigned int addr, unsigned int valu
#endif
}
-u8 bmc_support_rate_ofdm[4] =
- {IEEE80211_OFDM_RATE_6MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_OFDM_RATE_12MB|IEEE80211_BASIC_RATE_MASK,
- IEEE80211_OFDM_RATE_18MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_OFDM_RATE_24MB|IEEE80211_BASIC_RATE_MASK};
-u8 bmc_support_rate_cck[4] =
- {IEEE80211_CCK_RATE_1MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_CCK_RATE_2MB|IEEE80211_BASIC_RATE_MASK,
- IEEE80211_CCK_RATE_5MB|IEEE80211_BASIC_RATE_MASK, IEEE80211_CCK_RATE_11MB|IEEE80211_BASIC_RATE_MASK};
-
void update_bmc_sta_support_rate(_adapter *padapter, u32 mac_id)
{
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
@@ -1648,11 +2044,11 @@ void update_bmc_sta_support_rate(_adapter *padapter, u32 mac_id)
if(pmlmeext->cur_wireless_mode & WIRELESS_11B)
{
// Only B, B/G, and B/G/N AP could use CCK rate
- _rtw_memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), bmc_support_rate_cck, 4);
+ _rtw_memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_cck, 4);
}
else
{
- _rtw_memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), bmc_support_rate_ofdm, 4);
+ _rtw_memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 3);
}
}
@@ -1736,12 +2132,12 @@ void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len)
void correct_TSF(_adapter *padapter, struct mlme_ext_priv *pmlmeext)
{
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_CORRECT_TSF, 0);
+ rtw_hal_set_hwreg(padapter, HW_VAR_CORRECT_TSF, 0);
}
void beacon_timing_control(_adapter *padapter)
{
- padapter->HalFunc.SetBeaconRelatedRegistersHandler(padapter);
+ rtw_hal_bcn_related_reg_setting(padapter);
}
#if 0
@@ -1818,7 +2214,7 @@ unsigned int setup_beacon_frame(_adapter *padapter, unsigned char *beacon_frame)
if ((len + TXDESC_SIZE) > 256)
{
- //DBG_8192C("marc: beacon frame too large\n");
+ //DBG_871X("marc: beacon frame too large\n");
return 0;
}
@@ -1846,3 +2242,64 @@ unsigned int setup_beacon_frame(_adapter *padapter, unsigned char *beacon_frame)
}
#endif
+static _adapter *pbuddy_padapter = NULL;
+
+int rtw_handle_dualmac(_adapter *adapter, bool init)
+{
+ int status = _SUCCESS;
+ struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
+
+ if (!IS_HARDWARE_TYPE_8192D(adapter))
+ goto exit;
+
+ if (init) {
+ rtw_hal_get_def_var(adapter, HAL_DEF_DUAL_MAC_MODE, &dvobj->DualMacMode);
+ if (dvobj->DualMacMode == _TRUE) {
+ // temply disable IPS For 92D-VC
+ adapter->registrypriv.ips_mode = IPS_NONE;
+ }
+
+ /* For SMSP on 92DU-VC, driver do not probe another Interface. */
+ if ((dvobj->DualMacMode != _TRUE) && (dvobj->InterfaceNumber != 0)) {
+ DBG_871X("%s(): Do not init another Interface because SMSP\n",__FUNCTION__);
+ status = _FAIL;
+ goto exit;
+ }
+
+#ifndef CONFIG_CONCURRENT_MODE
+ if (dvobj->DualMacMode == _TRUE) {
+ if (pbuddy_padapter == NULL) {
+ pbuddy_padapter = adapter;
+ DBG_871X("%s(): pbuddy_padapter == NULL, Set pbuddy_padapter\n",__FUNCTION__);
+ } else {
+ adapter->pbuddy_adapter = pbuddy_padapter;
+ pbuddy_padapter->pbuddy_adapter = adapter;
+ // clear global value
+ pbuddy_padapter = NULL;
+ DBG_871X("%s(): pbuddy_padapter exist, Exchange Information\n",__FUNCTION__);
+ }
+ }
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ if (dvobj->InterfaceNumber == 0) {
+ //set adapter_type/iface type
+ adapter->isprimary = _TRUE;
+ adapter->adapter_type = PRIMARY_ADAPTER;
+ adapter->iface_type = IFACE_PORT0;
+ DBG_871X("%s(): PRIMARY_ADAPTER\n",__FUNCTION__);
+ } else {
+ //set adapter_type/iface type
+ adapter->isprimary = _FALSE;
+ adapter->adapter_type = SECONDARY_ADAPTER;
+ adapter->iface_type = IFACE_PORT1;
+ DBG_871X("%s(): SECONDARY_ADAPTER\n",__FUNCTION__);
+ }
+#endif
+#endif
+ }else {
+ pbuddy_padapter = NULL;
+ }
+exit:
+ return status;
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/core/rtw_xmit.c b/drivers/net/wireless/rtl8192cu/core/rtw_xmit.c
index 178a5b7..18f1fdb 100644
--- a/drivers/net/wireless/rtl8192cu/core/rtw_xmit.c
+++ b/drivers/net/wireless/rtl8192cu/core/rtw_xmit.c
@@ -15,8 +15,8 @@
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
- *
-******************************************************************************/
+ *
+ ******************************************************************************/
#define _RTW_XMIT_C_
#include <drv_conf.h>
@@ -28,10 +28,6 @@
#include <circ_buf.h>
#include <ip.h>
-#ifdef CONFIG_TDLS
-#include <rtl8192c_hal.h>
-#endif
-
#if defined (PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
#error "Shall be Linux or Windows, but not both!\n"
#endif
@@ -48,11 +44,6 @@
static u8 P802_1H_OUI[P80211_OUI_LEN] = { 0x00, 0x00, 0xf8 };
static u8 RFC1042_OUI[P80211_OUI_LEN] = { 0x00, 0x00, 0x00 };
-#ifdef CONFIG_TDLS
-extern unsigned char MCS_rate_2R[16];
-extern unsigned char MCS_rate_1R[16];
-#endif
-
static void _init_txservq(struct tx_servq *ptxservq)
{
_func_enter_;
@@ -99,11 +90,10 @@ _func_enter_;
//_rtw_memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv));
_rtw_spinlock_init(&pxmitpriv->lock);
+ _rtw_spinlock_init(&pxmitpriv->lock_sctx);
_rtw_init_sema(&pxmitpriv->xmit_sema, 0);
_rtw_init_sema(&pxmitpriv->terminate_xmitthread_sema, 0);
- ATOMIC_SET(&pxmitpriv->HwRdyXmitData, 1);
-
/*
Please insert all the queue initializaiton using _rtw_init_queue below
*/
@@ -124,7 +114,6 @@ _func_enter_;
_rtw_init_queue(&pxmitpriv->free_xmit_queue);
-
/*
Please allocate memory with the sz = (struct xmit_frame) * NR_XMITFRAME,
and initialize free_xmit_frame below.
@@ -210,6 +199,13 @@ _func_enter_;
goto exit;
}
+#ifdef CONFIG_SDIO_HCI
+ pxmitbuf->phead = pxmitbuf->pbuf;
+ pxmitbuf->pend = pxmitbuf->pbuf + MAX_XMITBUF_SZ;
+ pxmitbuf->len = 0;
+ pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
+#endif
+
pxmitbuf->flags = XMIT_VO_QUEUE;
rtw_list_insert_tail(&pxmitbuf->list, &(pxmitpriv->free_xmitbuf_queue.queue));
@@ -223,6 +219,39 @@ _func_enter_;
pxmitpriv->free_xmitbuf_cnt = NR_XMITBUFF;
+ /* init xframe_ext queue, the same count as extbuf */
+ _rtw_init_queue(&pxmitpriv->free_xframe_ext_queue);
+
+ pxmitpriv->xframe_ext_alloc_addr = rtw_zvmalloc(NR_XMIT_EXTBUFF * sizeof(struct xmit_frame) + 4);
+
+ if (pxmitpriv->xframe_ext_alloc_addr == NULL){
+ pxmitpriv->xframe_ext = NULL;
+ RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("alloc xframe_ext fail!\n"));
+ res= _FAIL;
+ goto exit;
+ }
+ pxmitpriv->xframe_ext = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pxmitpriv->xframe_ext_alloc_addr), 4);
+ pxframe = (struct xmit_frame*)pxmitpriv->xframe_ext;
+
+ for (i = 0; i < NR_XMIT_EXTBUFF; i++) {
+ _rtw_init_listhead(&(pxframe->list));
+
+ pxframe->padapter = padapter;
+ pxframe->frame_tag = NULL_FRAMETAG;
+
+ pxframe->pkt = NULL;
+
+ pxframe->buf_addr = NULL;
+ pxframe->pxmitbuf = NULL;
+
+ pxframe->ext_tag = 1;
+
+ rtw_list_insert_tail(&(pxframe->list), &(pxmitpriv->free_xframe_ext_queue.queue));
+
+ pxframe++;
+ }
+ pxmitpriv->free_xframe_ext_cnt = NR_XMIT_EXTBUFF;
+
// Init xmit extension buff
_rtw_init_queue(&pxmitpriv->free_xmit_extbuf_queue);
@@ -262,6 +291,13 @@ _func_enter_;
goto exit;
}
+#ifdef CONFIG_SDIO_HCI
+ pxmitbuf->phead = pxmitbuf->pbuf;
+ pxmitbuf->pend = pxmitbuf->pbuf + MAX_XMIT_EXTBUF_SZ;
+ pxmitbuf->len = 0;
+ pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
+#endif
+
rtw_list_insert_tail(&pxmitbuf->list, &(pxmitpriv->free_xmit_extbuf_queue.queue));
#ifdef DBG_XMIT_BUF
pxmitbuf->no=i;
@@ -287,8 +323,14 @@ _func_enter_;
pxmitpriv->voq_cnt = 0;
#endif
- if(padapter->HalFunc.init_xmit_priv != NULL)
- padapter->HalFunc.init_xmit_priv(padapter);
+
+#ifdef CONFIG_XMIT_ACK
+ pxmitpriv->ack_tx = _FALSE;
+ _rtw_mutex_init(&pxmitpriv->ack_tx_mutex);
+ rtw_sctx_init(&pxmitpriv->ack_tx_ops, 0);
+#endif
+
+ rtw_hal_init_xmit_priv(padapter);
exit:
@@ -297,6 +339,7 @@ _func_exit_;
return res;
}
+void rtw_mfree_xmit_priv_lock (struct xmit_priv *pxmitpriv);
void rtw_mfree_xmit_priv_lock (struct xmit_priv *pxmitpriv)
{
_rtw_spinlock_free(&pxmitpriv->lock);
@@ -327,7 +370,7 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
_func_enter_;
- padapter->HalFunc.free_xmit_priv(padapter);
+ rtw_hal_free_xmit_priv(padapter);
rtw_mfree_xmit_priv_lock(pxmitpriv);
@@ -336,7 +379,7 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
for(i=0; i<NR_XMITFRAME; i++)
{
- rtw_os_xmit_complete(padapter, pxmitframe);
+ rtw_os_xmit_complete(padapter, pxmitframe);
pxmitframe++;
}
@@ -360,6 +403,17 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
rtw_vmfree(pxmitpriv->pallocated_xmitbuf, NR_XMITBUFF * sizeof(struct xmit_buf) + 4);
}
+ /* free xframe_ext queue, the same count as extbuf */
+ if ((pxmitframe = (struct xmit_frame*)pxmitpriv->xframe_ext)) {
+ for (i=0; i<NR_XMIT_EXTBUFF; i++) {
+ rtw_os_xmit_complete(padapter, pxmitframe);
+ pxmitframe++;
+ }
+ }
+ if (pxmitpriv->xframe_ext_alloc_addr)
+ rtw_vmfree(pxmitpriv->xframe_ext_alloc_addr, NR_XMIT_EXTBUFF * sizeof(struct xmit_frame) + 4);
+ _rtw_spinlock_free(&pxmitpriv->free_xframe_ext_queue.lock);
+
// free xmit extension buff
_rtw_spinlock_free(&pxmitpriv->free_xmit_extbuf_queue.lock);
@@ -380,6 +434,10 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
rtw_free_hwxmits(padapter);
+#ifdef CONFIG_XMIT_ACK
+ _rtw_mutex_free(&pxmitpriv->ack_tx_mutex);
+#endif
+
out:
_func_exit_;
@@ -394,6 +452,27 @@ static void update_attrib_vcs_info(_adapter *padapter, struct xmit_frame *pxmitf
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ if(pattrib->psta)
+ {
+ psta = pattrib->psta;
+ }
+ else
+ {
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
+ psta=rtw_get_stainfo(&padapter->stapriv ,&pattrib->ra[0] );
+ }
+
+ if(psta==NULL)
+ {
+ DBG_871X("%s, psta==NUL\n", __func__);
+ return;
+ }
+
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
+ return;
+ }
if (pattrib->nr_frags != 1)
{
@@ -496,8 +575,6 @@ static void update_attrib_vcs_info(_adapter *padapter, struct xmit_frame *pxmitf
break;
}
}
- if(padapter->registrypriv.intel_class_mode==1)
- pattrib->vcs_mode = RTS_CTS;
}
static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta)
@@ -527,20 +604,22 @@ static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *
// if(psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
// pattrib->ampdu_en = _TRUE;
//}
-
+
pattrib->retry_ctrl = _FALSE;
-
+
}
-static void qos_acm(u8 acm_mask, struct pkt_attrib *pattrib)
+u8 qos_acm(u8 acm_mask, u8 priority)
{
- switch (pattrib->priority)
+ u8 change_priority = priority;
+
+ switch (priority)
{
case 0:
case 3:
if(acm_mask & BIT(1))
- pattrib->priority = 2;
+ change_priority = 1;
break;
case 1:
case 2:
@@ -548,17 +627,19 @@ static void qos_acm(u8 acm_mask, struct pkt_attrib *pattrib)
case 4:
case 5:
if(acm_mask & BIT(2))
- pattrib->priority = 3;
+ change_priority = 0;
break;
case 6:
case 7:
if(acm_mask & BIT(3))
- pattrib->priority = 5;
+ change_priority = 5;
break;
default:
- DBG_871X("qos_acm(): invalid pattrib->priority: %d!!!\n", pattrib->priority);
+ DBG_871X("qos_acm(): invalid pattrib->priority: %d!!!\n", priority);
break;
}
+
+ return change_priority;
}
static void set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
@@ -628,7 +709,7 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
_rtw_memcpy(pattrib->ta, get_bssid(pmlmepriv), ETH_ALEN);
}
- pattrib->pktlen = pktfile.pkt_len; // rtw_xmitframe_coalesce() overwirte this!
+ pattrib->pktlen = pktfile.pkt_len;
if (ETH_P_IP == pattrib->ether_type)
{
@@ -659,12 +740,10 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
}
}
- #ifdef CONFIG_SET_SCAN_DENY_TIMER
if ( (pattrib->ether_type == 0x888e) || (pattrib->dhcp_pkt == 1) )
{
- rtw_set_scan_deny(pmlmepriv, 3000);
+ rtw_set_scan_deny(padapter, 3000);
}
- #endif
#ifdef CONFIG_LPS
// If EAPOL , ARP , OR DHCP packet, driver must be in active mode.
@@ -730,9 +809,10 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
if(pqospriv->qos_option)
{
set_qos(&pktfile, pattrib);
+
if(pmlmepriv->acm_mask != 0)
{
- qos_acm(pmlmepriv->acm_mask, pattrib);
+ pattrib->priority = qos_acm(pmlmepriv->acm_mask, pattrib->priority);
}
}
}
@@ -831,6 +911,13 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("update_attrib: bswenc=_FALSE\n"));
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if((pattrib->encrypt && bmcast) || (pattrib->encrypt ==_WEP40_) || (pattrib->encrypt ==_WEP104_))
+ {
+ pattrib->bswenc = _TRUE;//force using sw enc.
+ }
+#endif
+
rtw_set_tx_chksum_offload(pkt, pattrib);
update_attrib_phy_info(pattrib, psta);
@@ -860,10 +947,21 @@ static s32 xmitframe_addmic(_adapter *padapter, struct xmit_frame *pxmitframe){
}
else
{
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
stainfo=rtw_get_stainfo(&padapter->stapriv ,&pattrib->ra[0]);
}
+ if(stainfo==NULL)
+ {
+ DBG_871X("%s, psta==NUL\n", __func__);
+ return _FAIL;
+ }
+ if(!(stainfo->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, stainfo->state);
+ return _FAIL;
+ }
_func_enter_;
@@ -982,7 +1080,7 @@ _func_enter_;
//if((psecuritypriv->sw_encrypt)||(pattrib->bswenc))
if(pattrib->bswenc)
{
- //DBG_8192C("start xmitframe_swencrypt\n");
+ //DBG_871X("start xmitframe_swencrypt\n");
RT_TRACE(_module_rtl871x_xmit_c_,_drv_alert_,("### xmitframe_swencrypt\n"));
switch(pattrib->encrypt){
case _WEP40_:
@@ -1015,17 +1113,13 @@ s32 rtw_make_wlanhdr (_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib)
struct rtw_ieee80211_hdr *pwlanhdr = (struct rtw_ieee80211_hdr *)hdr;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct qos_priv *pqospriv = &pmlmepriv->qospriv;
- u8 qos_option = _FALSE;
+ u8 qos_option = _FALSE;
#ifdef CONFIG_TDLS
struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *ptdls_sta=NULL;
- u8 tdls_seq=0;
-#endif
-
-//#ifdef CONFIG_PWRCTRL
-// struct pwrctrl_priv *pwrpriv = &(padapter->pwrctrlpriv);
-//#endif
+ struct sta_info *ptdls_sta=NULL, *psta_backup=NULL;
+ u8 direct_link=0;
+#endif //CONFIG_TDLS
sint res = _SUCCESS;
u16 *fctrl = &pwlanhdr->frame_ctl;
@@ -1039,6 +1133,7 @@ _func_enter_;
if (pattrib->psta) {
psta = pattrib->psta;
} else {
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
if(bmcst) {
psta = rtw_get_bcmc_stainfo(padapter);
} else {
@@ -1046,6 +1141,18 @@ _func_enter_;
}
}
+ if(psta==NULL)
+ {
+ DBG_871X("%s, psta==NUL\n", __func__);
+ return _FAIL;
+ }
+
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
+ return _FAIL;
+ }
+
_rtw_memset(hdr, 0, WLANHDR_OFFSET);
SetFrameSubType(fctrl, pattrib->subtype);
@@ -1055,16 +1162,16 @@ _func_enter_;
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)) {
//to_ds = 1, fr_ds = 0;
#ifdef CONFIG_TDLS
- if((ptdlsinfo->setup_state==TDLS_LINKED_STATE)){
+ if((ptdlsinfo->setup_state == TDLS_LINKED_STATE)){
ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
- if((ptdls_sta!=NULL)&&((ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE)==TDLS_LINKED_STATE)&&(pattrib->ether_type!=0x0806)){
+ if((ptdls_sta!=NULL)&&(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE)&&(pattrib->ether_type!=0x0806)){
//TDLS data transfer, ToDS=0, FrDs=0
_rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr3, get_bssid(pmlmepriv), ETH_ALEN);
- tdls_seq=1;
+ direct_link=1;
}else{
- // 1.usual data transfer
+ // 1.Data transfer to AP
// 2.Arp pkt will relayed by AP
SetToDs(fctrl);
_rtw_memcpy(pwlanhdr->addr1, get_bssid(pmlmepriv), ETH_ALEN);
@@ -1072,9 +1179,9 @@ _func_enter_;
_rtw_memcpy(pwlanhdr->addr3, pattrib->dst, ETH_ALEN);
}
}else
-#endif
+#endif //CONFIG_TDLS
{
- //usual data transfer
+ //Data transfer to AP
SetToDs(fctrl);
_rtw_memcpy(pwlanhdr->addr1, get_bssid(pmlmepriv), ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
@@ -1110,14 +1217,6 @@ _func_enter_;
goto exit;
}
-/*#ifdef CONFIG_PWRCTRL
- if (pwrpriv->cpwm >= FW_PWR1 && !(padapter->mlmepriv.sitesurveyctrl.traffic_busy))
- SetPwrMgt(fctrl);
-#else
- if ((get_fwstate(pmlmepriv)) & WIFI_SLEEP_STATE)
- SetPwrMgt(fctrl);
-#endif*/
-
if(pattrib->mdata)
SetMData(fctrl);
@@ -1140,31 +1239,20 @@ _func_enter_;
//Update Seq Num will be handled by f/w
{
-
+ if(psta){
#ifdef CONFIG_TDLS
- // 1. update seq_num per link by sta_info
- // 2. rewrite encrypt to _AES_, also rewrite iv_len, icv_len
- if(tdls_seq==1){
- ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority]++;
- ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority] &= 0xFFF;
-
- pattrib->seqnum = ptdls_sta->sta_xmitpriv.txseq_tid[pattrib->priority];
-
- SetSeqNum(hdr, pattrib->seqnum);
-
- if (pattrib->encrypt){
- pattrib->encrypt= _AES_;
- pattrib->iv_len=8;
- pattrib->icv_len=8;
+ if(direct_link==1)
+ {
+ psta_backup = psta;
+ psta = ptdls_sta;
}
- }else
-#endif
- if(psta){
+#endif //CONFIG_TDLS
+
psta->sta_xmitpriv.txseq_tid[pattrib->priority]++;
psta->sta_xmitpriv.txseq_tid[pattrib->priority] &= 0xFFF;
pattrib->seqnum = psta->sta_xmitpriv.txseq_tid[pattrib->priority];
-
+
SetSeqNum(hdr, pattrib->seqnum);
@@ -1203,6 +1291,29 @@ _func_enter_;
}
+#ifdef CONFIG_TDLS
+ if(direct_link==1)
+ {
+ if (pattrib->encrypt){
+ pattrib->encrypt= _AES_;
+ pattrib->iv_len=8;
+ pattrib->icv_len=8;
+ }
+
+ //qos_en, ht_en, init rate, ,bw, ch_offset, sgi
+ //pattrib->qos_en = ptdls_sta->qos_option;
+ pattrib->ht_en = ptdls_sta->htpriv.ht_option;
+ pattrib->raid = ptdls_sta->raid;
+ pattrib->bwmode = ptdls_sta->htpriv.bwmode;
+ pattrib->ch_offset = ptdls_sta->htpriv.ch_offset;
+ pattrib->sgi= ptdls_sta->htpriv.sgi;
+
+ pattrib->mac_id = ptdls_sta->mac_id;
+
+ psta = psta_backup;
+ }
+#endif //CONFIG_TDLS
+
}
}
@@ -1235,7 +1346,27 @@ s32 rtw_txframes_sta_ac_pending(_adapter *padapter, struct pkt_attrib *pattrib)
struct tx_servq *ptxservq;
int priority = pattrib->priority;
+ if(pattrib->psta)
+ {
psta = pattrib->psta;
+ }
+ else
+ {
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
+ psta=rtw_get_stainfo(&padapter->stapriv ,&pattrib->ra[0]);
+ }
+
+ if(psta==NULL)
+ {
+ DBG_871X("%s, psta==NUL\n", __func__);
+ return 0;
+ }
+
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
+ return 0;
+ }
switch(priority)
{
@@ -1263,871 +1394,121 @@ s32 rtw_txframes_sta_ac_pending(_adapter *padapter, struct pkt_attrib *pattrib)
}
#ifdef CONFIG_TDLS
-void rtw_tdls_setup_req_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- struct registry_priv *pregistrypriv = &padapter->registrypriv;
- struct rtw_ieee80211_ht_cap ht_capie;
- struct sta_info *ptdls_sta=rtw_get_stainfo( (&padapter->stapriv) , pattrib->dst);
-
- u8 payload_type = 0x02;
- u8 category = RTW_WLAN_CATEGORY_TDLS;
- u8 action = TDLS_SETUP_REQUEST;
- u8 bssrate[NDIS_802_11_LENGTH_RATES_EX]; //Use NDIS_802_11_LENGTH_RATES_EX in order to call func.rtw_set_supported_rate
- int bssrate_len = 0, i = 0 ;
- u8 more_supportedrates = 0;
- unsigned int ie_len;
- u8 *p;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- u8 link_id_addr[18] = {0};
- u8 iedata=0;
- u8 sup_ch[ 30 * 2 ] = {0x00 }, sup_ch_idx = 0, idx_5g = 2; //For supported channel
- u8 timeout_itvl[5]; //set timeout interval to maximum value
- u32 time;
-
- //SNonce
- if(pattrib->encrypt){
- for(i=0;i<8;i++){
- time=rtw_get_current_time();
- _rtw_memcpy(&ptdls_sta->SNonce[4*i], (u8 *)&time, 4);
- }
- }
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, dialog token
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
-
- //capability
- _rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
-
- if(pattrib->encrypt)
- *pframe =*pframe | BIT(4);
- pframe += 2;
- pattrib->pktlen += 2;
-
- //supported rates
- rtw_set_supported_rate(bssrate, WIRELESS_11BG_24N);
- bssrate_len = IEEE80211_CCK_RATE_LEN + IEEE80211_NUM_OFDM_RATESLEN;
- //for (bssrate_len = 0; bssrate_len < NumRates; bssrate_len++) {
- // if (pregistrypriv->dev_network.SupportedRates[bssrate_len]== 0) break;
- // bssrate[bssrate_len] = pregistrypriv->dev_network.SupportedRates[bssrate_len];
- //}
-
- if (bssrate_len > 8)
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
- more_supportedrates = 1;
- }
- else
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
- }
- //country(optional)
- //extended supported rates
- if(more_supportedrates==1){
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
- }
+int rtw_build_tdls_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe, u8 action)
+{
+ int res=_SUCCESS;
- //supported channels
- do{
- if( pmlmeext->channel_set[sup_ch_idx].ChannelNum == 11 )
- {
- sup_ch[0] = 1; //First channel number
- sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum; //Number of channel
- }
- else if( pmlmeext->channel_set[sup_ch_idx].ChannelNum == 13 )
- {
- sup_ch[0] = 1;
- sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;;
- }
- else if( pmlmeext->channel_set[sup_ch_idx].ChannelNum > 13 )
- {
- sup_ch[idx_5g++] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;
- sup_ch[idx_5g++] = 1;
- }
-
- sup_ch_idx++;
+ switch(action){
+ case TDLS_SETUP_REQUEST:
+ rtw_build_tdls_setup_req_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_SETUP_RESPONSE:
+ rtw_build_tdls_setup_rsp_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_SETUP_CONFIRM:
+ rtw_build_tdls_setup_cfm_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_TEARDOWN:
+ rtw_build_tdls_teardown_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_DISCOVERY_REQUEST:
+ rtw_build_tdls_dis_req_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_PEER_TRAFFIC_INDICATION:
+ rtw_build_tdls_peer_traffic_indication_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_CHANNEL_SWITCH_REQUEST:
+ rtw_build_tdls_ch_switch_req_ies(padapter, pxmitframe, pframe);
+ break;
+ case TDLS_CHANNEL_SWITCH_RESPONSE:
+ rtw_build_tdls_ch_switch_rsp_ies(padapter, pxmitframe, pframe);
+ break;
+#ifdef CONFIG_WFD
+ case TUNNELED_PROBE_REQ:
+ rtw_build_tunneled_probe_req_ies(padapter, pxmitframe, pframe);
+ break;
+ case TUNNELED_PROBE_RSP:
+ rtw_build_tunneled_probe_rsp_ies(padapter, pxmitframe, pframe);
+ break;
+#endif //CONFIG_WFD
+ default:
+ res=_FAIL;
+ break;
}
- while( pmlmeext->channel_set[sup_ch_idx].ChannelNum != 0 );
- pframe = rtw_set_ie(pframe, _SUPPORTED_CH_IE_, idx_5g + 2, sup_ch, &(pattrib->pktlen));
-
- //RSNIE
- if(pattrib->encrypt)
- pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
-
- //extended capabilities
- pframe = rtw_set_ie(pframe, _EXT_CAP_IE_ , 5, TDLS_EXT_CAPIE, &(pattrib->pktlen));
-
- //QoS capability(WMM_IE)
- pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, 7, TDLS_WMMIE, &(pattrib->pktlen));
- //FTIE(optional)
- if(pattrib->encrypt){
- _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
- _rtw_memset(pframe, _FTIE_, 1); //version
- _rtw_memset((pframe+1), 82, 1); //length
- _rtw_memcpy((pframe+52), ptdls_sta->SNonce, 32);
- pframe += 84;
- pattrib->pktlen += 84;
+ return res;
+}
- //Timeout interval
- timeout_itvl[0]=0x02;
- _rtw_memcpy(timeout_itvl+1, (u8 *)(&ptdls_sta->TDLS_PeerKey_Lifetime), 4);
- pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
+s32 rtw_make_tdls_wlanhdr (_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib, u8 action)
+{
+ u16 *qc;
+ struct rtw_ieee80211_hdr *pwlanhdr = (struct rtw_ieee80211_hdr *)hdr;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct qos_priv *pqospriv = &pmlmepriv->qospriv;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ struct sta_info *psta=NULL, *ptdls_sta=NULL;
+ u8 tdls_seq=0, baddr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
- }
+ sint res = _SUCCESS;
+ u16 *fctrl = &pwlanhdr->frame_ctl;
- //Sup_reg_classes(optional)
- //HT capabilities
- _rtw_memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
+_func_enter_;
- ht_capie.cap_info = IEEE80211_HT_CAP_SUP_WIDTH |IEEE80211_HT_CAP_SGI_20 |IEEE80211_HT_CAP_SM_PS |
- IEEE80211_HT_CAP_SGI_40 | IEEE80211_HT_CAP_TX_STBC |IEEE80211_HT_CAP_DSSSCCK40;
+ _rtw_memset(hdr, 0, WLANHDR_OFFSET);
- {
- u32 rx_packet_offset, max_recvbuf_sz;
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_MAX_RECVBUF_SZ, &max_recvbuf_sz);
- if(max_recvbuf_sz-rx_packet_offset>(8191-256))
- ht_capie.cap_info = ht_capie.cap_info |IEEE80211_HT_CAP_MAX_AMSDU;
- }
-
- ht_capie.ampdu_params_info = (IEEE80211_HT_CAP_AMPDU_FACTOR&0x03);
+ SetFrameSubType(fctrl, pattrib->subtype);
- switch(pHalData->rf_type)
- {
- case RF_1T1R:
- ht_capie.cap_info |= 0x0100;//RX STBC One spatial stream
- _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_1R, 16);
+ switch(action){
+ case TDLS_SETUP_REQUEST:
+ case TDLS_SETUP_RESPONSE:
+ case TDLS_SETUP_CONFIRM:
+ case TDLS_TEARDOWN: //directly to peer STA or via AP
+ case TDLS_PEER_TRAFFIC_INDICATION:
+ case TDLS_PEER_PSM_REQUEST: //directly to peer STA or via AP
+ case TUNNELED_PROBE_REQ:
+ case TUNNELED_PROBE_RSP:
+ SetToDs(fctrl);
+ _rtw_memcpy(pwlanhdr->addr1, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, pattrib->dst, ETH_ALEN);
break;
-
- case RF_2T2R:
- case RF_1T2R:
- default:
- ht_capie.cap_info|= 0x0200;//RX STBC two spatial stream
- _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_2R, 16);
+ case TDLS_CHANNEL_SWITCH_REQUEST:
+ case TDLS_CHANNEL_SWITCH_RESPONSE:
+ case TDLS_PEER_PSM_RESPONSE:
+ case TDLS_PEER_TRAFFIC_RESPONSE:
+ _rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, get_bssid(pmlmepriv), ETH_ALEN);
+ tdls_seq=1;
+ break;
+ case TDLS_DISCOVERY_REQUEST: //unicast: directly to peer sta, Bcast: via AP
+ if(_rtw_memcmp(pattrib->dst, baddr, ETH_ALEN) )
+ {
+ SetToDs(fctrl);
+ _rtw_memcpy(pwlanhdr->addr1, get_bssid(pmlmepriv), ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, pattrib->dst, ETH_ALEN);
+ }
+ else
+ {
+ _rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, get_bssid(pmlmepriv), ETH_ALEN);
+ tdls_seq=1;
+ }
break;
}
-
- pframe = rtw_set_ie(pframe, _HT_CAPABILITY_IE_,
- sizeof(struct rtw_ieee80211_ht_cap), (unsigned char*)&ht_capie, &(pattrib->pktlen));
- //20/40 BSS coexistence
- if(pmlmepriv->num_FortyMHzIntolerant>0)
- iedata |= BIT(2);//20 MHz BSS Width Request
- pframe = rtw_set_ie(pframe, EID_BSSCoexistence, 1, &iedata, &(pattrib->pktlen));
-
- //Link identifier
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
-}
+ if (pattrib->encrypt)
+ SetPrivacy(fctrl);
-void rtw_tdls_setup_rsp_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- struct sta_info *ptdls_sta;
- struct registry_priv *pregistrypriv = &padapter->registrypriv;
- struct rtw_ieee80211_ht_cap ht_capie;
-
- u8 payload_type = 0x02;
- unsigned char category = RTW_WLAN_CATEGORY_TDLS;
- unsigned char action = TDLS_SETUP_RESPONSE;
- unsigned char bssrate[NDIS_802_11_LENGTH_RATES_EX];
- int bssrate_len = 0;
- u8 more_supportedrates = 0;
- unsigned int ie_len;
- unsigned char *p;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- u8 link_id_addr[18] = {0};
- u8 sup_ch[ 30 * 2 ] = { 0x00 }, sup_ch_idx = 0, idx_5g = 2; //For supported channel
- u8 iedata=0;
- u8 timeout_itvl[5]; //setup response timeout interval will copy from request
- u8 ANonce[32]; //maybe it can put in ontdls_req
- u8 k; //for random ANonce
- u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic;
- u32 time;
-
- ptdls_sta = rtw_get_stainfo( &(padapter->stapriv) , pattrib->dst);
-
- if(ptdls_sta == NULL )
+ if (pqospriv->qos_option)
{
- DBG_8192C("[%s] %d\n", __FUNCTION__, __LINE__);
- }
- else
- DBG_8192C("stat_code:%04x \n", ptdls_sta->stat_code);
-
- if(pattrib->encrypt){
- for(k=0;k<8;k++){
- time=rtw_get_current_time();
- _rtw_memcpy(&ptdls_sta->ANonce[4*k], (u8*)&time, 4);
- }
- }
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, status code
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 2, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
-
- if(ptdls_sta->stat_code!=0) //invalid setup request
- return;
-
- //dialog token
- pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
-
- //capability
- _rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
-
- if(pattrib->encrypt )
- *pframe =*pframe | BIT(4);
- pframe += 2;
- pattrib->pktlen += 2;
-
- //supported rates
- rtw_set_supported_rate(bssrate, WIRELESS_11BG_24N);
- bssrate_len = IEEE80211_CCK_RATE_LEN + IEEE80211_NUM_OFDM_RATESLEN;
- //for (bssrate_len = 0; bssrate_len < NumRates; bssrate_len++) {
- // if (pregistrypriv->dev_network.SupportedRates[bssrate_len]== 0) break;
- // bssrate[bssrate_len] = pregistrypriv->dev_network.SupportedRates[bssrate_len];
- //}
-
- if (bssrate_len > 8)
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
- more_supportedrates = 1;
- }
- else
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
- }
-
- //country(optional)
- //extended supported rates
- if(more_supportedrates==1){
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
- }
-
- //supported channels
- do{
- if( pmlmeext->channel_set[sup_ch_idx].ChannelNum == 11 )
- {
- sup_ch[0] = 1; //First channel number
- sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;; //Number of channel
- }
- else if( pmlmeext->channel_set[sup_ch_idx].ChannelNum == 13 )
- {
- sup_ch[0] = 1;
- sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;;
- }
- else if( pmlmeext->channel_set[sup_ch_idx].ChannelNum > 13 )
- {
- sup_ch[idx_5g++] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;
- sup_ch[idx_5g++] = 1;
- }
-
- sup_ch_idx++;
- }
- while( pmlmeext->channel_set[sup_ch_idx].ChannelNum != 0 );
- pframe = rtw_set_ie(pframe, _SUPPORTED_CH_IE_, idx_5g + 2, sup_ch, &(pattrib->pktlen));
-
- //RSNIE
- if(pattrib->encrypt){
- prsnie = pframe;
- pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
- }
-
- //extended capabilities
- pframe = rtw_set_ie(pframe, _EXT_CAP_IE_ , 5, TDLS_EXT_CAPIE, &(pattrib->pktlen));
-
- //QoS capability(WMM_IE)
- pframe = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, 7, TDLS_WMMIE, &(pattrib->pktlen));
-
- //FTIE(optional)
- if(pattrib->encrypt){
- wpa_tdls_generate_tpk(padapter, ptdls_sta);
-
- pftie = pframe;
- pftie_mic = pframe+4;
- _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
- _rtw_memset(pframe, _FTIE_, 1); //version
- _rtw_memset((pframe+1), 82, 1); //length
- _rtw_memcpy((pframe+20), ptdls_sta->ANonce, 32);
- _rtw_memcpy((pframe+52), ptdls_sta->SNonce, 32);
- pframe += 84;
- pattrib->pktlen += 84;
-
- //Timeout interval
- ptimeout_ie = pframe;
- timeout_itvl[0]=0x02;
- _rtw_memcpy(timeout_itvl+1, (u8 *)(&ptdls_sta->TDLS_PeerKey_Lifetime), 4);
- pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
- }
-
- //Sup_reg_classes(optional)
- //HT capabilities
- _rtw_memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
-
- ht_capie.cap_info = IEEE80211_HT_CAP_SUP_WIDTH |IEEE80211_HT_CAP_SGI_20 |IEEE80211_HT_CAP_SM_PS |
- IEEE80211_HT_CAP_SGI_40 | IEEE80211_HT_CAP_TX_STBC |IEEE80211_HT_CAP_DSSSCCK40;
-
- {
- u32 rx_packet_offset, max_recvbuf_sz;
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_MAX_RECVBUF_SZ, &max_recvbuf_sz);
- if(max_recvbuf_sz-rx_packet_offset>(8191-256))
- ht_capie.cap_info = ht_capie.cap_info |IEEE80211_HT_CAP_MAX_AMSDU;
- }
-
- ht_capie.ampdu_params_info = (IEEE80211_HT_CAP_AMPDU_FACTOR&0x03);
-
- switch(pHalData->rf_type)
- {
- case RF_1T1R:
- ht_capie.cap_info |= 0x0100;//RX STBC One spatial stream
- _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_1R, 16);
- break;
-
- case RF_2T2R:
- case RF_1T2R:
- default:
- ht_capie.cap_info|= 0x0200;//RX STBC two spatial stream
- _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_2R, 16);
- break;
- }
-
- pframe = rtw_set_ie(pframe, _HT_CAPABILITY_IE_,
- sizeof(struct rtw_ieee80211_ht_cap), (unsigned char*)&ht_capie, &(pattrib->pktlen));
-
- //20/40 BSS coexistence
- if(pmlmepriv->num_FortyMHzIntolerant>0)
- iedata |= BIT(2);//20 MHz BSS Width Request
- pframe = rtw_set_ie(pframe, EID_BSSCoexistence, 1, &iedata, &(pattrib->pktlen));
-
- //Link identifier
- plinkid_ie = pframe;
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->dst, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->src, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
- //fill ftie mic
- if(pattrib->encrypt)
- wpa_tdls_ftie_mic(ptdls_sta->tpk.kck, 2, plinkid_ie, prsnie, ptimeout_ie, pftie, pftie_mic);
-
-}
-
-void rtw_tdls_setup_cfm_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
-
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- struct sta_info *ptdls_sta=rtw_get_stainfo( (&padapter->stapriv) , pattrib->dst);
-
- u8 payload_type = 0x02;
- unsigned char category = RTW_WLAN_CATEGORY_TDLS;
- unsigned char action = TDLS_SETUP_CONFIRM;
- u8 more_supportedrates = 0;
- unsigned int ie_len;
- unsigned char *p;
- u8 timeout_itvl[5]; //set timeout interval to maximum value
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- u8 link_id_addr[18] = {0};
- u8 *pftie, *ptimeout_ie, *plinkid_ie, *prsnie, *pftie_mic;
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, status code, dialog token
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 2, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
-
- if(ptdls_sta->stat_code!=0) //invalid setup request
- return;
-
- //RSNIE
- if(pattrib->encrypt){
- prsnie = pframe;
- pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
- }
-
- //EDCA param set; WMM param ele.
- if(pattrib->encrypt){
- //FTIE
- pftie = pframe;
- pftie_mic = pframe+4;
- _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
- _rtw_memset(pframe, _FTIE_, 1); //version
- _rtw_memset((pframe+1), 82, 1); //length
- _rtw_memcpy((pframe+20), ptdls_sta->ANonce, 32);
- _rtw_memcpy((pframe+52), ptdls_sta->SNonce, 32);
- pframe += 84;
- pattrib->pktlen += 84;
-
- //Timeout interval
- ptimeout_ie = pframe;
- timeout_itvl[0]=0x02;
- _rtw_memcpy(timeout_itvl+1, (u8 *)(&ptdls_sta->TDLS_PeerKey_Lifetime), 4);
- ptdls_sta->TPK_count=0;
- _set_timer(&ptdls_sta->TPK_timer, ptdls_sta->TDLS_PeerKey_Lifetime/TPK_RESEND_COUNT);
- pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
- }
-
- //HT operation; todo
- //Link identifier
- plinkid_ie = pframe;
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
- //fill ftie mic
- if(pattrib->encrypt)
- wpa_tdls_ftie_mic(ptdls_sta->tpk.kck, 3, plinkid_ie, prsnie, ptimeout_ie, pftie, pftie_mic);
-
-}
-
-void rtw_tdls_teardown_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
-
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- u8 payload_type = 0x02;
- unsigned char category = RTW_WLAN_CATEGORY_TDLS;
- unsigned char action = TDLS_TEARDOWN;
- u8 link_id_addr[18] = {0};
-
- struct sta_info *ptdls_sta = rtw_get_stainfo( &(padapter->stapriv) , pattrib->dst);
- struct sta_priv *pstapriv = &padapter->stapriv;
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, reason code
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
-
- //Link identifier
- if((ptdls_sta->tdls_sta_state & TDLS_INITIATOR_STATE)==TDLS_INITIATOR_STATE){
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- }else if((ptdls_sta->tdls_sta_state & TDLS_RESPONDER_STATE)==TDLS_RESPONDER_STATE){
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->dst, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->src, 6);
- }
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
-}
-
-void rtw_tdls_dis_req_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
-
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- u8 payload_type = 0x02;
- u8 category = RTW_WLAN_CATEGORY_TDLS;
- u8 action = TDLS_DISCOVERY_REQUEST;
- u8 link_id_addr[18] = {0};
- static u8 dialogtoken=0;
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, reason code
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(dialogtoken), &(pattrib->pktlen));
- dialogtoken = (dialogtoken+1)%256;
-
- //Link identifier
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
-}
-
-void rtw_tdls_dis_rsp_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe, u8 dialog)
-{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- struct registry_priv *pregistrypriv = &padapter->registrypriv;
- struct rtw_ieee80211_ht_cap ht_capie;
-
- u8 category = RTW_WLAN_CATEGORY_PUBLIC;
- u8 action = TDLS_DISCOVERY_RESPONSE;
- u8 bssrate[NDIS_802_11_LENGTH_RATES_EX];
- int bssrate_len = 0;
- u8 more_supportedrates = 0;
- u8 *p;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- u8 link_id_addr[18] = {0};
- u8 sup_ch[ 30 * 2 ] = {0x00 }, sup_ch_idx = 0, idx_5g = 2; //For supported channel
- u8 iedata=0;
- u8 timeout_itvl[5]; //set timeout interval to maximum value
- u32 timeout_interval= TPK_RESEND_COUNT * 1000;
-
- //category, action, dialog token
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(dialog), &(pattrib->pktlen));
-
- //capability
- _rtw_memcpy(pframe, rtw_get_capability_from_ie(pmlmeinfo->network.IEs), 2);
-
- if(pattrib->encrypt)
- *pframe =*pframe | BIT(4);
- pframe += 2;
- pattrib->pktlen += 2;
-
- //supported rates
- rtw_set_supported_rate(bssrate, WIRELESS_11BG_24N);
- bssrate_len = IEEE80211_CCK_RATE_LEN + IEEE80211_NUM_OFDM_RATESLEN;
- //for (bssrate_len = 0; bssrate_len < NumRates; bssrate_len++) {
- // if (pregistrypriv->dev_network.SupportedRates[bssrate_len] == 0) break;
- // bssrate[bssrate_len] = pregistrypriv->dev_network.SupportedRates[bssrate_len];
- //}
-
- if (bssrate_len > 8)
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , 8, bssrate, &(pattrib->pktlen));
- more_supportedrates = 1;
- }
- else
- {
- pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_ , bssrate_len , bssrate, &(pattrib->pktlen));
- }
-
- //extended supported rates
- if(more_supportedrates==1){
- pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_ , (bssrate_len - 8), (bssrate + 8), &(pattrib->pktlen));
- }
-
- //supported channels
- do{
- if( pmlmeext->channel_set[sup_ch_idx].ChannelNum == 11 )
- {
- sup_ch[0] = 1; //First channel number
- sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;; //Number of channel
- }
- else if( pmlmeext->channel_set[sup_ch_idx].ChannelNum == 13 )
- {
- sup_ch[0] = 1;
- sup_ch[1] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;;
- }
- else if( pmlmeext->channel_set[sup_ch_idx].ChannelNum > 13 )
- {
- sup_ch[idx_5g++] = pmlmeext->channel_set[sup_ch_idx].ChannelNum;
- sup_ch[idx_5g++] = 1;
- }
-
- sup_ch_idx++;
- }
- while( pmlmeext->channel_set[sup_ch_idx].ChannelNum != 0 );
- pframe = rtw_set_ie(pframe, _SUPPORTED_CH_IE_, idx_5g + 2, sup_ch, &(pattrib->pktlen));
-
- //RSNIE
- if(pattrib->encrypt)
- pframe = rtw_set_ie(pframe, _RSN_IE_2_, 20, TDLS_RSNIE, &(pattrib->pktlen));
-
- //extended capability
- pframe = rtw_set_ie(pframe, _EXT_CAP_IE_ , 5, TDLS_EXT_CAPIE, &(pattrib->pktlen));
-
- //FTIE
- if(pattrib->encrypt){
- _rtw_memset(pframe, 0, 84); //All fields except SNonce shall be set to 0
- _rtw_memset(pframe, _FTIE_, 1); //version
- _rtw_memset((pframe+1), 82, 1); //length
- pframe += 84;
- pattrib->pktlen += 84;
- //Timeout interval
- timeout_itvl[0]=0x02;
- _rtw_memcpy(timeout_itvl+1, &timeout_interval, 4);
- pframe = rtw_set_ie(pframe, _TIMEOUT_ITVL_IE_, 5, timeout_itvl, &(pattrib->pktlen));
-
- }
-
- //Sup_reg_classes(optional)
- //HT capabilities
- _rtw_memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
-
- ht_capie.cap_info = IEEE80211_HT_CAP_SUP_WIDTH |IEEE80211_HT_CAP_SGI_20 |IEEE80211_HT_CAP_SM_PS |
- IEEE80211_HT_CAP_SGI_40 | IEEE80211_HT_CAP_TX_STBC |IEEE80211_HT_CAP_DSSSCCK40;
-
- {
- u32 rx_packet_offset, max_recvbuf_sz;
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_MAX_RECVBUF_SZ, &max_recvbuf_sz);
- if(max_recvbuf_sz-rx_packet_offset>(8191-256))
- ht_capie.cap_info = ht_capie.cap_info |IEEE80211_HT_CAP_MAX_AMSDU;
- }
-
- ht_capie.ampdu_params_info = (IEEE80211_HT_CAP_AMPDU_FACTOR&0x03);
-
- switch(pHalData->rf_type)
- {
- case RF_1T1R:
- ht_capie.cap_info |= 0x0100;//RX STBC One spatial stream
- _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_1R, 16);
- break;
-
- case RF_2T2R:
- case RF_1T2R:
- default:
- ht_capie.cap_info|= 0x0200;//RX STBC two spatial stream
- _rtw_memcpy(ht_capie.supp_mcs_set, MCS_rate_2R, 16);
- break;
- }
-
- pframe = rtw_set_ie(pframe, _HT_CAPABILITY_IE_,
- sizeof(struct rtw_ieee80211_ht_cap), (unsigned char*)&ht_capie, &(pattrib->pktlen));
-
- //20/40 BSS coexistence
- if(pmlmepriv->num_FortyMHzIntolerant>0)
- iedata |= BIT(2);//20 MHz BSS Width Request
- pframe = rtw_set_ie(pframe, EID_BSSCoexistence, 1, &iedata, &(pattrib->pktlen));
-
- //Link identifier
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->dst, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->src, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
-}
-
-void rtw_tdls_peer_traffic_indication_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
-
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- u8 payload_type = 0x02;
- unsigned char category = RTW_WLAN_CATEGORY_TDLS;
- unsigned char action = TDLS_PEER_TRAFFIC_INDICATION;
-
- u8 link_id_addr[18] = {0};
- u8 AC_queue=0;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, reason code
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(ptdls_sta->dialog), &(pattrib->pktlen));
-
- //Link identifier
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
- //PTI control
- //PU buffer status
- if(ptdls_sta->uapsd_bk&BIT(1))
- AC_queue=BIT(0);
- if(ptdls_sta->uapsd_be&BIT(1))
- AC_queue=BIT(1);
- if(ptdls_sta->uapsd_vi&BIT(1))
- AC_queue=BIT(2);
- if(ptdls_sta->uapsd_vo&BIT(1))
- AC_queue=BIT(3);
- pframe = rtw_set_ie(pframe, _PTI_BUFFER_STATUS_, 1, &AC_queue, &(pattrib->pktlen));
-
-}
-
-void rtw_tdls_ch_switch_req_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
-
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
- u8 payload_type = 0x02;
- unsigned char category = RTW_WLAN_CATEGORY_TDLS;
- unsigned char action = TDLS_CHANNEL_SWITCH_REQUEST;
- u8 link_id_addr[18] = {0};
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
- u8 ch_switch_timing[4] = {0};
- u16 switch_time= CH_SWITCH_TIME, switch_timeout=CH_SWITCH_TIMEOUT;
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, target_ch
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(ptdlsinfo->candidate_ch), &(pattrib->pktlen));
-
- //Link identifier
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
- //ch switch timing
- _rtw_memcpy(ch_switch_timing, &switch_time, 2);
- _rtw_memcpy(ch_switch_timing+2, &switch_timeout, 2);
- pframe = rtw_set_ie(pframe, _CH_SWITCH_TIMING_, 4, ch_switch_timing, &(pattrib->pktlen));
-
- //update ch switch attrib to sta_info
- ptdls_sta->off_ch=ptdlsinfo->candidate_ch;
- ptdls_sta->ch_switch_time=switch_time;
- ptdls_sta->ch_switch_timeout=switch_timeout;
-
-}
-
-void rtw_tdls_ch_switch_rsp_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe)
-{
-
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- u8 payload_type = 0x02;
- unsigned char category = RTW_WLAN_CATEGORY_TDLS;
- unsigned char action = TDLS_CHANNEL_SWITCH_RESPONSE;
- u8 link_id_addr[18] = {0};
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *ptdls_sta = rtw_get_stainfo(pstapriv, pattrib->dst);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
- u8 ch_switch_timing[4] = {0};
-
- //payload type
- pframe = rtw_set_fixed_ie(pframe, 1, &(payload_type), &(pattrib->pktlen));
- //category, action, status_code
- pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
- pframe = rtw_set_fixed_ie(pframe, 2, (u8 *)&ptdls_sta->stat_code, &(pattrib->pktlen));
-
- //Link identifier
- _rtw_memcpy(link_id_addr, pattrib->ra, 6);
- _rtw_memcpy((link_id_addr+6), pattrib->src, 6);
- _rtw_memcpy((link_id_addr+12), pattrib->dst, 6);
- pframe = rtw_set_ie(pframe, _LINK_ID_IE_, 18, link_id_addr, &(pattrib->pktlen));
-
- //ch switch timing
- _rtw_memcpy(ch_switch_timing, &ptdls_sta->ch_switch_time, 2);
- _rtw_memcpy(ch_switch_timing+2, &ptdls_sta->ch_switch_timeout, 2);
- pframe = rtw_set_ie(pframe, _CH_SWITCH_TIMING_, 4, ch_switch_timing, &(pattrib->pktlen));
-
-}
-
-int rtw_tdls_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe, u8 action)
-{
- int res=_SUCCESS;
-
- switch(action){
- case TDLS_SETUP_REQUEST:
- rtw_tdls_setup_req_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_SETUP_RESPONSE:
- rtw_tdls_setup_rsp_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_SETUP_CONFIRM:
- rtw_tdls_setup_cfm_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_TEARDOWN:
- rtw_tdls_teardown_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_DISCOVERY_REQUEST:
- rtw_tdls_dis_req_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_PEER_TRAFFIC_INDICATION:
- rtw_tdls_peer_traffic_indication_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_CHANNEL_SWITCH_REQUEST:
- rtw_tdls_ch_switch_req_fr(padapter, pxmitframe, pframe);
- break;
- case TDLS_CHANNEL_SWITCH_RESPONSE:
- rtw_tdls_ch_switch_rsp_fr(padapter, pxmitframe, pframe);
- break;
- default:
- res=_FAIL;
- break;
- }
-
- return res;
-}
-
-s32 rtw_make_tdls_wlanhdr (_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib, u8 action)
-{
- u16 *qc;
- struct rtw_ieee80211_hdr *pwlanhdr = (struct rtw_ieee80211_hdr *)hdr;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct qos_priv *pqospriv = &pmlmepriv->qospriv;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct sta_info *psta=NULL, *ptdls_sta=NULL;
- u8 tdls_seq=0, baddr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
-
- sint res = _SUCCESS;
- u16 *fctrl = &pwlanhdr->frame_ctl;
-
-_func_enter_;
-
- _rtw_memset(hdr, 0, WLANHDR_OFFSET);
-
- SetFrameSubType(fctrl, pattrib->subtype);
-
- switch(action){
- case TDLS_SETUP_REQUEST:
- case TDLS_SETUP_RESPONSE:
- case TDLS_SETUP_CONFIRM:
- case TDLS_TEARDOWN: //directly to peer STA or via AP
- case TDLS_PEER_TRAFFIC_INDICATION:
- case TDLS_PEER_PSM_REQUEST: //directly to peer STA or via AP
- SetToDs(fctrl);
- _rtw_memcpy(pwlanhdr->addr1, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, pattrib->dst, ETH_ALEN);
- break;
- case TDLS_CHANNEL_SWITCH_REQUEST:
- case TDLS_CHANNEL_SWITCH_RESPONSE:
- case TDLS_PEER_PSM_RESPONSE:
- case TDLS_PEER_TRAFFIC_RESPONSE:
- _rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, get_bssid(pmlmepriv), ETH_ALEN);
- tdls_seq=1;
- break;
- case TDLS_DISCOVERY_REQUEST: //unicast: directly to peer sta, Bcast: via AP
- if(_rtw_memcmp(pattrib->dst, baddr, 6) )
- {
- SetToDs(fctrl);
- _rtw_memcpy(pwlanhdr->addr1, get_bssid(pmlmepriv), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, pattrib->dst, ETH_ALEN);
- }
- else
- {
- _rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, get_bssid(pmlmepriv), ETH_ALEN);
- tdls_seq=1;
- }
- break;
- }
-
- if (pattrib->encrypt)
- SetPrivacy(fctrl);
-
- if (pqospriv->qos_option)
- {
- qc = (unsigned short *)(hdr + pattrib->hdrlen - 2);
- if (pattrib->priority)
- SetPriority(qc, pattrib->priority);
- SetAckpolicy(qc, pattrib->ack_policy);
+ qc = (unsigned short *)(hdr + pattrib->hdrlen - 2);
+ if (pattrib->priority)
+ SetPriority(qc, pattrib->priority);
+ SetAckpolicy(qc, pattrib->ack_policy);
}
psta = pattrib->psta;
@@ -2243,10 +1624,10 @@ _func_enter_;
llc_sz = rtw_put_snap(pframe, pattrib->ether_type);
pframe += llc_sz;
- //pattrib->pktlen will be counted in rtw_tdls_fr
+ //pattrib->pktlen will be counted in rtw_build_tdls_ies
pattrib->pktlen = 0;
- rtw_tdls_fr(padapter, pxmitframe, pframe, action);
+ rtw_build_tdls_ies(padapter, pxmitframe, pframe, action);
if ((pattrib->icv_len >0 )&& (pattrib->bswenc)) {
pframe += pattrib->pktlen;
@@ -2273,7 +1654,24 @@ _func_exit_;
return res;
}
-#endif
+#endif //CONFIG_TDLS
+
+/*
+ * Calculate wlan 802.11 packet MAX size from pkt_attrib
+ * This function doesn't consider fragment case
+ */
+u32 rtw_calculate_wlan_pkt_size_by_attribue(struct pkt_attrib *pattrib)
+{
+ u32 len = 0;
+
+ len = pattrib->hdrlen + pattrib->iv_len; // WLAN Header and IV
+ len += SNAP_SIZE + sizeof(u16); // LLC
+ len += pattrib->pktlen;
+ if (pattrib->encrypt == _TKIP_) len += 8; // MIC
+ len += pattrib->icv_len; // ICV
+
+ return len;
+}
/*
@@ -2311,17 +1709,33 @@ s32 rtw_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame *pxm
_func_enter_;
- if (pattrib->psta) {
+ if (pattrib->psta)
+ {
psta = pattrib->psta;
- } else {
+ } else
+ {
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
}
if(psta==NULL)
+ {
+
+ DBG_871X("%s, psta==NUL\n", __func__);
return _FAIL;
+ }
- if (pxmitframe->buf_addr == NULL)
+
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
return _FAIL;
+ }
+
+ if (pxmitframe->buf_addr == NULL){
+ DBG_8192C("==> %s buf_addr==NULL \n",__FUNCTION__);
+ return _FAIL;
+ }
pbuf_start = pxmitframe->buf_addr;
@@ -2340,8 +1754,6 @@ _func_enter_;
_rtw_open_pktfile(pkt, &pktfile);
_rtw_pktfile_read(&pktfile, NULL, pattrib->pkt_hdrlen);
- pattrib->pktlen = pktfile.pkt_len;
-
frg_inx = 0;
frg_len = pxmitpriv->frag_len - 4;//2346-4 = 2342
@@ -2435,23 +1847,10 @@ _func_enter_;
((pattrib->bswenc) ? pattrib->icv_len : 0) + mem_sz;
ClearMFrag(mem_start);
-
-#ifdef CONFIG_SDIO_HCI
- RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("coalesce: pattrib->last_txcmdsz=%d pxmitframe->pxmitbuf->phead=0x%p pxmitframe->pxmitbuf->ptail=0x%p pxmitframe->pxmitbuf->len=%d\n", pattrib->last_txcmdsz, pxmitframe->pxmitbuf->phead, pxmitframe->pxmitbuf->ptail, pxmitframe->pxmitbuf->len));
- pxmitframe->pxmitbuf->ptail = pxmitframe->buf_addr + _RND512(pframe-pxmitframe->buf_addr);
- pxmitframe->pxmitbuf->len += pxmitframe->pxmitbuf->ptail - pxmitframe->buf_addr;//(pframe-mem_start);
- RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("coalesce: [2] pattrib->last_txcmdsz=%d pxmitframe->pxmitbuf->ptail=0x%p pxmitframe->pxmitbuf->len=%d\n", pattrib->last_txcmdsz, pxmitframe->pxmitbuf->ptail, pxmitframe->pxmitbuf->len));
-#endif
break;
-
} else {
-
-#ifdef CONFIG_SDIO_HCI
- pxmitframe->pxmitbuf->ptail = pxmitframe->buf_addr + _RND512(pframe-pxmitframe->buf_addr);
- pxmitframe->pxmitbuf->len += pxmitframe->pxmitbuf->ptail - pxmitframe->buf_addr;
- pframe=pxmitframe->pxmitbuf->ptail;
-#endif
+ RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("%s: There're still something in packet!\n", __FUNCTION__));
}
addr = (SIZE_PTR)(pframe);
@@ -2467,10 +1866,6 @@ _func_enter_;
goto exit;
}
-#ifdef CONFIG_SDIO_HCI
- fillin_txdesc(padapter, pxmitframe);
-#endif
-
xmitframe_swencrypt(padapter, pxmitframe);
if(bmcst == _FALSE)
@@ -2485,6 +1880,244 @@ _func_exit_;
return res;
}
+#ifdef CONFIG_IEEE80211W
+//broadcast or multicast management pkt use BIP, unicast management pkt use CCMP encryption
+s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame *pxmitframe)
+{
+ struct pkt_file pktfile;
+ s32 frg_inx, frg_len, mpdu_len, llc_sz, mem_sz;
+ SIZE_PTR addr;
+ u8 *pframe, *mem_start = NULL, *tmp_buf=NULL;
+ u8 hw_hdr_offset, subtype ;
+ struct sta_info *psta = NULL;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+ u8 *pbuf_start;
+ s32 bmcst = IS_MCAST(pattrib->ra);
+ s32 res = _FAIL;
+ u8 *BIP_AAD=NULL;
+ u8 *MGMT_body=NULL;
+
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ u8 MME[_MME_IE_LENGTH_];
+
+ _irqL irqL;
+ u32 ori_len;
+ mem_start = pframe = (u8 *)(pxmitframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+
+_func_enter_;
+ ori_len = BIP_AAD_SIZE+pattrib->pktlen;
+ tmp_buf = BIP_AAD = rtw_zmalloc(ori_len);
+ subtype = GetFrameSubType(pframe); //bit(7)~bit(2)
+
+ if(BIP_AAD == NULL)
+ return _FAIL;
+
+ _enter_critical_bh(&padapter->security_key_mutex, &irqL);
+
+ //only support station mode
+ if(!check_fwstate(pmlmepriv, WIFI_STATION_STATE) || !check_fwstate(pmlmepriv, _FW_LINKED))
+ goto xmitframe_coalesce_success;
+
+ //IGTK key is not install, it may not support 802.11w
+ if(padapter->securitypriv.binstallBIPkey != _TRUE)
+ {
+ DBG_871X("no instll BIP key\n");
+ goto xmitframe_coalesce_success;
+ }
+ //station mode doesn't need TX BIP, just ready the code
+ if(bmcst)
+ {
+ int frame_body_len;
+ u8 mic[16];
+
+ _rtw_memset(MME, 0, 18);
+
+ //other types doesn't need the BIP
+ if(GetFrameSubType(pframe) != WIFI_DEAUTH && GetFrameSubType(pframe) != WIFI_DISASSOC)
+ goto xmitframe_coalesce_fail;
+
+ MGMT_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
+ pframe += pattrib->pktlen;
+
+ //octent 0 and 1 is key index ,BIP keyid is 4 or 5, LSB only need octent 0
+ MME[0]=padapter->securitypriv.dot11wBIPKeyid;
+ //copy packet number
+ _rtw_memcpy(&MME[2], &pmlmeext->mgnt_80211w_IPN, 6);
+ //increase the packet number
+ pmlmeext->mgnt_80211w_IPN++;
+
+ //add MME IE with MIC all zero, MME string doesn't include element id and length
+ pframe = rtw_set_ie(pframe, _MME_IE_ , 16 , MME, &(pattrib->pktlen));
+ pattrib->last_txcmdsz = pattrib->pktlen;
+ // total frame length - header length
+ frame_body_len = pattrib->pktlen - sizeof(struct rtw_ieee80211_hdr_3addr);
+
+ //conscruct AAD, copy frame control field
+ _rtw_memcpy(BIP_AAD, &pwlanhdr->frame_ctl, 2);
+ ClearRetry(BIP_AAD);
+ ClearPwrMgt(BIP_AAD);
+ ClearMData(BIP_AAD);
+ //conscruct AAD, copy address 1 to address 3
+ _rtw_memcpy(BIP_AAD+2, pwlanhdr->addr1, 18);
+ //copy management fram body
+ _rtw_memcpy(BIP_AAD+BIP_AAD_SIZE, MGMT_body, frame_body_len);
+ /*//dump total packet include MME with zero MIC
+ {
+ int i;
+ printk("Total packet: ");
+ for(i=0; i < BIP_AAD_SIZE+frame_body_len; i++)
+ printk(" %02x ", BIP_AAD[i]);
+ printk("\n");
+ }*/
+ //calculate mic
+ if(omac1_aes_128(padapter->securitypriv.dot11wBIPKey[padapter->securitypriv.dot11wBIPKeyid].skey
+ , BIP_AAD, BIP_AAD_SIZE+frame_body_len, mic))
+ goto xmitframe_coalesce_fail;
+
+ /*//dump calculated mic result
+ {
+ int i;
+ printk("Calculated mic result: ");
+ for(i=0; i<16; i++)
+ printk(" %02x ", mic[i]);
+ printk("\n");
+ }*/
+ //copy right BIP mic value, total is 128bits, we use the 0~63 bits
+ _rtw_memcpy(pframe-8, mic, 8);
+ /*/dump all packet after mic ok
+ {
+ int pp;
+ printk("pattrib->pktlen = %d \n", pattrib->pktlen);
+ for(pp=0;pp< pattrib->pktlen; pp++)
+ printk(" %02x ", mem_start[pp]);
+ printk("\n");
+ }*/
+ }
+ else //unicast mgmt frame TX
+ {
+ //start to encrypt mgmt frame
+ if(subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC ||
+ subtype == WIFI_REASSOCREQ || subtype == WIFI_ACTION)
+ {
+ if (pattrib->psta)
+ psta = pattrib->psta;
+ else
+ {
+ psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
+ }
+
+ if(psta==NULL)
+ {
+
+ DBG_871X("%s, psta==NUL\n", __func__);
+ goto xmitframe_coalesce_fail;
+ }
+
+ if(!(psta->state & _FW_LINKED) || pxmitframe->buf_addr==NULL)
+ {
+ DBG_871X("%s, not _FW_LINKED or addr null\n", __func__);
+ goto xmitframe_coalesce_fail;
+ }
+
+ //DBG_871X("%s, action frame category=%d \n", __func__, pframe[WLAN_HDR_A3_LEN]);
+ //according 802.11-2012 standard, these five types are not robust types
+ if(subtype == WIFI_ACTION &&
+ (pframe[WLAN_HDR_A3_LEN] == RTW_WLAN_CATEGORY_PUBLIC ||
+ pframe[WLAN_HDR_A3_LEN] == RTW_WLAN_CATEGORY_HT ||
+ pframe[WLAN_HDR_A3_LEN] == RTW_WLAN_CATEGORY_UNPROTECTED_WNM ||
+ pframe[WLAN_HDR_A3_LEN] == RTW_WLAN_CATEGORY_SELF_PROTECTED ||
+ pframe[WLAN_HDR_A3_LEN] == RTW_WLAN_CATEGORY_P2P))
+ goto xmitframe_coalesce_fail;
+ //before encrypt dump the management packet content
+ /*{
+ int i;
+ printk("Management pkt: ");
+ for(i=0; i<pattrib->pktlen; i++)
+ printk(" %02x ", pframe[i]);
+ printk("=======\n");
+ }*/
+ if(pattrib->encrypt>0)
+ _rtw_memcpy(pattrib->dot118021x_UncstKey.skey, psta->dot118021x_UncstKey.skey, 16);
+ //bakeup original management packet
+ _rtw_memcpy(tmp_buf, pframe, pattrib->pktlen);
+ //move to data portion
+ pframe += pattrib->hdrlen;
+
+ //802.11w unicast management packet must be _AES_
+ pattrib->iv_len = 8;
+ //it's MIC of AES
+ pattrib->icv_len = 8;
+
+ switch(pattrib->encrypt)
+ {
+ case _AES_:
+ //set AES IV header
+ AES_IV(pattrib->iv, psta->dot11wtxpn, 0);
+ break;
+ default:
+ goto xmitframe_coalesce_fail;
+ }
+ //insert iv header into management frame
+ _rtw_memcpy(pframe, pattrib->iv, pattrib->iv_len);
+ pframe += pattrib->iv_len;
+ //copy mgmt data portion after CCMP header
+ _rtw_memcpy(pframe, tmp_buf+pattrib->hdrlen, pattrib->pktlen-pattrib->hdrlen);
+ //move pframe to end of mgmt pkt
+ pframe += pattrib->pktlen-pattrib->hdrlen;
+ //add 8 bytes CCMP IV header to length
+ pattrib->pktlen += pattrib->iv_len;
+ /*//dump management packet include AES IV header
+ {
+ int i;
+ printk("Management pkt + IV: ");
+ //for(i=0; i<pattrib->pktlen; i++)
+ //printk(" %02x ", mem_start[i]);
+ printk("@@@@@@@@@@@@@\n");
+ }*/
+
+ if ((pattrib->icv_len >0 )&& (pattrib->bswenc)) {
+ _rtw_memcpy(pframe, pattrib->icv, pattrib->icv_len);
+ pframe += pattrib->icv_len;
+ }
+ //add 8 bytes MIC
+ pattrib->pktlen += pattrib->icv_len;
+ //set final tx command size
+ pattrib->last_txcmdsz = pattrib->pktlen;
+
+ //set protected bit must be beofre SW encrypt
+ SetPrivacy(mem_start);
+ /*//dump management packet include AES header
+ {
+ int i;
+ printk("prepare to enc Management pkt + IV: ");
+ for(i=0; i<pattrib->pktlen; i++)
+ printk(" %02x ", mem_start[i]);
+ printk("@@@@@@@@@@@@@\n");
+ }*/
+ //software encrypt
+ xmitframe_swencrypt(padapter, pxmitframe);
+ }
+ }
+
+xmitframe_coalesce_success:
+ _exit_critical_bh(&padapter->security_key_mutex, &irqL);
+ rtw_mfree(BIP_AAD, ori_len);
+_func_exit_;
+ return _SUCCESS;
+
+xmitframe_coalesce_fail:
+ _exit_critical_bh(&padapter->security_key_mutex, &irqL);
+ rtw_mfree(BIP_AAD, ori_len);
+_func_exit_;
+
+ return _FAIL;
+}
+#endif //CONFIG_IEEE80211W
+
/* Logical Link Control(LLC) SubNetwork Attachment Point(SNAP) header
* IEEE LLC/SNAP header contains 8 octets
* First 3 octets comprise the LLC portion
@@ -2637,12 +2270,17 @@ _func_enter_;
#ifdef CONFIG_SDIO_HCI
pxmitbuf->len = 0;
- pxmitbuf->phead = pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->pbuf;
- pxmitbuf->pend = pxmitbuf->pbuf + (MAX_XMIT_EXTBUF_SZ-4);
+ pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
#endif
#ifdef CONFIG_PCI_HCI
pxmitbuf->len = 0;
#endif
+
+ if (pxmitbuf->sctx) {
+ DBG_871X("%s pxmitbuf->sctx is not NULL\n", __func__);
+ rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC);
+ }
+
}
_exit_critical(&pfree_queue->lock, &irqL);
@@ -2690,7 +2328,7 @@ struct xmit_buf *rtw_alloc_xmitbuf(struct xmit_priv *pxmitpriv)
_func_enter_;
- //DBG_8192C("+rtw_alloc_xmitbuf\n");
+ //DBG_871X("+rtw_alloc_xmitbuf\n");
_enter_critical(&pfree_xmitbuf_queue->lock, &irqL);
@@ -2713,18 +2351,22 @@ _func_enter_;
#ifdef DBG_XMIT_BUF
DBG_871X("DBG_XMIT_BUF ALLOC no=%d, free_xmitbuf_cnt=%d\n",pxmitbuf->no, pxmitpriv->free_xmitbuf_cnt);
#endif
- //DBG_8192C("alloc, free_xmitbuf_cnt=%d\n", pxmitpriv->free_xmitbuf_cnt);
+ //DBG_871X("alloc, free_xmitbuf_cnt=%d\n", pxmitpriv->free_xmitbuf_cnt);
pxmitbuf->priv_data = NULL;
#ifdef CONFIG_SDIO_HCI
pxmitbuf->len = 0;
- pxmitbuf->phead = pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->pbuf;
- pxmitbuf->pend = pxmitbuf->pbuf + MAX_XMITBUF_SZ;
+ pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
#endif
#ifdef CONFIG_PCI_HCI
pxmitbuf->len = 0;
#endif
+
+ if (pxmitbuf->sctx) {
+ DBG_871X("%s pxmitbuf->sctx is not NULL\n", __func__);
+ rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC);
+ }
}
#ifdef DBG_XMIT_BUF
else
@@ -2747,13 +2389,18 @@ s32 rtw_free_xmitbuf(struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf)
_func_enter_;
- //DBG_8192C("+rtw_free_xmitbuf\n");
+ //DBG_871X("+rtw_free_xmitbuf\n");
if(pxmitbuf==NULL)
{
return _FAIL;
}
+ if (pxmitbuf->sctx) {
+ DBG_871X("%s pxmitbuf->sctx is not NULL\n", __func__);
+ rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_FREE);
+ }
+
if(pxmitbuf->ext_tag)
{
rtw_free_xmitbuf_ext(pxmitpriv, pxmitbuf);
@@ -2767,7 +2414,7 @@ _func_enter_;
rtw_list_insert_tail(&(pxmitbuf->list), get_list_head(pfree_xmitbuf_queue));
pxmitpriv->free_xmitbuf_cnt++;
- //DBG_8192C("FREE, free_xmitbuf_cnt=%d\n", pxmitpriv->free_xmitbuf_cnt);
+ //DBG_871X("FREE, free_xmitbuf_cnt=%d\n", pxmitpriv->free_xmitbuf_cnt);
#ifdef DBG_XMIT_BUF
DBG_871X("DBG_XMIT_BUF FREE no=%d, free_xmitbuf_cnt=%d\n",pxmitbuf->no ,pxmitpriv->free_xmitbuf_cnt);
#endif
@@ -2779,6 +2426,40 @@ _func_exit_;
return _SUCCESS;
}
+void rtw_init_xmitframe(struct xmit_frame *pxframe)
+{
+ if (pxframe != NULL)//default value setting
+ {
+ pxframe->buf_addr = NULL;
+ pxframe->pxmitbuf = NULL;
+
+ _rtw_memset(&pxframe->attrib, 0, sizeof(struct pkt_attrib));
+ //pxframe->attrib.psta = NULL;
+
+ pxframe->frame_tag = DATA_FRAMETAG;
+
+#ifdef CONFIG_USB_HCI
+ pxframe->pkt = NULL;
+ pxframe->pkt_offset = 1;//default use pkt_offset to fill tx desc
+
+#ifdef CONFIG_USB_TX_AGGREGATION
+ pxframe->agg_num = 1;
+#endif
+
+#endif //#ifdef CONFIG_USB_HCI
+
+#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+ pxframe->pg_num = 1;
+ pxframe->agg_num = 1;
+#endif
+
+#ifdef CONFIG_XMIT_ACK
+ pxframe->ack_report = 0;
+#endif
+
+ }
+}
+
/*
Calling context:
1. OS_TXENTRY
@@ -2790,7 +2471,6 @@ Otherwise, we must use _enter/_exit critical to protect free_xmit_queue...
Must be very very cautious...
*/
-
struct xmit_frame *rtw_alloc_xmitframe(struct xmit_priv *pxmitpriv)//(_queue *pfree_xmit_queue)
{
/*
@@ -2803,7 +2483,9 @@ struct xmit_frame *rtw_alloc_xmitframe(struct xmit_priv *pxmitpriv)//(_queue *pf
struct xmit_frame *pxframe = NULL;
_list *plist, *phead;
_queue *pfree_xmit_queue = &pxmitpriv->free_xmit_queue;
+#ifdef PLATFORM_LINUX
_adapter *padapter = pxmitpriv->adapter;
+#endif //PLATFORM_LINUX
_func_enter_;
@@ -2820,53 +2502,95 @@ _func_enter_;
pxframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
rtw_list_delete(&(pxframe->list));
+ pxmitpriv->free_xmitframe_cnt--;
+ RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, ("rtw_alloc_xmitframe():free_xmitframe_cnt=%d\n", pxmitpriv->free_xmitframe_cnt));
}
- if (pxframe != NULL)
- {
- pxmitpriv->free_xmitframe_cnt--;
+#ifdef PLATFORM_LINUX
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
+ if(pxmitpriv->free_xmitframe_cnt==1)
+ {
+ if (!rtw_netif_queue_stopped(padapter->pnetdev))
+ rtw_netif_stop_queue(padapter->pnetdev);
+ }
+#endif
+#endif
- RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, ("rtw_alloc_xmitframe():free_xmitframe_cnt=%d\n", pxmitpriv->free_xmitframe_cnt));
+ _exit_critical_bh(&pfree_xmit_queue->lock, &irqL);
- pxframe->buf_addr = NULL;
- pxframe->pxmitbuf = NULL;
+ rtw_init_xmitframe(pxframe);
+
+_func_exit_;
+
+ return pxframe;
+}
+
+struct xmit_frame *rtw_alloc_xmitframe_ext(struct xmit_priv *pxmitpriv)
+{
+ _irqL irqL;
+ struct xmit_frame *pxframe = NULL;
+ _list *plist, *phead;
+ _queue *queue = &pxmitpriv->free_xframe_ext_queue;
+
+_func_enter_;
+
+ _enter_critical_bh(&queue->lock, &irqL);
+
+ if (_rtw_queue_empty(queue) == _TRUE) {
+ RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_alloc_xmitframe_ext:%d\n", pxmitpriv->free_xframe_ext_cnt));
+ pxframe = NULL;
+ } else {
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+ pxframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
+
+ rtw_list_delete(&(pxframe->list));
+ pxmitpriv->free_xframe_ext_cnt--;
+ RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, ("rtw_alloc_xmitframe_ext():free_xmitframe_cnt=%d\n", pxmitpriv->free_xframe_ext_cnt));
+ }
+
+ _exit_critical_bh(&queue->lock, &irqL);
+
+ rtw_init_xmitframe(pxframe);
- _rtw_memset(&pxframe->attrib, 0, sizeof(struct pkt_attrib));
- //pxframe->attrib.psta = NULL;
+_func_exit_;
- pxframe->frame_tag = DATA_FRAMETAG;
+ return pxframe;
+}
-#ifdef CONFIG_USB_HCI
- pxframe->pkt = NULL;
- pxframe->pkt_offset = 1;//default use pkt_offset to fill tx desc
+struct xmit_frame *rtw_alloc_xmitframe_once(struct xmit_priv *pxmitpriv)
+{
+ struct xmit_frame *pxframe = NULL;
+ u8 *alloc_addr;
-#ifdef CONFIG_USB_TX_AGGREGATION
- pxframe->agg_num = 1;
-#endif
+ alloc_addr = rtw_zmalloc(sizeof(struct xmit_frame) + 4);
+
+ if (alloc_addr == NULL)
+ goto exit;
+
+ pxframe = (struct xmit_frame *)N_BYTE_ALIGMENT((SIZE_PTR)(alloc_addr), 4);
+ pxframe->alloc_addr = alloc_addr;
-#endif //#ifdef CONFIG_USB_HCI
+ pxframe->padapter = pxmitpriv->adapter;
+ pxframe->frame_tag = NULL_FRAMETAG;
-#ifdef PLATFORM_LINUX
- if(pxmitpriv->free_xmitframe_cnt==1)
- {
- if (!netif_queue_stopped(padapter->pnetdev))
- netif_stop_queue(padapter->pnetdev);
- }
-#endif
+ pxframe->pkt = NULL;
- }
+ pxframe->buf_addr = NULL;
+ pxframe->pxmitbuf = NULL;
- _exit_critical_bh(&pfree_xmit_queue->lock, &irqL);
+ rtw_init_xmitframe(pxframe);
-_func_exit_;
+ DBG_871X("################## %s ##################\n", __func__);
+exit:
return pxframe;
}
s32 rtw_free_xmitframe(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe)
{
_irqL irqL;
- _queue *pfree_xmit_queue = &pxmitpriv->free_xmit_queue;
+ _queue *queue;
_adapter *padapter = pxmitpriv->adapter;
_pkt *pndis_pkt = NULL;
@@ -2877,22 +2601,40 @@ _func_enter_;
goto exit;
}
- _enter_critical_bh(&pfree_xmit_queue->lock, &irqL);
-
- rtw_list_delete(&pxmitframe->list);
-
if (pxmitframe->pkt){
pndis_pkt = pxmitframe->pkt;
pxmitframe->pkt = NULL;
}
- rtw_list_insert_tail(&pxmitframe->list, get_list_head(pfree_xmit_queue));
+ if (pxmitframe->alloc_addr) {
+ DBG_871X("################## %s with alloc_addr ##################\n", __func__);
+ rtw_mfree(pxmitframe->alloc_addr, sizeof(struct xmit_frame) + 4);
+ goto check_pkt_complete;
+ }
+
+ if (pxmitframe->ext_tag == 0)
+ queue = &pxmitpriv->free_xmit_queue;
+ else if(pxmitframe->ext_tag == 1)
+ queue = &pxmitpriv->free_xframe_ext_queue;
+ else
+ {}
- pxmitpriv->free_xmitframe_cnt++;
- RT_TRACE(_module_rtl871x_xmit_c_, _drv_debug_, ("rtw_free_xmitframe():free_xmitframe_cnt=%d\n", pxmitpriv->free_xmitframe_cnt));
+ _enter_critical_bh(&queue->lock, &irqL);
- _exit_critical_bh(&pfree_xmit_queue->lock, &irqL);
+ rtw_list_delete(&pxmitframe->list);
+ rtw_list_insert_tail(&pxmitframe->list, get_list_head(queue));
+ if (pxmitframe->ext_tag == 0) {
+ pxmitpriv->free_xmitframe_cnt++;
+ RT_TRACE(_module_rtl871x_xmit_c_, _drv_debug_, ("rtw_free_xmitframe():free_xmitframe_cnt=%d\n", pxmitpriv->free_xmitframe_cnt));
+ } else if(pxmitframe->ext_tag == 1) {
+ pxmitpriv->free_xframe_ext_cnt++;
+ RT_TRACE(_module_rtl871x_xmit_c_, _drv_debug_, ("rtw_free_xmitframe():free_xframe_ext_cnt=%d\n", pxmitpriv->free_xframe_ext_cnt));
+ } else {
+ }
+ _exit_critical_bh(&queue->lock, &irqL);
+
+check_pkt_complete:
if(pndis_pkt)
rtw_os_pkt_complete(padapter, pndis_pkt);
@@ -2904,26 +2646,6 @@ _func_exit_;
return _SUCCESS;
}
-s32 rtw_free_xmitframe_ex(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe)
-{
-
-_func_enter_;
-
- if(pxmitframe==NULL){
- goto exit;
- }
-
- RT_TRACE(_module_rtl871x_xmit_c_, _drv_debug_, ("rtw_free_xmitframe_ex()\n"));
-
- rtw_free_xmitframe(pxmitpriv, pxmitframe);
-
-exit:
-
-_func_exit_;
-
- return _SUCCESS;
-}
-
void rtw_free_xmitframe_queue(struct xmit_priv *pxmitpriv, _queue *pframequeue)
{
_irqL irqL;
@@ -2995,11 +2717,7 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv, str
ptxservq->qcnt--;
- //rtw_list_insert_tail(&pxmitframe->list, &phwxmit->pending);
-
- //ptxservq->qcnt--;
-
- break;
+ break;
pxmitframe = NULL;
@@ -3118,7 +2836,7 @@ _func_exit_;
#if 1
struct tx_servq *rtw_get_sta_pending(_adapter *padapter, struct sta_info *psta, sint up, u8 *ac)
{
- struct tx_servq *ptxservq;
+ struct tx_servq *ptxservq=NULL;
_func_enter_;
@@ -3243,15 +2961,23 @@ _func_enter_;
if (pattrib->psta) {
psta = pattrib->psta;
} else {
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
psta = rtw_get_stainfo(pstapriv, pattrib->ra);
}
if (psta == NULL) {
res = _FAIL;
+ DBG_8192C("rtw_xmit_classifier: psta == NULL\n");
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("rtw_xmit_classifier: psta == NULL\n"));
goto exit;
}
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
+ return _FAIL;
+ }
+
ptxservq = rtw_get_sta_pending(padapter, psta, pattrib->priority, (u8 *)(&ac_index));
//_enter_critical(&pstapending->lock, &irqL0);
@@ -3363,8 +3089,6 @@ _func_enter_;
_func_exit_;
}
-
-
#ifdef CONFIG_BR_EXT
int rtw_br_client_tx(_adapter *padapter, struct sk_buff **pskb)
{
@@ -3411,7 +3135,7 @@ int rtw_br_client_tx(_adapter *padapter, struct sk_buff **pskb)
*((unsigned short *)(skb->data+MACADDRLEN*2+2-i*2)) = *((unsigned short *)(skb->data+MACADDRLEN*2-2-i*2));
skb_pull(skb, 4);
}
-
+ //if SA == br_mac && skb== IP => copy SIP to br_ip ?? why
if (!memcmp(skb->data+MACADDRLEN, padapter->br_mac, MACADDRLEN) &&
(*((unsigned short *)(skb->data+MACADDRLEN*2)) == __constant_htons(ETH_P_IP)))
memcpy(padapter->br_ip, skb->data+WLAN_ETHHDR_LEN+12, 4);
@@ -3455,14 +3179,14 @@ int rtw_br_client_tx(_adapter *padapter, struct sk_buff **pskb)
*((unsigned short *)(skb->data+MACADDRLEN*2+2)) = vlan_hdr;
}
- newskb = skb_copy(skb, GFP_ATOMIC);
+ newskb = rtw_skb_copy(skb);
if (newskb == NULL) {
//priv->ext_stats.tx_drops++;
- DEBUG_ERR("TX DROP: skb_copy fail!\n");
+ DEBUG_ERR("TX DROP: rtw_skb_copy fail!\n");
//goto stop_proc;
return -1;
}
- dev_kfree_skb_any(skb);
+ rtw_skb_free(skb);
*pskb = skb = newskb;
if (is_vlan_tag) {
@@ -3498,7 +3222,7 @@ int rtw_br_client_tx(_adapter *padapter, struct sk_buff **pskb)
}
// we just print warning message and let it go
- DEBUG_WARN("%s()-%d: nat25_db_handle INSERT Warning!\n", __FUNCTION__, __LINE__);
+ //DEBUG_WARN("%s()-%d: nat25_db_handle INSERT Warning!\n", __FUNCTION__, __LINE__);
//return -1; // return -1 will cause system crash on 2011/08/30!
return 0;
}
@@ -3556,8 +3280,8 @@ static void do_queue_select(_adapter *padapter, struct pkt_attrib *pattrib)
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("### do_queue_select priority=%d ,qsel = %d\n",pattrib->priority ,qsel));
#ifdef CONFIG_CONCURRENT_MODE
- if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
- qsel = 7;//
+// if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
+// qsel = 7;//
#endif
pattrib->qsel = qsel;
@@ -3573,6 +3297,8 @@ static void do_queue_select(_adapter *padapter, struct pkt_attrib *pattrib)
*/
s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
{
+ static u32 start = 0;
+ static u32 drop_cnt = 0;
#ifdef CONFIG_AP_MODE
_irqL irqL0;
#endif
@@ -3585,13 +3311,21 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
s32 res;
+ if (start == 0)
+ start = rtw_get_current_time();
pxmitframe = rtw_alloc_xmitframe(pxmitpriv);
+
+ if (rtw_get_passing_time_ms(start) > 2000) {
+ if (drop_cnt)
+ DBG_871X("DBG_TX_DROP_FRAME %s no more pxmitframe, drop_cnt:%u\n", __FUNCTION__, drop_cnt);
+ start = rtw_get_current_time();
+ drop_cnt = 0;
+ }
+
if (pxmitframe == NULL) {
+ drop_cnt ++;
RT_TRACE(_module_xmit_osdep_c_, _drv_err_, ("rtw_xmit: no more pxmitframe\n"));
- #ifdef DBG_TX_DROP_FRAME
- DBG_871X("DBG_TX_DROP_FRAME %s no more pxmitframe\n", __FUNCTION__);
- #endif
return -1;
}
@@ -3605,11 +3339,14 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
rcu_read_unlock();
#endif // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
- if( br_port && check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE)
+ if( br_port && check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE)
{
res = rtw_br_client_tx(padapter, ppkt);
if (res == -1)
+ {
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
return -1;
+ }
}
#endif // CONFIG_BR_EXT
@@ -3629,7 +3366,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
do_queue_select(padapter, &pxmitframe->attrib);
-#ifdef CONFIG_AP_MODE
+#if defined(CONFIG_AP_MODE) || defined(CONFIG_TDLS)
_enter_critical_bh(&pxmitpriv->lock, &irqL0);
if(xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe) == _TRUE)
{
@@ -3637,57 +3374,15 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
return 1;
}
_exit_critical_bh(&pxmitpriv->lock, &irqL0);
-#endif
+#endif
- if (padapter->HalFunc.hal_xmit(padapter, pxmitframe) == _FALSE)
+ if (rtw_hal_xmit(padapter, pxmitframe) == _FALSE)
return 1;
return 0;
}
#ifdef CONFIG_TDLS
-void process_enqueue_frame(_adapter *padapter, struct xmit_frame *pxmitframe, struct sta_info *psta)
-{
- _irqL irqL;
- struct sta_info *ptdls_sta=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- ptdls_sta=rtw_get_stainfo(pstapriv, pattrib->dst);
-
- //enqueue frame for TDLS sleeping STA
- rtw_list_delete(&pxmitframe->list);
- _enter_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
- rtw_list_insert_tail(&pxmitframe->list, get_list_head(&ptdls_sta->sleep_q));
- ptdls_sta->sleepq_len++;
-
- //indicate 4-AC queue bit in TDLS peer traffic indication
- switch(pattrib->priority)
- {
- case 1:
- case 2:
- ptdls_sta->uapsd_bk = ptdls_sta->uapsd_bk | BIT(0);
- break;
- case 4:
- case 5:
- ptdls_sta->uapsd_vi = ptdls_sta->uapsd_vi | BIT(0);
- break;
- case 6:
- case 7:
- ptdls_sta->uapsd_vo = ptdls_sta->uapsd_vo | BIT(0);
- break;
- case 0:
- case 3:
- default:
- ptdls_sta->uapsd_be = ptdls_sta->uapsd_be | BIT(0);
- break;
- }
-
- ptdls_sta->sleepq_ac_len++;
-
- _exit_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
-
-}
-
sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_frame *pxmitframe)
{
sint ret=_FALSE;
@@ -3697,7 +3392,6 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
struct sta_priv *pstapriv = &padapter->stapriv;
struct pkt_attrib *pattrib = &pxmitframe->attrib;
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
int i;
ptdls_sta=rtw_get_stainfo(pstapriv, pattrib->dst);
@@ -3709,7 +3403,7 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
{
ret = _TRUE;
return ret;
- }
+ }
_enter_critical_bh(&ptdls_sta->sleep_q.lock, &irqL);
@@ -3749,7 +3443,6 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
if(ptdls_sta->sleepq_len==1)
{
//transmit TDLS PTI via AP
- ptdls_sta->option=2;
rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_SD_PTI);
}
ret = _TRUE;
@@ -3762,9 +3455,9 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
return ret;
}
-#endif
+#endif //CONFIG_TDLS
-#ifdef CONFIG_AP_MODE
+#if defined(CONFIG_AP_MODE) || defined(CONFIG_TDLS)
sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *pxmitframe)
{
@@ -3778,7 +3471,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
#ifdef CONFIG_TDLS
struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
- if( ptdlsinfo->setup_state & TDLS_LINKED_STATE )
+ if( ptdlsinfo->setup_state == TDLS_LINKED_STATE )
{
ret = xmitframe_enqueue_for_tdls_sleeping_sta(padapter, pxmitframe);
return ret;
@@ -3794,11 +3487,21 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
}
else
{
+ DBG_871X("%s, call rtw_get_stainfo()\n", __func__);
psta=rtw_get_stainfo(pstapriv, pattrib->ra);
}
if(psta==NULL)
- return ret;
+ {
+ DBG_871X("%s, psta==NUL\n", __func__);
+ return _FALSE;
+ }
+
+ if(!(psta->state &_FW_LINKED))
+ {
+ DBG_871X("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state);
+ return _FALSE;
+ }
if(pattrib->triggered==1)
{
@@ -3925,6 +3628,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
static void dequeue_xmitframes_to_sleeping_queue(_adapter *padapter, struct sta_info *psta, _queue *pframequeue)
{
+ sint ret;
_list *plist, *phead;
u8 ac_index;
struct tx_servq *ptxservq;
@@ -3941,8 +3645,10 @@ static void dequeue_xmitframes_to_sleeping_queue(_adapter *padapter, struct sta_
plist = get_next(plist);
- xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe);
+ ret = xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe);
+ if(_TRUE == ret)
+ {
pattrib = &pxmitframe->attrib;
ptxservq = rtw_get_sta_pending(padapter, psta, pattrib->priority, (u8 *)(&ac_index));
@@ -3950,6 +3656,12 @@ static void dequeue_xmitframes_to_sleeping_queue(_adapter *padapter, struct sta_
ptxservq->qcnt--;
phwxmits[ac_index].accnt--;
}
+ else
+ {
+ //DBG_871X("xmitframe_enqueue_for_sleeping_sta return _FALSE\n");
+ }
+
+ }
}
@@ -3973,7 +3685,7 @@ void stop_sta_xmit(_adapter *padapter, struct sta_info *psta)
#ifdef CONFIG_TDLS
if( !(psta->tdls_sta_state & TDLS_LINKED_STATE) )
-#endif //CONFIG_TDLS
+#endif //CONFIG_TDLS
pstapriv->sta_dz_bitmap |= BIT(psta->aid);
@@ -4014,7 +3726,7 @@ void stop_sta_xmit(_adapter *padapter, struct sta_info *psta)
_exit_critical_bh(&pxmitpriv->lock, &irqL0);
-}
+}
void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
{
@@ -4024,8 +3736,13 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
_list *xmitframe_plist, *xmitframe_phead;
struct xmit_frame *pxmitframe=NULL;
struct sta_priv *pstapriv = &padapter->stapriv;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- _enter_critical_bh(&psta->sleep_q.lock, &irqL);
+ psta_bmc = rtw_get_bcmc_stainfo(padapter);
+
+
+ //_enter_critical_bh(&psta->sleep_q.lock, &irqL);
+ _enter_critical_bh(&pxmitpriv->lock, &irqL);
xmitframe_phead = get_list_head(&psta->sleep_q);
xmitframe_plist = get_next(xmitframe_phead);
@@ -4082,53 +3799,25 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
pxmitframe->attrib.triggered = 1;
+/*
_exit_critical_bh(&psta->sleep_q.lock, &irqL);
- if(padapter->HalFunc.hal_xmit(padapter, pxmitframe) == _TRUE)
+ if(rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
{
rtw_os_xmit_complete(padapter, pxmitframe);
}
_enter_critical_bh(&psta->sleep_q.lock, &irqL);
+*/
+ rtw_hal_xmitframe_enqueue(padapter, pxmitframe);
- if(psta->sleepq_len==0)
- {
-#ifdef CONFIG_TDLS
- if( psta->tdls_sta_state & TDLS_LINKED_STATE )
- {
- if(psta->state&WIFI_SLEEP_STATE)
- psta->state ^= WIFI_SLEEP_STATE;
-
- _exit_critical_bh(&psta->sleep_q.lock, &irqL);
- return;
- }
-#endif
- pstapriv->tim_bitmap &= ~BIT(psta->aid);
-
- //DBG_871X("wakeup to xmit, qlen==0, update_BCNTIM, tim=%x\n", pstapriv->tim_bitmap);
- //upate BCN for TIM IE
- //update_BCNTIM(padapter);
- update_mask = BIT(0);
-
- if(psta->state&WIFI_SLEEP_STATE)
- psta->state ^= WIFI_SLEEP_STATE;
-
- pstapriv->sta_dz_bitmap &= ~BIT(psta->aid);
-
- }
}
- _exit_critical_bh(&psta->sleep_q.lock, &irqL);
-
-
//for BC/MC Frames
- psta_bmc = rtw_get_bcmc_stainfo(padapter);
if(!psta_bmc)
- return;
+ goto _exit;
if((pstapriv->sta_dz_bitmap&0xfffe) == 0x0)//no any sta in ps mode
{
- _enter_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
-
xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
xmitframe_plist = get_next(xmitframe_phead);
@@ -4148,36 +3837,71 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
pxmitframe->attrib.triggered = 1;
-
+/*
_exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
- if(padapter->HalFunc.hal_xmit(padapter, pxmitframe) == _TRUE)
+ if(rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
{
rtw_os_xmit_complete(padapter, pxmitframe);
}
_enter_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+*/
+ rtw_hal_xmitframe_enqueue(padapter, pxmitframe);
- if(psta_bmc->sleepq_len==0)
- {
- pstapriv->tim_bitmap &= ~BIT(0);
- pstapriv->sta_dz_bitmap &= ~BIT(0);
-
- //DBG_871X("wakeup to xmit, qlen==0, update_BCNTIM, tim=%x\n", pstapriv->tim_bitmap);
- //upate BCN for TIM IE
- //update_BCNTIM(padapter);
- update_mask |= BIT(1);
- }
-
}
- _exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+ if(psta_bmc->sleepq_len==0)
+ {
+ pstapriv->tim_bitmap &= ~BIT(0);
+ pstapriv->sta_dz_bitmap &= ~BIT(0);
+
+ //DBG_871X("wakeup to xmit, qlen==0, update_BCNTIM, tim=%x\n", pstapriv->tim_bitmap);
+ //upate BCN for TIM IE
+ //update_BCNTIM(padapter);
+ update_mask |= BIT(1);
+ }
+
+ }
+
+ if(psta->sleepq_len==0)
+ {
+#ifdef CONFIG_TDLS
+ if( psta->tdls_sta_state & TDLS_LINKED_STATE )
+ {
+ if(psta->state&WIFI_SLEEP_STATE)
+ psta->state ^= WIFI_SLEEP_STATE;
+ goto _exit;
}
+#endif //CONFIG_TDLS
+ pstapriv->tim_bitmap &= ~BIT(psta->aid);
+ //DBG_871X("wakeup to xmit, qlen==0, update_BCNTIM, tim=%x\n", pstapriv->tim_bitmap);
+ //upate BCN for TIM IE
+ //update_BCNTIM(padapter);
+ update_mask = BIT(0);
+
+ if(psta->state&WIFI_SLEEP_STATE)
+ psta->state ^= WIFI_SLEEP_STATE;
+
+ if(psta->state & WIFI_STA_ALIVE_CHK_STATE)
+ {
+ psta->expire_to = pstapriv->expire_to;
+ psta->state ^= WIFI_STA_ALIVE_CHK_STATE;
+ }
+
+ pstapriv->sta_dz_bitmap &= ~BIT(psta->aid);
+ }
+
+_exit:
+
+ //_exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
if(update_mask)
{
//update_BCNTIM(padapter);
+ //printk("%s => call update_beacon\n",__FUNCTION__);
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
}
@@ -4190,8 +3914,11 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
_list *xmitframe_plist, *xmitframe_phead;
struct xmit_frame *pxmitframe=NULL;
struct sta_priv *pstapriv = &padapter->stapriv;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- _enter_critical_bh(&psta->sleep_q.lock, &irqL);
+
+ //_enter_critical_bh(&psta->sleep_q.lock, &irqL);
+ _enter_critical_bh(&pxmitpriv->lock, &irqL);
xmitframe_phead = get_list_head(&psta->sleep_q);
xmitframe_plist = get_next(xmitframe_phead);
@@ -4244,17 +3971,21 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
pxmitframe->attrib.triggered = 1;
- if(padapter->HalFunc.hal_xmit(padapter, pxmitframe) == _TRUE)
+/*
+ if(rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
{
rtw_os_xmit_complete(padapter, pxmitframe);
}
+*/
+ rtw_hal_xmitframe_enqueue(padapter, pxmitframe);
if((psta->sleepq_ac_len==0) && (!psta->has_legacy_ac) && (wmmps_ac))
{
#ifdef CONFIG_TDLS
if(psta->tdls_sta_state & TDLS_LINKED_STATE )
{
- _exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ //_exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
return;
}
#endif //CONFIG_TDLS
@@ -4267,11 +3998,159 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
//update_mask = BIT(0);
}
- }
+ }
- _exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ //_exit_critical_bh(&psta->sleep_q.lock, &irqL);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
+
+}
+
+#endif
+
+void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms)
+{
+ sctx->timeout_ms = timeout_ms;
+ sctx->submit_time= rtw_get_current_time();
+#ifdef PLATFORM_LINUX /* TODO: add condition wating interface for other os */
+ init_completion(&sctx->done);
+#endif
+ sctx->status = RTW_SCTX_SUBMITTED;
+}
+
+int rtw_sctx_wait(struct submit_ctx *sctx)
+{
+ int ret = _FAIL;
+ unsigned long expire;
+ int status = 0;
+
+#ifdef PLATFORM_LINUX
+ expire= sctx->timeout_ms ? msecs_to_jiffies(sctx->timeout_ms) : MAX_SCHEDULE_TIMEOUT;
+ if (!wait_for_completion_timeout(&sctx->done, expire)) {
+ /* timeout, do something?? */
+ status = RTW_SCTX_DONE_TIMEOUT;
+ DBG_871X("%s timeout\n", __func__);
+ } else {
+ status = sctx->status;
+ }
+#endif
+
+ if (status == RTW_SCTX_DONE_SUCCESS) {
+ ret = _SUCCESS;
+ }
+
+ return ret;
+}
+
+bool rtw_sctx_chk_waring_status(int status)
+{
+ switch(status) {
+ case RTW_SCTX_DONE_UNKNOWN:
+ case RTW_SCTX_DONE_BUF_ALLOC:
+ case RTW_SCTX_DONE_BUF_FREE:
+
+ case RTW_SCTX_DONE_DRV_STOP:
+ case RTW_SCTX_DONE_DEV_REMOVE:
+ return _TRUE;
+ default:
+ return _FALSE;
+ }
+}
+
+void rtw_sctx_done_err(struct submit_ctx **sctx, int status)
+{
+ if (*sctx) {
+ if (rtw_sctx_chk_waring_status(status))
+ DBG_871X("%s status:%d\n", __func__, status);
+ (*sctx)->status = status;
+ #ifdef PLATFORM_LINUX
+ complete(&((*sctx)->done));
+ #endif
+ *sctx = NULL;
+ }
+}
+
+void rtw_sctx_done(struct submit_ctx **sctx)
+{
+ rtw_sctx_done_err(sctx, RTW_SCTX_DONE_SUCCESS);
+}
+
+#ifdef CONFIG_XMIT_ACK
+
+#ifdef CONFIG_XMIT_ACK_POLLING
+s32 c2h_evt_hdl(_adapter *adapter, struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter);
+
+/**
+ * rtw_ack_tx_polling -
+ * @pxmitpriv: xmit_priv to address ack_tx_ops
+ * @timeout_ms: timeout msec
+ *
+ * Init ack_tx_ops and then do c2h_evt_hdl() and polling ack_tx_ops repeatedly
+ * till tx report or timeout
+ * Returns: _SUCCESS if TX report ok, _FAIL for others
+ */
+int rtw_ack_tx_polling(struct xmit_priv *pxmitpriv, u32 timeout_ms)
+{
+ int ret = _FAIL;
+ struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
+ _adapter *adapter = container_of(pxmitpriv, _adapter, xmitpriv);
+
+ pack_tx_ops->submit_time = rtw_get_current_time();
+ pack_tx_ops->timeout_ms = timeout_ms;
+ pack_tx_ops->status = RTW_SCTX_SUBMITTED;
+
+ do {
+ c2h_evt_hdl(adapter, NULL, rtw_hal_c2h_id_filter_ccx(adapter));
+ if (pack_tx_ops->status != RTW_SCTX_SUBMITTED)
+ break;
+
+ if (adapter->bDriverStopped) {
+ pack_tx_ops->status = RTW_SCTX_DONE_DRV_STOP;
+ break;
+ }
+ if (adapter->bSurpriseRemoved) {
+ pack_tx_ops->status = RTW_SCTX_DONE_DEV_REMOVE;
+ break;
+ }
+
+ rtw_msleep_os(10);
+ } while (rtw_get_passing_time_ms(pack_tx_ops->submit_time) < timeout_ms);
+ if (pack_tx_ops->status == RTW_SCTX_SUBMITTED) {
+ pack_tx_ops->status = RTW_SCTX_DONE_TIMEOUT;
+ DBG_871X("%s timeout\n", __func__);
+ }
+
+ if (pack_tx_ops->status == RTW_SCTX_DONE_SUCCESS)
+ ret = _SUCCESS;
+
+ return ret;
}
+#endif
+
+int rtw_ack_tx_wait(struct xmit_priv *pxmitpriv, u32 timeout_ms)
+{
+#ifdef CONFIG_XMIT_ACK_POLLING
+ return rtw_ack_tx_polling(pxmitpriv, timeout_ms);
+#else
+ struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
+ pack_tx_ops->submit_time = rtw_get_current_time();
+ pack_tx_ops->timeout_ms = timeout_ms;
+ pack_tx_ops->status = RTW_SCTX_SUBMITTED;
+
+ return rtw_sctx_wait(pack_tx_ops);
#endif
+}
+
+void rtw_ack_tx_done(struct xmit_priv *pxmitpriv, int status)
+{
+ struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
+
+ if (pxmitpriv->ack_tx) {
+ rtw_sctx_done_err(&pack_tx_ops, status);
+ } else {
+ DBG_871X("%s ack_tx not set\n", __func__);
+ }
+}
+#endif //CONFIG_XMIT_ACK
diff --git a/drivers/net/wireless/rtl8192cu/hal/HalPwrSeqCmd.c b/drivers/net/wireless/rtl8192cu/hal/HalPwrSeqCmd.c
new file mode 100644
index 0000000..c59bb66
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/hal/HalPwrSeqCmd.c
@@ -0,0 +1,177 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+/*++
+Copyright (c) Realtek Semiconductor Corp. All rights reserved.
+
+Module Name:
+ HalPwrSeqCmd.c
+
+Abstract:
+ Implement HW Power sequence configuration CMD handling routine for Realtek devices.
+
+Major Change History:
+ When Who What
+ ---------- --------------- -------------------------------
+ 2011-10-26 Lucas Modify to be compatible with SD4-CE driver.
+ 2011-07-07 Roger Create.
+
+--*/
+#include <HalPwrSeqCmd.h>
+#include <sdio_ops.h>
+
+
+//
+// Description:
+// This routine deal with the Power Configuration CMDs parsing for RTL8723/RTL8188E Series IC.
+//
+// Assumption:
+// We should follow specific format which was released from HW SD.
+//
+// 2011.07.07, added by Roger.
+//
+u8 HalPwrSeqCmdParsing(
+ PADAPTER padapter,
+ u8 CutVersion,
+ u8 FabVersion,
+ u8 InterfaceType,
+ WLAN_PWR_CFG PwrSeqCmd[])
+{
+ WLAN_PWR_CFG PwrCfgCmd = {0};
+ u8 bPollingBit = _FALSE;
+ u32 AryIdx = 0;
+ u8 value = 0;
+ u32 offset = 0;
+ u32 pollingCount = 0; // polling autoload done.
+ u32 maxPollingCnt = 5000;
+
+ do {
+ PwrCfgCmd = PwrSeqCmd[AryIdx];
+
+ RT_TRACE(_module_hal_init_c_ , _drv_info_,
+ ("HalPwrSeqCmdParsing: offset(%#x) cut_msk(%#x) fab_msk(%#x) interface_msk(%#x) base(%#x) cmd(%#x) msk(%#x) value(%#x)\n",
+ GET_PWR_CFG_OFFSET(PwrCfgCmd),
+ GET_PWR_CFG_CUT_MASK(PwrCfgCmd),
+ GET_PWR_CFG_FAB_MASK(PwrCfgCmd),
+ GET_PWR_CFG_INTF_MASK(PwrCfgCmd),
+ GET_PWR_CFG_BASE(PwrCfgCmd),
+ GET_PWR_CFG_CMD(PwrCfgCmd),
+ GET_PWR_CFG_MASK(PwrCfgCmd),
+ GET_PWR_CFG_VALUE(PwrCfgCmd)));
+
+ //2 Only Handle the command whose FAB, CUT, and Interface are matched
+ if ((GET_PWR_CFG_FAB_MASK(PwrCfgCmd) & FabVersion) &&
+ (GET_PWR_CFG_CUT_MASK(PwrCfgCmd) & CutVersion) &&
+ (GET_PWR_CFG_INTF_MASK(PwrCfgCmd) & InterfaceType))
+ {
+ switch (GET_PWR_CFG_CMD(PwrCfgCmd))
+ {
+ case PWR_CMD_READ:
+ RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_READ\n"));
+ break;
+
+ case PWR_CMD_WRITE:
+ RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_WRITE\n"));
+ offset = GET_PWR_CFG_OFFSET(PwrCfgCmd);
+
+#ifdef CONFIG_SDIO_HCI
+ //
+ // <Roger_Notes> We should deal with interface specific address mapping for some interfaces, e.g., SDIO interface
+ // 2011.07.07.
+ //
+ if (GET_PWR_CFG_BASE(PwrCfgCmd) == PWR_BASEADDR_SDIO)
+ {
+ // Read Back SDIO Local value
+ value = SdioLocalCmd52Read1Byte(padapter, offset);
+
+ value &= ~(GET_PWR_CFG_MASK(PwrCfgCmd));
+ value |= (GET_PWR_CFG_VALUE(PwrCfgCmd) & GET_PWR_CFG_MASK(PwrCfgCmd));
+
+ // Write Back SDIO Local value
+ SdioLocalCmd52Write1Byte(padapter, offset, value);
+ }
+ else
+#endif
+ {
+ // Read the value from system register
+ value = rtw_read8(padapter, offset);
+
+ value &= ~(GET_PWR_CFG_MASK(PwrCfgCmd));
+ value |= (GET_PWR_CFG_VALUE(PwrCfgCmd) & GET_PWR_CFG_MASK(PwrCfgCmd));
+
+ // Write the value back to sytem register
+ rtw_write8(padapter, offset, value);
+ }
+ break;
+
+ case PWR_CMD_POLLING:
+ RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_POLLING\n"));
+
+ bPollingBit = _FALSE;
+ offset = GET_PWR_CFG_OFFSET(PwrCfgCmd);
+
+ do {
+#ifdef CONFIG_SDIO_HCI
+ if (GET_PWR_CFG_BASE(PwrCfgCmd) == PWR_BASEADDR_SDIO)
+ value = SdioLocalCmd52Read1Byte(padapter, offset);
+ else
+#endif
+ value = rtw_read8(padapter, offset);
+
+ value &= GET_PWR_CFG_MASK(PwrCfgCmd);
+ if (value == (GET_PWR_CFG_VALUE(PwrCfgCmd) & GET_PWR_CFG_MASK(PwrCfgCmd)))
+ bPollingBit = _TRUE;
+ else
+ rtw_udelay_os(10);
+
+ if (pollingCount++ > maxPollingCnt) {
+ RT_TRACE(_module_hal_init_c_ , _drv_err_, ("Fail to polling Offset[%#x]\n", offset));
+ return _FALSE;
+ }
+ } while (!bPollingBit);
+
+ break;
+
+ case PWR_CMD_DELAY:
+ RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_DELAY\n"));
+ if (GET_PWR_CFG_VALUE(PwrCfgCmd) == PWRSEQ_DELAY_US)
+ rtw_udelay_os(GET_PWR_CFG_OFFSET(PwrCfgCmd));
+ else
+ rtw_udelay_os(GET_PWR_CFG_OFFSET(PwrCfgCmd)*1000);
+ break;
+
+ case PWR_CMD_END:
+ // When this command is parsed, end the process
+ RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_END\n"));
+ return _TRUE;
+ break;
+
+ default:
+ RT_TRACE(_module_hal_init_c_ , _drv_err_, ("HalPwrSeqCmdParsing: Unknown CMD!!\n"));
+ break;
+ }
+ }
+
+ AryIdx++;//Add Array Index
+ }while(1);
+
+ return _TRUE;
+}
+
+
diff --git a/drivers/net/wireless/rtl8192cu/hal/dm.c b/drivers/net/wireless/rtl8192cu/hal/dm.c
new file mode 100644
index 0000000..465ca82
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/hal/dm.c
@@ -0,0 +1,314 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2013 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+
+#ifdef CONFIG_RTL8192C
+#include <rtl8192c_hal.h>
+#endif
+
+#ifdef CONFIG_RTL8192D
+#include <rtl8192d_hal.h>
+#endif
+
+bool rtw_adapter_linked(_adapter *adapter)
+{
+ bool linked = _FALSE;
+ struct mlme_priv *mlmepriv = &adapter->mlmepriv;
+
+ if( (check_fwstate(mlmepriv, WIFI_AP_STATE) == _TRUE) ||
+ (check_fwstate(mlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == _TRUE))
+ {
+ if(adapter->stapriv.asoc_sta_count > 2)
+ linked = _TRUE;
+ }
+ else{//Station mode
+ if(check_fwstate(mlmepriv, _FW_LINKED)== _TRUE)
+ linked = _TRUE;
+ }
+
+ return linked;
+}
+
+bool dm_linked(_adapter *adapter)
+{
+ bool linked;
+
+ if ((linked = rtw_adapter_linked(adapter)))
+ goto exit;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ((adapter = adapter->pbuddy_adapter) == NULL)
+ goto exit;
+ linked = rtw_adapter_linked(adapter);
+#endif
+
+exit:
+ return linked;
+}
+
+#if 0
+void dm_enable_EDCCA(_adapter *adapter)
+{
+ // Enable EDCCA. The value is suggested by SD3 Wilson.
+
+ //
+ // Revised for ASUS 11b/g performance issues, suggested by BB Neil, 2012.04.13.
+ //
+ /*if((pDM_Odm->SupportICType == ODM_RTL8723A)&&(IS_WIRELESS_MODE_G(pAdapter)))
+ {
+ rtw_write8(adapter,rOFDM0_ECCAThreshold,0x00);
+ rtw_write8(adapter,rOFDM0_ECCAThreshold+2,0xFD);
+
+ }
+ else*/
+ {
+ rtw_write8(adapter,rOFDM0_ECCAThreshold,0x03);
+ rtw_write8(adapter,rOFDM0_ECCAThreshold+2,0x00);
+ }
+}
+
+void dm_disable_EDCCA(_adapter *adapter)
+{
+ // Disable EDCCA..
+ rtw_write8(adapter, rOFDM0_ECCAThreshold, 0x7f);
+ rtw_write8(adapter, rOFDM0_ECCAThreshold+2, 0x7f);
+}
+
+//
+// Description: According to initial gain value to determine to enable or disable EDCCA.
+//
+// Suggested by SD3 Wilson. Added by tynli. 2011.11.25.
+//
+void dm_dynamic_EDCCA(_adapter *pAdapter)
+{
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
+ struct dm_priv *dmpriv = &pHalData->dmpriv;
+ u8 RegC50, RegC58;
+
+ RegC50 = (u8)PHY_QueryBBReg(pAdapter, rOFDM0_XAAGCCore1, bMaskByte0);
+ RegC58 = (u8)PHY_QueryBBReg(pAdapter, rOFDM0_XBAGCCore1, bMaskByte0);
+
+
+ if((RegC50 > 0x28 && RegC58 > 0x28)
+ /*|| ((pDM_Odm->SupportICType == ODM_RTL8723A && IS_WIRELESS_MODE_G(pAdapter) && RegC50>0x26))
+ || (pDM_Odm->SupportICType == ODM_RTL8188E && RegC50 > 0x28)*/
+ )
+ {
+ if(!dmpriv->bPreEdccaEnable)
+ {
+ dm_enable_EDCCA(pAdapter);
+ dmpriv->bPreEdccaEnable = _TRUE;
+ }
+
+ }
+ else if((RegC50 < 0x25 && RegC58 < 0x25)
+ /*|| (pDM_Odm->SupportICType == ODM_RTL8188E && RegC50 < 0x25)*/
+ )
+ {
+ if(dmpriv->bPreEdccaEnable)
+ {
+ dm_disable_EDCCA(pAdapter);
+ dmpriv->bPreEdccaEnable = _FALSE;
+ }
+ }
+}
+#endif
+
+#define DM_ADAPTIVITY_VER "ADAPTIVITY_V001"
+
+int dm_adaptivity_get_parm_str(_adapter *pAdapter, char *buf, int len)
+{
+#ifdef CONFIG_DM_ADAPTIVITY
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
+ struct dm_priv *dmpriv = &pHalData->dmpriv;
+
+ return snprintf(buf, len, DM_ADAPTIVITY_VER"\n"
+ "TH_L2H_ini\tTH_EDCCA_HL_diff\tIGI_Base\tForceEDCCA\tAdapEn_RSSI\tIGI_LowerBound\n"
+ "0x%02x\t%d\t0x%02x\t%d\t%u\t%u\n",
+ (u8)dmpriv->TH_L2H_ini,
+ dmpriv->TH_EDCCA_HL_diff,
+ dmpriv->IGI_Base,
+ dmpriv->ForceEDCCA,
+ dmpriv->AdapEn_RSSI,
+ dmpriv->IGI_LowerBound
+ );
+#endif /* CONFIG_DM_ADAPTIVITY */
+ return 0;
+}
+
+void dm_adaptivity_set_parm(_adapter *pAdapter, s8 TH_L2H_ini, s8 TH_EDCCA_HL_diff,
+ s8 IGI_Base, bool ForceEDCCA, u8 AdapEn_RSSI, u8 IGI_LowerBound)
+{
+#ifdef CONFIG_DM_ADAPTIVITY
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
+ struct dm_priv *dmpriv = &pHalData->dmpriv;
+
+ dmpriv->TH_L2H_ini = TH_L2H_ini;
+ dmpriv->TH_EDCCA_HL_diff = TH_EDCCA_HL_diff;
+ dmpriv->IGI_Base = IGI_Base;
+ dmpriv->ForceEDCCA = ForceEDCCA;
+ dmpriv->AdapEn_RSSI = AdapEn_RSSI;
+ dmpriv->IGI_LowerBound = IGI_LowerBound;
+
+#endif /* CONFIG_DM_ADAPTIVITY */
+}
+
+void dm_adaptivity_init(_adapter *pAdapter)
+{
+#ifdef CONFIG_DM_ADAPTIVITY
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
+ struct dm_priv *dmpriv = &pHalData->dmpriv;
+
+ /*
+ if(pDM_Odm->SupportICType == ODM_RTL8723B)
+ {
+ pDM_Odm->TH_L2H_ini = 0xf8; // -8
+ }
+ if((pDM_Odm->SupportICType == ODM_RTL8192E)&&(pDM_Odm->SupportInterface == ODM_ITRF_PCIE))
+ {
+ pDM_Odm->TH_L2H_ini = 0xf0; // -16
+ }
+ else */
+ {
+ dmpriv->TH_L2H_ini = 0xf9; // -7
+ }
+
+ dmpriv->TH_EDCCA_HL_diff = 7;
+ dmpriv->IGI_Base = 0x32;
+ dmpriv->IGI_target = 0x1c;
+ dmpriv->ForceEDCCA = 0;
+ dmpriv->AdapEn_RSSI = 20;
+ dmpriv->IGI_LowerBound = 0;
+
+ //Reg524[11]=0 is easily to transmit packets during adaptivity test
+ PHY_SetBBReg(pAdapter, 0x524, BIT11, 1); // stop counting if EDCCA is asserted
+
+#endif /* CONFIG_DM_ADAPTIVITY */
+}
+
+void dm_adaptivity(_adapter *pAdapter)
+{
+#ifdef CONFIG_DM_ADAPTIVITY
+ s8 TH_L2H_dmc, TH_H2L_dmc;
+ s8 TH_L2H, TH_H2L, Diff, IGI_target;
+ u32 value32;
+ BOOLEAN EDCCA_State;
+
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
+ struct dm_priv *dmpriv = &pHalData->dmpriv;
+ DIG_T *pDigTable = &dmpriv->DM_DigTable;
+ u8 IGI = pDigTable->CurIGValue;
+ u8 RSSI_Min = pDigTable->Rssi_val_min;
+ HT_CHANNEL_WIDTH BandWidth = pHalData->CurrentChannelBW;
+
+ if (!(dmpriv->DMFlag & DYNAMIC_FUNC_ADAPTIVITY))
+ {
+ LOG_LEVEL(_drv_info_, "Go to odm_DynamicEDCCA() \n");
+ // Add by Neil Chen to enable edcca to MP Platform
+ // Adjust EDCCA.
+ /*if(pDM_Odm->SupportICType & ODM_IC_11N_SERIES)
+ dm_dynamic_EDCCA(pAdapter);
+ */
+ return;
+ }
+ LOG_LEVEL(_drv_info_, "odm_Adaptivity() =====> \n");
+
+ LOG_LEVEL(_drv_info_, "ForceEDCCA=%d, IGI_Base=0x%x, TH_L2H_ini = %d, TH_EDCCA_HL_diff = %d, AdapEn_RSSI = %d\n",
+ dmpriv->ForceEDCCA, dmpriv->IGI_Base, dmpriv->TH_L2H_ini, dmpriv->TH_EDCCA_HL_diff, dmpriv->AdapEn_RSSI);
+
+ /*if(pDM_Odm->SupportICType & ODM_IC_11AC_SERIES)
+ PHY_SetBBReg(0x800, BIT10, 0); //ADC_mask enable
+ */
+
+ if(!dm_linked(pAdapter) || pHalData->CurrentChannel > 149) /* Band4 doesn't need adaptivity */
+ {
+ /*if(pDM_Odm->SupportICType & ODM_IC_11N_SERIES)*/
+ {
+ PHY_SetBBReg(pAdapter,rOFDM0_ECCAThreshold, bMaskByte0, 0x7f);
+ PHY_SetBBReg(pAdapter,rOFDM0_ECCAThreshold, bMaskByte2, 0x7f);
+ }
+ /*else
+ {
+ ODM_SetBBReg(pDM_Odm, rFPGA0_XB_LSSIReadBack, 0xFFFF, (0x7f<<8) | 0x7f);
+ }*/
+ return;
+ }
+
+ if(!dmpriv->ForceEDCCA)
+ {
+ if(RSSI_Min > dmpriv->AdapEn_RSSI)
+ EDCCA_State = 1;
+ else if(RSSI_Min < (dmpriv->AdapEn_RSSI - 5))
+ EDCCA_State = 0;
+ }
+ else
+ EDCCA_State = 1;
+ //if((pDM_Odm->SupportICType & ODM_IC_11AC_SERIES) && (*pDM_Odm->pBandType == BAND_ON_5G))
+ //IGI_target = pDM_Odm->IGI_Base;
+ //else
+ {
+
+ if(BandWidth == HT_CHANNEL_WIDTH_20) //CHANNEL_WIDTH_20
+ IGI_target = dmpriv->IGI_Base;
+ else if(BandWidth == HT_CHANNEL_WIDTH_40)
+ IGI_target = dmpriv->IGI_Base + 2;
+ /*else if(*pDM_Odm->pBandWidth == ODM_BW80M)
+ IGI_target = pDM_Odm->IGI_Base + 6;*/
+ else
+ IGI_target = dmpriv->IGI_Base;
+ }
+
+ dmpriv->IGI_target = (u8)IGI_target;
+
+ LOG_LEVEL(_drv_info_, "BandWidth=%s, IGI_target=0x%x, EDCCA_State=%d\n",
+ (BandWidth==HT_CHANNEL_WIDTH_40)?"40M":"20M", IGI_target, EDCCA_State);
+
+ if(EDCCA_State == 1)
+ {
+ Diff = IGI_target -(s8)IGI;
+ TH_L2H_dmc = dmpriv->TH_L2H_ini + Diff;
+ if(TH_L2H_dmc > 10) TH_L2H_dmc = 10;
+ TH_H2L_dmc = TH_L2H_dmc - dmpriv->TH_EDCCA_HL_diff;
+ }
+ else
+ {
+ TH_L2H_dmc = 0x7f;
+ TH_H2L_dmc = 0x7f;
+ }
+
+ LOG_LEVEL(_drv_info_, "IGI=0x%x, TH_L2H_dmc = %d, TH_H2L_dmc = %d\n",
+ IGI, TH_L2H_dmc, TH_H2L_dmc);
+
+ /*if(pDM_Odm->SupportICType & ODM_IC_11N_SERIES)*/
+ {
+ PHY_SetBBReg(pAdapter,rOFDM0_ECCAThreshold, bMaskByte0, (u8)TH_L2H_dmc);
+ PHY_SetBBReg(pAdapter,rOFDM0_ECCAThreshold, bMaskByte2, (u8)TH_H2L_dmc);
+ }
+ /*else
+ PHY_SetBBReg(pAdapter, rFPGA0_XB_LSSIReadBack, 0xFFFF, ((u8)TH_H2L_dmc<<8) | (u8)TH_L2H_dmc);*/
+
+skip_dm:
+ return;
+#endif /* CONFIG_DM_ADAPTIVITY */
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/hal/dm.h b/drivers/net/wireless/rtl8192cu/hal/dm.h
new file mode 100644
index 0000000..dd9a57d
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/hal/dm.h
@@ -0,0 +1,30 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2013 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+
+ #ifndef __DM_H__
+#define __DM_H__
+
+int dm_adaptivity_get_parm_str(_adapter *pAdapter, char *buf, int len);
+void dm_adaptivity_set_parm(_adapter *pAdapter, s8 TH_L2H_ini, s8 TH_EDCCA_HL_diff,
+ s8 IGI_Base, bool ForceEDCCA, u8 AdapEn_RSSI, u8 IGI_LowerBound);
+void dm_adaptivity_init(_adapter *pAdapter);
+void dm_adaptivity(_adapter *pAdapter);
+
+#endif /* __DM_H__ */
diff --git a/drivers/net/wireless/rtl8192cu/hal/hal_com.c b/drivers/net/wireless/rtl8192cu/hal/hal_com.c
new file mode 100644
index 0000000..4dcafd6
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/hal/hal_com.c
@@ -0,0 +1,371 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+#include <rtw_byteorder.h>
+
+#include <hal_intf.h>
+#include <hal_com.h>
+
+#ifdef CONFIG_RTL8192C
+#include <rtl8192c_hal.h>
+#endif
+#ifdef CONFIG_RTL8192D
+#include <rtl8192d_hal.h>
+#endif
+
+#define _HAL_COM_C_
+
+//============================================================
+// Global var
+//============================================================
+u32 OFDMSwingTable[OFDM_TABLE_SIZE_92D] = {
+ 0x7f8001fe, // 0, +6.0dB
+ 0x788001e2, // 1, +5.5dB
+ 0x71c001c7, // 2, +5.0dB
+ 0x6b8001ae, // 3, +4.5dB
+ 0x65400195, // 4, +4.0dB
+ 0x5fc0017f, // 5, +3.5dB
+ 0x5a400169, // 6, +3.0dB
+ 0x55400155, // 7, +2.5dB
+ 0x50800142, // 8, +2.0dB
+ 0x4c000130, // 9, +1.5dB
+ 0x47c0011f, // 10, +1.0dB
+ 0x43c0010f, // 11, +0.5dB
+ 0x40000100, // 12, +0dB
+ 0x3c8000f2, // 13, -0.5dB
+ 0x390000e4, // 14, -1.0dB
+ 0x35c000d7, // 15, -1.5dB
+ 0x32c000cb, // 16, -2.0dB
+ 0x300000c0, // 17, -2.5dB
+ 0x2d4000b5, // 18, -3.0dB
+ 0x2ac000ab, // 19, -3.5dB
+ 0x288000a2, // 20, -4.0dB
+ 0x26000098, // 21, -4.5dB
+ 0x24000090, // 22, -5.0dB
+ 0x22000088, // 23, -5.5dB
+ 0x20000080, // 24, -6.0dB
+ 0x1e400079, // 25, -6.5dB
+ 0x1c800072, // 26, -7.0dB
+ 0x1b00006c, // 27. -7.5dB
+ 0x19800066, // 28, -8.0dB
+ 0x18000060, // 29, -8.5dB
+ 0x16c0005b, // 30, -9.0dB
+ 0x15800056, // 31, -9.5dB
+ 0x14400051, // 32, -10.0dB
+ 0x1300004c, // 33, -10.5dB
+ 0x12000048, // 34, -11.0dB
+ 0x11000044, // 35, -11.5dB
+ 0x10000040, // 36, -12.0dB
+ 0x0f00003c,// 37, -12.5dB
+ 0x0e400039,// 38, -13.0dB
+ 0x0d800036,// 39, -13.5dB
+ 0x0cc00033,// 40, -14.0dB
+ 0x0c000030,// 41, -14.5dB
+ 0x0b40002d,// 42, -15.0dB
+};
+
+
+u8 CCKSwingTable_Ch1_Ch13[CCK_TABLE_SIZE][8] = {
+ {0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04}, // 0, +0dB
+ {0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04}, // 1, -0.5dB
+ {0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03}, // 2, -1.0dB
+ {0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03}, // 3, -1.5dB
+ {0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03}, // 4, -2.0dB
+ {0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03}, // 5, -2.5dB
+ {0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03}, // 6, -3.0dB
+ {0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03}, // 7, -3.5dB
+ {0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02}, // 8, -4.0dB
+ {0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02}, // 9, -4.5dB
+ {0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02}, // 10, -5.0dB
+ {0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02}, // 11, -5.5dB
+ {0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02}, // 12, -6.0dB
+ {0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02}, // 13, -6.5dB
+ {0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02}, // 14, -7.0dB
+ {0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02}, // 15, -7.5dB
+ {0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01}, // 16, -8.0dB
+ {0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02}, // 17, -8.5dB
+ {0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01}, // 18, -9.0dB
+ {0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, // 19, -9.5dB
+ {0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, // 20, -10.0dB
+ {0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01}, // 21, -10.5dB
+ {0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01}, // 22, -11.0dB
+ {0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01}, // 23, -11.5dB
+ {0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01}, // 24, -12.0dB
+ {0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01}, // 25, -12.5dB
+ {0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01}, // 26, -13.0dB
+ {0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01}, // 27, -13.5dB
+ {0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01}, // 28, -14.0dB
+ {0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01}, // 29, -14.5dB
+ {0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01}, // 30, -15.0dB
+ {0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01}, // 31, -15.5dB
+ {0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01} // 32, -16.0dB
+};
+
+
+u8 CCKSwingTable_Ch14 [CCK_TABLE_SIZE][8]= {
+ {0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00}, // 0, +0dB
+ {0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00}, // 1, -0.5dB
+ {0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00}, // 2, -1.0dB
+ {0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00}, // 3, -1.5dB
+ {0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00}, // 4, -2.0dB
+ {0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00}, // 5, -2.5dB
+ {0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00}, // 6, -3.0dB
+ {0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00}, // 7, -3.5dB
+ {0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00}, // 8, -4.0dB
+ {0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00}, // 9, -4.5dB
+ {0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00}, // 10, -5.0dB
+ {0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00}, // 11, -5.5dB
+ {0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00}, // 12, -6.0dB
+ {0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00}, // 13, -6.5dB
+ {0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00}, // 14, -7.0dB
+ {0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00}, // 15, -7.5dB
+ {0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00}, // 16, -8.0dB
+ {0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00}, // 17, -8.5dB
+ {0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00}, // 18, -9.0dB
+ {0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, // 19, -9.5dB
+ {0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, // 20, -10.0dB
+ {0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00}, // 21, -10.5dB
+ {0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00}, // 22, -11.0dB
+ {0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, // 23, -11.5dB
+ {0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, // 24, -12.0dB
+ {0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00}, // 25, -12.5dB
+ {0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, // 26, -13.0dB
+ {0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, // 27, -13.5dB
+ {0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, // 28, -14.0dB
+ {0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, // 29, -14.5dB
+ {0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, // 30, -15.0dB
+ {0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, // 31, -15.5dB
+ {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} // 32, -16.0dB
+};
+
+
+#ifdef CONFIG_CHIP_VER_INTEGRATION
+void dump_chip_info(HAL_VERSION ChipVersion)
+{
+ if(IS_81XXC(ChipVersion)){
+ DBG_871X("Chip Version Info: %s_",IS_92C_SERIAL(ChipVersion)?"CHIP_8192C":"CHIP_8188C");
+ }
+ else if(IS_92D(ChipVersion)){
+ DBG_871X("Chip Version Info: CHIP_8192D_");
+ }
+ else if(IS_8723_SERIES(ChipVersion)){
+ DBG_871X("Chip Version Info: CHIP_8723A_");
+ }
+ else if(IS_8188E(ChipVersion)){
+ DBG_871X("Chip Version Info: CHIP_8188E_");
+ }
+
+ DBG_871X("%s_",IS_NORMAL_CHIP(ChipVersion)?"Normal_Chip":"Test_Chip");
+ DBG_871X("%s_",IS_CHIP_VENDOR_TSMC(ChipVersion)?"TSMC":"UMC");
+ if(IS_A_CUT(ChipVersion)) DBG_871X("A_CUT_");
+ else if(IS_B_CUT(ChipVersion)) DBG_871X("B_CUT_");
+ else if(IS_C_CUT(ChipVersion)) DBG_871X("C_CUT_");
+ else if(IS_D_CUT(ChipVersion)) DBG_871X("D_CUT_");
+ else if(IS_E_CUT(ChipVersion)) DBG_871X("E_CUT_");
+ else DBG_871X("UNKNOWN_CUT(%d)_",ChipVersion.CUTVersion);
+
+ if(IS_1T1R(ChipVersion)) DBG_871X("1T1R_");
+ else if(IS_1T2R(ChipVersion)) DBG_871X("1T2R_");
+ else if(IS_2T2R(ChipVersion)) DBG_871X("2T2R_");
+ else DBG_871X("UNKNOWN_RFTYPE(%d)_",ChipVersion.RFType);
+
+
+ DBG_871X("RomVer(%d)\n",ChipVersion.ROMVer);
+}
+
+#endif
+
+#define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
+
+u8 //return the final channel plan decision
+hal_com_get_channel_plan(
+ IN PADAPTER padapter,
+ IN u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
+ IN u8 sw_channel_plan, //channel plan from SW (registry/module param)
+ IN u8 def_channel_plan, //channel plan used when the former two is invalid
+ IN BOOLEAN AutoLoadFail
+ )
+{
+ u8 swConfig;
+ u8 chnlPlan;
+
+ swConfig = _TRUE;
+ if (!AutoLoadFail)
+ {
+ if (!rtw_is_channel_plan_valid(sw_channel_plan))
+ swConfig = _FALSE;
+ if (hw_channel_plan & EEPROM_CHANNEL_PLAN_BY_HW_MASK)
+ swConfig = _FALSE;
+ }
+
+ if (swConfig == _TRUE)
+ chnlPlan = sw_channel_plan;
+ else
+ chnlPlan = hw_channel_plan & (~EEPROM_CHANNEL_PLAN_BY_HW_MASK);
+
+ if (!rtw_is_channel_plan_valid(chnlPlan))
+ chnlPlan = def_channel_plan;
+
+ return chnlPlan;
+}
+
+u8 MRateToHwRate(u8 rate)
+{
+ u8 ret = DESC_RATE1M;
+
+ switch(rate)
+ {
+ // CCK and OFDM non-HT rates
+ case IEEE80211_CCK_RATE_1MB: ret = DESC_RATE1M; break;
+ case IEEE80211_CCK_RATE_2MB: ret = DESC_RATE2M; break;
+ case IEEE80211_CCK_RATE_5MB: ret = DESC_RATE5_5M; break;
+ case IEEE80211_CCK_RATE_11MB: ret = DESC_RATE11M; break;
+ case IEEE80211_OFDM_RATE_6MB: ret = DESC_RATE6M; break;
+ case IEEE80211_OFDM_RATE_9MB: ret = DESC_RATE9M; break;
+ case IEEE80211_OFDM_RATE_12MB: ret = DESC_RATE12M; break;
+ case IEEE80211_OFDM_RATE_18MB: ret = DESC_RATE18M; break;
+ case IEEE80211_OFDM_RATE_24MB: ret = DESC_RATE24M; break;
+ case IEEE80211_OFDM_RATE_36MB: ret = DESC_RATE36M; break;
+ case IEEE80211_OFDM_RATE_48MB: ret = DESC_RATE48M; break;
+ case IEEE80211_OFDM_RATE_54MB: ret = DESC_RATE54M; break;
+
+ // HT rates since here
+ //case MGN_MCS0: ret = DESC_RATEMCS0; break;
+ //case MGN_MCS1: ret = DESC_RATEMCS1; break;
+ //case MGN_MCS2: ret = DESC_RATEMCS2; break;
+ //case MGN_MCS3: ret = DESC_RATEMCS3; break;
+ //case MGN_MCS4: ret = DESC_RATEMCS4; break;
+ //case MGN_MCS5: ret = DESC_RATEMCS5; break;
+ //case MGN_MCS6: ret = DESC_RATEMCS6; break;
+ //case MGN_MCS7: ret = DESC_RATEMCS7; break;
+
+ default: break;
+ }
+
+ return ret;
+}
+
+void HalSetBrateCfg(
+ IN PADAPTER Adapter,
+ IN u8 *mBratesOS,
+ OUT u16 *pBrateCfg)
+{
+ u8 i, is_brate, brate;
+
+ for(i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++)
+ {
+ is_brate = mBratesOS[i] & IEEE80211_BASIC_RATE_MASK;
+ brate = mBratesOS[i] & 0x7f;
+
+ if( is_brate )
+ {
+ switch(brate)
+ {
+ case IEEE80211_CCK_RATE_1MB: *pBrateCfg |= RATE_1M; break;
+ case IEEE80211_CCK_RATE_2MB: *pBrateCfg |= RATE_2M; break;
+ case IEEE80211_CCK_RATE_5MB: *pBrateCfg |= RATE_5_5M;break;
+ case IEEE80211_CCK_RATE_11MB: *pBrateCfg |= RATE_11M; break;
+ case IEEE80211_OFDM_RATE_6MB: *pBrateCfg |= RATE_6M; break;
+ case IEEE80211_OFDM_RATE_9MB: *pBrateCfg |= RATE_9M; break;
+ case IEEE80211_OFDM_RATE_12MB: *pBrateCfg |= RATE_12M; break;
+ case IEEE80211_OFDM_RATE_18MB: *pBrateCfg |= RATE_18M; break;
+ case IEEE80211_OFDM_RATE_24MB: *pBrateCfg |= RATE_24M; break;
+ case IEEE80211_OFDM_RATE_36MB: *pBrateCfg |= RATE_36M; break;
+ case IEEE80211_OFDM_RATE_48MB: *pBrateCfg |= RATE_48M; break;
+ case IEEE80211_OFDM_RATE_54MB: *pBrateCfg |= RATE_54M; break;
+ }
+ }
+ }
+}
+
+void hal_init_macaddr(_adapter *adapter)
+{
+ rtw_hal_set_hwreg(adapter, HW_VAR_MAC_ADDR, adapter->eeprompriv.mac_addr);
+#ifdef CONFIG_CONCURRENT_MODE
+ if (adapter->pbuddy_adapter)
+ rtw_hal_set_hwreg(adapter->pbuddy_adapter, HW_VAR_MAC_ADDR, adapter->pbuddy_adapter->eeprompriv.mac_addr);
+#endif
+}
+
+/*
+* C2H event format:
+* Field TRIGGER CONTENT CMD_SEQ CMD_LEN CMD_ID
+* BITS [127:120] [119:16] [15:8] [7:4] [3:0]
+*/
+
+void c2h_evt_clear(_adapter *adapter)
+{
+ rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE);
+}
+
+s32 c2h_evt_read(_adapter *adapter, u8 *buf)
+{
+ s32 ret = _FAIL;
+ struct c2h_evt_hdr *c2h_evt;
+ int i;
+ u8 trigger;
+
+ if (buf == NULL)
+ goto exit;
+
+ trigger = rtw_read8(adapter, REG_C2HEVT_CLEAR);
+
+ if (trigger == C2H_EVT_HOST_CLOSE) {
+ goto exit; /* Not ready */
+ } else if (trigger != C2H_EVT_FW_CLOSE) {
+ goto clear_evt; /* Not a valid value */
+ }
+
+ c2h_evt = (struct c2h_evt_hdr *)buf;
+
+ _rtw_memset(c2h_evt, 0, 16);
+
+ *buf = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL);
+ *(buf+1) = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL + 1);
+
+ RT_PRINT_DATA(_module_hal_init_c_, _drv_info_, "c2h_evt_read(): ",
+ &c2h_evt , sizeof(c2h_evt));
+
+ if (0) {
+ DBG_871X("%s id:%u, len:%u, seq:%u, trigger:0x%02x\n", __func__
+ , c2h_evt->id, c2h_evt->plen, c2h_evt->seq, trigger);
+ }
+
+ /* Read the content */
+ for (i = 0; i < c2h_evt->plen; i++)
+ c2h_evt->payload[i] = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL + sizeof(*c2h_evt) + i);
+
+ RT_PRINT_DATA(_module_hal_init_c_, _drv_info_, "c2h_evt_read(): Command Content:\n",
+ c2h_evt->payload, c2h_evt->plen);
+
+ ret = _SUCCESS;
+
+clear_evt:
+ /*
+ * Clear event to notify FW we have read the command.
+ * If this field isn't clear, the FW won't update the next command message.
+ */
+ c2h_evt_clear(adapter);
+exit:
+ return ret;
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/hal/hal_init.c b/drivers/net/wireless/rtl8192cu/hal/hal_init.c
deleted file mode 100644
index edef678..0000000
--- a/drivers/net/wireless/rtl8192cu/hal/hal_init.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
- ******************************************************************************/
-
-#define _HAL_INIT_C_
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-#include <rtw_byteorder.h>
-
-#include <hal_init.h>
-
-#ifdef CONFIG_SDIO_HCI
- #include <sdio_hal.h>
-#elif defined(CONFIG_USB_HCI)
- #include <usb_hal.h>
-#endif
-
-void intf_chip_configure(_adapter *padapter)
-{
- if(padapter->HalFunc.intf_chip_configure)
- padapter->HalFunc.intf_chip_configure(padapter);
-}
-
-void intf_read_chip_info(_adapter *padapter)
-{
- if(padapter->HalFunc.read_adapter_info)
- padapter->HalFunc.read_adapter_info(padapter);
-}
-
-void intf_read_chip_version(_adapter *padapter)
-{
- if(padapter->HalFunc.read_chip_version)
- padapter->HalFunc.read_chip_version(padapter);
-}
-
-void rtw_dm_init(_adapter *padapter)
-{
- if(padapter->HalFunc.dm_init)
- padapter->HalFunc.dm_init(padapter);
-}
-
-void rtw_sw_led_init(_adapter *padapter)
-{
- if(padapter->HalFunc.InitSwLeds)
- padapter->HalFunc.InitSwLeds(padapter);
-}
-
-void rtw_sw_led_deinit(_adapter *padapter)
-{
- if(padapter->HalFunc.DeInitSwLeds)
- padapter->HalFunc.DeInitSwLeds(padapter);
-}
-
-uint rtw_hal_init(_adapter *padapter)
-{
- uint status = _SUCCESS;
-
- padapter->hw_init_completed=_FALSE;
-
- status = padapter->HalFunc.hal_init(padapter);
-
- if(status == _SUCCESS){
- padapter->hw_init_completed = _TRUE;
- }
- else{
- padapter->hw_init_completed = _FALSE;
- RT_TRACE(_module_hal_init_c_,_drv_err_,("rtw_hal_init: hal__init fail\n"));
- }
-
- RT_TRACE(_module_hal_init_c_,_drv_err_,("-rtl871x_hal_init:status=0x%x\n",status));
-
- return status;
-
-}
-
-uint rtw_hal_deinit(_adapter *padapter)
-{
- uint status = _SUCCESS;
-
-_func_enter_;
-
- status = padapter->HalFunc.hal_deinit(padapter);
-
- if(status == _SUCCESS){
- padapter->hw_init_completed = _FALSE;
- }
- else
- {
- RT_TRACE(_module_hal_init_c_,_drv_err_,("\n rtw_hal_deinit: hal_init fail\n"));
- }
-
-_func_exit_;
-
- return status;
-
-}
-#ifdef DBG_CONFIG_ERROR_DETECT
-void rtw_sreset_init(_adapter *padapter)
-{
- if(padapter->HalFunc.sreset_init_value)
- padapter->HalFunc.sreset_init_value(padapter);
-}
-#endif
diff --git a/drivers/net/wireless/rtl8192cu/hal/hal_intf.c b/drivers/net/wireless/rtl8192cu/hal/hal_intf.c
new file mode 100644
index 0000000..6c56e72
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/hal/hal_intf.c
@@ -0,0 +1,546 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+
+#define _HAL_INTF_C_
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+#include <rtw_byteorder.h>
+
+#include <hal_intf.h>
+
+#ifdef CONFIG_SDIO_HCI
+ #include <sdio_hal.h>
+#elif defined(CONFIG_USB_HCI)
+ #include <usb_hal.h>
+#elif defined(CONFIG_GSPI_HCI)
+ #include <gspi_hal.h>
+#endif
+
+void rtw_hal_chip_configure(_adapter *padapter)
+{
+ if(padapter->HalFunc.intf_chip_configure)
+ padapter->HalFunc.intf_chip_configure(padapter);
+}
+
+void rtw_hal_read_chip_info(_adapter *padapter)
+{
+ if(padapter->HalFunc.read_adapter_info)
+ padapter->HalFunc.read_adapter_info(padapter);
+}
+
+void rtw_hal_read_chip_version(_adapter *padapter)
+{
+ if(padapter->HalFunc.read_chip_version)
+ padapter->HalFunc.read_chip_version(padapter);
+}
+
+void rtw_hal_def_value_init(_adapter *padapter)
+{
+ if(padapter->HalFunc.init_default_value)
+ padapter->HalFunc.init_default_value(padapter);
+}
+
+void rtw_hal_free_data(_adapter *padapter)
+{
+ if(padapter->HalFunc.free_hal_data)
+ padapter->HalFunc.free_hal_data(padapter);
+}
+
+void rtw_hal_dm_init(_adapter *padapter)
+{
+ if(padapter->HalFunc.dm_init)
+ padapter->HalFunc.dm_init(padapter);
+}
+
+void rtw_hal_dm_deinit(_adapter *padapter)
+{
+ // cancel dm timer
+ if(padapter->HalFunc.dm_deinit)
+ padapter->HalFunc.dm_deinit(padapter);
+}
+
+void rtw_hal_sw_led_init(_adapter *padapter)
+{
+ if(padapter->HalFunc.InitSwLeds)
+ padapter->HalFunc.InitSwLeds(padapter);
+}
+
+void rtw_hal_sw_led_deinit(_adapter *padapter)
+{
+ if(padapter->HalFunc.DeInitSwLeds)
+ padapter->HalFunc.DeInitSwLeds(padapter);
+}
+
+uint rtw_hal_init(_adapter *padapter)
+{
+ uint status = _SUCCESS;
+
+ if(padapter->hw_init_completed == _TRUE)
+ {
+ DBG_871X("rtw_hal_init: hw_init_completed == _TRUE\n");
+ goto success;
+ }
+#ifdef CONFIG_DEINIT_BEFORE_INIT
+ status = padapter->HalFunc.hal_deinit(padapter);
+ if(status != _SUCCESS){
+ DBG_871X("rtw_hal_init: hal_deinit before hal_init FAIL !!\n");
+ goto fail;
+ }
+#endif
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ // before init mac0, driver must init mac1 first to avoid usb rx error.
+ if((padapter->pbuddy_adapter != NULL) && (padapter->DualMacConcurrent == _TRUE)
+ && (padapter->adapter_type == PRIMARY_ADAPTER))
+ {
+ if(padapter->pbuddy_adapter->hw_init_completed == _TRUE)
+ {
+ DBG_871X("rtw_hal_init: pbuddy_adapter hw_init_completed == _TRUE\n");
+ }
+ else
+ {
+#ifdef CONFIG_DEINIT_BEFORE_INIT
+ status = padapter->HalFunc.hal_deinit(padapter->pbuddy_adapter);
+ if(status != _SUCCESS){
+ DBG_871X("rtw_hal_init: hal_deinit before hal_init FAIL !!(pbuddy_adapter)\n");
+ goto fail;
+ }
+#endif
+ status = padapter->HalFunc.hal_init(padapter->pbuddy_adapter);
+ if(status == _SUCCESS){
+ padapter->pbuddy_adapter->hw_init_completed = _TRUE;
+ }
+ else{
+ padapter->pbuddy_adapter->hw_init_completed = _FALSE;
+ RT_TRACE(_module_hal_init_c_,_drv_err_,("rtw_hal_init: hal__init fail(pbuddy_adapter)\n"));
+ goto fail;
+ }
+ }
+ }
+#else
+ if(adapter_to_dvobj(padapter)->DualMacMode == _TRUE)
+ {
+ if(padapter->pbuddy_adapter != NULL) {
+ if(padapter->pbuddy_adapter->hw_init_completed == _FALSE)
+ {
+#ifdef CONFIG_DEINIT_BEFORE_INIT
+ status = padapter->HalFunc.hal_deinit(padapter->pbuddy_adapter);
+ if(status != _SUCCESS){
+ DBG_871X("rtw_hal_init: hal_deinit before hal_init FAIL !!(pbuddy_adapter)\n");
+ goto fail;
+ }
+#endif
+ status = padapter->HalFunc.hal_init(padapter->pbuddy_adapter);
+ if(status == _SUCCESS){
+ padapter->pbuddy_adapter->hw_init_completed = _TRUE;
+ }
+ else{
+ padapter->pbuddy_adapter->hw_init_completed = _FALSE;
+ RT_TRACE(_module_hal_init_c_,_drv_err_,("rtw_hal_init: hal__init fail for another interface\n"));
+ }
+ }
+ }
+ }
+#endif
+
+ padapter->hw_init_completed=_FALSE;
+
+ status = padapter->HalFunc.hal_init(padapter);
+
+ if(status == _SUCCESS){
+ padapter->hw_init_completed = _TRUE;
+ }
+ else{
+ padapter->hw_init_completed = _FALSE;
+ RT_TRACE(_module_hal_init_c_,_drv_err_,("rtw_hal_init: hal__init fail\n"));
+ goto fail;
+ }
+
+success:
+
+ if (padapter->registrypriv.notch_filter == 1)
+ rtw_hal_notch_filter(padapter, 1);
+
+ rtw_hal_reset_security_engine(padapter);
+
+ rtw_sec_restore_wep_key(padapter);
+
+ init_hw_mlme_ext(padapter);
+
+fail:
+
+ RT_TRACE(_module_hal_init_c_,_drv_err_,("-rtl871x_hal_init:status=0x%x\n",status));
+
+ return status;
+}
+
+uint rtw_hal_deinit(_adapter *padapter)
+{
+ uint status = _SUCCESS;
+
+_func_enter_;
+
+ status = padapter->HalFunc.hal_deinit(padapter);
+
+ if(status == _SUCCESS){
+ padapter->hw_init_completed = _FALSE;
+ }
+ else
+ {
+ RT_TRACE(_module_hal_init_c_,_drv_err_,("\n rtw_hal_deinit: hal_init fail\n"));
+ }
+
+_func_exit_;
+
+ return status;
+}
+
+void rtw_hal_set_hwreg(_adapter *padapter, u8 variable, u8 *val)
+{
+ if (padapter->HalFunc.SetHwRegHandler)
+ padapter->HalFunc.SetHwRegHandler(padapter, variable, val);
+}
+
+void rtw_hal_get_hwreg(_adapter *padapter, u8 variable, u8 *val)
+{
+ if (padapter->HalFunc.GetHwRegHandler)
+ padapter->HalFunc.GetHwRegHandler(padapter, variable, val);
+}
+
+u8 rtw_hal_set_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue)
+{
+ if(padapter->HalFunc.SetHalDefVarHandler)
+ return padapter->HalFunc.SetHalDefVarHandler(padapter,eVariable,pValue);
+ return _FAIL;
+}
+
+u8 rtw_hal_get_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue)
+{
+ if(padapter->HalFunc.GetHalDefVarHandler)
+ return padapter->HalFunc.GetHalDefVarHandler(padapter,eVariable,pValue);
+ return _FAIL;
+}
+
+void rtw_hal_enable_interrupt(_adapter *padapter)
+{
+ if (padapter->HalFunc.enable_interrupt)
+ padapter->HalFunc.enable_interrupt(padapter);
+ else
+ DBG_871X("%s: HalFunc.enable_interrupt is NULL!\n", __FUNCTION__);
+
+}
+void rtw_hal_disable_interrupt(_adapter *padapter)
+{
+ if (padapter->HalFunc.disable_interrupt)
+ padapter->HalFunc.disable_interrupt(padapter);
+ else
+ DBG_871X("%s: HalFunc.disable_interrupt is NULL!\n", __FUNCTION__);
+
+}
+
+u32 rtw_hal_inirp_init(_adapter *padapter)
+{
+ u32 rst = _FAIL;
+ if(padapter->HalFunc.inirp_init)
+ rst = padapter->HalFunc.inirp_init(padapter);
+ else
+ DBG_871X(" %s HalFunc.inirp_init is NULL!!!\n",__FUNCTION__);
+ return rst;
+}
+
+u32 rtw_hal_inirp_deinit(_adapter *padapter)
+{
+
+ if(padapter->HalFunc.inirp_deinit)
+ return padapter->HalFunc.inirp_deinit(padapter);
+
+ return _FAIL;
+
+}
+
+u8 rtw_hal_intf_ps_func(_adapter *padapter,HAL_INTF_PS_FUNC efunc_id, u8* val)
+{
+ if(padapter->HalFunc.interface_ps_func)
+ return padapter->HalFunc.interface_ps_func(padapter,efunc_id,val);
+ return _FAIL;
+}
+
+s32 rtw_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe)
+{
+ if(padapter->HalFunc.hal_xmitframe_enqueue)
+ return padapter->HalFunc.hal_xmitframe_enqueue(padapter, pxmitframe);
+
+ return _FALSE;
+}
+
+s32 rtw_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe)
+{
+ if(padapter->HalFunc.hal_xmit)
+ return padapter->HalFunc.hal_xmit(padapter, pxmitframe);
+
+ return _FALSE;
+}
+
+s32 rtw_hal_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe)
+{
+ s32 ret = _FAIL;
+ unsigned char *pframe;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+ _rtw_memcpy(pmgntframe->attrib.ra, pwlanhdr->addr1, ETH_ALEN);
+
+#ifdef CONFIG_IEEE80211W
+ if(padapter->securitypriv.binstallBIPkey == _TRUE)
+ {
+ if(IS_MCAST(pmgntframe->attrib.ra))
+ {
+ pmgntframe->attrib.encrypt = _BIP_;
+ //pmgntframe->attrib.bswenc = _TRUE;
+ }
+ else
+ {
+ pmgntframe->attrib.encrypt = _AES_;
+ pmgntframe->attrib.bswenc = _TRUE;
+ }
+ rtw_mgmt_xmitframe_coalesce(padapter, pmgntframe->pkt, pmgntframe);
+ }
+#endif //CONFIG_IEEE80211W
+
+ if(padapter->HalFunc.mgnt_xmit)
+ ret = padapter->HalFunc.mgnt_xmit(padapter, pmgntframe);
+ return ret;
+}
+
+s32 rtw_hal_init_xmit_priv(_adapter *padapter)
+{
+ if(padapter->HalFunc.init_xmit_priv != NULL)
+ return padapter->HalFunc.init_xmit_priv(padapter);
+ return _FAIL;
+}
+
+void rtw_hal_free_xmit_priv(_adapter *padapter)
+{
+ if(padapter->HalFunc.free_xmit_priv != NULL)
+ padapter->HalFunc.free_xmit_priv(padapter);
+}
+
+s32 rtw_hal_init_recv_priv(_adapter *padapter)
+{
+ if(padapter->HalFunc.init_recv_priv)
+ return padapter->HalFunc.init_recv_priv(padapter);
+
+ return _FAIL;
+}
+
+void rtw_hal_free_recv_priv(_adapter *padapter)
+{
+ if(padapter->HalFunc.free_recv_priv)
+ padapter->HalFunc.free_recv_priv(padapter);
+}
+
+void rtw_hal_update_ra_mask(_adapter *padapter, u32 mac_id)
+{
+ if(padapter->HalFunc.UpdateRAMaskHandler)
+ padapter->HalFunc.UpdateRAMaskHandler(padapter,mac_id);
+}
+
+void rtw_hal_add_ra_tid(_adapter *padapter, u32 bitmap, u8 arg)
+{
+ if(padapter->HalFunc.Add_RateATid)
+ padapter->HalFunc.Add_RateATid(padapter, bitmap, arg);
+}
+
+u32 rtw_hal_read_bbreg(_adapter *padapter, u32 RegAddr, u32 BitMask)
+{
+ u32 data = 0;
+ if (padapter->HalFunc.read_bbreg)
+ data = padapter->HalFunc.read_bbreg(padapter, RegAddr, BitMask);
+ return data;
+}
+
+void rtw_hal_write_bbreg(_adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data)
+{
+ if (padapter->HalFunc.write_bbreg)
+ padapter->HalFunc.write_bbreg(padapter, RegAddr, BitMask, Data);
+}
+
+u32 rtw_hal_read_rfreg(_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask)
+{
+ u32 data = 0;
+ if (padapter->HalFunc.read_rfreg)
+ data = padapter->HalFunc.read_rfreg(padapter, eRFPath, RegAddr, BitMask);
+ return data;
+}
+
+void rtw_hal_write_rfreg(_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data)
+{
+ if (padapter->HalFunc.write_rfreg)
+ padapter->HalFunc.write_rfreg(padapter, eRFPath, RegAddr, BitMask, Data);
+}
+
+s32 rtw_hal_interrupt_handler(_adapter *padapter)
+{
+ if(padapter->HalFunc.interrupt_handler)
+ return padapter->HalFunc.interrupt_handler(padapter);
+ return _FAIL;
+}
+
+void rtw_hal_set_bwmode(_adapter *padapter, HT_CHANNEL_WIDTH Bandwidth, u8 Offset)
+{
+ if(padapter->HalFunc.set_bwmode_handler)
+ padapter->HalFunc.set_bwmode_handler(padapter, Bandwidth, Offset);
+}
+
+void rtw_hal_set_chan(_adapter *padapter, u8 channel)
+{
+ if(padapter->HalFunc.set_channel_handler)
+ padapter->HalFunc.set_channel_handler(padapter, channel);
+}
+
+void rtw_hal_dm_watchdog(_adapter *padapter)
+{
+ if(padapter->HalFunc.hal_dm_watchdog)
+ padapter->HalFunc.hal_dm_watchdog(padapter);
+}
+
+void rtw_hal_bcn_related_reg_setting(_adapter *padapter)
+{
+ if(padapter->HalFunc.SetBeaconRelatedRegistersHandler)
+ padapter->HalFunc.SetBeaconRelatedRegistersHandler(padapter);
+}
+
+#ifdef CONFIG_ANTENNA_DIVERSITY
+u8 rtw_hal_antdiv_before_linked(_adapter *padapter)
+{
+ if (padapter->HalFunc.AntDivBeforeLinkHandler)
+ return padapter->HalFunc.AntDivBeforeLinkHandler(padapter);
+ return _FALSE;
+}
+
+void rtw_hal_antdiv_rssi_compared(_adapter *padapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src)
+{
+ if (padapter->HalFunc.AntDivCompareHandler)
+ padapter->HalFunc.AntDivCompareHandler(padapter, dst, src);
+}
+#endif
+
+#ifdef CONFIG_HOSTAPD_MLME
+s32 rtw_hal_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
+{
+ if (padapter->HalFunc.hostap_mgnt_xmit_entry)
+ return padapter->HalFunc.hostap_mgnt_xmit_entry(padapter, pkt);
+ return _FAIL;
+}
+#endif //CONFIG_HOSTAPD_MLME
+
+#ifdef DBG_CONFIG_ERROR_DETECT
+void rtw_hal_sreset_init(_adapter *padapter)
+{
+ if(padapter->HalFunc.sreset_init_value)
+ padapter->HalFunc.sreset_init_value(padapter);
+}
+
+void rtw_hal_sreset_reset(_adapter *padapter)
+{
+ padapter = GET_PRIMARY_ADAPTER(padapter);
+
+ if(padapter->HalFunc.silentreset)
+ padapter->HalFunc.silentreset(padapter);
+}
+
+void rtw_hal_sreset_reset_value(_adapter *padapter)
+{
+ if(padapter->HalFunc.sreset_reset_value)
+ padapter->HalFunc.sreset_reset_value(padapter);
+}
+
+void rtw_hal_sreset_xmit_status_check(_adapter *padapter)
+{
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->adapter_type != PRIMARY_ADAPTER)
+ return;
+#endif
+ if(padapter->HalFunc.sreset_xmit_status_check)
+ padapter->HalFunc.sreset_xmit_status_check(padapter);
+}
+
+void rtw_hal_sreset_linked_status_check(_adapter *padapter)
+{
+ if(padapter->HalFunc.sreset_linked_status_check)
+ padapter->HalFunc.sreset_linked_status_check(padapter);
+}
+
+u8 rtw_hal_sreset_get_wifi_status(_adapter *padapter)
+{
+ u8 status = 0;
+ if(padapter->HalFunc.sreset_get_wifi_status)
+ status = padapter->HalFunc.sreset_get_wifi_status(padapter);
+ return status;
+}
+
+bool rtw_hal_sreset_inprogress(_adapter *padapter)
+{
+ bool inprogress = _FALSE;
+
+ padapter = GET_PRIMARY_ADAPTER(padapter);
+
+ if(padapter->HalFunc.sreset_inprogress)
+ inprogress = padapter->HalFunc.sreset_inprogress(padapter);
+ return inprogress;
+}
+#endif //DBG_CONFIG_ERROR_DETECT
+
+#ifdef CONFIG_IOL
+int rtw_hal_iol_cmd(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms)
+{
+ if (adapter->HalFunc.IOL_exec_cmds_sync)
+ return adapter->HalFunc.IOL_exec_cmds_sync(adapter, xmit_frame, max_wating_ms);
+ return _FAIL;
+}
+#endif
+
+void rtw_hal_notch_filter(_adapter *adapter, bool enable)
+{
+ if(adapter->HalFunc.hal_notch_filter)
+ adapter->HalFunc.hal_notch_filter(adapter,enable);
+}
+
+void rtw_hal_reset_security_engine(_adapter * adapter)
+{
+ if(adapter->HalFunc.hal_reset_security_engine)
+ adapter->HalFunc.hal_reset_security_engine(adapter);
+}
+
+s32 rtw_hal_c2h_handler(_adapter *adapter, struct c2h_evt_hdr *c2h_evt)
+{
+ s32 ret = _FAIL;
+ if (adapter->HalFunc.c2h_handler)
+ ret = adapter->HalFunc.c2h_handler(adapter, c2h_evt);
+ return ret;
+}
+
+c2h_id_filter rtw_hal_c2h_id_filter_ccx(_adapter *adapter)
+{
+ return adapter->HalFunc.c2h_id_filter_ccx;
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_cmd.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_cmd.c
index 971ef6c..33921e2 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_cmd.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_cmd.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTL8192C_CMD_C_
#include <drv_conf.h>
@@ -33,67 +32,12 @@
#include <rtl8192c_hal.h>
-#if 0
-static BOOLEAN
-CheckWriteMSG(
- IN PADAPTER Adapter,
- IN u8 BoxNum
-)
-{
- u8 valHMETFR;
- BOOLEAN Result = _FALSE;
-
- valHMETFR = rtw_read8(Adapter, REG_HMETFR);
-
- //DbgPrint("CheckWriteH2C(): Reg[0x%2x] = %x\n",REG_HMETFR, valHMETFR);
-
- if(((valHMETFR>>BoxNum)&BIT0) == 1)
- Result = _TRUE;
-
- return Result;
-
-}
-
-static BOOLEAN CheckFwReadLastMSG(
- IN PADAPTER Adapter,
- IN u8 BoxNum
-)
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- u8 valHMETFR, valMCUTST_1;
- BOOLEAN Result = _FALSE;
-
- valHMETFR = rtw_read8(Adapter, REG_HMETFR);
- valMCUTST_1 = rtw_read8(Adapter, (REG_MCUTST_1+BoxNum));
-
- //DbgPrint("REG[%x] = %x, REG[%x] = %x\n",
- // REG_HMETFR, valHMETFR, REG_MCUTST_1+BoxNum, valMCUTST_1 );
-
- // Do not seperate to 91C and 88C, we use the same setting. Suggested by SD4 Filen. 2009.12.03.
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- if(((valHMETFR>>BoxNum)&BIT0) == 0)
- Result = _TRUE;
- }
- else
- {
- if((((valHMETFR>>BoxNum)&BIT0) == 0) && (valMCUTST_1 == 0))
- {
- Result = _TRUE;
- }
- }
-
- return Result;
-}
-#endif
-
-
#define RTL92C_MAX_H2C_BOX_NUMS 4
#define RTL92C_MAX_CMD_LEN 5
#define MESSAGE_BOX_SIZE 4
#define EX_MESSAGE_BOX_SIZE 2
-static u8 _is_fw_read_cmd_down(_adapter* padapter, u8 isvern, u8 msgbox_num)
+static u8 _is_fw_read_cmd_down(_adapter* padapter, u8 msgbox_num)
{
u8 read_down = _FALSE;
int retry_cnts = 100;
@@ -103,17 +47,10 @@ static u8 _is_fw_read_cmd_down(_adapter* padapter, u8 isvern, u8 msgbox_num)
// DBG_8192C(" _is_fw_read_cmd_down ,isnormal_chip(%x),reg_1cc(%x),msg_box(%d)...\n",isvern,rtw_read8(padapter,REG_HMETFR),msgbox_num);
do{
- valid = rtw_read8(padapter,REG_HMETFR) & BIT(msgbox_num);
- if(isvern){
- if(0 == valid ){
- read_down = _TRUE;
- }
- }
- else{
- if((0 == valid) && (0 == rtw_read8(padapter, REG_MCUTST_1+msgbox_num))){
- read_down = _TRUE;
- }
- }
+ valid = rtw_read8(padapter,REG_HMETFR) & BIT(msgbox_num);
+ if(0 == valid ){
+ read_down = _TRUE;
+ }
}while( (!read_down) && (retry_cnts--));
return read_down;
@@ -129,19 +66,28 @@ static u8 _is_fw_read_cmd_down(_adapter* padapter, u8 isvern, u8 msgbox_num)
******************************************/
int rtl8192c_FillH2CCmd(_adapter* padapter, u8 ElementID, u32 CmdLen, u8* pCmdBuffer)
{
-#if 1
u8 bcmd_down = _FALSE;
int retry_cnts = 100;
u8 h2c_box_num;
u32 msgbox_addr;
u32 msgbox_ex_addr;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- u8 isnchip =IS_NORMAL_CHIP(pHalData->VersionID);
u32 h2c_cmd = 0;
u16 h2c_cmd_ex = 0;
int ret = _FAIL;
- _func_enter_;
+_func_enter_;
+
+ padapter = GET_PRIMARY_ADAPTER(padapter);
+ pHalData = GET_HAL_DATA(padapter);
+
+ if(padapter->bFWReady == _FALSE)
+ {
+ DBG_8192C("FillH2CCmd(): return H2C cmd because fw is not ready\n");
+ return ret;
+ }
+
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->h2c_fwcmd_mutex), NULL);
if(!pCmdBuffer){
goto exit;
@@ -153,7 +99,7 @@ int rtl8192c_FillH2CCmd(_adapter* padapter, u8 ElementID, u32 CmdLen, u8* pCmdBu
do{
h2c_box_num = pHalData->LastHMEBoxNum;
- if(!_is_fw_read_cmd_down(padapter, isnchip, h2c_box_num)){
+ if(!_is_fw_read_cmd_down(padapter, h2c_box_num)){
DBG_8192C(" fw read cmd failed...\n");
goto exit;
}
@@ -179,14 +125,6 @@ int rtl8192c_FillH2CCmd(_adapter* padapter, u8 ElementID, u32 CmdLen, u8* pCmdBu
h2c_cmd = cpu_to_le32( h2c_cmd );
rtw_write32(padapter,msgbox_addr, h2c_cmd);
- if(!isnchip){//for Test chip
- if(! (rtw_read8(padapter, REG_HMETFR) & BIT(h2c_box_num))){
- DBG_8192C("Chip test - check fw write failed, write again..\n");
- continue;
- }
- // Fill H2C protection register.
- rtw_write8(padapter,REG_MCUTST_1+h2c_box_num, 0xFF);
- }
bcmd_down = _TRUE;
// DBG_8192C("MSG_BOX:%d,CmdLen(%d), reg:0x%x =>h2c_cmd:0x%x, reg:0x%x =>h2c_cmd_ex:0x%x ..\n"
@@ -202,178 +140,13 @@ int rtl8192c_FillH2CCmd(_adapter* padapter, u8 ElementID, u32 CmdLen, u8* pCmdBu
DBG_8192C("H2C Cmd exe failed. \n" );
*/
ret = _SUCCESS;
- _func_exit_;
-
-#else
- u8 BoxNum;
- u16 BOXReg, BOXExtReg;
- u8 BoxContent[4], BoxExtContent[2];
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- u8 BufIndex=0;
- u8 bWriteSucess = _FALSE;
- u8 IsFwRead = _FALSE;
- u8 WaitH2cLimmit = 100;
-
- u32 h2c_cmd = 0;
- u16 h2c_cmd_ex = 0;
-_func_enter_;
-
- //DBG_8192C("FillH2CCmd : ElementID=%d \n",ElementID);
-
- while(!bWriteSucess)
- {
- // 2. Find the last BOX number which has been writen.
- BoxNum = pHalData->LastHMEBoxNum;
- switch(BoxNum)
- {
- case 0:
- BOXReg = REG_HMEBOX_0;
- BOXExtReg = REG_HMEBOX_EXT_0;
- break;
- case 1:
- BOXReg = REG_HMEBOX_1;
- BOXExtReg = REG_HMEBOX_EXT_1;
- break;
- case 2:
- BOXReg = REG_HMEBOX_2;
- BOXExtReg = REG_HMEBOX_EXT_2;
- break;
- case 3:
- BOXReg = REG_HMEBOX_3;
- BOXExtReg = REG_HMEBOX_EXT_3;
- break;
- default:
- break;
- }
-
- // 3. Check if the box content is empty.
- IsFwRead = CheckFwReadLastMSG(padapter, BoxNum);
- while(!IsFwRead)
- {
- //wait until Fw read
- WaitH2cLimmit--;
- if(WaitH2cLimmit == 0)
- {
- DBG_8192C("FillH2CCmd92C(): Wating too long for FW read clear HMEBox(%d)!!!\n", BoxNum);
- break;
- }
- rtw_msleep_os(10); //us
- IsFwRead = CheckFwReadLastMSG(padapter, BoxNum);
- //U1btmp = PlatformEFIORead1Byte(Adapter, 0x1BF);
- //RT_TRACE(COMP_CMD, DBG_LOUD, ("FillH2CCmd92C(): Wating for FW read clear HMEBox(%d)!!! 0x1BF = %2x\n", BoxNum, U1btmp));
- }
-
- // If Fw has not read the last H2C cmd, break and give up this H2C.
- if(!IsFwRead)
- {
- DBG_8192C("FillH2CCmd92C(): Write H2C register BOX[%d] fail!!!!! Fw do not read. \n", BoxNum);
- break;
- }
-
- // 4. Fill the H2C cmd into box
- _rtw_memset(BoxContent, 0, sizeof(BoxContent));
- _rtw_memset(BoxExtContent, 0, sizeof(BoxExtContent));
-
- BoxContent[0] = ElementID; // Fill element ID
-
- //DBG_8192C("FillH2CCmd92C():Write ElementID BOXReg(%4x) = %2x \n", BOXReg, ElementID);
-
- switch(CmdLen)
- {
- case 1:
- {
- BoxContent[0] &= ~(BIT7);
- _rtw_memcpy((u8*)(BoxContent)+1, pCmdBuffer+BufIndex, 1);
- rtw_write32(padapter, BOXReg, *((u32*)BoxContent));
- h2c_cmd = *((u32*)BoxContent);
- break;
- }
- case 2:
- {
- BoxContent[0] &= ~(BIT7);
- _rtw_memcpy((u8*)(BoxContent)+1, pCmdBuffer+BufIndex, 2);
- rtw_write32(padapter, BOXReg, *((u32*)BoxContent));
- h2c_cmd = *((u32*)BoxContent);
- break;
- }
- case 3:
- {
- BoxContent[0] &= ~(BIT7);
- _rtw_memcpy((u8*)(BoxContent)+1, pCmdBuffer+BufIndex, 3);
- rtw_write32(padapter, BOXReg, *((u32*)BoxContent));
- h2c_cmd = *((u32*)BoxContent);
- break;
- }
- case 4:
- {
- BoxContent[0] |= (BIT7);
- _rtw_memcpy((u8*)(BoxExtContent), pCmdBuffer+BufIndex, 2);
- _rtw_memcpy((u8*)(BoxContent)+1, pCmdBuffer+BufIndex+2, 2);
- rtw_write16(padapter, BOXExtReg, *((u16*)BoxExtContent));
- rtw_write32(padapter, BOXReg, *((u32*)BoxContent));
- h2c_cmd = *((u32*)BoxContent);
- h2c_cmd_ex = *((u32*)BoxExtContent);
- break;
- }
- case 5:
- {
- BoxContent[0] |= (BIT7);
- _rtw_memcpy((u8*)(BoxExtContent), pCmdBuffer+BufIndex, 2);
- _rtw_memcpy((u8*)(BoxContent)+1, pCmdBuffer+BufIndex+2, 3);
- rtw_write16(padapter, BOXExtReg, *((u16*)BoxExtContent));
- rtw_write32(padapter, BOXReg, *((u32*)BoxContent));
- h2c_cmd = *((u32*)BoxContent);
- h2c_cmd_ex = *((u32*)BoxExtContent);
- break;
- }
- default:
- break;
-
- }
-
-
- DBG_8192C("MSG_BOX:%d,CmdLen(%d), reg:0x%x =>h2c_cmd:0x%x, reg:0x%x =>h2c_cmd_ex:0x%x ..\n"
- ,pHalData->LastHMEBoxNum ,CmdLen,BOXReg,h2c_cmd,BOXExtReg,h2c_cmd_ex);
-
- //DBG_8192C("FillH2CCmd(): BoxExtContent=0x%x\n", *(u16*)BoxExtContent);
- //DBG_8192C("FillH2CCmd(): BoxContent=0x%x\n", *(u32*)BoxContent);
-
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- // 5. Normal chip does not need to check if the H2C cmd has be written successfully.
- bWriteSucess = _TRUE;
- }
- else
- {
- // 5. Check if the H2C cmd has be written successfully.
- bWriteSucess = CheckWriteMSG(padapter, BoxNum);
- if(!bWriteSucess) //If not then write again.
- continue;
-
- //6. Fill H2C protection register.
-
- rtw_write8(padapter, REG_MCUTST_1+BoxNum, 0xFF);
- //RT_TRACE(COMP_CMD, DBG_LOUD, ("FillH2CCmd92C():Write Reg(%4x) = 0xFF \n", REG_MCUTST_1+BoxNum));
- }
+exit:
- // Record the next BoxNum
- pHalData->LastHMEBoxNum = BoxNum+1;
- if(pHalData->LastHMEBoxNum == 4) // loop to 0
- pHalData->LastHMEBoxNum = 0;
-
- //DBG_8192C("FillH2CCmd92C():pHalData->LastHMEBoxNum = %d\n", pHalData->LastHMEBoxNum);
-
- }
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->h2c_fwcmd_mutex), NULL);
_func_exit_;
-#endif
-
-#ifdef CONFIG_CONCURRENT_MODE
- //_exit_critical_mutex(padapter->ph2c_fwcmd_mutex, NULL);
-#endif
-exit:
return ret;
}
@@ -445,67 +218,18 @@ _func_exit_;
}
-u8 rtl8192c_set_ext_macid_period_cmd(_adapter*padapter, u8 period)
-{
- u8 ext_macid_period=0;
- u8 res=_SUCCESS;
-
-_func_enter_;
-
- ext_macid_period=period;
-
- rtl8192c_FillH2CCmd(padapter, EXT_MACID_PERIOD_EID, 1, &ext_macid_period);
-
-_func_exit_;
-
- return res;
-
-}
-
-u8 rtl8192c_set_raid64_cmd(_adapter*padapter, u32 mask, u8 arg)
-{
- u8 buf[5];
- u8 res=_SUCCESS;
-
-_func_enter_;
-
- _rtw_memset(buf, 0, 5);
- mask = cpu_to_le32( mask );
- _rtw_memcpy(buf, &mask, 4);
- buf[4] = arg;
-
- rtl8192c_FillH2CCmd(padapter, MACID64_CONFIG_EID, 5, buf);
-
-_func_exit_;
-
- return res;
-
-}
//bitmap[0:27] = tx_rate_bitmap
//bitmap[28:31]= Rate Adaptive id
//arg[0:4] = macid
//arg[5] = Short GI
-void rtl8192c_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg, u8 mac_id)
+void rtl8192c_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
if(pHalData->fw_ractrl == _TRUE)
{
- DBG_8192C("%s() pHalData->fw_ractrl == _TRUE\n",__FUNCTION__);
-#ifdef SUPPORT_64_STA
- if(mac_id >=FW_CTRL_MACID){
- rtl8192c_set_ext_macid_period_cmd(pAdapter,20);
- rtl8192c_set_raid64_cmd(pAdapter, bitmap, arg);
- DBG_8192C("%s() rtl8192c_set_raid64_cmd, bitmap=0x%x, arg =0x%x\n",__FUNCTION__,bitmap,arg);
- }
- else
-#endif //SUPPORT_64_STA
- {
- rtl8192c_set_raid_cmd(pAdapter, bitmap, arg);
- DBG_8192C("%s() rtl8192c_set_raid_cmd, bitmap=0x%x, arg =0x%x\n",__FUNCTION__,bitmap,arg);
- }
-
+ rtl8192c_set_raid_cmd(pAdapter, bitmap, arg);
}
else
{
@@ -976,7 +700,7 @@ static void SetFwRsvdPagePkt(PADAPTER Adapter, BOOLEAN bDLFinished)
pattrib->pktlen = pattrib->last_txcmdsz = TotalPacketLen - TxDescLen;
_rtw_memcpy(pmgntframe->buf_addr, ReservedPagePacket, TotalPacketLen);
- Adapter->HalFunc.mgnt_xmit(Adapter, pmgntframe);
+ rtw_hal_mgnt_xmit(Adapter, pmgntframe);
bDLOK = _TRUE;
@@ -1003,6 +727,8 @@ _func_enter_;
if(mstatus == 1)
{
+ BOOLEAN bRecover = _FALSE;
+
// We should set AID, correct TSF, HW seq enable before set JoinBssReport to Fw in 88/92C.
// Suggested by filen. Added by tynli.
rtw_write16(padapter, REG_BCN_PSR_RPT, (0xC000|pmlmeinfo->aid));
@@ -1012,52 +738,47 @@ _func_enter_;
//rtw_write16(padapter, REG_NQOS_SEQ, ((pmlmeext->mgnt_seq+100)&0xFFF));
//rtw_write8(padapter, REG_HWSEQ_CTRL, 0xFF);
- if(IS_NORMAL_CHIP(pHalData->VersionID))
+ //set REG_CR bit 8
+ //U1bTmp = rtw_read8(padapter, REG_CR+1);
+ rtw_write8(padapter, REG_CR+1, 0x03);
+
+ // Disable Hw protection for a time which revserd for Hw sending beacon.
+ // Fix download reserved page packet fail that access collision with the protection time.
+ // 2010.05.11. Added by tynli.
+ //SetBcnCtrlReg(padapter, 0, BIT3);
+ //SetBcnCtrlReg(padapter, BIT4, 0);
+ rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)&(~BIT(3)));
+ rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)|BIT(4));
+
+ // Set FWHW_TXQ_CTRL 0x422[6]=0 to tell Hw the packet is not a real beacon frame.
+ if(pHalData->RegFwHwTxQCtrl&BIT6)
+ bRecover = _TRUE;
+
+ // To tell Hw the packet is not a real beacon frame.
+ //U1bTmp = rtw_read8(padapter, REG_FWHW_TXQ_CTRL+2);
+ rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl&(~BIT6)));
+ pHalData->RegFwHwTxQCtrl &= (~BIT6);
+ SetFwRsvdPagePkt(padapter, 0);
+
+ // 2010.05.11. Added by tynli.
+ //SetBcnCtrlReg(padapter, BIT3, 0);
+ //SetBcnCtrlReg(padapter, 0, BIT4);
+ rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)|BIT(3));
+ rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)&(~BIT(4)));
+
+ // To make sure that if there exists an adapter which would like to send beacon.
+ // If exists, the origianl value of 0x422[6] will be 1, we should check this to
+ // prevent from setting 0x422[6] to 0 after download reserved page, or it will cause
+ // the beacon cannot be sent by HW.
+ // 2010.06.23. Added by tynli.
+ if(bRecover)
{
- BOOLEAN bRecover = _FALSE;
-
- //set REG_CR bit 8
- //U1bTmp = rtw_read8(padapter, REG_CR+1);
- rtw_write8(padapter, REG_CR+1, 0x03);
-
- // Disable Hw protection for a time which revserd for Hw sending beacon.
- // Fix download reserved page packet fail that access collision with the protection time.
- // 2010.05.11. Added by tynli.
- //SetBcnCtrlReg(padapter, 0, BIT3);
- //SetBcnCtrlReg(padapter, BIT4, 0);
- rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)&(~BIT(3)));
- rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)|BIT(4));
-
- // Set FWHW_TXQ_CTRL 0x422[6]=0 to tell Hw the packet is not a real beacon frame.
- if(pHalData->RegFwHwTxQCtrl&BIT6)
- bRecover = _TRUE;
-
- // To tell Hw the packet is not a real beacon frame.
- //U1bTmp = rtw_read8(padapter, REG_FWHW_TXQ_CTRL+2);
- rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl&(~BIT6)));
- pHalData->RegFwHwTxQCtrl &= (~BIT6);
- SetFwRsvdPagePkt(padapter, 0);
-
- // 2010.05.11. Added by tynli.
- //SetBcnCtrlReg(padapter, BIT3, 0);
- //SetBcnCtrlReg(padapter, 0, BIT4);
- rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)|BIT(3));
- rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)&(~BIT(4)));
-
- // To make sure that if there exists an adapter which would like to send beacon.
- // If exists, the origianl value of 0x422[6] will be 1, we should check this to
- // prevent from setting 0x422[6] to 0 after download reserved page, or it will cause
- // the beacon cannot be sent by HW.
- // 2010.06.23. Added by tynli.
- if(bRecover)
- {
- rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl|BIT6));
- pHalData->RegFwHwTxQCtrl |= BIT6;
- }
-
- // Clear CR[8] or beacon packet will not be send to TxBuf anymore.
- rtw_write8(padapter, REG_CR+1, 0x02);
+ rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl|BIT6));
+ pHalData->RegFwHwTxQCtrl |= BIT6;
}
+
+ // Clear CR[8] or beacon packet will not be send to TxBuf anymore.
+ rtw_write8(padapter, REG_CR+1, 0x02);
}
JoinBssRptParm.OpMode = mstatus;
@@ -1067,7 +788,7 @@ _func_enter_;
_func_exit_;
}
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
void rtl8192c_set_p2p_ctw_period_cmd(_adapter* padapter, u8 ctwindow)
{
struct P2P_PS_CTWPeriod_t p2p_ps_ctw;
@@ -1103,7 +824,7 @@ _func_enter_;
{
p2p_ps_offload->CTWindow_En = 1;
ctwindow = pwdinfo->ctwindow;
- if(IS_HARDWARE_TYPE_8723(padapter))
+ if(IS_HARDWARE_TYPE_8723A(padapter))
{
//rtw_write16(padapter, REG_ATIMWND, ctwindow);
}
@@ -1174,7 +895,7 @@ _func_enter_;
case P2P_PS_SCAN_DONE:
DBG_8192C("P2P_PS_SCAN_DONE \n");
p2p_ps_offload->discovery = 0;
- pwdinfo->p2p_ps = P2P_PS_ENABLE;
+ pwdinfo->p2p_ps_state = P2P_PS_ENABLE;
break;
default:
break;
@@ -1185,7 +906,7 @@ _func_enter_;
_func_exit_;
}
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
#ifdef CONFIG_IOL
#include <rtw_iol.h>
@@ -1199,9 +920,8 @@ int rtl8192c_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame,
if (rtw_IOL_append_END_cmd(xmit_frame) != _SUCCESS)
goto exit;
-
- //adapter->HalFunc.mgnt_xmit(adapter, xmit_frame);
- rtw_dump_xframe_sync(adapter, xmit_frame);
+
+ dump_mgntframe_and_wait(adapter, xmit_frame, max_wating_ms);
IoOffloadLoc.LocCmd = 0;
if(_SUCCESS != rtl8192c_FillH2CCmd(adapter, H2C_92C_IO_OFFLOAD, sizeof(IO_OFFLOAD_LOC), (u8 *)&IoOffloadLoc))
@@ -1274,6 +994,84 @@ exit:
#endif //CONFIG_IOL
+#ifdef CONFIG_BEACON_DISABLE_OFFLOAD
+/*
+ rtl8192c_dis_beacon_fun_cmd()
+ This function shall only be called by PORT1.
+ PORT0's beacon function can't be disabled, because it's used by RA function in FW/HW.
+
+ // Still has the REG_BCN_CTRL_1 modified by unknowned party issue in case of Primary Interface + PORT1 combination.
+*/
+u8 rtl8192c_dis_beacon_fun_cmd(_adapter* padapter)
+{
+ u8 buf[2];
+ u8 res=_SUCCESS;
+
+_func_enter_;
+
+ _rtw_memset(buf, 0, sizeof(buf));
+
+ if (padapter->iface_type == IFACE_PORT0) {
+ //buf[0] = 0x1;
+ DBG_871X("%s(): ERROR! padapter->iface_type = %d\n", __FUNCTION__, padapter->iface_type);
+ return _FAIL;
+ } else
+ buf[1] = 0x1;
+
+ rtl8192c_FillH2CCmd(padapter, H2C_92C_DISABLE_BCN_FUNC, 2, buf);
+
+_func_exit_;
+
+ return res;
+
+}
+#endif // CONFIG_BEACON_DISABLE_OFFLOAD
+
+
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+/*
+ ask FW to Reset sync register at Beacon early interrupt
+*/
+u8 rtl8192c_reset_tsf(_adapter *padapter, u8 reset_port )
+{
+ u8 buf[2];
+ u8 res=_SUCCESS;
+
+_func_enter_;
+ if (IFACE_PORT0==reset_port) {
+ buf[0] = 0x1; buf[1] = 0;
+
+ } else{
+ buf[0] = 0x0; buf[1] = 0x1;
+ }
+ rtl8192c_FillH2CCmd(padapter, H2C_92C_RESET_TSF, 2, buf);
+_func_exit_;
+
+ return res;
+}
+
+int reset_tsf(PADAPTER Adapter, u8 reset_port )
+{
+ u8 reset_cnt_before = 0, reset_cnt_after = 0, loop_cnt = 0;
+ u32 reg_reset_tsf_cnt = (IFACE_PORT0==reset_port) ?
+ REG_FW_RESET_TSF_CNT_0:REG_FW_RESET_TSF_CNT_1;
+
+ rtw_scan_abort(Adapter->pbuddy_adapter); /* site survey will cause reset_tsf fail */
+ reset_cnt_after = reset_cnt_before = rtw_read8(Adapter,reg_reset_tsf_cnt);
+ rtl8192c_reset_tsf(Adapter, reset_port);
+
+ while ((reset_cnt_after == reset_cnt_before ) && (loop_cnt < 10)) {
+ rtw_msleep_os(100);
+ loop_cnt++;
+ reset_cnt_after = rtw_read8(Adapter, reg_reset_tsf_cnt);
+ }
+
+ return(loop_cnt >= 10) ? _FAIL : _TRUE;
+}
+
+
+#endif // CONFIG_TSF_RESET_OFFLOAD
+
#ifdef CONFIG_WOWLAN
void rtl8192c_set_wowlan_cmd(_adapter* padapter)
@@ -1310,6 +1108,8 @@ _func_enter_;
pwowlan_parm.mode |=FW_WOWLAN_REKEY_WAKEUP;
pwowlan_parm.mode |=FW_WOWLAN_DEAUTH_WAKEUP;
+ rtl8192c_set_FwJoinBssReport_cmd( padapter, 1);
+
//GPIO3
pwowlan_parm.gpio_index=3;
@@ -1323,7 +1123,6 @@ _func_enter_;
}
rtl8192c_FillH2CCmd(padapter, H2C_WO_WLAN_CMD, 4, (u8 *)&pwowlan_parm);
- rtl8192c_set_FwJoinBssReport_cmd( padapter, 1);
//keep alive period = 3 * 10 BCN interval
pwowlan_parm.mode =3;
pwowlan_parm.gpio_index=3;
@@ -1358,4 +1157,3 @@ _func_exit_;
-
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_dm.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_dm.c
index be1e800..6e5634c 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_dm.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_dm.c
@@ -15,8 +15,8 @@
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
- *
-******************************************************************************/
+ *
+ ******************************************************************************/
//============================================================
// Description:
//
@@ -34,7 +34,10 @@
#include <rtw_byteorder.h>
#include <rtl8192c_hal.h>
-
+#include "../dm.h"
+#ifdef CONFIG_INTEL_PROXIM
+#include "../proxim/intel_proxim.h"
+#endif
//============================================================
// Global var
//============================================================
@@ -95,6 +98,7 @@ static void dm_DIGInit(
pDigTable->rx_gain_range_max = DM_DIG_MAX;
pDigTable->rx_gain_range_min = DM_DIG_MIN;
+ pDigTable->rx_gain_range_min_nolink = 0;
pDigTable->BackoffVal = DM_DIG_BACKOFF_DEFAULT;
pDigTable->BackoffVal_range_max = DM_DIG_BACKOFF_MAX;
@@ -123,8 +127,12 @@ static u8 dm_initial_gain_MinPWDB(
(pDigTable->CurSTAConnectState == DIG_STA_CONNECT) )
{
if(pdmpriv->EntryMinUndecoratedSmoothedPWDB != 0)
+#ifdef CONFIG_CONCURRENT_MODE
+ Rssi_val_min = (pdmpriv->UndecoratedSmoothedPWDB+pdmpriv->EntryMinUndecoratedSmoothedPWDB)/2;
+#else
Rssi_val_min = (pdmpriv->EntryMinUndecoratedSmoothedPWDB > pdmpriv->UndecoratedSmoothedPWDB)?
pdmpriv->UndecoratedSmoothedPWDB:pdmpriv->EntryMinUndecoratedSmoothedPWDB;
+#endif //CONFIG_CONCURRENT_MODE
else
Rssi_val_min = pdmpriv->UndecoratedSmoothedPWDB;
}
@@ -151,6 +159,9 @@ dm_FalseAlarmCounterStatistics(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pdmpriv->FalseAlmCnt);
+#ifdef CONFIG_CONCURRENT_MODE
+ PADAPTER pbuddy_adapter = Adapter->pbuddy_adapter;
+#endif //CONFIG_CONCURRENT_MODE
ret_value = PHY_QueryBBReg(Adapter, rOFDM_PHYCounter1, bMaskDWord);
FalseAlmCnt->Cnt_Parity_Fail = ((ret_value&0xffff0000)>>16);
@@ -183,7 +194,13 @@ dm_FalseAlarmCounterStatistics(
FalseAlmCnt->Cnt_Crc8_fail +
FalseAlmCnt->Cnt_Mcs_fail +
FalseAlmCnt->Cnt_Cck_fail);
+
Adapter->recvpriv.FalseAlmCnt_all = FalseAlmCnt->Cnt_all;
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pbuddy_adapter)
+ pbuddy_adapter->recvpriv.FalseAlmCnt_all = FalseAlmCnt->Cnt_all;
+#endif //CONFIG_CONCURRENT_MODE
+
//reset false alarm counter registers
PHY_SetBBReg(Adapter, rOFDM1_LSTF, 0x08000000, 1);
PHY_SetBBReg(Adapter, rOFDM1_LSTF, 0x08000000, 0);
@@ -210,6 +227,21 @@ DM_Write_DIG(
struct dm_priv *pdmpriv = &pHalData->dmpriv;
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
+#ifdef CONFIG_CONCURRENT_MODE
+ if(rtw_buddy_adapter_up(pAdapter))
+ {
+ PADAPTER pbuddy_adapter = pAdapter->pbuddy_adapter;
+ PHAL_DATA_TYPE pbuddy_HalData = GET_HAL_DATA(pbuddy_adapter);
+ struct dm_priv *pbuddy_dmpriv = &pbuddy_HalData->dmpriv;
+ DIG_T *pbuddy_DigTable = &pbuddy_dmpriv->DM_DigTable;
+
+ //sync IGValue
+ pbuddy_DigTable->PreIGValue = pDigTable->PreIGValue;
+ pbuddy_DigTable->CurIGValue = pDigTable->CurIGValue;
+ }
+#endif //CONFIG_CONCURRENT_MODE
+
+
//RT_TRACE( COMP_DIG, DBG_LOUD, ("CurIGValue = 0x%lx, PreIGValue = 0x%lx, BackoffVal = %d\n",
// DM_DigTable.CurIGValue, DM_DigTable.PreIGValue, DM_DigTable.BackoffVal));
@@ -220,14 +252,25 @@ DM_Write_DIG(
return;
}
- if(pDigTable->PreIGValue != pDigTable->CurIGValue)
+ if( (pDigTable->PreIGValue != pDigTable->CurIGValue) || ( pAdapter->bForceWriteInitGain ) )
{
// Set initial gain.
//PHY_SetBBReg(pAdapter, rOFDM0_XAAGCCore1, bMaskByte0, pDigTable->CurIGValue);
//PHY_SetBBReg(pAdapter, rOFDM0_XBAGCCore1, bMaskByte0, pDigTable->CurIGValue);
//printk("%s DIG(0x%02x)\n",__FUNCTION__,pDigTable->CurIGValue);
- PHY_SetBBReg(pAdapter, rOFDM0_XAAGCCore1, 0x7f, pDigTable->CurIGValue);
- PHY_SetBBReg(pAdapter, rOFDM0_XBAGCCore1, 0x7f, pDigTable->CurIGValue);
+
+#if defined CONFIG_WIDI_DIG_3E && defined CONFIG_INTEL_WIDI
+ if( pAdapter->mlmepriv.widi_enable == _TRUE )
+ {
+ PHY_SetBBReg(pAdapter, rOFDM0_XAAGCCore1, 0x7f, 0x3e);
+ PHY_SetBBReg(pAdapter, rOFDM0_XBAGCCore1, 0x7f, 0x3e);
+ }
+ else
+#endif //defined CONFIG_WIDI_DIG_3E && defined CONFIG_INTEL_WIDI
+ {
+ PHY_SetBBReg(pAdapter, rOFDM0_XAAGCCore1, 0x7f, pDigTable->CurIGValue);
+ PHY_SetBBReg(pAdapter, rOFDM0_XBAGCCore1, 0x7f, pDigTable->CurIGValue);
+ }
pDigTable->PreIGValue = pDigTable->CurIGValue;
}
}
@@ -256,7 +299,7 @@ dm_CtrlInitGainByFA(
if(value_IGI > DM_DIG_FA_UPPER)
value_IGI = DM_DIG_FA_UPPER;
- if(value_IGI < DM_DIG_FA_LOWER)
+ if(value_IGI < DM_DIG_FA_LOWER)
value_IGI = DM_DIG_FA_LOWER;
if(FalseAlmCnt->Cnt_all > 10000)
@@ -276,7 +319,10 @@ VOID dm_CtrlInitGainByRssi( IN PADAPTER pAdapter)
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
- PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pdmpriv->FalseAlmCnt);
+ PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pdmpriv->FalseAlmCnt);
+#ifdef CONFIG_DM_ADAPTIVITY
+ u8 Adap_IGI_Upper = pdmpriv->IGI_target + 30 + (u8) pdmpriv->TH_L2H_ini -(u8) pdmpriv->TH_EDCCA_HL_diff;
+#endif
//modify DIG upper bound
if((pDigTable->Rssi_val_min + 20) > DM_DIG_MAX )
@@ -393,6 +439,22 @@ VOID dm_CtrlInitGainByRssi( IN PADAPTER pAdapter)
if(pDigTable->CurIGValue < pDigTable->rx_gain_range_min)
pDigTable->CurIGValue = pDigTable->rx_gain_range_min;
+#ifdef CONFIG_DM_ADAPTIVITY
+ if(pdmpriv->DMFlag & DYNAMIC_FUNC_ADAPTIVITY)
+ {
+ if(pDigTable->CurIGValue > Adap_IGI_Upper)
+ pDigTable->CurIGValue = Adap_IGI_Upper;
+
+ if(pdmpriv->IGI_LowerBound != 0)
+ {
+ if(pDigTable->CurIGValue < pdmpriv->IGI_LowerBound)
+ pDigTable->CurIGValue = pdmpriv->IGI_LowerBound;
+ }
+ LOG_LEVEL(_drv_info_, FUNC_ADPT_FMT": pdmpriv->IGI_LowerBound = %d\n",
+ FUNC_ADPT_ARG(pAdapter), pdmpriv->IGI_LowerBound);
+ }
+#endif /* CONFIG_DM_ADAPTIVITY */
+
//printk("%s => rx_gain_range_max(0x%02x) rx_gain_range_min(0x%02x)\n",__FUNCTION__,
// pDigTable->rx_gain_range_max,pDigTable->rx_gain_range_min);
//printk("%s CurIGValue(0x%02x) <====\n",__FUNCTION__,pDigTable->CurIGValue );
@@ -408,6 +470,10 @@ static VOID dm_CtrlInitGainByRssi(IN PADAPTER pAdapter)
struct dm_priv *pdmpriv = &pHalData->dmpriv;
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pdmpriv->FalseAlmCnt);
+ u8 RSSI_tmp = dm_initial_gain_MinPWDB(pAdapter);
+#ifdef CONFIG_DM_ADAPTIVITY
+ u8 Adap_IGI_Upper = pdmpriv->IGI_target + 30 + (u8) pdmpriv->TH_L2H_ini -(u8) pdmpriv->TH_EDCCA_HL_diff;
+#endif
//modify DIG upper bound
if((pDigTable->Rssi_val_min + 20) > DM_DIG_MAX )
@@ -415,7 +481,6 @@ static VOID dm_CtrlInitGainByRssi(IN PADAPTER pAdapter)
else
pDigTable->rx_gain_range_max = pDigTable->Rssi_val_min + 20;
//printk("%s Rssi_val_min(0x%02x),rx_gain_range_max(0x%02x)\n",__FUNCTION__,pDigTable->Rssi_val_min,pDigTable->rx_gain_range_max);
-
//modify DIG lower bound, deal with abnorally large false alarm
if(FalseAlmCnt->Cnt_all > 10000)
{
@@ -515,6 +580,14 @@ static VOID dm_CtrlInitGainByRssi(IN PADAPTER pAdapter)
}
#endif
+ if(RSSI_tmp <= DM_DIG_MIN)
+ pDigTable->rx_gain_range_min = DM_DIG_MIN;
+ else if(RSSI_tmp >= DM_DIG_MAX)
+ pDigTable->rx_gain_range_min = DM_DIG_MAX;
+ else
+ pDigTable->rx_gain_range_min = RSSI_tmp;
+
+
//Check initial gain by upper/lower bound
if(pDigTable->CurIGValue >pDigTable->rx_gain_range_max)
pDigTable->CurIGValue = pDigTable->rx_gain_range_max;
@@ -522,6 +595,22 @@ static VOID dm_CtrlInitGainByRssi(IN PADAPTER pAdapter)
if(pDigTable->CurIGValue < pDigTable->rx_gain_range_min)
pDigTable->CurIGValue = pDigTable->rx_gain_range_min;
+#ifdef CONFIG_DM_ADAPTIVITY
+ if(pdmpriv->DMFlag & DYNAMIC_FUNC_ADAPTIVITY)
+ {
+ if(pDigTable->CurIGValue > Adap_IGI_Upper)
+ pDigTable->CurIGValue = Adap_IGI_Upper;
+
+ if(pdmpriv->IGI_LowerBound != 0)
+ {
+ if(pDigTable->CurIGValue < pdmpriv->IGI_LowerBound)
+ pDigTable->CurIGValue = pdmpriv->IGI_LowerBound;
+ }
+ LOG_LEVEL(_drv_info_, FUNC_ADPT_FMT": pdmpriv->IGI_LowerBound = %d\n",
+ FUNC_ADPT_ARG(pAdapter), pdmpriv->IGI_LowerBound);
+ }
+#endif /* CONFIG_DM_ADAPTIVITY */
+
//printk("%s => rx_gain_range_max(0x%02x) rx_gain_range_min(0x%02x)\n",__FUNCTION__,
// pDigTable->rx_gain_range_max,pDigTable->rx_gain_range_min);
//printk("%s CurIGValue(0x%02x) <====\n",__FUNCTION__,pDigTable->CurIGValue );
@@ -541,6 +630,20 @@ dm_initial_gain_Multi_STA(
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
int rssi_strength = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
BOOLEAN bMulti_STA = _FALSE;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ //AP Mode
+ if(check_buddy_fwstate(pAdapter, WIFI_AP_STATE) == _TRUE && (rssi_strength !=0))
+ {
+ bMulti_STA = _TRUE;
+ }
+ else if(pDigTable->CurMultiSTAConnectState == DIG_MultiSTA_CONNECT && rssi_strength==0) //STA+STA MODE
+ {
+ bMulti_STA = _TRUE;
+ rssi_strength = pdmpriv->UndecoratedSmoothedPWDB;
+ }
+#endif //CONFIG_CONCURRENT_MODE
+
//ADHOC and AP Mode
if(check_fwstate(pmlmepriv, WIFI_AP_STATE|WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == _TRUE)
@@ -607,12 +710,14 @@ dm_initial_gain_STA_beforelinked(
//CurrentIGI = pDM_DigTable->rx_gain_range_min;//pDM_DigTable->CurIGValue = pDM_DigTable->rx_gain_range_min
//ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG(): DIG BeforeLink\n"));
//2012.03.30 LukeLee: enable DIG before link but with very high thresholds
- if(pFalseAlmCnt->Cnt_all > 10000)
- pDigTable->CurIGValue = pDigTable->CurIGValue + 2;//pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+2;
- else if (pFalseAlmCnt->Cnt_all > 8000)
- pDigTable->CurIGValue = pDigTable->CurIGValue + 1;//pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+1;
+ // Updated by Albert 2012/09/27
+ // Copy the same rule from 8192du code.
+ if( pFalseAlmCnt->Cnt_all > 2000 )
+ pDigTable->CurIGValue += 2;
+ else if ( ( pFalseAlmCnt->Cnt_all > 1000 ) && ( pFalseAlmCnt->Cnt_all <= 1000 ) )
+ pDigTable->CurIGValue += 1;
else if(pFalseAlmCnt->Cnt_all < 500)
- pDigTable->CurIGValue = pDigTable->CurIGValue - 1;//pDM_DigTable->CurIGValue =pDM_DigTable->PreIGValue-1;
+ pDigTable->CurIGValue -= 1;
//Check initial gain by upper/lower bound
if(pDigTable->CurIGValue >pDigTable->rx_gain_range_max)
@@ -647,20 +752,21 @@ dm_initial_gain_STA(
{
pDigTable->Rssi_val_min = dm_initial_gain_MinPWDB(pAdapter);
dm_CtrlInitGainByRssi(pAdapter);
- }
-#ifdef CONFIG_IOCTL_CFG80211
- else if((wdev_to_priv(pAdapter->rtw_wdev))->p2p_enabled == _TRUE)
+ }
+#if 0
+ else if((wdev_to_priv(pAdapter->rtw_wdev))->p2p_enabled == _TRUE
+ && pAdapter->wdinfo.driver_interface == DRIVER_CFG80211)
{
- pDigTable->CurIGValue = 0x30;
+ //pDigTable->CurIGValue = 0x30;
DM_Write_DIG(pAdapter);
}
-#endif
+#endif
else{ // pDigTable->CurSTAConnectState == DIG_STA_DISCONNECT
#ifdef CONFIG_BEFORE_LINKED_DIG
//printk("%s==> ##1 CurIGI(0x%02x),PreIGValue(0x%02x) \n",__FUNCTION__,pDigTable->CurIGValue,pDigTable->PreIGValue );
dm_initial_gain_STA_beforelinked(pAdapter);
DM_Write_DIG(pAdapter);
- #endif
+ #endif //CONFIG_BEFORE_LINKED_DIG
}
}
else
@@ -671,11 +777,11 @@ dm_initial_gain_STA(
pDigTable->BackoffVal = DM_DIG_BACKOFF_DEFAULT;
pDigTable->CurIGValue = 0x20;
pDigTable->PreIGValue = 0;
-
#ifdef CONFIG_BEFORE_LINKED_DIG
//printk("%s==> ##2 CurIGI(0x%02x),PreIGValue(0x%02x) \n",__FUNCTION__,pDigTable->CurIGValue,pDigTable->PreIGValue );
dm_initial_gain_STA_beforelinked(pAdapter);
- #endif
+ #endif //CONFIG_BEFORE_LINKED_DIG
+
DM_Write_DIG(pAdapter);
}
@@ -749,7 +855,15 @@ dm_CtrlInitGainByTwoPort(
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE)
- return;
+ {
+#ifdef CONFIG_IOCTL_CFG80211
+ if((wdev_to_priv(pAdapter->rtw_wdev))->p2p_enabled == _TRUE)
+ {
+ }
+ else
+#endif
+ return;
+ }
// Decide the current status and if modify initial gain or not
if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == _TRUE)
@@ -779,9 +893,31 @@ dm_CtrlInitGainByTwoPort(
pDigTable->CurMultiSTAConnectState = DIG_MultiSTA_CONNECT;
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(pAdapter, WIFI_AP_STATE) == _TRUE)
+ {
+ PADAPTER pbuddy_adapter = pAdapter->pbuddy_adapter;
+
+ if(pbuddy_adapter->stapriv.asoc_sta_count > 2)
+ {
+ pDigTable->CurSTAConnectState = DIG_STA_CONNECT;
+ pDigTable->CurMultiSTAConnectState = DIG_MultiSTA_CONNECT;
+ }
+ }
+ else if(check_buddy_fwstate(pAdapter, WIFI_STATION_STATE) == _TRUE &&
+ check_buddy_fwstate(pAdapter, _FW_LINKED) == _TRUE)
+ {
+ pDigTable->CurSTAConnectState = DIG_STA_CONNECT;
+
+ }
+#endif //CONFIG_CONCURRENT_MODE
+
dm_initial_gain_STA(pAdapter);
dm_initial_gain_Multi_STA(pAdapter);
+ //Baron temp DIG solution for DMP
+ //dm_CtrlInitGainByFA(pAdapter);
+
dm_CCK_PacketDetectionThresh(pAdapter);
pDigTable->PreSTAConnectState = pDigTable->CurSTAConnectState;
@@ -795,7 +931,10 @@ static void dm_DIG(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
-
+
+ //Read 0x0c50; Initial gain
+ pDigTable->PreIGValue = (u8)PHY_QueryBBReg(pAdapter, rOFDM0_XAAGCCore1, bMaskByte0);
+
//RTPRINT(FDM, DM_Monitor, ("dm_DIG() ==>\n"));
if(pdmpriv->bDMInitialGainEnable == _FALSE)
@@ -854,7 +993,11 @@ static void dm_InitDynamicTxPower(IN PADAPTER Adapter)
struct dm_priv *pdmpriv = &pHalData->dmpriv;
#ifdef CONFIG_USB_HCI
+#ifdef CONFIG_INTEL_PROXIM
+ if((pHalData->BoardType == BOARD_USB_High_PA)||(Adapter->proximity.proxim_support==_TRUE))
+#else
if(pHalData->BoardType == BOARD_USB_High_PA)
+#endif
{
dm_SavePowerIndex(Adapter);
pdmpriv->bDynamicTxPowerEnable = _TRUE;
@@ -900,7 +1043,47 @@ static void dm_DynamicTxPower(IN PADAPTER Adapter)
pdmpriv->LastDTPLvl=TxHighPwrLevel_Normal;
return;
}
+#ifdef CONFIG_INTEL_PROXIM
+ if(Adapter->proximity.proxim_on== _TRUE){
+ struct proximity_priv *prox_priv=Adapter->proximity.proximity_priv;
+ // Intel set fixed tx power
+ printk("\n %s Adapter->proximity.proxim_on=%d prox_priv->proxim_modeinfo->power_output=%d \n",__FUNCTION__,Adapter->proximity.proxim_on,prox_priv->proxim_modeinfo->power_output);
+ if(prox_priv!=NULL){
+ if(prox_priv->proxim_modeinfo->power_output> 0)
+ {
+ switch(prox_priv->proxim_modeinfo->power_output){
+ case 1:
+ pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_100;
+ printk("TxHighPwrLevel_100\n");
+ break;
+ case 2:
+ pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_70;
+ printk("TxHighPwrLevel_70\n");
+ break;
+ case 3:
+ pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_50;
+ printk("TxHighPwrLevel_50\n");
+ break;
+ case 4:
+ pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_35;
+ printk("TxHighPwrLevel_35\n");
+ break;
+ case 5:
+ pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_15;
+ printk("TxHighPwrLevel_15\n");
+ break;
+ default:
+ pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_100;
+ printk("TxHighPwrLevel_100\n");
+ break;
+ }
+ }
+ }
+ }
+ else
+#endif
+{
if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) // Default port
{
//todo: AP Mode
@@ -938,7 +1121,7 @@ static void dm_DynamicTxPower(IN PADAPTER Adapter)
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
//RT_TRACE(COMP_HIPWR, DBG_LOUD, ("TxHighPwrLevel_Normal\n"));
}
-
+}
if( (pdmpriv->DynamicTxHighPowerLvl != pdmpriv->LastDTPLvl) )
{
PHY_SetTxPowerLevel8192C(Adapter, pHalData->CurrentChannel);
@@ -1230,8 +1413,6 @@ dm_CheckEdcaTurbo(
edca_param = 0x6ea42b;
}
#endif
- if(Adapter->registrypriv.intel_class_mode==1)
- edca_param=0xa44f;
rtw_write32(Adapter, REG_EDCA_BE_PARAM, edca_param);
pdmpriv->prv_traffic_idx = trafficIndex;
@@ -1260,30 +1441,28 @@ dm_CheckEdcaTurbo_EXIT:
}
-#define DPK_DELTA_MAPPING_NUM 13
-#define index_mapping_HP_NUM 15
-//091212 chiyokolin
+#define DPK_DELTA_MAPPING_NUM 13
+#define index_mapping_HP_NUM 15
+
static VOID
dm_TXPowerTrackingCallback_ThermalMeter_92C(
IN PADAPTER Adapter)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
- u8 ThermalValue = 0, delta, delta_LCK, delta_IQK, delta_HP, TimeOut = 100, ThermalValue_HP_count = 0;
- u32 ThermalValue_HP = 0;
- s8 delta_DPK;
+ u8 ThermalValue = 0, delta, delta_LCK, delta_IQK, delta_HP, TimeOut = 100;
int ele_A, ele_D, TempCCk, X, value32;
int Y, ele_C;
- s8 OFDM_index[2], CCK_index = 0, OFDM_index_old[2], CCK_index_old = 0, delta_APK;
- int i = 0, CCKSwingNeedUpdate = 0;
+ s8 OFDM_index[2], CCK_index = 0, OFDM_index_old[2], CCK_index_old = 0;
+ int i = 0;
BOOLEAN is2T = IS_92C_SERIAL(pHalData->VersionID);
-#if 0
-//#ifdef CONFIG_MP_INCLUDED
- PMPT_CONTEXT pMptCtx = &(Adapter->MptCtx);
- pu1Byte TxPwrLevel = pMptCtx->TxPwrLevel;
-#endif
+#if MP_DRIVER == 1
+ PMPT_CONTEXT pMptCtx = &(Adapter->mppriv.MptCtx);
+ u8 *TxPwrLevel = pMptCtx->TxPwrLevel;
+#endif
u8 OFDM_min_index = 6, rf; //OFDM BB Swing should be less than +3.0dB, which is required by Arthur
+#if 0
u32 DPK_delta_mapping[2][DPK_DELTA_MAPPING_NUM] = {
{0x1c, 0x1c, 0x1d, 0x1d, 0x1e,
0x1f, 0x00, 0x00, 0x01, 0x01,
@@ -1291,14 +1470,18 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
{0x1c, 0x1d, 0x1e, 0x1e, 0x1e,
0x1f, 0x00, 0x00, 0x01, 0x02,
0x02, 0x03, 0x03}};
-
- s8 index_mapping_HP[index_mapping_HP_NUM] = {
+#endif
+#ifdef CONFIG_USB_HCI
+ u8 ThermalValue_HP_count = 0;
+ u32 ThermalValue_HP = 0;
+ s32 index_mapping_HP[index_mapping_HP_NUM] = {
0, 1, 3, 4, 6,
7, 9, 10, 12, 13,
15, 16, 18, 19, 21
};
s8 index_HP;
+#endif
pdmpriv->TXPowerTrackingCallbackCnt++; //cosa add for debug
pdmpriv->bTXPowerTrackingInit = _TRUE;
@@ -1310,12 +1493,11 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
//DBG_8192C("===>dm_TXPowerTrackingCallback_ThermalMeter_92C\n");
- ThermalValue = (u8)PHY_QueryRFReg(Adapter, RF90_PATH_A, RF_T_METER, 0x1f); // 0x24: RF Reg[4:0]
+ ThermalValue = (u8)PHY_QueryRFReg(Adapter, RF_PATH_A, RF_T_METER, 0x1f); // 0x24: RF Reg[4:0]
//DBG_8192C("\n\nReadback Thermal Meter = 0x%x pre thermal meter 0x%x EEPROMthermalmeter 0x%x\n",ThermalValue,pdmpriv->ThermalValue, pHalData->EEPROMThermalMeter);
rtl8192c_PHY_APCalibrate(Adapter, (ThermalValue - pHalData->EEPROMThermalMeter));
- rtl8192c_PHY_DigitalPredistortion(Adapter);
if(is2T)
rf = 2;
@@ -1328,7 +1510,7 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
{
//Query OFDM path A default setting
ele_D = PHY_QueryBBReg(Adapter, rOFDM0_XATxIQImbalance, bMaskDWord)&bMaskOFDM_D;
- for(i=0; i<OFDM_TABLE_SIZE; i++) //find the index
+ for(i=0; i<OFDM_TABLE_SIZE_92C; i++) //find the index
{
if(ele_D == (OFDMSwingTable[i]&bMaskOFDM_D))
{
@@ -1342,7 +1524,7 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
if(is2T)
{
ele_D = PHY_QueryBBReg(Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord)&bMaskOFDM_D;
- for(i=0; i<OFDM_TABLE_SIZE; i++) //find the index
+ for(i=0; i<OFDM_TABLE_SIZE_92C; i++) //find the index
{
if(ele_D == (OFDMSwingTable[i]&bMaskOFDM_D))
{
@@ -1434,7 +1616,6 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
}
delta_LCK = (ThermalValue > pdmpriv->ThermalValue_LCK)?(ThermalValue - pdmpriv->ThermalValue_LCK):(pdmpriv->ThermalValue_LCK - ThermalValue);
delta_IQK = (ThermalValue > pdmpriv->ThermalValue_IQK)?(ThermalValue - pdmpriv->ThermalValue_IQK):(pdmpriv->ThermalValue_IQK - ThermalValue);
- delta_DPK = pdmpriv->ThermalValue_DPK - ThermalValue;
//DBG_8192C("Readback Thermal Meter = 0x%lx pre thermal meter 0x%lx EEPROMthermalmeter 0x%lx delta 0x%lx delta_LCK 0x%lx delta_IQK 0x%lx\n", ThermalValue, pHalData->ThermalValue, pHalData->EEPROMThermalMeter, delta, delta_LCK, delta_IQK);
@@ -1480,29 +1661,26 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
{
for(i = 0; i < rf; i++)
pdmpriv->OFDM_index[i] -= delta;
-
pdmpriv->CCK_index -= delta;
}
else
{
for(i = 0; i < rf; i++)
pdmpriv->OFDM_index[i] += delta;
-
pdmpriv->CCK_index += delta;
}
}
- /*
- if(is2T)
+ /*if(is2T)
{
DBG_8192C("temp OFDM_A_index=0x%x, OFDM_B_index=0x%x, CCK_index=0x%x\n",
- pdmpriv->OFDM_index[0], pdmpriv->OFDM_index[1], pdmpriv->CCK_index);
+ pdmpriv->OFDM_index[0], pdmpriv->OFDM_index[1], pdmpriv->CCK_index);
}
else
{
- //DBG_8192C("temp OFDM_A_index=0x%x, CCK_index=0x%x\n",pdmpriv->OFDM_index[0], pdmpriv->CCK_index);
- }
- */
+ DBG_8192C("temp OFDM_A_index=0x%x, CCK_index=0x%x\n",
+ pdmpriv->OFDM_index[0], pdmpriv->CCK_index);
+ }*/
//no adjust
#ifdef CONFIG_USB_HCI
@@ -1521,8 +1699,8 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
OFDM_index[i] = pdmpriv->OFDM_index[i];
CCK_index = pdmpriv->CCK_index;
}
-#if 0
-//#ifdef CONFIG_MP_INCLUDED
+
+#if MP_DRIVER == 1
for(i = 0; i < rf; i++)
{
if(TxPwrLevel[i] >=0 && TxPwrLevel[i] <=26)
@@ -1584,34 +1762,33 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
for(i = 0; i < rf; i++)
{
- if(OFDM_index[i] > OFDM_TABLE_SIZE-1)
- OFDM_index[i] = OFDM_TABLE_SIZE-1;
+ if(OFDM_index[i] > (OFDM_TABLE_SIZE_92C-1))
+ OFDM_index[i] = (OFDM_TABLE_SIZE_92C-1);
else if (OFDM_index[i] < OFDM_min_index)
OFDM_index[i] = OFDM_min_index;
}
- if(CCK_index > CCK_TABLE_SIZE-1)
- CCK_index = CCK_TABLE_SIZE-1;
+ if(CCK_index > (CCK_TABLE_SIZE-1))
+ CCK_index = (CCK_TABLE_SIZE-1);
else if (CCK_index < 0)
CCK_index = 0;
- /*
- if(is2T)
+ /*if(is2T)
{
- DBG_8192C("new OFDM_A_index=0x%x, OFDM_B_index=0x%x, CCK_index=0x%x\n", OFDM_index[0], OFDM_index[1], CCK_index);
+ DBG_8192C("new OFDM_A_index=0x%x, OFDM_B_index=0x%x, CCK_index=0x%x\n",
+ OFDM_index[0], OFDM_index[1], CCK_index);
}
else
{
- //DBG_8192C("new OFDM_A_index=0x%x, CCK_index=0x%x\n", OFDM_index[0], CCK_index);
- }
- */
-
+ DBG_8192C("new OFDM_A_index=0x%x, CCK_index=0x%x\n",
+ OFDM_index[0], CCK_index);
+ }*/
}
if(pdmpriv->TxPowerTrackControl && (delta != 0 || delta_HP != 0))
{
//Adujst OFDM Ant_A according to IQK result
- ele_D = (OFDMSwingTable[(u8)OFDM_index[0]] & 0xFFC00000)>>22;
+ ele_D = (OFDMSwingTable[OFDM_index[0]] & 0xFFC00000)>>22;
X = pdmpriv->RegE94;
Y = pdmpriv->RegE9C;
@@ -1642,7 +1819,7 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
}
else
{
- PHY_SetBBReg(Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, OFDMSwingTable[(u8)OFDM_index[0]]);
+ PHY_SetBBReg(Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, OFDMSwingTable[OFDM_index[0]]);
PHY_SetBBReg(Adapter, rOFDM0_XCTxAFE, bMaskH4Bits, 0x00);
PHY_SetBBReg(Adapter, rOFDM0_ECCAThreshold, BIT31|BIT29, 0x00);
}
@@ -1651,24 +1828,24 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
//Adjust CCK according to IQK result
if(!pdmpriv->bCCKinCH14){
- rtw_write8(Adapter, 0xa22, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][0]);
- rtw_write8(Adapter, 0xa23, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][1]);
- rtw_write8(Adapter, 0xa24, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][2]);
- rtw_write8(Adapter, 0xa25, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][3]);
- rtw_write8(Adapter, 0xa26, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][4]);
- rtw_write8(Adapter, 0xa27, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][5]);
- rtw_write8(Adapter, 0xa28, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][6]);
- rtw_write8(Adapter, 0xa29, CCKSwingTable_Ch1_Ch13[(u8)CCK_index][7]);
+ rtw_write8(Adapter, 0xa22, CCKSwingTable_Ch1_Ch13[CCK_index][0]);
+ rtw_write8(Adapter, 0xa23, CCKSwingTable_Ch1_Ch13[CCK_index][1]);
+ rtw_write8(Adapter, 0xa24, CCKSwingTable_Ch1_Ch13[CCK_index][2]);
+ rtw_write8(Adapter, 0xa25, CCKSwingTable_Ch1_Ch13[CCK_index][3]);
+ rtw_write8(Adapter, 0xa26, CCKSwingTable_Ch1_Ch13[CCK_index][4]);
+ rtw_write8(Adapter, 0xa27, CCKSwingTable_Ch1_Ch13[CCK_index][5]);
+ rtw_write8(Adapter, 0xa28, CCKSwingTable_Ch1_Ch13[CCK_index][6]);
+ rtw_write8(Adapter, 0xa29, CCKSwingTable_Ch1_Ch13[CCK_index][7]);
}
else{
- rtw_write8(Adapter, 0xa22, CCKSwingTable_Ch14[(u8)CCK_index][0]);
- rtw_write8(Adapter, 0xa23, CCKSwingTable_Ch14[(u8)CCK_index][1]);
- rtw_write8(Adapter, 0xa24, CCKSwingTable_Ch14[(u8)CCK_index][2]);
- rtw_write8(Adapter, 0xa25, CCKSwingTable_Ch14[(u8)CCK_index][3]);
- rtw_write8(Adapter, 0xa26, CCKSwingTable_Ch14[(u8)CCK_index][4]);
- rtw_write8(Adapter, 0xa27, CCKSwingTable_Ch14[(u8)CCK_index][5]);
- rtw_write8(Adapter, 0xa28, CCKSwingTable_Ch14[(u8)CCK_index][6]);
- rtw_write8(Adapter, 0xa29, CCKSwingTable_Ch14[(u8)CCK_index][7]);
+ rtw_write8(Adapter, 0xa22, CCKSwingTable_Ch14[CCK_index][0]);
+ rtw_write8(Adapter, 0xa23, CCKSwingTable_Ch14[CCK_index][1]);
+ rtw_write8(Adapter, 0xa24, CCKSwingTable_Ch14[CCK_index][2]);
+ rtw_write8(Adapter, 0xa25, CCKSwingTable_Ch14[CCK_index][3]);
+ rtw_write8(Adapter, 0xa26, CCKSwingTable_Ch14[CCK_index][4]);
+ rtw_write8(Adapter, 0xa27, CCKSwingTable_Ch14[CCK_index][5]);
+ rtw_write8(Adapter, 0xa28, CCKSwingTable_Ch14[CCK_index][6]);
+ rtw_write8(Adapter, 0xa29, CCKSwingTable_Ch14[CCK_index][7]);
}
if(is2T)
@@ -1704,7 +1881,7 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
}
else{
- PHY_SetBBReg(Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, OFDMSwingTable[(u8)OFDM_index[1]]);
+ PHY_SetBBReg(Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, OFDMSwingTable[OFDM_index[1]]);
PHY_SetBBReg(Adapter, rOFDM0_XDTxAFE, bMaskH4Bits, 0x00);
PHY_SetBBReg(Adapter, rOFDM0_ECCAThreshold, BIT27|BIT25, 0x00);
}
@@ -1716,7 +1893,7 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
DBG_8192C("TxPwrTracking 0xc80 = 0x%x, 0xc94 = 0x%x RF 0x24 = 0x%x\n", \
PHY_QueryBBReg(Adapter, 0xc80, bMaskDWord),\
PHY_QueryBBReg(Adapter, 0xc94, bMaskDWord), \
- PHY_QueryRFReg(Adapter, RF90_PATH_A, 0x24, bMaskDWord));
+ PHY_QueryRFReg(Adapter, RF_PATH_A, 0x24, bMaskDWord));
*/
}
@@ -1730,20 +1907,6 @@ dm_TXPowerTrackingCallback_ThermalMeter_92C(
rtl8192c_PHY_IQCalibrate(Adapter,_FALSE);
}
- if(delta_DPK != 0)
- {
- delta_DPK = ThermalValue - pHalData->EEPROMThermalMeter;
-
- //if(pdmpriv->bDPPathAOK || pdmpriv->bDPPathBOK)
- // DBG_8192C("TxPwrTracking delata_DPK = %d\n", delta_DPK);
-
- if(pdmpriv->bDPPathAOK)
- PHY_SetBBReg(Adapter, 0xb68, 0x7c00, DPK_delta_mapping[0][((delta_DPK+13)/2)]);
- if(pdmpriv->bDPPathBOK)
- PHY_SetBBReg(Adapter, 0xb6c, 0x7c00, DPK_delta_mapping[1][((delta_DPK+13)/2)]);
- pdmpriv->ThermalValue_DPK = ThermalValue;
- }
-
//update thermal meter value
if(pdmpriv->TxPowerTrackControl)
pdmpriv->ThermalValue = ThermalValue;
@@ -1819,7 +1982,7 @@ dm_CheckTXPowerTracking_ThermalMeter(
if(!pdmpriv->TM_Trigger) //at least delay 1 sec
{
//pHalData->TxPowerCheckCnt++; //cosa add for debug
- PHY_SetRFReg(Adapter, RF90_PATH_A, RF_T_METER, bRFRegOffsetMask, 0x60);
+ PHY_SetRFReg(Adapter, RF_PATH_A, RF_T_METER, bRFRegOffsetMask, 0x60);
//DBG_8192C("Trigger 92C Thermal Meter!!\n");
pdmpriv->TM_Trigger = 1;
@@ -2998,9 +3161,9 @@ dm_CheckRfCtrlGPIO(
}
}
else if (IS_HARDWARE_TYPE_8192CU(Adapter) ||
- IS_HARDWARE_TYPE_8723U(Adapter)||
+ IS_HARDWARE_TYPE_8723AU(Adapter)||
IS_HARDWARE_TYPE_8192DU(Adapter) ||
- IS_HARDWARE_TYPE_8723S(Adapter))
+ IS_HARDWARE_TYPE_8723AS(Adapter))
{ // Not support Selective suspend
RT_TRACE(COMP_RF, DBG_LOUD, ("USB SS Disable\n"));
if (SUPPORT_HW_RADIO_DETECT(Adapter))
@@ -3260,14 +3423,14 @@ dm_CheckStatistics(
return;
//2008.12.10 tynli Add for getting Current_Tx_Rate_Reg flexibly.
- Adapter->HalFunc.GetHwRegHandler( Adapter, HW_VAR_INIT_TX_RATE, (pu1Byte)(&Adapter->TxStats.CurrentInitTxRate) );
+ rtw_hal_get_hwreg( Adapter, HW_VAR_INIT_TX_RATE, (pu1Byte)(&Adapter->TxStats.CurrentInitTxRate) );
// Calculate current Tx Rate(Successful transmited!!)
// Calculate current Rx Rate(Successful received!!)
//for tx tx retry count
- Adapter->HalFunc.GetHwRegHandler( Adapter, HW_VAR_RETRY_COUNT, (pu1Byte)(&Adapter->TxStats.NumTxRetryCount) );
+ rtw_hal_get_hwreg( Adapter, HW_VAR_RETRY_COUNT, (pu1Byte)(&Adapter->TxStats.NumTxRetryCount) );
#endif
}
@@ -3275,10 +3438,14 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
{
u8 tmp1byte;
u8 bPbcPressed = _FALSE;
+ int i=0;
if(!padapter->registrypriv.hw_wps_pbc)
return;
+ do
+ {
+ i++;
#ifdef CONFIG_USB_HCI
tmp1byte = rtw_read8(padapter, GPIO_IO_SEL);
tmp1byte |= (HAL_8192C_HW_GPIO_WPS_BIT);
@@ -3294,30 +3461,44 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
tmp1byte =rtw_read8(padapter, GPIO_IN);
if (tmp1byte == 0xff)
- return ;
+ {
+ bPbcPressed = _FALSE;
+ break ;
+ }
if (tmp1byte&HAL_8192C_HW_GPIO_WPS_BIT)
{
bPbcPressed = _TRUE;
+
+ if(i<=3)
+ rtw_msleep_os(50);
}
#else
tmp1byte = rtw_read8(padapter, GPIO_IN);
//RT_TRACE(COMP_IO, DBG_TRACE, ("dm_CheckPbcGPIO - %x\n", tmp1byte));
if (tmp1byte == 0xff || padapter->init_adpt_in_progress)
- return ;
+ {
+ bPbcPressed = _FALSE;
+ break ;
+ }
if((tmp1byte&HAL_8192C_HW_GPIO_WPS_BIT)==0)
{
bPbcPressed = _TRUE;
+
+ if(i<=3)
+ rtw_msleep_os(50);
}
-#endif
+#endif
+ }while(i<=3 && bPbcPressed == _TRUE);
+
if( _TRUE == bPbcPressed)
{
// Here we only set bPbcPressed to true
// After trigger PBC, the variable will be set to false
- DBG_8192C("CheckPbcGPIO - PBC is pressed\n");
+ DBG_8192C("CheckPbcGPIO - PBC is pressed, try_cnt=%d\n", i-1);
#ifdef RTK_DMP_PLATFORM
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12))
@@ -3336,7 +3517,7 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
rtw_signal_process(padapter->pid[0], SIGUSR1);
#endif
#endif
- }
+ }
}
#ifdef CONFIG_PCI_HCI
@@ -3641,9 +3822,7 @@ rtl8192c_dm_RF_Saving(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
PS_T *pPSTable = &pdmpriv->DM_PSTable;
-
- if(pAdapter->registrypriv.intel_class_mode==1)
- return;
+
if(pdmpriv->initialize == 0){
pdmpriv->rf_saving_Reg874 = (PHY_QueryBBReg(pAdapter, rFPGA0_XCD_RFInterfaceSW, bMaskDWord)&0x1CC000)>>14;
pdmpriv->rf_saving_RegC70 = (PHY_QueryBBReg(pAdapter, rOFDM0_AGCParameter1, bMaskDWord)&BIT3)>>3;
@@ -4424,7 +4603,7 @@ void rtl8192c_init_dm_priv(IN PADAPTER Adapter)
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
- _rtw_memset(pdmpriv, 0, sizeof(struct dm_priv));
+ //_rtw_memset(pdmpriv, 0, sizeof(struct dm_priv));
#ifdef CONFIG_SW_ANTENNA_DIVERSITY
_init_timer(&(pdmpriv->SwAntennaSwitchTimer), Adapter->pnetdev , dm_SW_AntennaSwitchCallback, Adapter);
@@ -4600,52 +4779,85 @@ rtl8192c_InitHalDm(
{
pdmpriv->INIDATA_RATE[i] = rtw_read8(Adapter, REG_INIDATA_RATE_SEL+i) & 0x3f;
}
+
+#ifdef CONFIG_DM_ADAPTIVITY
+ pdmpriv->DMFlag |= DYNAMIC_FUNC_ADAPTIVITY;
+ dm_adaptivity_init(Adapter);
+#endif
+
}
-VOID
-rtl8192c_HalDmPollingC2HEvt(
- IN PADAPTER padapter
- )
+
+#ifdef CONFIG_CONCURRENT_MODE
+static void FindMinimumRSSI(PADAPTER Adapter)
{
- u8 trigger=0,evt_id=0,evt_len=0,idx=0,tmp8=0,evt_seq=0;
- u8 evt_buf[15];
-
- trigger=rtw_read8(padapter,REG_C2HEVT_CLEAR);
- while (trigger ==0xFF)
- {
- tmp8=rtw_read8(padapter,REG_C2HEVT_MSG_NORMAL);
- evt_id=tmp8&0xf;
- evt_len=(tmp8&0xf0)>>4;
- evt_seq=rtw_read8(padapter,REG_C2HEVT_MSG_NORMAL+1);
- DBG_8192C(" %s evt_id =0x%x evt_len=0x%x evt_seq=0x%x\n",__FUNCTION__,evt_id,evt_len,evt_seq);
- for(idx=0;idx<evt_len;idx++){
- evt_buf[idx]=rtw_read8(padapter,(REG_C2HEVT_MSG_NORMAL+2+idx));
- }
- switch(evt_id){
- case EVT_EXT_RA_RPT_EID:
- DBG_8192C(" %s EVT_EXT_RA_RPT_EID[0x%x] evt_len=0x%x\n",__FUNCTION__,evt_id,evt_len);
- {
- u8 mac_id=evt_buf[0],num_sta=evt_len-1;
- struct sta_priv *pstapriv=&padapter->stapriv;
- struct sta_info *psta=NULL;
- DBG_8192C(" %s mac_id=%d\n",__FUNCTION__,mac_id);
- for(idx=0;idx<num_sta;idx++){
- psta=pstapriv->sta_aid[mac_id-2+idx];
- if(psta !=NULL){
- psta->init_rate=evt_buf[idx];
- DBG_8192C(" %s mac_id=%d psta->init_rate=0x%x\n",__FUNCTION__,mac_id,psta->init_rate);
- }
- }
-
- }
- default:
- DBG_8192C(" %s evt_id =0x%x evt_len=0x%x\n",__FUNCTION__,evt_id,evt_len);
- }
- rtw_write8(padapter, REG_C2HEVT_CLEAR,0x0);
- rtw_mdelay_os(1);
- trigger=rtw_read8(padapter,REG_C2HEVT_CLEAR);
+ PHAL_DATA_TYPE pbuddy_HalData;
+ struct dm_priv *pbuddy_dmpriv;
+ PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
+ struct dm_priv *pdmpriv = &pHalData->dmpriv;
+ PADAPTER pbuddy_adapter = Adapter->pbuddy_adapter;
+ struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
+
+ if(!rtw_buddy_adapter_up(Adapter))
+ return;
+
+ pbuddy_HalData = GET_HAL_DATA(pbuddy_adapter);
+ pbuddy_dmpriv = &pbuddy_HalData->dmpriv;
+
+ //get min. [PWDB] when both interfaces are connected
+ if((check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE
+ && Adapter->stapriv.asoc_sta_count > 2
+ && check_buddy_fwstate(Adapter, _FW_LINKED)) ||
+ (check_buddy_fwstate(Adapter, WIFI_AP_STATE) == _TRUE
+ && pbuddy_adapter->stapriv.asoc_sta_count > 2
+ && check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) ||
+ (check_fwstate(pmlmepriv, WIFI_STATION_STATE)
+ && check_fwstate(pmlmepriv, _FW_LINKED)
+ && check_buddy_fwstate(Adapter,WIFI_STATION_STATE)
+ && check_buddy_fwstate(Adapter,_FW_LINKED)))
+ {
+ if(pdmpriv->UndecoratedSmoothedPWDB > pbuddy_dmpriv->UndecoratedSmoothedPWDB)
+ pdmpriv->UndecoratedSmoothedPWDB = pbuddy_dmpriv->UndecoratedSmoothedPWDB;
+ }//primary interface is not connected
+ else if((check_buddy_fwstate(Adapter, WIFI_AP_STATE) == _TRUE
+ && pbuddy_adapter->stapriv.asoc_sta_count > 2) ||
+ (check_buddy_fwstate(Adapter,WIFI_STATION_STATE)
+ && check_buddy_fwstate(Adapter,_FW_LINKED)))
+ {
+ pdmpriv->UndecoratedSmoothedPWDB = pbuddy_dmpriv->UndecoratedSmoothedPWDB;
}
- //DBG_8192C(" %s End\n",__FUNCTION__);
-}
+ //secondary is not connected
+ else if((check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE
+ && Adapter->stapriv.asoc_sta_count > 2) ||
+ (check_fwstate(pmlmepriv, WIFI_STATION_STATE)
+ && check_fwstate(pmlmepriv, _FW_LINKED)))
+ {
+ pbuddy_dmpriv->UndecoratedSmoothedPWDB = 0;
+ }
+ //both interfaces are not connected
+ else
+ {
+ pdmpriv->UndecoratedSmoothedPWDB = 0;
+ pbuddy_dmpriv->UndecoratedSmoothedPWDB = 0;
+ }
+
+ //primary interface is ap mode
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE && Adapter->stapriv.asoc_sta_count > 2)
+ {
+ pbuddy_dmpriv->EntryMinUndecoratedSmoothedPWDB = 0;
+ }//secondary interface is ap mode
+ else if(check_buddy_fwstate(Adapter, WIFI_AP_STATE) == _TRUE && pbuddy_adapter->stapriv.asoc_sta_count > 2)
+ {
+ pdmpriv->EntryMinUndecoratedSmoothedPWDB = pbuddy_dmpriv->EntryMinUndecoratedSmoothedPWDB;
+ }
+ else //both interfaces are not ap mode
+ {
+ pdmpriv->EntryMinUndecoratedSmoothedPWDB = pbuddy_dmpriv->EntryMinUndecoratedSmoothedPWDB = 0;
+ }
+
+}
+
+#endif //CONFIG_CONCURRENT_MODE
+
VOID
rtl8192c_HalDmWatchDog(
IN PADAPTER Adapter
@@ -4653,21 +4865,45 @@ rtl8192c_HalDmWatchDog(
{
BOOLEAN bFwCurrentInPSMode = _FALSE;
BOOLEAN bFwPSAwake = _TRUE;
+ u8 hw_init_completed = _FALSE;
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
+ struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
+#ifdef CONFIG_CONCURRENT_MODE
+ PADAPTER pbuddy_adapter = Adapter->pbuddy_adapter;
+#endif //CONFIG_CONCURRENT_MODE
+
+ #if defined(CONFIG_CONCURRENT_MODE)
+ if (Adapter->isprimary == _FALSE && pbuddy_adapter) {
+ hw_init_completed = pbuddy_adapter->hw_init_completed;
+ } else
+ #endif
+ {
+ hw_init_completed = Adapter->hw_init_completed;
+ }
+ if (hw_init_completed == _FALSE)
+ goto skip_dm;
#ifdef CONFIG_LPS
- bFwCurrentInPSMode = Adapter->pwrctrlpriv.bFwCurrentInPSMode;
- Adapter->HalFunc.GetHwRegHandler(Adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&bFwPSAwake));
+ #if defined(CONFIG_CONCURRENT_MODE)
+ if (Adapter->iface_type != IFACE_PORT0 && pbuddy_adapter) {
+ bFwCurrentInPSMode = pbuddy_adapter->pwrctrlpriv.bFwCurrentInPSMode;
+ rtw_hal_get_hwreg(pbuddy_adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&bFwPSAwake));
+ } else
+ #endif
+ {
+ bFwCurrentInPSMode = Adapter->pwrctrlpriv.bFwCurrentInPSMode;
+ rtw_hal_get_hwreg(Adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&bFwPSAwake));
+ }
#endif
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
// Fw is under p2p powersaving mode, driver should stop dynamic mechanism.
// modifed by thomas. 2011.06.11.
- if(Adapter->wdinfo.p2p_ps_enable)
+ if(Adapter->wdinfo.p2p_ps_mode)
bFwPSAwake = _FALSE;
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
// Stop dynamic mechanism when:
// 1. RF is OFF. (No need to do DM.)
@@ -4679,7 +4915,7 @@ rtl8192c_HalDmWatchDog(
// 4. RFChangeInProgress is TRUE. (Prevent from broken by IPS/HW/SW Rf off.)
// Noted by tynli. 2010.06.01.
//if(rfState == eRfOn)
- if( (Adapter->hw_init_completed == _TRUE)
+ if( (hw_init_completed == _TRUE)
&& ((!bFwCurrentInPSMode) && bFwPSAwake))
{
//
@@ -4692,14 +4928,21 @@ rtl8192c_HalDmWatchDog(
//
PWDB_Monitor(Adapter);
+ dm_RSSIMonitorCheck(Adapter);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->adapter_type > PRIMARY_ADAPTER)
+ goto _record_initrate;
+
+ FindMinimumRSSI(Adapter);
+#endif
+
//
// Dynamic Initial Gain mechanism.
//
-
- dm_RSSIMonitorCheck(Adapter);
-
dm_FalseAlarmCounterStatistics(Adapter);
dm_DIG(Adapter);
+ dm_adaptivity(Adapter);
//
//Dynamic BB Power Saving Mechanism
@@ -4714,7 +4957,12 @@ rtl8192c_HalDmWatchDog(
//
// Tx Power Tracking.
//
- rtl8192c_dm_CheckTXPowerTracking(Adapter);
+#if MP_DRIVER == 0
+#ifdef CONFIG_BUSY_TRAFFIC_SKIP_PWR_TRACK
+ if(pmlmepriv->LinkDetectInfo.bBusyTraffic == _FALSE)
+#endif //CONFIG_BUSY_TRAFFIC_SKIP_PWR_TRACK
+#endif
+ rtl8192c_dm_CheckTXPowerTracking(Adapter);
//
// Rate Adaptive by Rx Signal Strength mechanism.
@@ -4757,24 +5005,38 @@ rtl8192c_HalDmWatchDog(
// PlatformScheduleWorkItem(&(GET_HAL_DATA(Adapter)->HalResetWorkItem));
#endif
-#ifdef SUPPORT_64_STA
- rtl8192c_HalDmPollingC2HEvt(Adapter);
-#endif //SUPPORT_64_STA
+
+_record_initrate:
+
// Read REG_INIDATA_RATE_SEL value for TXDESC.
if(check_fwstate(&Adapter->mlmepriv, WIFI_STATION_STATE) == _TRUE)
{
pdmpriv->INIDATA_RATE[0] = rtw_read8(Adapter, REG_INIDATA_RATE_SEL) & 0x3f;
+
+#ifdef CONFIG_TDLS
+ if(Adapter->tdlsinfo.setup_state == TDLS_LINKED_STATE)
+ {
+ u8 i=1;
+ for(; i < (Adapter->tdlsinfo.macid_index) ; i++)
+ {
+ pdmpriv->INIDATA_RATE[i] = rtw_read8(Adapter, (REG_INIDATA_RATE_SEL+i)) & 0x3f;
+ }
+ }
+#endif //CONFIG_TDLS
+
}
else
{
u8 i;
- for(i=1 ;( i < (Adapter->stapriv.asoc_sta_count + 1))&&(i <FW_CTRL_MACID ); i++)
+ for(i=1 ; i < (Adapter->stapriv.asoc_sta_count + 1); i++)
{
pdmpriv->INIDATA_RATE[i] = rtw_read8(Adapter, (REG_INIDATA_RATE_SEL+i)) & 0x3f;
}
}
}
+skip_dm:
+
// Check GPIO to determine current RF on/off and Pbc status.
// Check Hardware Radio ON/OFF or not
//if(Adapter->MgntInfo.PowerSaveControl.bGpioRfSw)
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_hal_init.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_hal_init.c
index e3e2ae9..b9e91d7 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_hal_init.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_hal_init.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
- *******************************************************************************/
+ ******************************************************************************/
#define _RTL8192C_HAL_INIT_C_
#include <drv_conf.h>
@@ -101,7 +101,7 @@ _FWDownloadEnable(
rtw_write8(Adapter, REG_MCUFWDL, tmp&0xfe);
// Reserved for fw extension.
- //rtw_write8(Adapter, REG_MCUFWDL+1, 0x00);
+ rtw_write8(Adapter, REG_MCUFWDL+1, 0x00);
}
}
@@ -123,22 +123,32 @@ _BlockWrite(
u8 *bufferPtr = (u8 *)buffer;
u32 *pu4BytePtr = (u32 *)buffer;
u32 i, offset, blockCount, remainSize;
+ u8 remainFW[4] = {0, 0, 0, 0};
+ u8 *p = NULL;
blockCount = size / blockSize;
remainSize = size % blockSize;
for(i = 0 ; i < blockCount ; i++){
offset = i * blockSize;
- rtw_write32(Adapter, (FW_8192C_START_ADDRESS + offset), *(pu4BytePtr + i));
+ rtw_write32(Adapter, (FW_8192C_START_ADDRESS + offset), cpu_to_le32(*(pu4BytePtr + i)));
}
+ p = (u8*)((u32*)(bufferPtr + blockCount * blockSize));
if(remainSize){
- offset = blockCount * blockSize;
- bufferPtr += offset;
-
- for(i = 0 ; i < remainSize ; i++){
- rtw_write8(Adapter, (FW_8192C_START_ADDRESS + offset + i), *(bufferPtr + i));
+ switch (remainSize) {
+ case 0:
+ break;
+ case 3:
+ remainFW[2]=*(p+2);
+ case 2:
+ remainFW[1]=*(p+1);
+ case 1:
+ remainFW[0]=*(p);
+ ret = rtw_write32(Adapter, (FW_8192C_START_ADDRESS + blockCount * blockSize),
+ le32_to_cpu(*(u32*)remainFW));
}
+ return ret;
}
#else
@@ -256,50 +266,36 @@ _WriteFW(
// We can remove _ReadChipVersion from ReadAdapterInfo8192C later.
int ret = _SUCCESS;
- BOOLEAN isNormalChip;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
-
- isNormalChip = IS_NORMAL_CHIP(pHalData->VersionID);
-
- if(isNormalChip){
- u32 pageNums,remainSize ;
- u32 page,offset;
- u8* bufferPtr = (u8*)buffer;
+ u32 pageNums,remainSize ;
+ u32 page,offset;
+ u8* bufferPtr = (u8*)buffer;
#ifdef CONFIG_PCI_HCI
- // 20100120 Joseph: Add for 88CE normal chip.
- // Fill in zero to make firmware image to dword alignment.
- _FillDummy(bufferPtr, &size);
+ // 20100120 Joseph: Add for 88CE normal chip.
+ // Fill in zero to make firmware image to dword alignment.
+// _FillDummy(bufferPtr, &size);
#endif
- pageNums = size / MAX_PAGE_SIZE ;
- //RT_ASSERT((pageNums <= 4), ("Page numbers should not greater then 4 \n"));
- remainSize = size % MAX_PAGE_SIZE;
+ pageNums = size / MAX_PAGE_SIZE ;
+ //RT_ASSERT((pageNums <= 4), ("Page numbers should not greater then 4 \n"));
+ remainSize = size % MAX_PAGE_SIZE;
+
+ for(page = 0; page < pageNums; page++){
+ offset = page *MAX_PAGE_SIZE;
+ ret = _PageWrite(Adapter,page, (bufferPtr+offset),MAX_PAGE_SIZE);
- for(page = 0; page < pageNums; page++){
- offset = page *MAX_PAGE_SIZE;
- ret = _PageWrite(Adapter,page, (bufferPtr+offset),MAX_PAGE_SIZE);
-
- if(ret == _FAIL)
- goto exit;
- }
- if(remainSize){
- offset = pageNums *MAX_PAGE_SIZE;
- page = pageNums;
- ret = _PageWrite(Adapter,page, (bufferPtr+offset),remainSize);
-
- if(ret == _FAIL)
- goto exit;
- }
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("_WriteFW Done- for Normal chip.\n"));
+ if(ret == _FAIL)
+ goto exit;
}
- else {
- ret = _BlockWrite(Adapter,buffer,size);
+ if(remainSize){
+ offset = pageNums *MAX_PAGE_SIZE;
+ page = pageNums;
+ ret = _PageWrite(Adapter,page, (bufferPtr+offset),remainSize);
if(ret == _FAIL)
goto exit;
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("_WriteFW Done- for Test chip.\n"));
- }
+ }
+ //RT_TRACE(COMP_INIT, DBG_LOUD, ("_WriteFW Done- for Normal chip.\n"));
exit:
return ret;
@@ -311,7 +307,6 @@ static int _FWFreeToGo(
{
u32 counter = 0;
u32 value32;
- u8 value8;
u32 restarted = _FALSE;
// polling CheckSum report
@@ -328,10 +323,10 @@ static int _FWFreeToGo(
//RT_TRACE(COMP_INIT, DBG_LOUD, ("Checksum report OK ! REG_MCUFWDL:0x%08x .\n",value32));
- value8 = rtw_read8(Adapter, REG_MCUFWDL);
- value8 |= MCUFWDL_RDY;
- value8 &= ~WINTINI_RDY;
- rtw_write8(Adapter, REG_MCUFWDL, value8);
+ value32 = rtw_read32(Adapter, REG_MCUFWDL);
+ value32 |= MCUFWDL_RDY;
+ value32 &= ~WINTINI_RDY;
+ rtw_write32(Adapter, REG_MCUFWDL, value32);
POLLING_FW_READY:
@@ -432,7 +427,7 @@ int FirmwareDownload92C(
s8 R92CFwImageFileName_TSMC_WW[] ={RTL8192C_FW_TSMC_WW_IMG};
s8 R92CFwImageFileName_UMC_WW[] ={RTL8192C_FW_UMC_WW_IMG};
s8 R92CFwImageFileName_UMC_B_WW[] ={RTL8192C_FW_UMC_B_WW_IMG};
-#endif
+#endif //CONFIG_WOWLAN
//s8 R8723FwImageFileName_UMC[] ={RTL8723_FW_UMC_IMG};
u8* FwImage = NULL;
@@ -442,7 +437,7 @@ int FirmwareDownload92C(
u8* FwImageWoWLAN;
u32 FwImageWoWLANLen;
char* pFwImageFileName_WoWLAN;
-#endif
+#endif //CONFIG_WOWLAN
u8* pucMappedFile = NULL;
//vivi, merge 92c and 92s into one driver, 20090817
//vivi modify this temply, consider it later!!!!!!!!
@@ -461,55 +456,43 @@ int FirmwareDownload92C(
goto Exit;
}
- if(IS_NORMAL_CHIP(pHalData->VersionID))
+ if(IS_VENDOR_UMC_A_CUT(pHalData->VersionID) && !IS_92C_SERIAL(pHalData->VersionID))
{
- if(IS_VENDOR_UMC_A_CUT(pHalData->VersionID) && !IS_92C_SERIAL(pHalData->VersionID))
- {
- pFwImageFileName = R92CFwImageFileName_UMC;
- FwImage = Rtl819XFwUMCACutImageArray;
- FwImageLen = UMCACutImgArrayLength;
+ pFwImageFileName = R92CFwImageFileName_UMC;
+ FwImage = Rtl819XFwUMCACutImageArray;
+ FwImageLen = UMCACutImgArrayLength;
#ifdef CONFIG_WOWLAN
- pFwImageFileName_WoWLAN = R92CFwImageFileName_UMC_WW;
- FwImageWoWLAN= Rtl8192C_FwUMCWWImageArray;
- FwImageWoWLANLen =UMCACutWWImgArrayLength ;
-#endif
- DBG_8192C(" ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_UMC\n");
- }
- else if(IS_81xxC_VENDOR_UMC_B_CUT(pHalData->VersionID))
- {
- // The ROM code of UMC B-cut Fw is the same as TSMC. by tynli. 2011.01.14.
- pFwImageFileName = R92CFwImageFileName_UMC_B;
- FwImage = Rtl819XFwUMCBCutImageArray;
- FwImageLen = UMCBCutImgArrayLength;
+ pFwImageFileName_WoWLAN = R92CFwImageFileName_UMC_WW;
+ FwImageWoWLAN= Rtl8192C_FwUMCWWImageArray;
+ FwImageWoWLANLen =UMCACutWWImgArrayLength ;
+#endif //CONFIG_WOWLAN
+ DBG_8192C(" ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_UMC\n");
+ }
+ else if(IS_81xxC_VENDOR_UMC_B_CUT(pHalData->VersionID))
+ {
+ // The ROM code of UMC B-cut Fw is the same as TSMC. by tynli. 2011.01.14.
+ pFwImageFileName = R92CFwImageFileName_UMC_B;
+ FwImage = Rtl819XFwUMCBCutImageArray;
+ FwImageLen = UMCBCutImgArrayLength;
#ifdef CONFIG_WOWLAN
- pFwImageFileName_WoWLAN = R92CFwImageFileName_UMC_B_WW;
- FwImageWoWLAN= Rtl8192C_FwUMCBCutWWImageArray;
- FwImageWoWLANLen =UMCBCutWWImgArrayLength ;
-#endif
-
- DBG_8192C(" ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_UMC_B\n");
- }
- else
- {
- pFwImageFileName = R92CFwImageFileName_TSMC;
- FwImage = Rtl819XFwTSMCImageArray;
- FwImageLen = TSMCImgArrayLength;
-#ifdef CONFIG_WOWLAN
- pFwImageFileName_WoWLAN = R92CFwImageFileName_TSMC_WW;
- FwImageWoWLAN= Rtl8192C_FwTSMCWWImageArray;
- FwImageWoWLANLen =TSMCWWImgArrayLength ;
-#endif
- DBG_8192C(" ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC\n");
- }
+ pFwImageFileName_WoWLAN = R92CFwImageFileName_UMC_B_WW;
+ FwImageWoWLAN= Rtl8192C_FwUMCBCutWWImageArray;
+ FwImageWoWLANLen =UMCBCutWWImgArrayLength ;
+#endif //CONFIG_WOWLAN
+
+ DBG_8192C(" ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_UMC_B\n");
}
else
{
- #if 0
- pFwImageFileName = TestChipFwFile;
- FwImage = Rtl8192CTestFwImg;
- FwImageLen = Rtl8192CTestFwImgLen;
- RT_TRACE(COMP_INIT, DBG_LOUD, (" ===> FirmwareDownload91C() fw:Rtl8192CTestFwImg\n"));
- #endif
+ pFwImageFileName = R92CFwImageFileName_TSMC;
+ FwImage = Rtl819XFwTSMCImageArray;
+ FwImageLen = TSMCImgArrayLength;
+#ifdef CONFIG_WOWLAN
+ pFwImageFileName_WoWLAN = R92CFwImageFileName_TSMC_WW;
+ FwImageWoWLAN= Rtl8192C_FwTSMCWWImageArray;
+ FwImageWoWLANLen =TSMCWWImgArrayLength ;
+#endif //CONFIG_WOWLAN
+ DBG_8192C(" ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC\n");
}
//RT_TRACE(COMP_INIT, DBG_LOUD, (" ===> FirmwareDownload91C() fw:%s\n", pFwImageFileName));
@@ -559,7 +542,7 @@ int FirmwareDownload92C(
pFirmware->szWoWLANFwBuffer=FwImageWoWLAN;
pFirmware->ulWoWLANFwLength = FwImageWoWLANLen;
}
-#endif
+#endif //CONFIG_WOWLAN
break;
}
@@ -571,23 +554,20 @@ int FirmwareDownload92C(
pFwHdr = (PRT_8192C_FIRMWARE_HDR)pFirmware->szWoWLANFwBuffer;
}
else
-#endif
+#endif //CONFIG_WOWLAN
{
- #ifdef DBG_FW_STORE_FILE_PATH //used to store firmware to file...
- if(pFirmware->ulFwLength > 0)
- {
- rtw_store_to_file(DBG_FW_STORE_FILE_PATH, pFirmware->szFwBuffer, pFirmware->ulFwLength);
- }
- #endif
-
-
-
+ #ifdef DBG_FW_STORE_FILE_PATH //used to store firmware to file...
+ if(pFirmware->ulFwLength > 0)
+ {
+ rtw_store_to_file(DBG_FW_STORE_FILE_PATH, pFirmware->szFwBuffer, pFirmware->ulFwLength);
+ }
+ #endif
- pFirmwareBuf = pFirmware->szFwBuffer;
- FirmwareLen = pFirmware->ulFwLength;
+ pFirmwareBuf = pFirmware->szFwBuffer;
+ FirmwareLen = pFirmware->ulFwLength;
- // To Check Fw header. Added by tynli. 2009.12.04.
- pFwHdr = (PRT_8192C_FIRMWARE_HDR)pFirmware->szFwBuffer;
+ // To Check Fw header. Added by tynli. 2009.12.04.
+ pFwHdr = (PRT_8192C_FIRMWARE_HDR)pFirmware->szFwBuffer;
}
pHalData->FirmwareVersion = le16_to_cpu(pFwHdr->Version);
pHalData->FirmwareSubVersion = le16_to_cpu(pFwHdr->Subversion);
@@ -634,6 +614,7 @@ int FirmwareDownload92C(
break;
}
_FWDownloadEnable(Adapter, _FALSE);
+
if(_SUCCESS != rtStatus){
DBG_8192C("DL Firmware failed!\n");
goto Exit;
@@ -671,7 +652,7 @@ InitializeFirmwareVars92C(
pHalData->LastHMEBoxNum = 0;
}
-
+#ifdef CONFIG_WOWLAN
//===========================================
//
@@ -716,7 +697,7 @@ SetFwRelatedForWoWLAN8192CU(
}
}
-
+#endif // CONFIG_WOWLAN
#ifdef CONFIG_BT_COEXIST
static void _update_bt_param(_adapter *padapter)
@@ -812,7 +793,6 @@ void rtl8192c_ReadBluetoothCoexistInfo(
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
struct btcoexist_priv *pbtpriv = &(pHalData->bt_coexist);
u8 rf_opt4;
@@ -825,19 +805,13 @@ void rtl8192c_ReadBluetoothCoexistInfo(
return;
}
- if(isNormal)
- {
- pbtpriv->BT_Coexist = (((PROMContent[EEPROM_RF_OPT1]&BOARD_TYPE_NORMAL_MASK)>>5) == BOARD_USB_COMBO)?_TRUE:_FALSE; // bit [7:5]
- rf_opt4 = PROMContent[EEPROM_RF_OPT4];
- pbtpriv->BT_CoexistType = ((rf_opt4&0xe)>>1); // bit [3:1]
- pbtpriv->BT_Ant_Num = (rf_opt4&0x1); // bit [0]
- pbtpriv->BT_Ant_isolation = ((rf_opt4&0x10)>>4); // bit [4]
- pbtpriv->BT_RadioSharedType = ((rf_opt4&0x20)>>5); // bit [5]
- }
- else
- {
- pbtpriv->BT_Coexist = (PROMContent[EEPROM_RF_OPT4] >> 4) ? _TRUE : _FALSE;
- }
+ pbtpriv->BT_Coexist = (((PROMContent[EEPROM_RF_OPT1]&BOARD_TYPE_NORMAL_MASK)>>5) == BOARD_USB_COMBO)?_TRUE:_FALSE; // bit [7:5]
+ rf_opt4 = PROMContent[EEPROM_RF_OPT4];
+ pbtpriv->BT_CoexistType = ((rf_opt4&0xe)>>1); // bit [3:1]
+ pbtpriv->BT_Ant_Num = (rf_opt4&0x1); // bit [0]
+ pbtpriv->BT_Ant_isolation = ((rf_opt4&0x10)>>4); // bit [4]
+ pbtpriv->BT_RadioSharedType = ((rf_opt4&0x20)>>5); // bit [5]
+
_update_bt_param(Adapter);
}
@@ -859,7 +833,7 @@ rtl8192c_ReadChipVersion(
{
#if 0
// Test chip.
- if(IS_HARDWARE_TYPE_8723(Adapter)) {
+ if(IS_HARDWARE_TYPE_8723A(Adapter)) {
ChipVersion |= ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : 0);
ChipVersion |= ((value32 & BT_FUNC) ? CHIP_8723: 0); // RTL8723 with BT function.
}
@@ -941,7 +915,7 @@ rtl8192c_ReadChipVersion(
}
else if(IS_8723_SERIES(ChipVersion))
{
- //RT_ASSERT(IS_HARDWARE_TYPE_8723(Adapter), ("Incorrect chip version!!\n"));
+ //RT_ASSERT(IS_HARDWARE_TYPE_8723A(Adapter), ("Incorrect chip version!!\n"));
value32 = rtw_read32(Adapter, REG_GPIO_OUTSTS);
ChipVersion |= ((value32 & RF_RL_ID)>>20); //ROM code version.
}
@@ -1035,35 +1009,22 @@ rtl8192c_ReadChipVersion(
return ChipVersion;
}
-
-RT_CHANNEL_DOMAIN
-_HalMapChannelPlan8192C(
- IN PADAPTER Adapter,
- IN u8 HalChannelPlan
+void
+rtl8192c_EfuseParseChnlPlan(
+ IN PADAPTER padapter,
+ IN u8* hwinfo,
+ IN BOOLEAN AutoLoadFail
)
{
- RT_CHANNEL_DOMAIN rtChannelDomain;
-
- switch(HalChannelPlan)
- {
-#if 0 /* Not using EEPROM_CHANNEL_PLAN directly */
- case EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN:
- rtChannelDomain = RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN;
- break;
- case EEPROM_CHANNEL_PLAN_WORLD_WIDE_13:
- rtChannelDomain = RT_CHANNEL_DOMAIN_WORLD_WIDE_13;
- break;
-#endif /* Not using EEPROM_CHANNEL_PLAN directly */
- default:
- if(HalChannelPlan == 0xFF)
- rtChannelDomain = RT_CHANNEL_DOMAIN_WORLD_WIDE_13;
- else
- rtChannelDomain = (RT_CHANNEL_DOMAIN)HalChannelPlan;
- break;
- }
-
- return rtChannelDomain;
-
+ padapter->mlmepriv.ChannelPlan = hal_com_get_channel_plan(
+ padapter
+ , hwinfo?hwinfo[EEPROM_CHANNEL_PLAN]:0xFF
+ , padapter->registrypriv.channel_plan
+ , RT_CHANNEL_DOMAIN_WORLD_WIDE_13
+ , AutoLoadFail
+ );
+
+ DBG_871X("mlmepriv.ChannelPlan = 0x%02x\n", padapter->mlmepriv.ChannelPlan);
}
u8 GetEEPROMSize8192C(PADAPTER Adapter)
@@ -1079,42 +1040,6 @@ u8 GetEEPROMSize8192C(PADAPTER Adapter)
return size;
}
-void rtl8192c_HalSetBrateCfg(
- IN PADAPTER Adapter,
- IN u8 *mBratesOS,
- OUT u16 *pBrateCfg
-)
-{
- u8 is_brate;
- u8 i;
- u8 brate;
-
- for(i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++)
- {
- is_brate = mBratesOS[i] & IEEE80211_BASIC_RATE_MASK;
- brate = mBratesOS[i] & 0x7f;
- if( is_brate )
- {
- switch(brate)
- {
- case IEEE80211_CCK_RATE_1MB: *pBrateCfg |= RATE_1M; break;
- case IEEE80211_CCK_RATE_2MB: *pBrateCfg |= RATE_2M; break;
- case IEEE80211_CCK_RATE_5MB: *pBrateCfg |= RATE_5_5M;break;
- case IEEE80211_CCK_RATE_11MB: *pBrateCfg |= RATE_11M; break;
- case IEEE80211_OFDM_RATE_6MB: *pBrateCfg |= RATE_6M; break;
- case IEEE80211_OFDM_RATE_9MB: *pBrateCfg |= RATE_9M; break;
- case IEEE80211_OFDM_RATE_12MB: *pBrateCfg |= RATE_12M; break;
- case IEEE80211_OFDM_RATE_18MB: *pBrateCfg |= RATE_18M; break;
- case IEEE80211_OFDM_RATE_24MB: *pBrateCfg |= RATE_24M; break;
- case IEEE80211_OFDM_RATE_36MB: *pBrateCfg |= RATE_36M; break;
- case IEEE80211_OFDM_RATE_48MB: *pBrateCfg |= RATE_48M; break;
- case IEEE80211_OFDM_RATE_54MB: *pBrateCfg |= RATE_54M; break;
- }
- }
-
- }
-}
-
void rtl8192c_free_hal_data(_adapter * padapter)
{
_func_enter_;
@@ -1250,7 +1175,7 @@ rtl8192c_EfusePowerSwitch(
{
hal_EfusePowerSwitch_RTL8192C(pAdapter, bWrite, PwrState);
}
- else if(IS_HARDWARE_TYPE_8723(pAdapter))
+ else if(IS_HARDWARE_TYPE_8723A(pAdapter))
{
hal_EfusePowerSwitch_RTL8723(pAdapter, bWrite, PwrState);
}
@@ -1377,8 +1302,8 @@ ReadEFuse_RTL8192C(
// 5. Calculate Efuse utilization.
//
efuse_usage = (u8)((efuse_utilized*100)/EFUSE_REAL_CONTENT_LEN);
- Adapter->HalFunc.SetHwRegHandler(Adapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_utilized);
- //Adapter->HalFunc.SetHwRegHandler(Adapter, HW_VAR_EFUSE_USAGE, (pu1Byte)&efuse_usage);
+ rtw_hal_set_hwreg(Adapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_utilized);
+ //rtw_hal_set_hwreg(Adapter, HW_VAR_EFUSE_USAGE, (pu1Byte)&efuse_usage);
}
static VOID
@@ -1539,8 +1464,8 @@ ReadEFuse_RTL8723(
// 5. Calculate Efuse utilization.
//
efuse_usage = (u8)((efuse_utilized*100)/EFUSE_REAL_CONTENT_LEN);
- Adapter->HalFunc.SetHwRegHandler(Adapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_utilized);
- //Adapter->HalFunc.SetHwRegHandler(Adapter, HW_VAR_EFUSE_USAGE, (pu1Byte)&efuse_usage);
+ rtw_hal_set_hwreg(Adapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_utilized);
+ //rtw_hal_set_hwreg(Adapter, HW_VAR_EFUSE_USAGE, (pu1Byte)&efuse_usage);
}
static BOOLEAN
@@ -1561,7 +1486,7 @@ Hal_EfuseSwitchToBank(
}
else
{
- if(IS_HARDWARE_TYPE_8723(pAdapter) &&
+ if(IS_HARDWARE_TYPE_8723A(pAdapter) &&
INCLUDE_MULTI_FUNC_BT(pAdapter))
{
value32 = rtw_read32(pAdapter, EFUSE_TEST);
@@ -1828,7 +1753,7 @@ ReadEFuseByIC(
{
ReadEFuse_RTL8192C(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
}
- else if(IS_HARDWARE_TYPE_8723(Adapter))
+ else if(IS_HARDWARE_TYPE_8723A(Adapter))
{
ReadEFuse_RTL8723(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
}
@@ -1894,7 +1819,7 @@ Hal_EFUSEGetEfuseDefinition(
{
*pMax_section = EFUSE_MAX_SECTION;
}
- else if(IS_HARDWARE_TYPE_8723(pAdapter))
+ else if(IS_HARDWARE_TYPE_8723A(pAdapter))
{
*pMax_section = EFUSE_MAX_SECTION_8723;
}
@@ -1944,7 +1869,7 @@ Hal_EFUSEGetEfuseDefinition(
{
*pu2Tmp = (u16)EFUSE_MAP_LEN;
}
- else if(IS_HARDWARE_TYPE_8723(pAdapter))
+ else if(IS_HARDWARE_TYPE_8723A(pAdapter))
{
*pu2Tmp = (u16)EFUSE_MAP_LEN_8723;
}
@@ -2320,7 +2245,7 @@ hal_EfuseGetCurrentSize_8723(IN PADAPTER pAdapter,
}
else
{
- pAdapter->HalFunc.GetHwRegHandler(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_addr);
+ rtw_hal_get_hwreg(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_addr);
}
//RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfuseGetCurrentSize_8723(), start_efuse_addr = %d\n", efuse_addr));
@@ -2368,7 +2293,7 @@ hal_EfuseGetCurrentSize_8723(IN PADAPTER pAdapter,
}
else
{
- pAdapter->HalFunc.SetHwRegHandler(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_addr);
+ rtw_hal_set_hwreg(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&efuse_addr);
//RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfuseGetCurrentSize_8723(), return %d\n", efuse_addr));
}
@@ -2406,7 +2331,7 @@ rtl8192c_EfuseGetCurrentSize(
{
ret = hal_EfuseGetCurrentSize_8192C(pAdapter, bPseudoTest);
}
- else if(IS_HARDWARE_TYPE_8723(pAdapter))
+ else if(IS_HARDWARE_TYPE_8723A(pAdapter))
{
ret = hal_EfuseGetCurrentSize_8723(pAdapter, bPseudoTest);
}
@@ -2631,7 +2556,7 @@ Hal_EfusePgPacketRead( IN PADAPTER pAdapter,
{
ret = hal_EfusePgPacketRead_8192C(pAdapter, offset, data, bPseudoTest);
}
- else if(IS_HARDWARE_TYPE_8723(pAdapter))
+ else if(IS_HARDWARE_TYPE_8723A(pAdapter))
{
ret = hal_EfusePgPacketRead_8723(pAdapter, offset, data, bPseudoTest);
}
@@ -3044,7 +2969,7 @@ hal_EfusePartialWriteCheck(
}
else
{
- pAdapter->HalFunc.GetHwRegHandler(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&startAddr);
+ rtw_hal_get_hwreg(pAdapter, HW_VAR_EFUSE_BYTES, (u8 *)&startAddr);
startAddr%=EFUSE_REAL_CONTENT_LEN;
}
}
@@ -3533,7 +3458,7 @@ Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
{
ret = hal_EfusePgPacketWrite_8192C(pAdapter, offset, word_en, data, bPseudoTest);
}
- else if(IS_HARDWARE_TYPE_8723(pAdapter))
+ else if(IS_HARDWARE_TYPE_8723A(pAdapter))
{
ret = hal_EfusePgPacketWrite_8723(pAdapter, offset, word_en, data, bPseudoTest);
}
@@ -3591,7 +3516,62 @@ void rtl8192c_read_chip_version(PADAPTER pAdapter)
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
pHalData->VersionID = rtl8192c_ReadChipVersion(pAdapter);
}
+
+void hal_notch_filter_8192c(_adapter *adapter, bool enable)
+{
+ if (enable) {
+ DBG_871X("Enable notch filter\n");
+ rtw_write8(adapter, rOFDM0_RxDSP+1, rtw_read8(adapter, rOFDM0_RxDSP+1) | BIT1);
+ } else {
+ DBG_871X("Disable notch filter\n");
+ rtw_write8(adapter, rOFDM0_RxDSP+1, rtw_read8(adapter, rOFDM0_RxDSP+1) & ~BIT1);
+ }
+}
+
+void hal_reset_security_engine_8192c(_adapter * adapter)
+{
+ rtw_write8(adapter, 0x522, 0xFF);
+ rtw_write8(adapter, 0x21, 0x35);
+ rtw_usleep_os(300);
+ rtw_write8(adapter, 0x101, rtw_read8(adapter,0x101)&~0x02);
+ rtw_write8(adapter, 0x101, rtw_read8(adapter,0x101)|0x02);
+ rtw_write8(adapter, 0x21, 0x55);
+ rtw_write8(adapter, 0x522, 0x00);
+}
+
+s32 c2h_id_filter_ccx_8192c(u8 id)
+{
+ s32 ret = _FALSE;
+ if (id == C2H_CCX_TX_RPT)
+ ret = _TRUE;
+ return ret;
+}
+
+static s32 c2h_handler_8192c(_adapter *padapter, struct c2h_evt_hdr *c2h_evt)
+{
+ s32 ret = _SUCCESS;
+ u8 i = 0;
+
+ if (c2h_evt == NULL) {
+ DBG_8192C("%s c2h_evt is NULL\n",__FUNCTION__);
+ ret = _FAIL;
+ goto exit;
+ }
+
+ switch (c2h_evt->id) {
+ case C2H_CCX_TX_RPT:
+ handle_txrpt_ccx_8192c(padapter, c2h_evt->payload);
+ break;
+ default:
+ ret = _FAIL;
+ break;
+ }
+
+exit:
+ return ret;
+}
+
void rtl8192c_set_hal_ops(struct hal_ops *pHalFunc)
{
pHalFunc->free_hal_data = &rtl8192c_free_hal_data;
@@ -3608,15 +3588,15 @@ void rtl8192c_set_hal_ops(struct hal_ops *pHalFunc)
pHalFunc->Add_RateATid = &rtl8192c_Add_RateATid;
#ifdef CONFIG_ANTENNA_DIVERSITY
- pHalFunc->SwAntDivBeforeLinkHandler = &SwAntDivBeforeLink8192C;
- pHalFunc->SwAntDivCompareHandler = &SwAntDivCompare8192C;
+ pHalFunc->AntDivBeforeLinkHandler = &SwAntDivBeforeLink8192C;
+ pHalFunc->AntDivCompareHandler = &SwAntDivCompare8192C;
#endif
pHalFunc->read_bbreg = &rtl8192c_PHY_QueryBBReg;
pHalFunc->write_bbreg = &rtl8192c_PHY_SetBBReg;
pHalFunc->read_rfreg = &rtl8192c_PHY_QueryRFReg;
- pHalFunc->write_rfreg = &rtl8192c_PHY_SetRFReg;
-
+ pHalFunc->write_rfreg = &rtl8192c_PHY_SetRFReg;
+
//Efuse related function
pHalFunc->EfusePowerSwitch = &rtl8192c_EfusePowerSwitch;
pHalFunc->ReadEFuse = &rtl8192c_ReadEFuse;
@@ -3627,16 +3607,22 @@ void rtl8192c_set_hal_ops(struct hal_ops *pHalFunc)
pHalFunc->Efuse_WordEnableDataWrite = &rtl8192c_Efuse_WordEnableDataWrite;
#ifdef DBG_CONFIG_ERROR_DETECT
- pHalFunc->sreset_init_value = &rtl8192c_sreset_init_value;
- pHalFunc->sreset_reset_value = &rtl8192c_sreset_reset_value;
- pHalFunc->silentreset = &rtl8192c_silentreset_for_specific_platform;
+ pHalFunc->sreset_init_value = &sreset_init_value;
+ pHalFunc->sreset_reset_value = &sreset_reset_value;
+ pHalFunc->silentreset = &sreset_reset;
pHalFunc->sreset_xmit_status_check = &rtl8192c_sreset_xmit_status_check;
pHalFunc->sreset_linked_status_check = &rtl8192c_sreset_linked_status_check;
- pHalFunc->sreset_get_wifi_status = &rtl8192c_sreset_get_wifi_status;
+ pHalFunc->sreset_get_wifi_status = &sreset_get_wifi_status;
+ pHalFunc->sreset_inprogress= &sreset_inprogress;
#endif
#ifdef CONFIG_IOL
pHalFunc->IOL_exec_cmds_sync = &rtl8192c_IOL_exec_cmds_sync;
#endif
+ pHalFunc->hal_notch_filter = &hal_notch_filter_8192c;
+ pHalFunc->hal_reset_security_engine = hal_reset_security_engine_8192c;
+
+ pHalFunc->c2h_handler = c2h_handler_8192c;
+ pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8192c;
}
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_mp.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_mp.c
index a3021a9..a4194c4 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_mp.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_mp.c
@@ -107,7 +107,7 @@ void Hal_mpt_SwitchRfSetting(PADAPTER pAdapter)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct mp_priv *pmp = &pAdapter->mppriv;
- u8 ChannelToSw = pmp->channel, eRFPath = RF90_PATH_A;
+ u8 ChannelToSw = pmp->channel, eRFPath = RF_PATH_A;
u8 ulRateIdx = pmp->rateidx;
u8 ulbandwidth = pmp->bandwidth;
PMPT_CONTEXT pMptCtx = &(pAdapter->mppriv.MptCtx);
@@ -340,7 +340,7 @@ void Hal_MPT_CCKTxPowerAdjustbyIndex(PADAPTER pAdapter, BOOLEAN beven)
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.MptCtx;
- if (!IS_92C_SERIAL(pHalData->VersionID) || !IS_NORMAL_CHIP(pHalData->VersionID))
+ if (!IS_92C_SERIAL(pHalData->VersionID))
return;
#if 0
while(PlatformAtomicExchange(&Adapter->IntrCCKRefCount, TRUE) == TRUE)
@@ -459,7 +459,7 @@ void Hal_SetChannel(PADAPTER pAdapter)
for (eRFPath = 0; eRFPath < pHalData->NumTotalRFPath; eRFPath++)
{
if(IS_HARDWARE_TYPE_8192D(pAdapter))
- _write_rfreg(pAdapter, (RF90_RADIO_PATH_E)eRFPath, rRfChannel, 0xFF, channel);
+ _write_rfreg(pAdapter, (RF_RADIO_PATH_E)eRFPath, rRfChannel, 0xFF, channel);
else
_write_rfreg(pAdapter, eRFPath, rRfChannel, 0x3FF, channel);
}
@@ -475,13 +475,6 @@ void Hal_SetChannel(PADAPTER pAdapter)
pHalData->dmpriv.bCCKinCH14 = _FALSE;
Hal_MPT_CCKTxPowerAdjust(pAdapter, pHalData->dmpriv.bCCKinCH14);
}
-#if 0
-//#ifdef CONFIG_USB_HCI
- // Georgia add 2009-11-17, suggested by Edlu , for 8188CU ,46 PIN
- if (!IS_92C_SERIAL(pHalData->VersionID) && !IS_NORMAL_CHIP(pHalData->VersionID)) {
- mpt_AdjustRFRegByRateByChan92CU(pAdapter, rate, pHalData->CurrentChannel, bandwidth);
- }
-#endif
#endif
}
@@ -538,14 +531,6 @@ void Hal_SetOFDMTxPower(PADAPTER pAdapter, u8 *TxPower)
write_bbreg(pAdapter, rTxAGC_A_Mcs11_Mcs08, bMaskDWord, TxAGC);
write_bbreg(pAdapter, rTxAGC_A_Mcs15_Mcs12, bMaskDWord, TxAGC);
- if (pHalData->dmpriv.bAPKdone && !IS_NORMAL_CHIP(pHalData->VersionID))
- {
- if (tmpval > pMptCtx->APK_bound[RF_PATH_A])
- write_rfreg(pAdapter, RF_PATH_A, 0xe, pHalData->dmpriv.APKoutput[0][0]);
- else
- write_rfreg(pAdapter, RF_PATH_A, 0xe, pHalData->dmpriv.APKoutput[0][1]);
- }
-
// HT Tx-rf(B)
tmpval = TxPower[RF_PATH_B];
TxAGC = (tmpval<<24) | (tmpval<<16) | (tmpval<<8) | tmpval;
@@ -557,14 +542,6 @@ void Hal_SetOFDMTxPower(PADAPTER pAdapter, u8 *TxPower)
write_bbreg(pAdapter, rTxAGC_B_Mcs11_Mcs08, bMaskDWord, TxAGC);
write_bbreg(pAdapter, rTxAGC_B_Mcs15_Mcs12, bMaskDWord, TxAGC);
- if (pHalData->dmpriv.bAPKdone && !IS_NORMAL_CHIP(pHalData->VersionID))
- {
- if (tmpval > pMptCtx->APK_bound[RF_PATH_B])
- write_rfreg(pAdapter, RF_PATH_B, 0xe, pHalData->dmpriv.APKoutput[1][0]);
- else
- write_rfreg(pAdapter, RF_PATH_B, 0xe, pHalData->dmpriv.APKoutput[1][1]);
- }
-
RT_TRACE(_module_mp_, _drv_notice_,
("-SetOFDMTxPower: A[0x%02x] B[0x%02x]\n",
TxPower[RF_PATH_A], TxPower[RF_PATH_B]));
@@ -800,7 +777,7 @@ void Hal_SetAntenna(PADAPTER pAdapter)
// 2008/10/31 MH From SD3 Willi's suggestion. We must read RFA 2T table.
if ((pHalData->VersionID == VERSION_8192S_ACUT)) // For RTL8192SU A-Cut only, by Roger, 2008.11.07.
{
- mpt_RFConfigFromPreParaArrary(pAdapter, 1, RF90_PATH_A);
+ mpt_RFConfigFromPreParaArrary(pAdapter, 1, RF_PATH_A);
}
#endif
// 2009/01/08 MH From Sd3 Willis. We need to enable RFA/B by SW control
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c
index e527028..1bae6da 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
/******************************************************************************
Module: rtl8192c_phycfg.c
@@ -197,7 +196,7 @@ rtl8192c_PHY_SetBBReg(
if(BitMask!= bMaskDWord){//if not "double word" write
OriginalValue = rtw_read32(Adapter, RegAddr);
BitShift = phy_CalculateBitShift(BitMask);
- Data = ((OriginalValue & (~BitMask)) | (Data << BitShift));
+ Data = ((OriginalValue & (~BitMask)) | ((Data << BitShift) & BitMask));
}
rtw_write32(Adapter, RegAddr, Data);
@@ -231,7 +230,7 @@ rtl8192c_PHY_SetBBReg(
static u32
phy_FwRFSerialRead(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset )
{
u32 retValue = 0;
@@ -260,7 +259,7 @@ phy_FwRFSerialRead(
static VOID
phy_FwRFSerialWrite(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset,
IN u32 Data )
{
@@ -275,7 +274,7 @@ phy_FwRFSerialWrite(
*
* Input:
* PADAPTER Adapter,
-* RF90_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
+* RF_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
* u4Byte Offset, //The target address to be read
*
* Output: None
@@ -290,7 +289,7 @@ phy_FwRFSerialWrite(
static u32
phy_RFSerialRead(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset
)
{
@@ -327,7 +326,7 @@ phy_RFSerialRead(
// For RF A/B write 0x824/82c(does not work in the future)
// We must use 0x824 for RF A and B to execute read trigger
tmplong = PHY_QueryBBReg(Adapter, rFPGA0_XA_HSSIParameter2, bMaskDWord);
- if(eRFPath == RF90_PATH_A)
+ if(eRFPath == RF_PATH_A)
tmplong2 = tmplong;
else
tmplong2 = PHY_QueryBBReg(Adapter, pPhyReg->rfHSSIPara2, bMaskDWord);
@@ -343,9 +342,9 @@ phy_RFSerialRead(
PHY_SetBBReg(Adapter, rFPGA0_XA_HSSIParameter2, bMaskDWord, tmplong|bLSSIReadEdge);
rtw_udelay_os(10);//PlatformStallExecution(10);
- if(eRFPath == RF90_PATH_A)
+ if(eRFPath == RF_PATH_A)
RfPiEnable = (u8)PHY_QueryBBReg(Adapter, rFPGA0_XA_HSSIParameter1, BIT8);
- else if(eRFPath == RF90_PATH_B)
+ else if(eRFPath == RF_PATH_B)
RfPiEnable = (u8)PHY_QueryBBReg(Adapter, rFPGA0_XB_HSSIParameter1, BIT8);
if(RfPiEnable)
@@ -373,7 +372,7 @@ phy_RFSerialRead(
*
* Input:
* PADAPTER Adapter,
-* RF90_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
+* RF_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
* u4Byte Offset, //The target address to be read
* u4Byte Data //The new register Data in the target bit position
* //of the target to be read
@@ -412,7 +411,7 @@ phy_RFSerialRead(
static VOID
phy_RFSerialWrite(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset,
IN u32 Data
)
@@ -471,7 +470,7 @@ phy_RFSerialWrite(
*
* Input:
* PADAPTER Adapter,
-* RF90_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
+* RF_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
* u4Byte RegAddr, //The target address to be read
* u4Byte BitMask //The target bit position in the target address
* //to be read
@@ -483,7 +482,7 @@ phy_RFSerialWrite(
u32
rtl8192c_PHY_QueryRFReg(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 RegAddr,
IN u32 BitMask
)
@@ -532,7 +531,7 @@ rtl8192c_PHY_QueryRFReg(
*
* Input:
* PADAPTER Adapter,
-* RF90_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
+* RF_RADIO_PATH_E eRFPath, //Radio path of A/B/C/D
* u4Byte RegAddr, //The target address to be modified
* u4Byte BitMask //The target bit position in the target address
* //to be modified
@@ -546,7 +545,7 @@ rtl8192c_PHY_QueryRFReg(
VOID
rtl8192c_PHY_SetRFReg(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
@@ -716,20 +715,12 @@ PHY_MACConfig8192C(
s8 *pszMACRegFile;
s8 sz88CMACRegFile[] = RTL8188C_PHY_MACREG;
s8 sz92CMACRegFile[] = RTL8192C_PHY_MACREG;
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
BOOLEAN is92C = IS_92C_SERIAL(pHalData->VersionID);
- if(isNormal)
- {
- if(is92C)
- pszMACRegFile = sz92CMACRegFile;
- else
- pszMACRegFile = sz88CMACRegFile;
- }
+ if(is92C)
+ pszMACRegFile = sz92CMACRegFile;
else
- {
- //pszMACRegFile = TestMacRegFile;
- }
+ pszMACRegFile = sz88CMACRegFile;
//
// Config MAC
@@ -746,7 +737,7 @@ PHY_MACConfig8192C(
#ifdef CONFIG_PCI_HCI
//this switching setting cause some 8192cu hw have redownload fw fail issue
//improve 2-stream TX EVM by Jenyu
- if(isNormal && is92C)
+ if(is92C)
rtw_write8(Adapter, REG_SPS0_CTRL+3,0x71);
#endif
@@ -784,102 +775,102 @@ phy_InitBBRFRegisterDefinition(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
// RF Interface Sowrtware Control
- pHalData->PHYRegDef[RF90_PATH_A].rfintfs = rFPGA0_XAB_RFInterfaceSW; // 16 LSBs if read 32-bit from 0x870
- pHalData->PHYRegDef[RF90_PATH_B].rfintfs = rFPGA0_XAB_RFInterfaceSW; // 16 MSBs if read 32-bit from 0x870 (16-bit for 0x872)
- pHalData->PHYRegDef[RF90_PATH_C].rfintfs = rFPGA0_XCD_RFInterfaceSW;// 16 LSBs if read 32-bit from 0x874
- pHalData->PHYRegDef[RF90_PATH_D].rfintfs = rFPGA0_XCD_RFInterfaceSW;// 16 MSBs if read 32-bit from 0x874 (16-bit for 0x876)
+ pHalData->PHYRegDef[RF_PATH_A].rfintfs = rFPGA0_XAB_RFInterfaceSW; // 16 LSBs if read 32-bit from 0x870
+ pHalData->PHYRegDef[RF_PATH_B].rfintfs = rFPGA0_XAB_RFInterfaceSW; // 16 MSBs if read 32-bit from 0x870 (16-bit for 0x872)
+ pHalData->PHYRegDef[RF_PATH_C].rfintfs = rFPGA0_XCD_RFInterfaceSW;// 16 LSBs if read 32-bit from 0x874
+ pHalData->PHYRegDef[RF_PATH_D].rfintfs = rFPGA0_XCD_RFInterfaceSW;// 16 MSBs if read 32-bit from 0x874 (16-bit for 0x876)
// RF Interface Readback Value
- pHalData->PHYRegDef[RF90_PATH_A].rfintfi = rFPGA0_XAB_RFInterfaceRB; // 16 LSBs if read 32-bit from 0x8E0
- pHalData->PHYRegDef[RF90_PATH_B].rfintfi = rFPGA0_XAB_RFInterfaceRB;// 16 MSBs if read 32-bit from 0x8E0 (16-bit for 0x8E2)
- pHalData->PHYRegDef[RF90_PATH_C].rfintfi = rFPGA0_XCD_RFInterfaceRB;// 16 LSBs if read 32-bit from 0x8E4
- pHalData->PHYRegDef[RF90_PATH_D].rfintfi = rFPGA0_XCD_RFInterfaceRB;// 16 MSBs if read 32-bit from 0x8E4 (16-bit for 0x8E6)
+ pHalData->PHYRegDef[RF_PATH_A].rfintfi = rFPGA0_XAB_RFInterfaceRB; // 16 LSBs if read 32-bit from 0x8E0
+ pHalData->PHYRegDef[RF_PATH_B].rfintfi = rFPGA0_XAB_RFInterfaceRB;// 16 MSBs if read 32-bit from 0x8E0 (16-bit for 0x8E2)
+ pHalData->PHYRegDef[RF_PATH_C].rfintfi = rFPGA0_XCD_RFInterfaceRB;// 16 LSBs if read 32-bit from 0x8E4
+ pHalData->PHYRegDef[RF_PATH_D].rfintfi = rFPGA0_XCD_RFInterfaceRB;// 16 MSBs if read 32-bit from 0x8E4 (16-bit for 0x8E6)
// RF Interface Output (and Enable)
- pHalData->PHYRegDef[RF90_PATH_A].rfintfo = rFPGA0_XA_RFInterfaceOE; // 16 LSBs if read 32-bit from 0x860
- pHalData->PHYRegDef[RF90_PATH_B].rfintfo = rFPGA0_XB_RFInterfaceOE; // 16 LSBs if read 32-bit from 0x864
+ pHalData->PHYRegDef[RF_PATH_A].rfintfo = rFPGA0_XA_RFInterfaceOE; // 16 LSBs if read 32-bit from 0x860
+ pHalData->PHYRegDef[RF_PATH_B].rfintfo = rFPGA0_XB_RFInterfaceOE; // 16 LSBs if read 32-bit from 0x864
// RF Interface (Output and) Enable
- pHalData->PHYRegDef[RF90_PATH_A].rfintfe = rFPGA0_XA_RFInterfaceOE; // 16 MSBs if read 32-bit from 0x860 (16-bit for 0x862)
- pHalData->PHYRegDef[RF90_PATH_B].rfintfe = rFPGA0_XB_RFInterfaceOE; // 16 MSBs if read 32-bit from 0x864 (16-bit for 0x866)
+ pHalData->PHYRegDef[RF_PATH_A].rfintfe = rFPGA0_XA_RFInterfaceOE; // 16 MSBs if read 32-bit from 0x860 (16-bit for 0x862)
+ pHalData->PHYRegDef[RF_PATH_B].rfintfe = rFPGA0_XB_RFInterfaceOE; // 16 MSBs if read 32-bit from 0x864 (16-bit for 0x866)
//Addr of LSSI. Wirte RF register by driver
- pHalData->PHYRegDef[RF90_PATH_A].rf3wireOffset = rFPGA0_XA_LSSIParameter; //LSSI Parameter
- pHalData->PHYRegDef[RF90_PATH_B].rf3wireOffset = rFPGA0_XB_LSSIParameter;
+ pHalData->PHYRegDef[RF_PATH_A].rf3wireOffset = rFPGA0_XA_LSSIParameter; //LSSI Parameter
+ pHalData->PHYRegDef[RF_PATH_B].rf3wireOffset = rFPGA0_XB_LSSIParameter;
// RF parameter
- pHalData->PHYRegDef[RF90_PATH_A].rfLSSI_Select = rFPGA0_XAB_RFParameter; //BB Band Select
- pHalData->PHYRegDef[RF90_PATH_B].rfLSSI_Select = rFPGA0_XAB_RFParameter;
- pHalData->PHYRegDef[RF90_PATH_C].rfLSSI_Select = rFPGA0_XCD_RFParameter;
- pHalData->PHYRegDef[RF90_PATH_D].rfLSSI_Select = rFPGA0_XCD_RFParameter;
+ pHalData->PHYRegDef[RF_PATH_A].rfLSSI_Select = rFPGA0_XAB_RFParameter; //BB Band Select
+ pHalData->PHYRegDef[RF_PATH_B].rfLSSI_Select = rFPGA0_XAB_RFParameter;
+ pHalData->PHYRegDef[RF_PATH_C].rfLSSI_Select = rFPGA0_XCD_RFParameter;
+ pHalData->PHYRegDef[RF_PATH_D].rfLSSI_Select = rFPGA0_XCD_RFParameter;
// Tx AGC Gain Stage (same for all path. Should we remove this?)
- pHalData->PHYRegDef[RF90_PATH_A].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
- pHalData->PHYRegDef[RF90_PATH_B].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
- pHalData->PHYRegDef[RF90_PATH_C].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
- pHalData->PHYRegDef[RF90_PATH_D].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
+ pHalData->PHYRegDef[RF_PATH_A].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
+ pHalData->PHYRegDef[RF_PATH_B].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
+ pHalData->PHYRegDef[RF_PATH_C].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
+ pHalData->PHYRegDef[RF_PATH_D].rfTxGainStage = rFPGA0_TxGainStage; //Tx gain stage
// Tranceiver A~D HSSI Parameter-1
- pHalData->PHYRegDef[RF90_PATH_A].rfHSSIPara1 = rFPGA0_XA_HSSIParameter1; //wire control parameter1
- pHalData->PHYRegDef[RF90_PATH_B].rfHSSIPara1 = rFPGA0_XB_HSSIParameter1; //wire control parameter1
+ pHalData->PHYRegDef[RF_PATH_A].rfHSSIPara1 = rFPGA0_XA_HSSIParameter1; //wire control parameter1
+ pHalData->PHYRegDef[RF_PATH_B].rfHSSIPara1 = rFPGA0_XB_HSSIParameter1; //wire control parameter1
// Tranceiver A~D HSSI Parameter-2
- pHalData->PHYRegDef[RF90_PATH_A].rfHSSIPara2 = rFPGA0_XA_HSSIParameter2; //wire control parameter2
- pHalData->PHYRegDef[RF90_PATH_B].rfHSSIPara2 = rFPGA0_XB_HSSIParameter2; //wire control parameter2
+ pHalData->PHYRegDef[RF_PATH_A].rfHSSIPara2 = rFPGA0_XA_HSSIParameter2; //wire control parameter2
+ pHalData->PHYRegDef[RF_PATH_B].rfHSSIPara2 = rFPGA0_XB_HSSIParameter2; //wire control parameter2
// RF switch Control
- pHalData->PHYRegDef[RF90_PATH_A].rfSwitchControl = rFPGA0_XAB_SwitchControl; //TR/Ant switch control
- pHalData->PHYRegDef[RF90_PATH_B].rfSwitchControl = rFPGA0_XAB_SwitchControl;
- pHalData->PHYRegDef[RF90_PATH_C].rfSwitchControl = rFPGA0_XCD_SwitchControl;
- pHalData->PHYRegDef[RF90_PATH_D].rfSwitchControl = rFPGA0_XCD_SwitchControl;
+ pHalData->PHYRegDef[RF_PATH_A].rfSwitchControl = rFPGA0_XAB_SwitchControl; //TR/Ant switch control
+ pHalData->PHYRegDef[RF_PATH_B].rfSwitchControl = rFPGA0_XAB_SwitchControl;
+ pHalData->PHYRegDef[RF_PATH_C].rfSwitchControl = rFPGA0_XCD_SwitchControl;
+ pHalData->PHYRegDef[RF_PATH_D].rfSwitchControl = rFPGA0_XCD_SwitchControl;
// AGC control 1
- pHalData->PHYRegDef[RF90_PATH_A].rfAGCControl1 = rOFDM0_XAAGCCore1;
- pHalData->PHYRegDef[RF90_PATH_B].rfAGCControl1 = rOFDM0_XBAGCCore1;
- pHalData->PHYRegDef[RF90_PATH_C].rfAGCControl1 = rOFDM0_XCAGCCore1;
- pHalData->PHYRegDef[RF90_PATH_D].rfAGCControl1 = rOFDM0_XDAGCCore1;
+ pHalData->PHYRegDef[RF_PATH_A].rfAGCControl1 = rOFDM0_XAAGCCore1;
+ pHalData->PHYRegDef[RF_PATH_B].rfAGCControl1 = rOFDM0_XBAGCCore1;
+ pHalData->PHYRegDef[RF_PATH_C].rfAGCControl1 = rOFDM0_XCAGCCore1;
+ pHalData->PHYRegDef[RF_PATH_D].rfAGCControl1 = rOFDM0_XDAGCCore1;
// AGC control 2
- pHalData->PHYRegDef[RF90_PATH_A].rfAGCControl2 = rOFDM0_XAAGCCore2;
- pHalData->PHYRegDef[RF90_PATH_B].rfAGCControl2 = rOFDM0_XBAGCCore2;
- pHalData->PHYRegDef[RF90_PATH_C].rfAGCControl2 = rOFDM0_XCAGCCore2;
- pHalData->PHYRegDef[RF90_PATH_D].rfAGCControl2 = rOFDM0_XDAGCCore2;
+ pHalData->PHYRegDef[RF_PATH_A].rfAGCControl2 = rOFDM0_XAAGCCore2;
+ pHalData->PHYRegDef[RF_PATH_B].rfAGCControl2 = rOFDM0_XBAGCCore2;
+ pHalData->PHYRegDef[RF_PATH_C].rfAGCControl2 = rOFDM0_XCAGCCore2;
+ pHalData->PHYRegDef[RF_PATH_D].rfAGCControl2 = rOFDM0_XDAGCCore2;
// RX AFE control 1
- pHalData->PHYRegDef[RF90_PATH_A].rfRxIQImbalance = rOFDM0_XARxIQImbalance;
- pHalData->PHYRegDef[RF90_PATH_B].rfRxIQImbalance = rOFDM0_XBRxIQImbalance;
- pHalData->PHYRegDef[RF90_PATH_C].rfRxIQImbalance = rOFDM0_XCRxIQImbalance;
- pHalData->PHYRegDef[RF90_PATH_D].rfRxIQImbalance = rOFDM0_XDRxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_A].rfRxIQImbalance = rOFDM0_XARxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_B].rfRxIQImbalance = rOFDM0_XBRxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_C].rfRxIQImbalance = rOFDM0_XCRxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_D].rfRxIQImbalance = rOFDM0_XDRxIQImbalance;
// RX AFE control 1
- pHalData->PHYRegDef[RF90_PATH_A].rfRxAFE = rOFDM0_XARxAFE;
- pHalData->PHYRegDef[RF90_PATH_B].rfRxAFE = rOFDM0_XBRxAFE;
- pHalData->PHYRegDef[RF90_PATH_C].rfRxAFE = rOFDM0_XCRxAFE;
- pHalData->PHYRegDef[RF90_PATH_D].rfRxAFE = rOFDM0_XDRxAFE;
+ pHalData->PHYRegDef[RF_PATH_A].rfRxAFE = rOFDM0_XARxAFE;
+ pHalData->PHYRegDef[RF_PATH_B].rfRxAFE = rOFDM0_XBRxAFE;
+ pHalData->PHYRegDef[RF_PATH_C].rfRxAFE = rOFDM0_XCRxAFE;
+ pHalData->PHYRegDef[RF_PATH_D].rfRxAFE = rOFDM0_XDRxAFE;
// Tx AFE control 1
- pHalData->PHYRegDef[RF90_PATH_A].rfTxIQImbalance = rOFDM0_XATxIQImbalance;
- pHalData->PHYRegDef[RF90_PATH_B].rfTxIQImbalance = rOFDM0_XBTxIQImbalance;
- pHalData->PHYRegDef[RF90_PATH_C].rfTxIQImbalance = rOFDM0_XCTxIQImbalance;
- pHalData->PHYRegDef[RF90_PATH_D].rfTxIQImbalance = rOFDM0_XDTxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_A].rfTxIQImbalance = rOFDM0_XATxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_B].rfTxIQImbalance = rOFDM0_XBTxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_C].rfTxIQImbalance = rOFDM0_XCTxIQImbalance;
+ pHalData->PHYRegDef[RF_PATH_D].rfTxIQImbalance = rOFDM0_XDTxIQImbalance;
// Tx AFE control 2
- pHalData->PHYRegDef[RF90_PATH_A].rfTxAFE = rOFDM0_XATxAFE;
- pHalData->PHYRegDef[RF90_PATH_B].rfTxAFE = rOFDM0_XBTxAFE;
- pHalData->PHYRegDef[RF90_PATH_C].rfTxAFE = rOFDM0_XCTxAFE;
- pHalData->PHYRegDef[RF90_PATH_D].rfTxAFE = rOFDM0_XDTxAFE;
+ pHalData->PHYRegDef[RF_PATH_A].rfTxAFE = rOFDM0_XATxAFE;
+ pHalData->PHYRegDef[RF_PATH_B].rfTxAFE = rOFDM0_XBTxAFE;
+ pHalData->PHYRegDef[RF_PATH_C].rfTxAFE = rOFDM0_XCTxAFE;
+ pHalData->PHYRegDef[RF_PATH_D].rfTxAFE = rOFDM0_XDTxAFE;
// Tranceiver LSSI Readback SI mode
- pHalData->PHYRegDef[RF90_PATH_A].rfLSSIReadBack = rFPGA0_XA_LSSIReadBack;
- pHalData->PHYRegDef[RF90_PATH_B].rfLSSIReadBack = rFPGA0_XB_LSSIReadBack;
- pHalData->PHYRegDef[RF90_PATH_C].rfLSSIReadBack = rFPGA0_XC_LSSIReadBack;
- pHalData->PHYRegDef[RF90_PATH_D].rfLSSIReadBack = rFPGA0_XD_LSSIReadBack;
+ pHalData->PHYRegDef[RF_PATH_A].rfLSSIReadBack = rFPGA0_XA_LSSIReadBack;
+ pHalData->PHYRegDef[RF_PATH_B].rfLSSIReadBack = rFPGA0_XB_LSSIReadBack;
+ pHalData->PHYRegDef[RF_PATH_C].rfLSSIReadBack = rFPGA0_XC_LSSIReadBack;
+ pHalData->PHYRegDef[RF_PATH_D].rfLSSIReadBack = rFPGA0_XD_LSSIReadBack;
// Tranceiver LSSI Readback PI mode
- pHalData->PHYRegDef[RF90_PATH_A].rfLSSIReadBackPi = TransceiverA_HSPI_Readback;
- pHalData->PHYRegDef[RF90_PATH_B].rfLSSIReadBackPi = TransceiverB_HSPI_Readback;
- //pHalData->PHYRegDef[RF90_PATH_C].rfLSSIReadBackPi = rFPGA0_XC_LSSIReadBack;
- //pHalData->PHYRegDef[RF90_PATH_D].rfLSSIReadBackPi = rFPGA0_XD_LSSIReadBack;
+ pHalData->PHYRegDef[RF_PATH_A].rfLSSIReadBackPi = TransceiverA_HSPI_Readback;
+ pHalData->PHYRegDef[RF_PATH_B].rfLSSIReadBackPi = TransceiverB_HSPI_Readback;
+ //pHalData->PHYRegDef[RF_PATH_C].rfLSSIReadBackPi = rFPGA0_XC_LSSIReadBack;
+ //pHalData->PHYRegDef[RF_PATH_D].rfLSSIReadBackPi = rFPGA0_XD_LSSIReadBack;
}
@@ -981,56 +972,38 @@ phy_ConfigBBWithHeaderFile(
//
if(IS_92C_SERIAL(pHalData->VersionID))
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- AGCTAB_ArrayLen = AGCTAB_2TArrayLength;
- Rtl819XAGCTAB_Array_Table = Rtl819XAGCTAB_2TArray;
- PHY_REGArrayLen = PHY_REG_2TArrayLength;
- Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_2TArray;
+ AGCTAB_ArrayLen = AGCTAB_2TArrayLength;
+ Rtl819XAGCTAB_Array_Table = Rtl819XAGCTAB_2TArray;
+ PHY_REGArrayLen = PHY_REG_2TArrayLength;
+ Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_2TArray;
#ifdef CONFIG_USB_HCI
- if(pHalData->BoardType == BOARD_MINICARD )
- {
- PHY_REGArrayLen = PHY_REG_2T_mCardArrayLength;
- Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_2T_mCardArray;
- }
-#endif
- }
- else
+ if(pHalData->BoardType == BOARD_MINICARD )
{
- DBG_8192C(" ===> phy_ConfigBBWithHeaderFile(): do not support test chip\n");
- ret = _FAIL;
- goto exit;
+ PHY_REGArrayLen = PHY_REG_2T_mCardArrayLength;
+ Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_2T_mCardArray;
}
+#endif
}
else
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- AGCTAB_ArrayLen = AGCTAB_1TArrayLength;
- Rtl819XAGCTAB_Array_Table = Rtl819XAGCTAB_1TArray;
- PHY_REGArrayLen = PHY_REG_1TArrayLength;
- Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_1TArray;
+ AGCTAB_ArrayLen = AGCTAB_1TArrayLength;
+ Rtl819XAGCTAB_Array_Table = Rtl819XAGCTAB_1TArray;
+ PHY_REGArrayLen = PHY_REG_1TArrayLength;
+ Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_1TArray;
#ifdef CONFIG_USB_HCI
- if(pHalData->BoardType == BOARD_MINICARD )
- {
- PHY_REGArrayLen = PHY_REG_1T_mCardArrayLength;
- Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_1T_mCardArray;
- }
- else if(pHalData->BoardType == BOARD_USB_High_PA)
- {
- AGCTAB_ArrayLen = AGCTAB_1T_HPArrayLength;
- Rtl819XAGCTAB_Array_Table = Rtl819XAGCTAB_1T_HPArray;
- PHY_REGArrayLen = PHY_REG_1T_HPArrayLength;
- Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_1T_HPArray;
- }
-#endif
+ if(pHalData->BoardType == BOARD_MINICARD )
+ {
+ PHY_REGArrayLen = PHY_REG_1T_mCardArrayLength;
+ Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_1T_mCardArray;
}
- else
+ else if(pHalData->BoardType == BOARD_USB_High_PA)
{
- DBG_8192C(" ===> phy_ConfigBBWithHeaderFile(): do not support test chip\n");
- ret = _FAIL;
- goto exit;
+ AGCTAB_ArrayLen = AGCTAB_1T_HPArrayLength;
+ Rtl819XAGCTAB_Array_Table = Rtl819XAGCTAB_1T_HPArray;
+ PHY_REGArrayLen = PHY_REG_1T_HPArrayLength;
+ Rtl819XPHY_REGArray_Table = Rtl819XPHY_REG_1T_HPArray;
}
+#endif
}
if(ConfigType == BaseBand_Config_PHY_REG)
@@ -1095,7 +1068,7 @@ phy_ConfigBBWithHeaderFile(
PHY_SetBBReg(Adapter, Rtl819XPHY_REGArray_Table[i], bMaskDWord, Rtl819XPHY_REGArray_Table[i+1]);
// Add 1us delay between BB/RF register setting.
- rtw_udelay_os(1);
+ rtw_udelay_os(1);
//RT_TRACE(COMP_INIT, DBG_TRACE, ("The Rtl819XPHY_REGArray_Table[0] is %lx Rtl819XPHY_REGArray[1] is %lx \n",Rtl819XPHY_REGArray_Table[i], Rtl819XPHY_REGArray_Table[i+1]));
}
@@ -1311,31 +1284,23 @@ phy_ConfigBBWithPgHeaderFile(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
// Default: pHalData->RF_Type = RF_2T2R.
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- PHY_REGArrayPGLen = PHY_REG_Array_PGLength;
- Rtl819XPHY_REGArray_Table_PG = Rtl819XPHY_REG_Array_PG;
+ PHY_REGArrayPGLen = PHY_REG_Array_PGLength;
+ Rtl819XPHY_REGArray_Table_PG = Rtl819XPHY_REG_Array_PG;
#ifdef CONFIG_USB_HCI
// 2010/10/19 Chiyoko According to Alex/Willson opinion, VAU/dongle can share the same PHY_REG_PG.txt
/*
- if(pHalData->BoardType == BOARD_MINICARD )
- {
- PHY_REGArrayPGLen = PHY_REG_Array_PG_mCardLength;
- Rtl819XPHY_REGArray_Table_PG = Rtl819XPHY_REG_Array_PG_mCard;
- }
- else */if(pHalData->BoardType ==BOARD_USB_High_PA )
- {
- PHY_REGArrayPGLen = PHY_REG_Array_PG_HPLength;
- Rtl819XPHY_REGArray_Table_PG = Rtl819XPHY_REG_Array_PG_HP;
- }
-#endif
+ if(pHalData->BoardType == BOARD_MINICARD )
+ {
+ PHY_REGArrayPGLen = PHY_REG_Array_PG_mCardLength;
+ Rtl819XPHY_REGArray_Table_PG = Rtl819XPHY_REG_Array_PG_mCard;
}
- else
+ else */if(pHalData->BoardType ==BOARD_USB_High_PA )
{
- DBG_8192C(" ===> phy_ConfigBBWithPgHeaderFile(): do not support test chip\n");
- return _FAIL;
+ PHY_REGArrayPGLen = PHY_REG_Array_PG_HPLength;
+ Rtl819XPHY_REGArray_Table_PG = Rtl819XPHY_REG_Array_PG_HP;
}
+#endif
if(ConfigType == BaseBand_Config_PHY_REG)
{
@@ -1745,7 +1710,7 @@ PHY_BBConfig8192C(
phy_InitBBRFRegisterDefinition(Adapter);
- if(IS_HARDWARE_TYPE_8723(Adapter))
+ if(IS_HARDWARE_TYPE_8723A(Adapter))
{
// Suggested by Scott. tynli_test. 2010.12.30.
//1. 0x28[1] = 1
@@ -1762,6 +1727,9 @@ PHY_BBConfig8192C(
TmpU1B = rtw_read8(Adapter, REG_SYS_FUNC_EN);
rtw_write8(Adapter, REG_SYS_FUNC_EN, (TmpU1B|FEN_BB_GLB_RSTn|FEN_BBRSTB));
+ //undo clock gated
+ rtw_write32(Adapter, rFPGA0_XCD_RFParameter, rtw_read32(Adapter, rFPGA0_XCD_RFParameter)&(~BIT31));
+
//4. 0x25[6] = 0
TmpU1B = rtw_read8(Adapter, REG_AFE_XTAL_CTRL+1);
rtw_write8(Adapter, REG_AFE_XTAL_CTRL+1, (TmpU1B&(~BIT6)));
@@ -1790,24 +1758,16 @@ PHY_BBConfig8192C(
#else
rtw_write8(Adapter, REG_SYS_FUNC_EN, FEN_PPLL|FEN_PCIEA|FEN_DIO_PCIE|FEN_BB_GLB_RSTn|FEN_BBRSTB);
#endif
+
+ //undo clock gated
+ rtw_write32(Adapter, rFPGA0_XCD_RFParameter, rtw_read32(Adapter, rFPGA0_XCD_RFParameter)&(~BIT31));
// 2009/10/21 by SD1 Jong. Modified by tynli. Not in Documented in V8.1.
- if(!IS_NORMAL_CHIP(pHalData->VersionID))
- {
-#ifdef CONFIG_USB_HCI
- rtw_write8(Adapter, REG_LDOHCI12_CTRL, 0x1f);
-#else
- rtw_write8(Adapter, REG_LDOHCI12_CTRL, 0x1b);
-#endif
- }
- else
- {
#ifdef CONFIG_USB_HCI
- //To Fix MAC loopback mode fail. Suggested by SD4 Johnny. 2010.03.23.
- rtw_write8(Adapter, REG_LDOHCI12_CTRL, 0x0f);
- rtw_write8(Adapter, 0x15, 0xe9);
+ //To Fix MAC loopback mode fail. Suggested by SD4 Johnny. 2010.03.23.
+ rtw_write8(Adapter, REG_LDOHCI12_CTRL, 0x0f);
+ rtw_write8(Adapter, 0x15, 0xe9);
#endif
- }
rtw_write8(Adapter, REG_AFE_XTAL_CTRL+1, 0x80);
@@ -1854,50 +1814,6 @@ PHY_BBConfig8192C(
rtw_write8(Adapter, 0xc72, 0x50);
#endif
- // <tynli_note> For fix 8723 WL_TRSW bug. Suggested by Scott. 2011.01.24.
- if(IS_HARDWARE_TYPE_8723(Adapter))
- {
- if(!IS_NORMAL_CHIP(pHalData->VersionID))
- {
- // 1. 0x40[2] = 1
- value8 = rtw_read8(Adapter, REG_GPIO_MUXCFG);
- rtw_write8(Adapter, REG_GPIO_MUXCFG, (value8|BIT2));
-
- // 2. 0x804[14] = 0 // BB disable TRSW control, enable SW control
- PHY_SetBBReg(Adapter, rFPGA0_TxInfo, BIT14, 0x0);
-
- // 3. 0x870[6:5] = 2'b11
- PHY_SetBBReg(Adapter, rFPGA0_XAB_RFInterfaceSW, (BIT5|BIT6), 0x3);
-
- // 4. 0x860[6:5] = 2'b00 // BB SW control TRSW pin output level
- PHY_SetBBReg(Adapter, rFPGA0_XA_RFInterfaceOE, (BIT5|BIT6), 0x0);
- }
- }
-#if 0
- // Check BB/RF confiuration setting.
- // We only need to configure RF which is turned on.
- PathMap = (u1Byte)(PHY_QueryBBReg(Adapter, rFPGA0_TxInfo, 0xf) |
- PHY_QueryBBReg(Adapter, rOFDM0_TRxPathEnable, 0xf));
- pHalData->RF_PathMap = PathMap;
- for(index = 0; index<4; index++)
- {
- if((PathMap>>index)&0x1)
- rf_num++;
- }
-
- if((GET_RF_TYPE(Adapter) ==RF_1T1R && rf_num!=1) ||
- (GET_RF_TYPE(Adapter)==RF_1T2R && rf_num!=2) ||
- (GET_RF_TYPE(Adapter)==RF_2T2R && rf_num!=2) ||
- (GET_RF_TYPE(Adapter)==RF_2T2R_GREEN && rf_num!=2) ||
- (GET_RF_TYPE(Adapter)==RF_2T4R && rf_num!=4))
- {
- RT_TRACE(
- COMP_INIT,
- DBG_LOUD,
- ("PHY_BBConfig8192C: RF_Type(%x) does not match RF_Num(%x)!!\n", pHalData->RF_Type, rf_num));
- }
-#endif
-
return rtStatus;
}
@@ -1946,7 +1862,7 @@ PHY_RFConfig8192C(
*
* Input: PADAPTER Adapter
* ps1Byte pFileName
- * RF90_RADIO_PATH_E eRFPath
+ * RF_RADIO_PATH_E eRFPath
*
* Output: NONE
*
@@ -1958,7 +1874,7 @@ int
rtl8192c_PHY_ConfigRFWithParaFile(
IN PADAPTER Adapter,
IN u8* pFileName,
- RF90_RADIO_PATH_E eRFPath
+ RF_RADIO_PATH_E eRFPath
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@@ -1992,7 +1908,7 @@ u32 Rtl8192S_HighPower_RadioA_Array[HighPowerRadioAArrayLen] = {
int
PHY_ConfigRFExternalPA(
IN PADAPTER Adapter,
- RF90_RADIO_PATH_E eRFPath
+ RF_RADIO_PATH_E eRFPath
)
{
int rtStatus = _SUCCESS;
@@ -2027,7 +1943,7 @@ PHY_ConfigRFExternalPA(
*
* Input: PADAPTER Adapter
* ps1Byte pFileName
- * RF90_RADIO_PATH_E eRFPath
+ * RF_RADIO_PATH_E eRFPath
*
* Output: NONE
*
@@ -2038,7 +1954,7 @@ PHY_ConfigRFExternalPA(
int
rtl8192c_PHY_ConfigRFWithHeaderFile(
IN PADAPTER Adapter,
- RF90_RADIO_PATH_E eRFPath
+ RF_RADIO_PATH_E eRFPath
)
{
@@ -2054,51 +1970,35 @@ rtl8192c_PHY_ConfigRFWithHeaderFile(
//
if(IS_92C_SERIAL(pHalData->VersionID))
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- RadioA_ArrayLen = RadioA_2TArrayLength;
- Rtl819XRadioA_Array_Table = Rtl819XRadioA_2TArray;
- RadioB_ArrayLen = RadioB_2TArrayLength;
- Rtl819XRadioB_Array_Table = Rtl819XRadioB_2TArray;
- }
- else
- {
- rtStatus = _FAIL;
- goto exit;
- }
+ RadioA_ArrayLen = RadioA_2TArrayLength;
+ Rtl819XRadioA_Array_Table = Rtl819XRadioA_2TArray;
+ RadioB_ArrayLen = RadioB_2TArrayLength;
+ Rtl819XRadioB_Array_Table = Rtl819XRadioB_2TArray;
}
else
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- RadioA_ArrayLen = RadioA_1TArrayLength;
- Rtl819XRadioA_Array_Table = Rtl819XRadioA_1TArray;
- RadioB_ArrayLen = RadioB_1TArrayLength;
- Rtl819XRadioB_Array_Table = Rtl819XRadioB_1TArray;
+ RadioA_ArrayLen = RadioA_1TArrayLength;
+ Rtl819XRadioA_Array_Table = Rtl819XRadioA_1TArray;
+ RadioB_ArrayLen = RadioB_1TArrayLength;
+ Rtl819XRadioB_Array_Table = Rtl819XRadioB_1TArray;
#ifdef CONFIG_USB_HCI
- if( BOARD_MINICARD == pHalData->BoardType )
- {
- RadioA_ArrayLen = RadioA_1T_mCardArrayLength;
- Rtl819XRadioA_Array_Table = Rtl819XRadioA_1T_mCardArray;
- RadioB_ArrayLen = RadioB_1T_mCardArrayLength;
- Rtl819XRadioB_Array_Table = Rtl819XRadioB_1T_mCardArray;
- }
- else if( BOARD_USB_High_PA == pHalData->BoardType )
- {
- RadioA_ArrayLen = RadioA_1T_HPArrayLength;
- Rtl819XRadioA_Array_Table = Rtl819XRadioA_1T_HPArray;
- }
-#endif
+ if( BOARD_MINICARD == pHalData->BoardType )
+ {
+ RadioA_ArrayLen = RadioA_1T_mCardArrayLength;
+ Rtl819XRadioA_Array_Table = Rtl819XRadioA_1T_mCardArray;
+ RadioB_ArrayLen = RadioB_1T_mCardArrayLength;
+ Rtl819XRadioB_Array_Table = Rtl819XRadioB_1T_mCardArray;
}
- else
+ else if( BOARD_USB_High_PA == pHalData->BoardType )
{
- rtStatus = _FAIL;
- goto exit;
+ RadioA_ArrayLen = RadioA_1T_HPArrayLength;
+ Rtl819XRadioA_Array_Table = Rtl819XRadioA_1T_HPArray;
}
+#endif
}
switch(eRFPath){
- case RF90_PATH_A:
+ case RF_PATH_A:
#ifdef CONFIG_IOL_RF_RF90_PATH_A
if(rtw_IOL_applied(Adapter))
{
@@ -2169,7 +2069,7 @@ rtl8192c_PHY_ConfigRFWithHeaderFile(
//Add for High Power PA
PHY_ConfigRFExternalPA(Adapter, eRFPath);
break;
- case RF90_PATH_B:
+ case RF_PATH_B:
#ifdef CONFIG_IOL_RF_RF90_PATH_B
if(rtw_IOL_applied(Adapter))
{
@@ -2247,9 +2147,9 @@ rtl8192c_PHY_ConfigRFWithHeaderFile(
}
break;
- case RF90_PATH_C:
+ case RF_PATH_C:
break;
- case RF90_PATH_D:
+ case RF_PATH_D:
break;
}
@@ -2267,7 +2167,7 @@ exit:
*
* Input: PADAPTER Adapter
* HW90_BLOCK_E CheckBlock
- * RF90_RADIO_PATH_E eRFPath // it is used only when CheckBlock is HW90_BLOCK_RF
+ * RF_RADIO_PATH_E eRFPath // it is used only when CheckBlock is HW90_BLOCK_RF
*
* Output: NONE
*
@@ -2279,7 +2179,7 @@ int
PHY_CheckBBAndRFOK(
IN PADAPTER Adapter,
IN HW90_BLOCK_E CheckBlock,
- IN RF90_RADIO_PATH_E eRFPath
+ IN RF_RADIO_PATH_E eRFPath
)
{
int rtStatus = _SUCCESS;
@@ -2534,21 +2434,21 @@ static void getTxPowerIndex(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
u8 index = (channel -1);
// 1. CCK
- cckPowerLevel[RF90_PATH_A] = pHalData->TxPwrLevelCck[RF90_PATH_A][index]; //RF-A
- cckPowerLevel[RF90_PATH_B] = pHalData->TxPwrLevelCck[RF90_PATH_B][index]; //RF-B
+ cckPowerLevel[RF_PATH_A] = pHalData->TxPwrLevelCck[RF_PATH_A][index]; //RF-A
+ cckPowerLevel[RF_PATH_B] = pHalData->TxPwrLevelCck[RF_PATH_B][index]; //RF-B
// 2. OFDM for 1S or 2S
if (GET_RF_TYPE(Adapter) == RF_1T2R || GET_RF_TYPE(Adapter) == RF_1T1R)
{
// Read HT 40 OFDM TX power
- ofdmPowerLevel[RF90_PATH_A] = pHalData->TxPwrLevelHT40_1S[RF90_PATH_A][index];
- ofdmPowerLevel[RF90_PATH_B] = pHalData->TxPwrLevelHT40_1S[RF90_PATH_B][index];
+ ofdmPowerLevel[RF_PATH_A] = pHalData->TxPwrLevelHT40_1S[RF_PATH_A][index];
+ ofdmPowerLevel[RF_PATH_B] = pHalData->TxPwrLevelHT40_1S[RF_PATH_B][index];
}
else if (GET_RF_TYPE(Adapter) == RF_2T2R)
{
// Read HT 40 OFDM TX power
- ofdmPowerLevel[RF90_PATH_A] = pHalData->TxPwrLevelHT40_2S[RF90_PATH_A][index];
- ofdmPowerLevel[RF90_PATH_B] = pHalData->TxPwrLevelHT40_2S[RF90_PATH_B][index];
+ ofdmPowerLevel[RF_PATH_A] = pHalData->TxPwrLevelHT40_2S[RF_PATH_A][index];
+ ofdmPowerLevel[RF_PATH_B] = pHalData->TxPwrLevelHT40_2S[RF_PATH_B][index];
}
//RTPRINT(FPHY, PHY_TXPWR, ("Channel-%d, set tx power index !!\n", channel));
}
@@ -2769,13 +2669,13 @@ PHY_ScanOperationBackup8192C(
{
case SCAN_OPT_BACKUP:
IoType = IO_CMD_PAUSE_DM_BY_SCAN;
- Adapter->HalFunc.SetHwRegHandler(Adapter,HW_VAR_IO_CMD, (pu1Byte)&IoType);
+ rtw_hal_set_hwreg(Adapter,HW_VAR_IO_CMD, (pu1Byte)&IoType);
break;
case SCAN_OPT_RESTORE:
IoType = IO_CMD_RESUME_DM_BY_SCAN;
- Adapter->HalFunc.SetHwRegHandler(Adapter,HW_VAR_IO_CMD, (pu1Byte)&IoType);
+ rtw_hal_set_hwreg(Adapter,HW_VAR_IO_CMD, (pu1Byte)&IoType);
break;
default:
@@ -2845,7 +2745,7 @@ _PHY_SetBWMode92C(
regBwOpMode = rtw_read8(Adapter, REG_BWOPMODE);
regRRSR_RSC = rtw_read8(Adapter, REG_RRSR+2);
- //regBwOpMode = Adapter->HalFunc.GetHwRegHandler(Adapter,HW_VAR_BWMODE,(pu1Byte)&regBwOpMode);
+ //regBwOpMode = rtw_hal_get_hwreg(Adapter,HW_VAR_BWMODE,(pu1Byte)&regBwOpMode);
switch(pHalData->CurrentChannelBW)
{
@@ -3041,6 +2941,11 @@ static void _PHY_SwChnl8192C(PADAPTER Adapter, u8 channel)
u32 param1, param2;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
+ if ( Adapter->bNotifyChannelChange )
+ {
+ DBG_871X( "[%s] ch = %d\n", __FUNCTION__, channel );
+ }
+
//s1. pre common command - CmdID_SetTxPowerLevel
PHY_SetTxPowerLevel8192C(Adapter, channel);
@@ -3050,7 +2955,7 @@ static void _PHY_SwChnl8192C(PADAPTER Adapter, u8 channel)
for(eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
{
pHalData->RfRegChnlVal[eRFPath] = ((pHalData->RfRegChnlVal[eRFPath] & 0xfffffc00) | param2);
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, param1, bRFRegOffsetMask, pHalData->RfRegChnlVal[eRFPath]);
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, param1, bRFRegOffsetMask, pHalData->RfRegChnlVal[eRFPath]);
}
@@ -3184,7 +3089,7 @@ phy_SwChnlStepByStep(
pChnlAccessSetting = &Adapter->MgntInfo.Info8185.ChannelAccessSetting;
RT_ASSERT((pChnlAccessSetting != NULL), ("pChnlAccessSetting should not be NULL\n"));
- //for(eRFPath = RF90_PATH_A; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
+ //for(eRFPath = RF_PATH_A; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
//for(eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
//{
// <1> Fill up pre common command.
@@ -3292,9 +3197,9 @@ phy_SwChnlStepByStep(
{
#if 1
pHalData->RfRegChnlVal[eRFPath] = ((pHalData->RfRegChnlVal[eRFPath] & 0xfffffc00) | CurrentCmd->Para2);
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, CurrentCmd->Para1, bRFRegOffsetMask, pHalData->RfRegChnlVal[eRFPath]);
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, CurrentCmd->Para1, bRFRegOffsetMask, pHalData->RfRegChnlVal[eRFPath]);
#else
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, CurrentCmd->Para1, bRFRegOffsetMask, (CurrentCmd->Para2));
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, CurrentCmd->Para1, bRFRegOffsetMask, (CurrentCmd->Para2));
#endif
}
break;
@@ -3441,7 +3346,7 @@ PHY_SetMonitorMode8192C(
pHalData->bInMonitorMode = TRUE;
pAdapter->HalFunc.AllowAllDestAddrHandler(pAdapter, TRUE, TRUE);
- pAdapter->HalFunc.SetHwRegHandler(pAdapter, HW_VAR_CHECK_BSSID, (pu1Byte)&bFilterOutNonAssociatedBSSID);
+ rtw_hal_set_hwreg(pAdapter, HW_VAR_CHECK_BSSID, (pu1Byte)&bFilterOutNonAssociatedBSSID);
}
else
{
@@ -3450,7 +3355,7 @@ PHY_SetMonitorMode8192C(
pAdapter->HalFunc.AllowAllDestAddrHandler(pAdapter, FALSE, TRUE);
pHalData->bInMonitorMode = FALSE;
- pAdapter->HalFunc.SetHwRegHandler(pAdapter, HW_VAR_CHECK_BSSID, (pu1Byte)&bFilterOutNonAssociatedBSSID);
+ rtw_hal_set_hwreg(pAdapter, HW_VAR_CHECK_BSSID, (pu1Byte)&bFilterOutNonAssociatedBSSID);
}
#endif
}
@@ -3483,11 +3388,11 @@ PHY_CheckIsLegalRfPath8192C(
// NOt check RF Path now.!
#if 0
- if (pHalData->RF_Type == RF_1T2R && eRFPath != RF90_PATH_A)
+ if (pHalData->RF_Type == RF_1T2R && eRFPath != RF_PATH_A)
{
rtValue = FALSE;
}
- if (pHalData->RF_Type == RF_1T2R && eRFPath != RF90_PATH_A)
+ if (pHalData->RF_Type == RF_1T2R && eRFPath != RF_PATH_A)
{
}
@@ -3512,48 +3417,49 @@ _PHY_PathA_IQK(
{
u32 regEAC, regE94, regE9C, regEA4;
u8 result = 0x00;
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
//RTPRINT(FINIT, INIT_IQK, ("Path A IQK!\n"));
//path-A IQK setting
//RTPRINT(FINIT, INIT_IQK, ("Path-A IQK setting!\n"));
- PHY_SetBBReg(pAdapter, 0xe30, bMaskDWord, 0x10008c1f);
- PHY_SetBBReg(pAdapter, 0xe34, bMaskDWord, 0x10008c1f);
- PHY_SetBBReg(pAdapter, 0xe38, bMaskDWord, 0x82140102);
+ PHY_SetBBReg(pAdapter, rTx_IQK_Tone_A, bMaskDWord, 0x10008c1f);
+ PHY_SetBBReg(pAdapter, rRx_IQK_Tone_A, bMaskDWord, 0x10008c1f);
+ PHY_SetBBReg(pAdapter, rTx_IQK_PI_A, bMaskDWord, 0x82140102);
- PHY_SetBBReg(pAdapter, 0xe3c, bMaskDWord, configPathB ? 0x28160202 : 0x28160502);
+ PHY_SetBBReg(pAdapter, rRx_IQK_PI_A, bMaskDWord, configPathB ? 0x28160202 :
+ IS_81xxC_VENDOR_UMC_B_CUT(pHalData->VersionID)?0x28160202:0x28160502);
-#if 1
//path-B IQK setting
if(configPathB)
{
- PHY_SetBBReg(pAdapter, 0xe50, bMaskDWord, 0x10008c22);
- PHY_SetBBReg(pAdapter, 0xe54, bMaskDWord, 0x10008c22);
- PHY_SetBBReg(pAdapter, 0xe58, bMaskDWord, 0x82140102);
- PHY_SetBBReg(pAdapter, 0xe5c, bMaskDWord, 0x28160202);
+ PHY_SetBBReg(pAdapter, rTx_IQK_Tone_B, bMaskDWord, 0x10008c22);
+ PHY_SetBBReg(pAdapter, rRx_IQK_Tone_B, bMaskDWord, 0x10008c22);
+ PHY_SetBBReg(pAdapter, rTx_IQK_PI_B, bMaskDWord, 0x82140102);
+ PHY_SetBBReg(pAdapter, rRx_IQK_PI_B, bMaskDWord, 0x28160202);
}
-#endif
+
//LO calibration setting
//RTPRINT(FINIT, INIT_IQK, ("LO calibration setting!\n"));
- PHY_SetBBReg(pAdapter, 0xe4c, bMaskDWord, 0x001028d1);
+ PHY_SetBBReg(pAdapter, rIQK_AGC_Rsp, bMaskDWord, 0x001028d1);
//One shot, path A LOK & IQK
//RTPRINT(FINIT, INIT_IQK, ("One shot, path A LOK & IQK!\n"));
- PHY_SetBBReg(pAdapter, 0xe48, bMaskDWord, 0xf9000000);
- PHY_SetBBReg(pAdapter, 0xe48, bMaskDWord, 0xf8000000);
+ PHY_SetBBReg(pAdapter, rIQK_AGC_Pts, bMaskDWord, 0xf9000000);
+ PHY_SetBBReg(pAdapter, rIQK_AGC_Pts, bMaskDWord, 0xf8000000);
// delay x ms
//RTPRINT(FINIT, INIT_IQK, ("Delay %d ms for One shot, path A LOK & IQK.\n", IQK_DELAY_TIME));
rtw_udelay_os(IQK_DELAY_TIME*1000);//PlatformStallExecution(IQK_DELAY_TIME*1000);
// Check failed
- regEAC = PHY_QueryBBReg(pAdapter, 0xeac, bMaskDWord);
+ regEAC = PHY_QueryBBReg(pAdapter, rRx_Power_After_IQK_A_2, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xeac = 0x%x\n", regEAC));
- regE94 = PHY_QueryBBReg(pAdapter, 0xe94, bMaskDWord);
+ regE94 = PHY_QueryBBReg(pAdapter, rTx_Power_Before_IQK_A, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xe94 = 0x%x\n", regE94));
- regE9C= PHY_QueryBBReg(pAdapter, 0xe9c, bMaskDWord);
+ regE9C= PHY_QueryBBReg(pAdapter, rTx_Power_After_IQK_A, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xe9c = 0x%x\n", regE9C));
- regEA4= PHY_QueryBBReg(pAdapter, 0xea4, bMaskDWord);
+ regEA4= PHY_QueryBBReg(pAdapter, rRx_Power_Before_IQK_A_2, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xea4 = 0x%x\n", regEA4));
if(!(regEAC & BIT28) &&
@@ -3583,37 +3489,26 @@ _PHY_PathB_IQK(
u32 regEAC, regEB4, regEBC, regEC4, regECC;
u8 result = 0x00;
//RTPRINT(FINIT, INIT_IQK, ("Path B IQK!\n"));
-#if 0
- //path-B IQK setting
- RTPRINT(FINIT, INIT_IQK, ("Path-B IQK setting!\n"));
- PHY_SetBBReg(pAdapter, 0xe50, bMaskDWord, 0x10008c22);
- PHY_SetBBReg(pAdapter, 0xe54, bMaskDWord, 0x10008c22);
- PHY_SetBBReg(pAdapter, 0xe58, bMaskDWord, 0x82140102);
- PHY_SetBBReg(pAdapter, 0xe5c, bMaskDWord, 0x28160202);
- //LO calibration setting
- RTPRINT(FINIT, INIT_IQK, ("LO calibration setting!\n"));
- PHY_SetBBReg(pAdapter, 0xe4c, bMaskDWord, 0x001028d1);
-#endif
//One shot, path B LOK & IQK
//RTPRINT(FINIT, INIT_IQK, ("One shot, path A LOK & IQK!\n"));
- PHY_SetBBReg(pAdapter, 0xe60, bMaskDWord, 0x00000002);
- PHY_SetBBReg(pAdapter, 0xe60, bMaskDWord, 0x00000000);
+ PHY_SetBBReg(pAdapter, rIQK_AGC_Cont, bMaskDWord, 0x00000002);
+ PHY_SetBBReg(pAdapter, rIQK_AGC_Cont, bMaskDWord, 0x00000000);
// delay x ms
//RTPRINT(FINIT, INIT_IQK, ("Delay %d ms for One shot, path B LOK & IQK.\n", IQK_DELAY_TIME));
rtw_udelay_os(IQK_DELAY_TIME*1000);//PlatformStallExecution(IQK_DELAY_TIME*1000);
// Check failed
- regEAC = PHY_QueryBBReg(pAdapter, 0xeac, bMaskDWord);
+ regEAC = PHY_QueryBBReg(pAdapter, rRx_Power_After_IQK_A_2, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xeac = 0x%x\n", regEAC));
- regEB4 = PHY_QueryBBReg(pAdapter, 0xeb4, bMaskDWord);
+ regEB4 = PHY_QueryBBReg(pAdapter, rTx_Power_Before_IQK_B, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xeb4 = 0x%x\n", regEB4));
- regEBC= PHY_QueryBBReg(pAdapter, 0xebc, bMaskDWord);
+ regEBC= PHY_QueryBBReg(pAdapter, rTx_Power_After_IQK_B, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xebc = 0x%x\n", regEBC));
- regEC4= PHY_QueryBBReg(pAdapter, 0xec4, bMaskDWord);
+ regEC4= PHY_QueryBBReg(pAdapter, rRx_Power_Before_IQK_B_2, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xec4 = 0x%x\n", regEC4));
- regECC= PHY_QueryBBReg(pAdapter, 0xecc, bMaskDWord);
+ regECC= PHY_QueryBBReg(pAdapter, rRx_Power_After_IQK_B_2, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("0xecc = 0x%x\n", regECC));
if(!(regEAC & BIT31) &&
@@ -3638,15 +3533,15 @@ _PHY_PathB_IQK(
static VOID
_PHY_PathAFillIQKMatrix(
IN PADAPTER pAdapter,
- IN BOOLEAN bIQKOK,
- IN int result[][8],
- IN u8 final_candidate,
- IN BOOLEAN bTxOnly
+ IN BOOLEAN bIQKOK,
+ IN int result[][8],
+ IN u8 final_candidate,
+ IN BOOLEAN bTxOnly
)
{
u32 Oldval_0, X, TX0_A, reg;
- int Y, TX0_C;
-
+ s32 Y, TX0_C;
+
DBG_8192C("Path A IQ Calibration %s !\n",(bIQKOK)?"Success":"Failed");
if(final_candidate == 0xFF)
@@ -3657,7 +3552,7 @@ _PHY_PathAFillIQKMatrix(
X = result[final_candidate][0];
if ((X & 0x00000200) != 0)
- X = X | 0xFFFFFC00;
+ X = X | 0xFFFFFC00;
TX0_A = (X * Oldval_0) >> 8;
//RTPRINT(FINIT, INIT_IQK, ("X = 0x%lx, TX0_A = 0x%lx, Oldval_0 0x%lx\n", X, TX0_A, Oldval_0));
PHY_SetBBReg(pAdapter, rOFDM0_XATxIQImbalance, 0x3FF, TX0_A);
@@ -3665,7 +3560,7 @@ _PHY_PathAFillIQKMatrix(
Y = result[final_candidate][1];
if ((Y & 0x00000200) != 0)
- Y = Y | 0xFFFFFC00;
+ Y = Y | 0xFFFFFC00;
TX0_C = (Y * Oldval_0) >> 8;
//RTPRINT(FINIT, INIT_IQK, ("Y = 0x%lx, TX = 0x%lx\n", Y, TX0_C));
PHY_SetBBReg(pAdapter, rOFDM0_XCTxAFE, 0xF0000000, ((TX0_C&0x3C0)>>6));
@@ -3680,26 +3575,26 @@ _PHY_PathAFillIQKMatrix(
reg = result[final_candidate][2];
PHY_SetBBReg(pAdapter, rOFDM0_XARxIQImbalance, 0x3FF, reg);
-
+
reg = result[final_candidate][3] & 0x3F;
PHY_SetBBReg(pAdapter, rOFDM0_XARxIQImbalance, 0xFC00, reg);
reg = (result[final_candidate][3] >> 6) & 0xF;
- PHY_SetBBReg(pAdapter, 0xca0, 0xF0000000, reg);
+ PHY_SetBBReg(pAdapter, rOFDM0_RxIQExtAnta, 0xF0000000, reg);
}
}
static VOID
_PHY_PathBFillIQKMatrix(
IN PADAPTER pAdapter,
- IN BOOLEAN bIQKOK,
- IN int result[][8],
- IN u8 final_candidate,
+ IN BOOLEAN bIQKOK,
+ IN int result[][8],
+ IN u8 final_candidate,
IN BOOLEAN bTxOnly //do Tx only
)
{
u32 Oldval_1, X, TX1_A, reg;
- int Y, TX1_C;
+ s32 Y, TX1_C;
DBG_8192C("Path B IQ Calibration %s !\n",(bIQKOK)?"Success":"Failed");
@@ -3731,7 +3626,7 @@ _PHY_PathBFillIQKMatrix(
reg = result[final_candidate][6];
PHY_SetBBReg(pAdapter, rOFDM0_XBRxIQImbalance, 0x3FF, reg);
-
+
reg = result[final_candidate][7] & 0x3F;
PHY_SetBBReg(pAdapter, rOFDM0_XBRxIQImbalance, 0xFC00, reg);
@@ -3860,9 +3755,9 @@ _PHY_PathAStandBy(
{
//RTPRINT(FINIT, INIT_IQK, ("Path-A standby mode!\n"));
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x0);
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x0);
PHY_SetBBReg(pAdapter, 0x840, bMaskDWord, 0x00010000);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x80800000);
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x80800000);
}
static VOID
@@ -3915,7 +3810,7 @@ _PHY_SimularityCompare(
else if (result[c2][i]+result[c2][i+1] == 0)
final_candidate[(i/4)] = c1;
else
- SimularityBitMap = SimularityBitMap|(1<<i);
+ SimularityBitMap = SimularityBitMap|(1<<i);
}
else
SimularityBitMap = SimularityBitMap|(1<<i);
@@ -3964,17 +3859,26 @@ _PHY_IQCalibrate(
struct dm_priv *pdmpriv = &pHalData->dmpriv;
u32 i;
u8 PathAOK, PathBOK;
- u32 ADDA_REG[IQK_ADDA_REG_NUM] = { 0x85c, 0xe6c, 0xe70, 0xe74,
- 0xe78, 0xe7c, 0xe80, 0xe84,
- 0xe88, 0xe8c, 0xed0, 0xed4,
- 0xed8, 0xedc, 0xee0, 0xeec };
-
- u32 IQK_MAC_REG[IQK_MAC_REG_NUM] = {0x522, 0x550, 0x551,0x040};
-
- u32 IQK_BB_REG[IQK_BB_REG_NUM] = {
- 0xc04, 0xc08, 0x874, 0xb68, 0xb6c,
- 0x870, 0x860, 0x864, 0x800
- };
+ u32 ADDA_REG[IQK_ADDA_REG_NUM] = {
+ rFPGA0_XCD_SwitchControl, rBlue_Tooth,
+ rRx_Wait_CCA, rTx_CCK_RFON,
+ rTx_CCK_BBON, rTx_OFDM_RFON,
+ rTx_OFDM_BBON, rTx_To_Rx,
+ rTx_To_Tx, rRx_CCK,
+ rRx_OFDM, rRx_Wait_RIFS,
+ rRx_TO_Rx, rStandby,
+ rSleep, rPMPD_ANAEN };
+
+ u32 IQK_MAC_REG[IQK_MAC_REG_NUM] = {
+ REG_TXPAUSE, REG_BCN_CTRL,
+ REG_BCN_CTRL_1, REG_GPIO_MUXCFG};
+
+ u32 IQK_BB_REG_92C[IQK_BB_REG_NUM] = {
+ rOFDM0_TRxPathEnable, rOFDM0_TRMuxPar,
+ rFPGA0_XCD_RFInterfaceSW, rConfig_AntA, rConfig_AntB,
+ rFPGA0_XAB_RFInterfaceSW, rFPGA0_XA_RFInterfaceOE,
+ rFPGA0_XB_RFInterfaceOE, rFPGA0_RFMOD
+ };
#if MP_DRIVER
const u32 retryCount = 9;
@@ -3986,11 +3890,10 @@ _PHY_IQCalibrate(
// PHY_REG.txt , and radio_a, radio_b.txt
u32 bbvalue;
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
if(t==0)
{
- bbvalue = PHY_QueryBBReg(pAdapter, 0x800, bMaskDWord);
+ bbvalue = PHY_QueryBBReg(pAdapter, rFPGA0_RFMOD, bMaskDWord);
//RTPRINT(FINIT, INIT_IQK, ("PHY_IQCalibrate()==>0x%08lx\n",bbvalue));
//RTPRINT(FINIT, INIT_IQK, ("IQ Calibration for %s\n", (is2T ? "2T2R" : "1T1R")));
@@ -3998,7 +3901,7 @@ _PHY_IQCalibrate(
// Save ADDA parameters, turn Path A ADDA on
_PHY_SaveADDARegisters(pAdapter, ADDA_REG, pdmpriv->ADDA_backup,IQK_ADDA_REG_NUM);
_PHY_SaveMACRegisters(pAdapter, IQK_MAC_REG, pdmpriv->IQK_MAC_backup);
- _PHY_SaveADDARegisters(pAdapter, IQK_BB_REG, pdmpriv->IQK_BB_backup, IQK_BB_REG_NUM);
+ _PHY_SaveADDARegisters(pAdapter, IQK_BB_REG_92C, pdmpriv->IQK_BB_backup, IQK_BB_REG_NUM);
}
_PHY_PathADDAOn(pAdapter, ADDA_REG, _TRUE, is2T);
@@ -4012,60 +3915,54 @@ _PHY_IQCalibrate(
_PHY_PIModeSwitch(pAdapter, _TRUE);
}
- PHY_SetBBReg(pAdapter, 0x800, BIT24, 0x00);
- PHY_SetBBReg(pAdapter, 0xc04, bMaskDWord, 0x03a05600);
- PHY_SetBBReg(pAdapter, 0xc08, bMaskDWord, 0x000800e4);
- PHY_SetBBReg(pAdapter, 0x874, bMaskDWord, 0x22204000);
- PHY_SetBBReg(pAdapter, 0x870, BIT10, 0x01);
- PHY_SetBBReg(pAdapter, 0x870, BIT26, 0x01);
- PHY_SetBBReg(pAdapter, 0x860, BIT10, 0x00);
- PHY_SetBBReg(pAdapter, 0x864, BIT10, 0x00);
+ PHY_SetBBReg(pAdapter, rFPGA0_RFMOD, BIT24, 0x00);
+ PHY_SetBBReg(pAdapter, rOFDM0_TRxPathEnable, bMaskDWord, 0x03a05600);
+ PHY_SetBBReg(pAdapter, rOFDM0_TRMuxPar, bMaskDWord, 0x000800e4);
+ PHY_SetBBReg(pAdapter, rFPGA0_XCD_RFInterfaceSW, bMaskDWord, 0x22204000);
+ PHY_SetBBReg(pAdapter, rFPGA0_XAB_RFInterfaceSW, BIT10, 0x01);
+ PHY_SetBBReg(pAdapter, rFPGA0_XAB_RFInterfaceSW, BIT26, 0x01);
+ PHY_SetBBReg(pAdapter, rFPGA0_XA_RFInterfaceOE, BIT10, 0x00);
+ PHY_SetBBReg(pAdapter, rFPGA0_XB_RFInterfaceOE, BIT10, 0x00);
if(is2T)
{
- PHY_SetBBReg(pAdapter, 0x840, bMaskDWord, 0x00010000);
- PHY_SetBBReg(pAdapter, 0x844, bMaskDWord, 0x00010000);
+ PHY_SetBBReg(pAdapter, rFPGA0_XA_LSSIParameter, bMaskDWord, 0x00010000);
+ PHY_SetBBReg(pAdapter, rFPGA0_XB_LSSIParameter, bMaskDWord, 0x00010000);
}
//MAC settings
_PHY_MACSettingCalibration(pAdapter, IQK_MAC_REG, pdmpriv->IQK_MAC_backup);
//Page B init
- if(isNormal)
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x00080000);
- else
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x0f600000);
+ PHY_SetBBReg(pAdapter, rConfig_AntA, bMaskDWord, 0x00080000);
if(is2T)
{
- if(isNormal)
- PHY_SetBBReg(pAdapter, 0xb6c, bMaskDWord, 0x00080000);
- else
- PHY_SetBBReg(pAdapter, 0xb6c, bMaskDWord, 0x0f600000);
+ PHY_SetBBReg(pAdapter, rConfig_AntB, bMaskDWord, 0x00080000);
}
// IQ calibration setting
//RTPRINT(FINIT, INIT_IQK, ("IQK setting!\n"));
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x80800000);
- PHY_SetBBReg(pAdapter, 0xe40, bMaskDWord, 0x01007c00);
- PHY_SetBBReg(pAdapter, 0xe44, bMaskDWord, 0x01004800);
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x80800000);
+ PHY_SetBBReg(pAdapter, rTx_IQK, bMaskDWord, 0x01007c00);
+ PHY_SetBBReg(pAdapter, rRx_IQK, bMaskDWord, 0x01004800);
for(i = 0 ; i < retryCount ; i++){
PathAOK = _PHY_PathA_IQK(pAdapter, is2T);
if(PathAOK == 0x03){
DBG_8192C("Path A IQK Success!!\n");
- result[t][0] = (PHY_QueryBBReg(pAdapter, 0xe94, bMaskDWord)&0x3FF0000)>>16;
- result[t][1] = (PHY_QueryBBReg(pAdapter, 0xe9c, bMaskDWord)&0x3FF0000)>>16;
- result[t][2] = (PHY_QueryBBReg(pAdapter, 0xea4, bMaskDWord)&0x3FF0000)>>16;
- result[t][3] = (PHY_QueryBBReg(pAdapter, 0xeac, bMaskDWord)&0x3FF0000)>>16;
+ result[t][0] = (PHY_QueryBBReg(pAdapter, rTx_Power_Before_IQK_A, bMaskDWord)&0x3FF0000)>>16;
+ result[t][1] = (PHY_QueryBBReg(pAdapter, rTx_Power_After_IQK_A, bMaskDWord)&0x3FF0000)>>16;
+ result[t][2] = (PHY_QueryBBReg(pAdapter, rRx_Power_Before_IQK_A_2, bMaskDWord)&0x3FF0000)>>16;
+ result[t][3] = (PHY_QueryBBReg(pAdapter, rRx_Power_After_IQK_A_2, bMaskDWord)&0x3FF0000)>>16;
break;
}
else if (i == (retryCount-1) && PathAOK == 0x01) //Tx IQK OK
{
DBG_8192C("Path A IQK Only Tx Success!!\n");
- result[t][0] = (PHY_QueryBBReg(pAdapter, 0xe94, bMaskDWord)&0x3FF0000)>>16;
- result[t][1] = (PHY_QueryBBReg(pAdapter, 0xe9c, bMaskDWord)&0x3FF0000)>>16;
+ result[t][0] = (PHY_QueryBBReg(pAdapter, rTx_Power_Before_IQK_A, bMaskDWord)&0x3FF0000)>>16;
+ result[t][1] = (PHY_QueryBBReg(pAdapter, rTx_Power_After_IQK_A, bMaskDWord)&0x3FF0000)>>16;
}
}
@@ -4083,17 +3980,17 @@ _PHY_IQCalibrate(
PathBOK = _PHY_PathB_IQK(pAdapter);
if(PathBOK == 0x03){
DBG_8192C("Path B IQK Success!!\n");
- result[t][4] = (PHY_QueryBBReg(pAdapter, 0xeb4, bMaskDWord)&0x3FF0000)>>16;
- result[t][5] = (PHY_QueryBBReg(pAdapter, 0xebc, bMaskDWord)&0x3FF0000)>>16;
- result[t][6] = (PHY_QueryBBReg(pAdapter, 0xec4, bMaskDWord)&0x3FF0000)>>16;
- result[t][7] = (PHY_QueryBBReg(pAdapter, 0xecc, bMaskDWord)&0x3FF0000)>>16;
+ result[t][4] = (PHY_QueryBBReg(pAdapter, rTx_Power_Before_IQK_B, bMaskDWord)&0x3FF0000)>>16;
+ result[t][5] = (PHY_QueryBBReg(pAdapter, rTx_Power_After_IQK_B, bMaskDWord)&0x3FF0000)>>16;
+ result[t][6] = (PHY_QueryBBReg(pAdapter, rRx_Power_Before_IQK_B_2, bMaskDWord)&0x3FF0000)>>16;
+ result[t][7] = (PHY_QueryBBReg(pAdapter, rRx_Power_After_IQK_B_2, bMaskDWord)&0x3FF0000)>>16;
break;
}
else if (i == (retryCount - 1) && PathBOK == 0x01) //Tx IQK OK
{
DBG_8192C("Path B Only Tx IQK Success!!\n");
- result[t][4] = (PHY_QueryBBReg(pAdapter, 0xeb4, bMaskDWord)&0x3FF0000)>>16;
- result[t][5] = (PHY_QueryBBReg(pAdapter, 0xebc, bMaskDWord)&0x3FF0000)>>16;
+ result[t][4] = (PHY_QueryBBReg(pAdapter, rTx_Power_Before_IQK_B, bMaskDWord)&0x3FF0000)>>16;
+ result[t][5] = (PHY_QueryBBReg(pAdapter, rTx_Power_After_IQK_B, bMaskDWord)&0x3FF0000)>>16;
}
}
@@ -4104,7 +4001,7 @@ _PHY_IQCalibrate(
//Back to BB mode, load original value
//RTPRINT(FINIT, INIT_IQK, ("IQK:Back to BB mode, load original value!\n"));
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0);
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0);
if(t!=0)
{
@@ -4120,17 +4017,17 @@ _PHY_IQCalibrate(
_PHY_ReloadMACRegisters(pAdapter, IQK_MAC_REG, pdmpriv->IQK_MAC_backup);
// Reload BB parameters
- _PHY_ReloadADDARegisters(pAdapter, IQK_BB_REG, pdmpriv->IQK_BB_backup, IQK_BB_REG_NUM);
+ _PHY_ReloadADDARegisters(pAdapter, IQK_BB_REG_92C, pdmpriv->IQK_BB_backup, IQK_BB_REG_NUM);
// Restore RX initial gain
- PHY_SetBBReg(pAdapter, 0x840, bMaskDWord, 0x00032ed3);
+ PHY_SetBBReg(pAdapter, rFPGA0_XA_LSSIParameter, bMaskDWord, 0x00032ed3);
if(is2T){
- PHY_SetBBReg(pAdapter, 0x844, bMaskDWord, 0x00032ed3);
+ PHY_SetBBReg(pAdapter, rFPGA0_XB_LSSIParameter, bMaskDWord, 0x00032ed3);
}
//load 0xe30 IQC default value
- PHY_SetBBReg(pAdapter, 0xe30, bMaskDWord, 0x01008c00);
- PHY_SetBBReg(pAdapter, 0xe34, bMaskDWord, 0x01008c00);
+ PHY_SetBBReg(pAdapter, rTx_IQK_Tone_A, bMaskDWord, 0x01008c00);
+ PHY_SetBBReg(pAdapter, rRx_IQK_Tone_A, bMaskDWord, 0x01008c00);
}
//RTPRINT(FINIT, INIT_IQK, ("_PHY_IQCalibrate() <==\n"));
@@ -4146,8 +4043,6 @@ _PHY_LCCalibrate(
{
u8 tmpReg;
u32 RF_Amode = 0, RF_Bmode = 0, LC_Cal;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
//Check continuous TX and Packet TX
tmpReg = rtw_read8(pAdapter, 0xd03);
@@ -4161,47 +4056,43 @@ _PHY_LCCalibrate(
{
//1. Read original RF mode
//Path-A
- RF_Amode = PHY_QueryRFReg(pAdapter, RF90_PATH_A, 0x00, bMask12Bits);
+ RF_Amode = PHY_QueryRFReg(pAdapter, RF_PATH_A, RF_AC, bMask12Bits);
//Path-B
if(is2T)
- RF_Bmode = PHY_QueryRFReg(pAdapter, RF90_PATH_B, 0x00, bMask12Bits);
+ RF_Bmode = PHY_QueryRFReg(pAdapter, RF_PATH_B, RF_AC, bMask12Bits);
//2. Set RF mode = standby mode
//Path-A
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x00, bMask12Bits, (RF_Amode&0x8FFFF)|0x10000);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_AC, bMask12Bits, (RF_Amode&0x8FFFF)|0x10000);
//Path-B
if(is2T)
- PHY_SetRFReg(pAdapter, RF90_PATH_B, 0x00, bMask12Bits, (RF_Bmode&0x8FFFF)|0x10000);
+ PHY_SetRFReg(pAdapter, RF_PATH_B, RF_AC, bMask12Bits, (RF_Bmode&0x8FFFF)|0x10000);
}
//3. Read RF reg18
- LC_Cal = PHY_QueryRFReg(pAdapter, RF90_PATH_A, 0x18, bMask12Bits);
+ LC_Cal = PHY_QueryRFReg(pAdapter, RF_PATH_A, RF_CHNLBW, bMask12Bits);
//4. Set LC calibration begin
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x18, bMask12Bits, LC_Cal|0x08000);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_CHNLBW, bMask12Bits, LC_Cal|0x08000);
- if(isNormal) {
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(100);
- #else
- rtw_mdelay_os(100);
- #endif
- }
- else
- rtw_mdelay_os(3);
+ #ifdef CONFIG_LONG_DELAY_ISSUE
+ rtw_msleep_os(100);
+ #else
+ rtw_mdelay_os(100);
+ #endif
//Restore original situation
if((tmpReg&0x70) != 0) //Deal with contisuous TX case
{
//Path-A
rtw_write8(pAdapter, 0xd03, tmpReg);
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x00, bMask12Bits, RF_Amode);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_AC, bMask12Bits, RF_Amode);
//Path-B
if(is2T)
- PHY_SetRFReg(pAdapter, RF90_PATH_B, 0x00, bMask12Bits, RF_Bmode);
+ PHY_SetRFReg(pAdapter, RF_PATH_B, RF_AC, bMask12Bits, RF_Bmode);
}
else // Deal with Packet TX case
{
@@ -4223,17 +4114,18 @@ _PHY_APCalibrate(
IN BOOLEAN is2T
)
{
-#if 1//(PLATFORM == PLATFORM_WINDOWS)//???
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
u32 regD[PATH_NUM];
- u32 tmpReg, index, offset, path, i, pathbound = PATH_NUM, apkbound;
-
+ u32 tmpReg, index, offset, i, apkbound;
+ u8 path, pathbound = PATH_NUM;
u32 BB_backup[APK_BB_REG_NUM];
u32 BB_REG[APK_BB_REG_NUM] = {
- 0x904, 0xc04, 0x800, 0xc08, 0x874,
- 0x870, 0x860, 0x864 };
+ rFPGA1_TxBlock, rOFDM0_TRxPathEnable,
+ rFPGA0_RFMOD, rOFDM0_TRMuxPar,
+ rFPGA0_XCD_RFInterfaceSW, rFPGA0_XAB_RFInterfaceSW,
+ rFPGA0_XA_RFInterfaceOE, rFPGA0_XB_RFInterfaceOE };
u32 BB_AP_MODE[APK_BB_REG_NUM] = {
0x00000020, 0x00a05430, 0x02040000,
0x000800e4, 0x00204000 };
@@ -4243,14 +4135,19 @@ _PHY_APCalibrate(
u32 AFE_backup[IQK_ADDA_REG_NUM];
u32 AFE_REG[IQK_ADDA_REG_NUM] = {
- 0x85c, 0xe6c, 0xe70, 0xe74, 0xe78,
- 0xe7c, 0xe80, 0xe84, 0xe88, 0xe8c,
- 0xed0, 0xed4, 0xed8, 0xedc, 0xee0,
- 0xeec};
+ rFPGA0_XCD_SwitchControl, rBlue_Tooth,
+ rRx_Wait_CCA, rTx_CCK_RFON,
+ rTx_CCK_BBON, rTx_OFDM_RFON,
+ rTx_OFDM_BBON, rTx_To_Rx,
+ rTx_To_Tx, rRx_CCK,
+ rRx_OFDM, rRx_Wait_RIFS,
+ rRx_TO_Rx, rStandby,
+ rSleep, rPMPD_ANAEN };
u32 MAC_backup[IQK_MAC_REG_NUM];
u32 MAC_REG[IQK_MAC_REG_NUM] = {
- 0x522, 0x550, 0x551, 0x040};
+ REG_TXPAUSE, REG_BCN_CTRL,
+ REG_BCN_CTRL_1, REG_GPIO_MUXCFG};
u32 APK_RF_init_value[PATH_NUM][APK_BB_REG_NUM] = {
{0x0852c, 0x1852c, 0x5852c, 0x1852c, 0x5852c},
@@ -4271,20 +4168,20 @@ _PHY_APCalibrate(
{0x52019, 0x52017, 0x52010, 0x5200d, 0x5206a}, //path settings equal to path b settings
{0x52019, 0x52017, 0x52010, 0x5200d, 0x5206a}
};
-
+#if 0
u32 APK_RF_value_A[PATH_NUM][APK_BB_REG_NUM] = {
{0x1adb0, 0x1adb0, 0x1ada0, 0x1ad90, 0x1ad80},
{0x00fb0, 0x00fb0, 0x00fa0, 0x00f90, 0x00f80}
};
-
+#endif
u32 AFE_on_off[PATH_NUM] = {
0x04db25a4, 0x0b1b25a4}; //path A on path B off / path A off path B on
u32 APK_offset[PATH_NUM] = {
- 0xb68, 0xb6c};
+ rConfig_AntA, rConfig_AntB};
u32 APK_normal_offset[PATH_NUM] = {
- 0xb28, 0xb98};
+ rConfig_Pmpd_AntA, rConfig_Pmpd_AntB};
u32 APK_value[PATH_NUM] = {
0x92fc0000, 0x12fc0000};
@@ -4294,7 +4191,7 @@ _PHY_APCalibrate(
char APK_delta_mapping[APK_BB_REG_NUM][13] = {
{-4, -3, -2, -2, -1, -1, 0, 1, 2, 3, 4, 5, 6},
- {-4, -3, -2, -2, -1, -1, 0, 1, 2, 3, 4, 5, 6},
+ {-4, -3, -2, -2, -1, -1, 0, 1, 2, 3, 4, 5, 6},
{-6, -4, -2, -2, -1, -1, 0, 1, 2, 3, 4, 5, 6},
{-1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6},
{-11, -9, -7, -5, -3, -1, 0, 0, 0, 0, 0, 0, 0}
@@ -4314,17 +4211,15 @@ _PHY_APCalibrate(
};
u32 APK_result[PATH_NUM][APK_BB_REG_NUM]; //val_1_1a, val_1_2a, val_2a, val_3a, val_4a
- u32 AP_curve[PATH_NUM][APK_CURVE_REG_NUM];
+ //u32 AP_curve[PATH_NUM][APK_CURVE_REG_NUM];
int BB_offset, delta_V, delta_offset;
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
-
#if (MP_DRIVER == 1)
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.MptCtx;
pMptCtx->APK_bound[0] = 45;
- pMptCtx->APK_bound[1] = 52;
+ pMptCtx->APK_bound[1] = 52;
#endif
//RTPRINT(FINIT, INIT_IQK, ("==>PHY_APCalibrate() delta %d\n", delta));
@@ -4335,48 +4230,39 @@ _PHY_APCalibrate(
pathbound = 1;
//2 FOR NORMAL CHIP SETTINGS
- if(isNormal)
- {
+
// Temporarily do not allow normal driver to do the following settings because these offset
// and value will cause RF internal PA to be unpredictably disabled by HW, such that RF Tx signal
// will disappear after disable/enable card many times on 88CU. RF SD and DD have not find the
// root cause, so we remove these actions temporarily. Added by tynli and SD3 Allen. 2010.05.31.
#if (MP_DRIVER != 1)
- return;
+ return;
#endif
-
- //settings adjust for normal chip
- for(index = 0; index < PATH_NUM; index ++)
- {
- APK_offset[index] = APK_normal_offset[index];
- APK_value[index] = APK_normal_value[index];
- AFE_on_off[index] = 0x6fdb25a4;
- }
- for(index = 0; index < APK_BB_REG_NUM; index ++)
- {
- for(path = 0; path < pathbound; path++)
- {
- APK_RF_init_value[path][index] = APK_normal_RF_init_value[path][index];
- APK_RF_value_0[path][index] = APK_normal_RF_value_0[path][index];
- }
- BB_AP_MODE[index] = BB_normal_AP_MODE[index];
- }
-
- apkbound = 6;
+ //settings adjust for normal chip
+ for(index = 0; index < PATH_NUM; index ++)
+ {
+ APK_offset[index] = APK_normal_offset[index];
+ APK_value[index] = APK_normal_value[index];
+ AFE_on_off[index] = 0x6fdb25a4;
}
- else
+
+ for(index = 0; index < APK_BB_REG_NUM; index ++)
{
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x0fe00000);
- if(is2T)
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x0fe00000);
- apkbound = 12;
+ for(path = 0; path < pathbound; path++)
+ {
+ APK_RF_init_value[path][index] = APK_normal_RF_init_value[path][index];
+ APK_RF_value_0[path][index] = APK_normal_RF_value_0[path][index];
+ }
+ BB_AP_MODE[index] = BB_normal_AP_MODE[index];
}
-
+
+ apkbound = 6;
+
//save BB default value
for(index = 0; index < APK_BB_REG_NUM ; index++)
{
- if(index == 0 && isNormal) //skip
+ if(index == 0) //skip
continue;
BB_backup[index] = PHY_QueryBBReg(pAdapter, BB_REG[index], bMaskDWord);
}
@@ -4385,116 +4271,93 @@ _PHY_APCalibrate(
_PHY_SaveMACRegisters(pAdapter, MAC_REG, MAC_backup);
//save AFE default value
- _PHY_SaveADDARegisters(pAdapter, AFE_REG, AFE_backup,16);
+ _PHY_SaveADDARegisters(pAdapter, AFE_REG, AFE_backup, IQK_ADDA_REG_NUM);
for(path = 0; path < pathbound; path++)
{
- //save old AP curve
- if(isNormal)
+ if(path == RF_PATH_A)
{
- if(path == RF90_PATH_A)
+ //path A APK
+ //load APK setting
+ //path-A
+ offset = rPdp_AntA;
+ for(index = 0; index < 11; index ++)
{
- //path A APK
- //load APK setting
- //path-A
- offset = 0xb00;
- for(index = 0; index < 11; index ++)
- {
- PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
-
- offset += 0x04;
- }
+ PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x12680000);
+ offset += 0x04;
+ }
+
+ PHY_SetBBReg(pAdapter, rConfig_Pmpd_AntB, bMaskDWord, 0x12680000);
+
+ offset = rConfig_AntA;
+ for(; index < 13; index ++)
+ {
+ PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
- offset = 0xb68;
- for(; index < 13; index ++)
- {
- PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
-
- offset += 0x04;
- }
+ offset += 0x04;
+ }
+
+ //page-B1
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x40000000);
+
+ //path A
+ offset = rPdp_AntA;
+ for(index = 0; index < 16; index++)
+ {
+ PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_2[index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
- //page-B1
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x40000000);
+ offset += 0x04;
+ }
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x00000000);
+ }
+ else if(path == RF_PATH_B)
+ {
+ //path B APK
+ //load APK setting
+ //path-B
+ offset = rPdp_AntB;
+ for(index = 0; index < 10; index ++)
+ {
+ PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
- //path A
- offset = 0xb00;
- for(index = 0; index < 16; index++)
- {
- PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_2[index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
-
- offset += 0x04;
- }
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
+ offset += 0x04;
}
- else if(path == RF90_PATH_B)
+ PHY_SetBBReg(pAdapter, rConfig_Pmpd_AntA, bMaskDWord, 0x12680000);
+
+ PHY_SetBBReg(pAdapter, rConfig_Pmpd_AntB, bMaskDWord, 0x12680000);
+
+ offset = rConfig_AntA;
+ index = 11;
+ for(; index < 13; index ++) //offset 0xb68, 0xb6c
{
- //path B APK
- //load APK setting
- //path-B
- offset = 0xb70;
- for(index = 0; index < 10; index ++)
- {
- PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
-
- offset += 0x04;
- }
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x12680000);
-
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x12680000);
-
- offset = 0xb68;
- index = 11;
- for(; index < 13; index ++) //offset 0xb68, 0xb6c
- {
- PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
-
- offset += 0x04;
- }
+ PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_1[index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
- //page-B1
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x40000000);
+ offset += 0x04;
+ }
+
+ //page-B1
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x40000000);
+
+ //path B
+ offset = 0xb60;
+ for(index = 0; index < 16; index++)
+ {
+ PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_2[index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
- //path B
- offset = 0xb60;
- for(index = 0; index < 16; index++)
- {
- PHY_SetBBReg(pAdapter, offset, bMaskDWord, APK_normal_setting_value_2[index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", offset, PHY_QueryBBReg(pAdapter, offset, bMaskDWord)));
-
- offset += 0x04;
- }
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
- }
-
-#if 0
- tmpReg = PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x3, bMaskDWord);
- AP_curve[path][0] = tmpReg & 0x1F; //[4:0]
-
- tmpReg = PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x4, bMaskDWord);
- AP_curve[path][1] = (tmpReg & 0xF8000) >> 15; //[19:15]
- AP_curve[path][2] = (tmpReg & 0x7C00) >> 10; //[14:10]
- AP_curve[path][3] = (tmpReg & 0x3E0) >> 5; //[9:5]
-#endif
- }
- else
- {
- tmpReg = PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xe, bMaskDWord);
-
- AP_curve[path][0] = (tmpReg & 0xF8000) >> 15; //[19:15]
- AP_curve[path][1] = (tmpReg & 0x7C00) >> 10; //[14:10]
- AP_curve[path][2] = (tmpReg & 0x3E0) >> 5; //[9:5]
- AP_curve[path][3] = tmpReg & 0x1F; //[4:0]
- }
-
+ offset += 0x04;
+ }
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x00000000);
+ }
+
//save RF default value
- regD[path] = PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xd, bMaskDWord);
+ regD[path] = PHY_QueryRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_TXBIAS_A, bRFRegOffsetMask);
//Path A AFE all on, path B AFE All off or vise versa
for(index = 0; index < IQK_ADDA_REG_NUM ; index++)
@@ -4506,7 +4369,7 @@ _PHY_APCalibrate(
{
for(index = 0; index < APK_BB_REG_NUM ; index++)
{
- if(index == 0 && isNormal) //skip
+ if(index == 0) //skip
continue;
else if (index < 5)
PHY_SetBBReg(pAdapter, BB_REG[index], bMaskDWord, BB_AP_MODE[index]);
@@ -4515,13 +4378,13 @@ _PHY_APCalibrate(
else
PHY_SetBBReg(pAdapter, BB_REG[index], BIT10, 0x0);
}
- PHY_SetBBReg(pAdapter, 0xe30, bMaskDWord, 0x01008c00);
- PHY_SetBBReg(pAdapter, 0xe34, bMaskDWord, 0x01008c00);
+ PHY_SetBBReg(pAdapter, rTx_IQK_Tone_A, bMaskDWord, 0x01008c00);
+ PHY_SetBBReg(pAdapter, rRx_IQK_Tone_A, bMaskDWord, 0x01008c00);
}
else //path B
{
- PHY_SetBBReg(pAdapter, 0xe50, bMaskDWord, 0x01008c00);
- PHY_SetBBReg(pAdapter, 0xe54, bMaskDWord, 0x01008c00);
+ PHY_SetBBReg(pAdapter, rTx_IQK_Tone_B, bMaskDWord, 0x01008c00);
+ PHY_SetBBReg(pAdapter, rRx_IQK_Tone_B, bMaskDWord, 0x01008c00);
}
//RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x800 %x\n", PHY_QueryBBReg(pAdapter, 0x800, bMaskDWord)));
@@ -4529,15 +4392,15 @@ _PHY_APCalibrate(
//MAC settings
_PHY_MACSettingCalibration(pAdapter, MAC_REG, MAC_backup);
- if(path == RF90_PATH_A) //Path B to standby mode
+ if(path == RF_PATH_A) //Path B to standby mode
{
- PHY_SetRFReg(pAdapter, RF90_PATH_B, 0x0, bMaskDWord, 0x10000);
+ PHY_SetRFReg(pAdapter, RF_PATH_B, RF_AC, bRFRegOffsetMask, 0x10000);
}
else //Path A to standby mode
{
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x00, bMaskDWord, 0x10000);
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x10, bMaskDWord, 0x1000f);
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x11, bMaskDWord, 0x20103);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_AC, bRFRegOffsetMask, 0x10000);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_MODE1, bRFRegOffsetMask, 0x1000f);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_MODE2, bRFRegOffsetMask, 0x20103);
}
delta_offset = ((delta+14)/2);
@@ -4549,7 +4412,7 @@ _PHY_APCalibrate(
//AP calibration
for(index = 0; index < APK_BB_REG_NUM; index++)
{
- if(index != 1 && isNormal) //only DO PA11+PAD01001, AP RF setting
+ if(index != 1) //only DO PA11+PAD01001, AP RF setting
continue;
tmpReg = APK_RF_init_value[path][index];
@@ -4581,53 +4444,42 @@ _PHY_APCalibrate(
tmpReg = (tmpReg & 0xFFF0FFFF) | (BB_offset << 16);
}
#endif
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xc, bMaskDWord, 0x8992e);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0xc %x\n", PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xc, bMaskDWord)));
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x0, bMaskDWord, APK_RF_value_0[path][index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x0 %x\n", PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x0, bMaskDWord)));
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xd, bMaskDWord, tmpReg);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0xd %x\n", PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xd, bMaskDWord)));
- if(!isNormal)
- {
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xa, bMaskDWord, APK_RF_value_A[path][index]);
- //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0xa %x\n", PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xa, bMaskDWord)));
- }
-
+
+#ifdef CONFIG_PCI_HCI
+ if(IS_81xxC_VENDOR_UMC_B_CUT(pHalData->VersionID))
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_IPA_A, bRFRegOffsetMask, 0x894ae);
+ else
+#endif
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_IPA_A, bRFRegOffsetMask, 0x8992e);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0xc %x\n", PHY_QueryRFReg(pAdapter, (RF_RADIO_PATH_E)path, 0xc, bMaskDWord)));
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_AC, bRFRegOffsetMask, APK_RF_value_0[path][index]);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x0 %x\n", PHY_QueryRFReg(pAdapter, (RF_RADIO_PATH_E)path, 0x0, bMaskDWord)));
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_TXBIAS_A, bRFRegOffsetMask, tmpReg);
+ //RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0xd %x\n", PHY_QueryRFReg(pAdapter, (RF_RADIO_PATH_E)path, 0xd, bMaskDWord)));
+
// PA11+PAD01111, one shot
i = 0;
do
{
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x80000000);
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x80000000);
{
PHY_SetBBReg(pAdapter, APK_offset[path], bMaskDWord, APK_value[0]);
//RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", APK_offset[path], PHY_QueryBBReg(pAdapter, APK_offset[path], bMaskDWord)));
rtw_mdelay_os(3);
PHY_SetBBReg(pAdapter, APK_offset[path], bMaskDWord, APK_value[1]);
//RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0x%x value 0x%x\n", APK_offset[path], PHY_QueryBBReg(pAdapter, APK_offset[path], bMaskDWord)));
- if(isNormal) {
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(20);
- #else
- rtw_mdelay_os(20);
- #endif
- }
- else
- rtw_mdelay_os(3);
+ #ifdef CONFIG_LONG_DELAY_ISSUE
+ rtw_msleep_os(20);
+ #else
+ rtw_mdelay_os(20);
+ #endif
}
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
+ PHY_SetBBReg(pAdapter, rFPGA0_IQK, bMaskDWord, 0x00000000);
- if(!isNormal)
- {
- tmpReg = PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xb, bMaskDWord);
- tmpReg = (tmpReg & 0x3E00) >> 9;
- }
+ if(path == RF_PATH_A)
+ tmpReg = PHY_QueryBBReg(pAdapter, rAPK, 0x03E00000);
else
- {
- if(path == RF90_PATH_A)
- tmpReg = PHY_QueryBBReg(pAdapter, 0xbd8, 0x03E00000);
- else
- tmpReg = PHY_QueryBBReg(pAdapter, 0xbd8, 0xF8000000);
- }
+ tmpReg = PHY_QueryBBReg(pAdapter, rAPK, 0xF8000000);
//RTPRINT(FINIT, INIT_IQK, ("PHY_APCalibrate() offset 0xbd8[25:21] %x\n", tmpReg));
i++;
@@ -4644,7 +4496,7 @@ _PHY_APCalibrate(
//reload BB default value
for(index = 0; index < APK_BB_REG_NUM ; index++)
{
- if(index == 0 && isNormal) //skip
+ if(index == 0) //skip
continue;
PHY_SetBBReg(pAdapter, BB_REG[index], bMaskDWord, BB_backup[index]);
}
@@ -4655,50 +4507,17 @@ _PHY_APCalibrate(
//reload RF path default value
for(path = 0; path < pathbound; path++)
{
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xd, bMaskDWord, regD[path]);
- if(path == RF90_PATH_B)
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_TXBIAS_A, bRFRegOffsetMask, regD[path]);
+ if(path == RF_PATH_B)
{
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x10, bMaskDWord, 0x1000f);
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x11, bMaskDWord, 0x20101);
- }
-#if 1
- if(!isNormal)
- {
- for(index = 0; index < APK_BB_REG_NUM ; index++)
- {
- if(APK_result[path][index] > 12)
- APK_result[path][index] = AP_curve[path][index-1];
- //RTPRINT(FINIT, INIT_IQK, ("apk result %d 0x%x \t", index, APK_result[path][index]));
- }
- }
- else
- { //note no index == 0
- if (APK_result[path][1] > 6)
- APK_result[path][1] = 6;
- //RTPRINT(FINIT, INIT_IQK, ("apk path %d result %d 0x%x \t", path, 1, APK_result[path][1]));
-
-#if 0
- if(APK_result[path][2] < 2)
- APK_result[path][2] = 2;
- else if (APK_result[path][2] > 6)
- APK_result[path][2] = 6;
- RTPRINT(FINIT, INIT_IQK, ("apk result %d 0x%x \t", 2, APK_result[path][2]));
-
- if(APK_result[path][3] < 2)
- APK_result[path][3] = 2;
- else if (APK_result[path][3] > 6)
- APK_result[path][3] = 6;
- RTPRINT(FINIT, INIT_IQK, ("apk result %d 0x%x \t", 3, APK_result[path][3]));
-
- if(APK_result[path][4] < 5)
- APK_result[path][4] = 5;
- else if (APK_result[path][4] > 9)
- APK_result[path][4] = 9;
- RTPRINT(FINIT, INIT_IQK, ("apk result %d 0x%x \t", 4, APK_result[path][4]));
-#endif
-
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_MODE1, bRFRegOffsetMask, 0x1000f);
+ PHY_SetRFReg(pAdapter, RF_PATH_A, RF_MODE2, bRFRegOffsetMask, 0x20101);
}
-#endif
+
+ //note no index == 0
+ if (APK_result[path][1] > 6)
+ APK_result[path][1] = 6;
+ //RTPRINT(FINIT, INIT_IQK, ("apk path %d result %d 0x%x \t", path, 1, APK_result[path][1]));
}
//RTPRINT(FINIT, INIT_IQK, ("\n"));
@@ -4706,489 +4525,23 @@ _PHY_APCalibrate(
for(path = 0; path < pathbound; path++)
{
- if(isNormal)
- {
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x3, bMaskDWord,
- ((APK_result[path][1] << 15) | (APK_result[path][1] << 10) | (APK_result[path][1] << 5) | APK_result[path][1]));
- if(path == RF90_PATH_A)
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x4, bMaskDWord,
- ((APK_result[path][1] << 15) | (APK_result[path][1] << 10) | (0x00 << 5) | 0x05));
- else
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0x4, bMaskDWord,
- ((APK_result[path][1] << 15) | (APK_result[path][1] << 10) | (0x02 << 5) | 0x05));
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xe, bMaskDWord,
- ((0x08 << 15) | (0x08 << 10) | (0x08 << 5) | 0x08));
- }
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_BS_PA_APSET_G1_G4, bRFRegOffsetMask,
+ ((APK_result[path][1] << 15) | (APK_result[path][1] << 10) | (APK_result[path][1] << 5) | APK_result[path][1]));
+ if(path == RF_PATH_A)
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_BS_PA_APSET_G5_G8, bRFRegOffsetMask,
+ ((APK_result[path][1] << 15) | (APK_result[path][1] << 10) | (0x00 << 5) | 0x05));
else
- {
- for(index = 0; index < 2; index++)
- pdmpriv->APKoutput[path][index] = ((APK_result[path][index] << 15) | (APK_result[path][2] << 10) | (APK_result[path][3] << 5) | APK_result[path][4]);
-
-#if (MP_DRIVER == 1)
- if(pMptCtx->TxPwrLevel[path] > pMptCtx->APK_bound[path])
- {
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xe, bMaskDWord,
- pdmpriv->APKoutput[path][0]);
- }
- else
- {
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xe, bMaskDWord,
- pdmpriv->APKoutput[path][1]);
- }
-#else
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, 0xe, bMaskDWord,
- pdmpriv->APKoutput[path][0]);
-#endif
- }
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_BS_PA_APSET_G5_G8, bRFRegOffsetMask,
+ ((APK_result[path][1] << 15) | (APK_result[path][1] << 10) | (0x02 << 5) | 0x05));
+ PHY_SetRFReg(pAdapter, (RF_RADIO_PATH_E)path, RF_BS_PA_APSET_G9_G11, bRFRegOffsetMask,
+ ((0x08 << 15) | (0x08 << 10) | (0x08 << 5) | 0x08));
}
pdmpriv->bAPKdone = _TRUE;
//RTPRINT(FINIT, INIT_IQK, ("<==PHY_APCalibrate()\n"));
-#endif
}
-
-#define DP_BB_REG_NUM 7
-#define DP_RF_REG_NUM 1
-#define DP_RETRY_LIMIT 10
-#define DP_PATH_NUM 2
-#define DP_DPK_NUM 3
-#define DP_DPK_VALUE_NUM 2
-
-//digital predistortion
-static VOID
-_PHY_DigitalPredistortion(
- IN PADAPTER pAdapter,
- IN BOOLEAN is2T
- )
-{
-#if 1//(PLATFORM == PLATFORM_WINDOWS)
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
- struct dm_priv *pdmpriv = &pHalData->dmpriv;
-
- u32 tmpReg, tmpReg2, index, offset, path, i, pathbound = PATH_NUM;
- u32 AFE_backup[IQK_ADDA_REG_NUM];
- u32 AFE_REG[IQK_ADDA_REG_NUM] = {
- 0x85c, 0xe6c, 0xe70, 0xe74, 0xe78,
- 0xe7c, 0xe80, 0xe84, 0xe88, 0xe8c,
- 0xed0, 0xed4, 0xed8, 0xedc, 0xee0,
- 0xeec};
-
- u32 BB_backup[DP_BB_REG_NUM];
- u32 BB_REG[DP_BB_REG_NUM] = {
- 0xc04, 0x800, 0xc08, 0x874,
- 0x870, 0x860, 0x864};
- u32 BB_settings[DP_BB_REG_NUM] = {
- 0x00a05430, 0x02040000, 0x000800e4, 0x22208000,
- 0x0, 0x0, 0x0};
-
- u32 RF_backup[DP_PATH_NUM][DP_RF_REG_NUM];
- u32 RF_REG[DP_RF_REG_NUM] = {
- 0x0d};
-
- u32 MAC_backup[IQK_MAC_REG_NUM];
- u32 MAC_REG[IQK_MAC_REG_NUM] = {
- 0x522, 0x550, 0x551, 0x040};
-
- u32 Tx_AGC[DP_DPK_NUM][DP_DPK_VALUE_NUM] = {
- {0x1e1e1e1e, 0x03901e1e},
- {0x18181818, 0x03901818},
- {0x0e0e0e0e, 0x03900e0e}
- };
-
-// u32 RF_PATHA_backup[DP_RF_REG_NUM];
-// u32 RF_REG_PATHA[DP_RF_REG_NUM] = {
-// 0x00, 0x10, 0x11};
-
- u32 Reg800, Reg874, Regc04, Regc08, Reg040;
-
- u32 AFE_on_off[PATH_NUM] = {
- 0x04db25a4, 0x0b1b25a4}; //path A on path B off / path A off path B on
-
- u32 RetryCount = 0;
-
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
-
- //DBG_8192C("==>_PHY_DigitalPredistortion()\n");
-
- //DBG_8192C("_PHY_DigitalPredistortion for %s %s\n", (is2T ? "2T2R" : "1T1R"), (isNormal ? "Normal chip" : "Test chip"));
-
- if(!isNormal)
- return;
-
- //save BB default value
- for(index=0; index<DP_BB_REG_NUM; index++)
- BB_backup[index] = PHY_QueryBBReg(pAdapter, BB_REG[index], bMaskDWord);
-
- //save MAC default value
- _PHY_SaveMACRegisters(pAdapter, BB_REG, MAC_backup);
-
- //save RF default value
- for(path=0; path<DP_PATH_NUM; path++)
- {
- for(index=0; index<DP_RF_REG_NUM; index++)
- RF_backup[path][index] = PHY_QueryRFReg(pAdapter, (RF90_RADIO_PATH_E)path, RF_REG[index], bMaskDWord);
- }
-
- //save AFE default value
- _PHY_SaveADDARegisters(pAdapter, AFE_REG, AFE_backup, IQK_ADDA_REG_NUM);
-
- //Path A/B AFE all on
- for(index = 0; index < IQK_ADDA_REG_NUM ; index++)
- PHY_SetBBReg(pAdapter, AFE_REG[index], bMaskDWord, 0x6fdb25a4);
-
- //BB register setting
- for(index = 0; index < DP_BB_REG_NUM; index++)
- {
- if(index < 4)
- PHY_SetBBReg(pAdapter, BB_REG[index], bMaskDWord, BB_settings[index]);
- else if (index == 4)
- PHY_SetBBReg(pAdapter, BB_REG[index], bMaskDWord, BB_backup[index]|BIT10|BIT26);
- else
- PHY_SetBBReg(pAdapter, BB_REG[index], BIT10, 0x00);
- }
-
- //MAC register setting
- _PHY_MACSettingCalibration(pAdapter, MAC_REG, MAC_backup);
-
- //PAGE-E IQC setting
- PHY_SetBBReg(pAdapter, 0xe30, bMaskDWord, 0x01008c00);
- PHY_SetBBReg(pAdapter, 0xe34, bMaskDWord, 0x01008c00);
- PHY_SetBBReg(pAdapter, 0xe50, bMaskDWord, 0x01008c00);
- PHY_SetBBReg(pAdapter, 0xe54, bMaskDWord, 0x01008c00);
-
- //path_A DPK
- //Path B to standby mode
- PHY_SetRFReg(pAdapter, RF90_PATH_B, RF_AC, bMaskDWord, 0x10000);
-
- // PA gain = 11 & PAD1 => tx_agc 1f ~11
- // PA gain = 11 & PAD2 => tx_agc 10~0e
- // PA gain = 01 => tx_agc 0b~0d
- // PA gain = 00 => tx_agc 0a~00
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x40000000);
- PHY_SetBBReg(pAdapter, 0xbc0, bMaskDWord, 0x0005361f);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
-
- //do inner loopback DPK 3 times
- for(i = 0; i < 3; i++)
- {
- //PA gain = 11 & PAD2 => tx_agc = 0x0f/0x0c/0x07
- for(index = 0; index < 3; index++)
- PHY_SetBBReg(pAdapter, 0xe00+index*4, bMaskDWord, Tx_AGC[i][0]);
- PHY_SetBBReg(pAdapter, 0xe00+index*4, bMaskDWord, Tx_AGC[i][1]);
- for(index = 0; index < 4; index++)
- PHY_SetBBReg(pAdapter, 0xe10+index*4, bMaskDWord, Tx_AGC[i][0]);
-
- // PAGE_B for Path-A inner loopback DPK setting
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x02097098);
- PHY_SetBBReg(pAdapter, 0xb04, bMaskDWord, 0xf76d9f84);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x0004ab87);
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x00880000);
-
- //----send one shot signal----//
- // Path A
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x80047788);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x00047788);
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(50);
- #else
- rtw_mdelay_os(50);
- #endif
- }
-
- //PA gain = 11 => tx_agc = 1a
- for(index = 0; index < 3; index++)
- PHY_SetBBReg(pAdapter, 0xe00+index*4, bMaskDWord, 0x34343434);
- PHY_SetBBReg(pAdapter, 0xe08+index*4, bMaskDWord, 0x03903434);
- for(index = 0; index < 4; index++)
- PHY_SetBBReg(pAdapter, 0xe10+index*4, bMaskDWord, 0x34343434);
-
- //====================================
- // PAGE_B for Path-A DPK setting
- //====================================
- // open inner loopback @ b00[19]:10 od 0xb00 0x01097018
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x02017098);
- PHY_SetBBReg(pAdapter, 0xb04, bMaskDWord, 0xf76d9f84);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x0004ab87);
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x00880000);
-
- //rf_lpbk_setup
- //1.rf 00:5205a, rf 0d:0e52c
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x0c, bMaskDWord, 0x8992b);
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x0d, bMaskDWord, 0x0e52c);
- PHY_SetRFReg(pAdapter, RF90_PATH_A, 0x00, bMaskDWord, 0x5205a );
-
- //----send one shot signal----//
- // Path A
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x800477c0);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x000477c0);
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(50);
- #else
- rtw_mdelay_os(50);
- #endif
-
- while(RetryCount < DP_RETRY_LIMIT && !pdmpriv->bDPPathAOK)
- {
- //----read back measurement results----//
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x0c297018);
- tmpReg = PHY_QueryBBReg(pAdapter, 0xbe0, bMaskDWord);
- rtw_mdelay_os(10);
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x0c29701f);
- tmpReg2 = PHY_QueryBBReg(pAdapter, 0xbe8, bMaskDWord);
- rtw_mdelay_os(10);
-
- tmpReg = (tmpReg & bMaskHWord) >> 16;
- tmpReg2 = (tmpReg2 & bMaskHWord) >> 16;
- if(tmpReg < 0xf0 || tmpReg > 0x105 || tmpReg2 > 0xff )
- {
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x02017098);
-
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x80000000);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x800477c0);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x000477c0);
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(50);
- #else
- rtw_mdelay_os(50);
- #endif
- RetryCount++;
- DBG_8192C("path A DPK RetryCount %d 0xbe0[31:16] %x 0xbe8[31:16] %x\n", RetryCount, tmpReg, tmpReg2);
- }
- else
- {
- DBG_8192C("path A DPK Sucess\n");
- pdmpriv->bDPPathAOK = _TRUE;
- break;
- }
- }
- RetryCount = 0;
-
- //DPP path A
- if(pdmpriv->bDPPathAOK)
- {
- // DP settings
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x01017098);
- PHY_SetBBReg(pAdapter, 0xb04, bMaskDWord, 0x776d9f84);
- PHY_SetBBReg(pAdapter, 0xb28, bMaskDWord, 0x0004ab87);
- PHY_SetBBReg(pAdapter, 0xb68, bMaskDWord, 0x00880000);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x40000000);
-
- for(i=0xb00; i<=0xb3c; i+=4)
- {
- PHY_SetBBReg(pAdapter, i, bMaskDWord, 0x40004000);
- //DBG_8192C("path A ofsset = 0x%x\n", i);
- }
-
- //pwsf
- PHY_SetBBReg(pAdapter, 0xb40, bMaskDWord, 0x40404040);
- PHY_SetBBReg(pAdapter, 0xb44, bMaskDWord, 0x28324040);
- PHY_SetBBReg(pAdapter, 0xb48, bMaskDWord, 0x10141920);
-
- for(i=0xb4c; i<=0xb5c; i+=4)
- {
- PHY_SetBBReg(pAdapter, i, bMaskDWord, 0x0c0c0c0c);
- }
-
- //TX_AGC boundary
- PHY_SetBBReg(pAdapter, 0xbc0, bMaskDWord, 0x0005361f);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
- }
- else
- {
- PHY_SetBBReg(pAdapter, 0xb00, bMaskDWord, 0x00000000);
- PHY_SetBBReg(pAdapter, 0xb04, bMaskDWord, 0x00000000);
- }
-
- //DPK path B
- if(is2T)
- {
- //Path A to standby mode
- PHY_SetRFReg(pAdapter, RF90_PATH_A, RF_AC, bMaskDWord, 0x10000);
-
- // LUTs => tx_agc
- // PA gain = 11 & PAD1, => tx_agc 1f ~11
- // PA gain = 11 & PAD2, => tx_agc 10 ~0e
- // PA gain = 01 => tx_agc 0b ~0d
- // PA gain = 00 => tx_agc 0a ~00
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x40000000);
- PHY_SetBBReg(pAdapter, 0xbc4, bMaskDWord, 0x0005361f);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
-
- //do inner loopback DPK 3 times
- for(i = 0; i < 3; i++)
- {
- //PA gain = 11 & PAD2 => tx_agc = 0x0f/0x0c/0x07
- for(index = 0; index < 4; index++)
- PHY_SetBBReg(pAdapter, 0x830+index*4, bMaskDWord, Tx_AGC[i][0]);
- for(index = 0; index < 2; index++)
- PHY_SetBBReg(pAdapter, 0x848+index*4, bMaskDWord, Tx_AGC[i][0]);
- for(index = 0; index < 2; index++)
- PHY_SetBBReg(pAdapter, 0x868+index*4, bMaskDWord, Tx_AGC[i][0]);
-
- // PAGE_B for Path-A inner loopback DPK setting
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x02097098);
- PHY_SetBBReg(pAdapter, 0xb74, bMaskDWord, 0xf76d9f84);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x0004ab87);
- PHY_SetBBReg(pAdapter, 0xb6c, bMaskDWord, 0x00880000);
-
- //----send one shot signal----//
- // Path B
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x80047788);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x00047788);
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(50);
- #else
- rtw_mdelay_os(50);
- #endif
- }
-
- // PA gain = 11 => tx_agc = 1a
- for(index = 0; index < 4; index++)
- PHY_SetBBReg(pAdapter, 0x830+index*4, bMaskDWord, 0x34343434);
- for(index = 0; index < 2; index++)
- PHY_SetBBReg(pAdapter, 0x848+index*4, bMaskDWord, 0x34343434);
- for(index = 0; index < 2; index++)
- PHY_SetBBReg(pAdapter, 0x868+index*4, bMaskDWord, 0x34343434);
-
- // PAGE_B for Path-B DPK setting
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x02017098);
- PHY_SetBBReg(pAdapter, 0xb74, bMaskDWord, 0xf76d9f84);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x0004ab87);
- PHY_SetBBReg(pAdapter, 0xb6c, bMaskDWord, 0x00880000);
-
- // RF lpbk switches on
- PHY_SetBBReg(pAdapter, 0x840, bMaskDWord, 0x0101000f);
- PHY_SetBBReg(pAdapter, 0x840, bMaskDWord, 0x01120103);
-
- //Path-B RF lpbk
- PHY_SetRFReg(pAdapter, RF90_PATH_B, 0x0c, bMaskDWord, 0x8992b);
- PHY_SetRFReg(pAdapter, RF90_PATH_B, 0x0d, bMaskDWord, 0x0e52c);
- PHY_SetRFReg(pAdapter, RF90_PATH_B, RF_AC, bMaskDWord, 0x5205a);
-
- //----send one shot signal----//
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x800477c0);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x000477c0);
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(50);
- #else
- rtw_mdelay_os(50);
- #endif
-
- while(RetryCount < DP_RETRY_LIMIT && !pdmpriv->bDPPathBOK)
- {
- //----read back measurement results----//
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x0c297018);
- tmpReg = PHY_QueryBBReg(pAdapter, 0xbf0, bMaskDWord);
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x0c29701f);
- tmpReg2 = PHY_QueryBBReg(pAdapter, 0xbf8, bMaskDWord);
-
- tmpReg = (tmpReg & bMaskHWord) >> 16;
- tmpReg2 = (tmpReg2 & bMaskHWord) >> 16;
-
- if(tmpReg < 0xf0 || tmpReg > 0x105 || tmpReg2 > 0xff)
- {
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x02017098);
-
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x80000000);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x800477c0);
- rtw_mdelay_os(1);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x000477c0);
- #ifdef CONFIG_LONG_DELAY_ISSUE
- rtw_msleep_os(50);
- #else
- rtw_mdelay_os(50);
- #endif
- RetryCount++;
- DBG_8192C("path B DPK RetryCount %d 0xbf0[31:16] %x, 0xbf8[31:16] %x\n", RetryCount , tmpReg, tmpReg2);
- }
- else
- {
- DBG_8192C("path B DPK Success\n");
- pdmpriv->bDPPathBOK = _TRUE;
- break;
- }
- }
-
- //DPP path B
- if(pdmpriv->bDPPathBOK)
- {
- // DP setting
- // LUT by SRAM
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x01017098);
- PHY_SetBBReg(pAdapter, 0xb74, bMaskDWord, 0x776d9f84);
- PHY_SetBBReg(pAdapter, 0xb98, bMaskDWord, 0x0004ab87);
- PHY_SetBBReg(pAdapter, 0xb6c, bMaskDWord, 0x00880000);
-
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x40000000);
- for(i=0xb60; i<=0xb9c; i+=4)
- {
- PHY_SetBBReg(pAdapter, i, bMaskDWord, 0x40004000);
- //DBG_8192C("path B ofsset = 0x%x\n", i);
- }
-
- // PWSF
- PHY_SetBBReg(pAdapter, 0xba0, bMaskDWord, 0x40404040);
- PHY_SetBBReg(pAdapter, 0xba4, bMaskDWord, 0x28324050);
- PHY_SetBBReg(pAdapter, 0xba8, bMaskDWord, 0x0c141920);
-
- for(i=0xbac; i<=0xbbc; i+=4)
- {
- PHY_SetBBReg(pAdapter, i, bMaskDWord, 0x0c0c0c0c);
- }
-
- // tx_agc boundary
- PHY_SetBBReg(pAdapter, 0xbc4, bMaskDWord, 0x0005361f);
- PHY_SetBBReg(pAdapter, 0xe28, bMaskDWord, 0x00000000);
-
- }
- else
- {
- PHY_SetBBReg(pAdapter, 0xb70, bMaskDWord, 0x00000000);
- PHY_SetBBReg(pAdapter, 0xb74, bMaskDWord, 0x00000000);
- }
- }
-
- //reload BB default value
- for(index=0; index<DP_BB_REG_NUM; index++)
- PHY_SetBBReg(pAdapter, BB_REG[index], bMaskDWord, BB_backup[index]);
-
- //reload RF default value
- for(path = 0; path<DP_PATH_NUM; path++)
- {
- for( i = 0 ; i < DP_RF_REG_NUM ; i++){
- PHY_SetRFReg(pAdapter, (RF90_RADIO_PATH_E)path, RF_REG[i], bMaskDWord, RF_backup[path][i]);
- }
- }
- PHY_SetRFReg(pAdapter, RF90_PATH_A, RF_MODE1, bMaskDWord, 0x1000f); //standby mode
- PHY_SetRFReg(pAdapter, RF90_PATH_A, RF_MODE2, bMaskDWord, 0x20101); //RF lpbk switches off
-
- //reload AFE default value
- _PHY_ReloadADDARegisters(pAdapter, AFE_REG, AFE_backup, IQK_ADDA_REG_NUM);
-
- //reload MAC default value
- _PHY_ReloadMACRegisters(pAdapter, MAC_REG, MAC_backup);
-
-// for( i = 0 ; i < DP_RF_REG_NUM ; i++){
-// PHY_SetRFReg(pAdapter, RF90_PATH_A, RF_REG_PATHA[i], bMaskDWord, RF_PATHA_backup[i]);
-// }
-
- pdmpriv->bDPdone = _TRUE;
- //DBG_8192C("<==_PHY_DigitalPredistortion()\n");
-#endif
-}
-
-
static VOID _PHY_SetRFPathSwitch(
IN PADAPTER pAdapter,
IN BOOLEAN bMain,
@@ -5255,22 +4608,6 @@ static BOOLEAN _PHY_QueryRFPathSwitch(
}
}
-
-static VOID
-_PHY_DumpRFReg(IN PADAPTER pAdapter)
-{
- u32 rfRegValue,rfRegOffset;
-
- //RTPRINT(FINIT, INIT_RF, ("PHY_DumpRFReg()====>\n"));
-
- for(rfRegOffset = 0x00;rfRegOffset<=0x30;rfRegOffset++){
- rfRegValue = PHY_QueryRFReg(pAdapter,RF90_PATH_A, rfRegOffset, bMaskDWord);
- //RTPRINT(FINIT, INIT_RF, (" 0x%02x = 0x%08x\n",rfRegOffset,rfRegValue));
- }
- //RTPRINT(FINIT, INIT_RF, ("<===== PHY_DumpRFReg()\n"));
-}
-
-
VOID
rtl8192c_PHY_IQCalibrate(
IN PADAPTER pAdapter,
@@ -5279,27 +4616,29 @@ rtl8192c_PHY_IQCalibrate(
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
- u32 IQK_BB_REG[9] = {
- rOFDM0_XARxIQImbalance, rOFDM0_XBRxIQImbalance, rOFDM0_ECCAThreshold, rOFDM0_AGCRSSITable,
- rOFDM0_XATxIQImbalance, rOFDM0_XBTxIQImbalance, rOFDM0_XCTxAFE, rOFDM0_XDTxAFE, rOFDM0_RxIQExtAnta};
- int result[4][8]; //last is final result
+ s32 result[4][8]; //last is final result
u8 i, final_candidate;
BOOLEAN bPathAOK, bPathBOK;
- int RegE94, RegE9C, RegEA4, RegEAC, RegEB4, RegEBC, RegEC4, RegECC, RegTmp = 0;
+ s32 RegE94, RegE9C, RegEA4, RegEAC, RegEB4, RegEBC, RegEC4, RegECC, RegTmp = 0;
BOOLEAN is12simular, is13simular, is23simular;
+ BOOLEAN bStartContTx = _FALSE, bSingleTone = _FALSE, bCarrierSuppression = _FALSE;
+ u32 IQK_BB_REG_92C[IQK_BB_REG_NUM] = {
+ rOFDM0_XARxIQImbalance, rOFDM0_XBRxIQImbalance,
+ rOFDM0_ECCAThreshold, rOFDM0_AGCRSSITable,
+ rOFDM0_XATxIQImbalance, rOFDM0_XBTxIQImbalance,
+ rOFDM0_XCTxAFE, rOFDM0_XDTxAFE,
+ rOFDM0_RxIQExtAnta};
+
+
+#if MP_DRIVER == 1
+ bStartContTx = pAdapter->mppriv.MptCtx.bStartContTx;
+ bSingleTone = pAdapter->mppriv.MptCtx.bSingleTone;
+ bCarrierSuppression = pAdapter->mppriv.MptCtx.bCarrierSuppression;
+#endif
-
-#if (MP_DRIVER == 1)
//ignore IQK when continuous Tx
- if (pAdapter->mppriv.MptCtx.bStartContTx == _TRUE)
- return;
- if (pAdapter->mppriv.MptCtx.bCarrierSuppression == _TRUE)
- return;
- if (pAdapter->mppriv.MptCtx.bSingleCarrier == _TRUE)
- return;
- if (pAdapter->mppriv.MptCtx.bSingleTone == _TRUE)
+ if(bStartContTx || bSingleTone || bCarrierSuppression)
return;
-#endif
#if DISABLE_BB_RF
return;
@@ -5307,7 +4646,7 @@ rtl8192c_PHY_IQCalibrate(
if(bReCovery)
{
- _PHY_ReloadADDARegisters(pAdapter, IQK_BB_REG, pdmpriv->IQK_BB_backup_recover, 9);
+ _PHY_ReloadADDARegisters(pAdapter, IQK_BB_REG_92C, pdmpriv->IQK_BB_backup_recover, 9);
return;
}
DBG_8192C("IQK:Start!!!\n");
@@ -5330,7 +4669,6 @@ rtl8192c_PHY_IQCalibrate(
{
if(IS_92C_SERIAL( pHalData->VersionID)){
_PHY_IQCalibrate(pAdapter, result, i, _TRUE);
- //_PHY_DumpRFReg(pAdapter);
}
else{
// For 88C 1T1R
@@ -5401,15 +4739,8 @@ rtl8192c_PHY_IQCalibrate(
}
else
{
-
- #if 0
- DBG_871X("%s do _PHY_ReloadADDARegisters\n");
- _PHY_ReloadADDARegisters(pAdapter, IQK_BB_REG, pdmpriv->IQK_BB_backup_recover, 9);
- return;
- #else
- pdmpriv->RegE94 = pdmpriv->RegEB4 = 0x100; //X default value
- pdmpriv->RegE9C = pdmpriv->RegEBC = 0x0; //Y default value
- #endif
+ RegE94 = RegEB4 = pdmpriv->RegE94 = pdmpriv->RegEB4 = 0x100; //X default value
+ RegE9C = RegEBC = pdmpriv->RegE9C = pdmpriv->RegEBC = 0x0; //Y default value
}
if((RegE94 != 0)/*&&(RegEA4 != 0)*/)
@@ -5420,7 +4751,7 @@ rtl8192c_PHY_IQCalibrate(
_PHY_PathBFillIQKMatrix(pAdapter, bPathBOK, result, final_candidate, (RegEC4 == 0));
}
- _PHY_SaveADDARegisters(pAdapter, IQK_BB_REG, pdmpriv->IQK_BB_backup_recover, 9);
+ _PHY_SaveADDARegisters(pAdapter, IQK_BB_REG_92C, pdmpriv->IQK_BB_backup_recover, 9);
}
@@ -5431,24 +4762,26 @@ rtl8192c_PHY_LCCalibrate(
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
+ struct mlme_ext_priv *pmlmeext = &pAdapter->mlmeextpriv;
+ BOOLEAN bStartContTx = _FALSE, bSingleTone = _FALSE, bCarrierSuppression = _FALSE;
-
-#if (MP_DRIVER == 1)
- // ignore LCK when continuous Tx
- if (pAdapter->mppriv.MptCtx.bStartContTx == _TRUE)
- return;
- if (pAdapter->mppriv.MptCtx.bCarrierSuppression == _TRUE)
- return;
- if (pAdapter->mppriv.MptCtx.bSingleCarrier == _TRUE)
- return;
- if (pAdapter->mppriv.MptCtx.bSingleTone == _TRUE)
- return;
+#if MP_DRIVER == 1
+ bStartContTx = pAdapter->mppriv.MptCtx.bStartContTx;
+ bSingleTone = pAdapter->mppriv.MptCtx.bSingleTone;
+ bCarrierSuppression = pAdapter->mppriv.MptCtx.bCarrierSuppression;
#endif
#if DISABLE_BB_RF
return;
#endif
+ //ignore IQK when continuous Tx
+ if(bStartContTx || bSingleTone || bCarrierSuppression)
+ return;
+
+ if(pmlmeext->sitesurvey_res.state == SCAN_PROCESS)
+ return;
+
if(IS_92C_SERIAL( pHalData->VersionID)){
_PHY_LCCalibrate(pAdapter, _TRUE);
}
@@ -5467,6 +4800,9 @@ rtl8192c_PHY_APCalibrate(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
+ //default disable APK, because Tx NG issue, suggest by Jenyu, 2011.11.25
+ return;
+
#if DISABLE_BB_RF
return;
#endif
@@ -5474,9 +4810,6 @@ rtl8192c_PHY_APCalibrate(
if(pdmpriv->bAPKdone)
return;
-// if(IS_NORMAL_CHIP(pHalData->VersionID))
-// return;
-
if(IS_92C_SERIAL( pHalData->VersionID)){
_PHY_APCalibrate(pAdapter, delta, _TRUE);
}
@@ -5486,32 +4819,6 @@ rtl8192c_PHY_APCalibrate(
}
}
-VOID
-rtl8192c_PHY_DigitalPredistortion(
- IN PADAPTER pAdapter
- )
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
- struct dm_priv *pdmpriv = &pHalData->dmpriv;
-
-#if DISABLE_BB_RF
- return;
-#endif
-
- return;
-
- if(pdmpriv->bDPdone)
- return;
-
- if(IS_92C_SERIAL( pHalData->VersionID)){
- _PHY_DigitalPredistortion(pAdapter, _TRUE);
- }
- else{
- // For 88C 1T1R
- _PHY_DigitalPredistortion(pAdapter, _FALSE);
- }
-}
-
VOID rtl8192c_PHY_SetRFPathSwitch(
IN PADAPTER pAdapter,
IN BOOLEAN bMain
@@ -5532,52 +4839,3 @@ VOID rtl8192c_PHY_SetRFPathSwitch(
}
}
-//
-// Move from phycfg.c to gen.c to be code independent later
-//
-//-------------------------Move to other DIR later----------------------------*/
-#ifdef CONFIG_USB_HCI
-
-//
-// Description:
-// To dump all Tx FIFO LLT related link-list table.
-// Added by Roger, 2009.03.10.
-//
-VOID
-DumpBBDbgPort_92CU(
- IN PADAPTER Adapter
- )
-{
-
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"));
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("BaseBand Debug Ports:\n"));
-
- PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0000);
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xdf4, PHY_QueryBBReg(Adapter, 0x0df4, bMaskDWord)));
-
- PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0803);
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xdf4, PHY_QueryBBReg(Adapter, 0x0df4, bMaskDWord)));
-
- PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0a06);
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xdf4, PHY_QueryBBReg(Adapter, 0x0df4, bMaskDWord)));
-
- PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0007);
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xdf4, PHY_QueryBBReg(Adapter, 0x0df4, bMaskDWord)));
-
- PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0100);
- PHY_SetBBReg(Adapter, 0x0a28, 0x00ff0000, 0x000f0000);
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xdf4, PHY_QueryBBReg(Adapter, 0x0df4, bMaskDWord)));
-
- PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0100);
- PHY_SetBBReg(Adapter, 0x0a28, 0x00ff0000, 0x00150000);
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xdf4, PHY_QueryBBReg(Adapter, 0x0df4, bMaskDWord)));
-
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0x800, PHY_QueryBBReg(Adapter, 0x0800, bMaskDWord)));
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0x900, PHY_QueryBBReg(Adapter, 0x0900, bMaskDWord)));
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xa00, PHY_QueryBBReg(Adapter, 0x0a00, bMaskDWord)));
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xa54, PHY_QueryBBReg(Adapter, 0x0a54, bMaskDWord)));
- //RT_TRACE(COMP_SEND, DBG_WARNING, ("Offset[%x]: %x\n", 0xa58, PHY_QueryBBReg(Adapter, 0x0a58, bMaskDWord)));
-
-}
-#endif
-
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rf6052.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rf6052.c
index 593ea09..cf46969 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rf6052.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rf6052.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
/******************************************************************************
*
*
@@ -109,35 +108,35 @@ void rtl8192c_RF_ChangeTxPath( IN PADAPTER Adapter,
if (RF_Path_Type == 2 && (DataRate&0xF) <= 0x7)
{
// Set TX SYNC power G2G3 loop filter
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TXPA_G2, bRFRegOffsetMask, 0x0f000);
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TXPA_G3, bRFRegOffsetMask, 0xeacf1);
// Change TX AGC gain table
for (i = 0; i < 6; i++)
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TX_AGC, bRFRegOffsetMask, tx_gain_tbl1[i]);
// Set PA to high value
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TXPA_G2, bRFRegOffsetMask, 0x01e39);
}
else if (RF_Path_Type == 1 && (DataRate&0xF) >= 0x8)
{
// Set TX SYNC power G2G3 loop filter
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TXPA_G2, bRFRegOffsetMask, 0x04440);
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TXPA_G3, bRFRegOffsetMask, 0xea4f1);
// Change TX AGC gain table
for (i = 0; i < 6; i++)
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TX_AGC, bRFRegOffsetMask, tx_gain_tbl2[i]);
// Set PA low gain
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)RF90_PATH_A,
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)RF_PATH_A,
RF_TXPA_G2, bRFRegOffsetMask, 0x01e19);
}
#endif
@@ -170,12 +169,12 @@ rtl8192c_PHY_RF6052SetBandwidth(
{
case HT_CHANNEL_WIDTH_20:
pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff) | 0x0400);
- PHY_SetRFReg(Adapter, RF90_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]);
+ PHY_SetRFReg(Adapter, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]);
break;
case HT_CHANNEL_WIDTH_40:
pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff));
- PHY_SetRFReg(Adapter, RF90_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]);
+ PHY_SetRFReg(Adapter, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]);
break;
default:
@@ -232,14 +231,14 @@ rtl8192c_PHY_RF6052SetCckTxPower(
if(pmlmeext->sitesurvey_res.state == SCAN_PROCESS)
{
- TxAGC[RF90_PATH_A] = 0x3f3f3f3f;
- TxAGC[RF90_PATH_B] = 0x3f3f3f3f;
+ TxAGC[RF_PATH_A] = 0x3f3f3f3f;
+ TxAGC[RF_PATH_B] = 0x3f3f3f3f;
TurboScanOff = _TRUE;//disable turbo scan
if(TurboScanOff)
{
- for(idx1=RF90_PATH_A; idx1<=RF90_PATH_B; idx1++)
+ for(idx1=RF_PATH_A; idx1<=RF_PATH_B; idx1++)
{
TxAGC[idx1] =
pPowerlevel[idx1] | (pPowerlevel[idx1]<<8) |
@@ -259,17 +258,17 @@ rtl8192c_PHY_RF6052SetCckTxPower(
// In the future, two mechanism shall be separated from each other and maintained independantly. Thanks for Lanhsin's reminder.
if(pdmpriv->DynamicTxHighPowerLvl == TxHighPwrLevel_Level1)
{
- TxAGC[RF90_PATH_A] = 0x10101010;
- TxAGC[RF90_PATH_B] = 0x10101010;
+ TxAGC[RF_PATH_A] = 0x10101010;
+ TxAGC[RF_PATH_B] = 0x10101010;
}
else if(pdmpriv->DynamicTxHighPowerLvl == TxHighPwrLevel_Level2)
{
- TxAGC[RF90_PATH_A] = 0x00000000;
- TxAGC[RF90_PATH_B] = 0x00000000;
+ TxAGC[RF_PATH_A] = 0x00000000;
+ TxAGC[RF_PATH_B] = 0x00000000;
}
else
{
- for(idx1=RF90_PATH_A; idx1<=RF90_PATH_B; idx1++)
+ for(idx1=RF_PATH_A; idx1<=RF_PATH_B; idx1++)
{
TxAGC[idx1] =
pPowerlevel[idx1] | (pPowerlevel[idx1]<<8) |
@@ -280,16 +279,16 @@ rtl8192c_PHY_RF6052SetCckTxPower(
{
tmpval = (pHalData->MCSTxPowerLevelOriginalOffset[0][6]) +
(pHalData->MCSTxPowerLevelOriginalOffset[0][7]<<8);
- TxAGC[RF90_PATH_A] += tmpval;
+ TxAGC[RF_PATH_A] += tmpval;
tmpval = (pHalData->MCSTxPowerLevelOriginalOffset[0][14]) +
(pHalData->MCSTxPowerLevelOriginalOffset[0][15]<<24);
- TxAGC[RF90_PATH_B] += tmpval;
+ TxAGC[RF_PATH_B] += tmpval;
}
}
}
- for(idx1=RF90_PATH_A; idx1<=RF90_PATH_B; idx1++)
+ for(idx1=RF_PATH_A; idx1<=RF_PATH_B; idx1++)
{
ptr = (u8*)(&(TxAGC[idx1]));
for(idx2=0; idx2<4; idx2++)
@@ -301,18 +300,18 @@ rtl8192c_PHY_RF6052SetCckTxPower(
}
// rf-A cck tx power
- tmpval = TxAGC[RF90_PATH_A]&0xff;
+ tmpval = TxAGC[RF_PATH_A]&0xff;
PHY_SetBBReg(Adapter, rTxAGC_A_CCK1_Mcs32, bMaskByte1, tmpval);
//RTPRINT(FPHY, PHY_TXPWR, ("CCK PWR 1M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, rTxAGC_A_CCK1_Mcs32));
- tmpval = TxAGC[RF90_PATH_A]>>8;
+ tmpval = TxAGC[RF_PATH_A]>>8;
PHY_SetBBReg(Adapter, rTxAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval);
//RTPRINT(FPHY, PHY_TXPWR, ("CCK PWR 2~11M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, rTxAGC_B_CCK11_A_CCK2_11));
// rf-B cck tx power
- tmpval = TxAGC[RF90_PATH_B]>>24;
+ tmpval = TxAGC[RF_PATH_B]>>24;
PHY_SetBBReg(Adapter, rTxAGC_B_CCK11_A_CCK2_11, bMaskByte0, tmpval);
//RTPRINT(FPHY, PHY_TXPWR, ("CCK PWR 11M (rf-B) = 0x%x (reg 0x%x)\n", tmpval, rTxAGC_B_CCK11_A_CCK2_11));
- tmpval = TxAGC[RF90_PATH_B]&0x00ffffff;
+ tmpval = TxAGC[RF_PATH_B]&0x00ffffff;
PHY_SetBBReg(Adapter, rTxAGC_B_CCK1_55_Mcs32, 0xffffff00, tmpval);
//RTPRINT(FPHY, PHY_TXPWR, ("CCK PWR 1~5.5M (rf-B) = 0x%x (reg 0x%x)\n",
// tmpval, rTxAGC_B_CCK1_55_Mcs32));
@@ -333,7 +332,8 @@ static void getPowerBase(
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
u32 powerBase0, powerBase1;
- u8 Legacy_pwrdiff=0, HT20_pwrdiff=0;
+ u8 Legacy_pwrdiff=0;
+ s8 HT20_pwrdiff=0;
u8 i, powerlevel[2];
for(i=0; i<2; i++)
@@ -639,43 +639,27 @@ phy_RF6052_Config_ParaFile(
{
if(IS_92C_SERIAL( pHalData->VersionID))// 88c's IPA is different from 92c's
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- pszRadioAFile = sz92CRadioAFile;
- pszRadioBFile = sz92CRadioBFile;
- }
- else
- {
- rtStatus = _FAIL;
- return rtStatus;
- }
+ pszRadioAFile = sz92CRadioAFile;
+ pszRadioBFile = sz92CRadioBFile;
}
else
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- pszRadioAFile = sz88CRadioAFile;
- pszRadioBFile = sz88CRadioBFile;
+ pszRadioAFile = sz88CRadioAFile;
+ pszRadioBFile = sz88CRadioBFile;
#ifdef CONFIG_USB_HCI
- if( BOARD_MINICARD == pHalData->BoardType)
- {
- pszRadioAFile = sz88CRadioAFile_mCard;
- pszRadioBFile = sz88CRadioBFile_mCard;
- }
- else if( BOARD_USB_High_PA == pHalData->BoardType)
- {
- pszRadioAFile = sz88CRadioAFile_HP;
- }
-#endif
+ if( BOARD_MINICARD == pHalData->BoardType)
+ {
+ pszRadioAFile = sz88CRadioAFile_mCard;
+ pszRadioBFile = sz88CRadioBFile_mCard;
}
- else
+ else if( BOARD_USB_High_PA == pHalData->BoardType)
{
- rtStatus = _FAIL;
- return rtStatus;
+ pszRadioAFile = sz88CRadioAFile_HP;
}
+#endif
}
}
- else if(IS_HARDWARE_TYPE_8723(Adapter))
+ else if(IS_HARDWARE_TYPE_8723A(Adapter))
{
pszRadioAFile = sz8723RadioAFile;
pszRadioBFile = sz8723RadioBFile;
@@ -684,7 +668,7 @@ phy_RF6052_Config_ParaFile(
//3//-----------------------------------------------------------------
//3// <2> Initialize RF
//3//-----------------------------------------------------------------
- //for(eRFPath = RF90_PATH_A; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
+ //for(eRFPath = RF_PATH_A; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
for(eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
{
@@ -693,12 +677,12 @@ phy_RF6052_Config_ParaFile(
/*----Store original RFENV control type----*/
switch(eRFPath)
{
- case RF90_PATH_A:
- case RF90_PATH_C:
+ case RF_PATH_A:
+ case RF_PATH_C:
u4RegValue = PHY_QueryBBReg(Adapter, pPhyReg->rfintfs, bRFSI_RFENV);
break;
- case RF90_PATH_B :
- case RF90_PATH_D:
+ case RF_PATH_B :
+ case RF_PATH_D:
u4RegValue = PHY_QueryBBReg(Adapter, pPhyReg->rfintfs, bRFSI_RFENV<<16);
break;
}
@@ -721,35 +705,35 @@ phy_RF6052_Config_ParaFile(
/*----Initialize RF fom connfiguration file----*/
switch(eRFPath)
{
- case RF90_PATH_A:
+ case RF_PATH_A:
#ifdef CONFIG_EMBEDDED_FWIMG
- rtStatus= rtl8192c_PHY_ConfigRFWithHeaderFile(Adapter,(RF90_RADIO_PATH_E)eRFPath);
+ rtStatus= rtl8192c_PHY_ConfigRFWithHeaderFile(Adapter,(RF_RADIO_PATH_E)eRFPath);
#else
- rtStatus = rtl8192c_PHY_ConfigRFWithParaFile(Adapter, pszRadioAFile, (RF90_RADIO_PATH_E)eRFPath);
+ rtStatus = rtl8192c_PHY_ConfigRFWithParaFile(Adapter, pszRadioAFile, (RF_RADIO_PATH_E)eRFPath);
#endif
break;
- case RF90_PATH_B:
+ case RF_PATH_B:
#ifdef CONFIG_EMBEDDED_FWIMG
- rtStatus = rtl8192c_PHY_ConfigRFWithHeaderFile(Adapter,(RF90_RADIO_PATH_E)eRFPath);
+ rtStatus = rtl8192c_PHY_ConfigRFWithHeaderFile(Adapter,(RF_RADIO_PATH_E)eRFPath);
#else
- rtStatus = rtl8192c_PHY_ConfigRFWithParaFile(Adapter, pszRadioBFile, (RF90_RADIO_PATH_E)eRFPath);
+ rtStatus = rtl8192c_PHY_ConfigRFWithParaFile(Adapter, pszRadioBFile, (RF_RADIO_PATH_E)eRFPath);
#endif
break;
- case RF90_PATH_C:
+ case RF_PATH_C:
break;
- case RF90_PATH_D:
+ case RF_PATH_D:
break;
}
/*----Restore RFENV control type----*/;
switch(eRFPath)
{
- case RF90_PATH_A:
- case RF90_PATH_C:
+ case RF_PATH_A:
+ case RF_PATH_C:
PHY_SetBBReg(Adapter, pPhyReg->rfintfs, bRFSI_RFENV, u4RegValue);
break;
- case RF90_PATH_B :
- case RF90_PATH_D:
+ case RF_PATH_B :
+ case RF_PATH_D:
PHY_SetBBReg(Adapter, pPhyReg->rfintfs, bRFSI_RFENV<<16, u4RegValue);
break;
}
@@ -847,7 +831,7 @@ PHY_RF6052_Config8192C(
u32
PHY_RFShadowRead(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset)
{
return RF_Shadow[eRFPath][Offset].Value;
@@ -858,7 +842,7 @@ PHY_RFShadowRead(
VOID
PHY_RFShadowWrite(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset,
IN u32 Data)
{
@@ -871,7 +855,7 @@ PHY_RFShadowWrite(
BOOLEAN
PHY_RFShadowCompare(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset)
{
u32 reg;
@@ -897,7 +881,7 @@ PHY_RFShadowCompare(
VOID
PHY_RFShadowRecorver(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset)
{
// Check if the address is error
@@ -928,7 +912,7 @@ PHY_RFShadowCompareAll(
{
for (Offset = 0; Offset <= RF6052_MAX_REG; Offset++)
{
- PHY_RFShadowCompare(Adapter, (RF90_RADIO_PATH_E)eRFPath, Offset);
+ PHY_RFShadowCompare(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset);
}
}
@@ -946,7 +930,7 @@ PHY_RFShadowRecorverAll(
{
for (Offset = 0; Offset <= RF6052_MAX_REG; Offset++)
{
- PHY_RFShadowRecorver(Adapter, (RF90_RADIO_PATH_E)eRFPath, Offset);
+ PHY_RFShadowRecorver(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset);
}
}
@@ -956,7 +940,7 @@ PHY_RFShadowRecorverAll(
VOID
PHY_RFShadowCompareFlagSet(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset,
IN u8 Type)
{
@@ -969,7 +953,7 @@ PHY_RFShadowCompareFlagSet(
VOID
PHY_RFShadowRecorverFlagSet(
IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 Offset,
IN u8 Type)
{
@@ -992,9 +976,9 @@ PHY_RFShadowCompareFlagSetAll(
{
// 2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!!
if (Offset != 0x26 && Offset != 0x27)
- PHY_RFShadowCompareFlagSet(Adapter, (RF90_RADIO_PATH_E)eRFPath, Offset, _FALSE);
+ PHY_RFShadowCompareFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _FALSE);
else
- PHY_RFShadowCompareFlagSet(Adapter, (RF90_RADIO_PATH_E)eRFPath, Offset, _TRUE);
+ PHY_RFShadowCompareFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _TRUE);
}
}
@@ -1014,9 +998,9 @@ PHY_RFShadowRecorverFlagSetAll(
{
// 2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!!
if (Offset != 0x26 && Offset != 0x27)
- PHY_RFShadowRecorverFlagSet(Adapter, (RF90_RADIO_PATH_E)eRFPath, Offset, _FALSE);
+ PHY_RFShadowRecorverFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _FALSE);
else
- PHY_RFShadowRecorverFlagSet(Adapter, (RF90_RADIO_PATH_E)eRFPath, Offset, _TRUE);
+ PHY_RFShadowRecorverFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _TRUE);
}
}
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rxdesc.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rxdesc.c
index 5aa6e61..3e0d795 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rxdesc.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_rxdesc.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _RTL8192C_REDESC_C_
#include <drv_conf.h>
#include <osdep_service.h>
@@ -196,7 +196,7 @@ static s32 translate2dbm(u8 signal_strength_idx)
return signal_power;
}
-void rtl8192c_query_rx_phy_status(union recv_frame *prframe, struct phy_stat *pphy_stat)
+static void query_rx_phy_status(union recv_frame *prframe, struct phy_stat *pphy_stat)
{
PHY_STS_OFDM_8192CD_T *pOfdm_buf;
PHY_STS_CCK_8192CD_T *pCck_buf;
@@ -383,9 +383,9 @@ void rtl8192c_query_rx_phy_status(union recv_frame *prframe, struct phy_stat *pp
//continue;
rx_pwr[i] = ((pOfdm_buf->trsw_gain_X[i]&0x3F)*2) - 110;
- pattrib->rx_rssi[i]=query_rx_pwr_percentage(rx_pwr[i]);
+ padapter->recvpriv.RxRssi[i] = rx_pwr[i];
/* Translate DBM to percentage. */
- rssi=query_rx_pwr_percentage(rx_pwr[i]);
+ pattrib->rx_rssi[i] = rssi = query_rx_pwr_percentage(rx_pwr[i]);
total_rssi += rssi;
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("RF-%d RXPWR=%x RSSI=%d\n", i, rx_pwr[i], rssi));
@@ -733,8 +733,7 @@ static void process_link_qual(_adapter *padapter,union recv_frame *prframe)
}// Process_UiLinkQuality8192S
-//void rtl8192c_process_phy_info(_adapter *padapter, union recv_frame *prframe)
-void rtl8192c_process_phy_info(_adapter *padapter, void *prframe)
+static void process_phy_info(_adapter *padapter, union recv_frame *prframe)
{
union recv_frame *precvframe = (union recv_frame *)prframe;
@@ -765,3 +764,113 @@ void rtl8192c_process_phy_info(_adapter *padapter, void *prframe)
}
+void rtl8192c_translate_rx_signal_stuff(union recv_frame *precvframe, struct phy_stat *pphy_info)
+{
+ struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
+ _adapter *padapter = precvframe->u.hdr.adapter;
+ u8 bPacketMatchBSSID =_FALSE;
+ u8 bPacketToSelf = _FALSE;
+ u8 bPacketBeacon = _FALSE;
+
+ if((pattrib->physt) && (pphy_info != NULL))
+ {
+ bPacketMatchBSSID = ((!IsFrameTypeCtrl(precvframe->u.hdr.rx_data)) && !(pattrib->icv_err) && !(pattrib->crc_err) &&
+ _rtw_memcmp(get_hdr_bssid(precvframe->u.hdr.rx_data), get_my_bssid(&padapter->mlmeextpriv.mlmext_info.network), ETH_ALEN));
+
+
+ bPacketToSelf = bPacketMatchBSSID && (_rtw_memcmp(get_da(precvframe->u.hdr.rx_data), myid(&padapter->eeprompriv), ETH_ALEN));
+
+ bPacketBeacon =bPacketMatchBSSID && (GetFrameSubType(precvframe->u.hdr.rx_data) == WIFI_BEACON);
+
+ query_rx_phy_status(precvframe, pphy_info);
+
+ precvframe->u.hdr.psta = NULL;
+ if(bPacketMatchBSSID && check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
+ {
+ u8 *sa;
+ struct sta_info *psta=NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ sa = get_sa(precvframe->u.hdr.rx_data);
+
+ psta = rtw_get_stainfo(pstapriv, sa);
+ if(psta)
+ {
+ precvframe->u.hdr.psta = psta;
+ process_phy_info(padapter, precvframe);
+ }
+ }
+ else if(bPacketToSelf || bPacketBeacon)
+ {
+ if(check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == _TRUE)
+ {
+ u8 *sa;
+ struct sta_info *psta=NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ sa = get_sa(precvframe->u.hdr.rx_data);
+
+ psta = rtw_get_stainfo(pstapriv, sa);
+ if(psta)
+ {
+ precvframe->u.hdr.psta = psta;
+ }
+ }
+
+ process_phy_info(padapter, precvframe);
+ }
+ }
+}
+
+void rtl8192c_query_rx_desc_status(union recv_frame *precvframe, struct recv_stat *pdesc)
+{
+ struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
+
+ //Offset 0
+ pattrib->physt = (u8)((le32_to_cpu(pdesc->rxdw0) >> 26) & 0x1);
+ pattrib->pkt_len = (u16)(le32_to_cpu(pdesc->rxdw0)&0x00003fff);
+ pattrib->drvinfo_sz = (u8)((le32_to_cpu(pdesc->rxdw0) >> 16) & 0xf) * 8;//uint 2^3 = 8 bytes
+
+ pattrib->shift_sz = (u8)((le32_to_cpu(pdesc->rxdw0) >> 24) & 0x3);
+
+ pattrib->crc_err = (u8)((le32_to_cpu(pdesc->rxdw0) >> 14) & 0x1);
+ pattrib->icv_err = (u8)((le32_to_cpu(pdesc->rxdw0) >> 15) & 0x1);
+ pattrib->qos = (u8)(( le32_to_cpu( pdesc->rxdw0 ) >> 23) & 0x1);// Qos data, wireless lan header length is 26
+ pattrib->bdecrypted = (le32_to_cpu(pdesc->rxdw0) & BIT(27))? 0:1;
+
+ //Offset 4
+ pattrib->mfrag = (u8)((le32_to_cpu(pdesc->rxdw1) >> 27) & 0x1);//more fragment bit
+
+ //Offset 8
+ pattrib->frag_num = (u8)((le32_to_cpu(pdesc->rxdw2) >> 12) & 0xf);//fragmentation number
+
+ //Offset 12
+#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
+ if ( le32_to_cpu(pdesc->rxdw3) & BIT(13)){
+ pattrib->tcpchk_valid = 1; // valid
+ if ( le32_to_cpu(pdesc->rxdw3) & BIT(11) ) {
+ pattrib->tcp_chkrpt = 1; // correct
+ //DBG_8192C("tcp csum ok\n");
+ }
+ else
+ pattrib->tcp_chkrpt = 0; // incorrect
+
+ if ( le32_to_cpu(pdesc->rxdw3) & BIT(12) )
+ pattrib->ip_chkrpt = 1; // correct
+ else
+ pattrib->ip_chkrpt = 0; // incorrect
+ }
+ else {
+ pattrib->tcpchk_valid = 0; // invalid
+ }
+#endif
+
+ pattrib->mcs_rate=(u8)((le32_to_cpu(pdesc->rxdw3))&0x3f);
+ pattrib->rxht=(u8)((le32_to_cpu(pdesc->rxdw3) >>6)&0x1);
+ pattrib->sgi=(u8)((le32_to_cpu(pdesc->rxdw3) >>8)&0x1);
+ //Offset 16
+ //Offset 20
+
+}
+
+
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_sreset.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_sreset.c
index e2817f3..1368d66 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_sreset.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_sreset.c
@@ -16,189 +16,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#include <rtl8192c_sreset.h>
#include <rtl8192c_hal.h>
#ifdef DBG_CONFIG_ERROR_DETECT
-extern void rtw_cancel_all_timer(_adapter *padapter);
-
-void rtl8192c_sreset_init_value(_adapter *padapter)
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct sreset_priv *psrtpriv = &pHalData->srestpriv;
-
- _rtw_mutex_init(&psrtpriv->silentreset_mutex );
- psrtpriv->silent_reset_inprogress = _FALSE;
- psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
- psrtpriv->last_tx_time =0;
- psrtpriv->last_tx_complete_time =0;
-}
-void rtl8192c_sreset_reset_value(_adapter *padapter)
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct sreset_priv *psrtpriv = &pHalData->srestpriv;
- psrtpriv->silent_reset_inprogress = _FALSE;
- psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
- psrtpriv->last_tx_time =0;
- psrtpriv->last_tx_complete_time =0;
-}
-
-static void _restore_security_setting(_adapter *padapter)
-{
- u8 EntryId = 0;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct sta_priv * pstapriv = &padapter->stapriv;
- struct sta_info *psta;
- struct security_priv* psecuritypriv=&(padapter->securitypriv);
- struct mlme_ext_info *pmlmeinfo = &padapter->mlmeextpriv.mlmext_info;
-
- (pmlmeinfo->auth_algo == dot11AuthAlgrthm_8021X)
- ? rtw_write8(padapter, REG_SECCFG, 0xcc)
- : rtw_write8(padapter, REG_SECCFG, 0xcf);
-
- if ( ( padapter->securitypriv.dot11PrivacyAlgrthm == _WEP40_ ) ||
- ( padapter->securitypriv.dot11PrivacyAlgrthm == _WEP104_ ))
- {
-
- for(EntryId=0; EntryId<4; EntryId++)
- {
- if(EntryId == psecuritypriv->dot11PrivacyKeyIndex)
- rtw_set_key(padapter,&padapter->securitypriv, EntryId, 1);
- else
- rtw_set_key(padapter,&padapter->securitypriv, EntryId, 0);
- }
-
- }
- else if((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) ||
- (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_))
- {
- psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv));
- if (psta == NULL) {
- //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail \n"));
- }
- else
- {
- //pairwise key
- rtw_setstakey_cmd(padapter, (unsigned char *)psta, _TRUE);
- //group key
- rtw_set_key(padapter,&padapter->securitypriv,padapter->securitypriv.dot118021XGrpKeyid, 0);
- }
- }
-
-}
-
-static void _restore_network_status(_adapter *padapter)
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX*)(&(pmlmeinfo->network));
- unsigned short caps;
- u8 join_type;
-#if 1
-
- //=======================================================
- // reset related register of Beacon control
-
- //set MSR to nolink
- Set_NETYPE0_MSR(padapter, _HW_STATE_NOLINK_);
- // reject all data frame
- rtw_write16(padapter, REG_RXFLTMAP2,0x00);
- //reset TSF
- rtw_write8(padapter, REG_DUAL_TSF_RST, (BIT(0)|BIT(1)));
-
- //disable update TSF
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)|BIT(4));
- else
- rtw_write8(padapter, REG_BCN_CTRL, rtw_read8(padapter, REG_BCN_CTRL)|BIT(4)|BIT(5));
-
- //=======================================================
- rtw_joinbss_reset(padapter);
- set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
- //pmlmeinfo->assoc_AP_vendor = maxAP;
-
- if (padapter->registrypriv.wifi_spec) {
- // for WiFi test, follow WMM test plan spec
- rtw_write32(padapter, REG_EDCA_VO_PARAM, 0x002F431C);
- rtw_write32(padapter, REG_EDCA_VI_PARAM, 0x005E541C);
- rtw_write32(padapter, REG_EDCA_BE_PARAM, 0x0000A525);
- rtw_write32(padapter, REG_EDCA_BK_PARAM, 0x0000A549);
-
- // for WiFi test, mixed mode with intel STA under bg mode throughput issue
- if (padapter->mlmepriv.htpriv.ht_option == 0)
- rtw_write32(padapter, REG_EDCA_BE_PARAM, 0x00004320);
-
- } else {
- rtw_write32(padapter, REG_EDCA_VO_PARAM, 0x002F3217);
- rtw_write32(padapter, REG_EDCA_VI_PARAM, 0x005E4317);
- rtw_write32(padapter, REG_EDCA_BE_PARAM, 0x00105320);
- rtw_write32(padapter, REG_EDCA_BK_PARAM, 0x0000A444);
- }
-
- //disable dynamic functions, such as high power, DIG
- //Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
-#endif
-
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BSSID, pmlmeinfo->network.MacAddress);
- join_type = 0;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
-
- Set_NETYPE0_MSR(padapter, (pmlmeinfo->state & 0x3));
-
- mlmeext_joinbss_event_callback(padapter, 1);
- //restore Sequence No.
- rtw_write8(padapter,0x4dc,padapter->xmitpriv.nqos_ssn);
-}
-void rtl8192c_silentreset_for_specific_platform(_adapter *padapter)
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct sreset_priv *psrtpriv = &pHalData->srestpriv;
-
- struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- _irqL irqL;
-
-#ifdef DBG_CONFIG_ERROR_RESET
-
- DBG_871X("%s\n", __FUNCTION__);
-
- psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
-
- if (!netif_queue_stopped(padapter->pnetdev))
- netif_stop_queue(padapter->pnetdev);
-
- rtw_cancel_all_timer(padapter);
- tasklet_kill(&pxmitpriv->xmit_tasklet);
-
- _enter_critical_mutex(&psrtpriv->silentreset_mutex, &irqL);
- psrtpriv->silent_reset_inprogress = _TRUE;
- pwrpriv->change_rfpwrstate = rf_off;
-#ifdef CONFIG_IPS
- ips_enter(padapter);
- ips_leave(padapter);
-#endif
- if(check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE)
- {
- _restore_network_status(padapter);
- _restore_security_setting(padapter);
- }
-
- _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY | _FW_UNDER_LINKING);
-
- psrtpriv->silent_reset_inprogress = _FALSE;
- _exit_critical_mutex(&psrtpriv->silentreset_mutex, &irqL);
-
- tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
- _set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
-
- if (netif_queue_stopped(padapter->pnetdev))
- netif_wake_queue(padapter->pnetdev);
-#endif
-}
-
void rtl8192c_sreset_xmit_status_check(_adapter *padapter)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@@ -210,34 +31,44 @@ void rtl8192c_sreset_xmit_status_check(_adapter *padapter)
u32 txdma_status;
if( (txdma_status=rtw_read32(padapter, REG_TXDMA_STATUS)) !=0x00){
DBG_871X("%s REG_TXDMA_STATUS:0x%08x\n", __FUNCTION__, txdma_status);
- rtl8192c_silentreset_for_specific_platform(padapter);
+ rtw_hal_sreset_reset(padapter);
}
//total xmit irp = 4
//DBG_8192C("==>%s free_xmitbuf_cnt(%d),txirp_cnt(%d)\n",__FUNCTION__,pxmitpriv->free_xmitbuf_cnt,pxmitpriv->txirp_cnt);
//if(pxmitpriv->txirp_cnt == NR_XMITBUFF+1)
current_time = rtw_get_current_time();
- if(0==pxmitpriv->free_xmitbuf_cnt)
- {
- diff_time = jiffies_to_msecs(current_time - psrtpriv->last_tx_time);
-
- if(diff_time > 2000){
- if(psrtpriv->last_tx_complete_time==0){
+
+ if(0 == pxmitpriv->free_xmitbuf_cnt || 0 == pxmitpriv->free_xmit_extbuf_cnt) {
+
+ diff_time = rtw_get_passing_time_ms(psrtpriv->last_tx_time);
+
+ if (diff_time > 2000) {
+ if (psrtpriv->last_tx_complete_time == 0) {
psrtpriv->last_tx_complete_time = current_time;
}
else{
- diff_time = jiffies_to_msecs(current_time - psrtpriv->last_tx_complete_time);
- if(diff_time > 4000){
+ diff_time = rtw_get_passing_time_ms(psrtpriv->last_tx_complete_time);
+ if (diff_time > 4000) {
//padapter->Wifi_Error_Status = WIFI_TX_HANG;
- DBG_8192C("%s tx hang\n", __FUNCTION__);
- rtl8192c_silentreset_for_specific_platform(padapter);
+ DBG_871X("%s tx hang\n", __FUNCTION__);
+ rtw_hal_sreset_reset(padapter);
}
}
- }
- }
+ }
+ }
+
+ if (psrtpriv->dbg_trigger_point == SRESET_TGP_XMIT_STATUS) {
+ psrtpriv->dbg_trigger_point = SRESET_TGP_NULL;
+ rtw_hal_sreset_reset(padapter);
+ return;
+ }
}
void rtl8192c_sreset_linked_status_check(_adapter *padapter)
{
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ struct sreset_priv *psrtpriv = &pHalData->srestpriv;
+
u32 regc50,regc58,reg824,reg800;
regc50 = rtw_read32(padapter,0xc50);
regc58 = rtw_read32(padapter,0xc58);
@@ -250,44 +81,14 @@ void rtl8192c_sreset_linked_status_check(_adapter *padapter)
{
DBG_8192C("%s regc50:0x%08x, regc58:0x%08x, reg824:0x%08x, reg800:0x%08x,\n", __FUNCTION__,
regc50, regc58, reg824, reg800);
- rtl8192c_silentreset_for_specific_platform(padapter);
- }
-}
-
-#ifdef DBG_CONFIG_ERROR_DETECT
-u8 rtl8192c_sreset_get_wifi_status(_adapter *padapter)
-{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct sreset_priv *psrtpriv = &pHalData->srestpriv;
-
- u8 status = WIFI_STATUS_SUCCESS;
- u32 val32 = 0;
- _irqL irqL;
- if(psrtpriv->silent_reset_inprogress == _TRUE)
- {
- return status;
+ rtw_hal_sreset_reset(padapter);
}
- val32 =rtw_read32(padapter,REG_TXDMA_STATUS);
- if(val32==0xeaeaeaea){
- psrtpriv->Wifi_Error_Status = WIFI_IF_NOT_EXIST;
- }
- else if(val32!=0){
- DBG_8192C("txdmastatu(%x)\n",val32);
- psrtpriv->Wifi_Error_Status = WIFI_MAC_TXDMA_ERROR;
- }
- if(WIFI_STATUS_SUCCESS !=psrtpriv->Wifi_Error_Status)
- {
- DBG_8192C("==>%s error_status(0x%x) \n",__FUNCTION__,psrtpriv->Wifi_Error_Status);
- status = (psrtpriv->Wifi_Error_Status &( ~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL)));
+ if (psrtpriv->dbg_trigger_point == SRESET_TGP_LINK_STATUS) {
+ psrtpriv->dbg_trigger_point = SRESET_TGP_NULL;
+ rtw_hal_sreset_reset(padapter);
+ return;
}
- DBG_8192C("==> %s wifi_status(0x%x)\n",__FUNCTION__,status);
-
- //status restore
- psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
-
- return status;
}
#endif
-#endif
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_xmit.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_xmit.c
new file mode 100644
index 0000000..2cfd851
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/rtl8192c_xmit.c
@@ -0,0 +1,63 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#define _RTL8192C_XMIT_C_
+
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+#include <rtl8192c_hal.h>
+
+#ifdef CONFIG_XMIT_ACK
+void dump_txrpt_ccx_8192c(void *buf)
+{
+ struct txrpt_ccx_8192c *txrpt_ccx = buf;
+
+ DBG_871X("%s:\n"
+ "retry_cnt:%u, rsvd_0:%u, rts_retry_cnt:%u, rsvd_1:%u\n"
+ "ccx_qtime:%u, missed_pkt_num:%u, rsvd_4:%u\n"
+ "mac_id:%u, des1_fragssn:%u\n"
+ "rpt_pkt_num:%u, pkt_drop:%u, lifetime_over:%u, retry_over:%u\n"
+ "edca_tx_queue:%u, rsvd_7:%u, bmc:%u, pkt_ok:%u, init_ccx:%u\n"
+ , __func__
+ , txrpt_ccx->retry_cnt, txrpt_ccx->rsvd_0, txrpt_ccx->rts_retry_cnt, txrpt_ccx->rsvd_1
+ , txrpt_ccx_qtime_8192c(txrpt_ccx), txrpt_ccx->missed_pkt_num, txrpt_ccx->rsvd_4
+ , txrpt_ccx->mac_id, txrpt_ccx->des1_fragssn
+ , txrpt_ccx->rpt_pkt_num, txrpt_ccx->pkt_drop, txrpt_ccx->lifetime_over, txrpt_ccx->retry_over
+ , txrpt_ccx->edca_tx_queue, txrpt_ccx->rsvd_7, txrpt_ccx->bmc, txrpt_ccx->pkt_ok, txrpt_ccx->int_ccx
+ );
+}
+
+void handle_txrpt_ccx_8192c(_adapter *adapter, void *buf)
+{
+ struct txrpt_ccx_8192c *txrpt_ccx = buf;
+
+ #ifdef DBG_CCX
+ dump_txrpt_ccx_8192c(buf);
+ #endif
+
+ if (txrpt_ccx->int_ccx) {
+ if (txrpt_ccx->pkt_ok)
+ rtw_ack_tx_done(&adapter->xmitpriv, RTW_SCTX_DONE_SUCCESS);
+ else
+ rtw_ack_tx_done(&adapter->xmitpriv, RTW_SCTX_DONE_CCX_PKT_FAIL);
+ }
+}
+#endif //CONFIG_XMIT_ACK
+
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/Hal8192CUHWImg.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/Hal8192CUHWImg.c
index 1615b5d..b49486b 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/Hal8192CUHWImg.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/Hal8192CUHWImg.c
@@ -24,9 +24,994 @@
#include "Hal8192CUHWImg.h"
#ifdef CONFIG_BT_COEXISTENCE
-// =================== v79 TSMC COMMON 2011-10-06 =======================
+// =================== v84 TSMC COMMON 2012-04-13 =======================
u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
-0xc1,0x88,0x02,0x00,0x4f,0x00,0x00,0x00,0x0a,0x06,0x18,0x02,0x58,0x3f,0x00,0x00,
+0xc1,0x88,0x02,0x00,0x54,0x00,0x01,0x00,0x04,0x13,0x11,0x07,0x3a,0x3d,0x00,0x00,
+0x58,0x97,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x02,0x50,0xa1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x02,0x57,0x91,0x00,0x00,0x00,0x00,0x00,0xa1,0xe8,0x00,0x00,0x00,
+0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
+0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
+0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
+0x12,0x11,0x10,0x08,0x00,0x10,0x1a,0x19,0x18,0x10,0x00,0x18,0x22,0x21,0x20,0x18,
+0x00,0x20,0x22,0x21,0x20,0x10,0x00,0x20,0x22,0x21,0x20,0x08,0x00,0x20,0x22,0x21,
+0x1c,0x08,0x00,0x20,0x22,0x21,0x14,0x08,0x00,0x20,0x22,0x20,0x18,0x08,0x00,0x20,
+0x31,0x30,0x20,0x10,0x00,0x30,0x31,0x30,0x18,0x00,0x00,0x30,0x31,0x2f,0x10,0x10,
+0x00,0x30,0x31,0x2c,0x10,0x10,0x00,0x30,0x31,0x28,0x10,0x00,0x00,0x30,0x31,0x20,
+0x10,0x00,0x00,0x30,0x31,0x10,0x10,0x00,0x00,0x30,0x04,0x04,0x04,0x05,0x04,0x04,
+0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,
+0x05,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x05,0x05,0x05,0x05,0x06,0x07,0x0a,0x0b,
+0x0d,0x10,0x04,0x05,0x05,0x06,0x06,0x09,0x0c,0x11,0x08,0x08,0x09,0x09,0x0a,0x0c,
+0x10,0x11,0x04,0x04,0x04,0x05,0x04,0x04,0x05,0x07,0x07,0x07,0x08,0x0a,0x04,0x04,
+0x04,0x04,0x06,0x0a,0x0b,0x0d,0x05,0x05,0x07,0x07,0x08,0x0b,0x0d,0x0f,0x04,0x04,
+0x04,0x05,0x07,0x07,0x09,0x09,0x0c,0x0e,0x10,0x12,0x04,0x04,0x05,0x05,0x06,0x0a,
+0x11,0x13,0x09,0x09,0x09,0x09,0x0c,0x0e,0x11,0x13,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x24,0x26,0x2a,0x18,0x1a,0x1d,0x1f,0x21,0x27,0x29,0x2a,0x00,0x00,
+0x00,0x1f,0x23,0x28,0x2a,0x2c,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x18,
+0x00,0x24,0x00,0x30,0x00,0x48,0x00,0x60,0x00,0x90,0x00,0xc0,0x00,0xd8,0x00,0x50,
+0x00,0x78,0x00,0xa0,0x00,0xc8,0x01,0x40,0x01,0x90,0x01,0xe0,0x02,0x30,0x01,0x2c,
+0x01,0x40,0x01,0xe0,0x02,0xd0,0x03,0xe8,0x04,0xb0,0x06,0x40,0x07,0xd0,0x00,0x02,
+0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x0c,0x00,0x12,0x00,0x18,0x00,0x24,0x00,0x30,
+0x00,0x48,0x00,0x60,0x00,0x6c,0x00,0x28,0x00,0x3c,0x00,0x50,0x00,0x64,0x00,0xa0,
+0x00,0xc8,0x00,0xf0,0x01,0x18,0x00,0x64,0x00,0xa0,0x00,0xf0,0x01,0x68,0x01,0xf4,
+0x02,0x58,0x03,0x20,0x03,0xe8,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x04,0x04,
+0x05,0x07,0x04,0x04,0x07,0x0a,0x0a,0x0c,0x0c,0x12,0x05,0x07,0x07,0x08,0x0b,0x12,
+0x24,0x3c,0x01,0x01,0x01,0x01,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x01,0x02,
+0x03,0x04,0x05,0x06,0x07,0x08,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x20,0x1e,
+0x1c,0x18,0x10,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0xbb,0x01,0x0c,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,0x22,0x50,
+0x06,0xe9,0x25,0x82,0xf8,0xe6,0x22,0xbb,0xfe,0x06,0xe9,0x25,0x82,0xf8,0xe2,0x22,
+0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe4,0x93,0x22,0xbb,0x01,0x06,
+0x89,0x82,0x8a,0x83,0xf0,0x22,0x50,0x02,0xf7,0x22,0xbb,0xfe,0x01,0xf3,0x22,0xf8,
+0xbb,0x01,0x0d,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0x22,
+0x50,0x06,0xe9,0x25,0x82,0xc8,0xf6,0x22,0xbb,0xfe,0x05,0xe9,0x25,0x82,0xc8,0xf2,
+0x22,0xc5,0xf0,0xf8,0xa3,0xe0,0x28,0xf0,0xc5,0xf0,0xf8,0xe5,0x82,0x15,0x82,0x70,
+0x02,0x15,0x83,0xe0,0x38,0xf0,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xe0,0xf5,
+0xf0,0xa3,0xe0,0x22,0x50,0x06,0x87,0xf0,0x09,0xe7,0x19,0x22,0xbb,0xfe,0x07,0xe3,
+0xf5,0xf0,0x09,0xe3,0x19,0x22,0x89,0x82,0x8a,0x83,0xe4,0x93,0xf5,0xf0,0x74,0x01,
+0x93,0x22,0xbb,0x01,0x10,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,
+0xf5,0xf0,0xa3,0xe0,0x22,0x50,0x09,0xe9,0x25,0x82,0xf8,0x86,0xf0,0x08,0xe6,0x22,
+0xbb,0xfe,0x0a,0xe9,0x25,0x82,0xf8,0xe2,0xf5,0xf0,0x08,0xe2,0x22,0xe5,0x83,0x2a,
+0xf5,0x83,0xe9,0x93,0xf5,0xf0,0xa3,0xe9,0x93,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,
+0x83,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x06,0xf7,0x09,0xa7,0xf0,0x19,0x22,0xbb,
+0xfe,0x06,0xf3,0xe5,0xf0,0x09,0xf3,0x19,0x22,0xf8,0xbb,0x01,0x11,0xe5,0x82,0x29,
+0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x09,
+0xe9,0x25,0x82,0xc8,0xf6,0x08,0xa6,0xf0,0x22,0xbb,0xfe,0x09,0xe9,0x25,0x82,0xc8,
+0xf2,0xe5,0xf0,0x08,0xf2,0x22,0xef,0x4b,0xff,0xee,0x4a,0xfe,0xed,0x49,0xfd,0xec,
+0x48,0xfc,0x22,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xa4,
+0x25,0x82,0xf5,0x82,0xe5,0xf0,0x35,0x83,0xf5,0x83,0x22,0xe0,0xfb,0xa3,0xe0,0xfa,
+0xa3,0xe0,0xf9,0x22,0xf8,0xe0,0xfb,0xa3,0xa3,0xe0,0xf9,0x25,0xf0,0xf0,0xe5,0x82,
+0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0xfa,0x38,0xf0,0x22,0xeb,0xf0,0xa3,0xea,0xf0,
+0xa3,0xe9,0xf0,0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,
+0x70,0x0d,0xa3,0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,
+0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x48,0x29,
+0xe4,0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,
+0x80,0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,
+0x44,0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,
+0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x90,0x44,0x3d,0xe4,0x7e,0x01,0x93,0x60,
+0xbc,0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,
+0x0e,0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,
+0xa3,0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,
+0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x77,
+0x00,0x41,0x9e,0xae,0x00,0x41,0x9e,0x54,0x80,0x41,0x9e,0xb0,0x00,0x00,0xf0,0x90,
+0x9e,0x5d,0xe0,0x90,0x9e,0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,0x7e,0x01,0xd3,0x10,
+0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x85,0xe0,0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,
+0x45,0x12,0x35,0xab,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,
+0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x85,0xf0,0x90,0x9e,0x5b,0xe0,0x90,0x9e,0x86,
+0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,0x5e,0x90,0x01,0x5f,0x74,0x05,0xf0,
+0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x63,0x14,0xf0,0xe5,0x61,0x54,0x0f,0xc3,
+0x94,0x0c,0x50,0x03,0x12,0x54,0xe3,0x22,0x8f,0x82,0x8e,0x83,0xa3,0xa3,0xa3,0xe4,
+0xf0,0x22,0xe4,0xf5,0x65,0x7f,0x60,0x7e,0x01,0x80,0xed,0x7d,0x01,0xaf,0x62,0x02,
+0x54,0xe7,0xb1,0xb0,0xbf,0x01,0x12,0x90,0x9e,0x79,0xe0,0xff,0xe4,0xfd,0xf1,0x79,
+0x12,0x5f,0xf7,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xb1,0xb0,0xbf,0x01,0x0f,0x90,
+0x02,0x09,0xe0,0xff,0x7d,0x01,0xf1,0x79,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x22,
+0x22,0x22,0x00,0x02,0x45,0x03,0x02,0x45,0x06,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
+0x8b,0x20,0x8a,0x21,0x89,0x22,0x90,0x9e,0x87,0x71,0x8b,0xab,0x23,0xaa,0x24,0xa9,
+0x25,0x90,0x9e,0x8a,0x71,0x8b,0xaf,0x26,0x15,0x26,0xef,0x60,0x1b,0x90,0x9e,0x8a,
+0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x29,0xd9,0xff,0x90,0x9e,0x87,0xe4,0x75,0xf0,
+0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x20,0xaa,0x21,0xa9,0x22,0xd0,0xd0,
+0x92,0xaf,0x22,0x90,0x9e,0x11,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0x90,0x06,0xa9,
+0xe0,0x90,0x9e,0x10,0xf0,0xe0,0x54,0xc0,0x70,0x08,0x53,0x64,0xfe,0x53,0x64,0xfd,
+0x91,0xcb,0x90,0x9e,0x10,0xe0,0x30,0xe6,0x13,0x43,0x64,0x01,0x90,0x9e,0x66,0xe0,
+0x64,0x02,0x60,0x04,0x91,0xd2,0x80,0x07,0x91,0x79,0x80,0x03,0x53,0x64,0xfe,0x90,
+0x9e,0x10,0xe0,0x30,0xe7,0x16,0x43,0x64,0x02,0xe4,0x90,0x9e,0x85,0x91,0x4e,0x90,
+0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x67,0x74,0x01,0xf0,0x22,0x53,0x64,0xfd,0x22,
+0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x01,0xc4,0x74,0xb0,0xf0,0x74,0x45,0xa3,
+0xf0,0x90,0x04,0x1d,0xe0,0x60,0x1a,0x90,0x05,0x22,0xe0,0x54,0x90,0x60,0x07,0x90,
+0x01,0xc6,0xe0,0x44,0x40,0xf0,0x90,0x01,0xc7,0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,
+0x02,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,
+0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,
+0x05,0xc0,0x06,0xc0,0x07,0x75,0x13,0x00,0x90,0x01,0xc4,0x74,0xe8,0xf0,0x74,0x45,
+0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,0x3c,0xe0,0x55,0x30,0xf5,0x34,0xa3,0xe0,0x55,
+0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,0xf5,0x36,0xa3,0xe0,0x55,0x33,0xf5,0x37,0xe5,
+0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,0x74,0x01,0xf0,0xe5,0x34,0x30,0xe1,0x09,0x90,
+0x01,0x3c,0x74,0x02,0xf0,0x12,0x61,0xc9,0xe5,0x34,0x30,0xe2,0x38,0x90,0x01,0x3c,
+0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe0,0x24,0x90,0x9e,0x85,0xe4,0xf0,0x90,
+0x9e,0x5b,0xe0,0x90,0x9e,0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x91,0x5e,
+0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x80,0x07,0x90,0x9e,
+0x64,0xe4,0xf0,0x91,0xcb,0xe5,0x34,0x30,0xe3,0x38,0x90,0x01,0x3c,0x74,0x08,0xf0,
+0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,0x90,0x9e,0x85,0xe4,0xf0,0x90,0x9e,0x5b,0xe0,
+0x90,0x9e,0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,0x5e,0x90,0x01,0x5f,
+0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x80,0x07,0x90,0x9e,0x63,0xe4,0xf0,
+0x91,0xcb,0xe5,0x34,0x30,0xe4,0x09,0x90,0x01,0x3c,0x74,0x10,0xf0,0x12,0x4b,0xfb,
+0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,0x3c,0x74,0x20,0xf0,0x12,0x4c,0x3d,0xe5,0x35,
+0x30,0xe0,0x44,0x90,0x01,0x3d,0x74,0x01,0xf0,0x90,0x01,0x2f,0xe0,0x44,0x7f,0xf0,
+0x90,0x00,0x83,0xe0,0x54,0x0f,0xf5,0x13,0xb4,0x01,0x02,0x80,0x1c,0xe5,0x13,0xb4,
+0x02,0x05,0x90,0x00,0x83,0x80,0x12,0xe5,0x13,0xb4,0x04,0x05,0x90,0x00,0x83,0x80,
+0x08,0xe5,0x13,0xb4,0x0c,0x06,0x90,0x00,0x83,0xe0,0xf5,0x62,0x90,0x01,0xbb,0xe5,
+0x62,0xf0,0x12,0x60,0xc0,0x91,0xcb,0xe5,0x35,0x30,0xe2,0x06,0x90,0x01,0x3d,0x74,
+0x04,0xf0,0xe5,0x35,0x30,0xe4,0x06,0x90,0x01,0x3d,0x74,0x10,0xf0,0xe5,0x36,0x30,
+0xe0,0x06,0x90,0x01,0x3e,0x74,0x01,0xf0,0xe5,0x36,0x30,0xe1,0x06,0x90,0x01,0x3e,
+0x74,0x02,0xf0,0x74,0xe8,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,0xd0,0x07,
+0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,
+0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x90,0x9e,0x98,0xef,0xf0,0xa3,0xed,
+0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x63,0x60,0x05,0xe4,0xff,0x12,0x54,0x97,0x90,
+0x9e,0x98,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9a,0xe4,0xf0,0xa3,0x74,0x80,0xf0,0x90,
+0x9e,0x98,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x90,0x04,0x25,0xef,0xf0,0x90,
+0x9e,0x99,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,0x24,0x0f,0xf5,0x82,0xe4,0x34,0xfc,
+0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
+0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9a,0xa3,0xe0,0xff,0xfd,0x24,0x08,0xf5,0x82,0xe4,
+0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
+0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,
+0xf7,0xf0,0x90,0x9e,0x9a,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0x75,0x28,0x33,0xe4,0xf5,
+0x29,0x75,0x2a,0x07,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,
+0xa3,0xe5,0x2a,0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0xe4,0x90,0x9e,0x16,0xf0,0xa3,0xf0,
+0x75,0x8e,0x02,0xf1,0xa1,0xf1,0xe9,0x90,0x9e,0x7e,0xef,0xf0,0xf1,0xdd,0x90,0x9e,
+0x80,0xef,0xf0,0xf1,0xf6,0x90,0x9e,0x75,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xf5,0x57,
+0x12,0x6e,0x77,0xf1,0xd4,0x12,0x60,0x4b,0x12,0x32,0x3d,0xf1,0xc9,0x11,0x0b,0x12,
+0x50,0x0e,0xf1,0xcd,0xf1,0xb1,0x12,0x44,0xff,0xf1,0x45,0x90,0x9e,0x18,0xe5,0xd9,
+0xf0,0x11,0xd0,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,0xf0,0xb1,0x45,0x75,0xe8,
+0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x9e,0x16,0xe0,0x64,0x01,0xf0,0x24,0x29,0x90,
+0x01,0xc4,0xf0,0x74,0x48,0xa3,0xf0,0xe5,0x57,0x30,0xe4,0x0a,0xc2,0xaf,0x53,0x57,
+0xef,0xd2,0xaf,0x12,0x58,0x74,0xe5,0x57,0x30,0xe6,0x17,0xc2,0xaf,0x53,0x57,0xbf,
+0xd2,0xaf,0x12,0x67,0xa1,0x90,0x9e,0x43,0xe0,0xff,0x60,0x03,0xb4,0x01,0x03,0x12,
+0x7b,0x5c,0x90,0x9e,0x43,0xe0,0x70,0x03,0x12,0x7c,0x5f,0x12,0x73,0x85,0x80,0xb6,
+0x90,0x01,0x3c,0x74,0xff,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0xfd,0x7f,0x54,0x31,0x05,0x7d,0xff,0x7f,0x55,0x31,0x05,0x7d,
+0xff,0x7f,0x56,0x31,0x05,0x7d,0xff,0x7f,0x57,0x80,0x0a,0xf0,0x90,0x00,0x45,0xe0,
+0x54,0xfe,0xfd,0x7f,0x45,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,
+0x00,0xed,0xf0,0xb1,0x45,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,
+0x66,0x24,0x02,0x60,0x02,0x21,0xc1,0x90,0x9e,0x3f,0x74,0x02,0xf0,0x90,0x00,0x48,
+0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x31,0x05,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,
+0x47,0x31,0x05,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,
+0x9e,0x3f,0xf0,0x90,0x9e,0x3b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x31,
+0x05,0x90,0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,0x45,0x31,0x05,0x90,0x00,0x46,0xe0,
+0x44,0x10,0xfd,0x7f,0x46,0x80,0x38,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x90,0x9e,0x45,
+0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,
+0x90,0x00,0x45,0xe0,0x44,0x20,0xfd,0x7f,0x45,0x31,0x05,0x90,0x00,0x45,0xe0,0x44,
+0x10,0xfd,0x7f,0x45,0x31,0x05,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x31,
+0x05,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x41,0xf0,0x90,0x00,0x01,0x12,
+0x42,0x20,0x25,0xe0,0x25,0xe0,0x90,0x9e,0x40,0xf0,0x12,0x29,0xd9,0x25,0xe0,0x25,
+0xe0,0x90,0x9e,0x44,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x4f,0xf0,0x90,0x05,0x61,
+0xe0,0x90,0x9e,0x50,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x51,0xf0,0x90,0x05,0x63,
+0xe0,0x90,0x9e,0x52,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,0x90,
+0x9e,0x40,0xe0,0xff,0x91,0xf0,0x90,0x9e,0x24,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,
+0x41,0xe0,0x70,0x02,0x41,0xc8,0x90,0x9e,0x40,0xe0,0x70,0x02,0x41,0xc8,0x90,0x9e,
+0x44,0xe0,0x70,0x02,0x41,0xc8,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,
+0x90,0x9e,0x53,0x74,0x01,0xf0,0x90,0x9e,0x24,0xe0,0x24,0xff,0x92,0xaf,0x11,0xfc,
+0x90,0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x31,0x05,0x90,0x9e,0x39,0xe0,0x60,
+0x15,0x90,0x9e,0x45,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,
+0x08,0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,
+0x54,0xef,0xfd,0x7f,0x45,0x31,0x05,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,
+0x4f,0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x50,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,
+0x51,0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x52,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,
+0xe4,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,
+0x20,0xe4,0xff,0x12,0x37,0x00,0x80,0x2b,0x90,0x9e,0x41,0xe0,0x70,0x2d,0x90,0x9e,
+0x53,0x11,0xfb,0x90,0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x31,0x05,0x90,0x05,
+0x22,0xe4,0xf0,0xa2,0xaf,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,
+0x12,0x36,0x92,0x90,0x9e,0x24,0xe0,0x24,0xff,0x92,0xaf,0x22,0x8b,0x14,0x8a,0x15,
+0x89,0x16,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x42,0xf0,0xe0,0x30,0xe0,0x4b,
+0x90,0x9e,0x39,0x74,0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x3b,
+0x12,0x2a,0x7f,0xab,0x14,0xaa,0x15,0xa9,0x16,0x90,0x00,0x01,0x12,0x42,0x20,0xff,
+0xe4,0xfc,0xfd,0xfe,0x78,0x1a,0x12,0x2a,0x6c,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,
+0x07,0x90,0x9e,0x3b,0x12,0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,
+0x45,0x12,0x2a,0x7f,0x90,0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x39,0xf0,
+0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,
+0x9e,0x3b,0x12,0x2a,0x7f,0x90,0x9e,0x3b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
+0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x42,0xe0,0x30,0xe1,0x19,0x7d,
+0x0c,0x7f,0x47,0x31,0x05,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x31,0x05,
+0x90,0x00,0x46,0xe0,0x44,0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,
+0x47,0x31,0x05,0x90,0x00,0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x31,0x05,0x90,0x00,
+0x46,0xe0,0x54,0xef,0xfd,0x7f,0x46,0x31,0x05,0xe4,0x90,0x9e,0x3f,0xf0,0x22,0x90,
+0x01,0x30,0xe4,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0xfd,0x7f,0x50,0x31,0x05,0xe4,0xfd,0x7f,0x51,0x31,0x05,0xe4,
+0xfd,0x7f,0x52,0x31,0x05,0xe4,0xfd,0x7f,0x53,0x21,0x05,0xe5,0x65,0x64,0x01,0x70,
+0x3b,0xd1,0x85,0xbf,0x01,0x04,0x7f,0x01,0xd1,0x79,0x90,0x00,0x46,0xe0,0x44,0x04,
+0xfd,0x7f,0x46,0x31,0x05,0x90,0x00,0x44,0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x31,0x05,
+0x90,0x00,0x46,0xe0,0x54,0xfb,0xfd,0x7f,0x46,0x31,0x05,0x7f,0x02,0xd1,0xa1,0x8f,
+0x69,0x90,0x01,0xc9,0xe5,0x69,0xf0,0xb4,0x01,0x02,0xd1,0x19,0x22,0x90,0x9e,0x41,
+0xe0,0x64,0x01,0x60,0x02,0x81,0xef,0x90,0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,
+0x31,0x05,0x90,0x9e,0x53,0xe0,0x70,0x31,0x90,0x9e,0x39,0xe0,0x60,0x15,0x90,0x9e,
+0x45,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,
+0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x9e,0x40,0xe0,0xff,0x91,0xf0,
+0x90,0x9e,0x53,0x74,0x01,0x11,0xfb,0x80,0x3f,0x90,0x9e,0x53,0xe0,0x64,0x01,0x70,
+0x37,0x90,0x9e,0x44,0xe0,0xff,0x91,0xf0,0xe4,0x90,0x9e,0x53,0xf0,0x90,0x00,0x45,
+0xe0,0x44,0x01,0xfd,0x7f,0x45,0x31,0x05,0x90,0x9e,0x39,0xe0,0x60,0x15,0x90,0x9e,
+0x3b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,
+0xd9,0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,
+0x9e,0x4f,0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x50,0xe0,0x90,0x05,0x85,0xf0,0x90,
+0x9e,0x51,0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x52,0xe0,0x90,0x05,0x87,0xf0,0x22,
+0x90,0x05,0x60,0xe0,0x90,0x9e,0x4f,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x50,0xf0,
+0x90,0x05,0x62,0xe0,0x90,0x9e,0x51,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x52,0xf0,
+0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x50,0xe0,0xd3,0x9e,0x40,0x1e,0xe0,0x2f,0xf0,
+0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,0xe0,0xb4,0xff,0x03,0xe4,0xf0,0x22,0x90,
+0x9e,0x52,0x80,0x03,0x90,0x9e,0x51,0xe0,0x04,0xf0,0x22,0x90,0x9e,0x50,0xe0,0x2f,
+0xf0,0x22,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x7f,0x10,0xdf,0xfe,
+0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x2a,0xed,
+0xf0,0x90,0x9e,0x29,0xef,0xf0,0xd3,0x94,0x07,0x50,0x4e,0xa3,0xe0,0x70,0x1a,0x90,
+0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,
+0xff,0x90,0x00,0x47,0xe0,0x5f,0xf0,0x80,0x17,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,
+0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,
+0xb1,0x45,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
+0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0x80,0x59,0x90,0x9e,0x29,0xe0,0x24,0xf8,0xf0,
+0xa3,0xe0,0x70,0x1d,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
+0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,
+0x1a,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,
+0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,0x43,0xe0,0x4f,0xf0,0xb1,0x45,0x90,0x9e,0x29,
+0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,
+0x00,0x43,0xb1,0x42,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,0xb1,
+0xf0,0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x31,0x05,0x90,0x9e,0xb1,0xe0,
+0x44,0xb0,0xfd,0x7f,0x49,0x21,0x05,0x90,0x9e,0x27,0xee,0xf0,0xa3,0xef,0xf0,0x75,
+0x65,0x01,0x8e,0x66,0xf5,0x67,0xe4,0xfd,0x7f,0x0b,0xb1,0x55,0xe4,0xfd,0x7f,0x02,
+0xb1,0x55,0xd1,0x85,0xe4,0xff,0xd1,0x79,0xe4,0xf5,0x69,0x90,0x01,0xc9,0xe5,0x69,
+0xf0,0x90,0x9e,0x27,0xe0,0xfc,0xa3,0xe0,0xfd,0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,
+0x7d,0x01,0x7f,0x60,0x7e,0x01,0x02,0x35,0xab,0x90,0x01,0xca,0xe5,0x68,0xf0,0xef,
+0x60,0x02,0xd1,0x19,0x22,0x7f,0x0b,0xd1,0xa1,0xef,0x65,0x68,0x60,0x10,0xe5,0x68,
+0xb4,0x01,0x05,0xe4,0xf5,0x68,0x80,0x03,0x75,0x68,0x01,0x7f,0x01,0x22,0x7f,0x00,
+0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0xb2,0xef,0xf0,0xd3,0x94,0x07,
+0x50,0x43,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,
+0xff,0x90,0x00,0x46,0xb1,0x42,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,
+0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,
+0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,
+0xd8,0xf8,0xff,0x80,0x4b,0x90,0x9e,0xb2,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,
+0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,
+0xf0,0xb1,0x45,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,
+0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x42,0xe0,0xfb,0xe4,0xfe,
+0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,
+0xd0,0xd0,0x92,0xaf,0x22,0xe4,0xfd,0x7f,0x45,0x31,0x05,0x90,0x04,0xfd,0xe4,0xf0,
+0xa3,0xf0,0x90,0x9e,0x43,0xf0,0x90,0x9e,0x49,0xf0,0x90,0x9e,0x4c,0xf0,0x90,0x9e,
+0x4a,0xf0,0x90,0x9e,0x4d,0xf0,0x90,0x9e,0x4b,0xf0,0x90,0x9e,0x4e,0xf0,0x90,0x9e,
+0x35,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,
+0x3f,0xf0,0x90,0x9e,0x41,0xf0,0x90,0x9e,0x53,0xf0,0x90,0x9e,0x44,0xf0,0x90,0x9e,
+0x40,0xf0,0x90,0x9e,0x39,0xf0,0x90,0x00,0x51,0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x21,
+0x05,0xe4,0x90,0x9e,0x7d,0xf0,0x90,0x00,0x80,0xe0,0x44,0x80,0xfd,0x7f,0x80,0x21,
+0x05,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,0x01,0x38,0xe5,0x30,0xf0,
+0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0xe4,0xf5,0x68,0x22,0x90,0x01,0x64,
+0x74,0xa0,0xf0,0x22,0x90,0x9e,0x80,0xe0,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0xf3,
+0xe0,0x7f,0x00,0x30,0xe3,0x02,0x7f,0x01,0x22,0x90,0x00,0x02,0xe0,0x54,0xe0,0x7f,
+0x01,0x60,0x02,0x7f,0x00,0x22,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x0c,0x90,0x00,0xf2,
+0xe0,0x30,0xe7,0x05,0x7e,0xfd,0x7f,0x33,0x22,0x7e,0xfd,0x7f,0x2f,0x22,0x90,0x00,
+0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,0xf0,0xa3,
+0xe4,0xf0,0x22,0x90,0x01,0x02,0xe0,0x54,0x03,0xff,0xe0,0x54,0x0c,0x13,0x13,0x54,
+0x3f,0xfe,0xef,0x64,0x01,0x60,0x04,0xef,0xb4,0x03,0x10,0x90,0x9e,0x10,0x74,0x01,
+0xf0,0xa3,0x74,0x37,0xf0,0xa3,0x74,0x01,0xf0,0x80,0x1a,0xee,0x64,0x01,0x60,0x07,
+0xaf,0x06,0xee,0x64,0x03,0x70,0x49,0x90,0x9e,0x10,0x74,0x01,0xf0,0xa3,0x74,0x3d,
+0xf0,0xa3,0x74,0x40,0xf0,0x90,0x9e,0x10,0xe0,0xfe,0xa3,0xe0,0xff,0xf5,0x82,0x8e,
+0x83,0xe0,0xfd,0x90,0x9e,0x12,0xe0,0xfc,0xed,0x5c,0x60,0x0c,0x8f,0x82,0x8e,0x83,
+0xec,0xf0,0xe4,0x90,0x9e,0x77,0xf0,0x22,0x90,0x9e,0x77,0xe0,0x04,0xf0,0xe0,0xc3,
+0x94,0x0a,0x40,0x0c,0xe4,0xf0,0x90,0x04,0x19,0xe0,0x30,0xe0,0x03,0x12,0x44,0xea,
+0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,
+0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,
+0xc4,0x74,0xa1,0xf0,0x74,0x50,0xa3,0xf0,0x90,0x01,0x34,0xe0,0x55,0x28,0xf5,0x2c,
+0xa3,0xe0,0x55,0x29,0xf5,0x2d,0xa3,0xe0,0x55,0x2a,0xf5,0x2e,0xa3,0xe0,0x55,0x2b,
+0xf5,0x2f,0xe5,0x2c,0x20,0xe0,0x02,0x41,0x46,0x90,0x01,0x34,0x74,0x01,0xf0,0x85,
+0xd1,0x4d,0x85,0xd2,0x4e,0x85,0xd3,0x4f,0x85,0xd4,0x50,0x85,0xd5,0x51,0x85,0xd6,
+0x52,0x85,0xd7,0x53,0x85,0xd9,0x54,0xe5,0x54,0x54,0x40,0xc3,0x13,0xff,0xe5,0x53,
+0x54,0x20,0x6f,0x70,0x02,0x21,0xf5,0xe5,0x54,0x30,0xe5,0x02,0x21,0xf5,0xe5,0x52,
+0x54,0x3f,0xf5,0x08,0xe5,0x4d,0x54,0x3f,0xf5,0x09,0xe5,0x51,0x54,0x1f,0xff,0xe5,
+0x08,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
+0x42,0x81,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
+0x34,0x93,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x09,0xd3,0x94,0x04,0x40,
+0x03,0x75,0x09,0x04,0x75,0xf0,0x0a,0xe5,0x08,0x90,0x90,0x00,0x12,0x43,0x5f,0x75,
+0xf0,0x02,0xe5,0x09,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,0xe5,0x53,0x54,0x1f,
+0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x08,0x90,0x90,0x00,0x12,0x43,0x5f,
+0x75,0xf0,0x02,0xe5,0x09,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,0xf0,0xe5,0x54,0x20,
+0xe6,0x24,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
+0x34,0x98,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4f,0x30,0xe7,0x36,0xaf,
+0x08,0x12,0x63,0x51,0x80,0x2f,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,
+0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4f,
+0x30,0xe7,0x12,0xe5,0x4f,0x54,0x7f,0xfd,0xe5,0x53,0x54,0x1f,0xf5,0x0d,0xab,0x09,
+0xaf,0x08,0x12,0x62,0xee,0xe5,0x63,0x14,0x24,0xfd,0x50,0x02,0x80,0x48,0x90,0x9e,
+0x66,0xe0,0x60,0x3a,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x04,0xf0,0x71,
+0xc3,0xef,0x64,0x01,0x70,0x30,0x90,0x9e,0x85,0xf0,0x90,0x9e,0x5b,0xe0,0x90,0x9e,
+0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x44,0x5e,0x90,0x01,0x5b,0x74,
+0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x90,0x9e,0x64,0xf0,0x80,0x08,0x71,0xc3,
+0xbf,0x01,0x03,0x12,0x44,0xcb,0xe5,0x2c,0x30,0xe1,0x20,0x90,0x01,0x34,0x74,0x02,
+0xf0,0x85,0xd1,0x58,0x85,0xd2,0x59,0x85,0xd3,0x5a,0x85,0xd4,0x5b,0x85,0xd5,0x5c,
+0x85,0xd6,0x5d,0x85,0xd7,0x5e,0x85,0xd9,0x5f,0x71,0xd2,0xe5,0x2c,0x30,0xe3,0x06,
+0x90,0x01,0x34,0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,0x74,0x10,
+0xf0,0x43,0x57,0x10,0xe5,0x2c,0x30,0xe5,0x26,0x90,0x01,0xcf,0xe0,0x30,0xe5,0x1f,
+0xe0,0x54,0xdf,0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,0xe8,0x00,
+0x12,0x4b,0xcf,0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0x12,0x4d,0x45,0x80,0xfe,0xe5,
+0x2c,0x30,0xe6,0x06,0x90,0x01,0x34,0x74,0x40,0xf0,0xe5,0x2e,0x30,0xe0,0x12,0x90,
+0x9e,0x7f,0x74,0x01,0xf0,0x90,0x01,0x36,0xf0,0x12,0x61,0x4e,0x90,0x9e,0x7f,0xe4,
+0xf0,0xe5,0x2e,0x30,0xe1,0x0b,0x90,0x01,0x36,0x74,0x02,0xf0,0x43,0x57,0x40,0x11,
+0x23,0xe5,0x2e,0x30,0xe2,0x09,0x90,0x01,0x36,0x74,0x04,0xf0,0x12,0x60,0xdf,0xe5,
+0x2e,0x30,0xe3,0x28,0x90,0x01,0x36,0x74,0x08,0xf0,0xe5,0x60,0x64,0x01,0x70,0x1c,
+0xe5,0x63,0x60,0x18,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,
+0x9e,0x85,0xe4,0x12,0x44,0x4e,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,
+0x2b,0x90,0x01,0x36,0x74,0x10,0xf0,0xe5,0x60,0xb4,0x01,0x20,0xe5,0x63,0x60,0x1c,
+0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x67,0xe4,0xf0,
+0x53,0x64,0xfd,0xe5,0x64,0x54,0x07,0x70,0x03,0x12,0x44,0xcb,0xe5,0x2e,0x30,0xe5,
+0x1f,0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x60,0xb4,0x01,0x14,0xe5,0x63,0x60,0x10,
+0x90,0x9e,0x66,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xd2,0x80,0x03,0x12,0x44,0x79,
+0xe5,0x2e,0x30,0xe6,0x1b,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x60,0xb4,0x01,0x10,
+0xe5,0x63,0x60,0x0c,0x53,0x64,0xfe,0xe5,0x64,0x54,0x07,0x70,0x03,0x12,0x44,0xcb,
+0xe5,0x2f,0x30,0xe1,0x08,0x90,0x01,0x37,0x74,0x02,0xf0,0x91,0x64,0x74,0xa1,0x04,
+0x90,0x01,0xc4,0xf0,0x74,0x50,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,
+0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,
+0xd0,0xe0,0x32,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,0x02,0x7f,
+0x00,0x22,0x90,0x9e,0x10,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,0x0f,0x44,0x80,0xf0,
+0x7b,0x00,0x7a,0x00,0x79,0x58,0x90,0x9e,0x90,0x12,0x43,0x8b,0x0b,0x7a,0x9e,0x79,
+0x10,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x8d,0x12,0x43,0x8b,0x90,0x9e,
+0xb0,0xe0,0xff,0x04,0xf0,0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x7f,0xaf,0x7e,0x01,
+0x12,0x71,0x7a,0xef,0x60,0x49,0x90,0x9e,0x8d,0x12,0x43,0x6b,0x8b,0x23,0x8a,0x24,
+0x89,0x25,0x75,0x26,0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x45,0x09,0x90,0x9e,
+0x90,0x12,0x43,0x6b,0x8b,0x23,0x8a,0x24,0x89,0x25,0x90,0x9e,0x8d,0x12,0x43,0x6b,
+0x12,0x29,0xd9,0xff,0xc4,0x54,0x0f,0xf5,0x26,0x7b,0x01,0x7a,0x01,0x79,0xa2,0x12,
+0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,0xf0,0xd0,
+0xd0,0x92,0xaf,0x22,0x90,0x9e,0xa0,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe5,0x63,
+0x14,0x24,0xfd,0x50,0x02,0x80,0x1f,0x90,0x9e,0x66,0xe0,0x60,0x06,0x7d,0x01,0x7f,
+0x0c,0x80,0x0d,0xe5,0x61,0x54,0x0f,0xc3,0x94,0x04,0x50,0x06,0x7d,0x01,0x7f,0x04,
+0x91,0xe7,0xe4,0xff,0x91,0x97,0x22,0xef,0x60,0x0b,0x90,0x9e,0x80,0xe0,0xb4,0x01,
+0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x75,
+0xa5,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,0x90,0x05,0x22,0x74,0xff,0xf0,0x12,0x74,
+0x12,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,0xfd,0xf0,0x7d,0x02,0x7f,0x03,0x12,0x36,
+0xe6,0xe5,0x63,0x60,0x04,0x7f,0x01,0x91,0x97,0x12,0x74,0xd2,0x53,0x61,0xf0,0x43,
+0x61,0x02,0x22,0x7d,0x01,0x7f,0x0c,0x8f,0x6a,0x8d,0x6b,0xe5,0x6a,0x54,0x0f,0xff,
+0xe5,0x61,0x54,0x0f,0x6f,0x60,0x65,0xe5,0x6a,0x30,0xe2,0x28,0xe5,0x61,0x20,0xe2,
+0x04,0x7f,0x01,0xd1,0xc2,0xe5,0x61,0x30,0xe3,0x0c,0xe5,0x6a,0x20,0xe3,0x07,0xb1,
+0x5d,0xef,0x60,0x48,0xa1,0xa5,0xe5,0x61,0x20,0xe3,0x41,0xe5,0x6a,0x30,0xe3,0x3c,
+0xaf,0x6b,0xc1,0xdc,0xe5,0x61,0x54,0x0f,0xff,0xbf,0x0c,0x0c,0xe5,0x6a,0x20,0xe3,
+0x07,0xb1,0x5d,0xef,0x60,0x26,0xb1,0xa5,0xe5,0x61,0x54,0x0f,0xff,0xbf,0x04,0x0c,
+0xe5,0x6a,0x20,0xe2,0x07,0xf1,0x21,0xef,0x60,0x12,0x91,0xb2,0xe5,0x61,0x54,0x0f,
+0xff,0xbf,0x02,0x08,0x12,0x60,0xbd,0xef,0x60,0x02,0xd1,0xaf,0x22,0x71,0xc3,0xef,
+0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x30,0x90,0x9e,0x64,0xe0,
+0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x22,0x90,0x9e,0x63,0xe0,0x60,0x08,
+0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x14,0xe5,0x62,0x54,0x0f,0xd3,0x94,0x04,0x40,
+0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,
+0x08,0xf0,0x7f,0x00,0x22,0x90,0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x60,0xb4,0x01,
+0x04,0x7f,0x01,0xd1,0xf6,0x53,0x61,0xf0,0x43,0x61,0x04,0x22,0xef,0x64,0x01,0x70,
+0x2e,0x7d,0x78,0x7f,0x02,0x12,0x36,0x75,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0x90,
+0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x91,0xe3,0xe4,0xff,0x91,0x97,
+0x90,0x06,0x04,0xe0,0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,
+0x01,0x36,0x74,0x7b,0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7b,0xff,0x12,0x36,0xe6,0x7d,
+0x02,0x7f,0x03,0x12,0x36,0xe6,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,
+0xe0,0x44,0x07,0xf0,0x12,0x62,0x4c,0xe5,0x60,0x20,0xe0,0x05,0xe4,0x90,0x9e,0x58,
+0xf0,0x22,0x8b,0x14,0x8a,0x15,0x89,0x16,0x12,0x60,0xb1,0xab,0x14,0xaa,0x15,0xa9,
+0x16,0x12,0x29,0xd9,0xf5,0x63,0x14,0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,
+0x03,0x70,0x40,0x7f,0x01,0x80,0x3a,0xab,0x14,0xaa,0x15,0xa9,0x16,0x90,0x00,0x02,
+0x12,0x42,0x20,0xfd,0xe4,0xff,0xd1,0x84,0x80,0x27,0xab,0x14,0xaa,0x15,0xa9,0x16,
+0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x7f,0x01,0xd1,0x84,0x1f,0x80,0x13,0xab,0x14,
+0xaa,0x15,0xa9,0x16,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x7f,0x02,0xd1,0x84,0xe4,
+0xff,0xb1,0xbc,0x22,0xef,0x24,0xfe,0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x65,0x74,
+0x01,0xf0,0x80,0x16,0xed,0x70,0x0a,0x90,0x9e,0x62,0xe0,0x90,0x9e,0x65,0xf0,0x80,
+0x05,0x90,0x9e,0x65,0xed,0xf0,0x90,0x9e,0x65,0xe0,0x90,0x9e,0x56,0xf0,0x22,0x53,
+0x61,0xf0,0x43,0x61,0x01,0x12,0x45,0x00,0x12,0x45,0x01,0x53,0x61,0xf0,0x43,0x61,
+0x02,0x22,0x90,0x9e,0xaf,0xef,0xf0,0x12,0x74,0x53,0x90,0x9e,0xaf,0xe0,0x60,0x05,
+0x90,0x05,0x22,0xe4,0xf0,0x53,0x61,0xf0,0x43,0x61,0x04,0x22,0x90,0x06,0x04,0xe0,
+0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,0x60,0xb4,0x01,0x04,0xe4,0xff,0xd1,0xf6,0x53,
+0x61,0xf0,0x43,0x61,0x0c,0x22,0x8f,0x27,0x12,0x45,0xb0,0xbf,0x01,0x22,0x90,0x9e,
+0x7a,0xe0,0xff,0x7d,0x01,0x12,0x47,0x79,0xab,0x07,0xaa,0x06,0xad,0x03,0xac,0x02,
+0xaf,0x27,0x12,0x60,0x2a,0xaf,0x03,0x12,0x5f,0xf7,0x90,0x04,0x1f,0x74,0x20,0xf0,
+0x22,0x71,0xc3,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x58,
+0xe5,0x64,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x4a,0xe5,0x62,
+0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x39,0xe5,
+0x64,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x2c,0xe5,0x64,0x30,0xe4,
+0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x1f,0x90,0x9e,0x58,0xe0,0x60,0x08,0x90,
+0x01,0xb9,0x74,0x20,0xf0,0x80,0x11,0x90,0x9e,0x5e,0xe0,0x60,0x08,0x90,0x01,0xb9,
+0x74,0x80,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,0x7f,0x00,
+0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,
+0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,
+0xc4,0x74,0x91,0xf0,0x74,0x57,0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,
+0x90,0x00,0x55,0xe0,0x5f,0xf5,0x3d,0x90,0x00,0x52,0xe0,0xff,0x90,0x00,0x56,0xe0,
+0x5f,0xf5,0x3e,0xe5,0x3d,0x30,0xe4,0x06,0x90,0x00,0x55,0x74,0x10,0xf0,0xe5,0x3d,
+0x30,0xe5,0x06,0x90,0x00,0x55,0x74,0x20,0xf0,0xe5,0x3d,0x30,0xe6,0x1b,0x90,0x00,
+0x55,0x74,0x40,0xf0,0x90,0x9e,0x42,0xe0,0x54,0x03,0xff,0xbf,0x03,0x0b,0x90,0x9e,
+0x3f,0xe0,0x60,0x05,0x7f,0x01,0x12,0x49,0x1a,0xe5,0x3d,0x30,0xe7,0x15,0x90,0x00,
+0x55,0x74,0x80,0xf0,0x90,0x9e,0x42,0xe0,0x54,0x03,0xff,0xbf,0x03,0x05,0x7f,0x02,
+0x12,0x49,0x1a,0xe5,0x3e,0x30,0xe0,0x06,0x90,0x00,0x56,0x74,0x01,0xf0,0xe5,0x3e,
+0x30,0xe1,0x06,0x90,0x00,0x56,0x74,0x02,0xf0,0xe5,0x3e,0x30,0xe2,0x06,0x90,0x00,
+0x56,0x74,0x04,0xf0,0xe5,0x3e,0x30,0xe3,0x06,0x90,0x00,0x56,0x74,0x08,0xf0,0x90,
+0x01,0xc4,0x74,0x91,0xf0,0x74,0x57,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,
+0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,
+0xf0,0xd0,0xe0,0x32,0x90,0x01,0xcc,0xe0,0x54,0x0f,0x90,0x9e,0x19,0xf0,0x90,0x9e,
+0x19,0xe0,0xfd,0x70,0x02,0x21,0xb5,0x90,0x9e,0xae,0xe0,0xff,0x74,0x01,0x7e,0x00,
+0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xef,0x5d,0x70,
+0x02,0x21,0xae,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd0,0x12,0x43,0x5f,
+0xe0,0x90,0x9e,0x1a,0xf0,0x75,0x23,0x01,0x75,0x24,0x9e,0x75,0x25,0x1a,0x75,0x26,
+0x01,0x7b,0x01,0x7a,0x9e,0x79,0x1b,0x12,0x45,0x09,0x90,0x9e,0x1b,0xe0,0xff,0xc4,
+0x13,0x13,0x13,0x54,0x01,0x90,0x9e,0xae,0x30,0xe0,0x59,0xe0,0x75,0xf0,0x02,0x90,
+0x00,0x88,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1c,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,
+0x02,0x90,0x00,0x89,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1d,0xf0,0x90,0x9e,0xae,0xe0,
+0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1e,0xf0,0x90,0x9e,
+0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1f,0xf0,
+0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,
+0x20,0xf0,0x80,0x33,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,0x90,
+0x9e,0x1c,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,0x5f,
+0xe0,0x90,0x9e,0x1d,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,0x12,
+0x43,0x5f,0xe0,0x90,0x9e,0x1e,0xf0,0xef,0x54,0x7f,0xff,0x7b,0x01,0x7a,0x9e,0x79,
+0x1c,0x31,0xb6,0x90,0x9e,0x19,0xe0,0xff,0x90,0x9e,0xae,0xe0,0xfe,0x74,0x01,0xa8,
+0x06,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0x5f,0x90,0x9e,0x19,0xf0,0x90,0x9e,
+0xae,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0x90,0x01,
+0xcc,0xf0,0x90,0x9e,0xae,0xe0,0x04,0xf0,0xe0,0x54,0x03,0xf0,0x01,0x7e,0x90,0x01,
+0xc6,0xe0,0x44,0x02,0xf0,0x22,0x90,0x9e,0x21,0x12,0x43,0x8b,0xef,0x12,0x43,0x94,
+0x59,0xfc,0x01,0x59,0xf4,0x02,0x5a,0x20,0x03,0x5a,0x29,0x05,0x5a,0x32,0x06,0x5a,
+0x7e,0x07,0x5a,0x3a,0x09,0x5a,0x43,0x0b,0x5a,0x4c,0x0c,0x5a,0x55,0x0d,0x5a,0x5e,
+0x0e,0x5a,0x67,0x1b,0x5a,0x6f,0x1c,0x5a,0x05,0x2d,0x5a,0x0e,0x2e,0x5a,0x17,0x3b,
+0x00,0x00,0x5a,0x77,0x90,0x9e,0x21,0x12,0x43,0x6b,0xe1,0xe9,0x90,0x9e,0x21,0x12,
+0x43,0x6b,0x02,0x71,0xd0,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x72,0x0b,0x90,0x9e,
+0x21,0x12,0x43,0x6b,0x02,0x72,0x53,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x72,0x8c,
+0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x72,0xb6,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,
+0x70,0x4a,0x90,0x9e,0x21,0x12,0x43,0x6b,0x80,0x45,0x90,0x9e,0x21,0x12,0x43,0x6b,
+0x02,0x72,0xfe,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x70,0xa2,0x90,0x9e,0x21,0x12,
+0x43,0x6b,0x02,0x49,0xc2,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x7b,0x29,0x90,0x9e,
+0x21,0x12,0x43,0x6b,0x02,0x4a,0xfc,0x90,0x9e,0x21,0x12,0x43,0x6b,0xe1,0xef,0x90,
+0x9e,0x21,0x12,0x43,0x6b,0xe1,0xd1,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,0x22,0x90,
+0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,0x54,0x07,
+0xfd,0xaf,0x06,0x90,0x9e,0x24,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,0x8b,0x90,
+0x9e,0x26,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,0x54,0x0f,
+0x90,0x9e,0x29,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,0x13,0x54,
+0x03,0x90,0x9e,0x2a,0xf0,0x90,0x9e,0x24,0xe0,0xff,0x75,0xf0,0x09,0x90,0x96,0x46,
+0x12,0x43,0x5f,0xad,0x82,0xac,0x83,0x90,0x9e,0x2b,0xec,0xf0,0xa3,0xed,0xf0,0xef,
+0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,0xa3,0x12,
+0x43,0x8b,0x90,0x9e,0x26,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0x0f,
+0xff,0x90,0x9e,0x2d,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x26,0x12,0x43,
+0x6b,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x2d,0x12,0x43,0x6b,0x90,0x00,
+0x01,0xef,0x12,0x42,0x5f,0x90,0x9e,0x26,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,
+0x20,0xff,0x90,0x9e,0x2b,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,0xf0,
+0x12,0x29,0xd9,0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x29,0xe0,0xfe,0x90,0x9e,
+0x24,0xe0,0xff,0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,0x9e,
+0x25,0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,0x75,
+0xf0,0x09,0xef,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x2a,0xe0,
+0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,0x14,0xef,
+0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x16,0x8f,0x17,0xe5,
+0x14,0x75,0xf0,0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x18,0x01,0xf5,
+0x19,0x89,0x1a,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x46,0x12,0x43,0x5f,0xaf,0x82,
+0x85,0x83,0x1b,0x8f,0x1c,0xe5,0x14,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,
+0x35,0xf0,0x75,0x1d,0x01,0xf5,0x1e,0x89,0x1f,0x74,0x82,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x95,0xf5,0x83,0xe0,0x12,0x43,0x94,0x5c,0x0d,0x00,0x5c,0x22,0x01,0x5c,0x37,
+0x02,0x5c,0x4c,0x03,0x5c,0x75,0x04,0x5c,0x8a,0x05,0x5c,0x9f,0x06,0x5c,0xc5,0x0c,
+0x5c,0xf2,0x0d,0x5d,0x1f,0x0e,0x5d,0x4c,0x0f,0x00,0x00,0x5d,0x80,0xe5,0x14,0x25,
+0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x15,
+0x80,0x3c,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,
+0xf0,0xf0,0xa3,0x74,0x10,0x80,0x27,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,
+0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x14,0x25,0xe0,
+0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,0xe5,
+0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,0xa3,
+0x74,0x8f,0xf0,0xa1,0x80,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
+0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x14,0x25,0xe0,0x24,0xc6,
+0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,0xe5,
+0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0x74,
+0x0d,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,
+0xf0,0xa3,0xf0,0xa1,0x80,0x90,0x04,0x47,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,
+0x42,0x4d,0x90,0x04,0x46,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,
+0x42,0x5f,0x90,0x04,0x45,0xe0,0x85,0x17,0x82,0x85,0x16,0x83,0xf0,0x90,0x04,0x44,
+0xa1,0x77,0x90,0x04,0x4b,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,0x42,0x4d,0x90,
+0x04,0x4a,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,
+0x04,0x49,0xe0,0x85,0x17,0x82,0x85,0x16,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,0x90,
+0x04,0x4f,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,0x42,0x4d,0x90,0x04,0x4e,0xe0,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x4d,0xe0,
+0x85,0x17,0x82,0x85,0x16,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,0xe0,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x18,0xaa,
+0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x17,0x82,
+0x85,0x16,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x17,0x82,0x85,0x16,0x83,0xa3,0xf0,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,
+0xab,0x1d,0xaa,0x1e,0xa9,0x1f,0x12,0x29,0xd9,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,
+0x12,0x42,0x4d,0xab,0x18,0xe5,0x1a,0x24,0x01,0xf9,0xe4,0x35,0x19,0xfa,0xc0,0x03,
+0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,0xab,0x1d,0xaa,0x1e,0xa9,0x1f,0x90,0x00,
+0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,0x17,
+0x82,0x85,0x16,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x1c,0x82,0x85,0x1b,0x83,
+0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x17,0x82,0x85,0x16,0x83,0xa3,
+0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x1c,0x82,0x85,0x1b,0x83,0xa3,0xe0,0xfe,0xef,
+0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,
+0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,0x15,0x0b,0x74,0x01,0x7e,
+0x00,0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x14,
+0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,
+0x5f,0x4e,0x60,0x06,0xe5,0x15,0x24,0x10,0x80,0x5d,0x15,0x15,0xe5,0x15,0xc3,0x94,
+0x00,0x50,0xca,0x80,0x56,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
+0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x15,0x0f,0x74,0x01,0x7e,0x00,
+0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x14,0x25,
+0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,
+0x4e,0x60,0x08,0x90,0x9e,0x30,0xe5,0x15,0xf0,0x80,0x10,0x15,0x15,0xe5,0x15,0xc3,
+0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x30,0xf0,0xe5,0x14,0x25,0xe0,0x24,
+0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0xe4,
+0xf5,0x15,0x74,0x01,0x7e,0x00,0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
+0xd8,0xf9,0xff,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
+0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x31,0xe5,0x15,0xf0,0x80,
+0x5b,0x05,0x15,0xe5,0x15,0xb4,0x10,0xca,0x80,0x52,0xe5,0x14,0x25,0xe0,0x24,0x02,
+0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x39,0xe4,0xf5,
+0x15,0x74,0x01,0x7e,0x00,0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
+0xf9,0xff,0xe5,0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,
+0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x15,0x24,0x10,0x80,0x0a,0x05,0x15,
+0xe5,0x15,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x31,0xf0,0x90,0x9e,0x30,0xe0,
+0xff,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x48,0x12,0x43,0x5f,0xef,0xf0,0x90,0x9e,
+0x31,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x49,0x12,0x43,0x5f,0xee,0xf0,
+0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,0x06,
+0x90,0x9e,0x30,0x12,0x62,0x94,0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x04,0xf5,
+0x83,0xe0,0xff,0x90,0x9e,0x31,0xe0,0xfe,0xef,0xc3,0x9e,0x50,0x03,0x12,0x62,0x94,
+0x90,0x9e,0x30,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,0x74,0x03,0xf0,
+0x22,0xef,0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,0x22,0xef,0xd3,
+0x94,0x03,0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,0x96,0x43,0xf0,
+0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,0xc4,0x13,
+0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x41,0x93,0x12,0x29,0xd9,0xf5,0x60,0x22,0x12,
+0x29,0xd9,0x90,0x95,0x01,0xf0,0x22,0xad,0x07,0x74,0x11,0x2d,0xf5,0x82,0xe4,0x34,
+0xfc,0xf5,0x83,0xe0,0x44,0x01,0xf0,0x90,0x04,0x80,0xe0,0x54,0x0f,0xfc,0x74,0x14,
+0x2d,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xc0,0x4c,0xfd,0x74,0x14,0x2f,
+0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xed,0xf0,0x22,0xef,0x60,0x0f,0x74,0x21,0x2d,
+0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x22,0x74,0x21,0x2d,0xf5,
+0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x22,0xe4,0xf5,0x60,0xf5,0x64,
+0xf5,0x63,0x75,0x62,0x0c,0x75,0x61,0x0c,0x90,0x9e,0x66,0xf0,0x90,0x9e,0x64,0xf0,
+0x90,0x9e,0x63,0xf0,0x90,0x9e,0x65,0x04,0xf0,0x90,0x9e,0x56,0xf0,0xe4,0x90,0x9e,
+0x67,0xf0,0x90,0x9e,0x58,0xf0,0x90,0x9e,0x61,0x74,0x07,0xf0,0xe4,0x90,0x9e,0x57,
+0xf0,0x90,0x9e,0x5f,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x5c,0x74,0x0a,0xf0,0xa3,
+0x74,0x05,0xf0,0x90,0x9e,0x5b,0x74,0x14,0xf0,0x90,0x9e,0x62,0x74,0x05,0xf0,0xe4,
+0x90,0x9e,0x5a,0xf0,0x90,0x9e,0x55,0xf0,0x90,0x9e,0x7f,0xf0,0x90,0x9e,0x5e,0xf0,
+0x22,0xe4,0x90,0x9e,0x67,0xf0,0x90,0x9e,0x57,0xf0,0xf5,0x64,0x22,0x7f,0x00,0x22,
+0xe5,0x62,0x30,0xe6,0x19,0xe5,0x62,0x54,0x0f,0xff,0x90,0x9e,0x54,0xe0,0xfe,0x4f,
+0x90,0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x9e,0x54,0xf0,0x53,0x62,0xbf,0x22,0xe5,
+0x60,0x64,0x01,0x70,0x68,0xe5,0x63,0x60,0x64,0xe5,0x63,0x64,0x02,0x60,0x06,0xe5,
+0x63,0x64,0x05,0x70,0x27,0x90,0x06,0xab,0xe0,0x90,0x9e,0x56,0xf0,0x90,0x06,0xaa,
+0xe0,0x90,0x9e,0x65,0xf0,0x90,0x9e,0x56,0xe0,0x70,0x07,0x90,0x9e,0x65,0xe0,0xff,
+0x80,0x05,0x90,0x9e,0x56,0xe0,0xff,0x90,0x9e,0x56,0xef,0xf0,0x90,0x9e,0x58,0xe0,
+0x60,0x03,0xe0,0x14,0xf0,0xe4,0x90,0x9e,0x57,0xf0,0x90,0x05,0x58,0x74,0x03,0xf0,
+0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x53,0x64,0xfd,0x53,0x64,
+0xef,0xe5,0x63,0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,0x45,0x53,0x22,0xe4,0xfb,
+0x90,0x9e,0x9c,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe5,0x63,0x60,0x6a,0xe5,0x60,
+0x64,0x01,0x70,0x64,0xe5,0x63,0x14,0x60,0x2b,0x24,0xfd,0x60,0x27,0x24,0x02,0x24,
+0xfb,0x50,0x02,0x80,0x21,0x90,0x9e,0x56,0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,
+0x60,0x14,0x90,0x9e,0x56,0xe0,0x70,0x08,0x90,0x9e,0x65,0xe0,0x90,0x9e,0x56,0xf0,
+0x7b,0x01,0x80,0x02,0x7b,0x01,0xeb,0x60,0x2f,0x43,0x64,0x10,0xe4,0x90,0x9e,0x85,
+0xf0,0x90,0x9e,0x57,0xe0,0x75,0xf0,0x03,0xa4,0xff,0x90,0x9e,0x61,0xe0,0x2f,0x12,
+0x44,0x53,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x61,0x54,0x0f,0xc3,0x94,0x04,0x50,
+0x07,0x7d,0x01,0x7f,0x04,0x12,0x54,0xe7,0x22,0xe4,0x90,0x9e,0x15,0xf0,0xe5,0x63,
+0x60,0x79,0x90,0x9e,0x67,0xe0,0x60,0x0d,0xe4,0xf0,0x53,0x64,0xfd,0xe5,0x64,0x54,
+0x07,0x70,0x68,0x80,0x63,0x90,0x9e,0x57,0xe0,0x04,0xf0,0x53,0x64,0xef,0x90,0x9e,
+0x15,0xe0,0xf9,0xff,0x7e,0x00,0x24,0x01,0xfd,0xee,0x33,0xfc,0x90,0x9e,0x57,0xe0,
+0xb5,0x05,0x06,0xe4,0xb5,0x04,0x02,0x80,0x12,0xef,0x24,0x02,0xff,0xe4,0x3e,0xfe,
+0x90,0x9e,0x57,0xe0,0xb5,0x07,0x0a,0xe4,0xb5,0x06,0x06,0x90,0x05,0x58,0xe0,0x04,
+0xf0,0xe9,0xff,0x90,0x9e,0x5c,0xe0,0x2f,0xff,0xe4,0x33,0xfe,0x90,0x9e,0x57,0xe0,
+0xd3,0x9f,0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x40,0x0d,0xe5,0x60,0xb4,0x01,0x0b,
+0xa3,0xe0,0x70,0x07,0xe0,0x04,0xf0,0x22,0x12,0x44,0xcb,0x22,0x90,0x9e,0x5f,0xe0,
+0xa3,0xe0,0x90,0x05,0x58,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
+0x93,0x12,0x43,0x8b,0x90,0x9e,0x96,0xe0,0x54,0xf0,0x44,0x06,0xff,0xf0,0xed,0x54,
+0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,0xf0,0x90,0x9e,0x93,0x12,0x43,0x6b,
+0x90,0x9e,0x90,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x96,0x12,0x53,0xf1,0xd0,
+0xd0,0x92,0xaf,0x22,0xe0,0xfd,0x74,0x26,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
+0x83,0xed,0xf0,0xaf,0x14,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,
+0x50,0x0e,0x74,0x84,0x2f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,
+0x74,0xa6,0x2f,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x68,0xef,
+0xf0,0x24,0xa6,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x69,0xf0,0x7b,
+0x01,0x7a,0x9e,0x79,0x68,0x7d,0x02,0x51,0x57,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x0a,
+0x8d,0x0b,0xe5,0x0b,0x54,0x1f,0xf5,0x10,0x74,0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,
+0xf5,0x83,0xe0,0xf5,0x0e,0x90,0x04,0xfd,0xe0,0xb4,0x01,0x05,0x75,0x11,0x03,0x80,
+0x03,0x75,0x11,0x01,0xeb,0xc3,0x95,0x11,0x40,0x04,0xaf,0x0a,0x80,0x33,0xe5,0x0e,
+0x25,0x0d,0xf5,0x0f,0xe5,0x10,0x90,0x41,0xd6,0x93,0xff,0xe5,0x0f,0xd3,0x9f,0x74,
+0x01,0x40,0x11,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xad,0x0b,
+0xaf,0x0a,0x41,0xa5,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe5,0x0f,0xf0,
+0x22,0xad,0x07,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,
+0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xe0,0x54,0x1f,0xf5,0x12,0xd3,0x9f,
+0x40,0x02,0x8f,0x12,0xe5,0x12,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,
+0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x12,0x25,0xe0,0x24,0x66,0xf5,0x82,
+0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,
+0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,
+0xf0,0xa3,0xef,0xf0,0xaf,0x05,0xad,0x12,0x51,0xa5,0xaf,0x12,0x22,0xac,0x07,0xec,
+0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2c,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
+0x80,0x0b,0x74,0xa6,0x2c,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,
+0x1f,0xe5,0x1f,0x54,0x1f,0xff,0x90,0x9e,0x25,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,
+0x49,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x27,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x48,
+0x12,0x43,0x5f,0xe0,0xfe,0x90,0x9e,0x28,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
+0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x29,0xcb,0xf0,0xa3,0xeb,
+0xf0,0xec,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,
+0xe0,0x90,0x9e,0x2b,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,0x40,0x0a,0x90,0x9e,
+0x28,0xe0,0x90,0x9e,0x25,0xf0,0xf5,0x1f,0xed,0x70,0x02,0xa1,0x13,0x90,0x9e,0x26,
+0xed,0xf0,0xe5,0x1f,0x30,0xe6,0x0a,0x90,0x9e,0x25,0xe0,0xf5,0x1f,0xa3,0xe0,0x14,
+0xf0,0x90,0x9e,0x26,0xe0,0x70,0x02,0xa1,0x13,0x90,0x9e,0x25,0xe0,0xff,0xd3,0x94,
+0x00,0x50,0x02,0xa1,0x13,0xe4,0x90,0x9e,0x24,0xf0,0xef,0x14,0x90,0x9e,0x23,0xf0,
+0x90,0x9e,0x27,0xe0,0xfd,0x90,0x9e,0x23,0xe0,0xff,0xd3,0x9d,0x40,0x6b,0xef,0x94,
+0x10,0x40,0x21,0xef,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
+0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x2b,0xe0,0x5e,0xfe,0xa3,0xe0,
+0x5f,0x4e,0x70,0x27,0x90,0x9e,0x23,0xe0,0xff,0xc3,0x94,0x10,0x50,0x33,0x74,0x01,
+0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,
+0x9e,0x29,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,0x9e,0x23,0xe0,0xf5,
+0x1f,0xa3,0xe0,0x04,0xf0,0x90,0x9e,0x26,0xe0,0xff,0x90,0x9e,0x24,0xe0,0x6f,0x60,
+0x08,0x90,0x9e,0x23,0xe0,0x14,0xf0,0x80,0x87,0x90,0x9e,0x26,0xe0,0xff,0x90,0x9e,
+0x24,0xe0,0xc3,0x9f,0x50,0x0d,0x90,0x9e,0x23,0xe0,0xb5,0x05,0x06,0x90,0x9e,0x27,
+0xe0,0xf5,0x1f,0xe5,0x1f,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
+0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x1f,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
+0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
+0x13,0xff,0xec,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
+0xa3,0xef,0xf0,0xaf,0x04,0xad,0x1f,0x51,0xa5,0xaf,0x1f,0x22,0xad,0x07,0xed,0xc3,
+0x94,0x20,0x50,0x0d,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x80,
+0x0b,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,0x1f,
+0xe5,0x1f,0x54,0x1f,0xfc,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,
+0xff,0x90,0x9e,0x23,0xf0,0xed,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,
+0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x24,0xcb,0xf0,0xa3,0xeb,0xf0,0xed,0x25,0xe0,
+0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x26,
+0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,
+0x83,0xe4,0x93,0xfa,0x74,0x01,0x93,0xfb,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
+0x34,0x95,0xf5,0x83,0xea,0xf0,0xa3,0xeb,0xf0,0xec,0xc3,0x9f,0x40,0x02,0xc1,0x7a,
+0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x04,0xfb,0x90,0x9e,
+0x23,0xe0,0xff,0xeb,0xd3,0x9f,0x40,0x02,0xc1,0xab,0xeb,0xc3,0x94,0x10,0x40,0x21,
+0xeb,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,
+0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x24,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,
+0x23,0xeb,0xc3,0x94,0x10,0x50,0x40,0x74,0x01,0x7e,0x00,0xa8,0x03,0x08,0x80,0x05,
+0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x26,0xe0,0x5e,0xfe,0xa3,0xe0,
+0x5f,0x4e,0x60,0x23,0xbb,0x11,0x09,0x90,0x9e,0x25,0xe0,0x30,0xe7,0x02,0x7b,0x17,
+0xeb,0x64,0x13,0x60,0x03,0xbb,0x12,0x09,0x90,0x9e,0x24,0xe0,0x30,0xe0,0x02,0x7b,
+0x18,0xac,0x03,0x8c,0x1f,0x80,0x34,0x0b,0x80,0x84,0x90,0x9e,0x23,0xe0,0xfb,0x6c,
+0x70,0x69,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,
+0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,0xe0,0xb4,0x01,0x0c,0xe5,0x1f,0x20,0xe6,
+0x07,0xec,0x44,0x40,0xf5,0x1f,0x80,0x03,0xaf,0x1f,0x22,0xec,0x25,0xe0,0x24,0x9e,
+0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,
+0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,
+0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
+0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,
+0x90,0x9e,0x23,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,
+0xf0,0xac,0x07,0x8f,0x1f,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,
+0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
+0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
+0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
+0xa3,0xef,0xf0,0xaf,0x1f,0x22,0x74,0x01,0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,
+0xe4,0xf0,0xaf,0x05,0xe5,0x1f,0x44,0x80,0xfd,0x51,0xa5,0xe5,0x1f,0x44,0x80,0xff,
+0x22,0xef,0xc3,0x94,0x20,0x50,0x39,0xef,0x30,0xe0,0x17,0xed,0xc4,0x54,0xf0,0xfd,
+0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x0f,
+0x80,0x10,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
+0x54,0xf0,0xf0,0x74,0xa4,0x2e,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x4d,0xf0,
+0x22,0xe4,0xf5,0x14,0xe5,0x14,0xb4,0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,
+0x95,0x01,0xe0,0xff,0x90,0x9a,0xc5,0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,
+0xe5,0x14,0x90,0x96,0x4b,0x12,0x43,0x5f,0xe0,0x64,0x01,0x60,0x03,0x02,0x6e,0x6a,
+0xe5,0x14,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,
+0xe0,0xd3,0x94,0x00,0xee,0x94,0x00,0x50,0x03,0x02,0x6e,0x6a,0xe5,0x14,0x94,0x20,
+0x40,0x09,0x90,0x9a,0xc5,0xe0,0x60,0x03,0x02,0x6e,0x76,0xe5,0x14,0x75,0xf0,0x0a,
+0xa4,0x24,0x00,0xf9,0x74,0x90,0x35,0xf0,0x75,0x18,0x01,0xf5,0x19,0x89,0x1a,0xe5,
+0x14,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0xa3,0xe0,
+0x90,0x9e,0x1b,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x14,0x25,0xe0,0x24,0xc4,0xf5,0x82,
+0xe4,0x34,0x98,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x1d,0xcf,0xf0,0xa3,0xef,
+0xf0,0xe5,0x14,0xc3,0x94,0x20,0x50,0x14,0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,
+0x04,0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x19,0xf0,0x80,0x12,0x74,0xa6,0x25,0x14,
+0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x19,0xf0,0x90,0x9e,
+0x19,0xe0,0xfe,0x54,0x1f,0xa3,0xf0,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x48,0x12,
+0x43,0x5f,0xe0,0x90,0x9e,0x20,0xf0,0x74,0xe6,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,
+0xf5,0x83,0xe0,0xc3,0x94,0x05,0x40,0x02,0x41,0x9f,0x90,0x9e,0x20,0xe0,0xff,0x90,
+0x9e,0x1a,0xe0,0x9f,0x40,0x13,0x90,0x9e,0x20,0xe0,0x90,0x9e,0x1a,0xf0,0xee,0x54,
+0x40,0xfe,0x90,0x9e,0x19,0xf0,0xef,0x4e,0xf0,0x90,0x04,0xfd,0xe0,0x54,0x05,0x64,
+0x01,0x70,0x29,0x90,0x9e,0x1a,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,
+0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,
+0xda,0x80,0x30,0x90,0x9e,0x1a,0xe0,0x90,0x40,0xf6,0x80,0x27,0x90,0x9e,0x1a,0xe0,
+0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
+0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x41,0x12,0x80,0x07,0x90,0x9e,0x1a,0xe0,
+0x90,0x41,0x2e,0x93,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1f,0xe0,0x75,0xf0,0x06,0xa4,
+0x24,0x50,0xf9,0x74,0x40,0x35,0xf0,0xfa,0x7b,0xff,0x8b,0x15,0xf5,0x16,0x89,0x17,
+0xe5,0x14,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xf5,0x1b,
+0xa3,0xe0,0xf5,0x1c,0x12,0x29,0xd9,0xff,0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,
+0x12,0x42,0x97,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,
+0x1b,0xf5,0x1b,0xab,0x15,0xaa,0x16,0xa9,0x17,0x90,0x00,0x01,0x12,0x42,0x20,0xff,
+0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,
+0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xab,0x15,
+0xaa,0x16,0xa9,0x17,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x18,0xaa,
+0x19,0xa9,0x1a,0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,
+0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xab,0x15,0xaa,0x16,0xa9,0x17,0x90,
+0x00,0x03,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,
+0x06,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,
+0x35,0x1b,0xf5,0x1b,0xab,0x15,0xaa,0x16,0xa9,0x17,0x90,0x00,0x04,0x12,0x42,0x20,
+0xff,0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,
+0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xab,
+0x15,0xaa,0x16,0xa9,0x17,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,
+0x1b,0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x29,0xf2,0xd3,0xe5,0x1c,0x9f,0xe5,0x1b,0x9e,
+0x40,0x0c,0xe5,0x1c,0x9f,0xf5,0x1c,0xe5,0x1b,0x9e,0xf5,0x1b,0x80,0x05,0xe4,0xf5,
+0x1b,0xf5,0x1c,0xe5,0x14,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
+0xe5,0x1b,0xf0,0xa3,0xe5,0x1c,0xf0,0x90,0x9e,0x19,0xe0,0x25,0xe0,0x24,0x66,0xf5,
+0x82,0xe4,0x34,0x41,0xf5,0x83,0xc3,0x74,0x01,0x93,0x95,0x1c,0xe4,0x93,0x95,0x1b,
+0x50,0x07,0xaf,0x14,0x12,0x65,0x5c,0xa1,0x31,0x90,0x9e,0x19,0xe0,0x25,0xe0,0x24,
+0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x1c,0xe4,0x93,
+0x95,0x1b,0x50,0x02,0xa1,0x31,0x7d,0x01,0xaf,0x14,0x12,0x63,0xbd,0xa1,0x31,0x74,
+0xe6,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,
+0x81,0x3a,0x90,0x96,0x43,0xe0,0xff,0xb4,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0xc3,0x94,
+0x19,0x40,0x3d,0x80,0x2e,0xef,0xb4,0x02,0x0b,0x90,0x9e,0x1a,0xe0,0xc3,0x94,0x11,
+0x40,0x2e,0x80,0x1f,0x90,0x96,0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x1a,0xe0,
+0xc3,0x94,0x0a,0x40,0x1b,0x80,0x0c,0xef,0x70,0x11,0x90,0x9e,0x1a,0xe0,0xc3,0x94,
+0x03,0x40,0x0d,0x90,0x9a,0x84,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,
+0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x1e,0x74,0x44,
+0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,
+0x61,0xe7,0x90,0x9a,0x84,0xe0,0x64,0x01,0x60,0x02,0x61,0xe7,0x74,0x85,0x25,0x14,
+0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,
+0xe4,0x33,0xfe,0x74,0x41,0x25,0x14,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,
+0xd3,0x9f,0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,
+0x33,0xfe,0x74,0x44,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,
+0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x14,0x74,0x26,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x9d,0xf5,0x83,0xe0,0xff,0x90,0x9e,0x1a,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,
+0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,
+0x1e,0x05,0x80,0x0e,0xef,0xd3,0x94,0x39,0x40,0x05,0x75,0x1e,0x03,0x80,0x03,0x75,
+0x1e,0x01,0x74,0x41,0x25,0x14,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,
+0x85,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x14,0xf5,0x82,
+0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x85,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,
+0xf5,0x83,0xe0,0x04,0xf0,0x80,0x10,0xe4,0xf5,0x1e,0x74,0xe6,0x25,0x14,0xf5,0x82,
+0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x1a,0xe0,0xff,0x74,0x26,0x25,0x14,
+0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x98,0xf5,0x83,0xe5,0x1e,0xf0,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x4c,0x12,
+0x43,0x5f,0xe0,0xb4,0x01,0x10,0xe4,0xf5,0x1e,0x74,0xe6,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xad,0x1e,0xa1,0x2c,0xec,0x64,0x06,0x60,0x02,0xa1,
+0x31,0xf5,0x1b,0xf5,0x1c,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x1b,0xe0,
+0xfc,0xa3,0xe0,0xfd,0x12,0x29,0xf2,0x90,0x9e,0x21,0xee,0xf0,0xa3,0xef,0xf0,0x74,
+0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x1e,0xe4,0xf5,0x1d,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0x75,0xf0,0x02,0xe5,0x1d,0xa4,0xf5,0x82,0x85,0xf0,
+0x83,0x12,0x42,0xc2,0xfd,0xac,0xf0,0xe5,0x1d,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,
+0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xc3,0x90,0x9e,
+0x22,0xe0,0x95,0x1c,0x90,0x9e,0x21,0xe0,0x95,0x1b,0x40,0x07,0x05,0x1d,0xe5,0x1d,
+0xb4,0x05,0xbd,0xe5,0x1d,0xc3,0x13,0xf5,0x1d,0xe5,0x1e,0xb4,0x01,0x06,0xe5,0x1d,
+0x70,0x46,0x80,0x13,0xe5,0x1e,0xb4,0x03,0x15,0xe5,0x1d,0x70,0x05,0x75,0x1e,0x03,
+0x80,0x39,0xe5,0x1d,0xb4,0x01,0x05,0x75,0x1e,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x1e,
+0xb4,0x05,0x28,0xe5,0x1d,0x70,0x05,0x75,0x1e,0x05,0x80,0x0d,0xe5,0x1d,0xb4,0x01,
+0x05,0x75,0x1e,0x03,0x80,0x03,0x75,0x1e,0x01,0xd3,0x90,0x9e,0x1e,0xe0,0x94,0x03,
+0x90,0x9e,0x1d,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x1e,0xd3,0x90,0x9e,0x1e,0xe0,
+0x94,0x03,0x90,0x9e,0x1d,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x1e,0x74,0x84,0x25,
+0x14,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe5,0x1e,0xf0,0xfd,0xaf,0x14,0x12,0x67,
+0x61,0x74,0xe6,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,
+0x74,0xe6,0x50,0x0e,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,
+0x80,0x0b,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x1d,
+0xe0,0xfe,0xa3,0xe0,0xff,0xc3,0x74,0xff,0x9f,0xfd,0x74,0xff,0x9e,0xfc,0xe5,0x14,
+0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xd3,
+0x9d,0xea,0x9c,0xe5,0x14,0x50,0x13,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,
+0xf5,0x83,0xee,0x8f,0xf0,0x12,0x42,0x81,0x80,0x10,0x25,0xe0,0x24,0xc6,0xf5,0x82,
+0xe4,0x34,0x9a,0xf5,0x83,0x74,0xff,0xf0,0xa3,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x44,
+0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0xff,0xc3,0x74,0xff,0x9f,
+0xfd,0x74,0xff,0x9e,0xfc,0xe5,0x14,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,
+0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xd3,0x9d,0xea,0x9c,0xe5,0x14,0x50,0x13,0x25,0xe0,
+0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xee,0x8f,0xf0,0x12,0x42,0x81,0x80,
+0x10,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xff,0xf0,0xa3,
+0xf0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0xe4,0xf5,0xf0,0x12,0x42,0xfa,0xab,0x18,0xaa,
+0x19,0xa9,0x1a,0x90,0x00,0x02,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x04,0xe4,
+0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x06,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,
+0x08,0xe4,0xf5,0xf0,0x12,0x43,0x19,0xe5,0x14,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
+0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xe5,0x14,0x25,0xe0,0x24,0xc4,0xf5,0x82,
+0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x44,0xf5,
+0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x05,0x14,0xe5,0x14,0xc3,0x94,
+0x40,0x50,0x03,0x02,0x67,0xa4,0x22,0x90,0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,
+0xf0,0xa3,0x74,0x0f,0xf0,0xa3,0xe4,0xf0,0xfd,0x74,0xa4,0x2d,0xf5,0x82,0xe4,0x34,
+0x04,0xf5,0x83,0xe4,0xf0,0x0d,0xbd,0x10,0xf0,0xe4,0x90,0x9a,0xc5,0xf0,0x90,0x95,
+0x01,0x04,0xf0,0xe4,0xfd,0x75,0xf0,0x0a,0xed,0x90,0x90,0x00,0x12,0x43,0x5f,0xe4,
+0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x02,0x12,0x43,0x5f,0xe4,0xf0,0xa3,
+0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x04,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,
+0xf0,0x0a,0xed,0x90,0x90,0x06,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,
+0xed,0x90,0x90,0x08,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x74,0x26,0x2d,0xf5,0x82,
+0xe4,0x34,0x9d,0xf5,0x83,0x74,0x13,0xf0,0x74,0x85,0x2d,0xf5,0x82,0xe4,0x34,0x9a,
+0xf5,0x83,0xe4,0xf0,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,
+0xed,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0x74,0x86,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x46,0x2d,0xf5,
+0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0xe6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,
+0xf5,0x83,0xe4,0xf0,0x90,0x41,0xc4,0x93,0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,
+0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,
+0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x75,
+0xf0,0x09,0xed,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x75,0xf0,0x09,0xed,
+0x90,0x96,0x4a,0x12,0x43,0x5f,0x74,0x01,0xf0,0x74,0x82,0x2d,0xf5,0x82,0xe4,0x34,
+0x95,0xf5,0x83,0x74,0x0c,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x46,0x12,0x43,0x5f,
+0x74,0xff,0xf0,0xa3,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x44,0x12,0x43,0x5f,0xe4,
+0xf0,0xa3,0x74,0x0f,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0x74,
+0x13,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,
+0x94,0x20,0x50,0x0f,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,
+0xf0,0x80,0x0d,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,
+0x0d,0xed,0x64,0x40,0x60,0x03,0x02,0x6e,0xa5,0x22,0x12,0x29,0xd9,0xf5,0x14,0xc3,
+0x94,0x40,0x50,0x15,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x74,0x44,0x25,0x14,0xf5,
+0x82,0xe4,0x34,0x9a,0xf5,0x83,0xef,0xf0,0x22,0xe5,0x14,0xb4,0x40,0x0a,0x90,0x00,
+0x02,0x12,0x42,0x20,0x90,0x96,0x42,0xf0,0x22,0x90,0x9e,0x30,0x12,0x43,0x8b,0x90,
+0x9e,0x33,0xe0,0x54,0xf0,0x44,0x02,0xf0,0x54,0x0f,0x44,0xc0,0xf0,0x90,0x9e,0x30,
+0x12,0x43,0x6b,0x90,0x9e,0x90,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x33,0x02,
+0x53,0xf1,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x90,0x00,0x01,0x12,0x42,0x20,0xfc,
+0xed,0xc3,0x94,0x40,0x40,0x02,0xe4,0xfd,0xec,0xc3,0x94,0x40,0x40,0x02,0xe4,0xfc,
+0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,
+0xfb,0xea,0x90,0x9e,0x24,0xf0,0xeb,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,
+0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xfb,0xea,0x90,0x9e,0x26,0xf0,0xeb,
+0xa3,0xf0,0xa3,0xed,0xf0,0xa3,0x74,0xff,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
+0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xfb,0xea,0x90,0x9e,0x2a,0xf0,0xeb,
+0xa3,0xf0,0xec,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfa,
+0xa3,0xe0,0xfb,0xea,0x90,0x9e,0x2c,0xf0,0xeb,0xa3,0xf0,0xa3,0xec,0xf0,0xa3,0x74,
+0xff,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0xec,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0x7b,0x01,0x7a,0x9e,0x79,0x24,0x01,0x79,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
+0xd0,0x90,0x9e,0xa4,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,
+0xa4,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,0xa7,
+0xe0,0x94,0xe8,0x90,0x9e,0xa6,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,0x44,
+0x10,0xf0,0x7f,0x00,0x80,0x15,0x90,0x9e,0xa6,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,
+0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,
+0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x24,0x12,0x2a,0x8b,0x00,0x00,0x00,
+0x00,0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x66,0xf0,0x90,0x00,0x03,0x12,0x42,
+0x20,0x90,0x9e,0x55,0xf0,0x12,0x56,0x22,0x90,0x01,0xe5,0xe5,0x63,0xf0,0x90,0x9e,
+0x66,0xe0,0x90,0x01,0xe6,0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x00,0x02,0x12,0x42,
+0x20,0xff,0x30,0xe0,0x25,0x12,0x29,0xd9,0x90,0x9e,0x5c,0xf0,0x90,0x00,0x01,0x12,
+0x42,0x20,0x90,0x9e,0x5d,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x5b,0xf0,0x90,
+0x00,0x03,0x12,0x42,0x20,0x90,0x9e,0x62,0xf0,0x22,0x90,0x9e,0x5c,0x74,0x0a,0xf0,
+0x90,0x9e,0x5d,0x74,0x05,0xf0,0x90,0x9e,0x5b,0x74,0x14,0xf0,0x90,0x9e,0x62,0x74,
+0x05,0xf0,0x22,0x12,0x29,0xd9,0x30,0xe0,0x19,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x61,
+0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x5f,0xe4,0xf0,0xa3,0xef,0xf0,
+0x80,0x0f,0x90,0x9e,0x61,0x74,0x07,0xf0,0x90,0x9e,0x5f,0xe4,0xf0,0xa3,0x74,0x03,
+0xf0,0x90,0x9e,0x5f,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0x22,0x90,0x9e,0x24,0x12,
+0x2a,0x8b,0x00,0x00,0x00,0x00,0x12,0x29,0xd9,0x60,0x0d,0x90,0x9e,0x5e,0xf0,0xe4,
+0xfd,0x7f,0x04,0x12,0x54,0xe7,0x80,0x05,0xe4,0x90,0x9e,0x5e,0xf0,0x90,0x9e,0x5e,
+0xe0,0x90,0x01,0xe7,0xf0,0x22,0x90,0x02,0x09,0xe0,0xfd,0x12,0x29,0xd9,0xfe,0xaf,
+0x05,0xed,0x2e,0x90,0x9e,0x78,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,
+0x90,0x9e,0x79,0xf0,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x7a,
+0xf0,0x90,0x00,0x03,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x7b,0xf0,0x90,0x00,
+0x04,0x12,0x42,0x20,0xff,0xae,0x05,0xed,0x2f,0x90,0x9e,0x7c,0xf0,0x22,0xd3,0x10,
+0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x24,0x12,0x43,0x8b,0x90,0x9e,0x24,0x12,0x43,
+0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xfa,0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,
+0x90,0x9e,0x24,0x12,0x43,0x6b,0x90,0x00,0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,
+0x29,0xd9,0xff,0x60,0x2d,0xb5,0x65,0x16,0x90,0x9e,0x24,0x12,0x43,0x6b,0x90,0x00,
+0x01,0x12,0x42,0xc2,0x65,0x67,0x70,0x04,0xe5,0x66,0x65,0xf0,0x60,0x24,0x90,0x9e,
+0x24,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xff,0xae,0xf0,0x12,0x4e,0x37,
+0x80,0x10,0x90,0x9e,0x24,0x12,0x43,0x6b,0x12,0x29,0xd9,0x65,0x65,0x60,0x03,0x12,
+0x44,0xc2,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0x22,0x90,0x06,0x34,0xe0,0x60,0x24,0x14,0x70,0x1a,0x7b,0x01,
+0x7a,0x06,0x79,0x35,0x7f,0xf9,0x7e,0x01,0x71,0xb0,0xbf,0x01,0x09,0x90,0x06,0x35,
+0xe0,0x54,0x0f,0xf0,0x80,0x04,0x80,0x00,0x80,0xcd,0xe4,0x90,0x06,0x34,0xf0,0x22,
+0x8e,0x14,0x8f,0x15,0x8b,0x16,0x8a,0x17,0x89,0x18,0xe4,0x90,0x9e,0x19,0xf0,0xef,
+0x90,0x00,0x31,0xf0,0x12,0x4d,0x45,0xe5,0x14,0x54,0x03,0xff,0x90,0x00,0x32,0xe0,
+0x54,0xfc,0x4f,0xf0,0x12,0x4d,0x45,0x90,0x00,0x33,0xe0,0x54,0x7f,0xf0,0x12,0x4d,
+0x45,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x19,0xe0,0xc3,0x94,0x64,0x50,
+0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x19,0xe0,0xc3,0x94,0x64,0x50,0x10,0x90,
+0x00,0x30,0xe0,0xab,0x16,0xaa,0x17,0xa9,0x18,0x12,0x42,0x4d,0x7f,0x01,0x22,0x7f,
+0x00,0x22,0xe4,0x90,0x9e,0xac,0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,0xa3,
+0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,0x90,
+0x9e,0xad,0xe0,0x94,0xe8,0x90,0x9e,0xac,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,0x22,
+0x7f,0x32,0x7e,0x00,0x12,0x37,0x54,0x90,0x9e,0xac,0xe4,0x75,0xf0,0x01,0x12,0x42,
+0x81,0x80,0xc6,0x90,0x00,0x11,0xe0,0x44,0x09,0xf0,0x12,0x4d,0x45,0x90,0x9d,0xff,
+0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,
+0x90,0x9e,0x03,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,
+0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x00,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x0b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
+0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,
+0x03,0x2d,0x95,0xe4,0xfd,0xff,0x12,0x34,0x81,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x11,
+0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x34,
+0x81,0x22,0x7f,0x78,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xff,0x12,0x2a,0x7f,0x7f,
+0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0x03,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,
+0x12,0x27,0xde,0x90,0x9e,0x07,0x12,0x2a,0x7f,0x90,0x9e,0x80,0xe0,0x90,0x9d,0xff,
+0xb4,0x01,0x0d,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,0x80,0x07,
+0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x78,
+0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,0xff,0xec,
+0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9e,0x07,
+0x12,0x43,0x53,0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,
+0x7e,0x08,0x12,0x2f,0xd9,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9e,0x0b,0x12,
+0x2a,0x7f,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa0,0x7f,0x70,0x7e,0x0e,
+0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0xff,
+0x12,0x34,0x81,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,
+0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x90,0x00,0x11,0xe0,0x54,
+0xf6,0xf0,0x02,0x4d,0x45,0xef,0x70,0x02,0xe1,0x5c,0x90,0x9e,0x0f,0xe0,0x60,0x03,
+0x02,0x7b,0x28,0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x8c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
+0x2a,0x7f,0x7f,0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xab,0x12,0x43,0x53,0x90,
+0x80,0x85,0x12,0x2a,0x7f,0x7f,0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xaf,0x12,
+0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
+0x9d,0xb3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,
+0x2f,0xd9,0x90,0x9d,0xb7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x74,
+0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
+0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xbf,0x12,0x43,0x53,0x90,0x80,
+0x85,0x12,0x2a,0x7f,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xc3,0x12,0x43,
+0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,
+0xc7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,0x2f,
+0xd9,0x90,0x9d,0xcb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x88,0x7e,
+0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xcf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
+0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,0x80,0x85,
+0x12,0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd7,0x12,0x43,0x53,
+0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xdb,
+0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,0x2f,0xd9,
+0x90,0x9d,0xdf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,
+0x12,0x2f,0xd9,0x90,0x9d,0xe3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0xe0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
+0x2a,0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xeb,0x12,0x43,0x53,0x90,
+0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9d,0xef,0x12,
+0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x90,
+0x9d,0xf3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,
+0x2f,0xd9,0x90,0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,
+0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,0x0f,0xe0,
+0x64,0x01,0x60,0x03,0x02,0x7b,0x28,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,
+0xfb,0x12,0x2a,0x7f,0x7f,0x44,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xa7,0x12,0x2a,
+0x7f,0x7f,0x5c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xab,0x12,0x2a,0x7f,0x7f,0x6c,
+0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xaf,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,
+0x27,0xde,0x90,0x9d,0xb3,0x12,0x2a,0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x27,0xde,0x90,
+0x9d,0xb7,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbb,0x12,
+0x2a,0x7f,0x7f,0x7c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbf,0x12,0x2a,0x7f,0x7f,
+0x80,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xc3,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,
+0x12,0x27,0xde,0x90,0x9d,0xc7,0x12,0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x27,0xde,
+0x90,0x9d,0xcb,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcf,
+0x12,0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd3,0x12,0x2a,0x7f,
+0x7f,0xd4,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd7,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,
+0x0e,0x12,0x27,0xde,0x90,0x9d,0xdb,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,0x27,
+0xde,0x90,0x9d,0xdf,0x12,0x2a,0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,
+0xe3,0x12,0x2a,0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe7,0x12,0x2a,
+0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9d,0xeb,0x12,0x2a,0x7f,0x7f,0x04,
+0x7e,0x0d,0x12,0x27,0xde,0x90,0x9d,0xef,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,
+0x27,0xde,0x90,0x9d,0xf3,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,
+0x9d,0xf7,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa8,0x12,
+0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,0xa8,
+0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x8c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x01,0x00,0x00,
+0x7f,0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0xdb,0x25,
+0xa4,0x7f,0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,
+0x25,0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,
+0xdb,0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,
+0x04,0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,
+0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,
+0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,
+0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,
+0x85,0x12,0x2a,0x8b,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
+0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2f,0xd9,
+0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,
+0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,
+0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,
+0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,
+0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xdc,
+0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,
+0xe0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x24,0xdb,0x25,0xa4,
+0x7f,0xec,0x7e,0x0e,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,
+0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa8,
+0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,
+0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
+0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9e,
+0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,
+0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,
+0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
+0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,
+0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,
+0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,
+0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
+0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,
+0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xed,0x54,0x0f,0xfd,
+0xec,0x54,0xf0,0xfc,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,
+0xed,0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,
+0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,
+0xd9,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,
+0xa8,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,
+0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa8,0x12,0x2a,0x7f,
+0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,
+0x12,0x2f,0xd9,0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,
+0x9e,0x43,0xf0,0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,0x14,
+0xc2,0xaf,0x90,0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x49,0x05,0x7d,0x40,
+0x7f,0x01,0x12,0x36,0xaf,0xe5,0x14,0x24,0xff,0x92,0xaf,0x22,0x90,0x9e,0x3a,0xe0,
+0xc3,0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0x81,0x14,0x90,0x9e,0x3a,0xe0,0x64,0x14,
+0x60,0x02,0x81,0x14,0x90,0x9e,0x49,0xe0,0x70,0x25,0x90,0x9e,0x4c,0xe0,0x70,0x1f,
+0x90,0x9e,0x4a,0xe0,0x70,0x19,0x90,0x9e,0x4d,0xe0,0x70,0x13,0x90,0x9e,0x4b,0xe0,
+0x70,0x0d,0x90,0x9e,0x4e,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,0x54,0xfe,0xf0,0x90,
+0x9e,0x49,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x4a,0xe0,0x90,0x04,0x45,0xf0,0x90,
+0x9e,0x4b,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x4c,0xe0,0x90,0x04,
+0x48,0xf0,0x90,0x9e,0x4d,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,0x4e,0xe0,0x90,0x04,
+0x4a,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x35,0xe0,0x90,0x04,0x4c,0xf0,0x90,0x9e,0x36,
+0xe0,0x90,0x04,0x4d,0xf0,0x90,0x9e,0x37,0xe0,0x90,0x04,0x4e,0xf0,0x90,0x9e,0x38,
+0xe0,0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0x35,0x04,0xf0,0xe4,
+0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x49,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x19,0xf0,0x90,0x05,0x61,0xe0,
+0x90,0x9e,0x1a,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x1b,0xf0,0x90,0x05,0x63,0xe0,
+0x90,0x9e,0x1c,0xf0,0x90,0x9e,0x52,0xe0,0xff,0x90,0x9e,0x1c,0xe0,0xfe,0xd3,0x9f,
+0x50,0x0b,0x90,0x9e,0x52,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,0x11,0x90,0x9e,0x40,
+0xe0,0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x44,0xe0,0xff,0x12,0x4c,0xf0,0x22,0x90,
+0x9e,0x53,0xe0,0x64,0x01,0x60,0x08,0x90,0x9e,0x41,0xe0,0x60,0x02,0xa1,0x36,0x90,
+0x9e,0x35,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x36,
+0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x37,0xe0,
+0xc3,0x94,0xff,0x50,0x0a,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x36,0xf0,0x80,0x15,0x90,
+0x9e,0x38,0xe0,0xc3,0x94,0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x37,0xf0,
+0x90,0x9e,0x36,0xf0,0x90,0x9e,0x35,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,
+0xe0,0x30,0xe2,0x32,0x90,0x9e,0x49,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,
+0x80,0x24,0x90,0x9e,0x4a,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,
+0x11,0x90,0x9e,0x4b,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,
+0x4a,0xf0,0x90,0x9e,0x49,0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x4c,
+0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x4d,0xe0,0xc3,
+0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x4e,0xe0,0xc3,0x94,
+0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x4d,0xf0,0x90,0x9e,0x4c,0xf0,0x90,
+0x04,0xfd,0xe0,0x44,0x01,0xf0,0x22,0x00,0x37,0xda,};
+
+// =================== v79 UMC A Cut COMMON 2011-10-06 =====================
+u8 Rtl8192CUFwUMCACutImgArray[UMCACutImgArrayLength] = {
+0xc1,0x88,0x02,0x00,0x4f,0x00,0x00,0x00,0x0a,0x06,0x18,0x09,0x58,0x3f,0x01,0x00,
0x61,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x5a,0x45,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -99,7 +1084,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x00,0x41,0x9e,0xae,0x00,0x41,0x9e,0x4d,0x80,0x41,0x9e,0x4e,0x80,0x41,0x9e,0xb0,
0x00,0x00,0xf0,0x90,0x9e,0x57,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,
0x7e,0x01,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x88,0xeb,0xf0,0xa3,0xe0,
-0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x35,0xab,0xd0,0xd0,0x92,0xaf,0x22,
+0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x30,0x62,0xd0,0xd0,0x92,0xaf,0x22,
0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x89,0xf0,
0x90,0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,
0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x5c,
@@ -111,7 +1096,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x22,0x22,0x00,0x02,0x60,0x8d,0x02,0x60,0x94,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
0x8b,0x1b,0x8a,0x1c,0x89,0x1d,0x90,0x9e,0x8b,0x71,0x8b,0xab,0x1e,0xaa,0x1f,0xa9,
0x20,0x90,0x9e,0x8e,0x71,0x8b,0xaf,0x21,0x15,0x21,0xef,0x60,0x1b,0x90,0x9e,0x8e,
-0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x29,0xd9,0xff,0x90,0x9e,0x8b,0xe4,0x75,0xf0,
+0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x24,0x62,0xff,0x90,0x9e,0x8b,0xe4,0x75,0xf0,
0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x1b,0xaa,0x1c,0xa9,0x1d,0xd0,0xd0,
0x92,0xaf,0x22,0x90,0x06,0xa9,0xe0,0xf5,0x50,0x54,0xc0,0x70,0x0d,0x90,0x9e,0x63,
0xe0,0x54,0xfe,0xf0,0xe0,0x54,0xfd,0xf0,0x91,0xd3,0xe5,0x50,0x30,0xe6,0x17,0x90,
@@ -168,21 +1153,21 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x60,0x0b,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x77,
0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x77,0x66,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,
0x90,0x05,0x22,0x74,0xff,0xf0,0x12,0x77,0x1c,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,
-0xfd,0xf0,0x7d,0x02,0x7f,0x03,0x12,0x36,0xe6,0xe5,0x74,0x60,0x04,0x7f,0x01,0x11,
+0xfd,0xf0,0x7d,0x02,0x7f,0x03,0x12,0x31,0x9d,0xe5,0x74,0x60,0x04,0x7f,0x01,0x11,
0x8f,0x11,0xdf,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,0x22,0x7f,
-0x78,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xff,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,
-0x12,0x27,0xde,0x90,0x9e,0x03,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x27,0xde,
-0x90,0x9e,0x07,0x12,0x2a,0x7f,0x90,0x9e,0x77,0xe0,0x90,0x9d,0xff,0xb4,0x01,0x0d,
+0x78,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xff,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,
+0x12,0x22,0x65,0x90,0x9e,0x03,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,0x12,0x22,0x65,
+0x90,0x9e,0x07,0x12,0x25,0x08,0x90,0x9e,0x77,0xe0,0x90,0x9d,0xff,0xb4,0x01,0x0d,
0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,0x80,0x07,0x12,0x43,0x53,
-0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x08,0x12,
-0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,0xff,0xec,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,0x43,0x53,
-0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,
-0x2f,0xd9,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9e,0x0b,0x12,0x2a,0x7f,0x90,
-0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa0,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0xff,0x12,0x34,0x81,
-0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,
-0x00,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x90,0x00,0x11,0xe0,0x54,0xf6,0xf0,0x80,
+0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x78,0x7e,0x08,0x12,
+0x2b,0x08,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,0xff,0xec,0x90,0x80,0x96,
+0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,0x9e,0x07,0x12,0x43,0x53,
+0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,0x12,
+0x2b,0x08,0x7f,0x70,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9e,0x0b,0x12,0x25,0x08,0x90,
+0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa0,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x08,
+0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x00,0x00,0x00,0xe4,0xfd,0xff,0x12,0x30,0x2c,
+0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x00,0x00,
+0x00,0xe4,0xfd,0x7f,0x01,0x12,0x30,0x2c,0x90,0x00,0x11,0xe0,0x54,0xf6,0xf0,0x80,
0x08,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
0x7f,0x10,0xdf,0xfe,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
0x90,0x9e,0xad,0xed,0xf0,0x90,0x9e,0xac,0xef,0xf0,0xd3,0x94,0x07,0x50,0x63,0xe0,
@@ -205,15 +1190,15 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x02,0x61,0x7d,0x90,0x9e,0x1a,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,
0x7f,0x48,0x51,0xc1,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,0x47,0x51,0xc1,0x90,
0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,0x9e,0x1a,0xf0,0x90,
-0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,
-0x2f,0xd9,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x45,
+0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,
+0x2b,0x08,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x45,
0xe0,0x54,0xef,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,
0x46,0x80,0x38,0x90,0x9e,0x1a,0x74,0x01,0xf0,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x00,0x45,0xe0,
+0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x90,0x00,0x45,0xe0,
0x44,0x20,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,
0x51,0xc1,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x51,0xc1,0x22,0x90,0x00,
0x02,0x12,0x42,0x20,0x90,0x9e,0x1c,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0x25,0xe0,
-0x25,0xe0,0x90,0x9e,0x1b,0xf0,0x12,0x29,0xd9,0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1f,
+0x25,0xe0,0x90,0x9e,0x1b,0xf0,0x12,0x24,0x62,0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1f,
0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x2b,
0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x2d,
0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x1b,0xe0,0xff,
@@ -222,25 +1207,25 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x81,0x84,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x2e,0x74,
0x01,0xf0,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x51,0xb8,0x90,0x00,0x46,0xe0,
0x44,0x01,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,
+0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,
0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,
0x45,0x51,0xc1,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,
0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,
0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,
0x3f,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,0xe4,0xff,0x12,
-0x37,0x00,0x80,0x2b,0x90,0x9e,0x1c,0xe0,0x70,0x2d,0x90,0x9e,0x2e,0x51,0xb7,0x90,
+0x31,0xb7,0x80,0x2b,0x90,0x9e,0x1c,0xe0,0x70,0x2d,0x90,0x9e,0x2e,0x51,0xb7,0x90,
0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x05,0x22,0xe4,0xf0,0xa2,
-0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,0x36,0x92,0x90,
+0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,0x31,0x49,0x90,
0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x22,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x90,0x00,
0x02,0x12,0x42,0x20,0x90,0x9e,0x1d,0xf0,0xe0,0x30,0xe0,0x4b,0x90,0x9e,0x14,0x74,
-0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x16,0x12,0x2a,0x7f,0xab,
+0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0x16,0x12,0x25,0x08,0xab,
0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xe4,0xfc,0xfd,0xfe,
-0x78,0x1a,0x12,0x2a,0x6c,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,0x16,
-0x12,0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x2a,0x7f,
+0x78,0x1a,0x12,0x24,0xf5,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,0x16,
+0x12,0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x25,0x08,
0x90,0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x14,0xf0,0x7f,0x80,0x7e,0x08,
-0x12,0x27,0xde,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,0x2a,
-0x7f,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,
-0x08,0x12,0x2f,0xd9,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,0x51,
+0x12,0x22,0x65,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,0x25,
+0x08,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,
+0x08,0x12,0x2b,0x08,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,0x51,
0xc1,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x51,0xc1,0x90,0x00,0x46,0xe0,
0x44,0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,0x47,0x51,0xc1,0x90,
0x00,0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x51,0xc1,0x90,0x00,0x46,0xe0,0x54,0xef,
@@ -256,13 +1241,13 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x46,0x51,0xc1,0x7f,0x02,0xf1,0xea,0x8f,0x26,0x90,0x01,0xc9,0xe5,0x26,0xf0,0xb4,
0x01,0x02,0xf1,0x2a,0x22,0x90,0x9e,0x1c,0xe0,0x64,0x01,0x60,0x02,0xc1,0xd7,0x90,
0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x9e,0x2e,0xe0,0x70,0x31,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,
+0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
+0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,
0xf0,0x90,0x9e,0x1b,0xe0,0xff,0xd1,0xd8,0x90,0x9e,0x2e,0x74,0x01,0x51,0xb7,0x80,
0x3f,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x70,0x37,0x90,0x9e,0x1f,0xe0,0xff,0xd1,0xd8,
0xe4,0x90,0x9e,0x2e,0xf0,0x90,0x00,0x45,0xe0,0x44,0x01,0xfd,0x7f,0x45,0x51,0xc1,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,
+0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
+0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,
0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,0x84,0xf0,0x90,
0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,0x86,0xf0,0x90,
0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,
@@ -296,7 +1281,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x29,0x75,0x2a,0x03,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,
0xa3,0xe5,0x2a,0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0xe4,0x90,0x9e,0x31,0xf0,0xa3,0xf0,
0x75,0x8e,0x02,0x12,0x4f,0xda,0x12,0x5f,0xa9,0x12,0x5f,0xbc,0xe4,0xf5,0x12,0x12,
-0x6f,0xa1,0x12,0x77,0x5d,0x12,0x60,0x9b,0x12,0x32,0x3d,0x12,0x77,0x18,0x11,0x8b,
+0x6f,0xa1,0x12,0x77,0x5d,0x12,0x60,0x9b,0x12,0x2e,0x01,0x12,0x77,0x18,0x11,0x8b,
0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,
0xf0,0xa3,0xe4,0xf0,0x12,0x5f,0xf4,0x12,0x5f,0x91,0x12,0x44,0xfe,0x12,0x7d,0x1d,
0x90,0x9e,0x33,0xe5,0xd9,0xf0,0x12,0x4d,0x8b,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,
@@ -353,7 +1338,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x43,0x6b,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0x90,
0x00,0x01,0xef,0x12,0x42,0x5f,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,
0x42,0x20,0xff,0x90,0x9e,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,
-0xf0,0x12,0x29,0xd9,0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,0x90,
+0xf0,0x12,0x24,0x62,0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,0x90,
0x9e,0x3f,0xe0,0xff,0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,
0x9e,0x40,0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,
0x75,0xf0,0x09,0xef,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x45,
@@ -389,10 +1374,10 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x5d,
0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x5c,
0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,
-0xf0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,
-0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x29,0xd9,0x5f,0xd0,0x01,0xd0,0x02,0xd0,
+0xf0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x24,0x62,
+0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x24,0x62,0x5f,0xd0,0x01,0xd0,0x02,0xd0,
0x03,0x12,0x42,0x4d,0xab,0x5d,0xe5,0x5f,0x24,0x01,0xf9,0xe4,0x35,0x5e,0xfa,0xc0,
-0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x90,
+0x03,0xc0,0x02,0xc0,0x01,0x12,0x24,0x62,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x90,
0x00,0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,
0x5c,0x82,0x85,0x5b,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,
0x83,0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x5c,0x82,0x85,0x5b,0x83,
@@ -472,7 +1457,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x4d,0x31,0x76,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x45,0x90,0x9e,0x61,0xe0,
0x60,0x37,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x04,0xf0,0xd1,0x05,0xef,
0x64,0x01,0x70,0x2d,0x90,0x9e,0x55,0xe0,0xf5,0x44,0x75,0x45,0x00,0xe4,0xfb,0xfd,
-0x7f,0x58,0x7e,0x01,0x12,0x35,0xab,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,
+0x7f,0x58,0x7e,0x01,0x12,0x30,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,
0x74,0x01,0xf0,0x90,0x9e,0x5d,0xf0,0x80,0x08,0xd1,0x05,0xbf,0x01,0x03,0x12,0x44,
0xd3,0xe5,0x2c,0x30,0xe1,0x20,0x90,0x01,0x34,0x74,0x02,0xf0,0x85,0xd1,0x13,0x85,
0xd2,0x14,0x85,0xd3,0x15,0x85,0xd4,0x16,0x85,0xd5,0x17,0x85,0xd6,0x18,0x85,0xd7,
@@ -515,12 +1500,12 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x01,0xef,0x12,0x42,0x5f,0x7f,0xaf,0x7e,0x01,0xf1,0x3b,0xef,0x60,0x49,0x90,0x9e,
0x91,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x75,0x21,0x02,0x7b,0x01,0x7a,
0x01,0x79,0xa0,0x12,0x45,0x09,0x90,0x9e,0x94,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,
-0x89,0x20,0x90,0x9e,0x91,0x12,0x43,0x6b,0x12,0x29,0xd9,0xff,0xc4,0x54,0x0f,0xf5,
+0x89,0x20,0x90,0x9e,0x91,0x12,0x43,0x6b,0x12,0x24,0x62,0xff,0xc4,0x54,0x0f,0xf5,
0x21,0x7b,0x01,0x7a,0x01,0x79,0xa2,0x12,0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,
0x90,0x01,0xcb,0xe0,0x64,0x80,0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,0x2f,0xe0,
0x54,0xf0,0x44,0x03,0xf0,0x54,0x0f,0x44,0x80,0xf0,0x7b,0x00,0x7a,0x00,0x79,0x13,
0x90,0x9e,0x94,0x12,0x43,0x8b,0x0b,0x7a,0x9e,0x79,0x2f,0xc1,0x14,0x7d,0x02,0x7f,
-0x03,0x12,0x36,0x75,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x23,0x90,0x9e,0x61,
+0x03,0x12,0x31,0x2c,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x23,0x90,0x9e,0x61,
0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0f,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,
0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x1a,0xe4,0xff,0x12,0x48,0x8f,
0x22,0xd1,0x05,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x32,
@@ -532,7 +1517,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x9e,0xa0,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,
0xa3,0xe0,0x94,0xe8,0x90,0x9e,0xa2,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,
0x44,0x10,0xf0,0x7f,0x00,0x80,0x15,0x90,0x9e,0xa2,0xe4,0x75,0xf0,0x01,0x12,0x42,
-0x81,0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,
+0x81,0x7f,0x0a,0x7e,0x00,0x12,0x32,0x15,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,
0x22,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,0x01,0x38,0xe5,0x30,0xf0,
0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0x90,0x00,0x02,0xe0,0x54,0xe0,0x90,
0x9e,0x75,0x60,0x04,0x74,0x01,0xf0,0x22,0x74,0x02,0xf0,0x22,0x90,0x00,0xf3,0xe0,
@@ -558,7 +1543,7 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x9e,0x5b,0x74,0x05,0xf0,0xe4,0x90,0x9e,0x54,0xf0,0x90,0x9e,0x4f,0xf0,0x90,0x9e,
0x76,0xf0,0x22,0xe4,0x90,0x9e,0x62,0xf0,0x90,0x9e,0x51,0xf0,0x90,0x9e,0x63,0xf0,
0x22,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x31,0x03,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x12,
-0x29,0xd9,0xf5,0x74,0x14,0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,
+0x24,0x62,0xf5,0x74,0x14,0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,
0x40,0x7f,0x01,0x80,0x3a,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,
0x20,0xfd,0xe4,0xff,0x31,0x72,0x80,0x27,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,
0x02,0x12,0x42,0x20,0xfd,0x7f,0x01,0x31,0x72,0x1f,0x80,0x13,0xab,0x59,0xaa,0x5a,
@@ -567,13 +1552,13 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x80,0x16,0xed,0x70,0x0a,0x90,0x9e,0x5b,0xe0,0x90,0x9e,0x5f,0xf0,0x80,0x05,0x90,
0x9e,0x5f,0xed,0xf0,0x90,0x9e,0x5f,0xe0,0x90,0x9e,0x50,0xf0,0x22,0xd3,0x10,0xaf,
0x01,0xc3,0xc0,0xd0,0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x61,0xf0,0x90,0x00,
-0x03,0x12,0x42,0x20,0x90,0x9e,0x4f,0xf0,0x12,0x29,0xd9,0x65,0x74,0x60,0x02,0x31,
+0x03,0x12,0x42,0x20,0x90,0x9e,0x4f,0xf0,0x12,0x24,0x62,0x65,0x74,0x60,0x02,0x31,
0x11,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x64,0x01,0x70,0x30,0x7d,0x7c,0x7f,0x02,0x12,
-0x36,0x75,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,
+0x31,0x2c,0x7d,0x02,0x7f,0x03,0x12,0x31,0x2c,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,
0x3c,0x74,0x02,0xf0,0x12,0x47,0x16,0xe4,0xff,0x12,0x48,0x8f,0x90,0x06,0x04,0xe0,
0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,0x7c,
-0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x36,0xe6,0x7d,0x02,0x7f,0x03,0x12,
-0x36,0xe6,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,0xf0,
+0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x31,0x9d,0x7d,0x02,0x7f,0x03,0x12,
+0x31,0x9d,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,0xf0,
0x90,0x9e,0x58,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0xe5,0x73,0x30,0xe0,0x1b,0x90,
0x9e,0x52,0xe0,0x70,0x1a,0xe0,0x04,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,0x94,
0x04,0x50,0x0c,0x7d,0x01,0x7f,0x04,0x02,0x47,0x1a,0xe4,0x90,0x9e,0x52,0xf0,0x22,
@@ -600,17 +1585,17 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0xf0,0x22,0x90,0x9e,0xaf,0xef,0xf0,0x71,0xb0,0x90,0x9e,0xaf,0xe0,0x60,0x05,0x90,
0x05,0x22,0xe4,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x04,0xf0,0x22,
0x90,0x00,0x11,0xe0,0x44,0x09,0xf0,0x12,0x49,0xb9,0x90,0x9d,0xff,0x12,0x43,0x53,
-0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,
-0x90,0x9e,0x07,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,
-0x12,0x2f,0xd9,0x90,0x9e,0x0b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,
-0xe4,0xfd,0xff,0x12,0x34,0x81,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,
-0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x22,0x8f,
+0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x78,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x03,
+0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,
+0x90,0x9e,0x07,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,
+0x12,0x2b,0x08,0x90,0x9e,0x0b,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
+0x70,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x03,0x2d,0x95,
+0xe4,0xfd,0xff,0x12,0x30,0x2c,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x68,
+0x12,0x25,0x14,0x00,0x03,0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x30,0x2c,0x22,0x8f,
0x27,0xe4,0x90,0x9e,0xa8,0xf0,0xa3,0xf0,0x90,0x01,0x09,0xe0,0x7f,0x00,0x30,0xe7,
0x02,0x7f,0x01,0xef,0x65,0x27,0x60,0x3e,0xc3,0x90,0x9e,0xa9,0xe0,0x94,0x88,0x90,
0x9e,0xa8,0xe0,0x94,0x13,0x40,0x08,0x90,0x01,0xc6,0xe0,0x44,0x80,0xf0,0x22,0x90,
-0x9e,0xa8,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x37,0x54,
+0x9e,0xa8,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x32,0x15,
0xd3,0x90,0x9e,0xa9,0xe0,0x94,0x32,0x90,0x9e,0xa8,0xe0,0x94,0x00,0x40,0xb9,0x90,
0x01,0xc7,0xe0,0x30,0xe0,0xb2,0x22,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,
0x01,0xf0,0x12,0x44,0xff,0x12,0x45,0x00,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,
@@ -717,21 +1702,21 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x93,0xff,0xd3,0x90,0x9e,0x3b,0xe0,0x9f,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x09,
0xe4,0xfd,0xaf,0x59,0x12,0x67,0xb1,0xe1,0x2c,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,
0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xf5,0x61,0xa3,0xe0,0xf5,0x62,0xab,0x5b,0xaa,
-0x5c,0xa9,0x5d,0x12,0x29,0xd9,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,
-0x42,0x97,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,
+0x5c,0xa9,0x5d,0x12,0x24,0x62,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,
+0x42,0x97,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,
0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x7e,
0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,0xf0,
-0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,
+0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,
0x5c,0xa9,0x5d,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,
-0xa9,0x60,0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,
+0xa9,0x60,0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,
0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,
0x03,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x06,
-0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,
+0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,
0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x04,0x12,0x42,0x20,0xff,
0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,0xac,
-0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,
+0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,
0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,0x38,
-0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x29,0xf2,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,
+0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x24,0x7b,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,
0x0c,0xe5,0x62,0x9f,0xf5,0x62,0xe5,0x61,0x9e,0xf5,0x61,0x80,0x05,0xe4,0xf5,0x61,
0xf5,0x62,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe5,
0x61,0xf0,0xa3,0xe5,0x62,0xf0,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,
@@ -766,11 +1751,11 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x5f,0xe0,0xb4,0x01,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,
0x9c,0xf5,0x83,0xe4,0xf0,0xad,0x63,0xc1,0xfb,0xec,0x64,0x06,0x60,0x02,0xe1,0x00,
0xf5,0x61,0xf5,0x62,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,
-0xa3,0xe0,0xfd,0x12,0x29,0xf2,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,
+0xa3,0xe0,0xfd,0x12,0x24,0x7b,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,
0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0xe4,0xf5,0x5a,0xab,
0x5e,0xaa,0x5f,0xa9,0x60,0x75,0xf0,0x02,0xe5,0x5a,0xa4,0xf5,0x82,0x85,0xf0,0x83,
0x12,0x42,0xc2,0xfd,0xac,0xf0,0xe5,0x5a,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,0x12,
-0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,
+0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,
0xe0,0x95,0x62,0x90,0x9e,0x36,0xe0,0x95,0x61,0x40,0x07,0x05,0x5a,0xe5,0x5a,0xb4,
0x05,0xbd,0xe5,0x5a,0xc3,0x13,0xf5,0x5a,0xe5,0x63,0xb4,0x01,0x06,0xe5,0x5a,0x70,
0x46,0x80,0x13,0xe5,0x63,0xb4,0x03,0x15,0xe5,0x5a,0x70,0x05,0x75,0x63,0x03,0x80,
@@ -819,36 +1804,36 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x90,0x96,0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,0x94,0x20,0x50,0x0f,0x74,0x84,
0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,0xf0,0x80,0x0d,0x74,0xa6,0x2d,
0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,0x0d,0xed,0x64,0x40,0x60,0x03,
-0x02,0x6f,0xcf,0x22,0x12,0x29,0xd9,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,
+0x02,0x6f,0xcf,0x22,0x12,0x24,0x62,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,
0x02,0x12,0x42,0x20,0xff,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,
0xef,0xf0,0x22,0xe5,0x59,0xb4,0x40,0x0a,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x96,
0x42,0xf0,0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,
-0xc4,0x13,0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x02,0x53,0xa4,0x12,0x29,0xd9,0x90,
-0x95,0x01,0xf0,0x22,0x12,0x29,0xd9,0xf5,0x73,0x22,0x90,0x00,0x02,0x12,0x42,0x20,
-0xff,0x30,0xe0,0x25,0x12,0x29,0xd9,0x90,0x9e,0x56,0xf0,0x90,0x00,0x01,0x12,0x42,
+0xc4,0x13,0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x02,0x53,0xa4,0x12,0x24,0x62,0x90,
+0x95,0x01,0xf0,0x22,0x12,0x24,0x62,0xf5,0x73,0x22,0x90,0x00,0x02,0x12,0x42,0x20,
+0xff,0x30,0xe0,0x25,0x12,0x24,0x62,0x90,0x9e,0x56,0xf0,0x90,0x00,0x01,0x12,0x42,
0x20,0x90,0x9e,0x57,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x55,0xf0,0x90,0x00,
0x03,0x12,0x42,0x20,0x90,0x9e,0x5b,0xf0,0x22,0x90,0x9e,0x56,0x74,0x01,0xf0,0x90,
0x9e,0x57,0x74,0x03,0xf0,0x90,0x9e,0x55,0x74,0x14,0xf0,0x90,0x9e,0x5b,0x74,0x05,
-0xf0,0x22,0x12,0x29,0xd9,0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x5a,0xf0,
+0xf0,0x22,0x12,0x24,0x62,0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x5a,0xf0,
0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x58,0xe4,0xf0,0xa3,0xef,0xf0,0x22,
0x90,0x9e,0x5a,0x74,0x07,0xf0,0x90,0x9e,0x58,0xe4,0xf0,0xa3,0x74,0x02,0xf0,0x22,
-0x90,0x02,0x09,0xe0,0xfd,0x12,0x29,0xd9,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x67,
+0x90,0x02,0x09,0xe0,0xfd,0x12,0x24,0x62,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x67,
0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x68,0xf0,0x90,0x00,
0x02,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x69,0xf0,0x90,0x00,0x03,0x12,0x42,
0x20,0xff,0xed,0x2f,0x90,0x9e,0x6a,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0xae,
0x05,0xed,0x2f,0x90,0x9e,0x6b,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,
0x9e,0x3f,0x12,0x43,0x8b,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,
0xc2,0xfa,0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,0x90,0x9e,0x3f,0x12,0x43,0x6b,
-0x90,0x00,0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,0x29,0xd9,0xff,0x60,0x2c,0xb5,
+0x90,0x00,0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,0x24,0x62,0xff,0x60,0x2c,0xb5,
0x22,0x16,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0x65,0x24,
0x70,0x04,0xe5,0x23,0x65,0xf0,0x60,0x23,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,
0x01,0x12,0x42,0xc2,0xff,0xae,0xf0,0x71,0x00,0x80,0x10,0x90,0x9e,0x3f,0x12,0x43,
-0x6b,0x12,0x29,0xd9,0x65,0x22,0x60,0x03,0x12,0x44,0xca,0xd0,0xd0,0x92,0xaf,0x22,
+0x6b,0x12,0x24,0x62,0x65,0x22,0x60,0x03,0x12,0x44,0xca,0xd0,0xd0,0x92,0xaf,0x22,
0x90,0x9e,0x42,0xee,0xf0,0xa3,0xef,0xf0,0x75,0x22,0x01,0x8e,0x23,0xf5,0x24,0xe4,
0xfd,0x7f,0x0b,0x71,0x44,0xe4,0xfd,0x7f,0x02,0x71,0x44,0x12,0x4f,0xbe,0xe4,0xff,
0x12,0x44,0xf1,0xe4,0xf5,0x26,0x90,0x01,0xc9,0xe5,0x26,0xf0,0x90,0x9e,0x42,0xe0,
0xfc,0xa3,0xe0,0xfd,0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,0x7d,0x01,0x7f,0x60,0x7e,
-0x01,0x02,0x35,0xab,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,
+0x01,0x02,0x30,0x62,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,
0x90,0x9e,0x44,0xef,0xf0,0xd3,0x94,0x07,0x50,0x4f,0xa3,0xe0,0x70,0x1a,0x90,0x9e,
0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
0x90,0x00,0x47,0xe0,0x5f,0xf0,0x80,0x17,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,
@@ -875,24 +1860,24 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x80,0x1a,0xc3,0x74,0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xff,0xe5,0x61,0x7c,0x00,
0x25,0x65,0xfd,0xec,0x35,0x64,0x8d,0x82,0xf5,0x83,0xef,0xf0,0x05,0x61,0x80,0xba,
0xc3,0xe5,0x64,0x94,0x10,0x40,0x02,0xa1,0x93,0x90,0x9e,0x40,0xe0,0x64,0x04,0x60,
-0x02,0xa1,0x93,0xaf,0x67,0xfc,0xfd,0xfe,0x78,0x10,0x12,0x2a,0x6c,0xc0,0x04,0xc0,
-0x05,0xc0,0x06,0xc0,0x07,0xaf,0x66,0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x2a,0x6c,
+0x02,0xa1,0x93,0xaf,0x67,0xfc,0xfd,0xfe,0x78,0x10,0x12,0x24,0xf5,0xc0,0x04,0xc0,
+0x05,0xc0,0x06,0xc0,0x07,0xaf,0x66,0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x24,0xf5,
0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0x12,0x43,0x46,0xc0,0x04,0xc0,0x05,0xc0,
-0x06,0xc0,0x07,0xaf,0x68,0xe4,0xfc,0xfd,0xfe,0x78,0x08,0x12,0x2a,0x6c,0xd0,0x03,
+0x06,0xc0,0x07,0xaf,0x68,0xe4,0xfc,0xfd,0xfe,0x78,0x08,0x12,0x24,0xf5,0xd0,0x03,
0xd0,0x02,0xd0,0x01,0xd0,0x00,0x12,0x43,0x46,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,
-0x07,0xaf,0x69,0xe4,0xfc,0xfd,0xfe,0x12,0x43,0x46,0xa3,0x12,0x2a,0x7f,0x90,0x9e,
-0x41,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0xaf,0x65,0xae,0x64,0x12,0x2f,
-0xd9,0x80,0x30,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,
-0x62,0xaf,0x63,0xfe,0x12,0x37,0x54,0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,
-0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,0x36,0xcb,0x80,0x04,0x7f,
+0x07,0xaf,0x69,0xe4,0xfc,0xfd,0xfe,0x12,0x43,0x46,0xa3,0x12,0x25,0x08,0x90,0x9e,
+0x41,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0xaf,0x65,0xae,0x64,0x12,0x2b,
+0x08,0x80,0x30,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,
+0x62,0xaf,0x63,0xfe,0x12,0x32,0x15,0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,
+0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,0x31,0x82,0x80,0x04,0x7f,
0x00,0x80,0x02,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x6a,0xe4,0x90,0x9e,0x45,
0xf0,0xe5,0x6a,0x14,0xfe,0x90,0x9e,0x45,0xe0,0xff,0xc3,0x9e,0x50,0x0e,0xef,0x04,
-0xfd,0x12,0x34,0xb7,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,
-0x7d,0xff,0x12,0x34,0xb7,0x90,0x9e,0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,
-0x94,0xff,0x50,0x0f,0xe0,0xff,0x04,0xfd,0x12,0x34,0xb7,0x90,0x9e,0x45,0xe0,0x04,
-0xf0,0x80,0xe8,0xad,0x6a,0x7f,0xff,0x02,0x34,0xb7,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
+0xfd,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,
+0x7d,0xff,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,
+0x94,0xff,0x50,0x0f,0xe0,0xff,0x04,0xfd,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe0,0x04,
+0xf0,0x80,0xe8,0xad,0x6a,0x7f,0xff,0x02,0x2d,0x4d,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
0xd0,0xe4,0xf5,0x5b,0x75,0x5c,0x04,0xf5,0x5d,0xf5,0x5f,0xf5,0x60,0x90,0x02,0x09,
-0xe0,0xff,0x12,0x29,0xd9,0xfe,0xef,0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,
+0xe0,0xff,0x12,0x24,0x62,0xfe,0xef,0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,
0x75,0x5a,0x80,0x80,0x05,0xe4,0xf5,0x59,0xf5,0x5a,0xe5,0x5e,0xc3,0x13,0x90,0xfd,
0x10,0xf0,0x74,0x20,0x25,0x5b,0xf5,0x5b,0xad,0x5a,0xe5,0x5b,0x2d,0xff,0x24,0x01,
0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x90,0x9e,0x6d,0xf0,0x74,0x02,0x2f,0xf5,
@@ -902,8 +1887,8 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0x83,0xe0,0xfe,0x74,0x6c,0x2f,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,0xee,0xf0,0x0f,
0xbf,0x08,0xe0,0x91,0x0e,0xef,0x70,0x3f,0x90,0x01,0xc3,0xe0,0x60,0x25,0xc3,0xe5,
0x60,0x94,0xe8,0xe5,0x5f,0x94,0x03,0x40,0x09,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,
-0x80,0x63,0x05,0x60,0xe5,0x60,0x70,0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x37,
-0x54,0x80,0xd5,0x90,0x01,0xc6,0xe0,0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,
+0x80,0x63,0x05,0x60,0xe5,0x60,0x70,0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x32,
+0x15,0x80,0xd5,0x90,0x01,0xc6,0xe0,0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,
0x80,0x43,0x74,0xff,0xf0,0x80,0x3e,0xe5,0x5b,0xb4,0x78,0x23,0xe4,0xf5,0x5b,0x05,
0x5e,0xe5,0x5a,0x64,0x80,0x45,0x59,0x70,0x06,0xf5,0x59,0xf5,0x5a,0x80,0x06,0x75,
0x59,0x00,0x75,0x5a,0x80,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x80,0x06,0x74,
@@ -912,4208 +1897,146 @@ u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x22,0xe4,0xf5,0x25,0x22,0xe4,0x90,0x9e,0xaa,
0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,
0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,0x90,0x9e,0xab,0xe0,0x94,0xe8,0x90,
-0x9e,0xaa,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,0x22,0x7f,0x32,0x7e,0x00,0x12,0x37,
-0x54,0x90,0x9e,0xaa,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x80,0xc6,0x90,0x9e,0x77,
+0x9e,0xaa,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,0x22,0x7f,0x32,0x7e,0x00,0x12,0x32,
+0x15,0x90,0x9e,0xaa,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x80,0xc6,0x90,0x9e,0x77,
0xe0,0x90,0x9e,0x0f,0xf0,0x22,0xef,0x70,0x03,0x02,0x79,0x1e,0x90,0x9e,0x0f,0xe0,
-0x60,0x03,0x02,0x7c,0xe9,0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xab,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,
-0xaf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x9d,0xb3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,
-0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xb7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xbf,0x12,0x43,0x53,
-0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xc3,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x9d,0xc7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,
-0x12,0x2f,0xd9,0x90,0x9d,0xcb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x88,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xcf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd7,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x9d,0xdb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x9d,0xdf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xdc,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xe3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xeb,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9d,
-0xef,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,
-0xd9,0x90,0x9d,0xf3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,
-0x09,0x12,0x2f,0xd9,0x90,0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x04,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,
-0x0f,0xe0,0x64,0x01,0x60,0x02,0x81,0xe9,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,
-0x9d,0xfb,0x12,0x2a,0x7f,0x7f,0x44,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xa7,0x12,
-0x2a,0x7f,0x7f,0x5c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xab,0x12,0x2a,0x7f,0x7f,
-0x6c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xaf,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,
-0x12,0x27,0xde,0x90,0x9d,0xb3,0x12,0x2a,0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x27,0xde,
-0x90,0x9d,0xb7,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbb,
-0x12,0x2a,0x7f,0x7f,0x7c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbf,0x12,0x2a,0x7f,
-0x7f,0x80,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xc3,0x12,0x2a,0x7f,0x7f,0x84,0x7e,
-0x0e,0x12,0x27,0xde,0x90,0x9d,0xc7,0x12,0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x27,
-0xde,0x90,0x9d,0xcb,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,
-0xcf,0x12,0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd3,0x12,0x2a,
-0x7f,0x7f,0xd4,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd7,0x12,0x2a,0x7f,0x7f,0xd8,
-0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xdb,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,
-0x27,0xde,0x90,0x9d,0xdf,0x12,0x2a,0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x27,0xde,0x90,
-0x9d,0xe3,0x12,0x2a,0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe7,0x12,
-0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9d,0xeb,0x12,0x2a,0x7f,0x7f,
-0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9d,0xef,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,
-0x12,0x27,0xde,0x90,0x9d,0xf3,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,
-0x90,0x9d,0xf7,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa4,
-0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,
-0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x8c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x01,0x00,
-0x00,0x7f,0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0xdb,
-0x25,0xa4,0x7f,0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,
-0xdb,0x25,0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,
-0x20,0xdb,0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,
-0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,
-0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,
-0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,
-0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x80,0x85,0x12,0x2a,0x8b,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,
-0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,
-0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd8,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,
-0xdc,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,
-0x7f,0xe0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x24,0xdb,0x25,
-0xa4,0x7f,0xec,0x7e,0x0e,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,
-0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,
-0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,
-0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,
-0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,
-0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,
-0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,
-0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,
-0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,
-0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,
-0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x54,0x0f,
-0xfd,0xec,0x54,0xf0,0xfc,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,
-0x53,0xed,0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,
-0x2f,0xd9,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,
-0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,
-0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,
-0x08,0x12,0x2f,0xd9,0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,
-0x90,0x9e,0x1e,0xf0,0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,
-0x59,0xc2,0xaf,0x90,0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x4a,0xc1,0x7d,
-0x40,0x7f,0x01,0x12,0x36,0xaf,0xe5,0x59,0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,
-0x45,0x12,0x4a,0xc1,0x90,0x04,0xfd,0xe4,0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,
-0x9e,0x24,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,
-0x9e,0x26,0xf0,0x90,0x9e,0x29,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,
-0x9e,0x2e,0xf0,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,
-0x00,0x51,0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x02,0x4a,0xc1,0x90,0x9e,0x15,0xe0,0xc3,
-0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0xc1,0x33,0x90,0x9e,0x15,0xe0,0x64,0x14,0x60,
-0x02,0xc1,0x33,0x90,0x9e,0x24,0xe0,0x70,0x25,0x90,0x9e,0x27,0xe0,0x70,0x1f,0x90,
-0x9e,0x25,0xe0,0x70,0x19,0x90,0x9e,0x28,0xe0,0x70,0x13,0x90,0x9e,0x26,0xe0,0x70,
-0x0d,0x90,0x9e,0x29,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,0x54,0xfe,0xf0,0x90,0x9e,
-0x24,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x25,0xe0,0x90,0x04,0x45,0xf0,0x90,0x9e,
-0x26,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x27,0xe0,0x90,0x04,0x48,
-0xf0,0x90,0x9e,0x28,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,0x29,0xe0,0x90,0x04,0x4a,
-0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x10,0xe0,0x90,0x04,0x4c,0xf0,0x90,0x9e,0x11,0xe0,
-0x90,0x04,0x4d,0xf0,0x90,0x9e,0x12,0xe0,0x90,0x04,0x4e,0xf0,0x90,0x9e,0x13,0xe0,
-0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,
-0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x24,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x34,0xf0,0x90,0x05,0x61,0xe0,0x90,
-0x9e,0x35,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x36,0xf0,0x90,0x05,0x63,0xe0,0x90,
-0x9e,0x37,0xf0,0x90,0x9e,0x2d,0xe0,0xff,0x90,0x9e,0x37,0xe0,0xfe,0xd3,0x9f,0x50,
-0x0b,0x90,0x9e,0x2d,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,0x11,0x90,0x9e,0x1b,0xe0,
-0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x1f,0xe0,0xff,0x12,0x4e,0xd8,0x22,0x90,0x9e,
-0x2e,0xe0,0x64,0x01,0x60,0x08,0x90,0x9e,0x1c,0xe0,0x60,0x02,0xe1,0x55,0x90,0x9e,
-0x10,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x11,0xe0,
-0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x12,0xe0,0xc3,
-0x94,0xff,0x50,0x0a,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x11,0xf0,0x80,0x15,0x90,0x9e,
-0x13,0xe0,0xc3,0x94,0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x12,0xf0,0x90,
-0x9e,0x11,0xf0,0x90,0x9e,0x10,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,
-0x30,0xe2,0x32,0x90,0x9e,0x24,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,
-0x24,0x90,0x9e,0x25,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,
-0x90,0x9e,0x26,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x25,
-0xf0,0x90,0x9e,0x24,0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x27,0xe0,
-0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x28,0xe0,0xc3,0x94,
-0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x29,0xe0,0xc3,0x94,0xff,
-0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x04,
-0xfd,0xe0,0x44,0x01,0xf0,0x22,0x3a,0x01,};
-
-// =================== v79 UMC A Cut COMMON 2011-10-06 =====================
-u8 Rtl8192CUFwUMCACutImgArray[UMCACutImgArrayLength] = {
-0xc1,0x88,0x02,0x00,0x4f,0x00,0x00,0x00,0x0a,0x06,0x18,0x09,0x58,0x3f,0x01,0x00,
-0x61,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x5a,0x45,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x5f,0xfb,0x00,0x00,0x00,0x00,0x00,0xa1,0xdf,0x00,0x00,0x00,
-0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
-0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
-0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
-0x12,0x11,0x10,0x08,0x00,0x10,0x1a,0x19,0x18,0x10,0x00,0x18,0x22,0x21,0x20,0x18,
-0x00,0x20,0x22,0x21,0x20,0x10,0x00,0x20,0x22,0x21,0x20,0x08,0x00,0x20,0x22,0x21,
-0x1c,0x08,0x00,0x20,0x22,0x21,0x14,0x08,0x00,0x20,0x22,0x20,0x18,0x08,0x00,0x20,
-0x31,0x30,0x20,0x10,0x00,0x30,0x31,0x30,0x18,0x00,0x00,0x30,0x31,0x2f,0x10,0x10,
-0x00,0x30,0x31,0x2c,0x10,0x10,0x00,0x30,0x31,0x28,0x10,0x00,0x00,0x30,0x31,0x20,
-0x10,0x00,0x00,0x30,0x31,0x10,0x10,0x00,0x00,0x30,0x04,0x04,0x04,0x05,0x04,0x04,
-0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,
-0x05,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x05,0x05,0x05,0x05,0x06,0x07,0x0a,0x0b,
-0x0d,0x10,0x04,0x05,0x05,0x06,0x06,0x09,0x0c,0x11,0x08,0x08,0x09,0x09,0x0a,0x0c,
-0x10,0x11,0x04,0x04,0x04,0x05,0x04,0x04,0x05,0x07,0x07,0x07,0x08,0x0a,0x04,0x04,
-0x04,0x04,0x06,0x0a,0x0b,0x0d,0x05,0x05,0x07,0x07,0x08,0x0b,0x0d,0x0f,0x04,0x04,
-0x04,0x05,0x07,0x07,0x09,0x09,0x0c,0x0e,0x10,0x12,0x04,0x04,0x05,0x05,0x06,0x0a,
-0x11,0x13,0x09,0x09,0x09,0x09,0x0c,0x0e,0x11,0x13,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x24,0x26,0x2a,0x18,0x1a,0x1d,0x1f,0x21,0x27,0x29,0x2a,0x00,0x00,
-0x00,0x1f,0x23,0x28,0x2a,0x2c,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x18,
-0x00,0x24,0x00,0x30,0x00,0x48,0x00,0x60,0x00,0x90,0x00,0xc0,0x00,0xd8,0x00,0x50,
-0x00,0x78,0x00,0xa0,0x00,0xc8,0x01,0x40,0x01,0x90,0x01,0xe0,0x02,0x30,0x01,0x2c,
-0x01,0x40,0x01,0xe0,0x02,0xd0,0x03,0xe8,0x04,0xb0,0x06,0x40,0x07,0xd0,0x00,0x02,
-0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x0c,0x00,0x12,0x00,0x18,0x00,0x24,0x00,0x30,
-0x00,0x48,0x00,0x60,0x00,0x6c,0x00,0x28,0x00,0x3c,0x00,0x50,0x00,0x64,0x00,0xa0,
-0x00,0xc8,0x00,0xf0,0x01,0x18,0x00,0x64,0x00,0xa0,0x00,0xf0,0x01,0x68,0x01,0xf4,
-0x02,0x58,0x03,0x20,0x03,0xe8,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x04,0x04,
-0x05,0x07,0x04,0x04,0x07,0x0a,0x0a,0x0c,0x0c,0x12,0x05,0x07,0x07,0x08,0x0b,0x12,
-0x24,0x3c,0x01,0x01,0x01,0x01,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x01,0x02,
-0x03,0x04,0x05,0x06,0x07,0x08,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x20,0x1e,
-0x1c,0x18,0x10,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0xbb,0x01,0x0c,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,0x22,0x50,
-0x06,0xe9,0x25,0x82,0xf8,0xe6,0x22,0xbb,0xfe,0x06,0xe9,0x25,0x82,0xf8,0xe2,0x22,
-0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe4,0x93,0x22,0xbb,0x01,0x06,
-0x89,0x82,0x8a,0x83,0xf0,0x22,0x50,0x02,0xf7,0x22,0xbb,0xfe,0x01,0xf3,0x22,0xf8,
-0xbb,0x01,0x0d,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0x22,
-0x50,0x06,0xe9,0x25,0x82,0xc8,0xf6,0x22,0xbb,0xfe,0x05,0xe9,0x25,0x82,0xc8,0xf2,
-0x22,0xc5,0xf0,0xf8,0xa3,0xe0,0x28,0xf0,0xc5,0xf0,0xf8,0xe5,0x82,0x15,0x82,0x70,
-0x02,0x15,0x83,0xe0,0x38,0xf0,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xe0,0xf5,
-0xf0,0xa3,0xe0,0x22,0x50,0x06,0x87,0xf0,0x09,0xe7,0x19,0x22,0xbb,0xfe,0x07,0xe3,
-0xf5,0xf0,0x09,0xe3,0x19,0x22,0x89,0x82,0x8a,0x83,0xe4,0x93,0xf5,0xf0,0x74,0x01,
-0x93,0x22,0xbb,0x01,0x10,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,
-0xf5,0xf0,0xa3,0xe0,0x22,0x50,0x09,0xe9,0x25,0x82,0xf8,0x86,0xf0,0x08,0xe6,0x22,
-0xbb,0xfe,0x0a,0xe9,0x25,0x82,0xf8,0xe2,0xf5,0xf0,0x08,0xe2,0x22,0xe5,0x83,0x2a,
-0xf5,0x83,0xe9,0x93,0xf5,0xf0,0xa3,0xe9,0x93,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,
-0x83,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x06,0xf7,0x09,0xa7,0xf0,0x19,0x22,0xbb,
-0xfe,0x06,0xf3,0xe5,0xf0,0x09,0xf3,0x19,0x22,0xf8,0xbb,0x01,0x11,0xe5,0x82,0x29,
-0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x09,
-0xe9,0x25,0x82,0xc8,0xf6,0x08,0xa6,0xf0,0x22,0xbb,0xfe,0x09,0xe9,0x25,0x82,0xc8,
-0xf2,0xe5,0xf0,0x08,0xf2,0x22,0xef,0x4b,0xff,0xee,0x4a,0xfe,0xed,0x49,0xfd,0xec,
-0x48,0xfc,0x22,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xa4,
-0x25,0x82,0xf5,0x82,0xe5,0xf0,0x35,0x83,0xf5,0x83,0x22,0xe0,0xfb,0xa3,0xe0,0xfa,
-0xa3,0xe0,0xf9,0x22,0xf8,0xe0,0xfb,0xa3,0xa3,0xe0,0xf9,0x25,0xf0,0xf0,0xe5,0x82,
-0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0xfa,0x38,0xf0,0x22,0xeb,0xf0,0xa3,0xea,0xf0,
-0xa3,0xe9,0xf0,0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,
-0x70,0x0d,0xa3,0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,
-0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x50,0xa9,
-0xe4,0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,
-0x80,0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,
-0x44,0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,
-0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x90,0x44,0x3d,0xe4,0x7e,0x01,0x93,0x60,
-0xbc,0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,
-0x0e,0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,
-0xa3,0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,
-0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x66,
-0x00,0x41,0x9e,0xae,0x00,0x41,0x9e,0x4d,0x80,0x41,0x9e,0x4e,0x80,0x41,0x9e,0xb0,
-0x00,0x00,0xf0,0x90,0x9e,0x57,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,
-0x7e,0x01,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x88,0xeb,0xf0,0xa3,0xe0,
-0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x30,0x62,0xd0,0xd0,0x92,0xaf,0x22,
-0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x89,0xf0,
-0x90,0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,
-0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x5c,
-0x14,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,0x94,0x0c,0x50,0x02,0xf1,0x16,0x22,
-0x8f,0x82,0x8e,0x83,0xa3,0xa3,0xa3,0xe4,0xf0,0x22,0xe4,0xf5,0x22,0x7f,0x60,0x7e,
-0x01,0x80,0xed,0x90,0x9e,0x60,0xe0,0xff,0x7d,0x01,0xe1,0x1a,0xb1,0xb1,0xbf,0x01,
-0x0f,0x90,0x9e,0x68,0xe0,0xff,0xe4,0xfd,0xf1,0xfe,0x90,0x04,0x1f,0x74,0x20,0xf0,
-0x22,0x90,0x01,0xca,0xe5,0x25,0xf0,0xef,0x60,0x03,0x12,0x4f,0x2a,0x22,0x22,0x22,
-0x22,0x22,0x00,0x02,0x60,0x8d,0x02,0x60,0x94,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x8b,0x1b,0x8a,0x1c,0x89,0x1d,0x90,0x9e,0x8b,0x71,0x8b,0xab,0x1e,0xaa,0x1f,0xa9,
-0x20,0x90,0x9e,0x8e,0x71,0x8b,0xaf,0x21,0x15,0x21,0xef,0x60,0x1b,0x90,0x9e,0x8e,
-0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x24,0x62,0xff,0x90,0x9e,0x8b,0xe4,0x75,0xf0,
-0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x1b,0xaa,0x1c,0xa9,0x1d,0xd0,0xd0,
-0x92,0xaf,0x22,0x90,0x06,0xa9,0xe0,0xf5,0x50,0x54,0xc0,0x70,0x0d,0x90,0x9e,0x63,
-0xe0,0x54,0xfe,0xf0,0xe0,0x54,0xfd,0xf0,0x91,0xd3,0xe5,0x50,0x30,0xe6,0x17,0x90,
-0x9e,0x63,0xe0,0x44,0x01,0xf0,0x90,0x9e,0x61,0xe0,0x64,0x02,0x60,0x04,0x91,0xdc,
-0x80,0x0b,0x91,0x80,0x80,0x07,0x90,0x9e,0x63,0xe0,0x54,0xfe,0xf0,0xe5,0x50,0x90,
-0x9e,0x63,0x30,0xe7,0x17,0xe0,0x44,0x02,0xf0,0xe4,0x90,0x9e,0x89,0x91,0x52,0x90,
-0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x62,0x74,0x01,0xf0,0x22,0xe0,0x54,0xfd,0xf0,
-0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x04,0x1d,0xe0,0x60,0x1a,0x90,0x05,
-0x22,0xe0,0x54,0x90,0x60,0x07,0x90,0x01,0xc6,0xe0,0x44,0x40,0xf0,0x90,0x01,0xc7,
-0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,0x02,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xc0,
-0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,
-0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,
-0xdf,0xf0,0x74,0x45,0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,0x3c,0xe0,0x55,0x30,0xf5,
-0x34,0xa3,0xe0,0x55,0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,0xf5,0x36,0xa3,0xe0,0x55,
-0x33,0xf5,0x37,0xe5,0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,0x74,0x01,0xf0,0xe5,0x34,
-0x30,0xe1,0x08,0x90,0x01,0x3c,0x74,0x02,0xf0,0xf1,0xbc,0xe5,0x34,0x30,0xe2,0x38,
-0x90,0x01,0x3c,0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe0,0x24,0x90,0x9e,0x89,
-0xe4,0xf0,0x90,0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,
-0x01,0x91,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x80,
-0x07,0x90,0x9e,0x5d,0xe4,0xf0,0x91,0xd3,0xe5,0x34,0x30,0xe3,0x38,0x90,0x01,0x3c,
-0x74,0x08,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,0x90,0x9e,0x89,0xe4,0xf0,0x90,
-0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,0x62,
-0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x80,0x07,0x90,0x9e,
-0x5c,0xe4,0xf0,0x91,0xd3,0xe5,0x34,0x30,0xe4,0x09,0x90,0x01,0x3c,0x74,0x10,0xf0,
-0x12,0x4d,0xe2,0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,0x3c,0x74,0x20,0xf0,0x12,0x4e,
-0x25,0xe5,0x35,0x30,0xe0,0x1a,0x90,0x01,0x3d,0x74,0x01,0xf0,0x90,0x01,0x2f,0xe0,
-0x44,0x7f,0xf0,0x90,0x00,0x83,0xe0,0x90,0x9e,0x60,0xf0,0x12,0x64,0xa1,0x91,0xd3,
-0x74,0xdf,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,
-0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,
-0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x7d,0x01,0x7f,0x0c,0x8f,0x71,0x8d,0x72,0xe5,0x71,
-0x54,0x0f,0xff,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0x6f,0x60,0x72,0xe5,0x71,0x30,0xe2,
-0x2b,0x90,0x9e,0x5e,0xe0,0x20,0xe2,0x05,0x7f,0x01,0x12,0x63,0x92,0x90,0x9e,0x5e,
-0xe0,0x30,0xe3,0x07,0xe5,0x71,0x20,0xe3,0x02,0x80,0x54,0x90,0x9e,0x5e,0xe0,0x20,
-0xe3,0x4c,0xe5,0x71,0x30,0xe3,0x47,0xaf,0x72,0x02,0x63,0x2e,0x90,0x9e,0x5e,0xe0,
-0x54,0x0f,0xff,0xbf,0x0c,0x0d,0xe5,0x71,0x20,0xe3,0x08,0x12,0x5e,0xf1,0xef,0x60,
-0x2d,0xf1,0x9f,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xff,0xbf,0x04,0x0e,0xe5,0x71,0x20,
-0xe2,0x09,0x12,0x62,0x50,0xef,0x60,0x16,0x12,0x48,0xaa,0x90,0x9e,0x5e,0xe0,0x54,
-0x0f,0xff,0xbf,0x02,0x09,0x12,0x62,0xbb,0xef,0x60,0x03,0x12,0x64,0x87,0x22,0x90,
-0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x73,0xb4,0x01,0x05,0x7f,0x01,0x12,0x63,0x4d,
-0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x04,0xf0,0x22,0x90,0x9e,0x62,0xe0,
-0x60,0x0e,0xe4,0xf0,0xa3,0xe0,0x54,0xfd,0xf0,0xe0,0x54,0x07,0x70,0x2b,0x80,0x27,
-0x90,0x9e,0x51,0xe0,0x04,0xf0,0x90,0x9e,0x63,0xe0,0x54,0xef,0xf0,0x90,0x9e,0x56,
-0xe0,0xff,0x90,0x9e,0x51,0xe0,0xd3,0x9f,0x40,0x0d,0xe5,0x73,0xb4,0x01,0x0a,0xa3,
-0xe0,0x70,0x06,0xe0,0x04,0xf0,0x22,0x91,0xd3,0x22,0xe0,0xff,0x7d,0x01,0x90,0x9e,
-0x9c,0xef,0xf0,0xa3,0xed,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x74,0x60,0x04,0xe4,
-0xff,0x11,0x8f,0x90,0x9e,0x9c,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9e,0xe4,0xf0,0xa3,
-0x74,0x80,0xf0,0x90,0x9e,0x9c,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x90,0x04,
-0x25,0xef,0xf0,0x90,0x9e,0x9d,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,0x24,0x0f,0xf5,
-0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9e,0xa3,0xe0,0xff,0xfd,0x24,
-0x08,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,
-0xf5,0x83,0xe0,0x54,0xf7,0xf0,0x90,0x9e,0x9e,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xef,
-0x60,0x0b,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x77,
-0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x77,0x66,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,
-0x90,0x05,0x22,0x74,0xff,0xf0,0x12,0x77,0x1c,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,
-0xfd,0xf0,0x7d,0x02,0x7f,0x03,0x12,0x31,0x9d,0xe5,0x74,0x60,0x04,0x7f,0x01,0x11,
-0x8f,0x11,0xdf,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,0x22,0x7f,
-0x78,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xff,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,
-0x12,0x22,0x65,0x90,0x9e,0x03,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,0x12,0x22,0x65,
-0x90,0x9e,0x07,0x12,0x25,0x08,0x90,0x9e,0x77,0xe0,0x90,0x9d,0xff,0xb4,0x01,0x0d,
-0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,0x80,0x07,0x12,0x43,0x53,
-0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x78,0x7e,0x08,0x12,
-0x2b,0x08,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,0xff,0xec,0x90,0x80,0x96,
-0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,0x9e,0x07,0x12,0x43,0x53,
-0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,0x12,
-0x2b,0x08,0x7f,0x70,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9e,0x0b,0x12,0x25,0x08,0x90,
-0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa0,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x08,
-0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x00,0x00,0x00,0xe4,0xfd,0xff,0x12,0x30,0x2c,
-0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x00,0x00,
-0x00,0xe4,0xfd,0x7f,0x01,0x12,0x30,0x2c,0x90,0x00,0x11,0xe0,0x54,0xf6,0xf0,0x80,
-0x08,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x7f,0x10,0xdf,0xfe,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0xad,0xed,0xf0,0x90,0x9e,0xac,0xef,0xf0,0xd3,0x94,0x07,0x50,0x63,0xe0,
-0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,
-0x47,0xe0,0x5f,0xf0,0x31,0xb9,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,
-0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x46,0xe0,0x4f,0xf0,0x31,0xb9,0x90,
-0x9e,0xad,0xe0,0x60,0x16,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x45,0x80,0x66,0x90,0x9e,0xac,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x45,
-0x80,0x6b,0x90,0x9e,0xac,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,
-0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0x31,0xb1,0x90,0x9e,0xac,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x43,0xe0,
-0x4f,0xf0,0x31,0xb9,0x90,0x9e,0xad,0xe0,0x60,0x1b,0x90,0x9e,0xac,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,
-0x42,0xe0,0x4f,0x80,0x1a,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x42,0xe0,0x5f,0xf0,
-0x31,0xb9,0xd0,0xd0,0x92,0xaf,0x22,0xf0,0x90,0x00,0x45,0xe0,0x54,0xfe,0xfd,0x7f,
-0x45,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,0x00,0xed,0xf0,0x31,
-0xb9,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,0x66,0x24,0x02,0x60,
-0x02,0x61,0x7d,0x90,0x9e,0x1a,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,
-0x7f,0x48,0x51,0xc1,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,0x47,0x51,0xc1,0x90,
-0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,0x9e,0x1a,0xf0,0x90,
-0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,
-0x2b,0x08,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x45,
-0xe0,0x54,0xef,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,
-0x46,0x80,0x38,0x90,0x9e,0x1a,0x74,0x01,0xf0,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,
-0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x90,0x00,0x45,0xe0,
-0x44,0x20,0xfd,0x7f,0x45,0x51,0xc1,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,
-0x51,0xc1,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x51,0xc1,0x22,0x90,0x00,
-0x02,0x12,0x42,0x20,0x90,0x9e,0x1c,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0x25,0xe0,
-0x25,0xe0,0x90,0x9e,0x1b,0xf0,0x12,0x24,0x62,0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1f,
-0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x2b,
-0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x2d,
-0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x1b,0xe0,0xff,
-0xd1,0xd8,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,0x1c,0xe0,0x70,0x02,
-0x81,0x84,0x90,0x9e,0x1b,0xe0,0x70,0x02,0x81,0x84,0x90,0x9e,0x1f,0xe0,0x70,0x02,
-0x81,0x84,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x2e,0x74,
-0x01,0xf0,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x51,0xb8,0x90,0x00,0x46,0xe0,
-0x44,0x01,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,
-0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,
-0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,
-0x45,0x51,0xc1,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,
-0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,
-0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,
-0x3f,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,0xe4,0xff,0x12,
-0x31,0xb7,0x80,0x2b,0x90,0x9e,0x1c,0xe0,0x70,0x2d,0x90,0x9e,0x2e,0x51,0xb7,0x90,
-0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x05,0x22,0xe4,0xf0,0xa2,
-0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,0x31,0x49,0x90,
-0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x22,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x90,0x00,
-0x02,0x12,0x42,0x20,0x90,0x9e,0x1d,0xf0,0xe0,0x30,0xe0,0x4b,0x90,0x9e,0x14,0x74,
-0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0x16,0x12,0x25,0x08,0xab,
-0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xe4,0xfc,0xfd,0xfe,
-0x78,0x1a,0x12,0x24,0xf5,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,0x16,
-0x12,0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x25,0x08,
-0x90,0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x14,0xf0,0x7f,0x80,0x7e,0x08,
-0x12,0x22,0x65,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,0x25,
-0x08,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,
-0x08,0x12,0x2b,0x08,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,0x51,
-0xc1,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x51,0xc1,0x90,0x00,0x46,0xe0,
-0x44,0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,0x47,0x51,0xc1,0x90,
-0x00,0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x51,0xc1,0x90,0x00,0x46,0xe0,0x54,0xef,
-0xfd,0x7f,0x46,0x51,0xc1,0xe4,0x90,0x9e,0x1a,0xf0,0x22,0x90,0x01,0x3c,0x74,0xff,
-0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xfd,
-0x7f,0x54,0x51,0xc1,0x7d,0xff,0x7f,0x55,0x51,0xc1,0x7d,0xff,0x7f,0x56,0x51,0xc1,
-0x7d,0xff,0x7f,0x57,0x41,0xc1,0x90,0x01,0x30,0xe4,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,
-0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xfd,0x7f,0x50,0x51,0xc1,
-0xe4,0xfd,0x7f,0x51,0x51,0xc1,0xe4,0xfd,0x7f,0x52,0x51,0xc1,0xe4,0xfd,0x7f,0x53,
-0x41,0xc1,0xe5,0x22,0x64,0x01,0x70,0x3c,0xf1,0xbe,0xbf,0x01,0x05,0x7f,0x01,0x12,
-0x44,0xf1,0x90,0x00,0x46,0xe0,0x44,0x04,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x00,0x44,
-0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x51,0xc1,0x90,0x00,0x46,0xe0,0x54,0xfb,0xfd,0x7f,
-0x46,0x51,0xc1,0x7f,0x02,0xf1,0xea,0x8f,0x26,0x90,0x01,0xc9,0xe5,0x26,0xf0,0xb4,
-0x01,0x02,0xf1,0x2a,0x22,0x90,0x9e,0x1c,0xe0,0x64,0x01,0x60,0x02,0xc1,0xd7,0x90,
-0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x51,0xc1,0x90,0x9e,0x2e,0xe0,0x70,0x31,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,
-0xf0,0x90,0x9e,0x1b,0xe0,0xff,0xd1,0xd8,0x90,0x9e,0x2e,0x74,0x01,0x51,0xb7,0x80,
-0x3f,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x70,0x37,0x90,0x9e,0x1f,0xe0,0xff,0xd1,0xd8,
-0xe4,0x90,0x9e,0x2e,0xf0,0x90,0x00,0x45,0xe0,0x44,0x01,0xfd,0x7f,0x45,0x51,0xc1,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,
-0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,0x84,0xf0,0x90,
-0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,0x86,0xf0,0x90,
-0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,
-0x90,0x05,0x61,0xe0,0x90,0x9e,0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,
-0x90,0x05,0x63,0xe0,0x90,0x9e,0x2d,0xf0,0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x2b,
-0xe0,0xd3,0x9e,0x40,0x1e,0xe0,0x2f,0xf0,0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,
-0xe0,0xb4,0xff,0x03,0xe4,0xf0,0x22,0x90,0x9e,0x2d,0x80,0x03,0x90,0x9e,0x2c,0xe0,
-0x04,0xf0,0x22,0x90,0x9e,0x2b,0xe0,0x2f,0xf0,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,
-0xb1,0xf0,0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x51,0xc1,0x90,0x9e,0xb1,
-0xe0,0x44,0xb0,0xfd,0x7f,0x49,0x41,0xc1,0x8e,0x59,0x8f,0x5a,0x8b,0x5b,0x8a,0x5c,
-0x89,0x5d,0xe4,0x90,0x9e,0x34,0xf0,0xef,0x90,0x00,0x31,0xf0,0x31,0xb9,0xe5,0x59,
-0x54,0x03,0xff,0x90,0x00,0x32,0xe0,0x54,0xfc,0x4f,0xf0,0x31,0xb9,0x90,0x00,0x33,
-0xe0,0x54,0x7f,0xf0,0x31,0xb9,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x34,
-0xe0,0xc3,0x94,0x64,0x50,0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x34,0xe0,0xc3,
-0x94,0x64,0x50,0x10,0x90,0x00,0x30,0xe0,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x12,0x42,
-0x4d,0x7f,0x01,0x22,0x7f,0x00,0x22,0x12,0x45,0xb1,0xbf,0x01,0x10,0x90,0x02,0x09,
-0xe0,0xff,0x7d,0x01,0x12,0x47,0xfe,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x7f,0x0b,
-0xf1,0xea,0xef,0x65,0x25,0x60,0x10,0xe5,0x25,0xb4,0x01,0x05,0xe4,0xf5,0x25,0x80,
-0x03,0x75,0x25,0x01,0x7f,0x01,0x22,0x7f,0x00,0x22,0xe4,0x90,0x9e,0x74,0xf0,0x90,
-0x00,0x80,0xe0,0x44,0x80,0xfd,0x7f,0x80,0x41,0xc1,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
-0xd0,0x90,0x9e,0xb2,0xef,0xf0,0xd3,0x94,0x07,0x50,0x47,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0xe0,0x5f,0xf0,
-0x12,0x49,0xb9,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,
-0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,0xfb,0xe4,0xfe,
-0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,
-0x80,0x44,0x90,0x9e,0xb2,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,
-0x80,0x02,0xc3,0x33,0xd8,0xfc,0x12,0x49,0xb1,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,
-0x7e,0x00,0xa8,0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,
-0x00,0x42,0xe0,0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,
-0x13,0xce,0x13,0xd8,0xf8,0xff,0xd0,0xd0,0x92,0xaf,0x22,0x75,0x28,0x33,0xe4,0xf5,
-0x29,0x75,0x2a,0x03,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,
-0xa3,0xe5,0x2a,0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0xe4,0x90,0x9e,0x31,0xf0,0xa3,0xf0,
-0x75,0x8e,0x02,0x12,0x4f,0xda,0x12,0x5f,0xa9,0x12,0x5f,0xbc,0xe4,0xf5,0x12,0x12,
-0x6f,0xa1,0x12,0x77,0x5d,0x12,0x60,0x9b,0x12,0x2e,0x01,0x12,0x77,0x18,0x11,0x8b,
-0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,
-0xf0,0xa3,0xe4,0xf0,0x12,0x5f,0xf4,0x12,0x5f,0x91,0x12,0x44,0xfe,0x12,0x7d,0x1d,
-0x90,0x9e,0x33,0xe5,0xd9,0xf0,0x12,0x4d,0x8b,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,
-0x40,0xf0,0x12,0x49,0xb9,0x75,0xe8,0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x01,0xbe,
-0xe0,0x04,0xf0,0x90,0x01,0xc0,0xe0,0x04,0xf0,0x90,0x9e,0x31,0xe0,0x64,0x01,0xf0,
-0x24,0xa9,0x90,0x01,0xc4,0xf0,0x74,0x50,0xa3,0xf0,0xe5,0x12,0x30,0xe4,0x09,0xc2,
-0xaf,0x53,0x12,0xef,0xd2,0xaf,0x31,0x8e,0xe5,0x12,0x30,0xe6,0x17,0xc2,0xaf,0x53,
-0x12,0xbf,0xd2,0xaf,0x12,0x69,0x51,0x90,0x9e,0x1e,0xe0,0xff,0x60,0x03,0xb4,0x01,
-0x03,0x12,0x7d,0x7b,0x90,0x9e,0x1e,0xe0,0x70,0x03,0x12,0x7e,0x7e,0x31,0x61,0x80,
-0xb8,0x90,0x06,0x34,0xe0,0x60,0x26,0x14,0x70,0x1b,0x7b,0x01,0x7a,0x06,0x79,0x35,
-0x7f,0xf9,0x7e,0x01,0x12,0x4f,0x48,0xbf,0x01,0x09,0x90,0x06,0x35,0xe0,0x54,0x0f,
-0xf0,0x80,0x05,0x80,0x00,0x02,0x77,0x0a,0xe4,0x90,0x06,0x34,0xf0,0x22,0x90,0x01,
-0xcc,0xe0,0x54,0x0f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfd,0x70,0x02,0x41,
-0xcf,0x90,0x9e,0xae,0xe0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,
-0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xef,0x5d,0x70,0x02,0x41,0xc8,0x90,0x9e,0xae,
-0xe0,0x75,0xf0,0x04,0x90,0x01,0xd0,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x35,0xf0,0x75,
-0x1e,0x01,0x75,0x1f,0x9e,0x75,0x20,0x35,0x75,0x21,0x01,0x7b,0x01,0x7a,0x9e,0x79,
-0x36,0x12,0x45,0x09,0x90,0x9e,0x36,0xe0,0xff,0xc4,0x13,0x13,0x13,0x54,0x01,0x90,
-0x9e,0xae,0x30,0xe0,0x59,0xe0,0x75,0xf0,0x02,0x90,0x00,0x88,0x12,0x43,0x5f,0xe0,
-0x90,0x9e,0x37,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x02,0x90,0x00,0x89,0x12,0x43,
-0x5f,0xe0,0x90,0x9e,0x38,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd1,
-0x12,0x43,0x5f,0xe0,0x90,0x9e,0x39,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,
-0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,
-0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3b,0xf0,0x80,0x33,0xe0,0x75,
-0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0xae,
-0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x38,0xf0,0x90,
-0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x39,
-0xf0,0xef,0x54,0x7f,0xff,0x7b,0x01,0x7a,0x9e,0x79,0x37,0x51,0xd0,0x90,0x9e,0x34,
-0xe0,0xff,0x90,0x9e,0xae,0xe0,0xfe,0x74,0x01,0xa8,0x06,0x08,0x80,0x02,0xc3,0x33,
-0xd8,0xfc,0xf4,0x5f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0xae,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0x90,0x01,0xcc,0xf0,0x90,0x9e,0xae,0xe0,
-0x04,0xf0,0xe0,0x54,0x03,0xf0,0x21,0x98,0x90,0x01,0xc6,0xe0,0x44,0x02,0xf0,0x22,
-0x90,0x9e,0x3c,0x12,0x43,0x8b,0xef,0x12,0x43,0x94,0x53,0x0b,0x01,0x53,0x14,0x02,
-0x53,0x2f,0x03,0x53,0x38,0x05,0x53,0x41,0x06,0x53,0x8f,0x07,0x53,0x49,0x09,0x53,
-0x52,0x0c,0x53,0x5b,0x0d,0x53,0x64,0x0e,0x53,0x6d,0x1b,0x53,0x76,0x1c,0x53,0x7f,
-0x2c,0x53,0x1d,0x2d,0x53,0x26,0x2e,0x00,0x00,0x53,0x88,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x61,0x9d,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0xc4,0x90,0x9e,0x3c,
-0x12,0x43,0x6b,0x02,0x71,0xca,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x72,0x12,0x90,
-0x9e,0x3c,0x12,0x43,0x6b,0x02,0x72,0x40,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,
-0x74,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x80,0x47,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x72,0x88,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x4b,0x7e,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x7c,0xea,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x4c,0xb8,0x90,0x9e,0x3c,
-0x12,0x43,0x6b,0x02,0x71,0xbc,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0xa3,0x90,
-0x9e,0x3c,0x12,0x43,0x6b,0x02,0x75,0xea,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,0x22,
-0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,0x54,
-0x07,0xfd,0xaf,0x06,0x90,0x9e,0x3f,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,0x8b,
-0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,0x54,
-0x0f,0x90,0x9e,0x44,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,0x13,
-0x54,0x03,0x90,0x9e,0x45,0xf0,0x90,0x9e,0x3f,0xe0,0xff,0x75,0xf0,0x09,0x90,0x96,
-0x46,0x12,0x43,0x5f,0xad,0x82,0xac,0x83,0x90,0x9e,0x46,0xec,0xf0,0xa3,0xed,0xf0,
-0xef,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,0xa3,
-0x12,0x43,0x8b,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,
-0x0f,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x41,0x12,
-0x43,0x6b,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0x90,
-0x00,0x01,0xef,0x12,0x42,0x5f,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,
-0x42,0x20,0xff,0x90,0x9e,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,
-0xf0,0x12,0x24,0x62,0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,0x90,
-0x9e,0x3f,0xe0,0xff,0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,
-0x9e,0x40,0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,
-0x75,0xf0,0x09,0xef,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x45,
-0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,0x59,
-0xef,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x5b,0x8f,0x5c,
-0xe5,0x59,0x75,0xf0,0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x5d,0x01,
-0xf5,0x5e,0x89,0x5f,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x46,0x12,0x43,0x5f,0xaf,
-0x82,0x85,0x83,0x60,0x8f,0x61,0xe5,0x59,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,
-0x96,0x35,0xf0,0x75,0x62,0x01,0xf5,0x63,0x89,0x64,0x74,0x82,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x95,0xf5,0x83,0xe0,0x12,0x43,0x94,0x55,0x1e,0x00,0x55,0x33,0x01,0x55,
-0x48,0x02,0x55,0x5d,0x03,0x55,0x86,0x04,0x55,0x9b,0x05,0x55,0xb0,0x06,0x55,0xd6,
-0x0c,0x56,0x03,0x0d,0x56,0x30,0x0e,0x56,0x5d,0x0f,0x00,0x00,0x56,0x91,0xe5,0x59,
-0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,
-0x15,0x80,0x3c,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0x74,0xf0,0xf0,0xa3,0x74,0x10,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,
-0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,
-0xa3,0x74,0x8f,0xf0,0xc1,0x91,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,
-0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,
-0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,
-0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,
-0x74,0x0d,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe4,0xf0,0xa3,0xf0,0xc1,0x91,0x90,0x04,0x47,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,
-0x12,0x42,0x4d,0x90,0x04,0x46,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,
-0x12,0x42,0x5f,0x90,0x04,0x45,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,
-0x44,0xc1,0x88,0x90,0x04,0x4b,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,
-0x90,0x04,0x4a,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,
-0x90,0x04,0x49,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,
-0x90,0x04,0x4f,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x4e,
-0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x4d,
-0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,
-0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x5d,
-0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x5c,
-0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,
-0xf0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x24,0x62,
-0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x24,0x62,0x5f,0xd0,0x01,0xd0,0x02,0xd0,
-0x03,0x12,0x42,0x4d,0xab,0x5d,0xe5,0x5f,0x24,0x01,0xf9,0xe4,0x35,0x5e,0xfa,0xc0,
-0x03,0xc0,0x02,0xc0,0x01,0x12,0x24,0x62,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x90,
-0x00,0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,
-0x5c,0x82,0x85,0x5b,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,
-0x83,0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x5c,0x82,0x85,0x5b,0x83,
-0xa3,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,0xa3,0xe0,0xfe,
-0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,0x5a,0x0b,0x74,0x01,
-0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,
-0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,
-0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x5d,0x15,0x5a,0xe5,0x5a,0xc3,
-0x94,0x00,0x50,0xca,0x80,0x56,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,
-0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x5a,0x0f,0x74,0x01,0x7e,
-0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,
-0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x60,0x08,0x90,0x9e,0x4b,0xe5,0x5a,0xf0,0x80,0x10,0x15,0x5a,0xe5,0x5a,
-0xc3,0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x4b,0xf0,0xe5,0x59,0x25,0xe0,
-0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,
-0xe4,0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,
-0xce,0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x4c,0xe5,0x5a,0xf0,
-0x80,0x5b,0x05,0x5a,0xe5,0x5a,0xb4,0x10,0xca,0x80,0x52,0xe5,0x59,0x25,0xe0,0x24,
-0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x39,0xe4,
-0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x0a,0x05,
-0x5a,0xe5,0x5a,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x4c,0xf0,0x90,0x9e,0x4b,
-0xe0,0xff,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xef,0xf0,0x90,
-0x9e,0x4c,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x49,0x12,0x43,0x5f,0xee,
-0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,
-0x05,0x90,0x9e,0x4b,0x11,0xe0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,
-0x83,0xe0,0xff,0x90,0x9e,0x4c,0xe0,0xfe,0xef,0xc3,0x9e,0x50,0x02,0x11,0xe0,0x90,
-0x9e,0x4b,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,0x74,0x03,0xf0,0x22,
-0xef,0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,0x22,0xef,0xd3,0x94,
-0x03,0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,0x96,0x43,0xf0,0x22,
-0xe0,0xfd,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xed,0xf0,0xaf,
-0x59,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,0x50,0x0e,0x74,0x84,
-0x2f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,0x74,0xa6,0x2f,0xf5,
-0x82,0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x78,0xef,0xf0,0x24,0xa6,0xf5,
-0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x79,0xf0,0x7b,0x01,0x7a,0x9e,0x79,
-0x78,0x7d,0x02,0x31,0x3a,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
-0xd0,0x90,0x9e,0x97,0x12,0x43,0x8b,0x90,0x9e,0x9a,0xe0,0x54,0xf0,0x44,0x06,0xff,
-0xf0,0xed,0x54,0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,0xf0,0x90,0x9e,0x97,
-0x12,0x43,0x6b,0x90,0x9e,0x94,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x9a,0xd1,
-0x14,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x50,0x8d,0x51,0xe5,0x51,0x54,0x1f,0xf5,0x56,
-0x74,0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xf5,0x54,0x90,0x04,0xfd,
-0xe0,0xb4,0x01,0x05,0x75,0x57,0x03,0x80,0x03,0x75,0x57,0x01,0xeb,0xc3,0x95,0x57,
-0x40,0x04,0xaf,0x50,0x80,0x33,0xe5,0x54,0x25,0x53,0xf5,0x55,0xe5,0x56,0x90,0x41,
-0xd6,0x93,0xff,0xe5,0x55,0xd3,0x9f,0x74,0x01,0x40,0x11,0x25,0x50,0xf5,0x82,0xe4,
-0x34,0x94,0xf5,0x83,0xe4,0xf0,0xad,0x51,0xaf,0x50,0x01,0xf1,0x25,0x50,0xf5,0x82,
-0xe4,0x34,0x94,0xf5,0x83,0xe5,0x55,0xf0,0x22,0xad,0x07,0x75,0xf0,0x09,0xed,0x90,
-0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
-0x83,0xe0,0x54,0x1f,0xf5,0x58,0xd3,0x9f,0x40,0x02,0x8f,0x58,0xe5,0x58,0x25,0xe0,
-0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,
-0xe5,0x58,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,
-0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,
-0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x05,0xad,0x58,
-0x11,0xf1,0xaf,0x58,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,
-0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,
-0xc0,0x07,0x90,0x01,0xc4,0x74,0x45,0xf0,0x74,0x5a,0xa3,0xf0,0x90,0x01,0x34,0xe0,
-0x55,0x28,0xf5,0x2c,0x90,0x01,0x36,0xe0,0x55,0x2a,0xf5,0x2e,0xa3,0xe0,0x55,0x2b,
-0xf5,0x2f,0xe5,0x2c,0x20,0xe0,0x02,0x61,0xe1,0x90,0x01,0x34,0x74,0x01,0xf0,0x85,
-0xd1,0x08,0x85,0xd2,0x09,0x85,0xd3,0x0a,0x85,0xd4,0x0b,0x85,0xd5,0x0c,0x85,0xd6,
-0x0d,0x85,0xd7,0x0e,0x85,0xd9,0x0f,0xe5,0x0f,0x54,0x40,0xc3,0x13,0xff,0xe5,0x0e,
-0x54,0x20,0x6f,0x70,0x02,0x61,0x93,0xe5,0x0f,0x30,0xe5,0x02,0x61,0x93,0xe5,0x0d,
-0x54,0x3f,0xf5,0x4d,0xe5,0x08,0x54,0x3f,0xf5,0x4e,0xe5,0x0c,0x54,0x1f,0xff,0xe5,
-0x4d,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
-0x42,0x81,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
-0x34,0x93,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4e,0xd3,0x94,0x04,0x40,
-0x03,0x75,0x4e,0x04,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,0x12,0x43,0x5f,0x75,
-0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,0xe5,0x0e,0x54,0x1f,
-0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,0x12,0x43,0x5f,
-0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,0xf0,0xe5,0x0f,0x20,
-0xe6,0x23,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
-0x34,0x98,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,0x30,0xe7,0x34,0xaf,
-0x4d,0x31,0xd9,0x80,0x2e,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0x44,
-0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,0x30,
-0xe7,0x11,0xe5,0x0a,0x54,0x7f,0xfd,0xe5,0x0e,0x54,0x1f,0xf5,0x53,0xab,0x4e,0xaf,
-0x4d,0x31,0x76,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x45,0x90,0x9e,0x61,0xe0,
-0x60,0x37,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x04,0xf0,0xd1,0x05,0xef,
-0x64,0x01,0x70,0x2d,0x90,0x9e,0x55,0xe0,0xf5,0x44,0x75,0x45,0x00,0xe4,0xfb,0xfd,
-0x7f,0x58,0x7e,0x01,0x12,0x30,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,
-0x74,0x01,0xf0,0x90,0x9e,0x5d,0xf0,0x80,0x08,0xd1,0x05,0xbf,0x01,0x03,0x12,0x44,
-0xd3,0xe5,0x2c,0x30,0xe1,0x20,0x90,0x01,0x34,0x74,0x02,0xf0,0x85,0xd1,0x13,0x85,
-0xd2,0x14,0x85,0xd3,0x15,0x85,0xd4,0x16,0x85,0xd5,0x17,0x85,0xd6,0x18,0x85,0xd7,
-0x19,0x85,0xd9,0x1a,0xd1,0x9c,0xe5,0x2c,0x30,0xe3,0x06,0x90,0x01,0x34,0x74,0x08,
-0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,0x74,0x10,0xf0,0x43,0x12,0x10,0xe5,
-0x2c,0x30,0xe5,0x26,0x90,0x01,0xcf,0xe0,0x30,0xe5,0x1f,0xe0,0x54,0xdf,0xf0,0x90,
-0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,0xe8,0x00,0x12,0x4d,0xb6,0x90,0x00,
-0x03,0xe0,0x54,0xfb,0xf0,0x12,0x49,0xb9,0x80,0xfe,0xe5,0x2c,0x30,0xe6,0x06,0x90,
-0x01,0x34,0x74,0x40,0xf0,0xe5,0x2e,0x30,0xe1,0x3c,0x90,0x01,0x36,0x74,0x02,0xf0,
-0x43,0x12,0x40,0x90,0x01,0x02,0xe0,0x54,0x03,0x64,0x01,0x70,0x29,0x90,0x01,0x37,
-0xe0,0x30,0xe0,0x0a,0x74,0x01,0xf0,0x90,0x9e,0x66,0xe4,0xf0,0x80,0x18,0x90,0x9e,
-0x66,0xe0,0x04,0xf0,0xe0,0xc3,0x94,0x0a,0x40,0x0c,0xe4,0xf0,0x90,0x04,0x19,0xe0,
-0x30,0xe0,0x03,0x12,0x4f,0xa7,0xe5,0x2e,0x30,0xe0,0x12,0x90,0x9e,0x76,0x74,0x01,
-0xf0,0x90,0x01,0x36,0xf0,0x12,0x64,0xfe,0x90,0x9e,0x76,0xe4,0xf0,0xe5,0x2e,0x30,
-0xe2,0x78,0x90,0x01,0x36,0x74,0x04,0xf0,0x90,0x01,0xbd,0xe0,0x04,0xf0,0xe5,0x73,
-0x64,0x01,0x70,0x66,0xe5,0x74,0x60,0x62,0xe5,0x74,0x64,0x02,0x60,0x06,0xe5,0x74,
-0x64,0x05,0x70,0x27,0x90,0x06,0xab,0xe0,0x90,0x9e,0x50,0xf0,0x90,0x06,0xaa,0xe0,
-0x90,0x9e,0x5f,0xf0,0x90,0x9e,0x50,0xe0,0x70,0x07,0x90,0x9e,0x5f,0xe0,0xff,0x80,
-0x05,0x90,0x9e,0x50,0xe0,0xff,0x90,0x9e,0x50,0xef,0xf0,0x90,0x9e,0x52,0xe0,0x60,
-0x03,0xe0,0x14,0xf0,0x90,0x9e,0x51,0xe4,0xf0,0x90,0x01,0x57,0xf0,0x90,0x01,0x3c,
-0x74,0x02,0xf0,0x90,0x9e,0x63,0xe0,0x54,0xfd,0xf0,0xe0,0x54,0xef,0xf0,0xe5,0x74,
-0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,0x45,0x53,0xe5,0x2e,0x30,0xe3,0x28,0x90,
-0x01,0x36,0x74,0x08,0xf0,0xe5,0x73,0x64,0x01,0x70,0x1c,0xe5,0x74,0x60,0x18,0x90,
-0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x89,0xe4,0x12,0x44,
-0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,0x2f,0x90,0x01,0x36,0x74,
-0x10,0xf0,0xe5,0x73,0x64,0x01,0x70,0x23,0xe5,0x74,0x60,0x1f,0x90,0x01,0x57,0xe4,
-0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x62,0xe4,0xf0,0x90,0x9e,0x63,0xe0,
-0x54,0xfd,0xf0,0xe0,0x54,0x07,0x70,0x03,0x12,0x44,0xd3,0xe5,0x2e,0x30,0xe5,0x1f,
-0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x73,0xb4,0x01,0x14,0xe5,0x74,0x60,0x10,0x90,
-0x9e,0x61,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xdc,0x80,0x03,0x12,0x44,0x80,0xe5,
-0x2e,0x30,0xe6,0x1e,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x73,0xb4,0x01,0x13,0xe5,
-0x74,0x60,0x0f,0x90,0x9e,0x63,0xe0,0x54,0xfe,0xf0,0xe0,0x54,0x07,0x70,0x03,0x12,
-0x44,0xd3,0xe5,0x2f,0x30,0xe1,0x08,0x90,0x01,0x37,0x74,0x02,0xf0,0xd1,0xbd,0x74,
-0x45,0x04,0x90,0x01,0xc4,0xf0,0x74,0x5a,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,
-0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,
-0xd0,0xf0,0xd0,0xe0,0x32,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,
-0x02,0x7f,0x00,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x91,0x12,0x43,
-0x8b,0x90,0x9e,0x75,0xe0,0x64,0x02,0x60,0x6e,0x90,0x9e,0x75,0xe0,0x64,0x01,0x70,
-0x66,0x90,0x9e,0xb0,0xe0,0xff,0x04,0xf0,0x90,0x9e,0x91,0x12,0x43,0x6b,0x90,0x00,
-0x01,0xef,0x12,0x42,0x5f,0x7f,0xaf,0x7e,0x01,0xf1,0x3b,0xef,0x60,0x49,0x90,0x9e,
-0x91,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x75,0x21,0x02,0x7b,0x01,0x7a,
-0x01,0x79,0xa0,0x12,0x45,0x09,0x90,0x9e,0x94,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,
-0x89,0x20,0x90,0x9e,0x91,0x12,0x43,0x6b,0x12,0x24,0x62,0xff,0xc4,0x54,0x0f,0xf5,
-0x21,0x7b,0x01,0x7a,0x01,0x79,0xa2,0x12,0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,
-0x90,0x01,0xcb,0xe0,0x64,0x80,0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,0x2f,0xe0,
-0x54,0xf0,0x44,0x03,0xf0,0x54,0x0f,0x44,0x80,0xf0,0x7b,0x00,0x7a,0x00,0x79,0x13,
-0x90,0x9e,0x94,0x12,0x43,0x8b,0x0b,0x7a,0x9e,0x79,0x2f,0xc1,0x14,0x7d,0x02,0x7f,
-0x03,0x12,0x31,0x2c,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x23,0x90,0x9e,0x61,
-0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0f,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,
-0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x1a,0xe4,0xff,0x12,0x48,0x8f,
-0x22,0xd1,0x05,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x32,
-0x90,0x9e,0x5d,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x24,0x90,0x9e,
-0x5c,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x16,0x90,0x9e,0x60,0xe0,
-0x54,0x0f,0xd3,0x94,0x04,0x40,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x03,0x7f,
-0x01,0x22,0x90,0x01,0xb8,0x74,0x08,0xf0,0x7f,0x00,0x22,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x90,0x9e,0xa0,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,
-0x9e,0xa0,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,
-0xa3,0xe0,0x94,0xe8,0x90,0x9e,0xa2,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,
-0x44,0x10,0xf0,0x7f,0x00,0x80,0x15,0x90,0x9e,0xa2,0xe4,0x75,0xf0,0x01,0x12,0x42,
-0x81,0x7f,0x0a,0x7e,0x00,0x12,0x32,0x15,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,
-0x22,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,0x01,0x38,0xe5,0x30,0xf0,
-0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0x90,0x00,0x02,0xe0,0x54,0xe0,0x90,
-0x9e,0x75,0x60,0x04,0x74,0x01,0xf0,0x22,0x74,0x02,0xf0,0x22,0x90,0x00,0xf3,0xe0,
-0x30,0xe3,0x08,0x90,0x9e,0x77,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9e,0x77,0xf0,
-0x90,0x9e,0x77,0xe0,0xb4,0x01,0x12,0x90,0x00,0xf2,0xe0,0x30,0xe7,0x0b,0x90,0x9e,
-0x64,0x74,0xfd,0xf0,0xa3,0x74,0x33,0xf0,0x22,0x90,0x9e,0x64,0x74,0xfd,0xf0,0xa3,
-0x74,0x2f,0xf0,0x22,0x90,0x01,0x64,0x74,0xa0,0xf0,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,
-0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,
-0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0xfb,0xf0,0x74,0x5f,
-0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,0x90,0x00,0x55,0xe0,0x5f,0xf5,
-0x3d,0xe5,0x3d,0x30,0xe6,0x18,0x74,0x40,0xf0,0x90,0x9e,0x1d,0xe0,0x54,0x03,0xff,
-0xbf,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0x60,0x05,0x7f,0x01,0x12,0x4a,0xd6,0xe5,0x3d,
-0x30,0xe7,0x15,0x90,0x00,0x55,0x74,0x80,0xf0,0x90,0x9e,0x1d,0xe0,0x54,0x03,0xff,
-0xbf,0x03,0x05,0x7f,0x02,0x12,0x4a,0xd6,0x90,0x01,0xc4,0x74,0xfb,0xf0,0x74,0x5f,
-0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,
-0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x8f,0x6b,0x8c,
-0x6c,0x8d,0x6d,0x22,0x8f,0x6e,0x8c,0x6f,0x8d,0x70,0x22,0xe4,0xf5,0x73,0x90,0x9e,
-0x63,0xf0,0xf5,0x74,0x90,0x9e,0x60,0x74,0x0c,0xf0,0x90,0x9e,0x5e,0xf0,0xe4,0x90,
-0x9e,0x61,0xf0,0x90,0x9e,0x5d,0xf0,0x90,0x9e,0x5c,0xf0,0x90,0x9e,0x5f,0x04,0xf0,
-0x90,0x9e,0x50,0xf0,0xe4,0x90,0x9e,0x62,0xf0,0x90,0x9e,0x52,0xf0,0x90,0x9e,0x5a,
-0x74,0x07,0xf0,0xe4,0x90,0x9e,0x51,0xf0,0x90,0x9e,0x58,0xf0,0xa3,0x74,0x02,0xf0,
-0x90,0x9e,0x56,0x14,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x55,0x74,0x14,0xf0,0x90,
-0x9e,0x5b,0x74,0x05,0xf0,0xe4,0x90,0x9e,0x54,0xf0,0x90,0x9e,0x4f,0xf0,0x90,0x9e,
-0x76,0xf0,0x22,0xe4,0x90,0x9e,0x62,0xf0,0x90,0x9e,0x51,0xf0,0x90,0x9e,0x63,0xf0,
-0x22,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x31,0x03,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x12,
-0x24,0x62,0xf5,0x74,0x14,0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,
-0x40,0x7f,0x01,0x80,0x3a,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,
-0x20,0xfd,0xe4,0xff,0x31,0x72,0x80,0x27,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,
-0x02,0x12,0x42,0x20,0xfd,0x7f,0x01,0x31,0x72,0x1f,0x80,0x13,0xab,0x59,0xaa,0x5a,
-0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x7f,0x02,0x31,0x72,0xe4,0xff,0x31,
-0xc6,0x22,0xef,0x24,0xfe,0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x5f,0x74,0x01,0xf0,
-0x80,0x16,0xed,0x70,0x0a,0x90,0x9e,0x5b,0xe0,0x90,0x9e,0x5f,0xf0,0x80,0x05,0x90,
-0x9e,0x5f,0xed,0xf0,0x90,0x9e,0x5f,0xe0,0x90,0x9e,0x50,0xf0,0x22,0xd3,0x10,0xaf,
-0x01,0xc3,0xc0,0xd0,0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x61,0xf0,0x90,0x00,
-0x03,0x12,0x42,0x20,0x90,0x9e,0x4f,0xf0,0x12,0x24,0x62,0x65,0x74,0x60,0x02,0x31,
-0x11,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x64,0x01,0x70,0x30,0x7d,0x7c,0x7f,0x02,0x12,
-0x31,0x2c,0x7d,0x02,0x7f,0x03,0x12,0x31,0x2c,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,
-0x3c,0x74,0x02,0xf0,0x12,0x47,0x16,0xe4,0xff,0x12,0x48,0x8f,0x90,0x06,0x04,0xe0,
-0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,0x7c,
-0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x31,0x9d,0x7d,0x02,0x7f,0x03,0x12,
-0x31,0x9d,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,0xf0,
-0x90,0x9e,0x58,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0xe5,0x73,0x30,0xe0,0x1b,0x90,
-0x9e,0x52,0xe0,0x70,0x1a,0xe0,0x04,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,0x94,
-0x04,0x50,0x0c,0x7d,0x01,0x7f,0x04,0x02,0x47,0x1a,0xe4,0x90,0x9e,0x52,0xf0,0x22,
-0x12,0x5e,0x05,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x52,
-0x90,0x9e,0x63,0xe0,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x42,
-0x90,0x9e,0x60,0xe0,0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,0xb9,0x74,0x04,
-0xf0,0x80,0x2f,0x90,0x9e,0x63,0xe0,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,
-0x80,0x20,0x90,0x9e,0x63,0xe0,0x30,0xe4,0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,
-0x11,0x90,0x9e,0x52,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x20,0xf0,0x80,0x03,0x7f,
-0x01,0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,0x7f,0x00,0x22,0xe5,0x12,0x60,0x08,0x90,
-0x01,0xb9,0x74,0x01,0xf0,0x80,0x5e,0x90,0x9e,0x60,0xe0,0x54,0x0f,0xd3,0x94,0x01,
-0x40,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x4b,0x90,0x02,0x87,0xe0,0x60,0x08,
-0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x3d,0x90,0x9e,0x75,0xe0,0xb4,0x02,0x10,0x90,
-0x9e,0x64,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x17,0x80,0x26,0x90,
-0x9e,0x75,0xe0,0xb4,0x01,0x0e,0x90,0x01,0xaf,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,
-0x08,0xf0,0x80,0x11,0x90,0x9e,0x54,0xe0,0x70,0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,
-0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x02,0xf0,0x7f,0x00,0x22,0x90,0x06,
-0x04,0xe0,0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,0x73,0xb4,0x01,0x04,0xe4,0xff,0x71,
-0x4d,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x0c,0xf0,0x22,0x8f,0x76,0x90,
-0x9e,0x5e,0xe0,0x90,0x01,0xc1,0xf0,0xa3,0xe5,0x12,0xf0,0x12,0x45,0xb1,0xef,0x64,
-0x01,0x70,0x2e,0x90,0x9e,0x69,0x12,0x47,0xfa,0xe5,0x76,0x60,0x10,0x74,0x21,0x2f,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x80,0x0e,0x74,0x21,0x2f,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x90,0x04,0x1f,0x74,0x20,
-0xf0,0x22,0x90,0x9e,0xaf,0xef,0xf0,0x71,0xb0,0x90,0x9e,0xaf,0xe0,0x60,0x05,0x90,
-0x05,0x22,0xe4,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x04,0xf0,0x22,
-0x90,0x00,0x11,0xe0,0x44,0x09,0xf0,0x12,0x49,0xb9,0x90,0x9d,0xff,0x12,0x43,0x53,
-0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x78,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x03,
-0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,
-0x90,0x9e,0x07,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,
-0x12,0x2b,0x08,0x90,0x9e,0x0b,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
-0x70,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x03,0x2d,0x95,
-0xe4,0xfd,0xff,0x12,0x30,0x2c,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x68,
-0x12,0x25,0x14,0x00,0x03,0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x30,0x2c,0x22,0x8f,
-0x27,0xe4,0x90,0x9e,0xa8,0xf0,0xa3,0xf0,0x90,0x01,0x09,0xe0,0x7f,0x00,0x30,0xe7,
-0x02,0x7f,0x01,0xef,0x65,0x27,0x60,0x3e,0xc3,0x90,0x9e,0xa9,0xe0,0x94,0x88,0x90,
-0x9e,0xa8,0xe0,0x94,0x13,0x40,0x08,0x90,0x01,0xc6,0xe0,0x44,0x80,0xf0,0x22,0x90,
-0x9e,0xa8,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x32,0x15,
-0xd3,0x90,0x9e,0xa9,0xe0,0x94,0x32,0x90,0x9e,0xa8,0xe0,0x94,0x00,0x40,0xb9,0x90,
-0x01,0xc7,0xe0,0x30,0xe0,0xb2,0x22,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,
-0x01,0xf0,0x12,0x44,0xff,0x12,0x45,0x00,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,
-0x22,0x90,0x9e,0x60,0xe0,0x30,0xe6,0x1c,0xe0,0x54,0x0f,0xff,0x90,0x9e,0x4e,0xe0,
-0xfe,0x4f,0x90,0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x9e,0x4e,0xf0,0x90,0x9e,0x60,
-0xe0,0x54,0xbf,0xf0,0x22,0x8f,0x75,0x12,0x45,0xb1,0xef,0x64,0x01,0x70,0x2e,0x90,
-0x9e,0x6a,0x12,0x47,0xfa,0xe5,0x75,0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,
-0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,
-0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xe4,0x90,
-0x9e,0x2f,0xf0,0xe5,0x74,0x60,0x6a,0xe5,0x73,0x64,0x01,0x70,0x64,0xe5,0x74,0x14,
-0x60,0x29,0x24,0xfd,0x60,0x25,0x24,0x02,0x24,0xfb,0x50,0x02,0x80,0x23,0x90,0x9e,
-0x50,0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,0x60,0x16,0x90,0x9e,0x50,0xe0,0x70,
-0x0a,0x90,0x9e,0x5f,0xe0,0x90,0x9e,0x50,0xf0,0x80,0x00,0x90,0x9e,0x2f,0x74,0x01,
-0xf0,0x90,0x9e,0x2f,0xe0,0x60,0x2a,0x90,0x9e,0x63,0xe0,0x44,0x10,0xf0,0xe4,0x90,
-0x9e,0x89,0xf0,0x90,0x9e,0x5a,0x12,0x44,0x56,0x90,0x01,0x57,0x74,0x05,0xf0,0x90,
-0x9e,0x5e,0xe0,0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,
-0x1a,0x22,0xef,0xc3,0x94,0x20,0x50,0x39,0xef,0x30,0xe0,0x17,0xed,0xc4,0x54,0xf0,
-0xfd,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,
-0x0f,0x80,0x10,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0x54,0xf0,0xf0,0x74,0xa4,0x2e,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x4d,
-0xf0,0x22,0xad,0x07,0xed,0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2d,0xf5,0x82,0xe4,
-0x34,0x04,0xf5,0x83,0xe0,0x80,0x0b,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,
-0x83,0xe0,0x54,0x7f,0xf5,0x64,0xe5,0x64,0x54,0x1f,0xfc,0x75,0xf0,0x09,0xed,0x90,
-0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x90,0x9e,0x3e,0xf0,0xed,0x25,0xe0,0x24,0x02,
-0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x3f,0xcb,0xf0,
-0xa3,0xeb,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,
-0xfb,0xa3,0xe0,0x90,0x9e,0x41,0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,0x24,0x66,
-0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfa,0x74,0x01,0x93,0xfb,0xed,0x25,
-0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xea,0xf0,0xa3,0xeb,0xf0,0xec,
-0xc3,0x9f,0x40,0x02,0xc1,0xc9,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,
-0xec,0xf0,0x04,0xfb,0x90,0x9e,0x3e,0xe0,0xff,0xeb,0xd3,0x9f,0x40,0x02,0xc1,0xfa,
-0xeb,0xc3,0x94,0x10,0x40,0x21,0xeb,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,
-0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x3f,0xe0,0x5e,
-0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x23,0xeb,0xc3,0x94,0x10,0x50,0x39,0x74,0x01,0x7e,
-0x00,0xa8,0x03,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,
-0x41,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x1c,0xeb,0x64,0x13,0x60,0x08,0xeb,
-0x64,0x12,0x60,0x03,0xbb,0x11,0x09,0x90,0x9e,0x3f,0xe0,0x30,0xe0,0x02,0x7b,0x18,
-0xac,0x03,0x8c,0x64,0x80,0x34,0x0b,0x80,0x8b,0x90,0x9e,0x3e,0xe0,0xfb,0x6c,0x70,
-0x69,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,0x09,
-0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,0xe0,0xb4,0x01,0x0c,0xe5,0x64,0x20,0xe6,0x07,
-0xec,0x44,0x40,0xf5,0x64,0x80,0x03,0xaf,0x64,0x22,0xec,0x25,0xe0,0x24,0x9e,0xf5,
-0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,
-0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,
-0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,
-0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,0x90,
-0x9e,0x3e,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,
-0xac,0x07,0x8f,0x64,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,
-0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,
-0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,
-0xef,0xf0,0xaf,0x64,0x22,0x74,0x01,0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,
-0xf0,0xaf,0x05,0xe5,0x64,0x44,0x80,0xfd,0x12,0x58,0xf1,0xe5,0x64,0x44,0x80,0xff,
-0x22,0xac,0x07,0xec,0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2c,0xf5,0x82,0xe4,0x34,
-0x04,0xf5,0x83,0xe0,0x80,0x0b,0x74,0xa6,0x2c,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,
-0xe0,0x54,0x7f,0xf5,0x64,0xe5,0x64,0x54,0x1f,0xff,0x90,0x9e,0x40,0xf0,0x75,0xf0,
-0x09,0xec,0x90,0x96,0x49,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x42,0xf0,0x75,0xf0,0x09,
-0xec,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xfe,0x90,0x9e,0x43,0xf0,0xec,0x25,0xe0,
-0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x44,
-0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,
-0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x46,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,
-0x40,0x0a,0x90,0x9e,0x43,0xe0,0x90,0x9e,0x40,0xf0,0xf5,0x64,0xed,0x70,0x02,0x21,
-0x07,0x90,0x9e,0x41,0xed,0xf0,0xe5,0x64,0x30,0xe6,0x0a,0x90,0x9e,0x40,0xe0,0xf5,
-0x64,0xa3,0xe0,0x14,0xf0,0x90,0x9e,0x41,0xe0,0x70,0x02,0x21,0x07,0x90,0x9e,0x40,
-0xe0,0xff,0xd3,0x94,0x00,0x50,0x02,0x21,0x07,0xe4,0x90,0x9e,0x3f,0xf0,0xef,0x14,
-0x90,0x9e,0x3e,0xf0,0x90,0x9e,0x42,0xe0,0xfd,0x90,0x9e,0x3e,0xe0,0xff,0xd3,0x9d,
-0x40,0x6b,0xef,0x94,0x10,0x40,0x21,0xef,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,
-0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x46,0xe0,
-0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x27,0x90,0x9e,0x3e,0xe0,0xff,0xc3,0x94,0x10,
-0x50,0x33,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0x90,0x9e,0x44,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,
-0x9e,0x3e,0xe0,0xf5,0x64,0xa3,0xe0,0x04,0xf0,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,
-0x3f,0xe0,0x6f,0x60,0x08,0x90,0x9e,0x3e,0xe0,0x14,0xf0,0x80,0x87,0x90,0x9e,0x41,
-0xe0,0xff,0x90,0x9e,0x3f,0xe0,0xc3,0x9f,0x50,0x0d,0x90,0x9e,0x3e,0xe0,0xb5,0x05,
-0x06,0x90,0x9e,0x42,0xe0,0xf5,0x64,0xe5,0x64,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,
-0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x64,0x25,0xe0,0x24,
-0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,
-0xc3,0x13,0xfe,0xef,0x13,0xff,0xec,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,
-0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x04,0xad,0x64,0x12,0x58,0xf1,0xaf,0x64,
-0x22,0xe4,0xf5,0x59,0xe5,0x59,0xb4,0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,
-0x95,0x01,0xe0,0xff,0x90,0x9a,0xc5,0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,
-0xe5,0x59,0x90,0x96,0x4b,0x12,0x43,0x5f,0xe0,0x64,0x01,0x60,0x02,0xe1,0x95,0xe5,
-0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,
-0xd3,0x94,0x00,0xee,0x94,0x00,0x50,0x02,0xe1,0x95,0xe5,0x59,0x94,0x20,0x40,0x08,
-0x90,0x9a,0xc5,0xe0,0x60,0x02,0xe1,0xa0,0xe5,0x59,0x75,0xf0,0x0a,0xa4,0x24,0x00,
-0xf9,0x74,0x90,0x35,0xf0,0x75,0x5e,0x01,0xf5,0x5f,0x89,0x60,0xe5,0x59,0x25,0xe0,
-0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x38,
-0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,
-0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x3a,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,
-0xc3,0x94,0x20,0x50,0x14,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0x54,0x3f,0x90,0x9e,0x34,0xf0,0x80,0x12,0x74,0xa6,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9c,0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfe,
-0x54,0x1f,0xa3,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,
-0x90,0x9e,0x3d,0xf0,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,
-0xc3,0x94,0x05,0x40,0x02,0x81,0x6e,0x90,0x9e,0x3d,0xe0,0xff,0x90,0x9e,0x35,0xe0,
-0x9f,0x40,0x13,0x90,0x9e,0x3d,0xe0,0x90,0x9e,0x35,0xf0,0xee,0x54,0x40,0xfe,0x90,
-0x9e,0x34,0xf0,0xef,0x4e,0xf0,0x90,0x04,0xfd,0xe0,0x64,0x01,0x70,0x29,0x90,0x9e,
-0x35,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,0xda,0x80,0x30,0x90,0x9e,
-0x35,0xe0,0x90,0x40,0xf6,0x80,0x27,0x90,0x9e,0x35,0xe0,0xff,0x90,0x41,0x4a,0x93,
-0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,
-0x06,0xef,0x90,0x41,0x12,0x80,0x07,0x90,0x9e,0x35,0xe0,0x90,0x41,0x2e,0x93,0x90,
-0x9e,0x3c,0xf0,0x90,0x9e,0x3c,0xe0,0x75,0xf0,0x06,0xa4,0x24,0x50,0xf9,0x74,0x40,
-0x35,0xf0,0x75,0x5b,0xff,0xf5,0x5c,0x89,0x5d,0x90,0x9e,0x34,0xe0,0x90,0x41,0xf2,
-0x93,0xff,0xd3,0x90,0x9e,0x3b,0xe0,0x9f,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x09,
-0xe4,0xfd,0xaf,0x59,0x12,0x67,0xb1,0xe1,0x2c,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xf5,0x61,0xa3,0xe0,0xf5,0x62,0xab,0x5b,0xaa,
-0x5c,0xa9,0x5d,0x12,0x24,0x62,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,
-0x42,0x97,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,
-0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x7e,
-0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,0xf0,
-0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,
-0x5c,0xa9,0x5d,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,
-0xa9,0x60,0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,
-0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,
-0x03,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x06,
-0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,
-0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x04,0x12,0x42,0x20,0xff,
-0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,0xac,
-0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,
-0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,0x38,
-0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x24,0x7b,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,
-0x0c,0xe5,0x62,0x9f,0xf5,0x62,0xe5,0x61,0x9e,0xf5,0x61,0x80,0x05,0xe4,0xf5,0x61,
-0xf5,0x62,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe5,
-0x61,0xf0,0xa3,0xe5,0x62,0xf0,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,
-0xe4,0x34,0x41,0xf5,0x83,0xc3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,
-0x07,0xaf,0x59,0x12,0x65,0xb2,0xe1,0x00,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x9e,
-0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,
-0x61,0x50,0x02,0xe1,0x00,0x7d,0x01,0xaf,0x59,0x12,0x67,0xb1,0xe1,0x00,0x74,0xe6,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,0xc1,
-0x09,0x90,0x96,0x43,0xe0,0xff,0xb4,0x03,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x19,
-0x40,0x3d,0x80,0x2e,0xef,0xb4,0x02,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x11,0x40,
-0x2e,0x80,0x1f,0x90,0x96,0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x35,0xe0,0xc3,
-0x94,0x0a,0x40,0x1b,0x80,0x0c,0xef,0x70,0x11,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x03,
-0x40,0x0d,0x90,0x9a,0x84,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,0x74,
-0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0x74,0x44,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,0xa1,
-0xb6,0x90,0x9a,0x84,0xe0,0x64,0x01,0x60,0x02,0xa1,0xb6,0x74,0x85,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,0xe4,
-0x33,0xfe,0x74,0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,0xd3,
-0x9f,0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,0x33,
-0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,0xee,
-0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x14,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x9d,0xf5,0x83,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,0x63,
-0x05,0x80,0x0e,0xef,0xd3,0x94,0x39,0x40,0x05,0x75,0x63,0x03,0x80,0x03,0x75,0x63,
-0x01,0x74,0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,0x85,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
-0x83,0xe0,0x04,0xf0,0x80,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x35,0xe0,0xff,0x74,0x26,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x98,0xf5,0x83,0xe5,0x63,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4c,0x12,0x43,
-0x5f,0xe0,0xb4,0x01,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x9c,0xf5,0x83,0xe4,0xf0,0xad,0x63,0xc1,0xfb,0xec,0x64,0x06,0x60,0x02,0xe1,0x00,
-0xf5,0x61,0xf5,0x62,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,
-0xa3,0xe0,0xfd,0x12,0x24,0x7b,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0xe4,0xf5,0x5a,0xab,
-0x5e,0xaa,0x5f,0xa9,0x60,0x75,0xf0,0x02,0xe5,0x5a,0xa4,0xf5,0x82,0x85,0xf0,0x83,
-0x12,0x42,0xc2,0xfd,0xac,0xf0,0xe5,0x5a,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,0x12,
-0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,
-0xe0,0x95,0x62,0x90,0x9e,0x36,0xe0,0x95,0x61,0x40,0x07,0x05,0x5a,0xe5,0x5a,0xb4,
-0x05,0xbd,0xe5,0x5a,0xc3,0x13,0xf5,0x5a,0xe5,0x63,0xb4,0x01,0x06,0xe5,0x5a,0x70,
-0x46,0x80,0x13,0xe5,0x63,0xb4,0x03,0x15,0xe5,0x5a,0x70,0x05,0x75,0x63,0x03,0x80,
-0x39,0xe5,0x5a,0xb4,0x01,0x05,0x75,0x63,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x63,0xb4,
-0x05,0x28,0xe5,0x5a,0x70,0x05,0x75,0x63,0x05,0x80,0x0d,0xe5,0x5a,0xb4,0x01,0x05,
-0x75,0x63,0x03,0x80,0x03,0x75,0x63,0x01,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,
-0x9e,0x3a,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0xd3,0x90,0x9e,0x3b,0xe0,0x94,
-0x03,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0x74,0x84,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe5,0x63,0xf0,0xfd,0xaf,0x59,0x12,0x65,0x72,
-0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,0x74,
-0xe6,0x50,0x0e,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,0x80,
-0x0b,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xab,0x5e,0xaa,0x5f,
-0xa9,0x60,0xe4,0xf5,0xf0,0x12,0x42,0xfa,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,
-0x02,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x04,0xe4,0xf5,0xf0,0x12,0x43,0x19,
-0x90,0x00,0x06,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x08,0xe4,0xf5,0xf0,0x12,
-0x43,0x19,0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,
-0xf0,0xa3,0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,
-0xe4,0xf0,0xa3,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0x05,0x59,0xe5,0x59,0xc3,0x94,0x40,0x50,0x02,0x21,0x54,
-0x22,0x90,0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,0xf0,0xa3,0x74,0x0f,0xf0,0xa3,
-0xe4,0xf0,0xfd,0x74,0xa4,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe4,0xf0,0x0d,
-0xbd,0x10,0xf0,0xe4,0x90,0x9a,0xc5,0xf0,0x90,0x95,0x01,0x04,0xf0,0xe4,0xfd,0x75,
-0xf0,0x0a,0xed,0x90,0x90,0x00,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,
-0xed,0x90,0x90,0x02,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,
-0x90,0x04,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x06,
-0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x08,0x12,0x43,
-0x5f,0xe4,0xf0,0xa3,0xf0,0x74,0x26,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0x74,
-0x13,0xf0,0x74,0x85,0x2d,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0x74,0x84,
-0x2d,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xed,0x25,0xe0,0x24,0x80,0xf5,
-0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,
-0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,
-0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x44,0xf5,
-0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,
-0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,
-0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x74,0x86,0x2d,0xf5,0x82,0xe4,
-0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x46,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,
-0xe4,0xf0,0x74,0xe6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x41,
-0xc4,0x93,0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,0x74,0x01,0x93,0x2f,0xff,0xe4,
-0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4b,
-0x12,0x43,0x5f,0x74,0x01,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,
-0x74,0x01,0xf0,0x74,0x82,0x2d,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0c,0xf0,
-0x75,0xf0,0x09,0xed,0x90,0x96,0x46,0x12,0x43,0x5f,0x74,0xff,0xf0,0xa3,0xf0,0x75,
-0xf0,0x09,0xed,0x90,0x96,0x44,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0x74,0x0f,0xf0,0x75,
-0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0x74,0x13,0xf0,0x75,0xf0,0x09,0xed,
-0x90,0x96,0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,0x94,0x20,0x50,0x0f,0x74,0x84,
-0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,0xf0,0x80,0x0d,0x74,0xa6,0x2d,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,0x0d,0xed,0x64,0x40,0x60,0x03,
-0x02,0x6f,0xcf,0x22,0x12,0x24,0x62,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,
-0x02,0x12,0x42,0x20,0xff,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,
-0xef,0xf0,0x22,0xe5,0x59,0xb4,0x40,0x0a,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x96,
-0x42,0xf0,0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,
-0xc4,0x13,0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x02,0x53,0xa4,0x12,0x24,0x62,0x90,
-0x95,0x01,0xf0,0x22,0x12,0x24,0x62,0xf5,0x73,0x22,0x90,0x00,0x02,0x12,0x42,0x20,
-0xff,0x30,0xe0,0x25,0x12,0x24,0x62,0x90,0x9e,0x56,0xf0,0x90,0x00,0x01,0x12,0x42,
-0x20,0x90,0x9e,0x57,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x55,0xf0,0x90,0x00,
-0x03,0x12,0x42,0x20,0x90,0x9e,0x5b,0xf0,0x22,0x90,0x9e,0x56,0x74,0x01,0xf0,0x90,
-0x9e,0x57,0x74,0x03,0xf0,0x90,0x9e,0x55,0x74,0x14,0xf0,0x90,0x9e,0x5b,0x74,0x05,
-0xf0,0x22,0x12,0x24,0x62,0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x5a,0xf0,
-0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x58,0xe4,0xf0,0xa3,0xef,0xf0,0x22,
-0x90,0x9e,0x5a,0x74,0x07,0xf0,0x90,0x9e,0x58,0xe4,0xf0,0xa3,0x74,0x02,0xf0,0x22,
-0x90,0x02,0x09,0xe0,0xfd,0x12,0x24,0x62,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x67,
-0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x68,0xf0,0x90,0x00,
-0x02,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x69,0xf0,0x90,0x00,0x03,0x12,0x42,
-0x20,0xff,0xed,0x2f,0x90,0x9e,0x6a,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0xae,
-0x05,0xed,0x2f,0x90,0x9e,0x6b,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,
-0x9e,0x3f,0x12,0x43,0x8b,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,
-0xc2,0xfa,0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,0x90,0x9e,0x3f,0x12,0x43,0x6b,
-0x90,0x00,0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,0x24,0x62,0xff,0x60,0x2c,0xb5,
-0x22,0x16,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0x65,0x24,
-0x70,0x04,0xe5,0x23,0x65,0xf0,0x60,0x23,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,
-0x01,0x12,0x42,0xc2,0xff,0xae,0xf0,0x71,0x00,0x80,0x10,0x90,0x9e,0x3f,0x12,0x43,
-0x6b,0x12,0x24,0x62,0x65,0x22,0x60,0x03,0x12,0x44,0xca,0xd0,0xd0,0x92,0xaf,0x22,
-0x90,0x9e,0x42,0xee,0xf0,0xa3,0xef,0xf0,0x75,0x22,0x01,0x8e,0x23,0xf5,0x24,0xe4,
-0xfd,0x7f,0x0b,0x71,0x44,0xe4,0xfd,0x7f,0x02,0x71,0x44,0x12,0x4f,0xbe,0xe4,0xff,
-0x12,0x44,0xf1,0xe4,0xf5,0x26,0x90,0x01,0xc9,0xe5,0x26,0xf0,0x90,0x9e,0x42,0xe0,
-0xfc,0xa3,0xe0,0xfd,0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,0x7d,0x01,0x7f,0x60,0x7e,
-0x01,0x02,0x30,0x62,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,
-0x90,0x9e,0x44,0xef,0xf0,0xd3,0x94,0x07,0x50,0x4f,0xa3,0xe0,0x70,0x1a,0x90,0x9e,
-0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x47,0xe0,0x5f,0xf0,0x80,0x17,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,0x12,
-0x49,0xb9,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
-0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0x80,0x5a,0x90,0x9e,0x44,0xe0,0x24,0xf8,0xf0,
-0xa3,0xe0,0x70,0x1d,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,
-0x1a,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,
-0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,0x43,0xe0,0x4f,0xf0,0x12,0x49,0xb9,0x90,0x9e,
-0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x43,0xe0,0x5f,0xf0,0x12,0x49,0xb9,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,
-0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x6d,0xe0,0x90,0x9e,0x40,0xf0,0x90,0x9e,0x6e,
-0xe0,0xf5,0x64,0xa3,0xe0,0xf5,0x65,0xe4,0xf5,0x61,0x74,0x70,0x25,0x61,0xf5,0x82,
-0xe4,0x34,0x9e,0xf5,0x83,0xe0,0xff,0x74,0x66,0x25,0x61,0xf8,0xa6,0x07,0x05,0x61,
-0xe5,0x61,0xb4,0x04,0xe5,0x90,0x9e,0x40,0xe0,0x12,0x43,0x94,0x74,0x6b,0x00,0x75,
-0x93,0x01,0x74,0x71,0x02,0x74,0x71,0x03,0x74,0x71,0x04,0x75,0x93,0x05,0x75,0x63,
-0x80,0x75,0x79,0x81,0x75,0x93,0x82,0x00,0x00,0x75,0x8f,0xaf,0x69,0xb1,0x9a,0xa1,
-0x93,0x90,0x9e,0x40,0xe0,0xff,0xb4,0x02,0x08,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x80,
-0x0f,0xef,0x90,0x9e,0x3f,0xb4,0x03,0x05,0x74,0x02,0xf0,0x80,0x03,0x74,0x04,0xf0,
-0xc3,0xe5,0x64,0x94,0x08,0x50,0x49,0xe4,0xf5,0x61,0x90,0x9e,0x3f,0xe0,0xff,0xe5,
-0x61,0xc3,0x9f,0x40,0x02,0xa1,0x93,0xc3,0xe5,0x64,0x94,0x01,0x50,0x14,0xe5,0x61,
-0x25,0x65,0xff,0xc3,0x74,0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xfd,0x12,0x4a,0xc1,
-0x80,0x1a,0xc3,0x74,0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xff,0xe5,0x61,0x7c,0x00,
-0x25,0x65,0xfd,0xec,0x35,0x64,0x8d,0x82,0xf5,0x83,0xef,0xf0,0x05,0x61,0x80,0xba,
-0xc3,0xe5,0x64,0x94,0x10,0x40,0x02,0xa1,0x93,0x90,0x9e,0x40,0xe0,0x64,0x04,0x60,
-0x02,0xa1,0x93,0xaf,0x67,0xfc,0xfd,0xfe,0x78,0x10,0x12,0x24,0xf5,0xc0,0x04,0xc0,
-0x05,0xc0,0x06,0xc0,0x07,0xaf,0x66,0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x24,0xf5,
-0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0x12,0x43,0x46,0xc0,0x04,0xc0,0x05,0xc0,
-0x06,0xc0,0x07,0xaf,0x68,0xe4,0xfc,0xfd,0xfe,0x78,0x08,0x12,0x24,0xf5,0xd0,0x03,
-0xd0,0x02,0xd0,0x01,0xd0,0x00,0x12,0x43,0x46,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,
-0x07,0xaf,0x69,0xe4,0xfc,0xfd,0xfe,0x12,0x43,0x46,0xa3,0x12,0x25,0x08,0x90,0x9e,
-0x41,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0xaf,0x65,0xae,0x64,0x12,0x2b,
-0x08,0x80,0x30,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,
-0x62,0xaf,0x63,0xfe,0x12,0x32,0x15,0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,
-0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,0x31,0x82,0x80,0x04,0x7f,
-0x00,0x80,0x02,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x6a,0xe4,0x90,0x9e,0x45,
-0xf0,0xe5,0x6a,0x14,0xfe,0x90,0x9e,0x45,0xe0,0xff,0xc3,0x9e,0x50,0x0e,0xef,0x04,
-0xfd,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,
-0x7d,0xff,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,
-0x94,0xff,0x50,0x0f,0xe0,0xff,0x04,0xfd,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe0,0x04,
-0xf0,0x80,0xe8,0xad,0x6a,0x7f,0xff,0x02,0x2d,0x4d,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
-0xd0,0xe4,0xf5,0x5b,0x75,0x5c,0x04,0xf5,0x5d,0xf5,0x5f,0xf5,0x60,0x90,0x02,0x09,
-0xe0,0xff,0x12,0x24,0x62,0xfe,0xef,0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,
-0x75,0x5a,0x80,0x80,0x05,0xe4,0xf5,0x59,0xf5,0x5a,0xe5,0x5e,0xc3,0x13,0x90,0xfd,
-0x10,0xf0,0x74,0x20,0x25,0x5b,0xf5,0x5b,0xad,0x5a,0xe5,0x5b,0x2d,0xff,0x24,0x01,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x90,0x9e,0x6d,0xf0,0x74,0x02,0x2f,0xf5,
-0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0xfe,0xe5,0x5b,0x2d,0x24,0x03,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x24,0x00,0xff,0xe4,0x3e,0x90,0x9e,0x6e,0xf0,0xa3,0xef,
-0xf0,0x7f,0x04,0xe5,0x5b,0x25,0x5a,0x2f,0x24,0x00,0xf5,0x82,0xe4,0x34,0xfc,0xf5,
-0x83,0xe0,0xfe,0x74,0x6c,0x2f,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,0xee,0xf0,0x0f,
-0xbf,0x08,0xe0,0x91,0x0e,0xef,0x70,0x3f,0x90,0x01,0xc3,0xe0,0x60,0x25,0xc3,0xe5,
-0x60,0x94,0xe8,0xe5,0x5f,0x94,0x03,0x40,0x09,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,
-0x80,0x63,0x05,0x60,0xe5,0x60,0x70,0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x32,
-0x15,0x80,0xd5,0x90,0x01,0xc6,0xe0,0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,
-0x80,0x43,0x74,0xff,0xf0,0x80,0x3e,0xe5,0x5b,0xb4,0x78,0x23,0xe4,0xf5,0x5b,0x05,
-0x5e,0xe5,0x5a,0x64,0x80,0x45,0x59,0x70,0x06,0xf5,0x59,0xf5,0x5a,0x80,0x06,0x75,
-0x59,0x00,0x75,0x5a,0x80,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x80,0x06,0x74,
-0x08,0x25,0x5b,0xf5,0x5b,0xe5,0x5d,0x15,0x5d,0x70,0x02,0x15,0x5c,0xe5,0x5d,0x45,
-0x5c,0x60,0x02,0xc1,0x28,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,
-0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x22,0xe4,0xf5,0x25,0x22,0xe4,0x90,0x9e,0xaa,
-0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,
-0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,0x90,0x9e,0xab,0xe0,0x94,0xe8,0x90,
-0x9e,0xaa,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,0x22,0x7f,0x32,0x7e,0x00,0x12,0x32,
-0x15,0x90,0x9e,0xaa,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x80,0xc6,0x90,0x9e,0x77,
-0xe0,0x90,0x9e,0x0f,0xf0,0x22,0xef,0x70,0x03,0x02,0x79,0x1e,0x90,0x9e,0x0f,0xe0,
-0x60,0x03,0x02,0x7c,0xe9,0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
-0x08,0x7f,0x8c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,
-0x96,0x12,0x25,0x08,0x7f,0x44,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xab,0x12,0x43,
-0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,
-0xaf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,
-0x08,0x90,0x9d,0xb3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x70,0x7e,
-0x0e,0x12,0x2b,0x08,0x90,0x9d,0xb7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
-0x7f,0x74,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x96,
-0x12,0x25,0x08,0x7f,0x78,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xbf,0x12,0x43,0x53,
-0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xc3,
-0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x08,
-0x90,0x9d,0xc7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x84,0x7e,0x0e,
-0x12,0x2b,0x08,0x90,0x9d,0xcb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
-0x88,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xcf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0x8c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,
-0x80,0x96,0x12,0x25,0x08,0x7f,0xd0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xd7,0x12,
-0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xd4,0x7e,0x0e,0x12,0x2b,0x08,0x90,
-0x9d,0xdb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xd8,0x7e,0x0e,0x12,
-0x2b,0x08,0x90,0x9d,0xdf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xdc,
-0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xe3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
-0x08,0x7f,0xe0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,
-0x96,0x12,0x25,0x08,0x7f,0xec,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xeb,0x12,0x43,
-0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,0x9d,
-0xef,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x2b,
-0x08,0x90,0x9d,0xf3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x0c,0x7e,
-0x09,0x12,0x2b,0x08,0x90,0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
-0x7f,0x04,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,
-0x0f,0xe0,0x64,0x01,0x60,0x02,0x81,0xe9,0x7f,0x8c,0x7e,0x08,0x12,0x22,0x65,0x90,
-0x9d,0xfb,0x12,0x25,0x08,0x7f,0x44,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xa7,0x12,
-0x25,0x08,0x7f,0x5c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xab,0x12,0x25,0x08,0x7f,
-0x6c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xaf,0x12,0x25,0x08,0x7f,0x70,0x7e,0x0e,
-0x12,0x22,0x65,0x90,0x9d,0xb3,0x12,0x25,0x08,0x7f,0x74,0x7e,0x0e,0x12,0x22,0x65,
-0x90,0x9d,0xb7,0x12,0x25,0x08,0x7f,0x78,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xbb,
-0x12,0x25,0x08,0x7f,0x7c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xbf,0x12,0x25,0x08,
-0x7f,0x80,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xc3,0x12,0x25,0x08,0x7f,0x84,0x7e,
-0x0e,0x12,0x22,0x65,0x90,0x9d,0xc7,0x12,0x25,0x08,0x7f,0x88,0x7e,0x0e,0x12,0x22,
-0x65,0x90,0x9d,0xcb,0x12,0x25,0x08,0x7f,0x8c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,
-0xcf,0x12,0x25,0x08,0x7f,0xd0,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xd3,0x12,0x25,
-0x08,0x7f,0xd4,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xd7,0x12,0x25,0x08,0x7f,0xd8,
-0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xdb,0x12,0x25,0x08,0x7f,0xdc,0x7e,0x0e,0x12,
-0x22,0x65,0x90,0x9d,0xdf,0x12,0x25,0x08,0x7f,0xe0,0x7e,0x0e,0x12,0x22,0x65,0x90,
-0x9d,0xe3,0x12,0x25,0x08,0x7f,0xec,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xe7,0x12,
-0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,0x9d,0xeb,0x12,0x25,0x08,0x7f,
-0x04,0x7e,0x0d,0x12,0x22,0x65,0x90,0x9d,0xef,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,
-0x12,0x22,0x65,0x90,0x9d,0xf3,0x12,0x25,0x08,0x7f,0x04,0x7e,0x08,0x12,0x22,0x65,
-0x90,0x9d,0xf7,0x12,0x25,0x08,0x7f,0x8c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0xa4,
-0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,
-0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
-0x7f,0x8c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x01,0x00,
-0x00,0x7f,0x44,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0xdb,
-0x25,0xa4,0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,
-0xdb,0x25,0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,
-0x20,0xdb,0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,
-0x14,0x04,0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,
-0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,
-0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,
-0x96,0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x08,0x90,
-0x80,0x96,0x12,0x25,0x14,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2b,0x08,
-0x90,0x80,0x96,0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2b,
-0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,
-0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,
-0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,
-0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd8,
-0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa4,0x7f,
-0xdc,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa4,
-0x7f,0xe0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x24,0xdb,0x25,
-0xa4,0x7f,0xec,0x7e,0x0e,0x12,0x2b,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,
-0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,
-0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,
-0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
-0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x22,0x65,0x90,
-0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,
-0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,
-0xec,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,
-0x12,0x25,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x2b,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,
-0x65,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,
-0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,
-0xec,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,
-0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x2b,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,
-0x65,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x54,0x0f,
-0xfd,0xec,0x54,0xf0,0xfc,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,
-0x53,0xed,0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,
-0x2b,0x08,0x7f,0x04,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa4,0x12,0x25,0x08,
-0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa4,0x12,0x25,
-0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,
-0x08,0x12,0x2b,0x08,0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,
-0x90,0x9e,0x1e,0xf0,0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,
-0x59,0xc2,0xaf,0x90,0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x4a,0xc1,0x7d,
-0x40,0x7f,0x01,0x12,0x31,0x66,0xe5,0x59,0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,
-0x45,0x12,0x4a,0xc1,0x90,0x04,0xfd,0xe4,0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,
-0x9e,0x24,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,
-0x9e,0x26,0xf0,0x90,0x9e,0x29,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,
-0x9e,0x2e,0xf0,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,
-0x00,0x51,0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x02,0x4a,0xc1,0x90,0x9e,0x15,0xe0,0xc3,
-0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0xc1,0x33,0x90,0x9e,0x15,0xe0,0x64,0x14,0x60,
-0x02,0xc1,0x33,0x90,0x9e,0x24,0xe0,0x70,0x25,0x90,0x9e,0x27,0xe0,0x70,0x1f,0x90,
-0x9e,0x25,0xe0,0x70,0x19,0x90,0x9e,0x28,0xe0,0x70,0x13,0x90,0x9e,0x26,0xe0,0x70,
-0x0d,0x90,0x9e,0x29,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,0x54,0xfe,0xf0,0x90,0x9e,
-0x24,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x25,0xe0,0x90,0x04,0x45,0xf0,0x90,0x9e,
-0x26,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x27,0xe0,0x90,0x04,0x48,
-0xf0,0x90,0x9e,0x28,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,0x29,0xe0,0x90,0x04,0x4a,
-0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x10,0xe0,0x90,0x04,0x4c,0xf0,0x90,0x9e,0x11,0xe0,
-0x90,0x04,0x4d,0xf0,0x90,0x9e,0x12,0xe0,0x90,0x04,0x4e,0xf0,0x90,0x9e,0x13,0xe0,
-0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,
-0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x24,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x34,0xf0,0x90,0x05,0x61,0xe0,0x90,
-0x9e,0x35,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x36,0xf0,0x90,0x05,0x63,0xe0,0x90,
-0x9e,0x37,0xf0,0x90,0x9e,0x2d,0xe0,0xff,0x90,0x9e,0x37,0xe0,0xfe,0xd3,0x9f,0x50,
-0x0b,0x90,0x9e,0x2d,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,0x11,0x90,0x9e,0x1b,0xe0,
-0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x1f,0xe0,0xff,0x12,0x4e,0xd8,0x22,0x90,0x9e,
-0x2e,0xe0,0x64,0x01,0x60,0x08,0x90,0x9e,0x1c,0xe0,0x60,0x02,0xe1,0x55,0x90,0x9e,
-0x10,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x11,0xe0,
-0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x12,0xe0,0xc3,
-0x94,0xff,0x50,0x0a,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x11,0xf0,0x80,0x15,0x90,0x9e,
-0x13,0xe0,0xc3,0x94,0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x12,0xf0,0x90,
-0x9e,0x11,0xf0,0x90,0x9e,0x10,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,
-0x30,0xe2,0x32,0x90,0x9e,0x24,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,
-0x24,0x90,0x9e,0x25,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,
-0x90,0x9e,0x26,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x25,
-0xf0,0x90,0x9e,0x24,0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x27,0xe0,
-0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x28,0xe0,0xc3,0x94,
-0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x29,0xe0,0xc3,0x94,0xff,
-0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x04,
-0xfd,0xe0,0x44,0x01,0xf0,0x22,0xf5,0x67,};
-
-// =================== v79 UMC B Cut COMMON 2011-10-06 =====================
-u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength] = {
-0xc2,0x88,0x02,0x00,0x4f,0x00,0x00,0x00,0x0a,0x06,0x18,0x11,0x5e,0x3f,0x01,0x00,
-0x61,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x49,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x5f,0x7b,0x00,0x00,0x00,0x00,0x00,0xa1,0xdf,0x00,0x00,0x00,
-0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
-0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
-0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
-0x12,0x11,0x10,0x08,0x00,0x10,0x1a,0x19,0x18,0x10,0x00,0x18,0x22,0x21,0x20,0x18,
-0x00,0x20,0x22,0x21,0x20,0x10,0x00,0x20,0x22,0x21,0x20,0x08,0x00,0x20,0x22,0x21,
-0x1c,0x08,0x00,0x20,0x22,0x21,0x14,0x08,0x00,0x20,0x22,0x20,0x18,0x08,0x00,0x20,
-0x31,0x30,0x20,0x10,0x00,0x30,0x31,0x30,0x18,0x00,0x00,0x30,0x31,0x2f,0x10,0x10,
-0x00,0x30,0x31,0x2c,0x10,0x10,0x00,0x30,0x31,0x28,0x10,0x00,0x00,0x30,0x31,0x20,
-0x10,0x00,0x00,0x30,0x31,0x10,0x10,0x00,0x00,0x30,0x04,0x04,0x04,0x05,0x04,0x04,
-0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,
-0x05,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x05,0x05,0x05,0x05,0x06,0x07,0x0a,0x0b,
-0x0d,0x10,0x04,0x05,0x05,0x06,0x06,0x09,0x0c,0x11,0x08,0x08,0x09,0x09,0x0a,0x0c,
-0x10,0x11,0x04,0x04,0x04,0x05,0x04,0x04,0x05,0x07,0x07,0x07,0x08,0x0a,0x04,0x04,
-0x04,0x04,0x06,0x0a,0x0b,0x0d,0x05,0x05,0x07,0x07,0x08,0x0b,0x0d,0x0f,0x04,0x04,
-0x04,0x05,0x07,0x07,0x09,0x09,0x0c,0x0e,0x10,0x12,0x04,0x04,0x05,0x05,0x06,0x0a,
-0x11,0x13,0x09,0x09,0x09,0x09,0x0c,0x0e,0x11,0x13,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x24,0x26,0x2a,0x18,0x1a,0x1d,0x1f,0x21,0x27,0x29,0x2a,0x00,0x00,
-0x00,0x1f,0x23,0x28,0x2a,0x2c,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x18,
-0x00,0x24,0x00,0x30,0x00,0x48,0x00,0x60,0x00,0x90,0x00,0xc0,0x00,0xd8,0x00,0x50,
-0x00,0x78,0x00,0xa0,0x00,0xc8,0x01,0x40,0x01,0x90,0x01,0xe0,0x02,0x30,0x01,0x2c,
-0x01,0x40,0x01,0xe0,0x02,0xd0,0x03,0xe8,0x04,0xb0,0x06,0x40,0x07,0xd0,0x00,0x02,
-0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x0c,0x00,0x12,0x00,0x18,0x00,0x24,0x00,0x30,
-0x00,0x48,0x00,0x60,0x00,0x6c,0x00,0x28,0x00,0x3c,0x00,0x50,0x00,0x64,0x00,0xa0,
-0x00,0xc8,0x00,0xf0,0x01,0x18,0x00,0x64,0x00,0xa0,0x00,0xf0,0x01,0x68,0x01,0xf4,
-0x02,0x58,0x03,0x20,0x03,0xe8,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x04,0x04,
-0x05,0x07,0x04,0x04,0x07,0x0a,0x0a,0x0c,0x0c,0x12,0x05,0x07,0x07,0x08,0x0b,0x12,
-0x24,0x3c,0x01,0x01,0x01,0x01,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x01,0x02,
-0x03,0x04,0x05,0x06,0x07,0x08,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x20,0x1e,
-0x1c,0x18,0x10,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0xbb,0x01,0x0c,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,0x22,0x50,
-0x06,0xe9,0x25,0x82,0xf8,0xe6,0x22,0xbb,0xfe,0x06,0xe9,0x25,0x82,0xf8,0xe2,0x22,
-0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe4,0x93,0x22,0xbb,0x01,0x06,
-0x89,0x82,0x8a,0x83,0xf0,0x22,0x50,0x02,0xf7,0x22,0xbb,0xfe,0x01,0xf3,0x22,0xf8,
-0xbb,0x01,0x0d,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0x22,
-0x50,0x06,0xe9,0x25,0x82,0xc8,0xf6,0x22,0xbb,0xfe,0x05,0xe9,0x25,0x82,0xc8,0xf2,
-0x22,0xc5,0xf0,0xf8,0xa3,0xe0,0x28,0xf0,0xc5,0xf0,0xf8,0xe5,0x82,0x15,0x82,0x70,
-0x02,0x15,0x83,0xe0,0x38,0xf0,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xe0,0xf5,
-0xf0,0xa3,0xe0,0x22,0x50,0x06,0x87,0xf0,0x09,0xe7,0x19,0x22,0xbb,0xfe,0x07,0xe3,
-0xf5,0xf0,0x09,0xe3,0x19,0x22,0x89,0x82,0x8a,0x83,0xe4,0x93,0xf5,0xf0,0x74,0x01,
-0x93,0x22,0xbb,0x01,0x10,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,
-0xf5,0xf0,0xa3,0xe0,0x22,0x50,0x09,0xe9,0x25,0x82,0xf8,0x86,0xf0,0x08,0xe6,0x22,
-0xbb,0xfe,0x0a,0xe9,0x25,0x82,0xf8,0xe2,0xf5,0xf0,0x08,0xe2,0x22,0xe5,0x83,0x2a,
-0xf5,0x83,0xe9,0x93,0xf5,0xf0,0xa3,0xe9,0x93,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,
-0x83,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x06,0xf7,0x09,0xa7,0xf0,0x19,0x22,0xbb,
-0xfe,0x06,0xf3,0xe5,0xf0,0x09,0xf3,0x19,0x22,0xf8,0xbb,0x01,0x11,0xe5,0x82,0x29,
-0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x09,
-0xe9,0x25,0x82,0xc8,0xf6,0x08,0xa6,0xf0,0x22,0xbb,0xfe,0x09,0xe9,0x25,0x82,0xc8,
-0xf2,0xe5,0xf0,0x08,0xf2,0x22,0xef,0x4b,0xff,0xee,0x4a,0xfe,0xed,0x49,0xfd,0xec,
-0x48,0xfc,0x22,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xa4,
-0x25,0x82,0xf5,0x82,0xe5,0xf0,0x35,0x83,0xf5,0x83,0x22,0xe0,0xfb,0xa3,0xe0,0xfa,
-0xa3,0xe0,0xf9,0x22,0xf8,0xe0,0xfb,0xa3,0xa3,0xe0,0xf9,0x25,0xf0,0xf0,0xe5,0x82,
-0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0xfa,0x38,0xf0,0x22,0xeb,0xf0,0xa3,0xea,0xf0,
-0xa3,0xe9,0xf0,0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,
-0x70,0x0d,0xa3,0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,
-0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x50,0x31,
-0xe4,0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,
-0x80,0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,
-0x44,0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,
-0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x90,0x44,0x3d,0xe4,0x7e,0x01,0x93,0x60,
-0xbc,0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,
-0x0e,0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,
-0xa3,0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,
-0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x66,
-0x00,0x41,0x9e,0xae,0x00,0x41,0x9e,0x4d,0x80,0x41,0x9e,0x4e,0x80,0x41,0x9e,0xb0,
-0x00,0x00,0xf0,0x90,0x9e,0x57,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,
-0x7e,0x01,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x88,0xeb,0xf0,0xa3,0xe0,
-0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x35,0xab,0xd0,0xd0,0x92,0xaf,0x22,
-0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x89,0xf0,
-0x90,0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,
-0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x5c,
-0x14,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,0x94,0x0c,0x50,0x02,0xf1,0x16,0x22,
-0x8f,0x82,0x8e,0x83,0xa3,0xa3,0xa3,0xe4,0xf0,0x22,0xe4,0xf5,0x22,0x7f,0x60,0x7e,
-0x01,0x80,0xed,0x90,0x9e,0x60,0xe0,0xff,0x7d,0x01,0xe1,0x1a,0xb1,0xb1,0xbf,0x01,
-0x0f,0x90,0x9e,0x68,0xe0,0xff,0xe4,0xfd,0xf1,0xfe,0x90,0x04,0x1f,0x74,0x20,0xf0,
-0x22,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,0x02,0x7f,0x00,0x22,
-0x22,0x22,0x22,0x02,0x60,0x0d,0x02,0x60,0x14,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x8b,0x1b,0x8a,0x1c,0x89,0x1d,0x90,0x9e,0x8b,0x71,0x8b,0xab,0x1e,0xaa,0x1f,0xa9,
-0x20,0x90,0x9e,0x8e,0x71,0x8b,0xaf,0x21,0x15,0x21,0xef,0x60,0x1b,0x90,0x9e,0x8e,
-0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x29,0xd9,0xff,0x90,0x9e,0x8b,0xe4,0x75,0xf0,
-0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x1b,0xaa,0x1c,0xa9,0x1d,0xd0,0xd0,
-0x92,0xaf,0x22,0x90,0x06,0xa9,0xe0,0xf5,0x50,0x54,0xc0,0x70,0x0d,0x90,0x9e,0x63,
-0xe0,0x54,0xfe,0xf0,0xe0,0x54,0xfd,0xf0,0x91,0xd3,0xe5,0x50,0x30,0xe6,0x17,0x90,
-0x9e,0x63,0xe0,0x44,0x01,0xf0,0x90,0x9e,0x61,0xe0,0x64,0x02,0x60,0x04,0x91,0xdc,
-0x80,0x0b,0x91,0x80,0x80,0x07,0x90,0x9e,0x63,0xe0,0x54,0xfe,0xf0,0xe5,0x50,0x90,
-0x9e,0x63,0x30,0xe7,0x17,0xe0,0x44,0x02,0xf0,0xe4,0x90,0x9e,0x89,0x91,0x52,0x90,
-0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x62,0x74,0x01,0xf0,0x22,0xe0,0x54,0xfd,0xf0,
-0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x04,0x1d,0xe0,0x60,0x1a,0x90,0x05,
-0x22,0xe0,0x54,0x90,0x60,0x07,0x90,0x01,0xc6,0xe0,0x44,0x40,0xf0,0x90,0x01,0xc7,
-0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,0x02,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xc0,
-0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,
-0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,
-0xdf,0xf0,0x74,0x45,0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,0x3c,0xe0,0x55,0x30,0xf5,
-0x34,0xa3,0xe0,0x55,0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,0xf5,0x36,0xa3,0xe0,0x55,
-0x33,0xf5,0x37,0xe5,0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,0x74,0x01,0xf0,0xe5,0x34,
-0x30,0xe1,0x08,0x90,0x01,0x3c,0x74,0x02,0xf0,0xf1,0xbc,0xe5,0x34,0x30,0xe2,0x38,
-0x90,0x01,0x3c,0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe0,0x24,0x90,0x9e,0x89,
-0xe4,0xf0,0x90,0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,
-0x01,0x91,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x80,
-0x07,0x90,0x9e,0x5d,0xe4,0xf0,0x91,0xd3,0xe5,0x34,0x30,0xe3,0x38,0x90,0x01,0x3c,
-0x74,0x08,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,0x90,0x9e,0x89,0xe4,0xf0,0x90,
-0x9e,0x55,0xe0,0x90,0x9e,0x8a,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,0x62,
-0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x80,0x07,0x90,0x9e,
-0x5c,0xe4,0xf0,0x91,0xd3,0xe5,0x34,0x30,0xe4,0x09,0x90,0x01,0x3c,0x74,0x10,0xf0,
-0x12,0x71,0xa3,0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,0x3c,0x74,0x20,0xf0,0x12,0x52,
-0x69,0xe5,0x35,0x30,0xe0,0x1a,0x90,0x01,0x3d,0x74,0x01,0xf0,0x90,0x01,0x2f,0xe0,
-0x44,0x7f,0xf0,0x90,0x00,0x83,0xe0,0x90,0x9e,0x60,0xf0,0x12,0x63,0xac,0x91,0xd3,
-0x74,0xdf,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,
-0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,
-0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x7d,0x01,0x7f,0x0c,0x8f,0x71,0x8d,0x72,0xe5,0x71,
-0x54,0x0f,0xff,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0x6f,0x60,0x72,0xe5,0x71,0x30,0xe2,
-0x2b,0x90,0x9e,0x5e,0xe0,0x20,0xe2,0x05,0x7f,0x01,0x12,0x62,0xa7,0x90,0x9e,0x5e,
-0xe0,0x30,0xe3,0x07,0xe5,0x71,0x20,0xe3,0x02,0x80,0x54,0x90,0x9e,0x5e,0xe0,0x20,
-0xe3,0x4c,0xe5,0x71,0x30,0xe3,0x47,0xaf,0x72,0x02,0x62,0x43,0x90,0x9e,0x5e,0xe0,
-0x54,0x0f,0xff,0xbf,0x0c,0x0d,0xe5,0x71,0x20,0xe3,0x08,0x12,0x4c,0xd5,0xef,0x60,
-0x2d,0xf1,0x9f,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xff,0xbf,0x04,0x0e,0xe5,0x71,0x20,
-0xe2,0x09,0x12,0x5e,0x8f,0xef,0x60,0x16,0x12,0x48,0xaa,0x90,0x9e,0x5e,0xe0,0x54,
-0x0f,0xff,0xbf,0x02,0x09,0x12,0x61,0xd0,0xef,0x60,0x03,0x12,0x63,0x92,0x22,0x90,
-0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x73,0xb4,0x01,0x05,0x7f,0x01,0x12,0x62,0x62,
-0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x04,0xf0,0x22,0x90,0x9e,0x62,0xe0,
-0x60,0x0e,0xe4,0xf0,0xa3,0xe0,0x54,0xfd,0xf0,0xe0,0x54,0x07,0x70,0x2b,0x80,0x27,
-0x90,0x9e,0x51,0xe0,0x04,0xf0,0x90,0x9e,0x63,0xe0,0x54,0xef,0xf0,0x90,0x9e,0x56,
-0xe0,0xff,0x90,0x9e,0x51,0xe0,0xd3,0x9f,0x40,0x0d,0xe5,0x73,0xb4,0x01,0x0a,0xa3,
-0xe0,0x70,0x06,0xe0,0x04,0xf0,0x22,0x91,0xd3,0x22,0xe0,0xff,0x7d,0x01,0x90,0x9e,
-0x9c,0xef,0xf0,0xa3,0xed,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x74,0x60,0x04,0xe4,
-0xff,0x11,0x8f,0x90,0x9e,0x9c,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9e,0xe4,0xf0,0xa3,
-0x74,0x80,0xf0,0x90,0x9e,0x9c,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x90,0x04,
-0x25,0xef,0xf0,0x90,0x9e,0x9d,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,0x24,0x0f,0xf5,
-0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9e,0xa3,0xe0,0xff,0xfd,0x24,
-0x08,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,
-0xf5,0x83,0xe0,0x54,0xf7,0xf0,0x90,0x9e,0x9e,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xef,
-0x60,0x0b,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x77,
-0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x77,0x2e,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,
-0x90,0x05,0x22,0x74,0xff,0xf0,0x12,0x76,0x1a,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,
-0xfd,0xf0,0x7d,0x02,0x7f,0x03,0x12,0x36,0xe6,0xe5,0x74,0x60,0x04,0x7f,0x01,0x11,
-0x8f,0x12,0x76,0x5b,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,0x22,
-0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x22,
-0x90,0x9e,0x61,0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0f,0x90,0x9e,0x5e,0xe0,
-0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x1a,0xe4,0xff,
-0x11,0x8f,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,
-0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,
-0x90,0x01,0xc4,0x74,0x13,0xf0,0x74,0x49,0xa3,0xf0,0x90,0x01,0x34,0xe0,0x55,0x28,
-0xf5,0x2c,0x90,0x01,0x36,0xe0,0x55,0x2a,0xf5,0x2e,0xa3,0xe0,0x55,0x2b,0xf5,0x2f,
-0xe5,0x2c,0x20,0xe0,0x02,0x41,0xb3,0x90,0x01,0x34,0x74,0x01,0xf0,0x85,0xd1,0x08,
-0x85,0xd2,0x09,0x85,0xd3,0x0a,0x85,0xd4,0x0b,0x85,0xd5,0x0c,0x85,0xd6,0x0d,0x85,
-0xd7,0x0e,0x85,0xd9,0x0f,0xe5,0x0f,0x54,0x40,0xc3,0x13,0xff,0xe5,0x0e,0x54,0x20,
-0x6f,0x70,0x02,0x41,0x63,0xe5,0x0f,0x30,0xe5,0x02,0x41,0x63,0xe5,0x0d,0x54,0x3f,
-0xf5,0x4d,0xe5,0x08,0x54,0x3f,0xf5,0x4e,0xe5,0x0c,0x54,0x1f,0xff,0xe5,0x4d,0x25,
-0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,
-0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,
-0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4e,0xd3,0x94,0x04,0x40,0x03,0x75,
-0x4e,0x04,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,0x12,0x43,0x5f,0x75,0xf0,0x02,
-0xe5,0x4e,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,0xe5,0x0e,0x54,0x1f,0x2f,0xff,
-0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,0x12,0x43,0x5f,0x75,0xf0,
-0x02,0xe5,0x4e,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,0xf0,0xe5,0x0f,0x20,0xe6,0x24,
-0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,
-0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,0x30,0xe7,0x36,0xaf,0x4d,0x12,
-0x5b,0x6d,0x80,0x2f,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0x44,0xf5,
-0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,0x30,0xe7,
-0x12,0xe5,0x0a,0x54,0x7f,0xfd,0xe5,0x0e,0x54,0x1f,0xf5,0x53,0xab,0x4e,0xaf,0x4d,
-0x12,0x5b,0x0a,0xe5,0x74,0x14,0x24,0xfd,0x50,0x02,0x80,0x47,0x90,0x9e,0x61,0xe0,
-0x60,0x38,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x04,0xf0,0x12,0x44,0xf1,
-0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x55,0xe0,0xf5,0x44,0x75,0x45,0x00,0xe4,0xfb,
-0xfd,0x7f,0x58,0x7e,0x01,0x12,0x35,0xab,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,
-0x92,0x74,0x01,0xf0,0x90,0x9e,0x5d,0xf0,0x80,0x09,0x12,0x44,0xf1,0xbf,0x01,0x03,
-0x12,0x44,0xd3,0xe5,0x2c,0x30,0xe1,0x21,0x90,0x01,0x34,0x74,0x02,0xf0,0x85,0xd1,
-0x13,0x85,0xd2,0x14,0x85,0xd3,0x15,0x85,0xd4,0x16,0x85,0xd5,0x17,0x85,0xd6,0x18,
-0x85,0xd7,0x19,0x85,0xd9,0x1a,0x12,0x5c,0x61,0xe5,0x2c,0x30,0xe3,0x06,0x90,0x01,
-0x34,0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,0x74,0x10,0xf0,0x43,
-0x12,0x10,0xe5,0x2c,0x30,0xe5,0x24,0x90,0x01,0xcf,0xe0,0x30,0xe5,0x1d,0xe0,0x54,
-0xdf,0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,0xe8,0x00,0xd1,0xed,
-0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0xb1,0x28,0x80,0xfe,0xe5,0x2c,0x30,0xe6,0x06,
-0x90,0x01,0x34,0x74,0x40,0xf0,0xe5,0x2e,0x30,0xe1,0x3b,0x90,0x01,0x36,0x74,0x02,
-0xf0,0x43,0x12,0x40,0x90,0x01,0x02,0xe0,0x54,0x03,0x64,0x01,0x70,0x28,0x90,0x01,
-0x37,0xe0,0x30,0xe0,0x0a,0x74,0x01,0xf0,0x90,0x9e,0x66,0xe4,0xf0,0x80,0x17,0x90,
-0x9e,0x66,0xe0,0x04,0xf0,0xe0,0xc3,0x94,0x0a,0x40,0x0b,0xe4,0xf0,0x90,0x04,0x19,
-0xe0,0x30,0xe0,0x02,0xf1,0xfc,0xe5,0x2e,0x30,0xe0,0x12,0x90,0x9e,0x76,0x74,0x01,
-0xf0,0x90,0x01,0x36,0xf0,0x12,0x64,0x09,0x90,0x9e,0x76,0xe4,0xf0,0xe5,0x2e,0x30,
-0xe2,0x78,0x90,0x01,0x36,0x74,0x04,0xf0,0x90,0x01,0xbd,0xe0,0x04,0xf0,0xe5,0x73,
-0x64,0x01,0x70,0x66,0xe5,0x74,0x60,0x62,0xe5,0x74,0x64,0x02,0x60,0x06,0xe5,0x74,
-0x64,0x05,0x70,0x27,0x90,0x06,0xab,0xe0,0x90,0x9e,0x50,0xf0,0x90,0x06,0xaa,0xe0,
-0x90,0x9e,0x5f,0xf0,0x90,0x9e,0x50,0xe0,0x70,0x07,0x90,0x9e,0x5f,0xe0,0xff,0x80,
-0x05,0x90,0x9e,0x50,0xe0,0xff,0x90,0x9e,0x50,0xef,0xf0,0x90,0x9e,0x52,0xe0,0x60,
-0x03,0xe0,0x14,0xf0,0x90,0x9e,0x51,0xe4,0xf0,0x90,0x01,0x57,0xf0,0x90,0x01,0x3c,
-0x74,0x02,0xf0,0x90,0x9e,0x63,0xe0,0x54,0xfd,0xf0,0xe0,0x54,0xef,0xf0,0xe5,0x74,
-0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,0x45,0x53,0xe5,0x2e,0x30,0xe3,0x28,0x90,
-0x01,0x36,0x74,0x08,0xf0,0xe5,0x73,0x64,0x01,0x70,0x1c,0xe5,0x74,0x60,0x18,0x90,
-0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x89,0xe4,0x12,0x44,
-0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,0x2f,0x90,0x01,0x36,0x74,
-0x10,0xf0,0xe5,0x73,0x64,0x01,0x70,0x23,0xe5,0x74,0x60,0x1f,0x90,0x01,0x57,0xe4,
-0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x62,0xe4,0xf0,0x90,0x9e,0x63,0xe0,
-0x54,0xfd,0xf0,0xe0,0x54,0x07,0x70,0x03,0x12,0x44,0xd3,0xe5,0x2e,0x30,0xe5,0x1f,
-0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x73,0xb4,0x01,0x14,0xe5,0x74,0x60,0x10,0x90,
-0x9e,0x61,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xdc,0x80,0x03,0x12,0x44,0x80,0xe5,
-0x2e,0x30,0xe6,0x1e,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x73,0xb4,0x01,0x13,0xe5,
-0x74,0x60,0x0f,0x90,0x9e,0x63,0xe0,0x54,0xfe,0xf0,0xe0,0x54,0x07,0x70,0x03,0x12,
-0x44,0xd3,0xe5,0x2f,0x30,0xe1,0x08,0x90,0x01,0x37,0x74,0x02,0xf0,0x11,0xe0,0x74,
-0x13,0x04,0x90,0x01,0xc4,0xf0,0x74,0x49,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,
-0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,
-0xd0,0xf0,0xd0,0xe0,0x32,0x12,0x44,0xf1,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,
-0x74,0x01,0xf0,0x80,0x32,0x90,0x9e,0x5d,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,
-0xf0,0x80,0x24,0x90,0x9e,0x5c,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,
-0x16,0x90,0x9e,0x60,0xe0,0x54,0x0f,0xd3,0x94,0x04,0x40,0x08,0x90,0x01,0xb9,0x74,
-0x08,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x08,0xf0,0x7f,0x00,0x22,
-0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x7f,
-0x10,0xdf,0xfe,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,
-0x9e,0xad,0xed,0xf0,0x90,0x9e,0xac,0xef,0xf0,0xd3,0x94,0x07,0x50,0x63,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,
-0xe0,0x5f,0xf0,0xb1,0x28,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x46,0xe0,0x4f,0xf0,0xb1,0x28,0x90,0x9e,
-0xad,0xe0,0x60,0x16,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x45,0x80,0x66,0x90,0x9e,0xac,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x45,0x80,
-0x6b,0x90,0x9e,0xac,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xb1,0x20,0x90,0x9e,0xac,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x43,0xe0,0x4f,
-0xf0,0xb1,0x28,0x90,0x9e,0xad,0xe0,0x60,0x1b,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,
-0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,0x42,
-0xe0,0x4f,0x80,0x1a,0x90,0x9e,0xac,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x42,0xe0,0x5f,0xf0,0xb1,
-0x28,0xd0,0xd0,0x92,0xaf,0x22,0xf0,0x90,0x00,0x45,0xe0,0x54,0xfe,0xfd,0x7f,0x45,
-0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,0x00,0xed,0xf0,0xb1,0x28,
-0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,0x66,0x24,0x02,0x60,0x02,
-0xc1,0xec,0x90,0x9e,0x1a,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,
-0x48,0xd1,0x30,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,0x47,0xd1,0x30,0x90,0x00,
-0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,0x9e,0x1a,0xf0,0x90,0x9e,
-0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,
-0xd9,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0xd1,0x30,0x90,0x00,0x45,0xe0,
-0x54,0xef,0xfd,0x7f,0x45,0xd1,0x30,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,
-0x80,0x38,0x90,0x9e,0x1a,0x74,0x01,0xf0,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x00,0x45,0xe0,0x44,
-0x20,0xfd,0x7f,0x45,0xd1,0x30,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0xd1,
-0x30,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0xd1,0x30,0x22,0x90,0x01,0x30,
-0xe4,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,0xa3,0xf0,
-0xa3,0xf0,0xfd,0x7f,0x50,0xd1,0x30,0xe4,0xfd,0x7f,0x51,0xd1,0x30,0xe4,0xfd,0x7f,
-0x52,0xd1,0x30,0xe4,0xfd,0x7f,0x53,0xc1,0x30,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x90,
-0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x1d,0xf0,0xe0,0x30,0xe0,0x4b,0x90,0x9e,0x14,
-0x74,0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x16,0x12,0x2a,0x7f,
-0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xe4,0xfc,0xfd,
-0xfe,0x78,0x1a,0x12,0x2a,0x6c,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,
-0x16,0x12,0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x2a,
-0x7f,0x90,0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x14,0xf0,0x7f,0x80,0x7e,
-0x08,0x12,0x27,0xde,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,
-0x2a,0x7f,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,
-0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,
-0xd1,0x30,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0xd1,0x30,0x90,0x00,0x46,
-0xe0,0x44,0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,0x47,0xd1,0x30,
-0x90,0x00,0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0xd1,0x30,0x90,0x00,0x46,0xe0,0x54,
-0xef,0xfd,0x7f,0x46,0xd1,0x30,0xe4,0x90,0x9e,0x1a,0xf0,0x22,0xe4,0x90,0x9e,0x74,
-0xf0,0x90,0x00,0x80,0xe0,0x44,0x80,0xfd,0x7f,0x80,0xc1,0x30,0x12,0x45,0xb1,0xbf,
-0x01,0x10,0x90,0x02,0x09,0xe0,0xff,0x7d,0x01,0x12,0x47,0xfe,0x90,0x04,0x1f,0x74,
-0x20,0xf0,0x22,0x75,0x28,0x33,0xe4,0xf5,0x29,0x75,0x2a,0x03,0xf5,0x2b,0x90,0x01,
-0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,0xa3,0xe5,0x2a,0xf0,0xa3,0xe5,0x2b,0xf0,
-0x22,0xe4,0x90,0x9e,0x31,0xf0,0xa3,0xf0,0x75,0x8e,0x02,0x12,0x4f,0xec,0x12,0x5f,
-0x29,0x12,0x5f,0x3c,0xe4,0xf5,0x12,0x12,0x6d,0x11,0x12,0x77,0x25,0x12,0x60,0x1b,
-0x12,0x32,0x3d,0x12,0x76,0x16,0x11,0x13,0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,
-0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,0xf0,0xa3,0xe4,0xf0,0x12,0x5f,0x74,0x12,
-0x5e,0x77,0x12,0x45,0x00,0x12,0x7c,0xe5,0x90,0x9e,0x33,0xe5,0xd9,0xf0,0x12,0x5e,
-0xfa,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,0xf0,0x12,0x4d,0x28,0x75,0xe8,0x03,
-0x43,0xa8,0x85,0xd2,0xaf,0x90,0x01,0xbe,0xe0,0x04,0xf0,0x90,0x01,0xc0,0xe0,0x04,
-0xf0,0x90,0x9e,0x31,0xe0,0x64,0x01,0xf0,0x24,0x31,0x90,0x01,0xc4,0xf0,0x74,0x50,
-0xa3,0xf0,0xe5,0x12,0x30,0xe4,0x09,0xc2,0xaf,0x53,0x12,0xef,0xd2,0xaf,0x71,0x1f,
-0xe5,0x12,0x30,0xe6,0x16,0xc2,0xaf,0x53,0x12,0xbf,0xd2,0xaf,0x12,0x66,0xbc,0x90,
-0x9e,0x1e,0xe0,0xff,0x60,0x03,0xb4,0x01,0x02,0x31,0x15,0x90,0x9e,0x1e,0xe0,0x70,
-0x03,0x12,0x7d,0x43,0x11,0xe8,0x80,0xb9,0x90,0x06,0x34,0xe0,0x60,0x26,0x14,0x70,
-0x1b,0x7b,0x01,0x7a,0x06,0x79,0x35,0x7f,0xf9,0x7e,0x01,0x12,0x75,0xb4,0xbf,0x01,
-0x09,0x90,0x06,0x35,0xe0,0x54,0x0f,0xf0,0x80,0x05,0x80,0x00,0x02,0x75,0xa5,0xe4,
-0x90,0x06,0x34,0xf0,0x22,0x90,0x9e,0x15,0xe0,0xc3,0x94,0x14,0x50,0x05,0xe0,0x04,
-0xf0,0x21,0xcd,0x90,0x9e,0x15,0xe0,0x64,0x14,0x60,0x02,0x21,0xcd,0x90,0x9e,0x24,
-0xe0,0x70,0x25,0x90,0x9e,0x27,0xe0,0x70,0x1f,0x90,0x9e,0x25,0xe0,0x70,0x19,0x90,
-0x9e,0x28,0xe0,0x70,0x13,0x90,0x9e,0x26,0xe0,0x70,0x0d,0x90,0x9e,0x29,0xe0,0x70,
-0x07,0x90,0x04,0xfd,0xe0,0x54,0xfe,0xf0,0x90,0x9e,0x24,0xe0,0x90,0x04,0x44,0xf0,
-0x90,0x9e,0x25,0xe0,0x90,0x04,0x45,0xf0,0x90,0x9e,0x26,0xe0,0x90,0x04,0x46,0xf0,
-0xa3,0xe4,0xf0,0x90,0x9e,0x27,0xe0,0x90,0x04,0x48,0xf0,0x90,0x9e,0x28,0xe0,0x90,
-0x04,0x49,0xf0,0x90,0x9e,0x29,0xe0,0x90,0x04,0x4a,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,
-0x10,0xe0,0x90,0x04,0x4c,0xf0,0x90,0x9e,0x11,0xe0,0x90,0x04,0x4d,0xf0,0x90,0x9e,
-0x12,0xe0,0x90,0x04,0x4e,0xf0,0x90,0x9e,0x13,0xe0,0x90,0x04,0x4f,0xf0,0xe4,0x90,
-0x9e,0x15,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,
-0x9e,0x24,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x05,0x60,
-0xe0,0x90,0x9e,0x34,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x35,0xf0,0x90,0x05,0x62,
-0xe0,0x90,0x9e,0x36,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0x2d,
-0xe0,0xff,0x90,0x9e,0x37,0xe0,0xfe,0xd3,0x9f,0x50,0x0b,0x90,0x9e,0x2d,0xe0,0xc3,
-0x9e,0xd3,0x94,0x01,0x40,0x10,0x90,0x9e,0x1b,0xe0,0xb4,0x01,0x02,0x80,0x03,0x90,
-0x9e,0x1f,0xe0,0xff,0x51,0x17,0x22,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,
-0x05,0x61,0xe0,0x90,0x9e,0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,
-0x05,0x63,0xe0,0x90,0x9e,0x2d,0xf0,0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x2b,0xe0,
-0xd3,0x9e,0x40,0x1e,0xe0,0x2f,0xf0,0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,0xe0,
-0xb4,0xff,0x03,0xe4,0xf0,0x22,0x90,0x9e,0x2d,0x80,0x03,0x90,0x9e,0x2c,0xe0,0x04,
-0xf0,0x22,0x90,0x9e,0x2b,0xe0,0x2f,0xf0,0x22,0x90,0x9e,0x1c,0xe0,0x64,0x01,0x60,
-0x02,0x61,0x1e,0x90,0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x12,0x4e,0x30,0x90,
-0x9e,0x2e,0xe0,0x70,0x32,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x06,
-0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x9e,0x1b,0xe0,0xff,0x51,0x17,0x90,0x9e,0x2e,
-0x74,0x01,0x12,0x4e,0x26,0x80,0x40,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x70,0x38,0x90,
-0x9e,0x1f,0xe0,0xff,0x51,0x17,0xe4,0x90,0x9e,0x2e,0xf0,0x90,0x00,0x45,0xe0,0x44,
-0x01,0xfd,0x7f,0x45,0x12,0x4e,0x30,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,
-0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,
-0x2a,0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,
-0x2c,0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,
-0x01,0xcc,0xe0,0x54,0x0f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfd,0x70,0x02,
-0x81,0x60,0x90,0x9e,0xae,0xe0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xef,0x5d,0x70,0x02,0x81,0x59,0x90,0x9e,
-0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd0,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x35,0xf0,
-0x75,0x1e,0x01,0x75,0x1f,0x9e,0x75,0x20,0x35,0x75,0x21,0x01,0x7b,0x01,0x7a,0x9e,
-0x79,0x36,0x12,0x45,0x09,0x90,0x9e,0x36,0xe0,0xff,0xc4,0x13,0x13,0x13,0x54,0x01,
-0x90,0x9e,0xae,0x30,0xe0,0x59,0xe0,0x75,0xf0,0x02,0x90,0x00,0x88,0x12,0x43,0x5f,
-0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x02,0x90,0x00,0x89,0x12,
-0x43,0x5f,0xe0,0x90,0x9e,0x38,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,
-0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x39,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0xae,0xe0,0x75,
-0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3b,0xf0,0x80,0x33,0xe0,
-0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,
-0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x38,0xf0,
-0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,
-0x39,0xf0,0xef,0x54,0x7f,0xff,0x7b,0x01,0x7a,0x9e,0x79,0x37,0x91,0x61,0x90,0x9e,
-0x34,0xe0,0xff,0x90,0x9e,0xae,0xe0,0xfe,0x74,0x01,0xa8,0x06,0x08,0x80,0x02,0xc3,
-0x33,0xd8,0xfc,0xf4,0x5f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0xae,0xe0,0xff,0x74,0x01,
-0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0x90,0x01,0xcc,0xf0,0x90,0x9e,0xae,
-0xe0,0x04,0xf0,0xe0,0x54,0x03,0xf0,0x61,0x29,0x90,0x01,0xc6,0xe0,0x44,0x02,0xf0,
-0x22,0x90,0x9e,0x3c,0x12,0x43,0x8b,0xef,0x12,0x43,0x94,0x54,0x9c,0x01,0x54,0xa5,
-0x02,0x54,0xc0,0x03,0x54,0xc9,0x05,0x54,0xd2,0x06,0x55,0x20,0x07,0x54,0xda,0x09,
-0x54,0xe3,0x0c,0x54,0xec,0x0d,0x54,0xf5,0x0e,0x54,0xfe,0x1b,0x55,0x07,0x1c,0x55,
-0x10,0x2c,0x54,0xae,0x2d,0x54,0xb7,0x2e,0x00,0x00,0x55,0x19,0x90,0x9e,0x3c,0x12,
-0x43,0x6b,0x02,0x61,0x1d,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x6f,0x33,0x90,0x9e,
-0x3c,0x12,0x43,0x6b,0x02,0x6f,0x39,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x6f,0x81,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x6f,0xaf,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x6e,0xe3,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x80,0x47,0x90,0x9e,0x3c,0x12,0x43,0x6b,
-0x02,0x6f,0xf7,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x7e,0x1b,0x90,0x9e,0x3c,0x12,
-0x43,0x6b,0x02,0x7c,0xb2,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x4f,0x19,0x90,0x9e,
-0x3c,0x12,0x43,0x6b,0x02,0x6f,0x2b,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x6f,0x12,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x74,0x85,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,
-0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,
-0x54,0x07,0xfd,0xaf,0x06,0x90,0x9e,0x3f,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,
-0x8b,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,
-0x54,0x0f,0x90,0x9e,0x44,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,
-0x13,0x54,0x03,0x90,0x9e,0x45,0xf0,0x90,0x9e,0x3f,0xe0,0xff,0x75,0xf0,0x09,0x90,
-0x96,0x46,0x12,0x43,0x5f,0xad,0x82,0xac,0x83,0x90,0x9e,0x46,0xec,0xf0,0xa3,0xed,
-0xf0,0xef,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,
-0xa3,0x12,0x43,0x8b,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,
-0x54,0x0f,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x41,
-0x12,0x43,0x6b,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,
-0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x01,
-0x12,0x42,0x20,0xff,0x90,0x9e,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,
-0xef,0xf0,0x12,0x29,0xd9,0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,
-0x90,0x9e,0x3f,0xe0,0xff,0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
-0x90,0x9e,0x40,0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,
-0xf0,0x75,0xf0,0x09,0xef,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,
-0x45,0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,
-0x59,0xef,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x5b,0x8f,
-0x5c,0xe5,0x59,0x75,0xf0,0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x5d,
-0x01,0xf5,0x5e,0x89,0x5f,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x46,0x12,0x43,0x5f,
-0xaf,0x82,0x85,0x83,0x60,0x8f,0x61,0xe5,0x59,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,
-0x74,0x96,0x35,0xf0,0x75,0x62,0x01,0xf5,0x63,0x89,0x64,0x74,0x82,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x12,0x43,0x94,0x56,0xaf,0x00,0x56,0xc4,0x01,
-0x56,0xd9,0x02,0x56,0xee,0x03,0x57,0x18,0x04,0x57,0x2d,0x05,0x57,0x42,0x06,0x57,
-0x69,0x0c,0x57,0x97,0x0d,0x57,0xc4,0x0e,0x57,0xf1,0x0f,0x00,0x00,0x58,0x25,0xe5,
-0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,
-0x74,0x15,0x80,0x3c,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0x74,0xf0,0xf0,0xa3,0x74,0x10,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,
-0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x59,
-0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,
-0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,
-0xf0,0xa3,0x74,0x8f,0xf0,0x02,0x58,0x25,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,
-0x80,0x12,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,
-0xf0,0xa3,0x74,0x0d,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,
-0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x02,0x58,0x25,0x90,0x04,0x47,0xe0,0xab,0x5d,0xaa,
-0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x46,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,
-0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x45,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,
-0xf0,0x90,0x04,0x44,0x02,0x58,0x1c,0x90,0x04,0x4b,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,
-0x5f,0x12,0x42,0x4d,0x90,0x04,0x4a,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,
-0x01,0x12,0x42,0x5f,0x90,0x04,0x49,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,
-0x04,0x48,0x80,0x58,0x90,0x04,0x4f,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,
-0x4d,0x90,0x04,0x4e,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,
-0x5f,0x90,0x04,0x4d,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x4c,0x80,
-0x2b,0x90,0x04,0x53,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,
-0x52,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,
-0x51,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x5c,0x82,
-0x85,0x5b,0x83,0xa3,0xf0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,
-0x01,0x12,0x29,0xd9,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x29,0xd9,0x5f,0xd0,
-0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0xab,0x5d,0xe5,0x5f,0x24,0x01,0xf9,0xe4,
-0x35,0x5e,0xfa,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,0xab,0x62,0xaa,
-0x63,0xa9,0x64,0x90,0x00,0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,
-0x12,0x42,0x4d,0x85,0x5c,0x82,0x85,0x5b,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,
-0x61,0x82,0x85,0x60,0x83,0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x5c,
-0x82,0x85,0x5b,0x83,0xa3,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,
-0x83,0xa3,0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x59,0x25,0xe0,0x24,
-0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,
-0x5a,0x0b,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x5d,0x15,
-0x5a,0xe5,0x5a,0xc3,0x94,0x00,0x50,0xca,0x80,0x56,0xe5,0x59,0x25,0xe0,0x24,0xc6,
-0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x5a,
-0x0f,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
-0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,
-0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x4b,0xe5,0x5a,0xf0,0x80,0x10,
-0x15,0x5a,0xe5,0x5a,0xc3,0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x4b,0xf0,
-0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,
-0xe0,0x4e,0x60,0x3b,0xe4,0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,
-0x4c,0xe5,0x5a,0xf0,0x80,0x5b,0x05,0x5a,0xe5,0x5a,0xb4,0x10,0xca,0x80,0x52,0xe5,
-0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,
-0x4e,0x60,0x39,0xe4,0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,
-0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,
-0x10,0x80,0x0a,0x05,0x5a,0xe5,0x5a,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x4c,
-0xf0,0x90,0x9e,0x4b,0xe0,0xff,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,
-0x5f,0xef,0xf0,0x90,0x9e,0x4c,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x49,
-0x12,0x43,0x5f,0xee,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0xd3,0x9f,0x40,0x05,0x90,0x9e,0x4b,0x51,0x74,0x74,0x84,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x04,0xf5,0x83,0xe0,0xff,0x90,0x9e,0x4c,0xe0,0xfe,0xef,0xc3,0x9e,0x50,
-0x02,0x51,0x74,0x90,0x9e,0x4b,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,
-0x74,0x03,0xf0,0x22,0xef,0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,
-0x22,0xef,0xd3,0x94,0x03,0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,
-0x96,0x43,0xf0,0x22,0xe0,0xfd,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
-0x83,0xed,0xf0,0xaf,0x59,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,
-0x50,0x0e,0x74,0x84,0x2f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,
-0x74,0xa6,0x2f,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x78,0xef,
-0xf0,0x24,0xa6,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x79,0xf0,0x7b,
-0x01,0x7a,0x9e,0x79,0x78,0x7d,0x02,0x51,0xce,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,
-0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x97,0x12,0x43,0x8b,0x90,0x9e,0x9a,0xe0,0x54,
-0xf0,0x44,0x06,0xff,0xf0,0xed,0x54,0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,
-0xf0,0x90,0x9e,0x97,0x12,0x43,0x6b,0x90,0x9e,0x94,0x12,0x43,0x8b,0x7b,0x01,0x7a,
-0x9e,0x79,0x9a,0x71,0xd9,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x50,0x8d,0x51,0xe5,0x51,
-0x54,0x1f,0xf5,0x56,0x74,0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xf5,
-0x54,0x90,0x04,0xfd,0xe0,0xb4,0x01,0x05,0x75,0x57,0x03,0x80,0x03,0x75,0x57,0x01,
-0xeb,0xc3,0x95,0x57,0x40,0x04,0xaf,0x50,0x80,0x33,0xe5,0x54,0x25,0x53,0xf5,0x55,
-0xe5,0x56,0x90,0x41,0xd6,0x93,0xff,0xe5,0x55,0xd3,0x9f,0x74,0x01,0x40,0x11,0x25,
-0x50,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xad,0x51,0xaf,0x50,0x41,0x85,
-0x25,0x50,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe5,0x55,0xf0,0x22,0xad,0x07,0x75,
-0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,
-0xe4,0x34,0x9d,0xf5,0x83,0xe0,0x54,0x1f,0xf5,0x58,0xd3,0x9f,0x40,0x02,0x8f,0x58,
-0xe5,0x58,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,
-0x74,0x01,0x93,0xff,0xe5,0x58,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,
-0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,
-0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,
-0xaf,0x05,0xad,0x58,0x51,0x85,0xaf,0x58,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0x91,0x12,0x43,0x8b,0x90,0x9e,0x75,0xe0,0x64,0x02,0x60,0x6e,0x90,0x9e,
-0x75,0xe0,0x64,0x01,0x70,0x66,0x90,0x9e,0xb0,0xe0,0xff,0x04,0xf0,0x90,0x9e,0x91,
-0x12,0x43,0x6b,0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x7f,0xaf,0x7e,0x01,0x91,0x82,
-0xef,0x60,0x49,0x90,0x9e,0x91,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x75,
-0x21,0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x45,0x09,0x90,0x9e,0x94,0x12,0x43,
-0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x90,0x9e,0x91,0x12,0x43,0x6b,0x12,0x29,0xd9,
-0xff,0xc4,0x54,0x0f,0xf5,0x21,0x7b,0x01,0x7a,0x01,0x79,0xa2,0x12,0x45,0x09,0x90,
-0x01,0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,0xf0,0xd0,0xd0,0x92,0xaf,
-0x22,0x90,0x9e,0x2f,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,0x0f,0x44,0x80,0xf0,0x7b,
-0x00,0x7a,0x00,0x79,0x13,0x90,0x9e,0x94,0x12,0x43,0x8b,0x0b,0x7a,0x9e,0x79,0x2f,
-0x61,0xd9,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0xa0,0xee,0xf0,0xa3,0xef,
-0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0xa0,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,
-0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,0xa3,0xe0,0x94,0xe8,0x90,0x9e,0xa2,0xe0,0x94,
-0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x7f,0x00,0x80,0x15,0x90,0x9e,
-0xa2,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,
-0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xac,0x07,0xec,0xc3,0x94,0x20,0x50,0x0d,
-0x74,0x84,0x2c,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x80,0x0b,0x74,0xa6,0x2c,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,0x64,0xe5,0x64,0x54,0x1f,
-0xff,0x90,0x9e,0x40,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x49,0x12,0x43,0x5f,0xe0,
-0x90,0x9e,0x42,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xfe,
-0x90,0x9e,0x43,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x44,0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,0x24,
-0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x46,0xcb,
-0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,0x40,0x0a,0x90,0x9e,0x43,0xe0,0x90,0x9e,0x40,
-0xf0,0xf5,0x64,0xed,0x70,0x02,0xc1,0x2e,0x90,0x9e,0x41,0xed,0xf0,0xe5,0x64,0x30,
-0xe6,0x0a,0x90,0x9e,0x40,0xe0,0xf5,0x64,0xa3,0xe0,0x14,0xf0,0x90,0x9e,0x41,0xe0,
-0x70,0x02,0xc1,0x2e,0x90,0x9e,0x40,0xe0,0xff,0xd3,0x94,0x00,0x50,0x02,0xc1,0x2e,
-0xe4,0x90,0x9e,0x3f,0xf0,0xef,0x14,0x90,0x9e,0x3e,0xf0,0x90,0x9e,0x42,0xe0,0xfd,
-0x90,0x9e,0x3e,0xe0,0xff,0xd3,0x9d,0x40,0x6b,0xef,0x94,0x10,0x40,0x21,0xef,0x24,
-0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0x90,0x9e,0x46,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x27,0x90,
-0x9e,0x3e,0xe0,0xff,0xc3,0x94,0x10,0x50,0x33,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,
-0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x44,0xe0,0x5e,0xfe,
-0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,0x9e,0x3e,0xe0,0xf5,0x64,0xa3,0xe0,0x04,0xf0,
-0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,0x3f,0xe0,0x6f,0x60,0x08,0x90,0x9e,0x3e,0xe0,
-0x14,0xf0,0x80,0x87,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,0x3f,0xe0,0xc3,0x9f,0x50,
-0x0d,0x90,0x9e,0x3e,0xe0,0xb5,0x05,0x06,0x90,0x9e,0x42,0xe0,0xf5,0x64,0xe5,0x64,
-0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,
-0x93,0xff,0xe5,0x64,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,
-0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xec,0x25,0xe0,
-0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x04,
-0xad,0x64,0x51,0x85,0xaf,0x64,0x22,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,
-0x90,0x01,0x38,0xe5,0x30,0xf0,0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0x12,
-0x44,0xf1,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x52,0x90,
-0x9e,0x63,0xe0,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x42,0x90,
-0x9e,0x60,0xe0,0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,
-0x80,0x2f,0x90,0x9e,0x63,0xe0,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,
-0x20,0x90,0x9e,0x63,0xe0,0x30,0xe4,0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x11,
-0x90,0x9e,0x52,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x20,0xf0,0x80,0x03,0x7f,0x01,
-0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,0x7f,0x00,0x22,0x90,0x01,0x3c,0x74,0xff,0xf0,
-0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xfd,0x7f,
-0x54,0x12,0x4e,0x30,0x7d,0xff,0x7f,0x55,0x12,0x4e,0x30,0x7d,0xff,0x7f,0x56,0x12,
-0x4e,0x30,0x7d,0xff,0x7f,0x57,0x02,0x4e,0x30,0x90,0x00,0x02,0xe0,0x54,0xe0,0x90,
-0x9e,0x75,0x60,0x04,0x74,0x01,0xf0,0x22,0x74,0x02,0xf0,0x22,0x90,0x00,0xf3,0xe0,
-0x30,0xe3,0x08,0x90,0x9e,0x77,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9e,0x77,0xf0,
-0x90,0x9e,0x77,0xe0,0xb4,0x01,0x12,0x90,0x00,0xf2,0xe0,0x30,0xe7,0x0b,0x90,0x9e,
-0x64,0x74,0xfd,0xf0,0xa3,0x74,0x33,0xf0,0x22,0x90,0x9e,0x64,0x74,0xfd,0xf0,0xa3,
-0x74,0x2f,0xf0,0x22,0x90,0x01,0x64,0x74,0xa0,0xf0,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,
-0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,
-0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0x7b,0xf0,0x74,0x5f,
-0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,0x90,0x00,0x55,0xe0,0x5f,0xf5,
-0x3d,0xe5,0x3d,0x30,0xe6,0x18,0x74,0x40,0xf0,0x90,0x9e,0x1d,0xe0,0x54,0x03,0xff,
-0xbf,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0x60,0x05,0x7f,0x01,0x12,0x4e,0x45,0xe5,0x3d,
-0x30,0xe7,0x15,0x90,0x00,0x55,0x74,0x80,0xf0,0x90,0x9e,0x1d,0xe0,0x54,0x03,0xff,
-0xbf,0x03,0x05,0x7f,0x02,0x12,0x4e,0x45,0x90,0x01,0xc4,0x74,0x7b,0xf0,0x74,0x5f,
-0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,
-0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x8f,0x6b,0x8c,
-0x6c,0x8d,0x6d,0x22,0x8f,0x6e,0x8c,0x6f,0x8d,0x70,0x22,0xe4,0xf5,0x73,0x90,0x9e,
-0x63,0xf0,0xf5,0x74,0x90,0x9e,0x60,0x74,0x0c,0xf0,0x90,0x9e,0x5e,0xf0,0xe4,0x90,
-0x9e,0x61,0xf0,0x90,0x9e,0x5d,0xf0,0x90,0x9e,0x5c,0xf0,0x90,0x9e,0x5f,0x04,0xf0,
-0x90,0x9e,0x50,0xf0,0xe4,0x90,0x9e,0x62,0xf0,0x90,0x9e,0x52,0xf0,0x90,0x9e,0x5a,
-0x74,0x07,0xf0,0xe4,0x90,0x9e,0x51,0xf0,0x90,0x9e,0x58,0xf0,0xa3,0x74,0x02,0xf0,
-0x90,0x9e,0x56,0x14,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x55,0x74,0x14,0xf0,0x90,
-0x9e,0x5b,0x74,0x05,0xf0,0xe4,0x90,0x9e,0x54,0xf0,0x90,0x9e,0x4f,0xf0,0x90,0x9e,
-0x76,0xf0,0x22,0xe4,0x90,0x9e,0x62,0xf0,0x90,0x9e,0x51,0xf0,0x90,0x9e,0x63,0xf0,
-0x22,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x11,0x83,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x12,
-0x29,0xd9,0xf5,0x74,0x14,0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,
-0x40,0x7f,0x01,0x80,0x3a,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,
-0x20,0xfd,0xe4,0xff,0x11,0xf2,0x80,0x27,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,
-0x02,0x12,0x42,0x20,0xfd,0x7f,0x01,0x11,0xf2,0x1f,0x80,0x13,0xab,0x59,0xaa,0x5a,
-0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x7f,0x02,0x11,0xf2,0xe4,0xff,0x31,
-0x46,0x22,0xef,0x24,0xfe,0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x5f,0x74,0x01,0xf0,
-0x80,0x16,0xed,0x70,0x0a,0x90,0x9e,0x5b,0xe0,0x90,0x9e,0x5f,0xf0,0x80,0x05,0x90,
-0x9e,0x5f,0xed,0xf0,0x90,0x9e,0x5f,0xe0,0x90,0x9e,0x50,0xf0,0x22,0xd3,0x10,0xaf,
-0x01,0xc3,0xc0,0xd0,0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x61,0xf0,0x90,0x00,
-0x03,0x12,0x42,0x20,0x90,0x9e,0x4f,0xf0,0x12,0x29,0xd9,0x65,0x74,0x60,0x02,0x11,
-0x91,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x64,0x01,0x70,0x30,0x7d,0x7c,0x7f,0x02,0x12,
-0x36,0x75,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,
-0x3c,0x74,0x02,0xf0,0x12,0x47,0x16,0xe4,0xff,0x12,0x48,0x8f,0x90,0x06,0x04,0xe0,
-0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,0x7c,
-0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x36,0xe6,0x7d,0x02,0x7f,0x03,0x12,
-0x36,0xe6,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,0xf0,
-0x90,0x9e,0x58,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0xe5,0x73,0x30,0xe0,0x1b,0x90,
-0x9e,0x52,0xe0,0x70,0x1a,0xe0,0x04,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0x0f,0xc3,0x94,
-0x04,0x50,0x0c,0x7d,0x01,0x7f,0x04,0x02,0x47,0x1a,0xe4,0x90,0x9e,0x52,0xf0,0x22,
-0xe5,0x12,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x5e,0x90,0x9e,0x60,0xe0,
-0x54,0x0f,0xd3,0x94,0x01,0x40,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x4b,0x90,
-0x02,0x87,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x3d,0x90,0x9e,0x75,
-0xe0,0xb4,0x02,0x10,0x90,0x9e,0x64,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,
-0x60,0x17,0x80,0x26,0x90,0x9e,0x75,0xe0,0xb4,0x01,0x0e,0x90,0x01,0xaf,0xe0,0x60,
-0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x11,0x90,0x9e,0x54,0xe0,0x70,0x08,0x90,
-0x01,0xb9,0x74,0x10,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x02,0xf0,
-0x7f,0x00,0x22,0x90,0x06,0x04,0xe0,0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,0x73,0xb4,
-0x01,0x04,0xe4,0xff,0x51,0x62,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x0c,
-0xf0,0x22,0x8f,0x76,0x90,0x9e,0x5e,0xe0,0x90,0x01,0xc1,0xf0,0xa3,0xe5,0x12,0xf0,
-0x12,0x45,0xb1,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x69,0x12,0x47,0xfa,0xe5,0x76,
-0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,
-0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,
-0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x90,0x9e,0xaf,0xef,0xf0,0x51,0xc5,0x90,0x9e,
-0xaf,0xe0,0x60,0x05,0x90,0x05,0x22,0xe4,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,
-0xe0,0x44,0x04,0xf0,0x22,0x90,0x9d,0xff,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,
-0x0b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,0xe4,0xfd,0xff,0x12,0x34,
-0x81,0x90,0x9e,0x77,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,
-0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x22,0x8f,0x27,0xe4,0x90,0x9e,0xa8,
-0xf0,0xa3,0xf0,0x90,0x01,0x09,0xe0,0x7f,0x00,0x30,0xe7,0x02,0x7f,0x01,0xef,0x65,
-0x27,0x60,0x3e,0xc3,0x90,0x9e,0xa9,0xe0,0x94,0x88,0x90,0x9e,0xa8,0xe0,0x94,0x13,
-0x40,0x08,0x90,0x01,0xc6,0xe0,0x44,0x80,0xf0,0x22,0x90,0x9e,0xa8,0xe4,0x75,0xf0,
-0x01,0x12,0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x37,0x54,0xd3,0x90,0x9e,0xa9,0xe0,
-0x94,0x32,0x90,0x9e,0xa8,0xe0,0x94,0x00,0x40,0xb9,0x90,0x01,0xc7,0xe0,0x30,0xe0,
-0xb2,0x22,0x90,0x9e,0x5e,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x01,0xf0,0x12,0x45,0x01,
-0x12,0x45,0x02,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,0x22,0x90,0x9e,0x60,0xe0,
-0x30,0xe6,0x1c,0xe0,0x54,0x0f,0xff,0x90,0x9e,0x4e,0xe0,0xfe,0x4f,0x90,0x01,0x2f,
-0xf0,0xee,0x64,0x80,0x90,0x9e,0x4e,0xf0,0x90,0x9e,0x60,0xe0,0x54,0xbf,0xf0,0x22,
-0x8f,0x75,0x12,0x45,0xb1,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x6a,0x12,0x47,0xfa,
-0xe5,0x75,0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,
-0x10,0xf0,0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,
-0xef,0xf0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xe4,0x90,0x9e,0x2f,0xf0,0xe5,0x74,
-0x60,0x6a,0xe5,0x73,0x64,0x01,0x70,0x64,0xe5,0x74,0x14,0x60,0x29,0x24,0xfd,0x60,
-0x25,0x24,0x02,0x24,0xfb,0x50,0x02,0x80,0x23,0x90,0x9e,0x50,0xe0,0x14,0xf0,0xe0,
-0x60,0x04,0xa3,0xe0,0x60,0x16,0x90,0x9e,0x50,0xe0,0x70,0x0a,0x90,0x9e,0x5f,0xe0,
-0x90,0x9e,0x50,0xf0,0x80,0x00,0x90,0x9e,0x2f,0x74,0x01,0xf0,0x90,0x9e,0x2f,0xe0,
-0x60,0x2a,0x90,0x9e,0x63,0xe0,0x44,0x10,0xf0,0xe4,0x90,0x9e,0x89,0xf0,0x90,0x9e,
-0x5a,0x12,0x44,0x56,0x90,0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x5e,0xe0,0x54,0x0f,
-0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x1a,0x22,0xef,0xc3,0x94,
-0x20,0x50,0x39,0xef,0x30,0xe0,0x17,0xed,0xc4,0x54,0xf0,0xfd,0xef,0xc3,0x13,0xfe,
-0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x0f,0x80,0x10,0xef,0xc3,
-0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,
-0xa4,0x2e,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x4d,0xf0,0x22,0xad,0x07,0xed,
-0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
-0x80,0x0b,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,
-0x64,0xe5,0x64,0x54,0x1f,0xfc,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,
-0xe0,0xff,0x90,0x9e,0x3e,0xf0,0xed,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,
-0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x3f,0xcb,0xf0,0xa3,0xeb,0xf0,0xed,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,
-0x41,0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,
-0xf5,0x83,0xe4,0x93,0xfa,0x74,0x01,0x93,0xfb,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,
-0xe4,0x34,0x95,0xf5,0x83,0xea,0xf0,0xa3,0xeb,0xf0,0xec,0xc3,0x9f,0x40,0x02,0xa1,
-0xd4,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x04,0xfb,0x90,
-0x9e,0x3e,0xe0,0xff,0xeb,0xd3,0x9f,0x40,0x02,0xc1,0x05,0xeb,0xc3,0x94,0x10,0x40,
-0x21,0xeb,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,
-0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x3f,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,
-0x70,0x23,0xeb,0xc3,0x94,0x10,0x50,0x39,0x74,0x01,0x7e,0x00,0xa8,0x03,0x08,0x80,
-0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x41,0xe0,0x5e,0xfe,0xa3,
-0xe0,0x5f,0x4e,0x60,0x1c,0xeb,0x64,0x13,0x60,0x08,0xeb,0x64,0x12,0x60,0x03,0xbb,
-0x11,0x09,0x90,0x9e,0x3f,0xe0,0x30,0xe0,0x02,0x7b,0x18,0xac,0x03,0x8c,0x64,0x80,
-0x34,0x0b,0x80,0x8b,0x90,0x9e,0x3e,0xe0,0xfb,0x6c,0x70,0x69,0x74,0x67,0x2d,0xf5,
-0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,
-0x43,0x5f,0xe0,0xb4,0x01,0x0c,0xe5,0x64,0x20,0xe6,0x07,0xec,0x44,0x40,0xf5,0x64,
-0x80,0x03,0xaf,0x64,0x22,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,
-0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
-0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
-0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
-0xa3,0xef,0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,0x90,0x9e,0x3e,0xe0,0xff,0x74,
-0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0xac,0x07,0x8f,0x64,0xec,
-0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,
-0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,
-0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,
-0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x64,0x22,
-0x74,0x01,0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xaf,0x05,0xe5,0x64,
-0x44,0x80,0xfd,0x12,0x5a,0x85,0xe5,0x64,0x44,0x80,0xff,0x22,0xe4,0xf5,0x59,0xe5,
-0x59,0xb4,0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,0x95,0x01,0xe0,0xff,0x90,
-0x9a,0xc5,0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4b,
-0x12,0x43,0x5f,0xe0,0x64,0x01,0x60,0x03,0x02,0x6d,0x04,0xe5,0x59,0x25,0xe0,0x24,
-0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0xd3,0x94,0x00,0xee,
-0x94,0x00,0x50,0x03,0x02,0x6d,0x04,0xe5,0x59,0x94,0x20,0x40,0x09,0x90,0x9a,0xc5,
-0xe0,0x60,0x03,0x02,0x6d,0x10,0xe5,0x59,0x75,0xf0,0x0a,0xa4,0x24,0x00,0xf9,0x74,
-0x90,0x35,0xf0,0x75,0x5e,0x01,0xf5,0x5f,0x89,0x60,0xe5,0x59,0x25,0xe0,0x24,0x80,
-0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x38,0xcf,0xf0,
-0xa3,0xef,0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,
-0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x3a,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,0xc3,0x94,
-0x20,0x50,0x14,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,
-0x3f,0x90,0x9e,0x34,0xf0,0x80,0x12,0x74,0xa6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfe,0x54,0x1f,
-0xa3,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0x90,0x9e,
-0x3d,0xf0,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xc3,0x94,
-0x05,0x40,0x03,0x02,0x69,0xdd,0x90,0x9e,0x3d,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x9f,
-0x40,0x13,0x90,0x9e,0x3d,0xe0,0x90,0x9e,0x35,0xf0,0xee,0x54,0x40,0xfe,0x90,0x9e,
-0x34,0xf0,0xef,0x4e,0xf0,0x90,0x04,0xfd,0xe0,0x64,0x01,0x70,0x29,0x90,0x9e,0x35,
-0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,
-0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,0xda,0x80,0x30,0x90,0x9e,0x35,
-0xe0,0x90,0x40,0xf6,0x80,0x27,0x90,0x9e,0x35,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,
-0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,
-0xef,0x90,0x41,0x12,0x80,0x07,0x90,0x9e,0x35,0xe0,0x90,0x41,0x2e,0x93,0x90,0x9e,
-0x3c,0xf0,0x90,0x9e,0x3c,0xe0,0x75,0xf0,0x06,0xa4,0x24,0x50,0xf9,0x74,0x40,0x35,
-0xf0,0x75,0x5b,0xff,0xf5,0x5c,0x89,0x5d,0x90,0x9e,0x34,0xe0,0x90,0x41,0xf2,0x93,
-0xff,0xd3,0x90,0x9e,0x3b,0xe0,0x9f,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x09,0xe4,
-0xfd,0xaf,0x59,0x12,0x5c,0xd8,0x81,0x9b,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,
-0xe4,0x34,0x95,0xf5,0x83,0xe0,0xf5,0x61,0xa3,0xe0,0xf5,0x62,0xab,0x5b,0xaa,0x5c,
-0xa9,0x5d,0x12,0x29,0xd9,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,0x42,
-0x97,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,
-0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x7e,0x00,
-0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,
-0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,
-0xa9,0x5d,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,
-0x60,0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,
-0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x03,
-0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x06,0x12,
-0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,
-0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x7e,
-0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,0xac,0xf0,
-0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,
-0x5c,0xa9,0x5d,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,
-0xfc,0xa3,0xe0,0xfd,0x12,0x29,0xf2,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,0x0c,
-0xe5,0x62,0x9f,0xf5,0x62,0xe5,0x61,0x9e,0xf5,0x61,0x80,0x05,0xe4,0xf5,0x61,0xf5,
-0x62,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe5,0x61,
-0xf0,0xa3,0xe5,0x62,0xf0,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
-0x34,0x41,0xf5,0x83,0xc3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,0x07,
-0xaf,0x59,0x12,0x64,0xbd,0x81,0x6f,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x9e,0xf5,
-0x82,0xe4,0x34,0x41,0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,
-0x50,0x02,0x81,0x6f,0x7d,0x01,0xaf,0x59,0x12,0x5c,0xd8,0x81,0x6f,0x74,0xe6,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,0x61,0x78,
-0x90,0x96,0x43,0xe0,0xff,0xb4,0x03,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x19,0x40,
-0x3d,0x80,0x2e,0xef,0xb4,0x02,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x11,0x40,0x2e,
-0x80,0x1f,0x90,0x96,0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,
-0x0a,0x40,0x1b,0x80,0x0c,0xef,0x70,0x11,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x03,0x40,
-0x0d,0x90,0x9a,0x84,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,0x74,0x84,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0x74,0x44,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,0x61,0x25,
-0x90,0x9a,0x84,0xe0,0x64,0x01,0x60,0x02,0x61,0x25,0x74,0x85,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x9a,0xf5,0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,0xe4,0x33,
-0xfe,0x74,0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,0xd3,0x9f,
-0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,0x33,0xfe,
-0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,0xee,0x64,
-0x80,0xf8,0x74,0x80,0x98,0x50,0x14,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,
-0xf5,0x83,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,0x63,0x05,
-0x80,0x0e,0xef,0xd3,0x94,0x39,0x40,0x05,0x75,0x63,0x03,0x80,0x03,0x75,0x63,0x01,
-0x74,0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,0x85,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,
-0xe0,0x04,0xf0,0x80,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x35,0xe0,0xff,0x74,0x26,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,
-0xf5,0x83,0xe5,0x63,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4c,0x12,0x43,0x5f,
-0xe0,0xb4,0x01,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0xad,0x63,0x81,0x6a,0xec,0x64,0x06,0x60,0x02,0x81,0x6f,0xf5,
-0x61,0xf5,0x62,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,0xa3,
-0xe0,0xfd,0x12,0x29,0xf2,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0xe4,0xf5,0x5a,0xab,0x5e,
-0xaa,0x5f,0xa9,0x60,0x75,0xf0,0x02,0xe5,0x5a,0xa4,0xf5,0x82,0x85,0xf0,0x83,0x12,
-0x42,0xc2,0xfd,0xac,0xf0,0xe5,0x5a,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,0x12,0x29,
-0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,0xe0,
-0x95,0x62,0x90,0x9e,0x36,0xe0,0x95,0x61,0x40,0x07,0x05,0x5a,0xe5,0x5a,0xb4,0x05,
-0xbd,0xe5,0x5a,0xc3,0x13,0xf5,0x5a,0xe5,0x63,0xb4,0x01,0x06,0xe5,0x5a,0x70,0x46,
-0x80,0x13,0xe5,0x63,0xb4,0x03,0x15,0xe5,0x5a,0x70,0x05,0x75,0x63,0x03,0x80,0x39,
-0xe5,0x5a,0xb4,0x01,0x05,0x75,0x63,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x63,0xb4,0x05,
-0x28,0xe5,0x5a,0x70,0x05,0x75,0x63,0x05,0x80,0x0d,0xe5,0x5a,0xb4,0x01,0x05,0x75,
-0x63,0x03,0x80,0x03,0x75,0x63,0x01,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,0x9e,
-0x3a,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,
-0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0x74,0x84,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x98,0xf5,0x83,0xe5,0x63,0xf0,0xfd,0xaf,0x59,0x12,0x64,0x7d,0x74,
-0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,0x74,0xe6,
-0x50,0x0e,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,0x80,0x0b,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xab,0x5e,0xaa,0x5f,0xa9,
-0x60,0xe4,0xf5,0xf0,0x12,0x42,0xfa,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,
-0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x04,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,
-0x00,0x06,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x08,0xe4,0xf5,0xf0,0x12,0x43,
-0x19,0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,
-0xa3,0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,
-0xf0,0xa3,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,
-0xe4,0xf0,0xa3,0xf0,0x05,0x59,0xe5,0x59,0xc3,0x94,0x40,0x50,0x03,0x02,0x66,0xbf,
-0x22,0x90,0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,0xf0,0xa3,0x74,0x0f,0xf0,0xa3,
-0xe4,0xf0,0xfd,0x74,0xa4,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe4,0xf0,0x0d,
-0xbd,0x10,0xf0,0xe4,0x90,0x9a,0xc5,0xf0,0x90,0x95,0x01,0x04,0xf0,0xe4,0xfd,0x75,
-0xf0,0x0a,0xed,0x90,0x90,0x00,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,
-0xed,0x90,0x90,0x02,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,
-0x90,0x04,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x06,
-0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x08,0x12,0x43,
-0x5f,0xe4,0xf0,0xa3,0xf0,0x74,0x26,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0x74,
-0x13,0xf0,0x74,0x85,0x2d,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0x74,0x84,
-0x2d,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xed,0x25,0xe0,0x24,0x80,0xf5,
-0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,
-0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,
-0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x44,0xf5,
-0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,
-0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,
-0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x74,0x86,0x2d,0xf5,0x82,0xe4,
-0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x46,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,
-0xe4,0xf0,0x74,0xe6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x41,
-0xc4,0x93,0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,0x74,0x01,0x93,0x2f,0xff,0xe4,
-0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4b,
-0x12,0x43,0x5f,0x74,0x01,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,
-0x74,0x01,0xf0,0x74,0x82,0x2d,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0c,0xf0,
-0x75,0xf0,0x09,0xed,0x90,0x96,0x46,0x12,0x43,0x5f,0x74,0xff,0xf0,0xa3,0xf0,0x75,
-0xf0,0x09,0xed,0x90,0x96,0x44,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0x74,0x0f,0xf0,0x75,
-0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0x74,0x13,0xf0,0x75,0xf0,0x09,0xed,
-0x90,0x96,0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,0x94,0x20,0x50,0x0f,0x74,0x84,
-0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,0xf0,0x80,0x0d,0x74,0xa6,0x2d,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,0x0d,0xed,0x64,0x40,0x60,0x02,
-0xa1,0x3f,0x22,0x12,0x29,0xd9,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,0x02,
-0x12,0x42,0x20,0xff,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xef,
-0xf0,0x22,0xe5,0x59,0xb4,0x40,0x0a,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x96,0x42,
-0xf0,0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,0xc4,
-0x13,0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x02,0x55,0x35,0x12,0x29,0xd9,0x90,0x95,
-0x01,0xf0,0x22,0x12,0x29,0xd9,0xf5,0x73,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0xff,
-0x30,0xe0,0x25,0x12,0x29,0xd9,0x90,0x9e,0x56,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,
-0x90,0x9e,0x57,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x55,0xf0,0x90,0x00,0x03,
-0x12,0x42,0x20,0x90,0x9e,0x5b,0xf0,0x22,0x90,0x9e,0x56,0x74,0x01,0xf0,0x90,0x9e,
-0x57,0x74,0x03,0xf0,0x90,0x9e,0x55,0x74,0x14,0xf0,0x90,0x9e,0x5b,0x74,0x05,0xf0,
-0x22,0x12,0x29,0xd9,0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x5a,0xf0,0x90,
-0x00,0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x58,0xe4,0xf0,0xa3,0xef,0xf0,0x22,0x90,
-0x9e,0x5a,0x74,0x07,0xf0,0x90,0x9e,0x58,0xe4,0xf0,0xa3,0x74,0x02,0xf0,0x22,0x90,
-0x02,0x09,0xe0,0xfd,0x12,0x29,0xd9,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x67,0xf0,
-0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x68,0xf0,0x90,0x00,0x02,
-0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x69,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,
-0xff,0xed,0x2f,0x90,0x9e,0x6a,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0xae,0x05,
-0xed,0x2f,0x90,0x9e,0x6b,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
-0x3f,0x12,0x43,0x8b,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,
-0xfa,0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,
-0x00,0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,0x29,0xd9,0xff,0x60,0x2c,0xb5,0x22,
-0x16,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0x65,0x24,0x70,
-0x04,0xe5,0x23,0x65,0xf0,0x60,0x23,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,
-0x12,0x42,0xc2,0xff,0xae,0xf0,0x11,0x6f,0x80,0x10,0x90,0x9e,0x3f,0x12,0x43,0x6b,
-0x12,0x29,0xd9,0x65,0x22,0x60,0x03,0x12,0x44,0xca,0xd0,0xd0,0x92,0xaf,0x22,0x90,
-0x9e,0x42,0xee,0xf0,0xa3,0xef,0xf0,0x75,0x22,0x01,0x8e,0x23,0xf5,0x24,0xe4,0xfd,
-0x7f,0x0b,0x11,0xb1,0xe4,0xfd,0x7f,0x02,0x11,0xb1,0x31,0x87,0xe4,0xff,0x31,0x7b,
-0xe4,0xf5,0x26,0x90,0x01,0xc9,0xe5,0x26,0xf0,0x90,0x9e,0x42,0xe0,0xfc,0xa3,0xe0,
-0xfd,0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,0x7d,0x01,0x7f,0x60,0x7e,0x01,0x02,0x35,
-0xab,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,0x90,0x9e,0x44,
-0xef,0xf0,0xd3,0x94,0x07,0x50,0x4f,0xa3,0xe0,0x70,0x1a,0x90,0x9e,0x44,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,
-0xe0,0x5f,0xf0,0x80,0x17,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,0x12,0x4d,0x28,0x90,
-0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,
-0xff,0x90,0x00,0x46,0x80,0x5a,0x90,0x9e,0x44,0xe0,0x24,0xf8,0xf0,0xa3,0xe0,0x70,
-0x1d,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,
-0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,0x1a,0x90,0x9e,
-0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,
-0xf0,0xff,0x90,0x00,0x43,0xe0,0x4f,0xf0,0x12,0x4d,0x28,0x90,0x9e,0x44,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,
-0xe0,0x5f,0xf0,0x12,0x4d,0x28,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x01,0xca,0xe5,0x25,
-0xf0,0xef,0x60,0x02,0x31,0xe8,0x22,0x7f,0x0b,0x51,0x08,0xef,0x65,0x25,0x60,0x10,
-0xe5,0x25,0xb4,0x01,0x05,0xe4,0xf5,0x25,0x80,0x03,0x75,0x25,0x01,0x7f,0x01,0x22,
-0x7f,0x00,0x22,0xe5,0x22,0x64,0x01,0x70,0x3e,0x31,0x87,0xbf,0x01,0x04,0x7f,0x01,
-0x31,0x7b,0x90,0x00,0x46,0xe0,0x44,0x04,0xfd,0x7f,0x46,0x12,0x4e,0x30,0x90,0x00,
-0x44,0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x12,0x4e,0x30,0x90,0x00,0x46,0xe0,0x54,0xfb,
-0xfd,0x7f,0x46,0x12,0x4e,0x30,0x7f,0x02,0x51,0x08,0x8f,0x26,0x90,0x01,0xc9,0xe5,
-0x26,0xf0,0xb4,0x01,0x02,0x31,0xe8,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,0xb1,0xf0,
-0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x12,0x4e,0x30,0x90,0x9e,0xb1,0xe0,
-0x44,0xb0,0xfd,0x7f,0x49,0x02,0x4e,0x30,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,
-0x9e,0xb2,0xef,0xf0,0xd3,0x94,0x07,0x50,0x47,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,
-0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0xe0,0x5f,0xf0,0x12,0x4d,
-0x28,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,0x05,0xc3,
-0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,0xfb,0xe4,0xfe,0xef,0x5b,
-0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,0x80,0x44,
-0x90,0x9e,0xb2,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0x12,0x4d,0x20,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,
-0xa8,0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x42,
-0xe0,0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,
-0x13,0xd8,0xf8,0xff,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0x6d,0xe0,0x90,0x9e,0x40,0xf0,0x90,0x9e,0x6e,0xe0,0xf5,0x64,0xa3,0xe0,
-0xf5,0x65,0xe4,0xf5,0x61,0x74,0x70,0x25,0x61,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,
-0xe0,0xff,0x74,0x66,0x25,0x61,0xf8,0xa6,0x07,0x05,0x61,0xe5,0x61,0xb4,0x04,0xe5,
-0x90,0x9e,0x40,0xe0,0x12,0x43,0x94,0x73,0x06,0x00,0x74,0x2e,0x01,0x73,0x0c,0x02,
-0x73,0x0c,0x03,0x73,0x0c,0x04,0x74,0x2e,0x05,0x73,0xfe,0x80,0x74,0x14,0x81,0x74,
-0x2e,0x82,0x00,0x00,0x74,0x2a,0xaf,0x69,0x91,0x35,0x81,0x2e,0x90,0x9e,0x40,0xe0,
-0xff,0xb4,0x02,0x08,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x80,0x0f,0xef,0x90,0x9e,0x3f,
-0xb4,0x03,0x05,0x74,0x02,0xf0,0x80,0x03,0x74,0x04,0xf0,0xc3,0xe5,0x64,0x94,0x08,
-0x50,0x49,0xe4,0xf5,0x61,0x90,0x9e,0x3f,0xe0,0xff,0xe5,0x61,0xc3,0x9f,0x40,0x02,
-0x81,0x2e,0xc3,0xe5,0x64,0x94,0x01,0x50,0x14,0xe5,0x61,0x25,0x65,0xff,0xc3,0x74,
-0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xfd,0x12,0x4e,0x30,0x80,0x1a,0xc3,0x74,0x03,
-0x95,0x61,0x24,0x66,0xf8,0xe6,0xff,0xe5,0x61,0x7c,0x00,0x25,0x65,0xfd,0xec,0x35,
-0x64,0x8d,0x82,0xf5,0x83,0xef,0xf0,0x05,0x61,0x80,0xba,0xc3,0xe5,0x64,0x94,0x10,
-0x40,0x02,0x81,0x2e,0x90,0x9e,0x40,0xe0,0x64,0x04,0x60,0x02,0x81,0x2e,0xaf,0x67,
-0xfc,0xfd,0xfe,0x78,0x10,0x12,0x2a,0x6c,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,
-0xaf,0x66,0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x2a,0x6c,0xd0,0x03,0xd0,0x02,0xd0,
-0x01,0xd0,0x00,0x12,0x43,0x46,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0xaf,0x68,
-0xe4,0xfc,0xfd,0xfe,0x78,0x08,0x12,0x2a,0x6c,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,
-0x00,0x12,0x43,0x46,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0xaf,0x69,0xe4,0xfc,
-0xfd,0xfe,0x12,0x43,0x46,0xa3,0x12,0x2a,0x7f,0x90,0x9e,0x41,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0xaf,0x65,0xae,0x64,0x12,0x2f,0xd9,0x80,0x30,0xe5,0x68,
-0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,
-0x37,0x54,0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,
-0xf5,0x62,0xaf,0x63,0xfe,0x12,0x36,0xcb,0x80,0x04,0x7f,0x00,0x80,0x02,0x7f,0x01,
-0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x6a,0xe4,0x90,0x9e,0x45,0xf0,0xe5,0x6a,0x14,0xfe,
-0x90,0x9e,0x45,0xe0,0xff,0xc3,0x9e,0x50,0x0e,0xef,0x04,0xfd,0x12,0x34,0xb7,0x90,
-0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,0x7d,0xff,0x12,0x34,0xb7,
-0x90,0x9e,0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,0x94,0xff,0x50,0x0f,0xe0,
-0xff,0x04,0xfd,0x12,0x34,0xb7,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe8,0xad,0x6a,
-0x7f,0xff,0x02,0x34,0xb7,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xe4,0xf5,0x5b,0x75,
-0x5c,0x04,0xf5,0x5d,0xf5,0x5f,0xf5,0x60,0x90,0x02,0x09,0xe0,0xff,0x12,0x29,0xd9,
-0xfe,0xef,0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,0x75,0x5a,0x80,0x80,0x05,
-0xe4,0xf5,0x59,0xf5,0x5a,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x74,0x20,0x25,
-0x5b,0xf5,0x5b,0xad,0x5a,0xe5,0x5b,0x2d,0xff,0x24,0x01,0xf5,0x82,0xe4,0x34,0xfc,
-0xf5,0x83,0xe0,0x90,0x9e,0x6d,0xf0,0x74,0x02,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,
-0x83,0xe0,0xfe,0xe5,0x5b,0x2d,0x24,0x03,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,
-0x24,0x00,0xff,0xe4,0x3e,0x90,0x9e,0x6e,0xf0,0xa3,0xef,0xf0,0x7f,0x04,0xe5,0x5b,
-0x25,0x5a,0x2f,0x24,0x00,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0xfe,0x74,0x6c,
-0x2f,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,0xee,0xf0,0x0f,0xbf,0x08,0xe0,0x51,0xa9,
-0xef,0x70,0x3f,0x90,0x01,0xc3,0xe0,0x60,0x25,0xc3,0xe5,0x60,0x94,0xe8,0xe5,0x5f,
-0x94,0x03,0x40,0x09,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x80,0x63,0x05,0x60,0xe5,
-0x60,0x70,0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,0xd5,0x90,0x01,
-0xc6,0xe0,0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,0x80,0x43,0x74,0xff,0xf0,
-0x80,0x3e,0xe5,0x5b,0xb4,0x78,0x23,0xe4,0xf5,0x5b,0x05,0x5e,0xe5,0x5a,0x64,0x80,
-0x45,0x59,0x70,0x06,0xf5,0x59,0xf5,0x5a,0x80,0x06,0x75,0x59,0x00,0x75,0x5a,0x80,
-0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x80,0x06,0x74,0x08,0x25,0x5b,0xf5,0x5b,
-0xe5,0x5d,0x15,0x5d,0x70,0x02,0x15,0x5c,0xe5,0x5d,0x45,0x5c,0x60,0x02,0x81,0xc3,
-0xd0,0xd0,0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,
-0xa3,0xf0,0x22,0x22,0x8e,0x59,0x8f,0x5a,0x8b,0x5b,0x8a,0x5c,0x89,0x5d,0xe4,0x90,
-0x9e,0x34,0xf0,0xef,0x90,0x00,0x31,0xf0,0x12,0x4d,0x28,0xe5,0x59,0x54,0x03,0xff,
-0x90,0x00,0x32,0xe0,0x54,0xfc,0x4f,0xf0,0x12,0x4d,0x28,0x90,0x00,0x33,0xe0,0x54,
-0x7f,0xf0,0x12,0x4d,0x28,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x34,0xe0,
-0xc3,0x94,0x64,0x50,0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x34,0xe0,0xc3,0x94,
-0x64,0x50,0x10,0x90,0x00,0x30,0xe0,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x12,0x42,0x4d,
-0x7f,0x01,0x22,0x7f,0x00,0x22,0xe4,0xf5,0x25,0x22,0xe4,0x90,0x9e,0xaa,0xf0,0xa3,
-0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,
-0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,0x90,0x9e,0xab,0xe0,0x94,0xe8,0x90,0x9e,0xaa,
-0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,0x22,0x7f,0x32,0x7e,0x00,0x12,0x37,0x54,0x90,
-0x9e,0xaa,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x80,0xc6,0x7f,0x78,0x7e,0x08,0x12,
-0x27,0xde,0x90,0x9d,0xff,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,
-0x9e,0x03,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x07,0x12,
-0x2a,0x7f,0x90,0x9e,0x77,0xe0,0x90,0x9d,0xff,0xb4,0x01,0x0d,0x12,0x43,0x53,0xef,
-0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,0x80,0x07,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,
-0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,
-0x03,0x12,0x43,0x53,0xef,0x54,0x0f,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,0x43,0x53,0xef,0x44,0x02,0xff,
-0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x7f,0x70,
-0x7e,0x0e,0x12,0x27,0xde,0x90,0x9e,0x0b,0x12,0x2a,0x7f,0x90,0x80,0x85,0x12,0x2a,
-0x8b,0x00,0x1b,0x25,0xa0,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,
-0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0xff,0x12,0x34,0x81,0x90,0x9e,0x77,0xe0,
-0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,
-0x01,0x12,0x34,0x81,0x22,0x90,0x9e,0x77,0xe0,0x90,0x9e,0x0f,0xf0,0x22,0xef,0x70,
-0x03,0x02,0x78,0xe6,0x90,0x9e,0x0f,0xe0,0x60,0x03,0x02,0x7c,0xb1,0x90,0x9d,0xfb,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x2f,0xd9,
-0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x44,0x7e,0x08,
-0x12,0x2f,0xd9,0x90,0x9d,0xab,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xaf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xb3,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xb7,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x9d,0xbf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x7c,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xc3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xc7,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xcb,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,
-0xcf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd0,0x7e,
-0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xdb,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xdf,0x12,0x43,0x53,
-0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xe3,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xec,0x7e,0x0e,
-0x12,0x2f,0xd9,0x90,0x9d,0xeb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9d,0xef,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x90,0x9d,0xf3,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x90,0x9d,0xf7,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x2f,0xd9,0x90,
-0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,0x0f,0xe0,0x64,0x01,0x60,0x02,0x81,0xb1,
-0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xfb,0x12,0x2a,0x7f,0x7f,0x44,0x7e,
-0x08,0x12,0x27,0xde,0x90,0x9d,0xa7,0x12,0x2a,0x7f,0x7f,0x5c,0x7e,0x08,0x12,0x27,
-0xde,0x90,0x9d,0xab,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,
-0xaf,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xb3,0x12,0x2a,
-0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xb7,0x12,0x2a,0x7f,0x7f,0x78,
-0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbb,0x12,0x2a,0x7f,0x7f,0x7c,0x7e,0x0e,0x12,
-0x27,0xde,0x90,0x9d,0xbf,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x0e,0x12,0x27,0xde,0x90,
-0x9d,0xc3,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xc7,0x12,
-0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcb,0x12,0x2a,0x7f,0x7f,
-0x8c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcf,0x12,0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,
-0x12,0x27,0xde,0x90,0x9d,0xd3,0x12,0x2a,0x7f,0x7f,0xd4,0x7e,0x0e,0x12,0x27,0xde,
-0x90,0x9d,0xd7,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xdb,
-0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xdf,0x12,0x2a,0x7f,
-0x7f,0xe0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe3,0x12,0x2a,0x7f,0x7f,0xec,0x7e,
-0x0e,0x12,0x27,0xde,0x90,0x9d,0xe7,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,
-0xde,0x90,0x9d,0xeb,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9d,
-0xef,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9d,0xf3,0x12,0x2a,
-0x7f,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xf7,0x12,0x2a,0x7f,0x7f,0x8c,
-0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,
-0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x2f,0xd9,0x90,
-0x80,0x85,0x12,0x2a,0x8b,0x00,0x01,0x00,0x00,0x7f,0x44,0x7e,0x08,0x12,0x2f,0xd9,
-0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0xdb,0x25,0xa4,0x7f,0x5c,0x7e,0x08,0x12,0x2f,
-0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x6c,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x70,0x7e,0x0e,
-0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x74,0x7e,
-0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x78,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,
-0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,
-0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x63,0xdb,0x25,
-0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,
-0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,
-0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,
-0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,
-0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,
-0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,
-0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xdc,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,
-0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xe0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x80,0x85,0x12,0x2a,0x8b,0x24,0xdb,0x25,0xa4,0x7f,0xec,0x7e,0x0e,0x12,0x2f,0xd9,
-0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,
-0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,
-0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,
-0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,
-0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,
-0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,
-0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,
-0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,
-0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,
-0x9e,0xa4,0x12,0x43,0x53,0xed,0x54,0x0f,0xfd,0xec,0x54,0xf0,0xfc,0x90,0x9e,0xa4,
-0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x44,0x10,0xfd,0xec,0x44,0x01,
-0xfc,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x08,0x12,0x27,
-0xde,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,
-0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,
-0x01,0xff,0xec,0x90,0x9e,0xa4,0x12,0x2a,0x7f,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x2f,0xd9,0xe4,0x90,0x9e,0x0f,
-0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x1e,0xf0,0xe0,0x60,0x04,0xe0,
-0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,0x59,0xc2,0xaf,0x90,0x00,0x47,0xe0,0x54,
-0xfb,0xfd,0x7f,0x47,0x12,0x4e,0x30,0x7d,0x40,0x7f,0x01,0x12,0x36,0xaf,0xe5,0x59,
-0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,0x45,0x12,0x4e,0x30,0x90,0x04,0xfd,0xe4,
-0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,0x9e,0x24,0xf0,0x90,0x9e,0x27,0xf0,0x90,
-0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x26,0xf0,0x90,0x9e,0x29,0xf0,0x90,
-0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x15,0xf0,0x90,
-0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,0x9e,0x2e,0xf0,0x90,0x9e,0x1f,0xf0,0x90,
-0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,0x00,0x51,0xe0,0x44,0xc0,0xfd,0x7f,0x51,
-0x02,0x4e,0x30,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x60,0x08,0x90,0x9e,0x1c,0xe0,0x60,
-0x02,0xc1,0x1a,0x90,0x9e,0x10,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,
-0x3b,0x90,0x9e,0x11,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,
-0x90,0x9e,0x12,0xe0,0xc3,0x94,0xff,0x50,0x0a,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x11,
-0xf0,0x80,0x15,0x90,0x9e,0x13,0xe0,0xc3,0x94,0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,
-0x90,0x9e,0x12,0xf0,0x90,0x9e,0x11,0xf0,0x90,0x9e,0x10,0xf0,0x90,0x00,0x44,0xe0,
-0x54,0x0c,0x60,0x76,0xe0,0x30,0xe2,0x32,0x90,0x9e,0x24,0xe0,0xc3,0x94,0xff,0x50,
-0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x25,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,
-0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x26,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,
-0xf0,0xe4,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x24,0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,
-0x32,0x90,0x9e,0x27,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,
-0x9e,0x28,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,
-0x29,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x28,0xf0,0x90,
-0x9e,0x27,0xf0,0x90,0x04,0xfd,0xe0,0x44,0x01,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,
-0x20,0x90,0x9e,0x1c,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0x25,0xe0,0x25,0xe0,0x90,
-0x9e,0x1b,0xf0,0x12,0x29,0xd9,0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1f,0xf0,0x90,0x05,
-0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x2b,0xf0,0x90,0x05,
-0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x2d,0xf0,0xa2,0xaf,
-0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x1b,0xe0,0xff,0x12,0x52,0x17,
-0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,0x1c,0xe0,0x70,0x02,0xe1,0x25,
-0x90,0x9e,0x1b,0xe0,0x70,0x02,0xe1,0x25,0x90,0x9e,0x1f,0xe0,0x70,0x02,0xe1,0x25,
-0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x2e,0x74,0x01,0xf0,
-0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x12,0x4e,0x27,0x90,0x00,0x46,0xe0,0x44,
-0x01,0xfd,0x7f,0x46,0x12,0x4e,0x30,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,
-0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,
-0x45,0x12,0x4e,0x30,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,
-0x05,0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,
-0x05,0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,0x33,0x90,
-0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,0xe4,0xff,
-0x12,0x37,0x00,0x80,0x2d,0x90,0x9e,0x1c,0xe0,0x70,0x2f,0x90,0x9e,0x2e,0x12,0x4e,
-0x26,0x90,0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x12,0x4e,0x30,0x90,0x05,0x22,
-0xe4,0xf0,0xa2,0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,
-0x36,0x92,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x22,0x00,0x0e,0x56,};
-#else
-
-
-// =================== v80 TSMC COMMON 2011-12-14 =======================
-u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
-0xc1,0x88,0x02,0x00,0x50,0x00,0x00,0x00,0x12,0x14,0x15,0x52,0xd4,0x3e,0x00,0x00,
-0x25,0x86,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x48,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x5e,0xff,0x00,0x00,0x00,0x00,0x00,0xa1,0xd4,0x00,0x00,0x00,
-0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
-0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
-0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
-0x12,0x11,0x10,0x08,0x00,0x10,0x1a,0x19,0x18,0x10,0x00,0x18,0x22,0x21,0x20,0x18,
-0x00,0x20,0x22,0x21,0x20,0x10,0x00,0x20,0x22,0x21,0x20,0x08,0x00,0x20,0x22,0x21,
-0x1c,0x08,0x00,0x20,0x22,0x21,0x14,0x08,0x00,0x20,0x22,0x20,0x18,0x08,0x00,0x20,
-0x31,0x30,0x20,0x10,0x00,0x30,0x31,0x30,0x18,0x00,0x00,0x30,0x31,0x2f,0x10,0x10,
-0x00,0x30,0x31,0x2c,0x10,0x10,0x00,0x30,0x31,0x28,0x10,0x00,0x00,0x30,0x31,0x20,
-0x10,0x00,0x00,0x30,0x31,0x10,0x10,0x00,0x00,0x30,0x04,0x04,0x04,0x05,0x04,0x04,
-0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,
-0x05,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x05,0x05,0x05,0x05,0x06,0x07,0x0a,0x0b,
-0x0d,0x10,0x04,0x05,0x05,0x06,0x06,0x09,0x0c,0x11,0x08,0x08,0x09,0x09,0x0a,0x0c,
-0x10,0x11,0x04,0x04,0x04,0x05,0x04,0x04,0x05,0x07,0x07,0x07,0x08,0x0a,0x04,0x04,
-0x04,0x04,0x06,0x0a,0x0b,0x0d,0x05,0x05,0x07,0x07,0x08,0x0b,0x0d,0x0f,0x04,0x04,
-0x04,0x05,0x07,0x07,0x09,0x09,0x0c,0x0e,0x10,0x12,0x04,0x04,0x05,0x05,0x06,0x0a,
-0x11,0x13,0x09,0x09,0x09,0x09,0x0c,0x0e,0x11,0x13,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x24,0x26,0x2a,0x18,0x1a,0x1d,0x1f,0x21,0x27,0x29,0x2a,0x00,0x00,
-0x00,0x1f,0x23,0x28,0x2a,0x2c,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x18,
-0x00,0x24,0x00,0x30,0x00,0x48,0x00,0x60,0x00,0x90,0x00,0xc0,0x00,0xd8,0x00,0x50,
-0x00,0x78,0x00,0xa0,0x00,0xc8,0x01,0x40,0x01,0x90,0x01,0xe0,0x02,0x30,0x01,0x2c,
-0x01,0x40,0x01,0xe0,0x02,0xd0,0x03,0xe8,0x04,0xb0,0x06,0x40,0x07,0xd0,0x00,0x02,
-0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x0c,0x00,0x12,0x00,0x18,0x00,0x24,0x00,0x30,
-0x00,0x48,0x00,0x60,0x00,0x6c,0x00,0x28,0x00,0x3c,0x00,0x50,0x00,0x64,0x00,0xa0,
-0x00,0xc8,0x00,0xf0,0x01,0x18,0x00,0x64,0x00,0xa0,0x00,0xf0,0x01,0x68,0x01,0xf4,
-0x02,0x58,0x03,0x20,0x03,0xe8,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x04,0x04,
-0x05,0x07,0x04,0x04,0x07,0x0a,0x0a,0x0c,0x0c,0x12,0x05,0x07,0x07,0x08,0x0b,0x12,
-0x24,0x3c,0x01,0x01,0x01,0x01,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x01,0x02,
-0x03,0x04,0x05,0x06,0x07,0x08,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x20,0x1e,
-0x1c,0x18,0x10,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0xbb,0x01,0x0c,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,0x22,0x50,
-0x06,0xe9,0x25,0x82,0xf8,0xe6,0x22,0xbb,0xfe,0x06,0xe9,0x25,0x82,0xf8,0xe2,0x22,
-0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe4,0x93,0x22,0xbb,0x01,0x06,
-0x89,0x82,0x8a,0x83,0xf0,0x22,0x50,0x02,0xf7,0x22,0xbb,0xfe,0x01,0xf3,0x22,0xf8,
-0xbb,0x01,0x0d,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0x22,
-0x50,0x06,0xe9,0x25,0x82,0xc8,0xf6,0x22,0xbb,0xfe,0x05,0xe9,0x25,0x82,0xc8,0xf2,
-0x22,0xc5,0xf0,0xf8,0xa3,0xe0,0x28,0xf0,0xc5,0xf0,0xf8,0xe5,0x82,0x15,0x82,0x70,
-0x02,0x15,0x83,0xe0,0x38,0xf0,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xe0,0xf5,
-0xf0,0xa3,0xe0,0x22,0x50,0x06,0x87,0xf0,0x09,0xe7,0x19,0x22,0xbb,0xfe,0x07,0xe3,
-0xf5,0xf0,0x09,0xe3,0x19,0x22,0x89,0x82,0x8a,0x83,0xe4,0x93,0xf5,0xf0,0x74,0x01,
-0x93,0x22,0xbb,0x01,0x10,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,
-0xf5,0xf0,0xa3,0xe0,0x22,0x50,0x09,0xe9,0x25,0x82,0xf8,0x86,0xf0,0x08,0xe6,0x22,
-0xbb,0xfe,0x0a,0xe9,0x25,0x82,0xf8,0xe2,0xf5,0xf0,0x08,0xe2,0x22,0xe5,0x83,0x2a,
-0xf5,0x83,0xe9,0x93,0xf5,0xf0,0xa3,0xe9,0x93,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,
-0x83,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x06,0xf7,0x09,0xa7,0xf0,0x19,0x22,0xbb,
-0xfe,0x06,0xf3,0xe5,0xf0,0x09,0xf3,0x19,0x22,0xf8,0xbb,0x01,0x11,0xe5,0x82,0x29,
-0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x09,
-0xe9,0x25,0x82,0xc8,0xf6,0x08,0xa6,0xf0,0x22,0xbb,0xfe,0x09,0xe9,0x25,0x82,0xc8,
-0xf2,0xe5,0xf0,0x08,0xf2,0x22,0xef,0x4b,0xff,0xee,0x4a,0xfe,0xed,0x49,0xfd,0xec,
-0x48,0xfc,0x22,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xa4,
-0x25,0x82,0xf5,0x82,0xe5,0xf0,0x35,0x83,0xf5,0x83,0x22,0xe0,0xfb,0xa3,0xe0,0xfa,
-0xa3,0xe0,0xf9,0x22,0xf8,0xe0,0xfb,0xa3,0xa3,0xe0,0xf9,0x25,0xf0,0xf0,0xe5,0x82,
-0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0xfa,0x38,0xf0,0x22,0xeb,0xf0,0xa3,0xea,0xf0,
-0xa3,0xe9,0xf0,0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,
-0x70,0x0d,0xa3,0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,
-0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x50,0x2e,
-0xe4,0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,
-0x80,0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,
-0x44,0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,
-0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x90,0x44,0x3d,0xe4,0x7e,0x01,0x93,0x60,
-0xbc,0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,
-0x0e,0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,
-0xa3,0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,
-0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x4f,
-0x00,0x41,0x9e,0xad,0x00,0x41,0x9e,0x61,0x80,0x41,0x9e,0x62,0x80,0x41,0x9e,0xaf,
-0x00,0x00,0xf0,0x90,0x9e,0x6b,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,
-0x7e,0x01,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x85,0xeb,0xf0,0xa3,0xe0,
-0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x35,0xab,0xd0,0xd0,0x92,0xaf,0x22,
-0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x86,0xf0,
-0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,
-0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x70,
-0x14,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x0c,0x50,0x02,0xf1,0x2b,0x22,0x8f,0x82,
-0x8e,0x83,0xa3,0xa3,0xa3,0xe4,0xf0,0x22,0xe4,0xf5,0x71,0x7f,0x60,0x7e,0x01,0x80,
-0xed,0x7d,0x01,0xaf,0x24,0xe1,0x2f,0xb1,0xa6,0xbf,0x01,0x0f,0x90,0x9e,0x51,0xe0,
-0xff,0xe4,0xfd,0xf1,0xd0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x53,0x23,0xf0,0x43,
-0x23,0x01,0x91,0xfd,0x91,0xfe,0x53,0x23,0xf0,0x43,0x23,0x02,0x22,0x22,0x22,0x22,
-0x22,0x00,0x00,0x02,0x5f,0x91,0x02,0x5f,0x98,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x8b,0x1b,0x8a,0x1c,0x89,0x1d,0x90,0x9e,0x88,0x71,0x8b,0xab,0x1e,0xaa,0x1f,0xa9,
-0x20,0x90,0x9e,0x8b,0x71,0x8b,0xaf,0x21,0x15,0x21,0xef,0x60,0x1b,0x90,0x9e,0x8b,
-0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x29,0xd9,0xff,0x90,0x9e,0x88,0xe4,0x75,0xf0,
-0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x1b,0xaa,0x1c,0xa9,0x1d,0xd0,0xd0,
-0x92,0xaf,0x22,0x90,0x06,0xa9,0xe0,0x90,0x9e,0x2f,0xf0,0xe0,0x54,0xc0,0x70,0x08,
-0x53,0x26,0xfe,0x53,0x26,0xfd,0x91,0xd1,0x90,0x9e,0x2f,0xe0,0x30,0xe6,0x13,0x43,
-0x26,0x01,0x90,0x9e,0x73,0xe0,0x64,0x02,0x60,0x04,0x91,0xd7,0x80,0x07,0x91,0x80,
-0x80,0x03,0x53,0x26,0xfe,0x90,0x9e,0x2f,0xe0,0x30,0xe7,0x16,0x43,0x26,0x02,0xe4,
-0x90,0x9e,0x86,0x91,0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x74,0x74,0x01,
-0xf0,0x22,0x53,0x26,0xfd,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x04,0x1d,
-0xe0,0x60,0x1a,0x90,0x05,0x22,0xe0,0x54,0x90,0x60,0x07,0x90,0x01,0xc6,0xe0,0x44,
-0x40,0xf0,0x90,0x01,0xc7,0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,0x02,0x7f,0x01,0xd0,
-0xd0,0x92,0xaf,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,
-0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,
-0x07,0x90,0x01,0xc4,0x74,0xd4,0xf0,0x74,0x45,0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,
-0x3c,0xe0,0x55,0x30,0xf5,0x34,0xa3,0xe0,0x55,0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,
-0xf5,0x36,0xa3,0xe0,0x55,0x33,0xf5,0x37,0xe5,0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,
-0x74,0x01,0xf0,0xe5,0x34,0x30,0xe1,0x09,0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x66,
-0x09,0xe5,0x34,0x30,0xe2,0x38,0x90,0x01,0x3c,0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,
-0x30,0xe0,0x24,0x90,0x9e,0x86,0xe4,0xf0,0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,
-0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x91,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,
-0x06,0x92,0x74,0x01,0xf0,0x80,0x07,0x90,0x9e,0x71,0xe4,0xf0,0x91,0xd1,0xe5,0x34,
-0x30,0xe3,0x38,0x90,0x01,0x3c,0x74,0x08,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,
-0x90,0x9e,0x86,0xe4,0xf0,0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,
-0x7f,0x5c,0x7e,0x01,0x91,0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,
-0x02,0xf0,0x80,0x07,0x90,0x9e,0x70,0xe4,0xf0,0x91,0xd1,0xe5,0x34,0x30,0xe4,0x09,
-0x90,0x01,0x3c,0x74,0x10,0xf0,0x12,0x73,0x66,0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,
-0x3c,0x74,0x20,0xf0,0x12,0x52,0x64,0xe5,0x35,0x30,0xe0,0x18,0x90,0x01,0x3d,0x74,
-0x01,0xf0,0x90,0x01,0x2f,0xe0,0x44,0x7f,0xf0,0x90,0x00,0x83,0xe0,0xf5,0x24,0x12,
-0x64,0xe3,0x91,0xd1,0xe5,0x35,0x30,0xe2,0x06,0x90,0x01,0x3d,0x74,0x04,0xf0,0xe5,
-0x36,0x30,0xe0,0x06,0x90,0x01,0x3e,0x74,0x01,0xf0,0xe5,0x36,0x30,0xe1,0x06,0x90,
-0x01,0x3e,0x74,0x02,0xf0,0x74,0xd4,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,
-0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,
-0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x7d,0x01,0x7f,0x0c,0x90,
-0x9e,0xa6,0xed,0xf0,0x90,0x9e,0xa5,0xef,0xf0,0x54,0x0f,0xff,0xe5,0x23,0x54,0x0f,
-0x6f,0x60,0x70,0x90,0x9e,0xa5,0xe0,0x30,0xe2,0x2a,0xe5,0x23,0x20,0xe2,0x05,0x7f,
-0x01,0x12,0x63,0xf3,0xe5,0x23,0x30,0xe3,0x09,0x90,0x9e,0xa5,0xe0,0x20,0xe3,0x02,
-0x80,0x52,0xe5,0x23,0x20,0xe3,0x4c,0x90,0x9e,0xa5,0xe0,0x30,0xe3,0x45,0xa3,0xe0,
-0xff,0x02,0x5e,0x95,0xe5,0x23,0x54,0x0f,0xff,0xbf,0x0c,0x0f,0x90,0x9e,0xa5,0xe0,
-0x20,0xe3,0x08,0x12,0x62,0xd7,0xef,0x60,0x2a,0xf1,0xb4,0xe5,0x23,0x54,0x0f,0xff,
-0xbf,0x04,0x10,0x90,0x9e,0xa5,0xe0,0x20,0xe2,0x09,0x12,0x63,0x20,0xef,0x60,0x13,
-0x12,0x61,0x3a,0xe5,0x23,0x54,0x0f,0xff,0xbf,0x02,0x08,0x12,0x63,0x83,0xef,0x60,
-0x02,0x91,0xec,0x22,0x90,0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x22,0xb4,0x01,0x05,
-0x7f,0x01,0x12,0x5e,0x5c,0x53,0x23,0xf0,0x43,0x23,0x04,0x22,0xe0,0xff,0x7d,0x01,
-0x90,0x9e,0x99,0xef,0xf0,0xa3,0xed,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x25,0x60,
-0x05,0xe4,0xff,0x12,0x61,0x1f,0x90,0x9e,0x99,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9b,
-0xe4,0xf0,0xa3,0x74,0x80,0xf0,0x90,0x9e,0x99,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,
-0xf0,0x90,0x04,0x25,0xef,0xf0,0x90,0x9e,0x9a,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,
-0x24,0x0f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9b,0xa3,0xe0,
-0xff,0xfd,0x24,0x08,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,
-0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf7,0xf0,0x90,0x9e,0x9b,0xe0,0xfe,0xa3,0xe0,
-0xff,0x22,0x12,0x45,0xa6,0xbf,0x01,0x10,0x90,0x02,0x09,0xe0,0xff,0x7d,0x01,0x12,
-0x47,0xd0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,
-0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,
-0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0x79,0xf0,0x74,0x48,0xa3,0xf0,
-0x90,0x01,0x34,0xe0,0x55,0x28,0xf5,0x2c,0x90,0x01,0x36,0xe0,0x55,0x2a,0xf5,0x2e,
-0xa3,0xe0,0x55,0x2b,0xf5,0x2f,0xe5,0x2c,0x20,0xe0,0x02,0x41,0x17,0x90,0x01,0x34,
-0x74,0x01,0xf0,0x85,0xd1,0x08,0x85,0xd2,0x09,0x85,0xd3,0x0a,0x85,0xd4,0x0b,0x85,
-0xd5,0x0c,0x85,0xd6,0x0d,0x85,0xd7,0x0e,0x85,0xd9,0x0f,0xe5,0x0f,0x54,0x40,0xc3,
-0x13,0xff,0xe5,0x0e,0x54,0x20,0x6f,0x70,0x02,0x21,0xc9,0xe5,0x0f,0x30,0xe5,0x02,
-0x21,0xc9,0xe5,0x0d,0x54,0x3f,0xf5,0x4d,0xe5,0x08,0x54,0x3f,0xf5,0x4e,0xe5,0x0c,
-0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,
-0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,
-0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4e,
-0xd3,0x94,0x04,0x40,0x03,0x75,0x4e,0x04,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,
-0x12,0x43,0x5f,0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,
-0xe5,0x0e,0x54,0x1f,0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,
-0x00,0x12,0x43,0x5f,0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,
-0xf0,0xe5,0x0f,0x20,0xe6,0x24,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,
-0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,
-0x30,0xe7,0x36,0xaf,0x4d,0x12,0x5b,0x68,0x80,0x2f,0xe5,0x0e,0x54,0x1f,0xff,0xe5,
-0x4d,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
-0x42,0x81,0xe5,0x0a,0x30,0xe7,0x12,0xe5,0x0a,0x54,0x7f,0xfd,0xe5,0x0e,0x54,0x1f,
-0xf5,0x53,0xab,0x4e,0xaf,0x4d,0x12,0x5b,0x05,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,
-0x80,0x45,0x90,0x9e,0x73,0xe0,0x60,0x37,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,
-0x74,0x04,0xf0,0x71,0xc4,0xef,0x64,0x01,0x70,0x2d,0x90,0x9e,0x69,0xe0,0xf5,0x44,
-0x75,0x45,0x00,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x35,0xab,0x90,0x01,0x5b,
-0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x90,0x9e,0x71,0xf0,0x80,0x08,0x71,
-0xc4,0xbf,0x01,0x03,0x12,0x44,0xd1,0xe5,0x2c,0x30,0xe1,0x21,0x90,0x01,0x34,0x74,
-0x02,0xf0,0x85,0xd1,0x13,0x85,0xd2,0x14,0x85,0xd3,0x15,0x85,0xd4,0x16,0x85,0xd5,
-0x17,0x85,0xd6,0x18,0x85,0xd7,0x19,0x85,0xd9,0x1a,0x12,0x5c,0x46,0xe5,0x2c,0x30,
-0xe3,0x06,0x90,0x01,0x34,0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,
-0x74,0x10,0xf0,0x43,0x12,0x10,0xe5,0x2c,0x30,0xe5,0x24,0x90,0x01,0xcf,0xe0,0x30,
-0xe5,0x1d,0xe0,0x54,0xdf,0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,
-0xe8,0x00,0xd1,0xdb,0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0x71,0xdb,0x80,0xfe,0xe5,
-0x2c,0x30,0xe6,0x06,0x90,0x01,0x34,0x74,0x40,0xf0,0xe5,0x2e,0x30,0xe0,0x12,0x90,
-0x9e,0x5f,0x74,0x01,0xf0,0x90,0x01,0x36,0xf0,0x12,0x65,0xa3,0x90,0x9e,0x5f,0xe4,
-0xf0,0xe5,0x2e,0x30,0xe1,0x3b,0x90,0x01,0x36,0x74,0x02,0xf0,0x43,0x12,0x40,0x90,
-0x01,0x02,0xe0,0x54,0x03,0x64,0x01,0x70,0x28,0x90,0x01,0x37,0xe0,0x30,0xe0,0x0a,
-0x74,0x01,0xf0,0x90,0x9e,0x4f,0xe4,0xf0,0x80,0x17,0x90,0x9e,0x4f,0xe0,0x04,0xf0,
-0xe0,0xc3,0x94,0x0a,0x40,0x0b,0xe4,0xf0,0x90,0x04,0x19,0xe0,0x30,0xe0,0x02,0x11,
-0x62,0xe5,0x2e,0x30,0xe2,0x09,0x90,0x01,0x36,0x74,0x04,0xf0,0x12,0x65,0x3b,0xe5,
-0x2e,0x30,0xe3,0x28,0x90,0x01,0x36,0x74,0x08,0xf0,0xe5,0x22,0x64,0x01,0x70,0x1c,
-0xe5,0x25,0x60,0x18,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,
-0x9e,0x86,0xe4,0x12,0x44,0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,
-0x2b,0x90,0x01,0x36,0x74,0x10,0xf0,0xe5,0x22,0xb4,0x01,0x20,0xe5,0x25,0x60,0x1c,
-0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x74,0xe4,0xf0,
-0x53,0x26,0xfd,0xe5,0x26,0x54,0x07,0x70,0x03,0x12,0x44,0xd1,0xe5,0x2e,0x30,0xe5,
-0x1f,0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x22,0xb4,0x01,0x14,0xe5,0x25,0x60,0x10,
-0x90,0x9e,0x73,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xd7,0x80,0x03,0x12,0x44,0x80,
-0xe5,0x2e,0x30,0xe6,0x1b,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x22,0xb4,0x01,0x10,
-0xe5,0x25,0x60,0x0c,0x53,0x26,0xfe,0xe5,0x26,0x54,0x07,0x70,0x03,0x12,0x44,0xd1,
-0xe5,0x2f,0x30,0xe1,0x09,0x90,0x01,0x37,0x74,0x02,0xf0,0x12,0x61,0x92,0x74,0x79,
-0x04,0x90,0x01,0xc4,0xf0,0x74,0x48,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,
-0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,
-0xf0,0xd0,0xe0,0x32,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,0x02,
-0x7f,0x00,0x22,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x7f,0x10,0xdf,0xfe,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x90,0x9e,0xac,0xed,0xf0,0x90,0x9e,0xab,0xef,0xf0,0xd3,0x94,0x07,0x50,
-0x63,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x47,0xe0,0x5f,0xf0,0x71,0xdb,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x46,0xe0,0x4f,0xf0,0x71,
-0xdb,0x90,0x9e,0xac,0xe0,0x60,0x16,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x45,0x80,0x66,0x90,0x9e,0xab,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,
-0x00,0x45,0x80,0x6b,0x90,0x9e,0xab,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0x71,0xd3,0x90,0x9e,0xab,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,
-0x43,0xe0,0x4f,0xf0,0x71,0xdb,0x90,0x9e,0xac,0xe0,0x60,0x1b,0x90,0x9e,0xab,0xe0,
-0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xff,
-0x90,0x00,0x42,0xe0,0x4f,0x80,0x1a,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x42,0xe0,
-0x5f,0xf0,0x71,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0xf0,0x90,0x00,0x45,0xe0,0x54,0xfe,
-0xfd,0x7f,0x45,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,0x00,0xed,
-0xf0,0x71,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,0x66,0x24,
-0x02,0x60,0x02,0xa1,0x9f,0x90,0x9e,0x1a,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,0x44,
-0x0c,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,0x47,0x91,
-0xe3,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,0x9e,0x1a,
-0xf0,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,
-0x08,0x12,0x2f,0xd9,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,
-0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,0x10,
-0xfd,0x7f,0x46,0x80,0x38,0x90,0x9e,0x1a,0x74,0x01,0xf0,0x90,0x9e,0x20,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x00,
-0x45,0xe0,0x44,0x20,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,
-0x7f,0x45,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x91,0xe3,0x22,
-0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x1c,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,
-0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1b,0xf0,0x12,0x29,0xd9,0x25,0xe0,0x25,0xe0,0x90,
-0x9e,0x1f,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,
-0x9e,0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,
-0x9e,0x2d,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x1b,
-0xe0,0xff,0x12,0x52,0x12,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,0x1c,
-0xe0,0x70,0x02,0xc1,0xa7,0x90,0x9e,0x1b,0xe0,0x70,0x02,0xc1,0xa7,0x90,0x9e,0x1f,
-0xe0,0x70,0x02,0xc1,0xa7,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,
-0x9e,0x2e,0x74,0x01,0xf0,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x91,0xda,0x90,
-0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x91,0xe3,0x90,0x9e,0x14,0xe0,0x60,0x15,
-0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,
-0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,
-0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,
-0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,
-0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,
-0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,
-0xe4,0xff,0x12,0x37,0x00,0x80,0x2b,0x90,0x9e,0x1c,0xe0,0x70,0x2d,0x90,0x9e,0x2e,
-0x91,0xd9,0x90,0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x91,0xe3,0x90,0x05,0x22,
-0xe4,0xf0,0xa2,0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,
-0x36,0x92,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x22,0x90,0x01,0x30,0xe4,0xf0,
-0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,
-0xfd,0x7f,0x50,0x91,0xe3,0xe4,0xfd,0x7f,0x51,0x91,0xe3,0xe4,0xfd,0x7f,0x52,0x91,
-0xe3,0xe4,0xfd,0x7f,0x53,0x81,0xe3,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x90,0x00,0x02,
-0x12,0x42,0x20,0x90,0x9e,0x1d,0xf0,0xe0,0x30,0xe0,0x4b,0x90,0x9e,0x14,0x74,0x01,
-0xf0,0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x16,0x12,0x2a,0x7f,0xab,0x59,
-0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xe4,0xfc,0xfd,0xfe,0x78,
-0x1a,0x12,0x2a,0x6c,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,0x16,0x12,
-0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x2a,0x7f,0x90,
-0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x14,0xf0,0x7f,0x80,0x7e,0x08,0x12,
-0x27,0xde,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,0x2a,0x7f,
-0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,
-0x12,0x2f,0xd9,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,0x91,0xe3,
-0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,
-0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,0x47,0x91,0xe3,0x90,0x00,
-0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x46,0xe0,0x54,0xef,0xfd,
-0x7f,0x46,0x91,0xe3,0xe4,0x90,0x9e,0x1a,0xf0,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,
-0xb0,0xf0,0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x91,0xe3,0x90,0x9e,0xb0,
-0xe0,0x44,0xb0,0xfd,0x7f,0x49,0x81,0xe3,0x75,0x28,0x33,0xe4,0xf5,0x29,0x75,0x2a,
-0x07,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,0xa3,0xe5,0x2a,
-0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,
-0x01,0x38,0xe5,0x30,0xf0,0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0xe4,0x90,
-0x9e,0x31,0xf0,0xa3,0xf0,0x75,0x8e,0x02,0x12,0x77,0x64,0x12,0x5e,0xde,0x90,0x9e,
-0x5e,0xef,0xf0,0x12,0x5e,0xeb,0x90,0x9e,0x60,0xef,0xf0,0xe4,0xf5,0x12,0x12,0x6e,
-0xdf,0x12,0x77,0xdb,0x12,0x5f,0x9f,0x12,0x32,0x3d,0x12,0x77,0xd7,0x12,0x4f,0xf8,
-0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,
-0xf0,0xa3,0xe4,0xf0,0x12,0x5e,0xf8,0x11,0x16,0x12,0x44,0xff,0x12,0x7d,0x9b,0x90,
-0x9e,0x33,0xe5,0xd9,0xf0,0x12,0x5e,0xaf,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,
-0xf0,0x12,0x4b,0xdb,0x75,0xe8,0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x9e,0x31,0xe0,
-0x64,0x01,0xf0,0x24,0x2e,0x90,0x01,0xc4,0xf0,0x74,0x50,0xa3,0xf0,0xe5,0x12,0x30,
-0xe4,0x09,0xc2,0xaf,0x53,0x12,0xef,0xd2,0xaf,0x71,0x1a,0xe5,0x12,0x30,0xe6,0x16,
-0xc2,0xaf,0x53,0x12,0xbf,0xd2,0xaf,0x12,0x68,0x8d,0x90,0x9e,0x1e,0xe0,0xff,0x60,
-0x03,0xb4,0x01,0x02,0x31,0x10,0x90,0x9e,0x1e,0xe0,0x70,0x03,0x12,0x7d,0xf9,0x11,
-0xe3,0x80,0xb9,0x90,0x06,0x34,0xe0,0x60,0x26,0x14,0x70,0x1b,0x7b,0x01,0x7a,0x06,
-0x79,0x35,0x7f,0xf9,0x7e,0x01,0x12,0x77,0x75,0xbf,0x01,0x09,0x90,0x06,0x35,0xe0,
-0x54,0x0f,0xf0,0x80,0x05,0x80,0x00,0x02,0x77,0x56,0xe4,0x90,0x06,0x34,0xf0,0x22,
-0x90,0x9e,0x15,0xe0,0xc3,0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0x21,0xc8,0x90,0x9e,
-0x15,0xe0,0x64,0x14,0x60,0x02,0x21,0xc8,0x90,0x9e,0x24,0xe0,0x70,0x25,0x90,0x9e,
-0x27,0xe0,0x70,0x1f,0x90,0x9e,0x25,0xe0,0x70,0x19,0x90,0x9e,0x28,0xe0,0x70,0x13,
-0x90,0x9e,0x26,0xe0,0x70,0x0d,0x90,0x9e,0x29,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,
-0x54,0xfe,0xf0,0x90,0x9e,0x24,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x25,0xe0,0x90,
-0x04,0x45,0xf0,0x90,0x9e,0x26,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,
-0x27,0xe0,0x90,0x04,0x48,0xf0,0x90,0x9e,0x28,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,
-0x29,0xe0,0x90,0x04,0x4a,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x10,0xe0,0x90,0x04,0x4c,
-0xf0,0x90,0x9e,0x11,0xe0,0x90,0x04,0x4d,0xf0,0x90,0x9e,0x12,0xe0,0x90,0x04,0x4e,
-0xf0,0x90,0x9e,0x13,0xe0,0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x15,0xf0,0x90,0x9e,
-0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x24,0xf0,0xa3,0xf0,
-0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x34,0xf0,
-0x90,0x05,0x61,0xe0,0x90,0x9e,0x35,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x36,0xf0,
-0x90,0x05,0x63,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0x2d,0xe0,0xff,0x90,0x9e,0x37,
-0xe0,0xfe,0xd3,0x9f,0x50,0x0b,0x90,0x9e,0x2d,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,
-0x10,0x90,0x9e,0x1b,0xe0,0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x1f,0xe0,0xff,0x51,
-0x12,0x22,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,
-0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,
-0x2d,0xf0,0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x2b,0xe0,0xd3,0x9e,0x40,0x1e,0xe0,
-0x2f,0xf0,0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,0xe0,0xb4,0xff,0x03,0xe4,0xf0,
-0x22,0x90,0x9e,0x2d,0x80,0x03,0x90,0x9e,0x2c,0xe0,0x04,0xf0,0x22,0x90,0x9e,0x2b,
-0xe0,0x2f,0xf0,0x22,0x90,0x9e,0x1c,0xe0,0x64,0x01,0x60,0x02,0x61,0x19,0x90,0x00,
-0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x90,0x9e,0x2e,0xe0,0x70,0x32,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,
-0xf0,0x90,0x9e,0x1b,0xe0,0xff,0x51,0x12,0x90,0x9e,0x2e,0x74,0x01,0x12,0x4c,0xd9,
-0x80,0x40,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x70,0x38,0x90,0x9e,0x1f,0xe0,0xff,0x51,
-0x12,0xe4,0x90,0x9e,0x2e,0xf0,0x90,0x00,0x45,0xe0,0x44,0x01,0xfd,0x7f,0x45,0x12,
-0x4c,0xe3,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x05,0x90,0x05,0x22,
-0xe4,0xf0,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,0x84,
-0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,0x86,
-0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,0x01,0xcc,0xe0,0x54,0x0f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfd,0x70,0x02,0x81,0x5b,0x90,0x9e,0xad,
-0xe0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xef,0x5d,0x70,0x02,0x81,0x54,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd0,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x35,0xf0,0x75,0x1e,0x01,0x75,0x1f,
-0x9e,0x75,0x20,0x35,0x75,0x21,0x01,0x7b,0x01,0x7a,0x9e,0x79,0x36,0x12,0x45,0x09,
-0x90,0x9e,0x36,0xe0,0xff,0xc4,0x13,0x13,0x13,0x54,0x01,0x90,0x9e,0xad,0x30,0xe0,
-0x59,0xe0,0x75,0xf0,0x02,0x90,0x00,0x88,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,
-0x90,0x9e,0xad,0xe0,0x75,0xf0,0x02,0x90,0x00,0x89,0x12,0x43,0x5f,0xe0,0x90,0x9e,
-0x38,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,
-0x90,0x9e,0x39,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,
-0x5f,0xe0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,
-0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3b,0xf0,0x80,0x33,0xe0,0x75,0xf0,0x04,0x90,0x01,
-0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x38,0xf0,0x90,0x9e,0xad,0xe0,0x75,
-0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x39,0xf0,0xef,0x54,0x7f,
-0xff,0x7b,0x01,0x7a,0x9e,0x79,0x37,0x91,0x5c,0x90,0x9e,0x34,0xe0,0xff,0x90,0x9e,
-0xad,0xe0,0xfe,0x74,0x01,0xa8,0x06,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0x5f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0xad,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0x90,0x01,0xcc,0xf0,0x90,0x9e,0xad,0xe0,0x04,0xf0,0xe0,0x54,
-0x03,0xf0,0x61,0x24,0x90,0x01,0xc6,0xe0,0x44,0x02,0xf0,0x22,0x90,0x9e,0x3c,0x12,
-0x43,0x8b,0xef,0x12,0x43,0x94,0x54,0x97,0x01,0x54,0xa0,0x02,0x54,0xbb,0x03,0x54,
-0xc4,0x05,0x54,0xcd,0x06,0x55,0x1b,0x07,0x54,0xd5,0x09,0x54,0xde,0x0c,0x54,0xe7,
-0x0d,0x54,0xf0,0x0e,0x54,0xf9,0x1b,0x55,0x02,0x1c,0x55,0x0b,0x2c,0x54,0xa9,0x2d,
-0x54,0xb2,0x2e,0x00,0x00,0x55,0x14,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x61,0x69,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0x02,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x71,0x08,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0x50,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x71,0x7e,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0xb2,0x90,0x9e,0x3c,
-0x12,0x43,0x6b,0x80,0x47,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0xc6,0x90,0x9e,
-0x3c,0x12,0x43,0x6b,0x02,0x4d,0xa0,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x7d,0x68,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x4f,0x07,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x70,0xfa,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0xe1,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x76,0x36,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,0x22,0x90,0x00,0x04,0x12,
-0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,0x54,0x07,0xfd,0xaf,0x06,
-0x90,0x9e,0x3f,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,0x8b,0x90,0x9e,0x41,0x12,
-0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,0x54,0x0f,0x90,0x9e,0x44,
-0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,0x13,0x54,0x03,0x90,0x9e,
-0x45,0xf0,0x90,0x9e,0x3f,0xe0,0xff,0x75,0xf0,0x09,0x90,0x96,0x46,0x12,0x43,0x5f,
-0xad,0x82,0xac,0x83,0x90,0x9e,0x46,0xec,0xf0,0xa3,0xed,0xf0,0xef,0x75,0xf0,0x09,
-0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,0xa3,0x12,0x43,0x8b,0x90,
-0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0x0f,0xff,0x90,0x9e,
-0x48,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,
-0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0x90,0x00,0x01,0xef,0x12,
-0x42,0x5f,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,
-0x9e,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,0xf0,0x12,0x29,0xd9,
-0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,0x90,0x9e,0x3f,0xe0,0xff,
-0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,0x9e,0x40,0xe0,0xfe,
-0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,0x75,0xf0,0x09,0xef,
-0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x45,0xe0,0xfe,0x75,0xf0,
-0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,0x59,0xef,0x25,0xe0,0x24,
-0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x5b,0x8f,0x5c,0xe5,0x59,0x75,0xf0,
-0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x5d,0x01,0xf5,0x5e,0x89,0x5f,
-0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x46,0x12,0x43,0x5f,0xaf,0x82,0x85,0x83,0x60,
-0x8f,0x61,0xe5,0x59,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0x75,
-0x62,0x01,0xf5,0x63,0x89,0x64,0x74,0x82,0x25,0x59,0xf5,0x82,0xe4,0x34,0x95,0xf5,
-0x83,0xe0,0x12,0x43,0x94,0x56,0xaa,0x00,0x56,0xbf,0x01,0x56,0xd4,0x02,0x56,0xe9,
-0x03,0x57,0x13,0x04,0x57,0x28,0x05,0x57,0x3d,0x06,0x57,0x64,0x0c,0x57,0x92,0x0d,
-0x57,0xbf,0x0e,0x57,0xec,0x0f,0x00,0x00,0x58,0x20,0xe5,0x59,0x25,0xe0,0x24,0xc6,
-0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x15,0x80,0x3c,0xe5,
-0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,
-0x74,0x10,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,
-0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,0xe5,0x59,0x25,0xe0,
-0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0x8f,0xf0,
-0x02,0x58,0x20,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0x74,0x0d,0xf0,
-0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0x02,0x58,0x20,0x90,0x04,0x47,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,
-0x4d,0x90,0x04,0x46,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,
-0x5f,0x90,0x04,0x45,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x44,0x02,
-0x58,0x17,0x90,0x04,0x4b,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,
-0x04,0x4a,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,
-0x04,0x49,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,0x90,
-0x04,0x4f,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x4e,0xe0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x4d,0xe0,
-0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,0xe0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x5d,0xaa,
-0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x5c,0x82,
-0x85,0x5b,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,0xf0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,
-0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x29,0xd9,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,
-0x12,0x42,0x4d,0xab,0x5d,0xe5,0x5f,0x24,0x01,0xf9,0xe4,0x35,0x5e,0xfa,0xc0,0x03,
-0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x90,0x00,
-0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,0x5c,
-0x82,0x85,0x5b,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,
-0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,
-0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,0xa3,0xe0,0xfe,0xef,
-0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,
-0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,0x5a,0x0b,0x74,0x01,0x7e,
-0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,
-0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x5d,0x15,0x5a,0xe5,0x5a,0xc3,0x94,
-0x00,0x50,0xca,0x80,0x56,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
-0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x5a,0x0f,0x74,0x01,0x7e,0x00,
-0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,
-0x4e,0x60,0x08,0x90,0x9e,0x4b,0xe5,0x5a,0xf0,0x80,0x10,0x15,0x5a,0xe5,0x5a,0xc3,
-0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x4b,0xf0,0xe5,0x59,0x25,0xe0,0x24,
-0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0xe4,
-0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x4c,0xe5,0x5a,0xf0,0x80,
-0x5b,0x05,0x5a,0xe5,0x5a,0xb4,0x10,0xca,0x80,0x52,0xe5,0x59,0x25,0xe0,0x24,0x02,
-0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x39,0xe4,0xf5,
-0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
-0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,
-0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x0a,0x05,0x5a,
-0xe5,0x5a,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x4c,0xf0,0x90,0x9e,0x4b,0xe0,
-0xff,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xef,0xf0,0x90,0x9e,
-0x4c,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x49,0x12,0x43,0x5f,0xee,0xf0,
-0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,0x05,
-0x90,0x9e,0x4b,0x51,0x6f,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0xff,0x90,0x9e,0x4c,0xe0,0xfe,0xef,0xc3,0x9e,0x50,0x02,0x51,0x6f,0x90,0x9e,
-0x4b,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,0x74,0x03,0xf0,0x22,0xef,
-0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,0x22,0xef,0xd3,0x94,0x03,
-0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,0x96,0x43,0xf0,0x22,0xe0,
-0xfd,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xed,0xf0,0xaf,0x59,
-0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,0x50,0x0e,0x74,0x84,0x2f,
-0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,0x74,0xa6,0x2f,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x75,0xef,0xf0,0x24,0xa6,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x76,0xf0,0x7b,0x01,0x7a,0x9e,0x79,0x75,
-0x7d,0x02,0x51,0xc9,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0x94,0x12,0x43,0x8b,0x90,0x9e,0x97,0xe0,0x54,0xf0,0x44,0x06,0xff,0xf0,
-0xed,0x54,0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,0xf0,0x90,0x9e,0x94,0x12,
-0x43,0x6b,0x90,0x9e,0x91,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x97,0x71,0xd4,
-0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x50,0x8d,0x51,0xe5,0x51,0x54,0x1f,0xf5,0x56,0x74,
-0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xf5,0x54,0x90,0x04,0xfd,0xe0,
-0xb4,0x01,0x05,0x75,0x57,0x03,0x80,0x03,0x75,0x57,0x01,0xeb,0xc3,0x95,0x57,0x40,
-0x04,0xaf,0x50,0x80,0x33,0xe5,0x54,0x25,0x53,0xf5,0x55,0xe5,0x56,0x90,0x41,0xd6,
-0x93,0xff,0xe5,0x55,0xd3,0x9f,0x74,0x01,0x40,0x11,0x25,0x50,0xf5,0x82,0xe4,0x34,
-0x94,0xf5,0x83,0xe4,0xf0,0xad,0x51,0xaf,0x50,0x41,0x80,0x25,0x50,0xf5,0x82,0xe4,
-0x34,0x94,0xf5,0x83,0xe5,0x55,0xf0,0x22,0xad,0x07,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,
-0xe0,0x54,0x1f,0xf5,0x58,0xd3,0x9f,0x40,0x02,0x8f,0x58,0xe5,0x58,0x25,0xe0,0x24,
-0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,
-0x58,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,
-0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x05,0xad,0x58,0x51,
-0x80,0xaf,0x58,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x8e,0x12,0x43,
-0x8b,0x90,0x9e,0xaf,0xe0,0xff,0x04,0xf0,0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x7f,
-0xaf,0x7e,0x01,0x91,0x67,0xef,0x60,0x49,0x90,0x9e,0x8e,0x12,0x43,0x6b,0x8b,0x1e,
-0x8a,0x1f,0x89,0x20,0x75,0x21,0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x45,0x09,
-0x90,0x9e,0x91,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x90,0x9e,0x8e,0x12,
-0x43,0x6b,0x12,0x29,0xd9,0xff,0xc4,0x54,0x0f,0xf5,0x21,0x7b,0x01,0x7a,0x01,0x79,
-0xa2,0x12,0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,
-0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,0x2f,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,
-0x0f,0x44,0x80,0xf0,0x7b,0x00,0x7a,0x00,0x79,0x13,0x90,0x9e,0x91,0x12,0x43,0x8b,
-0x0b,0x7a,0x9e,0x79,0x2f,0x61,0xd4,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
-0x9d,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x9d,0xe0,0xfe,
-0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,0xa0,0xe0,0x94,0xe8,
-0x90,0x9e,0x9f,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x7f,
-0x00,0x80,0x15,0x90,0x9e,0x9f,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x0a,0x7e,
-0x00,0x12,0x37,0x54,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xac,0x07,0xec,
-0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2c,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
-0x80,0x0b,0x74,0xa6,0x2c,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,
-0x64,0xe5,0x64,0x54,0x1f,0xff,0x90,0x9e,0x40,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,
-0x49,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x42,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x48,
-0x12,0x43,0x5f,0xe0,0xfe,0x90,0x9e,0x43,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x44,0xcb,0xf0,0xa3,0xeb,
-0xf0,0xec,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,
-0xe0,0x90,0x9e,0x46,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,0x40,0x0a,0x90,0x9e,
-0x43,0xe0,0x90,0x9e,0x40,0xf0,0xf5,0x64,0xed,0x70,0x02,0xc1,0x13,0x90,0x9e,0x41,
-0xed,0xf0,0xe5,0x64,0x30,0xe6,0x0a,0x90,0x9e,0x40,0xe0,0xf5,0x64,0xa3,0xe0,0x14,
-0xf0,0x90,0x9e,0x41,0xe0,0x70,0x02,0xc1,0x13,0x90,0x9e,0x40,0xe0,0xff,0xd3,0x94,
-0x00,0x50,0x02,0xc1,0x13,0xe4,0x90,0x9e,0x3f,0xf0,0xef,0x14,0x90,0x9e,0x3e,0xf0,
-0x90,0x9e,0x42,0xe0,0xfd,0x90,0x9e,0x3e,0xe0,0xff,0xd3,0x9d,0x40,0x6b,0xef,0x94,
-0x10,0x40,0x21,0xef,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x46,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x70,0x27,0x90,0x9e,0x3e,0xe0,0xff,0xc3,0x94,0x10,0x50,0x33,0x74,0x01,
-0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,
-0x9e,0x44,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,0x9e,0x3e,0xe0,0xf5,
-0x64,0xa3,0xe0,0x04,0xf0,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,0x3f,0xe0,0x6f,0x60,
-0x08,0x90,0x9e,0x3e,0xe0,0x14,0xf0,0x80,0x87,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,
-0x3f,0xe0,0xc3,0x9f,0x50,0x0d,0x90,0x9e,0x3e,0xe0,0xb5,0x05,0x06,0x90,0x9e,0x42,
-0xe0,0xf5,0x64,0xe5,0x64,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x64,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
-0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
-0x13,0xff,0xec,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
-0xa3,0xef,0xf0,0xaf,0x04,0xad,0x64,0x51,0x80,0xaf,0x64,0x22,0x8f,0x77,0x12,0x45,
-0xa6,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x52,0x12,0x47,0xcc,0xe5,0x77,0x60,0x10,
-0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x80,0x0e,
-0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x90,0x04,
-0x1f,0x74,0x20,0xf0,0x22,0x90,0x06,0x04,0xe0,0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,
-0x22,0xb4,0x01,0x04,0xe4,0xff,0xd1,0x5c,0x53,0x23,0xf0,0x43,0x23,0x0c,0x22,0x90,
-0x01,0x3c,0x74,0xff,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0xfd,0x7f,0x54,0x12,0x4c,0xe3,0x7d,0xff,0x7f,0x55,0x12,0x4c,0xe3,
-0x7d,0xff,0x7f,0x56,0x12,0x4c,0xe3,0x7d,0xff,0x7f,0x57,0x02,0x4c,0xe3,0x90,0x00,
-0x02,0xe0,0x54,0xe0,0x7f,0x01,0x60,0x02,0x7f,0x00,0x22,0x90,0x00,0xf3,0xe0,0x7f,
-0x00,0x30,0xe3,0x03,0x7f,0x01,0x22,0x22,0x90,0x01,0x64,0x74,0xa0,0xf0,0x22,0xc0,
-0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,
-0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,
-0xff,0xf0,0x74,0x5e,0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,0x90,0x00,
-0x55,0xe0,0x5f,0xf5,0x3d,0xe5,0x3d,0x30,0xe6,0x18,0x74,0x40,0xf0,0x90,0x9e,0x1d,
-0xe0,0x54,0x03,0xff,0xbf,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0x60,0x05,0x7f,0x01,0x12,
-0x4c,0xf8,0xe5,0x3d,0x30,0xe7,0x15,0x90,0x00,0x55,0x74,0x80,0xf0,0x90,0x9e,0x1d,
-0xe0,0x54,0x03,0xff,0xbf,0x03,0x05,0x7f,0x02,0x12,0x4c,0xf8,0x90,0x01,0xc4,0x74,
-0xff,0xf0,0x74,0x5e,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,
-0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,
-0x32,0x8f,0x6b,0x8c,0x6c,0x8d,0x6d,0x22,0x8f,0x6e,0x8c,0x6f,0x8d,0x70,0x22,0xe4,
-0xf5,0x22,0xf5,0x26,0xf5,0x25,0x75,0x24,0x0c,0x75,0x23,0x0c,0x90,0x9e,0x73,0xf0,
-0x90,0x9e,0x71,0xf0,0x90,0x9e,0x70,0xf0,0x90,0x9e,0x72,0x04,0xf0,0x90,0x9e,0x64,
-0xf0,0xe4,0x90,0x9e,0x74,0xf0,0x90,0x9e,0x66,0xf0,0x90,0x9e,0x6e,0x74,0x07,0xf0,
-0xe4,0x90,0x9e,0x65,0xf0,0x90,0x9e,0x6c,0xf0,0xa3,0x74,0x02,0xf0,0x90,0x9e,0x6a,
-0x14,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x69,0x74,0x14,0xf0,0x90,0x9e,0x6f,0x74,
-0x05,0xf0,0xe4,0x90,0x9e,0x68,0xf0,0x90,0x9e,0x63,0xf0,0x90,0x9e,0x5f,0xf0,0x22,
-0xe4,0x90,0x9e,0x74,0xf0,0x90,0x9e,0x65,0xf0,0xf5,0x26,0x22,0x8b,0x59,0x8a,0x5a,
-0x89,0x5b,0x11,0x00,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x12,0x29,0xd9,0xf5,0x25,0x14,
-0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,0x40,0x7f,0x01,0x80,0x3a,
-0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0xe4,0xff,0x11,
-0x6d,0x80,0x27,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,
-0x7f,0x01,0x11,0x6d,0x1f,0x80,0x13,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,
-0x12,0x42,0x20,0xfd,0x7f,0x02,0x11,0x6d,0xe4,0xff,0x11,0x98,0x22,0xef,0x24,0xfe,
-0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x72,0x74,0x01,0xf0,0x80,0x16,0xed,0x70,0x0a,
-0x90,0x9e,0x6f,0xe0,0x90,0x9e,0x72,0xf0,0x80,0x05,0x90,0x9e,0x72,0xed,0xf0,0x90,
-0x9e,0x72,0xe0,0x90,0x9e,0x64,0xf0,0x22,0xef,0x64,0x01,0x70,0x2f,0x7d,0x7c,0x7f,
-0x02,0x12,0x36,0x75,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0x90,0x01,0x57,0xe4,0xf0,
-0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x47,0x2b,0xe4,0xff,0x31,0x1f,0x90,0x06,0x04,
-0xe0,0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,
-0x7c,0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x36,0xe6,0x7d,0x02,0x7f,0x03,
-0x12,0x36,0xe6,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,
-0xf0,0x90,0x9e,0x6c,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0xe5,0x22,0x30,0xe0,0x19,
-0x90,0x9e,0x66,0xe0,0x70,0x18,0xe0,0x04,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x04,
-0x50,0x0c,0x7d,0x01,0x7f,0x04,0x02,0x47,0x2f,0xe4,0x90,0x9e,0x66,0xf0,0x22,0xef,
-0x60,0x0b,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x60,
-0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x77,0xe4,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,
-0x90,0x05,0x22,0x74,0xff,0xf0,0x31,0xc3,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,0xfd,
-0xf0,0x7d,0x02,0x7f,0x03,0x12,0x36,0xe6,0xe5,0x25,0x60,0x04,0x7f,0x01,0x31,0x1f,
-0x51,0x04,0x53,0x23,0xf0,0x43,0x23,0x02,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x73,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,
-0x90,0x9e,0x63,0xf0,0x12,0x29,0xd9,0x65,0x25,0x60,0x02,0x11,0x0c,0xd0,0xd0,0x92,
-0xaf,0x22,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,
-0x80,0x20,0x90,0x9e,0x73,0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0d,0xe5,0x23,
-0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x2f,0xe4,0xff,
-0x31,0x1f,0x22,0xe4,0x90,0x9e,0xa9,0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,
-0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,
-0x90,0x9e,0xaa,0xe0,0x94,0xe8,0x90,0x9e,0xa9,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,
-0x22,0x7f,0x32,0x7e,0x00,0x12,0x37,0x54,0x90,0x9e,0xa9,0xe4,0x75,0xf0,0x01,0x12,
-0x42,0x81,0x80,0xc6,0x7f,0x78,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xff,0x12,0x2a,
-0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0x03,0x12,0x2a,0x7f,0x7f,0x00,
-0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x07,0x12,0x2a,0x7f,0x90,0x9e,0x60,0xe0,0x90,
-0x9d,0xff,0xb4,0x01,0x0d,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,
-0x80,0x07,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,
-0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,
-0x9e,0x07,0x12,0x43,0x53,0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9e,
-0x0b,0x12,0x2a,0x7f,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa0,0x7f,0x70,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,
-0xfd,0xff,0x12,0x34,0x81,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,
-0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x90,0x00,0x11,
-0xe0,0x54,0xf6,0xf0,0x02,0x4b,0xdb,0x12,0x4b,0xc4,0xef,0x64,0x01,0x60,0x08,0x90,
-0x01,0xb9,0x74,0x01,0xf0,0x80,0x30,0x90,0x9e,0x71,0xe0,0x60,0x08,0x90,0x01,0xb9,
-0x74,0x02,0xf0,0x80,0x22,0x90,0x9e,0x70,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,
-0xf0,0x80,0x14,0xe5,0x24,0x54,0x0f,0xd3,0x94,0x04,0x40,0x08,0x90,0x01,0xb9,0x74,
-0x08,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x08,0xf0,0x7f,0x00,0x22,
-0x12,0x4b,0xc4,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x4a,
-0xe5,0x26,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x3c,0xe5,0x24,
-0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x2b,0xe5,
-0x26,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x1e,0xe5,0x26,0x30,0xe4,
-0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x11,0x90,0x9e,0x66,0xe0,0x60,0x08,0x90,
-0x01,0xb9,0x74,0x20,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,
-0x7f,0x00,0x22,0xe5,0x12,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x5b,0xe5,
-0x24,0x54,0x0f,0xd3,0x94,0x01,0x40,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x4a,
-0x90,0x02,0x87,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x3c,0x90,0x9e,
-0x5e,0xe0,0xb4,0x01,0x10,0x90,0x9e,0x4d,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,
-0xe0,0x60,0x16,0x80,0x25,0x90,0x9e,0x5e,0xe0,0x70,0x0e,0x90,0x01,0xaf,0xe0,0x60,
-0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x11,0x90,0x9e,0x68,0xe0,0x70,0x08,0x90,
-0x01,0xb9,0x74,0x10,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x02,0xf0,
-0x7f,0x00,0x22,0x90,0x9e,0xae,0xef,0xf0,0x91,0x0c,0x90,0x9e,0xae,0xe0,0x60,0x05,
-0x90,0x05,0x22,0xe4,0xf0,0x53,0x23,0xf0,0x43,0x23,0x04,0x22,0x90,0x00,0x11,0xe0,
-0x44,0x09,0xf0,0x12,0x4b,0xdb,0x90,0x9d,0xff,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x90,
-0x9e,0x0b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,0xe4,0xfd,0xff,0x12,
-0x34,0x81,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,
-0x03,0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x22,0x8f,0x27,0xe4,0x90,0x9e,
-0xa7,0xf0,0xa3,0xf0,0x90,0x01,0x09,0xe0,0x7f,0x00,0x30,0xe7,0x02,0x7f,0x01,0xef,
-0x65,0x27,0x60,0x3e,0xc3,0x90,0x9e,0xa8,0xe0,0x94,0x88,0x90,0x9e,0xa7,0xe0,0x94,
-0x13,0x40,0x08,0x90,0x01,0xc6,0xe0,0x44,0x80,0xf0,0x22,0x90,0x9e,0xa7,0xe4,0x75,
-0xf0,0x01,0x12,0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x37,0x54,0xd3,0x90,0x9e,0xa8,
-0xe0,0x94,0x32,0x90,0x9e,0xa7,0xe0,0x94,0x00,0x40,0xb9,0x90,0x01,0xc7,0xe0,0x30,
-0xe0,0xb2,0x22,0xe5,0x24,0x30,0xe6,0x19,0xe5,0x24,0x54,0x0f,0xff,0x90,0x9e,0x62,
-0xe0,0xfe,0x4f,0x90,0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x9e,0x62,0xf0,0x53,0x24,
-0xbf,0x22,0x8f,0x76,0x12,0x45,0xa6,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x53,0x12,
-0x47,0xcc,0xe5,0x76,0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x44,0x10,0xf0,0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x54,0xef,0xf0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xe5,0x22,0x64,0x01,0x70,
-0x61,0xe5,0x25,0x60,0x5d,0xe5,0x25,0x64,0x02,0x60,0x06,0xe5,0x25,0x64,0x05,0x70,
-0x27,0x90,0x06,0xab,0xe0,0x90,0x9e,0x64,0xf0,0x90,0x06,0xaa,0xe0,0x90,0x9e,0x72,
-0xf0,0x90,0x9e,0x64,0xe0,0x70,0x07,0x90,0x9e,0x72,0xe0,0xff,0x80,0x05,0x90,0x9e,
-0x64,0xe0,0xff,0x90,0x9e,0x64,0xef,0xf0,0x90,0x9e,0x66,0xe0,0x60,0x03,0xe0,0x14,
-0xf0,0xe4,0x90,0x9e,0x65,0xf0,0x90,0x01,0x57,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,
-0x53,0x26,0xfd,0x53,0x26,0xef,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,
-0x45,0x53,0x22,0xe4,0xff,0xe5,0x25,0x60,0x5f,0xe5,0x22,0x64,0x01,0x70,0x59,0xe5,
-0x25,0x14,0x60,0x2b,0x24,0xfd,0x60,0x27,0x24,0x02,0x24,0xfb,0x50,0x02,0x80,0x21,
-0x90,0x9e,0x64,0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,0x60,0x14,0x90,0x9e,0x64,
-0xe0,0x70,0x08,0x90,0x9e,0x72,0xe0,0x90,0x9e,0x64,0xf0,0x7f,0x01,0x80,0x02,0x7f,
-0x01,0xef,0x60,0x24,0x43,0x26,0x10,0xe4,0x90,0x9e,0x86,0xf0,0x90,0x9e,0x6e,0x12,
-0x44,0x56,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x04,0x50,
-0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x2f,0x22,0xe5,0x25,0x60,0x39,0x90,0x9e,0x74,
-0xe0,0x60,0x0d,0xe4,0xf0,0x53,0x26,0xfd,0xe5,0x26,0x54,0x07,0x70,0x28,0x80,0x23,
-0x90,0x9e,0x65,0xe0,0x04,0xf0,0x53,0x26,0xef,0x90,0x9e,0x6a,0xe0,0xff,0x90,0x9e,
-0x65,0xe0,0xd3,0x9f,0x40,0x0d,0xe5,0x22,0xb4,0x01,0x0b,0xa3,0xe0,0x70,0x07,0xe0,
-0x04,0xf0,0x22,0x12,0x44,0xd1,0x22,0xef,0xc3,0x94,0x20,0x50,0x39,0xef,0x30,0xe0,
-0x17,0xed,0xc4,0x54,0xf0,0xfd,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,
-0x04,0xf5,0x83,0xe0,0x54,0x0f,0x80,0x10,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,
-0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0xa4,0x2e,0xf5,0x82,0xe4,0x34,
-0x04,0xf5,0x83,0xe0,0x4d,0xf0,0x22,0xad,0x07,0xed,0xc3,0x94,0x20,0x50,0x0d,0x74,
-0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x80,0x0b,0x74,0xa6,0x2d,0xf5,
-0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,0x64,0xe5,0x64,0x54,0x1f,0xfc,
-0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x90,0x9e,0x3e,0xf0,
-0xed,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,
-0x90,0x9e,0x3f,0xcb,0xf0,0xa3,0xeb,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,
-0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x41,0xcb,0xf0,0xa3,0xeb,0xf0,
-0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfa,0x74,
-0x01,0x93,0xfb,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xea,
-0xf0,0xa3,0xeb,0xf0,0xec,0xc3,0x9f,0x40,0x02,0xe1,0xa5,0x74,0x67,0x2d,0xf5,0x82,
-0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x04,0xfb,0x90,0x9e,0x3e,0xe0,0xff,0xeb,0xd3,
-0x9f,0x40,0x02,0xe1,0xd6,0xeb,0xc3,0x94,0x10,0x40,0x21,0xeb,0x24,0xf0,0xff,0x74,
-0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,
-0x90,0x9e,0x3f,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x23,0xeb,0xc3,0x94,0x10,
-0x50,0x40,0x74,0x01,0x7e,0x00,0xa8,0x03,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0x90,0x9e,0x41,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x23,0xbb,
-0x11,0x09,0x90,0x9e,0x40,0xe0,0x30,0xe7,0x02,0x7b,0x17,0xeb,0x64,0x13,0x60,0x03,
-0xbb,0x12,0x09,0x90,0x9e,0x3f,0xe0,0x30,0xe0,0x02,0x7b,0x18,0xac,0x03,0x8c,0x64,
-0x80,0x34,0x0b,0x80,0x84,0x90,0x9e,0x3e,0xe0,0xfb,0x6c,0x70,0x69,0x74,0x67,0x2d,
-0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,
-0x12,0x43,0x5f,0xe0,0xb4,0x01,0x0c,0xe5,0x64,0x20,0xe6,0x07,0xec,0x44,0x40,0xf5,
-0x64,0x80,0x03,0xaf,0x64,0x22,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,
-0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,
-0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,
-0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,
-0xf0,0xa3,0xef,0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,0x90,0x9e,0x3e,0xe0,0xff,
-0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0xac,0x07,0x8f,0x64,
-0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,
-0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,
-0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,
-0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x64,
-0x22,0x74,0x01,0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xaf,0x05,0xe5,
-0x64,0x44,0x80,0xfd,0x12,0x5a,0x80,0xe5,0x64,0x44,0x80,0xff,0x22,0xe4,0xf5,0x59,
-0xe5,0x59,0xb4,0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,0x95,0x01,0xe0,0xff,
-0x90,0x9a,0xc5,0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,
-0x4b,0x12,0x43,0x5f,0xe0,0x64,0x01,0x60,0x02,0xc1,0xd3,0xe5,0x59,0x25,0xe0,0x24,
-0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0xd3,0x94,0x00,0xee,
-0x94,0x00,0x50,0x02,0xc1,0xd3,0xe5,0x59,0x94,0x20,0x40,0x08,0x90,0x9a,0xc5,0xe0,
-0x60,0x02,0xc1,0xde,0xe5,0x59,0x75,0xf0,0x0a,0xa4,0x24,0x00,0xf9,0x74,0x90,0x35,
-0xf0,0x75,0x5e,0x01,0xf5,0x5f,0x89,0x60,0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,
-0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x38,0xcf,0xf0,0xa3,0xef,
-0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xff,
-0xa3,0xe0,0x90,0x9e,0x3a,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,0xc3,0x94,0x20,0x50,
-0x14,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x3f,0x90,
-0x9e,0x34,0xf0,0x80,0x12,0x74,0xa6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,
-0xe0,0x54,0x3f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfe,0x54,0x1f,0xa3,0xf0,
-0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3d,0xf0,
-0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xc3,0x94,0x05,0x40,
-0x02,0x61,0xac,0x90,0x9e,0x3d,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x9f,0x40,0x13,0x90,
-0x9e,0x3d,0xe0,0x90,0x9e,0x35,0xf0,0xee,0x54,0x40,0xfe,0x90,0x9e,0x34,0xf0,0xef,
-0x4e,0xf0,0x90,0x04,0xfd,0xe0,0x54,0x05,0x64,0x01,0x70,0x29,0x90,0x9e,0x35,0xe0,
-0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
-0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,0xda,0x80,0x30,0x90,0x9e,0x35,0xe0,
-0x90,0x40,0xf6,0x80,0x27,0x90,0x9e,0x35,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,
-0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,
-0x90,0x41,0x12,0x80,0x07,0x90,0x9e,0x35,0xe0,0x90,0x41,0x2e,0x93,0x90,0x9e,0x3c,
-0xf0,0x90,0x9e,0x3c,0xe0,0x75,0xf0,0x06,0xa4,0x24,0x50,0xf9,0x74,0x40,0x35,0xf0,
-0x75,0x5b,0xff,0xf5,0x5c,0x89,0x5d,0x90,0x9e,0x34,0xe0,0x90,0x41,0xf2,0x93,0xff,
-0xd3,0x90,0x9e,0x3b,0xe0,0x9f,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x09,0xe4,0xfd,
-0xaf,0x59,0x12,0x5c,0xbd,0xc1,0x6a,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xe0,0xf5,0x61,0xa3,0xe0,0xf5,0x62,0xab,0x5b,0xaa,0x5c,0xa9,
-0x5d,0x12,0x29,0xd9,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,0x42,0x97,
-0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,
-0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,
-0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,
-0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,
-0x5d,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,
-0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,
-0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x03,0x12,
-0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x06,0x12,0x42,
-0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,
-0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x7e,0x00,
-0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,
-0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,
-0xa9,0x5d,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,
-0xa3,0xe0,0xfd,0x12,0x29,0xf2,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,0x0c,0xe5,
-0x62,0x9f,0xf5,0x62,0xe5,0x61,0x9e,0xf5,0x61,0x80,0x05,0xe4,0xf5,0x61,0xf5,0x62,
-0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe5,0x61,0xf0,
-0xa3,0xe5,0x62,0xf0,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,
-0x41,0xf5,0x83,0xc3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,0x07,0xaf,
-0x59,0x12,0x66,0x87,0xc1,0x3e,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x9e,0xf5,0x82,
-0xe4,0x34,0x41,0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,
-0x02,0xc1,0x3e,0x7d,0x01,0xaf,0x59,0x12,0x5c,0xbd,0xc1,0x3e,0x74,0xe6,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,0xa1,0x47,0x90,
-0x96,0x43,0xe0,0xff,0xb4,0x03,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x19,0x40,0x3d,
-0x80,0x2e,0xef,0xb4,0x02,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x11,0x40,0x2e,0x80,
-0x1f,0x90,0x96,0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x0a,
-0x40,0x1b,0x80,0x0c,0xef,0x70,0x11,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x03,0x40,0x0d,
-0x90,0x9a,0x84,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,0x74,0x84,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0x74,0x44,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,0x81,0xf4,0x90,
-0x9a,0x84,0xe0,0x64,0x01,0x60,0x02,0x81,0xf4,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9a,0xf5,0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,0xe4,0x33,0xfe,
-0x74,0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,0xd3,0x9f,0xee,
-0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,0x33,0xfe,0x74,
-0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,0xee,0x64,0x80,
-0xf8,0x74,0x80,0x98,0x50,0x14,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
-0x83,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,0x63,0x05,0x80,
-0x0e,0xef,0xd3,0x94,0x39,0x40,0x05,0x75,0x63,0x03,0x80,0x03,0x75,0x63,0x01,0x74,
-0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,0x85,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,
-0x04,0xf0,0x80,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x35,0xe0,0xff,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9d,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,
-0x83,0xe5,0x63,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4c,0x12,0x43,0x5f,0xe0,
-0xb4,0x01,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,
-0x83,0xe4,0xf0,0xad,0x63,0xc1,0x39,0xec,0x64,0x06,0x60,0x02,0xc1,0x3e,0xf5,0x61,
-0xf5,0x62,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,0xa3,0xe0,
-0xfd,0x12,0x29,0xf2,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0xe4,0xf5,0x5a,0xab,0x5e,0xaa,
-0x5f,0xa9,0x60,0x75,0xf0,0x02,0xe5,0x5a,0xa4,0xf5,0x82,0x85,0xf0,0x83,0x12,0x42,
-0xc2,0xfd,0xac,0xf0,0xe5,0x5a,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,0x12,0x29,0xf2,
-0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,0xe0,0x95,
-0x62,0x90,0x9e,0x36,0xe0,0x95,0x61,0x40,0x07,0x05,0x5a,0xe5,0x5a,0xb4,0x05,0xbd,
-0xe5,0x5a,0xc3,0x13,0xf5,0x5a,0xe5,0x63,0xb4,0x01,0x06,0xe5,0x5a,0x70,0x46,0x80,
-0x13,0xe5,0x63,0xb4,0x03,0x15,0xe5,0x5a,0x70,0x05,0x75,0x63,0x03,0x80,0x39,0xe5,
-0x5a,0xb4,0x01,0x05,0x75,0x63,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x63,0xb4,0x05,0x28,
-0xe5,0x5a,0x70,0x05,0x75,0x63,0x05,0x80,0x0d,0xe5,0x5a,0xb4,0x01,0x05,0x75,0x63,
-0x03,0x80,0x03,0x75,0x63,0x01,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,0x9e,0x3a,
-0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,
-0x9e,0x3a,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0x74,0x84,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x98,0xf5,0x83,0xe5,0x63,0xf0,0xfd,0xaf,0x59,0x12,0x66,0x47,0x74,0xe6,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,0x74,0xe6,0x50,
-0x0e,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,0x80,0x0b,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xab,0x5e,0xaa,0x5f,0xa9,0x60,
-0xe4,0xf5,0xf0,0x12,0x42,0xfa,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0xe4,
-0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x04,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,
-0x06,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x08,0xe4,0xf5,0xf0,0x12,0x43,0x19,
-0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,
-0xa3,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,
-0xf0,0xa3,0xf0,0x05,0x59,0xe5,0x59,0xc3,0x94,0x40,0x50,0x02,0x01,0x90,0x22,0x90,
-0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,0xf0,0xa3,0x74,0x0f,0xf0,0xa3,0xe4,0xf0,
-0xfd,0x74,0xa4,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe4,0xf0,0x0d,0xbd,0x10,
-0xf0,0xe4,0x90,0x9a,0xc5,0xf0,0x90,0x95,0x01,0x04,0xf0,0xe4,0xfd,0x75,0xf0,0x0a,
-0xed,0x90,0x90,0x00,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,
-0x90,0x02,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x04,
-0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x06,0x12,0x43,
-0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x08,0x12,0x43,0x5f,0xe4,
-0xf0,0xa3,0xf0,0x74,0x26,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0x74,0x13,0xf0,
-0x74,0x85,0x2d,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0x74,0x84,0x2d,0xf5,
-0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xed,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
-0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
-0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
-0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,
-0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,
-0x34,0x9a,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,
-0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x74,0x86,0x2d,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0x74,0x46,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,
-0x74,0xe6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x41,0xc4,0x93,
-0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,
-0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,
-0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4b,0x12,0x43,
-0x5f,0x74,0x01,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,0x74,0x01,
-0xf0,0x74,0x82,0x2d,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0c,0xf0,0x75,0xf0,
-0x09,0xed,0x90,0x96,0x46,0x12,0x43,0x5f,0x74,0xff,0xf0,0xa3,0xf0,0x75,0xf0,0x09,
-0xed,0x90,0x96,0x44,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0x74,0x0f,0xf0,0x75,0xf0,0x09,
-0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0x74,0x13,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,0x94,0x20,0x50,0x0f,0x74,0x84,0x2d,0xf5,
-0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,0xf0,0x80,0x0d,0x74,0xa6,0x2d,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,0x0d,0xed,0x64,0x40,0x60,0x03,0x02,0x6f,
-0x0d,0x22,0x12,0x29,0xd9,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,0x02,0x12,
-0x42,0x20,0xff,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xef,0xf0,
-0x22,0xe5,0x59,0xb4,0x40,0x0a,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x96,0x42,0xf0,
-0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,0xc4,0x13,
-0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x02,0x55,0x30,0x12,0x29,0xd9,0x90,0x95,0x01,
-0xf0,0x22,0x12,0x29,0xd9,0xf5,0x22,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x30,
-0xe0,0x25,0x12,0x29,0xd9,0x90,0x9e,0x6a,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0x90,
-0x9e,0x6b,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x69,0xf0,0x90,0x00,0x03,0x12,
-0x42,0x20,0x90,0x9e,0x6f,0xf0,0x22,0x90,0x9e,0x6a,0x74,0x01,0xf0,0x90,0x9e,0x6b,
-0x74,0x03,0xf0,0x90,0x9e,0x69,0x74,0x14,0xf0,0x90,0x9e,0x6f,0x74,0x05,0xf0,0x22,
-0x12,0x29,0xd9,0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x6e,0xf0,0x90,0x00,
-0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x6c,0xe4,0xf0,0xa3,0xef,0xf0,0x22,0x90,0x9e,
-0x6e,0x74,0x07,0xf0,0x90,0x9e,0x6c,0xe4,0xf0,0xa3,0x74,0x02,0xf0,0x22,0x90,0x02,
-0x09,0xe0,0xfd,0x12,0x29,0xd9,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x50,0xf0,0x90,
-0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x51,0xf0,0x90,0x00,0x02,0x12,
-0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x52,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,0xff,
-0xed,0x2f,0x90,0x9e,0x53,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0xae,0x05,0xed,
-0x2f,0x90,0x9e,0x54,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x3f,
-0x12,0x43,0x8b,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xfa,
-0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,
-0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,0x29,0xd9,0xff,0x60,0x2c,0xb5,0x71,0x16,
-0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0x65,0x73,0x70,0x04,
-0xe5,0x72,0x65,0xf0,0x60,0x23,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,
-0x42,0xc2,0xff,0xae,0xf0,0x51,0x3e,0x80,0x10,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x12,
-0x29,0xd9,0x65,0x71,0x60,0x03,0x12,0x44,0xc8,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,
-0x42,0xee,0xf0,0xa3,0xef,0xf0,0x75,0x71,0x01,0x8e,0x72,0xf5,0x73,0xe4,0xfd,0x7f,
-0x0b,0x51,0x80,0xe4,0xfd,0x7f,0x02,0x51,0x80,0x71,0x4a,0xe4,0xff,0x71,0xac,0xe4,
-0xf5,0x75,0x90,0x01,0xc9,0xe5,0x75,0xf0,0x90,0x9e,0x42,0xe0,0xfc,0xa3,0xe0,0xfd,
-0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,0x7d,0x01,0x7f,0x60,0x7e,0x01,0x02,0x35,0xab,
-0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,0x90,0x9e,0x44,0xef,
-0xf0,0xd3,0x94,0x07,0x50,0x4f,0xa3,0xe0,0x70,0x1a,0x90,0x9e,0x44,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,0xe0,
-0x5f,0xf0,0x80,0x17,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x9e,
-0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x46,0x80,0x5a,0x90,0x9e,0x44,0xe0,0x24,0xf8,0xf0,0xa3,0xe0,0x70,0x1d,
-0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,
-0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,0x1a,0x90,0x9e,0x44,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,
-0xff,0x90,0x00,0x43,0xe0,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x9e,0x44,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,
-0x5f,0xf0,0x12,0x4b,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0x7f,0x0b,0x71,0xb9,0xef,0x65,
-0x74,0x60,0x10,0xe5,0x74,0xb4,0x01,0x05,0xe4,0xf5,0x74,0x80,0x03,0x75,0x74,0x01,
-0x7f,0x01,0x22,0x7f,0x00,0x22,0xe5,0x71,0x64,0x01,0x70,0x3f,0x71,0x4a,0xbf,0x01,
-0x04,0x7f,0x01,0x71,0xac,0x90,0x00,0x46,0xe0,0x44,0x04,0xfd,0x7f,0x46,0x12,0x4c,
-0xe3,0x90,0x00,0x44,0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x12,0x4c,0xe3,0x90,0x00,0x46,
-0xe0,0x54,0xfb,0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x7f,0x02,0x71,0xb9,0x8f,0x75,0x90,
-0x01,0xc9,0xe5,0x75,0xf0,0xb4,0x01,0x03,0x12,0x4f,0xda,0x22,0x90,0x01,0xca,0xe5,
-0x74,0xf0,0xef,0x60,0x03,0x12,0x4f,0xda,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0xb1,0xef,0xf0,0xd3,0x94,0x07,0x50,0x47,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0xe0,0x5f,0xf0,0x12,
-0x4b,0xdb,0x90,0x9e,0xb1,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,0xfb,0xe4,0xfe,0xef,
-0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,0x80,
-0x44,0x90,0x9e,0xb1,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0x12,0x4b,0xd3,0x90,0x9e,0xb1,0xe0,0xfd,0x74,0x01,0x7e,
-0x00,0xa8,0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,
-0x42,0xe0,0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,
-0xce,0x13,0xd8,0xf8,0xff,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
-0xd0,0x90,0x9e,0x56,0xe0,0x90,0x9e,0x40,0xf0,0x90,0x9e,0x57,0xe0,0xf5,0x64,0xa3,
-0xe0,0xf5,0x65,0xe4,0xf5,0x61,0x74,0x59,0x25,0x61,0xf5,0x82,0xe4,0x34,0x9e,0xf5,
-0x83,0xe0,0xff,0x74,0x66,0x25,0x61,0xf8,0xa6,0x07,0x05,0x61,0xe5,0x61,0xb4,0x04,
-0xe5,0x90,0x9e,0x40,0xe0,0x12,0x43,0x94,0x74,0xb7,0x00,0x75,0xdf,0x01,0x74,0xbd,
-0x02,0x74,0xbd,0x03,0x74,0xbd,0x04,0x75,0xdf,0x05,0x75,0xaf,0x80,0x75,0xc5,0x81,
-0x75,0xdf,0x82,0x00,0x00,0x75,0xdb,0xaf,0x69,0xb1,0xe6,0xa1,0xdf,0x90,0x9e,0x40,
-0xe0,0xff,0xb4,0x02,0x08,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x80,0x0f,0xef,0x90,0x9e,
-0x3f,0xb4,0x03,0x05,0x74,0x02,0xf0,0x80,0x03,0x74,0x04,0xf0,0xc3,0xe5,0x64,0x94,
-0x08,0x50,0x49,0xe4,0xf5,0x61,0x90,0x9e,0x3f,0xe0,0xff,0xe5,0x61,0xc3,0x9f,0x40,
-0x02,0xa1,0xdf,0xc3,0xe5,0x64,0x94,0x01,0x50,0x14,0xe5,0x61,0x25,0x65,0xff,0xc3,
-0x74,0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xfd,0x12,0x4c,0xe3,0x80,0x1a,0xc3,0x74,
-0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xff,0xe5,0x61,0x7c,0x00,0x25,0x65,0xfd,0xec,
-0x35,0x64,0x8d,0x82,0xf5,0x83,0xef,0xf0,0x05,0x61,0x80,0xba,0xc3,0xe5,0x64,0x94,
-0x10,0x40,0x02,0xa1,0xdf,0x90,0x9e,0x40,0xe0,0x64,0x04,0x60,0x02,0xa1,0xdf,0xaf,
-0x67,0xfc,0xfd,0xfe,0x78,0x10,0x12,0x2a,0x6c,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,
-0x07,0xaf,0x66,0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x2a,0x6c,0xd0,0x03,0xd0,0x02,
-0xd0,0x01,0xd0,0x00,0x12,0x43,0x46,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0xaf,
-0x68,0xe4,0xfc,0xfd,0xfe,0x78,0x08,0x12,0x2a,0x6c,0xd0,0x03,0xd0,0x02,0xd0,0x01,
-0xd0,0x00,0x12,0x43,0x46,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0xaf,0x69,0xe4,
-0xfc,0xfd,0xfe,0x12,0x43,0x46,0xa3,0x12,0x2a,0x7f,0x90,0x9e,0x41,0x12,0x43,0x53,
-0x90,0x80,0x85,0x12,0x2a,0x7f,0xaf,0x65,0xae,0x64,0x12,0x2f,0xd9,0x80,0x30,0xe5,
-0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,
-0x12,0x37,0x54,0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,
-0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,0x36,0xcb,0x80,0x04,0x7f,0x00,0x80,0x02,0x7f,
-0x01,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x6a,0xe4,0x90,0x9e,0x45,0xf0,0xe5,0x6a,0x14,
-0xfe,0x90,0x9e,0x45,0xe0,0xff,0xc3,0x9e,0x50,0x0e,0xef,0x04,0xfd,0x12,0x34,0xb7,
-0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,0x7d,0xff,0x12,0x34,
-0xb7,0x90,0x9e,0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,0x94,0xff,0x50,0x0f,
-0xe0,0xff,0x04,0xfd,0x12,0x34,0xb7,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe8,0xad,
-0x6a,0x7f,0xff,0x02,0x34,0xb7,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xe4,0xf5,0x5b,
-0x75,0x5c,0x04,0xf5,0x5d,0xf5,0x5f,0xf5,0x60,0x90,0x02,0x09,0xe0,0xff,0x12,0x29,
-0xd9,0xfe,0xef,0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,0x75,0x5a,0x80,0x80,
-0x05,0xe4,0xf5,0x59,0xf5,0x5a,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x74,0x20,
-0x25,0x5b,0xf5,0x5b,0xad,0x5a,0xe5,0x5b,0x2d,0xff,0x24,0x01,0xf5,0x82,0xe4,0x34,
-0xfc,0xf5,0x83,0xe0,0x90,0x9e,0x56,0xf0,0x74,0x02,0x2f,0xf5,0x82,0xe4,0x34,0xfc,
-0xf5,0x83,0xe0,0xfe,0xe5,0x5b,0x2d,0x24,0x03,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x24,0x00,0xff,0xe4,0x3e,0x90,0x9e,0x57,0xf0,0xa3,0xef,0xf0,0x7f,0x04,0xe5,
-0x5b,0x25,0x5a,0x2f,0x24,0x00,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0xfe,0x74,
-0x55,0x2f,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,0xee,0xf0,0x0f,0xbf,0x08,0xe0,0x91,
-0x5a,0xef,0x70,0x3f,0x90,0x01,0xc3,0xe0,0x60,0x25,0xc3,0xe5,0x60,0x94,0xe8,0xe5,
-0x5f,0x94,0x03,0x40,0x09,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x80,0x63,0x05,0x60,
-0xe5,0x60,0x70,0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,0xd5,0x90,
-0x01,0xc6,0xe0,0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,0x80,0x43,0x74,0xff,
-0xf0,0x80,0x3e,0xe5,0x5b,0xb4,0x78,0x23,0xe4,0xf5,0x5b,0x05,0x5e,0xe5,0x5a,0x64,
-0x80,0x45,0x59,0x70,0x06,0xf5,0x59,0xf5,0x5a,0x80,0x06,0x75,0x59,0x00,0x75,0x5a,
-0x80,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x80,0x06,0x74,0x08,0x25,0x5b,0xf5,
-0x5b,0xe5,0x5d,0x15,0x5d,0x70,0x02,0x15,0x5c,0xe5,0x5d,0x45,0x5c,0x60,0x02,0xc1,
-0x74,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x22,0xe4,0x90,0x9e,0x5d,0xf0,0x90,0x00,0x80,0xe0,0x44,0x80,0xfd,
-0x7f,0x80,0x02,0x4c,0xe3,0x8e,0x59,0x8f,0x5a,0x8b,0x5b,0x8a,0x5c,0x89,0x5d,0xe4,
-0x90,0x9e,0x34,0xf0,0xef,0x90,0x00,0x31,0xf0,0x12,0x4b,0xdb,0xe5,0x59,0x54,0x03,
-0xff,0x90,0x00,0x32,0xe0,0x54,0xfc,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x00,0x33,0xe0,
-0x54,0x7f,0xf0,0x12,0x4b,0xdb,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x34,
-0xe0,0xc3,0x94,0x64,0x50,0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x34,0xe0,0xc3,
-0x94,0x64,0x50,0x10,0x90,0x00,0x30,0xe0,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x12,0x42,
-0x4d,0x7f,0x01,0x22,0x7f,0x00,0x22,0xe4,0xf5,0x74,0x22,0x90,0x9e,0x60,0xe0,0x90,
-0x9e,0x0f,0xf0,0x22,0xef,0x70,0x03,0x02,0x79,0x9c,0x90,0x9e,0x0f,0xe0,0x60,0x03,
-0x02,0x7d,0x67,0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x8c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xab,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xaf,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x9d,0xb3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x9d,0xb7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x74,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xbf,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xc3,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,
-0xc7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x9d,0xcb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x88,0x7e,
-0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xcf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xd7,0x12,0x43,0x53,
-0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xdb,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x9d,0xdf,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,
-0x12,0x2f,0xd9,0x90,0x9d,0xe3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0xe0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x9d,0xeb,0x12,0x43,0x53,0x90,
-0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9d,0xef,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x90,
-0x9d,0xf3,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,
-0x2f,0xd9,0x90,0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,
-0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,0x0f,0xe0,
-0x64,0x01,0x60,0x02,0xa1,0x67,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xfb,
-0x12,0x2a,0x7f,0x7f,0x44,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xa7,0x12,0x2a,0x7f,
-0x7f,0x5c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xab,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,
-0x0e,0x12,0x27,0xde,0x90,0x9d,0xaf,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x27,
-0xde,0x90,0x9d,0xb3,0x12,0x2a,0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,
-0xb7,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbb,0x12,0x2a,
-0x7f,0x7f,0x7c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbf,0x12,0x2a,0x7f,0x7f,0x80,
-0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xc3,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,
-0x27,0xde,0x90,0x9d,0xc7,0x12,0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x27,0xde,0x90,
-0x9d,0xcb,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcf,0x12,
-0x2a,0x7f,0x7f,0xd0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd3,0x12,0x2a,0x7f,0x7f,
-0xd4,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd7,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,
-0x12,0x27,0xde,0x90,0x9d,0xdb,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,0x27,0xde,
-0x90,0x9d,0xdf,0x12,0x2a,0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe3,
-0x12,0x2a,0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe7,0x12,0x2a,0x7f,
-0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9d,0xeb,0x12,0x2a,0x7f,0x7f,0x04,0x7e,
-0x0d,0x12,0x27,0xde,0x90,0x9d,0xef,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x27,
-0xde,0x90,0x9d,0xf3,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,
-0xf7,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,0x2a,
-0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,0xa1,0x12,
-0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,
-0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x01,0x00,0x00,0x7f,
-0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0xdb,0x25,0xa4,
-0x7f,0x5c,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,
-0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,
-0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,
-0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,
-0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,
-0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,
-0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,
-0x12,0x2a,0x8b,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,
-0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,0x0e,
-0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xdc,0x7e,
-0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xe0,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x24,0xdb,0x25,0xa4,0x7f,
-0xec,0x7e,0x0e,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0xa1,
-0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa1,0x12,
-0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa1,
-0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
-0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9e,0xa1,
-0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,
-0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,
-0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,
-0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,
-0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,
-0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
-0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,
-0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,0x54,0x0f,0xfd,0xec,
-0x54,0xf0,0xfc,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,
-0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,
-0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,
-0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,
-0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,
-0xa1,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,
-0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,
-0x2f,0xd9,0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,
-0x1e,0xf0,0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,0x59,0xc2,
-0xaf,0x90,0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x4c,0xe3,0x7d,0x40,0x7f,
-0x01,0x12,0x36,0xaf,0xe5,0x59,0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,0x45,0x12,
-0x4c,0xe3,0x90,0x04,0xfd,0xe4,0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,0x9e,0x24,
-0xf0,0x90,0x9e,0x27,0xf0,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x26,
-0xf0,0x90,0x9e,0x29,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,
-0xf0,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,0x9e,0x2e,
-0xf0,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,0x00,0x51,
-0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x02,0x4c,0xe3,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x60,
-0x08,0x90,0x9e,0x1c,0xe0,0x60,0x02,0xc1,0xd0,0x90,0x9e,0x10,0xe0,0xc3,0x94,0xff,
-0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x11,0xe0,0xc3,0x94,0xff,0x50,0x06,
-0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x12,0xe0,0xc3,0x94,0xff,0x50,0x0a,0xe0,
-0x04,0xf0,0xe4,0x90,0x9e,0x11,0xf0,0x80,0x15,0x90,0x9e,0x13,0xe0,0xc3,0x94,0xff,
-0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x12,0xf0,0x90,0x9e,0x11,0xf0,0x90,0x9e,
-0x10,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,0x30,0xe2,0x32,0x90,0x9e,
-0x24,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x25,0xe0,
-0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x26,0xe0,0xc3,
-0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x24,0xf0,
-0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x27,0xe0,0xc3,0x94,0xff,0x50,0x05,
-0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x28,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,
-0xf0,0xe4,0x80,0x11,0x90,0x9e,0x29,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,
-0xe4,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x04,0xfd,0xe0,0x44,0x01,0xf0,
-0x22,0x00,0x89,0xad,};
-
-// =================== v80 UMC A Cut COMMON 2011-12-14 =====================
-u8 Rtl8192CUFwUMCACutImgArray[UMCACutImgArrayLength] = {
-0xc1,0x88,0x02,0x00,0x50,0x00,0x00,0x00,0x12,0x14,0x16,0x08,0xd4,0x3e,0x01,0x00,
-0x25,0x86,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x48,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x5e,0xff,0x00,0x00,0x00,0x00,0x00,0xa1,0xd4,0x00,0x00,0x00,
-0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
-0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
-0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
-0x12,0x11,0x10,0x08,0x00,0x10,0x1a,0x19,0x18,0x10,0x00,0x18,0x22,0x21,0x20,0x18,
-0x00,0x20,0x22,0x21,0x20,0x10,0x00,0x20,0x22,0x21,0x20,0x08,0x00,0x20,0x22,0x21,
-0x1c,0x08,0x00,0x20,0x22,0x21,0x14,0x08,0x00,0x20,0x22,0x20,0x18,0x08,0x00,0x20,
-0x31,0x30,0x20,0x10,0x00,0x30,0x31,0x30,0x18,0x00,0x00,0x30,0x31,0x2f,0x10,0x10,
-0x00,0x30,0x31,0x2c,0x10,0x10,0x00,0x30,0x31,0x28,0x10,0x00,0x00,0x30,0x31,0x20,
-0x10,0x00,0x00,0x30,0x31,0x10,0x10,0x00,0x00,0x30,0x04,0x04,0x04,0x05,0x04,0x04,
-0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x04,0x05,0x05,0x05,0x06,0x06,0x04,0x04,
-0x05,0x05,0x05,0x05,0x06,0x06,0x04,0x04,0x05,0x05,0x05,0x05,0x06,0x07,0x0a,0x0b,
-0x0d,0x10,0x04,0x05,0x05,0x06,0x06,0x09,0x0c,0x11,0x08,0x08,0x09,0x09,0x0a,0x0c,
-0x10,0x11,0x04,0x04,0x04,0x05,0x04,0x04,0x05,0x07,0x07,0x07,0x08,0x0a,0x04,0x04,
-0x04,0x04,0x06,0x0a,0x0b,0x0d,0x05,0x05,0x07,0x07,0x08,0x0b,0x0d,0x0f,0x04,0x04,
-0x04,0x05,0x07,0x07,0x09,0x09,0x0c,0x0e,0x10,0x12,0x04,0x04,0x05,0x05,0x06,0x0a,
-0x11,0x13,0x09,0x09,0x09,0x09,0x0c,0x0e,0x11,0x13,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x24,0x26,0x2a,0x18,0x1a,0x1d,0x1f,0x21,0x27,0x29,0x2a,0x00,0x00,
-0x00,0x1f,0x23,0x28,0x2a,0x2c,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x18,
-0x00,0x24,0x00,0x30,0x00,0x48,0x00,0x60,0x00,0x90,0x00,0xc0,0x00,0xd8,0x00,0x50,
-0x00,0x78,0x00,0xa0,0x00,0xc8,0x01,0x40,0x01,0x90,0x01,0xe0,0x02,0x30,0x01,0x2c,
-0x01,0x40,0x01,0xe0,0x02,0xd0,0x03,0xe8,0x04,0xb0,0x06,0x40,0x07,0xd0,0x00,0x02,
-0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x0c,0x00,0x12,0x00,0x18,0x00,0x24,0x00,0x30,
-0x00,0x48,0x00,0x60,0x00,0x6c,0x00,0x28,0x00,0x3c,0x00,0x50,0x00,0x64,0x00,0xa0,
-0x00,0xc8,0x00,0xf0,0x01,0x18,0x00,0x64,0x00,0xa0,0x00,0xf0,0x01,0x68,0x01,0xf4,
-0x02,0x58,0x03,0x20,0x03,0xe8,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x04,0x04,
-0x05,0x07,0x04,0x04,0x07,0x0a,0x0a,0x0c,0x0c,0x12,0x05,0x07,0x07,0x08,0x0b,0x12,
-0x24,0x3c,0x01,0x01,0x01,0x01,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x01,0x02,
-0x03,0x04,0x05,0x06,0x07,0x08,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x20,0x1e,
-0x1c,0x18,0x10,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0xbb,0x01,0x0c,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,0x22,0x50,
-0x06,0xe9,0x25,0x82,0xf8,0xe6,0x22,0xbb,0xfe,0x06,0xe9,0x25,0x82,0xf8,0xe2,0x22,
-0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe4,0x93,0x22,0xbb,0x01,0x06,
-0x89,0x82,0x8a,0x83,0xf0,0x22,0x50,0x02,0xf7,0x22,0xbb,0xfe,0x01,0xf3,0x22,0xf8,
-0xbb,0x01,0x0d,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0x22,
-0x50,0x06,0xe9,0x25,0x82,0xc8,0xf6,0x22,0xbb,0xfe,0x05,0xe9,0x25,0x82,0xc8,0xf2,
-0x22,0xc5,0xf0,0xf8,0xa3,0xe0,0x28,0xf0,0xc5,0xf0,0xf8,0xe5,0x82,0x15,0x82,0x70,
-0x02,0x15,0x83,0xe0,0x38,0xf0,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xe0,0xf5,
-0xf0,0xa3,0xe0,0x22,0x50,0x06,0x87,0xf0,0x09,0xe7,0x19,0x22,0xbb,0xfe,0x07,0xe3,
-0xf5,0xf0,0x09,0xe3,0x19,0x22,0x89,0x82,0x8a,0x83,0xe4,0x93,0xf5,0xf0,0x74,0x01,
-0x93,0x22,0xbb,0x01,0x10,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,
-0xf5,0xf0,0xa3,0xe0,0x22,0x50,0x09,0xe9,0x25,0x82,0xf8,0x86,0xf0,0x08,0xe6,0x22,
-0xbb,0xfe,0x0a,0xe9,0x25,0x82,0xf8,0xe2,0xf5,0xf0,0x08,0xe2,0x22,0xe5,0x83,0x2a,
-0xf5,0x83,0xe9,0x93,0xf5,0xf0,0xa3,0xe9,0x93,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,
-0x83,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x06,0xf7,0x09,0xa7,0xf0,0x19,0x22,0xbb,
-0xfe,0x06,0xf3,0xe5,0xf0,0x09,0xf3,0x19,0x22,0xf8,0xbb,0x01,0x11,0xe5,0x82,0x29,
-0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x09,
-0xe9,0x25,0x82,0xc8,0xf6,0x08,0xa6,0xf0,0x22,0xbb,0xfe,0x09,0xe9,0x25,0x82,0xc8,
-0xf2,0xe5,0xf0,0x08,0xf2,0x22,0xef,0x4b,0xff,0xee,0x4a,0xfe,0xed,0x49,0xfd,0xec,
-0x48,0xfc,0x22,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0xa4,
-0x25,0x82,0xf5,0x82,0xe5,0xf0,0x35,0x83,0xf5,0x83,0x22,0xe0,0xfb,0xa3,0xe0,0xfa,
-0xa3,0xe0,0xf9,0x22,0xf8,0xe0,0xfb,0xa3,0xa3,0xe0,0xf9,0x25,0xf0,0xf0,0xe5,0x82,
-0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0xfa,0x38,0xf0,0x22,0xeb,0xf0,0xa3,0xea,0xf0,
-0xa3,0xe9,0xf0,0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,
-0x70,0x0d,0xa3,0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,
-0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x50,0x2e,
-0xe4,0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,
-0x80,0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,
-0x44,0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,
-0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x90,0x44,0x3d,0xe4,0x7e,0x01,0x93,0x60,
-0xbc,0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,
-0x0e,0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,
-0xa3,0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,
-0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x4f,
-0x00,0x41,0x9e,0xad,0x00,0x41,0x9e,0x61,0x80,0x41,0x9e,0x62,0x80,0x41,0x9e,0xaf,
-0x00,0x00,0xf0,0x90,0x9e,0x6b,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,
-0x7e,0x01,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x85,0xeb,0xf0,0xa3,0xe0,
-0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x30,0x62,0xd0,0xd0,0x92,0xaf,0x22,
-0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x86,0xf0,
-0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,
-0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x70,
-0x14,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x0c,0x50,0x02,0xf1,0x2b,0x22,0x8f,0x82,
-0x8e,0x83,0xa3,0xa3,0xa3,0xe4,0xf0,0x22,0xe4,0xf5,0x71,0x7f,0x60,0x7e,0x01,0x80,
-0xed,0x7d,0x01,0xaf,0x24,0xe1,0x2f,0xb1,0xa6,0xbf,0x01,0x0f,0x90,0x9e,0x51,0xe0,
-0xff,0xe4,0xfd,0xf1,0xd0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x53,0x23,0xf0,0x43,
-0x23,0x01,0x91,0xfd,0x91,0xfe,0x53,0x23,0xf0,0x43,0x23,0x02,0x22,0x22,0x22,0x22,
-0x22,0x00,0x00,0x02,0x5f,0x91,0x02,0x5f,0x98,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x8b,0x1b,0x8a,0x1c,0x89,0x1d,0x90,0x9e,0x88,0x71,0x8b,0xab,0x1e,0xaa,0x1f,0xa9,
-0x20,0x90,0x9e,0x8b,0x71,0x8b,0xaf,0x21,0x15,0x21,0xef,0x60,0x1b,0x90,0x9e,0x8b,
-0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x24,0x62,0xff,0x90,0x9e,0x88,0xe4,0x75,0xf0,
-0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x1b,0xaa,0x1c,0xa9,0x1d,0xd0,0xd0,
-0x92,0xaf,0x22,0x90,0x06,0xa9,0xe0,0x90,0x9e,0x2f,0xf0,0xe0,0x54,0xc0,0x70,0x08,
-0x53,0x26,0xfe,0x53,0x26,0xfd,0x91,0xd1,0x90,0x9e,0x2f,0xe0,0x30,0xe6,0x13,0x43,
-0x26,0x01,0x90,0x9e,0x73,0xe0,0x64,0x02,0x60,0x04,0x91,0xd7,0x80,0x07,0x91,0x80,
-0x80,0x03,0x53,0x26,0xfe,0x90,0x9e,0x2f,0xe0,0x30,0xe7,0x16,0x43,0x26,0x02,0xe4,
-0x90,0x9e,0x86,0x91,0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x74,0x74,0x01,
-0xf0,0x22,0x53,0x26,0xfd,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x04,0x1d,
-0xe0,0x60,0x1a,0x90,0x05,0x22,0xe0,0x54,0x90,0x60,0x07,0x90,0x01,0xc6,0xe0,0x44,
-0x40,0xf0,0x90,0x01,0xc7,0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,0x02,0x7f,0x01,0xd0,
-0xd0,0x92,0xaf,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,
-0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,
-0x07,0x90,0x01,0xc4,0x74,0xd4,0xf0,0x74,0x45,0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,
-0x3c,0xe0,0x55,0x30,0xf5,0x34,0xa3,0xe0,0x55,0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,
-0xf5,0x36,0xa3,0xe0,0x55,0x33,0xf5,0x37,0xe5,0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,
-0x74,0x01,0xf0,0xe5,0x34,0x30,0xe1,0x09,0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x66,
-0x09,0xe5,0x34,0x30,0xe2,0x38,0x90,0x01,0x3c,0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,
-0x30,0xe0,0x24,0x90,0x9e,0x86,0xe4,0xf0,0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,
-0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x91,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,
-0x06,0x92,0x74,0x01,0xf0,0x80,0x07,0x90,0x9e,0x71,0xe4,0xf0,0x91,0xd1,0xe5,0x34,
-0x30,0xe3,0x38,0x90,0x01,0x3c,0x74,0x08,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,
-0x90,0x9e,0x86,0xe4,0xf0,0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,
-0x7f,0x5c,0x7e,0x01,0x91,0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,
-0x02,0xf0,0x80,0x07,0x90,0x9e,0x70,0xe4,0xf0,0x91,0xd1,0xe5,0x34,0x30,0xe4,0x09,
-0x90,0x01,0x3c,0x74,0x10,0xf0,0x12,0x73,0x66,0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,
-0x3c,0x74,0x20,0xf0,0x12,0x52,0x64,0xe5,0x35,0x30,0xe0,0x18,0x90,0x01,0x3d,0x74,
-0x01,0xf0,0x90,0x01,0x2f,0xe0,0x44,0x7f,0xf0,0x90,0x00,0x83,0xe0,0xf5,0x24,0x12,
-0x64,0xe3,0x91,0xd1,0xe5,0x35,0x30,0xe2,0x06,0x90,0x01,0x3d,0x74,0x04,0xf0,0xe5,
-0x36,0x30,0xe0,0x06,0x90,0x01,0x3e,0x74,0x01,0xf0,0xe5,0x36,0x30,0xe1,0x06,0x90,
-0x01,0x3e,0x74,0x02,0xf0,0x74,0xd4,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,
-0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,
-0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x7d,0x01,0x7f,0x0c,0x90,
-0x9e,0xa6,0xed,0xf0,0x90,0x9e,0xa5,0xef,0xf0,0x54,0x0f,0xff,0xe5,0x23,0x54,0x0f,
-0x6f,0x60,0x70,0x90,0x9e,0xa5,0xe0,0x30,0xe2,0x2a,0xe5,0x23,0x20,0xe2,0x05,0x7f,
-0x01,0x12,0x63,0xf3,0xe5,0x23,0x30,0xe3,0x09,0x90,0x9e,0xa5,0xe0,0x20,0xe3,0x02,
-0x80,0x52,0xe5,0x23,0x20,0xe3,0x4c,0x90,0x9e,0xa5,0xe0,0x30,0xe3,0x45,0xa3,0xe0,
-0xff,0x02,0x5e,0x95,0xe5,0x23,0x54,0x0f,0xff,0xbf,0x0c,0x0f,0x90,0x9e,0xa5,0xe0,
-0x20,0xe3,0x08,0x12,0x62,0xd7,0xef,0x60,0x2a,0xf1,0xb4,0xe5,0x23,0x54,0x0f,0xff,
-0xbf,0x04,0x10,0x90,0x9e,0xa5,0xe0,0x20,0xe2,0x09,0x12,0x63,0x20,0xef,0x60,0x13,
-0x12,0x61,0x3a,0xe5,0x23,0x54,0x0f,0xff,0xbf,0x02,0x08,0x12,0x63,0x83,0xef,0x60,
-0x02,0x91,0xec,0x22,0x90,0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x22,0xb4,0x01,0x05,
-0x7f,0x01,0x12,0x5e,0x5c,0x53,0x23,0xf0,0x43,0x23,0x04,0x22,0xe0,0xff,0x7d,0x01,
-0x90,0x9e,0x99,0xef,0xf0,0xa3,0xed,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x25,0x60,
-0x05,0xe4,0xff,0x12,0x61,0x1f,0x90,0x9e,0x99,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9b,
-0xe4,0xf0,0xa3,0x74,0x80,0xf0,0x90,0x9e,0x99,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,
-0xf0,0x90,0x04,0x25,0xef,0xf0,0x90,0x9e,0x9a,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,
-0x24,0x0f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9b,0xa3,0xe0,
-0xff,0xfd,0x24,0x08,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,
-0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf7,0xf0,0x90,0x9e,0x9b,0xe0,0xfe,0xa3,0xe0,
-0xff,0x22,0x12,0x45,0xa6,0xbf,0x01,0x10,0x90,0x02,0x09,0xe0,0xff,0x7d,0x01,0x12,
-0x47,0xd0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,
-0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,
-0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0x79,0xf0,0x74,0x48,0xa3,0xf0,
-0x90,0x01,0x34,0xe0,0x55,0x28,0xf5,0x2c,0x90,0x01,0x36,0xe0,0x55,0x2a,0xf5,0x2e,
-0xa3,0xe0,0x55,0x2b,0xf5,0x2f,0xe5,0x2c,0x20,0xe0,0x02,0x41,0x17,0x90,0x01,0x34,
-0x74,0x01,0xf0,0x85,0xd1,0x08,0x85,0xd2,0x09,0x85,0xd3,0x0a,0x85,0xd4,0x0b,0x85,
-0xd5,0x0c,0x85,0xd6,0x0d,0x85,0xd7,0x0e,0x85,0xd9,0x0f,0xe5,0x0f,0x54,0x40,0xc3,
-0x13,0xff,0xe5,0x0e,0x54,0x20,0x6f,0x70,0x02,0x21,0xc9,0xe5,0x0f,0x30,0xe5,0x02,
-0x21,0xc9,0xe5,0x0d,0x54,0x3f,0xf5,0x4d,0xe5,0x08,0x54,0x3f,0xf5,0x4e,0xe5,0x0c,
-0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,
-0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,
-0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4e,
-0xd3,0x94,0x04,0x40,0x03,0x75,0x4e,0x04,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,
-0x12,0x43,0x5f,0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,
-0xe5,0x0e,0x54,0x1f,0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,
-0x00,0x12,0x43,0x5f,0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,
-0xf0,0xe5,0x0f,0x20,0xe6,0x24,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,
-0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,
-0x30,0xe7,0x36,0xaf,0x4d,0x12,0x5b,0x68,0x80,0x2f,0xe5,0x0e,0x54,0x1f,0xff,0xe5,
-0x4d,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
-0x42,0x81,0xe5,0x0a,0x30,0xe7,0x12,0xe5,0x0a,0x54,0x7f,0xfd,0xe5,0x0e,0x54,0x1f,
-0xf5,0x53,0xab,0x4e,0xaf,0x4d,0x12,0x5b,0x05,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,
-0x80,0x45,0x90,0x9e,0x73,0xe0,0x60,0x37,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,
-0x74,0x04,0xf0,0x71,0xc4,0xef,0x64,0x01,0x70,0x2d,0x90,0x9e,0x69,0xe0,0xf5,0x44,
-0x75,0x45,0x00,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x30,0x62,0x90,0x01,0x5b,
-0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x90,0x9e,0x71,0xf0,0x80,0x08,0x71,
-0xc4,0xbf,0x01,0x03,0x12,0x44,0xd1,0xe5,0x2c,0x30,0xe1,0x21,0x90,0x01,0x34,0x74,
-0x02,0xf0,0x85,0xd1,0x13,0x85,0xd2,0x14,0x85,0xd3,0x15,0x85,0xd4,0x16,0x85,0xd5,
-0x17,0x85,0xd6,0x18,0x85,0xd7,0x19,0x85,0xd9,0x1a,0x12,0x5c,0x46,0xe5,0x2c,0x30,
-0xe3,0x06,0x90,0x01,0x34,0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,
-0x74,0x10,0xf0,0x43,0x12,0x10,0xe5,0x2c,0x30,0xe5,0x24,0x90,0x01,0xcf,0xe0,0x30,
-0xe5,0x1d,0xe0,0x54,0xdf,0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,
-0xe8,0x00,0xd1,0xdb,0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0x71,0xdb,0x80,0xfe,0xe5,
-0x2c,0x30,0xe6,0x06,0x90,0x01,0x34,0x74,0x40,0xf0,0xe5,0x2e,0x30,0xe0,0x12,0x90,
-0x9e,0x5f,0x74,0x01,0xf0,0x90,0x01,0x36,0xf0,0x12,0x65,0xa3,0x90,0x9e,0x5f,0xe4,
-0xf0,0xe5,0x2e,0x30,0xe1,0x3b,0x90,0x01,0x36,0x74,0x02,0xf0,0x43,0x12,0x40,0x90,
-0x01,0x02,0xe0,0x54,0x03,0x64,0x01,0x70,0x28,0x90,0x01,0x37,0xe0,0x30,0xe0,0x0a,
-0x74,0x01,0xf0,0x90,0x9e,0x4f,0xe4,0xf0,0x80,0x17,0x90,0x9e,0x4f,0xe0,0x04,0xf0,
-0xe0,0xc3,0x94,0x0a,0x40,0x0b,0xe4,0xf0,0x90,0x04,0x19,0xe0,0x30,0xe0,0x02,0x11,
-0x62,0xe5,0x2e,0x30,0xe2,0x09,0x90,0x01,0x36,0x74,0x04,0xf0,0x12,0x65,0x3b,0xe5,
-0x2e,0x30,0xe3,0x28,0x90,0x01,0x36,0x74,0x08,0xf0,0xe5,0x22,0x64,0x01,0x70,0x1c,
-0xe5,0x25,0x60,0x18,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,
-0x9e,0x86,0xe4,0x12,0x44,0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,
-0x2b,0x90,0x01,0x36,0x74,0x10,0xf0,0xe5,0x22,0xb4,0x01,0x20,0xe5,0x25,0x60,0x1c,
-0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x74,0xe4,0xf0,
-0x53,0x26,0xfd,0xe5,0x26,0x54,0x07,0x70,0x03,0x12,0x44,0xd1,0xe5,0x2e,0x30,0xe5,
-0x1f,0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x22,0xb4,0x01,0x14,0xe5,0x25,0x60,0x10,
-0x90,0x9e,0x73,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xd7,0x80,0x03,0x12,0x44,0x80,
-0xe5,0x2e,0x30,0xe6,0x1b,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x22,0xb4,0x01,0x10,
-0xe5,0x25,0x60,0x0c,0x53,0x26,0xfe,0xe5,0x26,0x54,0x07,0x70,0x03,0x12,0x44,0xd1,
-0xe5,0x2f,0x30,0xe1,0x09,0x90,0x01,0x37,0x74,0x02,0xf0,0x12,0x61,0x92,0x74,0x79,
-0x04,0x90,0x01,0xc4,0xf0,0x74,0x48,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,
-0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,
-0xf0,0xd0,0xe0,0x32,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,0x02,
-0x7f,0x00,0x22,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x7f,0x10,0xdf,0xfe,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x90,0x9e,0xac,0xed,0xf0,0x90,0x9e,0xab,0xef,0xf0,0xd3,0x94,0x07,0x50,
-0x63,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x47,0xe0,0x5f,0xf0,0x71,0xdb,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x46,0xe0,0x4f,0xf0,0x71,
-0xdb,0x90,0x9e,0xac,0xe0,0x60,0x16,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x45,0x80,0x66,0x90,0x9e,0xab,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,
-0x00,0x45,0x80,0x6b,0x90,0x9e,0xab,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0x71,0xd3,0x90,0x9e,0xab,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,
-0x43,0xe0,0x4f,0xf0,0x71,0xdb,0x90,0x9e,0xac,0xe0,0x60,0x1b,0x90,0x9e,0xab,0xe0,
-0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xff,
-0x90,0x00,0x42,0xe0,0x4f,0x80,0x1a,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x42,0xe0,
-0x5f,0xf0,0x71,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0xf0,0x90,0x00,0x45,0xe0,0x54,0xfe,
-0xfd,0x7f,0x45,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,0x00,0xed,
-0xf0,0x71,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,0x66,0x24,
-0x02,0x60,0x02,0xa1,0x9f,0x90,0x9e,0x1a,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,0x44,
-0x0c,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,0x47,0x91,
-0xe3,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,0x9e,0x1a,
-0xf0,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,
-0x08,0x12,0x2b,0x08,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,
-0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,0x10,
-0xfd,0x7f,0x46,0x80,0x38,0x90,0x9e,0x1a,0x74,0x01,0xf0,0x90,0x9e,0x20,0x12,0x43,
-0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x90,0x00,
-0x45,0xe0,0x44,0x20,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,
-0x7f,0x45,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x91,0xe3,0x22,
-0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x1c,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,
-0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1b,0xf0,0x12,0x24,0x62,0x25,0xe0,0x25,0xe0,0x90,
-0x9e,0x1f,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,
-0x9e,0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,
-0x9e,0x2d,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x1b,
-0xe0,0xff,0x12,0x52,0x12,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,0x1c,
-0xe0,0x70,0x02,0xc1,0xa7,0x90,0x9e,0x1b,0xe0,0x70,0x02,0xc1,0xa7,0x90,0x9e,0x1f,
-0xe0,0x70,0x02,0xc1,0xa7,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,
-0x9e,0x2e,0x74,0x01,0xf0,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x91,0xda,0x90,
-0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x91,0xe3,0x90,0x9e,0x14,0xe0,0x60,0x15,
-0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,
-0x12,0x2b,0x08,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,
-0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,
-0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,
-0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,
-0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,
-0xe4,0xff,0x12,0x31,0xb7,0x80,0x2b,0x90,0x9e,0x1c,0xe0,0x70,0x2d,0x90,0x9e,0x2e,
-0x91,0xd9,0x90,0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x91,0xe3,0x90,0x05,0x22,
-0xe4,0xf0,0xa2,0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,
-0x31,0x49,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x22,0x90,0x01,0x30,0xe4,0xf0,
-0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,
-0xfd,0x7f,0x50,0x91,0xe3,0xe4,0xfd,0x7f,0x51,0x91,0xe3,0xe4,0xfd,0x7f,0x52,0x91,
-0xe3,0xe4,0xfd,0x7f,0x53,0x81,0xe3,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x90,0x00,0x02,
-0x12,0x42,0x20,0x90,0x9e,0x1d,0xf0,0xe0,0x30,0xe0,0x4b,0x90,0x9e,0x14,0x74,0x01,
-0xf0,0x7f,0x80,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0x16,0x12,0x25,0x08,0xab,0x59,
-0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xe4,0xfc,0xfd,0xfe,0x78,
-0x1a,0x12,0x24,0xf5,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,0x16,0x12,
-0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x25,0x08,0x90,
-0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x14,0xf0,0x7f,0x80,0x7e,0x08,0x12,
-0x22,0x65,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,0x25,0x08,
-0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,
-0x12,0x2b,0x08,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,0x91,0xe3,
-0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,
-0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,0x47,0x91,0xe3,0x90,0x00,
-0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x46,0xe0,0x54,0xef,0xfd,
-0x7f,0x46,0x91,0xe3,0xe4,0x90,0x9e,0x1a,0xf0,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,
-0xb0,0xf0,0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x91,0xe3,0x90,0x9e,0xb0,
-0xe0,0x44,0xb0,0xfd,0x7f,0x49,0x81,0xe3,0x75,0x28,0x33,0xe4,0xf5,0x29,0x75,0x2a,
-0x07,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,0xa3,0xe5,0x2a,
-0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,
-0x01,0x38,0xe5,0x30,0xf0,0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0xe4,0x90,
-0x9e,0x31,0xf0,0xa3,0xf0,0x75,0x8e,0x02,0x12,0x77,0x64,0x12,0x5e,0xde,0x90,0x9e,
-0x5e,0xef,0xf0,0x12,0x5e,0xeb,0x90,0x9e,0x60,0xef,0xf0,0xe4,0xf5,0x12,0x12,0x6e,
-0xdf,0x12,0x77,0xdb,0x12,0x5f,0x9f,0x12,0x2e,0x01,0x12,0x77,0xd7,0x12,0x4f,0xf8,
-0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,
-0xf0,0xa3,0xe4,0xf0,0x12,0x5e,0xf8,0x11,0x16,0x12,0x44,0xff,0x12,0x7d,0x9b,0x90,
-0x9e,0x33,0xe5,0xd9,0xf0,0x12,0x5e,0xaf,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,
-0xf0,0x12,0x4b,0xdb,0x75,0xe8,0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x9e,0x31,0xe0,
-0x64,0x01,0xf0,0x24,0x2e,0x90,0x01,0xc4,0xf0,0x74,0x50,0xa3,0xf0,0xe5,0x12,0x30,
-0xe4,0x09,0xc2,0xaf,0x53,0x12,0xef,0xd2,0xaf,0x71,0x1a,0xe5,0x12,0x30,0xe6,0x16,
-0xc2,0xaf,0x53,0x12,0xbf,0xd2,0xaf,0x12,0x68,0x8d,0x90,0x9e,0x1e,0xe0,0xff,0x60,
-0x03,0xb4,0x01,0x02,0x31,0x10,0x90,0x9e,0x1e,0xe0,0x70,0x03,0x12,0x7d,0xf9,0x11,
-0xe3,0x80,0xb9,0x90,0x06,0x34,0xe0,0x60,0x26,0x14,0x70,0x1b,0x7b,0x01,0x7a,0x06,
-0x79,0x35,0x7f,0xf9,0x7e,0x01,0x12,0x77,0x75,0xbf,0x01,0x09,0x90,0x06,0x35,0xe0,
-0x54,0x0f,0xf0,0x80,0x05,0x80,0x00,0x02,0x77,0x56,0xe4,0x90,0x06,0x34,0xf0,0x22,
-0x90,0x9e,0x15,0xe0,0xc3,0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0x21,0xc8,0x90,0x9e,
-0x15,0xe0,0x64,0x14,0x60,0x02,0x21,0xc8,0x90,0x9e,0x24,0xe0,0x70,0x25,0x90,0x9e,
-0x27,0xe0,0x70,0x1f,0x90,0x9e,0x25,0xe0,0x70,0x19,0x90,0x9e,0x28,0xe0,0x70,0x13,
-0x90,0x9e,0x26,0xe0,0x70,0x0d,0x90,0x9e,0x29,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,
-0x54,0xfe,0xf0,0x90,0x9e,0x24,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x25,0xe0,0x90,
-0x04,0x45,0xf0,0x90,0x9e,0x26,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,
-0x27,0xe0,0x90,0x04,0x48,0xf0,0x90,0x9e,0x28,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,
-0x29,0xe0,0x90,0x04,0x4a,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x10,0xe0,0x90,0x04,0x4c,
-0xf0,0x90,0x9e,0x11,0xe0,0x90,0x04,0x4d,0xf0,0x90,0x9e,0x12,0xe0,0x90,0x04,0x4e,
-0xf0,0x90,0x9e,0x13,0xe0,0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x15,0xf0,0x90,0x9e,
-0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x24,0xf0,0xa3,0xf0,
-0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x34,0xf0,
-0x90,0x05,0x61,0xe0,0x90,0x9e,0x35,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x36,0xf0,
-0x90,0x05,0x63,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0x2d,0xe0,0xff,0x90,0x9e,0x37,
-0xe0,0xfe,0xd3,0x9f,0x50,0x0b,0x90,0x9e,0x2d,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,
-0x10,0x90,0x9e,0x1b,0xe0,0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x1f,0xe0,0xff,0x51,
-0x12,0x22,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,
-0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,
-0x2d,0xf0,0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x2b,0xe0,0xd3,0x9e,0x40,0x1e,0xe0,
-0x2f,0xf0,0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,0xe0,0xb4,0xff,0x03,0xe4,0xf0,
-0x22,0x90,0x9e,0x2d,0x80,0x03,0x90,0x9e,0x2c,0xe0,0x04,0xf0,0x22,0x90,0x9e,0x2b,
-0xe0,0x2f,0xf0,0x22,0x90,0x9e,0x1c,0xe0,0x64,0x01,0x60,0x02,0x61,0x19,0x90,0x00,
-0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x90,0x9e,0x2e,0xe0,0x70,0x32,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,
-0xf0,0x90,0x9e,0x1b,0xe0,0xff,0x51,0x12,0x90,0x9e,0x2e,0x74,0x01,0x12,0x4c,0xd9,
-0x80,0x40,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x70,0x38,0x90,0x9e,0x1f,0xe0,0xff,0x51,
-0x12,0xe4,0x90,0x9e,0x2e,0xf0,0x90,0x00,0x45,0xe0,0x44,0x01,0xfd,0x7f,0x45,0x12,
-0x4c,0xe3,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,
-0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x08,0x12,0x2b,0x08,0x80,0x05,0x90,0x05,0x22,
-0xe4,0xf0,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,0x84,
-0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,0x86,
-0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,0x01,0xcc,0xe0,0x54,0x0f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfd,0x70,0x02,0x81,0x5b,0x90,0x9e,0xad,
-0xe0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xef,0x5d,0x70,0x02,0x81,0x54,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd0,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x35,0xf0,0x75,0x1e,0x01,0x75,0x1f,
-0x9e,0x75,0x20,0x35,0x75,0x21,0x01,0x7b,0x01,0x7a,0x9e,0x79,0x36,0x12,0x45,0x09,
-0x90,0x9e,0x36,0xe0,0xff,0xc4,0x13,0x13,0x13,0x54,0x01,0x90,0x9e,0xad,0x30,0xe0,
-0x59,0xe0,0x75,0xf0,0x02,0x90,0x00,0x88,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,
-0x90,0x9e,0xad,0xe0,0x75,0xf0,0x02,0x90,0x00,0x89,0x12,0x43,0x5f,0xe0,0x90,0x9e,
-0x38,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,
-0x90,0x9e,0x39,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,
-0x5f,0xe0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,
-0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3b,0xf0,0x80,0x33,0xe0,0x75,0xf0,0x04,0x90,0x01,
-0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x38,0xf0,0x90,0x9e,0xad,0xe0,0x75,
-0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x39,0xf0,0xef,0x54,0x7f,
-0xff,0x7b,0x01,0x7a,0x9e,0x79,0x37,0x91,0x5c,0x90,0x9e,0x34,0xe0,0xff,0x90,0x9e,
-0xad,0xe0,0xfe,0x74,0x01,0xa8,0x06,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0x5f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0xad,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0x90,0x01,0xcc,0xf0,0x90,0x9e,0xad,0xe0,0x04,0xf0,0xe0,0x54,
-0x03,0xf0,0x61,0x24,0x90,0x01,0xc6,0xe0,0x44,0x02,0xf0,0x22,0x90,0x9e,0x3c,0x12,
-0x43,0x8b,0xef,0x12,0x43,0x94,0x54,0x97,0x01,0x54,0xa0,0x02,0x54,0xbb,0x03,0x54,
-0xc4,0x05,0x54,0xcd,0x06,0x55,0x1b,0x07,0x54,0xd5,0x09,0x54,0xde,0x0c,0x54,0xe7,
-0x0d,0x54,0xf0,0x0e,0x54,0xf9,0x1b,0x55,0x02,0x1c,0x55,0x0b,0x2c,0x54,0xa9,0x2d,
-0x54,0xb2,0x2e,0x00,0x00,0x55,0x14,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x61,0x69,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0x02,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x71,0x08,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0x50,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x71,0x7e,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0xb2,0x90,0x9e,0x3c,
-0x12,0x43,0x6b,0x80,0x47,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0xc6,0x90,0x9e,
-0x3c,0x12,0x43,0x6b,0x02,0x4d,0xa0,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x7d,0x68,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x4f,0x07,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x70,0xfa,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0xe1,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x76,0x36,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,0x22,0x90,0x00,0x04,0x12,
-0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,0x54,0x07,0xfd,0xaf,0x06,
-0x90,0x9e,0x3f,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,0x8b,0x90,0x9e,0x41,0x12,
-0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,0x54,0x0f,0x90,0x9e,0x44,
-0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,0x13,0x54,0x03,0x90,0x9e,
-0x45,0xf0,0x90,0x9e,0x3f,0xe0,0xff,0x75,0xf0,0x09,0x90,0x96,0x46,0x12,0x43,0x5f,
-0xad,0x82,0xac,0x83,0x90,0x9e,0x46,0xec,0xf0,0xa3,0xed,0xf0,0xef,0x75,0xf0,0x09,
-0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,0xa3,0x12,0x43,0x8b,0x90,
-0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0x0f,0xff,0x90,0x9e,
-0x48,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,
-0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0x90,0x00,0x01,0xef,0x12,
-0x42,0x5f,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,
-0x9e,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,0xf0,0x12,0x24,0x62,
-0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,0x90,0x9e,0x3f,0xe0,0xff,
-0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,0x9e,0x40,0xe0,0xfe,
-0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,0x75,0xf0,0x09,0xef,
-0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x45,0xe0,0xfe,0x75,0xf0,
-0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,0x59,0xef,0x25,0xe0,0x24,
-0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x5b,0x8f,0x5c,0xe5,0x59,0x75,0xf0,
-0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x5d,0x01,0xf5,0x5e,0x89,0x5f,
-0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x46,0x12,0x43,0x5f,0xaf,0x82,0x85,0x83,0x60,
-0x8f,0x61,0xe5,0x59,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0x75,
-0x62,0x01,0xf5,0x63,0x89,0x64,0x74,0x82,0x25,0x59,0xf5,0x82,0xe4,0x34,0x95,0xf5,
-0x83,0xe0,0x12,0x43,0x94,0x56,0xaa,0x00,0x56,0xbf,0x01,0x56,0xd4,0x02,0x56,0xe9,
-0x03,0x57,0x13,0x04,0x57,0x28,0x05,0x57,0x3d,0x06,0x57,0x64,0x0c,0x57,0x92,0x0d,
-0x57,0xbf,0x0e,0x57,0xec,0x0f,0x00,0x00,0x58,0x20,0xe5,0x59,0x25,0xe0,0x24,0xc6,
-0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x15,0x80,0x3c,0xe5,
-0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,
-0x74,0x10,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,
-0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,0xe5,0x59,0x25,0xe0,
-0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0x8f,0xf0,
-0x02,0x58,0x20,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0x74,0x0d,0xf0,
-0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0x02,0x58,0x20,0x90,0x04,0x47,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,
-0x4d,0x90,0x04,0x46,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,
-0x5f,0x90,0x04,0x45,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x44,0x02,
-0x58,0x17,0x90,0x04,0x4b,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,
-0x04,0x4a,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,
-0x04,0x49,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,0x90,
-0x04,0x4f,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x4e,0xe0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x4d,0xe0,
-0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,0xe0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x5d,0xaa,
-0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x5c,0x82,
-0x85,0x5b,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,0xf0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x24,0x62,0xff,
-0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x24,0x62,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,
-0x12,0x42,0x4d,0xab,0x5d,0xe5,0x5f,0x24,0x01,0xf9,0xe4,0x35,0x5e,0xfa,0xc0,0x03,
-0xc0,0x02,0xc0,0x01,0x12,0x24,0x62,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x90,0x00,
-0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,0x5c,
-0x82,0x85,0x5b,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,
-0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,
-0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,0xa3,0xe0,0xfe,0xef,
-0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,
-0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,0x5a,0x0b,0x74,0x01,0x7e,
-0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,
-0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x5d,0x15,0x5a,0xe5,0x5a,0xc3,0x94,
-0x00,0x50,0xca,0x80,0x56,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
-0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x5a,0x0f,0x74,0x01,0x7e,0x00,
-0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,
-0x4e,0x60,0x08,0x90,0x9e,0x4b,0xe5,0x5a,0xf0,0x80,0x10,0x15,0x5a,0xe5,0x5a,0xc3,
-0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x4b,0xf0,0xe5,0x59,0x25,0xe0,0x24,
-0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0xe4,
-0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x4c,0xe5,0x5a,0xf0,0x80,
-0x5b,0x05,0x5a,0xe5,0x5a,0xb4,0x10,0xca,0x80,0x52,0xe5,0x59,0x25,0xe0,0x24,0x02,
-0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x39,0xe4,0xf5,
-0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
-0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,
-0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x0a,0x05,0x5a,
-0xe5,0x5a,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x4c,0xf0,0x90,0x9e,0x4b,0xe0,
-0xff,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xef,0xf0,0x90,0x9e,
-0x4c,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x49,0x12,0x43,0x5f,0xee,0xf0,
-0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,0x05,
-0x90,0x9e,0x4b,0x51,0x6f,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0xff,0x90,0x9e,0x4c,0xe0,0xfe,0xef,0xc3,0x9e,0x50,0x02,0x51,0x6f,0x90,0x9e,
-0x4b,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,0x74,0x03,0xf0,0x22,0xef,
-0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,0x22,0xef,0xd3,0x94,0x03,
-0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,0x96,0x43,0xf0,0x22,0xe0,
-0xfd,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xed,0xf0,0xaf,0x59,
-0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,0x50,0x0e,0x74,0x84,0x2f,
-0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,0x74,0xa6,0x2f,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x75,0xef,0xf0,0x24,0xa6,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x76,0xf0,0x7b,0x01,0x7a,0x9e,0x79,0x75,
-0x7d,0x02,0x51,0xc9,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0x94,0x12,0x43,0x8b,0x90,0x9e,0x97,0xe0,0x54,0xf0,0x44,0x06,0xff,0xf0,
-0xed,0x54,0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,0xf0,0x90,0x9e,0x94,0x12,
-0x43,0x6b,0x90,0x9e,0x91,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x97,0x71,0xd4,
-0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x50,0x8d,0x51,0xe5,0x51,0x54,0x1f,0xf5,0x56,0x74,
-0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xf5,0x54,0x90,0x04,0xfd,0xe0,
-0xb4,0x01,0x05,0x75,0x57,0x03,0x80,0x03,0x75,0x57,0x01,0xeb,0xc3,0x95,0x57,0x40,
-0x04,0xaf,0x50,0x80,0x33,0xe5,0x54,0x25,0x53,0xf5,0x55,0xe5,0x56,0x90,0x41,0xd6,
-0x93,0xff,0xe5,0x55,0xd3,0x9f,0x74,0x01,0x40,0x11,0x25,0x50,0xf5,0x82,0xe4,0x34,
-0x94,0xf5,0x83,0xe4,0xf0,0xad,0x51,0xaf,0x50,0x41,0x80,0x25,0x50,0xf5,0x82,0xe4,
-0x34,0x94,0xf5,0x83,0xe5,0x55,0xf0,0x22,0xad,0x07,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,
-0xe0,0x54,0x1f,0xf5,0x58,0xd3,0x9f,0x40,0x02,0x8f,0x58,0xe5,0x58,0x25,0xe0,0x24,
-0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,
-0x58,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,
-0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x05,0xad,0x58,0x51,
-0x80,0xaf,0x58,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x8e,0x12,0x43,
-0x8b,0x90,0x9e,0xaf,0xe0,0xff,0x04,0xf0,0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x7f,
-0xaf,0x7e,0x01,0x91,0x67,0xef,0x60,0x49,0x90,0x9e,0x8e,0x12,0x43,0x6b,0x8b,0x1e,
-0x8a,0x1f,0x89,0x20,0x75,0x21,0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x45,0x09,
-0x90,0x9e,0x91,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x90,0x9e,0x8e,0x12,
-0x43,0x6b,0x12,0x24,0x62,0xff,0xc4,0x54,0x0f,0xf5,0x21,0x7b,0x01,0x7a,0x01,0x79,
-0xa2,0x12,0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,
-0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,0x2f,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,
-0x0f,0x44,0x80,0xf0,0x7b,0x00,0x7a,0x00,0x79,0x13,0x90,0x9e,0x91,0x12,0x43,0x8b,
-0x0b,0x7a,0x9e,0x79,0x2f,0x61,0xd4,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
-0x9d,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x9d,0xe0,0xfe,
-0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,0xa0,0xe0,0x94,0xe8,
-0x90,0x9e,0x9f,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x7f,
-0x00,0x80,0x15,0x90,0x9e,0x9f,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x0a,0x7e,
-0x00,0x12,0x32,0x15,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xac,0x07,0xec,
-0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2c,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
-0x80,0x0b,0x74,0xa6,0x2c,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,
-0x64,0xe5,0x64,0x54,0x1f,0xff,0x90,0x9e,0x40,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,
-0x49,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x42,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x48,
-0x12,0x43,0x5f,0xe0,0xfe,0x90,0x9e,0x43,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x44,0xcb,0xf0,0xa3,0xeb,
-0xf0,0xec,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,
-0xe0,0x90,0x9e,0x46,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,0x40,0x0a,0x90,0x9e,
-0x43,0xe0,0x90,0x9e,0x40,0xf0,0xf5,0x64,0xed,0x70,0x02,0xc1,0x13,0x90,0x9e,0x41,
-0xed,0xf0,0xe5,0x64,0x30,0xe6,0x0a,0x90,0x9e,0x40,0xe0,0xf5,0x64,0xa3,0xe0,0x14,
-0xf0,0x90,0x9e,0x41,0xe0,0x70,0x02,0xc1,0x13,0x90,0x9e,0x40,0xe0,0xff,0xd3,0x94,
-0x00,0x50,0x02,0xc1,0x13,0xe4,0x90,0x9e,0x3f,0xf0,0xef,0x14,0x90,0x9e,0x3e,0xf0,
-0x90,0x9e,0x42,0xe0,0xfd,0x90,0x9e,0x3e,0xe0,0xff,0xd3,0x9d,0x40,0x6b,0xef,0x94,
-0x10,0x40,0x21,0xef,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x46,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x70,0x27,0x90,0x9e,0x3e,0xe0,0xff,0xc3,0x94,0x10,0x50,0x33,0x74,0x01,
-0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,
-0x9e,0x44,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,0x9e,0x3e,0xe0,0xf5,
-0x64,0xa3,0xe0,0x04,0xf0,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,0x3f,0xe0,0x6f,0x60,
-0x08,0x90,0x9e,0x3e,0xe0,0x14,0xf0,0x80,0x87,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,
-0x3f,0xe0,0xc3,0x9f,0x50,0x0d,0x90,0x9e,0x3e,0xe0,0xb5,0x05,0x06,0x90,0x9e,0x42,
-0xe0,0xf5,0x64,0xe5,0x64,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x64,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
-0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
-0x13,0xff,0xec,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
-0xa3,0xef,0xf0,0xaf,0x04,0xad,0x64,0x51,0x80,0xaf,0x64,0x22,0x8f,0x77,0x12,0x45,
-0xa6,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x52,0x12,0x47,0xcc,0xe5,0x77,0x60,0x10,
-0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x80,0x0e,
-0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x90,0x04,
-0x1f,0x74,0x20,0xf0,0x22,0x90,0x06,0x04,0xe0,0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,
-0x22,0xb4,0x01,0x04,0xe4,0xff,0xd1,0x5c,0x53,0x23,0xf0,0x43,0x23,0x0c,0x22,0x90,
-0x01,0x3c,0x74,0xff,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0xfd,0x7f,0x54,0x12,0x4c,0xe3,0x7d,0xff,0x7f,0x55,0x12,0x4c,0xe3,
-0x7d,0xff,0x7f,0x56,0x12,0x4c,0xe3,0x7d,0xff,0x7f,0x57,0x02,0x4c,0xe3,0x90,0x00,
-0x02,0xe0,0x54,0xe0,0x7f,0x01,0x60,0x02,0x7f,0x00,0x22,0x90,0x00,0xf3,0xe0,0x7f,
-0x00,0x30,0xe3,0x03,0x7f,0x01,0x22,0x22,0x90,0x01,0x64,0x74,0xa0,0xf0,0x22,0xc0,
-0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,
-0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,
-0xff,0xf0,0x74,0x5e,0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,0x90,0x00,
-0x55,0xe0,0x5f,0xf5,0x3d,0xe5,0x3d,0x30,0xe6,0x18,0x74,0x40,0xf0,0x90,0x9e,0x1d,
-0xe0,0x54,0x03,0xff,0xbf,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0x60,0x05,0x7f,0x01,0x12,
-0x4c,0xf8,0xe5,0x3d,0x30,0xe7,0x15,0x90,0x00,0x55,0x74,0x80,0xf0,0x90,0x9e,0x1d,
-0xe0,0x54,0x03,0xff,0xbf,0x03,0x05,0x7f,0x02,0x12,0x4c,0xf8,0x90,0x01,0xc4,0x74,
-0xff,0xf0,0x74,0x5e,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,
-0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,
-0x32,0x8f,0x6b,0x8c,0x6c,0x8d,0x6d,0x22,0x8f,0x6e,0x8c,0x6f,0x8d,0x70,0x22,0xe4,
-0xf5,0x22,0xf5,0x26,0xf5,0x25,0x75,0x24,0x0c,0x75,0x23,0x0c,0x90,0x9e,0x73,0xf0,
-0x90,0x9e,0x71,0xf0,0x90,0x9e,0x70,0xf0,0x90,0x9e,0x72,0x04,0xf0,0x90,0x9e,0x64,
-0xf0,0xe4,0x90,0x9e,0x74,0xf0,0x90,0x9e,0x66,0xf0,0x90,0x9e,0x6e,0x74,0x07,0xf0,
-0xe4,0x90,0x9e,0x65,0xf0,0x90,0x9e,0x6c,0xf0,0xa3,0x74,0x02,0xf0,0x90,0x9e,0x6a,
-0x14,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x69,0x74,0x14,0xf0,0x90,0x9e,0x6f,0x74,
-0x05,0xf0,0xe4,0x90,0x9e,0x68,0xf0,0x90,0x9e,0x63,0xf0,0x90,0x9e,0x5f,0xf0,0x22,
-0xe4,0x90,0x9e,0x74,0xf0,0x90,0x9e,0x65,0xf0,0xf5,0x26,0x22,0x8b,0x59,0x8a,0x5a,
-0x89,0x5b,0x11,0x00,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x12,0x24,0x62,0xf5,0x25,0x14,
-0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,0x40,0x7f,0x01,0x80,0x3a,
-0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0xe4,0xff,0x11,
-0x6d,0x80,0x27,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,
-0x7f,0x01,0x11,0x6d,0x1f,0x80,0x13,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,
-0x12,0x42,0x20,0xfd,0x7f,0x02,0x11,0x6d,0xe4,0xff,0x11,0x98,0x22,0xef,0x24,0xfe,
-0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x72,0x74,0x01,0xf0,0x80,0x16,0xed,0x70,0x0a,
-0x90,0x9e,0x6f,0xe0,0x90,0x9e,0x72,0xf0,0x80,0x05,0x90,0x9e,0x72,0xed,0xf0,0x90,
-0x9e,0x72,0xe0,0x90,0x9e,0x64,0xf0,0x22,0xef,0x64,0x01,0x70,0x2f,0x7d,0x7c,0x7f,
-0x02,0x12,0x31,0x2c,0x7d,0x02,0x7f,0x03,0x12,0x31,0x2c,0x90,0x01,0x57,0xe4,0xf0,
-0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x47,0x2b,0xe4,0xff,0x31,0x1f,0x90,0x06,0x04,
-0xe0,0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,
-0x7c,0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x31,0x9d,0x7d,0x02,0x7f,0x03,
-0x12,0x31,0x9d,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,
-0xf0,0x90,0x9e,0x6c,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0xe5,0x22,0x30,0xe0,0x19,
-0x90,0x9e,0x66,0xe0,0x70,0x18,0xe0,0x04,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x04,
-0x50,0x0c,0x7d,0x01,0x7f,0x04,0x02,0x47,0x2f,0xe4,0x90,0x9e,0x66,0xf0,0x22,0xef,
-0x60,0x0b,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x60,
-0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x77,0xe4,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,
-0x90,0x05,0x22,0x74,0xff,0xf0,0x31,0xc3,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,0xfd,
-0xf0,0x7d,0x02,0x7f,0x03,0x12,0x31,0x9d,0xe5,0x25,0x60,0x04,0x7f,0x01,0x31,0x1f,
-0x51,0x04,0x53,0x23,0xf0,0x43,0x23,0x02,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x73,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,
-0x90,0x9e,0x63,0xf0,0x12,0x24,0x62,0x65,0x25,0x60,0x02,0x11,0x0c,0xd0,0xd0,0x92,
-0xaf,0x22,0x7d,0x02,0x7f,0x03,0x12,0x31,0x2c,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,
-0x80,0x20,0x90,0x9e,0x73,0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0d,0xe5,0x23,
-0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x2f,0xe4,0xff,
-0x31,0x1f,0x22,0xe4,0x90,0x9e,0xa9,0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,
-0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,
-0x90,0x9e,0xaa,0xe0,0x94,0xe8,0x90,0x9e,0xa9,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,
-0x22,0x7f,0x32,0x7e,0x00,0x12,0x32,0x15,0x90,0x9e,0xa9,0xe4,0x75,0xf0,0x01,0x12,
-0x42,0x81,0x80,0xc6,0x7f,0x78,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xff,0x12,0x25,
-0x08,0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,0x9e,0x03,0x12,0x25,0x08,0x7f,0x00,
-0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0x07,0x12,0x25,0x08,0x90,0x9e,0x60,0xe0,0x90,
-0x9d,0xff,0xb4,0x01,0x0d,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,
-0x80,0x07,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,
-0x7f,0x78,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,
-0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,
-0x9e,0x07,0x12,0x43,0x53,0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x96,0x12,0x25,0x08,
-0x7f,0x00,0x7e,0x08,0x12,0x2b,0x08,0x7f,0x70,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9e,
-0x0b,0x12,0x25,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa0,0x7f,0x70,
-0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x00,0x00,0x00,0xe4,
-0xfd,0xff,0x12,0x30,0x2c,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x11,0x90,0x80,0x68,0x12,
-0x25,0x14,0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,0x01,0x12,0x30,0x2c,0x90,0x00,0x11,
-0xe0,0x54,0xf6,0xf0,0x02,0x4b,0xdb,0x12,0x4b,0xc4,0xef,0x64,0x01,0x60,0x08,0x90,
-0x01,0xb9,0x74,0x01,0xf0,0x80,0x30,0x90,0x9e,0x71,0xe0,0x60,0x08,0x90,0x01,0xb9,
-0x74,0x02,0xf0,0x80,0x22,0x90,0x9e,0x70,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,
-0xf0,0x80,0x14,0xe5,0x24,0x54,0x0f,0xd3,0x94,0x04,0x40,0x08,0x90,0x01,0xb9,0x74,
-0x08,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x08,0xf0,0x7f,0x00,0x22,
-0x12,0x4b,0xc4,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x4a,
-0xe5,0x26,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x3c,0xe5,0x24,
-0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x2b,0xe5,
-0x26,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x1e,0xe5,0x26,0x30,0xe4,
-0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x11,0x90,0x9e,0x66,0xe0,0x60,0x08,0x90,
-0x01,0xb9,0x74,0x20,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,
-0x7f,0x00,0x22,0xe5,0x12,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x5b,0xe5,
-0x24,0x54,0x0f,0xd3,0x94,0x01,0x40,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x4a,
-0x90,0x02,0x87,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x3c,0x90,0x9e,
-0x5e,0xe0,0xb4,0x01,0x10,0x90,0x9e,0x4d,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,
-0xe0,0x60,0x16,0x80,0x25,0x90,0x9e,0x5e,0xe0,0x70,0x0e,0x90,0x01,0xaf,0xe0,0x60,
-0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x11,0x90,0x9e,0x68,0xe0,0x70,0x08,0x90,
-0x01,0xb9,0x74,0x10,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x02,0xf0,
-0x7f,0x00,0x22,0x90,0x9e,0xae,0xef,0xf0,0x91,0x0c,0x90,0x9e,0xae,0xe0,0x60,0x05,
-0x90,0x05,0x22,0xe4,0xf0,0x53,0x23,0xf0,0x43,0x23,0x04,0x22,0x90,0x00,0x11,0xe0,
-0x44,0x09,0xf0,0x12,0x4b,0xdb,0x90,0x9d,0xff,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0x78,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x03,0x12,0x43,0x53,0x90,
-0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,0x9e,0x07,0x12,
-0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x00,0x7e,0x08,0x12,0x2b,0x08,0x90,
-0x9e,0x0b,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x70,0x7e,0x0e,0x12,
-0x2b,0x08,0x90,0x80,0x68,0x12,0x25,0x14,0x00,0x03,0x2d,0x95,0xe4,0xfd,0xff,0x12,
-0x30,0x2c,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x11,0x90,0x80,0x68,0x12,0x25,0x14,0x00,
-0x03,0x2d,0x95,0xe4,0xfd,0x7f,0x01,0x12,0x30,0x2c,0x22,0x8f,0x27,0xe4,0x90,0x9e,
-0xa7,0xf0,0xa3,0xf0,0x90,0x01,0x09,0xe0,0x7f,0x00,0x30,0xe7,0x02,0x7f,0x01,0xef,
-0x65,0x27,0x60,0x3e,0xc3,0x90,0x9e,0xa8,0xe0,0x94,0x88,0x90,0x9e,0xa7,0xe0,0x94,
-0x13,0x40,0x08,0x90,0x01,0xc6,0xe0,0x44,0x80,0xf0,0x22,0x90,0x9e,0xa7,0xe4,0x75,
-0xf0,0x01,0x12,0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x32,0x15,0xd3,0x90,0x9e,0xa8,
-0xe0,0x94,0x32,0x90,0x9e,0xa7,0xe0,0x94,0x00,0x40,0xb9,0x90,0x01,0xc7,0xe0,0x30,
-0xe0,0xb2,0x22,0xe5,0x24,0x30,0xe6,0x19,0xe5,0x24,0x54,0x0f,0xff,0x90,0x9e,0x62,
-0xe0,0xfe,0x4f,0x90,0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x9e,0x62,0xf0,0x53,0x24,
-0xbf,0x22,0x8f,0x76,0x12,0x45,0xa6,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x53,0x12,
-0x47,0xcc,0xe5,0x76,0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x44,0x10,0xf0,0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x54,0xef,0xf0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xe5,0x22,0x64,0x01,0x70,
-0x61,0xe5,0x25,0x60,0x5d,0xe5,0x25,0x64,0x02,0x60,0x06,0xe5,0x25,0x64,0x05,0x70,
-0x27,0x90,0x06,0xab,0xe0,0x90,0x9e,0x64,0xf0,0x90,0x06,0xaa,0xe0,0x90,0x9e,0x72,
-0xf0,0x90,0x9e,0x64,0xe0,0x70,0x07,0x90,0x9e,0x72,0xe0,0xff,0x80,0x05,0x90,0x9e,
-0x64,0xe0,0xff,0x90,0x9e,0x64,0xef,0xf0,0x90,0x9e,0x66,0xe0,0x60,0x03,0xe0,0x14,
-0xf0,0xe4,0x90,0x9e,0x65,0xf0,0x90,0x01,0x57,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,
-0x53,0x26,0xfd,0x53,0x26,0xef,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,
-0x45,0x53,0x22,0xe4,0xff,0xe5,0x25,0x60,0x5f,0xe5,0x22,0x64,0x01,0x70,0x59,0xe5,
-0x25,0x14,0x60,0x2b,0x24,0xfd,0x60,0x27,0x24,0x02,0x24,0xfb,0x50,0x02,0x80,0x21,
-0x90,0x9e,0x64,0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,0x60,0x14,0x90,0x9e,0x64,
-0xe0,0x70,0x08,0x90,0x9e,0x72,0xe0,0x90,0x9e,0x64,0xf0,0x7f,0x01,0x80,0x02,0x7f,
-0x01,0xef,0x60,0x24,0x43,0x26,0x10,0xe4,0x90,0x9e,0x86,0xf0,0x90,0x9e,0x6e,0x12,
-0x44,0x56,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x04,0x50,
-0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x2f,0x22,0xe5,0x25,0x60,0x39,0x90,0x9e,0x74,
-0xe0,0x60,0x0d,0xe4,0xf0,0x53,0x26,0xfd,0xe5,0x26,0x54,0x07,0x70,0x28,0x80,0x23,
-0x90,0x9e,0x65,0xe0,0x04,0xf0,0x53,0x26,0xef,0x90,0x9e,0x6a,0xe0,0xff,0x90,0x9e,
-0x65,0xe0,0xd3,0x9f,0x40,0x0d,0xe5,0x22,0xb4,0x01,0x0b,0xa3,0xe0,0x70,0x07,0xe0,
-0x04,0xf0,0x22,0x12,0x44,0xd1,0x22,0xef,0xc3,0x94,0x20,0x50,0x39,0xef,0x30,0xe0,
-0x17,0xed,0xc4,0x54,0xf0,0xfd,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,
-0x04,0xf5,0x83,0xe0,0x54,0x0f,0x80,0x10,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,
-0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0xa4,0x2e,0xf5,0x82,0xe4,0x34,
-0x04,0xf5,0x83,0xe0,0x4d,0xf0,0x22,0xad,0x07,0xed,0xc3,0x94,0x20,0x50,0x0d,0x74,
-0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x80,0x0b,0x74,0xa6,0x2d,0xf5,
-0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,0x64,0xe5,0x64,0x54,0x1f,0xfc,
-0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x90,0x9e,0x3e,0xf0,
-0xed,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,
-0x90,0x9e,0x3f,0xcb,0xf0,0xa3,0xeb,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,
-0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x41,0xcb,0xf0,0xa3,0xeb,0xf0,
-0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfa,0x74,
-0x01,0x93,0xfb,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xea,
-0xf0,0xa3,0xeb,0xf0,0xec,0xc3,0x9f,0x40,0x02,0xe1,0xa5,0x74,0x67,0x2d,0xf5,0x82,
-0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x04,0xfb,0x90,0x9e,0x3e,0xe0,0xff,0xeb,0xd3,
-0x9f,0x40,0x02,0xe1,0xd6,0xeb,0xc3,0x94,0x10,0x40,0x21,0xeb,0x24,0xf0,0xff,0x74,
-0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,
-0x90,0x9e,0x3f,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x23,0xeb,0xc3,0x94,0x10,
-0x50,0x40,0x74,0x01,0x7e,0x00,0xa8,0x03,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0x90,0x9e,0x41,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x23,0xbb,
-0x11,0x09,0x90,0x9e,0x40,0xe0,0x30,0xe7,0x02,0x7b,0x17,0xeb,0x64,0x13,0x60,0x03,
-0xbb,0x12,0x09,0x90,0x9e,0x3f,0xe0,0x30,0xe0,0x02,0x7b,0x18,0xac,0x03,0x8c,0x64,
-0x80,0x34,0x0b,0x80,0x84,0x90,0x9e,0x3e,0xe0,0xfb,0x6c,0x70,0x69,0x74,0x67,0x2d,
-0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,
-0x12,0x43,0x5f,0xe0,0xb4,0x01,0x0c,0xe5,0x64,0x20,0xe6,0x07,0xec,0x44,0x40,0xf5,
-0x64,0x80,0x03,0xaf,0x64,0x22,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,
-0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,
-0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,
-0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,
-0xf0,0xa3,0xef,0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,0x90,0x9e,0x3e,0xe0,0xff,
-0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0xac,0x07,0x8f,0x64,
-0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,
-0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,
-0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,
-0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x64,
-0x22,0x74,0x01,0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xaf,0x05,0xe5,
-0x64,0x44,0x80,0xfd,0x12,0x5a,0x80,0xe5,0x64,0x44,0x80,0xff,0x22,0xe4,0xf5,0x59,
-0xe5,0x59,0xb4,0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,0x95,0x01,0xe0,0xff,
-0x90,0x9a,0xc5,0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,
-0x4b,0x12,0x43,0x5f,0xe0,0x64,0x01,0x60,0x02,0xc1,0xd3,0xe5,0x59,0x25,0xe0,0x24,
-0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0xd3,0x94,0x00,0xee,
-0x94,0x00,0x50,0x02,0xc1,0xd3,0xe5,0x59,0x94,0x20,0x40,0x08,0x90,0x9a,0xc5,0xe0,
-0x60,0x02,0xc1,0xde,0xe5,0x59,0x75,0xf0,0x0a,0xa4,0x24,0x00,0xf9,0x74,0x90,0x35,
-0xf0,0x75,0x5e,0x01,0xf5,0x5f,0x89,0x60,0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,
-0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x38,0xcf,0xf0,0xa3,0xef,
-0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xff,
-0xa3,0xe0,0x90,0x9e,0x3a,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,0xc3,0x94,0x20,0x50,
-0x14,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x3f,0x90,
-0x9e,0x34,0xf0,0x80,0x12,0x74,0xa6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,
-0xe0,0x54,0x3f,0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfe,0x54,0x1f,0xa3,0xf0,
-0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3d,0xf0,
-0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xc3,0x94,0x05,0x40,
-0x02,0x61,0xac,0x90,0x9e,0x3d,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x9f,0x40,0x13,0x90,
-0x9e,0x3d,0xe0,0x90,0x9e,0x35,0xf0,0xee,0x54,0x40,0xfe,0x90,0x9e,0x34,0xf0,0xef,
-0x4e,0xf0,0x90,0x04,0xfd,0xe0,0x54,0x05,0x64,0x01,0x70,0x29,0x90,0x9e,0x35,0xe0,
-0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
-0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,0xda,0x80,0x30,0x90,0x9e,0x35,0xe0,
-0x90,0x40,0xf6,0x80,0x27,0x90,0x9e,0x35,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,
-0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,
-0x90,0x41,0x12,0x80,0x07,0x90,0x9e,0x35,0xe0,0x90,0x41,0x2e,0x93,0x90,0x9e,0x3c,
-0xf0,0x90,0x9e,0x3c,0xe0,0x75,0xf0,0x06,0xa4,0x24,0x50,0xf9,0x74,0x40,0x35,0xf0,
-0x75,0x5b,0xff,0xf5,0x5c,0x89,0x5d,0x90,0x9e,0x34,0xe0,0x90,0x41,0xf2,0x93,0xff,
-0xd3,0x90,0x9e,0x3b,0xe0,0x9f,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x09,0xe4,0xfd,
-0xaf,0x59,0x12,0x5c,0xbd,0xc1,0x6a,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xe0,0xf5,0x61,0xa3,0xe0,0xf5,0x62,0xab,0x5b,0xaa,0x5c,0xa9,
-0x5d,0x12,0x24,0x62,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,0x42,0x97,
-0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,
-0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,
-0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x24,
-0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,
-0x5d,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,
-0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,
-0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x03,0x12,
-0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x06,0x12,0x42,
-0xc2,0xfd,0xac,0xf0,0x12,0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,
-0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x7e,0x00,
-0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,
-0x24,0x7b,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,
-0xa9,0x5d,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,
-0xa3,0xe0,0xfd,0x12,0x24,0x7b,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,0x0c,0xe5,
-0x62,0x9f,0xf5,0x62,0xe5,0x61,0x9e,0xf5,0x61,0x80,0x05,0xe4,0xf5,0x61,0xf5,0x62,
-0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe5,0x61,0xf0,
-0xa3,0xe5,0x62,0xf0,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,
-0x41,0xf5,0x83,0xc3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,0x07,0xaf,
-0x59,0x12,0x66,0x87,0xc1,0x3e,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x9e,0xf5,0x82,
-0xe4,0x34,0x41,0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,
-0x02,0xc1,0x3e,0x7d,0x01,0xaf,0x59,0x12,0x5c,0xbd,0xc1,0x3e,0x74,0xe6,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,0xa1,0x47,0x90,
-0x96,0x43,0xe0,0xff,0xb4,0x03,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x19,0x40,0x3d,
-0x80,0x2e,0xef,0xb4,0x02,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x11,0x40,0x2e,0x80,
-0x1f,0x90,0x96,0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x0a,
-0x40,0x1b,0x80,0x0c,0xef,0x70,0x11,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x03,0x40,0x0d,
-0x90,0x9a,0x84,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,0x74,0x84,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0x74,0x44,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,0x81,0xf4,0x90,
-0x9a,0x84,0xe0,0x64,0x01,0x60,0x02,0x81,0xf4,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9a,0xf5,0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,0xe4,0x33,0xfe,
-0x74,0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,0xd3,0x9f,0xee,
-0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,0x33,0xfe,0x74,
-0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,0xee,0x64,0x80,
-0xf8,0x74,0x80,0x98,0x50,0x14,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
-0x83,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,0x63,0x05,0x80,
-0x0e,0xef,0xd3,0x94,0x39,0x40,0x05,0x75,0x63,0x03,0x80,0x03,0x75,0x63,0x01,0x74,
-0x41,0x25,0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,0x85,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,
-0x04,0xf0,0x80,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x35,0xe0,0xff,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9d,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,
-0x83,0xe5,0x63,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4c,0x12,0x43,0x5f,0xe0,
-0xb4,0x01,0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,
-0x83,0xe4,0xf0,0xad,0x63,0xc1,0x39,0xec,0x64,0x06,0x60,0x02,0xc1,0x3e,0xf5,0x61,
-0xf5,0x62,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,0xa3,0xe0,
-0xfd,0x12,0x24,0x7b,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0xe4,0xf5,0x5a,0xab,0x5e,0xaa,
-0x5f,0xa9,0x60,0x75,0xf0,0x02,0xe5,0x5a,0xa4,0xf5,0x82,0x85,0xf0,0x83,0x12,0x42,
-0xc2,0xfd,0xac,0xf0,0xe5,0x5a,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,0x12,0x24,0x7b,
-0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,0xe0,0x95,
-0x62,0x90,0x9e,0x36,0xe0,0x95,0x61,0x40,0x07,0x05,0x5a,0xe5,0x5a,0xb4,0x05,0xbd,
-0xe5,0x5a,0xc3,0x13,0xf5,0x5a,0xe5,0x63,0xb4,0x01,0x06,0xe5,0x5a,0x70,0x46,0x80,
-0x13,0xe5,0x63,0xb4,0x03,0x15,0xe5,0x5a,0x70,0x05,0x75,0x63,0x03,0x80,0x39,0xe5,
-0x5a,0xb4,0x01,0x05,0x75,0x63,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x63,0xb4,0x05,0x28,
-0xe5,0x5a,0x70,0x05,0x75,0x63,0x05,0x80,0x0d,0xe5,0x5a,0xb4,0x01,0x05,0x75,0x63,
-0x03,0x80,0x03,0x75,0x63,0x01,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,0x9e,0x3a,
-0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,
-0x9e,0x3a,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0x74,0x84,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x98,0xf5,0x83,0xe5,0x63,0xf0,0xfd,0xaf,0x59,0x12,0x66,0x47,0x74,0xe6,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,0x74,0xe6,0x50,
-0x0e,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,0x80,0x0b,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xab,0x5e,0xaa,0x5f,0xa9,0x60,
-0xe4,0xf5,0xf0,0x12,0x42,0xfa,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0xe4,
-0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x04,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,
-0x06,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x08,0xe4,0xf5,0xf0,0x12,0x43,0x19,
-0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0xe5,0x59,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,
-0xa3,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,
-0xf0,0xa3,0xf0,0x05,0x59,0xe5,0x59,0xc3,0x94,0x40,0x50,0x02,0x01,0x90,0x22,0x90,
-0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,0xf0,0xa3,0x74,0x0f,0xf0,0xa3,0xe4,0xf0,
-0xfd,0x74,0xa4,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe4,0xf0,0x0d,0xbd,0x10,
-0xf0,0xe4,0x90,0x9a,0xc5,0xf0,0x90,0x95,0x01,0x04,0xf0,0xe4,0xfd,0x75,0xf0,0x0a,
-0xed,0x90,0x90,0x00,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,
-0x90,0x02,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x04,
-0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x06,0x12,0x43,
-0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x08,0x12,0x43,0x5f,0xe4,
-0xf0,0xa3,0xf0,0x74,0x26,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0x74,0x13,0xf0,
-0x74,0x85,0x2d,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0x74,0x84,0x2d,0xf5,
-0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xed,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
-0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
-0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
-0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,
-0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,
-0x34,0x9a,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,
-0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x74,0x86,0x2d,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0xe4,0xf0,0x74,0x46,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,
-0x74,0xe6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x41,0xc4,0x93,
-0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,
-0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,
-0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4b,0x12,0x43,
-0x5f,0x74,0x01,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,0x74,0x01,
-0xf0,0x74,0x82,0x2d,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0c,0xf0,0x75,0xf0,
-0x09,0xed,0x90,0x96,0x46,0x12,0x43,0x5f,0x74,0xff,0xf0,0xa3,0xf0,0x75,0xf0,0x09,
-0xed,0x90,0x96,0x44,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0x74,0x0f,0xf0,0x75,0xf0,0x09,
-0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0x74,0x13,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,0x94,0x20,0x50,0x0f,0x74,0x84,0x2d,0xf5,
-0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,0xf0,0x80,0x0d,0x74,0xa6,0x2d,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,0x0d,0xed,0x64,0x40,0x60,0x03,0x02,0x6f,
-0x0d,0x22,0x12,0x24,0x62,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,0x02,0x12,
-0x42,0x20,0xff,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xef,0xf0,
-0x22,0xe5,0x59,0xb4,0x40,0x0a,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x96,0x42,0xf0,
-0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,0xc4,0x13,
-0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x02,0x55,0x30,0x12,0x24,0x62,0x90,0x95,0x01,
-0xf0,0x22,0x12,0x24,0x62,0xf5,0x22,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x30,
-0xe0,0x25,0x12,0x24,0x62,0x90,0x9e,0x6a,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0x90,
-0x9e,0x6b,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x69,0xf0,0x90,0x00,0x03,0x12,
-0x42,0x20,0x90,0x9e,0x6f,0xf0,0x22,0x90,0x9e,0x6a,0x74,0x01,0xf0,0x90,0x9e,0x6b,
-0x74,0x03,0xf0,0x90,0x9e,0x69,0x74,0x14,0xf0,0x90,0x9e,0x6f,0x74,0x05,0xf0,0x22,
-0x12,0x24,0x62,0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x6e,0xf0,0x90,0x00,
-0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x6c,0xe4,0xf0,0xa3,0xef,0xf0,0x22,0x90,0x9e,
-0x6e,0x74,0x07,0xf0,0x90,0x9e,0x6c,0xe4,0xf0,0xa3,0x74,0x02,0xf0,0x22,0x90,0x02,
-0x09,0xe0,0xfd,0x12,0x24,0x62,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x50,0xf0,0x90,
-0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x51,0xf0,0x90,0x00,0x02,0x12,
-0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x52,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,0xff,
-0xed,0x2f,0x90,0x9e,0x53,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0xae,0x05,0xed,
-0x2f,0x90,0x9e,0x54,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x3f,
-0x12,0x43,0x8b,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xfa,
-0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,
-0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,0x24,0x62,0xff,0x60,0x2c,0xb5,0x71,0x16,
-0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0x65,0x73,0x70,0x04,
-0xe5,0x72,0x65,0xf0,0x60,0x23,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,
-0x42,0xc2,0xff,0xae,0xf0,0x51,0x3e,0x80,0x10,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x12,
-0x24,0x62,0x65,0x71,0x60,0x03,0x12,0x44,0xc8,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,
-0x42,0xee,0xf0,0xa3,0xef,0xf0,0x75,0x71,0x01,0x8e,0x72,0xf5,0x73,0xe4,0xfd,0x7f,
-0x0b,0x51,0x80,0xe4,0xfd,0x7f,0x02,0x51,0x80,0x71,0x4a,0xe4,0xff,0x71,0xac,0xe4,
-0xf5,0x75,0x90,0x01,0xc9,0xe5,0x75,0xf0,0x90,0x9e,0x42,0xe0,0xfc,0xa3,0xe0,0xfd,
-0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,0x7d,0x01,0x7f,0x60,0x7e,0x01,0x02,0x30,0x62,
-0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,0x90,0x9e,0x44,0xef,
-0xf0,0xd3,0x94,0x07,0x50,0x4f,0xa3,0xe0,0x70,0x1a,0x90,0x9e,0x44,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,0xe0,
-0x5f,0xf0,0x80,0x17,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x9e,
-0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x46,0x80,0x5a,0x90,0x9e,0x44,0xe0,0x24,0xf8,0xf0,0xa3,0xe0,0x70,0x1d,
-0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,
-0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,0x1a,0x90,0x9e,0x44,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,
-0xff,0x90,0x00,0x43,0xe0,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x9e,0x44,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,
-0x5f,0xf0,0x12,0x4b,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0x7f,0x0b,0x71,0xb9,0xef,0x65,
-0x74,0x60,0x10,0xe5,0x74,0xb4,0x01,0x05,0xe4,0xf5,0x74,0x80,0x03,0x75,0x74,0x01,
-0x7f,0x01,0x22,0x7f,0x00,0x22,0xe5,0x71,0x64,0x01,0x70,0x3f,0x71,0x4a,0xbf,0x01,
-0x04,0x7f,0x01,0x71,0xac,0x90,0x00,0x46,0xe0,0x44,0x04,0xfd,0x7f,0x46,0x12,0x4c,
-0xe3,0x90,0x00,0x44,0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x12,0x4c,0xe3,0x90,0x00,0x46,
-0xe0,0x54,0xfb,0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x7f,0x02,0x71,0xb9,0x8f,0x75,0x90,
-0x01,0xc9,0xe5,0x75,0xf0,0xb4,0x01,0x03,0x12,0x4f,0xda,0x22,0x90,0x01,0xca,0xe5,
-0x74,0xf0,0xef,0x60,0x03,0x12,0x4f,0xda,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0xb1,0xef,0xf0,0xd3,0x94,0x07,0x50,0x47,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0xe0,0x5f,0xf0,0x12,
-0x4b,0xdb,0x90,0x9e,0xb1,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,0xfb,0xe4,0xfe,0xef,
-0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,0x80,
-0x44,0x90,0x9e,0xb1,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0x12,0x4b,0xd3,0x90,0x9e,0xb1,0xe0,0xfd,0x74,0x01,0x7e,
-0x00,0xa8,0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,
-0x42,0xe0,0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,
-0xce,0x13,0xd8,0xf8,0xff,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
-0xd0,0x90,0x9e,0x56,0xe0,0x90,0x9e,0x40,0xf0,0x90,0x9e,0x57,0xe0,0xf5,0x64,0xa3,
-0xe0,0xf5,0x65,0xe4,0xf5,0x61,0x74,0x59,0x25,0x61,0xf5,0x82,0xe4,0x34,0x9e,0xf5,
-0x83,0xe0,0xff,0x74,0x66,0x25,0x61,0xf8,0xa6,0x07,0x05,0x61,0xe5,0x61,0xb4,0x04,
-0xe5,0x90,0x9e,0x40,0xe0,0x12,0x43,0x94,0x74,0xb7,0x00,0x75,0xdf,0x01,0x74,0xbd,
-0x02,0x74,0xbd,0x03,0x74,0xbd,0x04,0x75,0xdf,0x05,0x75,0xaf,0x80,0x75,0xc5,0x81,
-0x75,0xdf,0x82,0x00,0x00,0x75,0xdb,0xaf,0x69,0xb1,0xe6,0xa1,0xdf,0x90,0x9e,0x40,
-0xe0,0xff,0xb4,0x02,0x08,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x80,0x0f,0xef,0x90,0x9e,
-0x3f,0xb4,0x03,0x05,0x74,0x02,0xf0,0x80,0x03,0x74,0x04,0xf0,0xc3,0xe5,0x64,0x94,
-0x08,0x50,0x49,0xe4,0xf5,0x61,0x90,0x9e,0x3f,0xe0,0xff,0xe5,0x61,0xc3,0x9f,0x40,
-0x02,0xa1,0xdf,0xc3,0xe5,0x64,0x94,0x01,0x50,0x14,0xe5,0x61,0x25,0x65,0xff,0xc3,
-0x74,0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xfd,0x12,0x4c,0xe3,0x80,0x1a,0xc3,0x74,
-0x03,0x95,0x61,0x24,0x66,0xf8,0xe6,0xff,0xe5,0x61,0x7c,0x00,0x25,0x65,0xfd,0xec,
-0x35,0x64,0x8d,0x82,0xf5,0x83,0xef,0xf0,0x05,0x61,0x80,0xba,0xc3,0xe5,0x64,0x94,
-0x10,0x40,0x02,0xa1,0xdf,0x90,0x9e,0x40,0xe0,0x64,0x04,0x60,0x02,0xa1,0xdf,0xaf,
-0x67,0xfc,0xfd,0xfe,0x78,0x10,0x12,0x24,0xf5,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,
-0x07,0xaf,0x66,0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x24,0xf5,0xd0,0x03,0xd0,0x02,
-0xd0,0x01,0xd0,0x00,0x12,0x43,0x46,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0xaf,
-0x68,0xe4,0xfc,0xfd,0xfe,0x78,0x08,0x12,0x24,0xf5,0xd0,0x03,0xd0,0x02,0xd0,0x01,
-0xd0,0x00,0x12,0x43,0x46,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0xaf,0x69,0xe4,
-0xfc,0xfd,0xfe,0x12,0x43,0x46,0xa3,0x12,0x25,0x08,0x90,0x9e,0x41,0x12,0x43,0x53,
-0x90,0x80,0x96,0x12,0x25,0x08,0xaf,0x65,0xae,0x64,0x12,0x2b,0x08,0x80,0x30,0xe5,
-0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,
-0x12,0x32,0x15,0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,
-0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,0x31,0x82,0x80,0x04,0x7f,0x00,0x80,0x02,0x7f,
-0x01,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x6a,0xe4,0x90,0x9e,0x45,0xf0,0xe5,0x6a,0x14,
-0xfe,0x90,0x9e,0x45,0xe0,0xff,0xc3,0x9e,0x50,0x0e,0xef,0x04,0xfd,0x12,0x2d,0x4d,
-0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,0x7d,0xff,0x12,0x2d,
-0x4d,0x90,0x9e,0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,0x94,0xff,0x50,0x0f,
-0xe0,0xff,0x04,0xfd,0x12,0x2d,0x4d,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe8,0xad,
-0x6a,0x7f,0xff,0x02,0x2d,0x4d,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xe4,0xf5,0x5b,
-0x75,0x5c,0x04,0xf5,0x5d,0xf5,0x5f,0xf5,0x60,0x90,0x02,0x09,0xe0,0xff,0x12,0x24,
-0x62,0xfe,0xef,0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,0x75,0x5a,0x80,0x80,
-0x05,0xe4,0xf5,0x59,0xf5,0x5a,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x74,0x20,
-0x25,0x5b,0xf5,0x5b,0xad,0x5a,0xe5,0x5b,0x2d,0xff,0x24,0x01,0xf5,0x82,0xe4,0x34,
-0xfc,0xf5,0x83,0xe0,0x90,0x9e,0x56,0xf0,0x74,0x02,0x2f,0xf5,0x82,0xe4,0x34,0xfc,
-0xf5,0x83,0xe0,0xfe,0xe5,0x5b,0x2d,0x24,0x03,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x24,0x00,0xff,0xe4,0x3e,0x90,0x9e,0x57,0xf0,0xa3,0xef,0xf0,0x7f,0x04,0xe5,
-0x5b,0x25,0x5a,0x2f,0x24,0x00,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0xfe,0x74,
-0x55,0x2f,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,0xee,0xf0,0x0f,0xbf,0x08,0xe0,0x91,
-0x5a,0xef,0x70,0x3f,0x90,0x01,0xc3,0xe0,0x60,0x25,0xc3,0xe5,0x60,0x94,0xe8,0xe5,
-0x5f,0x94,0x03,0x40,0x09,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x80,0x63,0x05,0x60,
-0xe5,0x60,0x70,0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x32,0x15,0x80,0xd5,0x90,
-0x01,0xc6,0xe0,0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,0x80,0x43,0x74,0xff,
-0xf0,0x80,0x3e,0xe5,0x5b,0xb4,0x78,0x23,0xe4,0xf5,0x5b,0x05,0x5e,0xe5,0x5a,0x64,
-0x80,0x45,0x59,0x70,0x06,0xf5,0x59,0xf5,0x5a,0x80,0x06,0x75,0x59,0x00,0x75,0x5a,
-0x80,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x80,0x06,0x74,0x08,0x25,0x5b,0xf5,
-0x5b,0xe5,0x5d,0x15,0x5d,0x70,0x02,0x15,0x5c,0xe5,0x5d,0x45,0x5c,0x60,0x02,0xc1,
-0x74,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x22,0xe4,0x90,0x9e,0x5d,0xf0,0x90,0x00,0x80,0xe0,0x44,0x80,0xfd,
-0x7f,0x80,0x02,0x4c,0xe3,0x8e,0x59,0x8f,0x5a,0x8b,0x5b,0x8a,0x5c,0x89,0x5d,0xe4,
-0x90,0x9e,0x34,0xf0,0xef,0x90,0x00,0x31,0xf0,0x12,0x4b,0xdb,0xe5,0x59,0x54,0x03,
-0xff,0x90,0x00,0x32,0xe0,0x54,0xfc,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x00,0x33,0xe0,
-0x54,0x7f,0xf0,0x12,0x4b,0xdb,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x34,
-0xe0,0xc3,0x94,0x64,0x50,0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x34,0xe0,0xc3,
-0x94,0x64,0x50,0x10,0x90,0x00,0x30,0xe0,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x12,0x42,
-0x4d,0x7f,0x01,0x22,0x7f,0x00,0x22,0xe4,0xf5,0x74,0x22,0x90,0x9e,0x60,0xe0,0x90,
-0x9e,0x0f,0xf0,0x22,0xef,0x70,0x03,0x02,0x79,0x9c,0x90,0x9e,0x0f,0xe0,0x60,0x03,
-0x02,0x7d,0x67,0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
-0x8c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0x44,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xab,0x12,0x43,0x53,0x90,
-0x80,0x96,0x12,0x25,0x08,0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xaf,0x12,
-0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,0x08,0x90,
-0x9d,0xb3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x70,0x7e,0x0e,0x12,
-0x2b,0x08,0x90,0x9d,0xb7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x74,
-0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
-0x08,0x7f,0x78,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xbf,0x12,0x43,0x53,0x90,0x80,
-0x96,0x12,0x25,0x08,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xc3,0x12,0x43,
-0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,
-0xc7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x84,0x7e,0x0e,0x12,0x2b,
-0x08,0x90,0x9d,0xcb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x88,0x7e,
-0x0e,0x12,0x2b,0x08,0x90,0x9d,0xcf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
-0x7f,0x8c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,0x80,0x96,
-0x12,0x25,0x08,0x7f,0xd0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xd7,0x12,0x43,0x53,
-0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xd4,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xdb,
-0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xd8,0x7e,0x0e,0x12,0x2b,0x08,
-0x90,0x9d,0xdf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xdc,0x7e,0x0e,
-0x12,0x2b,0x08,0x90,0x9d,0xe3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
-0xe0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
-0x25,0x08,0x7f,0xec,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xeb,0x12,0x43,0x53,0x90,
-0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,0x9d,0xef,0x12,
-0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x2b,0x08,0x90,
-0x9d,0xf3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,
-0x2b,0x08,0x90,0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,
-0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,0x0f,0xe0,
-0x64,0x01,0x60,0x02,0xa1,0x67,0x7f,0x8c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xfb,
-0x12,0x25,0x08,0x7f,0x44,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xa7,0x12,0x25,0x08,
-0x7f,0x5c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xab,0x12,0x25,0x08,0x7f,0x6c,0x7e,
-0x0e,0x12,0x22,0x65,0x90,0x9d,0xaf,0x12,0x25,0x08,0x7f,0x70,0x7e,0x0e,0x12,0x22,
-0x65,0x90,0x9d,0xb3,0x12,0x25,0x08,0x7f,0x74,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,
-0xb7,0x12,0x25,0x08,0x7f,0x78,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xbb,0x12,0x25,
-0x08,0x7f,0x7c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xbf,0x12,0x25,0x08,0x7f,0x80,
-0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xc3,0x12,0x25,0x08,0x7f,0x84,0x7e,0x0e,0x12,
-0x22,0x65,0x90,0x9d,0xc7,0x12,0x25,0x08,0x7f,0x88,0x7e,0x0e,0x12,0x22,0x65,0x90,
-0x9d,0xcb,0x12,0x25,0x08,0x7f,0x8c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xcf,0x12,
-0x25,0x08,0x7f,0xd0,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xd3,0x12,0x25,0x08,0x7f,
-0xd4,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xd7,0x12,0x25,0x08,0x7f,0xd8,0x7e,0x0e,
-0x12,0x22,0x65,0x90,0x9d,0xdb,0x12,0x25,0x08,0x7f,0xdc,0x7e,0x0e,0x12,0x22,0x65,
-0x90,0x9d,0xdf,0x12,0x25,0x08,0x7f,0xe0,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xe3,
-0x12,0x25,0x08,0x7f,0xec,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xe7,0x12,0x25,0x08,
-0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,0x9d,0xeb,0x12,0x25,0x08,0x7f,0x04,0x7e,
-0x0d,0x12,0x22,0x65,0x90,0x9d,0xef,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,
-0x65,0x90,0x9d,0xf3,0x12,0x25,0x08,0x7f,0x04,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,
-0xf7,0x12,0x25,0x08,0x7f,0x8c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0xa1,0x12,0x25,
-0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,0xa1,0x12,
-0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x8c,
-0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x01,0x00,0x00,0x7f,
-0x44,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0xdb,0x25,0xa4,
-0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,
-0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,
-0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x04,
-0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,
-0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,
-0x14,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,
-0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,
-0x12,0x25,0x14,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,
-0x96,0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2b,0x08,0x90,
-0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x2b,0x08,
-0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,0x2b,
-0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,0x12,
-0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,0x0e,
-0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa4,0x7f,0xdc,0x7e,
-0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa4,0x7f,0xe0,
-0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x24,0xdb,0x25,0xa4,0x7f,
-0xec,0x7e,0x0e,0x12,0x2b,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,0x9e,0xa1,
-0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa1,0x12,
-0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa1,
-0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
-0x04,0x7e,0x0c,0x12,0x2b,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x22,0x65,0x90,0x9e,0xa1,
-0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,
-0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,
-0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
-0x08,0x7f,0x04,0x7e,0x0d,0x12,0x2b,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,0x65,0x90,
-0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,
-0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,
-0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
-0x08,0x7f,0x0c,0x7e,0x09,0x12,0x2b,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,0x65,0x90,
-0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,0x54,0x0f,0xfd,0xec,
-0x54,0xf0,0xfc,0x90,0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,
-0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,
-0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x2b,0x08,
-0x7f,0x04,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,0xa1,
-0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa1,0x12,0x25,0x08,0x90,0x9e,
-0xa1,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa1,0x12,0x25,0x08,0x90,
-0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x08,0x12,
-0x2b,0x08,0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,
-0x1e,0xf0,0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,0x59,0xc2,
-0xaf,0x90,0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x4c,0xe3,0x7d,0x40,0x7f,
-0x01,0x12,0x31,0x66,0xe5,0x59,0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,0x45,0x12,
-0x4c,0xe3,0x90,0x04,0xfd,0xe4,0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,0x9e,0x24,
-0xf0,0x90,0x9e,0x27,0xf0,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x26,
-0xf0,0x90,0x9e,0x29,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,
-0xf0,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,0x9e,0x2e,
-0xf0,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,0x00,0x51,
-0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x02,0x4c,0xe3,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x60,
-0x08,0x90,0x9e,0x1c,0xe0,0x60,0x02,0xc1,0xd0,0x90,0x9e,0x10,0xe0,0xc3,0x94,0xff,
-0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x11,0xe0,0xc3,0x94,0xff,0x50,0x06,
-0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x12,0xe0,0xc3,0x94,0xff,0x50,0x0a,0xe0,
-0x04,0xf0,0xe4,0x90,0x9e,0x11,0xf0,0x80,0x15,0x90,0x9e,0x13,0xe0,0xc3,0x94,0xff,
-0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x12,0xf0,0x90,0x9e,0x11,0xf0,0x90,0x9e,
-0x10,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,0x30,0xe2,0x32,0x90,0x9e,
-0x24,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x25,0xe0,
-0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x26,0xe0,0xc3,
-0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x24,0xf0,
-0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x27,0xe0,0xc3,0x94,0xff,0x50,0x05,
-0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x28,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,
-0xf0,0xe4,0x80,0x11,0x90,0x9e,0x29,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,
-0xe4,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x04,0xfd,0xe0,0x44,0x01,0xf0,
-0x22,0x00,0x6a,0xe7,};
+0x60,0x03,0x02,0x7c,0xe9,0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
+0x08,0x7f,0x8c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,
+0x96,0x12,0x25,0x08,0x7f,0x44,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,0xab,0x12,0x43,
+0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9d,
+0xaf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,
+0x08,0x90,0x9d,0xb3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x70,0x7e,
+0x0e,0x12,0x2b,0x08,0x90,0x9d,0xb7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
+0x7f,0x74,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xbb,0x12,0x43,0x53,0x90,0x80,0x96,
+0x12,0x25,0x08,0x7f,0x78,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xbf,0x12,0x43,0x53,
+0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xc3,
+0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x08,
+0x90,0x9d,0xc7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x84,0x7e,0x0e,
+0x12,0x2b,0x08,0x90,0x9d,0xcb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,
+0x88,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xcf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,
+0x25,0x08,0x7f,0x8c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xd3,0x12,0x43,0x53,0x90,
+0x80,0x96,0x12,0x25,0x08,0x7f,0xd0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xd7,0x12,
+0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xd4,0x7e,0x0e,0x12,0x2b,0x08,0x90,
+0x9d,0xdb,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xd8,0x7e,0x0e,0x12,
+0x2b,0x08,0x90,0x9d,0xdf,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0xdc,
+0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xe3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
+0x08,0x7f,0xe0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xe7,0x12,0x43,0x53,0x90,0x80,
+0x96,0x12,0x25,0x08,0x7f,0xec,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x9d,0xeb,0x12,0x43,
+0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x90,0x9d,
+0xef,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x2b,
+0x08,0x90,0x9d,0xf3,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x0c,0x7e,
+0x09,0x12,0x2b,0x08,0x90,0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
+0x7f,0x04,0x7e,0x08,0x12,0x2b,0x08,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,
+0x0f,0xe0,0x64,0x01,0x60,0x02,0x81,0xe9,0x7f,0x8c,0x7e,0x08,0x12,0x22,0x65,0x90,
+0x9d,0xfb,0x12,0x25,0x08,0x7f,0x44,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xa7,0x12,
+0x25,0x08,0x7f,0x5c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9d,0xab,0x12,0x25,0x08,0x7f,
+0x6c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xaf,0x12,0x25,0x08,0x7f,0x70,0x7e,0x0e,
+0x12,0x22,0x65,0x90,0x9d,0xb3,0x12,0x25,0x08,0x7f,0x74,0x7e,0x0e,0x12,0x22,0x65,
+0x90,0x9d,0xb7,0x12,0x25,0x08,0x7f,0x78,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xbb,
+0x12,0x25,0x08,0x7f,0x7c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xbf,0x12,0x25,0x08,
+0x7f,0x80,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xc3,0x12,0x25,0x08,0x7f,0x84,0x7e,
+0x0e,0x12,0x22,0x65,0x90,0x9d,0xc7,0x12,0x25,0x08,0x7f,0x88,0x7e,0x0e,0x12,0x22,
+0x65,0x90,0x9d,0xcb,0x12,0x25,0x08,0x7f,0x8c,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,
+0xcf,0x12,0x25,0x08,0x7f,0xd0,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xd3,0x12,0x25,
+0x08,0x7f,0xd4,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xd7,0x12,0x25,0x08,0x7f,0xd8,
+0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xdb,0x12,0x25,0x08,0x7f,0xdc,0x7e,0x0e,0x12,
+0x22,0x65,0x90,0x9d,0xdf,0x12,0x25,0x08,0x7f,0xe0,0x7e,0x0e,0x12,0x22,0x65,0x90,
+0x9d,0xe3,0x12,0x25,0x08,0x7f,0xec,0x7e,0x0e,0x12,0x22,0x65,0x90,0x9d,0xe7,0x12,
+0x25,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,0x9d,0xeb,0x12,0x25,0x08,0x7f,
+0x04,0x7e,0x0d,0x12,0x22,0x65,0x90,0x9d,0xef,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,
+0x12,0x22,0x65,0x90,0x9d,0xf3,0x12,0x25,0x08,0x7f,0x04,0x7e,0x08,0x12,0x22,0x65,
+0x90,0x9d,0xf7,0x12,0x25,0x08,0x7f,0x8c,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0xa4,
+0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,
+0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,
+0x7f,0x8c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x01,0x00,
+0x00,0x7f,0x44,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0xdb,
+0x25,0xa4,0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,
+0xdb,0x25,0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,
+0x20,0xdb,0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,
+0x14,0x04,0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,
+0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,
+0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,
+0x96,0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x08,0x90,
+0x80,0x96,0x12,0x25,0x14,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2b,0x08,
+0x90,0x80,0x96,0x12,0x25,0x14,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2b,
+0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,
+0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,
+0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,
+0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x20,0xdb,0x25,0xa4,0x7f,0xd8,
+0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa4,0x7f,
+0xdc,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x00,0x1b,0x25,0xa4,
+0x7f,0xe0,0x7e,0x0e,0x12,0x2b,0x08,0x90,0x80,0x96,0x12,0x25,0x14,0x24,0xdb,0x25,
+0xa4,0x7f,0xec,0x7e,0x0e,0x12,0x2b,0x08,0x7f,0x04,0x7e,0x0c,0x12,0x22,0x65,0x90,
+0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,
+0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,
+0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,
+0x08,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x22,0x65,0x90,
+0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,
+0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,
+0xec,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,
+0x12,0x25,0x08,0x7f,0x04,0x7e,0x0d,0x12,0x2b,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,
+0x65,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xe4,0xff,0xec,
+0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x11,0xff,
+0xec,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,
+0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x2b,0x08,0x7f,0x0c,0x7e,0x09,0x12,0x22,
+0x65,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0xed,0x54,0x0f,
+0xfd,0xec,0x54,0xf0,0xfc,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,0x9e,0xa4,0x12,0x43,
+0x53,0xed,0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,
+0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x0c,0x7e,0x09,0x12,
+0x2b,0x08,0x7f,0x04,0x7e,0x08,0x12,0x22,0x65,0x90,0x9e,0xa4,0x12,0x25,0x08,0x90,
+0x9e,0xa4,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa4,0x12,0x25,0x08,
+0x90,0x9e,0xa4,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa4,0x12,0x25,
+0x08,0x90,0x9e,0xa4,0x12,0x43,0x53,0x90,0x80,0x96,0x12,0x25,0x08,0x7f,0x04,0x7e,
+0x08,0x12,0x2b,0x08,0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,
+0x90,0x9e,0x1e,0xf0,0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,
+0x59,0xc2,0xaf,0x90,0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x4a,0xc1,0x7d,
+0x40,0x7f,0x01,0x12,0x31,0x66,0xe5,0x59,0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,
+0x45,0x12,0x4a,0xc1,0x90,0x04,0xfd,0xe4,0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,
+0x9e,0x24,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,
+0x9e,0x26,0xf0,0x90,0x9e,0x29,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,
+0xf0,0xa3,0xf0,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,
+0x9e,0x2e,0xf0,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,
+0x00,0x51,0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x02,0x4a,0xc1,0x90,0x9e,0x15,0xe0,0xc3,
+0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0xc1,0x33,0x90,0x9e,0x15,0xe0,0x64,0x14,0x60,
+0x02,0xc1,0x33,0x90,0x9e,0x24,0xe0,0x70,0x25,0x90,0x9e,0x27,0xe0,0x70,0x1f,0x90,
+0x9e,0x25,0xe0,0x70,0x19,0x90,0x9e,0x28,0xe0,0x70,0x13,0x90,0x9e,0x26,0xe0,0x70,
+0x0d,0x90,0x9e,0x29,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,0x54,0xfe,0xf0,0x90,0x9e,
+0x24,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x25,0xe0,0x90,0x04,0x45,0xf0,0x90,0x9e,
+0x26,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x27,0xe0,0x90,0x04,0x48,
+0xf0,0x90,0x9e,0x28,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,0x29,0xe0,0x90,0x04,0x4a,
+0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x10,0xe0,0x90,0x04,0x4c,0xf0,0x90,0x9e,0x11,0xe0,
+0x90,0x04,0x4d,0xf0,0x90,0x9e,0x12,0xe0,0x90,0x04,0x4e,0xf0,0x90,0x9e,0x13,0xe0,
+0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x15,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,
+0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x24,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,
+0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x34,0xf0,0x90,0x05,0x61,0xe0,0x90,
+0x9e,0x35,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x36,0xf0,0x90,0x05,0x63,0xe0,0x90,
+0x9e,0x37,0xf0,0x90,0x9e,0x2d,0xe0,0xff,0x90,0x9e,0x37,0xe0,0xfe,0xd3,0x9f,0x50,
+0x0b,0x90,0x9e,0x2d,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,0x11,0x90,0x9e,0x1b,0xe0,
+0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x1f,0xe0,0xff,0x12,0x4e,0xd8,0x22,0x90,0x9e,
+0x2e,0xe0,0x64,0x01,0x60,0x08,0x90,0x9e,0x1c,0xe0,0x60,0x02,0xe1,0x55,0x90,0x9e,
+0x10,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x11,0xe0,
+0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x12,0xe0,0xc3,
+0x94,0xff,0x50,0x0a,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x11,0xf0,0x80,0x15,0x90,0x9e,
+0x13,0xe0,0xc3,0x94,0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x12,0xf0,0x90,
+0x9e,0x11,0xf0,0x90,0x9e,0x10,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,
+0x30,0xe2,0x32,0x90,0x9e,0x24,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,
+0x24,0x90,0x9e,0x25,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,
+0x90,0x9e,0x26,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x25,
+0xf0,0x90,0x9e,0x24,0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x27,0xe0,
+0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x28,0xe0,0xc3,0x94,
+0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x29,0xe0,0xc3,0x94,0xff,
+0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x04,
+0xfd,0xe0,0x44,0x01,0xf0,0x22,0xf5,0x67,};
-// =================== v80 UMC B Cut COMMON 2011-12-14 =====================
+// =================== v84 UMC B Cut COMMON 2012-04-13 =====================
u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength] = {
-0xc2,0x88,0x02,0x00,0x50,0x00,0x00,0x00,0x12,0x14,0x16,0x10,0xc0,0x3e,0x01,0x00,
-0x25,0x86,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0xc2,0x88,0x02,0x00,0x54,0x00,0x01,0x00,0x04,0x13,0x11,0x08,0x26,0x3d,0x01,0x00,
+0x58,0x97,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x43,0xba,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x48,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x02,0x50,0xa1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x5e,0xff,0x00,0x00,0x00,0x00,0x00,0xa1,0xd4,0x00,0x00,0x00,
+0x00,0x00,0x00,0x02,0x57,0x91,0x00,0x00,0x00,0x00,0x00,0xa1,0xe8,0x00,0x00,0x00,
0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
@@ -5168,7 +2091,7 @@ u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength] = {
0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0xfa,0x38,0xf0,0x22,0xeb,0xf0,0xa3,0xea,0xf0,
0xa3,0xe9,0xf0,0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,
0x70,0x0d,0xa3,0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,
-0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x50,0x2e,
+0x02,0x93,0x68,0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x02,0x43,0xf8,0x02,0x48,0x29,
0xe4,0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,
0x80,0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,
0x44,0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,
@@ -5176,833 +2099,797 @@ u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength] = {
0xbc,0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,
0x0e,0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,
0xa3,0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,
-0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x4f,
-0x00,0x41,0x9e,0xad,0x00,0x41,0x9e,0x61,0x80,0x41,0x9e,0x62,0x80,0x41,0x9e,0xaf,
-0x00,0x00,0xf0,0x90,0x9e,0x6b,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,
-0x7e,0x01,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x85,0xeb,0xf0,0xa3,0xe0,
-0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,0x45,0x12,0x35,0xab,0xd0,0xd0,0x92,0xaf,0x22,
-0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x86,0xf0,
-0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,
-0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x70,
-0x14,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x0c,0x50,0x02,0xf1,0x2b,0x22,0x8f,0x82,
-0x8e,0x83,0xa3,0xa3,0xa3,0xe4,0xf0,0x22,0xe4,0xf5,0x71,0x7f,0x60,0x7e,0x01,0x80,
-0xed,0x7d,0x01,0xaf,0x24,0xe1,0x2f,0xb1,0xa6,0xbf,0x01,0x0f,0x90,0x9e,0x51,0xe0,
-0xff,0xe4,0xfd,0xf1,0xd0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x53,0x23,0xf0,0x43,
-0x23,0x01,0x91,0xfd,0x91,0xfe,0x53,0x23,0xf0,0x43,0x23,0x02,0x22,0x22,0x22,0x22,
-0x22,0x00,0x00,0x02,0x5f,0x91,0x02,0x5f,0x98,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x8b,0x1b,0x8a,0x1c,0x89,0x1d,0x90,0x9e,0x88,0x71,0x8b,0xab,0x1e,0xaa,0x1f,0xa9,
-0x20,0x90,0x9e,0x8b,0x71,0x8b,0xaf,0x21,0x15,0x21,0xef,0x60,0x1b,0x90,0x9e,0x8b,
-0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x29,0xd9,0xff,0x90,0x9e,0x88,0xe4,0x75,0xf0,
-0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x1b,0xaa,0x1c,0xa9,0x1d,0xd0,0xd0,
-0x92,0xaf,0x22,0x90,0x06,0xa9,0xe0,0x90,0x9e,0x2f,0xf0,0xe0,0x54,0xc0,0x70,0x08,
-0x53,0x26,0xfe,0x53,0x26,0xfd,0x91,0xd1,0x90,0x9e,0x2f,0xe0,0x30,0xe6,0x13,0x43,
-0x26,0x01,0x90,0x9e,0x73,0xe0,0x64,0x02,0x60,0x04,0x91,0xd7,0x80,0x07,0x91,0x80,
-0x80,0x03,0x53,0x26,0xfe,0x90,0x9e,0x2f,0xe0,0x30,0xe7,0x16,0x43,0x26,0x02,0xe4,
-0x90,0x9e,0x86,0x91,0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x74,0x74,0x01,
-0xf0,0x22,0x53,0x26,0xfd,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x04,0x1d,
-0xe0,0x60,0x1a,0x90,0x05,0x22,0xe0,0x54,0x90,0x60,0x07,0x90,0x01,0xc6,0xe0,0x44,
-0x40,0xf0,0x90,0x01,0xc7,0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,0x02,0x7f,0x01,0xd0,
-0xd0,0x92,0xaf,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,
-0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,
-0x07,0x90,0x01,0xc4,0x74,0xd4,0xf0,0x74,0x45,0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,
-0x3c,0xe0,0x55,0x30,0xf5,0x34,0xa3,0xe0,0x55,0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,
-0xf5,0x36,0xa3,0xe0,0x55,0x33,0xf5,0x37,0xe5,0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,
-0x74,0x01,0xf0,0xe5,0x34,0x30,0xe1,0x09,0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x65,
-0xf6,0xe5,0x34,0x30,0xe2,0x38,0x90,0x01,0x3c,0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,
-0x30,0xe0,0x24,0x90,0x9e,0x86,0xe4,0xf0,0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,
-0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x91,0x62,0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,
-0x06,0x92,0x74,0x01,0xf0,0x80,0x07,0x90,0x9e,0x71,0xe4,0xf0,0x91,0xd1,0xe5,0x34,
-0x30,0xe3,0x38,0x90,0x01,0x3c,0x74,0x08,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,
-0x90,0x9e,0x86,0xe4,0xf0,0x90,0x9e,0x69,0xe0,0x90,0x9e,0x87,0xf0,0xe4,0xfb,0xfd,
-0x7f,0x5c,0x7e,0x01,0x91,0x62,0x90,0x01,0x5f,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,
-0x02,0xf0,0x80,0x07,0x90,0x9e,0x70,0xe4,0xf0,0x91,0xd1,0xe5,0x34,0x30,0xe4,0x09,
-0x90,0x01,0x3c,0x74,0x10,0xf0,0x12,0x73,0x53,0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,
-0x3c,0x74,0x20,0xf0,0x12,0x52,0x64,0xe5,0x35,0x30,0xe0,0x18,0x90,0x01,0x3d,0x74,
-0x01,0xf0,0x90,0x01,0x2f,0xe0,0x44,0x7f,0xf0,0x90,0x00,0x83,0xe0,0xf5,0x24,0x12,
-0x64,0xd0,0x91,0xd1,0xe5,0x35,0x30,0xe2,0x06,0x90,0x01,0x3d,0x74,0x04,0xf0,0xe5,
-0x36,0x30,0xe0,0x06,0x90,0x01,0x3e,0x74,0x01,0xf0,0xe5,0x36,0x30,0xe1,0x06,0x90,
-0x01,0x3e,0x74,0x02,0xf0,0x74,0xd4,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,
-0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,
-0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x7d,0x01,0x7f,0x0c,0x90,
-0x9e,0xa6,0xed,0xf0,0x90,0x9e,0xa5,0xef,0xf0,0x54,0x0f,0xff,0xe5,0x23,0x54,0x0f,
-0x6f,0x60,0x70,0x90,0x9e,0xa5,0xe0,0x30,0xe2,0x2a,0xe5,0x23,0x20,0xe2,0x05,0x7f,
-0x01,0x12,0x63,0xea,0xe5,0x23,0x30,0xe3,0x09,0x90,0x9e,0xa5,0xe0,0x20,0xe3,0x02,
-0x80,0x52,0xe5,0x23,0x20,0xe3,0x4c,0x90,0x9e,0xa5,0xe0,0x30,0xe3,0x45,0xa3,0xe0,
-0xff,0x02,0x5e,0x95,0xe5,0x23,0x54,0x0f,0xff,0xbf,0x0c,0x0f,0x90,0x9e,0xa5,0xe0,
-0x20,0xe3,0x08,0x12,0x62,0xce,0xef,0x60,0x2a,0xf1,0xb4,0xe5,0x23,0x54,0x0f,0xff,
-0xbf,0x04,0x10,0x90,0x9e,0xa5,0xe0,0x20,0xe2,0x09,0x12,0x63,0x17,0xef,0x60,0x13,
-0x12,0x61,0x3a,0xe5,0x23,0x54,0x0f,0xff,0xbf,0x02,0x08,0x12,0x63,0x7a,0xef,0x60,
-0x02,0x91,0xec,0x22,0x90,0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x22,0xb4,0x01,0x05,
-0x7f,0x01,0x12,0x5e,0x5c,0x53,0x23,0xf0,0x43,0x23,0x04,0x22,0xe0,0xff,0x7d,0x01,
-0x90,0x9e,0x99,0xef,0xf0,0xa3,0xed,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x25,0x60,
-0x05,0xe4,0xff,0x12,0x61,0x1f,0x90,0x9e,0x99,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9b,
-0xe4,0xf0,0xa3,0x74,0x80,0xf0,0x90,0x9e,0x99,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,
-0xf0,0x90,0x04,0x25,0xef,0xf0,0x90,0x9e,0x9a,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,
-0x24,0x0f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9b,0xa3,0xe0,
-0xff,0xfd,0x24,0x08,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,
-0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,
-0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf7,0xf0,0x90,0x9e,0x9b,0xe0,0xfe,0xa3,0xe0,
-0xff,0x22,0x12,0x45,0xa6,0xbf,0x01,0x10,0x90,0x02,0x09,0xe0,0xff,0x7d,0x01,0x12,
-0x47,0xd0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,
-0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,
-0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0x79,0xf0,0x74,0x48,0xa3,0xf0,
-0x90,0x01,0x34,0xe0,0x55,0x28,0xf5,0x2c,0x90,0x01,0x36,0xe0,0x55,0x2a,0xf5,0x2e,
-0xa3,0xe0,0x55,0x2b,0xf5,0x2f,0xe5,0x2c,0x20,0xe0,0x02,0x41,0x17,0x90,0x01,0x34,
-0x74,0x01,0xf0,0x85,0xd1,0x08,0x85,0xd2,0x09,0x85,0xd3,0x0a,0x85,0xd4,0x0b,0x85,
-0xd5,0x0c,0x85,0xd6,0x0d,0x85,0xd7,0x0e,0x85,0xd9,0x0f,0xe5,0x0f,0x54,0x40,0xc3,
-0x13,0xff,0xe5,0x0e,0x54,0x20,0x6f,0x70,0x02,0x21,0xc9,0xe5,0x0f,0x30,0xe5,0x02,
-0x21,0xc9,0xe5,0x0d,0x54,0x3f,0xf5,0x4d,0xe5,0x08,0x54,0x3f,0xf5,0x4e,0xe5,0x0c,
-0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,
-0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,
-0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4e,
-0xd3,0x94,0x04,0x40,0x03,0x75,0x4e,0x04,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,0x00,
-0x12,0x43,0x5f,0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,
-0xe5,0x0e,0x54,0x1f,0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x4d,0x90,0x90,
-0x00,0x12,0x43,0x5f,0x75,0xf0,0x02,0xe5,0x4e,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,
-0xf0,0xe5,0x0f,0x20,0xe6,0x24,0xe5,0x0e,0x54,0x1f,0xff,0xe5,0x4d,0x25,0xe0,0x24,
-0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x0a,
-0x30,0xe7,0x36,0xaf,0x4d,0x12,0x5b,0x68,0x80,0x2f,0xe5,0x0e,0x54,0x1f,0xff,0xe5,
-0x4d,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
-0x42,0x81,0xe5,0x0a,0x30,0xe7,0x12,0xe5,0x0a,0x54,0x7f,0xfd,0xe5,0x0e,0x54,0x1f,
-0xf5,0x53,0xab,0x4e,0xaf,0x4d,0x12,0x5b,0x05,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,
-0x80,0x45,0x90,0x9e,0x73,0xe0,0x60,0x37,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,
-0x74,0x04,0xf0,0x71,0xc4,0xef,0x64,0x01,0x70,0x2d,0x90,0x9e,0x69,0xe0,0xf5,0x44,
-0x75,0x45,0x00,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x35,0xab,0x90,0x01,0x5b,
-0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x90,0x9e,0x71,0xf0,0x80,0x08,0x71,
-0xc4,0xbf,0x01,0x03,0x12,0x44,0xd1,0xe5,0x2c,0x30,0xe1,0x21,0x90,0x01,0x34,0x74,
-0x02,0xf0,0x85,0xd1,0x13,0x85,0xd2,0x14,0x85,0xd3,0x15,0x85,0xd4,0x16,0x85,0xd5,
-0x17,0x85,0xd6,0x18,0x85,0xd7,0x19,0x85,0xd9,0x1a,0x12,0x5c,0x46,0xe5,0x2c,0x30,
-0xe3,0x06,0x90,0x01,0x34,0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,
-0x74,0x10,0xf0,0x43,0x12,0x10,0xe5,0x2c,0x30,0xe5,0x24,0x90,0x01,0xcf,0xe0,0x30,
-0xe5,0x1d,0xe0,0x54,0xdf,0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,
-0xe8,0x00,0xd1,0xdb,0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0x71,0xdb,0x80,0xfe,0xe5,
+0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x41,0x9e,0x77,
+0x00,0x41,0x9e,0xae,0x00,0x41,0x9e,0x54,0x80,0x41,0x9e,0xb0,0x00,0x00,0xf0,0x90,
+0x9e,0x5d,0xe0,0x90,0x9e,0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x54,0x7e,0x01,0xd3,0x10,
+0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x85,0xe0,0xfb,0xa3,0xe0,0xf5,0x44,0xe4,0xf5,
+0x45,0x12,0x35,0xab,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x01,0x5f,0xe4,0xf0,0x90,0x01,
+0x3c,0x74,0x08,0xf0,0xe4,0x90,0x9e,0x85,0xf0,0x90,0x9e,0x5b,0xe0,0x90,0x9e,0x86,
+0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,0x5e,0x90,0x01,0x5f,0x74,0x05,0xf0,
+0x90,0x06,0x92,0x74,0x02,0xf0,0x90,0x9e,0x63,0x14,0xf0,0xe5,0x61,0x54,0x0f,0xc3,
+0x94,0x0c,0x50,0x03,0x12,0x54,0xe3,0x22,0x8f,0x82,0x8e,0x83,0xa3,0xa3,0xa3,0xe4,
+0xf0,0x22,0xe4,0xf5,0x65,0x7f,0x60,0x7e,0x01,0x80,0xed,0x7d,0x01,0xaf,0x62,0x02,
+0x54,0xe7,0xb1,0xb0,0xbf,0x01,0x12,0x90,0x9e,0x79,0xe0,0xff,0xe4,0xfd,0xf1,0x79,
+0x12,0x5f,0xf7,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xb1,0xb0,0xbf,0x01,0x0f,0x90,
+0x02,0x09,0xe0,0xff,0x7d,0x01,0xf1,0x79,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0x22,
+0x22,0x22,0x00,0x02,0x45,0x03,0x02,0x45,0x06,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
+0x8b,0x20,0x8a,0x21,0x89,0x22,0x90,0x9e,0x87,0x71,0x8b,0xab,0x23,0xaa,0x24,0xa9,
+0x25,0x90,0x9e,0x8a,0x71,0x8b,0xaf,0x26,0x15,0x26,0xef,0x60,0x1b,0x90,0x9e,0x8a,
+0xe4,0x75,0xf0,0x01,0x71,0x74,0x12,0x29,0xd9,0xff,0x90,0x9e,0x87,0xe4,0x75,0xf0,
+0x01,0x71,0x74,0xef,0x51,0x4d,0x80,0xde,0xab,0x20,0xaa,0x21,0xa9,0x22,0xd0,0xd0,
+0x92,0xaf,0x22,0x90,0x9e,0x11,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0x90,0x06,0xa9,
+0xe0,0x90,0x9e,0x10,0xf0,0xe0,0x54,0xc0,0x70,0x08,0x53,0x64,0xfe,0x53,0x64,0xfd,
+0x91,0xcb,0x90,0x9e,0x10,0xe0,0x30,0xe6,0x13,0x43,0x64,0x01,0x90,0x9e,0x66,0xe0,
+0x64,0x02,0x60,0x04,0x91,0xd2,0x80,0x07,0x91,0x79,0x80,0x03,0x53,0x64,0xfe,0x90,
+0x9e,0x10,0xe0,0x30,0xe7,0x16,0x43,0x64,0x02,0xe4,0x90,0x9e,0x85,0x91,0x4e,0x90,
+0x01,0x57,0x74,0x05,0xf0,0x90,0x9e,0x67,0x74,0x01,0xf0,0x22,0x53,0x64,0xfd,0x22,
+0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x01,0xc4,0x74,0xb0,0xf0,0x74,0x45,0xa3,
+0xf0,0x90,0x04,0x1d,0xe0,0x60,0x1a,0x90,0x05,0x22,0xe0,0x54,0x90,0x60,0x07,0x90,
+0x01,0xc6,0xe0,0x44,0x40,0xf0,0x90,0x01,0xc7,0xe0,0x30,0xe1,0xe4,0x7f,0x00,0x80,
+0x02,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,
+0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,
+0x05,0xc0,0x06,0xc0,0x07,0x75,0x13,0x00,0x90,0x01,0xc4,0x74,0xe8,0xf0,0x74,0x45,
+0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,0x3c,0xe0,0x55,0x30,0xf5,0x34,0xa3,0xe0,0x55,
+0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,0xf5,0x36,0xa3,0xe0,0x55,0x33,0xf5,0x37,0xe5,
+0x34,0x30,0xe0,0x06,0x90,0x01,0x3c,0x74,0x01,0xf0,0xe5,0x34,0x30,0xe1,0x09,0x90,
+0x01,0x3c,0x74,0x02,0xf0,0x12,0x61,0xc9,0xe5,0x34,0x30,0xe2,0x38,0x90,0x01,0x3c,
+0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe0,0x24,0x90,0x9e,0x85,0xe4,0xf0,0x90,
+0x9e,0x5b,0xe0,0x90,0x9e,0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x91,0x5e,
+0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x80,0x07,0x90,0x9e,
+0x64,0xe4,0xf0,0x91,0xcb,0xe5,0x34,0x30,0xe3,0x38,0x90,0x01,0x3c,0x74,0x08,0xf0,
+0x90,0x06,0x92,0xe0,0x30,0xe1,0x24,0x90,0x9e,0x85,0xe4,0xf0,0x90,0x9e,0x5b,0xe0,
+0x90,0x9e,0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x5c,0x7e,0x01,0x91,0x5e,0x90,0x01,0x5f,
+0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x02,0xf0,0x80,0x07,0x90,0x9e,0x63,0xe4,0xf0,
+0x91,0xcb,0xe5,0x34,0x30,0xe4,0x09,0x90,0x01,0x3c,0x74,0x10,0xf0,0x12,0x4b,0xfb,
+0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,0x3c,0x74,0x20,0xf0,0x12,0x4c,0x3d,0xe5,0x35,
+0x30,0xe0,0x44,0x90,0x01,0x3d,0x74,0x01,0xf0,0x90,0x01,0x2f,0xe0,0x44,0x7f,0xf0,
+0x90,0x00,0x83,0xe0,0x54,0x0f,0xf5,0x13,0xb4,0x01,0x02,0x80,0x1c,0xe5,0x13,0xb4,
+0x02,0x05,0x90,0x00,0x83,0x80,0x12,0xe5,0x13,0xb4,0x04,0x05,0x90,0x00,0x83,0x80,
+0x08,0xe5,0x13,0xb4,0x0c,0x06,0x90,0x00,0x83,0xe0,0xf5,0x62,0x90,0x01,0xbb,0xe5,
+0x62,0xf0,0x12,0x60,0xc0,0x91,0xcb,0xe5,0x35,0x30,0xe2,0x06,0x90,0x01,0x3d,0x74,
+0x04,0xf0,0xe5,0x35,0x30,0xe4,0x06,0x90,0x01,0x3d,0x74,0x10,0xf0,0xe5,0x36,0x30,
+0xe0,0x06,0x90,0x01,0x3e,0x74,0x01,0xf0,0xe5,0x36,0x30,0xe1,0x06,0x90,0x01,0x3e,
+0x74,0x02,0xf0,0x74,0xe8,0x04,0x90,0x01,0xc4,0xf0,0x74,0x45,0xa3,0xf0,0xd0,0x07,
+0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,
+0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x90,0x9e,0x98,0xef,0xf0,0xa3,0xed,
+0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x63,0x60,0x05,0xe4,0xff,0x12,0x54,0x97,0x90,
+0x9e,0x98,0xe0,0x30,0xe0,0x09,0x90,0x9e,0x9a,0xe4,0xf0,0xa3,0x74,0x80,0xf0,0x90,
+0x9e,0x98,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x90,0x04,0x25,0xef,0xf0,0x90,
+0x9e,0x99,0xe0,0x60,0x1f,0xa3,0xa3,0xe0,0xff,0x24,0x0f,0xf5,0x82,0xe4,0x34,0xfc,
+0xf5,0x83,0xe0,0x44,0x80,0xf0,0x74,0x10,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
+0xe0,0x44,0x80,0xf0,0x90,0x9e,0x9a,0xa3,0xe0,0xff,0xfd,0x24,0x08,0xf5,0x82,0xe4,
+0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
+0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,
+0xf7,0xf0,0x90,0x9e,0x9a,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0x75,0x28,0x33,0xe4,0xf5,
+0x29,0x75,0x2a,0x07,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,
+0xa3,0xe5,0x2a,0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0xe4,0x90,0x9e,0x16,0xf0,0xa3,0xf0,
+0x75,0x8e,0x02,0xf1,0xa1,0xf1,0xe9,0x90,0x9e,0x7e,0xef,0xf0,0xf1,0xdd,0x90,0x9e,
+0x80,0xef,0xf0,0xf1,0xf6,0x90,0x9e,0x75,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xf5,0x57,
+0x12,0x6e,0x77,0xf1,0xd4,0x12,0x60,0x4b,0x12,0x32,0x3d,0xf1,0xc9,0x11,0x0b,0x12,
+0x50,0x0e,0xf1,0xcd,0xf1,0xb1,0x12,0x44,0xff,0xf1,0x45,0x90,0x9e,0x18,0xe5,0xd9,
+0xf0,0x11,0xd0,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,0xf0,0xb1,0x45,0x75,0xe8,
+0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x9e,0x16,0xe0,0x64,0x01,0xf0,0x24,0x29,0x90,
+0x01,0xc4,0xf0,0x74,0x48,0xa3,0xf0,0xe5,0x57,0x30,0xe4,0x0a,0xc2,0xaf,0x53,0x57,
+0xef,0xd2,0xaf,0x12,0x58,0x74,0xe5,0x57,0x30,0xe6,0x17,0xc2,0xaf,0x53,0x57,0xbf,
+0xd2,0xaf,0x12,0x67,0xa1,0x90,0x9e,0x43,0xe0,0xff,0x60,0x03,0xb4,0x01,0x03,0x12,
+0x7b,0x49,0x90,0x9e,0x43,0xe0,0x70,0x03,0x12,0x7c,0x4c,0x12,0x73,0x85,0x80,0xb6,
+0x90,0x01,0x3c,0x74,0xff,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0xfd,0x7f,0x54,0x31,0x05,0x7d,0xff,0x7f,0x55,0x31,0x05,0x7d,
+0xff,0x7f,0x56,0x31,0x05,0x7d,0xff,0x7f,0x57,0x80,0x0a,0xf0,0x90,0x00,0x45,0xe0,
+0x54,0xfe,0xfd,0x7f,0x45,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,
+0x00,0xed,0xf0,0xb1,0x45,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,
+0x66,0x24,0x02,0x60,0x02,0x21,0xc1,0x90,0x9e,0x3f,0x74,0x02,0xf0,0x90,0x00,0x48,
+0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x31,0x05,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,
+0x47,0x31,0x05,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,
+0x9e,0x3f,0xf0,0x90,0x9e,0x3b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x31,
+0x05,0x90,0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,0x45,0x31,0x05,0x90,0x00,0x46,0xe0,
+0x44,0x10,0xfd,0x7f,0x46,0x80,0x38,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x90,0x9e,0x45,
+0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,
+0x90,0x00,0x45,0xe0,0x44,0x20,0xfd,0x7f,0x45,0x31,0x05,0x90,0x00,0x45,0xe0,0x44,
+0x10,0xfd,0x7f,0x45,0x31,0x05,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x31,
+0x05,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x41,0xf0,0x90,0x00,0x01,0x12,
+0x42,0x20,0x25,0xe0,0x25,0xe0,0x90,0x9e,0x40,0xf0,0x12,0x29,0xd9,0x25,0xe0,0x25,
+0xe0,0x90,0x9e,0x44,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x4f,0xf0,0x90,0x05,0x61,
+0xe0,0x90,0x9e,0x50,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x51,0xf0,0x90,0x05,0x63,
+0xe0,0x90,0x9e,0x52,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,0x90,
+0x9e,0x40,0xe0,0xff,0x91,0xf0,0x90,0x9e,0x24,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,
+0x41,0xe0,0x70,0x02,0x41,0xc8,0x90,0x9e,0x40,0xe0,0x70,0x02,0x41,0xc8,0x90,0x9e,
+0x44,0xe0,0x70,0x02,0x41,0xc8,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,
+0x90,0x9e,0x53,0x74,0x01,0xf0,0x90,0x9e,0x24,0xe0,0x24,0xff,0x92,0xaf,0x11,0xfc,
+0x90,0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x31,0x05,0x90,0x9e,0x39,0xe0,0x60,
+0x15,0x90,0x9e,0x45,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,
+0x08,0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,
+0x54,0xef,0xfd,0x7f,0x45,0x31,0x05,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,
+0x4f,0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x50,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,
+0x51,0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x52,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,
+0xe4,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,
+0x20,0xe4,0xff,0x12,0x37,0x00,0x80,0x2b,0x90,0x9e,0x41,0xe0,0x70,0x2d,0x90,0x9e,
+0x53,0x11,0xfb,0x90,0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x31,0x05,0x90,0x05,
+0x22,0xe4,0xf0,0xa2,0xaf,0x33,0x90,0x9e,0x24,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,
+0x12,0x36,0x92,0x90,0x9e,0x24,0xe0,0x24,0xff,0x92,0xaf,0x22,0x8b,0x14,0x8a,0x15,
+0x89,0x16,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x42,0xf0,0xe0,0x30,0xe0,0x4b,
+0x90,0x9e,0x39,0x74,0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x3b,
+0x12,0x2a,0x7f,0xab,0x14,0xaa,0x15,0xa9,0x16,0x90,0x00,0x01,0x12,0x42,0x20,0xff,
+0xe4,0xfc,0xfd,0xfe,0x78,0x1a,0x12,0x2a,0x6c,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,
+0x07,0x90,0x9e,0x3b,0x12,0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,
+0x45,0x12,0x2a,0x7f,0x90,0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x39,0xf0,
+0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,
+0x9e,0x3b,0x12,0x2a,0x7f,0x90,0x9e,0x3b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,
+0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x42,0xe0,0x30,0xe1,0x19,0x7d,
+0x0c,0x7f,0x47,0x31,0x05,0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x31,0x05,
+0x90,0x00,0x46,0xe0,0x44,0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,
+0x47,0x31,0x05,0x90,0x00,0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x31,0x05,0x90,0x00,
+0x46,0xe0,0x54,0xef,0xfd,0x7f,0x46,0x31,0x05,0xe4,0x90,0x9e,0x3f,0xf0,0x22,0x90,
+0x01,0x30,0xe4,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0xfd,0x7f,0x50,0x31,0x05,0xe4,0xfd,0x7f,0x51,0x31,0x05,0xe4,
+0xfd,0x7f,0x52,0x31,0x05,0xe4,0xfd,0x7f,0x53,0x21,0x05,0xe5,0x65,0x64,0x01,0x70,
+0x3b,0xd1,0x85,0xbf,0x01,0x04,0x7f,0x01,0xd1,0x79,0x90,0x00,0x46,0xe0,0x44,0x04,
+0xfd,0x7f,0x46,0x31,0x05,0x90,0x00,0x44,0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x31,0x05,
+0x90,0x00,0x46,0xe0,0x54,0xfb,0xfd,0x7f,0x46,0x31,0x05,0x7f,0x02,0xd1,0xa1,0x8f,
+0x69,0x90,0x01,0xc9,0xe5,0x69,0xf0,0xb4,0x01,0x02,0xd1,0x19,0x22,0x90,0x9e,0x41,
+0xe0,0x64,0x01,0x60,0x02,0x81,0xef,0x90,0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,
+0x31,0x05,0x90,0x9e,0x53,0xe0,0x70,0x31,0x90,0x9e,0x39,0xe0,0x60,0x15,0x90,0x9e,
+0x45,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,
+0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x9e,0x40,0xe0,0xff,0x91,0xf0,
+0x90,0x9e,0x53,0x74,0x01,0x11,0xfb,0x80,0x3f,0x90,0x9e,0x53,0xe0,0x64,0x01,0x70,
+0x37,0x90,0x9e,0x44,0xe0,0xff,0x91,0xf0,0xe4,0x90,0x9e,0x53,0xf0,0x90,0x00,0x45,
+0xe0,0x44,0x01,0xfd,0x7f,0x45,0x31,0x05,0x90,0x9e,0x39,0xe0,0x60,0x15,0x90,0x9e,
+0x3b,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,
+0xd9,0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,
+0x9e,0x4f,0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x50,0xe0,0x90,0x05,0x85,0xf0,0x90,
+0x9e,0x51,0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x52,0xe0,0x90,0x05,0x87,0xf0,0x22,
+0x90,0x05,0x60,0xe0,0x90,0x9e,0x4f,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x50,0xf0,
+0x90,0x05,0x62,0xe0,0x90,0x9e,0x51,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x52,0xf0,
+0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x50,0xe0,0xd3,0x9e,0x40,0x1e,0xe0,0x2f,0xf0,
+0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,0xe0,0xb4,0xff,0x03,0xe4,0xf0,0x22,0x90,
+0x9e,0x52,0x80,0x03,0x90,0x9e,0x51,0xe0,0x04,0xf0,0x22,0x90,0x9e,0x50,0xe0,0x2f,
+0xf0,0x22,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x7f,0x10,0xdf,0xfe,
+0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x2a,0xed,
+0xf0,0x90,0x9e,0x29,0xef,0xf0,0xd3,0x94,0x07,0x50,0x4e,0xa3,0xe0,0x70,0x1a,0x90,
+0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,
+0xff,0x90,0x00,0x47,0xe0,0x5f,0xf0,0x80,0x17,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,
+0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,
+0xb1,0x45,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
+0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0x80,0x59,0x90,0x9e,0x29,0xe0,0x24,0xf8,0xf0,
+0xa3,0xe0,0x70,0x1d,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
+0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,
+0x1a,0x90,0x9e,0x29,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,
+0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,0x43,0xe0,0x4f,0xf0,0xb1,0x45,0x90,0x9e,0x29,
+0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,
+0x00,0x43,0xb1,0x42,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,0xb1,
+0xf0,0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x31,0x05,0x90,0x9e,0xb1,0xe0,
+0x44,0xb0,0xfd,0x7f,0x49,0x21,0x05,0x90,0x9e,0x27,0xee,0xf0,0xa3,0xef,0xf0,0x75,
+0x65,0x01,0x8e,0x66,0xf5,0x67,0xe4,0xfd,0x7f,0x0b,0xb1,0x55,0xe4,0xfd,0x7f,0x02,
+0xb1,0x55,0xd1,0x85,0xe4,0xff,0xd1,0x79,0xe4,0xf5,0x69,0x90,0x01,0xc9,0xe5,0x69,
+0xf0,0x90,0x9e,0x27,0xe0,0xfc,0xa3,0xe0,0xfd,0xec,0xfb,0x8d,0x44,0xe4,0xf5,0x45,
+0x7d,0x01,0x7f,0x60,0x7e,0x01,0x02,0x35,0xab,0x90,0x01,0xca,0xe5,0x68,0xf0,0xef,
+0x60,0x02,0xd1,0x19,0x22,0x7f,0x0b,0xd1,0xa1,0xef,0x65,0x68,0x60,0x10,0xe5,0x68,
+0xb4,0x01,0x05,0xe4,0xf5,0x68,0x80,0x03,0x75,0x68,0x01,0x7f,0x01,0x22,0x7f,0x00,
+0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0xb2,0xef,0xf0,0xd3,0x94,0x07,
+0x50,0x43,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,
+0xff,0x90,0x00,0x46,0xb1,0x42,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,
+0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,
+0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,
+0xd8,0xf8,0xff,0x80,0x4b,0x90,0x9e,0xb2,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,
+0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,
+0xf0,0xb1,0x45,0x90,0x9e,0xb2,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,
+0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x42,0xe0,0xfb,0xe4,0xfe,
+0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,
+0xd0,0xd0,0x92,0xaf,0x22,0xe4,0xfd,0x7f,0x45,0x31,0x05,0x90,0x04,0xfd,0xe4,0xf0,
+0xa3,0xf0,0x90,0x9e,0x43,0xf0,0x90,0x9e,0x49,0xf0,0x90,0x9e,0x4c,0xf0,0x90,0x9e,
+0x4a,0xf0,0x90,0x9e,0x4d,0xf0,0x90,0x9e,0x4b,0xf0,0x90,0x9e,0x4e,0xf0,0x90,0x9e,
+0x35,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,
+0x3f,0xf0,0x90,0x9e,0x41,0xf0,0x90,0x9e,0x53,0xf0,0x90,0x9e,0x44,0xf0,0x90,0x9e,
+0x40,0xf0,0x90,0x9e,0x39,0xf0,0x90,0x00,0x51,0xe0,0x44,0xc0,0xfd,0x7f,0x51,0x21,
+0x05,0xe4,0x90,0x9e,0x7d,0xf0,0x90,0x00,0x80,0xe0,0x44,0x80,0xfd,0x7f,0x80,0x21,
+0x05,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,0x01,0x38,0xe5,0x30,0xf0,
+0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0xe4,0xf5,0x68,0x22,0x90,0x01,0x64,
+0x74,0xa0,0xf0,0x22,0x90,0x9e,0x80,0xe0,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0xf3,
+0xe0,0x7f,0x00,0x30,0xe3,0x02,0x7f,0x01,0x22,0x90,0x00,0x02,0xe0,0x54,0xe0,0x7f,
+0x01,0x60,0x02,0x7f,0x00,0x22,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x0c,0x90,0x00,0xf2,
+0xe0,0x30,0xe7,0x05,0x7e,0xfd,0x7f,0x33,0x22,0x7e,0xfd,0x7f,0x2f,0x22,0x90,0x00,
+0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,0xf0,0xa3,
+0xe4,0xf0,0x22,0x90,0x01,0x02,0xe0,0x54,0x03,0xff,0xe0,0x54,0x0c,0x13,0x13,0x54,
+0x3f,0xfe,0xef,0x64,0x01,0x60,0x04,0xef,0xb4,0x03,0x10,0x90,0x9e,0x10,0x74,0x01,
+0xf0,0xa3,0x74,0x37,0xf0,0xa3,0x74,0x01,0xf0,0x80,0x1a,0xee,0x64,0x01,0x60,0x07,
+0xaf,0x06,0xee,0x64,0x03,0x70,0x49,0x90,0x9e,0x10,0x74,0x01,0xf0,0xa3,0x74,0x3d,
+0xf0,0xa3,0x74,0x40,0xf0,0x90,0x9e,0x10,0xe0,0xfe,0xa3,0xe0,0xff,0xf5,0x82,0x8e,
+0x83,0xe0,0xfd,0x90,0x9e,0x12,0xe0,0xfc,0xed,0x5c,0x60,0x0c,0x8f,0x82,0x8e,0x83,
+0xec,0xf0,0xe4,0x90,0x9e,0x77,0xf0,0x22,0x90,0x9e,0x77,0xe0,0x04,0xf0,0xe0,0xc3,
+0x94,0x0a,0x40,0x0c,0xe4,0xf0,0x90,0x04,0x19,0xe0,0x30,0xe0,0x03,0x12,0x44,0xea,
+0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,
+0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,
+0xc4,0x74,0xa1,0xf0,0x74,0x50,0xa3,0xf0,0x90,0x01,0x34,0xe0,0x55,0x28,0xf5,0x2c,
+0xa3,0xe0,0x55,0x29,0xf5,0x2d,0xa3,0xe0,0x55,0x2a,0xf5,0x2e,0xa3,0xe0,0x55,0x2b,
+0xf5,0x2f,0xe5,0x2c,0x20,0xe0,0x02,0x41,0x46,0x90,0x01,0x34,0x74,0x01,0xf0,0x85,
+0xd1,0x4d,0x85,0xd2,0x4e,0x85,0xd3,0x4f,0x85,0xd4,0x50,0x85,0xd5,0x51,0x85,0xd6,
+0x52,0x85,0xd7,0x53,0x85,0xd9,0x54,0xe5,0x54,0x54,0x40,0xc3,0x13,0xff,0xe5,0x53,
+0x54,0x20,0x6f,0x70,0x02,0x21,0xf5,0xe5,0x54,0x30,0xe5,0x02,0x21,0xf5,0xe5,0x52,
+0x54,0x3f,0xf5,0x08,0xe5,0x4d,0x54,0x3f,0xf5,0x09,0xe5,0x51,0x54,0x1f,0xff,0xe5,
+0x08,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
+0x42,0x81,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
+0x34,0x93,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x09,0xd3,0x94,0x04,0x40,
+0x03,0x75,0x09,0x04,0x75,0xf0,0x0a,0xe5,0x08,0x90,0x90,0x00,0x12,0x43,0x5f,0x75,
+0xf0,0x02,0xe5,0x09,0x12,0x43,0x5f,0xe0,0xfe,0xa3,0xe0,0xff,0xe5,0x53,0x54,0x1f,
+0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x08,0x90,0x90,0x00,0x12,0x43,0x5f,
+0x75,0xf0,0x02,0xe5,0x09,0x12,0x43,0x5f,0xee,0xf0,0xa3,0xef,0xf0,0xe5,0x54,0x20,
+0xe6,0x24,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,
+0x34,0x98,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4f,0x30,0xe7,0x36,0xaf,
+0x08,0x12,0x63,0x51,0x80,0x2f,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,
+0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x42,0x81,0xe5,0x4f,
+0x30,0xe7,0x12,0xe5,0x4f,0x54,0x7f,0xfd,0xe5,0x53,0x54,0x1f,0xf5,0x0d,0xab,0x09,
+0xaf,0x08,0x12,0x62,0xee,0xe5,0x63,0x14,0x24,0xfd,0x50,0x02,0x80,0x48,0x90,0x9e,
+0x66,0xe0,0x60,0x3a,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x04,0xf0,0x71,
+0xc3,0xef,0x64,0x01,0x70,0x30,0x90,0x9e,0x85,0xf0,0x90,0x9e,0x5b,0xe0,0x90,0x9e,
+0x86,0xf0,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x44,0x5e,0x90,0x01,0x5b,0x74,
+0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x90,0x9e,0x64,0xf0,0x80,0x08,0x71,0xc3,
+0xbf,0x01,0x03,0x12,0x44,0xcb,0xe5,0x2c,0x30,0xe1,0x20,0x90,0x01,0x34,0x74,0x02,
+0xf0,0x85,0xd1,0x58,0x85,0xd2,0x59,0x85,0xd3,0x5a,0x85,0xd4,0x5b,0x85,0xd5,0x5c,
+0x85,0xd6,0x5d,0x85,0xd7,0x5e,0x85,0xd9,0x5f,0x71,0xd2,0xe5,0x2c,0x30,0xe3,0x06,
+0x90,0x01,0x34,0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,0x74,0x10,
+0xf0,0x43,0x57,0x10,0xe5,0x2c,0x30,0xe5,0x26,0x90,0x01,0xcf,0xe0,0x30,0xe5,0x1f,
+0xe0,0x54,0xdf,0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x75,0xa8,0x00,0x75,0xe8,0x00,
+0x12,0x4b,0xcf,0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0x12,0x4d,0x45,0x80,0xfe,0xe5,
0x2c,0x30,0xe6,0x06,0x90,0x01,0x34,0x74,0x40,0xf0,0xe5,0x2e,0x30,0xe0,0x12,0x90,
-0x9e,0x5f,0x74,0x01,0xf0,0x90,0x01,0x36,0xf0,0x12,0x65,0x90,0x90,0x9e,0x5f,0xe4,
-0xf0,0xe5,0x2e,0x30,0xe1,0x3b,0x90,0x01,0x36,0x74,0x02,0xf0,0x43,0x12,0x40,0x90,
-0x01,0x02,0xe0,0x54,0x03,0x64,0x01,0x70,0x28,0x90,0x01,0x37,0xe0,0x30,0xe0,0x0a,
-0x74,0x01,0xf0,0x90,0x9e,0x4f,0xe4,0xf0,0x80,0x17,0x90,0x9e,0x4f,0xe0,0x04,0xf0,
-0xe0,0xc3,0x94,0x0a,0x40,0x0b,0xe4,0xf0,0x90,0x04,0x19,0xe0,0x30,0xe0,0x02,0x11,
-0x62,0xe5,0x2e,0x30,0xe2,0x09,0x90,0x01,0x36,0x74,0x04,0xf0,0x12,0x65,0x28,0xe5,
-0x2e,0x30,0xe3,0x28,0x90,0x01,0x36,0x74,0x08,0xf0,0xe5,0x22,0x64,0x01,0x70,0x1c,
-0xe5,0x25,0x60,0x18,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,
-0x9e,0x86,0xe4,0x12,0x44,0x52,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,
-0x2b,0x90,0x01,0x36,0x74,0x10,0xf0,0xe5,0x22,0xb4,0x01,0x20,0xe5,0x25,0x60,0x1c,
-0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x74,0xe4,0xf0,
-0x53,0x26,0xfd,0xe5,0x26,0x54,0x07,0x70,0x03,0x12,0x44,0xd1,0xe5,0x2e,0x30,0xe5,
-0x1f,0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x22,0xb4,0x01,0x14,0xe5,0x25,0x60,0x10,
-0x90,0x9e,0x73,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xd7,0x80,0x03,0x12,0x44,0x80,
-0xe5,0x2e,0x30,0xe6,0x1b,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x22,0xb4,0x01,0x10,
-0xe5,0x25,0x60,0x0c,0x53,0x26,0xfe,0xe5,0x26,0x54,0x07,0x70,0x03,0x12,0x44,0xd1,
-0xe5,0x2f,0x30,0xe1,0x09,0x90,0x01,0x37,0x74,0x02,0xf0,0x12,0x61,0x92,0x74,0x79,
-0x04,0x90,0x01,0xc4,0xf0,0x74,0x48,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,
+0x9e,0x7f,0x74,0x01,0xf0,0x90,0x01,0x36,0xf0,0x12,0x61,0x4e,0x90,0x9e,0x7f,0xe4,
+0xf0,0xe5,0x2e,0x30,0xe1,0x0b,0x90,0x01,0x36,0x74,0x02,0xf0,0x43,0x57,0x40,0x11,
+0x23,0xe5,0x2e,0x30,0xe2,0x09,0x90,0x01,0x36,0x74,0x04,0xf0,0x12,0x60,0xdf,0xe5,
+0x2e,0x30,0xe3,0x28,0x90,0x01,0x36,0x74,0x08,0xf0,0xe5,0x60,0x64,0x01,0x70,0x1c,
+0xe5,0x63,0x60,0x18,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,
+0x9e,0x85,0xe4,0x12,0x44,0x4e,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,
+0x2b,0x90,0x01,0x36,0x74,0x10,0xf0,0xe5,0x60,0xb4,0x01,0x20,0xe5,0x63,0x60,0x1c,
+0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x9e,0x67,0xe4,0xf0,
+0x53,0x64,0xfd,0xe5,0x64,0x54,0x07,0x70,0x03,0x12,0x44,0xcb,0xe5,0x2e,0x30,0xe5,
+0x1f,0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x60,0xb4,0x01,0x14,0xe5,0x63,0x60,0x10,
+0x90,0x9e,0x66,0xe0,0x64,0x02,0x60,0x05,0x12,0x44,0xd2,0x80,0x03,0x12,0x44,0x79,
+0xe5,0x2e,0x30,0xe6,0x1b,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x60,0xb4,0x01,0x10,
+0xe5,0x63,0x60,0x0c,0x53,0x64,0xfe,0xe5,0x64,0x54,0x07,0x70,0x03,0x12,0x44,0xcb,
+0xe5,0x2f,0x30,0xe1,0x08,0x90,0x01,0x37,0x74,0x02,0xf0,0x91,0x64,0x74,0xa1,0x04,
+0x90,0x01,0xc4,0xf0,0x74,0x50,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,
+0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,
+0xd0,0xe0,0x32,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,0x02,0x7f,
+0x00,0x22,0x90,0x9e,0x10,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,0x0f,0x44,0x80,0xf0,
+0x7b,0x00,0x7a,0x00,0x79,0x58,0x90,0x9e,0x90,0x12,0x43,0x8b,0x0b,0x7a,0x9e,0x79,
+0x10,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x8d,0x12,0x43,0x8b,0x90,0x9e,
+0xb0,0xe0,0xff,0x04,0xf0,0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x7f,0xaf,0x7e,0x01,
+0x12,0x71,0x7a,0xef,0x60,0x49,0x90,0x9e,0x8d,0x12,0x43,0x6b,0x8b,0x23,0x8a,0x24,
+0x89,0x25,0x75,0x26,0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x45,0x09,0x90,0x9e,
+0x90,0x12,0x43,0x6b,0x8b,0x23,0x8a,0x24,0x89,0x25,0x90,0x9e,0x8d,0x12,0x43,0x6b,
+0x12,0x29,0xd9,0xff,0xc4,0x54,0x0f,0xf5,0x26,0x7b,0x01,0x7a,0x01,0x79,0xa2,0x12,
+0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,0xf0,0xd0,
+0xd0,0x92,0xaf,0x22,0x90,0x9e,0xa0,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe5,0x63,
+0x14,0x24,0xfd,0x50,0x02,0x80,0x1f,0x90,0x9e,0x66,0xe0,0x60,0x06,0x7d,0x01,0x7f,
+0x0c,0x80,0x0d,0xe5,0x61,0x54,0x0f,0xc3,0x94,0x04,0x50,0x06,0x7d,0x01,0x7f,0x04,
+0x91,0xe7,0xe4,0xff,0x91,0x97,0x22,0xef,0x60,0x0b,0x90,0x9e,0x80,0xe0,0xb4,0x01,
+0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x75,
+0x92,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,0x90,0x05,0x22,0x74,0xff,0xf0,0x12,0x74,
+0x12,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,0xfd,0xf0,0x7d,0x02,0x7f,0x03,0x12,0x36,
+0xe6,0xe5,0x63,0x60,0x04,0x7f,0x01,0x91,0x97,0x12,0x74,0xc8,0x53,0x61,0xf0,0x43,
+0x61,0x02,0x22,0x7d,0x01,0x7f,0x0c,0x8f,0x6a,0x8d,0x6b,0xe5,0x6a,0x54,0x0f,0xff,
+0xe5,0x61,0x54,0x0f,0x6f,0x60,0x65,0xe5,0x6a,0x30,0xe2,0x28,0xe5,0x61,0x20,0xe2,
+0x04,0x7f,0x01,0xd1,0xc2,0xe5,0x61,0x30,0xe3,0x0c,0xe5,0x6a,0x20,0xe3,0x07,0xb1,
+0x5d,0xef,0x60,0x48,0xa1,0xa5,0xe5,0x61,0x20,0xe3,0x41,0xe5,0x6a,0x30,0xe3,0x3c,
+0xaf,0x6b,0xc1,0xdc,0xe5,0x61,0x54,0x0f,0xff,0xbf,0x0c,0x0c,0xe5,0x6a,0x20,0xe3,
+0x07,0xb1,0x5d,0xef,0x60,0x26,0xb1,0xa5,0xe5,0x61,0x54,0x0f,0xff,0xbf,0x04,0x0c,
+0xe5,0x6a,0x20,0xe2,0x07,0xf1,0x21,0xef,0x60,0x12,0x91,0xb2,0xe5,0x61,0x54,0x0f,
+0xff,0xbf,0x02,0x08,0x12,0x60,0xbd,0xef,0x60,0x02,0xd1,0xaf,0x22,0x71,0xc3,0xef,
+0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x30,0x90,0x9e,0x64,0xe0,
+0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x22,0x90,0x9e,0x63,0xe0,0x60,0x08,
+0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x14,0xe5,0x62,0x54,0x0f,0xd3,0x94,0x04,0x40,
+0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,
+0x08,0xf0,0x7f,0x00,0x22,0x90,0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x60,0xb4,0x01,
+0x04,0x7f,0x01,0xd1,0xf6,0x53,0x61,0xf0,0x43,0x61,0x04,0x22,0xef,0x64,0x01,0x70,
+0x2e,0x7d,0x78,0x7f,0x02,0x12,0x36,0x75,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0x90,
+0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x91,0xe3,0xe4,0xff,0x91,0x97,
+0x90,0x06,0x04,0xe0,0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,
+0x01,0x36,0x74,0x7b,0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7b,0xff,0x12,0x36,0xe6,0x7d,
+0x02,0x7f,0x03,0x12,0x36,0xe6,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,
+0xe0,0x44,0x07,0xf0,0x12,0x62,0x4c,0xe5,0x60,0x20,0xe0,0x05,0xe4,0x90,0x9e,0x58,
+0xf0,0x22,0x8b,0x14,0x8a,0x15,0x89,0x16,0x12,0x60,0xb1,0xab,0x14,0xaa,0x15,0xa9,
+0x16,0x12,0x29,0xd9,0xf5,0x63,0x14,0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,
+0x03,0x70,0x40,0x7f,0x01,0x80,0x3a,0xab,0x14,0xaa,0x15,0xa9,0x16,0x90,0x00,0x02,
+0x12,0x42,0x20,0xfd,0xe4,0xff,0xd1,0x84,0x80,0x27,0xab,0x14,0xaa,0x15,0xa9,0x16,
+0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x7f,0x01,0xd1,0x84,0x1f,0x80,0x13,0xab,0x14,
+0xaa,0x15,0xa9,0x16,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x7f,0x02,0xd1,0x84,0xe4,
+0xff,0xb1,0xbc,0x22,0xef,0x24,0xfe,0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x65,0x74,
+0x01,0xf0,0x80,0x16,0xed,0x70,0x0a,0x90,0x9e,0x62,0xe0,0x90,0x9e,0x65,0xf0,0x80,
+0x05,0x90,0x9e,0x65,0xed,0xf0,0x90,0x9e,0x65,0xe0,0x90,0x9e,0x56,0xf0,0x22,0x53,
+0x61,0xf0,0x43,0x61,0x01,0x12,0x45,0x00,0x12,0x45,0x01,0x53,0x61,0xf0,0x43,0x61,
+0x02,0x22,0x90,0x9e,0xaf,0xef,0xf0,0x12,0x74,0x53,0x90,0x9e,0xaf,0xe0,0x60,0x05,
+0x90,0x05,0x22,0xe4,0xf0,0x53,0x61,0xf0,0x43,0x61,0x04,0x22,0x90,0x06,0x04,0xe0,
+0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,0x60,0xb4,0x01,0x04,0xe4,0xff,0xd1,0xf6,0x53,
+0x61,0xf0,0x43,0x61,0x0c,0x22,0x8f,0x27,0x12,0x45,0xb0,0xbf,0x01,0x22,0x90,0x9e,
+0x7a,0xe0,0xff,0x7d,0x01,0x12,0x47,0x79,0xab,0x07,0xaa,0x06,0xad,0x03,0xac,0x02,
+0xaf,0x27,0x12,0x60,0x2a,0xaf,0x03,0x12,0x5f,0xf7,0x90,0x04,0x1f,0x74,0x20,0xf0,
+0x22,0x71,0xc3,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x58,
+0xe5,0x64,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x4a,0xe5,0x62,
+0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x39,0xe5,
+0x64,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x2c,0xe5,0x64,0x30,0xe4,
+0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x1f,0x90,0x9e,0x58,0xe0,0x60,0x08,0x90,
+0x01,0xb9,0x74,0x20,0xf0,0x80,0x11,0x90,0x9e,0x5e,0xe0,0x60,0x08,0x90,0x01,0xb9,
+0x74,0x80,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,0x7f,0x00,
+0x22,0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,
+0xc0,0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,
+0xc4,0x74,0x91,0xf0,0x74,0x57,0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,
+0x90,0x00,0x55,0xe0,0x5f,0xf5,0x3d,0x90,0x00,0x52,0xe0,0xff,0x90,0x00,0x56,0xe0,
+0x5f,0xf5,0x3e,0xe5,0x3d,0x30,0xe4,0x06,0x90,0x00,0x55,0x74,0x10,0xf0,0xe5,0x3d,
+0x30,0xe5,0x06,0x90,0x00,0x55,0x74,0x20,0xf0,0xe5,0x3d,0x30,0xe6,0x1b,0x90,0x00,
+0x55,0x74,0x40,0xf0,0x90,0x9e,0x42,0xe0,0x54,0x03,0xff,0xbf,0x03,0x0b,0x90,0x9e,
+0x3f,0xe0,0x60,0x05,0x7f,0x01,0x12,0x49,0x1a,0xe5,0x3d,0x30,0xe7,0x15,0x90,0x00,
+0x55,0x74,0x80,0xf0,0x90,0x9e,0x42,0xe0,0x54,0x03,0xff,0xbf,0x03,0x05,0x7f,0x02,
+0x12,0x49,0x1a,0xe5,0x3e,0x30,0xe0,0x06,0x90,0x00,0x56,0x74,0x01,0xf0,0xe5,0x3e,
+0x30,0xe1,0x06,0x90,0x00,0x56,0x74,0x02,0xf0,0xe5,0x3e,0x30,0xe2,0x06,0x90,0x00,
+0x56,0x74,0x04,0xf0,0xe5,0x3e,0x30,0xe3,0x06,0x90,0x00,0x56,0x74,0x08,0xf0,0x90,
+0x01,0xc4,0x74,0x91,0xf0,0x74,0x57,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,
0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,
-0xf0,0xd0,0xe0,0x32,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x7f,0x01,0x60,0x02,
-0x7f,0x00,0x22,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x7f,0x10,0xdf,0xfe,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,
-0xc0,0xd0,0x90,0x9e,0xac,0xed,0xf0,0x90,0x9e,0xab,0xef,0xf0,0xd3,0x94,0x07,0x50,
-0x63,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,
-0x90,0x00,0x47,0xe0,0x5f,0xf0,0x71,0xdb,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x46,0xe0,0x4f,0xf0,0x71,
-0xdb,0x90,0x9e,0xac,0xe0,0x60,0x16,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x45,0x80,0x66,0x90,0x9e,0xab,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,
-0x00,0x45,0x80,0x6b,0x90,0x9e,0xab,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0x71,0xd3,0x90,0x9e,0xab,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,
-0x43,0xe0,0x4f,0xf0,0x71,0xdb,0x90,0x9e,0xac,0xe0,0x60,0x1b,0x90,0x9e,0xab,0xe0,
-0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xff,
-0x90,0x00,0x42,0xe0,0x4f,0x80,0x1a,0x90,0x9e,0xab,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x42,0xe0,
-0x5f,0xf0,0x71,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0xf0,0x90,0x00,0x45,0xe0,0x54,0xfe,
-0xfd,0x7f,0x45,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x8f,0x82,0x75,0x83,0x00,0xed,
-0xf0,0x71,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0xef,0x14,0x60,0x30,0x14,0x60,0x66,0x24,
-0x02,0x60,0x02,0xa1,0x9f,0x90,0x9e,0x1a,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,0x44,
-0x0c,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x47,0xe0,0x44,0x08,0xfd,0x7f,0x47,0x91,
-0xe3,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,0x7f,0x45,0x80,0x71,0xe4,0x90,0x9e,0x1a,
-0xf0,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,
-0x08,0x12,0x2f,0xd9,0x90,0x00,0x45,0xe0,0x44,0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,
-0x00,0x45,0xe0,0x54,0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,0x10,
-0xfd,0x7f,0x46,0x80,0x38,0x90,0x9e,0x1a,0x74,0x01,0xf0,0x90,0x9e,0x20,0x12,0x43,
-0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x00,
-0x45,0xe0,0x44,0x20,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x00,0x45,0xe0,0x44,0x10,0xfd,
-0x7f,0x45,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,0x10,0xfd,0x7f,0x46,0x91,0xe3,0x22,
-0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x1c,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,
-0x25,0xe0,0x25,0xe0,0x90,0x9e,0x1b,0xf0,0x12,0x29,0xd9,0x25,0xe0,0x25,0xe0,0x90,
-0x9e,0x1f,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,
-0x9e,0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,
-0x9e,0x2d,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x9e,0x1b,
-0xe0,0xff,0x12,0x52,0x12,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x90,0x9e,0x1c,
-0xe0,0x70,0x02,0xc1,0xa7,0x90,0x9e,0x1b,0xe0,0x70,0x02,0xc1,0xa7,0x90,0x9e,0x1f,
-0xe0,0x70,0x02,0xc1,0xa7,0xa2,0xaf,0xe4,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,
-0x9e,0x2e,0x74,0x01,0xf0,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x91,0xda,0x90,
-0x00,0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x91,0xe3,0x90,0x9e,0x14,0xe0,0x60,0x15,
-0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,
-0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,
-0xef,0xfd,0x7f,0x45,0x91,0xe3,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,
-0xe0,0x90,0x05,0x84,0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,
-0xe0,0x90,0x05,0x86,0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,
-0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,
-0xe4,0xff,0x12,0x37,0x00,0x80,0x2b,0x90,0x9e,0x1c,0xe0,0x70,0x2d,0x90,0x9e,0x2e,
-0x91,0xd9,0x90,0x00,0x46,0xe0,0x54,0xfe,0xfd,0x7f,0x46,0x91,0xe3,0x90,0x05,0x22,
-0xe4,0xf0,0xa2,0xaf,0x33,0x90,0x9e,0x3f,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,
-0x36,0x92,0x90,0x9e,0x3f,0xe0,0x24,0xff,0x92,0xaf,0x22,0x90,0x01,0x30,0xe4,0xf0,
-0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x38,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,
-0xfd,0x7f,0x50,0x91,0xe3,0xe4,0xfd,0x7f,0x51,0x91,0xe3,0xe4,0xfd,0x7f,0x52,0x91,
-0xe3,0xe4,0xfd,0x7f,0x53,0x81,0xe3,0x8b,0x59,0x8a,0x5a,0x89,0x5b,0x90,0x00,0x02,
-0x12,0x42,0x20,0x90,0x9e,0x1d,0xf0,0xe0,0x30,0xe0,0x4b,0x90,0x9e,0x14,0x74,0x01,
-0xf0,0x7f,0x80,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x16,0x12,0x2a,0x7f,0xab,0x59,
-0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xe4,0xfc,0xfd,0xfe,0x78,
-0x1a,0x12,0x2a,0x6c,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x9e,0x16,0x12,
-0x43,0x53,0xec,0x54,0x03,0xfc,0x12,0x43,0x46,0x90,0x9e,0x20,0x12,0x2a,0x7f,0x90,
-0x05,0x22,0xe4,0xf0,0x80,0x2d,0xe4,0x90,0x9e,0x14,0xf0,0x7f,0x80,0x7e,0x08,0x12,
-0x27,0xde,0xec,0x54,0x03,0xfc,0xec,0x44,0xc0,0xfc,0x90,0x9e,0x16,0x12,0x2a,0x7f,
-0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,
-0x12,0x2f,0xd9,0x90,0x9e,0x1d,0xe0,0x30,0xe1,0x19,0x7d,0x0c,0x7f,0x47,0x91,0xe3,
-0x90,0x00,0x48,0xe0,0x44,0x0c,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x46,0xe0,0x44,
-0x10,0x80,0x1c,0x90,0x00,0x47,0xe0,0x54,0xf3,0xfd,0x7f,0x47,0x91,0xe3,0x90,0x00,
-0x48,0xe0,0x54,0xf3,0xfd,0x7f,0x48,0x91,0xe3,0x90,0x00,0x46,0xe0,0x54,0xef,0xfd,
-0x7f,0x46,0x91,0xe3,0xe4,0x90,0x9e,0x1a,0xf0,0x22,0x90,0x00,0x49,0xe0,0x90,0x9e,
-0xb0,0xf0,0xe0,0x54,0x0f,0xf0,0x44,0xf0,0xfd,0x7f,0x49,0x91,0xe3,0x90,0x9e,0xb0,
-0xe0,0x44,0xb0,0xfd,0x7f,0x49,0x81,0xe3,0x75,0x28,0x33,0xe4,0xf5,0x29,0x75,0x2a,
-0x07,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,0xa3,0xe5,0x2a,
-0xf0,0xa3,0xe5,0x2b,0xf0,0x22,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,
-0x01,0x38,0xe5,0x30,0xf0,0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x22,0xe4,0x90,
-0x9e,0x31,0xf0,0xa3,0xf0,0x75,0x8e,0x02,0x12,0x77,0x51,0x12,0x5e,0xde,0x90,0x9e,
-0x5e,0xef,0xf0,0x12,0x5e,0xeb,0x90,0x9e,0x60,0xef,0xf0,0xe4,0xf5,0x12,0x12,0x6e,
-0xcc,0x12,0x77,0xc8,0x12,0x5f,0x9f,0x12,0x32,0x3d,0x12,0x77,0xc4,0x12,0x4f,0xf8,
-0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,
-0xf0,0xa3,0xe4,0xf0,0x12,0x5e,0xf8,0x11,0x16,0x12,0x44,0xff,0x12,0x7d,0x88,0x90,
-0x9e,0x33,0xe5,0xd9,0xf0,0x12,0x5e,0xaf,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,
-0xf0,0x12,0x4b,0xdb,0x75,0xe8,0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x9e,0x31,0xe0,
-0x64,0x01,0xf0,0x24,0x2e,0x90,0x01,0xc4,0xf0,0x74,0x50,0xa3,0xf0,0xe5,0x12,0x30,
-0xe4,0x09,0xc2,0xaf,0x53,0x12,0xef,0xd2,0xaf,0x71,0x1a,0xe5,0x12,0x30,0xe6,0x16,
-0xc2,0xaf,0x53,0x12,0xbf,0xd2,0xaf,0x12,0x68,0x7a,0x90,0x9e,0x1e,0xe0,0xff,0x60,
-0x03,0xb4,0x01,0x02,0x31,0x10,0x90,0x9e,0x1e,0xe0,0x70,0x03,0x12,0x7d,0xe6,0x11,
-0xe3,0x80,0xb9,0x90,0x06,0x34,0xe0,0x60,0x26,0x14,0x70,0x1b,0x7b,0x01,0x7a,0x06,
-0x79,0x35,0x7f,0xf9,0x7e,0x01,0x12,0x77,0x62,0xbf,0x01,0x09,0x90,0x06,0x35,0xe0,
-0x54,0x0f,0xf0,0x80,0x05,0x80,0x00,0x02,0x77,0x43,0xe4,0x90,0x06,0x34,0xf0,0x22,
-0x90,0x9e,0x15,0xe0,0xc3,0x94,0x14,0x50,0x05,0xe0,0x04,0xf0,0x21,0xc8,0x90,0x9e,
-0x15,0xe0,0x64,0x14,0x60,0x02,0x21,0xc8,0x90,0x9e,0x24,0xe0,0x70,0x25,0x90,0x9e,
-0x27,0xe0,0x70,0x1f,0x90,0x9e,0x25,0xe0,0x70,0x19,0x90,0x9e,0x28,0xe0,0x70,0x13,
-0x90,0x9e,0x26,0xe0,0x70,0x0d,0x90,0x9e,0x29,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,
-0x54,0xfe,0xf0,0x90,0x9e,0x24,0xe0,0x90,0x04,0x44,0xf0,0x90,0x9e,0x25,0xe0,0x90,
-0x04,0x45,0xf0,0x90,0x9e,0x26,0xe0,0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,
-0x27,0xe0,0x90,0x04,0x48,0xf0,0x90,0x9e,0x28,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,
-0x29,0xe0,0x90,0x04,0x4a,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x10,0xe0,0x90,0x04,0x4c,
-0xf0,0x90,0x9e,0x11,0xe0,0x90,0x04,0x4d,0xf0,0x90,0x9e,0x12,0xe0,0x90,0x04,0x4e,
-0xf0,0x90,0x9e,0x13,0xe0,0x90,0x04,0x4f,0xf0,0xe4,0x90,0x9e,0x15,0xf0,0x90,0x9e,
-0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x24,0xf0,0xa3,0xf0,
-0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x34,0xf0,
-0x90,0x05,0x61,0xe0,0x90,0x9e,0x35,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x36,0xf0,
-0x90,0x05,0x63,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0x2d,0xe0,0xff,0x90,0x9e,0x37,
-0xe0,0xfe,0xd3,0x9f,0x50,0x0b,0x90,0x9e,0x2d,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,
-0x10,0x90,0x9e,0x1b,0xe0,0xb4,0x01,0x02,0x80,0x03,0x90,0x9e,0x1f,0xe0,0xff,0x51,
-0x12,0x22,0x90,0x05,0x60,0xe0,0x90,0x9e,0x2a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,
-0x2b,0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x2c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,
-0x2d,0xf0,0xc3,0x74,0xff,0x9f,0xfe,0x90,0x9e,0x2b,0xe0,0xd3,0x9e,0x40,0x1e,0xe0,
-0x2f,0xf0,0xa3,0xe0,0xb4,0xff,0x0f,0xe4,0xf0,0xa3,0xe0,0xb4,0xff,0x03,0xe4,0xf0,
-0x22,0x90,0x9e,0x2d,0x80,0x03,0x90,0x9e,0x2c,0xe0,0x04,0xf0,0x22,0x90,0x9e,0x2b,
-0xe0,0x2f,0xf0,0x22,0x90,0x9e,0x1c,0xe0,0x64,0x01,0x60,0x02,0x61,0x19,0x90,0x00,
-0x46,0xe0,0x44,0x01,0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x90,0x9e,0x2e,0xe0,0x70,0x32,
-0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x20,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
-0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,
-0xf0,0x90,0x9e,0x1b,0xe0,0xff,0x51,0x12,0x90,0x9e,0x2e,0x74,0x01,0x12,0x4c,0xd9,
-0x80,0x40,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x70,0x38,0x90,0x9e,0x1f,0xe0,0xff,0x51,
-0x12,0xe4,0x90,0x9e,0x2e,0xf0,0x90,0x00,0x45,0xe0,0x44,0x01,0xfd,0x7f,0x45,0x12,
-0x4c,0xe3,0x90,0x9e,0x14,0xe0,0x60,0x15,0x90,0x9e,0x16,0x12,0x43,0x53,0x90,0x80,
-0x85,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x08,0x12,0x2f,0xd9,0x80,0x05,0x90,0x05,0x22,
-0xe4,0xf0,0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x9e,0x2a,0xe0,0x90,0x05,0x84,
-0xf0,0x90,0x9e,0x2b,0xe0,0x90,0x05,0x85,0xf0,0x90,0x9e,0x2c,0xe0,0x90,0x05,0x86,
-0xf0,0x90,0x9e,0x2d,0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,0x01,0xcc,0xe0,0x54,0x0f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfd,0x70,0x02,0x81,0x5b,0x90,0x9e,0xad,
-0xe0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xef,0x5d,0x70,0x02,0x81,0x54,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd0,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x35,0xf0,0x75,0x1e,0x01,0x75,0x1f,
-0x9e,0x75,0x20,0x35,0x75,0x21,0x01,0x7b,0x01,0x7a,0x9e,0x79,0x36,0x12,0x45,0x09,
-0x90,0x9e,0x36,0xe0,0xff,0xc4,0x13,0x13,0x13,0x54,0x01,0x90,0x9e,0xad,0x30,0xe0,
-0x59,0xe0,0x75,0xf0,0x02,0x90,0x00,0x88,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,
-0x90,0x9e,0xad,0xe0,0x75,0xf0,0x02,0x90,0x00,0x89,0x12,0x43,0x5f,0xe0,0x90,0x9e,
-0x38,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,
-0x90,0x9e,0x39,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,
-0x5f,0xe0,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,
-0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3b,0xf0,0x80,0x33,0xe0,0x75,0xf0,0x04,0x90,0x01,
-0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x37,0xf0,0x90,0x9e,0xad,0xe0,0x75,0xf0,0x04,
-0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x38,0xf0,0x90,0x9e,0xad,0xe0,0x75,
-0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x39,0xf0,0xef,0x54,0x7f,
-0xff,0x7b,0x01,0x7a,0x9e,0x79,0x37,0x91,0x5c,0x90,0x9e,0x34,0xe0,0xff,0x90,0x9e,
-0xad,0xe0,0xfe,0x74,0x01,0xa8,0x06,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0x5f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0xad,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0x90,0x01,0xcc,0xf0,0x90,0x9e,0xad,0xe0,0x04,0xf0,0xe0,0x54,
-0x03,0xf0,0x61,0x24,0x90,0x01,0xc6,0xe0,0x44,0x02,0xf0,0x22,0x90,0x9e,0x3c,0x12,
-0x43,0x8b,0xef,0x12,0x43,0x94,0x54,0x97,0x01,0x54,0xa0,0x02,0x54,0xbb,0x03,0x54,
-0xc4,0x05,0x54,0xcd,0x06,0x55,0x1b,0x07,0x54,0xd5,0x09,0x54,0xde,0x0c,0x54,0xe7,
-0x0d,0x54,0xf0,0x0e,0x54,0xf9,0x1b,0x55,0x02,0x1c,0x55,0x0b,0x2c,0x54,0xa9,0x2d,
-0x54,0xb2,0x2e,0x00,0x00,0x55,0x14,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x61,0x69,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0xef,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x70,0xf5,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0x3d,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x71,0x6b,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0x9f,0x90,0x9e,0x3c,
-0x12,0x43,0x6b,0x80,0x47,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x71,0xb3,0x90,0x9e,
-0x3c,0x12,0x43,0x6b,0x02,0x4d,0xa0,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x7d,0x55,
-0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x4f,0x07,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,
-0x70,0xe7,0x90,0x9e,0x3c,0x12,0x43,0x6b,0x02,0x70,0xce,0x90,0x9e,0x3c,0x12,0x43,
-0x6b,0x02,0x76,0x23,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,0x22,0x90,0x00,0x04,0x12,
-0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,0x54,0x07,0xfd,0xaf,0x06,
-0x90,0x9e,0x3f,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,0x8b,0x90,0x9e,0x41,0x12,
-0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,0x54,0x0f,0x90,0x9e,0x44,
-0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,0x13,0x54,0x03,0x90,0x9e,
-0x45,0xf0,0x90,0x9e,0x3f,0xe0,0xff,0x75,0xf0,0x09,0x90,0x96,0x46,0x12,0x43,0x5f,
-0xad,0x82,0xac,0x83,0x90,0x9e,0x46,0xec,0xf0,0xa3,0xed,0xf0,0xef,0x75,0xf0,0x09,
-0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,0xa3,0x12,0x43,0x8b,0x90,
-0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0x0f,0xff,0x90,0x9e,
-0x48,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,
-0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x48,0x12,0x43,0x6b,0x90,0x00,0x01,0xef,0x12,
-0x42,0x5f,0x90,0x9e,0x41,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,
-0x9e,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,0xf0,0x12,0x29,0xd9,
-0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x44,0xe0,0xfe,0x90,0x9e,0x3f,0xe0,0xff,
-0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,0x9e,0x40,0xe0,0xfe,
-0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,0x75,0xf0,0x09,0xef,
-0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x45,0xe0,0xfe,0x75,0xf0,
-0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,0x59,0xef,0x25,0xe0,0x24,
-0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x5b,0x8f,0x5c,0xe5,0x59,0x75,0xf0,
-0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x5d,0x01,0xf5,0x5e,0x89,0x5f,
-0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x46,0x12,0x43,0x5f,0xaf,0x82,0x85,0x83,0x60,
-0x8f,0x61,0xe5,0x59,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0x75,
-0x62,0x01,0xf5,0x63,0x89,0x64,0x74,0x82,0x25,0x59,0xf5,0x82,0xe4,0x34,0x95,0xf5,
-0x83,0xe0,0x12,0x43,0x94,0x56,0xaa,0x00,0x56,0xbf,0x01,0x56,0xd4,0x02,0x56,0xe9,
-0x03,0x57,0x13,0x04,0x57,0x28,0x05,0x57,0x3d,0x06,0x57,0x64,0x0c,0x57,0x92,0x0d,
-0x57,0xbf,0x0e,0x57,0xec,0x0f,0x00,0x00,0x58,0x20,0xe5,0x59,0x25,0xe0,0x24,0xc6,
-0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x15,0x80,0x3c,0xe5,
-0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,
-0x74,0x10,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,
-0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,0xe5,0x59,0x25,0xe0,
-0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0x8f,0xf0,
-0x02,0x58,0x20,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,0xe5,0x59,0x25,
-0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0x74,0x0d,0xf0,
-0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0x02,0x58,0x20,0x90,0x04,0x47,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,
-0x4d,0x90,0x04,0x46,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,
-0x5f,0x90,0x04,0x45,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x44,0x02,
-0x58,0x17,0x90,0x04,0x4b,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,
-0x04,0x4a,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,
-0x04,0x49,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,0x90,
-0x04,0x4f,0xe0,0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x4e,0xe0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x4d,0xe0,
-0x85,0x5c,0x82,0x85,0x5b,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,0xe0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x5d,0xaa,
-0x5e,0xa9,0x5f,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x5c,0x82,
-0x85,0x5b,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,0xf0,
-0xab,0x5d,0xaa,0x5e,0xa9,0x5f,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,
-0xab,0x62,0xaa,0x63,0xa9,0x64,0x12,0x29,0xd9,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,
-0x12,0x42,0x4d,0xab,0x5d,0xe5,0x5f,0x24,0x01,0xf9,0xe4,0x35,0x5e,0xfa,0xc0,0x03,
-0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,0xab,0x62,0xaa,0x63,0xa9,0x64,0x90,0x00,
-0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,0x5c,
-0x82,0x85,0x5b,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,
-0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x5c,0x82,0x85,0x5b,0x83,0xa3,
-0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x61,0x82,0x85,0x60,0x83,0xa3,0xe0,0xfe,0xef,
-0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,
-0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,0x5a,0x0b,0x74,0x01,0x7e,
-0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,
+0xf0,0xd0,0xe0,0x32,0x90,0x01,0xcc,0xe0,0x54,0x0f,0x90,0x9e,0x19,0xf0,0x90,0x9e,
+0x19,0xe0,0xfd,0x70,0x02,0x21,0xb5,0x90,0x9e,0xae,0xe0,0xff,0x74,0x01,0x7e,0x00,
+0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xef,0x5d,0x70,
+0x02,0x21,0xae,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd0,0x12,0x43,0x5f,
+0xe0,0x90,0x9e,0x1a,0xf0,0x75,0x23,0x01,0x75,0x24,0x9e,0x75,0x25,0x1a,0x75,0x26,
+0x01,0x7b,0x01,0x7a,0x9e,0x79,0x1b,0x12,0x45,0x09,0x90,0x9e,0x1b,0xe0,0xff,0xc4,
+0x13,0x13,0x13,0x54,0x01,0x90,0x9e,0xae,0x30,0xe0,0x59,0xe0,0x75,0xf0,0x02,0x90,
+0x00,0x88,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1c,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,
+0x02,0x90,0x00,0x89,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1d,0xf0,0x90,0x9e,0xae,0xe0,
+0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1e,0xf0,0x90,0x9e,
+0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x1f,0xf0,
+0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,0x12,0x43,0x5f,0xe0,0x90,0x9e,
+0x20,0xf0,0x80,0x33,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd1,0x12,0x43,0x5f,0xe0,0x90,
+0x9e,0x1c,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd2,0x12,0x43,0x5f,
+0xe0,0x90,0x9e,0x1d,0xf0,0x90,0x9e,0xae,0xe0,0x75,0xf0,0x04,0x90,0x01,0xd3,0x12,
+0x43,0x5f,0xe0,0x90,0x9e,0x1e,0xf0,0xef,0x54,0x7f,0xff,0x7b,0x01,0x7a,0x9e,0x79,
+0x1c,0x31,0xb6,0x90,0x9e,0x19,0xe0,0xff,0x90,0x9e,0xae,0xe0,0xfe,0x74,0x01,0xa8,
+0x06,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0x5f,0x90,0x9e,0x19,0xf0,0x90,0x9e,
+0xae,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0x90,0x01,
+0xcc,0xf0,0x90,0x9e,0xae,0xe0,0x04,0xf0,0xe0,0x54,0x03,0xf0,0x01,0x7e,0x90,0x01,
+0xc6,0xe0,0x44,0x02,0xf0,0x22,0x90,0x9e,0x21,0x12,0x43,0x8b,0xef,0x12,0x43,0x94,
+0x59,0xfc,0x01,0x59,0xf4,0x02,0x5a,0x20,0x03,0x5a,0x29,0x05,0x5a,0x32,0x06,0x5a,
+0x7e,0x07,0x5a,0x3a,0x09,0x5a,0x43,0x0b,0x5a,0x4c,0x0c,0x5a,0x55,0x0d,0x5a,0x5e,
+0x0e,0x5a,0x67,0x1b,0x5a,0x6f,0x1c,0x5a,0x05,0x2d,0x5a,0x0e,0x2e,0x5a,0x17,0x3b,
+0x00,0x00,0x5a,0x77,0x90,0x9e,0x21,0x12,0x43,0x6b,0xe1,0xe9,0x90,0x9e,0x21,0x12,
+0x43,0x6b,0x02,0x71,0xd0,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x72,0x0b,0x90,0x9e,
+0x21,0x12,0x43,0x6b,0x02,0x72,0x53,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x72,0x8c,
+0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x72,0xb6,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,
+0x70,0x4a,0x90,0x9e,0x21,0x12,0x43,0x6b,0x80,0x45,0x90,0x9e,0x21,0x12,0x43,0x6b,
+0x02,0x72,0xfe,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x70,0xa2,0x90,0x9e,0x21,0x12,
+0x43,0x6b,0x02,0x49,0xc2,0x90,0x9e,0x21,0x12,0x43,0x6b,0x02,0x7b,0x16,0x90,0x9e,
+0x21,0x12,0x43,0x6b,0x02,0x4a,0xfc,0x90,0x9e,0x21,0x12,0x43,0x6b,0xe1,0xef,0x90,
+0x9e,0x21,0x12,0x43,0x6b,0xe1,0xd1,0x90,0x01,0xc6,0xe0,0x44,0x01,0xf0,0x22,0x90,
+0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x1f,0xfe,0xef,0x54,0x20,0xc4,0x13,0x54,0x07,
+0xfd,0xaf,0x06,0x90,0x9e,0x24,0xef,0xf0,0xa3,0xed,0xf0,0xa3,0x12,0x43,0x8b,0x90,
+0x9e,0x26,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0xf0,0xc4,0x54,0x0f,
+0x90,0x9e,0x29,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0x54,0x40,0xc4,0x13,0x13,0x54,
+0x03,0x90,0x9e,0x2a,0xf0,0x90,0x9e,0x24,0xe0,0xff,0x75,0xf0,0x09,0x90,0x96,0x46,
+0x12,0x43,0x5f,0xad,0x82,0xac,0x83,0x90,0x9e,0x2b,0xec,0xf0,0xa3,0xed,0xf0,0xef,
+0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,0x35,0xf0,0xfa,0x7b,0x01,0xa3,0x12,
+0x43,0x8b,0x90,0x9e,0x26,0x12,0x43,0x6b,0x90,0x00,0x03,0x12,0x42,0x20,0x54,0x0f,
+0xff,0x90,0x9e,0x2d,0x12,0x43,0x6b,0xef,0x12,0x42,0x4d,0x90,0x9e,0x26,0x12,0x43,
+0x6b,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x90,0x9e,0x2d,0x12,0x43,0x6b,0x90,0x00,
+0x01,0xef,0x12,0x42,0x5f,0x90,0x9e,0x26,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,
+0x20,0xff,0x90,0x9e,0x2b,0xe0,0xfc,0xa3,0xe0,0xfd,0xf5,0x82,0x8c,0x83,0xef,0xf0,
+0x12,0x29,0xd9,0x8d,0x82,0x8c,0x83,0xa3,0xf0,0x90,0x9e,0x29,0xe0,0xfe,0x90,0x9e,
+0x24,0xe0,0xff,0x24,0x82,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x90,0x9e,
+0x25,0xe0,0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4a,0x12,0x43,0x5f,0xee,0xf0,0x75,
+0xf0,0x09,0xef,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x90,0x9e,0x2a,0xe0,
+0xfe,0x75,0xf0,0x09,0xef,0x90,0x96,0x4c,0x12,0x43,0x5f,0xee,0xf0,0x8f,0x14,0xef,
+0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xaf,0x82,0xf5,0x16,0x8f,0x17,0xe5,
+0x14,0x75,0xf0,0x02,0xa4,0x24,0x02,0xf9,0x74,0x95,0x35,0xf0,0x75,0x18,0x01,0xf5,
+0x19,0x89,0x1a,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x46,0x12,0x43,0x5f,0xaf,0x82,
+0x85,0x83,0x1b,0x8f,0x1c,0xe5,0x14,0x75,0xf0,0x09,0xa4,0x24,0x44,0xf9,0x74,0x96,
+0x35,0xf0,0x75,0x1d,0x01,0xf5,0x1e,0x89,0x1f,0x74,0x82,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x95,0xf5,0x83,0xe0,0x12,0x43,0x94,0x5c,0x0d,0x00,0x5c,0x22,0x01,0x5c,0x37,
+0x02,0x5c,0x4c,0x03,0x5c,0x75,0x04,0x5c,0x8a,0x05,0x5c,0x9f,0x06,0x5c,0xc5,0x0c,
+0x5c,0xf2,0x0d,0x5d,0x1f,0x0e,0x5d,0x4c,0x0f,0x00,0x00,0x5d,0x80,0xe5,0x14,0x25,
+0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x15,
+0x80,0x3c,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,
+0xf0,0xf0,0xa3,0x74,0x10,0x80,0x27,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,
+0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x14,0x25,0xe0,
+0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,0xe5,
+0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,0xa3,
+0x74,0x8f,0xf0,0xa1,0x80,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
+0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf5,0x80,0x27,0xe5,0x14,0x25,0xe0,0x24,0xc6,
+0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,0xe5,
+0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0x74,
+0x0d,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,
+0xf0,0xa3,0xf0,0xa1,0x80,0x90,0x04,0x47,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,
+0x42,0x4d,0x90,0x04,0x46,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,
+0x42,0x5f,0x90,0x04,0x45,0xe0,0x85,0x17,0x82,0x85,0x16,0x83,0xf0,0x90,0x04,0x44,
+0xa1,0x77,0x90,0x04,0x4b,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,0x42,0x4d,0x90,
+0x04,0x4a,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,
+0x04,0x49,0xe0,0x85,0x17,0x82,0x85,0x16,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,0x90,
+0x04,0x4f,0xe0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,0x42,0x4d,0x90,0x04,0x4e,0xe0,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x4d,0xe0,
+0x85,0x17,0x82,0x85,0x16,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,0xe0,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0x12,0x42,0x4d,0x90,0x04,0x52,0xe0,0xab,0x18,0xaa,
+0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x42,0x5f,0x90,0x04,0x51,0xe0,0x85,0x17,0x82,
+0x85,0x16,0x83,0xf0,0x90,0x04,0x50,0xe0,0x85,0x17,0x82,0x85,0x16,0x83,0xa3,0xf0,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,
+0xab,0x1d,0xaa,0x1e,0xa9,0x1f,0x12,0x29,0xd9,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,
+0x12,0x42,0x4d,0xab,0x18,0xe5,0x1a,0x24,0x01,0xf9,0xe4,0x35,0x19,0xfa,0xc0,0x03,
+0xc0,0x02,0xc0,0x01,0x12,0x29,0xd9,0xff,0xab,0x1d,0xaa,0x1e,0xa9,0x1f,0x90,0x00,
+0x01,0x12,0x42,0x20,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x42,0x4d,0x85,0x17,
+0x82,0x85,0x16,0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x1c,0x82,0x85,0x1b,0x83,
+0xe0,0xfe,0xef,0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x17,0x82,0x85,0x16,0x83,0xa3,
+0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x1c,0x82,0x85,0x1b,0x83,0xa3,0xe0,0xfe,0xef,
+0x5e,0xd0,0x82,0xd0,0x83,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,
+0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0x75,0x15,0x0b,0x74,0x01,0x7e,
+0x00,0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x14,
0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x5d,0x15,0x5a,0xe5,0x5a,0xc3,0x94,
-0x00,0x50,0xca,0x80,0x56,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
-0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x5a,0x0f,0x74,0x01,0x7e,0x00,
-0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x59,0x25,
+0x5f,0x4e,0x60,0x06,0xe5,0x15,0x24,0x10,0x80,0x5d,0x15,0x15,0xe5,0x15,0xc3,0x94,
+0x00,0x50,0xca,0x80,0x56,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,
+0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3d,0x75,0x15,0x0f,0x74,0x01,0x7e,0x00,
+0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x14,0x25,
0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,
-0x4e,0x60,0x08,0x90,0x9e,0x4b,0xe5,0x5a,0xf0,0x80,0x10,0x15,0x5a,0xe5,0x5a,0xc3,
-0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x4b,0xf0,0xe5,0x59,0x25,0xe0,0x24,
+0x4e,0x60,0x08,0x90,0x9e,0x30,0xe5,0x15,0xf0,0x80,0x10,0x15,0x15,0xe5,0x15,0xc3,
+0x94,0x00,0x50,0xc8,0x80,0x05,0xe4,0x90,0x9e,0x30,0xf0,0xe5,0x14,0x25,0xe0,0x24,
0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x3b,0xe4,
-0xf5,0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
-0xd8,0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
-0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x4c,0xe5,0x5a,0xf0,0x80,
-0x5b,0x05,0x5a,0xe5,0x5a,0xb4,0x10,0xca,0x80,0x52,0xe5,0x59,0x25,0xe0,0x24,0x02,
+0xf5,0x15,0x74,0x01,0x7e,0x00,0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,
+0xd8,0xf9,0xff,0xe5,0x14,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,
+0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x9e,0x31,0xe5,0x15,0xf0,0x80,
+0x5b,0x05,0x15,0xe5,0x15,0xb4,0x10,0xca,0x80,0x52,0xe5,0x14,0x25,0xe0,0x24,0x02,
0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x39,0xe4,0xf5,
-0x5a,0x74,0x01,0x7e,0x00,0xa8,0x5a,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
-0xf9,0xff,0xe5,0x59,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,
-0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x5a,0x24,0x10,0x80,0x0a,0x05,0x5a,
-0xe5,0x5a,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x4c,0xf0,0x90,0x9e,0x4b,0xe0,
-0xff,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xef,0xf0,0x90,0x9e,
-0x4c,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x49,0x12,0x43,0x5f,0xee,0xf0,
-0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,0x05,
-0x90,0x9e,0x4b,0x51,0x6f,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0xff,0x90,0x9e,0x4c,0xe0,0xfe,0xef,0xc3,0x9e,0x50,0x02,0x51,0x6f,0x90,0x9e,
-0x4b,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,0x74,0x03,0xf0,0x22,0xef,
-0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,0x22,0xef,0xd3,0x94,0x03,
-0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,0x96,0x43,0xf0,0x22,0xe0,
-0xfd,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xed,0xf0,0xaf,0x59,
-0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,0x50,0x0e,0x74,0x84,0x2f,
-0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,0x74,0xa6,0x2f,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x75,0xef,0xf0,0x24,0xa6,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x76,0xf0,0x7b,0x01,0x7a,0x9e,0x79,0x75,
-0x7d,0x02,0x51,0xc9,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x9e,0x94,0x12,0x43,0x8b,0x90,0x9e,0x97,0xe0,0x54,0xf0,0x44,0x06,0xff,0xf0,
-0xed,0x54,0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,0xf0,0x90,0x9e,0x94,0x12,
-0x43,0x6b,0x90,0x9e,0x91,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x97,0x71,0xd4,
-0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x50,0x8d,0x51,0xe5,0x51,0x54,0x1f,0xf5,0x56,0x74,
-0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xf5,0x54,0x90,0x04,0xfd,0xe0,
-0xb4,0x01,0x05,0x75,0x57,0x03,0x80,0x03,0x75,0x57,0x01,0xeb,0xc3,0x95,0x57,0x40,
-0x04,0xaf,0x50,0x80,0x33,0xe5,0x54,0x25,0x53,0xf5,0x55,0xe5,0x56,0x90,0x41,0xd6,
-0x93,0xff,0xe5,0x55,0xd3,0x9f,0x74,0x01,0x40,0x11,0x25,0x50,0xf5,0x82,0xe4,0x34,
-0x94,0xf5,0x83,0xe4,0xf0,0xad,0x51,0xaf,0x50,0x41,0x80,0x25,0x50,0xf5,0x82,0xe4,
-0x34,0x94,0xf5,0x83,0xe5,0x55,0xf0,0x22,0xad,0x07,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,
-0xe0,0x54,0x1f,0xf5,0x58,0xd3,0x9f,0x40,0x02,0x8f,0x58,0xe5,0x58,0x25,0xe0,0x24,
-0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,
-0x58,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,
-0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x05,0xad,0x58,0x51,
-0x80,0xaf,0x58,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x8e,0x12,0x43,
-0x8b,0x90,0x9e,0xaf,0xe0,0xff,0x04,0xf0,0x90,0x00,0x01,0xef,0x12,0x42,0x5f,0x7f,
-0xaf,0x7e,0x01,0x91,0x67,0xef,0x60,0x49,0x90,0x9e,0x8e,0x12,0x43,0x6b,0x8b,0x1e,
-0x8a,0x1f,0x89,0x20,0x75,0x21,0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x45,0x09,
-0x90,0x9e,0x91,0x12,0x43,0x6b,0x8b,0x1e,0x8a,0x1f,0x89,0x20,0x90,0x9e,0x8e,0x12,
-0x43,0x6b,0x12,0x29,0xd9,0xff,0xc4,0x54,0x0f,0xf5,0x21,0x7b,0x01,0x7a,0x01,0x79,
-0xa2,0x12,0x45,0x09,0x90,0x01,0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,
-0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,0x2f,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,
-0x0f,0x44,0x80,0xf0,0x7b,0x00,0x7a,0x00,0x79,0x13,0x90,0x9e,0x91,0x12,0x43,0x8b,
-0x0b,0x7a,0x9e,0x79,0x2f,0x61,0xd4,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
-0x9d,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,0x9d,0xe0,0xfe,
-0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,0xa0,0xe0,0x94,0xe8,
-0x90,0x9e,0x9f,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x7f,
-0x00,0x80,0x15,0x90,0x9e,0x9f,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,0x7f,0x0a,0x7e,
-0x00,0x12,0x37,0x54,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,0xac,0x07,0xec,
+0x15,0x74,0x01,0x7e,0x00,0xa8,0x15,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
+0xf9,0xff,0xe5,0x14,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,
+0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,0xe5,0x15,0x24,0x10,0x80,0x0a,0x05,0x15,
+0xe5,0x15,0xb4,0x0c,0xcc,0x80,0x05,0xe4,0x90,0x9e,0x31,0xf0,0x90,0x9e,0x30,0xe0,
+0xff,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x48,0x12,0x43,0x5f,0xef,0xf0,0x90,0x9e,
+0x31,0xe0,0xfe,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x49,0x12,0x43,0x5f,0xee,0xf0,
+0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,0x06,
+0x90,0x9e,0x30,0x12,0x62,0x94,0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x04,0xf5,
+0x83,0xe0,0xff,0x90,0x9e,0x31,0xe0,0xfe,0xef,0xc3,0x9e,0x50,0x03,0x12,0x62,0x94,
+0x90,0x9e,0x30,0xe0,0xff,0xd3,0x94,0x13,0x40,0x07,0x90,0x96,0x43,0x74,0x03,0xf0,
+0x22,0xef,0xd3,0x94,0x0b,0x40,0x07,0x90,0x96,0x43,0x74,0x02,0xf0,0x22,0xef,0xd3,
+0x94,0x03,0x40,0x07,0x90,0x96,0x43,0x74,0x01,0xf0,0x22,0xe4,0x90,0x96,0x43,0xf0,
+0x22,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,0xc4,0x13,
+0x13,0x13,0x54,0x01,0xfd,0xaf,0x06,0x41,0x93,0x12,0x29,0xd9,0xf5,0x60,0x22,0x12,
+0x29,0xd9,0x90,0x95,0x01,0xf0,0x22,0xad,0x07,0x74,0x11,0x2d,0xf5,0x82,0xe4,0x34,
+0xfc,0xf5,0x83,0xe0,0x44,0x01,0xf0,0x90,0x04,0x80,0xe0,0x54,0x0f,0xfc,0x74,0x14,
+0x2d,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xc0,0x4c,0xfd,0x74,0x14,0x2f,
+0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xed,0xf0,0x22,0xef,0x60,0x0f,0x74,0x21,0x2d,
+0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x22,0x74,0x21,0x2d,0xf5,
+0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x22,0xe4,0xf5,0x60,0xf5,0x64,
+0xf5,0x63,0x75,0x62,0x0c,0x75,0x61,0x0c,0x90,0x9e,0x66,0xf0,0x90,0x9e,0x64,0xf0,
+0x90,0x9e,0x63,0xf0,0x90,0x9e,0x65,0x04,0xf0,0x90,0x9e,0x56,0xf0,0xe4,0x90,0x9e,
+0x67,0xf0,0x90,0x9e,0x58,0xf0,0x90,0x9e,0x61,0x74,0x07,0xf0,0xe4,0x90,0x9e,0x57,
+0xf0,0x90,0x9e,0x5f,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x5c,0x74,0x0a,0xf0,0xa3,
+0x74,0x05,0xf0,0x90,0x9e,0x5b,0x74,0x14,0xf0,0x90,0x9e,0x62,0x74,0x05,0xf0,0xe4,
+0x90,0x9e,0x5a,0xf0,0x90,0x9e,0x55,0xf0,0x90,0x9e,0x7f,0xf0,0x90,0x9e,0x5e,0xf0,
+0x22,0xe4,0x90,0x9e,0x67,0xf0,0x90,0x9e,0x57,0xf0,0xf5,0x64,0x22,0x7f,0x00,0x22,
+0xe5,0x62,0x30,0xe6,0x19,0xe5,0x62,0x54,0x0f,0xff,0x90,0x9e,0x54,0xe0,0xfe,0x4f,
+0x90,0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x9e,0x54,0xf0,0x53,0x62,0xbf,0x22,0xe5,
+0x60,0x64,0x01,0x70,0x68,0xe5,0x63,0x60,0x64,0xe5,0x63,0x64,0x02,0x60,0x06,0xe5,
+0x63,0x64,0x05,0x70,0x27,0x90,0x06,0xab,0xe0,0x90,0x9e,0x56,0xf0,0x90,0x06,0xaa,
+0xe0,0x90,0x9e,0x65,0xf0,0x90,0x9e,0x56,0xe0,0x70,0x07,0x90,0x9e,0x65,0xe0,0xff,
+0x80,0x05,0x90,0x9e,0x56,0xe0,0xff,0x90,0x9e,0x56,0xef,0xf0,0x90,0x9e,0x58,0xe0,
+0x60,0x03,0xe0,0x14,0xf0,0xe4,0x90,0x9e,0x57,0xf0,0x90,0x05,0x58,0x74,0x03,0xf0,
+0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x53,0x64,0xfd,0x53,0x64,
+0xef,0xe5,0x63,0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,0x45,0x53,0x22,0xe4,0xfb,
+0x90,0x9e,0x9c,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe5,0x63,0x60,0x6a,0xe5,0x60,
+0x64,0x01,0x70,0x64,0xe5,0x63,0x14,0x60,0x2b,0x24,0xfd,0x60,0x27,0x24,0x02,0x24,
+0xfb,0x50,0x02,0x80,0x21,0x90,0x9e,0x56,0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,
+0x60,0x14,0x90,0x9e,0x56,0xe0,0x70,0x08,0x90,0x9e,0x65,0xe0,0x90,0x9e,0x56,0xf0,
+0x7b,0x01,0x80,0x02,0x7b,0x01,0xeb,0x60,0x2f,0x43,0x64,0x10,0xe4,0x90,0x9e,0x85,
+0xf0,0x90,0x9e,0x57,0xe0,0x75,0xf0,0x03,0xa4,0xff,0x90,0x9e,0x61,0xe0,0x2f,0x12,
+0x44,0x53,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x61,0x54,0x0f,0xc3,0x94,0x04,0x50,
+0x07,0x7d,0x01,0x7f,0x04,0x12,0x54,0xe7,0x22,0xe4,0x90,0x9e,0x15,0xf0,0xe5,0x63,
+0x60,0x79,0x90,0x9e,0x67,0xe0,0x60,0x0d,0xe4,0xf0,0x53,0x64,0xfd,0xe5,0x64,0x54,
+0x07,0x70,0x68,0x80,0x63,0x90,0x9e,0x57,0xe0,0x04,0xf0,0x53,0x64,0xef,0x90,0x9e,
+0x15,0xe0,0xf9,0xff,0x7e,0x00,0x24,0x01,0xfd,0xee,0x33,0xfc,0x90,0x9e,0x57,0xe0,
+0xb5,0x05,0x06,0xe4,0xb5,0x04,0x02,0x80,0x12,0xef,0x24,0x02,0xff,0xe4,0x3e,0xfe,
+0x90,0x9e,0x57,0xe0,0xb5,0x07,0x0a,0xe4,0xb5,0x06,0x06,0x90,0x05,0x58,0xe0,0x04,
+0xf0,0xe9,0xff,0x90,0x9e,0x5c,0xe0,0x2f,0xff,0xe4,0x33,0xfe,0x90,0x9e,0x57,0xe0,
+0xd3,0x9f,0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x40,0x0d,0xe5,0x60,0xb4,0x01,0x0b,
+0xa3,0xe0,0x70,0x07,0xe0,0x04,0xf0,0x22,0x12,0x44,0xcb,0x22,0x90,0x9e,0x5f,0xe0,
+0xa3,0xe0,0x90,0x05,0x58,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
+0x93,0x12,0x43,0x8b,0x90,0x9e,0x96,0xe0,0x54,0xf0,0x44,0x06,0xff,0xf0,0xed,0x54,
+0x0f,0xc4,0x54,0xf0,0xfe,0xef,0x54,0x0f,0x4e,0xf0,0x90,0x9e,0x93,0x12,0x43,0x6b,
+0x90,0x9e,0x90,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x96,0x12,0x53,0xf1,0xd0,
+0xd0,0x92,0xaf,0x22,0xe0,0xfd,0x74,0x26,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
+0x83,0xed,0xf0,0xaf,0x14,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xef,0xc3,0x94,0x20,
+0x50,0x0e,0x74,0x84,0x2f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xed,0xf0,0x80,0x29,
+0x74,0xa6,0x2f,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xed,0xf0,0x90,0x9e,0x68,0xef,
+0xf0,0x24,0xa6,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x90,0x9e,0x69,0xf0,0x7b,
+0x01,0x7a,0x9e,0x79,0x68,0x7d,0x02,0x51,0x57,0xd0,0xd0,0x92,0xaf,0x22,0x8f,0x0a,
+0x8d,0x0b,0xe5,0x0b,0x54,0x1f,0xf5,0x10,0x74,0x01,0x2f,0xf5,0x82,0xe4,0x34,0x94,
+0xf5,0x83,0xe0,0xf5,0x0e,0x90,0x04,0xfd,0xe0,0xb4,0x01,0x05,0x75,0x11,0x03,0x80,
+0x03,0x75,0x11,0x01,0xeb,0xc3,0x95,0x11,0x40,0x04,0xaf,0x0a,0x80,0x33,0xe5,0x0e,
+0x25,0x0d,0xf5,0x0f,0xe5,0x10,0x90,0x41,0xd6,0x93,0xff,0xe5,0x0f,0xd3,0x9f,0x74,
+0x01,0x40,0x11,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xad,0x0b,
+0xaf,0x0a,0x41,0xa5,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe5,0x0f,0xf0,
+0x22,0xad,0x07,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x74,
+0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xe0,0x54,0x1f,0xf5,0x12,0xd3,0x9f,
+0x40,0x02,0x8f,0x12,0xe5,0x12,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,
+0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x12,0x25,0xe0,0x24,0x66,0xf5,0x82,
+0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,
+0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,
+0xf0,0xa3,0xef,0xf0,0xaf,0x05,0xad,0x12,0x51,0xa5,0xaf,0x12,0x22,0xac,0x07,0xec,
0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2c,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
0x80,0x0b,0x74,0xa6,0x2c,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,
-0x64,0xe5,0x64,0x54,0x1f,0xff,0x90,0x9e,0x40,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,
-0x49,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x42,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x48,
-0x12,0x43,0x5f,0xe0,0xfe,0x90,0x9e,0x43,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
-0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x44,0xcb,0xf0,0xa3,0xeb,
+0x1f,0xe5,0x1f,0x54,0x1f,0xff,0x90,0x9e,0x25,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,
+0x49,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x27,0xf0,0x75,0xf0,0x09,0xec,0x90,0x96,0x48,
+0x12,0x43,0x5f,0xe0,0xfe,0x90,0x9e,0x28,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
+0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x29,0xcb,0xf0,0xa3,0xeb,
0xf0,0xec,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,
-0xe0,0x90,0x9e,0x46,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,0x40,0x0a,0x90,0x9e,
-0x43,0xe0,0x90,0x9e,0x40,0xf0,0xf5,0x64,0xed,0x70,0x02,0xc1,0x13,0x90,0x9e,0x41,
-0xed,0xf0,0xe5,0x64,0x30,0xe6,0x0a,0x90,0x9e,0x40,0xe0,0xf5,0x64,0xa3,0xe0,0x14,
-0xf0,0x90,0x9e,0x41,0xe0,0x70,0x02,0xc1,0x13,0x90,0x9e,0x40,0xe0,0xff,0xd3,0x94,
-0x00,0x50,0x02,0xc1,0x13,0xe4,0x90,0x9e,0x3f,0xf0,0xef,0x14,0x90,0x9e,0x3e,0xf0,
-0x90,0x9e,0x42,0xe0,0xfd,0x90,0x9e,0x3e,0xe0,0xff,0xd3,0x9d,0x40,0x6b,0xef,0x94,
+0xe0,0x90,0x9e,0x2b,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,0x9e,0x40,0x0a,0x90,0x9e,
+0x28,0xe0,0x90,0x9e,0x25,0xf0,0xf5,0x1f,0xed,0x70,0x02,0xa1,0x13,0x90,0x9e,0x26,
+0xed,0xf0,0xe5,0x1f,0x30,0xe6,0x0a,0x90,0x9e,0x25,0xe0,0xf5,0x1f,0xa3,0xe0,0x14,
+0xf0,0x90,0x9e,0x26,0xe0,0x70,0x02,0xa1,0x13,0x90,0x9e,0x25,0xe0,0xff,0xd3,0x94,
+0x00,0x50,0x02,0xa1,0x13,0xe4,0x90,0x9e,0x24,0xf0,0xef,0x14,0x90,0x9e,0x23,0xf0,
+0x90,0x9e,0x27,0xe0,0xfd,0x90,0x9e,0x23,0xe0,0xff,0xd3,0x9d,0x40,0x6b,0xef,0x94,
0x10,0x40,0x21,0xef,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x46,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x70,0x27,0x90,0x9e,0x3e,0xe0,0xff,0xc3,0x94,0x10,0x50,0x33,0x74,0x01,
+0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x2b,0xe0,0x5e,0xfe,0xa3,0xe0,
+0x5f,0x4e,0x70,0x27,0x90,0x9e,0x23,0xe0,0xff,0xc3,0x94,0x10,0x50,0x33,0x74,0x01,
0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,
-0x9e,0x44,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,0x9e,0x3e,0xe0,0xf5,
-0x64,0xa3,0xe0,0x04,0xf0,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,0x3f,0xe0,0x6f,0x60,
-0x08,0x90,0x9e,0x3e,0xe0,0x14,0xf0,0x80,0x87,0x90,0x9e,0x41,0xe0,0xff,0x90,0x9e,
-0x3f,0xe0,0xc3,0x9f,0x50,0x0d,0x90,0x9e,0x3e,0xe0,0xb5,0x05,0x06,0x90,0x9e,0x42,
-0xe0,0xf5,0x64,0xe5,0x64,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x64,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
+0x9e,0x29,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x16,0x90,0x9e,0x23,0xe0,0xf5,
+0x1f,0xa3,0xe0,0x04,0xf0,0x90,0x9e,0x26,0xe0,0xff,0x90,0x9e,0x24,0xe0,0x6f,0x60,
+0x08,0x90,0x9e,0x23,0xe0,0x14,0xf0,0x80,0x87,0x90,0x9e,0x26,0xe0,0xff,0x90,0x9e,
+0x24,0xe0,0xc3,0x9f,0x50,0x0d,0x90,0x9e,0x23,0xe0,0xb5,0x05,0x06,0x90,0x9e,0x27,
+0xe0,0xf5,0x1f,0xe5,0x1f,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
+0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe5,0x1f,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
0x13,0xff,0xec,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
-0xa3,0xef,0xf0,0xaf,0x04,0xad,0x64,0x51,0x80,0xaf,0x64,0x22,0x8f,0x77,0x12,0x45,
-0xa6,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x52,0x12,0x47,0xcc,0xe5,0x77,0x60,0x10,
-0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,0xf0,0x80,0x0e,
-0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,0xf0,0x90,0x04,
-0x1f,0x74,0x20,0xf0,0x22,0x90,0x06,0x04,0xe0,0x54,0xbf,0xf0,0xef,0x60,0x09,0xe5,
-0x22,0xb4,0x01,0x04,0xe4,0xff,0xd1,0x5c,0x53,0x23,0xf0,0x43,0x23,0x0c,0x22,0x90,
-0x01,0x3c,0x74,0xff,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0xfd,0x7f,0x54,0x12,0x4c,0xe3,0x7d,0xff,0x7f,0x55,0x12,0x4c,0xe3,
-0x7d,0xff,0x7f,0x56,0x12,0x4c,0xe3,0x7d,0xff,0x7f,0x57,0x02,0x4c,0xe3,0x90,0x00,
-0x02,0xe0,0x54,0xe0,0x7f,0x01,0x60,0x02,0x7f,0x00,0x22,0x90,0x00,0xf3,0xe0,0x7f,
-0x00,0x30,0xe3,0x03,0x7f,0x01,0x22,0x22,0x90,0x01,0x64,0x74,0xa0,0xf0,0x22,0xc0,
-0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,
-0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,
-0xff,0xf0,0x74,0x5e,0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,0x90,0x00,
-0x55,0xe0,0x5f,0xf5,0x3d,0xe5,0x3d,0x30,0xe6,0x18,0x74,0x40,0xf0,0x90,0x9e,0x1d,
-0xe0,0x54,0x03,0xff,0xbf,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0x60,0x05,0x7f,0x01,0x12,
-0x4c,0xf8,0xe5,0x3d,0x30,0xe7,0x15,0x90,0x00,0x55,0x74,0x80,0xf0,0x90,0x9e,0x1d,
-0xe0,0x54,0x03,0xff,0xbf,0x03,0x05,0x7f,0x02,0x12,0x4c,0xf8,0x90,0x01,0xc4,0x74,
-0xff,0xf0,0x74,0x5e,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,
-0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,
-0x32,0x8f,0x6b,0x8c,0x6c,0x8d,0x6d,0x22,0x8f,0x6e,0x8c,0x6f,0x8d,0x70,0x22,0xe4,
-0xf5,0x22,0xf5,0x26,0xf5,0x25,0x75,0x24,0x0c,0x75,0x23,0x0c,0x90,0x9e,0x73,0xf0,
-0x90,0x9e,0x71,0xf0,0x90,0x9e,0x70,0xf0,0x90,0x9e,0x72,0x04,0xf0,0x90,0x9e,0x64,
-0xf0,0xe4,0x90,0x9e,0x74,0xf0,0x90,0x9e,0x66,0xf0,0x90,0x9e,0x6e,0x74,0x07,0xf0,
-0xe4,0x90,0x9e,0x65,0xf0,0x90,0x9e,0x6c,0xf0,0xa3,0x74,0x02,0xf0,0x90,0x9e,0x6a,
-0x14,0xf0,0xa3,0x74,0x03,0xf0,0x90,0x9e,0x69,0x74,0x14,0xf0,0x90,0x9e,0x6f,0x74,
-0x05,0xf0,0xe4,0x90,0x9e,0x68,0xf0,0x90,0x9e,0x63,0xf0,0x90,0x9e,0x5f,0xf0,0x22,
-0xe4,0x90,0x9e,0x74,0xf0,0x90,0x9e,0x65,0xf0,0xf5,0x26,0x22,0x8b,0x59,0x8a,0x5a,
-0x89,0x5b,0x11,0x00,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x12,0x29,0xd9,0xf5,0x25,0x14,
-0x60,0x0e,0x14,0x60,0x1e,0x14,0x60,0x2f,0x24,0x03,0x70,0x40,0x7f,0x01,0x80,0x3a,
-0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0xe4,0xff,0x11,
-0x6d,0x80,0x27,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,
-0x7f,0x01,0x11,0x6d,0x1f,0x80,0x13,0xab,0x59,0xaa,0x5a,0xa9,0x5b,0x90,0x00,0x02,
-0x12,0x42,0x20,0xfd,0x7f,0x02,0x11,0x6d,0xe4,0xff,0x11,0x98,0x22,0xef,0x24,0xfe,
-0x60,0x0b,0x04,0x70,0x22,0x90,0x9e,0x72,0x74,0x01,0xf0,0x80,0x16,0xed,0x70,0x0a,
-0x90,0x9e,0x6f,0xe0,0x90,0x9e,0x72,0xf0,0x80,0x05,0x90,0x9e,0x72,0xed,0xf0,0x90,
-0x9e,0x72,0xe0,0x90,0x9e,0x64,0xf0,0x22,0xef,0x64,0x01,0x70,0x2f,0x7d,0x7c,0x7f,
-0x02,0x12,0x36,0x75,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0x90,0x01,0x57,0xe4,0xf0,
-0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x47,0x2b,0xe4,0xff,0x31,0x1f,0x90,0x06,0x04,
-0xe0,0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,
-0x7c,0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7c,0xff,0x12,0x36,0xe6,0x7d,0x02,0x7f,0x03,
-0x12,0x36,0xe6,0x90,0x06,0x04,0xe0,0x44,0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,
-0xf0,0x90,0x9e,0x6c,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0xe5,0x22,0x30,0xe0,0x19,
-0x90,0x9e,0x66,0xe0,0x70,0x18,0xe0,0x04,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x04,
-0x50,0x0c,0x7d,0x01,0x7f,0x04,0x02,0x47,0x2f,0xe4,0x90,0x9e,0x66,0xf0,0x22,0xef,
-0x60,0x0b,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x9e,0x60,
-0xe0,0xb4,0x01,0x05,0x7f,0x01,0x12,0x77,0xd1,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,
-0x90,0x05,0x22,0x74,0xff,0xf0,0x31,0xc3,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,0xfd,
-0xf0,0x7d,0x02,0x7f,0x03,0x12,0x36,0xe6,0xe5,0x25,0x60,0x04,0x7f,0x01,0x31,0x1f,
-0x51,0x04,0x53,0x23,0xf0,0x43,0x23,0x02,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,
-0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x73,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,
-0x90,0x9e,0x63,0xf0,0x12,0x29,0xd9,0x65,0x25,0x60,0x02,0x11,0x0c,0xd0,0xd0,0x92,
-0xaf,0x22,0x7d,0x02,0x7f,0x03,0x12,0x36,0x75,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,
-0x80,0x20,0x90,0x9e,0x73,0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0d,0xe5,0x23,
-0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x47,0x2f,0xe4,0xff,
-0x31,0x1f,0x22,0xe4,0x90,0x9e,0xa9,0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,
-0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,
-0x90,0x9e,0xaa,0xe0,0x94,0xe8,0x90,0x9e,0xa9,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,
-0x22,0x7f,0x32,0x7e,0x00,0x12,0x37,0x54,0x90,0x9e,0xa9,0xe4,0x75,0xf0,0x01,0x12,
-0x42,0x81,0x80,0xc6,0x7f,0x78,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xff,0x12,0x2a,
-0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0x03,0x12,0x2a,0x7f,0x7f,0x00,
-0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x07,0x12,0x2a,0x7f,0x90,0x9e,0x60,0xe0,0x90,
-0x9d,0xff,0xb4,0x01,0x0d,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,
-0x80,0x07,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0xef,0x54,0x0f,
-0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,
-0x9e,0x07,0x12,0x43,0x53,0xef,0x44,0x02,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,
-0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9e,
-0x0b,0x12,0x2a,0x7f,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa0,0x7f,0x70,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,
-0xfd,0xff,0x12,0x34,0x81,0x90,0x9e,0x60,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,
-0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x22,0x12,0x4b,
-0xc4,0xef,0x64,0x01,0x60,0x08,0x90,0x01,0xb9,0x74,0x01,0xf0,0x80,0x30,0x90,0x9e,
-0x71,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x02,0xf0,0x80,0x22,0x90,0x9e,0x70,0xe0,
-0x60,0x08,0x90,0x01,0xb9,0x74,0x04,0xf0,0x80,0x14,0xe5,0x24,0x54,0x0f,0xd3,0x94,
-0x04,0x40,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x03,0x7f,0x01,0x22,0x90,0x01,
-0xb8,0x74,0x08,0xf0,0x7f,0x00,0x22,0x12,0x4b,0xc4,0xef,0x64,0x01,0x60,0x08,0x90,
-0x01,0xb9,0x74,0x01,0xf0,0x80,0x4a,0xe5,0x26,0x54,0x03,0x60,0x08,0x90,0x01,0xb9,
-0x74,0x02,0xf0,0x80,0x3c,0xe5,0x24,0x54,0x0f,0xd3,0x94,0x02,0x40,0x08,0x90,0x01,
-0xb9,0x74,0x04,0xf0,0x80,0x2b,0xe5,0x26,0x30,0xe2,0x08,0x90,0x01,0xb9,0x74,0x08,
-0xf0,0x80,0x1e,0xe5,0x26,0x30,0xe4,0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x11,
-0x90,0x9e,0x66,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x20,0xf0,0x80,0x03,0x7f,0x01,
-0x22,0x90,0x01,0xb8,0x74,0x04,0xf0,0x7f,0x00,0x22,0xe5,0x12,0x60,0x08,0x90,0x01,
-0xb9,0x74,0x01,0xf0,0x80,0x5b,0xe5,0x24,0x54,0x0f,0xd3,0x94,0x01,0x40,0x08,0x90,
-0x01,0xb9,0x74,0x02,0xf0,0x80,0x4a,0x90,0x02,0x87,0xe0,0x60,0x08,0x90,0x01,0xb9,
-0x74,0x04,0xf0,0x80,0x3c,0x90,0x9e,0x5e,0xe0,0xb4,0x01,0x10,0x90,0x9e,0x4d,0xe0,
-0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x16,0x80,0x25,0x90,0x9e,0x5e,0xe0,
-0x70,0x0e,0x90,0x01,0xaf,0xe0,0x60,0x08,0x90,0x01,0xb9,0x74,0x08,0xf0,0x80,0x11,
-0x90,0x9e,0x68,0xe0,0x70,0x08,0x90,0x01,0xb9,0x74,0x10,0xf0,0x80,0x03,0x7f,0x01,
-0x22,0x90,0x01,0xb8,0x74,0x02,0xf0,0x7f,0x00,0x22,0x90,0x9e,0xae,0xef,0xf0,0x91,
-0x03,0x90,0x9e,0xae,0xe0,0x60,0x05,0x90,0x05,0x22,0xe4,0xf0,0x53,0x23,0xf0,0x43,
-0x23,0x04,0x22,0x90,0x9d,0xff,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0xa3,0xef,0xf0,0xaf,0x04,0xad,0x1f,0x51,0xa5,0xaf,0x1f,0x22,0xad,0x07,0xed,0xc3,
+0x94,0x20,0x50,0x0d,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x80,
+0x0b,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,0x1f,
+0xe5,0x1f,0x54,0x1f,0xfc,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,
+0xff,0x90,0x9e,0x23,0xf0,0xed,0x25,0xe0,0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,
+0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x24,0xcb,0xf0,0xa3,0xeb,0xf0,0xed,0x25,0xe0,
+0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x26,
+0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,
+0x83,0xe4,0x93,0xfa,0x74,0x01,0x93,0xfb,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
+0x34,0x95,0xf5,0x83,0xea,0xf0,0xa3,0xeb,0xf0,0xec,0xc3,0x9f,0x40,0x02,0xc1,0x7a,
+0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x04,0xfb,0x90,0x9e,
+0x23,0xe0,0xff,0xeb,0xd3,0x9f,0x40,0x02,0xc1,0xab,0xeb,0xc3,0x94,0x10,0x40,0x21,
+0xeb,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,
+0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x24,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,
+0x23,0xeb,0xc3,0x94,0x10,0x50,0x40,0x74,0x01,0x7e,0x00,0xa8,0x03,0x08,0x80,0x05,
+0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x26,0xe0,0x5e,0xfe,0xa3,0xe0,
+0x5f,0x4e,0x60,0x23,0xbb,0x11,0x09,0x90,0x9e,0x25,0xe0,0x30,0xe7,0x02,0x7b,0x17,
+0xeb,0x64,0x13,0x60,0x03,0xbb,0x12,0x09,0x90,0x9e,0x24,0xe0,0x30,0xe0,0x02,0x7b,
+0x18,0xac,0x03,0x8c,0x1f,0x80,0x34,0x0b,0x80,0x84,0x90,0x9e,0x23,0xe0,0xfb,0x6c,
+0x70,0x69,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,
+0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,0xe0,0xb4,0x01,0x0c,0xe5,0x1f,0x20,0xe6,
+0x07,0xec,0x44,0x40,0xf5,0x1f,0x80,0x03,0xaf,0x1f,0x22,0xec,0x25,0xe0,0x24,0x9e,
+0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,
+0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,
+0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,
+0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,
+0x90,0x9e,0x23,0xe0,0xff,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,
+0xf0,0xac,0x07,0x8f,0x1f,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,
+0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,
+0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,
+0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,
+0xa3,0xef,0xf0,0xaf,0x1f,0x22,0x74,0x01,0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,
+0xe4,0xf0,0xaf,0x05,0xe5,0x1f,0x44,0x80,0xfd,0x51,0xa5,0xe5,0x1f,0x44,0x80,0xff,
+0x22,0xef,0xc3,0x94,0x20,0x50,0x39,0xef,0x30,0xe0,0x17,0xed,0xc4,0x54,0xf0,0xfd,
+0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x0f,
+0x80,0x10,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,
+0x54,0xf0,0xf0,0x74,0xa4,0x2e,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x4d,0xf0,
+0x22,0xe4,0xf5,0x14,0xe5,0x14,0xb4,0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,
+0x95,0x01,0xe0,0xff,0x90,0x9a,0xc5,0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,
+0xe5,0x14,0x90,0x96,0x4b,0x12,0x43,0x5f,0xe0,0x64,0x01,0x60,0x03,0x02,0x6e,0x6a,
+0xe5,0x14,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,
+0xe0,0xd3,0x94,0x00,0xee,0x94,0x00,0x50,0x03,0x02,0x6e,0x6a,0xe5,0x14,0x94,0x20,
+0x40,0x09,0x90,0x9a,0xc5,0xe0,0x60,0x03,0x02,0x6e,0x76,0xe5,0x14,0x75,0xf0,0x0a,
+0xa4,0x24,0x00,0xf9,0x74,0x90,0x35,0xf0,0x75,0x18,0x01,0xf5,0x19,0x89,0x1a,0xe5,
+0x14,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0xa3,0xe0,
+0x90,0x9e,0x1b,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x14,0x25,0xe0,0x24,0xc4,0xf5,0x82,
+0xe4,0x34,0x98,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x1d,0xcf,0xf0,0xa3,0xef,
+0xf0,0xe5,0x14,0xc3,0x94,0x20,0x50,0x14,0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,
+0x04,0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x19,0xf0,0x80,0x12,0x74,0xa6,0x25,0x14,
+0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x19,0xf0,0x90,0x9e,
+0x19,0xe0,0xfe,0x54,0x1f,0xa3,0xf0,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x48,0x12,
+0x43,0x5f,0xe0,0x90,0x9e,0x20,0xf0,0x74,0xe6,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,
+0xf5,0x83,0xe0,0xc3,0x94,0x05,0x40,0x02,0x41,0x9f,0x90,0x9e,0x20,0xe0,0xff,0x90,
+0x9e,0x1a,0xe0,0x9f,0x40,0x13,0x90,0x9e,0x20,0xe0,0x90,0x9e,0x1a,0xf0,0xee,0x54,
+0x40,0xfe,0x90,0x9e,0x19,0xf0,0xef,0x4e,0xf0,0x90,0x04,0xfd,0xe0,0x54,0x05,0x64,
+0x01,0x70,0x29,0x90,0x9e,0x1a,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,
+0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,
+0xda,0x80,0x30,0x90,0x9e,0x1a,0xe0,0x90,0x40,0xf6,0x80,0x27,0x90,0x9e,0x1a,0xe0,
+0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
+0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x41,0x12,0x80,0x07,0x90,0x9e,0x1a,0xe0,
+0x90,0x41,0x2e,0x93,0x90,0x9e,0x1f,0xf0,0x90,0x9e,0x1f,0xe0,0x75,0xf0,0x06,0xa4,
+0x24,0x50,0xf9,0x74,0x40,0x35,0xf0,0xfa,0x7b,0xff,0x8b,0x15,0xf5,0x16,0x89,0x17,
+0xe5,0x14,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xf5,0x1b,
+0xa3,0xe0,0xf5,0x1c,0x12,0x29,0xd9,0xff,0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,
+0x12,0x42,0x97,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,
+0x1b,0xf5,0x1b,0xab,0x15,0xaa,0x16,0xa9,0x17,0x90,0x00,0x01,0x12,0x42,0x20,0xff,
+0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,
+0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xab,0x15,
+0xaa,0x16,0xa9,0x17,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x18,0xaa,
+0x19,0xa9,0x1a,0x90,0x00,0x04,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,
+0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xab,0x15,0xaa,0x16,0xa9,0x17,0x90,
+0x00,0x03,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,
+0x06,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,
+0x35,0x1b,0xf5,0x1b,0xab,0x15,0xaa,0x16,0xa9,0x17,0x90,0x00,0x04,0x12,0x42,0x20,
+0xff,0x7e,0x00,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,
+0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xab,
+0x15,0xaa,0x16,0xa9,0x17,0x90,0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,
+0x1b,0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x29,0xf2,0xd3,0xe5,0x1c,0x9f,0xe5,0x1b,0x9e,
+0x40,0x0c,0xe5,0x1c,0x9f,0xf5,0x1c,0xe5,0x1b,0x9e,0xf5,0x1b,0x80,0x05,0xe4,0xf5,
+0x1b,0xf5,0x1c,0xe5,0x14,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
+0xe5,0x1b,0xf0,0xa3,0xe5,0x1c,0xf0,0x90,0x9e,0x19,0xe0,0x25,0xe0,0x24,0x66,0xf5,
+0x82,0xe4,0x34,0x41,0xf5,0x83,0xc3,0x74,0x01,0x93,0x95,0x1c,0xe4,0x93,0x95,0x1b,
+0x50,0x07,0xaf,0x14,0x12,0x65,0x5c,0xa1,0x31,0x90,0x9e,0x19,0xe0,0x25,0xe0,0x24,
+0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x1c,0xe4,0x93,
+0x95,0x1b,0x50,0x02,0xa1,0x31,0x7d,0x01,0xaf,0x14,0x12,0x63,0xbd,0xa1,0x31,0x74,
+0xe6,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,
+0x81,0x3a,0x90,0x96,0x43,0xe0,0xff,0xb4,0x03,0x0b,0x90,0x9e,0x1a,0xe0,0xc3,0x94,
+0x19,0x40,0x3d,0x80,0x2e,0xef,0xb4,0x02,0x0b,0x90,0x9e,0x1a,0xe0,0xc3,0x94,0x11,
+0x40,0x2e,0x80,0x1f,0x90,0x96,0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x1a,0xe0,
+0xc3,0x94,0x0a,0x40,0x1b,0x80,0x0c,0xef,0x70,0x11,0x90,0x9e,0x1a,0xe0,0xc3,0x94,
+0x03,0x40,0x0d,0x90,0x9a,0x84,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,
+0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x1e,0x74,0x44,
+0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,
+0x61,0xe7,0x90,0x9a,0x84,0xe0,0x64,0x01,0x60,0x02,0x61,0xe7,0x74,0x85,0x25,0x14,
+0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,
+0xe4,0x33,0xfe,0x74,0x41,0x25,0x14,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,
+0xd3,0x9f,0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,
+0x33,0xfe,0x74,0x44,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,
+0xee,0x64,0x80,0xf8,0x74,0x80,0x98,0x50,0x14,0x74,0x26,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x9d,0xf5,0x83,0xe0,0xff,0x90,0x9e,0x1a,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,
+0x14,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,
+0x1e,0x05,0x80,0x0e,0xef,0xd3,0x94,0x39,0x40,0x05,0x75,0x1e,0x03,0x80,0x03,0x75,
+0x1e,0x01,0x74,0x41,0x25,0x14,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,
+0x85,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x14,0xf5,0x82,
+0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x85,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9a,
+0xf5,0x83,0xe0,0x04,0xf0,0x80,0x10,0xe4,0xf5,0x1e,0x74,0xe6,0x25,0x14,0xf5,0x82,
+0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x1a,0xe0,0xff,0x74,0x26,0x25,0x14,
+0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x98,0xf5,0x83,0xe5,0x1e,0xf0,0x75,0xf0,0x09,0xe5,0x14,0x90,0x96,0x4c,0x12,
+0x43,0x5f,0xe0,0xb4,0x01,0x10,0xe4,0xf5,0x1e,0x74,0xe6,0x25,0x14,0xf5,0x82,0xe4,
+0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xad,0x1e,0xa1,0x2c,0xec,0x64,0x06,0x60,0x02,0xa1,
+0x31,0xf5,0x1b,0xf5,0x1c,0x90,0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x1b,0xe0,
+0xfc,0xa3,0xe0,0xfd,0x12,0x29,0xf2,0x90,0x9e,0x21,0xee,0xf0,0xa3,0xef,0xf0,0x74,
+0x84,0x25,0x14,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x1e,0xe4,0xf5,0x1d,
+0xab,0x18,0xaa,0x19,0xa9,0x1a,0x75,0xf0,0x02,0xe5,0x1d,0xa4,0xf5,0x82,0x85,0xf0,
+0x83,0x12,0x42,0xc2,0xfd,0xac,0xf0,0xe5,0x1d,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,
+0x12,0x29,0xf2,0xef,0x25,0x1c,0xf5,0x1c,0xee,0x35,0x1b,0xf5,0x1b,0xc3,0x90,0x9e,
+0x22,0xe0,0x95,0x1c,0x90,0x9e,0x21,0xe0,0x95,0x1b,0x40,0x07,0x05,0x1d,0xe5,0x1d,
+0xb4,0x05,0xbd,0xe5,0x1d,0xc3,0x13,0xf5,0x1d,0xe5,0x1e,0xb4,0x01,0x06,0xe5,0x1d,
+0x70,0x46,0x80,0x13,0xe5,0x1e,0xb4,0x03,0x15,0xe5,0x1d,0x70,0x05,0x75,0x1e,0x03,
+0x80,0x39,0xe5,0x1d,0xb4,0x01,0x05,0x75,0x1e,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x1e,
+0xb4,0x05,0x28,0xe5,0x1d,0x70,0x05,0x75,0x1e,0x05,0x80,0x0d,0xe5,0x1d,0xb4,0x01,
+0x05,0x75,0x1e,0x03,0x80,0x03,0x75,0x1e,0x01,0xd3,0x90,0x9e,0x1e,0xe0,0x94,0x03,
+0x90,0x9e,0x1d,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x1e,0xd3,0x90,0x9e,0x1e,0xe0,
+0x94,0x03,0x90,0x9e,0x1d,0xe0,0x94,0x00,0x40,0x03,0xe4,0xf5,0x1e,0x74,0x84,0x25,
+0x14,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe5,0x1e,0xf0,0xfd,0xaf,0x14,0x12,0x67,
+0x61,0x74,0xe6,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,
+0x74,0xe6,0x50,0x0e,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,
+0x80,0x0b,0x25,0x14,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x9e,0x1d,
+0xe0,0xfe,0xa3,0xe0,0xff,0xc3,0x74,0xff,0x9f,0xfd,0x74,0xff,0x9e,0xfc,0xe5,0x14,
+0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xd3,
+0x9d,0xea,0x9c,0xe5,0x14,0x50,0x13,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,
+0xf5,0x83,0xee,0x8f,0xf0,0x12,0x42,0x81,0x80,0x10,0x25,0xe0,0x24,0xc6,0xf5,0x82,
+0xe4,0x34,0x9a,0xf5,0x83,0x74,0xff,0xf0,0xa3,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x44,
+0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0xff,0xc3,0x74,0xff,0x9f,
+0xfd,0x74,0xff,0x9e,0xfc,0xe5,0x14,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,
+0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xd3,0x9d,0xea,0x9c,0xe5,0x14,0x50,0x13,0x25,0xe0,
+0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xee,0x8f,0xf0,0x12,0x42,0x81,0x80,
+0x10,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0x74,0xff,0xf0,0xa3,
+0xf0,0xab,0x18,0xaa,0x19,0xa9,0x1a,0xe4,0xf5,0xf0,0x12,0x42,0xfa,0xab,0x18,0xaa,
+0x19,0xa9,0x1a,0x90,0x00,0x02,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x04,0xe4,
+0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x06,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,
+0x08,0xe4,0xf5,0xf0,0x12,0x43,0x19,0xe5,0x14,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,
+0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xe5,0x14,0x25,0xe0,0x24,0xc4,0xf5,0x82,
+0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xe5,0x14,0x25,0xe0,0x24,0x44,0xf5,
+0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x05,0x14,0xe5,0x14,0xc3,0x94,
+0x40,0x50,0x03,0x02,0x67,0xa4,0x22,0x90,0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,
+0xf0,0xa3,0x74,0x0f,0xf0,0xa3,0xe4,0xf0,0xfd,0x74,0xa4,0x2d,0xf5,0x82,0xe4,0x34,
+0x04,0xf5,0x83,0xe4,0xf0,0x0d,0xbd,0x10,0xf0,0xe4,0x90,0x9a,0xc5,0xf0,0x90,0x95,
+0x01,0x04,0xf0,0xe4,0xfd,0x75,0xf0,0x0a,0xed,0x90,0x90,0x00,0x12,0x43,0x5f,0xe4,
+0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x02,0x12,0x43,0x5f,0xe4,0xf0,0xa3,
+0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x04,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,
+0xf0,0x0a,0xed,0x90,0x90,0x06,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,
+0xed,0x90,0x90,0x08,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x74,0x26,0x2d,0xf5,0x82,
+0xe4,0x34,0x9d,0xf5,0x83,0x74,0x13,0xf0,0x74,0x85,0x2d,0xf5,0x82,0xe4,0x34,0x9a,
+0xf5,0x83,0xe4,0xf0,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,
+0xed,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
+0x74,0x86,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0x46,0x2d,0xf5,
+0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0xe6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,
+0xf5,0x83,0xe4,0xf0,0x90,0x41,0xc4,0x93,0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,
+0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,
+0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0x75,
+0xf0,0x09,0xed,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,0xf0,0x75,0xf0,0x09,0xed,
+0x90,0x96,0x4a,0x12,0x43,0x5f,0x74,0x01,0xf0,0x74,0x82,0x2d,0xf5,0x82,0xe4,0x34,
+0x95,0xf5,0x83,0x74,0x0c,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x46,0x12,0x43,0x5f,
+0x74,0xff,0xf0,0xa3,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x44,0x12,0x43,0x5f,0xe4,
+0xf0,0xa3,0x74,0x0f,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0x74,
+0x13,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x49,0x12,0x43,0x5f,0xe4,0xf0,0xed,0xc3,
+0x94,0x20,0x50,0x0f,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0x74,0x13,
+0xf0,0x80,0x0d,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0x74,0x13,0xf0,
+0x0d,0xed,0x64,0x40,0x60,0x03,0x02,0x6e,0xa5,0x22,0x12,0x29,0xd9,0xf5,0x14,0xc3,
+0x94,0x40,0x50,0x15,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x74,0x44,0x25,0x14,0xf5,
+0x82,0xe4,0x34,0x9a,0xf5,0x83,0xef,0xf0,0x22,0xe5,0x14,0xb4,0x40,0x0a,0x90,0x00,
+0x02,0x12,0x42,0x20,0x90,0x96,0x42,0xf0,0x22,0x90,0x9e,0x30,0x12,0x43,0x8b,0x90,
+0x9e,0x33,0xe0,0x54,0xf0,0x44,0x02,0xf0,0x54,0x0f,0x44,0xc0,0xf0,0x90,0x9e,0x30,
+0x12,0x43,0x6b,0x90,0x9e,0x90,0x12,0x43,0x8b,0x7b,0x01,0x7a,0x9e,0x79,0x33,0x02,
+0x53,0xf1,0x90,0x00,0x02,0x12,0x42,0x20,0xfd,0x90,0x00,0x01,0x12,0x42,0x20,0xfc,
+0xed,0xc3,0x94,0x40,0x40,0x02,0xe4,0xfd,0xec,0xc3,0x94,0x40,0x40,0x02,0xe4,0xfc,
+0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,
+0xfb,0xea,0x90,0x9e,0x24,0xf0,0xeb,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,
+0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xfb,0xea,0x90,0x9e,0x26,0xf0,0xeb,
+0xa3,0xf0,0xa3,0xed,0xf0,0xa3,0x74,0xff,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,
+0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xfa,0xa3,0xe0,0xfb,0xea,0x90,0x9e,0x2a,0xf0,0xeb,
+0xa3,0xf0,0xec,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe0,0xfa,
+0xa3,0xe0,0xfb,0xea,0x90,0x9e,0x2c,0xf0,0xeb,0xa3,0xf0,0xa3,0xec,0xf0,0xa3,0x74,
+0xff,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0xec,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0xec,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,0x83,0xe4,0xf0,
+0xa3,0xf0,0x7b,0x01,0x7a,0x9e,0x79,0x24,0x01,0x79,0xd3,0x10,0xaf,0x01,0xc3,0xc0,
+0xd0,0x90,0x9e,0xa4,0xee,0xf0,0xa3,0xef,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,
+0xa4,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x2d,0xc3,0x90,0x9e,0xa7,
+0xe0,0x94,0xe8,0x90,0x9e,0xa6,0xe0,0x94,0x03,0x40,0x0b,0x90,0x01,0xc6,0xe0,0x44,
+0x10,0xf0,0x7f,0x00,0x80,0x15,0x90,0x9e,0xa6,0xe4,0x75,0xf0,0x01,0x12,0x42,0x81,
+0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,0xc5,0x7f,0x01,0xd0,0xd0,0x92,0xaf,0x22,
+0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x24,0x12,0x2a,0x8b,0x00,0x00,0x00,
+0x00,0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x66,0xf0,0x90,0x00,0x03,0x12,0x42,
+0x20,0x90,0x9e,0x55,0xf0,0x12,0x56,0x22,0x90,0x01,0xe5,0xe5,0x63,0xf0,0x90,0x9e,
+0x66,0xe0,0x90,0x01,0xe6,0xf0,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x00,0x02,0x12,0x42,
+0x20,0xff,0x30,0xe0,0x25,0x12,0x29,0xd9,0x90,0x9e,0x5c,0xf0,0x90,0x00,0x01,0x12,
+0x42,0x20,0x90,0x9e,0x5d,0xf0,0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x5b,0xf0,0x90,
+0x00,0x03,0x12,0x42,0x20,0x90,0x9e,0x62,0xf0,0x22,0x90,0x9e,0x5c,0x74,0x0a,0xf0,
+0x90,0x9e,0x5d,0x74,0x05,0xf0,0x90,0x9e,0x5b,0x74,0x14,0xf0,0x90,0x9e,0x62,0x74,
+0x05,0xf0,0x22,0x12,0x29,0xd9,0x30,0xe0,0x19,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x61,
+0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x90,0x9e,0x5f,0xe4,0xf0,0xa3,0xef,0xf0,
+0x80,0x0f,0x90,0x9e,0x61,0x74,0x07,0xf0,0x90,0x9e,0x5f,0xe4,0xf0,0xa3,0x74,0x03,
+0xf0,0x90,0x9e,0x5f,0xe0,0xa3,0xe0,0x90,0x05,0x58,0xf0,0x22,0x90,0x9e,0x24,0x12,
+0x2a,0x8b,0x00,0x00,0x00,0x00,0x12,0x29,0xd9,0x60,0x0d,0x90,0x9e,0x5e,0xf0,0xe4,
+0xfd,0x7f,0x04,0x12,0x54,0xe7,0x80,0x05,0xe4,0x90,0x9e,0x5e,0xf0,0x90,0x9e,0x5e,
+0xe0,0x90,0x01,0xe7,0xf0,0x22,0x90,0x02,0x09,0xe0,0xfd,0x12,0x29,0xd9,0xfe,0xaf,
+0x05,0xed,0x2e,0x90,0x9e,0x78,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0xed,0x2f,
+0x90,0x9e,0x79,0xf0,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x7a,
+0xf0,0x90,0x00,0x03,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x7b,0xf0,0x90,0x00,
+0x04,0x12,0x42,0x20,0xff,0xae,0x05,0xed,0x2f,0x90,0x9e,0x7c,0xf0,0x22,0xd3,0x10,
+0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x24,0x12,0x43,0x8b,0x90,0x9e,0x24,0x12,0x43,
+0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xfa,0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,0xfe,
+0x90,0x9e,0x24,0x12,0x43,0x6b,0x90,0x00,0x01,0xee,0x8f,0xf0,0x12,0x43,0x19,0x12,
+0x29,0xd9,0xff,0x60,0x2d,0xb5,0x65,0x16,0x90,0x9e,0x24,0x12,0x43,0x6b,0x90,0x00,
+0x01,0x12,0x42,0xc2,0x65,0x67,0x70,0x04,0xe5,0x66,0x65,0xf0,0x60,0x24,0x90,0x9e,
+0x24,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xff,0xae,0xf0,0x12,0x4e,0x37,
+0x80,0x10,0x90,0x9e,0x24,0x12,0x43,0x6b,0x12,0x29,0xd9,0x65,0x65,0x60,0x03,0x12,
+0x44,0xc2,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,
+0xa3,0xf0,0xa3,0xf0,0x22,0x90,0x06,0x34,0xe0,0x60,0x24,0x14,0x70,0x1a,0x7b,0x01,
+0x7a,0x06,0x79,0x35,0x7f,0xf9,0x7e,0x01,0x71,0xb0,0xbf,0x01,0x09,0x90,0x06,0x35,
+0xe0,0x54,0x0f,0xf0,0x80,0x04,0x80,0x00,0x80,0xcd,0xe4,0x90,0x06,0x34,0xf0,0x22,
+0x8e,0x14,0x8f,0x15,0x8b,0x16,0x8a,0x17,0x89,0x18,0xe4,0x90,0x9e,0x19,0xf0,0xef,
+0x90,0x00,0x31,0xf0,0x12,0x4d,0x45,0xe5,0x14,0x54,0x03,0xff,0x90,0x00,0x32,0xe0,
+0x54,0xfc,0x4f,0xf0,0x12,0x4d,0x45,0x90,0x00,0x33,0xe0,0x54,0x7f,0xf0,0x12,0x4d,
+0x45,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x19,0xe0,0xc3,0x94,0x64,0x50,
+0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x19,0xe0,0xc3,0x94,0x64,0x50,0x10,0x90,
+0x00,0x30,0xe0,0xab,0x16,0xaa,0x17,0xa9,0x18,0x12,0x42,0x4d,0x7f,0x01,0x22,0x7f,
+0x00,0x22,0xe4,0x90,0x9e,0xac,0xf0,0xa3,0xf0,0x90,0x05,0xf8,0xe0,0x70,0x0f,0xa3,
+0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,0xe0,0x70,0x03,0x7f,0x01,0x22,0xd3,0x90,
+0x9e,0xad,0xe0,0x94,0xe8,0x90,0x9e,0xac,0xe0,0x94,0x03,0x40,0x03,0x7f,0x00,0x22,
+0x7f,0x32,0x7e,0x00,0x12,0x37,0x54,0x90,0x9e,0xac,0xe4,0x75,0xf0,0x01,0x12,0x42,
+0x81,0x80,0xc6,0x90,0x9d,0xff,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,0x43,0x53,0x90,
0x80,0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x0b,0x12,
0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,0xe4,0xfd,0xff,0x12,0x34,0x81,0x90,
-0x9e,0x60,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,
-0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x22,0x8f,0x27,0xe4,0x90,0x9e,0xa7,0xf0,0xa3,
-0xf0,0x90,0x01,0x09,0xe0,0x7f,0x00,0x30,0xe7,0x02,0x7f,0x01,0xef,0x65,0x27,0x60,
-0x3e,0xc3,0x90,0x9e,0xa8,0xe0,0x94,0x88,0x90,0x9e,0xa7,0xe0,0x94,0x13,0x40,0x08,
-0x90,0x01,0xc6,0xe0,0x44,0x80,0xf0,0x22,0x90,0x9e,0xa7,0xe4,0x75,0xf0,0x01,0x12,
-0x42,0x81,0x7f,0x14,0x7e,0x00,0x12,0x37,0x54,0xd3,0x90,0x9e,0xa8,0xe0,0x94,0x32,
-0x90,0x9e,0xa7,0xe0,0x94,0x00,0x40,0xb9,0x90,0x01,0xc7,0xe0,0x30,0xe0,0xb2,0x22,
-0xe5,0x24,0x30,0xe6,0x19,0xe5,0x24,0x54,0x0f,0xff,0x90,0x9e,0x62,0xe0,0xfe,0x4f,
-0x90,0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x9e,0x62,0xf0,0x53,0x24,0xbf,0x22,0x8f,
-0x76,0x12,0x45,0xa6,0xef,0x64,0x01,0x70,0x2e,0x90,0x9e,0x53,0x12,0x47,0xcc,0xe5,
-0x76,0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x44,0x10,
-0xf0,0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x54,0xef,
-0xf0,0x90,0x04,0x1f,0x74,0x20,0xf0,0x22,0xe5,0x22,0x64,0x01,0x70,0x61,0xe5,0x25,
-0x60,0x5d,0xe5,0x25,0x64,0x02,0x60,0x06,0xe5,0x25,0x64,0x05,0x70,0x27,0x90,0x06,
-0xab,0xe0,0x90,0x9e,0x64,0xf0,0x90,0x06,0xaa,0xe0,0x90,0x9e,0x72,0xf0,0x90,0x9e,
-0x64,0xe0,0x70,0x07,0x90,0x9e,0x72,0xe0,0xff,0x80,0x05,0x90,0x9e,0x64,0xe0,0xff,
-0x90,0x9e,0x64,0xef,0xf0,0x90,0x9e,0x66,0xe0,0x60,0x03,0xe0,0x14,0xf0,0xe4,0x90,
-0x9e,0x65,0xf0,0x90,0x01,0x57,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x53,0x26,0xfd,
-0x53,0x26,0xef,0xe5,0x25,0x14,0x24,0xfd,0x50,0x02,0x80,0x03,0x12,0x45,0x53,0x22,
-0xe4,0xff,0xe5,0x25,0x60,0x5f,0xe5,0x22,0x64,0x01,0x70,0x59,0xe5,0x25,0x14,0x60,
-0x2b,0x24,0xfd,0x60,0x27,0x24,0x02,0x24,0xfb,0x50,0x02,0x80,0x21,0x90,0x9e,0x64,
-0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,0x60,0x14,0x90,0x9e,0x64,0xe0,0x70,0x08,
-0x90,0x9e,0x72,0xe0,0x90,0x9e,0x64,0xf0,0x7f,0x01,0x80,0x02,0x7f,0x01,0xef,0x60,
-0x24,0x43,0x26,0x10,0xe4,0x90,0x9e,0x86,0xf0,0x90,0x9e,0x6e,0x12,0x44,0x56,0x90,
-0x01,0x57,0x74,0x05,0xf0,0xe5,0x23,0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,
-0x7f,0x04,0x12,0x47,0x2f,0x22,0xe5,0x25,0x60,0x39,0x90,0x9e,0x74,0xe0,0x60,0x0d,
-0xe4,0xf0,0x53,0x26,0xfd,0xe5,0x26,0x54,0x07,0x70,0x28,0x80,0x23,0x90,0x9e,0x65,
-0xe0,0x04,0xf0,0x53,0x26,0xef,0x90,0x9e,0x6a,0xe0,0xff,0x90,0x9e,0x65,0xe0,0xd3,
-0x9f,0x40,0x0d,0xe5,0x22,0xb4,0x01,0x0b,0xa3,0xe0,0x70,0x07,0xe0,0x04,0xf0,0x22,
-0x12,0x44,0xd1,0x22,0xef,0xc3,0x94,0x20,0x50,0x39,0xef,0x30,0xe0,0x17,0xed,0xc4,
-0x54,0xf0,0xfd,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0x54,0x0f,0x80,0x10,0xef,0xc3,0x13,0xfe,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,
-0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0xa4,0x2e,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0xe0,0x4d,0xf0,0x22,0xad,0x07,0xed,0xc3,0x94,0x20,0x50,0x0d,0x74,0x84,0x2d,0xf5,
-0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x80,0x0b,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,
-0x9c,0xf5,0x83,0xe0,0x54,0x7f,0xf5,0x64,0xe5,0x64,0x54,0x1f,0xfc,0x75,0xf0,0x09,
-0xed,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0xff,0x90,0x9e,0x3e,0xf0,0xed,0x25,0xe0,
-0x24,0x02,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x3f,
-0xcb,0xf0,0xa3,0xeb,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x9e,0x41,0xcb,0xf0,0xa3,0xeb,0xf0,0xec,0x25,0xe0,
-0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfa,0x74,0x01,0x93,0xfb,
-0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xea,0xf0,0xa3,0xeb,
-0xf0,0xec,0xc3,0x9f,0x40,0x02,0xe1,0x92,0x74,0x67,0x2d,0xf5,0x82,0xe4,0x34,0x9d,
-0xf5,0x83,0xec,0xf0,0x04,0xfb,0x90,0x9e,0x3e,0xe0,0xff,0xeb,0xd3,0x9f,0x40,0x02,
-0xe1,0xc3,0xeb,0xc3,0x94,0x10,0x40,0x21,0xeb,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,
-0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x9e,0x3f,
-0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x23,0xeb,0xc3,0x94,0x10,0x50,0x40,0x74,
-0x01,0x7e,0x00,0xa8,0x03,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,
-0x90,0x9e,0x41,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x23,0xbb,0x11,0x09,0x90,
-0x9e,0x40,0xe0,0x30,0xe7,0x02,0x7b,0x17,0xeb,0x64,0x13,0x60,0x03,0xbb,0x12,0x09,
-0x90,0x9e,0x3f,0xe0,0x30,0xe0,0x02,0x7b,0x18,0xac,0x03,0x8c,0x64,0x80,0x34,0x0b,
-0x80,0x84,0x90,0x9e,0x3e,0xe0,0xfb,0x6c,0x70,0x69,0x74,0x67,0x2d,0xf5,0x82,0xe4,
-0x34,0x9d,0xf5,0x83,0xec,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,
-0xe0,0xb4,0x01,0x0c,0xe5,0x64,0x20,0xe6,0x07,0xec,0x44,0x40,0xf5,0x64,0x80,0x03,
-0xaf,0x64,0x22,0xec,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,
-0x93,0xfe,0x74,0x01,0x93,0xff,0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,
-0xf5,0x83,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,
-0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,
-0xf0,0x80,0x5b,0xec,0xd3,0x9b,0x40,0x56,0x90,0x9e,0x3e,0xe0,0xff,0x74,0x67,0x2d,
-0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xef,0xf0,0xac,0x07,0x8f,0x64,0xec,0x25,0xe0,
-0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,
-0xec,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2f,
-0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0xa3,0xef,0xf0,0xaf,0x64,0x22,0x74,0x01,
-0x2d,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xaf,0x05,0xe5,0x64,0x44,0x80,
-0xfd,0x12,0x5a,0x80,0xe5,0x64,0x44,0x80,0xff,0x22,0xe4,0xf5,0x59,0xe5,0x59,0xb4,
-0x20,0x14,0x90,0x9a,0xc5,0xe0,0x04,0xf0,0x90,0x95,0x01,0xe0,0xff,0x90,0x9a,0xc5,
-0xe0,0xb5,0x07,0x02,0xe4,0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4b,0x12,0x43,
-0x5f,0xe0,0x64,0x01,0x60,0x02,0xc1,0xc0,0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,
-0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0xd3,0x94,0x00,0xee,0x94,0x00,0x50,
-0x02,0xc1,0xc0,0xe5,0x59,0x94,0x20,0x40,0x08,0x90,0x9a,0xc5,0xe0,0x60,0x02,0xc1,
-0xcb,0xe5,0x59,0x75,0xf0,0x0a,0xa4,0x24,0x00,0xf9,0x74,0x90,0x35,0xf0,0x75,0x5e,
-0x01,0xf5,0x5f,0x89,0x60,0xe5,0x59,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,
-0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x9e,0x38,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,
-0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,
-0x9e,0x3a,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x59,0xc3,0x94,0x20,0x50,0x14,0x74,0x84,
-0x25,0x59,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x3f,0x90,0x9e,0x34,0xf0,
-0x80,0x12,0x74,0xa6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x54,0x3f,
-0x90,0x9e,0x34,0xf0,0x90,0x9e,0x34,0xe0,0xfe,0x54,0x1f,0xa3,0xf0,0x75,0xf0,0x09,
-0xe5,0x59,0x90,0x96,0x48,0x12,0x43,0x5f,0xe0,0x90,0x9e,0x3d,0xf0,0x74,0xe6,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xc3,0x94,0x05,0x40,0x02,0x61,0x99,
-0x90,0x9e,0x3d,0xe0,0xff,0x90,0x9e,0x35,0xe0,0x9f,0x40,0x13,0x90,0x9e,0x3d,0xe0,
-0x90,0x9e,0x35,0xf0,0xee,0x54,0x40,0xfe,0x90,0x9e,0x34,0xf0,0xef,0x4e,0xf0,0x90,
-0x04,0xfd,0xe0,0x54,0x05,0x64,0x01,0x70,0x29,0x90,0x9e,0x35,0xe0,0xff,0x90,0x41,
-0x4a,0x93,0xfe,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,
-0x9e,0x40,0x06,0xef,0x90,0x40,0xda,0x80,0x30,0x90,0x9e,0x35,0xe0,0x90,0x40,0xf6,
-0x80,0x27,0x90,0x9e,0x35,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x44,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x41,0x12,
-0x80,0x07,0x90,0x9e,0x35,0xe0,0x90,0x41,0x2e,0x93,0x90,0x9e,0x3c,0xf0,0x90,0x9e,
-0x3c,0xe0,0x75,0xf0,0x06,0xa4,0x24,0x50,0xf9,0x74,0x40,0x35,0xf0,0x75,0x5b,0xff,
-0xf5,0x5c,0x89,0x5d,0x90,0x9e,0x34,0xe0,0x90,0x41,0xf2,0x93,0xff,0xd3,0x90,0x9e,
-0x3b,0xe0,0x9f,0x90,0x9e,0x3a,0xe0,0x94,0x00,0x40,0x09,0xe4,0xfd,0xaf,0x59,0x12,
-0x5c,0xbd,0xc1,0x57,0xe5,0x59,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,
-0x83,0xe0,0xf5,0x61,0xa3,0xe0,0xf5,0x62,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x12,0x29,
-0xd9,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x12,0x42,0x97,0xfd,0xac,0xf0,
-0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,
-0x5c,0xa9,0x5d,0x90,0x00,0x01,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,
-0xa9,0x60,0x90,0x00,0x02,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,
-0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,
-0x02,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x04,
-0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,
-0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x03,0x12,0x42,0x20,0xff,
-0x7e,0x00,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x06,0x12,0x42,0xc2,0xfd,0xac,
-0xf0,0x12,0x29,0xf2,0xef,0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,
-0xaa,0x5c,0xa9,0x5d,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0x7e,0x00,0xab,0x5e,0xaa,
-0x5f,0xa9,0x60,0x90,0x00,0x08,0x12,0x42,0xc2,0xfd,0xac,0xf0,0x12,0x29,0xf2,0xef,
-0x25,0x62,0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x90,
-0x00,0x05,0x12,0x42,0x20,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,0xa3,0xe0,0xfd,
-0x12,0x29,0xf2,0xd3,0xe5,0x62,0x9f,0xe5,0x61,0x9e,0x40,0x0c,0xe5,0x62,0x9f,0xf5,
-0x62,0xe5,0x61,0x9e,0xf5,0x61,0x80,0x05,0xe4,0xf5,0x61,0xf5,0x62,0xe5,0x59,0x25,
-0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe5,0x61,0xf0,0xa3,0xe5,0x62,
-0xf0,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xc3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,0x07,0xaf,0x59,0x12,0x66,
-0x74,0xc1,0x2b,0x90,0x9e,0x34,0xe0,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,
-0xf5,0x83,0xd3,0x74,0x01,0x93,0x95,0x62,0xe4,0x93,0x95,0x61,0x50,0x02,0xc1,0x2b,
-0x7d,0x01,0xaf,0x59,0x12,0x5c,0xbd,0xc1,0x2b,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9c,0xf5,0x83,0xe0,0xfc,0x64,0x05,0x60,0x02,0xa1,0x34,0x90,0x96,0x43,0xe0,
-0xff,0xb4,0x03,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x19,0x40,0x3d,0x80,0x2e,0xef,
-0xb4,0x02,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x11,0x40,0x2e,0x80,0x1f,0x90,0x96,
-0x43,0xe0,0xff,0xb4,0x01,0x0b,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x0a,0x40,0x1b,0x80,
-0x0c,0xef,0x70,0x11,0x90,0x9e,0x35,0xe0,0xc3,0x94,0x03,0x40,0x0d,0x90,0x9a,0x84,
-0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x9a,0x84,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,
-0x9a,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,0x50,0x02,0x81,0xe1,0x90,0x9a,0x84,0xe0,
-0x64,0x01,0x60,0x02,0x81,0xe1,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
-0x83,0xe0,0x64,0x0a,0x60,0x51,0xef,0x24,0x05,0xff,0xe4,0x33,0xfe,0x74,0x41,0x25,
-0x59,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe0,0xfd,0xd3,0x9f,0xee,0x64,0x80,0xf8,
-0x74,0x80,0x98,0x50,0x32,0xed,0x24,0x05,0xff,0xe4,0x33,0xfe,0x74,0x44,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0xd3,0x9f,0xee,0x64,0x80,0xf8,0x74,0x80,
-0x98,0x50,0x14,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0xe0,0xff,
-0x90,0x9e,0x35,0xe0,0x6f,0x60,0x3d,0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,
-0xf5,0x83,0xe0,0xff,0xd3,0x94,0x42,0x40,0x05,0x75,0x63,0x05,0x80,0x0e,0xef,0xd3,
-0x94,0x39,0x40,0x05,0x75,0x63,0x03,0x80,0x03,0x75,0x63,0x01,0x74,0x41,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xef,0xf0,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x9a,0x80,0x29,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,
-0xf0,0x74,0x85,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe0,0x04,0xf0,0x80,
-0x10,0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,
-0xf0,0x90,0x9e,0x35,0xe0,0xff,0x74,0x26,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9d,0xf5,
-0x83,0xef,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe5,0x63,
-0xf0,0x75,0xf0,0x09,0xe5,0x59,0x90,0x96,0x4c,0x12,0x43,0x5f,0xe0,0xb4,0x01,0x10,
-0xe4,0xf5,0x63,0x74,0xe6,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,
-0xad,0x63,0xc1,0x26,0xec,0x64,0x06,0x60,0x02,0xc1,0x2b,0xf5,0x61,0xf5,0x62,0x90,
-0x42,0x13,0x93,0xff,0x7e,0x00,0x90,0x9e,0x38,0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x29,
-0xf2,0x90,0x9e,0x36,0xee,0xf0,0xa3,0xef,0xf0,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,
-0x34,0x98,0xf5,0x83,0xe0,0xf5,0x63,0xe4,0xf5,0x5a,0xab,0x5e,0xaa,0x5f,0xa9,0x60,
-0x75,0xf0,0x02,0xe5,0x5a,0xa4,0xf5,0x82,0x85,0xf0,0x83,0x12,0x42,0xc2,0xfd,0xac,
-0xf0,0xe5,0x5a,0x90,0x42,0x0e,0x93,0xff,0x7e,0x00,0x12,0x29,0xf2,0xef,0x25,0x62,
-0xf5,0x62,0xee,0x35,0x61,0xf5,0x61,0xc3,0x90,0x9e,0x37,0xe0,0x95,0x62,0x90,0x9e,
-0x36,0xe0,0x95,0x61,0x40,0x07,0x05,0x5a,0xe5,0x5a,0xb4,0x05,0xbd,0xe5,0x5a,0xc3,
-0x13,0xf5,0x5a,0xe5,0x63,0xb4,0x01,0x06,0xe5,0x5a,0x70,0x46,0x80,0x13,0xe5,0x63,
-0xb4,0x03,0x15,0xe5,0x5a,0x70,0x05,0x75,0x63,0x03,0x80,0x39,0xe5,0x5a,0xb4,0x01,
-0x05,0x75,0x63,0x01,0x80,0x2f,0x80,0x2a,0xe5,0x63,0xb4,0x05,0x28,0xe5,0x5a,0x70,
-0x05,0x75,0x63,0x05,0x80,0x0d,0xe5,0x5a,0xb4,0x01,0x05,0x75,0x63,0x03,0x80,0x03,
-0x75,0x63,0x01,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,0x9e,0x3a,0xe0,0x94,0x00,
-0x40,0x03,0xe4,0xf5,0x63,0xd3,0x90,0x9e,0x3b,0xe0,0x94,0x03,0x90,0x9e,0x3a,0xe0,
-0x94,0x00,0x40,0x03,0xe4,0xf5,0x63,0x74,0x84,0x25,0x59,0xf5,0x82,0xe4,0x34,0x98,
-0xf5,0x83,0xe5,0x63,0xf0,0xfd,0xaf,0x59,0x12,0x66,0x34,0x74,0xe6,0x25,0x59,0xf5,
-0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0xd3,0x94,0x05,0x74,0xe6,0x50,0x0e,0x25,0x59,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe0,0x04,0xf0,0x80,0x0b,0x25,0x59,0xf5,0x82,
-0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0xe4,0xf5,0xf0,
-0x12,0x42,0xfa,0xab,0x5e,0xaa,0x5f,0xa9,0x60,0x90,0x00,0x02,0xe4,0xf5,0xf0,0x12,
-0x43,0x19,0x90,0x00,0x04,0xe4,0xf5,0xf0,0x12,0x43,0x19,0x90,0x00,0x06,0xe4,0xf5,
-0xf0,0x12,0x43,0x19,0x90,0x00,0x08,0xe4,0xf5,0xf0,0x12,0x43,0x19,0xe5,0x59,0x25,
-0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xe5,0x59,
-0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xe5,
-0x59,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,
-0x05,0x59,0xe5,0x59,0xc3,0x94,0x40,0x50,0x02,0x01,0x7d,0x22,0x90,0x04,0x44,0x74,
-0x11,0xf0,0xa3,0x74,0xf0,0xf0,0xa3,0x74,0x0f,0xf0,0xa3,0xe4,0xf0,0xfd,0x74,0xa4,
-0x2d,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe4,0xf0,0x0d,0xbd,0x10,0xf0,0xe4,0x90,
-0x9a,0xc5,0xf0,0x90,0x95,0x01,0x04,0xf0,0xe4,0xfd,0x75,0xf0,0x0a,0xed,0x90,0x90,
-0x00,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x02,0x12,
-0x43,0x5f,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x04,0x12,0x43,0x5f,
-0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x06,0x12,0x43,0x5f,0xe4,0xf0,
-0xa3,0xf0,0x75,0xf0,0x0a,0xed,0x90,0x90,0x08,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0xf0,
-0x74,0x26,0x2d,0xf5,0x82,0xe4,0x34,0x9d,0xf5,0x83,0x74,0x13,0xf0,0x74,0x85,0x2d,
-0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xe4,0xf0,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,
-0x98,0xf5,0x83,0xe4,0xf0,0xed,0x25,0xe0,0x24,0x80,0xf5,0x82,0xe4,0x34,0x93,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x98,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc4,0xf5,0x82,0xe4,0x34,0x99,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x99,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0xc6,0xf5,0x82,0xe4,0x34,0x9a,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0xed,0x25,0xe0,0x24,0x46,0xf5,0x82,0xe4,0x34,0x9b,0xf5,
-0x83,0xe4,0xf0,0xa3,0xf0,0x74,0x86,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,
-0xf0,0x74,0x46,0x2d,0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x74,0xe6,0x2d,
-0xf5,0x82,0xe4,0x34,0x9c,0xf5,0x83,0xe4,0xf0,0x90,0x41,0xc4,0x93,0xfe,0x74,0x01,
-0x93,0xff,0x90,0x41,0x8c,0x74,0x01,0x93,0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,
-0xef,0x13,0xff,0xed,0x25,0xe0,0x24,0xc2,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xee,
-0xf0,0xa3,0xef,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4b,0x12,0x43,0x5f,0x74,0x01,
-0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x4a,0x12,0x43,0x5f,0x74,0x01,0xf0,0x74,0x82,
-0x2d,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0c,0xf0,0x75,0xf0,0x09,0xed,0x90,
-0x96,0x46,0x12,0x43,0x5f,0x74,0xff,0xf0,0xa3,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x44,0x12,0x43,0x5f,0xe4,0xf0,0xa3,0x74,0x0f,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,
-0x48,0x12,0x43,0x5f,0x74,0x13,0xf0,0x75,0xf0,0x09,0xed,0x90,0x96,0x49,0x12,0x43,
-0x5f,0xe4,0xf0,0xed,0xc3,0x94,0x20,0x50,0x0f,0x74,0x84,0x2d,0xf5,0x82,0xe4,0x34,
-0x04,0xf5,0x83,0x74,0x13,0xf0,0x80,0x0d,0x74,0xa6,0x2d,0xf5,0x82,0xe4,0x34,0x9c,
-0xf5,0x83,0x74,0x13,0xf0,0x0d,0xed,0x64,0x40,0x60,0x03,0x02,0x6e,0xfa,0x22,0x12,
-0x29,0xd9,0xf5,0x59,0xc3,0x94,0x40,0x50,0x15,0x90,0x00,0x02,0x12,0x42,0x20,0xff,
-0x74,0x44,0x25,0x59,0xf5,0x82,0xe4,0x34,0x9a,0xf5,0x83,0xef,0xf0,0x22,0xe5,0x59,
-0xb4,0x40,0x0a,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x96,0x42,0xf0,0x22,0x90,0x00,
-0x04,0x12,0x42,0x20,0xff,0x54,0x3f,0xfe,0xef,0x54,0x80,0xc4,0x13,0x13,0x13,0x54,
-0x01,0xfd,0xaf,0x06,0x02,0x55,0x30,0x12,0x29,0xd9,0x90,0x95,0x01,0xf0,0x22,0x12,
-0x29,0xd9,0xf5,0x22,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0xff,0x30,0xe0,0x25,0x12,
-0x29,0xd9,0x90,0x9e,0x6a,0xf0,0x90,0x00,0x01,0x12,0x42,0x20,0x90,0x9e,0x6b,0xf0,
-0xef,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x69,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,0x90,
-0x9e,0x6f,0xf0,0x22,0x90,0x9e,0x6a,0x74,0x01,0xf0,0x90,0x9e,0x6b,0x74,0x03,0xf0,
-0x90,0x9e,0x69,0x74,0x14,0xf0,0x90,0x9e,0x6f,0x74,0x05,0xf0,0x22,0x12,0x29,0xd9,
-0x30,0xe0,0x18,0xc3,0x13,0x54,0x7f,0x90,0x9e,0x6e,0xf0,0x90,0x00,0x01,0x12,0x42,
-0x20,0xff,0x90,0x9e,0x6c,0xe4,0xf0,0xa3,0xef,0xf0,0x22,0x90,0x9e,0x6e,0x74,0x07,
-0xf0,0x90,0x9e,0x6c,0xe4,0xf0,0xa3,0x74,0x02,0xf0,0x22,0x90,0x02,0x09,0xe0,0xfd,
-0x12,0x29,0xd9,0xfe,0xaf,0x05,0xed,0x2e,0x90,0x9e,0x50,0xf0,0x90,0x00,0x01,0x12,
-0x42,0x20,0xff,0xed,0x2f,0x90,0x9e,0x51,0xf0,0x90,0x00,0x02,0x12,0x42,0x20,0xff,
-0xed,0x2f,0x90,0x9e,0x52,0xf0,0x90,0x00,0x03,0x12,0x42,0x20,0xff,0xed,0x2f,0x90,
-0x9e,0x53,0xf0,0x90,0x00,0x04,0x12,0x42,0x20,0xff,0xae,0x05,0xed,0x2f,0x90,0x9e,
-0x54,0xf0,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x3f,0x12,0x43,0x8b,
-0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xfa,0xe5,0xf0,0x24,
-0x00,0xff,0xe4,0x3a,0xfe,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0xee,0x8f,
-0xf0,0x12,0x43,0x19,0x12,0x29,0xd9,0xff,0x60,0x2c,0xb5,0x71,0x16,0x90,0x9e,0x3f,
-0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0x65,0x73,0x70,0x04,0xe5,0x72,0x65,
-0xf0,0x60,0x23,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x90,0x00,0x01,0x12,0x42,0xc2,0xff,
-0xae,0xf0,0x51,0x2b,0x80,0x10,0x90,0x9e,0x3f,0x12,0x43,0x6b,0x12,0x29,0xd9,0x65,
-0x71,0x60,0x03,0x12,0x44,0xc8,0xd0,0xd0,0x92,0xaf,0x22,0x90,0x9e,0x42,0xee,0xf0,
-0xa3,0xef,0xf0,0x75,0x71,0x01,0x8e,0x72,0xf5,0x73,0xe4,0xfd,0x7f,0x0b,0x51,0x6d,
-0xe4,0xfd,0x7f,0x02,0x51,0x6d,0x71,0x37,0xe4,0xff,0x71,0x99,0xe4,0xf5,0x75,0x90,
-0x01,0xc9,0xe5,0x75,0xf0,0x90,0x9e,0x42,0xe0,0xfc,0xa3,0xe0,0xfd,0xec,0xfb,0x8d,
-0x44,0xe4,0xf5,0x45,0x7d,0x01,0x7f,0x60,0x7e,0x01,0x02,0x35,0xab,0xd3,0x10,0xaf,
-0x01,0xc3,0xc0,0xd0,0x90,0x9e,0x45,0xed,0xf0,0x90,0x9e,0x44,0xef,0xf0,0xd3,0x94,
-0x07,0x50,0x4f,0xa3,0xe0,0x70,0x1a,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,0xe0,0x5f,0xf0,0x80,
-0x17,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,
-0xfc,0xff,0x90,0x00,0x47,0xe0,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x9e,0x44,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,
-0x80,0x5a,0x90,0x9e,0x44,0xe0,0x24,0xf8,0xf0,0xa3,0xe0,0x70,0x1d,0x90,0x9e,0x44,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,
-0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x80,0x1a,0x90,0x9e,0x44,0xe0,0xff,0x74,
-0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,
-0x43,0xe0,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x9e,0x44,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x12,
-0x4b,0xdb,0xd0,0xd0,0x92,0xaf,0x22,0x7f,0x0b,0x71,0xa6,0xef,0x65,0x74,0x60,0x10,
-0xe5,0x74,0xb4,0x01,0x05,0xe4,0xf5,0x74,0x80,0x03,0x75,0x74,0x01,0x7f,0x01,0x22,
-0x7f,0x00,0x22,0xe5,0x71,0x64,0x01,0x70,0x3f,0x71,0x37,0xbf,0x01,0x04,0x7f,0x01,
-0x71,0x99,0x90,0x00,0x46,0xe0,0x44,0x04,0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x90,0x00,
-0x44,0xe0,0x54,0xfb,0xfd,0x7f,0x44,0x12,0x4c,0xe3,0x90,0x00,0x46,0xe0,0x54,0xfb,
-0xfd,0x7f,0x46,0x12,0x4c,0xe3,0x7f,0x02,0x71,0xa6,0x8f,0x75,0x90,0x01,0xc9,0xe5,
-0x75,0xf0,0xb4,0x01,0x03,0x12,0x4f,0xda,0x22,0x90,0x01,0xca,0xe5,0x74,0xf0,0xef,
-0x60,0x03,0x12,0x4f,0xda,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,0xb1,
-0xef,0xf0,0xd3,0x94,0x07,0x50,0x47,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,
-0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0xe0,0x5f,0xf0,0x12,0x4b,0xdb,0x90,
-0x9e,0xb1,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,0x08,0x80,0x05,0xc3,0x33,0xce,
-0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,
-0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,0xf8,0xff,0x80,0x44,0x90,0x9e,
-0xb1,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
-0xd8,0xfc,0x12,0x4b,0xd3,0x90,0x9e,0xb1,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,
-0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x42,0xe0,0xfb,
-0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,
-0xf8,0xff,0xd0,0xd0,0x92,0xaf,0x22,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0x90,0x9e,
-0x56,0xe0,0x90,0x9e,0x40,0xf0,0x90,0x9e,0x57,0xe0,0xf5,0x64,0xa3,0xe0,0xf5,0x65,
-0xe4,0xf5,0x61,0x74,0x59,0x25,0x61,0xf5,0x82,0xe4,0x34,0x9e,0xf5,0x83,0xe0,0xff,
-0x74,0x66,0x25,0x61,0xf8,0xa6,0x07,0x05,0x61,0xe5,0x61,0xb4,0x04,0xe5,0x90,0x9e,
-0x40,0xe0,0x12,0x43,0x94,0x74,0xa4,0x00,0x75,0xcc,0x01,0x74,0xaa,0x02,0x74,0xaa,
-0x03,0x74,0xaa,0x04,0x75,0xcc,0x05,0x75,0x9c,0x80,0x75,0xb2,0x81,0x75,0xcc,0x82,
-0x00,0x00,0x75,0xc8,0xaf,0x69,0xb1,0xd3,0xa1,0xcc,0x90,0x9e,0x40,0xe0,0xff,0xb4,
-0x02,0x08,0x90,0x9e,0x3f,0x74,0x01,0xf0,0x80,0x0f,0xef,0x90,0x9e,0x3f,0xb4,0x03,
-0x05,0x74,0x02,0xf0,0x80,0x03,0x74,0x04,0xf0,0xc3,0xe5,0x64,0x94,0x08,0x50,0x49,
-0xe4,0xf5,0x61,0x90,0x9e,0x3f,0xe0,0xff,0xe5,0x61,0xc3,0x9f,0x40,0x02,0xa1,0xcc,
-0xc3,0xe5,0x64,0x94,0x01,0x50,0x14,0xe5,0x61,0x25,0x65,0xff,0xc3,0x74,0x03,0x95,
-0x61,0x24,0x66,0xf8,0xe6,0xfd,0x12,0x4c,0xe3,0x80,0x1a,0xc3,0x74,0x03,0x95,0x61,
-0x24,0x66,0xf8,0xe6,0xff,0xe5,0x61,0x7c,0x00,0x25,0x65,0xfd,0xec,0x35,0x64,0x8d,
-0x82,0xf5,0x83,0xef,0xf0,0x05,0x61,0x80,0xba,0xc3,0xe5,0x64,0x94,0x10,0x40,0x02,
-0xa1,0xcc,0x90,0x9e,0x40,0xe0,0x64,0x04,0x60,0x02,0xa1,0xcc,0xaf,0x67,0xfc,0xfd,
-0xfe,0x78,0x10,0x12,0x2a,0x6c,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0xaf,0x66,
-0xe4,0xfc,0xfd,0xfe,0x78,0x18,0x12,0x2a,0x6c,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,
-0x00,0x12,0x43,0x46,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0xaf,0x68,0xe4,0xfc,
-0xfd,0xfe,0x78,0x08,0x12,0x2a,0x6c,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0x12,
-0x43,0x46,0xa8,0x04,0xa9,0x05,0xaa,0x06,0xab,0x07,0xaf,0x69,0xe4,0xfc,0xfd,0xfe,
-0x12,0x43,0x46,0xa3,0x12,0x2a,0x7f,0x90,0x9e,0x41,0x12,0x43,0x53,0x90,0x80,0x85,
-0x12,0x2a,0x7f,0xaf,0x65,0xae,0x64,0x12,0x2f,0xd9,0x80,0x30,0xe5,0x68,0x7f,0x00,
-0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,0xaf,0x63,0xfe,0x12,0x37,0x54,
-0x80,0x1a,0xe5,0x68,0x7f,0x00,0xfe,0xef,0x25,0x69,0xf5,0x63,0xe4,0x3e,0xf5,0x62,
-0xaf,0x63,0xfe,0x12,0x36,0xcb,0x80,0x04,0x7f,0x00,0x80,0x02,0x7f,0x01,0xd0,0xd0,
-0x92,0xaf,0x22,0x8f,0x6a,0xe4,0x90,0x9e,0x45,0xf0,0xe5,0x6a,0x14,0xfe,0x90,0x9e,
-0x45,0xe0,0xff,0xc3,0x9e,0x50,0x0e,0xef,0x04,0xfd,0x12,0x34,0xb7,0x90,0x9e,0x45,
-0xe0,0x04,0xf0,0x80,0xe5,0xe5,0x6a,0x14,0xff,0x7d,0xff,0x12,0x34,0xb7,0x90,0x9e,
-0x45,0xe5,0x6a,0xf0,0x90,0x9e,0x45,0xe0,0xc3,0x94,0xff,0x50,0x0f,0xe0,0xff,0x04,
-0xfd,0x12,0x34,0xb7,0x90,0x9e,0x45,0xe0,0x04,0xf0,0x80,0xe8,0xad,0x6a,0x7f,0xff,
-0x02,0x34,0xb7,0xd3,0x10,0xaf,0x01,0xc3,0xc0,0xd0,0xe4,0xf5,0x5b,0x75,0x5c,0x04,
-0xf5,0x5d,0xf5,0x5f,0xf5,0x60,0x90,0x02,0x09,0xe0,0xff,0x12,0x29,0xd9,0xfe,0xef,
-0x2e,0xf5,0x5e,0x30,0xe0,0x08,0x75,0x59,0x00,0x75,0x5a,0x80,0x80,0x05,0xe4,0xf5,
-0x59,0xf5,0x5a,0xe5,0x5e,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x74,0x20,0x25,0x5b,0xf5,
-0x5b,0xad,0x5a,0xe5,0x5b,0x2d,0xff,0x24,0x01,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x90,0x9e,0x56,0xf0,0x74,0x02,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,
-0xfe,0xe5,0x5b,0x2d,0x24,0x03,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0x24,0x00,
-0xff,0xe4,0x3e,0x90,0x9e,0x57,0xf0,0xa3,0xef,0xf0,0x7f,0x04,0xe5,0x5b,0x25,0x5a,
-0x2f,0x24,0x00,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe0,0xfe,0x74,0x55,0x2f,0xf5,
-0x82,0xe4,0x34,0x9e,0xf5,0x83,0xee,0xf0,0x0f,0xbf,0x08,0xe0,0x91,0x47,0xef,0x70,
-0x3f,0x90,0x01,0xc3,0xe0,0x60,0x25,0xc3,0xe5,0x60,0x94,0xe8,0xe5,0x5f,0x94,0x03,
-0x40,0x09,0x90,0x01,0xc6,0xe0,0x44,0x10,0xf0,0x80,0x63,0x05,0x60,0xe5,0x60,0x70,
-0x02,0x05,0x5f,0x7f,0x0a,0x7e,0x00,0x12,0x37,0x54,0x80,0xd5,0x90,0x01,0xc6,0xe0,
-0x90,0x01,0xc3,0x30,0xe2,0x05,0x74,0xfe,0xf0,0x80,0x43,0x74,0xff,0xf0,0x80,0x3e,
-0xe5,0x5b,0xb4,0x78,0x23,0xe4,0xf5,0x5b,0x05,0x5e,0xe5,0x5a,0x64,0x80,0x45,0x59,
-0x70,0x06,0xf5,0x59,0xf5,0x5a,0x80,0x06,0x75,0x59,0x00,0x75,0x5a,0x80,0xe5,0x5e,
-0xc3,0x13,0x90,0xfd,0x10,0xf0,0x80,0x06,0x74,0x08,0x25,0x5b,0xf5,0x5b,0xe5,0x5d,
-0x15,0x5d,0x70,0x02,0x15,0x5c,0xe5,0x5d,0x45,0x5c,0x60,0x02,0xc1,0x61,0xd0,0xd0,
-0x92,0xaf,0x22,0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,
-0x22,0xe4,0x90,0x9e,0x5d,0xf0,0x90,0x00,0x80,0xe0,0x44,0x80,0xfd,0x7f,0x80,0x02,
-0x4c,0xe3,0x8e,0x59,0x8f,0x5a,0x8b,0x5b,0x8a,0x5c,0x89,0x5d,0xe4,0x90,0x9e,0x34,
-0xf0,0xef,0x90,0x00,0x31,0xf0,0x12,0x4b,0xdb,0xe5,0x59,0x54,0x03,0xff,0x90,0x00,
-0x32,0xe0,0x54,0xfc,0x4f,0xf0,0x12,0x4b,0xdb,0x90,0x00,0x33,0xe0,0x54,0x7f,0xf0,
-0x12,0x4b,0xdb,0x90,0x00,0x33,0xe0,0x20,0xe7,0x0e,0x90,0x9e,0x34,0xe0,0xc3,0x94,
-0x64,0x50,0x05,0xe0,0x04,0xf0,0x80,0xeb,0x90,0x9e,0x34,0xe0,0xc3,0x94,0x64,0x50,
-0x10,0x90,0x00,0x30,0xe0,0xab,0x5b,0xaa,0x5c,0xa9,0x5d,0x12,0x42,0x4d,0x7f,0x01,
-0x22,0x7f,0x00,0x22,0xe4,0xf5,0x74,0x22,0x90,0x9e,0x60,0xe0,0x90,0x9e,0x0f,0xf0,
-0x22,0xef,0x70,0x03,0x02,0x79,0x89,0x90,0x9e,0x0f,0xe0,0x60,0x03,0x02,0x7d,0x54,
+0x9e,0x80,0xe0,0xb4,0x01,0x11,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x03,0x2d,0x95,
+0xe4,0xfd,0x7f,0x01,0x12,0x34,0x81,0x22,0x7f,0x78,0x7e,0x08,0x12,0x27,0xde,0x90,
+0x9d,0xff,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0x03,0x12,
+0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0x07,0x12,0x2a,0x7f,0x90,
+0x9e,0x80,0xe0,0x90,0x9d,0xff,0xb4,0x01,0x0d,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,
+0xed,0x54,0xc7,0xfd,0x80,0x07,0x12,0x43,0x53,0xef,0x54,0xc7,0xff,0xec,0x90,0x80,
+0x85,0x12,0x2a,0x7f,0x7f,0x78,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9e,0x03,0x12,0x43,
+0x53,0xef,0x54,0x0f,0xff,0xec,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,
+0x12,0x2f,0xd9,0x90,0x9e,0x07,0x12,0x43,0x53,0xef,0x44,0x02,0xff,0xec,0x90,0x80,
+0x85,0x12,0x2a,0x7f,0x7f,0x00,0x7e,0x08,0x12,0x2f,0xd9,0x7f,0x70,0x7e,0x0e,0x12,
+0x27,0xde,0x90,0x9e,0x0b,0x12,0x2a,0x7f,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,
+0x25,0xa0,0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,
+0x00,0x00,0x00,0xe4,0xfd,0xff,0x12,0x34,0x81,0x90,0x9e,0x80,0xe0,0xb4,0x01,0x11,
+0x90,0x80,0x59,0x12,0x2a,0x8b,0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,0x01,0x12,0x34,
+0x81,0x22,0xef,0x70,0x02,0xe1,0x49,0x90,0x9e,0x0f,0xe0,0x60,0x03,0x02,0x7b,0x15,
0x90,0x9d,0xfb,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,
0x12,0x2f,0xd9,0x90,0x9d,0xa7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
0x44,0x7e,0x08,0x12,0x2f,0xd9,0x90,0x9d,0xab,0x12,0x43,0x53,0x90,0x80,0x85,0x12,
@@ -6030,1114 +2917,3136 @@ u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength] = {
0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x90,
0x9d,0xf7,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,
0x2f,0xd9,0x90,0x9e,0x0f,0x74,0x01,0xf0,0x22,0x90,0x9e,0x0f,0xe0,0x64,0x01,0x60,
-0x02,0xa1,0x54,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xfb,0x12,0x2a,0x7f,
-0x7f,0x44,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xa7,0x12,0x2a,0x7f,0x7f,0x5c,0x7e,
-0x08,0x12,0x27,0xde,0x90,0x9d,0xab,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,0x27,
-0xde,0x90,0x9d,0xaf,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,
-0xb3,0x12,0x2a,0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xb7,0x12,0x2a,
-0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbb,0x12,0x2a,0x7f,0x7f,0x7c,
-0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbf,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x0e,0x12,
-0x27,0xde,0x90,0x9d,0xc3,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,0x27,0xde,0x90,
-0x9d,0xc7,0x12,0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcb,0x12,
-0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcf,0x12,0x2a,0x7f,0x7f,
-0xd0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd3,0x12,0x2a,0x7f,0x7f,0xd4,0x7e,0x0e,
-0x12,0x27,0xde,0x90,0x9d,0xd7,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,0x27,0xde,
-0x90,0x9d,0xdb,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xdf,
-0x12,0x2a,0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe3,0x12,0x2a,0x7f,
-0x7f,0xec,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe7,0x12,0x2a,0x7f,0x7f,0x04,0x7e,
-0x0c,0x12,0x27,0xde,0x90,0x9d,0xeb,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,0x27,
-0xde,0x90,0x9d,0xef,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9d,
-0xf3,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xf7,0x12,0x2a,
-0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,
-0xa1,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,
-0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,
-0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x01,0x00,0x00,0x7f,0x44,0x7e,0x08,
-0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0xdb,0x25,0xa4,0x7f,0x5c,0x7e,
-0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x6c,
-0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,
-0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,0xa4,
-0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,
-0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,
-0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,
-0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,
-0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,
-0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,
-0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,
-0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,
-0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
-0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,0x0e,0x12,0x2f,0xd9,
-0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xdc,0x7e,0x0e,0x12,0x2f,
-0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xe0,0x7e,0x0e,0x12,
-0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x24,0xdb,0x25,0xa4,0x7f,0xec,0x7e,0x0e,
-0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,0x2a,0x7f,
-0x90,0x9e,0xa1,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,
-0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,
-0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0c,
-0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,0x2a,0x7f,
-0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,
-0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa1,0x12,
-0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,
-0x7e,0x0d,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,
-0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,
-0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa1,0x12,
-0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,
-0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,
-0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,0x54,0x0f,0xfd,0xec,0x54,0xf0,0xfc,
-0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,0xed,0x44,0x10,0xfd,
-0xec,0x44,0x01,0xfc,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,
-0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x04,0x7e,
-0x08,0x12,0x27,0xde,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,0x53,
-0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,0x43,
-0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa1,0x12,0x2a,0x7f,0x90,0x9e,0xa1,0x12,
-0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x2f,0xd9,0xe4,
-0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x1e,0xf0,0xe0,
-0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,0x59,0xc2,0xaf,0x90,0x00,
-0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x4c,0xe3,0x7d,0x40,0x7f,0x01,0x12,0x36,
-0xaf,0xe5,0x59,0x24,0xff,0x92,0xaf,0x22,0xe4,0xfd,0x7f,0x45,0x12,0x4c,0xe3,0x90,
-0x04,0xfd,0xe4,0xf0,0xa3,0xf0,0x90,0x9e,0x1e,0xf0,0x90,0x9e,0x24,0xf0,0x90,0x9e,
-0x27,0xf0,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x28,0xf0,0x90,0x9e,0x26,0xf0,0x90,0x9e,
-0x29,0xf0,0x90,0x9e,0x10,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x9e,
-0x15,0xf0,0x90,0x9e,0x1a,0xf0,0x90,0x9e,0x1c,0xf0,0x90,0x9e,0x2e,0xf0,0x90,0x9e,
-0x1f,0xf0,0x90,0x9e,0x1b,0xf0,0x90,0x9e,0x14,0xf0,0x90,0x00,0x51,0xe0,0x44,0xc0,
-0xfd,0x7f,0x51,0x02,0x4c,0xe3,0x90,0x9e,0x2e,0xe0,0x64,0x01,0x60,0x08,0x90,0x9e,
-0x1c,0xe0,0x60,0x02,0xc1,0xbd,0x90,0x9e,0x10,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,
-0x04,0xf0,0x80,0x3b,0x90,0x9e,0x11,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,
-0xe4,0x80,0x28,0x90,0x9e,0x12,0xe0,0xc3,0x94,0xff,0x50,0x0a,0xe0,0x04,0xf0,0xe4,
-0x90,0x9e,0x11,0xf0,0x80,0x15,0x90,0x9e,0x13,0xe0,0xc3,0x94,0xff,0x50,0x10,0xe0,
-0x04,0xf0,0xe4,0x90,0x9e,0x12,0xf0,0x90,0x9e,0x11,0xf0,0x90,0x9e,0x10,0xf0,0x90,
-0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,0x30,0xe2,0x32,0x90,0x9e,0x24,0xe0,0xc3,
-0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x25,0xe0,0xc3,0x94,0xff,
-0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x26,0xe0,0xc3,0x94,0xff,0x50,
-0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x25,0xf0,0x90,0x9e,0x24,0xf0,0x90,0x00,0x44,
-0xe0,0x30,0xe3,0x32,0x90,0x9e,0x27,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,
-0x80,0x24,0x90,0x9e,0x28,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,
-0x11,0x90,0x9e,0x29,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,
-0x28,0xf0,0x90,0x9e,0x27,0xf0,0x90,0x04,0xfd,0xe0,0x44,0x01,0xf0,0x22,0x17,0xed,
-};
+0x03,0x02,0x7b,0x15,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xfb,0x12,0x2a,
+0x7f,0x7f,0x44,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xa7,0x12,0x2a,0x7f,0x7f,0x5c,
+0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xab,0x12,0x2a,0x7f,0x7f,0x6c,0x7e,0x0e,0x12,
+0x27,0xde,0x90,0x9d,0xaf,0x12,0x2a,0x7f,0x7f,0x70,0x7e,0x0e,0x12,0x27,0xde,0x90,
+0x9d,0xb3,0x12,0x2a,0x7f,0x7f,0x74,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xb7,0x12,
+0x2a,0x7f,0x7f,0x78,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbb,0x12,0x2a,0x7f,0x7f,
+0x7c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xbf,0x12,0x2a,0x7f,0x7f,0x80,0x7e,0x0e,
+0x12,0x27,0xde,0x90,0x9d,0xc3,0x12,0x2a,0x7f,0x7f,0x84,0x7e,0x0e,0x12,0x27,0xde,
+0x90,0x9d,0xc7,0x12,0x2a,0x7f,0x7f,0x88,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcb,
+0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xcf,0x12,0x2a,0x7f,
+0x7f,0xd0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xd3,0x12,0x2a,0x7f,0x7f,0xd4,0x7e,
+0x0e,0x12,0x27,0xde,0x90,0x9d,0xd7,0x12,0x2a,0x7f,0x7f,0xd8,0x7e,0x0e,0x12,0x27,
+0xde,0x90,0x9d,0xdb,0x12,0x2a,0x7f,0x7f,0xdc,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,
+0xdf,0x12,0x2a,0x7f,0x7f,0xe0,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe3,0x12,0x2a,
+0x7f,0x7f,0xec,0x7e,0x0e,0x12,0x27,0xde,0x90,0x9d,0xe7,0x12,0x2a,0x7f,0x7f,0x04,
+0x7e,0x0c,0x12,0x27,0xde,0x90,0x9d,0xeb,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x0d,0x12,
+0x27,0xde,0x90,0x9d,0xef,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,
+0x9d,0xf3,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x27,0xde,0x90,0x9d,0xf7,0x12,
+0x2a,0x7f,0x7f,0x8c,0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,
+0x9e,0xa8,0x12,0x43,0x53,0xed,0x44,0xc0,0xfd,0xec,0x90,0x9e,0xa8,0x12,0x2a,0x7f,
+0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x8c,0x7e,0x08,
+0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x01,0x00,0x00,0x7f,0x44,0x7e,
+0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0xdb,0x25,0xa4,0x7f,0x5c,
+0x7e,0x08,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,
+0x6c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,
+0x7f,0x70,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,0x25,
+0xa4,0x7f,0x74,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,0x1b,
+0x25,0xa4,0x7f,0x78,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x04,
+0x1b,0x25,0xa4,0x7f,0x7c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,
+0x04,0x1b,0x25,0xa4,0x7f,0x80,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,
+0x8b,0x63,0xdb,0x25,0xa4,0x7f,0x84,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,
+0x2a,0x8b,0x04,0x1b,0x25,0xa4,0x7f,0x88,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,0x85,
+0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x2f,0xd9,0x90,0x80,
+0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,0x2f,0xd9,0x90,
+0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,0x12,0x2f,0xd9,
+0x90,0x80,0x85,0x12,0x2a,0x8b,0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,0x0e,0x12,0x2f,
+0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xdc,0x7e,0x0e,0x12,
+0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x00,0x1b,0x25,0xa4,0x7f,0xe0,0x7e,0x0e,
+0x12,0x2f,0xd9,0x90,0x80,0x85,0x12,0x2a,0x8b,0x24,0xdb,0x25,0xa4,0x7f,0xec,0x7e,
+0x0e,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0c,0x12,0x27,0xde,0x90,0x9e,0xa8,0x12,0x2a,
+0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa8,0x12,0x2a,0x7f,
+0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa8,0x12,0x2a,
+0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,
+0x0c,0x12,0x2f,0xd9,0x7f,0x04,0x7e,0x0d,0x12,0x27,0xde,0x90,0x9e,0xa8,0x12,0x2a,
+0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa8,0x12,
+0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa8,
+0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x04,0x7e,0x0d,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9e,0xa8,
+0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xe4,0xff,0xec,0x90,0x9e,0xa8,0x12,
+0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xef,0x44,0x11,0xff,0xec,0x90,0x9e,0xa8,
+0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,
+0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x0c,0x7e,0x09,0x12,0x27,0xde,0x90,0x9e,0xa8,
+0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xed,0x54,0x0f,0xfd,0xec,0x54,0xf0,
+0xfc,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,0x53,0xed,0x44,0x10,
+0xfd,0xec,0x44,0x01,0xfc,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,
+0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x0c,0x7e,0x09,0x12,0x2f,0xd9,0x7f,0x04,
+0x7e,0x08,0x12,0x27,0xde,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,0x43,
+0x53,0xef,0x54,0xf0,0xff,0xec,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,0x12,
+0x43,0x53,0xef,0x44,0x01,0xff,0xec,0x90,0x9e,0xa8,0x12,0x2a,0x7f,0x90,0x9e,0xa8,
+0x12,0x43,0x53,0x90,0x80,0x85,0x12,0x2a,0x7f,0x7f,0x04,0x7e,0x08,0x12,0x2f,0xd9,
+0xe4,0x90,0x9e,0x0f,0xf0,0x22,0x90,0x00,0x02,0x12,0x42,0x20,0x90,0x9e,0x43,0xf0,
+0xe0,0x60,0x04,0xe0,0xf4,0x70,0x21,0xa2,0xaf,0xe4,0x33,0xf5,0x14,0xc2,0xaf,0x90,
+0x00,0x47,0xe0,0x54,0xfb,0xfd,0x7f,0x47,0x12,0x49,0x05,0x7d,0x40,0x7f,0x01,0x12,
+0x36,0xaf,0xe5,0x14,0x24,0xff,0x92,0xaf,0x22,0x90,0x9e,0x3a,0xe0,0xc3,0x94,0x14,
+0x50,0x05,0xe0,0x04,0xf0,0x81,0x01,0x90,0x9e,0x3a,0xe0,0x64,0x14,0x60,0x02,0x81,
+0x01,0x90,0x9e,0x49,0xe0,0x70,0x25,0x90,0x9e,0x4c,0xe0,0x70,0x1f,0x90,0x9e,0x4a,
+0xe0,0x70,0x19,0x90,0x9e,0x4d,0xe0,0x70,0x13,0x90,0x9e,0x4b,0xe0,0x70,0x0d,0x90,
+0x9e,0x4e,0xe0,0x70,0x07,0x90,0x04,0xfd,0xe0,0x54,0xfe,0xf0,0x90,0x9e,0x49,0xe0,
+0x90,0x04,0x44,0xf0,0x90,0x9e,0x4a,0xe0,0x90,0x04,0x45,0xf0,0x90,0x9e,0x4b,0xe0,
+0x90,0x04,0x46,0xf0,0xa3,0xe4,0xf0,0x90,0x9e,0x4c,0xe0,0x90,0x04,0x48,0xf0,0x90,
+0x9e,0x4d,0xe0,0x90,0x04,0x49,0xf0,0x90,0x9e,0x4e,0xe0,0x90,0x04,0x4a,0xf0,0xa3,
+0xe4,0xf0,0x90,0x9e,0x35,0xe0,0x90,0x04,0x4c,0xf0,0x90,0x9e,0x36,0xe0,0x90,0x04,
+0x4d,0xf0,0x90,0x9e,0x37,0xe0,0x90,0x04,0x4e,0xf0,0x90,0x9e,0x38,0xe0,0x90,0x04,
+0x4f,0xf0,0xe4,0x90,0x9e,0x3a,0xf0,0x90,0x9e,0x35,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,
+0xf0,0xa3,0xf0,0x90,0x9e,0x49,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,
+0xf0,0x90,0x05,0x60,0xe0,0x90,0x9e,0x19,0xf0,0x90,0x05,0x61,0xe0,0x90,0x9e,0x1a,
+0xf0,0x90,0x05,0x62,0xe0,0x90,0x9e,0x1b,0xf0,0x90,0x05,0x63,0xe0,0x90,0x9e,0x1c,
+0xf0,0x90,0x9e,0x52,0xe0,0xff,0x90,0x9e,0x1c,0xe0,0xfe,0xd3,0x9f,0x50,0x0b,0x90,
+0x9e,0x52,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,0x11,0x90,0x9e,0x40,0xe0,0xb4,0x01,
+0x02,0x80,0x03,0x90,0x9e,0x44,0xe0,0xff,0x12,0x4c,0xf0,0x22,0x90,0x9e,0x53,0xe0,
+0x64,0x01,0x60,0x08,0x90,0x9e,0x41,0xe0,0x60,0x02,0xa1,0x23,0x90,0x9e,0x35,0xe0,
+0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x9e,0x36,0xe0,0xc3,0x94,
+0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x9e,0x37,0xe0,0xc3,0x94,0xff,
+0x50,0x0a,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x36,0xf0,0x80,0x15,0x90,0x9e,0x38,0xe0,
+0xc3,0x94,0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x37,0xf0,0x90,0x9e,0x36,
+0xf0,0x90,0x9e,0x35,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,0x30,0xe2,
+0x32,0x90,0x9e,0x49,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,
+0x9e,0x4a,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,
+0x4b,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x4a,0xf0,0x90,
+0x9e,0x49,0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x9e,0x4c,0xe0,0xc3,0x94,
+0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x9e,0x4d,0xe0,0xc3,0x94,0xff,0x50,
+0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x9e,0x4e,0xe0,0xc3,0x94,0xff,0x50,0x0c,
+0xe0,0x04,0xf0,0xe4,0x90,0x9e,0x4d,0xf0,0x90,0x9e,0x4c,0xf0,0x90,0x04,0xfd,0xe0,
+0x44,0x01,0xf0,0x22,0x68,0x4c,};
+#else
+// =================== v88 TSMC P2PPS with CCX report C2H 2012-12-05 =======================
+u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength] = {
+0xC1, 0x88, 0x02, 0x05, 0x58, 0x00, 0x02, 0x00, 0x12, 0x05, 0x17, 0x12, 0xDE, 0x3E, 0x00, 0x00,
+0x94, 0x18, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x02, 0x46, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x02, 0x60, 0xF2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x02, 0x68, 0x91, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x4B, 0x87, 0x00, 0x00,
+0x05, 0x04, 0x03, 0x02, 0x00, 0x03, 0x06, 0x05, 0x04, 0x03, 0x00, 0x04, 0x06, 0x05, 0x04, 0x02,
+0x00, 0x04, 0x08, 0x07, 0x06, 0x04, 0x00, 0x06, 0x0A, 0x09, 0x08, 0x06, 0x00, 0x08, 0x0A, 0x09,
+0x08, 0x04, 0x00, 0x08, 0x0A, 0x09, 0x08, 0x02, 0x00, 0x08, 0x0A, 0x09, 0x08, 0x00, 0x00, 0x08,
+0x12, 0x11, 0x10, 0x08, 0x00, 0x10, 0x1A, 0x19, 0x18, 0x10, 0x00, 0x18, 0x22, 0x21, 0x20, 0x18,
+0x00, 0x20, 0x22, 0x21, 0x20, 0x10, 0x00, 0x20, 0x22, 0x21, 0x20, 0x08, 0x00, 0x20, 0x22, 0x21,
+0x1C, 0x08, 0x00, 0x20, 0x22, 0x21, 0x14, 0x08, 0x00, 0x20, 0x22, 0x20, 0x18, 0x08, 0x00, 0x20,
+0x31, 0x30, 0x20, 0x10, 0x00, 0x30, 0x31, 0x30, 0x18, 0x00, 0x00, 0x30, 0x31, 0x2F, 0x10, 0x10,
+0x00, 0x30, 0x31, 0x2C, 0x10, 0x10, 0x00, 0x30, 0x31, 0x28, 0x10, 0x00, 0x00, 0x30, 0x31, 0x20,
+0x10, 0x00, 0x00, 0x30, 0x31, 0x10, 0x10, 0x00, 0x00, 0x30, 0x04, 0x04, 0x04, 0x05, 0x04, 0x04,
+0x05, 0x07, 0x07, 0x07, 0x08, 0x0A, 0x04, 0x04, 0x04, 0x04, 0x06, 0x0A, 0x0B, 0x0D, 0x05, 0x05,
+0x07, 0x07, 0x08, 0x0B, 0x0D, 0x0F, 0x04, 0x04, 0x04, 0x05, 0x07, 0x07, 0x09, 0x09, 0x0C, 0x0E,
+0x10, 0x12, 0x06, 0x07, 0x09, 0x0A, 0x0C, 0x0E, 0x11, 0x13, 0x09, 0x09, 0x09, 0x09, 0x0C, 0x0E,
+0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x26, 0x2A, 0x18, 0x1A,
+0x1D, 0x1F, 0x21, 0x27, 0x29, 0x2A, 0x00, 0x00, 0x00, 0x1F, 0x23, 0x28, 0x2A, 0x2C, 0x00, 0x04,
+0x00, 0x04, 0x00, 0x08, 0x00, 0x10, 0x00, 0x18, 0x00, 0x24, 0x00, 0x30, 0x00, 0x48, 0x00, 0x60,
+0x00, 0x90, 0x00, 0xC0, 0x00, 0xD8, 0x00, 0x50, 0x00, 0x78, 0x00, 0xA0, 0x00, 0xC8, 0x01, 0x40,
+0x01, 0x90, 0x01, 0xE0, 0x02, 0x30, 0x01, 0x2C, 0x01, 0x40, 0x01, 0xE0, 0x02, 0xD0, 0x03, 0xE8,
+0x04, 0xB0, 0x06, 0x40, 0x07, 0xD0, 0x00, 0x02, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0C,
+0x00, 0x12, 0x00, 0x18, 0x00, 0x24, 0x00, 0x30, 0x00, 0x48, 0x00, 0x60, 0x00, 0x6C, 0x00, 0x28,
+0x00, 0x3C, 0x00, 0x50, 0x00, 0x64, 0x00, 0xA0, 0x00, 0xC8, 0x00, 0xF0, 0x01, 0x18, 0x00, 0x64,
+0x00, 0xA0, 0x00, 0xF0, 0x01, 0x68, 0x01, 0xF4, 0x02, 0x58, 0x03, 0x20, 0x03, 0xE8, 0x02, 0x02,
+0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, 0x07, 0x02, 0x03, 0x04, 0x0A, 0x0C, 0x0E,
+0x10, 0x12, 0x05, 0x07, 0x07, 0x08, 0x0B, 0x12, 0x24, 0x3C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02,
+0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06,
+0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x20, 0x1E, 0x1C, 0x18, 0x10, 0x18, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0xBB, 0x01, 0x0C, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE0, 0x22, 0x50,
+0x06, 0xE9, 0x25, 0x82, 0xF8, 0xE6, 0x22, 0xBB, 0xFE, 0x06, 0xE9, 0x25, 0x82, 0xF8, 0xE2, 0x22,
+0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE4, 0x93, 0x22, 0xBB, 0x01, 0x06,
+0x89, 0x82, 0x8A, 0x83, 0xF0, 0x22, 0x50, 0x02, 0xF7, 0x22, 0xBB, 0xFE, 0x01, 0xF3, 0x22, 0xF8,
+0xBB, 0x01, 0x0D, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE8, 0xF0, 0x22,
+0x50, 0x06, 0xE9, 0x25, 0x82, 0xC8, 0xF6, 0x22, 0xBB, 0xFE, 0x05, 0xE9, 0x25, 0x82, 0xC8, 0xF2,
+0x22, 0xC5, 0xF0, 0xF8, 0xA3, 0xE0, 0x28, 0xF0, 0xC5, 0xF0, 0xF8, 0xE5, 0x82, 0x15, 0x82, 0x70,
+0x02, 0x15, 0x83, 0xE0, 0x38, 0xF0, 0x22, 0xBB, 0x01, 0x0A, 0x89, 0x82, 0x8A, 0x83, 0xE0, 0xF5,
+0xF0, 0xA3, 0xE0, 0x22, 0x50, 0x06, 0x87, 0xF0, 0x09, 0xE7, 0x19, 0x22, 0xBB, 0xFE, 0x07, 0xE3,
+0xF5, 0xF0, 0x09, 0xE3, 0x19, 0x22, 0x89, 0x82, 0x8A, 0x83, 0xE4, 0x93, 0xF5, 0xF0, 0x74, 0x01,
+0x93, 0x22, 0xBB, 0x01, 0x10, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE0,
+0xF5, 0xF0, 0xA3, 0xE0, 0x22, 0x50, 0x09, 0xE9, 0x25, 0x82, 0xF8, 0x86, 0xF0, 0x08, 0xE6, 0x22,
+0xBB, 0xFE, 0x0A, 0xE9, 0x25, 0x82, 0xF8, 0xE2, 0xF5, 0xF0, 0x08, 0xE2, 0x22, 0xE5, 0x83, 0x2A,
+0xF5, 0x83, 0xE9, 0x93, 0xF5, 0xF0, 0xA3, 0xE9, 0x93, 0x22, 0xBB, 0x01, 0x0A, 0x89, 0x82, 0x8A,
+0x83, 0xF0, 0xE5, 0xF0, 0xA3, 0xF0, 0x22, 0x50, 0x06, 0xF7, 0x09, 0xA7, 0xF0, 0x19, 0x22, 0xBB,
+0xFE, 0x06, 0xF3, 0xE5, 0xF0, 0x09, 0xF3, 0x19, 0x22, 0xF8, 0xBB, 0x01, 0x11, 0xE5, 0x82, 0x29,
+0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE8, 0xF0, 0xE5, 0xF0, 0xA3, 0xF0, 0x22, 0x50, 0x09,
+0xE9, 0x25, 0x82, 0xC8, 0xF6, 0x08, 0xA6, 0xF0, 0x22, 0xBB, 0xFE, 0x09, 0xE9, 0x25, 0x82, 0xC8,
+0xF2, 0xE5, 0xF0, 0x08, 0xF2, 0x22, 0xEF, 0x4B, 0xFF, 0xEE, 0x4A, 0xFE, 0xED, 0x49, 0xFD, 0xEC,
+0x48, 0xFC, 0x22, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0xA3, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0x22, 0xA4,
+0x25, 0x82, 0xF5, 0x82, 0xE5, 0xF0, 0x35, 0x83, 0xF5, 0x83, 0x22, 0xE0, 0xFB, 0xA3, 0xE0, 0xFA,
+0xA3, 0xE0, 0xF9, 0x22, 0xF8, 0xE0, 0xFB, 0xA3, 0xA3, 0xE0, 0xF9, 0x25, 0xF0, 0xF0, 0xE5, 0x82,
+0x15, 0x82, 0x70, 0x02, 0x15, 0x83, 0xE0, 0xFA, 0x38, 0xF0, 0x22, 0xEB, 0xF0, 0xA3, 0xEA, 0xF0,
+0xA3, 0xE9, 0xF0, 0x22, 0xD0, 0x83, 0xD0, 0x82, 0xF8, 0xE4, 0x93, 0x70, 0x12, 0x74, 0x01, 0x93,
+0x70, 0x0D, 0xA3, 0xA3, 0x93, 0xF8, 0x74, 0x01, 0x93, 0xF5, 0x82, 0x88, 0x83, 0xE4, 0x73, 0x74,
+0x02, 0x93, 0x68, 0x60, 0xEF, 0xA3, 0xA3, 0xA3, 0x80, 0xDF, 0xD0, 0x83, 0xD0, 0x82, 0xF8, 0xE4,
+0x93, 0x70, 0x12, 0x74, 0x01, 0x93, 0x70, 0x0D, 0xA3, 0xA3, 0x93, 0xF8, 0x74, 0x01, 0x93, 0xF5,
+0x82, 0x88, 0x83, 0xE4, 0x73, 0x74, 0x02, 0x93, 0xB5, 0xF0, 0x06, 0x74, 0x03, 0x93, 0x68, 0x60,
+0xE9, 0xA3, 0xA3, 0xA3, 0xA3, 0x80, 0xD8, 0xE4, 0x90, 0x8A, 0xC5, 0xF0, 0xE5, 0x24, 0x70, 0x03,
+0x02, 0x44, 0x9D, 0xE5, 0x21, 0x64, 0x01, 0x60, 0x03, 0x02, 0x44, 0x9D, 0xE5, 0x24, 0x14, 0x60,
+0x29, 0x24, 0xFD, 0x60, 0x25, 0x24, 0x02, 0x24, 0xFB, 0x50, 0x02, 0x80, 0x23, 0x90, 0x8B, 0x0B,
+0xE0, 0x14, 0xF0, 0xE0, 0x60, 0x04, 0xA3, 0xE0, 0x60, 0x16, 0x90, 0x8B, 0x0B, 0xE0, 0x70, 0x0A,
+0x90, 0x8B, 0x19, 0xE0, 0x90, 0x8B, 0x0B, 0xF0, 0x80, 0x00, 0x90, 0x8A, 0xC5, 0x74, 0x01, 0xF0,
+0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x16, 0xA3, 0xE0, 0xB4, 0x06, 0x05, 0xE4, 0x90, 0x8A, 0xC5,
+0xF0, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x70, 0x04, 0x90, 0x8A, 0xC5, 0xF0, 0x90, 0x8A, 0xC5,
+0xE0, 0x60, 0x4A, 0x43, 0x25, 0x10, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0C, 0xE0, 0x75,
+0xF0, 0x03, 0xA4, 0xFF, 0x90, 0x8B, 0x15, 0xE0, 0x2F, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74, 0x05, 0xF0, 0xE5, 0x22, 0x54,
+0x0F, 0xC3, 0x94, 0x04, 0x50, 0x07, 0x7D, 0x01, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x90, 0x8B, 0x2C,
+0xE0, 0x30, 0xE0, 0x09, 0x12, 0x7D, 0xC1, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x22, 0xE4, 0xF5,
+0x25, 0xF5, 0x24, 0x75, 0x23, 0x0C, 0x75, 0x22, 0x0C, 0x90, 0x8B, 0x1A, 0xF0, 0x90, 0x8B, 0x18,
+0xF0, 0x90, 0x8B, 0x17, 0xF0, 0x90, 0x8B, 0x19, 0x04, 0xF0, 0x90, 0x8B, 0x0B, 0xF0, 0xE4, 0x90,
+0x8B, 0x1B, 0xF0, 0x90, 0x8B, 0x0D, 0xF0, 0x90, 0x8B, 0x15, 0x74, 0x05, 0xF0, 0xE4, 0x90, 0x8B,
+0x0C, 0xF0, 0x90, 0x8B, 0x13, 0xF0, 0xA3, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x10, 0xF0, 0xA3, 0x74,
+0x05, 0xF0, 0x90, 0x8B, 0x0F, 0x74, 0x14, 0xF0, 0x90, 0x8B, 0x16, 0x74, 0x05, 0xF0, 0xE4, 0x90,
+0x8B, 0x0E, 0xF0, 0x90, 0x8B, 0x0A, 0xF0, 0x90, 0x8B, 0x08, 0xF0, 0x90, 0x8B, 0x12, 0xF0, 0x22,
+0x7F, 0x00, 0x22, 0x02, 0x45, 0x03, 0x02, 0x45, 0x06, 0x8E, 0x64, 0x8F, 0x65, 0xAD, 0x65, 0xAC,
+0x64, 0xAF, 0x63, 0x12, 0x4A, 0x5B, 0xAF, 0x65, 0xAE, 0x64, 0x90, 0x04, 0x80, 0xE0, 0x54, 0x0F,
+0xFD, 0xAC, 0x07, 0x74, 0x11, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x01,
+0xF0, 0x74, 0x11, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xFB, 0xF0, 0xAC,
+0x07, 0x74, 0x16, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0xFA, 0xF0, 0x74,
+0x15, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x1F, 0xF0, 0xAC, 0x07, 0x74,
+0x06, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x0F, 0xF0, 0x90, 0x04, 0x53,
+0xE4, 0xF0, 0x90, 0x04, 0x52, 0xF0, 0x90, 0x04, 0x51, 0x74, 0xFF, 0xF0, 0x90, 0x04, 0x50, 0x74,
+0xFD, 0xF0, 0x74, 0x14, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xC0, 0x4D,
+0xFD, 0x74, 0x14, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xED, 0xF0, 0x22, 0x7D, 0x01,
+0x7F, 0x0C, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F, 0x67, 0x8D, 0x68, 0xE5, 0x67, 0x54,
+0x0F, 0xFF, 0xE5, 0x22, 0x54, 0x0F, 0x6F, 0x60, 0x72, 0xE5, 0x67, 0x30, 0xE2, 0x30, 0xE5, 0x22,
+0x20, 0xE2, 0x05, 0x7F, 0x01, 0x12, 0x4A, 0xB2, 0xE5, 0x22, 0x30, 0xE3, 0x10, 0xE5, 0x67, 0x20,
+0xE3, 0x0B, 0x12, 0x49, 0xD5, 0xEF, 0x60, 0x53, 0x12, 0x4A, 0xCC, 0x80, 0x4E, 0xE5, 0x22, 0x20,
+0xE3, 0x49, 0xE5, 0x67, 0x30, 0xE3, 0x44, 0xAF, 0x68, 0x12, 0x4A, 0x7C, 0x80, 0x3D, 0xE5, 0x22,
+0x54, 0x0F, 0xFF, 0xBF, 0x0C, 0x0E, 0xE5, 0x67, 0x20, 0xE3, 0x09, 0x12, 0x49, 0xD5, 0xEF, 0x60,
+0x2A, 0x12, 0x4A, 0xCC, 0xE5, 0x22, 0x54, 0x0F, 0xFF, 0xBF, 0x04, 0x0E, 0xE5, 0x67, 0x20, 0xE2,
+0x09, 0x12, 0x49, 0x93, 0xEF, 0x60, 0x14, 0x12, 0x4A, 0x32, 0xE5, 0x22, 0x54, 0x0F, 0xFF, 0xBF,
+0x02, 0x09, 0x12, 0x45, 0x00, 0xEF, 0x60, 0x03, 0x12, 0x4B, 0x10, 0xD0, 0xD0, 0x92, 0xAF, 0x22,
+0x02, 0x46, 0x6E, 0x02, 0x50, 0xC6, 0xE4, 0x93, 0xA3, 0xF8, 0xE4, 0x93, 0xA3, 0x40, 0x03, 0xF6,
+0x80, 0x01, 0xF2, 0x08, 0xDF, 0xF4, 0x80, 0x29, 0xE4, 0x93, 0xA3, 0xF8, 0x54, 0x07, 0x24, 0x0C,
+0xC8, 0xC3, 0x33, 0xC4, 0x54, 0x0F, 0x44, 0x20, 0xC8, 0x83, 0x40, 0x04, 0xF4, 0x56, 0x80, 0x01,
+0x46, 0xF6, 0xDF, 0xE4, 0x80, 0x0B, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x90, 0x4B,
+0x23, 0xE4, 0x7E, 0x01, 0x93, 0x60, 0xBC, 0xA3, 0xFF, 0x54, 0x3F, 0x30, 0xE5, 0x09, 0x54, 0x1F,
+0xFE, 0xE4, 0x93, 0xA3, 0x60, 0x01, 0x0E, 0xCF, 0x54, 0xC0, 0x25, 0xE0, 0x60, 0xA8, 0x40, 0xB8,
+0xE4, 0x93, 0xA3, 0xFA, 0xE4, 0x93, 0xA3, 0xF8, 0xE4, 0x93, 0xA3, 0xC8, 0xC5, 0x82, 0xC8, 0xCA,
+0xC5, 0x83, 0xCA, 0xF0, 0xA3, 0xC8, 0xC5, 0x82, 0xC8, 0xCA, 0xC5, 0x83, 0xCA, 0xDF, 0xE9, 0xDE,
+0xE7, 0x80, 0xBE, 0xE5, 0x21, 0x64, 0x01, 0x70, 0x67, 0xE5, 0x24, 0x60, 0x63, 0xE5, 0x24, 0x64,
+0x02, 0x60, 0x06, 0xE5, 0x24, 0x64, 0x05, 0x70, 0x27, 0x90, 0x06, 0xAB, 0xE0, 0x90, 0x8B, 0x0B,
+0xF0, 0x90, 0x06, 0xAA, 0xE0, 0x90, 0x8B, 0x19, 0xF0, 0x90, 0x8B, 0x0B, 0xE0, 0x70, 0x07, 0x90,
+0x8B, 0x19, 0xE0, 0xFF, 0x80, 0x05, 0x90, 0x8B, 0x0B, 0xE0, 0xFF, 0x90, 0x8B, 0x0B, 0xEF, 0xF0,
+0x90, 0x8B, 0x0D, 0xE0, 0x60, 0x02, 0xE4, 0xF0, 0xE4, 0x90, 0x8B, 0x0C, 0xF0, 0x90, 0x05, 0x58,
+0x74, 0x03, 0xF0, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x53, 0x25,
+0xFD, 0x53, 0x25, 0xEF, 0xE5, 0x24, 0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x03, 0x12, 0x47, 0x8E,
+0x22, 0xEF, 0x64, 0x01, 0x70, 0x35, 0x7D, 0x78, 0x7F, 0x02, 0x12, 0x36, 0x75, 0x7D, 0x02, 0x7F,
+0x03, 0x12, 0x36, 0x75, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x12,
+0x45, 0x9E, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x03, 0x12, 0x7D, 0xC1, 0x90, 0x06, 0x04, 0xE0,
+0x54, 0x7F, 0xF0, 0x90, 0x06, 0x0A, 0xE0, 0x54, 0xF8, 0xF0, 0x22, 0x90, 0x01, 0x36, 0x74, 0x7B,
+0xF0, 0xA3, 0x74, 0x02, 0xF0, 0x7D, 0x7B, 0xFF, 0x12, 0x36, 0xE6, 0x7D, 0x02, 0x7F, 0x03, 0x12,
+0x36, 0xE6, 0x90, 0x06, 0x04, 0xE0, 0x44, 0x80, 0xF0, 0x90, 0x06, 0x0A, 0xE0, 0x44, 0x07, 0xF0,
+0x12, 0x4B, 0x4F, 0xE5, 0x21, 0x20, 0xE0, 0x05, 0xE4, 0x90, 0x8B, 0x0D, 0xF0, 0x22, 0xE4, 0x90,
+0x8A, 0xC5, 0xF0, 0x90, 0x06, 0xA9, 0xE0, 0x90, 0x8A, 0xC5, 0xF0, 0xE0, 0x54, 0xC0, 0x70, 0x09,
+0x53, 0x25, 0xFE, 0x53, 0x25, 0xFD, 0x12, 0x4A, 0xFC, 0x90, 0x8A, 0xC5, 0xE0, 0x30, 0xE6, 0x15,
+0x43, 0x25, 0x01, 0x90, 0x8B, 0x1A, 0xE0, 0x64, 0x02, 0x60, 0x05, 0x12, 0x4A, 0x97, 0x80, 0x08,
+0x12, 0x49, 0x49, 0x80, 0x03, 0x53, 0x25, 0xFE, 0x90, 0x8A, 0xC5, 0xE0, 0x30, 0xE7, 0x27, 0x43,
+0x25, 0x02, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x11, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4,
+0xFB, 0xFD, 0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74, 0x05, 0xF0, 0x90,
+0x8B, 0x1B, 0x74, 0x01, 0xF0, 0x22, 0x53, 0x25, 0xFD, 0x22, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x8B,
+0x12, 0x4B, 0x43, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xF5, 0x24, 0x14, 0x60,
+0x0E, 0x14, 0x60, 0x1F, 0x14, 0x60, 0x31, 0x24, 0x03, 0x70, 0x44, 0x7F, 0x01, 0x80, 0x3D, 0x90,
+0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFD, 0xE4, 0xFF, 0x12, 0x4A,
+0x07, 0x80, 0x29, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFD,
+0x7F, 0x01, 0x12, 0x4A, 0x07, 0x1F, 0x80, 0x14, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00,
+0x02, 0x12, 0x42, 0x20, 0xFD, 0x7F, 0x02, 0x12, 0x4A, 0x07, 0xE4, 0xFF, 0x12, 0x47, 0x21, 0x22,
+0xE4, 0x90, 0x8A, 0xCB, 0xF0, 0xE5, 0x24, 0x60, 0x49, 0x90, 0x8B, 0x1B, 0xE0, 0x60, 0x0D, 0xE4,
+0xF0, 0x53, 0x25, 0xFD, 0xE5, 0x25, 0x54, 0x07, 0x70, 0x38, 0x80, 0x33, 0x90, 0x8B, 0x0C, 0xE0,
+0x04, 0xF0, 0x53, 0x25, 0xEF, 0x90, 0x8A, 0xCB, 0xE0, 0xFF, 0x90, 0x8B, 0x10, 0xE0, 0x2F, 0xFF,
+0xE4, 0x33, 0xFE, 0x90, 0x8B, 0x0C, 0xE0, 0xD3, 0x9F, 0xEE, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98,
+0x40, 0x0D, 0xE5, 0x21, 0xB4, 0x01, 0x0B, 0xA3, 0xE0, 0x70, 0x07, 0xE0, 0x04, 0xF0, 0x22, 0x12,
+0x4A, 0xFC, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F, 0x63, 0x90, 0x04, 0x1D, 0xE0,
+0x60, 0x24, 0x90, 0x05, 0x22, 0xE0, 0xF5, 0x66, 0x74, 0xFF, 0xF0, 0x12, 0x7E, 0x9A, 0xBF, 0x01,
+0x0D, 0x90, 0x8A, 0xF9, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xFD, 0x12, 0x45, 0x09, 0x90, 0x05,
+0x22, 0xE5, 0x66, 0xF0, 0x80, 0x0D, 0x90, 0x8A, 0xF9, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xFD,
+0x12, 0x45, 0x09, 0x90, 0x04, 0x1F, 0x74, 0x20, 0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE5, 0x24,
+0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x41, 0x90, 0x8B, 0x1A, 0xE0, 0x60, 0x2B, 0x12, 0x45, 0x9E,
+0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x58, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92,
+0x74, 0x01, 0xF0, 0x90, 0x8B, 0x18, 0xF0, 0x22, 0xE5, 0x22, 0x54, 0x0F, 0xC3, 0x94, 0x04, 0x50,
+0x07, 0x7D, 0x01, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x22, 0x90, 0x01, 0x5F, 0xE4, 0xF0, 0x90, 0x01,
+0x3C, 0x74, 0x08, 0xF0, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E,
+0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x5C, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x5F, 0x74, 0x05,
+0xF0, 0x90, 0x06, 0x92, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x17, 0x14, 0xF0, 0xE5, 0x22, 0x54, 0x0F,
+0xC3, 0x94, 0x0C, 0x50, 0x0D, 0x12, 0x45, 0x9E, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x03, 0x12,
+0x7D, 0xC1, 0x22, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x37, 0xE5, 0x25, 0x54, 0x03, 0x70,
+0x31, 0xE5, 0x23, 0x54, 0x0F, 0xD3, 0x94, 0x02, 0x50, 0x28, 0xE5, 0x25, 0x20, 0xE2, 0x23, 0xE5,
+0x25, 0x20, 0xE4, 0x1E, 0x90, 0x8B, 0x0D, 0xE0, 0x70, 0x18, 0x90, 0x8B, 0x12, 0xE0, 0x70, 0x12,
+0xE5, 0x26, 0x70, 0x0E, 0x90, 0x01, 0xB9, 0xE4, 0xF0, 0x90, 0x01, 0xB8, 0x74, 0x04, 0xF0, 0x7F,
+0x01, 0x22, 0x7F, 0x00, 0x22, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x27, 0x90, 0x8B, 0x18,
+0xE0, 0x70, 0x21, 0x90, 0x8B, 0x17, 0xE0, 0x70, 0x1B, 0xE5, 0x23, 0x54, 0x0F, 0xD3, 0x94, 0x04,
+0x50, 0x12, 0xE5, 0x26, 0x70, 0x0E, 0x90, 0x01, 0xB9, 0xE4, 0xF0, 0x90, 0x01, 0xB8, 0x74, 0x08,
+0xF0, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0xEF, 0x24, 0xFE, 0x60, 0x0B, 0x04, 0x70, 0x22, 0x90,
+0x8B, 0x19, 0x74, 0x01, 0xF0, 0x80, 0x16, 0xED, 0x70, 0x0A, 0x90, 0x8B, 0x16, 0xE0, 0x90, 0x8B,
+0x19, 0xF0, 0x80, 0x05, 0x90, 0x8B, 0x19, 0xED, 0xF0, 0x90, 0x8B, 0x19, 0xE0, 0x90, 0x8B, 0x0B,
+0xF0, 0x22, 0x90, 0x01, 0x37, 0x74, 0x02, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x7E,
+0x9A, 0xEF, 0x70, 0x06, 0x90, 0x01, 0xC8, 0x74, 0xFD, 0xF0, 0x7D, 0x02, 0x7F, 0x03, 0x12, 0x36,
+0xE6, 0x12, 0x7C, 0x50, 0x53, 0x22, 0xF0, 0x43, 0x22, 0x02, 0x22, 0xEF, 0x60, 0x0F, 0x74, 0x21,
+0x2D, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x10, 0xF0, 0x22, 0x74, 0x21, 0x2D,
+0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xEF, 0xF0, 0x22, 0x90, 0x06, 0x04, 0xE0,
+0x54, 0xBF, 0xF0, 0xEF, 0x60, 0x0A, 0xE5, 0x21, 0xB4, 0x01, 0x05, 0xE4, 0xFF, 0x12, 0x48, 0xB3,
+0x53, 0x22, 0xF0, 0x43, 0x22, 0x0C, 0x22, 0x90, 0x04, 0x1D, 0xE0, 0x70, 0x14, 0x90, 0x8A, 0xF8,
+0xE0, 0xFF, 0xE4, 0xFD, 0x12, 0x5F, 0xFD, 0x8E, 0x69, 0x8F, 0x6A, 0x90, 0x04, 0x1F, 0x74, 0x20,
+0xF0, 0x22, 0x90, 0x8B, 0x52, 0xEF, 0xF0, 0x12, 0x7D, 0x42, 0x90, 0x8B, 0x52, 0xE0, 0x60, 0x05,
+0x90, 0x05, 0x22, 0xE4, 0xF0, 0x53, 0x22, 0xF0, 0x43, 0x22, 0x04, 0x22, 0x90, 0x06, 0x04, 0xE0,
+0x44, 0x40, 0xF0, 0xE5, 0x21, 0xB4, 0x01, 0x05, 0x7F, 0x01, 0x12, 0x48, 0xB3, 0x53, 0x22, 0xF0,
+0x43, 0x22, 0x04, 0x22, 0xE5, 0x23, 0x30, 0xE6, 0x12, 0xE5, 0x23, 0x54, 0x0F, 0xFF, 0x90, 0x01,
+0x2F, 0xE0, 0x54, 0x80, 0x4F, 0x64, 0x80, 0xF0, 0x53, 0x23, 0xBF, 0x22, 0x90, 0x8B, 0x2C, 0xE0,
+0x30, 0xE0, 0x05, 0xAF, 0x23, 0x02, 0x7E, 0x06, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x22,
+0x53, 0x22, 0xF0, 0x43, 0x22, 0x01, 0x12, 0x4B, 0x5A, 0x12, 0x4B, 0x5B, 0x53, 0x22, 0xF0, 0x43,
+0x22, 0x02, 0x22, 0x41, 0x8A, 0xF6, 0x00, 0x41, 0x8B, 0x05, 0x00, 0x41, 0x8B, 0x51, 0x00, 0x41,
+0x8B, 0x53, 0x00, 0x00, 0x90, 0x04, 0x1B, 0xE0, 0x54, 0x7F, 0x64, 0x7F, 0x7F, 0x01, 0x60, 0x02,
+0x7F, 0x00, 0x22, 0xE4, 0x90, 0x8B, 0x1B, 0xF0, 0x90, 0x8B, 0x0C, 0xF0, 0xF5, 0x25, 0x22, 0x90,
+0x8B, 0x13, 0xE0, 0xA3, 0xE0, 0x90, 0x05, 0x58, 0xF0, 0x22, 0x22, 0x22, 0xF0, 0x90, 0x8B, 0x0F,
+0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x58, 0x7E, 0x01, 0xD3, 0x10, 0xAF, 0x01,
+0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x3D, 0xE0, 0xFB, 0xA3, 0xE0, 0xF5, 0x44, 0xE4, 0xF5, 0x45, 0x12,
+0x35, 0xAB, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xC0, 0xE0, 0xC0, 0xF0, 0xC0, 0x83, 0xC0, 0x82, 0xC0,
+0xD0, 0x75, 0xD0, 0x00, 0xC0, 0x00, 0xC0, 0x01, 0xC0, 0x02, 0xC0, 0x03, 0xC0, 0x04, 0xC0, 0x05,
+0xC0, 0x06, 0xC0, 0x07, 0x75, 0x0E, 0x00, 0x90, 0x01, 0xC4, 0x74, 0x87, 0xF0, 0x74, 0x4B, 0xA3,
+0xF0, 0x53, 0x91, 0xDF, 0x90, 0x01, 0x3C, 0xE0, 0x55, 0x30, 0xF5, 0x34, 0xA3, 0xE0, 0x55, 0x31,
+0xF5, 0x35, 0xA3, 0xE0, 0x55, 0x32, 0xF5, 0x36, 0xA3, 0xE0, 0x55, 0x33, 0xF5, 0x37, 0xE5, 0x34,
+0x30, 0xE0, 0x51, 0x90, 0x01, 0x3C, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x1F,
+0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x18, 0x90, 0x8B, 0x34, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xE0,
+0x64, 0x03, 0x60, 0x0B, 0x7F, 0x01, 0xB1, 0xE0, 0xEF, 0x70, 0x04, 0x7F, 0x02, 0xD1, 0x89, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x1D, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x16, 0x90, 0x8B,
+0x2E, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x09, 0xE4, 0xFF, 0xB1, 0xE0, 0xEF,
+0x70, 0x02, 0xD1, 0x56, 0xE5, 0x34, 0x30, 0xE1, 0x08, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x11,
+0x60, 0xE5, 0x34, 0x30, 0xE2, 0x28, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0, 0x90, 0x06, 0x92, 0xE0,
+0x30, 0xE0, 0x14, 0x90, 0x8B, 0x3D, 0xE4, 0x71, 0x5C, 0x90, 0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90,
+0x06, 0x92, 0x74, 0x01, 0xF0, 0x80, 0x07, 0x90, 0x8B, 0x18, 0xE4, 0xF0, 0x51, 0xFC, 0xE5, 0x34,
+0x30, 0xE3, 0x38, 0x90, 0x01, 0x3C, 0x74, 0x08, 0xF0, 0x90, 0x06, 0x92, 0xE0, 0x30, 0xE1, 0x24,
+0x90, 0x8B, 0x3D, 0xE4, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x5C, 0x7E, 0x01, 0x71, 0x6C, 0x90, 0x01, 0x5F, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92, 0x74,
+0x02, 0xF0, 0x80, 0x07, 0x90, 0x8B, 0x17, 0xE4, 0xF0, 0x51, 0xFC, 0xE5, 0x34, 0x30, 0xE4, 0x09,
+0x90, 0x01, 0x3C, 0x74, 0x10, 0xF0, 0x12, 0x51, 0xC9, 0xE5, 0x34, 0x30, 0xE5, 0x06, 0x90, 0x01,
+0x3C, 0x74, 0x20, 0xF0, 0xE5, 0x35, 0x30, 0xE0, 0x10, 0x90, 0x01, 0x3D, 0x74, 0x01, 0xF0, 0x90,
+0x00, 0x83, 0xE0, 0xF5, 0x23, 0x51, 0xE4, 0x51, 0xFC, 0xE5, 0x35, 0x30, 0xE2, 0x06, 0x90, 0x01,
+0x3D, 0x74, 0x04, 0xF0, 0xE5, 0x35, 0x30, 0xE4, 0x1B, 0x90, 0x01, 0x3D, 0x74, 0x10, 0xF0, 0x90,
+0x8B, 0x05, 0xE0, 0x60, 0x0F, 0xE4, 0xF0, 0x90, 0x05, 0x53, 0xE0, 0x44, 0x01, 0xF0, 0x90, 0x05,
+0xFD, 0xE0, 0x04, 0xF0, 0xE5, 0x36, 0x30, 0xE0, 0x75, 0x90, 0x01, 0x3E, 0x74, 0x01, 0xF0, 0x90,
+0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x18, 0x90, 0x8B, 0x36, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x64,
+0x03, 0x60, 0x0B, 0x7F, 0x01, 0xB1, 0xE0, 0xEF, 0x60, 0x04, 0x7F, 0x01, 0xD1, 0x89, 0x90, 0x8B,
+0x2C, 0xE0, 0x30, 0xE0, 0x49, 0x90, 0x8B, 0x30, 0xE4, 0xF0, 0xFF, 0xB1, 0xE0, 0xEF, 0x60, 0x3E,
+0x12, 0x65, 0x5F, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0x64, 0x06, 0x60, 0x32, 0xEF, 0xB4, 0x04, 0x02,
+0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF, 0x80, 0x14, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x05, 0x7F,
+0x01, 0x12, 0x65, 0x82, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x12, 0x7D, 0xC1, 0xE5, 0x36,
+0x30, 0xE1, 0x47, 0x90, 0x01, 0x3E, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x19,
+0x90, 0x8B, 0x36, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x64, 0x03, 0x60, 0x0B, 0x7F, 0x01,
+0xB1, 0xE0, 0xEF, 0x70, 0x04, 0x7F, 0x02, 0xD1, 0x89, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x1A,
+0x90, 0x8B, 0x30, 0x74, 0x01, 0xF0, 0x12, 0x7E, 0x2B, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60,
+0x09, 0xE4, 0xFF, 0xB1, 0xE0, 0xEF, 0x70, 0x02, 0xD1, 0x56, 0x74, 0x87, 0x04, 0x90, 0x01, 0xC4,
+0xF0, 0x74, 0x4B, 0xA3, 0xF0, 0xD0, 0x07, 0xD0, 0x06, 0xD0, 0x05, 0xD0, 0x04, 0xD0, 0x03, 0xD0,
+0x02, 0xD0, 0x01, 0xD0, 0x00, 0xD0, 0xD0, 0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xF0, 0xD0, 0xE0, 0x32,
+0xEF, 0x64, 0x01, 0x70, 0x3D, 0x90, 0x8B, 0x35, 0xE0, 0x60, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B,
+0x08, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x34, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22,
+0x90, 0x8B, 0x32, 0xE0, 0xFF, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x0B, 0xEF, 0xC4, 0x13, 0x54,
+0x07, 0x30, 0xE0, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x36, 0xE0, 0x7F, 0x01, 0x60, 0x36, 0x7F,
+0x00, 0x22, 0x90, 0x8B, 0x2F, 0xE0, 0x60, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x08, 0xE0, 0x60,
+0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x2E, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x2C,
+0xE0, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x30, 0xE0, 0x7F,
+0x01, 0x60, 0x02, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x0D, 0xE0, 0x60, 0x16, 0x90, 0x8B, 0x2D, 0xE0,
+0x70, 0x04, 0x7F, 0x05, 0x80, 0x1F, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x01, 0x70, 0x1A, 0x7F, 0x02,
+0x80, 0x13, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01, 0x04, 0x7F, 0x03, 0x80, 0x08, 0x90, 0x8B, 0x2D,
+0xE0, 0x70, 0x05, 0x7F, 0x04, 0x12, 0x65, 0x82, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x8B, 0x33, 0xE0, 0x90, 0x8B, 0x55, 0xF0, 0x6F, 0x70, 0x02, 0xE1, 0x55, 0xEF, 0x14, 0x60,
+0x3B, 0x14, 0x60, 0x5F, 0x14, 0x70, 0x02, 0xE1, 0x30, 0x24, 0x03, 0x60, 0x02, 0xE1, 0x55, 0x90,
+0x8B, 0x55, 0xE0, 0xB4, 0x03, 0x04, 0xF1, 0xC2, 0xE1, 0x55, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x02,
+0x04, 0xF1, 0xAF, 0xE1, 0x55, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x04, 0x04, 0xF1, 0xC6, 0xE1, 0x55,
+0x90, 0x8B, 0x55, 0xE0, 0x64, 0x01, 0x70, 0x7D, 0xF1, 0xB1, 0x80, 0x79, 0x90, 0x8B, 0x55, 0xE0,
+0xFF, 0xB4, 0x03, 0x04, 0xF1, 0xCA, 0x80, 0x6D, 0xEF, 0xB4, 0x02, 0x04, 0xF1, 0xA1, 0x80, 0x65,
+0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x04, 0x04, 0xF1, 0xD5, 0x80, 0x59, 0xEF, 0x70, 0x56, 0xF1,
+0x8E, 0x80, 0x52, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x03, 0x05, 0x12, 0x7C, 0x41, 0x80, 0x46, 0x90,
+0x8B, 0x55, 0xE0, 0xB4, 0x01, 0x04, 0xF1, 0x72, 0x80, 0x3B, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x04,
+0x05, 0x12, 0x7D, 0x23, 0x80, 0x2F, 0x90, 0x8B, 0x55, 0xE0, 0x70, 0x29, 0xF1, 0x70, 0x80, 0x25,
+0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x01, 0x04, 0xF1, 0x5A, 0x80, 0x19, 0xEF, 0xB4, 0x02, 0x04,
+0xF1, 0x6B, 0x80, 0x11, 0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x04, 0x04, 0xF1, 0x5A, 0x80, 0x05,
+0xEF, 0x70, 0x02, 0xF1, 0x67, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x05, 0x22, 0x74, 0x6F, 0xF0,
+0x90, 0x8B, 0x33, 0x74, 0x03, 0xF0, 0x22, 0xF1, 0x8E, 0x80, 0xEF, 0x12, 0x7D, 0x42, 0x80, 0xEA,
+0xF1, 0x8E, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x7E, 0x9A, 0xEF, 0x70, 0x06, 0x90, 0x01,
+0xC8, 0x74, 0xFD, 0xF0, 0x12, 0x7C, 0x50, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x01,
+0x3E, 0x74, 0x03, 0xF0, 0xFD, 0x7F, 0x02, 0x12, 0x37, 0x00, 0x90, 0x8B, 0x33, 0x74, 0x01, 0xF0,
+0x22, 0x12, 0x7D, 0x42, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0x04, 0xF0, 0x22, 0xF1,
+0xA1, 0x7D, 0x03, 0x7F, 0x02, 0x12, 0x36, 0x92, 0x90, 0x05, 0x27, 0xE4, 0xF0, 0x90, 0x8B, 0x33,
+0xF0, 0x22, 0xF1, 0xCA, 0x80, 0xEB, 0xF1, 0xD5, 0x80, 0xE7, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90,
+0x8B, 0x33, 0x04, 0xF0, 0x22, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0x04, 0xF0, 0x22,
+0xF1, 0x8E, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x33, 0x74, 0x04, 0xF0, 0x22, 0x90,
+0x02, 0x84, 0xEF, 0xF0, 0xA3, 0xEE, 0xF0, 0xA3, 0x74, 0x05, 0xF0, 0x22, 0xEF, 0x8E, 0xF0, 0x12,
+0x43, 0xBA, 0x50, 0x1A, 0x00, 0x40, 0x50, 0x42, 0x00, 0x80, 0x50, 0x6D, 0x01, 0x00, 0x50, 0x81,
+0x02, 0x00, 0x50, 0x99, 0x04, 0x00, 0x00, 0x00, 0x50, 0xB6, 0xED, 0x54, 0x3F, 0x70, 0x04, 0xFE,
+0xFF, 0x80, 0x04, 0x7E, 0x00, 0x7F, 0x40, 0xEF, 0x2D, 0xFF, 0xEE, 0x3C, 0xFE, 0xEF, 0x78, 0x06,
+0xCE, 0xC3, 0x13, 0xCE, 0x13, 0xD8, 0xF9, 0x78, 0x06, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9,
+0x80, 0x26, 0xED, 0x54, 0x7F, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x00, 0x7F, 0x80, 0xEF,
+0x2D, 0xFF, 0xEE, 0x3C, 0xFE, 0xEF, 0x78, 0x07, 0xCE, 0xC3, 0x13, 0xCE, 0x13, 0xD8, 0xF9, 0x78,
+0x07, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFD, 0xAC, 0x06, 0x80, 0x49, 0xED, 0x70, 0x04,
+0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x01, 0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0x7D, 0x00, 0xFC, 0x80,
+0x35, 0xEC, 0x54, 0x01, 0x4D, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x02, 0x7F, 0x00, 0xEF,
+0x2D, 0xEE, 0x3C, 0xC3, 0x13, 0x7D, 0x00, 0x80, 0x1A, 0xEC, 0x54, 0x03, 0x4D, 0x70, 0x04, 0xFE,
+0xFF, 0x80, 0x04, 0x7E, 0x04, 0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0x13, 0x13, 0x54, 0x3F, 0x7D,
+0x00, 0x25, 0xE0, 0x25, 0xE0, 0xFC, 0xAE, 0x04, 0xAF, 0x05, 0x22, 0x90, 0x01, 0xE4, 0x74, 0x58,
+0xF0, 0xA3, 0x74, 0x02, 0xF0, 0x22, 0xE4, 0x90, 0x8A, 0xCC, 0xF0, 0xA3, 0xF0, 0x75, 0x8E, 0x02,
+0x91, 0x0E, 0x12, 0x68, 0x44, 0x90, 0x8B, 0x07, 0xEF, 0xF0, 0x12, 0x68, 0x51, 0x90, 0x8B, 0x09,
+0xEF, 0xF0, 0x12, 0x68, 0x5D, 0x90, 0x8A, 0xF4, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xE4, 0xF5, 0x55,
+0xF5, 0x21, 0x12, 0x72, 0x55, 0x12, 0x44, 0x9E, 0x12, 0x32, 0x3D, 0x7F, 0x03, 0x12, 0x78, 0x42,
+0x12, 0x7C, 0x3D, 0x12, 0x68, 0x0A, 0x12, 0x68, 0x75, 0x12, 0x68, 0x8A, 0x12, 0x68, 0x28, 0x12,
+0x68, 0x43, 0x90, 0x8A, 0xCE, 0xE5, 0xD9, 0xF0, 0x31, 0x5F, 0xC2, 0xAF, 0x90, 0x00, 0x80, 0xE0,
+0x44, 0x40, 0xF0, 0x51, 0x0E, 0x75, 0xE8, 0x03, 0x43, 0xA8, 0x85, 0xD2, 0xAF, 0x11, 0xBB, 0x90,
+0x8A, 0xCC, 0xE0, 0x64, 0x01, 0xF0, 0x24, 0xC6, 0x90, 0x01, 0xC4, 0xF0, 0x74, 0x50, 0xA3, 0xF0,
+0xE5, 0x55, 0x30, 0xE4, 0x09, 0xC2, 0xAF, 0x53, 0x55, 0xEF, 0xD2, 0xAF, 0xB1, 0x59, 0xE5, 0x55,
+0x30, 0xE6, 0xDC, 0xC2, 0xAF, 0x53, 0x55, 0xBF, 0xD2, 0xAF, 0x12, 0x6B, 0xBD, 0x80, 0xD0, 0x90,
+0x01, 0x3C, 0x74, 0xFF, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x01, 0x34, 0xF0, 0xA3, 0xF0, 0xA3,
+0xF0, 0xA3, 0xF0, 0xFD, 0x7F, 0x54, 0x31, 0x88, 0x7D, 0xFF, 0x7F, 0x55, 0x31, 0x88, 0x7D, 0xFF,
+0x7F, 0x56, 0x31, 0x88, 0x7D, 0xFF, 0x7F, 0x57, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F,
+0x82, 0x75, 0x83, 0x00, 0xED, 0xF0, 0x51, 0x0E, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x01, 0x30,
+0xE4, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x01, 0x38, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0,
+0xA3, 0xF0, 0xFD, 0x7F, 0x50, 0x31, 0x88, 0xE4, 0xFD, 0x7F, 0x51, 0x31, 0x88, 0xE4, 0xFD, 0x7F,
+0x52, 0x31, 0x88, 0xE4, 0xFD, 0x7F, 0x53, 0x80, 0xBF, 0xE5, 0x5E, 0x64, 0x01, 0x70, 0x3B, 0x71,
+0x4E, 0xBF, 0x01, 0x04, 0x7F, 0x01, 0x71, 0x42, 0x90, 0x00, 0x46, 0xE0, 0x44, 0x04, 0xFD, 0x7F,
+0x46, 0x31, 0x88, 0x90, 0x00, 0x44, 0xE0, 0x54, 0xFB, 0xFD, 0x7F, 0x44, 0x31, 0x88, 0x90, 0x00,
+0x46, 0xE0, 0x54, 0xFB, 0xFD, 0x7F, 0x46, 0x31, 0x88, 0x7F, 0x02, 0x71, 0x6A, 0x8F, 0x62, 0x90,
+0x01, 0xC9, 0xE5, 0x62, 0xF0, 0xB4, 0x01, 0x02, 0x51, 0xE2, 0x22, 0xE0, 0x5F, 0xF0, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x7F, 0x10, 0xDF, 0xFE, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xE0, 0xED, 0xF0, 0x90, 0x8A, 0xDF, 0xEF, 0xF0, 0xD3,
+0x94, 0x07, 0x50, 0x4E, 0xA3, 0xE0, 0x70, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8,
+0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x47, 0xE0, 0x5F, 0xF0,
+0x80, 0x17, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33,
+0xD8, 0xFC, 0xFF, 0x90, 0x00, 0x47, 0xE0, 0x4F, 0xF0, 0x51, 0x0E, 0x90, 0x8A, 0xDF, 0xE0, 0xFF,
+0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x46,
+0x80, 0x59, 0x90, 0x8A, 0xDF, 0xE0, 0x24, 0xF8, 0xF0, 0xA3, 0xE0, 0x70, 0x1D, 0x90, 0x8A, 0xDF,
+0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xC4, 0x54, 0xF0,
+0xF4, 0xFF, 0x90, 0x00, 0x43, 0xE0, 0x5F, 0xF0, 0x80, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74,
+0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xC4, 0x54, 0xF0, 0xFF, 0x90, 0x00,
+0x43, 0xE0, 0x4F, 0xF0, 0x51, 0x0E, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08,
+0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0x51, 0x0B, 0xD0, 0xD0, 0x92,
+0xAF, 0x22, 0x90, 0x00, 0x49, 0xE0, 0x90, 0x8B, 0x54, 0xF0, 0xE0, 0x54, 0x0F, 0xF0, 0x44, 0xF0,
+0xFD, 0x7F, 0x49, 0x31, 0x88, 0x90, 0x8B, 0x54, 0xE0, 0x44, 0xB0, 0xFD, 0x7F, 0x49, 0x21, 0x88,
+0x90, 0x8A, 0xDD, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x75, 0x5E, 0x01, 0x8E, 0x5F, 0xF5, 0x60, 0xE4,
+0xFD, 0x7F, 0x0B, 0x51, 0x1E, 0xE4, 0xFD, 0x7F, 0x02, 0x51, 0x1E, 0x71, 0x4E, 0xE4, 0xFF, 0x71,
+0x42, 0xE4, 0xF5, 0x62, 0x90, 0x01, 0xC9, 0xE5, 0x62, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFC, 0xA3,
+0xE0, 0xFD, 0xEC, 0xFB, 0x8D, 0x44, 0xE4, 0xF5, 0x45, 0x7D, 0x01, 0x7F, 0x60, 0x7E, 0x01, 0x02,
+0x35, 0xAB, 0x90, 0x01, 0xCA, 0xE5, 0x61, 0xF0, 0xEF, 0x60, 0x02, 0x51, 0xE2, 0x22, 0x7F, 0x0B,
+0x71, 0x6A, 0xEF, 0x65, 0x61, 0x60, 0x10, 0xE5, 0x61, 0xB4, 0x01, 0x05, 0xE4, 0xF5, 0x61, 0x80,
+0x03, 0x75, 0x61, 0x01, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0,
+0xD0, 0x90, 0x8B, 0x57, 0xEF, 0xF0, 0xD3, 0x94, 0x07, 0x50, 0x43, 0xE0, 0xFF, 0x74, 0x01, 0xA8,
+0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x46, 0x51, 0x0B, 0x90,
+0x8B, 0x57, 0xE0, 0xFD, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x05, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE,
+0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x00, 0x44, 0xE0, 0xFB, 0xE4, 0xFE, 0xEF, 0x5B, 0xA8, 0x05,
+0x08, 0x80, 0x06, 0xCE, 0xA2, 0xE7, 0x13, 0xCE, 0x13, 0xD8, 0xF8, 0xFF, 0x80, 0x4B, 0x90, 0x8B,
+0x57, 0xE0, 0x24, 0xF8, 0xF0, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33,
+0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0xE0, 0x5F, 0xF0, 0x51, 0x0E, 0x90, 0x8B, 0x57, 0xE0,
+0xFD, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x05, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0x90, 0x00, 0x42, 0xE0, 0xFB, 0xE4, 0xFE, 0xEF, 0x5B, 0xA8, 0x05, 0x08, 0x80, 0x06,
+0xCE, 0xA2, 0xE7, 0x13, 0xCE, 0x13, 0xD8, 0xF8, 0xFF, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE4, 0x90,
+0x8B, 0x04, 0xF0, 0x90, 0x00, 0x80, 0xE0, 0x44, 0x80, 0xFD, 0x7F, 0x80, 0x21, 0x88, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDA, 0x12, 0x43,
+0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0xFA, 0xE5, 0xF0, 0x24, 0x00, 0xFF, 0xE4, 0x3A, 0xFE,
+0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0xEE, 0x8F, 0xF0, 0x12, 0x43, 0x19, 0x12,
+0x29, 0xD9, 0xFF, 0x60, 0x2C, 0xB5, 0x5E, 0x16, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00,
+0x01, 0x12, 0x42, 0xC2, 0x65, 0x60, 0x70, 0x04, 0xE5, 0x5F, 0x65, 0xF0, 0x60, 0x22, 0x90, 0x8A,
+0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0xFF, 0xAE, 0xF0, 0x71, 0x00, 0x80,
+0x0F, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0x65, 0x5E, 0x60, 0x02, 0x91, 0x95,
+0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE4, 0xF5, 0x5E, 0x7F, 0x60, 0x7E, 0x01, 0x8F, 0x82, 0x8E, 0x83,
+0xA3, 0xA3, 0xA3, 0xE4, 0xF0, 0x22, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x8B, 0xEF, 0x12, 0x43, 0x94,
+0x54, 0xE7, 0x01, 0x54, 0xDE, 0x02, 0x55, 0x0B, 0x03, 0x55, 0x14, 0x05, 0x55, 0x1D, 0x06, 0x55,
+0x58, 0x07, 0x55, 0x25, 0x08, 0x55, 0x2E, 0x09, 0x55, 0x36, 0x20, 0x55, 0x3F, 0x2C, 0x54, 0xF0,
+0x2D, 0x54, 0xF9, 0x2E, 0x55, 0x02, 0x3B, 0x55, 0x48, 0x4B, 0x00, 0x00, 0x55, 0x51, 0x90, 0x8A,
+0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0x85, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0x8B,
+0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0xB8, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02,
+0x75, 0x00, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x75, 0x39, 0x90, 0x8A, 0xD7, 0x12, 0x43,
+0x6B, 0x02, 0x75, 0x52, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0x0F, 0x90, 0x8A, 0xD7,
+0x12, 0x43, 0x6B, 0xC1, 0xA6, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x75, 0x9A, 0x90, 0x8A,
+0xD7, 0x12, 0x43, 0x6B, 0x81, 0x1E, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x78, 0x81, 0x90,
+0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x7A, 0xC2, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x7C,
+0x2B, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x01, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x01, 0xCC, 0xE0, 0x54, 0x0F, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFD, 0x70,
+0x02, 0xC1, 0xA1, 0x90, 0x8B, 0x51, 0xE0, 0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80,
+0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xEF, 0x5D, 0x70, 0x02, 0xC1, 0x9A, 0x90,
+0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD0, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD0,
+0xF0, 0x75, 0x1D, 0x01, 0x75, 0x1E, 0x8A, 0x75, 0x1F, 0xD0, 0x75, 0x20, 0x01, 0x7B, 0x01, 0x7A,
+0x8A, 0x79, 0xD1, 0x12, 0x5E, 0xE4, 0x90, 0x8A, 0xD1, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x13, 0x54,
+0x01, 0x90, 0x8B, 0x51, 0x30, 0xE0, 0x59, 0xE0, 0x75, 0xF0, 0x02, 0x90, 0x00, 0x88, 0x12, 0x43,
+0x5F, 0xE0, 0x90, 0x8A, 0xD2, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x02, 0x90, 0x00, 0x89,
+0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD3, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90,
+0x01, 0xD1, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD4, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0,
+0x04, 0x90, 0x01, 0xD2, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD5, 0xF0, 0x90, 0x8B, 0x51, 0xE0,
+0x75, 0xF0, 0x04, 0x90, 0x01, 0xD3, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD6, 0xF0, 0x80, 0x33,
+0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD1, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD2, 0xF0, 0x90,
+0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD2, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD3,
+0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD3, 0x12, 0x43, 0x5F, 0xE0, 0x90,
+0x8A, 0xD4, 0xF0, 0xEF, 0x54, 0x7F, 0xFF, 0x7B, 0x01, 0x7A, 0x8A, 0x79, 0xD2, 0x91, 0xA6, 0x90,
+0x8A, 0xCF, 0xE0, 0xFF, 0x90, 0x8B, 0x51, 0xE0, 0xFE, 0x74, 0x01, 0xA8, 0x06, 0x08, 0x80, 0x02,
+0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0x5F, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0xFF, 0x74,
+0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0x90, 0x01, 0xCC, 0xF0, 0x90, 0x8B,
+0x51, 0xE0, 0x04, 0xF0, 0xE0, 0x54, 0x03, 0xF0, 0xA1, 0x6A, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x02,
+0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x00, 0x04, 0x12, 0x42, 0x20, 0xFF, 0x54, 0x1F, 0xFE,
+0xEF, 0x54, 0x20, 0xC4, 0x13, 0x54, 0x07, 0xFD, 0xAF, 0x06, 0x90, 0x8A, 0xDA, 0xEF, 0xF0, 0xA3,
+0xED, 0xF0, 0xA3, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x03, 0x12,
+0x42, 0x20, 0x54, 0xF0, 0xC4, 0x54, 0x0F, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x00, 0x04, 0x12, 0x42,
+0x20, 0x54, 0x40, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x90, 0x8A, 0xE0, 0xF0, 0x90, 0x8A, 0xDA, 0xE0,
+0xFF, 0x75, 0xF0, 0x09, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0xAD, 0x82, 0xAC, 0x83, 0x90, 0x8A,
+0xE1, 0xEC, 0xF0, 0xA3, 0xED, 0xF0, 0xEF, 0x75, 0xF0, 0x09, 0xA4, 0x24, 0x23, 0xF9, 0x74, 0x87,
+0x35, 0xF0, 0xFA, 0x7B, 0x01, 0xA3, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90,
+0x00, 0x03, 0x12, 0x42, 0x20, 0x54, 0x0F, 0xFF, 0x90, 0x8A, 0xE3, 0x12, 0x43, 0x6B, 0xEF, 0x12,
+0x42, 0x4D, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x90,
+0x8A, 0xE3, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0xEF, 0x12, 0x42, 0x5F, 0x90, 0x8A, 0xDC, 0x12,
+0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0x90, 0x8A, 0xE1, 0xE0, 0xFC, 0xA3, 0xE0,
+0xFD, 0xF5, 0x82, 0x8C, 0x83, 0xEF, 0xF0, 0x12, 0x29, 0xD9, 0x8D, 0x82, 0x8C, 0x83, 0xA3, 0xF0,
+0x90, 0x8A, 0xDF, 0xE0, 0xFE, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0x24, 0xC1, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xDB, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87,
+0x29, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2A, 0x12, 0x43, 0x5F,
+0x74, 0x01, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2B, 0x12,
+0x43, 0x5F, 0xEE, 0xF0, 0x8F, 0x0F, 0xEF, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89,
+0xAF, 0x82, 0xF5, 0x10, 0x8F, 0x11, 0xE5, 0x0F, 0x75, 0xF0, 0x02, 0xA4, 0x24, 0x81, 0xF9, 0x74,
+0x86, 0x35, 0xF0, 0x75, 0x12, 0x01, 0xF5, 0x13, 0x89, 0x14, 0x75, 0xF0, 0x09, 0xE5, 0x0F, 0x90,
+0x87, 0x25, 0x12, 0x43, 0x5F, 0xAF, 0x82, 0x85, 0x83, 0x15, 0x8F, 0x16, 0xE5, 0x0F, 0x75, 0xF0,
+0x09, 0xA4, 0x24, 0x23, 0xF9, 0x74, 0x87, 0x35, 0xF0, 0x75, 0x17, 0x01, 0xF5, 0x18, 0x89, 0x19,
+0x74, 0xC1, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x12, 0x43, 0x94, 0x58,
+0x34, 0x00, 0x58, 0x49, 0x01, 0x58, 0x5E, 0x02, 0x58, 0x73, 0x03, 0x58, 0x9C, 0x04, 0x58, 0xB1,
+0x05, 0x58, 0xC6, 0x06, 0x58, 0xEC, 0x0C, 0x59, 0x19, 0x0D, 0x59, 0x46, 0x0E, 0x59, 0x73, 0x0F,
+0x00, 0x00, 0x59, 0xA7, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74, 0x15, 0x80, 0x3C, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74, 0x10, 0x80, 0x27, 0xE5, 0x0F,
+0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74,
+0x05, 0x80, 0x12, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0x74, 0xF0, 0xF0, 0xA3, 0xE4, 0xF0, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0x74, 0x0F, 0xF0, 0xA3, 0x74, 0x8F, 0xF0, 0x21, 0xA7, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0x0F, 0xF0, 0xA3, 0x74, 0xF5, 0x80,
+0x27, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0x0F,
+0xF0, 0xA3, 0x74, 0xF0, 0x80, 0x12, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0x74, 0x0D, 0xF0, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5,
+0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x21, 0xA7, 0x90, 0x04, 0x47, 0xE0,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x46, 0xE0, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x45, 0xE0, 0x85, 0x11, 0x82,
+0x85, 0x10, 0x83, 0xF0, 0x90, 0x04, 0x44, 0x21, 0x9E, 0x90, 0x04, 0x4B, 0xE0, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x4A, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x49, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83,
+0xF0, 0x90, 0x04, 0x48, 0x80, 0x58, 0x90, 0x04, 0x4F, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0x12, 0x42, 0x4D, 0x90, 0x04, 0x4E, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x01,
+0x12, 0x42, 0x5F, 0x90, 0x04, 0x4D, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xF0, 0x90, 0x04,
+0x4C, 0x80, 0x2B, 0x90, 0x04, 0x53, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D,
+0x90, 0x04, 0x52, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x01, 0x12, 0x42, 0x5F,
+0x90, 0x04, 0x51, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xF0, 0x90, 0x04, 0x50, 0xE0, 0x85,
+0x11, 0x82, 0x85, 0x10, 0x83, 0xA3, 0xF0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0xC0, 0x03, 0xC0,
+0x02, 0xC0, 0x01, 0x12, 0x29, 0xD9, 0xFF, 0xAB, 0x17, 0xAA, 0x18, 0xA9, 0x19, 0x12, 0x29, 0xD9,
+0x5F, 0xD0, 0x01, 0xD0, 0x02, 0xD0, 0x03, 0x12, 0x42, 0x4D, 0xAB, 0x12, 0xE5, 0x14, 0x24, 0x01,
+0xF9, 0xE4, 0x35, 0x13, 0xFA, 0xC0, 0x03, 0xC0, 0x02, 0xC0, 0x01, 0x12, 0x29, 0xD9, 0xFF, 0xAB,
+0x17, 0xAA, 0x18, 0xA9, 0x19, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x5F, 0xD0, 0x01, 0xD0, 0x02,
+0xD0, 0x03, 0x12, 0x42, 0x4D, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xC0, 0x83, 0xC0, 0x82, 0xE0,
+0xFF, 0x85, 0x16, 0x82, 0x85, 0x15, 0x83, 0xE0, 0xFE, 0xEF, 0x5E, 0xD0, 0x82, 0xD0, 0x83, 0xF0,
+0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xA3, 0xC0, 0x83, 0xC0, 0x82, 0xE0, 0xFF, 0x85, 0x16, 0x82,
+0x85, 0x15, 0x83, 0xA3, 0xE0, 0xFE, 0xEF, 0x5E, 0xD0, 0x82, 0xD0, 0x83, 0xF0, 0xE5, 0x0F, 0x25,
+0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60,
+0x4B, 0x90, 0x8A, 0xE6, 0x74, 0x0B, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x00, 0x50,
+0x02, 0x41, 0xEC, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33,
+0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5,
+0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x0A, 0x90, 0x8A, 0xE6, 0xE0, 0x24, 0x10,
+0xA3, 0xF0, 0x80, 0x68, 0x90, 0x8A, 0xE6, 0xE0, 0x14, 0xF0, 0x80, 0xBB, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x47,
+0x90, 0x8A, 0xE6, 0x74, 0x0F, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x00, 0x40, 0x3C,
+0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9,
+0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0x5E,
+0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x08, 0x90, 0x8A, 0xE6, 0xE0, 0xA3, 0xF0, 0x80, 0x0D, 0x90,
+0x8A, 0xE6, 0xE0, 0x14, 0xF0, 0x80, 0xBF, 0xE4, 0x90, 0x8A, 0xE7, 0xF0, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x46,
+0xE4, 0x90, 0x8A, 0xE6, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x40, 0x02, 0x61,
+0xA5, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0,
+0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x06, 0x90, 0x8A, 0xE6, 0xE0, 0x80, 0x63, 0x90, 0x8A,
+0xE6, 0xE0, 0x04, 0xF0, 0x80, 0xBF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x46, 0xE4, 0x90, 0x8A, 0xE6, 0xF0, 0x90,
+0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x0C, 0x50, 0x3C, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08,
+0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81,
+0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x08,
+0x90, 0x8A, 0xE6, 0xE0, 0x24, 0x10, 0x80, 0x09, 0x90, 0x8A, 0xE6, 0xE0, 0x04, 0xF0, 0x80, 0xBF,
+0xE4, 0x90, 0x8A, 0xE8, 0xF0, 0x90, 0x8A, 0xE7, 0xE0, 0xFF, 0x75, 0xF0, 0x09, 0xE5, 0x0F, 0x90,
+0x87, 0x27, 0x12, 0x43, 0x5F, 0xEF, 0xF0, 0x90, 0x8A, 0xE8, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xE5,
+0x0F, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0xE5, 0x0F, 0xC3, 0x94, 0x20, 0x50, 0x32,
+0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0xD3, 0x9F, 0x40, 0x02,
+0x80, 0x18, 0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0xC3, 0x9E,
+0x50, 0x08, 0x90, 0x8A, 0xE8, 0xE0, 0xA3, 0xF0, 0x80, 0x08, 0x90, 0x8A, 0xE7, 0xE0, 0x90, 0x8A,
+0xE9, 0xF0, 0x90, 0x8A, 0xE9, 0xE0, 0xFD, 0xAF, 0x0F, 0x91, 0x4E, 0x90, 0x8A, 0xE9, 0xE0, 0xFF,
+0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0, 0x90, 0x8A, 0xE7,
+0xE0, 0xFF, 0xD3, 0x94, 0x13, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x03, 0xF0, 0x22, 0xEF, 0xD3,
+0x94, 0x0B, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x02, 0xF0, 0x22, 0xEF, 0xD3, 0x94, 0x03, 0x40,
+0x07, 0x90, 0x87, 0x22, 0x74, 0x01, 0xF0, 0x22, 0xE4, 0x90, 0x87, 0x22, 0xF0, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x74, 0x84, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xED,
+0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xAC, 0x07, 0xED, 0x54, 0x1F, 0x90, 0x8A, 0xC7, 0xF0, 0x74,
+0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xC5, 0xF0, 0x90, 0x8A,
+0xC8, 0x74, 0x01, 0xF0, 0xEB, 0xC3, 0x94, 0x01, 0x40, 0x02, 0x80, 0x37, 0x90, 0x8A, 0xC5, 0xE0,
+0x25, 0x0D, 0xFF, 0xA3, 0xF0, 0xA3, 0xE0, 0x90, 0x41, 0x9E, 0x93, 0xFE, 0xEF, 0xD3, 0x9E, 0x40,
+0x10, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xAF, 0x04, 0x80,
+0x9D, 0x90, 0x8A, 0xC6, 0xE0, 0xFF, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEF, 0xF0, 0x22, 0xAD, 0x07, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0,
+0xFF, 0x90, 0x8A, 0xCA, 0xF0, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0,
+0x54, 0x1F, 0x90, 0x8A, 0xC9, 0xF0, 0xD3, 0x9F, 0x40, 0x06, 0xA3, 0xE0, 0x90, 0x8A, 0xC9, 0xF0,
+0x90, 0x8A, 0xC9, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83,
+0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13, 0xFE, 0xEF, 0x13,
+0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3,
+0xEF, 0xF0, 0xAF, 0x05, 0x90, 0x8A, 0xC9, 0xE0, 0xFD, 0x91, 0x4E, 0x90, 0x8A, 0xC9, 0xE0, 0xFF,
+0x22, 0xAC, 0x07, 0x74, 0x84, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x7F,
+0x90, 0x8A, 0xDE, 0xF0, 0xE0, 0x54, 0x1F, 0xFF, 0x90, 0x8A, 0xE1, 0xF0, 0x75, 0xF0, 0x09, 0xEC,
+0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xE3, 0xF0, 0x75, 0xF0, 0x09, 0xEC, 0x90,
+0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0xFE, 0x90, 0x8A, 0xE4, 0xF0, 0xEC, 0x25, 0xE0, 0x24, 0xE4,
+0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE5, 0xCB, 0xF0,
+0xA3, 0xEB, 0xF0, 0xEC, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0,
+0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE7, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xEF, 0xD3, 0x9E, 0x40, 0x0C,
+0x90, 0x8A, 0xE4, 0xE0, 0x90, 0x8A, 0xE1, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0xED, 0x70, 0x02, 0xC1,
+0x93, 0x90, 0x8A, 0xE2, 0xED, 0xF0, 0x90, 0x8A, 0xDE, 0xE0, 0x30, 0xE6, 0x0E, 0x90, 0x8A, 0xE1,
+0xE0, 0x90, 0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0x14, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0x70,
+0x02, 0xC1, 0x93, 0x90, 0x8A, 0xE1, 0xE0, 0xFF, 0xD3, 0x94, 0x00, 0x50, 0x02, 0xC1, 0x93, 0xE4,
+0x90, 0x8A, 0xE0, 0xF0, 0xEF, 0x14, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x8A, 0xE3, 0xE0, 0xFD, 0x90,
+0x8A, 0xDF, 0xE0, 0xFF, 0xD3, 0x9D, 0x40, 0x6F, 0xEF, 0x94, 0x10, 0x40, 0x21, 0xEF, 0x24, 0xF0,
+0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0x90, 0x8A, 0xE7, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x70, 0x27, 0x90, 0x8A,
+0xDF, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x50, 0x37, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80,
+0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE5, 0xE0, 0x5E, 0xFE, 0xA3,
+0xE0, 0x5F, 0x4E, 0x60, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0x90, 0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xE0,
+0xE0, 0x04, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0, 0x6F, 0x60, 0x08, 0x90,
+0x8A, 0xDF, 0xE0, 0x14, 0xF0, 0x80, 0x83, 0x90, 0x8A, 0xE2, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0,
+0xC3, 0x9F, 0x50, 0x0F, 0x90, 0x8A, 0xDF, 0xE0, 0xB5, 0x05, 0x08, 0x90, 0x8A, 0xE3, 0xE0, 0x90,
+0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xDE, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13,
+0xFE, 0xEF, 0x13, 0xFF, 0xEC, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xAF, 0x04, 0x90, 0x8A, 0xDE, 0xE0, 0xFD, 0x91, 0x4E, 0x90, 0x8A,
+0xDE, 0xE0, 0xFF, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8B, 0x1A, 0x8A, 0x1B, 0x89,
+0x1C, 0x90, 0x8B, 0x3F, 0x12, 0x43, 0x8B, 0xAB, 0x1D, 0xAA, 0x1E, 0xA9, 0x1F, 0x90, 0x8B, 0x42,
+0x12, 0x43, 0x8B, 0xAF, 0x20, 0x15, 0x20, 0xEF, 0x60, 0x1E, 0x90, 0x8B, 0x42, 0xE4, 0x75, 0xF0,
+0x01, 0x12, 0x43, 0x74, 0x12, 0x29, 0xD9, 0xFF, 0x90, 0x8B, 0x3F, 0xE4, 0x75, 0xF0, 0x01, 0x12,
+0x43, 0x74, 0xEF, 0x12, 0x42, 0x4D, 0x80, 0xDB, 0xAB, 0x1A, 0xAA, 0x1B, 0xA9, 0x1C, 0xD0, 0xD0,
+0x92, 0xAF, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x8B,
+0x90, 0x8B, 0x53, 0xE0, 0xFF, 0x04, 0xF0, 0x90, 0x00, 0x01, 0xEF, 0x12, 0x42, 0x5F, 0x7F, 0xAF,
+0x7E, 0x01, 0x12, 0x74, 0x3B, 0xEF, 0x60, 0x47, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x6B, 0x8B, 0x1D,
+0x8A, 0x1E, 0x89, 0x1F, 0x75, 0x20, 0x02, 0x7B, 0x01, 0x7A, 0x01, 0x79, 0xA0, 0xD1, 0xE4, 0x90,
+0x8B, 0x48, 0x12, 0x43, 0x6B, 0x8B, 0x1D, 0x8A, 0x1E, 0x89, 0x1F, 0x90, 0x8B, 0x45, 0x12, 0x43,
+0x6B, 0x12, 0x29, 0xD9, 0xFF, 0xC4, 0x54, 0x0F, 0xF5, 0x20, 0x7B, 0x01, 0x7A, 0x01, 0x79, 0xA2,
+0xD1, 0xE4, 0x90, 0x01, 0xAF, 0x74, 0xFF, 0xF0, 0x90, 0x01, 0xCB, 0xE0, 0x64, 0x80, 0xF0, 0xD0,
+0xD0, 0x92, 0xAF, 0x22, 0x90, 0x8A, 0xC5, 0xE0, 0x54, 0xF0, 0x44, 0x03, 0xF0, 0x54, 0x0F, 0x44,
+0x80, 0xF0, 0x7B, 0x00, 0x7A, 0x00, 0x79, 0x56, 0x90, 0x8B, 0x48, 0x12, 0x43, 0x8B, 0x0B, 0x7A,
+0x8A, 0x79, 0xC5, 0xE1, 0x33, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x01, 0xC4, 0x74,
+0xC5, 0xF0, 0x74, 0x5F, 0xA3, 0xF0, 0x90, 0x04, 0x1D, 0xE0, 0x60, 0x1A, 0x90, 0x05, 0x22, 0xE0,
+0x54, 0x90, 0x60, 0x07, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x40, 0xF0, 0x90, 0x01, 0xC7, 0xE0, 0x30,
+0xE1, 0xE4, 0x7F, 0x00, 0x80, 0x02, 0x7F, 0x01, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10, 0xAF,
+0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0xFB, 0xFA, 0xEF, 0x30, 0xE0, 0x02, 0x7B, 0x80, 0xEF, 0xC3, 0x13,
+0x90, 0xFD, 0x10, 0xF0, 0x90, 0x04, 0x25, 0xEF, 0xF0, 0xED, 0x60, 0x1E, 0xAF, 0x03, 0x74, 0x0F,
+0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x80, 0xF0, 0x74, 0x10, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x80, 0xF0, 0xAF, 0x03, 0x74, 0x08, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x09, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC,
+0xF5, 0x83, 0xE0, 0x54, 0xF0, 0xF0, 0x74, 0x21, 0x2B, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83,
+0xE0, 0x54, 0xF7, 0xF0, 0xAE, 0x02, 0xAF, 0x03, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x5F, 0xC5,
+0xBF, 0x01, 0x10, 0x90, 0x02, 0x09, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xFD, 0x90, 0x04, 0x1F,
+0x74, 0x20, 0xF0, 0x22, 0x90, 0x01, 0x02, 0xE0, 0x54, 0x03, 0xFF, 0xE0, 0x54, 0x0C, 0x13, 0x13,
+0x54, 0x3F, 0xFE, 0xEF, 0x64, 0x01, 0x60, 0x04, 0xEF, 0xB4, 0x03, 0x0E, 0x90, 0x8A, 0xC5, 0x74,
+0x01, 0xF0, 0xA3, 0x74, 0x37, 0xF0, 0x79, 0x01, 0x80, 0x18, 0xEE, 0x64, 0x01, 0x60, 0x07, 0xAF,
+0x06, 0xEE, 0x64, 0x03, 0x70, 0x3B, 0x90, 0x8A, 0xC5, 0x74, 0x01, 0xF0, 0xA3, 0x74, 0x3D, 0xF0,
+0x79, 0x40, 0x90, 0x8A, 0xC5, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xF5, 0x82, 0x8E, 0x83, 0xE0, 0x59,
+0x60, 0x08, 0xE9, 0xF0, 0xE4, 0x90, 0x8A, 0xF6, 0xF0, 0x22, 0x90, 0x8A, 0xF6, 0xE0, 0x04, 0xF0,
+0xE0, 0xC3, 0x94, 0x0A, 0x40, 0x0B, 0xE4, 0xF0, 0x90, 0x04, 0x19, 0xE0, 0x30, 0xE0, 0x02, 0x11,
+0x6D, 0x22, 0xC0, 0xE0, 0xC0, 0xF0, 0xC0, 0x83, 0xC0, 0x82, 0xC0, 0xD0, 0x75, 0xD0, 0x00, 0xC0,
+0x00, 0xC0, 0x01, 0xC0, 0x02, 0xC0, 0x03, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90,
+0x01, 0xC4, 0x74, 0xF2, 0xF0, 0x74, 0x60, 0xA3, 0xF0, 0x90, 0x01, 0x34, 0xE0, 0x55, 0x28, 0xF5,
+0x2C, 0xA3, 0xE0, 0x55, 0x29, 0xF5, 0x2D, 0xA3, 0xE0, 0x55, 0x2A, 0xF5, 0x2E, 0xA3, 0xE0, 0x55,
+0x2B, 0xF5, 0x2F, 0xE5, 0x2C, 0x20, 0xE0, 0x02, 0x41, 0x89, 0x90, 0x01, 0x34, 0x74, 0x01, 0xF0,
+0x85, 0xD1, 0x4D, 0x85, 0xD2, 0x4E, 0x85, 0xD3, 0x4F, 0x85, 0xD4, 0x50, 0x85, 0xD5, 0x51, 0x85,
+0xD6, 0x52, 0x85, 0xD7, 0x53, 0x85, 0xD9, 0x54, 0xE5, 0x54, 0x54, 0x40, 0xC3, 0x13, 0xFF, 0xE5,
+0x53, 0x54, 0x20, 0x6F, 0x70, 0x02, 0x41, 0x46, 0xE5, 0x54, 0x30, 0xE5, 0x02, 0x41, 0x46, 0xE5,
+0x52, 0x54, 0x1F, 0xF5, 0x08, 0xE5, 0x4D, 0x54, 0x3F, 0xF5, 0x09, 0xE5, 0x51, 0x54, 0x1F, 0xFF,
+0xE5, 0x08, 0x25, 0xE0, 0x24, 0xE3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0,
+0x12, 0x42, 0x81, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82,
+0xE4, 0x34, 0x85, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5, 0x09, 0xD3, 0x94, 0x04,
+0x40, 0x03, 0x75, 0x09, 0x04, 0x75, 0xF0, 0x0A, 0xE5, 0x08, 0x90, 0x84, 0x00, 0x12, 0x43, 0x5F,
+0x75, 0xF0, 0x02, 0xE5, 0x09, 0x12, 0x43, 0x5F, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xE5, 0x53, 0x54,
+0x1F, 0x2F, 0xFF, 0xE4, 0x3E, 0xFE, 0x75, 0xF0, 0x0A, 0xE5, 0x08, 0x90, 0x84, 0x00, 0x12, 0x43,
+0x5F, 0x75, 0xF0, 0x02, 0xE5, 0x09, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xE5, 0x54,
+0x20, 0xE6, 0x24, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82,
+0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5, 0x4F, 0x30, 0xE7, 0x36,
+0xAF, 0x08, 0x12, 0x5C, 0xC3, 0x80, 0x2F, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0,
+0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5,
+0x4F, 0x30, 0xE7, 0x12, 0xE5, 0x4F, 0x54, 0x7F, 0xFD, 0xE5, 0x53, 0x54, 0x1F, 0xF5, 0x0D, 0xAB,
+0x09, 0xAF, 0x08, 0x12, 0x5C, 0x66, 0xE5, 0x24, 0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x3A, 0x90,
+0x8B, 0x1A, 0xE0, 0x60, 0x2B, 0x90, 0x01, 0x5B, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0,
+0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x21, 0x90, 0x8B, 0x3D, 0x12, 0x4B, 0x5C, 0x90, 0x01,
+0x5B, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x18, 0xF0, 0x80, 0x09,
+0x12, 0x4B, 0x34, 0xBF, 0x01, 0x03, 0x12, 0x4A, 0xFC, 0xE5, 0x2C, 0x30, 0xE1, 0x21, 0x90, 0x01,
+0x34, 0x74, 0x02, 0xF0, 0x85, 0xD1, 0x56, 0x85, 0xD2, 0x57, 0x85, 0xD3, 0x58, 0x85, 0xD4, 0x59,
+0x85, 0xD5, 0x5A, 0x85, 0xD6, 0x5B, 0x85, 0xD7, 0x5C, 0x85, 0xD9, 0x5D, 0x12, 0x5F, 0xA4, 0xE5,
+0x2C, 0x30, 0xE3, 0x06, 0x90, 0x01, 0x34, 0x74, 0x08, 0xF0, 0xE5, 0x2C, 0x30, 0xE4, 0x09, 0x90,
+0x01, 0x34, 0x74, 0x10, 0xF0, 0x43, 0x55, 0x10, 0xE5, 0x2C, 0x30, 0xE5, 0x26, 0x90, 0x01, 0xCF,
+0xE0, 0x30, 0xE5, 0x1F, 0xE0, 0x54, 0xDF, 0xF0, 0x90, 0x01, 0x34, 0x74, 0x20, 0xF0, 0x75, 0xA8,
+0x00, 0x75, 0xE8, 0x00, 0x12, 0x51, 0x9D, 0x90, 0x00, 0x03, 0xE0, 0x54, 0xFB, 0xF0, 0x12, 0x52,
+0x0E, 0x80, 0xFE, 0xE5, 0x2C, 0x30, 0xE6, 0x2D, 0x90, 0x01, 0x34, 0x74, 0x40, 0xF0, 0x90, 0x8B,
+0x32, 0xE0, 0x30, 0xE0, 0x0C, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x05, 0x90, 0x8B, 0x34, 0xE4,
+0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x0C, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x05,
+0x90, 0x8B, 0x2E, 0xE4, 0xF0, 0xE5, 0x2E, 0x20, 0xE0, 0x02, 0x61, 0xE6, 0x90, 0x8B, 0x08, 0x74,
+0x01, 0xF0, 0x90, 0x01, 0x36, 0xF0, 0x90, 0x8B, 0x06, 0xE0, 0x60, 0x0F, 0xE4, 0xF0, 0x90, 0x05,
+0x53, 0xE0, 0x44, 0x02, 0xF0, 0x90, 0x05, 0xFC, 0xE0, 0x04, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30,
+0xE0, 0x2F, 0x90, 0x8B, 0x37, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xFF, 0x13, 0x13, 0x54,
+0x3F, 0x30, 0xE0, 0x1D, 0x90, 0x8B, 0x34, 0x74, 0x01, 0xF0, 0xB1, 0x39, 0x90, 0x8B, 0x33, 0xE0,
+0x64, 0x03, 0x60, 0x0D, 0x7F, 0x01, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x05, 0x7F, 0x04, 0x12, 0x4E,
+0x89, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x55, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x4E,
+0x90, 0x8B, 0x2E, 0x74, 0x01, 0xF0, 0xB1, 0x39, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x3E,
+0xB1, 0x5F, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0x64, 0x06, 0x60,
+0x2D, 0xEF, 0xB4, 0x04, 0x02, 0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF,
+0x80, 0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x02, 0x04, 0x7F, 0x01, 0xB1, 0x82, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x43,
+0xE7, 0x90, 0x8B, 0x08, 0xE4, 0xF0, 0xE5, 0x2E, 0x30, 0xE1, 0x2F, 0x90, 0x01, 0x36, 0x74, 0x02,
+0xF0, 0x43, 0x55, 0x40, 0x11, 0x84, 0x90, 0x8B, 0x37, 0xE0, 0xB4, 0x01, 0x09, 0x90, 0x05, 0x22,
+0xE4, 0xF0, 0x90, 0x8B, 0x37, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x0D, 0xE4, 0xFF, 0x12,
+0x4D, 0xE0, 0xEF, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0xE5, 0x2E, 0x30, 0xE2, 0x16, 0x90,
+0x01, 0x36, 0x74, 0x04, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x06, 0xA3, 0xE0, 0x64, 0x06,
+0x60, 0x03, 0x12, 0x46, 0xB3, 0xE5, 0x2E, 0x30, 0xE3, 0x38, 0x90, 0x01, 0x36, 0x74, 0x08, 0xF0,
+0xE5, 0x21, 0x64, 0x01, 0x70, 0x2C, 0xE5, 0x24, 0x60, 0x28, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90,
+0x01, 0x3C, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x3D, 0xE4, 0xF0, 0x90, 0x8B, 0x11, 0xE0, 0x90, 0x8B,
+0x3E, 0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74,
+0x05, 0xF0, 0xE5, 0x2E, 0x30, 0xE4, 0x2B, 0x90, 0x01, 0x36, 0x74, 0x10, 0xF0, 0xE5, 0x21, 0xB4,
+0x01, 0x20, 0xE5, 0x24, 0x60, 0x1C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02,
+0xF0, 0x90, 0x8B, 0x1B, 0xE4, 0xF0, 0x53, 0x25, 0xFD, 0xE5, 0x25, 0x54, 0x07, 0x70, 0x03, 0x12,
+0x4A, 0xFC, 0xE5, 0x2E, 0x30, 0xE5, 0x1F, 0x90, 0x01, 0x36, 0x74, 0x20, 0xF0, 0xE5, 0x21, 0xB4,
+0x01, 0x14, 0xE5, 0x24, 0x60, 0x10, 0x90, 0x8B, 0x1A, 0xE0, 0x64, 0x02, 0x60, 0x05, 0x12, 0x4A,
+0x97, 0x80, 0x03, 0x12, 0x49, 0x49, 0xE5, 0x2E, 0x30, 0xE6, 0x1B, 0x90, 0x01, 0x36, 0x74, 0x40,
+0xF0, 0xE5, 0x21, 0xB4, 0x01, 0x10, 0xE5, 0x24, 0x60, 0x0C, 0x53, 0x25, 0xFE, 0xE5, 0x25, 0x54,
+0x07, 0x70, 0x03, 0x12, 0x4A, 0xFC, 0xE5, 0x2F, 0x30, 0xE1, 0x28, 0x90, 0x01, 0x37, 0x74, 0x02,
+0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x18, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x08,
+0x12, 0x48, 0xFE, 0x12, 0x7D, 0xC1, 0x80, 0x0B, 0x90, 0x8B, 0x31, 0x74, 0x01, 0xF0, 0x80, 0x03,
+0x12, 0x48, 0xFE, 0x74, 0xF2, 0x04, 0x90, 0x01, 0xC4, 0xF0, 0x74, 0x60, 0xA3, 0xF0, 0xD0, 0x07,
+0xD0, 0x06, 0xD0, 0x05, 0xD0, 0x04, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01, 0xD0, 0x00, 0xD0, 0xD0,
+0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xF0, 0xD0, 0xE0, 0x32, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x05,
+0x58, 0xE0, 0xFF, 0x90, 0x8B, 0x38, 0xE0, 0x2F, 0x24, 0xFE, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB,
+0xFD, 0x7F, 0x50, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x53, 0x74, 0x05, 0xF0, 0x22, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x0A, 0xA3, 0xE0, 0x64, 0x06,
+0x60, 0x04, 0x7F, 0x06, 0xB1, 0x82, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x03, 0x12, 0x78,
+0x35, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0x6F, 0x70,
+0x02, 0xE1, 0x4E, 0xEF, 0x12, 0x43, 0x94, 0x65, 0xB0, 0x00, 0x65, 0xEA, 0x01, 0x66, 0x30, 0x02,
+0x66, 0x6A, 0x03, 0x66, 0xA2, 0x04, 0x66, 0xDB, 0x05, 0x67, 0x16, 0x06, 0x00, 0x00, 0x67, 0x4E,
+0xEE, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xF1, 0x81, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0xB4,
+0x05, 0x04, 0xF1, 0x5D, 0xE1, 0x4E, 0xEF, 0xB4, 0x06, 0x06, 0x7F, 0x01, 0xF1, 0x72, 0x80, 0x16,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1, 0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0xF1, 0xA4, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04,
+0x06, 0x7F, 0x01, 0xF1, 0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D,
+0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xF1, 0x9A, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4,
+0x06, 0x06, 0x7F, 0x01, 0xF1, 0x72, 0xE1, 0x4E, 0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1, 0x53,
+0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x02, 0x60, 0x02, 0xE1, 0x4E, 0xF1, 0x67, 0xE1, 0x4E,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xF1, 0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D, 0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xF1, 0x9A, 0x80, 0x16,
+0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0x7F, 0x01, 0xF1, 0x72, 0x80, 0x08, 0xEE, 0xB4,
+0x03, 0x04, 0x7F, 0x01, 0xF1, 0x53, 0xF1, 0xD0, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04,
+0x06, 0x7F, 0x01, 0xF1, 0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D,
+0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xF1, 0x9A, 0x80, 0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4,
+0x06, 0x06, 0xE4, 0xFF, 0xF1, 0x72, 0x80, 0x06, 0xEE, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0xF1, 0xB9,
+0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0xE4, 0xFF, 0xF1, 0x72, 0x80, 0x13,
+0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1, 0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02,
+0x02, 0xF1, 0x67, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01, 0x04, 0xF1, 0xA4, 0x80, 0x09, 0x90, 0x8B,
+0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D, 0xF1, 0xAF, 0x80, 0x73, 0x90, 0x8B, 0x2D, 0xE0, 0xFE,
+0xB4, 0x06, 0x06, 0xE4, 0xFF, 0xF1, 0x72, 0x80, 0x13, 0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1,
+0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0x90, 0x8B, 0x2D, 0xE0,
+0xB4, 0x01, 0x04, 0xF1, 0xA4, 0x80, 0x0B, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x04, 0x7F, 0x01,
+0xF1, 0x81, 0xF1, 0xC3, 0x80, 0x38, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xF1,
+0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D, 0x90, 0x8B, 0x2D, 0xE0,
+0x70, 0x04, 0xF1, 0x9A, 0x80, 0x16, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x06, 0xE4, 0xFF, 0xF1,
+0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0xF1, 0xDD, 0xD0, 0xD0,
+0x92, 0xAF, 0x22, 0x12, 0x4A, 0xB2, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x22, 0x90, 0x05, 0x22,
+0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0x04,
+0xF0, 0x22, 0xEF, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0,
+0x22, 0x90, 0x8B, 0x56, 0xEF, 0xF0, 0x12, 0x7D, 0x42, 0x90, 0x8B, 0x56, 0xE0, 0x60, 0x05, 0x90,
+0x05, 0x22, 0xE4, 0xF0, 0xE4, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x12, 0x4A, 0xCC, 0x90, 0x8B, 0x2D,
+0x74, 0x01, 0xF0, 0x22, 0x7F, 0x01, 0x12, 0x4A, 0x7C, 0xE4, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x12,
+0x7C, 0x4A, 0x90, 0x8B, 0x2D, 0x74, 0x04, 0xF0, 0x22, 0x12, 0x4A, 0x32, 0x90, 0x8B, 0x2D, 0x74,
+0x03, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x05, 0xF0, 0x22,
+0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22,
+0x74, 0x6F, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x06, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0,
+0xD0, 0xE4, 0xFD, 0xFC, 0xEF, 0x30, 0xE0, 0x02, 0x7D, 0x80, 0xEF, 0xC3, 0x13, 0x90, 0xFD, 0x10,
+0xF0, 0xAE, 0x04, 0xAF, 0x05, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x75, 0x28, 0x33, 0xE4, 0xF5, 0x29,
+0x75, 0x2A, 0x07, 0xF5, 0x2B, 0x90, 0x01, 0x30, 0xE5, 0x28, 0xF0, 0xA3, 0xE5, 0x29, 0xF0, 0xA3,
+0xE5, 0x2A, 0xF0, 0xA3, 0xE5, 0x2B, 0xF0, 0x22, 0x75, 0x30, 0x1F, 0x75, 0x31, 0x01, 0x43, 0x31,
+0x10, 0xE4, 0xF5, 0x32, 0x90, 0x01, 0x38, 0xE5, 0x30, 0xF0, 0xA3, 0xE5, 0x31, 0xF0, 0xA3, 0xE5,
+0x32, 0xF0, 0x22, 0x22, 0x90, 0x00, 0x02, 0xE0, 0x54, 0xE0, 0x7F, 0x01, 0x60, 0x02, 0x7F, 0x00,
+0x22, 0x90, 0x00, 0xF3, 0xE0, 0x7F, 0x00, 0x30, 0xE3, 0x02, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x09,
+0xE0, 0xB4, 0x01, 0x0C, 0x90, 0x00, 0xF2, 0xE0, 0x30, 0xE7, 0x05, 0x7E, 0xFD, 0x7F, 0x33, 0x22,
+0x7E, 0xFD, 0x7F, 0x2F, 0x22, 0x90, 0x00, 0xF3, 0xE0, 0x30, 0xE2, 0x0D, 0x90, 0x05, 0x41, 0x74,
+0x10, 0xF0, 0x90, 0x05, 0x5A, 0xF0, 0xA3, 0xE4, 0xF0, 0x22, 0x90, 0x01, 0x64, 0x74, 0xA0, 0xF0,
+0x22, 0xC0, 0xE0, 0xC0, 0x83, 0xC0, 0x82, 0xC0, 0xD0, 0x75, 0xD0, 0x00, 0xC0, 0x05, 0xC0, 0x06,
+0xC0, 0x07, 0x7D, 0x91, 0x90, 0x01, 0xC4, 0xED, 0xF0, 0x74, 0x68, 0xFF, 0xA3, 0xF0, 0x53, 0x91,
+0xEF, 0x90, 0x00, 0x51, 0xE0, 0xFE, 0x90, 0x00, 0x55, 0xE0, 0x5E, 0xF5, 0x3D, 0x90, 0x00, 0x52,
+0xE0, 0xFE, 0x90, 0x00, 0x56, 0xE0, 0x5E, 0xF5, 0x3E, 0xE5, 0x3D, 0x30, 0xE4, 0x06, 0x90, 0x00,
+0x55, 0x74, 0x10, 0xF0, 0xE5, 0x3D, 0x30, 0xE5, 0x06, 0x90, 0x00, 0x55, 0x74, 0x20, 0xF0, 0xE5,
+0x3D, 0x30, 0xE6, 0x06, 0x90, 0x00, 0x55, 0x74, 0x40, 0xF0, 0xE5, 0x3D, 0x30, 0xE7, 0x06, 0x90,
+0x00, 0x55, 0x74, 0x80, 0xF0, 0xE5, 0x3E, 0x30, 0xE0, 0x06, 0x90, 0x00, 0x56, 0x74, 0x01, 0xF0,
+0xE5, 0x3E, 0x30, 0xE1, 0x06, 0x90, 0x00, 0x56, 0x74, 0x02, 0xF0, 0xE5, 0x3E, 0x30, 0xE2, 0x06,
+0x90, 0x00, 0x56, 0x74, 0x04, 0xF0, 0xE5, 0x3E, 0x30, 0xE3, 0x06, 0x90, 0x00, 0x56, 0x74, 0x08,
+0xF0, 0x90, 0x01, 0xC4, 0xED, 0xF0, 0xA3, 0xEF, 0xF0, 0xD0, 0x07, 0xD0, 0x06, 0xD0, 0x05, 0xD0,
+0xD0, 0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xE0, 0x32, 0xEF, 0xC3, 0x94, 0x20, 0x50, 0x39, 0xEF, 0x30,
+0xE0, 0x17, 0xED, 0xC4, 0x54, 0xF0, 0xFD, 0xEF, 0xC3, 0x13, 0xFE, 0x24, 0xA4, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x0F, 0x80, 0x10, 0xEF, 0xC3, 0x13, 0xFE, 0x24, 0xA4, 0xF5,
+0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0xF0, 0xF0, 0x74, 0xA4, 0x2E, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0xE0, 0x4D, 0xF0, 0x22, 0xAD, 0x07, 0x74, 0x84, 0x2D, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x7F, 0x90, 0x8A, 0xDE, 0xF0, 0xE0, 0xF9, 0x54, 0x1F, 0xA3,
+0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0xFF, 0x90, 0x8A, 0xE1,
+0xF0, 0xED, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFB, 0xA3,
+0xE0, 0x90, 0x8A, 0xE2, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xED, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82,
+0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE4, 0xCB, 0xF0, 0xA3, 0xEB,
+0xF0, 0x90, 0x8A, 0xDF, 0xE0, 0xFE, 0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5,
+0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4,
+0x34, 0x86, 0xF5, 0x83, 0xEA, 0xF0, 0xA3, 0xEB, 0xF0, 0xEE, 0xC3, 0x9F, 0x40, 0x02, 0x41, 0xB9,
+0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF,
+0xF0, 0xEF, 0x04, 0x90, 0x8A, 0xE0, 0xF0, 0x90, 0x8A, 0xE1, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0,
+0xFE, 0xD3, 0x9F, 0x40, 0x02, 0x41, 0xF3, 0xEE, 0xC3, 0x94, 0x10, 0x40, 0x21, 0xEE, 0x24, 0xF0,
+0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0x90, 0x8A, 0xE2, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x70, 0x27, 0x90, 0x8A,
+0xE0, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x50, 0x59, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80,
+0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE4, 0xE0, 0x5E, 0xFE, 0xA3,
+0xE0, 0x5F, 0x4E, 0x60, 0x3C, 0x90, 0x8A, 0xE0, 0xE0, 0xB4, 0x11, 0x0D, 0x90, 0x8A, 0xE3, 0xE0,
+0x30, 0xE7, 0x06, 0x90, 0x8A, 0xE0, 0x74, 0x17, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xFF, 0x64, 0x13,
+0x60, 0x04, 0xEF, 0xB4, 0x12, 0x0D, 0x90, 0x8A, 0xE2, 0xE0, 0x30, 0xE0, 0x06, 0x90, 0x8A, 0xE0,
+0x74, 0x18, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0x80,
+0x42, 0x90, 0x8A, 0xE0, 0xE0, 0x04, 0xF0, 0x41, 0x17, 0x90, 0x8A, 0xE1, 0xE0, 0xFC, 0x90, 0x8A,
+0xDF, 0xE0, 0xFF, 0x6C, 0x70, 0x71, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83,
+0xEF, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x29, 0x12, 0x43, 0x5F, 0xE0, 0xB4, 0x01, 0x10,
+0xE9, 0x20, 0xE6, 0x0C, 0x90, 0x8A, 0xDF, 0xE0, 0x44, 0x40, 0x90, 0x8A, 0xDE, 0xF0, 0x80, 0x03,
+0xAF, 0x01, 0x22, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13,
+0xFE, 0xEF, 0x13, 0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x80, 0x66, 0x90, 0x8A, 0xDF, 0xE0, 0xD3, 0x9C, 0x40, 0x5E, 0x90,
+0x8A, 0xE1, 0xE0, 0xFF, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0,
+0x90, 0x8A, 0xDF, 0xEF, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0xFC, 0xA3, 0xE0, 0xFF, 0x25, 0xE0, 0x24,
+0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF,
+0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF,
+0xE4, 0x93, 0x3A, 0xC3, 0x13, 0xFE, 0xEF, 0x13, 0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82,
+0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xAF, 0x04, 0x22, 0x74, 0x01, 0x2D,
+0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xAF, 0x05, 0x90, 0x8A, 0xDE, 0xE0, 0x44,
+0x80, 0xFD, 0x12, 0x5C, 0x4E, 0x90, 0x8A, 0xDE, 0xE0, 0x44, 0x80, 0xFF, 0x22, 0xE4, 0x90, 0x8A,
+0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0xC3, 0x94, 0x20, 0x40, 0x03, 0x02, 0x72, 0x54, 0x75,
+0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2A, 0x12, 0x43, 0x5F, 0xE0, 0x64, 0x01, 0x60, 0x03, 0x02, 0x72,
+0x4B, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83,
+0xE0, 0xFC, 0xA3, 0xE0, 0xD3, 0x94, 0x00, 0xEC, 0x94, 0x00, 0x50, 0x03, 0x02, 0x72, 0x4B, 0xEF,
+0x75, 0xF0, 0x0A, 0xA4, 0x24, 0x00, 0xF9, 0x74, 0x84, 0x35, 0xF0, 0x75, 0x12, 0x01, 0xF5, 0x13,
+0x89, 0x14, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5,
+0x83, 0xE0, 0xFD, 0xA3, 0xE0, 0x90, 0x8A, 0xD4, 0xCD, 0xF0, 0xA3, 0xED, 0xF0, 0xEF, 0x25, 0xE0,
+0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0, 0xFF, 0xA3, 0xE0, 0x90, 0x8A, 0xD6,
+0xCF, 0xF0, 0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0x24, 0x84, 0xF5, 0x82, 0xE4, 0x34,
+0x04, 0xF5, 0x83, 0xE0, 0x54, 0x3F, 0x90, 0x8A, 0xD0, 0xF0, 0xE0, 0xFD, 0x54, 0x1F, 0xA3, 0xF0,
+0x75, 0xF0, 0x09, 0xEE, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD9, 0xF0, 0x90,
+0x8A, 0xCF, 0xE0, 0xFB, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xC3, 0x94,
+0x05, 0x40, 0x02, 0xC1, 0x9C, 0x90, 0x8A, 0xD9, 0xE0, 0xFE, 0x90, 0x8A, 0xD1, 0xE0, 0x9E, 0x40,
+0x13, 0x90, 0x8A, 0xD9, 0xE0, 0x90, 0x8A, 0xD1, 0xF0, 0xED, 0x54, 0x40, 0xFD, 0x90, 0x8A, 0xD0,
+0xF0, 0xEE, 0x4D, 0xF0, 0x90, 0x8A, 0xD1, 0xE0, 0xFF, 0x90, 0x41, 0x12, 0x93, 0xFE, 0x74, 0x23,
+0x2B, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xC3, 0x9E, 0x40, 0x06, 0xEF, 0x90, 0x40,
+0xDA, 0x80, 0x07, 0x90, 0x8A, 0xD1, 0xE0, 0x90, 0x40, 0xF6, 0x93, 0x90, 0x8A, 0xD8, 0xF0, 0x90,
+0x8A, 0xD8, 0xE0, 0x75, 0xF0, 0x06, 0xA4, 0x24, 0x50, 0xF9, 0x74, 0x40, 0x35, 0xF0, 0x75, 0x0F,
+0xFF, 0xF5, 0x10, 0x89, 0x11, 0x90, 0x8A, 0xD0, 0xE0, 0x90, 0x41, 0xBA, 0x93, 0xFF, 0xD3, 0x90,
+0x8A, 0xD7, 0xE0, 0x9F, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x0D, 0x90, 0x8A, 0xCF, 0xE0,
+0xFF, 0xE4, 0xFD, 0x12, 0x5D, 0x41, 0x02, 0x71, 0xE1, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24,
+0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFF, 0xA3, 0xE0, 0x90, 0x8A, 0xD2, 0xCF,
+0xF0, 0xA3, 0xEF, 0xF0, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x12, 0x29, 0xD9, 0xFF, 0x7E, 0x00,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x97, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90,
+0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00,
+0x01, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x02,
+0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12,
+0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x7E,
+0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x04, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0,
+0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10,
+0xA9, 0x11, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9,
+0x14, 0x90, 0x00, 0x06, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2,
+0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x04, 0x12,
+0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x08, 0x12, 0x42,
+0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81,
+0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x05, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0x90,
+0x8A, 0xD4, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0x12, 0x29, 0xF2, 0xD3, 0x90, 0x8A, 0xD3, 0xE0, 0x9F,
+0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x40, 0x0C, 0xA3, 0xE0, 0x9F, 0xF0, 0x90, 0x8A, 0xD2, 0xE0, 0x9E,
+0xF0, 0x80, 0x07, 0xE4, 0x90, 0x8A, 0xD2, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xD2, 0xE0, 0xFC, 0xA3,
+0xE0, 0xFD, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86,
+0xF5, 0x83, 0xEC, 0xF0, 0xA3, 0xED, 0xF0, 0x90, 0x8A, 0xD0, 0xE0, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xD3, 0xED, 0x9B,
+0xEC, 0x9A, 0x40, 0x05, 0x31, 0x78, 0x02, 0x71, 0xAF, 0x90, 0x8A, 0xD0, 0xE0, 0x25, 0xE0, 0x24,
+0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFE, 0x74, 0x01, 0x93, 0xFF, 0xC3,
+0x90, 0x8A, 0xD3, 0xE0, 0x9F, 0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x40, 0x03, 0x02, 0x71, 0xAF, 0x90,
+0x8A, 0xCF, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5D, 0x41, 0x02, 0x71, 0xAF, 0x90, 0x8A, 0xCF, 0xE0,
+0xFF, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xFC, 0x64, 0x05, 0x60, 0x03,
+0x02, 0x70, 0x7D, 0x90, 0x87, 0x22, 0xE0, 0xFE, 0xB4, 0x03, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3,
+0x94, 0x19, 0x40, 0x3D, 0x80, 0x2E, 0xEE, 0xB4, 0x02, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3, 0x94,
+0x11, 0x40, 0x2E, 0x80, 0x1F, 0x90, 0x87, 0x22, 0xE0, 0xFE, 0xB4, 0x01, 0x0B, 0x90, 0x8A, 0xD1,
+0xE0, 0xC3, 0x94, 0x0A, 0x40, 0x1B, 0x80, 0x0C, 0xEE, 0x70, 0x11, 0x90, 0x8A, 0xD1, 0xE0, 0xC3,
+0x94, 0x03, 0x40, 0x0D, 0x90, 0x89, 0x43, 0x74, 0x01, 0xF0, 0x80, 0x05, 0xE4, 0x90, 0x89, 0x43,
+0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0,
+0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x23, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE,
+0xC3, 0x94, 0x30, 0x50, 0x0B, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x64, 0x2F, 0x02, 0x70, 0x28,
+0x90, 0x89, 0x43, 0xE0, 0x64, 0x01, 0x60, 0x03, 0x02, 0x70, 0x1D, 0x90, 0x8A, 0xCF, 0xE0, 0x24,
+0x44, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0x64, 0x0A, 0x60, 0x5B, 0x90, 0x8A, 0xCF,
+0xE0, 0xFF, 0xEE, 0x24, 0x05, 0xFB, 0xE4, 0x33, 0xFA, 0x74, 0x21, 0x2F, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xE0, 0xFF, 0xD3, 0x9B, 0xEA, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98, 0x50, 0x38,
+0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0xEF, 0x24, 0x05, 0xFB, 0xE4, 0x33, 0xFA, 0x74, 0x23, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xD3, 0x9B, 0xEA, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98,
+0x50, 0x16, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x84, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0,
+0xFF, 0x90, 0x8A, 0xD1, 0xE0, 0x6F, 0x60, 0x56, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x23, 0xF5, 0x82,
+0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFF, 0xD3, 0x94, 0x42, 0x40, 0x08, 0x90, 0x8A, 0xDD, 0x74,
+0x05, 0xF0, 0x80, 0x11, 0xEF, 0xD3, 0x94, 0x39, 0x90, 0x8A, 0xDD, 0x40, 0x05, 0x74, 0x03, 0xF0,
+0x80, 0x03, 0x74, 0x01, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x23, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0xE0, 0xFE, 0x74, 0x21, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE,
+0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x44, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0x80, 0x2F, 0x90, 0x8A,
+0xCF, 0xE0, 0xFF, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x44,
+0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0x04, 0xF0, 0x80, 0x14, 0xE4, 0x90, 0x8A,
+0xDD, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4,
+0xF0, 0x90, 0x8A, 0xD1, 0xE0, 0xFE, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x84, 0xF5, 0x82, 0xE4,
+0x34, 0x8A, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFE, 0x74, 0x43, 0x2F, 0xF5, 0x82,
+0xE4, 0x34, 0x88, 0xF5, 0x83, 0xEE, 0xF0, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2B, 0x12, 0x43,
+0x5F, 0xE0, 0xB4, 0x01, 0x11, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x64, 0x2F, 0xF5, 0x82, 0xE4,
+0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFD, 0x21, 0xAC, 0xEC, 0x64, 0x06,
+0x60, 0x02, 0x21, 0xAF, 0x90, 0x8A, 0xD2, 0xF0, 0xA3, 0xF0, 0x90, 0x41, 0xDB, 0x93, 0xFF, 0x7E,
+0x00, 0x90, 0x8A, 0xD4, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xDB, 0xEE,
+0xF0, 0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE0, 0x90, 0x8A, 0xDD, 0xF0, 0xE4, 0x90, 0x8A, 0xDA, 0xF0, 0x90, 0x8A, 0xDA, 0xE0, 0xFF,
+0xD3, 0x94, 0x04, 0x50, 0x47, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x75, 0xF0, 0x02, 0xEF, 0xA4,
+0xF5, 0x82, 0x85, 0xF0, 0x83, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0xEF, 0x90, 0x41, 0xD6, 0x93,
+0xFF, 0x7E, 0x00, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0x90,
+0x8A, 0xDB, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xD3, 0x90, 0x8A, 0xD3, 0xE0, 0x9F, 0x90, 0x8A, 0xD2,
+0xE0, 0x9E, 0x50, 0x08, 0x90, 0x8A, 0xDA, 0xE0, 0x04, 0xF0, 0x80, 0xAF, 0x90, 0x8A, 0xDA, 0xE0,
+0xC3, 0x13, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFF, 0xB4, 0x01, 0x0D, 0x90, 0x8A, 0xDA, 0xE0, 0x70,
+0x5D, 0x90, 0x8A, 0xDD, 0x04, 0xF0, 0x80, 0x5B, 0xEF, 0xB4, 0x03, 0x1D, 0x90, 0x8A, 0xDA, 0xE0,
+0xFF, 0x70, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x03, 0xF0, 0x80, 0x48, 0xEF, 0xB4, 0x01, 0x08, 0x90,
+0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x80, 0x3C, 0x80, 0x35, 0x90, 0x8A, 0xDD, 0xE0, 0x64, 0x05, 0x70,
+0x32, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0x70, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x05, 0xF0, 0x80, 0x0F,
+0xEF, 0x90, 0x8A, 0xDD, 0xB4, 0x01, 0x05, 0x74, 0x03, 0xF0, 0x80, 0x03, 0x74, 0x01, 0xF0, 0xD3,
+0x90, 0x8A, 0xD7, 0xE0, 0x94, 0x03, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x05, 0xE4, 0x90,
+0x8A, 0xDD, 0xF0, 0xD3, 0x90, 0x8A, 0xD7, 0xE0, 0x94, 0x03, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00,
+0x40, 0x05, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFD, 0x90, 0x8A, 0xCF, 0xE0,
+0xFF, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xED, 0xF0, 0x12, 0x69, 0x38, 0x90,
+0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xD3, 0x94,
+0x05, 0x50, 0x0F, 0x74, 0x64, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0x04, 0xF0,
+0x80, 0x0F, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4,
+0xF0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0xE4, 0xF5, 0xF0, 0x12, 0x42, 0xFA, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x90, 0x00, 0x02, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00, 0x04, 0xE4,
+0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00, 0x06, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00,
+0x08, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0xC0,
+0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x63,
+0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA3,
+0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04,
+0xF0, 0x02, 0x6B, 0xC2, 0x22, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0xC3,
+0x94, 0x10, 0x50, 0x14, 0x74, 0xA4, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE4, 0xF0,
+0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x80, 0xE2, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF,
+0xE0, 0xFF, 0xC3, 0x94, 0x20, 0x40, 0x02, 0x81, 0x0E, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x00,
+0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x02, 0x12, 0x43,
+0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x04, 0x12, 0x43, 0x5F, 0xE4,
+0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x06, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3,
+0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x08, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x74,
+0x84, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0x74, 0x13, 0xF0, 0x74, 0x44, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x43, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x88,
+0xF5, 0x83, 0xE4, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xE3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0x74, 0x44, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0,
+0x74, 0x24, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x64, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x90, 0x41, 0x8C, 0x93, 0xFE, 0x74, 0x01, 0x93,
+0xFF, 0x90, 0x41, 0x54, 0x74, 0x01, 0x93, 0x2F, 0xFF, 0xE4, 0x93, 0x3E, 0xC3, 0x13, 0xFE, 0xEF,
+0x13, 0xFF, 0x90, 0x8A, 0xCF, 0xE0, 0xFD, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86,
+0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x29, 0x12, 0x43,
+0x5F, 0x74, 0x01, 0xF0, 0x74, 0xC1, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0x74, 0x0C,
+0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0x74, 0xFF, 0xF0, 0xA3, 0xF0,
+0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x23, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0x74, 0x0F, 0xF0,
+0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0x74, 0x13, 0xF0, 0x75, 0xF0, 0x09,
+0xED, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0x74, 0x84, 0x2D, 0xF5, 0x82, 0xE4, 0x34,
+0x04, 0xF5, 0x83, 0x74, 0x13, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x41, 0x7D, 0x22, 0x12,
+0x29, 0xD9, 0xFF, 0xC3, 0x94, 0x20, 0x50, 0x14, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFE, 0x74,
+0x23, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xEE, 0xF0, 0x22, 0xEF, 0xB4, 0x20, 0x0A,
+0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0x90, 0x87, 0x21, 0xF0, 0x22, 0x90, 0x8B, 0x4B, 0xEE, 0xF0,
+0xA3, 0xEF, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x8B, 0x4B, 0xE0, 0xFE, 0xA3, 0xE0, 0xF5,
+0x82, 0x8E, 0x83, 0xE0, 0x60, 0x2C, 0xC3, 0x90, 0x8B, 0x4E, 0xE0, 0x94, 0xE8, 0x90, 0x8B, 0x4D,
+0xE0, 0x94, 0x03, 0x40, 0x0A, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x10, 0xF0, 0x7F, 0x00, 0x22, 0x90,
+0x8B, 0x4D, 0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x7F, 0x0A, 0x7E, 0x00, 0x12, 0x37, 0x54,
+0x80, 0xC6, 0x7F, 0x01, 0x22, 0x12, 0x29, 0xD9, 0xF5, 0x21, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3,
+0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x2A, 0x8B, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x01, 0x12,
+0x42, 0x20, 0x90, 0x8B, 0x1A, 0xF0, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x0A, 0xF0,
+0x12, 0x47, 0xFA, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x30,
+0xE0, 0x25, 0x12, 0x29, 0xD9, 0x90, 0x8B, 0x10, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x90,
+0x8B, 0x11, 0xF0, 0xEF, 0xC3, 0x13, 0x54, 0x7F, 0x90, 0x8B, 0x0F, 0xF0, 0x90, 0x00, 0x03, 0x12,
+0x42, 0x20, 0x90, 0x8B, 0x16, 0xF0, 0x22, 0x90, 0x8B, 0x10, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x11,
+0x74, 0x05, 0xF0, 0x90, 0x8B, 0x0F, 0x74, 0x14, 0xF0, 0x90, 0x8B, 0x16, 0x74, 0x05, 0xF0, 0x22,
+0x12, 0x29, 0xD9, 0x30, 0xE0, 0x19, 0xC3, 0x13, 0x54, 0x7F, 0x90, 0x8B, 0x15, 0xF0, 0x90, 0x00,
+0x01, 0x12, 0x42, 0x20, 0xFF, 0x90, 0x8B, 0x13, 0xE4, 0xF0, 0xA3, 0xEF, 0xF0, 0x80, 0x0F, 0x90,
+0x8B, 0x15, 0x74, 0x05, 0xF0, 0x90, 0x8B, 0x13, 0xE4, 0xF0, 0xA3, 0x74, 0x03, 0xF0, 0x90, 0x8B,
+0x13, 0xE0, 0xA3, 0xE0, 0x90, 0x05, 0x58, 0xF0, 0x22, 0x12, 0x29, 0xD9, 0x90, 0x8B, 0x12, 0xF0,
+0x60, 0x07, 0xE4, 0xFD, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x90, 0x8B, 0x12, 0xE0, 0x90, 0x01, 0xE7,
+0xF0, 0x22, 0x90, 0x02, 0x09, 0xE0, 0xFD, 0x12, 0x29, 0xD9, 0xFE, 0xAF, 0x05, 0xED, 0x2E, 0x90,
+0x8A, 0xF7, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xF8, 0xF0,
+0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xF9, 0xF0, 0x90, 0x00, 0x03,
+0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xFA, 0xF0, 0x90, 0x00, 0x04, 0x12, 0x42, 0x20,
+0xFF, 0xAE, 0x05, 0xED, 0x2F, 0x90, 0x8A, 0xFB, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0,
+0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x8B, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x12, 0x29, 0xD9, 0xC3,
+0x13, 0x20, 0xE0, 0x02, 0xC1, 0xED, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xFF,
+0x54, 0x02, 0xFE, 0x90, 0x8B, 0x32, 0xE0, 0x54, 0xFD, 0x4E, 0xFE, 0xF0, 0xEF, 0x54, 0x01, 0xFF,
+0xEE, 0x54, 0xFE, 0x4F, 0xFF, 0xF0, 0x12, 0x29, 0xD9, 0xFE, 0x54, 0x08, 0xFD, 0xEF, 0x54, 0xF7,
+0x4D, 0xFF, 0x90, 0x8B, 0x32, 0xF0, 0xEE, 0x54, 0x10, 0xFE, 0xEF, 0x54, 0xEF, 0x4E, 0xFF, 0xF0,
+0x12, 0x29, 0xD9, 0xFE, 0x54, 0x20, 0xFD, 0xEF, 0x54, 0xDF, 0x4D, 0xFF, 0x90, 0x8B, 0x32, 0xF0,
+0xEE, 0x54, 0x40, 0xFE, 0xEF, 0x54, 0xBF, 0x4E, 0xF0, 0x20, 0xE0, 0x02, 0xC1, 0xD9, 0x90, 0x8A,
+0xDD, 0x74, 0x21, 0xF0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xFF, 0x13, 0x13,
+0x54, 0x01, 0xFE, 0x90, 0x8B, 0x32, 0xE0, 0xFD, 0x13, 0x13, 0x54, 0x01, 0x6E, 0x60, 0x2A, 0xEF,
+0x54, 0x04, 0xFF, 0xED, 0x54, 0xFB, 0x4F, 0xF0, 0xE0, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x0E,
+0x90, 0x01, 0x34, 0x74, 0x40, 0xF0, 0xFD, 0xE4, 0xFF, 0x12, 0x36, 0xE6, 0x80, 0x0B, 0xE4, 0x90,
+0x8B, 0x34, 0xF0, 0x7D, 0x40, 0xFF, 0x12, 0x36, 0x75, 0x90, 0x8B, 0x32, 0xE0, 0xFD, 0x13, 0x13,
+0x13, 0x54, 0x1F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x12, 0xF0, 0xED, 0xC4, 0x54,
+0x0F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x14, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xC4,
+0x13, 0x54, 0x07, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x80, 0xF0, 0x90, 0x8B, 0x32,
+0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x20, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x40, 0xF0,
+0x90, 0x8A, 0xDD, 0xE0, 0x90, 0x05, 0x27, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x70, 0x05, 0x7F, 0x01,
+0x12, 0x4E, 0x89, 0x90, 0x8B, 0x32, 0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x04, 0x7F,
+0x03, 0x80, 0x0E, 0x7F, 0x01, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x04, 0x7F, 0x01, 0x80, 0x02, 0x7F,
+0x02, 0x12, 0x4E, 0x89, 0x7F, 0x02, 0x02, 0x78, 0x2E, 0x90, 0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x90,
+0x05, 0x27, 0xF0, 0xE4, 0xFF, 0x12, 0x4E, 0x89, 0x7F, 0x03, 0x02, 0x78, 0x2E, 0x90, 0x8A, 0xDA,
+0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xFF, 0x54, 0x02, 0xFE, 0x90, 0x8B, 0x2C, 0xE0, 0x54, 0xFD,
+0x4E, 0xFE, 0xF0, 0xEF, 0x54, 0x01, 0xFF, 0xEE, 0x54, 0xFE, 0x4F, 0xFF, 0xF0, 0x12, 0x29, 0xD9,
+0xFE, 0x54, 0x08, 0xFD, 0xEF, 0x54, 0xF7, 0x4D, 0xFF, 0x90, 0x8B, 0x2C, 0xF0, 0xEE, 0x54, 0x10,
+0xFE, 0xEF, 0x54, 0xEF, 0x4E, 0xFF, 0xF0, 0x12, 0x29, 0xD9, 0xFE, 0x54, 0x40, 0xFD, 0xEF, 0x54,
+0xBF, 0x4D, 0xFF, 0x90, 0x8B, 0x2C, 0xF0, 0xEE, 0x54, 0x04, 0xFE, 0xEF, 0x54, 0xFB, 0x4E, 0xF0,
+0x20, 0xE0, 0x02, 0xE1, 0xE2, 0x90, 0x8A, 0xDD, 0x74, 0x31, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x13,
+0x13, 0x54, 0x3F, 0x20, 0xE0, 0x0B, 0xE4, 0x90, 0x8B, 0x2E, 0xF0, 0x7D, 0x40, 0xFF, 0x12, 0x36,
+0x75, 0x90, 0x8B, 0x2C, 0xE0, 0xFD, 0x13, 0x13, 0x13, 0x54, 0x1F, 0x30, 0xE0, 0x07, 0x90, 0x8A,
+0xDD, 0xE0, 0x44, 0x02, 0xF0, 0xED, 0xC4, 0x54, 0x0F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0,
+0x44, 0x04, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0x54, 0x06, 0x60, 0x0C, 0x90, 0x01, 0x3E, 0x74, 0x03,
+0xF0, 0xFD, 0x7F, 0x02, 0x12, 0x37, 0x00, 0x90, 0x8A, 0xDD, 0xE0, 0x90, 0x05, 0x27, 0xF0, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x0D, 0xA3, 0xE0, 0x64, 0x06,
+0x60, 0x2C, 0x7F, 0x06, 0x12, 0x65, 0x82, 0x80, 0x25, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x06, 0x1B,
+0x7F, 0x01, 0x12, 0x65, 0x82, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x09, 0x7D, 0x01, 0xAF,
+0x23, 0x12, 0x45, 0xA2, 0x80, 0x05, 0x12, 0x4E, 0x56, 0x80, 0x03, 0x12, 0x7D, 0xC1, 0x7F, 0x01,
+0x80, 0x4C, 0x90, 0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x27, 0xF0, 0x7D, 0x03, 0x7F, 0x02,
+0x12, 0x36, 0x92, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x06, 0x02, 0x80, 0x1B, 0x90, 0x8B, 0x2D, 0xE0,
+0xB4, 0x04, 0x02, 0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF, 0x80, 0x14,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4,
+0x02, 0x05, 0x7F, 0x01, 0x12, 0x65, 0x82, 0x11, 0x35, 0x12, 0x4A, 0xFC, 0x7F, 0x03, 0x11, 0x42,
+0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x8B, 0x31, 0xE0, 0xB4, 0x01, 0x05, 0xE4, 0xF0, 0x12, 0x48,
+0xFE, 0x22, 0xAD, 0x07, 0xEF, 0x64, 0x01, 0x60, 0x04, 0xEF, 0xB4, 0x03, 0x15, 0x90, 0x8B, 0x32,
+0xE0, 0x54, 0xFE, 0xF0, 0x54, 0xFB, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0,
+0xA3, 0xF0, 0xED, 0x64, 0x02, 0x60, 0x04, 0xED, 0xB4, 0x03, 0x15, 0x90, 0x8B, 0x2C, 0xE0, 0x54,
+0xFE, 0xF0, 0x54, 0xFB, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0,
+0x22, 0x12, 0x29, 0xD9, 0x90, 0x8B, 0x38, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x8A, 0xFD, 0xE0, 0x90, 0x8A, 0xE8, 0xF0, 0x90, 0x8A, 0xFE, 0xE0, 0xFF, 0xA3, 0xE0, 0x90,
+0x8A, 0xE9, 0xCF, 0xF0, 0xA3, 0xEF, 0xF0, 0xE4, 0x90, 0x8A, 0xE4, 0xF0, 0x90, 0x8A, 0xE4, 0xE0,
+0xFF, 0x24, 0x00, 0xF5, 0x82, 0xE4, 0x34, 0x8B, 0xF5, 0x83, 0xE0, 0xFE, 0x74, 0xEB, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0x04, 0xF0, 0xE0, 0xB4,
+0x04, 0xDA, 0x90, 0x8A, 0xE8, 0xE0, 0x12, 0x43, 0x94, 0x78, 0xF8, 0x00, 0x7A, 0x6B, 0x01, 0x79,
+0x01, 0x02, 0x79, 0x01, 0x03, 0x79, 0x01, 0x04, 0x7A, 0x6B, 0x05, 0x7A, 0x35, 0x80, 0x7A, 0x4E,
+0x81, 0x7A, 0x6B, 0x82, 0x00, 0x00, 0x7A, 0x67, 0x90, 0x8A, 0xEE, 0xE0, 0xFF, 0x51, 0x72, 0x41,
+0x6B, 0x90, 0x8A, 0xE8, 0xE0, 0xFF, 0xB4, 0x02, 0x08, 0x90, 0x8A, 0xE5, 0x74, 0x01, 0xF0, 0x80,
+0x0F, 0xEF, 0x90, 0x8A, 0xE5, 0xB4, 0x03, 0x05, 0x74, 0x02, 0xF0, 0x80, 0x03, 0x74, 0x04, 0xF0,
+0xC3, 0x90, 0x8A, 0xE9, 0xE0, 0x94, 0x08, 0x50, 0x78, 0xE4, 0x90, 0x8A, 0xE4, 0xF0, 0x90, 0x8A,
+0xE5, 0xE0, 0xFF, 0x90, 0x8A, 0xE4, 0xE0, 0xC3, 0x9F, 0x40, 0x02, 0x41, 0x6B, 0x90, 0x8A, 0xE9,
+0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xC3, 0xEE, 0x94, 0x01, 0x90, 0x8A, 0xE4, 0xE0, 0x50, 0x1F, 0xFE,
+0x2F, 0xFF, 0xEE, 0xFD, 0xC3, 0x74, 0x03, 0x9D, 0xFD, 0xE4, 0x94, 0x00, 0xFC, 0x74, 0xEB, 0x2D,
+0xF5, 0x82, 0x74, 0x8A, 0x3C, 0xF5, 0x83, 0xE0, 0xFD, 0x12, 0x51, 0x88, 0x80, 0x2B, 0xFF, 0xFD,
+0xC3, 0x74, 0x03, 0x9D, 0xFD, 0xE4, 0x94, 0x00, 0xFC, 0x74, 0xEB, 0x2D, 0xF5, 0x82, 0x74, 0x8A,
+0x3C, 0xF5, 0x83, 0xE0, 0xFE, 0xEF, 0xFD, 0x90, 0x8A, 0xEA, 0xE0, 0x2D, 0xFD, 0x90, 0x8A, 0xE9,
+0xE0, 0x34, 0x00, 0x8D, 0x82, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0x04, 0xF0, 0x80,
+0x8D, 0xC3, 0x90, 0x8A, 0xE9, 0xE0, 0x94, 0x10, 0x40, 0x02, 0x41, 0x6B, 0x90, 0x8A, 0xE8, 0xE0,
+0x64, 0x04, 0x60, 0x02, 0x41, 0x6B, 0x90, 0x8A, 0xEC, 0xE0, 0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78,
+0x10, 0x12, 0x2A, 0x6C, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90, 0x8A, 0xEB, 0xE0,
+0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78, 0x18, 0x12, 0x2A, 0x6C, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01,
+0xD0, 0x00, 0x12, 0x43, 0x46, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90, 0x8A, 0xED,
+0xE0, 0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78, 0x08, 0x12, 0x2A, 0x6C, 0xD0, 0x03, 0xD0, 0x02, 0xD0,
+0x01, 0xD0, 0x00, 0x12, 0x43, 0x46, 0xA8, 0x04, 0xA9, 0x05, 0xAA, 0x06, 0xAB, 0x07, 0xA3, 0xE0,
+0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x12, 0x43, 0x46, 0xA3, 0x12, 0x2A, 0x7F, 0x90, 0x8A, 0xEF, 0x12,
+0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x90, 0x8A, 0xE9, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF,
+0x12, 0x2F, 0xD9, 0x80, 0x36, 0x90, 0x8A, 0xED, 0xE0, 0xFE, 0xA3, 0xE0, 0x24, 0x00, 0xFF, 0xE4,
+0x3E, 0xFE, 0x90, 0x8A, 0xE6, 0xF0, 0xA3, 0xEF, 0xF0, 0x12, 0x37, 0x54, 0x80, 0x1D, 0x90, 0x8A,
+0xED, 0xE0, 0xFE, 0xA3, 0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0xFE, 0x90, 0x8A, 0xE6, 0xF0, 0xA3,
+0xEF, 0xF0, 0x12, 0x36, 0xCB, 0x80, 0x04, 0x7F, 0x00, 0x80, 0x02, 0x7F, 0x01, 0xD0, 0xD0, 0x92,
+0xAF, 0x22, 0x8F, 0x0F, 0xE4, 0x90, 0x8A, 0xF3, 0xF0, 0xE5, 0x0F, 0x14, 0xFE, 0x90, 0x8A, 0xF3,
+0xE0, 0xFF, 0xC3, 0x9E, 0x50, 0x0E, 0xEF, 0x04, 0xFD, 0x12, 0x34, 0xB7, 0x90, 0x8A, 0xF3, 0xE0,
+0x04, 0xF0, 0x80, 0xE5, 0xE5, 0x0F, 0x14, 0xFF, 0x7D, 0xFF, 0x12, 0x34, 0xB7, 0x90, 0x8A, 0xF3,
+0xE5, 0x0F, 0xF0, 0x90, 0x8A, 0xF3, 0xE0, 0xC3, 0x94, 0xFF, 0x50, 0x0F, 0xE0, 0xFF, 0x04, 0xFD,
+0x12, 0x34, 0xB7, 0x90, 0x8A, 0xF3, 0xE0, 0x04, 0xF0, 0x80, 0xE8, 0xAD, 0x0F, 0x7F, 0xFF, 0x02,
+0x34, 0xB7, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0xA3, 0x74,
+0x04, 0xF0, 0xA3, 0xE4, 0xF0, 0x90, 0x8A, 0xE2, 0xF0, 0xA3, 0xF0, 0x90, 0x02, 0x09, 0xE0, 0x90,
+0x8A, 0xE1, 0xF0, 0x12, 0x29, 0xD9, 0xFF, 0x90, 0x8A, 0xE1, 0xE0, 0x2F, 0x90, 0x8A, 0xE0, 0xF0,
+0x30, 0xE0, 0x0B, 0x90, 0x8A, 0xDB, 0xE4, 0xF0, 0xA3, 0x74, 0x80, 0xF0, 0x80, 0x07, 0xE4, 0x90,
+0x8A, 0xDB, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xC3, 0x13, 0x90, 0xFD, 0x10, 0xF0, 0x90,
+0x8A, 0xDD, 0xE0, 0x24, 0x20, 0xF0, 0x90, 0x8A, 0xDB, 0xA3, 0xE0, 0xFD, 0xA3, 0xE0, 0xFC, 0x2D,
+0xFF, 0x24, 0x01, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xFD, 0xF0, 0x74,
+0x02, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0xFE, 0xEC, 0x2D, 0x24, 0x03, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0x90, 0x8A, 0xFE, 0xF0,
+0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xDA, 0x74, 0x04, 0xF0, 0x90, 0x8A, 0xDB, 0xA3, 0xE0, 0xFF, 0xA3,
+0xE0, 0x2F, 0xFF, 0x90, 0x8A, 0xDA, 0xE0, 0xFE, 0x2F, 0x24, 0x00, 0xF5, 0x82, 0xE4, 0x34, 0xFC,
+0xF5, 0x83, 0xE0, 0xFF, 0x74, 0xFC, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0,
+0x90, 0x8A, 0xDA, 0xE0, 0x04, 0xF0, 0xE0, 0xB4, 0x08, 0xCF, 0x11, 0x89, 0xEF, 0x70, 0x45, 0x90,
+0x01, 0xC3, 0xE0, 0x60, 0x2B, 0xC3, 0x90, 0x8A, 0xE3, 0xE0, 0x94, 0xE8, 0x90, 0x8A, 0xE2, 0xE0,
+0x94, 0x03, 0x40, 0x09, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x10, 0xF0, 0x80, 0x79, 0x90, 0x8A, 0xE2,
+0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x7F, 0x0A, 0x7E, 0x00, 0x12, 0x37, 0x54, 0x80, 0xCF,
+0x90, 0x01, 0xC6, 0xE0, 0x90, 0x01, 0xC3, 0x30, 0xE2, 0x05, 0x74, 0xFE, 0xF0, 0x80, 0x57, 0x74,
+0xFF, 0xF0, 0x80, 0x52, 0x90, 0x8A, 0xDD, 0xE0, 0xB4, 0x78, 0x2E, 0xE4, 0xF0, 0x90, 0x8A, 0xE0,
+0xE0, 0x04, 0xF0, 0x90, 0x8A, 0xDB, 0xE0, 0x70, 0x04, 0xA3, 0xE0, 0x64, 0x80, 0x90, 0x8A, 0xDB,
+0x70, 0x05, 0xF0, 0xA3, 0xF0, 0x80, 0x06, 0xE4, 0xF0, 0xA3, 0x74, 0x80, 0xF0, 0x90, 0x8A, 0xE0,
+0xE0, 0xC3, 0x13, 0x90, 0xFD, 0x10, 0xF0, 0x80, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x24, 0x08, 0xF0,
+0x90, 0x8A, 0xDE, 0x74, 0xFF, 0xF5, 0xF0, 0x12, 0x42, 0x81, 0x90, 0x8A, 0xDE, 0xE0, 0x70, 0x02,
+0xA3, 0xE0, 0x60, 0x02, 0x61, 0x16, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x29, 0xD9, 0x90, 0x8B,
+0x05, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x06, 0xF0, 0x22, 0xE4, 0xF5, 0x61,
+0x22, 0x91, 0x4A, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0,
+0x7F, 0x78, 0x7E, 0x08, 0x12, 0x27, 0xDE, 0x90, 0x8B, 0x1C, 0x12, 0x2A, 0x7F, 0x7F, 0x04, 0x7E,
+0x0C, 0x12, 0x27, 0xDE, 0x90, 0x8B, 0x20, 0x12, 0x2A, 0x7F, 0x7F, 0x00, 0x7E, 0x08, 0x12, 0x27,
+0xDE, 0x90, 0x8B, 0x24, 0x12, 0x2A, 0x7F, 0x90, 0x8B, 0x09, 0xE0, 0x90, 0x8B, 0x1C, 0xB4, 0x01,
+0x0D, 0x12, 0x43, 0x53, 0xEF, 0x54, 0xC7, 0xFF, 0xED, 0x54, 0xC7, 0xFD, 0x80, 0x07, 0x12, 0x43,
+0x53, 0xEF, 0x54, 0xC7, 0xFF, 0xEC, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x78, 0x7E, 0x08,
+0x12, 0x2F, 0xD9, 0x90, 0x8B, 0x20, 0x12, 0x43, 0x53, 0xEF, 0x54, 0x0F, 0xFF, 0xEC, 0x90, 0x80,
+0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x04, 0x7E, 0x0C, 0x12, 0x2F, 0xD9, 0x90, 0x8B, 0x24, 0x12, 0x43,
+0x53, 0xEF, 0x44, 0x02, 0xFF, 0xEC, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x00, 0x7E, 0x08,
+0x12, 0x2F, 0xD9, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x27, 0xDE, 0x90, 0x8B, 0x28, 0x12, 0x2A, 0x7F,
+0x90, 0x80, 0x85, 0x12, 0x2A, 0x8B, 0x00, 0x1B, 0x25, 0xA0, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x2F,
+0xD9, 0x90, 0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00, 0x00, 0x00, 0x00, 0xE4, 0xFD, 0xFF, 0x12, 0x34,
+0x81, 0x90, 0x8B, 0x09, 0xE0, 0xB4, 0x01, 0x11, 0x90, 0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00, 0x00,
+0x00, 0x00, 0xE4, 0xFD, 0x7F, 0x01, 0x12, 0x34, 0x81, 0x90, 0x00, 0x11, 0xE0, 0x54, 0xF6, 0xF0,
+0x02, 0x52, 0x0E, 0x91, 0x50, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74,
+0xFF, 0xF0, 0x90, 0x8B, 0x33, 0x74, 0x04, 0xF0, 0x22, 0xB1, 0x42, 0x90, 0x8B, 0x33, 0x74, 0x04,
+0xF0, 0x22, 0x90, 0x00, 0x11, 0xE0, 0x44, 0x09, 0xF0, 0x12, 0x52, 0x0E, 0x90, 0x8B, 0x1C, 0x12,
+0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x78, 0x7E, 0x08, 0x12, 0x2F, 0xD9, 0x90,
+0x8B, 0x20, 0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x04, 0x7E, 0x0C, 0x12,
+0x2F, 0xD9, 0x90, 0x8B, 0x24, 0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x00,
+0x7E, 0x08, 0x12, 0x2F, 0xD9, 0x90, 0x8B, 0x28, 0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A,
+0x7F, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x2F, 0xD9, 0x90, 0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00, 0x03,
+0x2D, 0x95, 0xE4, 0xFD, 0xFF, 0x12, 0x34, 0x81, 0x90, 0x8B, 0x09, 0xE0, 0xB4, 0x01, 0x11, 0x90,
+0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00, 0x03, 0x2D, 0x95, 0xE4, 0xFD, 0x7F, 0x01, 0x12, 0x34, 0x81,
+0x22, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x3C, 0xE5, 0x22, 0x54, 0x0F, 0x14, 0x60, 0x2E,
+0x14, 0x60, 0x1E, 0x24, 0xFE, 0x60, 0x0E, 0x24, 0xF8, 0x70, 0x2A, 0xE4, 0x90, 0x8B, 0x2D, 0xF0,
+0x90, 0x05, 0x22, 0xF0, 0x22, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x22, 0xE4, 0xF0,
+0x22, 0x90, 0x8B, 0x2D, 0x74, 0x03, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x22, 0x90, 0x01,
+0xC6, 0xE0, 0x44, 0x08, 0xF0, 0x22, 0xAE, 0x07, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x18,
+0x90, 0x8B, 0x2C, 0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x20, 0xE0, 0x0C, 0xAF, 0x06, 0x7D, 0x01,
+0x12, 0x45, 0xA2, 0xB1, 0xC1, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0x90, 0x01, 0x57, 0xE0, 0x60,
+0x3C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x1B, 0xE0,
+0x60, 0x07, 0xE4, 0xF0, 0x53, 0x25, 0xFD, 0x80, 0x24, 0x90, 0x8B, 0x0C, 0xE0, 0x04, 0xF0, 0x53,
+0x25, 0xEF, 0x90, 0x8B, 0x10, 0xE0, 0xFF, 0x90, 0x8B, 0x0C, 0xE0, 0xD3, 0x9F, 0x40, 0x0E, 0xE5,
+0x21, 0xB4, 0x01, 0x09, 0x90, 0x8B, 0x0D, 0xE0, 0x70, 0x03, 0xE0, 0x04, 0xF0, 0x90, 0x01, 0x5B,
+0xE0, 0x60, 0x10, 0x90, 0x01, 0x5B, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0, 0xE4, 0x90,
+0x8B, 0x18, 0xF0, 0x90, 0x01, 0x5F, 0xE0, 0x60, 0x10, 0x90, 0x01, 0x5F, 0xE4, 0xF0, 0x90, 0x01,
+0x3C, 0x74, 0x08, 0xF0, 0xE4, 0x90, 0x8B, 0x17, 0xF0, 0x22, 0xE4, 0x90, 0x8B, 0x4F, 0xF0, 0xA3,
+0xF0, 0x90, 0x05, 0xF8, 0xE0, 0x70, 0x0F, 0xA3, 0xE0, 0x70, 0x0B, 0xA3, 0xE0, 0x70, 0x07, 0xA3,
+0xE0, 0x70, 0x03, 0x7F, 0x01, 0x22, 0xD3, 0x90, 0x8B, 0x50, 0xE0, 0x94, 0xE8, 0x90, 0x8B, 0x4F,
+0xE0, 0x94, 0x03, 0x40, 0x03, 0x7F, 0x00, 0x22, 0x7F, 0x32, 0x7E, 0x00, 0x12, 0x37, 0x54, 0x90,
+0x8B, 0x4F, 0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x80, 0xC6, 0x00, 0x92, 0x00};
-#endif
+// =================== v88 UMC A Cut P2PPS with CCX report C2H 2012-12-05 =====================
+u8 Rtl8192CUFwUMCACutImgArray[UMCACutImgArrayLength] = {
+0xC1, 0x88, 0x02, 0x05, 0x58, 0x00, 0x02, 0x00, 0x12, 0x05, 0x17, 0x11, 0xDE, 0x3E, 0x01, 0x00,
+0x94, 0x18, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x02, 0x46, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x02, 0x60, 0xF2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x02, 0x68, 0x91, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x4B, 0x87, 0x00, 0x00,
+0x05, 0x04, 0x03, 0x02, 0x00, 0x03, 0x06, 0x05, 0x04, 0x03, 0x00, 0x04, 0x06, 0x05, 0x04, 0x02,
+0x00, 0x04, 0x08, 0x07, 0x06, 0x04, 0x00, 0x06, 0x0A, 0x09, 0x08, 0x06, 0x00, 0x08, 0x0A, 0x09,
+0x08, 0x04, 0x00, 0x08, 0x0A, 0x09, 0x08, 0x02, 0x00, 0x08, 0x0A, 0x09, 0x08, 0x00, 0x00, 0x08,
+0x12, 0x11, 0x10, 0x08, 0x00, 0x10, 0x1A, 0x19, 0x18, 0x10, 0x00, 0x18, 0x22, 0x21, 0x20, 0x18,
+0x00, 0x20, 0x22, 0x21, 0x20, 0x10, 0x00, 0x20, 0x22, 0x21, 0x20, 0x08, 0x00, 0x20, 0x22, 0x21,
+0x1C, 0x08, 0x00, 0x20, 0x22, 0x21, 0x14, 0x08, 0x00, 0x20, 0x22, 0x20, 0x18, 0x08, 0x00, 0x20,
+0x31, 0x30, 0x20, 0x10, 0x00, 0x30, 0x31, 0x30, 0x18, 0x00, 0x00, 0x30, 0x31, 0x2F, 0x10, 0x10,
+0x00, 0x30, 0x31, 0x2C, 0x10, 0x10, 0x00, 0x30, 0x31, 0x28, 0x10, 0x00, 0x00, 0x30, 0x31, 0x20,
+0x10, 0x00, 0x00, 0x30, 0x31, 0x10, 0x10, 0x00, 0x00, 0x30, 0x04, 0x04, 0x04, 0x05, 0x04, 0x04,
+0x05, 0x07, 0x07, 0x07, 0x08, 0x0A, 0x04, 0x04, 0x04, 0x04, 0x06, 0x0A, 0x0B, 0x0D, 0x05, 0x05,
+0x07, 0x07, 0x08, 0x0B, 0x0D, 0x0F, 0x04, 0x04, 0x04, 0x05, 0x07, 0x07, 0x09, 0x09, 0x0C, 0x0E,
+0x10, 0x12, 0x06, 0x07, 0x09, 0x0A, 0x0C, 0x0E, 0x11, 0x13, 0x09, 0x09, 0x09, 0x09, 0x0C, 0x0E,
+0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x26, 0x2A, 0x18, 0x1A,
+0x1D, 0x1F, 0x21, 0x27, 0x29, 0x2A, 0x00, 0x00, 0x00, 0x1F, 0x23, 0x28, 0x2A, 0x2C, 0x00, 0x04,
+0x00, 0x04, 0x00, 0x08, 0x00, 0x10, 0x00, 0x18, 0x00, 0x24, 0x00, 0x30, 0x00, 0x48, 0x00, 0x60,
+0x00, 0x90, 0x00, 0xC0, 0x00, 0xD8, 0x00, 0x50, 0x00, 0x78, 0x00, 0xA0, 0x00, 0xC8, 0x01, 0x40,
+0x01, 0x90, 0x01, 0xE0, 0x02, 0x30, 0x01, 0x2C, 0x01, 0x40, 0x01, 0xE0, 0x02, 0xD0, 0x03, 0xE8,
+0x04, 0xB0, 0x06, 0x40, 0x07, 0xD0, 0x00, 0x02, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0C,
+0x00, 0x12, 0x00, 0x18, 0x00, 0x24, 0x00, 0x30, 0x00, 0x48, 0x00, 0x60, 0x00, 0x6C, 0x00, 0x28,
+0x00, 0x3C, 0x00, 0x50, 0x00, 0x64, 0x00, 0xA0, 0x00, 0xC8, 0x00, 0xF0, 0x01, 0x18, 0x00, 0x64,
+0x00, 0xA0, 0x00, 0xF0, 0x01, 0x68, 0x01, 0xF4, 0x02, 0x58, 0x03, 0x20, 0x03, 0xE8, 0x02, 0x02,
+0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, 0x07, 0x02, 0x03, 0x04, 0x0A, 0x0C, 0x0E,
+0x10, 0x12, 0x05, 0x07, 0x07, 0x08, 0x0B, 0x12, 0x24, 0x3C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02,
+0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06,
+0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x20, 0x1E, 0x1C, 0x18, 0x10, 0x18, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0xBB, 0x01, 0x0C, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE0, 0x22, 0x50,
+0x06, 0xE9, 0x25, 0x82, 0xF8, 0xE6, 0x22, 0xBB, 0xFE, 0x06, 0xE9, 0x25, 0x82, 0xF8, 0xE2, 0x22,
+0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE4, 0x93, 0x22, 0xBB, 0x01, 0x06,
+0x89, 0x82, 0x8A, 0x83, 0xF0, 0x22, 0x50, 0x02, 0xF7, 0x22, 0xBB, 0xFE, 0x01, 0xF3, 0x22, 0xF8,
+0xBB, 0x01, 0x0D, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE8, 0xF0, 0x22,
+0x50, 0x06, 0xE9, 0x25, 0x82, 0xC8, 0xF6, 0x22, 0xBB, 0xFE, 0x05, 0xE9, 0x25, 0x82, 0xC8, 0xF2,
+0x22, 0xC5, 0xF0, 0xF8, 0xA3, 0xE0, 0x28, 0xF0, 0xC5, 0xF0, 0xF8, 0xE5, 0x82, 0x15, 0x82, 0x70,
+0x02, 0x15, 0x83, 0xE0, 0x38, 0xF0, 0x22, 0xBB, 0x01, 0x0A, 0x89, 0x82, 0x8A, 0x83, 0xE0, 0xF5,
+0xF0, 0xA3, 0xE0, 0x22, 0x50, 0x06, 0x87, 0xF0, 0x09, 0xE7, 0x19, 0x22, 0xBB, 0xFE, 0x07, 0xE3,
+0xF5, 0xF0, 0x09, 0xE3, 0x19, 0x22, 0x89, 0x82, 0x8A, 0x83, 0xE4, 0x93, 0xF5, 0xF0, 0x74, 0x01,
+0x93, 0x22, 0xBB, 0x01, 0x10, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE0,
+0xF5, 0xF0, 0xA3, 0xE0, 0x22, 0x50, 0x09, 0xE9, 0x25, 0x82, 0xF8, 0x86, 0xF0, 0x08, 0xE6, 0x22,
+0xBB, 0xFE, 0x0A, 0xE9, 0x25, 0x82, 0xF8, 0xE2, 0xF5, 0xF0, 0x08, 0xE2, 0x22, 0xE5, 0x83, 0x2A,
+0xF5, 0x83, 0xE9, 0x93, 0xF5, 0xF0, 0xA3, 0xE9, 0x93, 0x22, 0xBB, 0x01, 0x0A, 0x89, 0x82, 0x8A,
+0x83, 0xF0, 0xE5, 0xF0, 0xA3, 0xF0, 0x22, 0x50, 0x06, 0xF7, 0x09, 0xA7, 0xF0, 0x19, 0x22, 0xBB,
+0xFE, 0x06, 0xF3, 0xE5, 0xF0, 0x09, 0xF3, 0x19, 0x22, 0xF8, 0xBB, 0x01, 0x11, 0xE5, 0x82, 0x29,
+0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE8, 0xF0, 0xE5, 0xF0, 0xA3, 0xF0, 0x22, 0x50, 0x09,
+0xE9, 0x25, 0x82, 0xC8, 0xF6, 0x08, 0xA6, 0xF0, 0x22, 0xBB, 0xFE, 0x09, 0xE9, 0x25, 0x82, 0xC8,
+0xF2, 0xE5, 0xF0, 0x08, 0xF2, 0x22, 0xEF, 0x4B, 0xFF, 0xEE, 0x4A, 0xFE, 0xED, 0x49, 0xFD, 0xEC,
+0x48, 0xFC, 0x22, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0xA3, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0x22, 0xA4,
+0x25, 0x82, 0xF5, 0x82, 0xE5, 0xF0, 0x35, 0x83, 0xF5, 0x83, 0x22, 0xE0, 0xFB, 0xA3, 0xE0, 0xFA,
+0xA3, 0xE0, 0xF9, 0x22, 0xF8, 0xE0, 0xFB, 0xA3, 0xA3, 0xE0, 0xF9, 0x25, 0xF0, 0xF0, 0xE5, 0x82,
+0x15, 0x82, 0x70, 0x02, 0x15, 0x83, 0xE0, 0xFA, 0x38, 0xF0, 0x22, 0xEB, 0xF0, 0xA3, 0xEA, 0xF0,
+0xA3, 0xE9, 0xF0, 0x22, 0xD0, 0x83, 0xD0, 0x82, 0xF8, 0xE4, 0x93, 0x70, 0x12, 0x74, 0x01, 0x93,
+0x70, 0x0D, 0xA3, 0xA3, 0x93, 0xF8, 0x74, 0x01, 0x93, 0xF5, 0x82, 0x88, 0x83, 0xE4, 0x73, 0x74,
+0x02, 0x93, 0x68, 0x60, 0xEF, 0xA3, 0xA3, 0xA3, 0x80, 0xDF, 0xD0, 0x83, 0xD0, 0x82, 0xF8, 0xE4,
+0x93, 0x70, 0x12, 0x74, 0x01, 0x93, 0x70, 0x0D, 0xA3, 0xA3, 0x93, 0xF8, 0x74, 0x01, 0x93, 0xF5,
+0x82, 0x88, 0x83, 0xE4, 0x73, 0x74, 0x02, 0x93, 0xB5, 0xF0, 0x06, 0x74, 0x03, 0x93, 0x68, 0x60,
+0xE9, 0xA3, 0xA3, 0xA3, 0xA3, 0x80, 0xD8, 0xE4, 0x90, 0x8A, 0xC5, 0xF0, 0xE5, 0x24, 0x70, 0x03,
+0x02, 0x44, 0x9D, 0xE5, 0x21, 0x64, 0x01, 0x60, 0x03, 0x02, 0x44, 0x9D, 0xE5, 0x24, 0x14, 0x60,
+0x29, 0x24, 0xFD, 0x60, 0x25, 0x24, 0x02, 0x24, 0xFB, 0x50, 0x02, 0x80, 0x23, 0x90, 0x8B, 0x0B,
+0xE0, 0x14, 0xF0, 0xE0, 0x60, 0x04, 0xA3, 0xE0, 0x60, 0x16, 0x90, 0x8B, 0x0B, 0xE0, 0x70, 0x0A,
+0x90, 0x8B, 0x19, 0xE0, 0x90, 0x8B, 0x0B, 0xF0, 0x80, 0x00, 0x90, 0x8A, 0xC5, 0x74, 0x01, 0xF0,
+0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x16, 0xA3, 0xE0, 0xB4, 0x06, 0x05, 0xE4, 0x90, 0x8A, 0xC5,
+0xF0, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x70, 0x04, 0x90, 0x8A, 0xC5, 0xF0, 0x90, 0x8A, 0xC5,
+0xE0, 0x60, 0x4A, 0x43, 0x25, 0x10, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0C, 0xE0, 0x75,
+0xF0, 0x03, 0xA4, 0xFF, 0x90, 0x8B, 0x15, 0xE0, 0x2F, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74, 0x05, 0xF0, 0xE5, 0x22, 0x54,
+0x0F, 0xC3, 0x94, 0x04, 0x50, 0x07, 0x7D, 0x01, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x90, 0x8B, 0x2C,
+0xE0, 0x30, 0xE0, 0x09, 0x12, 0x7D, 0xC1, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x22, 0xE4, 0xF5,
+0x25, 0xF5, 0x24, 0x75, 0x23, 0x0C, 0x75, 0x22, 0x0C, 0x90, 0x8B, 0x1A, 0xF0, 0x90, 0x8B, 0x18,
+0xF0, 0x90, 0x8B, 0x17, 0xF0, 0x90, 0x8B, 0x19, 0x04, 0xF0, 0x90, 0x8B, 0x0B, 0xF0, 0xE4, 0x90,
+0x8B, 0x1B, 0xF0, 0x90, 0x8B, 0x0D, 0xF0, 0x90, 0x8B, 0x15, 0x74, 0x05, 0xF0, 0xE4, 0x90, 0x8B,
+0x0C, 0xF0, 0x90, 0x8B, 0x13, 0xF0, 0xA3, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x10, 0xF0, 0xA3, 0x74,
+0x05, 0xF0, 0x90, 0x8B, 0x0F, 0x74, 0x14, 0xF0, 0x90, 0x8B, 0x16, 0x74, 0x05, 0xF0, 0xE4, 0x90,
+0x8B, 0x0E, 0xF0, 0x90, 0x8B, 0x0A, 0xF0, 0x90, 0x8B, 0x08, 0xF0, 0x90, 0x8B, 0x12, 0xF0, 0x22,
+0x7F, 0x00, 0x22, 0x02, 0x45, 0x03, 0x02, 0x45, 0x06, 0x8E, 0x64, 0x8F, 0x65, 0xAD, 0x65, 0xAC,
+0x64, 0xAF, 0x63, 0x12, 0x4A, 0x5B, 0xAF, 0x65, 0xAE, 0x64, 0x90, 0x04, 0x80, 0xE0, 0x54, 0x0F,
+0xFD, 0xAC, 0x07, 0x74, 0x11, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x01,
+0xF0, 0x74, 0x11, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xFB, 0xF0, 0xAC,
+0x07, 0x74, 0x16, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0xFA, 0xF0, 0x74,
+0x15, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x1F, 0xF0, 0xAC, 0x07, 0x74,
+0x06, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x0F, 0xF0, 0x90, 0x04, 0x53,
+0xE4, 0xF0, 0x90, 0x04, 0x52, 0xF0, 0x90, 0x04, 0x51, 0x74, 0xFF, 0xF0, 0x90, 0x04, 0x50, 0x74,
+0xFD, 0xF0, 0x74, 0x14, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xC0, 0x4D,
+0xFD, 0x74, 0x14, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xED, 0xF0, 0x22, 0x7D, 0x01,
+0x7F, 0x0C, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F, 0x67, 0x8D, 0x68, 0xE5, 0x67, 0x54,
+0x0F, 0xFF, 0xE5, 0x22, 0x54, 0x0F, 0x6F, 0x60, 0x72, 0xE5, 0x67, 0x30, 0xE2, 0x30, 0xE5, 0x22,
+0x20, 0xE2, 0x05, 0x7F, 0x01, 0x12, 0x4A, 0xB2, 0xE5, 0x22, 0x30, 0xE3, 0x10, 0xE5, 0x67, 0x20,
+0xE3, 0x0B, 0x12, 0x49, 0xD5, 0xEF, 0x60, 0x53, 0x12, 0x4A, 0xCC, 0x80, 0x4E, 0xE5, 0x22, 0x20,
+0xE3, 0x49, 0xE5, 0x67, 0x30, 0xE3, 0x44, 0xAF, 0x68, 0x12, 0x4A, 0x7C, 0x80, 0x3D, 0xE5, 0x22,
+0x54, 0x0F, 0xFF, 0xBF, 0x0C, 0x0E, 0xE5, 0x67, 0x20, 0xE3, 0x09, 0x12, 0x49, 0xD5, 0xEF, 0x60,
+0x2A, 0x12, 0x4A, 0xCC, 0xE5, 0x22, 0x54, 0x0F, 0xFF, 0xBF, 0x04, 0x0E, 0xE5, 0x67, 0x20, 0xE2,
+0x09, 0x12, 0x49, 0x93, 0xEF, 0x60, 0x14, 0x12, 0x4A, 0x32, 0xE5, 0x22, 0x54, 0x0F, 0xFF, 0xBF,
+0x02, 0x09, 0x12, 0x45, 0x00, 0xEF, 0x60, 0x03, 0x12, 0x4B, 0x10, 0xD0, 0xD0, 0x92, 0xAF, 0x22,
+0x02, 0x46, 0x6E, 0x02, 0x50, 0xC6, 0xE4, 0x93, 0xA3, 0xF8, 0xE4, 0x93, 0xA3, 0x40, 0x03, 0xF6,
+0x80, 0x01, 0xF2, 0x08, 0xDF, 0xF4, 0x80, 0x29, 0xE4, 0x93, 0xA3, 0xF8, 0x54, 0x07, 0x24, 0x0C,
+0xC8, 0xC3, 0x33, 0xC4, 0x54, 0x0F, 0x44, 0x20, 0xC8, 0x83, 0x40, 0x04, 0xF4, 0x56, 0x80, 0x01,
+0x46, 0xF6, 0xDF, 0xE4, 0x80, 0x0B, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x90, 0x4B,
+0x23, 0xE4, 0x7E, 0x01, 0x93, 0x60, 0xBC, 0xA3, 0xFF, 0x54, 0x3F, 0x30, 0xE5, 0x09, 0x54, 0x1F,
+0xFE, 0xE4, 0x93, 0xA3, 0x60, 0x01, 0x0E, 0xCF, 0x54, 0xC0, 0x25, 0xE0, 0x60, 0xA8, 0x40, 0xB8,
+0xE4, 0x93, 0xA3, 0xFA, 0xE4, 0x93, 0xA3, 0xF8, 0xE4, 0x93, 0xA3, 0xC8, 0xC5, 0x82, 0xC8, 0xCA,
+0xC5, 0x83, 0xCA, 0xF0, 0xA3, 0xC8, 0xC5, 0x82, 0xC8, 0xCA, 0xC5, 0x83, 0xCA, 0xDF, 0xE9, 0xDE,
+0xE7, 0x80, 0xBE, 0xE5, 0x21, 0x64, 0x01, 0x70, 0x67, 0xE5, 0x24, 0x60, 0x63, 0xE5, 0x24, 0x64,
+0x02, 0x60, 0x06, 0xE5, 0x24, 0x64, 0x05, 0x70, 0x27, 0x90, 0x06, 0xAB, 0xE0, 0x90, 0x8B, 0x0B,
+0xF0, 0x90, 0x06, 0xAA, 0xE0, 0x90, 0x8B, 0x19, 0xF0, 0x90, 0x8B, 0x0B, 0xE0, 0x70, 0x07, 0x90,
+0x8B, 0x19, 0xE0, 0xFF, 0x80, 0x05, 0x90, 0x8B, 0x0B, 0xE0, 0xFF, 0x90, 0x8B, 0x0B, 0xEF, 0xF0,
+0x90, 0x8B, 0x0D, 0xE0, 0x60, 0x02, 0xE4, 0xF0, 0xE4, 0x90, 0x8B, 0x0C, 0xF0, 0x90, 0x05, 0x58,
+0x74, 0x03, 0xF0, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x53, 0x25,
+0xFD, 0x53, 0x25, 0xEF, 0xE5, 0x24, 0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x03, 0x12, 0x47, 0x8E,
+0x22, 0xEF, 0x64, 0x01, 0x70, 0x35, 0x7D, 0x78, 0x7F, 0x02, 0x12, 0x31, 0x2C, 0x7D, 0x02, 0x7F,
+0x03, 0x12, 0x31, 0x2C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x12,
+0x45, 0x9E, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x03, 0x12, 0x7D, 0xC1, 0x90, 0x06, 0x04, 0xE0,
+0x54, 0x7F, 0xF0, 0x90, 0x06, 0x0A, 0xE0, 0x54, 0xF8, 0xF0, 0x22, 0x90, 0x01, 0x36, 0x74, 0x7B,
+0xF0, 0xA3, 0x74, 0x02, 0xF0, 0x7D, 0x7B, 0xFF, 0x12, 0x31, 0x9D, 0x7D, 0x02, 0x7F, 0x03, 0x12,
+0x31, 0x9D, 0x90, 0x06, 0x04, 0xE0, 0x44, 0x80, 0xF0, 0x90, 0x06, 0x0A, 0xE0, 0x44, 0x07, 0xF0,
+0x12, 0x4B, 0x4F, 0xE5, 0x21, 0x20, 0xE0, 0x05, 0xE4, 0x90, 0x8B, 0x0D, 0xF0, 0x22, 0xE4, 0x90,
+0x8A, 0xC5, 0xF0, 0x90, 0x06, 0xA9, 0xE0, 0x90, 0x8A, 0xC5, 0xF0, 0xE0, 0x54, 0xC0, 0x70, 0x09,
+0x53, 0x25, 0xFE, 0x53, 0x25, 0xFD, 0x12, 0x4A, 0xFC, 0x90, 0x8A, 0xC5, 0xE0, 0x30, 0xE6, 0x15,
+0x43, 0x25, 0x01, 0x90, 0x8B, 0x1A, 0xE0, 0x64, 0x02, 0x60, 0x05, 0x12, 0x4A, 0x97, 0x80, 0x08,
+0x12, 0x49, 0x49, 0x80, 0x03, 0x53, 0x25, 0xFE, 0x90, 0x8A, 0xC5, 0xE0, 0x30, 0xE7, 0x27, 0x43,
+0x25, 0x02, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x11, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4,
+0xFB, 0xFD, 0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74, 0x05, 0xF0, 0x90,
+0x8B, 0x1B, 0x74, 0x01, 0xF0, 0x22, 0x53, 0x25, 0xFD, 0x22, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x8B,
+0x12, 0x4B, 0x43, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x12, 0x24, 0x62, 0xF5, 0x24, 0x14, 0x60,
+0x0E, 0x14, 0x60, 0x1F, 0x14, 0x60, 0x31, 0x24, 0x03, 0x70, 0x44, 0x7F, 0x01, 0x80, 0x3D, 0x90,
+0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFD, 0xE4, 0xFF, 0x12, 0x4A,
+0x07, 0x80, 0x29, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFD,
+0x7F, 0x01, 0x12, 0x4A, 0x07, 0x1F, 0x80, 0x14, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00,
+0x02, 0x12, 0x42, 0x20, 0xFD, 0x7F, 0x02, 0x12, 0x4A, 0x07, 0xE4, 0xFF, 0x12, 0x47, 0x21, 0x22,
+0xE4, 0x90, 0x8A, 0xCB, 0xF0, 0xE5, 0x24, 0x60, 0x49, 0x90, 0x8B, 0x1B, 0xE0, 0x60, 0x0D, 0xE4,
+0xF0, 0x53, 0x25, 0xFD, 0xE5, 0x25, 0x54, 0x07, 0x70, 0x38, 0x80, 0x33, 0x90, 0x8B, 0x0C, 0xE0,
+0x04, 0xF0, 0x53, 0x25, 0xEF, 0x90, 0x8A, 0xCB, 0xE0, 0xFF, 0x90, 0x8B, 0x10, 0xE0, 0x2F, 0xFF,
+0xE4, 0x33, 0xFE, 0x90, 0x8B, 0x0C, 0xE0, 0xD3, 0x9F, 0xEE, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98,
+0x40, 0x0D, 0xE5, 0x21, 0xB4, 0x01, 0x0B, 0xA3, 0xE0, 0x70, 0x07, 0xE0, 0x04, 0xF0, 0x22, 0x12,
+0x4A, 0xFC, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F, 0x63, 0x90, 0x04, 0x1D, 0xE0,
+0x60, 0x24, 0x90, 0x05, 0x22, 0xE0, 0xF5, 0x66, 0x74, 0xFF, 0xF0, 0x12, 0x7E, 0x9A, 0xBF, 0x01,
+0x0D, 0x90, 0x8A, 0xF9, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xFD, 0x12, 0x45, 0x09, 0x90, 0x05,
+0x22, 0xE5, 0x66, 0xF0, 0x80, 0x0D, 0x90, 0x8A, 0xF9, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xFD,
+0x12, 0x45, 0x09, 0x90, 0x04, 0x1F, 0x74, 0x20, 0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE5, 0x24,
+0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x41, 0x90, 0x8B, 0x1A, 0xE0, 0x60, 0x2B, 0x12, 0x45, 0x9E,
+0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x58, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92,
+0x74, 0x01, 0xF0, 0x90, 0x8B, 0x18, 0xF0, 0x22, 0xE5, 0x22, 0x54, 0x0F, 0xC3, 0x94, 0x04, 0x50,
+0x07, 0x7D, 0x01, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x22, 0x90, 0x01, 0x5F, 0xE4, 0xF0, 0x90, 0x01,
+0x3C, 0x74, 0x08, 0xF0, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E,
+0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x5C, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x5F, 0x74, 0x05,
+0xF0, 0x90, 0x06, 0x92, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x17, 0x14, 0xF0, 0xE5, 0x22, 0x54, 0x0F,
+0xC3, 0x94, 0x0C, 0x50, 0x0D, 0x12, 0x45, 0x9E, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x03, 0x12,
+0x7D, 0xC1, 0x22, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x37, 0xE5, 0x25, 0x54, 0x03, 0x70,
+0x31, 0xE5, 0x23, 0x54, 0x0F, 0xD3, 0x94, 0x02, 0x50, 0x28, 0xE5, 0x25, 0x20, 0xE2, 0x23, 0xE5,
+0x25, 0x20, 0xE4, 0x1E, 0x90, 0x8B, 0x0D, 0xE0, 0x70, 0x18, 0x90, 0x8B, 0x12, 0xE0, 0x70, 0x12,
+0xE5, 0x26, 0x70, 0x0E, 0x90, 0x01, 0xB9, 0xE4, 0xF0, 0x90, 0x01, 0xB8, 0x74, 0x04, 0xF0, 0x7F,
+0x01, 0x22, 0x7F, 0x00, 0x22, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x27, 0x90, 0x8B, 0x18,
+0xE0, 0x70, 0x21, 0x90, 0x8B, 0x17, 0xE0, 0x70, 0x1B, 0xE5, 0x23, 0x54, 0x0F, 0xD3, 0x94, 0x04,
+0x50, 0x12, 0xE5, 0x26, 0x70, 0x0E, 0x90, 0x01, 0xB9, 0xE4, 0xF0, 0x90, 0x01, 0xB8, 0x74, 0x08,
+0xF0, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0xEF, 0x24, 0xFE, 0x60, 0x0B, 0x04, 0x70, 0x22, 0x90,
+0x8B, 0x19, 0x74, 0x01, 0xF0, 0x80, 0x16, 0xED, 0x70, 0x0A, 0x90, 0x8B, 0x16, 0xE0, 0x90, 0x8B,
+0x19, 0xF0, 0x80, 0x05, 0x90, 0x8B, 0x19, 0xED, 0xF0, 0x90, 0x8B, 0x19, 0xE0, 0x90, 0x8B, 0x0B,
+0xF0, 0x22, 0x90, 0x01, 0x37, 0x74, 0x02, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x7E,
+0x9A, 0xEF, 0x70, 0x06, 0x90, 0x01, 0xC8, 0x74, 0xFD, 0xF0, 0x7D, 0x02, 0x7F, 0x03, 0x12, 0x31,
+0x9D, 0x12, 0x7C, 0x50, 0x53, 0x22, 0xF0, 0x43, 0x22, 0x02, 0x22, 0xEF, 0x60, 0x0F, 0x74, 0x21,
+0x2D, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x10, 0xF0, 0x22, 0x74, 0x21, 0x2D,
+0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xEF, 0xF0, 0x22, 0x90, 0x06, 0x04, 0xE0,
+0x54, 0xBF, 0xF0, 0xEF, 0x60, 0x0A, 0xE5, 0x21, 0xB4, 0x01, 0x05, 0xE4, 0xFF, 0x12, 0x48, 0xB3,
+0x53, 0x22, 0xF0, 0x43, 0x22, 0x0C, 0x22, 0x90, 0x04, 0x1D, 0xE0, 0x70, 0x14, 0x90, 0x8A, 0xF8,
+0xE0, 0xFF, 0xE4, 0xFD, 0x12, 0x5F, 0xFD, 0x8E, 0x69, 0x8F, 0x6A, 0x90, 0x04, 0x1F, 0x74, 0x20,
+0xF0, 0x22, 0x90, 0x8B, 0x52, 0xEF, 0xF0, 0x12, 0x7D, 0x42, 0x90, 0x8B, 0x52, 0xE0, 0x60, 0x05,
+0x90, 0x05, 0x22, 0xE4, 0xF0, 0x53, 0x22, 0xF0, 0x43, 0x22, 0x04, 0x22, 0x90, 0x06, 0x04, 0xE0,
+0x44, 0x40, 0xF0, 0xE5, 0x21, 0xB4, 0x01, 0x05, 0x7F, 0x01, 0x12, 0x48, 0xB3, 0x53, 0x22, 0xF0,
+0x43, 0x22, 0x04, 0x22, 0xE5, 0x23, 0x30, 0xE6, 0x12, 0xE5, 0x23, 0x54, 0x0F, 0xFF, 0x90, 0x01,
+0x2F, 0xE0, 0x54, 0x80, 0x4F, 0x64, 0x80, 0xF0, 0x53, 0x23, 0xBF, 0x22, 0x90, 0x8B, 0x2C, 0xE0,
+0x30, 0xE0, 0x05, 0xAF, 0x23, 0x02, 0x7E, 0x06, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x22,
+0x53, 0x22, 0xF0, 0x43, 0x22, 0x01, 0x12, 0x4B, 0x5A, 0x12, 0x4B, 0x5B, 0x53, 0x22, 0xF0, 0x43,
+0x22, 0x02, 0x22, 0x41, 0x8A, 0xF6, 0x00, 0x41, 0x8B, 0x05, 0x00, 0x41, 0x8B, 0x51, 0x00, 0x41,
+0x8B, 0x53, 0x00, 0x00, 0x90, 0x04, 0x1B, 0xE0, 0x54, 0x7F, 0x64, 0x7F, 0x7F, 0x01, 0x60, 0x02,
+0x7F, 0x00, 0x22, 0xE4, 0x90, 0x8B, 0x1B, 0xF0, 0x90, 0x8B, 0x0C, 0xF0, 0xF5, 0x25, 0x22, 0x90,
+0x8B, 0x13, 0xE0, 0xA3, 0xE0, 0x90, 0x05, 0x58, 0xF0, 0x22, 0x22, 0x22, 0xF0, 0x90, 0x8B, 0x0F,
+0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x58, 0x7E, 0x01, 0xD3, 0x10, 0xAF, 0x01,
+0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x3D, 0xE0, 0xFB, 0xA3, 0xE0, 0xF5, 0x44, 0xE4, 0xF5, 0x45, 0x12,
+0x30, 0x62, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xC0, 0xE0, 0xC0, 0xF0, 0xC0, 0x83, 0xC0, 0x82, 0xC0,
+0xD0, 0x75, 0xD0, 0x00, 0xC0, 0x00, 0xC0, 0x01, 0xC0, 0x02, 0xC0, 0x03, 0xC0, 0x04, 0xC0, 0x05,
+0xC0, 0x06, 0xC0, 0x07, 0x75, 0x0E, 0x00, 0x90, 0x01, 0xC4, 0x74, 0x87, 0xF0, 0x74, 0x4B, 0xA3,
+0xF0, 0x53, 0x91, 0xDF, 0x90, 0x01, 0x3C, 0xE0, 0x55, 0x30, 0xF5, 0x34, 0xA3, 0xE0, 0x55, 0x31,
+0xF5, 0x35, 0xA3, 0xE0, 0x55, 0x32, 0xF5, 0x36, 0xA3, 0xE0, 0x55, 0x33, 0xF5, 0x37, 0xE5, 0x34,
+0x30, 0xE0, 0x51, 0x90, 0x01, 0x3C, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x1F,
+0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x18, 0x90, 0x8B, 0x34, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xE0,
+0x64, 0x03, 0x60, 0x0B, 0x7F, 0x01, 0xB1, 0xE0, 0xEF, 0x70, 0x04, 0x7F, 0x02, 0xD1, 0x89, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x1D, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x16, 0x90, 0x8B,
+0x2E, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x09, 0xE4, 0xFF, 0xB1, 0xE0, 0xEF,
+0x70, 0x02, 0xD1, 0x56, 0xE5, 0x34, 0x30, 0xE1, 0x08, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x11,
+0x60, 0xE5, 0x34, 0x30, 0xE2, 0x28, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0, 0x90, 0x06, 0x92, 0xE0,
+0x30, 0xE0, 0x14, 0x90, 0x8B, 0x3D, 0xE4, 0x71, 0x5C, 0x90, 0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90,
+0x06, 0x92, 0x74, 0x01, 0xF0, 0x80, 0x07, 0x90, 0x8B, 0x18, 0xE4, 0xF0, 0x51, 0xFC, 0xE5, 0x34,
+0x30, 0xE3, 0x38, 0x90, 0x01, 0x3C, 0x74, 0x08, 0xF0, 0x90, 0x06, 0x92, 0xE0, 0x30, 0xE1, 0x24,
+0x90, 0x8B, 0x3D, 0xE4, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x5C, 0x7E, 0x01, 0x71, 0x6C, 0x90, 0x01, 0x5F, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92, 0x74,
+0x02, 0xF0, 0x80, 0x07, 0x90, 0x8B, 0x17, 0xE4, 0xF0, 0x51, 0xFC, 0xE5, 0x34, 0x30, 0xE4, 0x09,
+0x90, 0x01, 0x3C, 0x74, 0x10, 0xF0, 0x12, 0x51, 0xC9, 0xE5, 0x34, 0x30, 0xE5, 0x06, 0x90, 0x01,
+0x3C, 0x74, 0x20, 0xF0, 0xE5, 0x35, 0x30, 0xE0, 0x10, 0x90, 0x01, 0x3D, 0x74, 0x01, 0xF0, 0x90,
+0x00, 0x83, 0xE0, 0xF5, 0x23, 0x51, 0xE4, 0x51, 0xFC, 0xE5, 0x35, 0x30, 0xE2, 0x06, 0x90, 0x01,
+0x3D, 0x74, 0x04, 0xF0, 0xE5, 0x35, 0x30, 0xE4, 0x1B, 0x90, 0x01, 0x3D, 0x74, 0x10, 0xF0, 0x90,
+0x8B, 0x05, 0xE0, 0x60, 0x0F, 0xE4, 0xF0, 0x90, 0x05, 0x53, 0xE0, 0x44, 0x01, 0xF0, 0x90, 0x05,
+0xFD, 0xE0, 0x04, 0xF0, 0xE5, 0x36, 0x30, 0xE0, 0x75, 0x90, 0x01, 0x3E, 0x74, 0x01, 0xF0, 0x90,
+0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x18, 0x90, 0x8B, 0x36, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x64,
+0x03, 0x60, 0x0B, 0x7F, 0x01, 0xB1, 0xE0, 0xEF, 0x60, 0x04, 0x7F, 0x01, 0xD1, 0x89, 0x90, 0x8B,
+0x2C, 0xE0, 0x30, 0xE0, 0x49, 0x90, 0x8B, 0x30, 0xE4, 0xF0, 0xFF, 0xB1, 0xE0, 0xEF, 0x60, 0x3E,
+0x12, 0x65, 0x5F, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0x64, 0x06, 0x60, 0x32, 0xEF, 0xB4, 0x04, 0x02,
+0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF, 0x80, 0x14, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x05, 0x7F,
+0x01, 0x12, 0x65, 0x82, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x12, 0x7D, 0xC1, 0xE5, 0x36,
+0x30, 0xE1, 0x47, 0x90, 0x01, 0x3E, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x19,
+0x90, 0x8B, 0x36, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x64, 0x03, 0x60, 0x0B, 0x7F, 0x01,
+0xB1, 0xE0, 0xEF, 0x70, 0x04, 0x7F, 0x02, 0xD1, 0x89, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x1A,
+0x90, 0x8B, 0x30, 0x74, 0x01, 0xF0, 0x12, 0x7E, 0x2B, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60,
+0x09, 0xE4, 0xFF, 0xB1, 0xE0, 0xEF, 0x70, 0x02, 0xD1, 0x56, 0x74, 0x87, 0x04, 0x90, 0x01, 0xC4,
+0xF0, 0x74, 0x4B, 0xA3, 0xF0, 0xD0, 0x07, 0xD0, 0x06, 0xD0, 0x05, 0xD0, 0x04, 0xD0, 0x03, 0xD0,
+0x02, 0xD0, 0x01, 0xD0, 0x00, 0xD0, 0xD0, 0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xF0, 0xD0, 0xE0, 0x32,
+0xEF, 0x64, 0x01, 0x70, 0x3D, 0x90, 0x8B, 0x35, 0xE0, 0x60, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B,
+0x08, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x34, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22,
+0x90, 0x8B, 0x32, 0xE0, 0xFF, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x0B, 0xEF, 0xC4, 0x13, 0x54,
+0x07, 0x30, 0xE0, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x36, 0xE0, 0x7F, 0x01, 0x60, 0x36, 0x7F,
+0x00, 0x22, 0x90, 0x8B, 0x2F, 0xE0, 0x60, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x08, 0xE0, 0x60,
+0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x2E, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x2C,
+0xE0, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x30, 0xE0, 0x7F,
+0x01, 0x60, 0x02, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x0D, 0xE0, 0x60, 0x16, 0x90, 0x8B, 0x2D, 0xE0,
+0x70, 0x04, 0x7F, 0x05, 0x80, 0x1F, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x01, 0x70, 0x1A, 0x7F, 0x02,
+0x80, 0x13, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01, 0x04, 0x7F, 0x03, 0x80, 0x08, 0x90, 0x8B, 0x2D,
+0xE0, 0x70, 0x05, 0x7F, 0x04, 0x12, 0x65, 0x82, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x8B, 0x33, 0xE0, 0x90, 0x8B, 0x55, 0xF0, 0x6F, 0x70, 0x02, 0xE1, 0x55, 0xEF, 0x14, 0x60,
+0x3B, 0x14, 0x60, 0x5F, 0x14, 0x70, 0x02, 0xE1, 0x30, 0x24, 0x03, 0x60, 0x02, 0xE1, 0x55, 0x90,
+0x8B, 0x55, 0xE0, 0xB4, 0x03, 0x04, 0xF1, 0xC2, 0xE1, 0x55, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x02,
+0x04, 0xF1, 0xAF, 0xE1, 0x55, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x04, 0x04, 0xF1, 0xC6, 0xE1, 0x55,
+0x90, 0x8B, 0x55, 0xE0, 0x64, 0x01, 0x70, 0x7D, 0xF1, 0xB1, 0x80, 0x79, 0x90, 0x8B, 0x55, 0xE0,
+0xFF, 0xB4, 0x03, 0x04, 0xF1, 0xCA, 0x80, 0x6D, 0xEF, 0xB4, 0x02, 0x04, 0xF1, 0xA1, 0x80, 0x65,
+0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x04, 0x04, 0xF1, 0xD5, 0x80, 0x59, 0xEF, 0x70, 0x56, 0xF1,
+0x8E, 0x80, 0x52, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x03, 0x05, 0x12, 0x7C, 0x41, 0x80, 0x46, 0x90,
+0x8B, 0x55, 0xE0, 0xB4, 0x01, 0x04, 0xF1, 0x72, 0x80, 0x3B, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x04,
+0x05, 0x12, 0x7D, 0x23, 0x80, 0x2F, 0x90, 0x8B, 0x55, 0xE0, 0x70, 0x29, 0xF1, 0x70, 0x80, 0x25,
+0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x01, 0x04, 0xF1, 0x5A, 0x80, 0x19, 0xEF, 0xB4, 0x02, 0x04,
+0xF1, 0x6B, 0x80, 0x11, 0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x04, 0x04, 0xF1, 0x5A, 0x80, 0x05,
+0xEF, 0x70, 0x02, 0xF1, 0x67, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x05, 0x22, 0x74, 0x6F, 0xF0,
+0x90, 0x8B, 0x33, 0x74, 0x03, 0xF0, 0x22, 0xF1, 0x8E, 0x80, 0xEF, 0x12, 0x7D, 0x42, 0x80, 0xEA,
+0xF1, 0x8E, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x7E, 0x9A, 0xEF, 0x70, 0x06, 0x90, 0x01,
+0xC8, 0x74, 0xFD, 0xF0, 0x12, 0x7C, 0x50, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x01,
+0x3E, 0x74, 0x03, 0xF0, 0xFD, 0x7F, 0x02, 0x12, 0x31, 0xB7, 0x90, 0x8B, 0x33, 0x74, 0x01, 0xF0,
+0x22, 0x12, 0x7D, 0x42, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0x04, 0xF0, 0x22, 0xF1,
+0xA1, 0x7D, 0x03, 0x7F, 0x02, 0x12, 0x31, 0x49, 0x90, 0x05, 0x27, 0xE4, 0xF0, 0x90, 0x8B, 0x33,
+0xF0, 0x22, 0xF1, 0xCA, 0x80, 0xEB, 0xF1, 0xD5, 0x80, 0xE7, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90,
+0x8B, 0x33, 0x04, 0xF0, 0x22, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0x04, 0xF0, 0x22,
+0xF1, 0x8E, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x33, 0x74, 0x04, 0xF0, 0x22, 0x90,
+0x02, 0x84, 0xEF, 0xF0, 0xA3, 0xEE, 0xF0, 0xA3, 0x74, 0x05, 0xF0, 0x22, 0xEF, 0x8E, 0xF0, 0x12,
+0x43, 0xBA, 0x50, 0x1A, 0x00, 0x40, 0x50, 0x42, 0x00, 0x80, 0x50, 0x6D, 0x01, 0x00, 0x50, 0x81,
+0x02, 0x00, 0x50, 0x99, 0x04, 0x00, 0x00, 0x00, 0x50, 0xB6, 0xED, 0x54, 0x3F, 0x70, 0x04, 0xFE,
+0xFF, 0x80, 0x04, 0x7E, 0x00, 0x7F, 0x40, 0xEF, 0x2D, 0xFF, 0xEE, 0x3C, 0xFE, 0xEF, 0x78, 0x06,
+0xCE, 0xC3, 0x13, 0xCE, 0x13, 0xD8, 0xF9, 0x78, 0x06, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9,
+0x80, 0x26, 0xED, 0x54, 0x7F, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x00, 0x7F, 0x80, 0xEF,
+0x2D, 0xFF, 0xEE, 0x3C, 0xFE, 0xEF, 0x78, 0x07, 0xCE, 0xC3, 0x13, 0xCE, 0x13, 0xD8, 0xF9, 0x78,
+0x07, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFD, 0xAC, 0x06, 0x80, 0x49, 0xED, 0x70, 0x04,
+0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x01, 0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0x7D, 0x00, 0xFC, 0x80,
+0x35, 0xEC, 0x54, 0x01, 0x4D, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x02, 0x7F, 0x00, 0xEF,
+0x2D, 0xEE, 0x3C, 0xC3, 0x13, 0x7D, 0x00, 0x80, 0x1A, 0xEC, 0x54, 0x03, 0x4D, 0x70, 0x04, 0xFE,
+0xFF, 0x80, 0x04, 0x7E, 0x04, 0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0x13, 0x13, 0x54, 0x3F, 0x7D,
+0x00, 0x25, 0xE0, 0x25, 0xE0, 0xFC, 0xAE, 0x04, 0xAF, 0x05, 0x22, 0x90, 0x01, 0xE4, 0x74, 0x58,
+0xF0, 0xA3, 0x74, 0x02, 0xF0, 0x22, 0xE4, 0x90, 0x8A, 0xCC, 0xF0, 0xA3, 0xF0, 0x75, 0x8E, 0x02,
+0x91, 0x0E, 0x12, 0x68, 0x44, 0x90, 0x8B, 0x07, 0xEF, 0xF0, 0x12, 0x68, 0x51, 0x90, 0x8B, 0x09,
+0xEF, 0xF0, 0x12, 0x68, 0x5D, 0x90, 0x8A, 0xF4, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xE4, 0xF5, 0x55,
+0xF5, 0x21, 0x12, 0x72, 0x55, 0x12, 0x44, 0x9E, 0x12, 0x2E, 0x01, 0x7F, 0x03, 0x12, 0x78, 0x42,
+0x12, 0x7C, 0x3D, 0x12, 0x68, 0x0A, 0x12, 0x68, 0x75, 0x12, 0x68, 0x8A, 0x12, 0x68, 0x28, 0x12,
+0x68, 0x43, 0x90, 0x8A, 0xCE, 0xE5, 0xD9, 0xF0, 0x31, 0x5F, 0xC2, 0xAF, 0x90, 0x00, 0x80, 0xE0,
+0x44, 0x40, 0xF0, 0x51, 0x0E, 0x75, 0xE8, 0x03, 0x43, 0xA8, 0x85, 0xD2, 0xAF, 0x11, 0xBB, 0x90,
+0x8A, 0xCC, 0xE0, 0x64, 0x01, 0xF0, 0x24, 0xC6, 0x90, 0x01, 0xC4, 0xF0, 0x74, 0x50, 0xA3, 0xF0,
+0xE5, 0x55, 0x30, 0xE4, 0x09, 0xC2, 0xAF, 0x53, 0x55, 0xEF, 0xD2, 0xAF, 0xB1, 0x59, 0xE5, 0x55,
+0x30, 0xE6, 0xDC, 0xC2, 0xAF, 0x53, 0x55, 0xBF, 0xD2, 0xAF, 0x12, 0x6B, 0xBD, 0x80, 0xD0, 0x90,
+0x01, 0x3C, 0x74, 0xFF, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x01, 0x34, 0xF0, 0xA3, 0xF0, 0xA3,
+0xF0, 0xA3, 0xF0, 0xFD, 0x7F, 0x54, 0x31, 0x88, 0x7D, 0xFF, 0x7F, 0x55, 0x31, 0x88, 0x7D, 0xFF,
+0x7F, 0x56, 0x31, 0x88, 0x7D, 0xFF, 0x7F, 0x57, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F,
+0x82, 0x75, 0x83, 0x00, 0xED, 0xF0, 0x51, 0x0E, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x01, 0x30,
+0xE4, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x01, 0x38, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0,
+0xA3, 0xF0, 0xFD, 0x7F, 0x50, 0x31, 0x88, 0xE4, 0xFD, 0x7F, 0x51, 0x31, 0x88, 0xE4, 0xFD, 0x7F,
+0x52, 0x31, 0x88, 0xE4, 0xFD, 0x7F, 0x53, 0x80, 0xBF, 0xE5, 0x5E, 0x64, 0x01, 0x70, 0x3B, 0x71,
+0x4E, 0xBF, 0x01, 0x04, 0x7F, 0x01, 0x71, 0x42, 0x90, 0x00, 0x46, 0xE0, 0x44, 0x04, 0xFD, 0x7F,
+0x46, 0x31, 0x88, 0x90, 0x00, 0x44, 0xE0, 0x54, 0xFB, 0xFD, 0x7F, 0x44, 0x31, 0x88, 0x90, 0x00,
+0x46, 0xE0, 0x54, 0xFB, 0xFD, 0x7F, 0x46, 0x31, 0x88, 0x7F, 0x02, 0x71, 0x6A, 0x8F, 0x62, 0x90,
+0x01, 0xC9, 0xE5, 0x62, 0xF0, 0xB4, 0x01, 0x02, 0x51, 0xE2, 0x22, 0xE0, 0x5F, 0xF0, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x7F, 0x10, 0xDF, 0xFE, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xE0, 0xED, 0xF0, 0x90, 0x8A, 0xDF, 0xEF, 0xF0, 0xD3,
+0x94, 0x07, 0x50, 0x4E, 0xA3, 0xE0, 0x70, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8,
+0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x47, 0xE0, 0x5F, 0xF0,
+0x80, 0x17, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33,
+0xD8, 0xFC, 0xFF, 0x90, 0x00, 0x47, 0xE0, 0x4F, 0xF0, 0x51, 0x0E, 0x90, 0x8A, 0xDF, 0xE0, 0xFF,
+0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x46,
+0x80, 0x59, 0x90, 0x8A, 0xDF, 0xE0, 0x24, 0xF8, 0xF0, 0xA3, 0xE0, 0x70, 0x1D, 0x90, 0x8A, 0xDF,
+0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xC4, 0x54, 0xF0,
+0xF4, 0xFF, 0x90, 0x00, 0x43, 0xE0, 0x5F, 0xF0, 0x80, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74,
+0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xC4, 0x54, 0xF0, 0xFF, 0x90, 0x00,
+0x43, 0xE0, 0x4F, 0xF0, 0x51, 0x0E, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08,
+0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0x51, 0x0B, 0xD0, 0xD0, 0x92,
+0xAF, 0x22, 0x90, 0x00, 0x49, 0xE0, 0x90, 0x8B, 0x54, 0xF0, 0xE0, 0x54, 0x0F, 0xF0, 0x44, 0xF0,
+0xFD, 0x7F, 0x49, 0x31, 0x88, 0x90, 0x8B, 0x54, 0xE0, 0x44, 0xB0, 0xFD, 0x7F, 0x49, 0x21, 0x88,
+0x90, 0x8A, 0xDD, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x75, 0x5E, 0x01, 0x8E, 0x5F, 0xF5, 0x60, 0xE4,
+0xFD, 0x7F, 0x0B, 0x51, 0x1E, 0xE4, 0xFD, 0x7F, 0x02, 0x51, 0x1E, 0x71, 0x4E, 0xE4, 0xFF, 0x71,
+0x42, 0xE4, 0xF5, 0x62, 0x90, 0x01, 0xC9, 0xE5, 0x62, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFC, 0xA3,
+0xE0, 0xFD, 0xEC, 0xFB, 0x8D, 0x44, 0xE4, 0xF5, 0x45, 0x7D, 0x01, 0x7F, 0x60, 0x7E, 0x01, 0x02,
+0x30, 0x62, 0x90, 0x01, 0xCA, 0xE5, 0x61, 0xF0, 0xEF, 0x60, 0x02, 0x51, 0xE2, 0x22, 0x7F, 0x0B,
+0x71, 0x6A, 0xEF, 0x65, 0x61, 0x60, 0x10, 0xE5, 0x61, 0xB4, 0x01, 0x05, 0xE4, 0xF5, 0x61, 0x80,
+0x03, 0x75, 0x61, 0x01, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0,
+0xD0, 0x90, 0x8B, 0x57, 0xEF, 0xF0, 0xD3, 0x94, 0x07, 0x50, 0x43, 0xE0, 0xFF, 0x74, 0x01, 0xA8,
+0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x46, 0x51, 0x0B, 0x90,
+0x8B, 0x57, 0xE0, 0xFD, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x05, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE,
+0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x00, 0x44, 0xE0, 0xFB, 0xE4, 0xFE, 0xEF, 0x5B, 0xA8, 0x05,
+0x08, 0x80, 0x06, 0xCE, 0xA2, 0xE7, 0x13, 0xCE, 0x13, 0xD8, 0xF8, 0xFF, 0x80, 0x4B, 0x90, 0x8B,
+0x57, 0xE0, 0x24, 0xF8, 0xF0, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33,
+0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0xE0, 0x5F, 0xF0, 0x51, 0x0E, 0x90, 0x8B, 0x57, 0xE0,
+0xFD, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x05, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0x90, 0x00, 0x42, 0xE0, 0xFB, 0xE4, 0xFE, 0xEF, 0x5B, 0xA8, 0x05, 0x08, 0x80, 0x06,
+0xCE, 0xA2, 0xE7, 0x13, 0xCE, 0x13, 0xD8, 0xF8, 0xFF, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE4, 0x90,
+0x8B, 0x04, 0xF0, 0x90, 0x00, 0x80, 0xE0, 0x44, 0x80, 0xFD, 0x7F, 0x80, 0x21, 0x88, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDA, 0x12, 0x43,
+0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0xFA, 0xE5, 0xF0, 0x24, 0x00, 0xFF, 0xE4, 0x3A, 0xFE,
+0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0xEE, 0x8F, 0xF0, 0x12, 0x43, 0x19, 0x12,
+0x24, 0x62, 0xFF, 0x60, 0x2C, 0xB5, 0x5E, 0x16, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00,
+0x01, 0x12, 0x42, 0xC2, 0x65, 0x60, 0x70, 0x04, 0xE5, 0x5F, 0x65, 0xF0, 0x60, 0x22, 0x90, 0x8A,
+0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0xFF, 0xAE, 0xF0, 0x71, 0x00, 0x80,
+0x0F, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x24, 0x62, 0x65, 0x5E, 0x60, 0x02, 0x91, 0x95,
+0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE4, 0xF5, 0x5E, 0x7F, 0x60, 0x7E, 0x01, 0x8F, 0x82, 0x8E, 0x83,
+0xA3, 0xA3, 0xA3, 0xE4, 0xF0, 0x22, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x8B, 0xEF, 0x12, 0x43, 0x94,
+0x54, 0xE7, 0x01, 0x54, 0xDE, 0x02, 0x55, 0x0B, 0x03, 0x55, 0x14, 0x05, 0x55, 0x1D, 0x06, 0x55,
+0x58, 0x07, 0x55, 0x25, 0x08, 0x55, 0x2E, 0x09, 0x55, 0x36, 0x20, 0x55, 0x3F, 0x2C, 0x54, 0xF0,
+0x2D, 0x54, 0xF9, 0x2E, 0x55, 0x02, 0x3B, 0x55, 0x48, 0x4B, 0x00, 0x00, 0x55, 0x51, 0x90, 0x8A,
+0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0x85, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0x8B,
+0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0xB8, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02,
+0x75, 0x00, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x75, 0x39, 0x90, 0x8A, 0xD7, 0x12, 0x43,
+0x6B, 0x02, 0x75, 0x52, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74, 0x0F, 0x90, 0x8A, 0xD7,
+0x12, 0x43, 0x6B, 0xC1, 0xA6, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x75, 0x9A, 0x90, 0x8A,
+0xD7, 0x12, 0x43, 0x6B, 0x81, 0x1E, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x78, 0x81, 0x90,
+0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x7A, 0xC2, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x7C,
+0x2B, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x01, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x01, 0xCC, 0xE0, 0x54, 0x0F, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFD, 0x70,
+0x02, 0xC1, 0xA1, 0x90, 0x8B, 0x51, 0xE0, 0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80,
+0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xEF, 0x5D, 0x70, 0x02, 0xC1, 0x9A, 0x90,
+0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD0, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD0,
+0xF0, 0x75, 0x1D, 0x01, 0x75, 0x1E, 0x8A, 0x75, 0x1F, 0xD0, 0x75, 0x20, 0x01, 0x7B, 0x01, 0x7A,
+0x8A, 0x79, 0xD1, 0x12, 0x5E, 0xE4, 0x90, 0x8A, 0xD1, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x13, 0x54,
+0x01, 0x90, 0x8B, 0x51, 0x30, 0xE0, 0x59, 0xE0, 0x75, 0xF0, 0x02, 0x90, 0x00, 0x88, 0x12, 0x43,
+0x5F, 0xE0, 0x90, 0x8A, 0xD2, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x02, 0x90, 0x00, 0x89,
+0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD3, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90,
+0x01, 0xD1, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD4, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0,
+0x04, 0x90, 0x01, 0xD2, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD5, 0xF0, 0x90, 0x8B, 0x51, 0xE0,
+0x75, 0xF0, 0x04, 0x90, 0x01, 0xD3, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD6, 0xF0, 0x80, 0x33,
+0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD1, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD2, 0xF0, 0x90,
+0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD2, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD3,
+0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD3, 0x12, 0x43, 0x5F, 0xE0, 0x90,
+0x8A, 0xD4, 0xF0, 0xEF, 0x54, 0x7F, 0xFF, 0x7B, 0x01, 0x7A, 0x8A, 0x79, 0xD2, 0x91, 0xA6, 0x90,
+0x8A, 0xCF, 0xE0, 0xFF, 0x90, 0x8B, 0x51, 0xE0, 0xFE, 0x74, 0x01, 0xA8, 0x06, 0x08, 0x80, 0x02,
+0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0x5F, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0xFF, 0x74,
+0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0x90, 0x01, 0xCC, 0xF0, 0x90, 0x8B,
+0x51, 0xE0, 0x04, 0xF0, 0xE0, 0x54, 0x03, 0xF0, 0xA1, 0x6A, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x02,
+0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x00, 0x04, 0x12, 0x42, 0x20, 0xFF, 0x54, 0x1F, 0xFE,
+0xEF, 0x54, 0x20, 0xC4, 0x13, 0x54, 0x07, 0xFD, 0xAF, 0x06, 0x90, 0x8A, 0xDA, 0xEF, 0xF0, 0xA3,
+0xED, 0xF0, 0xA3, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x03, 0x12,
+0x42, 0x20, 0x54, 0xF0, 0xC4, 0x54, 0x0F, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x00, 0x04, 0x12, 0x42,
+0x20, 0x54, 0x40, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x90, 0x8A, 0xE0, 0xF0, 0x90, 0x8A, 0xDA, 0xE0,
+0xFF, 0x75, 0xF0, 0x09, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0xAD, 0x82, 0xAC, 0x83, 0x90, 0x8A,
+0xE1, 0xEC, 0xF0, 0xA3, 0xED, 0xF0, 0xEF, 0x75, 0xF0, 0x09, 0xA4, 0x24, 0x23, 0xF9, 0x74, 0x87,
+0x35, 0xF0, 0xFA, 0x7B, 0x01, 0xA3, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90,
+0x00, 0x03, 0x12, 0x42, 0x20, 0x54, 0x0F, 0xFF, 0x90, 0x8A, 0xE3, 0x12, 0x43, 0x6B, 0xEF, 0x12,
+0x42, 0x4D, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x90,
+0x8A, 0xE3, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0xEF, 0x12, 0x42, 0x5F, 0x90, 0x8A, 0xDC, 0x12,
+0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0x90, 0x8A, 0xE1, 0xE0, 0xFC, 0xA3, 0xE0,
+0xFD, 0xF5, 0x82, 0x8C, 0x83, 0xEF, 0xF0, 0x12, 0x24, 0x62, 0x8D, 0x82, 0x8C, 0x83, 0xA3, 0xF0,
+0x90, 0x8A, 0xDF, 0xE0, 0xFE, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0x24, 0xC1, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xDB, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87,
+0x29, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2A, 0x12, 0x43, 0x5F,
+0x74, 0x01, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2B, 0x12,
+0x43, 0x5F, 0xEE, 0xF0, 0x8F, 0x0F, 0xEF, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89,
+0xAF, 0x82, 0xF5, 0x10, 0x8F, 0x11, 0xE5, 0x0F, 0x75, 0xF0, 0x02, 0xA4, 0x24, 0x81, 0xF9, 0x74,
+0x86, 0x35, 0xF0, 0x75, 0x12, 0x01, 0xF5, 0x13, 0x89, 0x14, 0x75, 0xF0, 0x09, 0xE5, 0x0F, 0x90,
+0x87, 0x25, 0x12, 0x43, 0x5F, 0xAF, 0x82, 0x85, 0x83, 0x15, 0x8F, 0x16, 0xE5, 0x0F, 0x75, 0xF0,
+0x09, 0xA4, 0x24, 0x23, 0xF9, 0x74, 0x87, 0x35, 0xF0, 0x75, 0x17, 0x01, 0xF5, 0x18, 0x89, 0x19,
+0x74, 0xC1, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x12, 0x43, 0x94, 0x58,
+0x34, 0x00, 0x58, 0x49, 0x01, 0x58, 0x5E, 0x02, 0x58, 0x73, 0x03, 0x58, 0x9C, 0x04, 0x58, 0xB1,
+0x05, 0x58, 0xC6, 0x06, 0x58, 0xEC, 0x0C, 0x59, 0x19, 0x0D, 0x59, 0x46, 0x0E, 0x59, 0x73, 0x0F,
+0x00, 0x00, 0x59, 0xA7, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74, 0x15, 0x80, 0x3C, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74, 0x10, 0x80, 0x27, 0xE5, 0x0F,
+0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74,
+0x05, 0x80, 0x12, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0x74, 0xF0, 0xF0, 0xA3, 0xE4, 0xF0, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0x74, 0x0F, 0xF0, 0xA3, 0x74, 0x8F, 0xF0, 0x21, 0xA7, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0x0F, 0xF0, 0xA3, 0x74, 0xF5, 0x80,
+0x27, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0x0F,
+0xF0, 0xA3, 0x74, 0xF0, 0x80, 0x12, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0x74, 0x0D, 0xF0, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5,
+0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x21, 0xA7, 0x90, 0x04, 0x47, 0xE0,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x46, 0xE0, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x45, 0xE0, 0x85, 0x11, 0x82,
+0x85, 0x10, 0x83, 0xF0, 0x90, 0x04, 0x44, 0x21, 0x9E, 0x90, 0x04, 0x4B, 0xE0, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x4A, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x49, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83,
+0xF0, 0x90, 0x04, 0x48, 0x80, 0x58, 0x90, 0x04, 0x4F, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0x12, 0x42, 0x4D, 0x90, 0x04, 0x4E, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x01,
+0x12, 0x42, 0x5F, 0x90, 0x04, 0x4D, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xF0, 0x90, 0x04,
+0x4C, 0x80, 0x2B, 0x90, 0x04, 0x53, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D,
+0x90, 0x04, 0x52, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x01, 0x12, 0x42, 0x5F,
+0x90, 0x04, 0x51, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xF0, 0x90, 0x04, 0x50, 0xE0, 0x85,
+0x11, 0x82, 0x85, 0x10, 0x83, 0xA3, 0xF0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0xC0, 0x03, 0xC0,
+0x02, 0xC0, 0x01, 0x12, 0x24, 0x62, 0xFF, 0xAB, 0x17, 0xAA, 0x18, 0xA9, 0x19, 0x12, 0x24, 0x62,
+0x5F, 0xD0, 0x01, 0xD0, 0x02, 0xD0, 0x03, 0x12, 0x42, 0x4D, 0xAB, 0x12, 0xE5, 0x14, 0x24, 0x01,
+0xF9, 0xE4, 0x35, 0x13, 0xFA, 0xC0, 0x03, 0xC0, 0x02, 0xC0, 0x01, 0x12, 0x24, 0x62, 0xFF, 0xAB,
+0x17, 0xAA, 0x18, 0xA9, 0x19, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x5F, 0xD0, 0x01, 0xD0, 0x02,
+0xD0, 0x03, 0x12, 0x42, 0x4D, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xC0, 0x83, 0xC0, 0x82, 0xE0,
+0xFF, 0x85, 0x16, 0x82, 0x85, 0x15, 0x83, 0xE0, 0xFE, 0xEF, 0x5E, 0xD0, 0x82, 0xD0, 0x83, 0xF0,
+0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xA3, 0xC0, 0x83, 0xC0, 0x82, 0xE0, 0xFF, 0x85, 0x16, 0x82,
+0x85, 0x15, 0x83, 0xA3, 0xE0, 0xFE, 0xEF, 0x5E, 0xD0, 0x82, 0xD0, 0x83, 0xF0, 0xE5, 0x0F, 0x25,
+0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60,
+0x4B, 0x90, 0x8A, 0xE6, 0x74, 0x0B, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x00, 0x50,
+0x02, 0x41, 0xEC, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33,
+0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5,
+0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x0A, 0x90, 0x8A, 0xE6, 0xE0, 0x24, 0x10,
+0xA3, 0xF0, 0x80, 0x68, 0x90, 0x8A, 0xE6, 0xE0, 0x14, 0xF0, 0x80, 0xBB, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x47,
+0x90, 0x8A, 0xE6, 0x74, 0x0F, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x00, 0x40, 0x3C,
+0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9,
+0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0x5E,
+0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x08, 0x90, 0x8A, 0xE6, 0xE0, 0xA3, 0xF0, 0x80, 0x0D, 0x90,
+0x8A, 0xE6, 0xE0, 0x14, 0xF0, 0x80, 0xBF, 0xE4, 0x90, 0x8A, 0xE7, 0xF0, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x46,
+0xE4, 0x90, 0x8A, 0xE6, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x40, 0x02, 0x61,
+0xA5, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0,
+0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x06, 0x90, 0x8A, 0xE6, 0xE0, 0x80, 0x63, 0x90, 0x8A,
+0xE6, 0xE0, 0x04, 0xF0, 0x80, 0xBF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x46, 0xE4, 0x90, 0x8A, 0xE6, 0xF0, 0x90,
+0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x0C, 0x50, 0x3C, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08,
+0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81,
+0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x08,
+0x90, 0x8A, 0xE6, 0xE0, 0x24, 0x10, 0x80, 0x09, 0x90, 0x8A, 0xE6, 0xE0, 0x04, 0xF0, 0x80, 0xBF,
+0xE4, 0x90, 0x8A, 0xE8, 0xF0, 0x90, 0x8A, 0xE7, 0xE0, 0xFF, 0x75, 0xF0, 0x09, 0xE5, 0x0F, 0x90,
+0x87, 0x27, 0x12, 0x43, 0x5F, 0xEF, 0xF0, 0x90, 0x8A, 0xE8, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xE5,
+0x0F, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0xE5, 0x0F, 0xC3, 0x94, 0x20, 0x50, 0x32,
+0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0xD3, 0x9F, 0x40, 0x02,
+0x80, 0x18, 0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0xC3, 0x9E,
+0x50, 0x08, 0x90, 0x8A, 0xE8, 0xE0, 0xA3, 0xF0, 0x80, 0x08, 0x90, 0x8A, 0xE7, 0xE0, 0x90, 0x8A,
+0xE9, 0xF0, 0x90, 0x8A, 0xE9, 0xE0, 0xFD, 0xAF, 0x0F, 0x91, 0x4E, 0x90, 0x8A, 0xE9, 0xE0, 0xFF,
+0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0, 0x90, 0x8A, 0xE7,
+0xE0, 0xFF, 0xD3, 0x94, 0x13, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x03, 0xF0, 0x22, 0xEF, 0xD3,
+0x94, 0x0B, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x02, 0xF0, 0x22, 0xEF, 0xD3, 0x94, 0x03, 0x40,
+0x07, 0x90, 0x87, 0x22, 0x74, 0x01, 0xF0, 0x22, 0xE4, 0x90, 0x87, 0x22, 0xF0, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x74, 0x84, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xED,
+0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xAC, 0x07, 0xED, 0x54, 0x1F, 0x90, 0x8A, 0xC7, 0xF0, 0x74,
+0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xC5, 0xF0, 0x90, 0x8A,
+0xC8, 0x74, 0x01, 0xF0, 0xEB, 0xC3, 0x94, 0x01, 0x40, 0x02, 0x80, 0x37, 0x90, 0x8A, 0xC5, 0xE0,
+0x25, 0x0D, 0xFF, 0xA3, 0xF0, 0xA3, 0xE0, 0x90, 0x41, 0x9E, 0x93, 0xFE, 0xEF, 0xD3, 0x9E, 0x40,
+0x10, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xAF, 0x04, 0x80,
+0x9D, 0x90, 0x8A, 0xC6, 0xE0, 0xFF, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEF, 0xF0, 0x22, 0xAD, 0x07, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0,
+0xFF, 0x90, 0x8A, 0xCA, 0xF0, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0,
+0x54, 0x1F, 0x90, 0x8A, 0xC9, 0xF0, 0xD3, 0x9F, 0x40, 0x06, 0xA3, 0xE0, 0x90, 0x8A, 0xC9, 0xF0,
+0x90, 0x8A, 0xC9, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83,
+0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13, 0xFE, 0xEF, 0x13,
+0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3,
+0xEF, 0xF0, 0xAF, 0x05, 0x90, 0x8A, 0xC9, 0xE0, 0xFD, 0x91, 0x4E, 0x90, 0x8A, 0xC9, 0xE0, 0xFF,
+0x22, 0xAC, 0x07, 0x74, 0x84, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x7F,
+0x90, 0x8A, 0xDE, 0xF0, 0xE0, 0x54, 0x1F, 0xFF, 0x90, 0x8A, 0xE1, 0xF0, 0x75, 0xF0, 0x09, 0xEC,
+0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xE3, 0xF0, 0x75, 0xF0, 0x09, 0xEC, 0x90,
+0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0xFE, 0x90, 0x8A, 0xE4, 0xF0, 0xEC, 0x25, 0xE0, 0x24, 0xE4,
+0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE5, 0xCB, 0xF0,
+0xA3, 0xEB, 0xF0, 0xEC, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0,
+0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE7, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xEF, 0xD3, 0x9E, 0x40, 0x0C,
+0x90, 0x8A, 0xE4, 0xE0, 0x90, 0x8A, 0xE1, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0xED, 0x70, 0x02, 0xC1,
+0x93, 0x90, 0x8A, 0xE2, 0xED, 0xF0, 0x90, 0x8A, 0xDE, 0xE0, 0x30, 0xE6, 0x0E, 0x90, 0x8A, 0xE1,
+0xE0, 0x90, 0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0x14, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0x70,
+0x02, 0xC1, 0x93, 0x90, 0x8A, 0xE1, 0xE0, 0xFF, 0xD3, 0x94, 0x00, 0x50, 0x02, 0xC1, 0x93, 0xE4,
+0x90, 0x8A, 0xE0, 0xF0, 0xEF, 0x14, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x8A, 0xE3, 0xE0, 0xFD, 0x90,
+0x8A, 0xDF, 0xE0, 0xFF, 0xD3, 0x9D, 0x40, 0x6F, 0xEF, 0x94, 0x10, 0x40, 0x21, 0xEF, 0x24, 0xF0,
+0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0x90, 0x8A, 0xE7, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x70, 0x27, 0x90, 0x8A,
+0xDF, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x50, 0x37, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80,
+0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE5, 0xE0, 0x5E, 0xFE, 0xA3,
+0xE0, 0x5F, 0x4E, 0x60, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0x90, 0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xE0,
+0xE0, 0x04, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0, 0x6F, 0x60, 0x08, 0x90,
+0x8A, 0xDF, 0xE0, 0x14, 0xF0, 0x80, 0x83, 0x90, 0x8A, 0xE2, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0,
+0xC3, 0x9F, 0x50, 0x0F, 0x90, 0x8A, 0xDF, 0xE0, 0xB5, 0x05, 0x08, 0x90, 0x8A, 0xE3, 0xE0, 0x90,
+0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xDE, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13,
+0xFE, 0xEF, 0x13, 0xFF, 0xEC, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xAF, 0x04, 0x90, 0x8A, 0xDE, 0xE0, 0xFD, 0x91, 0x4E, 0x90, 0x8A,
+0xDE, 0xE0, 0xFF, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8B, 0x1A, 0x8A, 0x1B, 0x89,
+0x1C, 0x90, 0x8B, 0x3F, 0x12, 0x43, 0x8B, 0xAB, 0x1D, 0xAA, 0x1E, 0xA9, 0x1F, 0x90, 0x8B, 0x42,
+0x12, 0x43, 0x8B, 0xAF, 0x20, 0x15, 0x20, 0xEF, 0x60, 0x1E, 0x90, 0x8B, 0x42, 0xE4, 0x75, 0xF0,
+0x01, 0x12, 0x43, 0x74, 0x12, 0x24, 0x62, 0xFF, 0x90, 0x8B, 0x3F, 0xE4, 0x75, 0xF0, 0x01, 0x12,
+0x43, 0x74, 0xEF, 0x12, 0x42, 0x4D, 0x80, 0xDB, 0xAB, 0x1A, 0xAA, 0x1B, 0xA9, 0x1C, 0xD0, 0xD0,
+0x92, 0xAF, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x8B,
+0x90, 0x8B, 0x53, 0xE0, 0xFF, 0x04, 0xF0, 0x90, 0x00, 0x01, 0xEF, 0x12, 0x42, 0x5F, 0x7F, 0xAF,
+0x7E, 0x01, 0x12, 0x74, 0x3B, 0xEF, 0x60, 0x47, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x6B, 0x8B, 0x1D,
+0x8A, 0x1E, 0x89, 0x1F, 0x75, 0x20, 0x02, 0x7B, 0x01, 0x7A, 0x01, 0x79, 0xA0, 0xD1, 0xE4, 0x90,
+0x8B, 0x48, 0x12, 0x43, 0x6B, 0x8B, 0x1D, 0x8A, 0x1E, 0x89, 0x1F, 0x90, 0x8B, 0x45, 0x12, 0x43,
+0x6B, 0x12, 0x24, 0x62, 0xFF, 0xC4, 0x54, 0x0F, 0xF5, 0x20, 0x7B, 0x01, 0x7A, 0x01, 0x79, 0xA2,
+0xD1, 0xE4, 0x90, 0x01, 0xAF, 0x74, 0xFF, 0xF0, 0x90, 0x01, 0xCB, 0xE0, 0x64, 0x80, 0xF0, 0xD0,
+0xD0, 0x92, 0xAF, 0x22, 0x90, 0x8A, 0xC5, 0xE0, 0x54, 0xF0, 0x44, 0x03, 0xF0, 0x54, 0x0F, 0x44,
+0x80, 0xF0, 0x7B, 0x00, 0x7A, 0x00, 0x79, 0x56, 0x90, 0x8B, 0x48, 0x12, 0x43, 0x8B, 0x0B, 0x7A,
+0x8A, 0x79, 0xC5, 0xE1, 0x33, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x01, 0xC4, 0x74,
+0xC5, 0xF0, 0x74, 0x5F, 0xA3, 0xF0, 0x90, 0x04, 0x1D, 0xE0, 0x60, 0x1A, 0x90, 0x05, 0x22, 0xE0,
+0x54, 0x90, 0x60, 0x07, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x40, 0xF0, 0x90, 0x01, 0xC7, 0xE0, 0x30,
+0xE1, 0xE4, 0x7F, 0x00, 0x80, 0x02, 0x7F, 0x01, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10, 0xAF,
+0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0xFB, 0xFA, 0xEF, 0x30, 0xE0, 0x02, 0x7B, 0x80, 0xEF, 0xC3, 0x13,
+0x90, 0xFD, 0x10, 0xF0, 0x90, 0x04, 0x25, 0xEF, 0xF0, 0xED, 0x60, 0x1E, 0xAF, 0x03, 0x74, 0x0F,
+0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x80, 0xF0, 0x74, 0x10, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x80, 0xF0, 0xAF, 0x03, 0x74, 0x08, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x09, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC,
+0xF5, 0x83, 0xE0, 0x54, 0xF0, 0xF0, 0x74, 0x21, 0x2B, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83,
+0xE0, 0x54, 0xF7, 0xF0, 0xAE, 0x02, 0xAF, 0x03, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x5F, 0xC5,
+0xBF, 0x01, 0x10, 0x90, 0x02, 0x09, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xFD, 0x90, 0x04, 0x1F,
+0x74, 0x20, 0xF0, 0x22, 0x90, 0x01, 0x02, 0xE0, 0x54, 0x03, 0xFF, 0xE0, 0x54, 0x0C, 0x13, 0x13,
+0x54, 0x3F, 0xFE, 0xEF, 0x64, 0x01, 0x60, 0x04, 0xEF, 0xB4, 0x03, 0x0E, 0x90, 0x8A, 0xC5, 0x74,
+0x01, 0xF0, 0xA3, 0x74, 0x37, 0xF0, 0x79, 0x01, 0x80, 0x18, 0xEE, 0x64, 0x01, 0x60, 0x07, 0xAF,
+0x06, 0xEE, 0x64, 0x03, 0x70, 0x3B, 0x90, 0x8A, 0xC5, 0x74, 0x01, 0xF0, 0xA3, 0x74, 0x3D, 0xF0,
+0x79, 0x40, 0x90, 0x8A, 0xC5, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xF5, 0x82, 0x8E, 0x83, 0xE0, 0x59,
+0x60, 0x08, 0xE9, 0xF0, 0xE4, 0x90, 0x8A, 0xF6, 0xF0, 0x22, 0x90, 0x8A, 0xF6, 0xE0, 0x04, 0xF0,
+0xE0, 0xC3, 0x94, 0x0A, 0x40, 0x0B, 0xE4, 0xF0, 0x90, 0x04, 0x19, 0xE0, 0x30, 0xE0, 0x02, 0x11,
+0x6D, 0x22, 0xC0, 0xE0, 0xC0, 0xF0, 0xC0, 0x83, 0xC0, 0x82, 0xC0, 0xD0, 0x75, 0xD0, 0x00, 0xC0,
+0x00, 0xC0, 0x01, 0xC0, 0x02, 0xC0, 0x03, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90,
+0x01, 0xC4, 0x74, 0xF2, 0xF0, 0x74, 0x60, 0xA3, 0xF0, 0x90, 0x01, 0x34, 0xE0, 0x55, 0x28, 0xF5,
+0x2C, 0xA3, 0xE0, 0x55, 0x29, 0xF5, 0x2D, 0xA3, 0xE0, 0x55, 0x2A, 0xF5, 0x2E, 0xA3, 0xE0, 0x55,
+0x2B, 0xF5, 0x2F, 0xE5, 0x2C, 0x20, 0xE0, 0x02, 0x41, 0x89, 0x90, 0x01, 0x34, 0x74, 0x01, 0xF0,
+0x85, 0xD1, 0x4D, 0x85, 0xD2, 0x4E, 0x85, 0xD3, 0x4F, 0x85, 0xD4, 0x50, 0x85, 0xD5, 0x51, 0x85,
+0xD6, 0x52, 0x85, 0xD7, 0x53, 0x85, 0xD9, 0x54, 0xE5, 0x54, 0x54, 0x40, 0xC3, 0x13, 0xFF, 0xE5,
+0x53, 0x54, 0x20, 0x6F, 0x70, 0x02, 0x41, 0x46, 0xE5, 0x54, 0x30, 0xE5, 0x02, 0x41, 0x46, 0xE5,
+0x52, 0x54, 0x1F, 0xF5, 0x08, 0xE5, 0x4D, 0x54, 0x3F, 0xF5, 0x09, 0xE5, 0x51, 0x54, 0x1F, 0xFF,
+0xE5, 0x08, 0x25, 0xE0, 0x24, 0xE3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0,
+0x12, 0x42, 0x81, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82,
+0xE4, 0x34, 0x85, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5, 0x09, 0xD3, 0x94, 0x04,
+0x40, 0x03, 0x75, 0x09, 0x04, 0x75, 0xF0, 0x0A, 0xE5, 0x08, 0x90, 0x84, 0x00, 0x12, 0x43, 0x5F,
+0x75, 0xF0, 0x02, 0xE5, 0x09, 0x12, 0x43, 0x5F, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xE5, 0x53, 0x54,
+0x1F, 0x2F, 0xFF, 0xE4, 0x3E, 0xFE, 0x75, 0xF0, 0x0A, 0xE5, 0x08, 0x90, 0x84, 0x00, 0x12, 0x43,
+0x5F, 0x75, 0xF0, 0x02, 0xE5, 0x09, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xE5, 0x54,
+0x20, 0xE6, 0x24, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82,
+0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5, 0x4F, 0x30, 0xE7, 0x36,
+0xAF, 0x08, 0x12, 0x5C, 0xC3, 0x80, 0x2F, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0,
+0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5,
+0x4F, 0x30, 0xE7, 0x12, 0xE5, 0x4F, 0x54, 0x7F, 0xFD, 0xE5, 0x53, 0x54, 0x1F, 0xF5, 0x0D, 0xAB,
+0x09, 0xAF, 0x08, 0x12, 0x5C, 0x66, 0xE5, 0x24, 0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x3A, 0x90,
+0x8B, 0x1A, 0xE0, 0x60, 0x2B, 0x90, 0x01, 0x5B, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0,
+0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x21, 0x90, 0x8B, 0x3D, 0x12, 0x4B, 0x5C, 0x90, 0x01,
+0x5B, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x18, 0xF0, 0x80, 0x09,
+0x12, 0x4B, 0x34, 0xBF, 0x01, 0x03, 0x12, 0x4A, 0xFC, 0xE5, 0x2C, 0x30, 0xE1, 0x21, 0x90, 0x01,
+0x34, 0x74, 0x02, 0xF0, 0x85, 0xD1, 0x56, 0x85, 0xD2, 0x57, 0x85, 0xD3, 0x58, 0x85, 0xD4, 0x59,
+0x85, 0xD5, 0x5A, 0x85, 0xD6, 0x5B, 0x85, 0xD7, 0x5C, 0x85, 0xD9, 0x5D, 0x12, 0x5F, 0xA4, 0xE5,
+0x2C, 0x30, 0xE3, 0x06, 0x90, 0x01, 0x34, 0x74, 0x08, 0xF0, 0xE5, 0x2C, 0x30, 0xE4, 0x09, 0x90,
+0x01, 0x34, 0x74, 0x10, 0xF0, 0x43, 0x55, 0x10, 0xE5, 0x2C, 0x30, 0xE5, 0x26, 0x90, 0x01, 0xCF,
+0xE0, 0x30, 0xE5, 0x1F, 0xE0, 0x54, 0xDF, 0xF0, 0x90, 0x01, 0x34, 0x74, 0x20, 0xF0, 0x75, 0xA8,
+0x00, 0x75, 0xE8, 0x00, 0x12, 0x51, 0x9D, 0x90, 0x00, 0x03, 0xE0, 0x54, 0xFB, 0xF0, 0x12, 0x52,
+0x0E, 0x80, 0xFE, 0xE5, 0x2C, 0x30, 0xE6, 0x2D, 0x90, 0x01, 0x34, 0x74, 0x40, 0xF0, 0x90, 0x8B,
+0x32, 0xE0, 0x30, 0xE0, 0x0C, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x05, 0x90, 0x8B, 0x34, 0xE4,
+0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x0C, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x05,
+0x90, 0x8B, 0x2E, 0xE4, 0xF0, 0xE5, 0x2E, 0x20, 0xE0, 0x02, 0x61, 0xE6, 0x90, 0x8B, 0x08, 0x74,
+0x01, 0xF0, 0x90, 0x01, 0x36, 0xF0, 0x90, 0x8B, 0x06, 0xE0, 0x60, 0x0F, 0xE4, 0xF0, 0x90, 0x05,
+0x53, 0xE0, 0x44, 0x02, 0xF0, 0x90, 0x05, 0xFC, 0xE0, 0x04, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30,
+0xE0, 0x2F, 0x90, 0x8B, 0x37, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xFF, 0x13, 0x13, 0x54,
+0x3F, 0x30, 0xE0, 0x1D, 0x90, 0x8B, 0x34, 0x74, 0x01, 0xF0, 0xB1, 0x39, 0x90, 0x8B, 0x33, 0xE0,
+0x64, 0x03, 0x60, 0x0D, 0x7F, 0x01, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x05, 0x7F, 0x04, 0x12, 0x4E,
+0x89, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x55, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x4E,
+0x90, 0x8B, 0x2E, 0x74, 0x01, 0xF0, 0xB1, 0x39, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x3E,
+0xB1, 0x5F, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0x64, 0x06, 0x60,
+0x2D, 0xEF, 0xB4, 0x04, 0x02, 0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF,
+0x80, 0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x02, 0x04, 0x7F, 0x01, 0xB1, 0x82, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x43,
+0xE7, 0x90, 0x8B, 0x08, 0xE4, 0xF0, 0xE5, 0x2E, 0x30, 0xE1, 0x2F, 0x90, 0x01, 0x36, 0x74, 0x02,
+0xF0, 0x43, 0x55, 0x40, 0x11, 0x84, 0x90, 0x8B, 0x37, 0xE0, 0xB4, 0x01, 0x09, 0x90, 0x05, 0x22,
+0xE4, 0xF0, 0x90, 0x8B, 0x37, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x0D, 0xE4, 0xFF, 0x12,
+0x4D, 0xE0, 0xEF, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0xE5, 0x2E, 0x30, 0xE2, 0x16, 0x90,
+0x01, 0x36, 0x74, 0x04, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x06, 0xA3, 0xE0, 0x64, 0x06,
+0x60, 0x03, 0x12, 0x46, 0xB3, 0xE5, 0x2E, 0x30, 0xE3, 0x38, 0x90, 0x01, 0x36, 0x74, 0x08, 0xF0,
+0xE5, 0x21, 0x64, 0x01, 0x70, 0x2C, 0xE5, 0x24, 0x60, 0x28, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90,
+0x01, 0x3C, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x3D, 0xE4, 0xF0, 0x90, 0x8B, 0x11, 0xE0, 0x90, 0x8B,
+0x3E, 0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74,
+0x05, 0xF0, 0xE5, 0x2E, 0x30, 0xE4, 0x2B, 0x90, 0x01, 0x36, 0x74, 0x10, 0xF0, 0xE5, 0x21, 0xB4,
+0x01, 0x20, 0xE5, 0x24, 0x60, 0x1C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02,
+0xF0, 0x90, 0x8B, 0x1B, 0xE4, 0xF0, 0x53, 0x25, 0xFD, 0xE5, 0x25, 0x54, 0x07, 0x70, 0x03, 0x12,
+0x4A, 0xFC, 0xE5, 0x2E, 0x30, 0xE5, 0x1F, 0x90, 0x01, 0x36, 0x74, 0x20, 0xF0, 0xE5, 0x21, 0xB4,
+0x01, 0x14, 0xE5, 0x24, 0x60, 0x10, 0x90, 0x8B, 0x1A, 0xE0, 0x64, 0x02, 0x60, 0x05, 0x12, 0x4A,
+0x97, 0x80, 0x03, 0x12, 0x49, 0x49, 0xE5, 0x2E, 0x30, 0xE6, 0x1B, 0x90, 0x01, 0x36, 0x74, 0x40,
+0xF0, 0xE5, 0x21, 0xB4, 0x01, 0x10, 0xE5, 0x24, 0x60, 0x0C, 0x53, 0x25, 0xFE, 0xE5, 0x25, 0x54,
+0x07, 0x70, 0x03, 0x12, 0x4A, 0xFC, 0xE5, 0x2F, 0x30, 0xE1, 0x28, 0x90, 0x01, 0x37, 0x74, 0x02,
+0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x18, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x08,
+0x12, 0x48, 0xFE, 0x12, 0x7D, 0xC1, 0x80, 0x0B, 0x90, 0x8B, 0x31, 0x74, 0x01, 0xF0, 0x80, 0x03,
+0x12, 0x48, 0xFE, 0x74, 0xF2, 0x04, 0x90, 0x01, 0xC4, 0xF0, 0x74, 0x60, 0xA3, 0xF0, 0xD0, 0x07,
+0xD0, 0x06, 0xD0, 0x05, 0xD0, 0x04, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01, 0xD0, 0x00, 0xD0, 0xD0,
+0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xF0, 0xD0, 0xE0, 0x32, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x05,
+0x58, 0xE0, 0xFF, 0x90, 0x8B, 0x38, 0xE0, 0x2F, 0x24, 0xFE, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB,
+0xFD, 0x7F, 0x50, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x53, 0x74, 0x05, 0xF0, 0x22, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x0A, 0xA3, 0xE0, 0x64, 0x06,
+0x60, 0x04, 0x7F, 0x06, 0xB1, 0x82, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x03, 0x12, 0x78,
+0x35, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0x6F, 0x70,
+0x02, 0xE1, 0x4E, 0xEF, 0x12, 0x43, 0x94, 0x65, 0xB0, 0x00, 0x65, 0xEA, 0x01, 0x66, 0x30, 0x02,
+0x66, 0x6A, 0x03, 0x66, 0xA2, 0x04, 0x66, 0xDB, 0x05, 0x67, 0x16, 0x06, 0x00, 0x00, 0x67, 0x4E,
+0xEE, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xF1, 0x81, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0xB4,
+0x05, 0x04, 0xF1, 0x5D, 0xE1, 0x4E, 0xEF, 0xB4, 0x06, 0x06, 0x7F, 0x01, 0xF1, 0x72, 0x80, 0x16,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1, 0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0xF1, 0xA4, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04,
+0x06, 0x7F, 0x01, 0xF1, 0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D,
+0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xF1, 0x9A, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4,
+0x06, 0x06, 0x7F, 0x01, 0xF1, 0x72, 0xE1, 0x4E, 0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1, 0x53,
+0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x02, 0x60, 0x02, 0xE1, 0x4E, 0xF1, 0x67, 0xE1, 0x4E,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xF1, 0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D, 0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xF1, 0x9A, 0x80, 0x16,
+0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0x7F, 0x01, 0xF1, 0x72, 0x80, 0x08, 0xEE, 0xB4,
+0x03, 0x04, 0x7F, 0x01, 0xF1, 0x53, 0xF1, 0xD0, 0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04,
+0x06, 0x7F, 0x01, 0xF1, 0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D,
+0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xF1, 0x9A, 0x80, 0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4,
+0x06, 0x06, 0xE4, 0xFF, 0xF1, 0x72, 0x80, 0x06, 0xEE, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0xF1, 0xB9,
+0xE1, 0x4E, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0xE4, 0xFF, 0xF1, 0x72, 0x80, 0x13,
+0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1, 0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02,
+0x02, 0xF1, 0x67, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01, 0x04, 0xF1, 0xA4, 0x80, 0x09, 0x90, 0x8B,
+0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D, 0xF1, 0xAF, 0x80, 0x73, 0x90, 0x8B, 0x2D, 0xE0, 0xFE,
+0xB4, 0x06, 0x06, 0xE4, 0xFF, 0xF1, 0x72, 0x80, 0x13, 0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xF1,
+0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0x90, 0x8B, 0x2D, 0xE0,
+0xB4, 0x01, 0x04, 0xF1, 0xA4, 0x80, 0x0B, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x04, 0x7F, 0x01,
+0xF1, 0x81, 0xF1, 0xC3, 0x80, 0x38, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xF1,
+0x81, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xF1, 0x5D, 0x90, 0x8B, 0x2D, 0xE0,
+0x70, 0x04, 0xF1, 0x9A, 0x80, 0x16, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x06, 0xE4, 0xFF, 0xF1,
+0x53, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x02, 0xF1, 0x67, 0xF1, 0xDD, 0xD0, 0xD0,
+0x92, 0xAF, 0x22, 0x12, 0x4A, 0xB2, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x22, 0x90, 0x05, 0x22,
+0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0x04,
+0xF0, 0x22, 0xEF, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0,
+0x22, 0x90, 0x8B, 0x56, 0xEF, 0xF0, 0x12, 0x7D, 0x42, 0x90, 0x8B, 0x56, 0xE0, 0x60, 0x05, 0x90,
+0x05, 0x22, 0xE4, 0xF0, 0xE4, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x12, 0x4A, 0xCC, 0x90, 0x8B, 0x2D,
+0x74, 0x01, 0xF0, 0x22, 0x7F, 0x01, 0x12, 0x4A, 0x7C, 0xE4, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x12,
+0x7C, 0x4A, 0x90, 0x8B, 0x2D, 0x74, 0x04, 0xF0, 0x22, 0x12, 0x4A, 0x32, 0x90, 0x8B, 0x2D, 0x74,
+0x03, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x05, 0xF0, 0x22,
+0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22,
+0x74, 0x6F, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x06, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0,
+0xD0, 0xE4, 0xFD, 0xFC, 0xEF, 0x30, 0xE0, 0x02, 0x7D, 0x80, 0xEF, 0xC3, 0x13, 0x90, 0xFD, 0x10,
+0xF0, 0xAE, 0x04, 0xAF, 0x05, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x75, 0x28, 0x33, 0xE4, 0xF5, 0x29,
+0x75, 0x2A, 0x07, 0xF5, 0x2B, 0x90, 0x01, 0x30, 0xE5, 0x28, 0xF0, 0xA3, 0xE5, 0x29, 0xF0, 0xA3,
+0xE5, 0x2A, 0xF0, 0xA3, 0xE5, 0x2B, 0xF0, 0x22, 0x75, 0x30, 0x1F, 0x75, 0x31, 0x01, 0x43, 0x31,
+0x10, 0xE4, 0xF5, 0x32, 0x90, 0x01, 0x38, 0xE5, 0x30, 0xF0, 0xA3, 0xE5, 0x31, 0xF0, 0xA3, 0xE5,
+0x32, 0xF0, 0x22, 0x22, 0x90, 0x00, 0x02, 0xE0, 0x54, 0xE0, 0x7F, 0x01, 0x60, 0x02, 0x7F, 0x00,
+0x22, 0x90, 0x00, 0xF3, 0xE0, 0x7F, 0x00, 0x30, 0xE3, 0x02, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x09,
+0xE0, 0xB4, 0x01, 0x0C, 0x90, 0x00, 0xF2, 0xE0, 0x30, 0xE7, 0x05, 0x7E, 0xFD, 0x7F, 0x33, 0x22,
+0x7E, 0xFD, 0x7F, 0x2F, 0x22, 0x90, 0x00, 0xF3, 0xE0, 0x30, 0xE2, 0x0D, 0x90, 0x05, 0x41, 0x74,
+0x10, 0xF0, 0x90, 0x05, 0x5A, 0xF0, 0xA3, 0xE4, 0xF0, 0x22, 0x90, 0x01, 0x64, 0x74, 0xA0, 0xF0,
+0x22, 0xC0, 0xE0, 0xC0, 0x83, 0xC0, 0x82, 0xC0, 0xD0, 0x75, 0xD0, 0x00, 0xC0, 0x05, 0xC0, 0x06,
+0xC0, 0x07, 0x7D, 0x91, 0x90, 0x01, 0xC4, 0xED, 0xF0, 0x74, 0x68, 0xFF, 0xA3, 0xF0, 0x53, 0x91,
+0xEF, 0x90, 0x00, 0x51, 0xE0, 0xFE, 0x90, 0x00, 0x55, 0xE0, 0x5E, 0xF5, 0x3D, 0x90, 0x00, 0x52,
+0xE0, 0xFE, 0x90, 0x00, 0x56, 0xE0, 0x5E, 0xF5, 0x3E, 0xE5, 0x3D, 0x30, 0xE4, 0x06, 0x90, 0x00,
+0x55, 0x74, 0x10, 0xF0, 0xE5, 0x3D, 0x30, 0xE5, 0x06, 0x90, 0x00, 0x55, 0x74, 0x20, 0xF0, 0xE5,
+0x3D, 0x30, 0xE6, 0x06, 0x90, 0x00, 0x55, 0x74, 0x40, 0xF0, 0xE5, 0x3D, 0x30, 0xE7, 0x06, 0x90,
+0x00, 0x55, 0x74, 0x80, 0xF0, 0xE5, 0x3E, 0x30, 0xE0, 0x06, 0x90, 0x00, 0x56, 0x74, 0x01, 0xF0,
+0xE5, 0x3E, 0x30, 0xE1, 0x06, 0x90, 0x00, 0x56, 0x74, 0x02, 0xF0, 0xE5, 0x3E, 0x30, 0xE2, 0x06,
+0x90, 0x00, 0x56, 0x74, 0x04, 0xF0, 0xE5, 0x3E, 0x30, 0xE3, 0x06, 0x90, 0x00, 0x56, 0x74, 0x08,
+0xF0, 0x90, 0x01, 0xC4, 0xED, 0xF0, 0xA3, 0xEF, 0xF0, 0xD0, 0x07, 0xD0, 0x06, 0xD0, 0x05, 0xD0,
+0xD0, 0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xE0, 0x32, 0xEF, 0xC3, 0x94, 0x20, 0x50, 0x39, 0xEF, 0x30,
+0xE0, 0x17, 0xED, 0xC4, 0x54, 0xF0, 0xFD, 0xEF, 0xC3, 0x13, 0xFE, 0x24, 0xA4, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x0F, 0x80, 0x10, 0xEF, 0xC3, 0x13, 0xFE, 0x24, 0xA4, 0xF5,
+0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0xF0, 0xF0, 0x74, 0xA4, 0x2E, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0xE0, 0x4D, 0xF0, 0x22, 0xAD, 0x07, 0x74, 0x84, 0x2D, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x7F, 0x90, 0x8A, 0xDE, 0xF0, 0xE0, 0xF9, 0x54, 0x1F, 0xA3,
+0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0xFF, 0x90, 0x8A, 0xE1,
+0xF0, 0xED, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFB, 0xA3,
+0xE0, 0x90, 0x8A, 0xE2, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xED, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82,
+0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE4, 0xCB, 0xF0, 0xA3, 0xEB,
+0xF0, 0x90, 0x8A, 0xDF, 0xE0, 0xFE, 0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5,
+0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4,
+0x34, 0x86, 0xF5, 0x83, 0xEA, 0xF0, 0xA3, 0xEB, 0xF0, 0xEE, 0xC3, 0x9F, 0x40, 0x02, 0x41, 0xB9,
+0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF,
+0xF0, 0xEF, 0x04, 0x90, 0x8A, 0xE0, 0xF0, 0x90, 0x8A, 0xE1, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0,
+0xFE, 0xD3, 0x9F, 0x40, 0x02, 0x41, 0xF3, 0xEE, 0xC3, 0x94, 0x10, 0x40, 0x21, 0xEE, 0x24, 0xF0,
+0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8,
+0xF9, 0xFF, 0x90, 0x8A, 0xE2, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x70, 0x27, 0x90, 0x8A,
+0xE0, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x50, 0x59, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80,
+0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE4, 0xE0, 0x5E, 0xFE, 0xA3,
+0xE0, 0x5F, 0x4E, 0x60, 0x3C, 0x90, 0x8A, 0xE0, 0xE0, 0xB4, 0x11, 0x0D, 0x90, 0x8A, 0xE3, 0xE0,
+0x30, 0xE7, 0x06, 0x90, 0x8A, 0xE0, 0x74, 0x17, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xFF, 0x64, 0x13,
+0x60, 0x04, 0xEF, 0xB4, 0x12, 0x0D, 0x90, 0x8A, 0xE2, 0xE0, 0x30, 0xE0, 0x06, 0x90, 0x8A, 0xE0,
+0x74, 0x18, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0x80,
+0x42, 0x90, 0x8A, 0xE0, 0xE0, 0x04, 0xF0, 0x41, 0x17, 0x90, 0x8A, 0xE1, 0xE0, 0xFC, 0x90, 0x8A,
+0xDF, 0xE0, 0xFF, 0x6C, 0x70, 0x71, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83,
+0xEF, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x29, 0x12, 0x43, 0x5F, 0xE0, 0xB4, 0x01, 0x10,
+0xE9, 0x20, 0xE6, 0x0C, 0x90, 0x8A, 0xDF, 0xE0, 0x44, 0x40, 0x90, 0x8A, 0xDE, 0xF0, 0x80, 0x03,
+0xAF, 0x01, 0x22, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13,
+0xFE, 0xEF, 0x13, 0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x80, 0x66, 0x90, 0x8A, 0xDF, 0xE0, 0xD3, 0x9C, 0x40, 0x5E, 0x90,
+0x8A, 0xE1, 0xE0, 0xFF, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0,
+0x90, 0x8A, 0xDF, 0xEF, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0xFC, 0xA3, 0xE0, 0xFF, 0x25, 0xE0, 0x24,
+0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF,
+0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF,
+0xE4, 0x93, 0x3A, 0xC3, 0x13, 0xFE, 0xEF, 0x13, 0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82,
+0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xAF, 0x04, 0x22, 0x74, 0x01, 0x2D,
+0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xAF, 0x05, 0x90, 0x8A, 0xDE, 0xE0, 0x44,
+0x80, 0xFD, 0x12, 0x5C, 0x4E, 0x90, 0x8A, 0xDE, 0xE0, 0x44, 0x80, 0xFF, 0x22, 0xE4, 0x90, 0x8A,
+0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0xC3, 0x94, 0x20, 0x40, 0x03, 0x02, 0x72, 0x54, 0x75,
+0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2A, 0x12, 0x43, 0x5F, 0xE0, 0x64, 0x01, 0x60, 0x03, 0x02, 0x72,
+0x4B, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83,
+0xE0, 0xFC, 0xA3, 0xE0, 0xD3, 0x94, 0x00, 0xEC, 0x94, 0x00, 0x50, 0x03, 0x02, 0x72, 0x4B, 0xEF,
+0x75, 0xF0, 0x0A, 0xA4, 0x24, 0x00, 0xF9, 0x74, 0x84, 0x35, 0xF0, 0x75, 0x12, 0x01, 0xF5, 0x13,
+0x89, 0x14, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5,
+0x83, 0xE0, 0xFD, 0xA3, 0xE0, 0x90, 0x8A, 0xD4, 0xCD, 0xF0, 0xA3, 0xED, 0xF0, 0xEF, 0x25, 0xE0,
+0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0, 0xFF, 0xA3, 0xE0, 0x90, 0x8A, 0xD6,
+0xCF, 0xF0, 0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0x24, 0x84, 0xF5, 0x82, 0xE4, 0x34,
+0x04, 0xF5, 0x83, 0xE0, 0x54, 0x3F, 0x90, 0x8A, 0xD0, 0xF0, 0xE0, 0xFD, 0x54, 0x1F, 0xA3, 0xF0,
+0x75, 0xF0, 0x09, 0xEE, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD9, 0xF0, 0x90,
+0x8A, 0xCF, 0xE0, 0xFB, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xC3, 0x94,
+0x05, 0x40, 0x02, 0xC1, 0x9C, 0x90, 0x8A, 0xD9, 0xE0, 0xFE, 0x90, 0x8A, 0xD1, 0xE0, 0x9E, 0x40,
+0x13, 0x90, 0x8A, 0xD9, 0xE0, 0x90, 0x8A, 0xD1, 0xF0, 0xED, 0x54, 0x40, 0xFD, 0x90, 0x8A, 0xD0,
+0xF0, 0xEE, 0x4D, 0xF0, 0x90, 0x8A, 0xD1, 0xE0, 0xFF, 0x90, 0x41, 0x12, 0x93, 0xFE, 0x74, 0x23,
+0x2B, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xC3, 0x9E, 0x40, 0x06, 0xEF, 0x90, 0x40,
+0xDA, 0x80, 0x07, 0x90, 0x8A, 0xD1, 0xE0, 0x90, 0x40, 0xF6, 0x93, 0x90, 0x8A, 0xD8, 0xF0, 0x90,
+0x8A, 0xD8, 0xE0, 0x75, 0xF0, 0x06, 0xA4, 0x24, 0x50, 0xF9, 0x74, 0x40, 0x35, 0xF0, 0x75, 0x0F,
+0xFF, 0xF5, 0x10, 0x89, 0x11, 0x90, 0x8A, 0xD0, 0xE0, 0x90, 0x41, 0xBA, 0x93, 0xFF, 0xD3, 0x90,
+0x8A, 0xD7, 0xE0, 0x9F, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x0D, 0x90, 0x8A, 0xCF, 0xE0,
+0xFF, 0xE4, 0xFD, 0x12, 0x5D, 0x41, 0x02, 0x71, 0xE1, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24,
+0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFF, 0xA3, 0xE0, 0x90, 0x8A, 0xD2, 0xCF,
+0xF0, 0xA3, 0xEF, 0xF0, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x12, 0x24, 0x62, 0xFF, 0x7E, 0x00,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x97, 0xFD, 0xAC, 0xF0, 0x12, 0x24, 0x7B, 0x90,
+0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00,
+0x01, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x02,
+0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x24, 0x7B, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12,
+0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x7E,
+0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x04, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0,
+0x12, 0x24, 0x7B, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10,
+0xA9, 0x11, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9,
+0x14, 0x90, 0x00, 0x06, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x24, 0x7B, 0x90, 0x8A, 0xD2,
+0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x04, 0x12,
+0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x08, 0x12, 0x42,
+0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x24, 0x7B, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81,
+0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x05, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0x90,
+0x8A, 0xD4, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0x12, 0x24, 0x7B, 0xD3, 0x90, 0x8A, 0xD3, 0xE0, 0x9F,
+0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x40, 0x0C, 0xA3, 0xE0, 0x9F, 0xF0, 0x90, 0x8A, 0xD2, 0xE0, 0x9E,
+0xF0, 0x80, 0x07, 0xE4, 0x90, 0x8A, 0xD2, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xD2, 0xE0, 0xFC, 0xA3,
+0xE0, 0xFD, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86,
+0xF5, 0x83, 0xEC, 0xF0, 0xA3, 0xED, 0xF0, 0x90, 0x8A, 0xD0, 0xE0, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xD3, 0xED, 0x9B,
+0xEC, 0x9A, 0x40, 0x05, 0x31, 0x78, 0x02, 0x71, 0xAF, 0x90, 0x8A, 0xD0, 0xE0, 0x25, 0xE0, 0x24,
+0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFE, 0x74, 0x01, 0x93, 0xFF, 0xC3,
+0x90, 0x8A, 0xD3, 0xE0, 0x9F, 0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x40, 0x03, 0x02, 0x71, 0xAF, 0x90,
+0x8A, 0xCF, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5D, 0x41, 0x02, 0x71, 0xAF, 0x90, 0x8A, 0xCF, 0xE0,
+0xFF, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xFC, 0x64, 0x05, 0x60, 0x03,
+0x02, 0x70, 0x7D, 0x90, 0x87, 0x22, 0xE0, 0xFE, 0xB4, 0x03, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3,
+0x94, 0x19, 0x40, 0x3D, 0x80, 0x2E, 0xEE, 0xB4, 0x02, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3, 0x94,
+0x11, 0x40, 0x2E, 0x80, 0x1F, 0x90, 0x87, 0x22, 0xE0, 0xFE, 0xB4, 0x01, 0x0B, 0x90, 0x8A, 0xD1,
+0xE0, 0xC3, 0x94, 0x0A, 0x40, 0x1B, 0x80, 0x0C, 0xEE, 0x70, 0x11, 0x90, 0x8A, 0xD1, 0xE0, 0xC3,
+0x94, 0x03, 0x40, 0x0D, 0x90, 0x89, 0x43, 0x74, 0x01, 0xF0, 0x80, 0x05, 0xE4, 0x90, 0x89, 0x43,
+0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0,
+0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x23, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE,
+0xC3, 0x94, 0x30, 0x50, 0x0B, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x64, 0x2F, 0x02, 0x70, 0x28,
+0x90, 0x89, 0x43, 0xE0, 0x64, 0x01, 0x60, 0x03, 0x02, 0x70, 0x1D, 0x90, 0x8A, 0xCF, 0xE0, 0x24,
+0x44, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0x64, 0x0A, 0x60, 0x5B, 0x90, 0x8A, 0xCF,
+0xE0, 0xFF, 0xEE, 0x24, 0x05, 0xFB, 0xE4, 0x33, 0xFA, 0x74, 0x21, 0x2F, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xE0, 0xFF, 0xD3, 0x9B, 0xEA, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98, 0x50, 0x38,
+0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0xEF, 0x24, 0x05, 0xFB, 0xE4, 0x33, 0xFA, 0x74, 0x23, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xD3, 0x9B, 0xEA, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98,
+0x50, 0x16, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x84, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0,
+0xFF, 0x90, 0x8A, 0xD1, 0xE0, 0x6F, 0x60, 0x56, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x23, 0xF5, 0x82,
+0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFF, 0xD3, 0x94, 0x42, 0x40, 0x08, 0x90, 0x8A, 0xDD, 0x74,
+0x05, 0xF0, 0x80, 0x11, 0xEF, 0xD3, 0x94, 0x39, 0x90, 0x8A, 0xDD, 0x40, 0x05, 0x74, 0x03, 0xF0,
+0x80, 0x03, 0x74, 0x01, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x23, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0xE0, 0xFE, 0x74, 0x21, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE,
+0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x44, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0x80, 0x2F, 0x90, 0x8A,
+0xCF, 0xE0, 0xFF, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x44,
+0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0x04, 0xF0, 0x80, 0x14, 0xE4, 0x90, 0x8A,
+0xDD, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4,
+0xF0, 0x90, 0x8A, 0xD1, 0xE0, 0xFE, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x84, 0xF5, 0x82, 0xE4,
+0x34, 0x8A, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFE, 0x74, 0x43, 0x2F, 0xF5, 0x82,
+0xE4, 0x34, 0x88, 0xF5, 0x83, 0xEE, 0xF0, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2B, 0x12, 0x43,
+0x5F, 0xE0, 0xB4, 0x01, 0x11, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x64, 0x2F, 0xF5, 0x82, 0xE4,
+0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFD, 0x21, 0xAC, 0xEC, 0x64, 0x06,
+0x60, 0x02, 0x21, 0xAF, 0x90, 0x8A, 0xD2, 0xF0, 0xA3, 0xF0, 0x90, 0x41, 0xDB, 0x93, 0xFF, 0x7E,
+0x00, 0x90, 0x8A, 0xD4, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0x12, 0x24, 0x7B, 0x90, 0x8A, 0xDB, 0xEE,
+0xF0, 0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE0, 0x90, 0x8A, 0xDD, 0xF0, 0xE4, 0x90, 0x8A, 0xDA, 0xF0, 0x90, 0x8A, 0xDA, 0xE0, 0xFF,
+0xD3, 0x94, 0x04, 0x50, 0x47, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x75, 0xF0, 0x02, 0xEF, 0xA4,
+0xF5, 0x82, 0x85, 0xF0, 0x83, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0xEF, 0x90, 0x41, 0xD6, 0x93,
+0xFF, 0x7E, 0x00, 0x12, 0x24, 0x7B, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0x90,
+0x8A, 0xDB, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xD3, 0x90, 0x8A, 0xD3, 0xE0, 0x9F, 0x90, 0x8A, 0xD2,
+0xE0, 0x9E, 0x50, 0x08, 0x90, 0x8A, 0xDA, 0xE0, 0x04, 0xF0, 0x80, 0xAF, 0x90, 0x8A, 0xDA, 0xE0,
+0xC3, 0x13, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFF, 0xB4, 0x01, 0x0D, 0x90, 0x8A, 0xDA, 0xE0, 0x70,
+0x5D, 0x90, 0x8A, 0xDD, 0x04, 0xF0, 0x80, 0x5B, 0xEF, 0xB4, 0x03, 0x1D, 0x90, 0x8A, 0xDA, 0xE0,
+0xFF, 0x70, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x03, 0xF0, 0x80, 0x48, 0xEF, 0xB4, 0x01, 0x08, 0x90,
+0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x80, 0x3C, 0x80, 0x35, 0x90, 0x8A, 0xDD, 0xE0, 0x64, 0x05, 0x70,
+0x32, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0x70, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x05, 0xF0, 0x80, 0x0F,
+0xEF, 0x90, 0x8A, 0xDD, 0xB4, 0x01, 0x05, 0x74, 0x03, 0xF0, 0x80, 0x03, 0x74, 0x01, 0xF0, 0xD3,
+0x90, 0x8A, 0xD7, 0xE0, 0x94, 0x03, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x05, 0xE4, 0x90,
+0x8A, 0xDD, 0xF0, 0xD3, 0x90, 0x8A, 0xD7, 0xE0, 0x94, 0x03, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00,
+0x40, 0x05, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFD, 0x90, 0x8A, 0xCF, 0xE0,
+0xFF, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xED, 0xF0, 0x12, 0x69, 0x38, 0x90,
+0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xD3, 0x94,
+0x05, 0x50, 0x0F, 0x74, 0x64, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0x04, 0xF0,
+0x80, 0x0F, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4,
+0xF0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0xE4, 0xF5, 0xF0, 0x12, 0x42, 0xFA, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x90, 0x00, 0x02, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00, 0x04, 0xE4,
+0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00, 0x06, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00,
+0x08, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0xC0,
+0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x63,
+0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA3,
+0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04,
+0xF0, 0x02, 0x6B, 0xC2, 0x22, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0xC3,
+0x94, 0x10, 0x50, 0x14, 0x74, 0xA4, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE4, 0xF0,
+0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x80, 0xE2, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF,
+0xE0, 0xFF, 0xC3, 0x94, 0x20, 0x40, 0x02, 0x81, 0x0E, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x00,
+0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x02, 0x12, 0x43,
+0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x04, 0x12, 0x43, 0x5F, 0xE4,
+0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x06, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3,
+0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x08, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x74,
+0x84, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0x74, 0x13, 0xF0, 0x74, 0x44, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x43, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x88,
+0xF5, 0x83, 0xE4, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xE3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0xE4, 0xF0, 0xA3, 0xF0, 0x74, 0x44, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0,
+0x74, 0x24, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x64, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x90, 0x41, 0x8C, 0x93, 0xFE, 0x74, 0x01, 0x93,
+0xFF, 0x90, 0x41, 0x54, 0x74, 0x01, 0x93, 0x2F, 0xFF, 0xE4, 0x93, 0x3E, 0xC3, 0x13, 0xFE, 0xEF,
+0x13, 0xFF, 0x90, 0x8A, 0xCF, 0xE0, 0xFD, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86,
+0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x29, 0x12, 0x43,
+0x5F, 0x74, 0x01, 0xF0, 0x74, 0xC1, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0x74, 0x0C,
+0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0x74, 0xFF, 0xF0, 0xA3, 0xF0,
+0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x23, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0x74, 0x0F, 0xF0,
+0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0x74, 0x13, 0xF0, 0x75, 0xF0, 0x09,
+0xED, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0x74, 0x84, 0x2D, 0xF5, 0x82, 0xE4, 0x34,
+0x04, 0xF5, 0x83, 0x74, 0x13, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x41, 0x7D, 0x22, 0x12,
+0x24, 0x62, 0xFF, 0xC3, 0x94, 0x20, 0x50, 0x14, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFE, 0x74,
+0x23, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xEE, 0xF0, 0x22, 0xEF, 0xB4, 0x20, 0x0A,
+0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0x90, 0x87, 0x21, 0xF0, 0x22, 0x90, 0x8B, 0x4B, 0xEE, 0xF0,
+0xA3, 0xEF, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x8B, 0x4B, 0xE0, 0xFE, 0xA3, 0xE0, 0xF5,
+0x82, 0x8E, 0x83, 0xE0, 0x60, 0x2C, 0xC3, 0x90, 0x8B, 0x4E, 0xE0, 0x94, 0xE8, 0x90, 0x8B, 0x4D,
+0xE0, 0x94, 0x03, 0x40, 0x0A, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x10, 0xF0, 0x7F, 0x00, 0x22, 0x90,
+0x8B, 0x4D, 0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x7F, 0x0A, 0x7E, 0x00, 0x12, 0x32, 0x15,
+0x80, 0xC6, 0x7F, 0x01, 0x22, 0x12, 0x24, 0x62, 0xF5, 0x21, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3,
+0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x25, 0x14, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x01, 0x12,
+0x42, 0x20, 0x90, 0x8B, 0x1A, 0xF0, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x0A, 0xF0,
+0x12, 0x47, 0xFA, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x30,
+0xE0, 0x25, 0x12, 0x24, 0x62, 0x90, 0x8B, 0x10, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x90,
+0x8B, 0x11, 0xF0, 0xEF, 0xC3, 0x13, 0x54, 0x7F, 0x90, 0x8B, 0x0F, 0xF0, 0x90, 0x00, 0x03, 0x12,
+0x42, 0x20, 0x90, 0x8B, 0x16, 0xF0, 0x22, 0x90, 0x8B, 0x10, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x11,
+0x74, 0x05, 0xF0, 0x90, 0x8B, 0x0F, 0x74, 0x14, 0xF0, 0x90, 0x8B, 0x16, 0x74, 0x05, 0xF0, 0x22,
+0x12, 0x24, 0x62, 0x30, 0xE0, 0x19, 0xC3, 0x13, 0x54, 0x7F, 0x90, 0x8B, 0x15, 0xF0, 0x90, 0x00,
+0x01, 0x12, 0x42, 0x20, 0xFF, 0x90, 0x8B, 0x13, 0xE4, 0xF0, 0xA3, 0xEF, 0xF0, 0x80, 0x0F, 0x90,
+0x8B, 0x15, 0x74, 0x05, 0xF0, 0x90, 0x8B, 0x13, 0xE4, 0xF0, 0xA3, 0x74, 0x03, 0xF0, 0x90, 0x8B,
+0x13, 0xE0, 0xA3, 0xE0, 0x90, 0x05, 0x58, 0xF0, 0x22, 0x12, 0x24, 0x62, 0x90, 0x8B, 0x12, 0xF0,
+0x60, 0x07, 0xE4, 0xFD, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x90, 0x8B, 0x12, 0xE0, 0x90, 0x01, 0xE7,
+0xF0, 0x22, 0x90, 0x02, 0x09, 0xE0, 0xFD, 0x12, 0x24, 0x62, 0xFE, 0xAF, 0x05, 0xED, 0x2E, 0x90,
+0x8A, 0xF7, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xF8, 0xF0,
+0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xF9, 0xF0, 0x90, 0x00, 0x03,
+0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xFA, 0xF0, 0x90, 0x00, 0x04, 0x12, 0x42, 0x20,
+0xFF, 0xAE, 0x05, 0xED, 0x2F, 0x90, 0x8A, 0xFB, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0,
+0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x8B, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x12, 0x24, 0x62, 0xC3,
+0x13, 0x20, 0xE0, 0x02, 0xC1, 0xED, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x24, 0x62, 0xFF,
+0x54, 0x02, 0xFE, 0x90, 0x8B, 0x32, 0xE0, 0x54, 0xFD, 0x4E, 0xFE, 0xF0, 0xEF, 0x54, 0x01, 0xFF,
+0xEE, 0x54, 0xFE, 0x4F, 0xFF, 0xF0, 0x12, 0x24, 0x62, 0xFE, 0x54, 0x08, 0xFD, 0xEF, 0x54, 0xF7,
+0x4D, 0xFF, 0x90, 0x8B, 0x32, 0xF0, 0xEE, 0x54, 0x10, 0xFE, 0xEF, 0x54, 0xEF, 0x4E, 0xFF, 0xF0,
+0x12, 0x24, 0x62, 0xFE, 0x54, 0x20, 0xFD, 0xEF, 0x54, 0xDF, 0x4D, 0xFF, 0x90, 0x8B, 0x32, 0xF0,
+0xEE, 0x54, 0x40, 0xFE, 0xEF, 0x54, 0xBF, 0x4E, 0xF0, 0x20, 0xE0, 0x02, 0xC1, 0xD9, 0x90, 0x8A,
+0xDD, 0x74, 0x21, 0xF0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x24, 0x62, 0xFF, 0x13, 0x13,
+0x54, 0x01, 0xFE, 0x90, 0x8B, 0x32, 0xE0, 0xFD, 0x13, 0x13, 0x54, 0x01, 0x6E, 0x60, 0x2A, 0xEF,
+0x54, 0x04, 0xFF, 0xED, 0x54, 0xFB, 0x4F, 0xF0, 0xE0, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x0E,
+0x90, 0x01, 0x34, 0x74, 0x40, 0xF0, 0xFD, 0xE4, 0xFF, 0x12, 0x31, 0x9D, 0x80, 0x0B, 0xE4, 0x90,
+0x8B, 0x34, 0xF0, 0x7D, 0x40, 0xFF, 0x12, 0x31, 0x2C, 0x90, 0x8B, 0x32, 0xE0, 0xFD, 0x13, 0x13,
+0x13, 0x54, 0x1F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x12, 0xF0, 0xED, 0xC4, 0x54,
+0x0F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x14, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xC4,
+0x13, 0x54, 0x07, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x80, 0xF0, 0x90, 0x8B, 0x32,
+0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x20, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x40, 0xF0,
+0x90, 0x8A, 0xDD, 0xE0, 0x90, 0x05, 0x27, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x70, 0x05, 0x7F, 0x01,
+0x12, 0x4E, 0x89, 0x90, 0x8B, 0x32, 0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x04, 0x7F,
+0x03, 0x80, 0x0E, 0x7F, 0x01, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x04, 0x7F, 0x01, 0x80, 0x02, 0x7F,
+0x02, 0x12, 0x4E, 0x89, 0x7F, 0x02, 0x02, 0x78, 0x2E, 0x90, 0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x90,
+0x05, 0x27, 0xF0, 0xE4, 0xFF, 0x12, 0x4E, 0x89, 0x7F, 0x03, 0x02, 0x78, 0x2E, 0x90, 0x8A, 0xDA,
+0x12, 0x43, 0x6B, 0x12, 0x24, 0x62, 0xFF, 0x54, 0x02, 0xFE, 0x90, 0x8B, 0x2C, 0xE0, 0x54, 0xFD,
+0x4E, 0xFE, 0xF0, 0xEF, 0x54, 0x01, 0xFF, 0xEE, 0x54, 0xFE, 0x4F, 0xFF, 0xF0, 0x12, 0x24, 0x62,
+0xFE, 0x54, 0x08, 0xFD, 0xEF, 0x54, 0xF7, 0x4D, 0xFF, 0x90, 0x8B, 0x2C, 0xF0, 0xEE, 0x54, 0x10,
+0xFE, 0xEF, 0x54, 0xEF, 0x4E, 0xFF, 0xF0, 0x12, 0x24, 0x62, 0xFE, 0x54, 0x40, 0xFD, 0xEF, 0x54,
+0xBF, 0x4D, 0xFF, 0x90, 0x8B, 0x2C, 0xF0, 0xEE, 0x54, 0x04, 0xFE, 0xEF, 0x54, 0xFB, 0x4E, 0xF0,
+0x20, 0xE0, 0x02, 0xE1, 0xE2, 0x90, 0x8A, 0xDD, 0x74, 0x31, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x13,
+0x13, 0x54, 0x3F, 0x20, 0xE0, 0x0B, 0xE4, 0x90, 0x8B, 0x2E, 0xF0, 0x7D, 0x40, 0xFF, 0x12, 0x31,
+0x2C, 0x90, 0x8B, 0x2C, 0xE0, 0xFD, 0x13, 0x13, 0x13, 0x54, 0x1F, 0x30, 0xE0, 0x07, 0x90, 0x8A,
+0xDD, 0xE0, 0x44, 0x02, 0xF0, 0xED, 0xC4, 0x54, 0x0F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0,
+0x44, 0x04, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0x54, 0x06, 0x60, 0x0C, 0x90, 0x01, 0x3E, 0x74, 0x03,
+0xF0, 0xFD, 0x7F, 0x02, 0x12, 0x31, 0xB7, 0x90, 0x8A, 0xDD, 0xE0, 0x90, 0x05, 0x27, 0xF0, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x0D, 0xA3, 0xE0, 0x64, 0x06,
+0x60, 0x2C, 0x7F, 0x06, 0x12, 0x65, 0x82, 0x80, 0x25, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x06, 0x1B,
+0x7F, 0x01, 0x12, 0x65, 0x82, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x09, 0x7D, 0x01, 0xAF,
+0x23, 0x12, 0x45, 0xA2, 0x80, 0x05, 0x12, 0x4E, 0x56, 0x80, 0x03, 0x12, 0x7D, 0xC1, 0x7F, 0x01,
+0x80, 0x4C, 0x90, 0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x27, 0xF0, 0x7D, 0x03, 0x7F, 0x02,
+0x12, 0x31, 0x49, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x06, 0x02, 0x80, 0x1B, 0x90, 0x8B, 0x2D, 0xE0,
+0xB4, 0x04, 0x02, 0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF, 0x80, 0x14,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4,
+0x02, 0x05, 0x7F, 0x01, 0x12, 0x65, 0x82, 0x11, 0x35, 0x12, 0x4A, 0xFC, 0x7F, 0x03, 0x11, 0x42,
+0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x8B, 0x31, 0xE0, 0xB4, 0x01, 0x05, 0xE4, 0xF0, 0x12, 0x48,
+0xFE, 0x22, 0xAD, 0x07, 0xEF, 0x64, 0x01, 0x60, 0x04, 0xEF, 0xB4, 0x03, 0x15, 0x90, 0x8B, 0x32,
+0xE0, 0x54, 0xFE, 0xF0, 0x54, 0xFB, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0,
+0xA3, 0xF0, 0xED, 0x64, 0x02, 0x60, 0x04, 0xED, 0xB4, 0x03, 0x15, 0x90, 0x8B, 0x2C, 0xE0, 0x54,
+0xFE, 0xF0, 0x54, 0xFB, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0,
+0x22, 0x12, 0x24, 0x62, 0x90, 0x8B, 0x38, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x8A, 0xFD, 0xE0, 0x90, 0x8A, 0xE8, 0xF0, 0x90, 0x8A, 0xFE, 0xE0, 0xFF, 0xA3, 0xE0, 0x90,
+0x8A, 0xE9, 0xCF, 0xF0, 0xA3, 0xEF, 0xF0, 0xE4, 0x90, 0x8A, 0xE4, 0xF0, 0x90, 0x8A, 0xE4, 0xE0,
+0xFF, 0x24, 0x00, 0xF5, 0x82, 0xE4, 0x34, 0x8B, 0xF5, 0x83, 0xE0, 0xFE, 0x74, 0xEB, 0x2F, 0xF5,
+0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0x04, 0xF0, 0xE0, 0xB4,
+0x04, 0xDA, 0x90, 0x8A, 0xE8, 0xE0, 0x12, 0x43, 0x94, 0x78, 0xF8, 0x00, 0x7A, 0x6B, 0x01, 0x79,
+0x01, 0x02, 0x79, 0x01, 0x03, 0x79, 0x01, 0x04, 0x7A, 0x6B, 0x05, 0x7A, 0x35, 0x80, 0x7A, 0x4E,
+0x81, 0x7A, 0x6B, 0x82, 0x00, 0x00, 0x7A, 0x67, 0x90, 0x8A, 0xEE, 0xE0, 0xFF, 0x51, 0x72, 0x41,
+0x6B, 0x90, 0x8A, 0xE8, 0xE0, 0xFF, 0xB4, 0x02, 0x08, 0x90, 0x8A, 0xE5, 0x74, 0x01, 0xF0, 0x80,
+0x0F, 0xEF, 0x90, 0x8A, 0xE5, 0xB4, 0x03, 0x05, 0x74, 0x02, 0xF0, 0x80, 0x03, 0x74, 0x04, 0xF0,
+0xC3, 0x90, 0x8A, 0xE9, 0xE0, 0x94, 0x08, 0x50, 0x78, 0xE4, 0x90, 0x8A, 0xE4, 0xF0, 0x90, 0x8A,
+0xE5, 0xE0, 0xFF, 0x90, 0x8A, 0xE4, 0xE0, 0xC3, 0x9F, 0x40, 0x02, 0x41, 0x6B, 0x90, 0x8A, 0xE9,
+0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xC3, 0xEE, 0x94, 0x01, 0x90, 0x8A, 0xE4, 0xE0, 0x50, 0x1F, 0xFE,
+0x2F, 0xFF, 0xEE, 0xFD, 0xC3, 0x74, 0x03, 0x9D, 0xFD, 0xE4, 0x94, 0x00, 0xFC, 0x74, 0xEB, 0x2D,
+0xF5, 0x82, 0x74, 0x8A, 0x3C, 0xF5, 0x83, 0xE0, 0xFD, 0x12, 0x51, 0x88, 0x80, 0x2B, 0xFF, 0xFD,
+0xC3, 0x74, 0x03, 0x9D, 0xFD, 0xE4, 0x94, 0x00, 0xFC, 0x74, 0xEB, 0x2D, 0xF5, 0x82, 0x74, 0x8A,
+0x3C, 0xF5, 0x83, 0xE0, 0xFE, 0xEF, 0xFD, 0x90, 0x8A, 0xEA, 0xE0, 0x2D, 0xFD, 0x90, 0x8A, 0xE9,
+0xE0, 0x34, 0x00, 0x8D, 0x82, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0x04, 0xF0, 0x80,
+0x8D, 0xC3, 0x90, 0x8A, 0xE9, 0xE0, 0x94, 0x10, 0x40, 0x02, 0x41, 0x6B, 0x90, 0x8A, 0xE8, 0xE0,
+0x64, 0x04, 0x60, 0x02, 0x41, 0x6B, 0x90, 0x8A, 0xEC, 0xE0, 0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78,
+0x10, 0x12, 0x24, 0xF5, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90, 0x8A, 0xEB, 0xE0,
+0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78, 0x18, 0x12, 0x24, 0xF5, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01,
+0xD0, 0x00, 0x12, 0x43, 0x46, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90, 0x8A, 0xED,
+0xE0, 0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78, 0x08, 0x12, 0x24, 0xF5, 0xD0, 0x03, 0xD0, 0x02, 0xD0,
+0x01, 0xD0, 0x00, 0x12, 0x43, 0x46, 0xA8, 0x04, 0xA9, 0x05, 0xAA, 0x06, 0xAB, 0x07, 0xA3, 0xE0,
+0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x12, 0x43, 0x46, 0xA3, 0x12, 0x25, 0x08, 0x90, 0x8A, 0xEF, 0x12,
+0x43, 0x53, 0x90, 0x80, 0x96, 0x12, 0x25, 0x08, 0x90, 0x8A, 0xE9, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF,
+0x12, 0x2B, 0x08, 0x80, 0x36, 0x90, 0x8A, 0xED, 0xE0, 0xFE, 0xA3, 0xE0, 0x24, 0x00, 0xFF, 0xE4,
+0x3E, 0xFE, 0x90, 0x8A, 0xE6, 0xF0, 0xA3, 0xEF, 0xF0, 0x12, 0x32, 0x15, 0x80, 0x1D, 0x90, 0x8A,
+0xED, 0xE0, 0xFE, 0xA3, 0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0xFE, 0x90, 0x8A, 0xE6, 0xF0, 0xA3,
+0xEF, 0xF0, 0x12, 0x31, 0x82, 0x80, 0x04, 0x7F, 0x00, 0x80, 0x02, 0x7F, 0x01, 0xD0, 0xD0, 0x92,
+0xAF, 0x22, 0x8F, 0x0F, 0xE4, 0x90, 0x8A, 0xF3, 0xF0, 0xE5, 0x0F, 0x14, 0xFE, 0x90, 0x8A, 0xF3,
+0xE0, 0xFF, 0xC3, 0x9E, 0x50, 0x0E, 0xEF, 0x04, 0xFD, 0x12, 0x2D, 0x4D, 0x90, 0x8A, 0xF3, 0xE0,
+0x04, 0xF0, 0x80, 0xE5, 0xE5, 0x0F, 0x14, 0xFF, 0x7D, 0xFF, 0x12, 0x2D, 0x4D, 0x90, 0x8A, 0xF3,
+0xE5, 0x0F, 0xF0, 0x90, 0x8A, 0xF3, 0xE0, 0xC3, 0x94, 0xFF, 0x50, 0x0F, 0xE0, 0xFF, 0x04, 0xFD,
+0x12, 0x2D, 0x4D, 0x90, 0x8A, 0xF3, 0xE0, 0x04, 0xF0, 0x80, 0xE8, 0xAD, 0x0F, 0x7F, 0xFF, 0x02,
+0x2D, 0x4D, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0xA3, 0x74,
+0x04, 0xF0, 0xA3, 0xE4, 0xF0, 0x90, 0x8A, 0xE2, 0xF0, 0xA3, 0xF0, 0x90, 0x02, 0x09, 0xE0, 0x90,
+0x8A, 0xE1, 0xF0, 0x12, 0x24, 0x62, 0xFF, 0x90, 0x8A, 0xE1, 0xE0, 0x2F, 0x90, 0x8A, 0xE0, 0xF0,
+0x30, 0xE0, 0x0B, 0x90, 0x8A, 0xDB, 0xE4, 0xF0, 0xA3, 0x74, 0x80, 0xF0, 0x80, 0x07, 0xE4, 0x90,
+0x8A, 0xDB, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xC3, 0x13, 0x90, 0xFD, 0x10, 0xF0, 0x90,
+0x8A, 0xDD, 0xE0, 0x24, 0x20, 0xF0, 0x90, 0x8A, 0xDB, 0xA3, 0xE0, 0xFD, 0xA3, 0xE0, 0xFC, 0x2D,
+0xFF, 0x24, 0x01, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xFD, 0xF0, 0x74,
+0x02, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0xFE, 0xEC, 0x2D, 0x24, 0x03, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0x90, 0x8A, 0xFE, 0xF0,
+0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xDA, 0x74, 0x04, 0xF0, 0x90, 0x8A, 0xDB, 0xA3, 0xE0, 0xFF, 0xA3,
+0xE0, 0x2F, 0xFF, 0x90, 0x8A, 0xDA, 0xE0, 0xFE, 0x2F, 0x24, 0x00, 0xF5, 0x82, 0xE4, 0x34, 0xFC,
+0xF5, 0x83, 0xE0, 0xFF, 0x74, 0xFC, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0,
+0x90, 0x8A, 0xDA, 0xE0, 0x04, 0xF0, 0xE0, 0xB4, 0x08, 0xCF, 0x11, 0x89, 0xEF, 0x70, 0x45, 0x90,
+0x01, 0xC3, 0xE0, 0x60, 0x2B, 0xC3, 0x90, 0x8A, 0xE3, 0xE0, 0x94, 0xE8, 0x90, 0x8A, 0xE2, 0xE0,
+0x94, 0x03, 0x40, 0x09, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x10, 0xF0, 0x80, 0x79, 0x90, 0x8A, 0xE2,
+0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x7F, 0x0A, 0x7E, 0x00, 0x12, 0x32, 0x15, 0x80, 0xCF,
+0x90, 0x01, 0xC6, 0xE0, 0x90, 0x01, 0xC3, 0x30, 0xE2, 0x05, 0x74, 0xFE, 0xF0, 0x80, 0x57, 0x74,
+0xFF, 0xF0, 0x80, 0x52, 0x90, 0x8A, 0xDD, 0xE0, 0xB4, 0x78, 0x2E, 0xE4, 0xF0, 0x90, 0x8A, 0xE0,
+0xE0, 0x04, 0xF0, 0x90, 0x8A, 0xDB, 0xE0, 0x70, 0x04, 0xA3, 0xE0, 0x64, 0x80, 0x90, 0x8A, 0xDB,
+0x70, 0x05, 0xF0, 0xA3, 0xF0, 0x80, 0x06, 0xE4, 0xF0, 0xA3, 0x74, 0x80, 0xF0, 0x90, 0x8A, 0xE0,
+0xE0, 0xC3, 0x13, 0x90, 0xFD, 0x10, 0xF0, 0x80, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x24, 0x08, 0xF0,
+0x90, 0x8A, 0xDE, 0x74, 0xFF, 0xF5, 0xF0, 0x12, 0x42, 0x81, 0x90, 0x8A, 0xDE, 0xE0, 0x70, 0x02,
+0xA3, 0xE0, 0x60, 0x02, 0x61, 0x16, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x24, 0x62, 0x90, 0x8B,
+0x05, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x06, 0xF0, 0x22, 0xE4, 0xF5, 0x61,
+0x22, 0x91, 0x4A, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0,
+0x7F, 0x78, 0x7E, 0x08, 0x12, 0x22, 0x65, 0x90, 0x8B, 0x1C, 0x12, 0x25, 0x08, 0x7F, 0x04, 0x7E,
+0x0C, 0x12, 0x22, 0x65, 0x90, 0x8B, 0x20, 0x12, 0x25, 0x08, 0x7F, 0x00, 0x7E, 0x08, 0x12, 0x22,
+0x65, 0x90, 0x8B, 0x24, 0x12, 0x25, 0x08, 0x90, 0x8B, 0x09, 0xE0, 0x90, 0x8B, 0x1C, 0xB4, 0x01,
+0x0D, 0x12, 0x43, 0x53, 0xEF, 0x54, 0xC7, 0xFF, 0xED, 0x54, 0xC7, 0xFD, 0x80, 0x07, 0x12, 0x43,
+0x53, 0xEF, 0x54, 0xC7, 0xFF, 0xEC, 0x90, 0x80, 0x96, 0x12, 0x25, 0x08, 0x7F, 0x78, 0x7E, 0x08,
+0x12, 0x2B, 0x08, 0x90, 0x8B, 0x20, 0x12, 0x43, 0x53, 0xEF, 0x54, 0x0F, 0xFF, 0xEC, 0x90, 0x80,
+0x96, 0x12, 0x25, 0x08, 0x7F, 0x04, 0x7E, 0x0C, 0x12, 0x2B, 0x08, 0x90, 0x8B, 0x24, 0x12, 0x43,
+0x53, 0xEF, 0x44, 0x02, 0xFF, 0xEC, 0x90, 0x80, 0x96, 0x12, 0x25, 0x08, 0x7F, 0x00, 0x7E, 0x08,
+0x12, 0x2B, 0x08, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x22, 0x65, 0x90, 0x8B, 0x28, 0x12, 0x25, 0x08,
+0x90, 0x80, 0x96, 0x12, 0x25, 0x14, 0x00, 0x1B, 0x25, 0xA0, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x2B,
+0x08, 0x90, 0x80, 0x68, 0x12, 0x25, 0x14, 0x00, 0x00, 0x00, 0x00, 0xE4, 0xFD, 0xFF, 0x12, 0x30,
+0x2C, 0x90, 0x8B, 0x09, 0xE0, 0xB4, 0x01, 0x11, 0x90, 0x80, 0x68, 0x12, 0x25, 0x14, 0x00, 0x00,
+0x00, 0x00, 0xE4, 0xFD, 0x7F, 0x01, 0x12, 0x30, 0x2C, 0x90, 0x00, 0x11, 0xE0, 0x54, 0xF6, 0xF0,
+0x02, 0x52, 0x0E, 0x91, 0x50, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74,
+0xFF, 0xF0, 0x90, 0x8B, 0x33, 0x74, 0x04, 0xF0, 0x22, 0xB1, 0x42, 0x90, 0x8B, 0x33, 0x74, 0x04,
+0xF0, 0x22, 0x90, 0x00, 0x11, 0xE0, 0x44, 0x09, 0xF0, 0x12, 0x52, 0x0E, 0x90, 0x8B, 0x1C, 0x12,
+0x43, 0x53, 0x90, 0x80, 0x96, 0x12, 0x25, 0x08, 0x7F, 0x78, 0x7E, 0x08, 0x12, 0x2B, 0x08, 0x90,
+0x8B, 0x20, 0x12, 0x43, 0x53, 0x90, 0x80, 0x96, 0x12, 0x25, 0x08, 0x7F, 0x04, 0x7E, 0x0C, 0x12,
+0x2B, 0x08, 0x90, 0x8B, 0x24, 0x12, 0x43, 0x53, 0x90, 0x80, 0x96, 0x12, 0x25, 0x08, 0x7F, 0x00,
+0x7E, 0x08, 0x12, 0x2B, 0x08, 0x90, 0x8B, 0x28, 0x12, 0x43, 0x53, 0x90, 0x80, 0x96, 0x12, 0x25,
+0x08, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x2B, 0x08, 0x90, 0x80, 0x68, 0x12, 0x25, 0x14, 0x00, 0x03,
+0x2D, 0x95, 0xE4, 0xFD, 0xFF, 0x12, 0x30, 0x2C, 0x90, 0x8B, 0x09, 0xE0, 0xB4, 0x01, 0x11, 0x90,
+0x80, 0x68, 0x12, 0x25, 0x14, 0x00, 0x03, 0x2D, 0x95, 0xE4, 0xFD, 0x7F, 0x01, 0x12, 0x30, 0x2C,
+0x22, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x3C, 0xE5, 0x22, 0x54, 0x0F, 0x14, 0x60, 0x2E,
+0x14, 0x60, 0x1E, 0x24, 0xFE, 0x60, 0x0E, 0x24, 0xF8, 0x70, 0x2A, 0xE4, 0x90, 0x8B, 0x2D, 0xF0,
+0x90, 0x05, 0x22, 0xF0, 0x22, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x22, 0xE4, 0xF0,
+0x22, 0x90, 0x8B, 0x2D, 0x74, 0x03, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x22, 0x90, 0x01,
+0xC6, 0xE0, 0x44, 0x08, 0xF0, 0x22, 0xAE, 0x07, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x18,
+0x90, 0x8B, 0x2C, 0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x20, 0xE0, 0x0C, 0xAF, 0x06, 0x7D, 0x01,
+0x12, 0x45, 0xA2, 0xB1, 0xC1, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0x90, 0x01, 0x57, 0xE0, 0x60,
+0x3C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x1B, 0xE0,
+0x60, 0x07, 0xE4, 0xF0, 0x53, 0x25, 0xFD, 0x80, 0x24, 0x90, 0x8B, 0x0C, 0xE0, 0x04, 0xF0, 0x53,
+0x25, 0xEF, 0x90, 0x8B, 0x10, 0xE0, 0xFF, 0x90, 0x8B, 0x0C, 0xE0, 0xD3, 0x9F, 0x40, 0x0E, 0xE5,
+0x21, 0xB4, 0x01, 0x09, 0x90, 0x8B, 0x0D, 0xE0, 0x70, 0x03, 0xE0, 0x04, 0xF0, 0x90, 0x01, 0x5B,
+0xE0, 0x60, 0x10, 0x90, 0x01, 0x5B, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0, 0xE4, 0x90,
+0x8B, 0x18, 0xF0, 0x90, 0x01, 0x5F, 0xE0, 0x60, 0x10, 0x90, 0x01, 0x5F, 0xE4, 0xF0, 0x90, 0x01,
+0x3C, 0x74, 0x08, 0xF0, 0xE4, 0x90, 0x8B, 0x17, 0xF0, 0x22, 0xE4, 0x90, 0x8B, 0x4F, 0xF0, 0xA3,
+0xF0, 0x90, 0x05, 0xF8, 0xE0, 0x70, 0x0F, 0xA3, 0xE0, 0x70, 0x0B, 0xA3, 0xE0, 0x70, 0x07, 0xA3,
+0xE0, 0x70, 0x03, 0x7F, 0x01, 0x22, 0xD3, 0x90, 0x8B, 0x50, 0xE0, 0x94, 0xE8, 0x90, 0x8B, 0x4F,
+0xE0, 0x94, 0x03, 0x40, 0x03, 0x7F, 0x00, 0x22, 0x7F, 0x32, 0x7E, 0x00, 0x12, 0x32, 0x15, 0x90,
+0x8B, 0x4F, 0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x80, 0xC6, 0x00, 0xFB, 0x98};
-// ===================8723=========================================
-u8 Rtl8192CUFwUMC8723ImgArray[UMC8723ImgArrayLength] = {
-0xc1,0x88,0x02,0x00,0x39,0x00,0x01,0x00,0x09,0x09,0x16,0x47,0x80,0x3f,0x00,0x00,
-0x29,0x29,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x02,0x74,0xc9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x59,0xd0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x02,0x73,0xab,0x00,0x00,0x00,0x00,0x00,0x02,0x67,0xfe,0x00,0x00,
-0x05,0x04,0x03,0x02,0x00,0x03,0x06,0x05,0x04,0x03,0x00,0x04,0x06,0x05,0x04,0x02,
-0x00,0x04,0x08,0x07,0x06,0x04,0x00,0x06,0x0a,0x09,0x08,0x06,0x00,0x08,0x0a,0x09,
-0x08,0x04,0x00,0x08,0x0a,0x09,0x08,0x02,0x00,0x08,0x0a,0x09,0x08,0x00,0x00,0x08,
-0x12,0x11,0x10,0x08,0x00,0x10,0x1a,0x19,0x18,0x10,0x00,0x18,0x22,0x21,0x20,0x18,
-0x00,0x20,0x22,0x21,0x20,0x10,0x00,0x20,0x22,0x21,0x20,0x08,0x00,0x20,0x22,0x21,
-0x1c,0x08,0x00,0x20,0x22,0x21,0x14,0x08,0x00,0x20,0x22,0x20,0x18,0x08,0x00,0x20,
-0x31,0x30,0x20,0x10,0x00,0x30,0x31,0x30,0x18,0x00,0x00,0x30,0x31,0x2f,0x10,0x10,
-0x00,0x30,0x31,0x2c,0x10,0x10,0x00,0x30,0x31,0x28,0x10,0x00,0x00,0x30,0x31,0x20,
-0x10,0x00,0x00,0x30,0x31,0x10,0x10,0x00,0x00,0x30,0x05,0x05,0x05,0x05,0x05,0x05,
-0x05,0x07,0x07,0x07,0x08,0x0a,0x05,0x05,0x05,0x07,0x07,0x0a,0x0d,0x0e,0x05,0x05,
-0x07,0x07,0x08,0x0c,0x14,0x14,0x05,0x05,0x05,0x05,0x09,0x09,0x09,0x09,0x0c,0x0e,
-0x13,0x13,0x09,0x09,0x0a,0x0b,0x0d,0x11,0x13,0x13,0x09,0x09,0x09,0x09,0x0c,0x14,
-0x15,0x15,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x06,0x06,0x06,0x06,0x06,0x05,0x05,
-0x05,0x06,0x06,0x06,0x06,0x06,0x05,0x05,0x06,0x06,0x06,0x06,0x06,0x06,0x05,0x05,
-0x05,0x05,0x09,0x09,0x09,0x09,0x0b,0x0d,0x10,0x12,0x05,0x09,0x0a,0x0c,0x0d,0x0e,
-0x10,0x12,0x09,0x09,0x0e,0x0e,0x10,0x10,0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x24,0x26,0x2a,0x18,0x1a,0x1d,0x1f,0x21,0x27,0x29,0x2a,0x00,0x00,
-0x00,0x1f,0x23,0x28,0x2a,0x2c,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x18,
-0x00,0x24,0x00,0x30,0x00,0x48,0x00,0x60,0x00,0x90,0x00,0xc0,0x00,0xd8,0x00,0x50,
-0x00,0x78,0x00,0xa0,0x00,0xc8,0x01,0x40,0x01,0x90,0x01,0xe0,0x02,0x30,0x01,0x2c,
-0x01,0x40,0x01,0xe0,0x02,0xd0,0x03,0xe8,0x04,0xb0,0x06,0x40,0x07,0xd0,0x00,0x02,
-0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x0c,0x00,0x12,0x00,0x18,0x00,0x24,0x00,0x30,
-0x00,0x48,0x00,0x60,0x00,0x6c,0x00,0x28,0x00,0x3c,0x00,0x50,0x00,0x64,0x00,0xa0,
-0x00,0xc8,0x00,0xf0,0x01,0x18,0x00,0x64,0x00,0xa0,0x00,0xf0,0x01,0x68,0x01,0xf4,
-0x02,0x58,0x03,0x20,0x03,0xe8,0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,
-0x07,0x08,0x01,0x02,0x03,0x04,0x08,0x0f,0x23,0x3c,0x05,0x06,0x07,0x0f,0x19,0x32,
-0x4b,0x64,0x01,0x01,0x01,0x01,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x01,0x02,
-0x03,0x04,0x05,0x06,0x07,0x08,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x22,0x1f,
-0x1e,0x18,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-0x8f,0x17,0x74,0x42,0x90,0x01,0xc4,0xf0,0xa3,0x74,0x20,0xf0,0x74,0x84,0x25,0x17,
-0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x7f,0x90,0x97,0x54,0xf0,0xe0,0xfb,
-0x54,0x1f,0xff,0xa3,0xf0,0xe5,0x17,0x75,0xf0,0x08,0xa4,0x24,0x67,0xf5,0x82,0xe4,
-0x34,0x93,0xf5,0x83,0xe0,0xfe,0x90,0x97,0x57,0xf0,0xe5,0x17,0x25,0xe0,0x24,0x81,
-0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0xfd,0xa3,0xe0,0x90,0x97,0x58,0xcd,0xf0,
-0xa3,0xed,0xf0,0xe5,0x17,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe0,0xfd,0xa3,0xe0,0x90,0x97,0x5a,0xcd,0xf0,0xa3,0xed,0xf0,0xef,0xc3,0x9e,0x40,
-0x03,0x02,0x43,0x56,0x90,0x01,0xc5,0x74,0x20,0xf0,0x90,0x97,0x55,0xe0,0xff,0x74,
-0xa5,0x25,0x17,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xef,0xf0,0xef,0x04,0x90,0x97,
-0x56,0xf0,0x90,0x97,0x57,0xe0,0xff,0x90,0x97,0x56,0xe0,0xfe,0xd3,0x9f,0x40,0x03,
-0x02,0x43,0xa0,0xee,0xc3,0x94,0x10,0x40,0x21,0xee,0x24,0xf0,0xff,0x74,0x01,0x7e,
-0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x97,
-0x58,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x70,0x27,0x90,0x97,0x56,0xe0,0xff,0xc3,
-0x94,0x10,0x50,0x59,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,
-0x33,0xce,0xd8,0xf9,0xff,0x90,0x97,0x5a,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,
-0x3c,0x90,0x97,0x56,0xe0,0xb4,0x11,0x0d,0x90,0x97,0x59,0xe0,0x30,0xe7,0x06,0x90,
-0x97,0x56,0x74,0x17,0xf0,0x90,0x97,0x56,0xe0,0xff,0x64,0x13,0x60,0x04,0xef,0xb4,
-0x12,0x0d,0x90,0x97,0x58,0xe0,0x30,0xe0,0x06,0x90,0x97,0x56,0x74,0x18,0xf0,0x90,
-0x97,0x56,0xe0,0x90,0x97,0x55,0xf0,0x90,0x97,0x54,0xf0,0x80,0x53,0x90,0x97,0x56,
-0xe0,0x04,0xf0,0x02,0x42,0xb2,0x90,0x97,0x57,0xe0,0xf9,0x90,0x97,0x55,0xe0,0xff,
-0x69,0x60,0x03,0x02,0x43,0xe8,0x90,0x01,0xc5,0x74,0x40,0xf0,0x74,0xa5,0x25,0x17,
-0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xef,0xf0,0xe5,0x17,0x75,0xf0,0x08,0xa4,0x24,
-0x69,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xb4,0x01,0x14,0xeb,0x30,0xe6,0x06,
-0x90,0x97,0x54,0xe0,0xff,0x22,0x90,0x97,0x55,0xe0,0x44,0x40,0x90,0x97,0x54,0xf0,
-0x90,0x97,0x55,0xe0,0xff,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xe4,0x93,0xfc,0x74,0x01,0x93,0xfd,0xef,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,
-0x41,0xf5,0x83,0x74,0x01,0x93,0x2d,0xff,0xe4,0x93,0x3c,0xc3,0x13,0xfe,0xef,0x13,
-0xff,0xe4,0xfc,0xfd,0xe5,0x17,0x25,0xe0,0x25,0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,
-0x92,0xf5,0x83,0x12,0x1d,0xa9,0x80,0x71,0x90,0x97,0x55,0xe0,0xd3,0x99,0x40,0x69,
-0x90,0x01,0xc5,0x74,0x60,0xf0,0x90,0x97,0x57,0xe0,0xff,0x74,0xa5,0x25,0x17,0xf5,
-0x82,0xe4,0x34,0x96,0xf5,0x83,0xef,0xf0,0x90,0x97,0x55,0xef,0xf0,0x90,0x97,0x54,
-0xf0,0xfb,0xa3,0xe0,0xff,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,
-0xe4,0x93,0xfc,0x74,0x01,0x93,0xfd,0xef,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,
-0x41,0xf5,0x83,0x74,0x01,0x93,0x2d,0xff,0xe4,0x93,0x3c,0xc3,0x13,0xfe,0xef,0x13,
-0xff,0xe4,0xfc,0xfd,0xe5,0x17,0x25,0xe0,0x25,0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,
-0x92,0xf5,0x83,0x12,0x1d,0xa9,0xaf,0x03,0x22,0x74,0x01,0x25,0x17,0xf5,0x82,0xe4,
-0x34,0x92,0xf5,0x83,0xe4,0xf0,0x90,0x97,0x54,0xe0,0x44,0x80,0xff,0x74,0x84,0x25,
-0x17,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xef,0xf0,0x22,0xef,0x14,0x60,0x20,0x14,
-0x60,0x4b,0x24,0x02,0x70,0x78,0x90,0x97,0x69,0x74,0x02,0xf0,0x90,0x00,0x48,0xe0,
-0x44,0x0c,0xf0,0x90,0x00,0x47,0xe0,0x44,0x08,0xf0,0x90,0x00,0x45,0x80,0x5b,0xe4,
-0x90,0x97,0x69,0xf0,0x90,0x97,0x65,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,
-0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x08,0x12,0x33,0xd8,0x90,
-0x00,0x45,0xe0,0x44,0xef,0xf0,0xe0,0x54,0xef,0xf0,0xa3,0x80,0x2d,0x90,0x97,0x69,
-0x74,0x01,0xf0,0x90,0x97,0x6f,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,
-0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x08,0x12,0x33,0xd8,0x90,0x00,
-0x45,0xe0,0x44,0x20,0xf0,0xe0,0x44,0x10,0xf0,0xa3,0xe0,0x44,0x10,0xf0,0x22,0xe4,
-0xf5,0x61,0x22,0x02,0x7f,0x69,0x02,0x7f,0x70,0x74,0x45,0x90,0x01,0xc4,0xf0,0xa3,
-0x74,0x09,0xf0,0xe4,0x90,0x97,0x3a,0xf0,0x90,0x97,0x3a,0xe0,0xff,0xc3,0x94,0x20,
-0x40,0x03,0x02,0x4e,0x3a,0xef,0x75,0xf0,0x08,0xa4,0x24,0x6a,0xf5,0x82,0xe4,0x34,
-0x93,0xf5,0x83,0xe0,0x64,0x01,0x60,0x03,0x02,0x4e,0x31,0x90,0x97,0x3a,0xe0,0x25,
-0xe0,0x24,0xc0,0xf5,0x82,0xe4,0x34,0x91,0xf5,0x83,0xe0,0xfc,0xa3,0xe0,0xd3,0x94,
-0x00,0xec,0x94,0x00,0x50,0x03,0x02,0x4e,0x31,0xef,0x75,0xf0,0x0a,0xa4,0x24,0x00,
-0xf9,0x74,0x90,0x35,0xf0,0xfa,0x7b,0x01,0x8b,0x13,0xf5,0x14,0x89,0x15,0x90,0x97,
-0x3a,0xe0,0x25,0xe0,0x24,0xc0,0xf5,0x82,0xe4,0x34,0x91,0xf5,0x83,0xe0,0xfd,0xa3,
-0xe0,0x90,0x97,0x46,0xcd,0xf0,0xa3,0xed,0xf0,0xef,0x25,0xe0,0x24,0x63,0xf5,0x82,
-0xe4,0x34,0x94,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x97,0x48,0xcf,0xf0,0xa3,0xef,
-0xf0,0x90,0x00,0x02,0x12,0x66,0x20,0xff,0xae,0xf0,0x12,0x65,0xf5,0x2f,0xff,0xe5,
-0xf0,0x3e,0x90,0x97,0x4f,0xf0,0xa3,0xef,0xf0,0x90,0x00,0x06,0x12,0x66,0x20,0xff,
-0xae,0xf0,0x90,0x00,0x04,0x12,0x66,0x20,0x2f,0xff,0xe5,0xf0,0x3e,0x90,0x97,0x4d,
-0xf0,0xa3,0xef,0xf0,0x90,0x00,0x08,0x12,0x66,0x20,0xff,0x90,0x97,0x4b,0xe5,0xf0,
-0xf0,0xa3,0xef,0xf0,0x90,0x97,0x3a,0xe0,0xfe,0x24,0x84,0xf5,0x82,0xe4,0x34,0x04,
-0xf5,0x83,0xe0,0x54,0x3f,0x90,0x97,0x3c,0xf0,0xe0,0xfd,0x54,0x1f,0xa3,0xf0,0xee,
-0x75,0xf0,0x08,0xa4,0x24,0x67,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0x90,0x97,
-0x51,0xf0,0x90,0x97,0x3a,0xe0,0xfb,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,
-0xe0,0xc3,0x94,0x05,0x40,0x03,0x02,0x49,0xc2,0x90,0x97,0x51,0xe0,0xfe,0x90,0x97,
-0x3d,0xe0,0x9e,0x40,0x13,0x90,0x97,0x51,0xe0,0x90,0x97,0x3d,0xf0,0xed,0x54,0x40,
-0xfd,0x90,0x97,0x3c,0xf0,0xee,0x4d,0xf0,0x90,0x04,0xfd,0xe0,0x64,0x01,0x70,0x28,
-0x90,0x97,0x3d,0xe0,0xff,0x90,0x41,0x4a,0x93,0xfe,0x74,0x23,0x2b,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0xe0,0xc3,0x9e,0x40,0x06,0xef,0x90,0x41,0x12,0x80,0x32,0x90,
-0x97,0x3d,0xe0,0x90,0x41,0x2e,0x80,0x29,0x90,0x97,0x3d,0xe0,0xff,0x90,0x41,0x4a,
-0x93,0xfe,0x90,0x97,0x3a,0xe0,0x24,0x23,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,
-0xc3,0x9e,0x40,0x06,0xef,0x90,0x40,0xda,0x80,0x07,0x90,0x97,0x3d,0xe0,0x90,0x40,
-0xf6,0x93,0x90,0x97,0x4a,0xf0,0x90,0x97,0x4a,0xe0,0x75,0xf0,0x06,0xa4,0x24,0x50,
-0xf9,0x74,0x40,0x35,0xf0,0x75,0x10,0xff,0xf5,0x11,0x89,0x12,0x90,0x97,0x3c,0xe0,
-0x90,0x41,0xf2,0x93,0xff,0xd3,0x90,0x97,0x49,0xe0,0x9f,0x90,0x97,0x48,0xe0,0x94,
-0x00,0x40,0x0d,0x90,0x97,0x3a,0xe0,0xff,0xe4,0xfd,0x12,0x5f,0x6d,0x02,0x4d,0xc7,
-0x90,0x97,0x3a,0xe0,0x25,0xe0,0x25,0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,0x92,0xf5,
-0x83,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x97,0x3e,0x12,
-0x1d,0xa9,0x90,0x97,0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,
-0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xab,0x10,0xaa,0x11,0xa9,0x12,0x12,0x1c,
-0xd6,0xff,0x7e,0x00,0xab,0x13,0xaa,0x14,0xa9,0x15,0x12,0x65,0xf5,0xfd,0xac,0xf0,
-0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xeb,0x2f,
-0xff,0xea,0x3e,0xfe,0xed,0x39,0xfd,0xec,0x38,0xfc,0x90,0x97,0x3e,0x12,0x1d,0xa9,
-0x90,0x97,0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xc0,0x00,
-0xc0,0x01,0xc0,0x02,0xc0,0x03,0xab,0x10,0xaa,0x11,0xa9,0x12,0x90,0x00,0x01,0x12,
-0x1c,0xef,0xff,0x7e,0x00,0xab,0x13,0xaa,0x14,0xa9,0x15,0x90,0x00,0x02,0x12,0x66,
-0x20,0xfd,0xac,0xf0,0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0xd0,0x03,0xd0,0x02,0xd0,0x01,
-0xd0,0x00,0xeb,0x2f,0xff,0xea,0x3e,0xfe,0xed,0x39,0xfd,0xec,0x38,0xfc,0x90,0x97,
-0x3e,0x12,0x1d,0xa9,0x90,0x97,0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,
-0xe0,0xfb,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xab,0x10,0xaa,0x11,0xa9,0x12,
-0x90,0x00,0x02,0x12,0x1c,0xef,0xff,0x7e,0x00,0xab,0x13,0xaa,0x14,0xa9,0x15,0x90,
-0x00,0x04,0x12,0x66,0x20,0xfd,0xac,0xf0,0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0xd0,0x03,
-0xd0,0x02,0xd0,0x01,0xd0,0x00,0xeb,0x2f,0xff,0xea,0x3e,0xfe,0xed,0x39,0xfd,0xec,
-0x38,0xfc,0x90,0x97,0x3e,0x12,0x1d,0xa9,0x90,0x97,0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,
-0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xab,0x10,
-0xaa,0x11,0xa9,0x12,0x90,0x00,0x03,0x12,0x1c,0xef,0xff,0x7e,0x00,0xab,0x13,0xaa,
-0x14,0xa9,0x15,0x90,0x00,0x06,0x12,0x66,0x20,0xfd,0xac,0xf0,0x12,0x1d,0x1c,0xe4,
-0xfc,0xfd,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xeb,0x2f,0xff,0xea,0x3e,0xfe,
-0xed,0x39,0xfd,0xec,0x38,0xfc,0x90,0x97,0x3e,0x12,0x1d,0xa9,0x90,0x97,0x3e,0xe0,
-0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xc0,0x00,0xc0,0x01,0xc0,0x02,
-0xc0,0x03,0xab,0x10,0xaa,0x11,0xa9,0x12,0x90,0x00,0x04,0x12,0x1c,0xef,0xff,0x7e,
-0x00,0xab,0x13,0xaa,0x14,0xa9,0x15,0x90,0x00,0x08,0x12,0x66,0x20,0xfd,0xac,0xf0,
-0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xeb,0x2f,
-0xff,0xea,0x3e,0xfe,0xed,0x39,0xfd,0xec,0x38,0xfc,0x90,0x97,0x3e,0x12,0x1d,0xa9,
-0xab,0x10,0xaa,0x11,0xa9,0x12,0x90,0x00,0x05,0x12,0x1c,0xef,0xff,0x7e,0x00,0x90,
-0x97,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0x90,0x97,0x3e,
-0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xd3,0x12,0x66,0xa4,0x90,
-0x97,0x3e,0x40,0x50,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0xc0,
-0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0xab,0x10,0xaa,0x11,0xa9,0x12,0x90,0x00,0x05,
-0x12,0x1c,0xef,0xff,0x7e,0x00,0x90,0x97,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x1d,
-0x1c,0xab,0x07,0xaa,0x06,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xc3,0xef,0x9b,
-0xff,0xee,0x9a,0xfe,0xed,0x94,0x00,0xfd,0xec,0x94,0x00,0xfc,0x90,0x97,0x3e,0x12,
-0x1d,0xa9,0x80,0x07,0x12,0x1d,0xb5,0x00,0x00,0x00,0x00,0x90,0x97,0x3e,0xe0,0xfc,
-0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x97,0x3a,0xe0,0x25,0xe0,0x25,
-0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0x12,0x1d,0xa9,0x90,0x97,0x3c,
-0xe0,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,
-0x01,0x93,0xff,0xe4,0xfc,0xfd,0x90,0x97,0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,
-0xfa,0xa3,0xe0,0xfb,0xd3,0x12,0x66,0xa4,0x40,0x0b,0x90,0x97,0x3a,0xe0,0xff,0x12,
-0x42,0x20,0x02,0x4d,0x3e,0x90,0x97,0x3c,0xe0,0x25,0xe0,0x24,0x9e,0xf5,0x82,0xe4,
-0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,0xff,0xe4,0xfc,0xfd,0x90,0x97,
-0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xc3,0x12,0x66,0xa4,
-0x40,0x03,0x02,0x4d,0x3e,0x90,0x97,0x3a,0xe0,0xff,0x7d,0x01,0x12,0x5f,0x6d,0x02,
-0x4d,0x3e,0x90,0x97,0x3a,0xe0,0xff,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,
-0xe0,0x64,0x05,0x60,0x03,0x02,0x4b,0x8e,0x90,0x04,0xb3,0xe0,0x64,0x01,0x70,0x03,
-0x02,0x4b,0x8e,0x90,0x93,0x62,0xe0,0xfe,0xb4,0x03,0x0b,0x90,0x97,0x3d,0xe0,0xc3,
-0x94,0x19,0x40,0x3d,0x80,0x2e,0xee,0xb4,0x02,0x0b,0x90,0x97,0x3d,0xe0,0xc3,0x94,
-0x11,0x40,0x2e,0x80,0x1f,0x90,0x93,0x62,0xe0,0xfe,0xb4,0x01,0x0b,0x90,0x97,0x3d,
-0xe0,0xc3,0x94,0x0a,0x40,0x1b,0x80,0x0c,0xee,0x70,0x11,0x90,0x97,0x3d,0xe0,0xc3,
-0x94,0x03,0x40,0x0d,0x90,0x95,0x43,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x95,0x43,
-0xf0,0x74,0x23,0x2f,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xff,0xc3,0x94,0x30,
-0x50,0x03,0x02,0x4b,0x2d,0x90,0x95,0x43,0xe0,0x64,0x01,0x60,0x03,0x02,0x4b,0x2d,
-0x90,0x97,0x3a,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x64,0x0a,
-0x60,0x56,0x90,0x97,0x3a,0xe0,0xfe,0xef,0x24,0x05,0xfd,0xe4,0x33,0xfc,0x74,0x21,
-0x2e,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0xff,0xd3,0x9d,0xec,0x64,0x80,0xf8,
-0x74,0x80,0x98,0x50,0x33,0xef,0x24,0x05,0xfd,0xe4,0x33,0xfc,0x74,0x23,0x2e,0xf5,
-0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xd3,0x9d,0xec,0x64,0x80,0xf8,0x74,0x80,0x98,
-0x50,0x16,0x90,0x97,0x3a,0xe0,0x24,0x84,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe0,
-0xff,0x90,0x97,0x3d,0xe0,0x6f,0x60,0x56,0x90,0x97,0x3a,0xe0,0x24,0x23,0xf5,0x82,
-0xe4,0x34,0x95,0xf5,0x83,0xe0,0xff,0xd3,0x94,0x46,0x40,0x08,0x90,0x97,0x52,0x74,
-0x05,0xf0,0x80,0x11,0xef,0xd3,0x94,0x3c,0x90,0x97,0x52,0x40,0x05,0x74,0x03,0xf0,
-0x80,0x03,0x74,0x01,0xf0,0x90,0x97,0x3a,0xe0,0xff,0x24,0x23,0xf5,0x82,0xe4,0x34,
-0x95,0xf5,0x83,0xe0,0xfe,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xee,
-0xf0,0x90,0x97,0x3a,0xe0,0x24,0x44,0xf5,0x82,0xe4,0x34,0x95,0x80,0x2f,0x90,0x97,
-0x3a,0xe0,0xff,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe4,0xf0,0x74,0x44,
-0x2f,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x04,0xf0,0x80,0x14,0xe4,0x90,0x97,
-0x52,0xf0,0x90,0x97,0x3a,0xe0,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe4,
-0xf0,0x90,0x97,0x3d,0xe0,0xff,0x90,0x97,0x3a,0xe0,0xfe,0x24,0x84,0xf5,0x82,0xe4,
-0x34,0x96,0xf5,0x83,0xef,0xf0,0xee,0x30,0xe0,0x1e,0x90,0x97,0x52,0xe0,0xc4,0x54,
-0xf0,0xf0,0x90,0x97,0x3a,0xe0,0xc3,0x13,0xff,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,
-0xf5,0x83,0xe0,0x54,0x0f,0x02,0x4d,0x21,0x90,0x97,0x3a,0xe0,0xc3,0x13,0xff,0x24,
-0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0xf0,0x02,0x4d,0x21,0x90,0x97,
-0x3a,0xe0,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe0,0x64,0x06,0x60,0x03,
-0x02,0x4d,0x3e,0x90,0x04,0xb3,0xe0,0x64,0x01,0x70,0x03,0x02,0x4d,0x3e,0x90,0x97,
-0x3e,0x12,0x1d,0xb5,0x00,0x00,0x00,0x00,0x90,0x42,0x13,0xe4,0x93,0xff,0x7e,0x00,
-0x90,0x97,0x46,0xe0,0xfc,0xa3,0xe0,0xfd,0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0x90,0x97,
-0x42,0x12,0x1d,0xa9,0xe4,0x90,0x97,0x3b,0xf0,0x90,0x97,0x3e,0xe0,0xf8,0xa3,0xe0,
-0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,0xab,
-0x13,0xaa,0x14,0xa9,0x15,0x90,0x97,0x3b,0xe0,0xff,0x75,0xf0,0x02,0xa4,0xf5,0x82,
-0x85,0xf0,0x83,0x12,0x66,0x20,0xfd,0xac,0xf0,0xef,0x90,0x42,0x0e,0x93,0xff,0x7e,
-0x00,0x12,0x1d,0x1c,0xe4,0xfc,0xfd,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xeb,
-0x2f,0xff,0xea,0x3e,0xfe,0xed,0x39,0xfd,0xec,0x38,0xfc,0x90,0x97,0x3e,0x12,0x1d,
-0xa9,0x90,0x97,0x42,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,
-0x97,0x3e,0xe0,0xf8,0xa3,0xe0,0xf9,0xa3,0xe0,0xfa,0xa3,0xe0,0xfb,0xd3,0x12,0x66,
-0xa4,0x50,0x0e,0x90,0x97,0x3b,0xe0,0x04,0xf0,0xe0,0x64,0x05,0x60,0x03,0x02,0x4b,
-0xd9,0x90,0x97,0x3b,0xe0,0xc3,0x13,0xf0,0x90,0x97,0x52,0xe0,0xff,0xb4,0x01,0x0d,
-0x90,0x97,0x3b,0xe0,0x70,0x5d,0x90,0x97,0x52,0x04,0xf0,0x80,0x5b,0xef,0xb4,0x03,
-0x1d,0x90,0x97,0x3b,0xe0,0xff,0x70,0x08,0x90,0x97,0x52,0x74,0x03,0xf0,0x80,0x48,
-0xef,0xb4,0x01,0x08,0x90,0x97,0x52,0x74,0x01,0xf0,0x80,0x3c,0x80,0x35,0x90,0x97,
-0x52,0xe0,0x64,0x05,0x70,0x32,0x90,0x97,0x3b,0xe0,0xff,0x70,0x08,0x90,0x97,0x52,
-0x74,0x05,0xf0,0x80,0x0f,0xef,0x90,0x97,0x52,0xb4,0x01,0x05,0x74,0x03,0xf0,0x80,
-0x03,0x74,0x01,0xf0,0xd3,0x90,0x97,0x49,0xe0,0x94,0x03,0x90,0x97,0x48,0xe0,0x94,
-0x00,0x40,0x05,0xe4,0x90,0x97,0x52,0xf0,0xd3,0x90,0x97,0x49,0xe0,0x94,0x03,0x90,
-0x97,0x48,0xe0,0x94,0x00,0x40,0x05,0xe4,0x90,0x97,0x52,0xf0,0x90,0x97,0x3a,0xe0,
-0xff,0x30,0xe0,0x1a,0x90,0x97,0x52,0xe0,0xc4,0x54,0xf0,0xf0,0xef,0xc3,0x13,0xff,
-0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,0x0f,0x80,0x13,0x90,0x97,
-0x3a,0xe0,0xc3,0x13,0xff,0x24,0xa4,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,
-0xf0,0xf0,0x74,0xa4,0x2f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xc0,0x83,0xc0,0x82,
-0xe0,0xff,0x90,0x97,0x52,0xe0,0xfe,0xef,0x4e,0xd0,0x82,0xd0,0x83,0xf0,0x90,0x97,
-0x3a,0xe0,0xff,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe0,0xd3,0x94,0x05,
-0x50,0x0f,0x74,0x64,0x2f,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe0,0x04,0xf0,0x80,
-0x0f,0x90,0x97,0x3a,0xe0,0x24,0x64,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe4,0xf0,
-0x90,0x97,0x3a,0xe0,0xff,0x24,0x84,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe0,0x54,
-0x1f,0xc3,0x94,0x09,0x50,0x05,0x90,0x92,0x00,0x80,0x11,0x74,0x84,0x2f,0xf5,0x82,
-0xe4,0x34,0x04,0xf5,0x83,0xe0,0x90,0x92,0x00,0x20,0xe2,0x05,0x74,0x08,0xf0,0x80,
-0x03,0x74,0x04,0xf0,0x90,0x97,0x3a,0xe0,0x60,0x0d,0x90,0x96,0xa4,0xe0,0xff,0x90,
-0x92,0x00,0xe0,0xc3,0x9f,0x50,0x08,0x90,0x92,0x00,0xe0,0x90,0x96,0xa4,0xf0,0x90,
-0x96,0xa4,0xe0,0x90,0x04,0x80,0xf0,0xab,0x13,0xaa,0x14,0xa9,0x15,0xe4,0xf5,0xf0,
-0x12,0x66,0x58,0xab,0x13,0xaa,0x14,0xa9,0x15,0x90,0x00,0x02,0xe4,0xf5,0xf0,0x12,
-0x66,0x77,0x90,0x00,0x04,0xe4,0xf5,0xf0,0x12,0x66,0x77,0x90,0x00,0x06,0xe4,0xf5,
-0xf0,0x12,0x66,0x77,0x90,0x00,0x08,0xe4,0xf5,0xf0,0x12,0x66,0x77,0x90,0x97,0x3a,
-0xe0,0xff,0x25,0xe0,0x24,0xc0,0xf5,0x82,0xe4,0x34,0x91,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0xef,0x25,0xe0,0x24,0x63,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0xef,0x25,0xe0,0x24,0xa3,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0x90,0x97,0x3a,0xe0,0x04,0xf0,0x02,0x45,0x18,0x22,0xef,0x70,0x03,0x02,0x50,
-0xa3,0x90,0x97,0x2d,0xe0,0x60,0x03,0x02,0x54,0xe5,0x90,0x97,0x19,0xe0,0xfc,0xa3,
-0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x8c,
-0x7e,0x08,0x12,0x33,0xd8,0x90,0x96,0xc5,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,
-0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x44,0x7e,0x08,0x12,0x33,0xd8,
-0x90,0x96,0xc9,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,
-0x56,0x12,0x1d,0xa9,0x7f,0x5c,0x7e,0x08,0x12,0x33,0xd8,0x90,0x96,0xcd,0xe0,0xfc,
-0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,
-0x6c,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,0xd1,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,
-0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x70,0x7e,0x0e,0x12,0x33,
-0xd8,0x90,0x96,0xd5,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,
-0x81,0x56,0x12,0x1d,0xa9,0x7f,0x74,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,0xd9,0xe0,
-0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,
-0x7f,0x78,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,0xdd,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,
-0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x7c,0x7e,0x0e,0x12,
-0x33,0xd8,0x90,0x96,0xe1,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,
-0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,0xe5,
-0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,
-0xa9,0x7f,0x84,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,0xe9,0xe0,0xfc,0xa3,0xe0,0xfd,
-0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x88,0x7e,0x0e,
-0x12,0x33,0xd8,0x90,0x96,0xed,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,
-0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x8c,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,
-0xf1,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,
-0x1d,0xa9,0x7f,0xd0,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x96,0xf5,0xe0,0xfc,0xa3,0xe0,
-0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0xd4,0x7e,
-0x0e,0x12,0x33,0xd8,0x90,0x96,0xf9,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,
-0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0xd8,0x7e,0x0e,0x12,0x33,0xd8,0x90,
-0x96,0xfd,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,
-0x12,0x1d,0xa9,0x7f,0xdc,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x97,0x01,0xe0,0xfc,0xa3,
-0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0xe0,
-0x7e,0x0e,0x12,0x33,0xd8,0x90,0x97,0x05,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,
-0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0xec,0x7e,0x0e,0x12,0x33,0xd8,
-0x90,0x97,0x09,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,
-0x56,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x0c,0x12,0x33,0xd8,0x90,0x97,0x0d,0xe0,0xfc,
-0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,
-0x04,0x7e,0x0d,0x12,0x33,0xd8,0x90,0x97,0x11,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,
-0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x0c,0x7e,0x09,0x12,0x33,
-0xd8,0x90,0x97,0x15,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,
-0x81,0x56,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x08,0x12,0x33,0xd8,0x90,0x97,0x2d,0x74,
-0x01,0xf0,0x22,0x90,0x97,0x2d,0xe0,0x64,0x01,0x60,0x03,0x02,0x54,0xe5,0x7f,0x8c,
-0x7e,0x08,0x12,0x2b,0x13,0x90,0x97,0x19,0x12,0x1d,0xa9,0x7f,0x44,0x7e,0x08,0x12,
-0x2b,0x13,0x90,0x96,0xc5,0x12,0x1d,0xa9,0x7f,0x5c,0x7e,0x08,0x12,0x2b,0x13,0x90,
-0x96,0xc9,0x12,0x1d,0xa9,0x7f,0x6c,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xcd,0x12,
-0x1d,0xa9,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xd1,0x12,0x1d,0xa9,0x7f,
-0x74,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xd5,0x12,0x1d,0xa9,0x7f,0x78,0x7e,0x0e,
-0x12,0x2b,0x13,0x90,0x96,0xd9,0x12,0x1d,0xa9,0x7f,0x7c,0x7e,0x0e,0x12,0x2b,0x13,
-0x90,0x96,0xdd,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xe1,
-0x12,0x1d,0xa9,0x7f,0x84,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xe5,0x12,0x1d,0xa9,
-0x7f,0x88,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xe9,0x12,0x1d,0xa9,0x7f,0x8c,0x7e,
-0x0e,0x12,0x2b,0x13,0x90,0x96,0xed,0x12,0x1d,0xa9,0x7f,0xd0,0x7e,0x0e,0x12,0x2b,
-0x13,0x90,0x96,0xf1,0x12,0x1d,0xa9,0x7f,0xd4,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,
-0xf5,0x12,0x1d,0xa9,0x7f,0xd8,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xf9,0x12,0x1d,
-0xa9,0x7f,0xdc,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x96,0xfd,0x12,0x1d,0xa9,0x7f,0xe0,
-0x7e,0x0e,0x12,0x2b,0x13,0x90,0x97,0x01,0x12,0x1d,0xa9,0x7f,0xec,0x7e,0x0e,0x12,
-0x2b,0x13,0x90,0x97,0x05,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x13,0x90,
-0x97,0x09,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x0d,0x12,0x2b,0x13,0x90,0x97,0x0d,0x12,
-0x1d,0xa9,0x7f,0x0c,0x7e,0x09,0x12,0x2b,0x13,0x90,0x97,0x11,0x12,0x1d,0xa9,0x7f,
-0x04,0x7e,0x08,0x12,0x2b,0x13,0x90,0x97,0x15,0x12,0x1d,0xa9,0x7f,0x8c,0x7e,0x08,
-0x12,0x2b,0x13,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,
-0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0xed,0x44,0xc0,0xfd,0xec,0x90,0x97,0xa3,0x12,
-0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,
-0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x8c,0x7e,0x08,0x12,0x33,0xd8,0x90,0x81,0x56,
-0x12,0x1d,0xb5,0x00,0x01,0x00,0x00,0x7f,0x44,0x7e,0x08,0x12,0x33,0xd8,0x90,0x81,
-0x56,0x12,0x1d,0xb5,0x00,0xdb,0x25,0xa4,0x7f,0x5c,0x7e,0x08,0x12,0x33,0xd8,0x90,
-0x81,0x56,0x12,0x1d,0xb5,0x20,0xdb,0x25,0xa4,0x7f,0x6c,0x7e,0x0e,0x12,0x33,0xd8,
-0x90,0x81,0x56,0x12,0x1d,0xb5,0x20,0xdb,0x25,0xa4,0x7f,0x70,0x7e,0x0e,0x12,0x33,
-0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x04,0x1b,0x25,0xa4,0x7f,0x74,0x7e,0x0e,0x12,
-0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x04,0x1b,0x25,0xa4,0x7f,0x78,0x7e,0x0e,
-0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x04,0x1b,0x25,0xa4,0x7f,0x7c,0x7e,
-0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x04,0x1b,0x25,0xa4,0x7f,0x80,
-0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x63,0xdb,0x25,0xa4,0x7f,
-0x84,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x04,0x1b,0x25,0xa4,
-0x7f,0x88,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x20,0xdb,0x25,
-0xa4,0x7f,0x8c,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x20,0xdb,
-0x25,0xa4,0x7f,0xd0,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,0x20,
-0xdb,0x25,0xa4,0x7f,0xd4,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,0xb5,
-0x20,0xdb,0x25,0xa4,0x7f,0xd8,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,0x1d,
-0xb5,0x00,0x1b,0x25,0xa4,0x7f,0xdc,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,0x12,
-0x1d,0xb5,0x00,0x1b,0x25,0xa4,0x7f,0xe0,0x7e,0x0e,0x12,0x33,0xd8,0x90,0x81,0x56,
-0x12,0x1d,0xb5,0x24,0xdb,0x25,0xa4,0x7f,0xec,0x7e,0x0e,0x12,0x33,0xd8,0x7f,0x04,
-0x7e,0x0c,0x12,0x2b,0x13,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,
-0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xe4,0xff,0xec,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,
-0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0x44,0x11,0xff,0xec,
-0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,
-0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x0c,0x12,0x33,
-0xd8,0x7f,0x04,0x7e,0x0d,0x12,0x2b,0x13,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,
-0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0x54,0xf0,0xff,0xec,0x90,
-0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,
-0xa3,0xe0,0x44,0x01,0xff,0xec,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,
-0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,
-0x7f,0x04,0x7e,0x0d,0x12,0x33,0xd8,0x7f,0x0c,0x7e,0x09,0x12,0x2b,0x13,0x90,0x97,
-0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xe4,
-0xff,0xec,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,
-0xa3,0xe0,0xfe,0xa3,0xe0,0x44,0x11,0xff,0xec,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,
-0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,
-0x12,0x1d,0xa9,0x7f,0x0c,0x7e,0x09,0x12,0x33,0xd8,0x7f,0x0c,0x7e,0x09,0x12,0x2b,
-0x13,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,
-0xe0,0xfe,0xa3,0xe0,0xff,0xed,0x54,0x0f,0xfd,0xec,0x54,0xf0,0xfc,0x90,0x97,0xa3,
-0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,
-0xff,0xed,0x44,0x10,0xfd,0xec,0x44,0x01,0xfc,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,
-0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,
-0x12,0x1d,0xa9,0x7f,0x0c,0x7e,0x09,0x12,0x33,0xd8,0x7f,0x04,0x7e,0x08,0x12,0x2b,
-0x13,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,
-0xe0,0xfe,0xa3,0xe0,0x54,0xf0,0xff,0xec,0x90,0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,
-0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0x44,0x01,0xff,0xec,0x90,
-0x97,0xa3,0x12,0x1d,0xa9,0x90,0x97,0xa3,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,
-0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x08,0x12,0x33,0xd8,
-0xe4,0x90,0x97,0x2d,0xf0,0x22,0x8f,0x10,0xef,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,
-0x34,0x95,0xaf,0x82,0xf5,0x11,0x8f,0x12,0xe5,0x10,0x75,0xf0,0x02,0xa4,0x24,0x81,
-0xf9,0x74,0x92,0x35,0xf0,0x75,0x13,0x01,0xf5,0x14,0x89,0x15,0xe5,0x10,0x75,0xf0,
-0x08,0xa4,0x24,0x65,0xf5,0x82,0xe4,0x34,0x93,0xaf,0x82,0xf5,0x16,0x8f,0x17,0xe5,
-0x10,0x75,0xf0,0x08,0xa4,0x24,0x63,0xf9,0x74,0x93,0x35,0xf0,0x75,0x18,0x01,0xf5,
-0x19,0x89,0x1a,0x74,0xc1,0x25,0x10,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0x12,
-0x66,0xc1,0x55,0x67,0x00,0x55,0x7c,0x01,0x55,0x91,0x02,0x55,0xa6,0x03,0x55,0xd0,
-0x04,0x55,0xe5,0x05,0x55,0xfa,0x06,0x56,0x21,0x0c,0x56,0x4f,0x0d,0x56,0x7c,0x0e,
-0x56,0xa9,0x0f,0x00,0x00,0x56,0xdd,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,
-0x34,0x95,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x15,0x80,0x3c,0xe5,0x10,0x25,0xe0,
-0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0x74,0x10,0x80,
-0x27,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0xf0,
-0xf0,0xa3,0x74,0x05,0x80,0x12,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,
-0x95,0xf5,0x83,0x74,0xf0,0xf0,0xa3,0xe4,0xf0,0xe5,0x10,0x25,0xe0,0x24,0x81,0xf5,
-0x82,0xe4,0x34,0x92,0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0x8f,0xf0,0x02,0x56,0xdd,
-0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0x74,0x0f,0xf0,
-0xa3,0x74,0xf5,0x80,0x27,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,
-0xf5,0x83,0x74,0x0f,0xf0,0xa3,0x74,0xf0,0x80,0x12,0xe5,0x10,0x25,0xe0,0x24,0xe4,
-0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xa3,0x74,0x0d,0xf0,0xe5,0x10,0x25,
-0xe0,0x24,0x81,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x02,0x56,
-0xdd,0x90,0x04,0x47,0xe0,0xab,0x13,0xaa,0x14,0xa9,0x15,0x12,0x65,0x95,0x90,0x04,
-0x46,0xe0,0xab,0x13,0xaa,0x14,0xa9,0x15,0x90,0x00,0x01,0x12,0x65,0xa7,0x90,0x04,
-0x45,0xe0,0x85,0x12,0x82,0x85,0x11,0x83,0xf0,0x90,0x04,0x44,0x02,0x56,0xd4,0x90,
-0x04,0x4b,0xe0,0xab,0x13,0xaa,0x14,0xa9,0x15,0x12,0x65,0x95,0x90,0x04,0x4a,0xe0,
-0xab,0x13,0xaa,0x14,0xa9,0x15,0x90,0x00,0x01,0x12,0x65,0xa7,0x90,0x04,0x49,0xe0,
-0x85,0x12,0x82,0x85,0x11,0x83,0xf0,0x90,0x04,0x48,0x80,0x58,0x90,0x04,0x4f,0xe0,
-0xab,0x13,0xaa,0x14,0xa9,0x15,0x12,0x65,0x95,0x90,0x04,0x4e,0xe0,0xab,0x13,0xaa,
-0x14,0xa9,0x15,0x90,0x00,0x01,0x12,0x65,0xa7,0x90,0x04,0x4d,0xe0,0x85,0x12,0x82,
-0x85,0x11,0x83,0xf0,0x90,0x04,0x4c,0x80,0x2b,0x90,0x04,0x53,0xe0,0xab,0x13,0xaa,
-0x14,0xa9,0x15,0x12,0x65,0x95,0x90,0x04,0x52,0xe0,0xab,0x13,0xaa,0x14,0xa9,0x15,
-0x90,0x00,0x01,0x12,0x65,0xa7,0x90,0x04,0x51,0xe0,0x85,0x12,0x82,0x85,0x11,0x83,
-0xf0,0x90,0x04,0x50,0xe0,0x85,0x12,0x82,0x85,0x11,0x83,0xa3,0xf0,0xab,0x13,0xaa,
-0x14,0xa9,0x15,0xc0,0x03,0xc0,0x02,0xc0,0x01,0x12,0x1c,0xd6,0xff,0xab,0x18,0xaa,
-0x19,0xa9,0x1a,0x12,0x1c,0xd6,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x65,0x95,
-0xab,0x13,0xe5,0x15,0x24,0x01,0xf9,0xe4,0x35,0x14,0xfa,0xc0,0x03,0xc0,0x02,0xc0,
-0x01,0x12,0x1c,0xd6,0xff,0xab,0x18,0xaa,0x19,0xa9,0x1a,0x90,0x00,0x01,0x12,0x1c,
-0xef,0x5f,0xd0,0x01,0xd0,0x02,0xd0,0x03,0x12,0x65,0x95,0x85,0x12,0x82,0x85,0x11,
-0x83,0xc0,0x83,0xc0,0x82,0xe0,0xff,0x85,0x17,0x82,0x85,0x16,0x83,0xe0,0xfe,0xef,
-0x5e,0xd0,0x82,0xd0,0x83,0xf0,0x85,0x12,0x82,0x85,0x11,0x83,0xa3,0xc0,0x83,0xc0,
-0x82,0xe0,0xff,0x85,0x17,0x82,0x85,0x16,0x83,0xa3,0xe0,0xfe,0xef,0x5e,0xd0,0x82,
-0xd0,0x83,0xf0,0xe5,0x10,0x25,0xe0,0x24,0x81,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,
-0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x4c,0x90,0x97,0x51,0x74,0x0b,0xf0,0x90,0x97,0x51,
-0xe0,0xff,0xc3,0x94,0x00,0x50,0x03,0x02,0x58,0x23,0x74,0x01,0x7e,0x00,0xa8,0x07,
-0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x10,0x25,0xe0,0x24,
-0x81,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,
-0x0a,0x90,0x97,0x51,0xe0,0x24,0x10,0xa3,0xf0,0x80,0x68,0x90,0x97,0x51,0xe0,0x14,
-0xf0,0x80,0xba,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x47,0x90,0x97,0x51,0x74,0x0f,0xf0,0x90,0x97,0x51,
-0xe0,0xff,0xc3,0x94,0x00,0x40,0x3c,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,
-0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x97,
-0x51,0xe0,0xa3,0xf0,0x80,0x0d,0x90,0x97,0x51,0xe0,0x14,0xf0,0x80,0xbf,0xe4,0x90,
-0x97,0x52,0xf0,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe0,0xfe,0xa3,0xe0,0x4e,0x60,0x47,0xe4,0x90,0x97,0x51,0xf0,0x90,0x97,0x51,0xe0,
-0xff,0xc3,0x94,0x10,0x40,0x03,0x02,0x58,0xdd,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,
-0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0xe5,0x10,0x25,0xe0,0x24,0xe4,
-0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x06,
-0x90,0x97,0x51,0xe0,0x80,0x63,0x90,0x97,0x51,0xe0,0x04,0xf0,0x80,0xbe,0xe5,0x10,
-0x25,0xe0,0x24,0x81,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0xfe,0xa3,0xe0,0x4e,
-0x60,0x46,0xe4,0x90,0x97,0x51,0xf0,0x90,0x97,0x51,0xe0,0xff,0xc3,0x94,0x0c,0x50,
-0x3c,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,
-0xf9,0xff,0xe5,0x10,0x25,0xe0,0x24,0x81,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,
-0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x08,0x90,0x97,0x51,0xe0,0x24,0x10,0x80,0x09,
-0x90,0x97,0x51,0xe0,0x04,0xf0,0x80,0xbf,0xe4,0x90,0x97,0x53,0xf0,0x90,0x97,0x52,
-0xe0,0xff,0xe5,0x10,0x75,0xf0,0x08,0xa4,0x24,0x67,0xf5,0x82,0xe4,0x34,0x93,0xf5,
-0x83,0xef,0xf0,0x90,0x97,0x53,0xe0,0xfe,0xe5,0x10,0x75,0xf0,0x08,0xa4,0x24,0x68,
-0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xee,0xf0,0x74,0x84,0x25,0x10,0xf5,0x82,0xe4,
-0x34,0x04,0xf5,0x83,0xe0,0xd3,0x9f,0x40,0x1f,0x90,0x97,0x52,0xe0,0xff,0x74,0x84,
-0x25,0x10,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xef,0xf0,0x74,0x84,0x25,0x10,0xf5,
-0x82,0xe4,0x34,0x04,0xf5,0x83,0xef,0xf0,0x90,0x97,0x52,0xe0,0xff,0xd3,0x94,0x13,
-0x40,0x08,0x90,0x93,0x62,0x74,0x03,0xf0,0x80,0x21,0xef,0xd3,0x94,0x0b,0x40,0x08,
-0x90,0x93,0x62,0x74,0x02,0xf0,0x80,0x13,0xef,0xd3,0x94,0x03,0x40,0x08,0x90,0x93,
-0x62,0x74,0x01,0xf0,0x80,0x05,0xe4,0x90,0x93,0x62,0xf0,0x90,0x93,0x62,0xe0,0x90,
-0x04,0xb1,0xf0,0xe5,0x10,0x25,0xe0,0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,
-0xe0,0xff,0xa3,0xe0,0x90,0x04,0x9c,0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x10,0x25,0xe0,
-0x24,0x81,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0xff,0xa3,0xe0,0x90,0x04,0x9e,
-0xcf,0xf0,0xa3,0xef,0xf0,0xe5,0x10,0x75,0xf0,0x08,0xa4,0x24,0x69,0xf5,0x82,0xe4,
-0x34,0x93,0xf5,0x83,0xe0,0xc4,0x33,0x54,0xe0,0x45,0x10,0x90,0x04,0xa0,0xf0,0x74,
-0xc1,0x25,0x10,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0xe0,0x90,0x04,0xa1,0xf0,0x22,
-0xc0,0xe0,0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,
-0x01,0xc0,0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,
-0x74,0xd0,0xf0,0x74,0x59,0xa3,0xf0,0x90,0x01,0x37,0xe0,0x55,0x2b,0xf5,0x2f,0x90,
-0x01,0x34,0xe0,0x55,0x28,0xf5,0x2c,0x90,0x01,0x36,0xe0,0x55,0x2a,0xf5,0x2e,0xe5,
-0x2c,0x20,0xe0,0x03,0x02,0x5b,0x82,0x90,0x01,0x34,0x74,0x01,0xf0,0x85,0xd1,0x4d,
-0x85,0xd2,0x4e,0x85,0xd3,0x4f,0x85,0xd4,0x50,0x85,0xd5,0x51,0x85,0xd6,0x52,0x85,
-0xd7,0x53,0x85,0xd9,0x54,0xe5,0x54,0x54,0x40,0xc3,0x13,0xff,0xe5,0x53,0x54,0x20,
-0x6f,0x70,0x03,0x02,0x5b,0x2f,0xe5,0x54,0x30,0xe5,0x03,0x02,0x5b,0x2f,0xe5,0x52,
-0x54,0x1f,0xf5,0x08,0xe5,0x4d,0x54,0x3f,0xf5,0x09,0xe5,0x51,0x54,0x1f,0xff,0xe5,
-0x08,0x25,0xe0,0x24,0xe3,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0x8f,0xf0,0x12,
-0x65,0xc9,0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,0xc0,0xf5,0x82,0xe4,
-0x34,0x91,0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x65,0xc9,0xe5,0x09,0xd3,0x94,0x04,0x40,
-0x03,0x75,0x09,0x04,0x75,0xf0,0x0a,0xe5,0x08,0xa4,0x24,0x00,0xf5,0x82,0xe5,0xf0,
-0x34,0x90,0xf5,0x83,0x75,0xf0,0x02,0xe5,0x09,0x12,0x66,0xb5,0xe0,0xfe,0xa3,0xe0,
-0xff,0xe5,0x53,0x54,0x1f,0x2f,0xff,0xe4,0x3e,0xfe,0x75,0xf0,0x0a,0xe5,0x08,0xa4,
-0x24,0x00,0xf5,0x82,0xe5,0xf0,0x34,0x90,0xf5,0x83,0x75,0xf0,0x02,0xe5,0x09,0x12,
-0x66,0xb5,0xee,0xf0,0xa3,0xef,0xf0,0xe5,0x54,0x20,0xe6,0x24,0xe5,0x53,0x54,0x1f,
-0xff,0xe5,0x08,0x25,0xe0,0x24,0x63,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0x8f,
-0xf0,0x12,0x65,0xc9,0xe5,0x4f,0x30,0xe7,0x36,0xaf,0x08,0x12,0x75,0x4c,0x80,0x2f,
-0xe5,0x53,0x54,0x1f,0xff,0xe5,0x08,0x25,0xe0,0x24,0xa3,0xf5,0x82,0xe4,0x34,0x94,
-0xf5,0x83,0xe4,0x8f,0xf0,0x12,0x65,0xc9,0xe5,0x4f,0x30,0xe7,0x12,0xe5,0x4f,0x54,
-0x7f,0xfd,0xe5,0x53,0x54,0x1f,0xf5,0x0d,0xab,0x09,0xaf,0x08,0x12,0x76,0x52,0xe5,
-0x65,0x60,0x4f,0x90,0x97,0x8d,0xe0,0x60,0x35,0x90,0x01,0x5b,0xe4,0xf0,0x90,0x01,
-0x3c,0x74,0x04,0xf0,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x70,0x34,0x75,0x48,
-0x14,0xf5,0x49,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x38,0xec,0x90,0x01,0x5b,0x74,
-0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x90,0x97,0x87,0xf0,0x80,0x14,0x90,0x04,
-0x1b,0xe0,0x54,0x7f,0xff,0xbf,0x7f,0x0a,0x90,0x97,0x8b,0xe0,0xff,0x7d,0x01,0x12,
-0x6e,0xda,0xe5,0x2c,0x30,0xe1,0x21,0x90,0x01,0x34,0x74,0x02,0xf0,0x85,0xd1,0x56,
-0x85,0xd2,0x57,0x85,0xd3,0x58,0x85,0xd4,0x59,0x85,0xd5,0x5a,0x85,0xd6,0x5b,0x85,
-0xd7,0x5c,0x85,0xd9,0x5d,0x12,0x7d,0xc4,0xe5,0x2c,0x30,0xe3,0x06,0x90,0x01,0x34,
-0x74,0x08,0xf0,0xe5,0x2c,0x30,0xe4,0x09,0x90,0x01,0x34,0x74,0x10,0xf0,0x43,0x55,
-0x10,0xe5,0x2c,0x30,0xe5,0x21,0x90,0x01,0xcf,0xe0,0x30,0xe5,0x1a,0xe0,0x54,0xdf,
-0xf0,0x90,0x01,0x34,0x74,0x20,0xf0,0x90,0x00,0x03,0xe0,0x54,0xfb,0xf0,0x7f,0x10,
-0x7e,0x00,0x12,0x3a,0xa8,0x80,0xfe,0xe5,0x2c,0x30,0xe6,0x06,0x90,0x01,0x34,0x74,
-0x40,0xf0,0xe5,0x2e,0x30,0xe1,0x09,0x90,0x01,0x36,0x74,0x02,0xf0,0x43,0x55,0x40,
-0xe5,0x2e,0x30,0xe0,0x09,0x90,0x01,0x36,0x74,0x01,0xf0,0x12,0x76,0xd3,0xe5,0x2e,
-0x30,0xe2,0x63,0x90,0x01,0x36,0x74,0x04,0xf0,0xe5,0x64,0x64,0x01,0x70,0x57,0xe5,
-0x65,0x60,0x53,0xe5,0x65,0x64,0x02,0x70,0x27,0x90,0x06,0xab,0xe0,0x90,0x97,0x7f,
-0xf0,0x90,0x06,0xaa,0xe0,0x90,0x97,0x8a,0xf0,0x90,0x97,0x7f,0xe0,0x70,0x07,0x90,
-0x97,0x8a,0xe0,0xff,0x80,0x05,0x90,0x97,0x7f,0xe0,0xff,0x90,0x97,0x7f,0xef,0xf0,
-0x90,0x97,0x81,0xe0,0x60,0x03,0xe0,0x14,0xf0,0x90,0x97,0x80,0xe4,0xf0,0x90,0x01,
-0x57,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x97,0x8f,0xe0,0x54,0xfd,0xf0,0xe0,
-0x54,0xef,0xf0,0x12,0x77,0x49,0xe5,0x2e,0x30,0xe3,0x31,0x90,0x01,0x36,0x74,0x08,
-0xf0,0xe5,0x64,0x64,0x01,0x70,0x25,0xe5,0x65,0x60,0x21,0x90,0x01,0x57,0xe4,0xf0,
-0x90,0x01,0x3c,0x74,0x02,0xf0,0x75,0x48,0x03,0x75,0x49,0x00,0xe4,0xfb,0xfd,0x7f,
-0x54,0x7e,0x01,0x12,0x38,0xec,0x90,0x01,0x57,0x74,0x05,0xf0,0xe5,0x2e,0x30,0xe4,
-0x3a,0x90,0x01,0x36,0x74,0x10,0xf0,0xe5,0x64,0x64,0x01,0x70,0x2e,0xe5,0x65,0x60,
-0x2a,0x90,0x01,0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x90,0x97,0x8e,0xe4,
-0xf0,0x90,0x97,0x8f,0xe0,0x54,0xfd,0xf0,0xe0,0x54,0x03,0x70,0x0e,0x90,0x97,0x89,
-0xf0,0x90,0x97,0x8b,0xe0,0xff,0x7d,0x01,0x12,0x6e,0xda,0xe5,0x2e,0x30,0xe5,0x12,
-0x90,0x01,0x36,0x74,0x20,0xf0,0xe5,0x64,0xb4,0x01,0x07,0xe5,0x65,0x60,0x03,0x12,
-0x7e,0x7e,0xe5,0x2e,0x30,0xe6,0x2a,0x90,0x01,0x36,0x74,0x40,0xf0,0xe5,0x64,0x64,
-0x01,0x70,0x1e,0xe5,0x65,0x60,0x1a,0x90,0x97,0x8f,0xe0,0x54,0xfe,0xf0,0xe0,0x54,
-0x03,0x70,0x0e,0x90,0x97,0x89,0xf0,0x90,0x97,0x8b,0xe0,0xff,0x7d,0x01,0x12,0x6e,
-0xda,0xe5,0x2f,0x30,0xe1,0x09,0x90,0x01,0x37,0x74,0x02,0xf0,0x12,0x7c,0xe8,0x74,
-0xd0,0x04,0x90,0x01,0xc4,0xf0,0x74,0x59,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,
-0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,
-0xd0,0xf0,0xd0,0xe0,0x32,0x74,0x5d,0x90,0x01,0xc4,0xf0,0xa3,0x74,0x65,0xf0,0x90,
-0x04,0x44,0x74,0x11,0xf0,0xa3,0x74,0xf0,0xf0,0xa3,0x74,0x0f,0xf0,0xa3,0xe4,0xf0,
-0x90,0x97,0x3a,0xf0,0x90,0x97,0x3a,0xe0,0xff,0xc3,0x94,0x10,0x50,0x14,0x74,0xa4,
-0x2f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xe4,0xf0,0x90,0x97,0x3a,0xe0,0x04,0xf0,
-0x80,0xe2,0xe4,0x90,0x97,0x3a,0xf0,0x90,0x97,0x3a,0xe0,0xfb,0xc3,0x94,0x20,0x40,
-0x03,0x02,0x5f,0x6c,0xe0,0xff,0x75,0xf0,0x0a,0xa4,0x24,0x00,0xf5,0x82,0xe5,0xf0,
-0x34,0x90,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xef,0xa4,0x24,0x02,0xf5,
-0x82,0xe5,0xf0,0x34,0x90,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,0x0a,0xef,0xa4,
-0x24,0x04,0xf5,0x82,0xe5,0xf0,0x34,0x90,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x75,0xf0,
-0x0a,0xef,0xa4,0x24,0x06,0xf5,0x82,0xe5,0xf0,0x34,0x90,0xf5,0x83,0xe4,0xf0,0xa3,
-0xf0,0x75,0xf0,0x0a,0xef,0xa4,0x24,0x08,0xf5,0x82,0xe5,0xf0,0x34,0x90,0xf5,0x83,
-0xe4,0xf0,0xa3,0xf0,0x74,0x84,0x2f,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0x74,0x13,
-0xf0,0x74,0x44,0x2f,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xef,0x25,0xe0,
-0x24,0xc0,0xf5,0x82,0xe4,0x34,0x91,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xef,0x25,0xe0,
-0x24,0x63,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xef,0x25,0xe0,
-0x24,0xe3,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xef,0x25,0xe0,
-0x24,0xa3,0xf5,0x82,0xe4,0x34,0x94,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xef,0x25,0xe0,
-0x24,0x64,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0xef,0x25,0xe0,
-0x24,0xa4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe4,0xf0,0xa3,0xf0,0x74,0x44,0x2f,
-0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe4,0xf0,0x74,0x24,0x2f,0xf5,0x82,0xe4,0x34,
-0x96,0xf5,0x83,0xe4,0xf0,0x74,0x64,0x2f,0xf5,0x82,0xe4,0x34,0x96,0xf5,0x83,0xe4,
-0xf0,0x90,0x41,0xc4,0x93,0xfe,0x74,0x01,0x93,0xff,0x90,0x41,0x8c,0x74,0x01,0x93,
-0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xe4,0xfc,0xfd,0xeb,0x25,
-0xe0,0x25,0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0x12,0x1d,0xa9,0xeb,
-0x75,0xf0,0x08,0xa4,0x24,0x6a,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0x74,0x01,0xf0,
-0xeb,0x75,0xf0,0x08,0xa4,0x24,0x69,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0x74,0x01,
-0xf0,0x74,0xc1,0x2b,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0x74,0x0c,0xf0,0xeb,0x75,
-0xf0,0x08,0xa4,0x24,0x65,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0x74,0xff,0xf0,0xa3,
-0xf0,0xeb,0x75,0xf0,0x08,0xa4,0x24,0x63,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe4,
-0xf0,0xa3,0x74,0x0f,0xf0,0xeb,0x75,0xf0,0x08,0xa4,0x24,0x67,0xf5,0x82,0xe4,0x34,
-0x93,0xf5,0x83,0x74,0x13,0xf0,0xeb,0x75,0xf0,0x08,0xa4,0x24,0x68,0xf5,0x82,0xe4,
-0x34,0x93,0xf5,0x83,0xe4,0xf0,0x74,0x84,0x2b,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,
-0x74,0x13,0xf0,0x90,0x97,0x3a,0xe0,0x04,0xf0,0x02,0x5d,0xa7,0x22,0x8f,0x17,0x74,
-0x5f,0x90,0x01,0xc4,0xf0,0xa3,0x74,0x6d,0xf0,0x74,0x84,0x25,0x17,0xf5,0x82,0xe4,
-0x34,0x04,0xf5,0x83,0xe0,0x54,0x7f,0x90,0x97,0x54,0xf0,0xe0,0x54,0x1f,0xff,0x90,
-0x97,0x57,0xf0,0xe5,0x17,0x75,0xf0,0x08,0xa4,0x24,0x68,0xf5,0x82,0xe4,0x34,0x93,
-0xf5,0x83,0xe0,0x90,0x97,0x59,0xf0,0xe5,0x17,0x75,0xf0,0x08,0xa4,0x24,0x67,0xf5,
-0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xfe,0x90,0x97,0x5a,0xf0,0xe5,0x17,0x25,0xe0,
-0x24,0xe4,0xf5,0x82,0xe4,0x34,0x95,0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x97,0x5b,
-0xcb,0xf0,0xa3,0xeb,0xf0,0xe5,0x17,0x25,0xe0,0x24,0x81,0xf5,0x82,0xe4,0x34,0x92,
-0xf5,0x83,0xe0,0xfb,0xa3,0xe0,0x90,0x97,0x5d,0xcb,0xf0,0xa3,0xeb,0xf0,0xef,0xd3,
-0x9e,0x40,0x0c,0x90,0x97,0x5a,0xe0,0x90,0x97,0x57,0xf0,0x90,0x97,0x54,0xf0,0xed,
-0x70,0x03,0x02,0x60,0xd9,0x90,0x97,0x58,0xed,0xf0,0x90,0x97,0x54,0xe0,0x30,0xe6,
-0x0e,0x90,0x97,0x57,0xe0,0x90,0x97,0x54,0xf0,0x90,0x97,0x58,0xe0,0x14,0xf0,0x90,
-0x97,0x58,0xe0,0x70,0x03,0x02,0x60,0xd9,0x90,0x97,0x57,0xe0,0xff,0xd3,0x94,0x00,
-0x50,0x03,0x02,0x60,0xd9,0xe4,0x90,0x97,0x56,0xf0,0xef,0x14,0x90,0x97,0x55,0xf0,
-0x90,0x97,0x59,0xe0,0xfd,0x90,0x97,0x55,0xe0,0xff,0xd3,0x9d,0x40,0x6f,0xef,0x94,
-0x10,0x40,0x21,0xef,0x24,0xf0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,
-0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x97,0x5d,0xe0,0x5e,0xfe,0xa3,0xe0,
-0x5f,0x4e,0x70,0x27,0x90,0x97,0x55,0xe0,0xff,0xc3,0x94,0x10,0x50,0x37,0x74,0x01,
-0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,
-0x97,0x5b,0xe0,0x5e,0xfe,0xa3,0xe0,0x5f,0x4e,0x60,0x1a,0x90,0x97,0x55,0xe0,0x90,
-0x97,0x54,0xf0,0x90,0x97,0x56,0xe0,0x04,0xf0,0x90,0x97,0x58,0xe0,0xff,0x90,0x97,
-0x56,0xe0,0x6f,0x60,0x08,0x90,0x97,0x55,0xe0,0x14,0xf0,0x80,0x83,0x90,0x97,0x58,
-0xe0,0xff,0x90,0x97,0x56,0xe0,0xc3,0x9f,0x50,0x0f,0x90,0x97,0x55,0xe0,0xb5,0x05,
-0x08,0x90,0x97,0x59,0xe0,0x90,0x97,0x54,0xf0,0x90,0x97,0x54,0xe0,0xff,0x25,0xe0,
-0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfc,0x74,0x01,0x93,0xfd,
-0xef,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,0x2d,
-0xff,0xe4,0x93,0x3c,0xc3,0x13,0xfe,0xef,0x13,0xff,0xe4,0xfc,0xfd,0xe5,0x17,0x25,
-0xe0,0x25,0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0x12,0x1d,0xa9,0x90,
-0x97,0x54,0xe0,0xff,0x74,0x84,0x25,0x17,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xef,
-0xf0,0x22,0x90,0x01,0xc4,0x74,0x32,0xf0,0x74,0x61,0xa3,0xf0,0x90,0x01,0xcc,0xe0,
-0x54,0x0f,0x90,0x97,0x3a,0xf0,0x90,0x97,0x3a,0xe0,0xfd,0x70,0x03,0x02,0x62,0xd2,
-0x90,0x97,0xb1,0xe0,0xff,0x74,0x01,0x7e,0x00,0xa8,0x07,0x08,0x80,0x05,0xc3,0x33,
-0xce,0x33,0xce,0xd8,0xf9,0xff,0xef,0x5d,0x70,0x03,0x02,0x62,0xb3,0x90,0x97,0xb1,
-0xe0,0x75,0xf0,0x04,0xa4,0x24,0xd0,0xf5,0x82,0xe5,0xf0,0x34,0x01,0xf5,0x83,0xe0,
-0x90,0x97,0x3b,0xf0,0xa2,0xaf,0xe4,0x33,0xa3,0xf0,0xc2,0xaf,0x75,0x24,0x01,0x75,
-0x25,0x97,0x75,0x26,0x3b,0x75,0x27,0x01,0x7b,0x01,0x7a,0x97,0x79,0x3d,0x12,0x79,
-0x27,0x90,0x97,0x3c,0xe0,0x24,0xff,0x92,0xaf,0xa3,0xe0,0xff,0xc4,0x13,0x13,0x13,
-0x54,0x01,0x90,0x97,0xb1,0x30,0xe0,0x70,0xe0,0x75,0xf0,0x02,0xa4,0x24,0x88,0xf5,
-0x82,0xe4,0x35,0xf0,0xf5,0x83,0xe0,0x90,0x97,0x3e,0xf0,0x90,0x97,0xb1,0xe0,0x75,
-0xf0,0x02,0xa4,0x24,0x89,0xf5,0x82,0xe4,0x35,0xf0,0xf5,0x83,0xe0,0x90,0x97,0x3f,
-0xf0,0x90,0x97,0xb1,0xe0,0x75,0xf0,0x04,0xa4,0x24,0xd1,0xf5,0x82,0xe5,0xf0,0x34,
-0x01,0xf5,0x83,0xe0,0x90,0x97,0x40,0xf0,0x90,0x97,0xb1,0xe0,0x75,0xf0,0x04,0xa4,
-0x24,0xd2,0xf5,0x82,0xe5,0xf0,0x34,0x01,0xf5,0x83,0xe0,0x90,0x97,0x41,0xf0,0x90,
-0x97,0xb1,0xe0,0x75,0xf0,0x04,0xa4,0x24,0xd3,0xf5,0x82,0xe5,0xf0,0x34,0x01,0xf5,
-0x83,0xe0,0x90,0x97,0x42,0xf0,0x80,0x42,0xe0,0x75,0xf0,0x04,0xa4,0x24,0xd1,0xf5,
-0x82,0xe5,0xf0,0x34,0x01,0xf5,0x83,0xe0,0x90,0x97,0x3e,0xf0,0x90,0x97,0xb1,0xe0,
-0x75,0xf0,0x04,0xa4,0x24,0xd2,0xf5,0x82,0xe5,0xf0,0x34,0x01,0xf5,0x83,0xe0,0x90,
-0x97,0x3f,0xf0,0x90,0x97,0xb1,0xe0,0x75,0xf0,0x04,0xa4,0x24,0xd3,0xf5,0x82,0xe5,
-0xf0,0x34,0x01,0xf5,0x83,0xe0,0x90,0x97,0x40,0xf0,0xef,0x54,0x7f,0xff,0x7b,0x01,
-0x7a,0x97,0x79,0x3e,0x12,0x6e,0x02,0x90,0x97,0x3a,0xe0,0xff,0x90,0x97,0xb1,0xe0,
-0xfe,0x74,0x01,0xa8,0x06,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0x5f,0x90,0x97,
-0x3a,0xf0,0x90,0x97,0xb1,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
-0xd8,0xfc,0x90,0x01,0xcc,0xf0,0x90,0x97,0xb1,0xe0,0x04,0xf0,0xe0,0x54,0x03,0xf0,
-0x02,0x61,0x46,0xc2,0xaf,0x74,0x32,0x04,0x90,0x01,0xc4,0xf0,0x74,0x61,0xa3,0xf0,
-0x90,0x97,0x3a,0xe0,0x90,0x01,0xc6,0xf0,0x90,0x97,0xb1,0xe0,0x90,0x01,0xc7,0xf0,
-0x80,0xfe,0x22,0xe4,0x90,0x97,0x37,0xf0,0xa3,0xf0,0x12,0x7a,0x6c,0x90,0x00,0x02,
-0xe0,0x54,0xe0,0x90,0x97,0x96,0x60,0x05,0x74,0x01,0xf0,0x80,0x03,0x74,0x02,0xf0,
-0x90,0x00,0xf3,0xe0,0x30,0xe3,0x08,0x90,0x97,0x97,0x74,0x01,0xf0,0x80,0x05,0xe4,
-0x90,0x97,0x97,0xf0,0x90,0x97,0x97,0xe0,0xb4,0x01,0x13,0x90,0x00,0xf2,0xe0,0x30,
-0xe7,0x0c,0x90,0x97,0x90,0x74,0xfd,0xf0,0xa3,0x74,0x33,0xf0,0x80,0x0a,0x90,0x97,
-0x90,0x74,0xfd,0xf0,0xa3,0x74,0x2f,0xf0,0xe4,0xf5,0x55,0x12,0x5d,0x65,0x12,0x7f,
-0x60,0x12,0x79,0xce,0x12,0x36,0xd1,0x12,0x44,0xff,0x75,0x28,0x33,0xe4,0xf5,0x29,
-0x75,0x2a,0x02,0xf5,0x2b,0x90,0x01,0x30,0xe5,0x28,0xf0,0xa3,0xe5,0x29,0xf0,0xa3,
-0xe5,0x2a,0xf0,0xa3,0xe5,0x2b,0xf0,0x90,0x00,0xf3,0xe0,0x30,0xe2,0x0d,0x90,0x05,
-0x41,0x74,0x10,0xf0,0x90,0x05,0x5a,0xf0,0xa3,0xe4,0xf0,0x90,0x01,0x64,0x74,0xa0,
-0xf0,0x75,0x48,0xff,0xe4,0xf5,0x49,0xfb,0x7d,0x01,0x7f,0x50,0x7e,0x01,0x12,0x38,
-0xec,0x75,0x30,0x1f,0x75,0x31,0x01,0xe4,0xf5,0x32,0x90,0x01,0x38,0xe5,0x30,0xf0,
-0xa3,0xe5,0x31,0xf0,0xa3,0xe5,0x32,0xf0,0x12,0x78,0xd0,0x90,0x97,0x39,0xe5,0xd9,
-0xf0,0x90,0x01,0x3c,0x74,0xff,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0x34,0xf0,0xa3,
-0xf0,0xa3,0xf0,0xa3,0xf0,0xc2,0xaf,0x90,0x00,0x80,0xe0,0x44,0x40,0xf0,0x7f,0x10,
-0x7e,0x00,0x12,0x3a,0xa8,0x75,0xe8,0x03,0x43,0xa8,0x85,0xd2,0xaf,0x90,0x01,0xc0,
-0xe4,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x01,0xc6,0xf0,0xa3,0xf0,0x90,0x97,
-0x37,0xe0,0x64,0x01,0xf0,0x24,0xd3,0x90,0x01,0xc4,0xf0,0x74,0x62,0xa3,0xf0,0xe5,
-0x55,0x30,0xe6,0x17,0xc2,0xaf,0x53,0x55,0xbf,0xd2,0xaf,0x12,0x45,0x09,0x90,0x97,
-0x6d,0xe0,0xff,0x60,0x03,0xb4,0x01,0x03,0x12,0x6a,0x1f,0xe5,0x55,0x30,0xe7,0x07,
-0xc2,0xaf,0x53,0x55,0x7f,0xd2,0xaf,0xe5,0x55,0x30,0xe4,0x0a,0xc2,0xaf,0x53,0x55,
-0xef,0xd2,0xaf,0x12,0x61,0x32,0x90,0x97,0x6d,0xe0,0x70,0x03,0x12,0x6d,0x29,0x12,
-0x7d,0x45,0x80,0xaa,0x90,0x00,0x02,0x12,0x1c,0xef,0x90,0x97,0x6b,0xf0,0x90,0x00,
-0x01,0x12,0x1c,0xef,0x25,0xe0,0x25,0xe0,0x90,0x97,0x6a,0xf0,0x12,0x1c,0xd6,0x25,
-0xe0,0x25,0xe0,0x90,0x97,0x6e,0xf0,0x90,0x97,0x6b,0xe0,0x90,0x04,0x98,0xf0,0x90,
-0x97,0x6a,0xe0,0x13,0x13,0x54,0x3f,0x90,0x04,0x99,0xf0,0x90,0x97,0x6e,0xe0,0x13,
-0x13,0x54,0x3f,0x90,0x04,0x9a,0xf0,0x90,0x05,0x60,0xe0,0x90,0x97,0x79,0xf0,0x90,
-0x05,0x61,0xe0,0x90,0x97,0x7a,0xf0,0x90,0x05,0x62,0xe0,0x90,0x97,0x7b,0xf0,0x90,
-0x05,0x63,0xe0,0x90,0x97,0x7c,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x97,0x49,0xf0,0xc2,
-0xaf,0x90,0x97,0x6a,0xe0,0xff,0x12,0x79,0x7c,0x90,0x97,0x49,0xe0,0x24,0xff,0x92,
-0xaf,0x90,0x97,0x6b,0xe0,0x70,0x03,0x02,0x65,0x61,0x90,0x97,0x6a,0xe0,0x70,0x03,
-0x02,0x65,0x61,0x90,0x97,0x6e,0xe0,0x70,0x03,0x02,0x65,0x61,0xa2,0xaf,0xe4,0x33,
-0x90,0x97,0x49,0xf0,0xc2,0xaf,0x90,0x97,0x7d,0x74,0x01,0xf0,0x90,0x97,0x49,0xe0,
-0x24,0xff,0x92,0xaf,0x90,0x00,0x45,0xe0,0x54,0xfe,0xf0,0xa3,0xe0,0x44,0x01,0xf0,
-0x90,0x97,0x63,0xe0,0x60,0x1d,0x90,0x97,0x6f,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,
-0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x08,0x12,0x33,
-0xd8,0x80,0x06,0x90,0x05,0x22,0x74,0x7f,0xf0,0x90,0x00,0x45,0xe0,0x54,0xef,0xf0,
-0x90,0x05,0x87,0xe0,0x64,0x80,0xf0,0x90,0x97,0x79,0xe0,0x90,0x05,0x84,0xf0,0x90,
-0x97,0x7a,0xe0,0x90,0x05,0x85,0xf0,0x90,0x97,0x7b,0xe0,0x90,0x05,0x86,0xf0,0x90,
-0x97,0x7c,0xe0,0x90,0x05,0x87,0xf0,0xa2,0xaf,0xe4,0x33,0x90,0x97,0x49,0xf0,0xc2,
-0xaf,0x90,0x01,0x3c,0xe0,0x44,0x20,0xf0,0x7d,0x20,0xe4,0xff,0x12,0x3a,0x49,0x80,
-0x2b,0x90,0x97,0x6b,0xe0,0x70,0x2d,0x90,0x97,0x7d,0xf0,0x90,0x00,0x45,0xe0,0x54,
-0xfe,0xf0,0xa3,0xe0,0x54,0xfe,0xf0,0x90,0x05,0x22,0xe4,0xf0,0xa2,0xaf,0x33,0x90,
-0x97,0x49,0xf0,0xc2,0xaf,0x7d,0x20,0xe4,0xff,0x12,0x39,0xdb,0x90,0x97,0x49,0xe0,
-0x24,0xff,0x92,0xaf,0x22,0xbb,0x01,0x06,0x89,0x82,0x8a,0x83,0xf0,0x22,0x50,0x02,
-0xf7,0x22,0xbb,0xfe,0x01,0xf3,0x22,0xf8,0xbb,0x01,0x0d,0xe5,0x82,0x29,0xf5,0x82,
-0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0x22,0x50,0x06,0xe9,0x25,0x82,0xc8,0xf6,0x22,
-0xbb,0xfe,0x05,0xe9,0x25,0x82,0xc8,0xf2,0x22,0xc5,0xf0,0xf8,0xa3,0xe0,0x28,0xf0,
-0xc5,0xf0,0xf8,0xe5,0x82,0x15,0x82,0x70,0x02,0x15,0x83,0xe0,0x38,0xf0,0x22,0xa3,
-0xf8,0xe0,0xc5,0xf0,0x25,0xf0,0xf0,0xe5,0x82,0x15,0x82,0x70,0x02,0x15,0x83,0xe0,
-0xc8,0x38,0xf0,0xe8,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xe0,0xf5,0xf0,0xa3,
-0xe0,0x22,0x50,0x06,0x87,0xf0,0x09,0xe7,0x19,0x22,0xbb,0xfe,0x07,0xe3,0xf5,0xf0,
-0x09,0xe3,0x19,0x22,0x89,0x82,0x8a,0x83,0xe4,0x93,0xf5,0xf0,0x74,0x01,0x93,0x22,
-0xbb,0x01,0x10,0xe5,0x82,0x29,0xf5,0x82,0xe5,0x83,0x3a,0xf5,0x83,0xe0,0xf5,0xf0,
-0xa3,0xe0,0x22,0x50,0x09,0xe9,0x25,0x82,0xf8,0x86,0xf0,0x08,0xe6,0x22,0xbb,0xfe,
-0x0a,0xe9,0x25,0x82,0xf8,0xe2,0xf5,0xf0,0x08,0xe2,0x22,0xe5,0x83,0x2a,0xf5,0x83,
-0xe9,0x93,0xf5,0xf0,0xa3,0xe9,0x93,0x22,0xbb,0x01,0x0a,0x89,0x82,0x8a,0x83,0xf0,
-0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x06,0xf7,0x09,0xa7,0xf0,0x19,0x22,0xbb,0xfe,0x06,
-0xf3,0xe5,0xf0,0x09,0xf3,0x19,0x22,0xf8,0xbb,0x01,0x11,0xe5,0x82,0x29,0xf5,0x82,
-0xe5,0x83,0x3a,0xf5,0x83,0xe8,0xf0,0xe5,0xf0,0xa3,0xf0,0x22,0x50,0x09,0xe9,0x25,
-0x82,0xc8,0xf6,0x08,0xa6,0xf0,0x22,0xbb,0xfe,0x09,0xe9,0x25,0x82,0xc8,0xf2,0xe5,
-0xf0,0x08,0xf2,0x22,0xeb,0x9f,0xf5,0xf0,0xea,0x9e,0x42,0xf0,0xe9,0x9d,0x42,0xf0,
-0xe8,0x9c,0x45,0xf0,0x22,0xa4,0x25,0x82,0xf5,0x82,0xe5,0xf0,0x35,0x83,0xf5,0x83,
-0x22,0xd0,0x83,0xd0,0x82,0xf8,0xe4,0x93,0x70,0x12,0x74,0x01,0x93,0x70,0x0d,0xa3,
-0xa3,0x93,0xf8,0x74,0x01,0x93,0xf5,0x82,0x88,0x83,0xe4,0x73,0x74,0x02,0x93,0x68,
-0x60,0xef,0xa3,0xa3,0xa3,0x80,0xdf,0x90,0x97,0x46,0xeb,0xf0,0xa3,0xea,0xf0,0xa3,
-0xe9,0xf0,0x90,0x97,0x46,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x90,0x00,0x04,
-0x12,0x1c,0xef,0xff,0x54,0x1f,0x90,0x97,0x49,0xf0,0x90,0x00,0x03,0x12,0x1c,0xef,
-0x54,0xf0,0xc4,0x54,0x0f,0x90,0x97,0x4a,0xf0,0xef,0x54,0x20,0xc4,0x13,0x54,0x07,
-0xa3,0xf0,0x90,0x97,0x49,0xe0,0xff,0x75,0xf0,0x08,0xa4,0x24,0x65,0xf5,0x82,0xe4,
-0x34,0x93,0xad,0x82,0x90,0x97,0x4c,0xf0,0xa3,0xed,0xf0,0xef,0x75,0xf0,0x08,0xa4,
-0x24,0x63,0xf9,0x74,0x93,0x35,0xf0,0xfa,0xa3,0x74,0x01,0xf0,0xa3,0xea,0xf0,0xa3,
-0xe9,0xf0,0x90,0x97,0x46,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x90,0x00,0x03,0x12,0x1c,
-0xef,0x54,0x0f,0xff,0x90,0x97,0x4e,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0xef,
-0x12,0x65,0x95,0x90,0x97,0x46,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x90,0x00,
-0x02,0x12,0x1c,0xef,0xff,0x90,0x97,0x4e,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,
-0x90,0x00,0x01,0xef,0x12,0x65,0xa7,0x90,0x97,0x46,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,
-0xe0,0xf9,0x90,0x00,0x01,0x12,0x1c,0xef,0xff,0x90,0x97,0x4c,0xe0,0xfc,0xa3,0xe0,
-0xfd,0xf5,0x82,0x8c,0x83,0xef,0xf0,0x12,0x1c,0xd6,0x8d,0x82,0x8c,0x83,0xa3,0xf0,
-0x90,0x97,0x4a,0xe0,0xfe,0x90,0x97,0x49,0xe0,0xff,0x24,0xc1,0xf5,0x82,0xe4,0x34,
-0x92,0xf5,0x83,0xee,0xf0,0x90,0x97,0x4b,0xe0,0xfe,0xef,0x75,0xf0,0x08,0xa4,0x24,
-0x69,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xee,0xf0,0xef,0x75,0xf0,0x08,0xa4,0x24,
-0x6a,0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0x74,0x01,0xf0,0x02,0x54,0xe6,0xc0,0xe0,
-0xc0,0xf0,0xc0,0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,
-0x02,0xc0,0x03,0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0xfe,
-0xf0,0x74,0x67,0xa3,0xf0,0x53,0x91,0xdf,0x90,0x01,0x3c,0xe0,0x55,0x30,0xf5,0x34,
-0xa3,0xe0,0x55,0x31,0xf5,0x35,0xa3,0xe0,0x55,0x32,0xf5,0x36,0xe5,0x34,0x30,0xe0,
-0x0f,0x90,0x01,0x3c,0x74,0x01,0xf0,0x90,0x01,0x53,0x74,0x07,0xf0,0x43,0x55,0x80,
-0xe5,0x34,0x30,0xe1,0x09,0x90,0x01,0x3c,0x74,0x02,0xf0,0x12,0x7b,0x00,0xe5,0x34,
-0x30,0xe2,0x3a,0x90,0x01,0x3c,0x74,0x04,0xf0,0x90,0x06,0x92,0xe0,0x30,0xe0,0x1e,
-0x75,0x48,0x14,0x75,0x49,0x00,0xe4,0xfb,0xfd,0x7f,0x58,0x7e,0x01,0x12,0x38,0xec,
-0x90,0x01,0x5b,0x74,0x05,0xf0,0x90,0x06,0x92,0x74,0x01,0xf0,0x80,0x0f,0x90,0x97,
-0x87,0xe4,0xf0,0x90,0x97,0x8b,0xe0,0xff,0x7d,0x01,0x12,0x6e,0xda,0xe5,0x34,0x30,
-0xe3,0x06,0x90,0x01,0x3c,0x74,0x08,0xf0,0xe5,0x34,0x30,0xe4,0x09,0x90,0x01,0x3c,
-0x74,0x10,0xf0,0x12,0x7e,0xdf,0xe5,0x34,0x30,0xe5,0x09,0x90,0x01,0x3c,0x74,0x20,
-0xf0,0x12,0x6f,0xa2,0xe5,0x35,0x30,0xe0,0x15,0x90,0x01,0x3d,0x74,0x01,0xf0,0x90,
-0x00,0x83,0xe0,0x90,0x97,0x8b,0xf0,0xe0,0xff,0x7d,0x01,0x12,0x6e,0xda,0xe5,0x36,
-0x30,0xe3,0x06,0x90,0x01,0x3e,0x74,0x08,0xf0,0x74,0xfe,0x04,0x90,0x01,0xc4,0xf0,
-0x74,0x67,0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,
-0xd0,0x01,0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0x8b,
-0x10,0x8a,0x11,0x89,0x12,0x90,0x00,0x02,0x12,0x1c,0xef,0x90,0x97,0x6c,0xf0,0xe0,
-0x90,0x04,0x94,0xf0,0x90,0x00,0x01,0x12,0x1c,0xef,0x90,0x04,0x95,0xf0,0x90,0x97,
-0x6c,0xe0,0x30,0xe0,0x74,0x90,0x97,0x63,0x74,0x01,0xf0,0x7f,0x80,0x7e,0x08,0x12,
-0x2b,0x13,0x90,0x97,0x65,0x12,0x1d,0xa9,0xab,0x10,0xaa,0x11,0xa9,0x12,0x90,0x00,
-0x01,0x12,0x1c,0xef,0xff,0xe4,0xfc,0xfd,0xfe,0x78,0x1a,0x12,0x1d,0x96,0xa8,0x04,
-0xa9,0x05,0xaa,0x06,0xab,0x07,0x90,0x97,0x65,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,
-0xfe,0xa3,0xe0,0xff,0xec,0x54,0x03,0xfc,0xeb,0x4f,0xff,0xea,0x4e,0xfe,0xe9,0x4d,
-0xfd,0xe8,0x4c,0xfc,0x90,0x97,0x6f,0x12,0x1d,0xa9,0x90,0x05,0x22,0xe4,0xf0,0x90,
-0x97,0x6f,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x78,0x18,0x12,
-0x1d,0x83,0x90,0x04,0x96,0xef,0xf0,0x80,0x45,0xe4,0x90,0x97,0x63,0xf0,0x7f,0x80,
-0x7e,0x08,0x12,0x2b,0x13,0x90,0x97,0x65,0x12,0x1d,0xa9,0x90,0x97,0x65,0xe0,0xfc,
-0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0xec,0x44,0xc0,0xfc,0x90,0x97,0x65,
-0x12,0x1d,0xa9,0x90,0x97,0x65,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,
-0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x08,0x12,0x33,0xd8,0x90,0x97,
-0x6c,0xe0,0x90,0x00,0x47,0x30,0xe1,0x11,0x74,0x0c,0xf0,0xa3,0xe0,0x44,0x0c,0xf0,
-0x90,0x00,0x46,0xe0,0x44,0x10,0xf0,0x80,0x10,0xe0,0x54,0xf3,0xf0,0xa3,0xe0,0x54,
-0xf3,0xf0,0x90,0x00,0x46,0xe0,0x54,0xef,0xf0,0xe4,0x90,0x97,0x69,0xf0,0x22,0x90,
-0x97,0x64,0xe0,0xc3,0x94,0x14,0x50,0x06,0xe0,0x04,0xf0,0x02,0x6a,0xd9,0x90,0x97,
-0x64,0xe0,0x64,0x14,0x60,0x03,0x02,0x6a,0xd9,0x90,0x97,0x73,0xe0,0x70,0x25,0x90,
-0x97,0x76,0xe0,0x70,0x1f,0x90,0x97,0x74,0xe0,0x70,0x19,0x90,0x97,0x77,0xe0,0x70,
-0x13,0x90,0x97,0x75,0xe0,0x70,0x0d,0x90,0x97,0x78,0xe0,0x70,0x07,0x90,0x04,0xfd,
-0xe0,0x54,0xfe,0xf0,0x90,0x97,0x73,0xe0,0x90,0x04,0x88,0xf0,0x90,0x97,0x74,0xe0,
-0x90,0x04,0x89,0xf0,0x90,0x97,0x75,0xe0,0x90,0x04,0x8a,0xf0,0xa3,0xe4,0xf0,0x90,
-0x97,0x76,0xe0,0x90,0x04,0x8c,0xf0,0x90,0x97,0x77,0xe0,0x90,0x04,0x8d,0xf0,0x90,
-0x97,0x78,0xe0,0x90,0x04,0x8e,0xf0,0xa3,0xe4,0xf0,0x90,0x97,0x5f,0xe0,0x90,0x04,
-0x90,0xf0,0x90,0x97,0x60,0xe0,0x90,0x04,0x91,0xf0,0x90,0x97,0x61,0xe0,0x90,0x04,
-0x92,0xf0,0x90,0x97,0x62,0xe0,0x90,0x04,0x93,0xf0,0xe4,0x90,0x97,0x64,0xf0,0x90,
-0x97,0x5f,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x97,0x73,0xf0,0xa3,
-0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x90,0x97,0x64,0xe0,0x90,0x04,0x97,
-0xf0,0x90,0x05,0x60,0xe0,0x90,0x97,0x3a,0xf0,0x90,0x05,0x61,0xe0,0x90,0x97,0x3b,
-0xf0,0x90,0x05,0x62,0xe0,0x90,0x97,0x3c,0xf0,0x90,0x05,0x63,0xe0,0x90,0x97,0x3d,
-0xf0,0x90,0x97,0x7c,0xe0,0xff,0x90,0x97,0x3d,0xe0,0xfe,0xd3,0x9f,0x50,0x0b,0x90,
-0x97,0x7c,0xe0,0xc3,0x9e,0xd3,0x94,0x01,0x40,0x11,0x90,0x97,0x6a,0xe0,0xb4,0x01,
-0x02,0x80,0x03,0x90,0x97,0x6e,0xe0,0xff,0x12,0x79,0x7c,0x22,0x90,0x97,0xb0,0xed,
-0xf0,0x90,0x97,0xaf,0xef,0xf0,0xd3,0x94,0x07,0x50,0x6d,0xe0,0xff,0x74,0x01,0xa8,
-0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,0xe0,0x5f,0xf0,
-0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0xaf,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x46,0xe0,0x4f,0xf0,0x7f,0x10,
-0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0xb0,0xe0,0x60,0x16,0x90,0x97,0xaf,0xe0,0xff,
-0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,0x00,0x45,0x80,
-0x78,0x90,0x97,0xaf,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,
-0xfc,0xf4,0xff,0x90,0x00,0x45,0x80,0x7d,0x90,0x97,0xaf,0xe0,0x24,0xf8,0xf0,0xe0,
-0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,0xf4,
-0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,
-0xaf,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xff,0x90,
-0x00,0x43,0xe0,0x4f,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0xb0,0xe0,
-0x60,0x1b,0x90,0x97,0xaf,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
-0xd8,0xfc,0xc4,0x54,0xf0,0xff,0x90,0x00,0x42,0xe0,0x4f,0x80,0x1a,0x90,0x97,0xaf,
-0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xc4,0x54,0xf0,
-0xf4,0xff,0x90,0x00,0x42,0xe0,0x5f,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x22,
-0x90,0x01,0xc4,0x74,0x30,0xf0,0x74,0x6c,0xa3,0xf0,0x7f,0x78,0x7e,0x08,0x12,0x2b,
-0x13,0x90,0x97,0x1d,0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x0c,0x12,0x2b,0x13,0x90,0x97,
-0x21,0x12,0x1d,0xa9,0x7f,0x00,0x7e,0x08,0x12,0x2b,0x13,0x90,0x97,0x25,0x12,0x1d,
-0xa9,0x90,0x97,0x97,0xe0,0x90,0x97,0x1d,0xb4,0x01,0x13,0xe0,0xfc,0xa3,0xe0,0xfd,
-0xa3,0xe0,0xfe,0xa3,0xe0,0x54,0xc7,0xff,0xed,0x54,0xc7,0xfd,0x80,0x0d,0xe0,0xfc,
-0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0x54,0xc7,0xff,0xec,0x90,0x81,0x56,0x12,
-0x1d,0xa9,0x7f,0x78,0x7e,0x08,0x12,0x33,0xd8,0x90,0x97,0x21,0xe0,0xfc,0xa3,0xe0,
-0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0x54,0x0f,0xff,0xec,0x90,0x81,0x56,0x12,0x1d,0xa9,
-0x7f,0x04,0x7e,0x0c,0x12,0x33,0xd8,0x90,0x97,0x25,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,
-0xe0,0xfe,0xa3,0xe0,0x44,0x02,0xff,0xec,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x00,
-0x7e,0x08,0x12,0x33,0xd8,0x7f,0x70,0x7e,0x0e,0x12,0x2b,0x13,0x90,0x97,0x29,0x12,
-0x1d,0xa9,0x90,0x81,0x56,0x12,0x1d,0xb5,0x00,0x1b,0x25,0xa0,0x7f,0x70,0x7e,0x0e,
-0x12,0x33,0xd8,0x90,0x81,0x24,0x12,0x1d,0xb5,0x00,0x00,0x00,0x00,0xe4,0xfd,0xff,
-0x12,0x38,0xb6,0x90,0x97,0x97,0xe0,0xb4,0x01,0x11,0x90,0x81,0x24,0x12,0x1d,0xb5,
-0x00,0x00,0x00,0x00,0xe4,0xfd,0x7f,0x01,0x12,0x38,0xb6,0x90,0x00,0x11,0xe0,0x54,
-0xf6,0xf0,0x7f,0x10,0x7e,0x00,0x02,0x3a,0xa8,0x90,0x97,0x7d,0xe0,0x64,0x01,0x60,
-0x09,0x90,0x97,0x6b,0xe0,0x60,0x03,0x02,0x6e,0x01,0x90,0x97,0x5f,0xe0,0xc3,0x94,
-0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x3b,0x90,0x97,0x60,0xe0,0xc3,0x94,0xff,0x50,
-0x06,0xe0,0x04,0xf0,0xe4,0x80,0x28,0x90,0x97,0x61,0xe0,0xc3,0x94,0xff,0x50,0x0a,
-0xe0,0x04,0xf0,0xe4,0x90,0x97,0x60,0xf0,0x80,0x15,0x90,0x97,0x62,0xe0,0xc3,0x94,
-0xff,0x50,0x10,0xe0,0x04,0xf0,0xe4,0x90,0x97,0x61,0xf0,0x90,0x97,0x60,0xf0,0x90,
-0x97,0x5f,0xf0,0x90,0x00,0x44,0xe0,0x54,0x0c,0x60,0x76,0xe0,0x30,0xe2,0x32,0x90,
-0x97,0x73,0xe0,0xc3,0x94,0xff,0x50,0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x97,0x74,
-0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,0x04,0xf0,0xe4,0x80,0x11,0x90,0x97,0x75,0xe0,
-0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,0xf0,0xe4,0x90,0x97,0x74,0xf0,0x90,0x97,0x73,
-0xf0,0x90,0x00,0x44,0xe0,0x30,0xe3,0x32,0x90,0x97,0x76,0xe0,0xc3,0x94,0xff,0x50,
-0x05,0xe0,0x04,0xf0,0x80,0x24,0x90,0x97,0x77,0xe0,0xc3,0x94,0xff,0x50,0x06,0xe0,
-0x04,0xf0,0xe4,0x80,0x11,0x90,0x97,0x78,0xe0,0xc3,0x94,0xff,0x50,0x0c,0xe0,0x04,
-0xf0,0xe4,0x90,0x97,0x77,0xf0,0x90,0x97,0x76,0xf0,0x90,0x04,0xfd,0xe0,0x44,0x01,
-0xf0,0x22,0x90,0x97,0x43,0xeb,0xf0,0xa3,0xea,0xf0,0xa3,0xe9,0xf0,0xad,0x07,0x90,
-0x01,0xc4,0x74,0x02,0xf0,0x74,0x6e,0xa3,0xf0,0xed,0x12,0x66,0xc1,0x6e,0x3f,0x01,
-0x6e,0x4d,0x02,0x6e,0x5b,0x03,0x6e,0x69,0x05,0x6e,0x77,0x06,0x6e,0x85,0x07,0x6e,
-0x93,0x09,0x6e,0xa1,0x0c,0x6e,0xaf,0x0d,0x6e,0xbd,0x0e,0x00,0x00,0x6e,0xcb,0x90,
-0x97,0x43,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x7d,0x9d,0x90,0x97,0x43,
-0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x7f,0x77,0x90,0x97,0x43,0xe0,0xfb,
-0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x7d,0x17,0x90,0x97,0x43,0xe0,0xfb,0xa3,0xe0,
-0xfa,0xa3,0xe0,0xf9,0x02,0x7c,0x0b,0x90,0x97,0x43,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,
-0xe0,0xf9,0x02,0x66,0xe7,0x90,0x97,0x43,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,
-0x02,0x7f,0x28,0x90,0x97,0x43,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x73,
-0x14,0x90,0x97,0x43,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x64,0x34,0x90,
-0x97,0x43,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x7c,0x7e,0x90,0x97,0x43,
-0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x02,0x69,0x0f,0xc2,0xaf,0x74,0x02,0x04,
-0x90,0x01,0xc4,0xf0,0x74,0x6e,0xa3,0xf0,0x80,0xfe,0x8f,0x62,0x8d,0x63,0x90,0x01,
-0xc4,0x74,0xda,0xf0,0x74,0x6e,0xa3,0xf0,0xe5,0x62,0x54,0x0f,0xff,0x90,0x97,0x88,
-0xe0,0x54,0x0f,0x6f,0x60,0x78,0xe5,0x62,0x30,0xe2,0x30,0x90,0x97,0x88,0xe0,0x20,
-0xe2,0x05,0x7f,0x01,0x12,0x7e,0x08,0x90,0x97,0x88,0xe0,0x30,0xe3,0x0a,0xe5,0x62,
-0x20,0xe3,0x05,0x12,0x7e,0x27,0x80,0x56,0x90,0x97,0x88,0xe0,0x20,0xe3,0x4f,0xe5,
-0x62,0x30,0xe3,0x4a,0xaf,0x63,0x12,0x7d,0xe8,0x80,0x43,0x90,0x97,0x88,0xe0,0x54,
-0x0f,0xff,0xbf,0x0c,0x0e,0xe5,0x62,0x20,0xe3,0x09,0x12,0x7d,0x72,0xef,0x60,0x2e,
-0x12,0x7e,0x27,0x90,0x97,0x88,0xe0,0x54,0x0f,0xff,0xbf,0x04,0x0e,0xe5,0x62,0x20,
-0xe2,0x09,0x12,0x7b,0x8a,0xef,0x60,0x16,0x12,0x7c,0x47,0x90,0x97,0x88,0xe0,0x54,
-0x0f,0xff,0xbf,0x02,0x09,0x12,0x7a,0xb8,0xef,0x60,0x03,0x12,0x7e,0x44,0x90,0x97,
-0x88,0xe0,0x54,0x0f,0xff,0x90,0x97,0x8b,0xe0,0x54,0x0f,0x6f,0x70,0x23,0xe0,0x30,
-0xe6,0x1f,0x90,0x97,0x88,0xe0,0x54,0x0f,0xff,0x90,0x97,0x7e,0xe0,0xfe,0x4f,0x90,
-0x01,0x2f,0xf0,0xee,0x64,0x80,0x90,0x97,0x7e,0xf0,0x90,0x97,0x8b,0xe0,0x54,0xbf,
-0xf0,0x22,0x90,0x97,0x6b,0xe0,0x64,0x01,0x60,0x03,0x02,0x70,0x65,0x90,0x00,0x46,
-0xe0,0x44,0x01,0xf0,0x90,0x97,0x7d,0xe0,0x70,0x40,0x90,0x97,0x63,0xe0,0x60,0x1d,
-0x90,0x97,0x6f,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,
-0x56,0x12,0x1d,0xa9,0x7f,0x80,0x7e,0x08,0x12,0x33,0xd8,0x80,0x06,0x90,0x05,0x22,
-0x74,0x7f,0xf0,0x90,0x97,0x6a,0xe0,0xff,0x12,0x79,0x7c,0x90,0x97,0x7d,0x74,0x01,
-0xf0,0x90,0x00,0x45,0xe0,0x54,0xfe,0xf0,0x80,0x44,0x90,0x97,0x7d,0xe0,0x64,0x01,
-0x70,0x3c,0x90,0x97,0x6e,0xe0,0xff,0x12,0x79,0x7c,0xe4,0x90,0x97,0x7d,0xf0,0x90,
-0x00,0x45,0xe0,0x44,0x01,0xf0,0x90,0x97,0x63,0xe0,0x60,0x1d,0x90,0x97,0x65,0xe0,
-0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,
-0x7f,0x80,0x7e,0x08,0x12,0x33,0xd8,0x80,0x05,0x90,0x05,0x22,0xe4,0xf0,0x90,0x05,
-0x87,0xe0,0x64,0x80,0xf0,0x90,0x97,0x79,0xe0,0x90,0x05,0x84,0xf0,0x90,0x97,0x7a,
-0xe0,0x90,0x05,0x85,0xf0,0x90,0x97,0x7b,0xe0,0x90,0x05,0x86,0xf0,0x90,0x97,0x7c,
-0xe0,0x90,0x05,0x87,0xf0,0x22,0x90,0x97,0x30,0xeb,0xf0,0xa3,0xea,0xf0,0xa3,0xe9,
-0xf0,0x90,0x97,0x96,0xe0,0x64,0x02,0x70,0x03,0x02,0x71,0x1b,0x90,0x01,0xaf,0xe0,
-0x60,0x09,0x90,0x01,0xc7,0xe0,0x04,0xf0,0xf0,0x80,0xf1,0x90,0x97,0xb3,0xe0,0xff,
-0x04,0xf0,0x90,0x97,0x30,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x90,0x00,0x01,
-0xef,0x12,0x65,0xa7,0xa2,0xaf,0xe4,0x33,0x90,0x97,0x36,0xf0,0xc2,0xaf,0x90,0x97,
-0x30,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0x8b,0x24,0x8a,0x25,0xf5,0x26,0x75,0x27,
-0x02,0x7b,0x01,0x7a,0x01,0x79,0xa0,0x12,0x79,0x27,0x90,0x97,0x36,0xe0,0x24,0xff,
-0x92,0xaf,0xa2,0xaf,0xe4,0x33,0xf0,0xc2,0xaf,0x90,0x97,0x33,0xe0,0xfb,0xa3,0xe0,
-0xfa,0xa3,0xe0,0x8b,0x24,0x8a,0x25,0xf5,0x26,0x90,0x97,0x30,0xe0,0xfb,0xa3,0xe0,
-0xfa,0xa3,0xe0,0xf9,0x12,0x1c,0xd6,0xff,0xc4,0x54,0x0f,0xf5,0x27,0x7b,0x01,0x7a,
-0x01,0x79,0xa2,0x12,0x79,0x27,0x90,0x97,0x36,0xe0,0x24,0xff,0x92,0xaf,0x90,0x01,
-0xaf,0x74,0xff,0xf0,0x90,0x01,0xcb,0xe0,0x64,0x80,0xf0,0x22,0x90,0x01,0xc4,0x74,
-0x1c,0xf0,0x74,0x71,0xa3,0xf0,0x90,0x00,0x11,0xe0,0x44,0x09,0xf0,0x7f,0x10,0x7e,
-0x00,0x12,0x3a,0xa8,0x90,0x97,0x1d,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,
-0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x78,0x7e,0x08,0x12,0x33,0xd8,0x90,
-0x97,0x21,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,
-0x12,0x1d,0xa9,0x7f,0x04,0x7e,0x0c,0x12,0x33,0xd8,0x90,0x97,0x25,0xe0,0xfc,0xa3,
-0xe0,0xfd,0xa3,0xe0,0xfe,0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x00,
-0x7e,0x08,0x12,0x33,0xd8,0x90,0x97,0x29,0xe0,0xfc,0xa3,0xe0,0xfd,0xa3,0xe0,0xfe,
-0xa3,0xe0,0xff,0x90,0x81,0x56,0x12,0x1d,0xa9,0x7f,0x70,0x7e,0x0e,0x12,0x33,0xd8,
-0x90,0x81,0x24,0x12,0x1d,0xb5,0x00,0x03,0x2d,0x95,0xe4,0xfd,0xff,0x12,0x38,0xb6,
-0x90,0x97,0x97,0xe0,0xb4,0x01,0x11,0x90,0x81,0x24,0x12,0x1d,0xb5,0x00,0x03,0x2d,
-0x95,0xe4,0xfd,0x7f,0x01,0x12,0x38,0xb6,0x22,0x90,0x97,0x9e,0xef,0xf0,0xa3,0xed,
-0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xe5,0x65,0x60,0x05,0xe4,0xff,0x12,0x7e,0x99,0x90,
-0x97,0x9e,0xe0,0x30,0xe0,0x09,0x90,0x97,0xa0,0xe4,0xf0,0xa3,0x74,0x80,0xf0,0x90,
-0x04,0x1d,0xe0,0x60,0x1d,0x90,0x05,0x22,0xe0,0x90,0x97,0xa2,0xf0,0xe0,0xff,0x54,
-0x90,0x60,0xec,0x90,0x01,0xc8,0x74,0xfc,0xf0,0xef,0x54,0x6f,0x90,0x05,0x22,0xf0,
-0x80,0xdd,0x90,0x97,0x9e,0xe0,0xff,0xc3,0x13,0x90,0xfd,0x10,0xf0,0x90,0x04,0x25,
-0xef,0xf0,0x90,0x97,0x9f,0xe0,0x60,0x10,0xa3,0xa3,0xe0,0x24,0x10,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x44,0x80,0xf0,0x90,0x97,0xa0,0xa3,0xe0,0xff,0xfd,0x24,
-0x08,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,0xe4,0xf0,0x74,0x09,0x2d,0xf5,0x82,0xe4,
-0x34,0xfc,0xf5,0x83,0xe0,0x54,0xf0,0xf0,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,
-0xf5,0x83,0xe0,0x54,0xf7,0xf0,0x90,0x97,0xa0,0xe0,0xfe,0xa3,0xe0,0xff,0x22,0x90,
-0x97,0xb5,0xef,0xf0,0xd3,0x94,0x07,0x50,0x4a,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,
-0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0xe0,0x5f,0xf0,0x7f,0x10,
-0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0xb5,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,0x05,
-0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x44,0xe0,0xfb,
-0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,0xd8,
-0xf8,0xff,0x22,0x90,0x97,0xb5,0xe0,0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,
-0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x7f,
-0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0xb5,0xe0,0xfd,0x74,0x01,0x7e,0x00,0xa8,
-0x05,0x08,0x80,0x05,0xc3,0x33,0xce,0x33,0xce,0xd8,0xf9,0xff,0x90,0x00,0x42,0xe0,
-0xfb,0xe4,0xfe,0xef,0x5b,0xa8,0x05,0x08,0x80,0x06,0xce,0xa2,0xe7,0x13,0xce,0x13,
-0xd8,0xf8,0xff,0x22,0x90,0x97,0x46,0xeb,0xf0,0xa3,0xea,0xf0,0xa3,0xe9,0xf0,0xa2,
-0xaf,0xe4,0x33,0xa3,0xf0,0xc2,0xaf,0x90,0x97,0x46,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,
-0xe0,0xf9,0x90,0x00,0x01,0x12,0x66,0x20,0xfa,0xe5,0xf0,0x24,0x00,0xff,0xe4,0x3a,
-0xfe,0x90,0x97,0x46,0xa3,0xe0,0xfa,0x90,0x00,0x01,0xee,0x8f,0xf0,0x12,0x66,0x77,
-0x12,0x1c,0xd6,0xff,0x60,0x37,0xb5,0x5e,0x1b,0x90,0x97,0x46,0xe0,0xfb,0xa3,0xe0,
-0xfa,0xa3,0xe0,0xf9,0x90,0x00,0x01,0x12,0x66,0x20,0x65,0x60,0x70,0x04,0xe5,0x5f,
-0x65,0xf0,0x60,0x2e,0x90,0x97,0x46,0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x90,
-0x00,0x01,0x12,0x66,0x20,0xff,0xae,0xf0,0x12,0x7c,0xb4,0x80,0x15,0x90,0x97,0x46,
-0xe0,0xfb,0xa3,0xe0,0xfa,0xa3,0xe0,0xf9,0x12,0x1c,0xd6,0x65,0x5e,0x60,0x03,0x12,
-0x7f,0x56,0x90,0x97,0x49,0xe0,0x24,0xff,0x92,0xaf,0x22,0xc0,0xe0,0xc0,0xf0,0xc0,
-0x83,0xc0,0x82,0xc0,0xd0,0x75,0xd0,0x00,0xc0,0x00,0xc0,0x01,0xc0,0x02,0xc0,0x03,
-0xc0,0x04,0xc0,0x05,0xc0,0x06,0xc0,0x07,0x90,0x01,0xc4,0x74,0xab,0xf0,0x74,0x73,
-0xa3,0xf0,0x53,0x91,0xef,0x90,0x00,0x51,0xe0,0xff,0x90,0x00,0x55,0xe0,0x5f,0xf5,
-0x3d,0xe5,0x3d,0x30,0xe6,0x18,0x74,0x40,0xf0,0x90,0x97,0x6c,0xe0,0x54,0x03,0xff,
-0xbf,0x03,0x0b,0x90,0x97,0x69,0xe0,0x60,0x05,0x7f,0x01,0x12,0x44,0x7b,0xe5,0x3d,
-0x30,0xe7,0x15,0x90,0x00,0x55,0x74,0x80,0xf0,0x90,0x97,0x6c,0xe0,0x54,0x03,0xff,
-0xbf,0x03,0x05,0x7f,0x02,0x12,0x44,0x7b,0x90,0x01,0xc4,0x74,0xab,0xf0,0x74,0x73,
-0xa3,0xf0,0xd0,0x07,0xd0,0x06,0xd0,0x05,0xd0,0x04,0xd0,0x03,0xd0,0x02,0xd0,0x01,
-0xd0,0x00,0xd0,0xd0,0xd0,0x82,0xd0,0x83,0xd0,0xf0,0xd0,0xe0,0x32,0xef,0x60,0x34,
-0x7d,0x7d,0x7f,0x02,0x12,0x39,0xbe,0x7d,0x02,0x7f,0x03,0x12,0x39,0xbe,0x90,0x01,
-0x57,0xe4,0xf0,0x90,0x01,0x3c,0x74,0x02,0xf0,0x7d,0x01,0x7f,0x0c,0x12,0x6e,0xda,
-0xe4,0xff,0x12,0x7e,0x99,0x90,0x06,0x04,0xe0,0x54,0x7f,0xf0,0x90,0x06,0x0a,0xe0,
-0x54,0xf8,0xf0,0x22,0x90,0x01,0x36,0x74,0x7d,0xf0,0xa3,0x74,0x02,0xf0,0x7d,0x7d,
-0xff,0x12,0x3a,0x2f,0x7d,0x02,0x7f,0x03,0x12,0x3a,0x2f,0x90,0x06,0x04,0xe0,0x44,
-0x80,0xf0,0x90,0x06,0x0a,0xe0,0x44,0x07,0xf0,0x90,0x97,0x83,0xe0,0xa3,0xe0,0x90,
-0x05,0x58,0xf0,0xe5,0x64,0x30,0xe0,0x1b,0x90,0x97,0x81,0xe0,0x70,0x1a,0xe0,0x04,
-0xf0,0x90,0x97,0x88,0xe0,0x54,0x0f,0xc3,0x94,0x04,0x50,0x0c,0x7d,0x01,0x7f,0x04,
-0x02,0x6e,0xda,0xe4,0x90,0x97,0x81,0xf0,0x22,0x02,0x75,0x07,0x02,0x62,0xd3,0xe4,
-0x93,0xa3,0xf8,0xe4,0x93,0xa3,0x40,0x03,0xf6,0x80,0x01,0xf2,0x08,0xdf,0xf4,0x80,
-0x29,0xe4,0x93,0xa3,0xf8,0x54,0x07,0x24,0x0c,0xc8,0xc3,0x33,0xc4,0x54,0x0f,0x44,
-0x20,0xc8,0x83,0x40,0x04,0xf4,0x56,0x80,0x01,0x46,0xf6,0xdf,0xe4,0x80,0x0b,0x01,
-0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x90,0x7f,0x0e,0xe4,0x7e,0x01,0x93,0x60,0xbc,
-0xa3,0xff,0x54,0x3f,0x30,0xe5,0x09,0x54,0x1f,0xfe,0xe4,0x93,0xa3,0x60,0x01,0x0e,
-0xcf,0x54,0xc0,0x25,0xe0,0x60,0xa8,0x40,0xb8,0xe4,0x93,0xa3,0xfa,0xe4,0x93,0xa3,
-0xf8,0xe4,0x93,0xa3,0xc8,0xc5,0x82,0xc8,0xca,0xc5,0x83,0xca,0xf0,0xa3,0xc8,0xc5,
-0x82,0xc8,0xca,0xc5,0x83,0xca,0xdf,0xe9,0xde,0xe7,0x80,0xbe,0x8f,0x0f,0x74,0x75,
-0x90,0x01,0xc4,0xf0,0xa3,0x74,0x4c,0xf0,0xe5,0x0f,0x75,0xf0,0x08,0xa4,0x24,0x67,
-0xf5,0x82,0xe4,0x34,0x93,0xf5,0x83,0xe0,0xff,0x74,0xa5,0x25,0x0f,0xf5,0x82,0xe4,
-0x34,0x96,0xf5,0x83,0xe0,0x54,0x1f,0xfb,0xd3,0x9f,0x40,0x02,0xab,0x07,0xeb,0x25,
-0xe0,0x24,0x9e,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0xe4,0x93,0xfe,0x74,0x01,0x93,
-0xff,0xeb,0x25,0xe0,0x24,0x66,0xf5,0x82,0xe4,0x34,0x41,0xf5,0x83,0x74,0x01,0x93,
-0x2f,0xff,0xe4,0x93,0x3e,0xc3,0x13,0xfe,0xef,0x13,0xff,0xe4,0xfc,0xfd,0xe5,0x0f,
-0x25,0xe0,0x25,0xe0,0x24,0xe1,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,0x12,0x1d,0xa9,
-0x74,0x84,0x25,0x0f,0xf5,0x82,0xe4,0x34,0x04,0xf5,0x83,0xeb,0xf0,0xff,0x22,0x90,
-0x97,0x4c,0xef,0xf0,0xd3,0x94,0x07,0x50,0x33,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,
-0x80,0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x47,0xe0,0x5f,0xf0,0x7f,0x10,
-0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0x4c,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,
-0x02,0xc3,0x33,0xd8,0xfc,0xf4,0xff,0x90,0x00,0x46,0x80,0x3b,0x90,0x97,0x4c,0xe0,
-0x24,0xf8,0xf0,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,0xd8,0xfc,
-0xc4,0x54,0xf0,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x7f,0x10,0x7e,0x00,0x12,
-0x3a,0xa8,0x90,0x97,0x4c,0xe0,0xff,0x74,0x01,0xa8,0x07,0x08,0x80,0x02,0xc3,0x33,
-0xd8,0xfc,0xf4,0xff,0x90,0x00,0x43,0xe0,0x5f,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,
-0xa8,0x22,0x8f,0x0a,0x8d,0x0b,0xad,0x03,0x74,0x76,0x90,0x01,0xc4,0xf0,0xa3,0x74,
-0x52,0xf0,0xe5,0x0b,0x54,0x1f,0xf9,0x74,0x01,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x92,
-0xf5,0x83,0xe0,0xff,0x90,0x04,0xfd,0xe0,0xb4,0x01,0x05,0x75,0x0e,0x03,0x80,0x03,
-0x75,0x0e,0x01,0xed,0xd3,0x95,0x0e,0x40,0x05,0xaf,0x0a,0x02,0x75,0x4c,0x90,0x01,
-0xc5,0x74,0x20,0xf0,0xe5,0x0d,0x2f,0xff,0xe9,0x90,0x41,0xd6,0x93,0xfe,0xef,0xd3,
-0x9e,0x40,0x22,0x90,0x01,0xc5,0x74,0x40,0xf0,0x74,0x01,0x25,0x0a,0xf5,0x82,0xe4,
-0x34,0x92,0xf5,0x83,0xe4,0xf0,0x74,0x84,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x04,0xf5,
-0x83,0xe5,0x0b,0xf0,0x22,0x74,0x01,0x25,0x0a,0xf5,0x82,0xe4,0x34,0x92,0xf5,0x83,
-0xef,0xf0,0x22,0xe4,0x90,0x97,0x2e,0xf0,0xe5,0x65,0x60,0x6c,0xe5,0x64,0x64,0x01,
-0x70,0x66,0xe5,0x65,0x64,0x02,0x60,0x06,0xe5,0x65,0x64,0x03,0x70,0x1d,0x90,0x97,
-0x7f,0xe0,0x14,0xf0,0xe0,0x60,0x04,0xa3,0xe0,0x60,0x16,0x90,0x97,0x7f,0xe0,0x70,
-0x0a,0x90,0x97,0x8a,0xe0,0x90,0x97,0x7f,0xf0,0x80,0x00,0x90,0x97,0x2e,0x74,0x01,
-0xf0,0x90,0x97,0x2e,0xe0,0x60,0x31,0x90,0x97,0x8f,0xe0,0x44,0x10,0xf0,0x90,0x97,
-0x85,0xe0,0xf5,0x48,0xe4,0xf5,0x49,0xfb,0xfd,0x7f,0x54,0x7e,0x01,0x12,0x38,0xec,
-0x90,0x01,0x57,0x74,0x05,0xf0,0x90,0x97,0x88,0xe0,0x54,0x0f,0xc3,0x94,0x04,0x50,
-0x07,0x7d,0x01,0x7f,0x04,0x12,0x6e,0xda,0x22,0x90,0x06,0xa9,0xe0,0xf5,0x0a,0x54,
-0xc0,0x70,0x0e,0x90,0x97,0x89,0xf0,0x90,0x97,0x8b,0xe0,0xff,0x7d,0x01,0x02,0x6e,
-0xda,0xe5,0x0a,0x30,0xe6,0x12,0x90,0x97,0x89,0x74,0x01,0xf0,0x90,0x97,0x8f,0xe0,
-0x44,0x01,0xf0,0x12,0x7e,0x7e,0x80,0x07,0x90,0x97,0x8f,0xe0,0x54,0xfe,0xf0,0xe5,
-0x0a,0x30,0xe7,0x29,0x90,0x97,0x89,0x74,0x01,0xf0,0x90,0x97,0x8f,0xe0,0x44,0x02,
-0xf0,0x75,0x48,0x03,0xe4,0xf5,0x49,0xfb,0xfd,0x7f,0x54,0x7e,0x01,0x12,0x38,0xec,
-0x90,0x01,0x57,0x74,0x05,0xf0,0x90,0x97,0x8e,0x74,0x01,0xf0,0x22,0x90,0x97,0x8f,
-0xe0,0x54,0xfd,0xf0,0x22,0x90,0x00,0x2b,0xe0,0x44,0x01,0xf0,0x7f,0xe8,0x7e,0x03,
-0x12,0x3a,0xa8,0x90,0x00,0x08,0xe0,0x44,0x10,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,
-0xa8,0x90,0x00,0x09,0xe0,0x54,0xf7,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,
-0x00,0x28,0xe0,0x54,0xfe,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x00,0x20,
-0xe0,0x54,0xfe,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x00,0x25,0xe0,0x44,
-0x40,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x00,0x09,0xe0,0x54,0xef,0xf0,
-0x7f,0x10,0x7e,0x00,0x02,0x3a,0xa8,0x8b,0x10,0x8a,0x11,0x89,0x12,0x12,0x7e,0xcd,
-0xab,0x10,0xaa,0x11,0xa9,0x12,0x12,0x1c,0xd6,0xf5,0x65,0x14,0x60,0x0e,0x14,0x60,
-0x0f,0x14,0x60,0x1a,0x24,0x03,0x70,0x3c,0x7f,0x01,0x80,0x35,0xe4,0xff,0x80,0x31,
-0x90,0x97,0x8a,0x74,0x01,0xf0,0x90,0x97,0x7f,0xf0,0xe4,0xff,0x80,0x23,0xab,0x10,
-0xaa,0x11,0xa9,0x12,0x90,0x00,0x02,0x12,0x1c,0xef,0xff,0x90,0x97,0x8a,0x70,0x05,
-0x74,0x05,0xf0,0x80,0x02,0xef,0xf0,0x90,0x97,0x8a,0xe0,0x90,0x97,0x7f,0xf0,0xe4,
-0xff,0x12,0x74,0x3d,0x22,0x90,0x00,0x25,0xe0,0x54,0xbf,0xf0,0x7f,0x10,0x7e,0x00,
-0x12,0x3a,0xa8,0x90,0x00,0x20,0xe0,0x44,0x01,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,
-0xa8,0x90,0x00,0x28,0xe0,0x44,0x01,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,
-0x00,0xf0,0xe0,0x30,0xe1,0xf9,0x90,0x00,0x09,0xe0,0x44,0x08,0xf0,0x7f,0x10,0x7e,
-0x00,0x12,0x3a,0xa8,0x90,0x00,0x08,0xe0,0x54,0xef,0xf0,0x7f,0x10,0x7e,0x00,0x12,
-0x3a,0xa8,0x90,0x00,0x2b,0xe0,0x54,0xfe,0xf0,0x7f,0xe8,0x7e,0x03,0x02,0x3a,0xa8,
-0x90,0x00,0x45,0xe4,0xf0,0x90,0x04,0xfd,0xf0,0xa3,0xf0,0x90,0x97,0x6d,0xf0,0x90,
-0x97,0x73,0xf0,0x90,0x97,0x76,0xf0,0x90,0x97,0x74,0xf0,0x90,0x97,0x77,0xf0,0x90,
-0x97,0x75,0xf0,0x90,0x97,0x78,0xf0,0x90,0x97,0x5f,0x04,0xf0,0xe4,0xa3,0xf0,0xa3,
-0xf0,0xa3,0xf0,0x90,0x97,0x64,0xf0,0x90,0x97,0x69,0xf0,0x90,0x97,0x6b,0xf0,0x90,
-0x97,0x7d,0xf0,0x90,0x97,0x6e,0xf0,0x90,0x97,0x6a,0xf0,0x90,0x97,0x63,0xf0,0x90,
-0x00,0x51,0xe0,0x44,0xc0,0xf0,0x22,0x8b,0x21,0x8a,0x22,0x89,0x23,0x90,0x97,0x98,
-0xeb,0xf0,0xa3,0xea,0xf0,0xa3,0xe9,0xf0,0xa3,0xe5,0x24,0xf0,0xa3,0xe5,0x25,0xf0,
-0xa3,0xe5,0x26,0xf0,0xaf,0x27,0x15,0x27,0xef,0x60,0x2a,0x90,0x97,0x9b,0xe0,0xfb,
-0xa3,0xe4,0x75,0xf0,0x01,0x12,0x65,0xdf,0xa9,0xf0,0xfa,0x12,0x1c,0xd6,0xff,0x90,
-0x97,0x98,0xe0,0xfb,0xa3,0xe4,0x75,0xf0,0x01,0x12,0x65,0xdf,0xa9,0xf0,0xfa,0xef,
-0x12,0x65,0x95,0x80,0xcf,0xab,0x21,0xaa,0x22,0xa9,0x23,0x22,0x90,0x05,0x60,0xe0,
-0x90,0x97,0x79,0xf0,0x90,0x05,0x61,0xe0,0x90,0x97,0x7a,0xf0,0x90,0x05,0x62,0xe0,
-0x90,0x97,0x7b,0xf0,0x90,0x05,0x63,0xe0,0x90,0x97,0x7c,0xf0,0xc3,0x74,0xff,0x9f,
-0xfe,0x90,0x97,0x7a,0xe0,0xd3,0x9e,0x40,0x1e,0xe0,0x2f,0xf0,0xa3,0xe0,0xb4,0xff,
-0x0f,0xe4,0xf0,0xa3,0xe0,0xb4,0xff,0x03,0xe4,0xf0,0x22,0x90,0x97,0x7c,0x80,0x03,
-0x90,0x97,0x7b,0xe0,0x04,0xf0,0x22,0x90,0x97,0x7a,0xe0,0x2f,0xf0,0x22,0xe4,0xf5,
-0x64,0x90,0x97,0x8f,0xf0,0xf5,0x65,0x90,0x97,0x8b,0x74,0x0c,0xf0,0x90,0x97,0x88,
-0xf0,0xe4,0x90,0x97,0x8d,0xf0,0x90,0x97,0x87,0xf0,0x90,0x97,0x86,0xf0,0x90,0x97,
-0x8a,0x04,0xf0,0x90,0x97,0x7f,0xf0,0xe4,0x90,0x97,0x8e,0xf0,0x90,0x97,0x89,0xf0,
-0x90,0x97,0x81,0xf0,0x90,0x97,0x85,0x74,0x07,0xf0,0xe4,0x90,0x97,0x80,0xf0,0x90,
-0x97,0x83,0xf0,0xa3,0x74,0x02,0xf0,0xe4,0x90,0x97,0x8c,0xf0,0x22,0xe4,0x90,0x97,
-0xad,0xf0,0xa3,0xf0,0x90,0x01,0xc4,0x74,0x1d,0xf0,0x74,0x7a,0xa3,0xf0,0x90,0x05,
-0xf8,0xe0,0x70,0x0f,0xa3,0xe0,0x70,0x0b,0xa3,0xe0,0x70,0x07,0xa3,0xe0,0x70,0x03,
-0x7f,0x01,0x22,0xd3,0x90,0x97,0xae,0xe0,0x94,0xe8,0x90,0x97,0xad,0xe0,0x94,0x03,
-0x40,0x03,0x7f,0x00,0x22,0x7f,0x32,0x7e,0x00,0x12,0x3a,0xa8,0x90,0x97,0xae,0xe0,
-0x04,0xf0,0x70,0xca,0x90,0x97,0xad,0xe0,0x04,0xf0,0x80,0xc2,0xe4,0x90,0x97,0x95,
-0xf0,0xa2,0xaf,0x33,0x90,0x97,0x3b,0xf0,0x90,0x00,0x80,0xe0,0x20,0xe1,0x1a,0x12,
-0x3a,0xbe,0x12,0x3a,0xbe,0x90,0x97,0x3a,0xe0,0x64,0x01,0xf0,0xe0,0x24,0x6c,0x90,
-0x01,0xc4,0xf0,0x74,0x7a,0xa3,0xf0,0x80,0xdf,0x90,0x06,0x30,0x74,0x01,0xf0,0xc2,
-0xaf,0x90,0x00,0x80,0xe0,0x44,0x80,0xf0,0x7f,0x10,0x7e,0x00,0x12,0x3a,0xa8,0x90,
-0x97,0x3b,0xe0,0x24,0xff,0x92,0xaf,0x22,0x90,0x01,0xc4,0x74,0xb8,0xf0,0x74,0x7a,
-0xa3,0xf0,0xe5,0x55,0x70,0x37,0x90,0x97,0x8b,0xe0,0x54,0x0f,0xd3,0x94,0x01,0x50,
-0x2c,0x90,0x02,0x87,0xe0,0x70,0x26,0x90,0x97,0x96,0xe0,0xb4,0x02,0x10,0x90,0x97,
-0x90,0xe0,0xfe,0xa3,0xe0,0xf5,0x82,0x8e,0x83,0xe0,0x60,0x08,0x80,0x0f,0x90,0x01,
-0xaf,0xe0,0x70,0x09,0x90,0x97,0x8c,0xe0,0x60,0x03,0x7f,0x01,0x22,0x7f,0x00,0x22,
-0x90,0x97,0x8e,0xe0,0x60,0x12,0xe4,0xf0,0xa3,0xe0,0x54,0xfd,0xf0,0xe0,0x54,0x03,
-0x70,0x33,0x90,0x97,0x89,0xf0,0x80,0x23,0x90,0x97,0x80,0xe0,0x04,0xf0,0x90,0x97,
-0x8f,0xe0,0x54,0xef,0xf0,0x90,0x97,0x80,0xe0,0xd3,0x94,0x01,0x40,0x0d,0xe5,0x64,
-0xb4,0x01,0x12,0xa3,0xe0,0x70,0x0e,0xe0,0x04,0xf0,0x22,0x90,0x97,0x8b,0xe0,0xff,
-0x7d,0x01,0x12,0x6e,0xda,0x22,0xe4,0x90,0x97,0x3a,0xf0,0xef,0x90,0x00,0x31,0xf0,
-0xee,0x54,0x03,0xff,0xa3,0xe0,0x54,0xfc,0x4f,0xf0,0xa3,0xe0,0x54,0x7f,0xf0,0x90,
-0x00,0x30,0xe0,0x20,0xe7,0x0e,0x90,0x97,0x3a,0xe0,0xc3,0x94,0x64,0x50,0x05,0xe0,
-0x04,0xf0,0x80,0xeb,0x90,0x97,0x3a,0xe0,0xc3,0x94,0x64,0x50,0x0a,0x90,0x00,0x30,
-0xe0,0x12,0x65,0x95,0x7f,0x01,0x22,0x7f,0x00,0x22,0x90,0x01,0xc4,0x74,0x8a,0xf0,
-0x74,0x7b,0xa3,0xf0,0x90,0x04,0x1b,0xe0,0x54,0x7f,0x64,0x7f,0x70,0x2b,0x90,0x97,
-0x89,0xe0,0x64,0x01,0x60,0x23,0x90,0x97,0x8b,0xe0,0x54,0x0f,0xd3,0x94,0x02,0x50,
-0x18,0x90,0x97,0x8f,0xe0,0x20,0xe4,0x11,0x90,0x97,0x87,0xe0,0x64,0x01,0x60,0x09,
-0x90,0x97,0x81,0xe0,0x70,0x03,0x7f,0x01,0x22,0x7f,0x00,0x22,0x8f,0x66,0x90,0x01,
-0xc4,0x74,0xcc,0xf0,0x74,0x7b,0xa3,0xf0,0x90,0x97,0x94,0xe0,0xff,0x7d,0x01,0x12,
-0x71,0xc9,0xe5,0x66,0x60,0x10,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x44,0x10,0xf0,0x80,0x0e,0x74,0x21,0x2f,0xf5,0x82,0xe4,0x34,0xfc,0xf5,0x83,
-0xe0,0x54,0xef,0xf0,0x90,0x04,0x1f,0x74,0x01,0xf0,0x22,0x12,0x1c,0xd6,0xff,0xc3,
-0x94,0x20,0x50,0x15,0x90,0x00,0x02,0x12,0x1c,0xef,0xfe,0x74,0x23,0x2f,0xf5,0x82,
-0xe4,0x34,0x95,0xf5,0x83,0xee,0xf0,0x80,0x0e,0xef,0xb4,0x20,0x0a,0x90,0x00,0x02,
-0x12,0x1c,0xef,0x90,0x93,0x61,0xf0,0x74,0x23,0x2f,0xf5,0x82,0xe4,0x34,0x95,0xf5,
-0x83,0xe0,0x90,0x04,0xb2,0xf0,0x22,0x90,0x01,0x37,0x74,0x02,0xf0,0x90,0x05,0x22,
-0x74,0xff,0xf0,0x12,0x7a,0x1d,0xef,0x70,0x06,0x90,0x01,0xc8,0x74,0xfd,0xf0,0x7d,
-0x02,0x7f,0x03,0x12,0x3a,0x2f,0xe5,0x65,0x60,0x05,0x7f,0x01,0x12,0x7e,0x99,0x12,
-0x6c,0x30,0x90,0x97,0x88,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,0x22,0x90,0x00,
-0x02,0x12,0x1c,0xef,0x90,0x97,0x6d,0xf0,0xe0,0x90,0x04,0x9b,0xf0,0x90,0x97,0x6d,
-0xe0,0x60,0x04,0xe0,0xb4,0xff,0x1c,0xa2,0xaf,0xe4,0x33,0xf5,0x10,0xc2,0xaf,0x90,
-0x00,0x47,0xe0,0x54,0xfb,0xf0,0x7d,0x40,0x7f,0x01,0x12,0x39,0xf8,0xe5,0x10,0x24,
-0xff,0x92,0xaf,0x22,0x90,0x97,0x4a,0xee,0xf0,0xa3,0xef,0xf0,0x75,0x5e,0x01,0x8e,
-0x5f,0xf5,0x60,0x7f,0x0b,0x12,0x75,0xcf,0x12,0x7e,0x61,0xe4,0xff,0x12,0x7f,0x1b,
-0x90,0x97,0x4a,0xe0,0xfc,0xa3,0xe0,0xfd,0xec,0xfb,0x8d,0x48,0xe4,0xf5,0x49,0x7d,
-0x01,0x7f,0x60,0x7e,0x01,0x02,0x38,0xec,0x7d,0x02,0x7f,0x03,0x12,0x39,0xbe,0xe5,
-0x65,0x60,0x23,0x90,0x97,0x8d,0xe0,0x60,0x06,0x7d,0x01,0x7f,0x0c,0x80,0x0f,0x90,
-0x97,0x88,0xe0,0x54,0x0f,0xc3,0x94,0x04,0x50,0x07,0x7d,0x01,0x7f,0x04,0x12,0x6e,
-0xda,0xe4,0xff,0x12,0x7e,0x99,0x22,0x90,0x02,0x09,0xe0,0xfd,0x12,0x1c,0xd6,0xfe,
-0xaf,0x05,0xed,0x2e,0x90,0x97,0x92,0xf0,0x90,0x00,0x01,0x12,0x1c,0xef,0xff,0xed,
-0x2f,0x90,0x97,0x93,0xf0,0x90,0x00,0x02,0x12,0x1c,0xef,0xff,0xae,0x05,0xed,0x2f,
-0x90,0x97,0x94,0xf0,0x22,0x90,0x06,0x34,0xe0,0x60,0x26,0x14,0x70,0x1b,0x7b,0x01,
-0x7a,0x06,0x79,0x35,0x7f,0xf9,0x7e,0x01,0x12,0x7b,0x46,0xbf,0x01,0x09,0x90,0x06,
-0x35,0xe0,0x54,0x0f,0xf0,0x80,0x05,0x80,0x00,0x02,0x7f,0x00,0xe4,0x90,0x06,0x34,
-0xf0,0x22,0x90,0x01,0xc4,0x74,0x72,0xf0,0x74,0x7d,0xa3,0xf0,0x90,0x04,0x1b,0xe0,
-0x54,0x7f,0xff,0xbf,0x7f,0x14,0x90,0x97,0x87,0xe0,0x70,0x0e,0x90,0x97,0x8b,0xe0,
-0x54,0x0f,0xd3,0x94,0x04,0x50,0x03,0x7f,0x01,0x22,0x7f,0x00,0x22,0x90,0x00,0x01,
-0x12,0x1c,0xef,0x90,0x97,0x8d,0xf0,0x12,0x1c,0xd6,0x65,0x65,0x60,0x15,0xa2,0xaf,
-0xe4,0x33,0x90,0x97,0x46,0xf0,0xc2,0xaf,0x12,0x78,0x17,0x90,0x97,0x46,0xe0,0x24,
-0xff,0x92,0xaf,0x22,0x90,0x97,0x2e,0xe0,0x54,0xf0,0x44,0x03,0xf0,0x54,0x0f,0x44,
-0x80,0xf0,0x90,0x97,0x33,0xe4,0xf0,0xa3,0x74,0x00,0xf0,0xa3,0x74,0x56,0xf0,0x7b,
-0x01,0x7a,0x97,0x79,0x2e,0x02,0x70,0x66,0x90,0x06,0x04,0xe0,0x54,0xbf,0xf0,0xef,
-0x60,0x0a,0xe5,0x64,0xb4,0x01,0x05,0xe4,0xff,0x12,0x7b,0xcc,0x90,0x97,0x88,0xe0,
-0x54,0xf0,0xf0,0xe0,0x44,0x0c,0xf0,0x22,0x90,0x97,0xb2,0xef,0xf0,0x12,0x71,0x1c,
-0x90,0x97,0xb2,0xe0,0x60,0x05,0x90,0x05,0x22,0xe4,0xf0,0x90,0x97,0x88,0xe0,0x54,
-0xf0,0xf0,0xe0,0x44,0x04,0xf0,0x22,0x90,0x06,0x04,0xe0,0x44,0x40,0xf0,0xe5,0x64,
-0xb4,0x01,0x05,0x7f,0x01,0x12,0x7b,0xcc,0x90,0x97,0x88,0xe0,0x54,0xf0,0xf0,0xe0,
-0x44,0x04,0xf0,0x22,0x90,0x97,0x88,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x01,0xf0,0x12,
-0x77,0xb5,0x12,0x78,0x75,0x90,0x97,0x88,0xe0,0x54,0xf0,0xf0,0xe0,0x44,0x02,0xf0,
-0x22,0x7f,0x0b,0x12,0x72,0x6f,0xef,0x65,0x61,0x60,0x10,0xe5,0x61,0xb4,0x01,0x05,
-0xe4,0xf5,0x61,0x80,0x03,0x75,0x61,0x01,0x7f,0x01,0x22,0x7f,0x00,0x22,0x90,0x01,
-0xc4,0x74,0x7e,0xf0,0x74,0x7e,0xa3,0xf0,0x90,0x97,0x93,0xe0,0xff,0xe4,0xfd,0x12,
-0x71,0xc9,0x90,0x04,0x1f,0x74,0x01,0xf0,0x22,0xef,0x60,0x0b,0x90,0x97,0x97,0xe0,
-0xb4,0x01,0x10,0xe4,0xff,0x80,0x09,0x90,0x97,0x97,0xe0,0xb4,0x01,0x05,0x7f,0x01,
-0x12,0x4e,0x3b,0x22,0x90,0x00,0x49,0xe0,0x90,0x97,0xb4,0xf0,0xe0,0x54,0x0f,0xf0,
-0xe0,0xff,0x44,0xf0,0x90,0x00,0x49,0xf0,0xef,0x44,0xb0,0xf0,0x22,0xe4,0x90,0x97,
-0x8e,0xf0,0x90,0x97,0x80,0xf0,0x90,0x97,0x89,0xf0,0x90,0x97,0x8f,0xf0,0x22,0xe5,
-0x5e,0xb4,0x01,0x0b,0x12,0x7e,0x61,0xbf,0x01,0x05,0x7f,0x01,0x12,0x7f,0x1b,0x22,
-0x90,0x09,0x28,0xef,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x22,
-0x90,0x06,0x34,0x74,0xff,0xf0,0xe4,0xa3,0xf0,0xa3,0xf0,0xa3,0xf0,0x22,0x41,0x97,
-0xb1,0x00,0x41,0x97,0x7e,0x80,0x41,0x97,0xb3,0x00,0x00,0x90,0x01,0xca,0xe5,0x61,
-0xf0,0xef,0x60,0x03,0x12,0x7e,0xb4,0x22,0x90,0x97,0x46,0xeb,0xf0,0xa3,0xea,0xf0,
-0xa3,0xe9,0xf0,0x22,0x90,0x97,0xa7,0xeb,0xf0,0xa3,0xea,0xf0,0xa3,0xe9,0xf0,0x22,
-0x90,0x97,0xaa,0xeb,0xf0,0xa3,0xea,0xf0,0xa3,0xe9,0xf0,0x22,0x8f,0x82,0x8e,0x83,
-0xa3,0xa3,0xa3,0xe4,0xf0,0x22,0xe4,0xf5,0x5e,0x7f,0x60,0x7e,0x01,0x02,0x7f,0x4c,
-0x90,0x97,0x97,0xe0,0x90,0x97,0x2d,0xf0,0x22,0x8f,0x1b,0x8c,0x1c,0x8d,0x1d,0x22,
-0x8f,0x1e,0x8c,0x1f,0x8d,0x20,0x22,0x12,0x1c,0xd6,0xf5,0x64,0x22,0x22,0x52,0x09,
+// =================== v88 UMC B Cut P2PPS with CCX report C2H 2012-12-05 =====================
+u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength] = {
+0xC2, 0x88, 0x02, 0x05, 0x58, 0x00, 0x02, 0x00, 0x12, 0x05, 0x17, 0x10, 0xC0, 0x3E, 0x01, 0x00,
+0x94, 0x18, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x02, 0x46, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x02, 0x60, 0xF3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x02, 0x67, 0x5B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x4B, 0x87, 0x00, 0x00,
+0x05, 0x04, 0x03, 0x02, 0x00, 0x03, 0x06, 0x05, 0x04, 0x03, 0x00, 0x04, 0x06, 0x05, 0x04, 0x02,
+0x00, 0x04, 0x08, 0x07, 0x06, 0x04, 0x00, 0x06, 0x0A, 0x09, 0x08, 0x06, 0x00, 0x08, 0x0A, 0x09,
+0x08, 0x04, 0x00, 0x08, 0x0A, 0x09, 0x08, 0x02, 0x00, 0x08, 0x0A, 0x09, 0x08, 0x00, 0x00, 0x08,
+0x12, 0x11, 0x10, 0x08, 0x00, 0x10, 0x1A, 0x19, 0x18, 0x10, 0x00, 0x18, 0x22, 0x21, 0x20, 0x18,
+0x00, 0x20, 0x22, 0x21, 0x20, 0x10, 0x00, 0x20, 0x22, 0x21, 0x20, 0x08, 0x00, 0x20, 0x22, 0x21,
+0x1C, 0x08, 0x00, 0x20, 0x22, 0x21, 0x14, 0x08, 0x00, 0x20, 0x22, 0x20, 0x18, 0x08, 0x00, 0x20,
+0x31, 0x30, 0x20, 0x10, 0x00, 0x30, 0x31, 0x30, 0x18, 0x00, 0x00, 0x30, 0x31, 0x2F, 0x10, 0x10,
+0x00, 0x30, 0x31, 0x2C, 0x10, 0x10, 0x00, 0x30, 0x31, 0x28, 0x10, 0x00, 0x00, 0x30, 0x31, 0x20,
+0x10, 0x00, 0x00, 0x30, 0x31, 0x10, 0x10, 0x00, 0x00, 0x30, 0x04, 0x04, 0x04, 0x05, 0x04, 0x04,
+0x05, 0x07, 0x07, 0x07, 0x08, 0x0A, 0x04, 0x04, 0x04, 0x04, 0x06, 0x0A, 0x0B, 0x0D, 0x05, 0x05,
+0x07, 0x07, 0x08, 0x0B, 0x0D, 0x0F, 0x04, 0x04, 0x04, 0x05, 0x07, 0x07, 0x09, 0x09, 0x0C, 0x0E,
+0x10, 0x12, 0x06, 0x07, 0x09, 0x0A, 0x0C, 0x0E, 0x11, 0x13, 0x09, 0x09, 0x09, 0x09, 0x0C, 0x0E,
+0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x26, 0x2A, 0x18, 0x1A,
+0x1D, 0x1F, 0x21, 0x27, 0x29, 0x2A, 0x00, 0x00, 0x00, 0x1F, 0x23, 0x28, 0x2A, 0x2C, 0x00, 0x04,
+0x00, 0x04, 0x00, 0x08, 0x00, 0x10, 0x00, 0x18, 0x00, 0x24, 0x00, 0x30, 0x00, 0x48, 0x00, 0x60,
+0x00, 0x90, 0x00, 0xC0, 0x00, 0xD8, 0x00, 0x50, 0x00, 0x78, 0x00, 0xA0, 0x00, 0xC8, 0x01, 0x40,
+0x01, 0x90, 0x01, 0xE0, 0x02, 0x30, 0x01, 0x2C, 0x01, 0x40, 0x01, 0xE0, 0x02, 0xD0, 0x03, 0xE8,
+0x04, 0xB0, 0x06, 0x40, 0x07, 0xD0, 0x00, 0x02, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0C,
+0x00, 0x12, 0x00, 0x18, 0x00, 0x24, 0x00, 0x30, 0x00, 0x48, 0x00, 0x60, 0x00, 0x6C, 0x00, 0x28,
+0x00, 0x3C, 0x00, 0x50, 0x00, 0x64, 0x00, 0xA0, 0x00, 0xC8, 0x00, 0xF0, 0x01, 0x18, 0x00, 0x64,
+0x00, 0xA0, 0x00, 0xF0, 0x01, 0x68, 0x01, 0xF4, 0x02, 0x58, 0x03, 0x20, 0x03, 0xE8, 0x02, 0x02,
+0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, 0x07, 0x02, 0x03, 0x04, 0x0A, 0x0C, 0x0E,
+0x10, 0x12, 0x05, 0x07, 0x07, 0x08, 0x0B, 0x12, 0x24, 0x3C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02,
+0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06,
+0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x20, 0x1E, 0x1C, 0x18, 0x10, 0x18, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0xBB, 0x01, 0x0C, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE0, 0x22, 0x50,
+0x06, 0xE9, 0x25, 0x82, 0xF8, 0xE6, 0x22, 0xBB, 0xFE, 0x06, 0xE9, 0x25, 0x82, 0xF8, 0xE2, 0x22,
+0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE4, 0x93, 0x22, 0xBB, 0x01, 0x06,
+0x89, 0x82, 0x8A, 0x83, 0xF0, 0x22, 0x50, 0x02, 0xF7, 0x22, 0xBB, 0xFE, 0x01, 0xF3, 0x22, 0xF8,
+0xBB, 0x01, 0x0D, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE8, 0xF0, 0x22,
+0x50, 0x06, 0xE9, 0x25, 0x82, 0xC8, 0xF6, 0x22, 0xBB, 0xFE, 0x05, 0xE9, 0x25, 0x82, 0xC8, 0xF2,
+0x22, 0xC5, 0xF0, 0xF8, 0xA3, 0xE0, 0x28, 0xF0, 0xC5, 0xF0, 0xF8, 0xE5, 0x82, 0x15, 0x82, 0x70,
+0x02, 0x15, 0x83, 0xE0, 0x38, 0xF0, 0x22, 0xBB, 0x01, 0x0A, 0x89, 0x82, 0x8A, 0x83, 0xE0, 0xF5,
+0xF0, 0xA3, 0xE0, 0x22, 0x50, 0x06, 0x87, 0xF0, 0x09, 0xE7, 0x19, 0x22, 0xBB, 0xFE, 0x07, 0xE3,
+0xF5, 0xF0, 0x09, 0xE3, 0x19, 0x22, 0x89, 0x82, 0x8A, 0x83, 0xE4, 0x93, 0xF5, 0xF0, 0x74, 0x01,
+0x93, 0x22, 0xBB, 0x01, 0x10, 0xE5, 0x82, 0x29, 0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE0,
+0xF5, 0xF0, 0xA3, 0xE0, 0x22, 0x50, 0x09, 0xE9, 0x25, 0x82, 0xF8, 0x86, 0xF0, 0x08, 0xE6, 0x22,
+0xBB, 0xFE, 0x0A, 0xE9, 0x25, 0x82, 0xF8, 0xE2, 0xF5, 0xF0, 0x08, 0xE2, 0x22, 0xE5, 0x83, 0x2A,
+0xF5, 0x83, 0xE9, 0x93, 0xF5, 0xF0, 0xA3, 0xE9, 0x93, 0x22, 0xBB, 0x01, 0x0A, 0x89, 0x82, 0x8A,
+0x83, 0xF0, 0xE5, 0xF0, 0xA3, 0xF0, 0x22, 0x50, 0x06, 0xF7, 0x09, 0xA7, 0xF0, 0x19, 0x22, 0xBB,
+0xFE, 0x06, 0xF3, 0xE5, 0xF0, 0x09, 0xF3, 0x19, 0x22, 0xF8, 0xBB, 0x01, 0x11, 0xE5, 0x82, 0x29,
+0xF5, 0x82, 0xE5, 0x83, 0x3A, 0xF5, 0x83, 0xE8, 0xF0, 0xE5, 0xF0, 0xA3, 0xF0, 0x22, 0x50, 0x09,
+0xE9, 0x25, 0x82, 0xC8, 0xF6, 0x08, 0xA6, 0xF0, 0x22, 0xBB, 0xFE, 0x09, 0xE9, 0x25, 0x82, 0xC8,
+0xF2, 0xE5, 0xF0, 0x08, 0xF2, 0x22, 0xEF, 0x4B, 0xFF, 0xEE, 0x4A, 0xFE, 0xED, 0x49, 0xFD, 0xEC,
+0x48, 0xFC, 0x22, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0xA3, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0x22, 0xA4,
+0x25, 0x82, 0xF5, 0x82, 0xE5, 0xF0, 0x35, 0x83, 0xF5, 0x83, 0x22, 0xE0, 0xFB, 0xA3, 0xE0, 0xFA,
+0xA3, 0xE0, 0xF9, 0x22, 0xF8, 0xE0, 0xFB, 0xA3, 0xA3, 0xE0, 0xF9, 0x25, 0xF0, 0xF0, 0xE5, 0x82,
+0x15, 0x82, 0x70, 0x02, 0x15, 0x83, 0xE0, 0xFA, 0x38, 0xF0, 0x22, 0xEB, 0xF0, 0xA3, 0xEA, 0xF0,
+0xA3, 0xE9, 0xF0, 0x22, 0xD0, 0x83, 0xD0, 0x82, 0xF8, 0xE4, 0x93, 0x70, 0x12, 0x74, 0x01, 0x93,
+0x70, 0x0D, 0xA3, 0xA3, 0x93, 0xF8, 0x74, 0x01, 0x93, 0xF5, 0x82, 0x88, 0x83, 0xE4, 0x73, 0x74,
+0x02, 0x93, 0x68, 0x60, 0xEF, 0xA3, 0xA3, 0xA3, 0x80, 0xDF, 0xD0, 0x83, 0xD0, 0x82, 0xF8, 0xE4,
+0x93, 0x70, 0x12, 0x74, 0x01, 0x93, 0x70, 0x0D, 0xA3, 0xA3, 0x93, 0xF8, 0x74, 0x01, 0x93, 0xF5,
+0x82, 0x88, 0x83, 0xE4, 0x73, 0x74, 0x02, 0x93, 0xB5, 0xF0, 0x06, 0x74, 0x03, 0x93, 0x68, 0x60,
+0xE9, 0xA3, 0xA3, 0xA3, 0xA3, 0x80, 0xD8, 0xE4, 0x90, 0x8A, 0xC5, 0xF0, 0xE5, 0x24, 0x70, 0x03,
+0x02, 0x44, 0x9D, 0xE5, 0x21, 0x64, 0x01, 0x60, 0x03, 0x02, 0x44, 0x9D, 0xE5, 0x24, 0x14, 0x60,
+0x29, 0x24, 0xFD, 0x60, 0x25, 0x24, 0x02, 0x24, 0xFB, 0x50, 0x02, 0x80, 0x23, 0x90, 0x8B, 0x0B,
+0xE0, 0x14, 0xF0, 0xE0, 0x60, 0x04, 0xA3, 0xE0, 0x60, 0x16, 0x90, 0x8B, 0x0B, 0xE0, 0x70, 0x0A,
+0x90, 0x8B, 0x19, 0xE0, 0x90, 0x8B, 0x0B, 0xF0, 0x80, 0x00, 0x90, 0x8A, 0xC5, 0x74, 0x01, 0xF0,
+0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x16, 0xA3, 0xE0, 0xB4, 0x06, 0x05, 0xE4, 0x90, 0x8A, 0xC5,
+0xF0, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x70, 0x04, 0x90, 0x8A, 0xC5, 0xF0, 0x90, 0x8A, 0xC5,
+0xE0, 0x60, 0x4A, 0x43, 0x25, 0x10, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0C, 0xE0, 0x75,
+0xF0, 0x03, 0xA4, 0xFF, 0x90, 0x8B, 0x15, 0xE0, 0x2F, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74, 0x05, 0xF0, 0xE5, 0x22, 0x54,
+0x0F, 0xC3, 0x94, 0x04, 0x50, 0x07, 0x7D, 0x01, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x90, 0x8B, 0x2C,
+0xE0, 0x30, 0xE0, 0x09, 0x12, 0x66, 0x20, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x22, 0xE4, 0xF5,
+0x25, 0xF5, 0x24, 0x75, 0x23, 0x0C, 0x75, 0x22, 0x0C, 0x90, 0x8B, 0x1A, 0xF0, 0x90, 0x8B, 0x18,
+0xF0, 0x90, 0x8B, 0x17, 0xF0, 0x90, 0x8B, 0x19, 0x04, 0xF0, 0x90, 0x8B, 0x0B, 0xF0, 0xE4, 0x90,
+0x8B, 0x1B, 0xF0, 0x90, 0x8B, 0x0D, 0xF0, 0x90, 0x8B, 0x15, 0x74, 0x05, 0xF0, 0xE4, 0x90, 0x8B,
+0x0C, 0xF0, 0x90, 0x8B, 0x13, 0xF0, 0xA3, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x10, 0xF0, 0xA3, 0x74,
+0x05, 0xF0, 0x90, 0x8B, 0x0F, 0x74, 0x14, 0xF0, 0x90, 0x8B, 0x16, 0x74, 0x05, 0xF0, 0xE4, 0x90,
+0x8B, 0x0E, 0xF0, 0x90, 0x8B, 0x0A, 0xF0, 0x90, 0x8B, 0x08, 0xF0, 0x90, 0x8B, 0x12, 0xF0, 0x22,
+0x7F, 0x00, 0x22, 0x02, 0x45, 0x03, 0x02, 0x45, 0x06, 0x8E, 0x64, 0x8F, 0x65, 0xAD, 0x65, 0xAC,
+0x64, 0xAF, 0x63, 0x12, 0x4A, 0x5B, 0xAF, 0x65, 0xAE, 0x64, 0x90, 0x04, 0x80, 0xE0, 0x54, 0x0F,
+0xFD, 0xAC, 0x07, 0x74, 0x11, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x01,
+0xF0, 0x74, 0x11, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xFB, 0xF0, 0xAC,
+0x07, 0x74, 0x16, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0xFA, 0xF0, 0x74,
+0x15, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x1F, 0xF0, 0xAC, 0x07, 0x74,
+0x06, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x0F, 0xF0, 0x90, 0x04, 0x53,
+0xE4, 0xF0, 0x90, 0x04, 0x52, 0xF0, 0x90, 0x04, 0x51, 0x74, 0xFF, 0xF0, 0x90, 0x04, 0x50, 0x74,
+0xFD, 0xF0, 0x74, 0x14, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xC0, 0x4D,
+0xFD, 0x74, 0x14, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xED, 0xF0, 0x22, 0x7D, 0x01,
+0x7F, 0x0C, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F, 0x67, 0x8D, 0x68, 0xE5, 0x67, 0x54,
+0x0F, 0xFF, 0xE5, 0x22, 0x54, 0x0F, 0x6F, 0x60, 0x72, 0xE5, 0x67, 0x30, 0xE2, 0x30, 0xE5, 0x22,
+0x20, 0xE2, 0x05, 0x7F, 0x01, 0x12, 0x4A, 0xB2, 0xE5, 0x22, 0x30, 0xE3, 0x10, 0xE5, 0x67, 0x20,
+0xE3, 0x0B, 0x12, 0x49, 0xD5, 0xEF, 0x60, 0x53, 0x12, 0x4A, 0xCC, 0x80, 0x4E, 0xE5, 0x22, 0x20,
+0xE3, 0x49, 0xE5, 0x67, 0x30, 0xE3, 0x44, 0xAF, 0x68, 0x12, 0x4A, 0x7C, 0x80, 0x3D, 0xE5, 0x22,
+0x54, 0x0F, 0xFF, 0xBF, 0x0C, 0x0E, 0xE5, 0x67, 0x20, 0xE3, 0x09, 0x12, 0x49, 0xD5, 0xEF, 0x60,
+0x2A, 0x12, 0x4A, 0xCC, 0xE5, 0x22, 0x54, 0x0F, 0xFF, 0xBF, 0x04, 0x0E, 0xE5, 0x67, 0x20, 0xE2,
+0x09, 0x12, 0x49, 0x93, 0xEF, 0x60, 0x14, 0x12, 0x4A, 0x32, 0xE5, 0x22, 0x54, 0x0F, 0xFF, 0xBF,
+0x02, 0x09, 0x12, 0x45, 0x00, 0xEF, 0x60, 0x03, 0x12, 0x4B, 0x10, 0xD0, 0xD0, 0x92, 0xAF, 0x22,
+0x02, 0x46, 0x6E, 0x02, 0x51, 0x39, 0xE4, 0x93, 0xA3, 0xF8, 0xE4, 0x93, 0xA3, 0x40, 0x03, 0xF6,
+0x80, 0x01, 0xF2, 0x08, 0xDF, 0xF4, 0x80, 0x29, 0xE4, 0x93, 0xA3, 0xF8, 0x54, 0x07, 0x24, 0x0C,
+0xC8, 0xC3, 0x33, 0xC4, 0x54, 0x0F, 0x44, 0x20, 0xC8, 0x83, 0x40, 0x04, 0xF4, 0x56, 0x80, 0x01,
+0x46, 0xF6, 0xDF, 0xE4, 0x80, 0x0B, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x90, 0x4B,
+0x23, 0xE4, 0x7E, 0x01, 0x93, 0x60, 0xBC, 0xA3, 0xFF, 0x54, 0x3F, 0x30, 0xE5, 0x09, 0x54, 0x1F,
+0xFE, 0xE4, 0x93, 0xA3, 0x60, 0x01, 0x0E, 0xCF, 0x54, 0xC0, 0x25, 0xE0, 0x60, 0xA8, 0x40, 0xB8,
+0xE4, 0x93, 0xA3, 0xFA, 0xE4, 0x93, 0xA3, 0xF8, 0xE4, 0x93, 0xA3, 0xC8, 0xC5, 0x82, 0xC8, 0xCA,
+0xC5, 0x83, 0xCA, 0xF0, 0xA3, 0xC8, 0xC5, 0x82, 0xC8, 0xCA, 0xC5, 0x83, 0xCA, 0xDF, 0xE9, 0xDE,
+0xE7, 0x80, 0xBE, 0xE5, 0x21, 0x64, 0x01, 0x70, 0x67, 0xE5, 0x24, 0x60, 0x63, 0xE5, 0x24, 0x64,
+0x02, 0x60, 0x06, 0xE5, 0x24, 0x64, 0x05, 0x70, 0x27, 0x90, 0x06, 0xAB, 0xE0, 0x90, 0x8B, 0x0B,
+0xF0, 0x90, 0x06, 0xAA, 0xE0, 0x90, 0x8B, 0x19, 0xF0, 0x90, 0x8B, 0x0B, 0xE0, 0x70, 0x07, 0x90,
+0x8B, 0x19, 0xE0, 0xFF, 0x80, 0x05, 0x90, 0x8B, 0x0B, 0xE0, 0xFF, 0x90, 0x8B, 0x0B, 0xEF, 0xF0,
+0x90, 0x8B, 0x0D, 0xE0, 0x60, 0x02, 0xE4, 0xF0, 0xE4, 0x90, 0x8B, 0x0C, 0xF0, 0x90, 0x05, 0x58,
+0x74, 0x03, 0xF0, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x53, 0x25,
+0xFD, 0x53, 0x25, 0xEF, 0xE5, 0x24, 0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x03, 0x12, 0x47, 0x8E,
+0x22, 0xEF, 0x64, 0x01, 0x70, 0x35, 0x7D, 0x78, 0x7F, 0x02, 0x12, 0x36, 0x75, 0x7D, 0x02, 0x7F,
+0x03, 0x12, 0x36, 0x75, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x12,
+0x45, 0x9E, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x03, 0x12, 0x66, 0x20, 0x90, 0x06, 0x04, 0xE0,
+0x54, 0x7F, 0xF0, 0x90, 0x06, 0x0A, 0xE0, 0x54, 0xF8, 0xF0, 0x22, 0x90, 0x01, 0x36, 0x74, 0x7B,
+0xF0, 0xA3, 0x74, 0x02, 0xF0, 0x7D, 0x7B, 0xFF, 0x12, 0x36, 0xE6, 0x7D, 0x02, 0x7F, 0x03, 0x12,
+0x36, 0xE6, 0x90, 0x06, 0x04, 0xE0, 0x44, 0x80, 0xF0, 0x90, 0x06, 0x0A, 0xE0, 0x44, 0x07, 0xF0,
+0x12, 0x4B, 0x4F, 0xE5, 0x21, 0x20, 0xE0, 0x05, 0xE4, 0x90, 0x8B, 0x0D, 0xF0, 0x22, 0xE4, 0x90,
+0x8A, 0xC5, 0xF0, 0x90, 0x06, 0xA9, 0xE0, 0x90, 0x8A, 0xC5, 0xF0, 0xE0, 0x54, 0xC0, 0x70, 0x09,
+0x53, 0x25, 0xFE, 0x53, 0x25, 0xFD, 0x12, 0x4A, 0xFC, 0x90, 0x8A, 0xC5, 0xE0, 0x30, 0xE6, 0x15,
+0x43, 0x25, 0x01, 0x90, 0x8B, 0x1A, 0xE0, 0x64, 0x02, 0x60, 0x05, 0x12, 0x4A, 0x97, 0x80, 0x08,
+0x12, 0x49, 0x49, 0x80, 0x03, 0x53, 0x25, 0xFE, 0x90, 0x8A, 0xC5, 0xE0, 0x30, 0xE7, 0x27, 0x43,
+0x25, 0x02, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x11, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4,
+0xFB, 0xFD, 0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57, 0x74, 0x05, 0xF0, 0x90,
+0x8B, 0x1B, 0x74, 0x01, 0xF0, 0x22, 0x53, 0x25, 0xFD, 0x22, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x8B,
+0x12, 0x4B, 0x43, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xF5, 0x24, 0x14, 0x60,
+0x0E, 0x14, 0x60, 0x1F, 0x14, 0x60, 0x31, 0x24, 0x03, 0x70, 0x44, 0x7F, 0x01, 0x80, 0x3D, 0x90,
+0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFD, 0xE4, 0xFF, 0x12, 0x4A,
+0x07, 0x80, 0x29, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFD,
+0x7F, 0x01, 0x12, 0x4A, 0x07, 0x1F, 0x80, 0x14, 0x90, 0x8A, 0xDE, 0x12, 0x43, 0x6B, 0x90, 0x00,
+0x02, 0x12, 0x42, 0x20, 0xFD, 0x7F, 0x02, 0x12, 0x4A, 0x07, 0xE4, 0xFF, 0x12, 0x47, 0x21, 0x22,
+0xE4, 0x90, 0x8A, 0xCB, 0xF0, 0xE5, 0x24, 0x60, 0x49, 0x90, 0x8B, 0x1B, 0xE0, 0x60, 0x0D, 0xE4,
+0xF0, 0x53, 0x25, 0xFD, 0xE5, 0x25, 0x54, 0x07, 0x70, 0x38, 0x80, 0x33, 0x90, 0x8B, 0x0C, 0xE0,
+0x04, 0xF0, 0x53, 0x25, 0xEF, 0x90, 0x8A, 0xCB, 0xE0, 0xFF, 0x90, 0x8B, 0x10, 0xE0, 0x2F, 0xFF,
+0xE4, 0x33, 0xFE, 0x90, 0x8B, 0x0C, 0xE0, 0xD3, 0x9F, 0xEE, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98,
+0x40, 0x0D, 0xE5, 0x21, 0xB4, 0x01, 0x0B, 0xA3, 0xE0, 0x70, 0x07, 0xE0, 0x04, 0xF0, 0x22, 0x12,
+0x4A, 0xFC, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8F, 0x63, 0x90, 0x04, 0x1D, 0xE0,
+0x60, 0x24, 0x90, 0x05, 0x22, 0xE0, 0xF5, 0x66, 0x74, 0xFF, 0xF0, 0x12, 0x7E, 0x2D, 0xBF, 0x01,
+0x0D, 0x90, 0x8A, 0xF9, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xDE, 0x12, 0x45, 0x09, 0x90, 0x05,
+0x22, 0xE5, 0x66, 0xF0, 0x80, 0x0D, 0x90, 0x8A, 0xF9, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xDE,
+0x12, 0x45, 0x09, 0x90, 0x04, 0x1F, 0x74, 0x20, 0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE5, 0x24,
+0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x41, 0x90, 0x8B, 0x1A, 0xE0, 0x60, 0x2B, 0x12, 0x45, 0x9E,
+0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x58, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92,
+0x74, 0x01, 0xF0, 0x90, 0x8B, 0x18, 0xF0, 0x22, 0xE5, 0x22, 0x54, 0x0F, 0xC3, 0x94, 0x04, 0x50,
+0x07, 0x7D, 0x01, 0x7F, 0x04, 0x12, 0x45, 0xA2, 0x22, 0x90, 0x01, 0x5F, 0xE4, 0xF0, 0x90, 0x01,
+0x3C, 0x74, 0x08, 0xF0, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E,
+0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x5C, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x5F, 0x74, 0x05,
+0xF0, 0x90, 0x06, 0x92, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x17, 0x14, 0xF0, 0xE5, 0x22, 0x54, 0x0F,
+0xC3, 0x94, 0x0C, 0x50, 0x0D, 0x12, 0x45, 0x9E, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x03, 0x12,
+0x66, 0x20, 0x22, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x37, 0xE5, 0x25, 0x54, 0x03, 0x70,
+0x31, 0xE5, 0x23, 0x54, 0x0F, 0xD3, 0x94, 0x02, 0x50, 0x28, 0xE5, 0x25, 0x20, 0xE2, 0x23, 0xE5,
+0x25, 0x20, 0xE4, 0x1E, 0x90, 0x8B, 0x0D, 0xE0, 0x70, 0x18, 0x90, 0x8B, 0x12, 0xE0, 0x70, 0x12,
+0xE5, 0x26, 0x70, 0x0E, 0x90, 0x01, 0xB9, 0xE4, 0xF0, 0x90, 0x01, 0xB8, 0x74, 0x04, 0xF0, 0x7F,
+0x01, 0x22, 0x7F, 0x00, 0x22, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x27, 0x90, 0x8B, 0x18,
+0xE0, 0x70, 0x21, 0x90, 0x8B, 0x17, 0xE0, 0x70, 0x1B, 0xE5, 0x23, 0x54, 0x0F, 0xD3, 0x94, 0x04,
+0x50, 0x12, 0xE5, 0x26, 0x70, 0x0E, 0x90, 0x01, 0xB9, 0xE4, 0xF0, 0x90, 0x01, 0xB8, 0x74, 0x08,
+0xF0, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0xEF, 0x24, 0xFE, 0x60, 0x0B, 0x04, 0x70, 0x22, 0x90,
+0x8B, 0x19, 0x74, 0x01, 0xF0, 0x80, 0x16, 0xED, 0x70, 0x0A, 0x90, 0x8B, 0x16, 0xE0, 0x90, 0x8B,
+0x19, 0xF0, 0x80, 0x05, 0x90, 0x8B, 0x19, 0xED, 0xF0, 0x90, 0x8B, 0x19, 0xE0, 0x90, 0x8B, 0x0B,
+0xF0, 0x22, 0x90, 0x01, 0x37, 0x74, 0x02, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x7E,
+0x2D, 0xEF, 0x70, 0x06, 0x90, 0x01, 0xC8, 0x74, 0xFD, 0xF0, 0x7D, 0x02, 0x7F, 0x03, 0x12, 0x36,
+0xE6, 0x12, 0x7A, 0x6D, 0x53, 0x22, 0xF0, 0x43, 0x22, 0x02, 0x22, 0xEF, 0x60, 0x0F, 0x74, 0x21,
+0x2D, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x10, 0xF0, 0x22, 0x74, 0x21, 0x2D,
+0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xEF, 0xF0, 0x22, 0x90, 0x06, 0x04, 0xE0,
+0x54, 0xBF, 0xF0, 0xEF, 0x60, 0x0A, 0xE5, 0x21, 0xB4, 0x01, 0x05, 0xE4, 0xFF, 0x12, 0x48, 0xB3,
+0x53, 0x22, 0xF0, 0x43, 0x22, 0x0C, 0x22, 0x90, 0x04, 0x1D, 0xE0, 0x70, 0x14, 0x90, 0x8A, 0xF8,
+0xE0, 0xFF, 0xE4, 0xFD, 0x12, 0x5F, 0xDE, 0x8E, 0x69, 0x8F, 0x6A, 0x90, 0x04, 0x1F, 0x74, 0x20,
+0xF0, 0x22, 0x90, 0x8B, 0x52, 0xEF, 0xF0, 0x12, 0x4F, 0xED, 0x90, 0x8B, 0x52, 0xE0, 0x60, 0x05,
+0x90, 0x05, 0x22, 0xE4, 0xF0, 0x53, 0x22, 0xF0, 0x43, 0x22, 0x04, 0x22, 0x90, 0x06, 0x04, 0xE0,
+0x44, 0x40, 0xF0, 0xE5, 0x21, 0xB4, 0x01, 0x05, 0x7F, 0x01, 0x12, 0x48, 0xB3, 0x53, 0x22, 0xF0,
+0x43, 0x22, 0x04, 0x22, 0xE5, 0x23, 0x30, 0xE6, 0x12, 0xE5, 0x23, 0x54, 0x0F, 0xFF, 0x90, 0x01,
+0x2F, 0xE0, 0x54, 0x80, 0x4F, 0x64, 0x80, 0xF0, 0x53, 0x23, 0xBF, 0x22, 0x90, 0x8B, 0x2C, 0xE0,
+0x30, 0xE0, 0x05, 0xAF, 0x23, 0x02, 0x66, 0x65, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x22,
+0x53, 0x22, 0xF0, 0x43, 0x22, 0x01, 0x12, 0x4B, 0x5A, 0x12, 0x4B, 0x5B, 0x53, 0x22, 0xF0, 0x43,
+0x22, 0x02, 0x22, 0x41, 0x8A, 0xF6, 0x00, 0x41, 0x8B, 0x05, 0x00, 0x41, 0x8B, 0x51, 0x00, 0x41,
+0x8B, 0x53, 0x00, 0x00, 0x90, 0x04, 0x1B, 0xE0, 0x54, 0x7F, 0x64, 0x7F, 0x7F, 0x01, 0x60, 0x02,
+0x7F, 0x00, 0x22, 0xE4, 0x90, 0x8B, 0x1B, 0xF0, 0x90, 0x8B, 0x0C, 0xF0, 0xF5, 0x25, 0x22, 0x90,
+0x8B, 0x13, 0xE0, 0xA3, 0xE0, 0x90, 0x05, 0x58, 0xF0, 0x22, 0x22, 0x22, 0xF0, 0x90, 0x8B, 0x0F,
+0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x58, 0x7E, 0x01, 0xD3, 0x10, 0xAF, 0x01,
+0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x3D, 0xE0, 0xFB, 0xA3, 0xE0, 0xF5, 0x44, 0xE4, 0xF5, 0x45, 0x12,
+0x35, 0xAB, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xC0, 0xE0, 0xC0, 0xF0, 0xC0, 0x83, 0xC0, 0x82, 0xC0,
+0xD0, 0x75, 0xD0, 0x00, 0xC0, 0x00, 0xC0, 0x01, 0xC0, 0x02, 0xC0, 0x03, 0xC0, 0x04, 0xC0, 0x05,
+0xC0, 0x06, 0xC0, 0x07, 0x75, 0x0E, 0x00, 0x90, 0x01, 0xC4, 0x74, 0x87, 0xF0, 0x74, 0x4B, 0xA3,
+0xF0, 0x53, 0x91, 0xDF, 0x90, 0x01, 0x3C, 0xE0, 0x55, 0x30, 0xF5, 0x34, 0xA3, 0xE0, 0x55, 0x31,
+0xF5, 0x35, 0xA3, 0xE0, 0x55, 0x32, 0xF5, 0x36, 0xA3, 0xE0, 0x55, 0x33, 0xF5, 0x37, 0xE5, 0x34,
+0x30, 0xE0, 0x51, 0x90, 0x01, 0x3C, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x1F,
+0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x18, 0x90, 0x8B, 0x34, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xE0,
+0x64, 0x03, 0x60, 0x0B, 0x7F, 0x01, 0xB1, 0xE0, 0xEF, 0x70, 0x04, 0x7F, 0x02, 0xD1, 0x89, 0x90,
+0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x1D, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x16, 0x90, 0x8B,
+0x2E, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x09, 0xE4, 0xFF, 0xB1, 0xE0, 0xEF,
+0x70, 0x02, 0xD1, 0x56, 0xE5, 0x34, 0x30, 0xE1, 0x08, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x11,
+0x60, 0xE5, 0x34, 0x30, 0xE2, 0x28, 0x90, 0x01, 0x3C, 0x74, 0x04, 0xF0, 0x90, 0x06, 0x92, 0xE0,
+0x30, 0xE0, 0x14, 0x90, 0x8B, 0x3D, 0xE4, 0x71, 0x5C, 0x90, 0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90,
+0x06, 0x92, 0x74, 0x01, 0xF0, 0x80, 0x07, 0x90, 0x8B, 0x18, 0xE4, 0xF0, 0x51, 0xFC, 0xE5, 0x34,
+0x30, 0xE3, 0x38, 0x90, 0x01, 0x3C, 0x74, 0x08, 0xF0, 0x90, 0x06, 0x92, 0xE0, 0x30, 0xE1, 0x24,
+0x90, 0x8B, 0x3D, 0xE4, 0xF0, 0x90, 0x8B, 0x0F, 0xE0, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD,
+0x7F, 0x5C, 0x7E, 0x01, 0x71, 0x6C, 0x90, 0x01, 0x5F, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92, 0x74,
+0x02, 0xF0, 0x80, 0x07, 0x90, 0x8B, 0x17, 0xE4, 0xF0, 0x51, 0xFC, 0xE5, 0x34, 0x30, 0xE4, 0x09,
+0x90, 0x01, 0x3C, 0x74, 0x10, 0xF0, 0x12, 0x52, 0x3C, 0xE5, 0x34, 0x30, 0xE5, 0x06, 0x90, 0x01,
+0x3C, 0x74, 0x20, 0xF0, 0xE5, 0x35, 0x30, 0xE0, 0x10, 0x90, 0x01, 0x3D, 0x74, 0x01, 0xF0, 0x90,
+0x00, 0x83, 0xE0, 0xF5, 0x23, 0x51, 0xE4, 0x51, 0xFC, 0xE5, 0x35, 0x30, 0xE2, 0x06, 0x90, 0x01,
+0x3D, 0x74, 0x04, 0xF0, 0xE5, 0x35, 0x30, 0xE4, 0x1B, 0x90, 0x01, 0x3D, 0x74, 0x10, 0xF0, 0x90,
+0x8B, 0x05, 0xE0, 0x60, 0x0F, 0xE4, 0xF0, 0x90, 0x05, 0x53, 0xE0, 0x44, 0x01, 0xF0, 0x90, 0x05,
+0xFD, 0xE0, 0x04, 0xF0, 0xE5, 0x36, 0x30, 0xE0, 0x75, 0x90, 0x01, 0x3E, 0x74, 0x01, 0xF0, 0x90,
+0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x18, 0x90, 0x8B, 0x36, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x64,
+0x03, 0x60, 0x0B, 0x7F, 0x01, 0xB1, 0xE0, 0xEF, 0x60, 0x04, 0x7F, 0x01, 0xD1, 0x89, 0x90, 0x8B,
+0x2C, 0xE0, 0x30, 0xE0, 0x49, 0x90, 0x8B, 0x30, 0xE4, 0xF0, 0xFF, 0xB1, 0xE0, 0xEF, 0x60, 0x3E,
+0x12, 0x65, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0x64, 0x06, 0x60, 0x32, 0xEF, 0xB4, 0x04, 0x02,
+0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF, 0x80, 0x14, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x05, 0x7F,
+0x01, 0x12, 0x7B, 0x49, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x12, 0x66, 0x20, 0xE5, 0x36,
+0x30, 0xE1, 0x47, 0x90, 0x01, 0x3E, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30, 0xE0, 0x19,
+0x90, 0x8B, 0x36, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x33, 0xE0, 0x64, 0x03, 0x60, 0x0B, 0x7F, 0x01,
+0xB1, 0xE0, 0xEF, 0x70, 0x04, 0x7F, 0x02, 0xD1, 0x89, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x1A,
+0x90, 0x8B, 0x30, 0x74, 0x01, 0xF0, 0x12, 0x7D, 0xBE, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60,
+0x09, 0xE4, 0xFF, 0xB1, 0xE0, 0xEF, 0x70, 0x02, 0xD1, 0x56, 0x74, 0x87, 0x04, 0x90, 0x01, 0xC4,
+0xF0, 0x74, 0x4B, 0xA3, 0xF0, 0xD0, 0x07, 0xD0, 0x06, 0xD0, 0x05, 0xD0, 0x04, 0xD0, 0x03, 0xD0,
+0x02, 0xD0, 0x01, 0xD0, 0x00, 0xD0, 0xD0, 0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xF0, 0xD0, 0xE0, 0x32,
+0xEF, 0x64, 0x01, 0x70, 0x3D, 0x90, 0x8B, 0x35, 0xE0, 0x60, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B,
+0x08, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x34, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22,
+0x90, 0x8B, 0x32, 0xE0, 0xFF, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x0B, 0xEF, 0xC4, 0x13, 0x54,
+0x07, 0x30, 0xE0, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x36, 0xE0, 0x7F, 0x01, 0x60, 0x36, 0x7F,
+0x00, 0x22, 0x90, 0x8B, 0x2F, 0xE0, 0x60, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x08, 0xE0, 0x60,
+0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x2E, 0xE0, 0x60, 0x03, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x2C,
+0xE0, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x03, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x30, 0xE0, 0x7F,
+0x01, 0x60, 0x02, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x0D, 0xE0, 0x60, 0x16, 0x90, 0x8B, 0x2D, 0xE0,
+0x70, 0x04, 0x7F, 0x05, 0x80, 0x1F, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x01, 0x70, 0x1A, 0x7F, 0x02,
+0x80, 0x13, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01, 0x04, 0x7F, 0x03, 0x80, 0x08, 0x90, 0x8B, 0x2D,
+0xE0, 0x70, 0x05, 0x7F, 0x04, 0x12, 0x7B, 0x49, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x8B, 0x33, 0xE0, 0x90, 0x8B, 0x55, 0xF0, 0x6F, 0x70, 0x02, 0xE1, 0x55, 0xEF, 0x14, 0x60,
+0x3B, 0x14, 0x60, 0x5F, 0x14, 0x70, 0x02, 0xE1, 0x30, 0x24, 0x03, 0x60, 0x02, 0xE1, 0x55, 0x90,
+0x8B, 0x55, 0xE0, 0xB4, 0x03, 0x04, 0xF1, 0xC0, 0xE1, 0x55, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x02,
+0x04, 0xF1, 0xAD, 0xE1, 0x55, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x04, 0x04, 0xF1, 0xC4, 0xE1, 0x55,
+0x90, 0x8B, 0x55, 0xE0, 0x64, 0x01, 0x70, 0x7D, 0xF1, 0xAF, 0x80, 0x79, 0x90, 0x8B, 0x55, 0xE0,
+0xFF, 0xB4, 0x03, 0x04, 0xF1, 0xC8, 0x80, 0x6D, 0xEF, 0xB4, 0x02, 0x04, 0xF1, 0xA0, 0x80, 0x65,
+0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x04, 0x04, 0xF1, 0xD3, 0x80, 0x59, 0xEF, 0x70, 0x56, 0xF1,
+0x8D, 0x80, 0x52, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x03, 0x05, 0x12, 0x7A, 0x5E, 0x80, 0x46, 0x90,
+0x8B, 0x55, 0xE0, 0xB4, 0x01, 0x04, 0xF1, 0x71, 0x80, 0x3B, 0x90, 0x8B, 0x55, 0xE0, 0xB4, 0x04,
+0x05, 0x12, 0x7B, 0x37, 0x80, 0x2F, 0x90, 0x8B, 0x55, 0xE0, 0x70, 0x29, 0xF1, 0x6F, 0x80, 0x25,
+0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x01, 0x04, 0xF1, 0x5A, 0x80, 0x19, 0xEF, 0xB4, 0x02, 0x04,
+0xF1, 0x6B, 0x80, 0x11, 0x90, 0x8B, 0x55, 0xE0, 0xFF, 0xB4, 0x04, 0x04, 0xF1, 0x5A, 0x80, 0x05,
+0xEF, 0x70, 0x02, 0xF1, 0x67, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x05, 0x22, 0x74, 0x6F, 0xF0,
+0x90, 0x8B, 0x33, 0x74, 0x03, 0xF0, 0x22, 0xF1, 0x8D, 0x80, 0xEF, 0xF1, 0xED, 0x80, 0xEB, 0xF1,
+0x8D, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12, 0x7E, 0x2D, 0xEF, 0x70, 0x06, 0x90, 0x01, 0xC8,
+0x74, 0xFD, 0xF0, 0x12, 0x7A, 0x6D, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x01, 0x3E,
+0x74, 0x03, 0xF0, 0xFD, 0x7F, 0x02, 0x12, 0x37, 0x00, 0x90, 0x8B, 0x33, 0x74, 0x01, 0xF0, 0x22,
+0xF1, 0xED, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0x04, 0xF0, 0x22, 0xF1, 0xA0, 0x7D,
+0x03, 0x7F, 0x02, 0x12, 0x36, 0x92, 0x90, 0x05, 0x27, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0xF0, 0x22,
+0xF1, 0xC8, 0x80, 0xEB, 0xF1, 0xD3, 0x80, 0xE7, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33,
+0x04, 0xF0, 0x22, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x33, 0x04, 0xF0, 0x22, 0xF1, 0x8D,
+0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x33, 0x74, 0x04, 0xF0, 0x22, 0x90, 0x8B, 0x1C,
+0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x78, 0x7E, 0x08, 0x12, 0x2F, 0xD9,
+0x90, 0x8B, 0x20, 0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x04, 0x7E, 0x0C,
+0x12, 0x2F, 0xD9, 0x90, 0x8B, 0x24, 0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F,
+0x00, 0x7E, 0x08, 0x12, 0x2F, 0xD9, 0x90, 0x8B, 0x28, 0x12, 0x43, 0x53, 0x90, 0x80, 0x85, 0x12,
+0x2A, 0x7F, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x2F, 0xD9, 0x90, 0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00,
+0x03, 0x2D, 0x95, 0xE4, 0xFD, 0xFF, 0x12, 0x34, 0x81, 0x90, 0x8B, 0x09, 0xE0, 0xB4, 0x01, 0x11,
+0x90, 0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00, 0x03, 0x2D, 0x95, 0xE4, 0xFD, 0x7F, 0x01, 0x12, 0x34,
+0x81, 0x22, 0x90, 0x02, 0x84, 0xEF, 0xF0, 0xA3, 0xEE, 0xF0, 0xA3, 0x74, 0x05, 0xF0, 0x22, 0xEF,
+0x8E, 0xF0, 0x12, 0x43, 0xBA, 0x50, 0x8D, 0x00, 0x40, 0x50, 0xB5, 0x00, 0x80, 0x50, 0xE0, 0x01,
+0x00, 0x50, 0xF4, 0x02, 0x00, 0x51, 0x0C, 0x04, 0x00, 0x00, 0x00, 0x51, 0x29, 0xED, 0x54, 0x3F,
+0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x00, 0x7F, 0x40, 0xEF, 0x2D, 0xFF, 0xEE, 0x3C, 0xFE,
+0xEF, 0x78, 0x06, 0xCE, 0xC3, 0x13, 0xCE, 0x13, 0xD8, 0xF9, 0x78, 0x06, 0xC3, 0x33, 0xCE, 0x33,
+0xCE, 0xD8, 0xF9, 0x80, 0x26, 0xED, 0x54, 0x7F, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x00,
+0x7F, 0x80, 0xEF, 0x2D, 0xFF, 0xEE, 0x3C, 0xFE, 0xEF, 0x78, 0x07, 0xCE, 0xC3, 0x13, 0xCE, 0x13,
+0xD8, 0xF9, 0x78, 0x07, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFD, 0xAC, 0x06, 0x80, 0x49,
+0xED, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x01, 0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0x7D,
+0x00, 0xFC, 0x80, 0x35, 0xEC, 0x54, 0x01, 0x4D, 0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x02,
+0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0xC3, 0x13, 0x7D, 0x00, 0x80, 0x1A, 0xEC, 0x54, 0x03, 0x4D,
+0x70, 0x04, 0xFE, 0xFF, 0x80, 0x04, 0x7E, 0x04, 0x7F, 0x00, 0xEF, 0x2D, 0xEE, 0x3C, 0x13, 0x13,
+0x54, 0x3F, 0x7D, 0x00, 0x25, 0xE0, 0x25, 0xE0, 0xFC, 0xAE, 0x04, 0xAF, 0x05, 0x22, 0x90, 0x01,
+0xE4, 0x74, 0x58, 0xF0, 0xA3, 0x74, 0x02, 0xF0, 0x22, 0xE4, 0x90, 0x8A, 0xCC, 0xF0, 0xA3, 0xF0,
+0x75, 0x8E, 0x02, 0x91, 0x81, 0x12, 0x67, 0x0E, 0x90, 0x8B, 0x07, 0xEF, 0xF0, 0x12, 0x67, 0x1B,
+0x90, 0x8B, 0x09, 0xEF, 0xF0, 0x12, 0x67, 0x27, 0x90, 0x8A, 0xF4, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0,
+0xE4, 0xF5, 0x55, 0xF5, 0x21, 0x12, 0x71, 0x16, 0x12, 0x44, 0x9E, 0x12, 0x32, 0x3D, 0x7F, 0x03,
+0x12, 0x76, 0xAB, 0x12, 0x7A, 0x5A, 0x12, 0x66, 0xD4, 0x12, 0x67, 0x3F, 0x12, 0x67, 0x54, 0x12,
+0x66, 0xF2, 0x12, 0x67, 0x0D, 0x90, 0x8A, 0xCE, 0xE5, 0xD9, 0xF0, 0x31, 0xD2, 0xC2, 0xAF, 0x90,
+0x00, 0x80, 0xE0, 0x44, 0x40, 0xF0, 0x51, 0x81, 0x75, 0xE8, 0x03, 0x43, 0xA8, 0x85, 0xD2, 0xAF,
+0x31, 0x2E, 0x90, 0x8A, 0xCC, 0xE0, 0x64, 0x01, 0xF0, 0x24, 0x39, 0x90, 0x01, 0xC4, 0xF0, 0x74,
+0x51, 0xA3, 0xF0, 0xE5, 0x55, 0x30, 0xE4, 0x09, 0xC2, 0xAF, 0x53, 0x55, 0xEF, 0xD2, 0xAF, 0xB1,
+0xCC, 0xE5, 0x55, 0x30, 0xE6, 0xDC, 0xC2, 0xAF, 0x53, 0x55, 0xBF, 0xD2, 0xAF, 0x12, 0x68, 0x42,
+0x80, 0xD0, 0x90, 0x01, 0x3C, 0x74, 0xFF, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x01, 0x34, 0xF0,
+0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xFD, 0x7F, 0x54, 0x31, 0xFB, 0x7D, 0xFF, 0x7F, 0x55, 0x31,
+0xFB, 0x7D, 0xFF, 0x7F, 0x56, 0x31, 0xFB, 0x7D, 0xFF, 0x7F, 0x57, 0xD3, 0x10, 0xAF, 0x01, 0xC3,
+0xC0, 0xD0, 0x8F, 0x82, 0x75, 0x83, 0x00, 0xED, 0xF0, 0x51, 0x81, 0xD0, 0xD0, 0x92, 0xAF, 0x22,
+0x90, 0x01, 0x30, 0xE4, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x01, 0x38, 0xF0, 0xA3,
+0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xFD, 0x7F, 0x50, 0x31, 0xFB, 0xE4, 0xFD, 0x7F, 0x51, 0x31, 0xFB,
+0xE4, 0xFD, 0x7F, 0x52, 0x31, 0xFB, 0xE4, 0xFD, 0x7F, 0x53, 0x80, 0xBF, 0xE5, 0x5E, 0x64, 0x01,
+0x70, 0x3B, 0x71, 0xC1, 0xBF, 0x01, 0x04, 0x7F, 0x01, 0x71, 0xB5, 0x90, 0x00, 0x46, 0xE0, 0x44,
+0x04, 0xFD, 0x7F, 0x46, 0x31, 0xFB, 0x90, 0x00, 0x44, 0xE0, 0x54, 0xFB, 0xFD, 0x7F, 0x44, 0x31,
+0xFB, 0x90, 0x00, 0x46, 0xE0, 0x54, 0xFB, 0xFD, 0x7F, 0x46, 0x31, 0xFB, 0x7F, 0x02, 0x71, 0xDD,
+0x8F, 0x62, 0x90, 0x01, 0xC9, 0xE5, 0x62, 0xF0, 0xB4, 0x01, 0x02, 0x71, 0x55, 0x22, 0xE0, 0x5F,
+0xF0, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x7F, 0x10, 0xDF, 0xFE, 0xD0, 0xD0, 0x92, 0xAF,
+0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xE0, 0xED, 0xF0, 0x90, 0x8A, 0xDF,
+0xEF, 0xF0, 0xD3, 0x94, 0x07, 0x50, 0x4E, 0xA3, 0xE0, 0x70, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0xFF,
+0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x47,
+0xE0, 0x5F, 0xF0, 0x80, 0x17, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80,
+0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xFF, 0x90, 0x00, 0x47, 0xE0, 0x4F, 0xF0, 0x51, 0x81, 0x90, 0x8A,
+0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF,
+0x90, 0x00, 0x46, 0x80, 0x59, 0x90, 0x8A, 0xDF, 0xE0, 0x24, 0xF8, 0xF0, 0xA3, 0xE0, 0x70, 0x1D,
+0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC,
+0xC4, 0x54, 0xF0, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0xE0, 0x5F, 0xF0, 0x80, 0x1A, 0x90, 0x8A, 0xDF,
+0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xC4, 0x54, 0xF0,
+0xFF, 0x90, 0x00, 0x43, 0xE0, 0x4F, 0xF0, 0x51, 0x81, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0x01,
+0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0x51, 0x7E,
+0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x00, 0x49, 0xE0, 0x90, 0x8B, 0x54, 0xF0, 0xE0, 0x54, 0x0F,
+0xF0, 0x44, 0xF0, 0xFD, 0x7F, 0x49, 0x31, 0xFB, 0x90, 0x8B, 0x54, 0xE0, 0x44, 0xB0, 0xFD, 0x7F,
+0x49, 0x21, 0xFB, 0x90, 0x8A, 0xDD, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x75, 0x5E, 0x01, 0x8E, 0x5F,
+0xF5, 0x60, 0xE4, 0xFD, 0x7F, 0x0B, 0x51, 0x91, 0xE4, 0xFD, 0x7F, 0x02, 0x51, 0x91, 0x71, 0xC1,
+0xE4, 0xFF, 0x71, 0xB5, 0xE4, 0xF5, 0x62, 0x90, 0x01, 0xC9, 0xE5, 0x62, 0xF0, 0x90, 0x8A, 0xDD,
+0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0xEC, 0xFB, 0x8D, 0x44, 0xE4, 0xF5, 0x45, 0x7D, 0x01, 0x7F, 0x60,
+0x7E, 0x01, 0x02, 0x35, 0xAB, 0x90, 0x01, 0xCA, 0xE5, 0x61, 0xF0, 0xEF, 0x60, 0x02, 0x71, 0x55,
+0x22, 0x7F, 0x0B, 0x71, 0xDD, 0xEF, 0x65, 0x61, 0x60, 0x10, 0xE5, 0x61, 0xB4, 0x01, 0x05, 0xE4,
+0xF5, 0x61, 0x80, 0x03, 0x75, 0x61, 0x01, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0xD3, 0x10, 0xAF,
+0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x57, 0xEF, 0xF0, 0xD3, 0x94, 0x07, 0x50, 0x43, 0xE0, 0xFF,
+0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x46,
+0x51, 0x7E, 0x90, 0x8B, 0x57, 0xE0, 0xFD, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x05, 0x08, 0x80, 0x05,
+0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x00, 0x44, 0xE0, 0xFB, 0xE4, 0xFE, 0xEF,
+0x5B, 0xA8, 0x05, 0x08, 0x80, 0x06, 0xCE, 0xA2, 0xE7, 0x13, 0xCE, 0x13, 0xD8, 0xF8, 0xFF, 0x80,
+0x4B, 0x90, 0x8B, 0x57, 0xE0, 0x24, 0xF8, 0xF0, 0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80,
+0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0xFF, 0x90, 0x00, 0x43, 0xE0, 0x5F, 0xF0, 0x51, 0x81, 0x90,
+0x8B, 0x57, 0xE0, 0xFD, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x05, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE,
+0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x00, 0x42, 0xE0, 0xFB, 0xE4, 0xFE, 0xEF, 0x5B, 0xA8, 0x05,
+0x08, 0x80, 0x06, 0xCE, 0xA2, 0xE7, 0x13, 0xCE, 0x13, 0xD8, 0xF8, 0xFF, 0xD0, 0xD0, 0x92, 0xAF,
+0x22, 0xE4, 0x90, 0x8B, 0x04, 0xF0, 0x90, 0x00, 0x80, 0xE0, 0x44, 0x80, 0xFD, 0x7F, 0x80, 0x21,
+0xFB, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x8B, 0x90, 0x8A,
+0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0xFA, 0xE5, 0xF0, 0x24, 0x00, 0xFF,
+0xE4, 0x3A, 0xFE, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0xEE, 0x8F, 0xF0, 0x12,
+0x43, 0x19, 0x12, 0x29, 0xD9, 0xFF, 0x60, 0x2C, 0xB5, 0x5E, 0x16, 0x90, 0x8A, 0xDA, 0x12, 0x43,
+0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0x65, 0x60, 0x70, 0x04, 0xE5, 0x5F, 0x65, 0xF0, 0x60,
+0x22, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0xC2, 0xFF, 0xAE, 0xF0,
+0x71, 0x73, 0x80, 0x0F, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0x65, 0x5E, 0x60,
+0x02, 0xB1, 0x08, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xE4, 0xF5, 0x5E, 0x7F, 0x60, 0x7E, 0x01, 0x8F,
+0x82, 0x8E, 0x83, 0xA3, 0xA3, 0xA3, 0xE4, 0xF0, 0x22, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x8B, 0xEF,
+0x12, 0x43, 0x94, 0x55, 0x5A, 0x01, 0x55, 0x51, 0x02, 0x55, 0x7E, 0x03, 0x55, 0x87, 0x05, 0x55,
+0x90, 0x06, 0x55, 0xCB, 0x07, 0x55, 0x98, 0x08, 0x55, 0xA1, 0x09, 0x55, 0xA9, 0x20, 0x55, 0xB2,
+0x2C, 0x55, 0x63, 0x2D, 0x55, 0x6C, 0x2E, 0x55, 0x75, 0x3B, 0x55, 0xBB, 0x4B, 0x00, 0x00, 0x55,
+0xC4, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x72, 0xFC, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B,
+0x02, 0x73, 0x02, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x73, 0x2F, 0x90, 0x8A, 0xD7, 0x12,
+0x43, 0x6B, 0x02, 0x73, 0x77, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x73, 0xB0, 0x90, 0x8A,
+0xD7, 0x12, 0x43, 0x6B, 0x02, 0x73, 0xC9, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x72, 0xD0,
+0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0xE1, 0x19, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x74,
+0x11, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x81, 0x91, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02,
+0x76, 0xEA, 0x90, 0x8A, 0xD7, 0x12, 0x43, 0x6B, 0x02, 0x78, 0xDE, 0x90, 0x8A, 0xD7, 0x12, 0x43,
+0x6B, 0x02, 0x7A, 0x48, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x01, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01,
+0xC3, 0xC0, 0xD0, 0x90, 0x01, 0xCC, 0xE0, 0x54, 0x0F, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF,
+0xE0, 0xFD, 0x70, 0x02, 0xE1, 0x14, 0x90, 0x8B, 0x51, 0xE0, 0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8,
+0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xEF, 0x5D, 0x70, 0x02,
+0xE1, 0x0D, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD0, 0x12, 0x43, 0x5F, 0xE0,
+0x90, 0x8A, 0xD0, 0xF0, 0x75, 0x1D, 0x01, 0x75, 0x1E, 0x8A, 0x75, 0x1F, 0xD0, 0x75, 0x20, 0x01,
+0x7B, 0x01, 0x7A, 0x8A, 0x79, 0xD1, 0x12, 0x5F, 0x57, 0x90, 0x8A, 0xD1, 0xE0, 0xFF, 0xC4, 0x13,
+0x13, 0x13, 0x54, 0x01, 0x90, 0x8B, 0x51, 0x30, 0xE0, 0x59, 0xE0, 0x75, 0xF0, 0x02, 0x90, 0x00,
+0x88, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD2, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x02,
+0x90, 0x00, 0x89, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD3, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75,
+0xF0, 0x04, 0x90, 0x01, 0xD1, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD4, 0xF0, 0x90, 0x8B, 0x51,
+0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD2, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD5, 0xF0, 0x90,
+0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD3, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD6,
+0xF0, 0x80, 0x33, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD1, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A,
+0xD2, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD2, 0x12, 0x43, 0x5F, 0xE0,
+0x90, 0x8A, 0xD3, 0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x75, 0xF0, 0x04, 0x90, 0x01, 0xD3, 0x12, 0x43,
+0x5F, 0xE0, 0x90, 0x8A, 0xD4, 0xF0, 0xEF, 0x54, 0x7F, 0xFF, 0x7B, 0x01, 0x7A, 0x8A, 0x79, 0xD2,
+0xB1, 0x19, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x90, 0x8B, 0x51, 0xE0, 0xFE, 0x74, 0x01, 0xA8, 0x06,
+0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0xF4, 0x5F, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8B, 0x51,
+0xE0, 0xFF, 0x74, 0x01, 0xA8, 0x07, 0x08, 0x80, 0x02, 0xC3, 0x33, 0xD8, 0xFC, 0x90, 0x01, 0xCC,
+0xF0, 0x90, 0x8B, 0x51, 0xE0, 0x04, 0xF0, 0xE0, 0x54, 0x03, 0xF0, 0xA1, 0xDD, 0x90, 0x01, 0xC6,
+0xE0, 0x44, 0x02, 0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90, 0x00, 0x04, 0x12, 0x42, 0x20, 0xFF,
+0x54, 0x1F, 0xFE, 0xEF, 0x54, 0x20, 0xC4, 0x13, 0x54, 0x07, 0xFD, 0xAF, 0x06, 0x90, 0x8A, 0xDA,
+0xEF, 0xF0, 0xA3, 0xED, 0xF0, 0xA3, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90,
+0x00, 0x03, 0x12, 0x42, 0x20, 0x54, 0xF0, 0xC4, 0x54, 0x0F, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x00,
+0x04, 0x12, 0x42, 0x20, 0x54, 0x40, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x90, 0x8A, 0xE0, 0xF0, 0x90,
+0x8A, 0xDA, 0xE0, 0xFF, 0x75, 0xF0, 0x09, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0xAD, 0x82, 0xAC,
+0x83, 0x90, 0x8A, 0xE1, 0xEC, 0xF0, 0xA3, 0xED, 0xF0, 0xEF, 0x75, 0xF0, 0x09, 0xA4, 0x24, 0x23,
+0xF9, 0x74, 0x87, 0x35, 0xF0, 0xFA, 0x7B, 0x01, 0xA3, 0x12, 0x43, 0x8B, 0x90, 0x8A, 0xDC, 0x12,
+0x43, 0x6B, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0x54, 0x0F, 0xFF, 0x90, 0x8A, 0xE3, 0x12, 0x43,
+0x6B, 0xEF, 0x12, 0x42, 0x4D, 0x90, 0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x02, 0x12, 0x42,
+0x20, 0xFF, 0x90, 0x8A, 0xE3, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0xEF, 0x12, 0x42, 0x5F, 0x90,
+0x8A, 0xDC, 0x12, 0x43, 0x6B, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0x90, 0x8A, 0xE1, 0xE0,
+0xFC, 0xA3, 0xE0, 0xFD, 0xF5, 0x82, 0x8C, 0x83, 0xEF, 0xF0, 0x12, 0x29, 0xD9, 0x8D, 0x82, 0x8C,
+0x83, 0xA3, 0xF0, 0x90, 0x8A, 0xDF, 0xE0, 0xFE, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0x24, 0xC1, 0xF5,
+0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xDB, 0xE0, 0xFE, 0x75, 0xF0, 0x09,
+0xEF, 0x90, 0x87, 0x29, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2A,
+0x12, 0x43, 0x5F, 0x74, 0x01, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xFE, 0x75, 0xF0, 0x09, 0xEF, 0x90,
+0x87, 0x2B, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0x8F, 0x0F, 0xEF, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82,
+0xE4, 0x34, 0x89, 0xAF, 0x82, 0xF5, 0x10, 0x8F, 0x11, 0xE5, 0x0F, 0x75, 0xF0, 0x02, 0xA4, 0x24,
+0x81, 0xF9, 0x74, 0x86, 0x35, 0xF0, 0x75, 0x12, 0x01, 0xF5, 0x13, 0x89, 0x14, 0x75, 0xF0, 0x09,
+0xE5, 0x0F, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0xAF, 0x82, 0x85, 0x83, 0x15, 0x8F, 0x16, 0xE5,
+0x0F, 0x75, 0xF0, 0x09, 0xA4, 0x24, 0x23, 0xF9, 0x74, 0x87, 0x35, 0xF0, 0x75, 0x17, 0x01, 0xF5,
+0x18, 0x89, 0x19, 0x74, 0xC1, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x12,
+0x43, 0x94, 0x58, 0xA7, 0x00, 0x58, 0xBC, 0x01, 0x58, 0xD1, 0x02, 0x58, 0xE6, 0x03, 0x59, 0x0F,
+0x04, 0x59, 0x24, 0x05, 0x59, 0x39, 0x06, 0x59, 0x5F, 0x0C, 0x59, 0x8C, 0x0D, 0x59, 0xB9, 0x0E,
+0x59, 0xE6, 0x0F, 0x00, 0x00, 0x5A, 0x1A, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4,
+0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74, 0x15, 0x80, 0x3C, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0x74, 0x10, 0x80,
+0x27, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0xF0,
+0xF0, 0xA3, 0x74, 0x05, 0x80, 0x12, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0x74, 0xF0, 0xF0, 0xA3, 0xE4, 0xF0, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5,
+0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0x74, 0x0F, 0xF0, 0xA3, 0x74, 0x8F, 0xF0, 0x41, 0x1A, 0xE5,
+0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0x74, 0x0F, 0xF0, 0xA3,
+0x74, 0xF5, 0x80, 0x27, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0x74, 0x0F, 0xF0, 0xA3, 0x74, 0xF0, 0x80, 0x12, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5,
+0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0x74, 0x0D, 0xF0, 0xE5, 0x0F, 0x25, 0xE0,
+0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x41, 0x1A, 0x90,
+0x04, 0x47, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x46, 0xE0,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x45, 0xE0,
+0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xF0, 0x90, 0x04, 0x44, 0x41, 0x11, 0x90, 0x04, 0x4B, 0xE0,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x4A, 0xE0, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x49, 0xE0, 0x85, 0x11, 0x82,
+0x85, 0x10, 0x83, 0xF0, 0x90, 0x04, 0x48, 0x80, 0x58, 0x90, 0x04, 0x4F, 0xE0, 0xAB, 0x12, 0xAA,
+0x13, 0xA9, 0x14, 0x12, 0x42, 0x4D, 0x90, 0x04, 0x4E, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0x90, 0x00, 0x01, 0x12, 0x42, 0x5F, 0x90, 0x04, 0x4D, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83,
+0xF0, 0x90, 0x04, 0x4C, 0x80, 0x2B, 0x90, 0x04, 0x53, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0x12, 0x42, 0x4D, 0x90, 0x04, 0x52, 0xE0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x01,
+0x12, 0x42, 0x5F, 0x90, 0x04, 0x51, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xF0, 0x90, 0x04,
+0x50, 0xE0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xA3, 0xF0, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14,
+0xC0, 0x03, 0xC0, 0x02, 0xC0, 0x01, 0x12, 0x29, 0xD9, 0xFF, 0xAB, 0x17, 0xAA, 0x18, 0xA9, 0x19,
+0x12, 0x29, 0xD9, 0x5F, 0xD0, 0x01, 0xD0, 0x02, 0xD0, 0x03, 0x12, 0x42, 0x4D, 0xAB, 0x12, 0xE5,
+0x14, 0x24, 0x01, 0xF9, 0xE4, 0x35, 0x13, 0xFA, 0xC0, 0x03, 0xC0, 0x02, 0xC0, 0x01, 0x12, 0x29,
+0xD9, 0xFF, 0xAB, 0x17, 0xAA, 0x18, 0xA9, 0x19, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x5F, 0xD0,
+0x01, 0xD0, 0x02, 0xD0, 0x03, 0x12, 0x42, 0x4D, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xC0, 0x83,
+0xC0, 0x82, 0xE0, 0xFF, 0x85, 0x16, 0x82, 0x85, 0x15, 0x83, 0xE0, 0xFE, 0xEF, 0x5E, 0xD0, 0x82,
+0xD0, 0x83, 0xF0, 0x85, 0x11, 0x82, 0x85, 0x10, 0x83, 0xA3, 0xC0, 0x83, 0xC0, 0x82, 0xE0, 0xFF,
+0x85, 0x16, 0x82, 0x85, 0x15, 0x83, 0xA3, 0xE0, 0xFE, 0xEF, 0x5E, 0xD0, 0x82, 0xD0, 0x83, 0xF0,
+0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFE, 0xA3,
+0xE0, 0x4E, 0x60, 0x4B, 0x90, 0x8A, 0xE6, 0x74, 0x0B, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3,
+0x94, 0x00, 0x50, 0x02, 0x61, 0x5F, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3,
+0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4,
+0x34, 0x86, 0xF5, 0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x0A, 0x90, 0x8A, 0xE6,
+0xE0, 0x24, 0x10, 0xA3, 0xF0, 0x80, 0x68, 0x90, 0x8A, 0xE6, 0xE0, 0x14, 0xF0, 0x80, 0xBB, 0xE5,
+0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0,
+0x4E, 0x60, 0x47, 0x90, 0x8A, 0xE6, 0x74, 0x0F, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94,
+0x00, 0x40, 0x3C, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33,
+0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x08, 0x90, 0x8A, 0xE6, 0xE0, 0xA3, 0xF0,
+0x80, 0x0D, 0x90, 0x8A, 0xE6, 0xE0, 0x14, 0xF0, 0x80, 0xBF, 0xE4, 0x90, 0x8A, 0xE7, 0xF0, 0xE5,
+0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0,
+0x4E, 0x60, 0x46, 0xE4, 0x90, 0x8A, 0xE6, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x10,
+0x40, 0x02, 0x81, 0x18, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE,
+0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89,
+0xF5, 0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x06, 0x90, 0x8A, 0xE6, 0xE0, 0x80,
+0x63, 0x90, 0x8A, 0xE6, 0xE0, 0x04, 0xF0, 0x80, 0xBF, 0xE5, 0x0F, 0x25, 0xE0, 0x24, 0x81, 0xF5,
+0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFE, 0xA3, 0xE0, 0x4E, 0x60, 0x46, 0xE4, 0x90, 0x8A,
+0xE6, 0xF0, 0x90, 0x8A, 0xE6, 0xE0, 0xFF, 0xC3, 0x94, 0x0C, 0x50, 0x3C, 0x74, 0x01, 0x7E, 0x00,
+0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0xE5, 0x0F, 0x25,
+0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F,
+0x4E, 0x60, 0x08, 0x90, 0x8A, 0xE6, 0xE0, 0x24, 0x10, 0x80, 0x09, 0x90, 0x8A, 0xE6, 0xE0, 0x04,
+0xF0, 0x80, 0xBF, 0xE4, 0x90, 0x8A, 0xE8, 0xF0, 0x90, 0x8A, 0xE7, 0xE0, 0xFF, 0x75, 0xF0, 0x09,
+0xE5, 0x0F, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xEF, 0xF0, 0x90, 0x8A, 0xE8, 0xE0, 0xFE, 0x75,
+0xF0, 0x09, 0xE5, 0x0F, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0xE5, 0x0F, 0xC3, 0x94,
+0x20, 0x50, 0x32, 0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0xD3,
+0x9F, 0x40, 0x02, 0x80, 0x18, 0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83,
+0xE0, 0xC3, 0x9E, 0x50, 0x08, 0x90, 0x8A, 0xE8, 0xE0, 0xA3, 0xF0, 0x80, 0x08, 0x90, 0x8A, 0xE7,
+0xE0, 0x90, 0x8A, 0xE9, 0xF0, 0x90, 0x8A, 0xE9, 0xE0, 0xFD, 0xAF, 0x0F, 0x91, 0xC1, 0x90, 0x8A,
+0xE9, 0xE0, 0xFF, 0x74, 0x84, 0x25, 0x0F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0,
+0x90, 0x8A, 0xE7, 0xE0, 0xFF, 0xD3, 0x94, 0x13, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x03, 0xF0,
+0x22, 0xEF, 0xD3, 0x94, 0x0B, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x02, 0xF0, 0x22, 0xEF, 0xD3,
+0x94, 0x03, 0x40, 0x07, 0x90, 0x87, 0x22, 0x74, 0x01, 0xF0, 0x22, 0xE4, 0x90, 0x87, 0x22, 0xF0,
+0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x74, 0x84, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x04,
+0xF5, 0x83, 0xED, 0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xAC, 0x07, 0xED, 0x54, 0x1F, 0x90, 0x8A,
+0xC7, 0xF0, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xC5,
+0xF0, 0x90, 0x8A, 0xC8, 0x74, 0x01, 0xF0, 0xEB, 0xC3, 0x94, 0x01, 0x40, 0x02, 0x80, 0x37, 0x90,
+0x8A, 0xC5, 0xE0, 0x25, 0x0D, 0xFF, 0xA3, 0xF0, 0xA3, 0xE0, 0x90, 0x41, 0x9E, 0x93, 0xFE, 0xEF,
+0xD3, 0x9E, 0x40, 0x10, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE4, 0xF0,
+0xAF, 0x04, 0x80, 0x9D, 0x90, 0x8A, 0xC6, 0xE0, 0xFF, 0x74, 0x01, 0x2C, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xEF, 0xF0, 0x22, 0xAD, 0x07, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12,
+0x43, 0x5F, 0xE0, 0xFF, 0x90, 0x8A, 0xCA, 0xF0, 0x74, 0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A,
+0xF5, 0x83, 0xE0, 0x54, 0x1F, 0x90, 0x8A, 0xC9, 0xF0, 0xD3, 0x9F, 0x40, 0x06, 0xA3, 0xE0, 0x90,
+0x8A, 0xC9, 0xF0, 0x90, 0x8A, 0xC9, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34,
+0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13,
+0xFE, 0xEF, 0x13, 0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xAF, 0x05, 0x90, 0x8A, 0xC9, 0xE0, 0xFD, 0x91, 0xC1, 0x90, 0x8A,
+0xC9, 0xE0, 0xFF, 0x22, 0xAC, 0x07, 0x74, 0x84, 0x2C, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83,
+0xE0, 0x54, 0x7F, 0x90, 0x8A, 0xDE, 0xF0, 0xE0, 0x54, 0x1F, 0xFF, 0x90, 0x8A, 0xE1, 0xF0, 0x75,
+0xF0, 0x09, 0xEC, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xE3, 0xF0, 0x75, 0xF0,
+0x09, 0xEC, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0xFE, 0x90, 0x8A, 0xE4, 0xF0, 0xEC, 0x25,
+0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A,
+0xE5, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xEC, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34, 0x86,
+0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE7, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xEF, 0xD3,
+0x9E, 0x40, 0x0C, 0x90, 0x8A, 0xE4, 0xE0, 0x90, 0x8A, 0xE1, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0xED,
+0x70, 0x02, 0xE1, 0x06, 0x90, 0x8A, 0xE2, 0xED, 0xF0, 0x90, 0x8A, 0xDE, 0xE0, 0x30, 0xE6, 0x0E,
+0x90, 0x8A, 0xE1, 0xE0, 0x90, 0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0x14, 0xF0, 0x90, 0x8A,
+0xE2, 0xE0, 0x70, 0x02, 0xE1, 0x06, 0x90, 0x8A, 0xE1, 0xE0, 0xFF, 0xD3, 0x94, 0x00, 0x50, 0x02,
+0xE1, 0x06, 0xE4, 0x90, 0x8A, 0xE0, 0xF0, 0xEF, 0x14, 0x90, 0x8A, 0xDF, 0xF0, 0x90, 0x8A, 0xE3,
+0xE0, 0xFD, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0xD3, 0x9D, 0x40, 0x6F, 0xEF, 0x94, 0x10, 0x40, 0x21,
+0xEF, 0x24, 0xF0, 0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE,
+0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE7, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x70,
+0x27, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x50, 0x37, 0x74, 0x01, 0x7E, 0x00, 0xA8,
+0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE5, 0xE0,
+0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x1A, 0x90, 0x8A, 0xDF, 0xE0, 0x90, 0x8A, 0xDE, 0xF0,
+0x90, 0x8A, 0xE0, 0xE0, 0x04, 0xF0, 0x90, 0x8A, 0xE2, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0, 0x6F,
+0x60, 0x08, 0x90, 0x8A, 0xDF, 0xE0, 0x14, 0xF0, 0x80, 0x83, 0x90, 0x8A, 0xE2, 0xE0, 0xFF, 0x90,
+0x8A, 0xE0, 0xE0, 0xC3, 0x9F, 0x50, 0x0F, 0x90, 0x8A, 0xDF, 0xE0, 0xB5, 0x05, 0x08, 0x90, 0x8A,
+0xE3, 0xE0, 0x90, 0x8A, 0xDE, 0xF0, 0x90, 0x8A, 0xDE, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5,
+0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0,
+0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93,
+0x3A, 0xC3, 0x13, 0xFE, 0xEF, 0x13, 0xFF, 0xEC, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xAF, 0x04, 0x90, 0x8A, 0xDE, 0xE0, 0xFD, 0x91,
+0xC1, 0x90, 0x8A, 0xDE, 0xE0, 0xFF, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x8B, 0x1A,
+0x8A, 0x1B, 0x89, 0x1C, 0x90, 0x8B, 0x3F, 0x12, 0x43, 0x8B, 0xAB, 0x1D, 0xAA, 0x1E, 0xA9, 0x1F,
+0x90, 0x8B, 0x42, 0x12, 0x43, 0x8B, 0xAF, 0x20, 0x15, 0x20, 0xEF, 0x60, 0x1E, 0x90, 0x8B, 0x42,
+0xE4, 0x75, 0xF0, 0x01, 0x12, 0x43, 0x74, 0x12, 0x29, 0xD9, 0xFF, 0x90, 0x8B, 0x3F, 0xE4, 0x75,
+0xF0, 0x01, 0x12, 0x43, 0x74, 0xEF, 0x12, 0x42, 0x4D, 0x80, 0xDB, 0xAB, 0x1A, 0xAA, 0x1B, 0xA9,
+0x1C, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x01, 0xC4,
+0x74, 0xA6, 0xF0, 0x74, 0x5F, 0xA3, 0xF0, 0x90, 0x04, 0x1D, 0xE0, 0x60, 0x1A, 0x90, 0x05, 0x22,
+0xE0, 0x54, 0x90, 0x60, 0x07, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x40, 0xF0, 0x90, 0x01, 0xC7, 0xE0,
+0x30, 0xE1, 0xE4, 0x7F, 0x00, 0x80, 0x02, 0x7F, 0x01, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0xFB, 0xFA, 0xEF, 0x30, 0xE0, 0x02, 0x7B, 0x80, 0xEF, 0xC3,
+0x13, 0x90, 0xFD, 0x10, 0xF0, 0x90, 0x04, 0x25, 0xEF, 0xF0, 0xED, 0x60, 0x1E, 0xAF, 0x03, 0x74,
+0x0F, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x80, 0xF0, 0x74, 0x10, 0x2F,
+0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x44, 0x80, 0xF0, 0xAF, 0x03, 0x74, 0x08, 0x2F,
+0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x09, 0x2F, 0xF5, 0x82, 0xE4, 0x34,
+0xFC, 0xF5, 0x83, 0xE0, 0x54, 0xF0, 0xF0, 0x74, 0x21, 0x2B, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5,
+0x83, 0xE0, 0x54, 0xF7, 0xF0, 0xAE, 0x02, 0xAF, 0x03, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0xFD, 0xFC, 0xEF, 0x30, 0xE0, 0x02, 0x7D, 0x80, 0xEF, 0xC3,
+0x13, 0x90, 0xFD, 0x10, 0xF0, 0xAE, 0x04, 0xAF, 0x05, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x5F,
+0xA6, 0xBF, 0x01, 0x10, 0x90, 0x02, 0x09, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5F, 0xDE, 0x90, 0x04,
+0x1F, 0x74, 0x20, 0xF0, 0x22, 0x90, 0x01, 0x02, 0xE0, 0x54, 0x03, 0xFF, 0xE0, 0x54, 0x0C, 0x13,
+0x13, 0x54, 0x3F, 0xFE, 0xEF, 0x64, 0x01, 0x60, 0x04, 0xEF, 0xB4, 0x03, 0x0E, 0x90, 0x8A, 0xC5,
+0x74, 0x01, 0xF0, 0xA3, 0x74, 0x37, 0xF0, 0x79, 0x01, 0x80, 0x18, 0xEE, 0x64, 0x01, 0x60, 0x07,
+0xAF, 0x06, 0xEE, 0x64, 0x03, 0x70, 0x3B, 0x90, 0x8A, 0xC5, 0x74, 0x01, 0xF0, 0xA3, 0x74, 0x3D,
+0xF0, 0x79, 0x40, 0x90, 0x8A, 0xC5, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xF5, 0x82, 0x8E, 0x83, 0xE0,
+0x59, 0x60, 0x08, 0xE9, 0xF0, 0xE4, 0x90, 0x8A, 0xF6, 0xF0, 0x22, 0x90, 0x8A, 0xF6, 0xE0, 0x04,
+0xF0, 0xE0, 0xC3, 0x94, 0x0A, 0x40, 0x0B, 0xE4, 0xF0, 0x90, 0x04, 0x19, 0xE0, 0x30, 0xE0, 0x02,
+0x11, 0x6E, 0x22, 0xC0, 0xE0, 0xC0, 0xF0, 0xC0, 0x83, 0xC0, 0x82, 0xC0, 0xD0, 0x75, 0xD0, 0x00,
+0xC0, 0x00, 0xC0, 0x01, 0xC0, 0x02, 0xC0, 0x03, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07,
+0x90, 0x01, 0xC4, 0x74, 0xF3, 0xF0, 0x74, 0x60, 0xA3, 0xF0, 0x90, 0x01, 0x34, 0xE0, 0x55, 0x28,
+0xF5, 0x2C, 0xA3, 0xE0, 0x55, 0x29, 0xF5, 0x2D, 0xA3, 0xE0, 0x55, 0x2A, 0xF5, 0x2E, 0xA3, 0xE0,
+0x55, 0x2B, 0xF5, 0x2F, 0xE5, 0x2C, 0x20, 0xE0, 0x02, 0x41, 0x8A, 0x90, 0x01, 0x34, 0x74, 0x01,
+0xF0, 0x85, 0xD1, 0x4D, 0x85, 0xD2, 0x4E, 0x85, 0xD3, 0x4F, 0x85, 0xD4, 0x50, 0x85, 0xD5, 0x51,
+0x85, 0xD6, 0x52, 0x85, 0xD7, 0x53, 0x85, 0xD9, 0x54, 0xE5, 0x54, 0x54, 0x40, 0xC3, 0x13, 0xFF,
+0xE5, 0x53, 0x54, 0x20, 0x6F, 0x70, 0x02, 0x41, 0x47, 0xE5, 0x54, 0x30, 0xE5, 0x02, 0x41, 0x47,
+0xE5, 0x52, 0x54, 0x1F, 0xF5, 0x08, 0xE5, 0x4D, 0x54, 0x3F, 0xF5, 0x09, 0xE5, 0x51, 0x54, 0x1F,
+0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0xE3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F,
+0xF0, 0x12, 0x42, 0x81, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0xC0, 0xF5,
+0x82, 0xE4, 0x34, 0x85, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5, 0x09, 0xD3, 0x94,
+0x04, 0x40, 0x03, 0x75, 0x09, 0x04, 0x75, 0xF0, 0x0A, 0xE5, 0x08, 0x90, 0x84, 0x00, 0x12, 0x43,
+0x5F, 0x75, 0xF0, 0x02, 0xE5, 0x09, 0x12, 0x43, 0x5F, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0xE5, 0x53,
+0x54, 0x1F, 0x2F, 0xFF, 0xE4, 0x3E, 0xFE, 0x75, 0xF0, 0x0A, 0xE5, 0x08, 0x90, 0x84, 0x00, 0x12,
+0x43, 0x5F, 0x75, 0xF0, 0x02, 0xE5, 0x09, 0x12, 0x43, 0x5F, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0xE5,
+0x54, 0x20, 0xE6, 0x24, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25, 0xE0, 0x24, 0x63, 0xF5,
+0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xE5, 0x4F, 0x30, 0xE7,
+0x36, 0xAF, 0x08, 0x12, 0x5D, 0x36, 0x80, 0x2F, 0xE5, 0x53, 0x54, 0x1F, 0xFF, 0xE5, 0x08, 0x25,
+0xE0, 0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE4, 0x8F, 0xF0, 0x12, 0x42, 0x81,
+0xE5, 0x4F, 0x30, 0xE7, 0x12, 0xE5, 0x4F, 0x54, 0x7F, 0xFD, 0xE5, 0x53, 0x54, 0x1F, 0xF5, 0x0D,
+0xAB, 0x09, 0xAF, 0x08, 0x12, 0x5C, 0xD9, 0xE5, 0x24, 0x14, 0x24, 0xFD, 0x50, 0x02, 0x80, 0x3A,
+0x90, 0x8B, 0x1A, 0xE0, 0x60, 0x2B, 0x90, 0x01, 0x5B, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x04,
+0xF0, 0x12, 0x4B, 0x34, 0xEF, 0x64, 0x01, 0x70, 0x21, 0x90, 0x8B, 0x3D, 0x12, 0x4B, 0x5C, 0x90,
+0x01, 0x5B, 0x74, 0x05, 0xF0, 0x90, 0x06, 0x92, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x18, 0xF0, 0x80,
+0x09, 0x12, 0x4B, 0x34, 0xBF, 0x01, 0x03, 0x12, 0x4A, 0xFC, 0xE5, 0x2C, 0x30, 0xE1, 0x20, 0x90,
+0x01, 0x34, 0x74, 0x02, 0xF0, 0x85, 0xD1, 0x56, 0x85, 0xD2, 0x57, 0x85, 0xD3, 0x58, 0x85, 0xD4,
+0x59, 0x85, 0xD5, 0x5A, 0x85, 0xD6, 0x5B, 0x85, 0xD7, 0x5C, 0x85, 0xD9, 0x5D, 0xB1, 0x5F, 0xE5,
+0x2C, 0x30, 0xE3, 0x06, 0x90, 0x01, 0x34, 0x74, 0x08, 0xF0, 0xE5, 0x2C, 0x30, 0xE4, 0x09, 0x90,
+0x01, 0x34, 0x74, 0x10, 0xF0, 0x43, 0x55, 0x10, 0xE5, 0x2C, 0x30, 0xE5, 0x26, 0x90, 0x01, 0xCF,
+0xE0, 0x30, 0xE5, 0x1F, 0xE0, 0x54, 0xDF, 0xF0, 0x90, 0x01, 0x34, 0x74, 0x20, 0xF0, 0x75, 0xA8,
+0x00, 0x75, 0xE8, 0x00, 0x12, 0x52, 0x10, 0x90, 0x00, 0x03, 0xE0, 0x54, 0xFB, 0xF0, 0x12, 0x52,
+0x81, 0x80, 0xFE, 0xE5, 0x2C, 0x30, 0xE6, 0x2D, 0x90, 0x01, 0x34, 0x74, 0x40, 0xF0, 0x90, 0x8B,
+0x32, 0xE0, 0x30, 0xE0, 0x0C, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x05, 0x90, 0x8B, 0x34, 0xE4,
+0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x0C, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x05,
+0x90, 0x8B, 0x2E, 0xE4, 0xF0, 0xE5, 0x2E, 0x20, 0xE0, 0x02, 0x61, 0xE7, 0x90, 0x8B, 0x08, 0x74,
+0x01, 0xF0, 0x90, 0x01, 0x36, 0xF0, 0x90, 0x8B, 0x06, 0xE0, 0x60, 0x0F, 0xE4, 0xF0, 0x90, 0x05,
+0x53, 0xE0, 0x44, 0x02, 0xF0, 0x90, 0x05, 0xFC, 0xE0, 0x04, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0x30,
+0xE0, 0x2F, 0x90, 0x8B, 0x37, 0x74, 0x01, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xFF, 0x13, 0x13, 0x54,
+0x3F, 0x30, 0xE0, 0x1D, 0x90, 0x8B, 0x34, 0x74, 0x01, 0xF0, 0xB1, 0x39, 0x90, 0x8B, 0x33, 0xE0,
+0x64, 0x03, 0x60, 0x0D, 0x7F, 0x01, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x05, 0x7F, 0x04, 0x12, 0x4E,
+0x89, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0x30, 0xE0, 0x56, 0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x4F,
+0x90, 0x8B, 0x2E, 0x74, 0x01, 0xF0, 0xB1, 0x39, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x3F,
+0xB1, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0x64, 0x06, 0x60,
+0x2E, 0xEF, 0xB4, 0x04, 0x02, 0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x04, 0xE4, 0xFF,
+0x80, 0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x02, 0x05, 0x7F, 0x01, 0x12, 0x7B, 0x49, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x12,
+0x43, 0xE7, 0x90, 0x8B, 0x08, 0xE4, 0xF0, 0xE5, 0x2E, 0x30, 0xE1, 0x2F, 0x90, 0x01, 0x36, 0x74,
+0x02, 0xF0, 0x43, 0x55, 0x40, 0x11, 0x85, 0x90, 0x8B, 0x37, 0xE0, 0xB4, 0x01, 0x09, 0x90, 0x05,
+0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x37, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x0D, 0xE4, 0xFF,
+0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0xE5, 0x2E, 0x30, 0xE2, 0x16,
+0x90, 0x01, 0x36, 0x74, 0x04, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x06, 0xA3, 0xE0, 0x64,
+0x06, 0x60, 0x03, 0x12, 0x46, 0xB3, 0xE5, 0x2E, 0x30, 0xE3, 0x38, 0x90, 0x01, 0x36, 0x74, 0x08,
+0xF0, 0xE5, 0x21, 0x64, 0x01, 0x70, 0x2C, 0xE5, 0x24, 0x60, 0x28, 0x90, 0x01, 0x57, 0xE4, 0xF0,
+0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x90, 0x8B, 0x3D, 0xE4, 0xF0, 0x90, 0x8B, 0x11, 0xE0, 0x90,
+0x8B, 0x3E, 0xF0, 0xE4, 0xFB, 0xFD, 0x7F, 0x54, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x57,
+0x74, 0x05, 0xF0, 0xE5, 0x2E, 0x30, 0xE4, 0x2B, 0x90, 0x01, 0x36, 0x74, 0x10, 0xF0, 0xE5, 0x21,
+0xB4, 0x01, 0x20, 0xE5, 0x24, 0x60, 0x1C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74,
+0x02, 0xF0, 0x90, 0x8B, 0x1B, 0xE4, 0xF0, 0x53, 0x25, 0xFD, 0xE5, 0x25, 0x54, 0x07, 0x70, 0x03,
+0x12, 0x4A, 0xFC, 0xE5, 0x2E, 0x30, 0xE5, 0x1F, 0x90, 0x01, 0x36, 0x74, 0x20, 0xF0, 0xE5, 0x21,
+0xB4, 0x01, 0x14, 0xE5, 0x24, 0x60, 0x10, 0x90, 0x8B, 0x1A, 0xE0, 0x64, 0x02, 0x60, 0x05, 0x12,
+0x4A, 0x97, 0x80, 0x03, 0x12, 0x49, 0x49, 0xE5, 0x2E, 0x30, 0xE6, 0x1B, 0x90, 0x01, 0x36, 0x74,
+0x40, 0xF0, 0xE5, 0x21, 0xB4, 0x01, 0x10, 0xE5, 0x24, 0x60, 0x0C, 0x53, 0x25, 0xFE, 0xE5, 0x25,
+0x54, 0x07, 0x70, 0x03, 0x12, 0x4A, 0xFC, 0xE5, 0x2F, 0x30, 0xE1, 0x27, 0x90, 0x01, 0x37, 0x74,
+0x02, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0x30, 0xE0, 0x17, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60,
+0x07, 0x12, 0x48, 0xFE, 0xD1, 0x20, 0x80, 0x0B, 0x90, 0x8B, 0x31, 0x74, 0x01, 0xF0, 0x80, 0x03,
+0x12, 0x48, 0xFE, 0x74, 0xF3, 0x04, 0x90, 0x01, 0xC4, 0xF0, 0x74, 0x60, 0xA3, 0xF0, 0xD0, 0x07,
+0xD0, 0x06, 0xD0, 0x05, 0xD0, 0x04, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01, 0xD0, 0x00, 0xD0, 0xD0,
+0xD0, 0x82, 0xD0, 0x83, 0xD0, 0xF0, 0xD0, 0xE0, 0x32, 0xE4, 0x90, 0x8B, 0x3D, 0xF0, 0x90, 0x05,
+0x58, 0xE0, 0xFF, 0x90, 0x8B, 0x38, 0xE0, 0x2F, 0x24, 0xFE, 0x90, 0x8B, 0x3E, 0xF0, 0xE4, 0xFB,
+0xFD, 0x7F, 0x50, 0x7E, 0x01, 0x12, 0x4B, 0x6C, 0x90, 0x01, 0x53, 0x74, 0x05, 0xF0, 0x22, 0x90,
+0x8A, 0xC5, 0xE0, 0x54, 0xF0, 0x44, 0x03, 0xF0, 0x54, 0x0F, 0x44, 0x80, 0xF0, 0x7B, 0x00, 0x7A,
+0x00, 0x79, 0x56, 0x90, 0x8B, 0x48, 0x12, 0x43, 0x8B, 0x0B, 0x7A, 0x8A, 0x79, 0xC5, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x8B, 0x90, 0x8B, 0x53, 0xE0, 0xFF,
+0x04, 0xF0, 0x90, 0x00, 0x01, 0xEF, 0x12, 0x42, 0x5F, 0x7F, 0xAF, 0x7E, 0x01, 0xD1, 0x8A, 0xEF,
+0x60, 0x49, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x6B, 0x8B, 0x1D, 0x8A, 0x1E, 0x89, 0x1F, 0x75, 0x20,
+0x02, 0x7B, 0x01, 0x7A, 0x01, 0x79, 0xA0, 0x12, 0x5F, 0x57, 0x90, 0x8B, 0x48, 0x12, 0x43, 0x6B,
+0x8B, 0x1D, 0x8A, 0x1E, 0x89, 0x1F, 0x90, 0x8B, 0x45, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xFF,
+0xC4, 0x54, 0x0F, 0xF5, 0x20, 0x7B, 0x01, 0x7A, 0x01, 0x79, 0xA2, 0x12, 0x5F, 0x57, 0x90, 0x01,
+0xAF, 0x74, 0xFF, 0xF0, 0x90, 0x01, 0xCB, 0xE0, 0x64, 0x80, 0xF0, 0xD0, 0xD0, 0x92, 0xAF, 0x22,
+0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0, 0x0B, 0xA3, 0xE0, 0x64,
+0x06, 0x60, 0x05, 0x7F, 0x06, 0x12, 0x7B, 0x49, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x02,
+0xD1, 0x13, 0x22, 0x90, 0x8B, 0x31, 0xE0, 0xB4, 0x01, 0x05, 0xE4, 0xF0, 0x12, 0x48, 0xFE, 0x22,
+0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x06, 0x60, 0x3C, 0xE5, 0x22, 0x54, 0x0F, 0x14, 0x60, 0x2E, 0x14,
+0x60, 0x1E, 0x24, 0xFE, 0x60, 0x0E, 0x24, 0xF8, 0x70, 0x2A, 0xE4, 0x90, 0x8B, 0x2D, 0xF0, 0x90,
+0x05, 0x22, 0xF0, 0x22, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x22,
+0x90, 0x8B, 0x2D, 0x74, 0x03, 0xF0, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x22, 0x90, 0x01, 0xC6,
+0xE0, 0x44, 0x08, 0xF0, 0x22, 0xAE, 0x07, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF, 0x60, 0x18, 0x90,
+0x8B, 0x2C, 0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x20, 0xE0, 0x0C, 0xAF, 0x06, 0x7D, 0x01, 0x12,
+0x45, 0xA2, 0xD1, 0x20, 0x7F, 0x01, 0x22, 0x7F, 0x00, 0x22, 0x90, 0x8B, 0x4B, 0xEE, 0xF0, 0xA3,
+0xEF, 0xF0, 0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0x90, 0x8B, 0x4B, 0xE0, 0xFE, 0xA3, 0xE0, 0xF5, 0x82,
+0x8E, 0x83, 0xE0, 0x60, 0x2C, 0xC3, 0x90, 0x8B, 0x4E, 0xE0, 0x94, 0xE8, 0x90, 0x8B, 0x4D, 0xE0,
+0x94, 0x03, 0x40, 0x0A, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x10, 0xF0, 0x7F, 0x00, 0x22, 0x90, 0x8B,
+0x4D, 0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x7F, 0x0A, 0x7E, 0x00, 0x12, 0x37, 0x54, 0x80,
+0xC6, 0x7F, 0x01, 0x22, 0x75, 0x28, 0x33, 0xE4, 0xF5, 0x29, 0x75, 0x2A, 0x07, 0xF5, 0x2B, 0x90,
+0x01, 0x30, 0xE5, 0x28, 0xF0, 0xA3, 0xE5, 0x29, 0xF0, 0xA3, 0xE5, 0x2A, 0xF0, 0xA3, 0xE5, 0x2B,
+0xF0, 0x22, 0x75, 0x30, 0x1F, 0x75, 0x31, 0x01, 0x43, 0x31, 0x10, 0xE4, 0xF5, 0x32, 0x90, 0x01,
+0x38, 0xE5, 0x30, 0xF0, 0xA3, 0xE5, 0x31, 0xF0, 0xA3, 0xE5, 0x32, 0xF0, 0x22, 0x22, 0x90, 0x00,
+0x02, 0xE0, 0x54, 0xE0, 0x7F, 0x01, 0x60, 0x02, 0x7F, 0x00, 0x22, 0x90, 0x00, 0xF3, 0xE0, 0x7F,
+0x00, 0x30, 0xE3, 0x02, 0x7F, 0x01, 0x22, 0x90, 0x8B, 0x09, 0xE0, 0xB4, 0x01, 0x0C, 0x90, 0x00,
+0xF2, 0xE0, 0x30, 0xE7, 0x05, 0x7E, 0xFD, 0x7F, 0x33, 0x22, 0x7E, 0xFD, 0x7F, 0x2F, 0x22, 0x90,
+0x00, 0xF3, 0xE0, 0x30, 0xE2, 0x0D, 0x90, 0x05, 0x41, 0x74, 0x10, 0xF0, 0x90, 0x05, 0x5A, 0xF0,
+0xA3, 0xE4, 0xF0, 0x22, 0x90, 0x01, 0x64, 0x74, 0xA0, 0xF0, 0x22, 0xC0, 0xE0, 0xC0, 0x83, 0xC0,
+0x82, 0xC0, 0xD0, 0x75, 0xD0, 0x00, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x7D, 0x5B, 0x90, 0x01,
+0xC4, 0xED, 0xF0, 0x74, 0x67, 0xFF, 0xA3, 0xF0, 0x53, 0x91, 0xEF, 0x90, 0x00, 0x51, 0xE0, 0xFE,
+0x90, 0x00, 0x55, 0xE0, 0x5E, 0xF5, 0x3D, 0x90, 0x00, 0x52, 0xE0, 0xFE, 0x90, 0x00, 0x56, 0xE0,
+0x5E, 0xF5, 0x3E, 0xE5, 0x3D, 0x30, 0xE4, 0x06, 0x90, 0x00, 0x55, 0x74, 0x10, 0xF0, 0xE5, 0x3D,
+0x30, 0xE5, 0x06, 0x90, 0x00, 0x55, 0x74, 0x20, 0xF0, 0xE5, 0x3D, 0x30, 0xE6, 0x06, 0x90, 0x00,
+0x55, 0x74, 0x40, 0xF0, 0xE5, 0x3D, 0x30, 0xE7, 0x06, 0x90, 0x00, 0x55, 0x74, 0x80, 0xF0, 0xE5,
+0x3E, 0x30, 0xE0, 0x06, 0x90, 0x00, 0x56, 0x74, 0x01, 0xF0, 0xE5, 0x3E, 0x30, 0xE1, 0x06, 0x90,
+0x00, 0x56, 0x74, 0x02, 0xF0, 0xE5, 0x3E, 0x30, 0xE2, 0x06, 0x90, 0x00, 0x56, 0x74, 0x04, 0xF0,
+0xE5, 0x3E, 0x30, 0xE3, 0x06, 0x90, 0x00, 0x56, 0x74, 0x08, 0xF0, 0x90, 0x01, 0xC4, 0xED, 0xF0,
+0xA3, 0xEF, 0xF0, 0xD0, 0x07, 0xD0, 0x06, 0xD0, 0x05, 0xD0, 0xD0, 0xD0, 0x82, 0xD0, 0x83, 0xD0,
+0xE0, 0x32, 0xEF, 0xC3, 0x94, 0x20, 0x50, 0x39, 0xEF, 0x30, 0xE0, 0x17, 0xED, 0xC4, 0x54, 0xF0,
+0xFD, 0xEF, 0xC3, 0x13, 0xFE, 0x24, 0xA4, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54,
+0x0F, 0x80, 0x10, 0xEF, 0xC3, 0x13, 0xFE, 0x24, 0xA4, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83,
+0xE0, 0x54, 0xF0, 0xF0, 0x74, 0xA4, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x4D,
+0xF0, 0x22, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0xC3, 0x94, 0x20, 0x40,
+0x02, 0xC1, 0xCD, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2A, 0x12, 0x43, 0x5F, 0xE0, 0x64, 0x01,
+0x60, 0x02, 0xC1, 0xC5, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34,
+0x85, 0xF5, 0x83, 0xE0, 0xFC, 0xA3, 0xE0, 0xD3, 0x94, 0x00, 0xEC, 0x94, 0x00, 0x50, 0x02, 0xC1,
+0xC5, 0xEF, 0x75, 0xF0, 0x0A, 0xA4, 0x24, 0x00, 0xF9, 0x74, 0x84, 0x35, 0xF0, 0x75, 0x12, 0x01,
+0xF5, 0x13, 0x89, 0x14, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34,
+0x85, 0xF5, 0x83, 0xE0, 0xFD, 0xA3, 0xE0, 0x90, 0x8A, 0xD4, 0xCD, 0xF0, 0xA3, 0xED, 0xF0, 0xEF,
+0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0, 0xFF, 0xA3, 0xE0, 0x90,
+0x8A, 0xD6, 0xCF, 0xF0, 0xA3, 0xEF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFE, 0x24, 0x84, 0xF5, 0x82,
+0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x3F, 0x90, 0x8A, 0xD0, 0xF0, 0xE0, 0xFD, 0x54, 0x1F,
+0xA3, 0xF0, 0x75, 0xF0, 0x09, 0xEE, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0xE0, 0x90, 0x8A, 0xD9,
+0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFB, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0,
+0xC3, 0x94, 0x05, 0x40, 0x02, 0x61, 0x1A, 0x90, 0x8A, 0xD9, 0xE0, 0xFE, 0x90, 0x8A, 0xD1, 0xE0,
+0x9E, 0x40, 0x13, 0x90, 0x8A, 0xD9, 0xE0, 0x90, 0x8A, 0xD1, 0xF0, 0xED, 0x54, 0x40, 0xFD, 0x90,
+0x8A, 0xD0, 0xF0, 0xEE, 0x4D, 0xF0, 0x90, 0x8A, 0xD1, 0xE0, 0xFF, 0x90, 0x41, 0x12, 0x93, 0xFE,
+0x74, 0x23, 0x2B, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xC3, 0x9E, 0x40, 0x06, 0xEF,
+0x90, 0x40, 0xDA, 0x80, 0x07, 0x90, 0x8A, 0xD1, 0xE0, 0x90, 0x40, 0xF6, 0x93, 0x90, 0x8A, 0xD8,
+0xF0, 0x90, 0x8A, 0xD8, 0xE0, 0x75, 0xF0, 0x06, 0xA4, 0x24, 0x50, 0xF9, 0x74, 0x40, 0x35, 0xF0,
+0x75, 0x0F, 0xFF, 0xF5, 0x10, 0x89, 0x11, 0x90, 0x8A, 0xD0, 0xE0, 0x90, 0x41, 0xBA, 0x93, 0xFF,
+0xD3, 0x90, 0x8A, 0xD7, 0xE0, 0x9F, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x0C, 0x90, 0x8A,
+0xCF, 0xE0, 0xFF, 0xE4, 0xFD, 0x12, 0x5D, 0xB4, 0xC1, 0x5B, 0x90, 0x8A, 0xCF, 0xE0, 0x25, 0xE0,
+0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFF, 0xA3, 0xE0, 0x90, 0x8A, 0xD2,
+0xCF, 0xF0, 0xA3, 0xEF, 0xF0, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x12, 0x29, 0xD9, 0xFF, 0x7E,
+0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x12, 0x42, 0x97, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2,
+0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90,
+0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00,
+0x02, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0,
+0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF,
+0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x04, 0x12, 0x42, 0xC2, 0xFD, 0xAC,
+0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA,
+0x10, 0xA9, 0x11, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13,
+0xA9, 0x14, 0x90, 0x00, 0x06, 0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A,
+0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x04,
+0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x08, 0x12,
+0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42,
+0x81, 0xAB, 0x0F, 0xAA, 0x10, 0xA9, 0x11, 0x90, 0x00, 0x05, 0x12, 0x42, 0x20, 0xFF, 0x7E, 0x00,
+0x90, 0x8A, 0xD4, 0xE0, 0xFC, 0xA3, 0xE0, 0xFD, 0x12, 0x29, 0xF2, 0xD3, 0x90, 0x8A, 0xD3, 0xE0,
+0x9F, 0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x40, 0x0C, 0xA3, 0xE0, 0x9F, 0xF0, 0x90, 0x8A, 0xD2, 0xE0,
+0x9E, 0xF0, 0x80, 0x07, 0xE4, 0x90, 0x8A, 0xD2, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xD2, 0xE0, 0xFC,
+0xA3, 0xE0, 0xFD, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xEC, 0xF0, 0xA3, 0xED, 0xF0, 0x90, 0x8A, 0xD0, 0xE0, 0x25, 0xE0, 0x24, 0x2E,
+0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xD3, 0xED,
+0x9B, 0xEC, 0x9A, 0x40, 0x04, 0xD1, 0xCE, 0xC1, 0x29, 0x90, 0x8A, 0xD0, 0xE0, 0x25, 0xE0, 0x24,
+0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFE, 0x74, 0x01, 0x93, 0xFF, 0xC3,
+0x90, 0x8A, 0xD3, 0xE0, 0x9F, 0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x40, 0x02, 0xC1, 0x29, 0x90, 0x8A,
+0xCF, 0xE0, 0xFF, 0x7D, 0x01, 0x12, 0x5D, 0xB4, 0xC1, 0x29, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24,
+0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xFC, 0x64, 0x05, 0x60, 0x02, 0x81, 0xF8,
+0x90, 0x87, 0x22, 0xE0, 0xFE, 0xB4, 0x03, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3, 0x94, 0x19, 0x40,
+0x3D, 0x80, 0x2E, 0xEE, 0xB4, 0x02, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3, 0x94, 0x11, 0x40, 0x2E,
+0x80, 0x1F, 0x90, 0x87, 0x22, 0xE0, 0xFE, 0xB4, 0x01, 0x0B, 0x90, 0x8A, 0xD1, 0xE0, 0xC3, 0x94,
+0x0A, 0x40, 0x1B, 0x80, 0x0C, 0xEE, 0x70, 0x11, 0x90, 0x8A, 0xD1, 0xE0, 0xC3, 0x94, 0x03, 0x40,
+0x0D, 0x90, 0x89, 0x43, 0x74, 0x01, 0xF0, 0x80, 0x05, 0xE4, 0x90, 0x89, 0x43, 0xF0, 0x90, 0x8A,
+0xCF, 0xE0, 0xFE, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xDD,
+0xF0, 0x74, 0x23, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE, 0xC3, 0x94, 0x30,
+0x50, 0x0A, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x64, 0x2F, 0x81, 0xA3, 0x90, 0x89, 0x43, 0xE0,
+0x64, 0x01, 0x60, 0x02, 0x81, 0x98, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x44, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0xE0, 0x64, 0x0A, 0x60, 0x5B, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0xEE, 0x24, 0x05,
+0xFB, 0xE4, 0x33, 0xFA, 0x74, 0x21, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xE0, 0xFF,
+0xD3, 0x9B, 0xEA, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98, 0x50, 0x38, 0x90, 0x8A, 0xCF, 0xE0, 0xFE,
+0xEF, 0x24, 0x05, 0xFB, 0xE4, 0x33, 0xFA, 0x74, 0x23, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0xE0, 0xD3, 0x9B, 0xEA, 0x64, 0x80, 0xF8, 0x74, 0x80, 0x98, 0x50, 0x16, 0x90, 0x8A, 0xCF,
+0xE0, 0x24, 0x84, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xFF, 0x90, 0x8A, 0xD1, 0xE0,
+0x6F, 0x60, 0x56, 0x90, 0x8A, 0xCF, 0xE0, 0x24, 0x23, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83,
+0xE0, 0xFF, 0xD3, 0x94, 0x42, 0x40, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x05, 0xF0, 0x80, 0x11, 0xEF,
+0xD3, 0x94, 0x39, 0x90, 0x8A, 0xDD, 0x40, 0x05, 0x74, 0x03, 0xF0, 0x80, 0x03, 0x74, 0x01, 0xF0,
+0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x23, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFE,
+0x74, 0x21, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xCF, 0xE0,
+0x24, 0x44, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0x80, 0x2F, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x64,
+0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x44, 0x2F, 0xF5, 0x82, 0xE4, 0x34,
+0x89, 0xF5, 0x83, 0xE0, 0x04, 0xF0, 0x80, 0x14, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x90, 0x8A, 0xCF,
+0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x90, 0x8A, 0xD1, 0xE0,
+0xFE, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x84, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEE,
+0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFE, 0x74, 0x43, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83,
+0xEE, 0xF0, 0x75, 0xF0, 0x09, 0xEF, 0x90, 0x87, 0x2B, 0x12, 0x43, 0x5F, 0xE0, 0xB4, 0x01, 0x11,
+0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0x74, 0x64, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4,
+0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFD, 0xC1, 0x27, 0xEC, 0x64, 0x06, 0x60, 0x02, 0xC1, 0x29, 0x90,
+0x8A, 0xD2, 0xF0, 0xA3, 0xF0, 0x90, 0x41, 0xDB, 0x93, 0xFF, 0x7E, 0x00, 0x90, 0x8A, 0xD4, 0xE0,
+0xFC, 0xA3, 0xE0, 0xFD, 0x12, 0x29, 0xF2, 0x90, 0x8A, 0xDB, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x90,
+0x8A, 0xCF, 0xE0, 0x24, 0x43, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xDD,
+0xF0, 0xE4, 0x90, 0x8A, 0xDA, 0xF0, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0xD3, 0x94, 0x04, 0x50, 0x47,
+0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x75, 0xF0, 0x02, 0xEF, 0xA4, 0xF5, 0x82, 0x85, 0xF0, 0x83,
+0x12, 0x42, 0xC2, 0xFD, 0xAC, 0xF0, 0xEF, 0x90, 0x41, 0xD6, 0x93, 0xFF, 0x7E, 0x00, 0x12, 0x29,
+0xF2, 0x90, 0x8A, 0xD2, 0xEE, 0x8F, 0xF0, 0x12, 0x42, 0x81, 0x90, 0x8A, 0xDB, 0xE0, 0xFE, 0xA3,
+0xE0, 0xFF, 0xD3, 0x90, 0x8A, 0xD3, 0xE0, 0x9F, 0x90, 0x8A, 0xD2, 0xE0, 0x9E, 0x50, 0x08, 0x90,
+0x8A, 0xDA, 0xE0, 0x04, 0xF0, 0x80, 0xAF, 0x90, 0x8A, 0xDA, 0xE0, 0xC3, 0x13, 0xF0, 0x90, 0x8A,
+0xDD, 0xE0, 0xFF, 0xB4, 0x01, 0x0D, 0x90, 0x8A, 0xDA, 0xE0, 0x70, 0x5D, 0x90, 0x8A, 0xDD, 0x04,
+0xF0, 0x80, 0x5B, 0xEF, 0xB4, 0x03, 0x1D, 0x90, 0x8A, 0xDA, 0xE0, 0xFF, 0x70, 0x08, 0x90, 0x8A,
+0xDD, 0x74, 0x03, 0xF0, 0x80, 0x48, 0xEF, 0xB4, 0x01, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x01, 0xF0,
+0x80, 0x3C, 0x80, 0x35, 0x90, 0x8A, 0xDD, 0xE0, 0x64, 0x05, 0x70, 0x32, 0x90, 0x8A, 0xDA, 0xE0,
+0xFF, 0x70, 0x08, 0x90, 0x8A, 0xDD, 0x74, 0x05, 0xF0, 0x80, 0x0F, 0xEF, 0x90, 0x8A, 0xDD, 0xB4,
+0x01, 0x05, 0x74, 0x03, 0xF0, 0x80, 0x03, 0x74, 0x01, 0xF0, 0xD3, 0x90, 0x8A, 0xD7, 0xE0, 0x94,
+0x03, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x05, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0xD3, 0x90,
+0x8A, 0xD7, 0xE0, 0x94, 0x03, 0x90, 0x8A, 0xD6, 0xE0, 0x94, 0x00, 0x40, 0x05, 0xE4, 0x90, 0x8A,
+0xDD, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0xFD, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x43, 0xF5, 0x82,
+0xE4, 0x34, 0x88, 0xF5, 0x83, 0xED, 0xF0, 0x11, 0x02, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x24, 0x64,
+0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0xD3, 0x94, 0x05, 0x50, 0x0F, 0x74, 0x64, 0x2F,
+0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE0, 0x04, 0xF0, 0x80, 0x0F, 0x90, 0x8A, 0xCF, 0xE0,
+0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0xAB, 0x12, 0xAA, 0x13, 0xA9,
+0x14, 0xE4, 0xF5, 0xF0, 0x12, 0x42, 0xFA, 0xAB, 0x12, 0xAA, 0x13, 0xA9, 0x14, 0x90, 0x00, 0x02,
+0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00, 0x04, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90,
+0x00, 0x06, 0xE4, 0xF5, 0xF0, 0x12, 0x43, 0x19, 0x90, 0x00, 0x08, 0xE4, 0xF5, 0xF0, 0x12, 0x43,
+0x19, 0x90, 0x8A, 0xCF, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x01, 0x47, 0x22, 0xAD, 0x07,
+0x74, 0x84, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE0, 0x54, 0x7F, 0x90, 0x8A, 0xDE,
+0xF0, 0xE0, 0xF9, 0x54, 0x1F, 0xA3, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43,
+0x5F, 0xE0, 0xFF, 0x90, 0x8A, 0xE1, 0xF0, 0xED, 0x25, 0xE0, 0x24, 0x81, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90, 0x8A, 0xE2, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0xED,
+0x25, 0xE0, 0x24, 0xE4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE0, 0xFB, 0xA3, 0xE0, 0x90,
+0x8A, 0xE4, 0xCB, 0xF0, 0xA3, 0xEB, 0xF0, 0x90, 0x8A, 0xDF, 0xE0, 0xFE, 0x25, 0xE0, 0x24, 0x2E,
+0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xED, 0x25,
+0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEA, 0xF0, 0xA3, 0xEB, 0xF0, 0xEE,
+0xC3, 0x9F, 0x40, 0x03, 0x02, 0x70, 0x12, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x74, 0xA5, 0x2D, 0xF5,
+0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0, 0xEF, 0x04, 0x90, 0x8A, 0xE0, 0xF0, 0x90, 0x8A,
+0xE1, 0xE0, 0xFF, 0x90, 0x8A, 0xE0, 0xE0, 0xFE, 0xD3, 0x9F, 0x40, 0x03, 0x02, 0x70, 0x4C, 0xEE,
+0xC3, 0x94, 0x10, 0x40, 0x21, 0xEE, 0x24, 0xF0, 0xFF, 0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08,
+0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9, 0xFF, 0x90, 0x8A, 0xE2, 0xE0, 0x5E, 0xFE,
+0xA3, 0xE0, 0x5F, 0x4E, 0x70, 0x27, 0x90, 0x8A, 0xE0, 0xE0, 0xFF, 0xC3, 0x94, 0x10, 0x50, 0x59,
+0x74, 0x01, 0x7E, 0x00, 0xA8, 0x07, 0x08, 0x80, 0x05, 0xC3, 0x33, 0xCE, 0x33, 0xCE, 0xD8, 0xF9,
+0xFF, 0x90, 0x8A, 0xE4, 0xE0, 0x5E, 0xFE, 0xA3, 0xE0, 0x5F, 0x4E, 0x60, 0x3C, 0x90, 0x8A, 0xE0,
+0xE0, 0xB4, 0x11, 0x0D, 0x90, 0x8A, 0xE3, 0xE0, 0x30, 0xE7, 0x06, 0x90, 0x8A, 0xE0, 0x74, 0x17,
+0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xFF, 0x64, 0x13, 0x60, 0x04, 0xEF, 0xB4, 0x12, 0x0D, 0x90, 0x8A,
+0xE2, 0xE0, 0x30, 0xE0, 0x06, 0x90, 0x8A, 0xE0, 0x74, 0x18, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0x90,
+0x8A, 0xDF, 0xF0, 0x90, 0x8A, 0xDE, 0xF0, 0x80, 0x43, 0x90, 0x8A, 0xE0, 0xE0, 0x04, 0xF0, 0x02,
+0x6F, 0x6E, 0x90, 0x8A, 0xE1, 0xE0, 0xFC, 0x90, 0x8A, 0xDF, 0xE0, 0xFF, 0x6C, 0x70, 0x71, 0x74,
+0xA5, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90,
+0x87, 0x29, 0x12, 0x43, 0x5F, 0xE0, 0xB4, 0x01, 0x10, 0xE9, 0x20, 0xE6, 0x0C, 0x90, 0x8A, 0xDF,
+0xE0, 0x44, 0x40, 0x90, 0x8A, 0xDE, 0xF0, 0x80, 0x03, 0xAF, 0x01, 0x22, 0x90, 0x8A, 0xDF, 0xE0,
+0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0xE4, 0x93, 0xFA, 0x74,
+0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5, 0x83, 0x74,
+0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13, 0xFE, 0xEF, 0x13, 0xFF, 0xED, 0x25, 0xE0,
+0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x80, 0x66,
+0x90, 0x8A, 0xDF, 0xE0, 0xD3, 0x9C, 0x40, 0x5E, 0x90, 0x8A, 0xE1, 0xE0, 0xFF, 0x74, 0xA5, 0x2D,
+0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0, 0x90, 0x8A, 0xDF, 0xEF, 0xF0, 0x90, 0x8A,
+0xDE, 0xF0, 0xFC, 0xA3, 0xE0, 0xFF, 0x25, 0xE0, 0x24, 0x66, 0xF5, 0x82, 0xE4, 0x34, 0x41, 0xF5,
+0x83, 0xE4, 0x93, 0xFA, 0x74, 0x01, 0x93, 0xFB, 0xEF, 0x25, 0xE0, 0x24, 0x2E, 0xF5, 0x82, 0xE4,
+0x34, 0x41, 0xF5, 0x83, 0x74, 0x01, 0x93, 0x2B, 0xFF, 0xE4, 0x93, 0x3A, 0xC3, 0x13, 0xFE, 0xEF,
+0x13, 0xFF, 0xED, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0xEE, 0xF0,
+0xA3, 0xEF, 0xF0, 0xAF, 0x04, 0x22, 0x74, 0x01, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83,
+0xE4, 0xF0, 0xAF, 0x05, 0x90, 0x8A, 0xDE, 0xE0, 0x44, 0x80, 0xFD, 0x12, 0x5C, 0xC1, 0x90, 0x8A,
+0xDE, 0xE0, 0x44, 0x80, 0xFF, 0x22, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0xFF,
+0xC3, 0x94, 0x10, 0x50, 0x14, 0x74, 0xA4, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x04, 0xF5, 0x83, 0xE4,
+0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x80, 0xE2, 0xE4, 0x90, 0x8A, 0xCF, 0xF0, 0x90, 0x8A,
+0xCF, 0xE0, 0xFF, 0xC3, 0x94, 0x20, 0x40, 0x02, 0x41, 0xCF, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84,
+0x00, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x02, 0x12,
+0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x04, 0x12, 0x43, 0x5F,
+0xE4, 0xF0, 0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x06, 0x12, 0x43, 0x5F, 0xE4, 0xF0,
+0xA3, 0xF0, 0x75, 0xF0, 0x0A, 0xEF, 0x90, 0x84, 0x08, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0xF0,
+0x74, 0x84, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0x74, 0x13, 0xF0, 0x74, 0x44, 0x2F,
+0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x43, 0x2F, 0xF5, 0x82, 0xE4, 0x34,
+0x88, 0xF5, 0x83, 0xE4, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xC0, 0xF5, 0x82, 0xE4, 0x34, 0x85, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x63, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xE3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA3, 0xF5, 0x82, 0xE4, 0x34, 0x88, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0x64, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0xEF, 0x25, 0xE0, 0x24, 0xA4, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5,
+0x83, 0xE4, 0xF0, 0xA3, 0xF0, 0x74, 0x44, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4,
+0xF0, 0x74, 0x24, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x74, 0x64, 0x2F,
+0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xE4, 0xF0, 0x90, 0x41, 0x8C, 0x93, 0xFE, 0x74, 0x01,
+0x93, 0xFF, 0x90, 0x41, 0x54, 0x74, 0x01, 0x93, 0x2F, 0xFF, 0xE4, 0x93, 0x3E, 0xC3, 0x13, 0xFE,
+0xEF, 0x13, 0xFF, 0x90, 0x8A, 0xCF, 0xE0, 0xFD, 0x25, 0xE0, 0x24, 0xE1, 0xF5, 0x82, 0xE4, 0x34,
+0x86, 0xF5, 0x83, 0xEE, 0xF0, 0xA3, 0xEF, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x29, 0x12,
+0x43, 0x5F, 0x74, 0x01, 0xF0, 0x74, 0xC1, 0x2D, 0xF5, 0x82, 0xE4, 0x34, 0x86, 0xF5, 0x83, 0x74,
+0x0C, 0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x25, 0x12, 0x43, 0x5F, 0x74, 0xFF, 0xF0, 0xA3,
+0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x23, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0xA3, 0x74, 0x0F,
+0xF0, 0x75, 0xF0, 0x09, 0xED, 0x90, 0x87, 0x27, 0x12, 0x43, 0x5F, 0x74, 0x13, 0xF0, 0x75, 0xF0,
+0x09, 0xED, 0x90, 0x87, 0x28, 0x12, 0x43, 0x5F, 0xE4, 0xF0, 0x74, 0x84, 0x2D, 0xF5, 0x82, 0xE4,
+0x34, 0x04, 0xF5, 0x83, 0x74, 0x13, 0xF0, 0x90, 0x8A, 0xCF, 0xE0, 0x04, 0xF0, 0x21, 0x3E, 0x22,
+0x12, 0x29, 0xD9, 0xFF, 0xC3, 0x94, 0x20, 0x50, 0x14, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFE,
+0x74, 0x23, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x89, 0xF5, 0x83, 0xEE, 0xF0, 0x22, 0xEF, 0xB4, 0x20,
+0x0A, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0x90, 0x87, 0x21, 0xF0, 0x22, 0x12, 0x29, 0xD9, 0xF5,
+0x21, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x2A, 0x8B, 0x00,
+0x00, 0x00, 0x00, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x1A, 0xF0, 0x90, 0x00, 0x03,
+0x12, 0x42, 0x20, 0x90, 0x8B, 0x0A, 0xF0, 0x12, 0x47, 0xFA, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x90,
+0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0x30, 0xE0, 0x25, 0x12, 0x29, 0xD9, 0x90, 0x8B, 0x10, 0xF0,
+0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x11, 0xF0, 0xEF, 0xC3, 0x13, 0x54, 0x7F, 0x90,
+0x8B, 0x0F, 0xF0, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x16, 0xF0, 0x22, 0x90, 0x8B,
+0x10, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x11, 0x74, 0x05, 0xF0, 0x90, 0x8B, 0x0F, 0x74, 0x14, 0xF0,
+0x90, 0x8B, 0x16, 0x74, 0x05, 0xF0, 0x22, 0x12, 0x29, 0xD9, 0x30, 0xE0, 0x19, 0xC3, 0x13, 0x54,
+0x7F, 0x90, 0x8B, 0x15, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20, 0xFF, 0x90, 0x8B, 0x13, 0xE4,
+0xF0, 0xA3, 0xEF, 0xF0, 0x80, 0x0F, 0x90, 0x8B, 0x15, 0x74, 0x05, 0xF0, 0x90, 0x8B, 0x13, 0xE4,
+0xF0, 0xA3, 0x74, 0x03, 0xF0, 0x90, 0x8B, 0x13, 0xE0, 0xA3, 0xE0, 0x90, 0x05, 0x58, 0xF0, 0x22,
+0x12, 0x29, 0xD9, 0x90, 0x8B, 0x12, 0xF0, 0x60, 0x07, 0xE4, 0xFD, 0x7F, 0x04, 0x12, 0x45, 0xA2,
+0x90, 0x8B, 0x12, 0xE0, 0x90, 0x01, 0xE7, 0xF0, 0x22, 0x90, 0x02, 0x09, 0xE0, 0xFD, 0x12, 0x29,
+0xD9, 0xFE, 0xAF, 0x05, 0xED, 0x2E, 0x90, 0x8A, 0xF7, 0xF0, 0x90, 0x00, 0x01, 0x12, 0x42, 0x20,
+0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xF8, 0xF0, 0x90, 0x00, 0x02, 0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F,
+0x90, 0x8A, 0xF9, 0xF0, 0x90, 0x00, 0x03, 0x12, 0x42, 0x20, 0xFF, 0xED, 0x2F, 0x90, 0x8A, 0xFA,
+0xF0, 0x90, 0x00, 0x04, 0x12, 0x42, 0x20, 0xFF, 0xAE, 0x05, 0xED, 0x2F, 0x90, 0x8A, 0xFB, 0xF0,
+0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x8B, 0xE4, 0x90,
+0x8A, 0xDD, 0xF0, 0x12, 0x29, 0xD9, 0xC3, 0x13, 0x20, 0xE0, 0x02, 0xA1, 0x62, 0x90, 0x8A, 0xDA,
+0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xFF, 0x54, 0x02, 0xFE, 0x90, 0x8B, 0x32, 0xE0, 0x54, 0xFD,
+0x4E, 0xFE, 0xF0, 0xEF, 0x54, 0x01, 0xFF, 0xEE, 0x54, 0xFE, 0x4F, 0xFF, 0xF0, 0x12, 0x29, 0xD9,
+0xFE, 0x54, 0x08, 0xFD, 0xEF, 0x54, 0xF7, 0x4D, 0xFF, 0x90, 0x8B, 0x32, 0xF0, 0xEE, 0x54, 0x10,
+0xFE, 0xEF, 0x54, 0xEF, 0x4E, 0xFF, 0xF0, 0x12, 0x29, 0xD9, 0xFE, 0x54, 0x20, 0xFD, 0xEF, 0x54,
+0xDF, 0x4D, 0xFF, 0x90, 0x8B, 0x32, 0xF0, 0xEE, 0x54, 0x40, 0xFE, 0xEF, 0x54, 0xBF, 0x4E, 0xF0,
+0x20, 0xE0, 0x02, 0xA1, 0x4F, 0x90, 0x8A, 0xDD, 0x74, 0x21, 0xF0, 0x90, 0x8A, 0xDA, 0x12, 0x43,
+0x6B, 0x12, 0x29, 0xD9, 0xFF, 0x13, 0x13, 0x54, 0x01, 0xFE, 0x90, 0x8B, 0x32, 0xE0, 0xFD, 0x13,
+0x13, 0x54, 0x01, 0x6E, 0x60, 0x2A, 0xEF, 0x54, 0x04, 0xFF, 0xED, 0x54, 0xFB, 0x4F, 0xF0, 0xE0,
+0x13, 0x13, 0x54, 0x3F, 0x30, 0xE0, 0x0E, 0x90, 0x01, 0x34, 0x74, 0x40, 0xF0, 0xFD, 0xE4, 0xFF,
+0x12, 0x36, 0xE6, 0x80, 0x0B, 0xE4, 0x90, 0x8B, 0x34, 0xF0, 0x7D, 0x40, 0xFF, 0x12, 0x36, 0x75,
+0x90, 0x8B, 0x32, 0xE0, 0xFD, 0x13, 0x13, 0x13, 0x54, 0x1F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD,
+0xE0, 0x44, 0x12, 0xF0, 0xED, 0xC4, 0x54, 0x0F, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44,
+0x14, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xC4, 0x13, 0x54, 0x07, 0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD,
+0xE0, 0x44, 0x80, 0xF0, 0x90, 0x8B, 0x32, 0xE0, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x20, 0xE0, 0x07,
+0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x40, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0x90, 0x05, 0x27, 0xF0, 0x90,
+0x8B, 0x33, 0xE0, 0x70, 0x05, 0x7F, 0x01, 0x12, 0x4E, 0x89, 0x90, 0x8B, 0x32, 0xE0, 0xC4, 0x13,
+0x13, 0x54, 0x03, 0x30, 0xE0, 0x04, 0x7F, 0x03, 0x80, 0x0E, 0x7F, 0x01, 0x12, 0x4D, 0xE0, 0xEF,
+0x60, 0x04, 0x7F, 0x01, 0x80, 0x02, 0x7F, 0x02, 0x12, 0x4E, 0x89, 0x7F, 0x02, 0xC1, 0xA4, 0x90,
+0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x27, 0xF0, 0xE4, 0xFF, 0x12, 0x4E, 0x89, 0x7F, 0x03,
+0xC1, 0xA4, 0x90, 0x8A, 0xDA, 0x12, 0x43, 0x6B, 0x12, 0x29, 0xD9, 0xFF, 0x54, 0x02, 0xFE, 0x90,
+0x8B, 0x2C, 0xE0, 0x54, 0xFD, 0x4E, 0xFE, 0xF0, 0xEF, 0x54, 0x01, 0xFF, 0xEE, 0x54, 0xFE, 0x4F,
+0xFF, 0xF0, 0x12, 0x29, 0xD9, 0xFE, 0x54, 0x08, 0xFD, 0xEF, 0x54, 0xF7, 0x4D, 0xFF, 0x90, 0x8B,
+0x2C, 0xF0, 0xEE, 0x54, 0x10, 0xFE, 0xEF, 0x54, 0xEF, 0x4E, 0xFF, 0xF0, 0x12, 0x29, 0xD9, 0xFE,
+0x54, 0x40, 0xFD, 0xEF, 0x54, 0xBF, 0x4D, 0xFF, 0x90, 0x8B, 0x2C, 0xF0, 0xEE, 0x54, 0x04, 0xFE,
+0xEF, 0x54, 0xFB, 0x4E, 0xF0, 0x20, 0xE0, 0x02, 0xC1, 0x57, 0x90, 0x8A, 0xDD, 0x74, 0x31, 0xF0,
+0x90, 0x8B, 0x2C, 0xE0, 0x13, 0x13, 0x54, 0x3F, 0x20, 0xE0, 0x0B, 0xE4, 0x90, 0x8B, 0x2E, 0xF0,
+0x7D, 0x40, 0xFF, 0x12, 0x36, 0x75, 0x90, 0x8B, 0x2C, 0xE0, 0xFD, 0x13, 0x13, 0x13, 0x54, 0x1F,
+0x30, 0xE0, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x02, 0xF0, 0xED, 0xC4, 0x54, 0x0F, 0x30, 0xE0,
+0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x44, 0x04, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0x54, 0x06, 0x60, 0x0C,
+0x90, 0x01, 0x3E, 0x74, 0x03, 0xF0, 0xFD, 0x7F, 0x02, 0x12, 0x37, 0x00, 0x90, 0x8A, 0xDD, 0xE0,
+0x90, 0x05, 0x27, 0xF0, 0x90, 0x8B, 0x2C, 0xE0, 0xFF, 0xC4, 0x13, 0x13, 0x54, 0x03, 0x30, 0xE0,
+0x0D, 0xA3, 0xE0, 0x64, 0x06, 0x60, 0x2C, 0x7F, 0x06, 0x12, 0x7B, 0x49, 0x80, 0x25, 0x90, 0x8B,
+0x2D, 0xE0, 0xB4, 0x06, 0x1B, 0x7F, 0x01, 0x12, 0x7B, 0x49, 0xE4, 0xFF, 0x12, 0x4D, 0xE0, 0xEF,
+0x60, 0x09, 0x7D, 0x01, 0xAF, 0x23, 0x12, 0x45, 0xA2, 0x80, 0x05, 0x12, 0x4E, 0x56, 0x80, 0x03,
+0x12, 0x66, 0x20, 0x7F, 0x01, 0x80, 0x4D, 0x90, 0x8A, 0xDD, 0x74, 0x01, 0xF0, 0x90, 0x05, 0x27,
+0xF0, 0x7D, 0x03, 0x7F, 0x02, 0x12, 0x36, 0x92, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x06, 0x02, 0x80,
+0x1B, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x02, 0x80, 0x07, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05,
+0x04, 0xE4, 0xFF, 0x80, 0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0x80, 0x09,
+0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x05, 0x7F, 0x01, 0x12, 0x7B, 0x49, 0x12, 0x66, 0x13, 0x12,
+0x4A, 0xFC, 0x7F, 0x03, 0xD1, 0xAB, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xAD, 0x07, 0xEF, 0x64, 0x01,
+0x60, 0x04, 0xEF, 0xB4, 0x03, 0x15, 0x90, 0x8B, 0x32, 0xE0, 0x54, 0xFE, 0xF0, 0x54, 0xFB, 0xF0,
+0xE4, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xED, 0x64, 0x02, 0x60, 0x04,
+0xED, 0xB4, 0x03, 0x15, 0x90, 0x8B, 0x2C, 0xE0, 0x54, 0xFE, 0xF0, 0x54, 0xFB, 0xF0, 0xE4, 0xA3,
+0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0xA3, 0xF0, 0x22, 0x12, 0x29, 0xD9, 0x90, 0x8B, 0x38,
+0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0x90, 0x8A, 0xFD, 0xE0, 0x90, 0x8A, 0xE8,
+0xF0, 0x90, 0x8A, 0xFE, 0xE0, 0xFF, 0xA3, 0xE0, 0x90, 0x8A, 0xE9, 0xCF, 0xF0, 0xA3, 0xEF, 0xF0,
+0xE4, 0x90, 0x8A, 0xE4, 0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0xFF, 0x24, 0x00, 0xF5, 0x82, 0xE4, 0x34,
+0x8B, 0xF5, 0x83, 0xE0, 0xFE, 0x74, 0xEB, 0x2F, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEE,
+0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0x04, 0xF0, 0xE0, 0xB4, 0x04, 0xDA, 0x90, 0x8A, 0xE8, 0xE0, 0x12,
+0x43, 0x94, 0x77, 0x61, 0x00, 0x78, 0xD7, 0x01, 0x77, 0x6C, 0x02, 0x77, 0x6C, 0x03, 0x77, 0x6C,
+0x04, 0x78, 0xD7, 0x05, 0x78, 0xA1, 0x80, 0x78, 0xBA, 0x81, 0x78, 0xD7, 0x82, 0x00, 0x00, 0x78,
+0xD3, 0x90, 0x8A, 0xEE, 0xE0, 0xFF, 0x12, 0x7E, 0x6E, 0x02, 0x78, 0xD7, 0x90, 0x8A, 0xE8, 0xE0,
+0xFF, 0xB4, 0x02, 0x08, 0x90, 0x8A, 0xE5, 0x74, 0x01, 0xF0, 0x80, 0x0F, 0xEF, 0x90, 0x8A, 0xE5,
+0xB4, 0x03, 0x05, 0x74, 0x02, 0xF0, 0x80, 0x03, 0x74, 0x04, 0xF0, 0xC3, 0x90, 0x8A, 0xE9, 0xE0,
+0x94, 0x08, 0x50, 0x79, 0xE4, 0x90, 0x8A, 0xE4, 0xF0, 0x90, 0x8A, 0xE5, 0xE0, 0xFF, 0x90, 0x8A,
+0xE4, 0xE0, 0xC3, 0x9F, 0x40, 0x03, 0x02, 0x78, 0xD7, 0x90, 0x8A, 0xE9, 0xE0, 0xFE, 0xA3, 0xE0,
+0xFF, 0xC3, 0xEE, 0x94, 0x01, 0x90, 0x8A, 0xE4, 0xE0, 0x50, 0x1F, 0xFE, 0x2F, 0xFF, 0xEE, 0xFD,
+0xC3, 0x74, 0x03, 0x9D, 0xFD, 0xE4, 0x94, 0x00, 0xFC, 0x74, 0xEB, 0x2D, 0xF5, 0x82, 0x74, 0x8A,
+0x3C, 0xF5, 0x83, 0xE0, 0xFD, 0x12, 0x51, 0xFB, 0x80, 0x2B, 0xFF, 0xFD, 0xC3, 0x74, 0x03, 0x9D,
+0xFD, 0xE4, 0x94, 0x00, 0xFC, 0x74, 0xEB, 0x2D, 0xF5, 0x82, 0x74, 0x8A, 0x3C, 0xF5, 0x83, 0xE0,
+0xFE, 0xEF, 0xFD, 0x90, 0x8A, 0xEA, 0xE0, 0x2D, 0xFD, 0x90, 0x8A, 0xE9, 0xE0, 0x34, 0x00, 0x8D,
+0x82, 0xF5, 0x83, 0xEE, 0xF0, 0x90, 0x8A, 0xE4, 0xE0, 0x04, 0xF0, 0x80, 0x8C, 0xC3, 0x90, 0x8A,
+0xE9, 0xE0, 0x94, 0x10, 0x40, 0x02, 0x01, 0xD7, 0x90, 0x8A, 0xE8, 0xE0, 0x64, 0x04, 0x60, 0x02,
+0x01, 0xD7, 0x90, 0x8A, 0xEC, 0xE0, 0xFF, 0xE4, 0xFC, 0xFD, 0xFE, 0x78, 0x10, 0x12, 0x2A, 0x6C,
+0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90, 0x8A, 0xEB, 0xE0, 0xFF, 0xE4, 0xFC, 0xFD,
+0xFE, 0x78, 0x18, 0x12, 0x2A, 0x6C, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01, 0xD0, 0x00, 0x12, 0x43,
+0x46, 0xC0, 0x04, 0xC0, 0x05, 0xC0, 0x06, 0xC0, 0x07, 0x90, 0x8A, 0xED, 0xE0, 0xFF, 0xE4, 0xFC,
+0xFD, 0xFE, 0x78, 0x08, 0x12, 0x2A, 0x6C, 0xD0, 0x03, 0xD0, 0x02, 0xD0, 0x01, 0xD0, 0x00, 0x12,
+0x43, 0x46, 0xA8, 0x04, 0xA9, 0x05, 0xAA, 0x06, 0xAB, 0x07, 0xA3, 0xE0, 0xFF, 0xE4, 0xFC, 0xFD,
+0xFE, 0x12, 0x43, 0x46, 0xA3, 0x12, 0x2A, 0x7F, 0x90, 0x8A, 0xEF, 0x12, 0x43, 0x53, 0x90, 0x80,
+0x85, 0x12, 0x2A, 0x7F, 0x90, 0x8A, 0xE9, 0xE0, 0xFE, 0xA3, 0xE0, 0xFF, 0x12, 0x2F, 0xD9, 0x80,
+0x36, 0x90, 0x8A, 0xED, 0xE0, 0xFE, 0xA3, 0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0xFE, 0x90, 0x8A,
+0xE6, 0xF0, 0xA3, 0xEF, 0xF0, 0x12, 0x37, 0x54, 0x80, 0x1D, 0x90, 0x8A, 0xED, 0xE0, 0xFE, 0xA3,
+0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0xFE, 0x90, 0x8A, 0xE6, 0xF0, 0xA3, 0xEF, 0xF0, 0x12, 0x36,
+0xCB, 0x80, 0x04, 0x7F, 0x00, 0x80, 0x02, 0x7F, 0x01, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0xD3, 0x10,
+0xAF, 0x01, 0xC3, 0xC0, 0xD0, 0xE4, 0x90, 0x8A, 0xDD, 0xF0, 0xA3, 0x74, 0x04, 0xF0, 0xA3, 0xE4,
+0xF0, 0x90, 0x8A, 0xE2, 0xF0, 0xA3, 0xF0, 0x90, 0x02, 0x09, 0xE0, 0x90, 0x8A, 0xE1, 0xF0, 0x12,
+0x29, 0xD9, 0xFF, 0x90, 0x8A, 0xE1, 0xE0, 0x2F, 0x90, 0x8A, 0xE0, 0xF0, 0x30, 0xE0, 0x0B, 0x90,
+0x8A, 0xDB, 0xE4, 0xF0, 0xA3, 0x74, 0x80, 0xF0, 0x80, 0x07, 0xE4, 0x90, 0x8A, 0xDB, 0xF0, 0xA3,
+0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xC3, 0x13, 0x90, 0xFD, 0x10, 0xF0, 0x90, 0x8A, 0xDD, 0xE0, 0x24,
+0x20, 0xF0, 0x90, 0x8A, 0xDB, 0xA3, 0xE0, 0xFD, 0xA3, 0xE0, 0xFC, 0x2D, 0xFF, 0x24, 0x01, 0xF5,
+0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0x90, 0x8A, 0xFD, 0xF0, 0x74, 0x02, 0x2F, 0xF5, 0x82,
+0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0xFE, 0xEC, 0x2D, 0x24, 0x03, 0xF5, 0x82, 0xE4, 0x34, 0xFC,
+0xF5, 0x83, 0xE0, 0x24, 0x00, 0xFF, 0xE4, 0x3E, 0x90, 0x8A, 0xFE, 0xF0, 0xA3, 0xEF, 0xF0, 0x90,
+0x8A, 0xDA, 0x74, 0x04, 0xF0, 0x90, 0x8A, 0xDB, 0xA3, 0xE0, 0xFF, 0xA3, 0xE0, 0x2F, 0xFF, 0x90,
+0x8A, 0xDA, 0xE0, 0xFE, 0x2F, 0x24, 0x00, 0xF5, 0x82, 0xE4, 0x34, 0xFC, 0xF5, 0x83, 0xE0, 0xFF,
+0x74, 0xFC, 0x2E, 0xF5, 0x82, 0xE4, 0x34, 0x8A, 0xF5, 0x83, 0xEF, 0xF0, 0x90, 0x8A, 0xDA, 0xE0,
+0x04, 0xF0, 0xE0, 0xB4, 0x08, 0xCF, 0x12, 0x76, 0xF2, 0xEF, 0x70, 0x45, 0x90, 0x01, 0xC3, 0xE0,
+0x60, 0x2B, 0xC3, 0x90, 0x8A, 0xE3, 0xE0, 0x94, 0xE8, 0x90, 0x8A, 0xE2, 0xE0, 0x94, 0x03, 0x40,
+0x09, 0x90, 0x01, 0xC6, 0xE0, 0x44, 0x10, 0xF0, 0x80, 0x79, 0x90, 0x8A, 0xE2, 0xE4, 0x75, 0xF0,
+0x01, 0x12, 0x42, 0x81, 0x7F, 0x0A, 0x7E, 0x00, 0x12, 0x37, 0x54, 0x80, 0xCF, 0x90, 0x01, 0xC6,
+0xE0, 0x90, 0x01, 0xC3, 0x30, 0xE2, 0x05, 0x74, 0xFE, 0xF0, 0x80, 0x57, 0x74, 0xFF, 0xF0, 0x80,
+0x52, 0x90, 0x8A, 0xDD, 0xE0, 0xB4, 0x78, 0x2E, 0xE4, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0x04, 0xF0,
+0x90, 0x8A, 0xDB, 0xE0, 0x70, 0x04, 0xA3, 0xE0, 0x64, 0x80, 0x90, 0x8A, 0xDB, 0x70, 0x05, 0xF0,
+0xA3, 0xF0, 0x80, 0x06, 0xE4, 0xF0, 0xA3, 0x74, 0x80, 0xF0, 0x90, 0x8A, 0xE0, 0xE0, 0xC3, 0x13,
+0x90, 0xFD, 0x10, 0xF0, 0x80, 0x07, 0x90, 0x8A, 0xDD, 0xE0, 0x24, 0x08, 0xF0, 0x90, 0x8A, 0xDE,
+0x74, 0xFF, 0xF5, 0xF0, 0x12, 0x42, 0x81, 0x90, 0x8A, 0xDE, 0xE0, 0x70, 0x02, 0xA3, 0xE0, 0x60,
+0x02, 0x21, 0x32, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x29, 0xD9, 0x90, 0x8B, 0x05, 0xF0, 0x90,
+0x00, 0x01, 0x12, 0x42, 0x20, 0x90, 0x8B, 0x06, 0xF0, 0x22, 0xE4, 0xF5, 0x61, 0x22, 0x51, 0x67,
+0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x7F, 0x78, 0x7E,
+0x08, 0x12, 0x27, 0xDE, 0x90, 0x8B, 0x1C, 0x12, 0x2A, 0x7F, 0x7F, 0x04, 0x7E, 0x0C, 0x12, 0x27,
+0xDE, 0x90, 0x8B, 0x20, 0x12, 0x2A, 0x7F, 0x7F, 0x00, 0x7E, 0x08, 0x12, 0x27, 0xDE, 0x90, 0x8B,
+0x24, 0x12, 0x2A, 0x7F, 0x90, 0x8B, 0x09, 0xE0, 0x90, 0x8B, 0x1C, 0xB4, 0x01, 0x0D, 0x12, 0x43,
+0x53, 0xEF, 0x54, 0xC7, 0xFF, 0xED, 0x54, 0xC7, 0xFD, 0x80, 0x07, 0x12, 0x43, 0x53, 0xEF, 0x54,
+0xC7, 0xFF, 0xEC, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x78, 0x7E, 0x08, 0x12, 0x2F, 0xD9,
+0x90, 0x8B, 0x20, 0x12, 0x43, 0x53, 0xEF, 0x54, 0x0F, 0xFF, 0xEC, 0x90, 0x80, 0x85, 0x12, 0x2A,
+0x7F, 0x7F, 0x04, 0x7E, 0x0C, 0x12, 0x2F, 0xD9, 0x90, 0x8B, 0x24, 0x12, 0x43, 0x53, 0xEF, 0x44,
+0x02, 0xFF, 0xEC, 0x90, 0x80, 0x85, 0x12, 0x2A, 0x7F, 0x7F, 0x00, 0x7E, 0x08, 0x12, 0x2F, 0xD9,
+0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x27, 0xDE, 0x90, 0x8B, 0x28, 0x12, 0x2A, 0x7F, 0x90, 0x80, 0x85,
+0x12, 0x2A, 0x8B, 0x00, 0x1B, 0x25, 0xA0, 0x7F, 0x70, 0x7E, 0x0E, 0x12, 0x2F, 0xD9, 0x90, 0x80,
+0x59, 0x12, 0x2A, 0x8B, 0x00, 0x00, 0x00, 0x00, 0xE4, 0xFD, 0xFF, 0x12, 0x34, 0x81, 0x90, 0x8B,
+0x09, 0xE0, 0xB4, 0x01, 0x11, 0x90, 0x80, 0x59, 0x12, 0x2A, 0x8B, 0x00, 0x00, 0x00, 0x00, 0xE4,
+0xFD, 0x7F, 0x01, 0x12, 0x34, 0x81, 0x22, 0x51, 0x6D, 0x90, 0x8B, 0x33, 0x74, 0x02, 0xF0, 0x22,
+0x51, 0x67, 0x90, 0x8B, 0x2D, 0x74, 0x04, 0xF0, 0x22, 0xD3, 0x10, 0xAF, 0x01, 0xC3, 0xC0, 0xD0,
+0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0x6F, 0x70, 0x02, 0xA1, 0x15, 0xEF, 0x12, 0x43, 0x94, 0x7B, 0x77,
+0x00, 0x7B, 0xB1, 0x01, 0x7B, 0xF7, 0x02, 0x7C, 0x31, 0x03, 0x7C, 0x69, 0x04, 0x7C, 0xA2, 0x05,
+0x7C, 0xDD, 0x06, 0x00, 0x00, 0x7D, 0x15, 0xEE, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xB1, 0x48, 0xA1,
+0x15, 0x90, 0x8B, 0x2D, 0xE0, 0xFF, 0xB4, 0x05, 0x04, 0xB1, 0x24, 0xA1, 0x15, 0xEF, 0xB4, 0x06,
+0x06, 0x7F, 0x01, 0xB1, 0x39, 0x80, 0x16, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x03, 0x06, 0x7F, 0x01,
+0xB1, 0x1A, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x02, 0xB1, 0x2E, 0xB1, 0x6B, 0xA1,
+0x15, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xB1, 0x48, 0x80, 0x09, 0x90, 0x8B,
+0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xB1, 0x24, 0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xB1, 0x61, 0xA1,
+0x15, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0x7F, 0x01, 0xB1, 0x39, 0xA1, 0x15, 0xEE,
+0xB4, 0x03, 0x06, 0x7F, 0x01, 0xB1, 0x1A, 0xA1, 0x15, 0x90, 0x8B, 0x2D, 0xE0, 0x64, 0x02, 0x60,
+0x02, 0xA1, 0x15, 0xB1, 0x2E, 0xA1, 0x15, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01,
+0xB1, 0x48, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xB1, 0x24, 0x90, 0x8B, 0x2D,
+0xE0, 0x70, 0x04, 0xB1, 0x61, 0x80, 0x16, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0x7F,
+0x01, 0xB1, 0x39, 0x80, 0x08, 0xEE, 0xB4, 0x03, 0x04, 0x7F, 0x01, 0xB1, 0x1A, 0xB1, 0x8D, 0xA1,
+0x15, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xB1, 0x48, 0x80, 0x09, 0x90, 0x8B,
+0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xB1, 0x24, 0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xB1, 0x61, 0x80,
+0x14, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0xE4, 0xFF, 0xB1, 0x39, 0x80, 0x06, 0xEE,
+0xB4, 0x02, 0x02, 0xB1, 0x2E, 0xB1, 0x76, 0xA1, 0x15, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06,
+0x06, 0xE4, 0xFF, 0xB1, 0x39, 0x80, 0x13, 0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xB1, 0x1A, 0x80,
+0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02, 0x02, 0xB1, 0x2E, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01,
+0x04, 0xB1, 0x6B, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05, 0x02, 0xB1, 0x24, 0x71, 0x40,
+0x80, 0x73, 0x90, 0x8B, 0x2D, 0xE0, 0xFE, 0xB4, 0x06, 0x06, 0xE4, 0xFF, 0xB1, 0x39, 0x80, 0x13,
+0xEE, 0xB4, 0x03, 0x06, 0x7F, 0x01, 0xB1, 0x1A, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02,
+0x02, 0xB1, 0x2E, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x01, 0x04, 0xB1, 0x6B, 0x80, 0x0B, 0x90, 0x8B,
+0x2D, 0xE0, 0xB4, 0x04, 0x04, 0x7F, 0x01, 0xB1, 0x48, 0xB1, 0x80, 0x80, 0x38, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x04, 0x06, 0x7F, 0x01, 0xB1, 0x48, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x05,
+0x02, 0xB1, 0x24, 0x90, 0x8B, 0x2D, 0xE0, 0x70, 0x04, 0xB1, 0x61, 0x80, 0x16, 0x90, 0x8B, 0x2D,
+0xE0, 0xB4, 0x03, 0x06, 0xE4, 0xFF, 0xB1, 0x1A, 0x80, 0x09, 0x90, 0x8B, 0x2D, 0xE0, 0xB4, 0x02,
+0x02, 0xB1, 0x2E, 0xB1, 0x9A, 0xD0, 0xD0, 0x92, 0xAF, 0x22, 0x12, 0x4A, 0xB2, 0x90, 0x8B, 0x2D,
+0x74, 0x01, 0xF0, 0x22, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x90, 0x05,
+0x22, 0xE4, 0xF0, 0x90, 0x8B, 0x2D, 0x04, 0xF0, 0x22, 0xEF, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4,
+0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x22, 0x90, 0x8B, 0x56, 0xEF, 0xF0, 0x12, 0x4F, 0xED,
+0x90, 0x8B, 0x56, 0xE0, 0x60, 0x05, 0x90, 0x05, 0x22, 0xE4, 0xF0, 0xE4, 0x90, 0x8B, 0x2D, 0xF0,
+0x22, 0x12, 0x4A, 0xCC, 0x90, 0x8B, 0x2D, 0x74, 0x01, 0xF0, 0x22, 0x7F, 0x01, 0x12, 0x4A, 0x7C,
+0xE4, 0x90, 0x8B, 0x2D, 0xF0, 0x22, 0x12, 0x4A, 0x32, 0x90, 0x8B, 0x2D, 0x74, 0x03, 0xF0, 0x22,
+0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x05, 0xF0, 0x22, 0x90, 0x05, 0x22,
+0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x2D, 0x74, 0x02, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0x6F, 0xF0,
+0x90, 0x8B, 0x2D, 0x74, 0x06, 0xF0, 0x22, 0x90, 0x05, 0x22, 0x74, 0xFF, 0xF0, 0x90, 0x8B, 0x33,
+0x74, 0x04, 0xF0, 0x22, 0x12, 0x4F, 0xED, 0x90, 0x8B, 0x33, 0x74, 0x04, 0xF0, 0x22, 0x90, 0x01,
+0x57, 0xE0, 0x60, 0x3C, 0x90, 0x01, 0x57, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x02, 0xF0, 0x90,
+0x8B, 0x1B, 0xE0, 0x60, 0x07, 0xE4, 0xF0, 0x53, 0x25, 0xFD, 0x80, 0x24, 0x90, 0x8B, 0x0C, 0xE0,
+0x04, 0xF0, 0x53, 0x25, 0xEF, 0x90, 0x8B, 0x10, 0xE0, 0xFF, 0x90, 0x8B, 0x0C, 0xE0, 0xD3, 0x9F,
+0x40, 0x0E, 0xE5, 0x21, 0xB4, 0x01, 0x09, 0x90, 0x8B, 0x0D, 0xE0, 0x70, 0x03, 0xE0, 0x04, 0xF0,
+0x90, 0x01, 0x5B, 0xE0, 0x60, 0x10, 0x90, 0x01, 0x5B, 0xE4, 0xF0, 0x90, 0x01, 0x3C, 0x74, 0x04,
+0xF0, 0xE4, 0x90, 0x8B, 0x18, 0xF0, 0x90, 0x01, 0x5F, 0xE0, 0x60, 0x10, 0x90, 0x01, 0x5F, 0xE4,
+0xF0, 0x90, 0x01, 0x3C, 0x74, 0x08, 0xF0, 0xE4, 0x90, 0x8B, 0x17, 0xF0, 0x22, 0xE4, 0x90, 0x8B,
+0x4F, 0xF0, 0xA3, 0xF0, 0x90, 0x05, 0xF8, 0xE0, 0x70, 0x0F, 0xA3, 0xE0, 0x70, 0x0B, 0xA3, 0xE0,
+0x70, 0x07, 0xA3, 0xE0, 0x70, 0x03, 0x7F, 0x01, 0x22, 0xD3, 0x90, 0x8B, 0x50, 0xE0, 0x94, 0xE8,
+0x90, 0x8B, 0x4F, 0xE0, 0x94, 0x03, 0x40, 0x03, 0x7F, 0x00, 0x22, 0x7F, 0x32, 0x7E, 0x00, 0x12,
+0x37, 0x54, 0x90, 0x8B, 0x4F, 0xE4, 0x75, 0xF0, 0x01, 0x12, 0x42, 0x81, 0x80, 0xC6, 0x8F, 0x0F,
+0xE4, 0x90, 0x8A, 0xF3, 0xF0, 0xE5, 0x0F, 0x14, 0xFE, 0x90, 0x8A, 0xF3, 0xE0, 0xFF, 0xC3, 0x9E,
+0x50, 0x0E, 0xEF, 0x04, 0xFD, 0x12, 0x34, 0xB7, 0x90, 0x8A, 0xF3, 0xE0, 0x04, 0xF0, 0x80, 0xE5,
+0xE5, 0x0F, 0x14, 0xFF, 0x7D, 0xFF, 0x12, 0x34, 0xB7, 0x90, 0x8A, 0xF3, 0xE5, 0x0F, 0xF0, 0x90,
+0x8A, 0xF3, 0xE0, 0xC3, 0x94, 0xFF, 0x50, 0x0F, 0xE0, 0xFF, 0x04, 0xFD, 0x12, 0x34, 0xB7, 0x90,
+0x8A, 0xF3, 0xE0, 0x04, 0xF0, 0x80, 0xE8, 0xAD, 0x0F, 0x7F, 0xFF, 0x02, 0x34, 0xB7, 0xDC, 0xD3,
};
+#endif
+
+//8188C_Formal_All_PHYforMP_111117 2011-11-23
+//8192C_Formal_92CU_PHYforMP_110817 2011-11-23
u32 Rtl8192CUPHY_REG_2TArray[PHY_REG_2TArrayLength] = {
0x024,0x0011800f,
@@ -7146,7 +6055,7 @@ u32 Rtl8192CUPHY_REG_2TArray[PHY_REG_2TArrayLength] = {
0x804,0x00000003,
0x808,0x0000fc00,
0x80c,0x0000000a,
-0x810,0x10005388,
+0x810,0x10000330, //for Broadcom AP IOT
0x814,0x020c3d10,
0x818,0x02200385,
0x81c,0x00000000,
@@ -7220,22 +6129,22 @@ u32 Rtl8192CUPHY_REG_2TArray[PHY_REG_2TArrayLength] = {
0xc44,0x000100b7,
0xc48,0xec020107,
0xc4c,0x007f037f,
-0xc50,0x6954341e,
+0xc50,0x69543420,
0xc54,0x43bc0094,
-0xc58,0x6954341e,
+0xc58,0x69543420,
0xc5c,0x433c0094,
0xc60,0x00000000,
0xc64,0x5116848b,
0xc68,0x47c00bff,
0xc6c,0x00000036,
0xc70,0x2c7f000d,
-0xc74,0x0186115b,
+0xc74,0x2186115b,
0xc78,0x0000001f,
0xc7c,0x00b99612,
0xc80,0x40000100,
0xc84,0x20f60000,
0xc88,0x40000100,
-0xc8c,0x20200000,
+0xc8c,0xa0e40000,
0xc90,0x00121820,
0xc94,0x00000000,
0xc98,0x00121820,
@@ -7336,7 +6245,7 @@ u32 Rtl8192CUPHY_REG_1TArray[PHY_REG_1TArrayLength] = {
0x804,0x00000001,
0x808,0x0000fc00,
0x80c,0x0000000a,
-0x810,0x10005388,
+0x810,0x10000330, //for Broadcom AP IOT
0x814,0x020c3d10,
0x818,0x02200385,
0x81c,0x00000000,
@@ -7410,9 +6319,9 @@ u32 Rtl8192CUPHY_REG_1TArray[PHY_REG_1TArrayLength] = {
0xc44,0x000100b7,
0xc48,0xec020107,
0xc4c,0x007f037f,
-0xc50,0x6954341e,
+0xc50,0x69543420,
0xc54,0x43bc0094,
-0xc58,0x6954341e,
+0xc58,0x69543420,
0xc5c,0x433c0094,
0xc60,0x00000000,
0xc64,0x5116848b,
@@ -7450,7 +6359,7 @@ u32 Rtl8192CUPHY_REG_1TArray[PHY_REG_1TArrayLength] = {
0xce4,0x00000000,
0xce8,0x37644302,
0xcec,0x2f97d40c,
-0xd00,0x00080740,
+0xd00,0x00000740,
0xd04,0x00020401,
0xd08,0x0000907f,
0xd0c,0x20010201,
@@ -7771,7 +6680,7 @@ u32 Rtl8192CUPHY_REG_1T_HPArray[PHY_REG_1T_HPArrayLength] = {
0x804,0x00000001,
0x808,0x0000fc00,
0x80c,0x0000000a,
-0x810,0x10005388,
+0x810,0x10000330, //for Broadcom AP IOT
0x814,0x020c3d10,
0x818,0x02200385,
0x81c,0x00000000,
@@ -7885,7 +6794,7 @@ u32 Rtl8192CUPHY_REG_1T_HPArray[PHY_REG_1T_HPArrayLength] = {
0xce4,0x00000000,
0xce8,0x37644302,
0xcec,0x2f97d40c,
-0xd00,0x00080740,
+0xd00,0x00000740,
0xd04,0x00020401,
0xd08,0x0000907f,
0xd0c,0x20010201,
@@ -7962,7 +6871,7 @@ u32 Rtl8192CUPHY_REG_1T_mCardArray[PHY_REG_1T_mCardArrayLength] = {
0x804,0x00000001,
0x808,0x0000fc00,
0x80c,0x0000000a,
-0x810,0x10005388,
+0x810,0x10000330, //for Broadcom AP IOT
0x814,0x020c3d10,
0x818,0x02200385,
0x81c,0x00000000,
@@ -8036,9 +6945,9 @@ u32 Rtl8192CUPHY_REG_1T_mCardArray[PHY_REG_1T_mCardArrayLength] = {
0xc44,0x000100b7,
0xc48,0xec020107,
0xc4c,0x007f037f,
-0xc50,0x6954341e,
+0xc50,0x69543420,
0xc54,0x43bc0094,
-0xc58,0x6954341e,
+0xc58,0x69543420,
0xc5c,0x433c0094,
0xc60,0x00000000,
0xc64,0x5116848b,
@@ -8076,7 +6985,7 @@ u32 Rtl8192CUPHY_REG_1T_mCardArray[PHY_REG_1T_mCardArrayLength] = {
0xce4,0x00000000,
0xce8,0x37644302,
0xcec,0x2f97d40c,
-0xd00,0x00080740,
+0xd00,0x00000740,
0xd04,0x00020401,
0xd08,0x0000907f,
0xd0c,0x20010201,
@@ -8152,7 +7061,7 @@ u32 Rtl8192CUPHY_REG_2T_mCardArray[PHY_REG_2T_mCardArrayLength] = {
0x804,0x00000003,
0x808,0x0000fc00,
0x80c,0x0000000a,
-0x810,0x10005388,
+0x810,0x10000330, //for Broadcom AP IOT
0x814,0x020c3d10,
0x818,0x02200385,
0x81c,0x00000000,
@@ -8226,22 +7135,22 @@ u32 Rtl8192CUPHY_REG_2T_mCardArray[PHY_REG_2T_mCardArrayLength] = {
0xc44,0x000100b7,
0xc48,0xec020107,
0xc4c,0x007f037f,
-0xc50,0x6954341e,
+0xc50,0x69543420,
0xc54,0x43bc0094,
-0xc58,0x6954341e,
+0xc58,0x69543420,
0xc5c,0x433c0094,
0xc60,0x00000000,
0xc64,0x5116848b,
0xc68,0x47c00bff,
0xc6c,0x00000036,
0xc70,0x2c7f000d,
-0xc74,0x018610db,
+0xc74,0x218610db,
0xc78,0x0000001f,
0xc7c,0x00b91612,
0xc80,0x40000100,
0xc84,0x20f60000,
0xc88,0x40000100,
-0xc8c,0x20200000,
+0xc8c,0xa0e40000,
0xc90,0x00121820,
0xc94,0x00000000,
0xc98,0x00121820,
@@ -8784,6 +7693,192 @@ u32 Rtl8192CURadioB_1TArray[RadioB_1TArrayLength] = {
0x0, };
+u32 Rtl8192CURadioA_2T_mCardArray[RadioA_2T_mCardArrayLength] = {
+0x000,0x00030159,
+0x001,0x00031284,
+0x002,0x00098000,
+0x003,0x00018c63,
+0x004,0x000210e7,
+0x009,0x0002044f,
+0x00a,0x0001adb1,
+0x00b,0x00054867,
+0x00c,0x0008992e,
+0x00d,0x0000e52c,
+0x00e,0x00039ce7,
+0x00f,0x00000451,
+0x019,0x00000000,
+0x01a,0x00010255,
+0x01b,0x00060a00,
+0x01c,0x000fc378,
+0x01d,0x000a1250,
+0x01e,0x0004445f,
+0x01f,0x00080001,
+0x020,0x0000b614,
+0x021,0x0006c000,
+0x022,0x00000000,
+0x023,0x00001558,
+0x024,0x00000060,
+0x025,0x00000483,
+0x026,0x0004f000,
+0x027,0x000ec7d9,
+0x028,0x000577c0,
+0x029,0x00004783,
+0x02a,0x00000001,
+0x02b,0x00021334,
+0x02a,0x00000000,
+0x02b,0x00000054,
+0x02a,0x00000001,
+0x02b,0x00000808,
+0x02b,0x00053333,
+0x02c,0x0000000c,
+0x02a,0x00000002,
+0x02b,0x00000808,
+0x02b,0x0005b333,
+0x02c,0x0000000d,
+0x02a,0x00000003,
+0x02b,0x00000808,
+0x02b,0x00063333,
+0x02c,0x0000000d,
+0x02a,0x00000004,
+0x02b,0x00000808,
+0x02b,0x0006b333,
+0x02c,0x0000000d,
+0x02a,0x00000005,
+0x02b,0x00000808,
+0x02b,0x00073333,
+0x02c,0x0000000d,
+0x02a,0x00000006,
+0x02b,0x00000709,
+0x02b,0x0005b333,
+0x02c,0x0000000d,
+0x02a,0x00000007,
+0x02b,0x00000709,
+0x02b,0x00063333,
+0x02c,0x0000000d,
+0x02a,0x00000008,
+0x02b,0x0000060a,
+0x02b,0x0004b333,
+0x02c,0x0000000d,
+0x02a,0x00000009,
+0x02b,0x0000060a,
+0x02b,0x00053333,
+0x02c,0x0000000d,
+0x02a,0x0000000a,
+0x02b,0x0000060a,
+0x02b,0x0005b333,
+0x02c,0x0000000d,
+0x02a,0x0000000b,
+0x02b,0x0000060a,
+0x02b,0x00063333,
+0x02c,0x0000000d,
+0x02a,0x0000000c,
+0x02b,0x0000060a,
+0x02b,0x0006b333,
+0x02c,0x0000000d,
+0x02a,0x0000000d,
+0x02b,0x0000060a,
+0x02b,0x00073333,
+0x02c,0x0000000d,
+0x02a,0x0000000e,
+0x02b,0x0000050b,
+0x02b,0x00066666,
+0x02c,0x0000001a,
+0x02a,0x000e0000,
+0x010,0x0004000f,
+0x011,0x000e31fc,
+0x010,0x0006000f,
+0x011,0x000ff9f8,
+0x010,0x0002000f,
+0x011,0x000203f9,
+0x010,0x0003000f,
+0x011,0x000ff500,
+0x010,0x00000000,
+0x011,0x00000000,
+0x010,0x0008000f,
+0x011,0x0003f100,
+0x010,0x0009000f,
+0x011,0x00023100,
+0x012,0x00032000,
+0x012,0x00071000,
+0x012,0x000b0000,
+0x012,0x000fc000,
+0x013,0x000287b3,
+0x013,0x000244b7,
+0x013,0x000204ab,
+0x013,0x0001c49f,
+0x013,0x00018493,
+0x013,0x0001429b,
+0x013,0x00010299,
+0x013,0x0000c29c,
+0x013,0x000081a0,
+0x013,0x000040ac,
+0x013,0x00000020,
+0x014,0x0001944c,
+0x014,0x00059444,
+0x014,0x0009944c,
+0x014,0x000d9444,
+0x015,0x0000f424,
+0x015,0x0004f424,
+0x015,0x0008f424,
+0x015,0x000cf424,
+0x016,0x000e0330,
+0x016,0x000a0330,
+0x016,0x00060330,
+0x016,0x00020330,
+0x000,0x00010159,
+0x018,0x0000f401,
+0x0fe,0x00000000,
+0x0fe,0x00000000,
+0x01f,0x00080003,
+0x0fe,0x00000000,
+0x0fe,0x00000000,
+0x01e,0x00044457,
+0x01f,0x00080000,
+0x000,0x00030159,
+};
+
+u32 Rtl8192CURadioB_2T_mCardArray[RadioB_2T_mCardArrayLength] = {
+0x000,0x00030159,
+0x001,0x00031284,
+0x002,0x00098000,
+0x003,0x00018c63,
+0x004,0x000210e7,
+0x009,0x0002044f,
+0x00a,0x0001adb1,
+0x00b,0x00054867,
+0x00c,0x0008992e,
+0x00d,0x0000e52c,
+0x00e,0x00039ce7,
+0x00f,0x00000451,
+0x012,0x00032000,
+0x012,0x00071000,
+0x012,0x000b0000,
+0x012,0x000fc000,
+0x013,0x000287af,
+0x013,0x000244b7,
+0x013,0x000204ab,
+0x013,0x0001c49f,
+0x013,0x00018493,
+0x013,0x00014297,
+0x013,0x00010295,
+0x013,0x0000c298,
+0x013,0x0000819c,
+0x013,0x000040a8,
+0x013,0x0000001c,
+0x014,0x0001944c,
+0x014,0x00059444,
+0x014,0x0009944c,
+0x014,0x000d9444,
+0x015,0x0000f424,
+0x015,0x0004f424,
+0x015,0x0008f424,
+0x015,0x000cf424,
+0x016,0x000e0330,
+0x016,0x000a0330,
+0x016,0x00060330,
+0x016,0x00020330,
+};
+
u32 Rtl8192CURadioA_1T_mCardArray[RadioA_1T_mCardArrayLength] = {
0x000,0x00030159,
0x001,0x00031284,
@@ -9043,7 +8138,7 @@ u32 Rtl8192CURadioA_1T_HPArray[RadioA_1T_HPArrayLength] = {
0x013,0x00028fb4,
0x013,0x00024fa8,
0x013,0x000207a4,
-0x013,0x0001c798,
+0x013,0x0001c3b0,
0x013,0x000183a4,
0x013,0x00014398,
0x013,0x000101a4,
@@ -9078,7 +8173,7 @@ u32 Rtl8192CURadioA_1T_HPArray[RadioA_1T_HPArrayLength] = {
u32 Rtl8192CURadioB_GM_Array[RadioB_GM_ArrayLength] = {
0x0, };
-// MAC reg V13 - 2010-12-07
+// MAC reg V14 - 2011-11-23
u32 Rtl8192CUMAC_2T_Array[MAC_2T_ArrayLength] = {
0x420,0x00000080,
0x423,0x00000000,
@@ -9153,10 +8248,11 @@ u32 Rtl8192CUMAC_2T_Array[MAC_2T_ArrayLength] = {
0x608,0x0000000e,
0x609,0x0000002a,
0x652,0x00000020,
-0x63c,0x0000000a,
-0x63d,0x0000000e,
-0x63e,0x0000000a,
-0x63f,0x0000000e,
+0x652,0x00000020,
+0x63c,0x00000008,
+0x63d,0x00000008,
+0x63e,0x0000000c,
+0x63f,0x0000000c,
0x66e,0x00000005,
0x700,0x00000021,
0x701,0x00000043,
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_led.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_led.c
index f39b4cb..0d7af4a 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_led.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_led.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#include "drv_types.h"
#include "rtl8192c_hal.h"
@@ -65,7 +64,7 @@ BlinkWorkItemCallback(
//
static void
ResetLedStatus(PLED_871x pLed) {
- pLed->CurrLedState = LED_OFF; // Current LED state.
+ pLed->CurrLedState = RTW_LED_OFF; // Current LED state.
pLed->bLedOn = _FALSE; // true if LED is ON, false if LED is OFF.
pLed->bLedBlinkInProgress = _FALSE; // true if it is blinking, false o.w..
@@ -75,7 +74,7 @@ ResetLedStatus(PLED_871x pLed) {
pLed->bLedScanBlinkInProgress = _FALSE;
pLed->bLedWPSBlinkInProgress = _FALSE;
pLed->BlinkTimes = 0; // Number of times to toggle led state for blinking.
- pLed->BlinkingLedState = LED_UNKNOWN; // Next state for blinking, either LED_ON or LED_OFF are.
+ pLed->BlinkingLedState = LED_UNKNOWN; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
}
//================================================================================
@@ -112,7 +111,15 @@ DeInitLed871x(
PLED_871x pLed
)
{
+ //call _cancel_workitem_sync(&(pLed->BlinkWorkItem))
+ //before _cancel_timer_ex(&(pLed->BlinkTimer)) to
+ //avoid led timer restarting when driver is removed
+
+ _cancel_workitem_sync(&(pLed->BlinkWorkItem));
+
_cancel_timer_ex(&(pLed->BlinkTimer));
+
+ // We should reset bLedBlinkInProgress if we cancel the LedControlTimer, 2005.03.10, by rcnjko.
ResetLedStatus(pLed);
}
@@ -318,7 +325,7 @@ SwLedBlink(
u8 bStopBlinking = _FALSE;
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -393,10 +400,10 @@ SwLedBlink(
else
{
// Assign LED state to toggle.
- if( pLed->BlinkingLedState == LED_ON )
- pLed->BlinkingLedState = LED_OFF;
+ if( pLed->BlinkingLedState == RTW_LED_ON )
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
// Schedule a timer to toggle LED state.
switch( pLed->CurrLedState )
@@ -412,7 +419,7 @@ SwLedBlink(
case LED_BLINK_WPS:
{
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL);
else
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL);
@@ -443,7 +450,7 @@ SwLedBlink1(
pLed = &(ledpriv->SwLed1);
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,( "Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -494,17 +501,17 @@ SwLedBlink1(
{
case LED_BLINK_SLOWLY:
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
break;
case LED_BLINK_NORMAL:
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LINK_INTERVAL_ALPHA);
break;
@@ -522,9 +529,9 @@ SwLedBlink1(
pLed->bLedLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_NORMAL;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LINK_INTERVAL_ALPHA);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
@@ -534,9 +541,9 @@ SwLedBlink1(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
}
@@ -545,9 +552,9 @@ SwLedBlink1(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -565,9 +572,9 @@ SwLedBlink1(
pLed->bLedLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_NORMAL;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LINK_INTERVAL_ALPHA);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
}
@@ -576,9 +583,9 @@ SwLedBlink1(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
}
@@ -588,23 +595,23 @@ SwLedBlink1(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
break;
case LED_BLINK_WPS:
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
break;
case LED_BLINK_WPS_STOP: //WPS success
- if(pLed->BlinkingLedState == LED_ON)
+ if(pLed->BlinkingLedState == RTW_LED_ON)
bStopBlinking = _FALSE;
else
bStopBlinking = _TRUE;
@@ -614,9 +621,9 @@ SwLedBlink1(
pLed->bLedLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_NORMAL;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LINK_INTERVAL_ALPHA);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
@@ -624,7 +631,7 @@ SwLedBlink1(
}
else
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_WPS_SUCESS_INTERVAL_ALPHA);
}
break;
@@ -645,7 +652,7 @@ SwLedBlink2(
u8 bStopBlinking = _FALSE;
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON)
+ if( pLed->BlinkingLedState == RTW_LED_ON)
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -673,16 +680,16 @@ SwLedBlink2(
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE)
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("stop scan blink CurrLedState %d\n", pLed->CurrLedState));
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _FALSE)
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
SwLedOff(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("stop scan blink CurrLedState %d\n", pLed->CurrLedState));
}
@@ -697,9 +704,9 @@ SwLedBlink2(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
}
@@ -719,16 +726,16 @@ SwLedBlink2(
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE)
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("stop CurrLedState %d\n", pLed->CurrLedState));
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _FALSE)
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
SwLedOff(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("stop CurrLedState %d\n", pLed->CurrLedState));
}
@@ -743,9 +750,9 @@ SwLedBlink2(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
}
@@ -767,7 +774,7 @@ SwLedBlink3(
u8 bStopBlinking = _FALSE;
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -796,8 +803,8 @@ SwLedBlink3(
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE)
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
if( !pLed->bLedOn )
SwLedOn(padapter, pLed);
@@ -805,8 +812,8 @@ SwLedBlink3(
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _FALSE)
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedOn )
SwLedOff(padapter, pLed);
@@ -823,9 +830,9 @@ SwLedBlink3(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
}
@@ -845,8 +852,8 @@ SwLedBlink3(
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE)
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
if( !pLed->bLedOn )
SwLedOn(padapter, pLed);
@@ -855,8 +862,8 @@ SwLedBlink3(
}
else if(check_fwstate(pmlmepriv, _FW_LINKED)== _FALSE)
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedOn )
SwLedOff(padapter, pLed);
@@ -875,9 +882,9 @@ SwLedBlink3(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
}
@@ -885,16 +892,16 @@ SwLedBlink3(
case LED_BLINK_WPS:
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
break;
case LED_BLINK_WPS_STOP: //WPS success
- if(pLed->BlinkingLedState == LED_ON)
+ if(pLed->BlinkingLedState == RTW_LED_ON)
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_WPS_SUCESS_INTERVAL_ALPHA);
bStopBlinking = _FALSE;
}
@@ -911,8 +918,8 @@ SwLedBlink3(
}
else
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
}
@@ -940,7 +947,7 @@ SwLedBlink4(
u8 bStopBlinking = _FALSE;
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -953,8 +960,8 @@ SwLedBlink4(
if(!pLed1->bLedWPSBlinkInProgress && pLed1->BlinkingLedState == LED_UNKNOWN)
{
- pLed1->BlinkingLedState = LED_OFF;
- pLed1->CurrLedState = LED_OFF;
+ pLed1->BlinkingLedState = RTW_LED_OFF;
+ pLed1->CurrLedState = RTW_LED_OFF;
SwLedOff(padapter, pLed1);
}
@@ -962,21 +969,21 @@ SwLedBlink4(
{
case LED_BLINK_SLOWLY:
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
break;
case LED_BLINK_StartToBlink:
if( pLed->bLedOn )
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
}
break;
@@ -999,9 +1006,9 @@ SwLedBlink4(
pLed->bLedNoLinkBlinkInProgress = _FALSE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
}
pLed->bLedScanBlinkInProgress = _FALSE;
@@ -1015,9 +1022,9 @@ SwLedBlink4(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
}
@@ -1040,9 +1047,9 @@ SwLedBlink4(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
}
pLed->bLedBlinkInProgress = _FALSE;
@@ -1056,9 +1063,9 @@ SwLedBlink4(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
}
@@ -1067,21 +1074,21 @@ SwLedBlink4(
case LED_BLINK_WPS:
if( pLed->bLedOn )
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
}
break;
case LED_BLINK_WPS_STOP: //WPS authentication fail
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
break;
@@ -1103,15 +1110,15 @@ SwLedBlink4(
if(bStopBlinking)
{
pLed->BlinkTimes = 10;
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LINK_INTERVAL_ALPHA);
}
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
}
@@ -1137,7 +1144,7 @@ SwLedBlink5(
u8 bStopBlinking = _FALSE;
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -1161,14 +1168,14 @@ SwLedBlink5(
{
if( padapter->pwrctrlpriv.rf_pwrstate != rf_on && padapter->pwrctrlpriv.rfoff_reason > RF_CHANGE_BY_PS)
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if(pLed->bLedOn)
SwLedOff(padapter, pLed);
}
else
- { pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ { pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
if(!pLed->bLedOn)
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
@@ -1184,9 +1191,9 @@ SwLedBlink5(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
}
@@ -1204,15 +1211,15 @@ SwLedBlink5(
{
if( padapter->pwrctrlpriv.rf_pwrstate != rf_on && padapter->pwrctrlpriv.rfoff_reason > RF_CHANGE_BY_PS)
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if(pLed->bLedOn)
SwLedOff(padapter, pLed);
}
else
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
if(!pLed->bLedOn)
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
@@ -1228,9 +1235,9 @@ SwLedBlink5(
else
{
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
}
@@ -1255,7 +1262,7 @@ SwLedBlink6(
u8 bStopBlinking = _FALSE;
// Change LED according to BlinkingLedState specified.
- if( pLed->BlinkingLedState == LED_ON )
+ if( pLed->BlinkingLedState == RTW_LED_ON )
{
SwLedOn(padapter, pLed);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn on\n", pLed->BlinkTimes));
@@ -1397,9 +1404,9 @@ SwLedControlMode0(
pLed->BlinkTimes = 2;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
}
break;
@@ -1413,9 +1420,9 @@ SwLedControlMode0(
pLed->BlinkTimes = 24;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL);
}
else
@@ -1425,7 +1432,7 @@ SwLedControlMode0(
break;
case LED_CTL_LINK:
- pLed->CurrLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
if( pLed->bLedBlinkInProgress == _FALSE )
{
SwLedOn(padapter, pLed);
@@ -1433,7 +1440,7 @@ SwLedControlMode0(
break;
case LED_CTL_NO_LINK:
- pLed->CurrLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
if( pLed->bLedBlinkInProgress == _FALSE )
{
SwLedOff(padapter, pLed);
@@ -1441,7 +1448,7 @@ SwLedControlMode0(
break;
case LED_CTL_POWER_OFF:
- pLed->CurrLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
if(pLed->bLedBlinkInProgress)
{
_cancel_timer_ex(&(pLed->BlinkTimer));
@@ -1451,7 +1458,7 @@ SwLedControlMode0(
break;
case LED_CTL_START_WPS:
- if( pLed->bLedBlinkInProgress == _FALSE || pLed->CurrLedState == LED_ON)
+ if( pLed->bLedBlinkInProgress == _FALSE || pLed->CurrLedState == RTW_LED_ON)
{
pLed->bLedBlinkInProgress = _TRUE;
@@ -1460,12 +1467,12 @@ SwLedControlMode0(
if( pLed->bLedOn )
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL);
}
}
@@ -1474,7 +1481,7 @@ SwLedControlMode0(
case LED_CTL_STOP_WPS:
if(pLed->bLedBlinkInProgress)
{
- pLed->CurrLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
_cancel_timer_ex(&(pLed->BlinkTimer));
pLed->bLedBlinkInProgress = _FALSE;
}
@@ -1529,9 +1536,9 @@ SwLedControlMode1(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
}
break;
@@ -1556,9 +1563,9 @@ SwLedControlMode1(
pLed->bLedLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_NORMAL;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_LINK_INTERVAL_ALPHA);
}
break;
@@ -1590,9 +1597,9 @@ SwLedControlMode1(
pLed->CurrLedState = LED_SCAN_BLINK;
pLed->BlinkTimes = 24;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -1619,9 +1626,9 @@ SwLedControlMode1(
pLed->CurrLedState = LED_TXRX_BLINK;
pLed->BlinkTimes = 2;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
break;
@@ -1653,9 +1660,9 @@ SwLedControlMode1(
pLed->bLedWPSBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_WPS;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -1694,12 +1701,12 @@ SwLedControlMode1(
pLed->CurrLedState = LED_BLINK_WPS_STOP;
if(pLed->bLedOn)
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_WPS_SUCESS_INTERVAL_ALPHA);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), 0);
}
break;
@@ -1714,15 +1721,15 @@ SwLedControlMode1(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
break;
case LED_CTL_POWER_OFF:
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedNoLinkBlinkInProgress)
{
_cancel_timer_ex(&(pLed->BlinkTimer));
@@ -1790,9 +1797,9 @@ SwLedControlMode2(
pLed->CurrLedState = LED_SCAN_BLINK;
pLed->BlinkTimes = 24;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -1810,16 +1817,16 @@ SwLedControlMode2(
pLed->CurrLedState = LED_TXRX_BLINK;
pLed->BlinkTimes = 2;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
break;
case LED_CTL_LINK:
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
if( pLed->bLedBlinkInProgress)
{
_cancel_timer_ex(&(pLed->BlinkTimer));
@@ -1849,8 +1856,8 @@ SwLedControlMode2(
pLed->bLedScanBlinkInProgress = _FALSE;
}
pLed->bLedWPSBlinkInProgress = _TRUE;
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), 0);
}
break;
@@ -1863,8 +1870,8 @@ SwLedControlMode2(
}
else
{
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), 0);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
}
@@ -1878,8 +1885,8 @@ SwLedControlMode2(
}
else
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), 0);
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("CurrLedState %d\n", pLed->CurrLedState));
}
@@ -1889,15 +1896,15 @@ SwLedControlMode2(
case LED_CTL_NO_LINK:
if(!IS_LED_BLINKING(pLed))
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), 0);
}
break;
case LED_CTL_POWER_OFF:
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedBlinkInProgress)
{
_cancel_timer_ex(&(pLed->BlinkTimer));
@@ -1955,9 +1962,9 @@ SwLedControlMode2(
pLed->CurrLedState = LED_SCAN_BLINK;
pLed->BlinkTimes = 24;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -1975,9 +1982,9 @@ SwLedControlMode2(
pLed->CurrLedState = LED_TXRX_BLINK;
pLed->BlinkTimes = 2;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
break;
@@ -1986,8 +1993,8 @@ SwLedControlMode2(
if(IS_LED_WPS_BLINKING(pLed))
return;
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
if( pLed->bLedBlinkInProgress)
{
_cancel_timer_ex(&(pLed->BlinkTimer));
@@ -2019,9 +2026,9 @@ SwLedControlMode2(
pLed->bLedWPSBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_WPS;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -2040,12 +2047,12 @@ SwLedControlMode2(
pLed->CurrLedState = LED_BLINK_WPS_STOP;
if(pLed->bLedOn)
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_WPS_SUCESS_INTERVAL_ALPHA);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), 0);
}
@@ -2058,8 +2065,8 @@ SwLedControlMode2(
pLed->bLedWPSBlinkInProgress = _FALSE;
}
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), 0);
break;
@@ -2067,15 +2074,15 @@ SwLedControlMode2(
case LED_CTL_NO_LINK:
if(!IS_LED_BLINKING(pLed))
{
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), 0);
}
break;
case LED_CTL_POWER_OFF:
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedBlinkInProgress)
{
_cancel_timer_ex(&(pLed->BlinkTimer));
@@ -2124,8 +2131,8 @@ SwLedControlMode4(
pLed1->bLedWPSBlinkInProgress = _FALSE;
_cancel_timer_ex(&(pLed1->BlinkTimer));
- pLed1->BlinkingLedState = LED_OFF;
- pLed1->CurrLedState = LED_OFF;
+ pLed1->BlinkingLedState = RTW_LED_OFF;
+ pLed1->CurrLedState = RTW_LED_OFF;
if(pLed1->bLedOn)
_set_timer(&(pLed->BlinkTimer), 0);
@@ -2152,12 +2159,12 @@ SwLedControlMode4(
pLed->CurrLedState = LED_BLINK_StartToBlink;
if( pLed->bLedOn )
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
}
}
@@ -2173,8 +2180,8 @@ SwLedControlMode4(
pLed1->bLedWPSBlinkInProgress = _FALSE;
_cancel_timer_ex(&(pLed1->BlinkTimer));
- pLed1->BlinkingLedState = LED_OFF;
- pLed1->CurrLedState = LED_OFF;
+ pLed1->BlinkingLedState = RTW_LED_OFF;
+ pLed1->CurrLedState = RTW_LED_OFF;
if(pLed1->bLedOn)
_set_timer(&(pLed->BlinkTimer), 0);
@@ -2196,9 +2203,9 @@ SwLedControlMode4(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
}
break;
@@ -2225,9 +2232,9 @@ SwLedControlMode4(
pLed->CurrLedState = LED_SCAN_BLINK;
pLed->BlinkTimes = 24;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -2249,9 +2256,9 @@ SwLedControlMode4(
pLed->CurrLedState = LED_TXRX_BLINK;
pLed->BlinkTimes = 2;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
break;
@@ -2263,8 +2270,8 @@ SwLedControlMode4(
pLed1->bLedWPSBlinkInProgress = _FALSE;
_cancel_timer_ex(&(pLed1->BlinkTimer));
- pLed1->BlinkingLedState = LED_OFF;
- pLed1->CurrLedState = LED_OFF;
+ pLed1->BlinkingLedState = RTW_LED_OFF;
+ pLed1->CurrLedState = RTW_LED_OFF;
if(pLed1->bLedOn)
_set_timer(&(pLed->BlinkTimer), 0);
@@ -2291,12 +2298,12 @@ SwLedControlMode4(
pLed->CurrLedState = LED_BLINK_WPS;
if( pLed->bLedOn )
{
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL);
}
else
{
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
}
}
@@ -2312,9 +2319,9 @@ SwLedControlMode4(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
break;
@@ -2329,9 +2336,9 @@ SwLedControlMode4(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
//LED1 settings
@@ -2342,9 +2349,9 @@ SwLedControlMode4(
pLed1->CurrLedState = LED_BLINK_WPS_STOP;
if( pLed1->bLedOn )
- pLed1->BlinkingLedState = LED_OFF;
+ pLed1->BlinkingLedState = RTW_LED_OFF;
else
- pLed1->BlinkingLedState = LED_ON;
+ pLed1->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
break;
@@ -2359,9 +2366,9 @@ SwLedControlMode4(
pLed->bLedNoLinkBlinkInProgress = _TRUE;
pLed->CurrLedState = LED_BLINK_SLOWLY;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NO_LINK_INTERVAL_ALPHA);
//LED1 settings
@@ -2373,16 +2380,16 @@ SwLedControlMode4(
pLed1->CurrLedState = LED_BLINK_WPS_STOP_OVERLAP;
pLed1->BlinkTimes = 10;
if( pLed1->bLedOn )
- pLed1->BlinkingLedState = LED_OFF;
+ pLed1->BlinkingLedState = RTW_LED_OFF;
else
- pLed1->BlinkingLedState = LED_ON;
+ pLed1->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
break;
case LED_CTL_POWER_OFF:
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedNoLinkBlinkInProgress)
{
@@ -2456,8 +2463,8 @@ SwLedControlMode5(
case LED_CTL_POWER_ON:
case LED_CTL_NO_LINK:
case LED_CTL_LINK: //solid blue
- pLed->CurrLedState = LED_ON;
- pLed->BlinkingLedState = LED_ON;
+ pLed->CurrLedState = RTW_LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), 0);
break;
@@ -2476,9 +2483,9 @@ SwLedControlMode5(
pLed->CurrLedState = LED_SCAN_BLINK;
pLed->BlinkTimes = 24;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_SCAN_INTERVAL_ALPHA);
}
break;
@@ -2495,16 +2502,16 @@ SwLedControlMode5(
pLed->CurrLedState = LED_TXRX_BLINK;
pLed->BlinkTimes = 2;
if( pLed->bLedOn )
- pLed->BlinkingLedState = LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
else
- pLed->BlinkingLedState = LED_ON;
+ pLed->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed->BlinkTimer), LED_BLINK_FASTER_INTERVAL_ALPHA);
}
break;
case LED_CTL_POWER_OFF:
- pLed->CurrLedState = LED_OFF;
- pLed->BlinkingLedState = LED_OFF;
+ pLed->CurrLedState = RTW_LED_OFF;
+ pLed->BlinkingLedState = RTW_LED_OFF;
if( pLed->bLedBlinkInProgress)
{
@@ -2540,8 +2547,8 @@ SwLedControlMode6(
case LED_CTL_LINK:
case LED_CTL_NO_LINK:
_cancel_timer_ex(&(pLed0->BlinkTimer));
- pLed0->CurrLedState = LED_ON;
- pLed0->BlinkingLedState = LED_ON;
+ pLed0->CurrLedState = RTW_LED_ON;
+ pLed0->BlinkingLedState = RTW_LED_ON;
_set_timer(&(pLed0->BlinkTimer), 0);
break;
@@ -2553,7 +2560,7 @@ SwLedControlMode6(
break;
}
- RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("ledcontrol 6 Led %d\n", pLed->CurrLedState));
+ RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("ledcontrol 6 Led %d\n", pLed0->CurrLedState));
}
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_recv.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_recv.c
index 4285d60..1119cf8 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_recv.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_recv.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTL8192CU_RECV_C_
#include <drv_conf.h>
#include <osdep_service.h>
@@ -150,12 +149,7 @@ int rtl8192cu_init_recv_priv(_adapter *padapter)
for(i=0; i<NR_PREALLOC_RECV_SKB; i++)
{
-
- #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- pskb = dev_alloc_skb(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
- #else
- pskb = netdev_alloc_skb(padapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
- #endif
+ pskb = rtw_skb_alloc(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
if(pskb)
{
@@ -216,7 +210,7 @@ void rtl8192cu_free_recv_priv (_adapter *padapter)
DBG_8192C(KERN_WARNING "rx_skb_queue not empty\n");
}
- skb_queue_purge(&precvpriv->rx_skb_queue);
+ rtw_skb_queue_purge(&precvpriv->rx_skb_queue);
#ifdef CONFIG_PREALLOC_RECV_SKB
@@ -224,7 +218,7 @@ void rtl8192cu_free_recv_priv (_adapter *padapter)
DBG_8192C(KERN_WARNING "free_recv_skb_queue not empty, %d\n", skb_queue_len(&precvpriv->free_recv_skb_queue));
}
- skb_queue_purge(&precvpriv->free_recv_skb_queue);
+ rtw_skb_queue_purge(&precvpriv->free_recv_skb_queue);
#endif
@@ -232,149 +226,4 @@ void rtl8192cu_free_recv_priv (_adapter *padapter)
}
-void rtl8192cu_update_recvframe_attrib_from_recvstat(union recv_frame *precvframe, struct recv_stat *prxstat)
-{
- u8 physt, qos, shift, icverr, htc, crcerr;
- u16 drvinfo_sz=0;
- struct phy_stat *pphy_info;
- struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
- _adapter *padapter = precvframe->u.hdr.adapter;
- u8 bPacketMatchBSSID =_FALSE;
- u8 bPacketToSelf = _FALSE;
- u8 bPacketBeacon = _FALSE;
-
-
- //Offset 0
- drvinfo_sz = (le32_to_cpu(prxstat->rxdw0)&0x000f0000)>>16;
- drvinfo_sz = drvinfo_sz<<3;
-
- pattrib->bdecrypted = ((le32_to_cpu(prxstat->rxdw0) & BIT(27)) >> 27)? 0:1;
-
- physt = ((le32_to_cpu(prxstat->rxdw0) & BIT(26)) >> 26)? 1:0;
-
- shift = (le32_to_cpu(prxstat->rxdw0)&0x03000000)>>24;
-
- qos = ((le32_to_cpu(prxstat->rxdw0) & BIT(23)) >> 23)? 1:0;
-
- icverr = ((le32_to_cpu(prxstat->rxdw0) & BIT(15)) >> 15)? 1:0;
-
- pattrib->crc_err = crcerr = ((le32_to_cpu(prxstat->rxdw0) & BIT(14)) >> 14 )? 1:0;
-
-
- //Offset 4
-
- //Offset 8
-
- //Offset 12
-#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
- if ( le32_to_cpu(prxstat->rxdw3) & BIT(13)) {
- pattrib->tcpchk_valid = 1; // valid
- if ( le32_to_cpu(prxstat->rxdw3) & BIT(11) ) {
- pattrib->tcp_chkrpt = 1; // correct
- //DBG_8192C("tcp csum ok\n");
- } else
- pattrib->tcp_chkrpt = 0; // incorrect
-
- if ( le32_to_cpu(prxstat->rxdw3) & BIT(12) )
- pattrib->ip_chkrpt = 1; // correct
- else
- pattrib->ip_chkrpt = 0; // incorrect
-
- } else {
- pattrib->tcpchk_valid = 0; // invalid
- }
-
-#endif
-
- pattrib->mcs_rate=(u8)((le32_to_cpu(prxstat->rxdw3))&0x3f);
- pattrib->rxht=(u8)((le32_to_cpu(prxstat->rxdw3) >>6)&0x1);
-
- htc = (u8)((le32_to_cpu(prxstat->rxdw3) >>10)&0x1);
-
- //Offset 16
- //Offset 20
-
-
-#if 0 //dump rxdesc for debug
- DBG_8192C("drvinfo_sz=%d\n", drvinfo_sz);
- DBG_8192C("physt=%d\n", physt);
- DBG_8192C("shift=%d\n", shift);
- DBG_8192C("qos=%d\n", qos);
- DBG_8192C("icverr=%d\n", icverr);
- DBG_8192C("htc=%d\n", htc);
- DBG_8192C("bdecrypted=%d\n", pattrib->bdecrypted);
- DBG_8192C("mcs_rate=%d\n", pattrib->mcs_rate);
- DBG_8192C("rxht=%d\n", pattrib->rxht);
-#endif
-
- //phy_info
- if(drvinfo_sz && physt)
- {
- bPacketMatchBSSID = ((!IsFrameTypeCtrl(precvframe->u.hdr.rx_data)) && !icverr && !crcerr &&
- _rtw_memcmp(get_hdr_bssid(precvframe->u.hdr.rx_data), get_bssid(&padapter->mlmepriv), ETH_ALEN));
-
- bPacketToSelf = bPacketMatchBSSID && (_rtw_memcmp(get_da(precvframe->u.hdr.rx_data), myid(&padapter->eeprompriv), ETH_ALEN));
-
- bPacketBeacon = (GetFrameSubType(precvframe->u.hdr.rx_data) == WIFI_BEACON);
-
-
- pphy_info = (struct phy_stat *)(prxstat+1);
-
- //DBG_8192C("pphy_info, of0=0x%08x\n", *pphy_info);
- //DBG_8192C("pphy_info, of1=0x%08x\n", *(pphy_info+1));
- //DBG_8192C("pphy_info, of2=0x%08x\n", *(pphy_info+2));
- //DBG_8192C("pphy_info, of3=0x%08x\n", *(pphy_info+3));
- //DBG_8192C("pphy_info, of4=0x%08x\n", *(pphy_info+4));
- //DBG_8192C("pphy_info, of5=0x%08x\n", *(pphy_info+5));
- //DBG_8192C("pphy_info, of6=0x%08x\n", *(pphy_info+6));
- //DBG_8192C("pphy_info, of7=0x%08x\n", *(pphy_info+7));
-
- rtl8192c_query_rx_phy_status(precvframe, pphy_info);
-
- precvframe->u.hdr.psta = NULL;
- if(bPacketMatchBSSID && check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
- {
- u8 *sa;
- struct sta_info *psta=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
-
- sa = get_sa(precvframe->u.hdr.rx_data);
-
- psta = rtw_get_stainfo(pstapriv, sa);
- if(psta)
- {
- precvframe->u.hdr.psta = psta;
- rtl8192c_process_phy_info(padapter, precvframe);
- }
- }
- else if( bPacketToSelf || (bPacketBeacon && bPacketMatchBSSID) )
- {
- if(check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == _TRUE)
- {
- u8 *sa;
- struct sta_info *psta=NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
-
- sa = get_sa(precvframe->u.hdr.rx_data);
-
- psta = rtw_get_stainfo(pstapriv, sa);
- if(psta)
- {
- precvframe->u.hdr.psta = psta;
- }
- }
-
- rtl8192c_process_phy_info(padapter, precvframe);
- }
-
-#if 0 //dump phy_status for debug
-
- DBG_8192C("signal_qual=%d\n", pattrib->signal_qual);
- DBG_8192C("signal_strength=%d\n", pattrib->signal_strength);
-#endif
-
- }
-
-
-}
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_xmit.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_xmit.c
index c276b51..3a4137b 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_xmit.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/rtl8192cu_xmit.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _RTL8192C_XMIT_C_
#include <drv_conf.h>
#include <osdep_service.h>
@@ -95,7 +94,7 @@ u32 rtw_get_ff_hwaddr(struct xmit_frame *pxmitframe)
int urb_zero_packet_chk(_adapter *padapter, int sz)
{
int blnSetTxDescOffset;
- struct dvobj_priv *pdvobj = (struct dvobj_priv*)&padapter->dvobjpriv;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
if ( pdvobj->ishighspeed )
{
@@ -165,7 +164,7 @@ void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc)
}
-void fill_txdesc_vcs(struct pkt_attrib *pattrib, u32 *pdw)
+static void fill_txdesc_vcs(struct pkt_attrib *pattrib, u32 *pdw)
{
//DBG_8192C("cvs_mode=%d\n", pattrib->vcs_mode);
@@ -182,14 +181,27 @@ void fill_txdesc_vcs(struct pkt_attrib *pattrib, u32 *pdw)
break;
}
- if(pattrib->vcs_mode)
- {
- *pdw |= cpu_to_le32(BIT(13));//ENABLE HW RTS
- }
+ if(pattrib->vcs_mode) {
+ *pdw |= cpu_to_le32(BIT(13));
+ // Set RTS BW
+ if(pattrib->ht_en)
+ {
+ *pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40)? cpu_to_le32(BIT(27)):0;
+
+ if(pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
+ *pdw |= cpu_to_le32((0x01<<28)&0x30000000);
+ else if(pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_UPPER)
+ *pdw |= cpu_to_le32((0x02<<28)&0x30000000);
+ else if(pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE)
+ *pdw |= 0;
+ else
+ *pdw |= cpu_to_le32((0x03<<28)&0x30000000);
+ }
+ }
}
-void fill_txdesc_phy(struct pkt_attrib *pattrib, u32 *pdw)
+static void fill_txdesc_phy(struct pkt_attrib *pattrib, u32 *pdw)
{
//DBG_8192C("bwmode=%d, ch_off=%d\n", pattrib->bwmode, pattrib->ch_offset);
@@ -198,220 +210,17 @@ void fill_txdesc_phy(struct pkt_attrib *pattrib, u32 *pdw)
*pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40)? cpu_to_le32(BIT(25)):0;
if(pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
- *pdw |= cpu_to_le32((0x01<<20)&0x003f0000);
+ *pdw |= cpu_to_le32((0x01<<20)&0x00300000);
else if(pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_UPPER)
- *pdw |= cpu_to_le32((0x02<<20)&0x003f0000);
+ *pdw |= cpu_to_le32((0x02<<20)&0x00300000);
else if(pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE)
*pdw |= 0;
else
- *pdw |= cpu_to_le32((0x03<<20)&0x003f0000);
- }
-}
-
-#ifdef CONFIG_USB_TX_AGGREGATION
-static void _update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, int sz)
-{
- uint qsel;
- _adapter *padapter = pxmitframe->padapter;
- struct ht_priv *phtpriv = &padapter->mlmepriv.htpriv;
- struct mlme_ext_info *pmlmeinfo = &padapter->mlmeextpriv.mlmext_info;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct dm_priv *pdmpriv = &pHalData->dmpriv;
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
- sint bmcst = IS_MCAST(pattrib->ra);
- struct tx_desc *ptxdesc = (struct tx_desc*)pmem;
-
-
- _rtw_memset(ptxdesc, 0, sizeof(struct tx_desc));
-
- //4 offset 0
- ptxdesc->txdw0 |= cpu_to_le32(sz & 0x0000ffff);
- ptxdesc->txdw0 |= cpu_to_le32(OWN | FSG | LSG);
- ptxdesc->txdw0 |= cpu_to_le32(((TXDESC_SIZE + OFFSET_SZ) << OFFSET_SHT) & 0x00ff0000);//32 bytes for TX Desc
-
- if (bmcst) ptxdesc->txdw0 |= cpu_to_le32(BIT(24));
-
- RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_,
- ("update_txdesc: offset0=0x%08x\n", ptxdesc->txdw0));
-
- //4 offset 4
- // pkt_offset, unit:8 bytes padding
- if (pxmitframe->pkt_offset > 0)
- ptxdesc->txdw1 |= cpu_to_le32((pxmitframe->pkt_offset << 26) & 0x7c000000);
-
-#ifdef CONFIG_USB_TX_AGGREGATION
- if (pxmitframe->agg_num > 1)
- ptxdesc->txdw5 |= cpu_to_le32((pxmitframe->agg_num << 24) & 0xff000000);
-#endif
-
- if (pxmitframe->frame_tag == DATA_FRAMETAG)
- {
- //4 offset 4
- ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x1f);
-
- qsel = (uint)(pattrib->qsel & 0x0000001f);
- ptxdesc->txdw1 |= cpu_to_le32((qsel << QSEL_SHT) & 0x00001f00);
-
- ptxdesc->txdw1 |= cpu_to_le32((pattrib->raid << 16) & 0x000f0000);
-
- fill_txdesc_sectype(pattrib, ptxdesc);
-
- if(pattrib->ampdu_en==_TRUE)
- ptxdesc->txdw1 |= cpu_to_le32(BIT(5));//AGG EN
- else
- ptxdesc->txdw1 |= cpu_to_le32(BIT(6));//AGG BK
-
-
- //4 offset 8
-
-
- //4 offset 12
- ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum << 16) & 0xffff0000);
-
-
- //4 offset 16 , offset 20
- if (pattrib->qos_en)
- ptxdesc->txdw4 |= cpu_to_le32(BIT(6));//QoS
-
- if ((pattrib->ether_type != 0x888e) &&
- (pattrib->ether_type != 0x0806) &&
- (pattrib->dhcp_pkt != 1))
- {
- //Non EAP & ARP & DHCP type data packet
-
- fill_txdesc_vcs(pattrib, &ptxdesc->txdw4);
- fill_txdesc_phy(pattrib, &ptxdesc->txdw4);
-
- ptxdesc->txdw4 |= cpu_to_le32(0x00000008);//RTS Rate=24M
- ptxdesc->txdw5 |= cpu_to_le32(0x0001ff00);
- //ptxdesc->txdw5 |= cpu_to_le32(0x0000000b);//DataRate - 54M
-
- #ifdef SUPPORT_64_STA
- if(pattrib->mac_id>FW_CTRL_MACID ){
- ptxdesc->txdw5 |= cpu_to_le32(pattrib->psta->init_rate);
- ptxdesc->txdw4 |=cpu_to_le32(0x00000100); //USE RATE
- ptxdesc->txdw3 |=cpu_to_le32(BIT(28)); //PKT_ID
- //printk("%s pattrib->mac_id=%d ptxdesc->txdw3=0x%x,ptxdesc->txdw4=0x%x,ptxdesc->txdw5=0x%x\n",__FUNCTION__,pattrib->mac_id,ptxdesc->txdw3,ptxdesc->txdw4,ptxdesc->txdw5);
- }
- else //use REG_INIDATA_RATE_SEL value
- ptxdesc->txdw5 |= cpu_to_le32(pdmpriv->INIDATA_RATE[pattrib->mac_id]);
- if(pattrib->mac_id==1){
- //bcmc sta
- ptxdesc->txdw5 |= cpu_to_le32(padapter->registrypriv.bcmc_rate);
- ptxdesc->txdw4 |=cpu_to_le32(0x00000100); //USE RATE
- }
- #else //SUPPORT_64_STA
-
- //use REG_INIDATA_RATE_SEL value
- ptxdesc->txdw5 |= cpu_to_le32(pdmpriv->INIDATA_RATE[pattrib->mac_id]);
- #endif //SUPPORT_64_STA
-
- if (0)//for driver dbg
- {
- ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
-
- if (pattrib->ht_en)
- ptxdesc->txdw5 |= cpu_to_le32(BIT(6));//SGI
-
- ptxdesc->txdw5 |= cpu_to_le32(0x00000013);//init rate - mcs7
- }
- }
- else
- {
- // EAP data packet and ARP packet.
- // Use the 1M data rate to send the EAP/ARP packet.
- // This will maybe make the handshake smooth.
-
- ptxdesc->txdw1 |= cpu_to_le32(BIT(6));//AGG BK
- ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
- }
-
-
- //4 offset 24
-#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
- if (pattrib->hw_tcp_csum == 1) {
- // ptxdesc->txdw6 = 0; // clear TCP_CHECKSUM and IP_CHECKSUM. It's zero already!!
- u8 ip_hdr_offset = 32 + pattrib->hdrlen + pattrib->iv_len + 8;
- ptxdesc->txdw7 = (1 << 31) | (ip_hdr_offset << 16);
- DBG_8192C("ptxdesc->txdw7 = %08x\n", ptxdesc->txdw7);
- }
-#endif
- }
- else if(pxmitframe->frame_tag == MGNT_FRAMETAG)
- {
- //DBG_8192C("pxmitframe->frame_tag == MGNT_FRAMETAG\n");
-
- //4 offset 4
- ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x1f);
-
- qsel = (uint)(pattrib->qsel&0x0000001f);
- ptxdesc->txdw1 |= cpu_to_le32((qsel << QSEL_SHT) & 0x00001f00);
-
- ptxdesc->txdw1 |= cpu_to_le32((pattrib->raid<< 16) & 0x000f0000);
-
- //fill_txdesc_sectype(pattrib, ptxdesc);
-
-
- //4 offset 8
-
-
- //4 offset 12
- ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum<<16)&0xffff0000);
-
-
- //4 offset 16
- ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
-
-
- //4 offset 20
- }
- else if(pxmitframe->frame_tag == TXAGG_FRAMETAG)
- {
- DBG_8192C("pxmitframe->frame_tag == TXAGG_FRAMETAG\n");
- }
- else
- {
- DBG_8192C("pxmitframe->frame_tag = %d\n", pxmitframe->frame_tag);
-
- //4 offset 4
- ptxdesc->txdw1 |= cpu_to_le32((4)&0x1f);//CAM_ID(MAC_ID)
-
- ptxdesc->txdw1 |= cpu_to_le32((6<< 16) & 0x000f0000);//raid
-
-
- //4 offset 8
-
-
- //4 offset 12
- ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum << 16) & 0xffff0000);
-
-
- //4 offset 16
- ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
-
-
- //4 offset 20
- }
-
- // 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS.
- // (1) The sequence number of each non-Qos frame / broadcast / multicast /
- // mgnt frame should be controled by Hw because Fw will also send null data
- // which we cannot control when Fw LPS enable.
- // --> default enable non-Qos data sequense number. 2010.06.23. by tynli.
- // (2) Enable HW SEQ control for beacon packet, because we use Hw beacon.
- // (3) Use HW Qos SEQ to control the seq num of Ext port non-Qos packets.
- // 2010.06.23. Added by tynli.
- if(!pattrib->qos_en)
- {
- ptxdesc->txdw4 |= cpu_to_le32(BIT(7)); // Hw set sequence number
- ptxdesc->txdw3 |= cpu_to_le32((8 <<28)); //set bit3 to 1. Suugested by TimChen. 2009.12.29.
+ *pdw |= cpu_to_le32((0x03<<20)&0x00300000);
}
-
- rtl8192cu_cal_txdesc_chksum(ptxdesc);
}
-#endif
-static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
+static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bagg_pkt)
{
int pull=0;
uint qsel;
@@ -422,17 +231,19 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
struct dm_priv *pdmpriv = &pHalData->dmpriv;
struct tx_desc *ptxdesc = (struct tx_desc *)pmem;
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
- struct mlme_ext_info *pmlmeinfo = &padapter->mlmeextpriv.mlmext_info;
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
sint bmcst = IS_MCAST(pattrib->ra);
#ifdef CONFIG_P2P
struct wifidirect_info* pwdinfo = &padapter->wdinfo;
#endif //CONFIG_P2P
#ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
- if(urb_zero_packet_chk(padapter, sz)==0)
+ if((_FALSE == bagg_pkt) && (urb_zero_packet_chk(padapter, sz)==0))
{
ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ);
pull = 1;
+ pxmitframe->pkt_offset --;
}
#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
@@ -452,14 +263,13 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
fill_txdesc_sectype(pattrib, ptxdesc);
-
if(pattrib->ampdu_en==_TRUE)
ptxdesc->txdw1 |= cpu_to_le32(BIT(5));//AGG EN
else
ptxdesc->txdw1 |= cpu_to_le32(BIT(6));//AGG BK
//offset 8
-
+
//offset 12
ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum<<16)&0xffff0000);
@@ -480,26 +290,9 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
ptxdesc->txdw5 |= cpu_to_le32(0x0001ff00);//
//ptxdesc->txdw5 |= cpu_to_le32(0x0000000b);//DataRate - 54M
-
- #ifdef SUPPORT_64_STA
- if(pattrib->mac_id>=FW_CTRL_MACID ){
- ptxdesc->txdw5 |= cpu_to_le32(pattrib->psta->init_rate);
- ptxdesc->txdw4 |=cpu_to_le32(0x00000100); //USE RATE
- ptxdesc->txdw3 |=cpu_to_le32(BIT(28)); //PKT_ID
- //printk("%s pattrib->mac_id=%d\n",__FUNCTION__,pattrib->mac_id);
- //printk("%s pattrib->mac_id=%d ptxdesc->txdw1=0x%x,ptxdesc->txdw3=0x%x,\nptxdesc->txdw4=0x%x,ptxdesc->txdw5=0x%x\n",__FUNCTION__,pattrib->mac_id,ptxdesc->txdw1,ptxdesc->txdw3,ptxdesc->txdw4,ptxdesc->txdw5);
- }
- else //use REG_INIDATA_RATE_SEL value
- ptxdesc->txdw5 |= cpu_to_le32(pdmpriv->INIDATA_RATE[pattrib->mac_id]);
- if(pattrib->mac_id==1){
- //bcmc sta
- ptxdesc->txdw5 |= cpu_to_le32(padapter->registrypriv.bcmc_rate);
- ptxdesc->txdw4 |=cpu_to_le32(0x00000100); //USE RATE
- }
- #else //SUPPORT_64_STA
//use REG_INIDATA_RATE_SEL value
ptxdesc->txdw5 |= cpu_to_le32(pdmpriv->INIDATA_RATE[pattrib->mac_id]);
- #endif //SUPPORT_64_STA
+
if(0)//for driver dbg
{
ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
@@ -521,20 +314,13 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
-#ifdef CONFIG_P2P
- // Added by Albert 2011/03/22
- // In the P2P mode, the driver should not support the b mode.
- // So, the Tx packet shouldn't use the CCK rate
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- ptxdesc->txdw5 |= cpu_to_le32( 0x04 ); // Use the 6M data rate.
- }
-#endif //CONFIG_P2P
+ if (pmlmeinfo->preamble_mode == PREAMBLE_SHORT)
+ ptxdesc->txdw4 |= cpu_to_le32(BIT(24));// DATA_SHORT
+ ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
}
//offset 24
-
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
if ( pattrib->hw_tcp_csum == 1 ) {
// ptxdesc->txdw6 = 0; // clear TCP_CHECKSUM and IP_CHECKSUM. It's zero already!!
@@ -559,6 +345,15 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
//fill_txdesc_sectype(pattrib, ptxdesc);
//offset 8
+#ifdef CONFIG_XMIT_ACK
+ //CCX-TXRPT ack for xmit mgmt frames.
+ if (pxmitframe->ack_report) {
+ ptxdesc->txdw2 |= cpu_to_le32(BIT(19));
+ #ifdef DBG_CCX
+ DBG_871X("%s set ccx\n", __func__);
+ #endif
+ }
+#endif //CONFIG_XMIT_ACK
//offset 12
ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum<<16)&0xffff0000);
@@ -569,26 +364,34 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
//offset 20
ptxdesc->txdw5 |= cpu_to_le32(BIT(17));//retry limit enable
if(pattrib->retry_ctrl == _TRUE)
- ptxdesc->txdw5 |= cpu_to_le32(0x00180000);//retry limit = 6
- else
- ptxdesc->txdw5 |= cpu_to_le32(0x00300000);//retry limit = 12
-
-#ifdef CONFIG_P2P
- // Added by Albert 2011/03/17
- // In the P2P mode, the driver should not support the b mode.
- // So, the Tx packet shouldn't use the CCK rate
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
- ptxdesc->txdw5 |= cpu_to_le32( 0x04 ); // Use the 6M data rate.
- }
+#ifdef CONFIG_P2P
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+#ifdef CONFIG_INTEL_WIDI
+ if(padapter->mlmepriv.widi_enable == _TRUE)
+ ptxdesc->txdw5 |= cpu_to_le32(0x00180000);//retry limit = 6
+ else
+#endif //CONFIG_INTEL_WIDI
+ ptxdesc->txdw5 |= cpu_to_le32(0x00080000);//retry limit = 2
+ }
+ else
#endif //CONFIG_P2P
+ ptxdesc->txdw5 |= cpu_to_le32(0x00180000);//retry limit = 6
+ }
+ else
+ ptxdesc->txdw5 |= cpu_to_le32(0x00300000);//retry limit = 12
#ifdef CONFIG_INTEL_PROXIM
if((padapter->proximity.proxim_on==_TRUE)&&(pattrib->intel_proxim==_TRUE)){
printk("\n %s pattrib->rate=%d\n",__FUNCTION__,pattrib->rate);
ptxdesc->txdw5 |= cpu_to_le32( pattrib->rate);
}
+ else
#endif
+ {
+ ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
+ }
}
else if((pxmitframe->frame_tag&0x0f) == TXAGG_FRAMETAG)
{
@@ -618,6 +421,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
ptxdesc->txdw4 |= cpu_to_le32(BIT(8));//driver uses rate
//offset 20
+ ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
}
// 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS.
@@ -647,7 +451,14 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("offset0-txdesc=0x%x\n", ptxdesc->txdw0));
//offset 4
- if(!pull) ptxdesc->txdw1 |= cpu_to_le32((0x01<<26)&0xff000000);//pkt_offset, unit:8 bytes padding
+ // pkt_offset, unit:8 bytes padding
+ if (pxmitframe->pkt_offset > 0)
+ ptxdesc->txdw1 |= cpu_to_le32((pxmitframe->pkt_offset << 26) & 0x7c000000);
+
+#ifdef CONFIG_USB_TX_AGGREGATION
+ if (pxmitframe->agg_num > 1)
+ ptxdesc->txdw5 |= cpu_to_le32((pxmitframe->agg_num << 24) & 0xff000000);
+#endif
rtl8192cu_cal_txdesc_chksum(ptxdesc);
@@ -655,8 +466,10 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
}
-static void _rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe, u8 sync)
+static s32 rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe)
{
+ s32 ret = _SUCCESS;
+ s32 inner_ret = _SUCCESS;
int t, sz, w_sz, pull=0;
u8 *mem_addr;
u32 ff_hwaddr;
@@ -679,6 +492,9 @@ static void _rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe,
for (t = 0; t < pattrib->nr_frags; t++)
{
+ if (inner_ret != _SUCCESS && ret == _SUCCESS)
+ ret = _FAIL;
+
if (t != (pattrib->nr_frags - 1))
{
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("pattrib->nr_frags=%d\n", pattrib->nr_frags));
@@ -691,7 +507,7 @@ static void _rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe,
sz = pattrib->last_txcmdsz;
}
- pull = update_txdesc(pxmitframe, mem_addr, sz);
+ pull = update_txdesc(pxmitframe, mem_addr, sz, _FALSE);
if(pull)
{
@@ -709,10 +525,7 @@ static void _rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe,
ff_hwaddr = rtw_get_ff_hwaddr(pxmitframe);
- if(sync == _TRUE)
- rtw_write_port_sync(padapter, ff_hwaddr, w_sz, (unsigned char*)pxmitbuf);
- else
- rtw_write_port(padapter, ff_hwaddr, w_sz, (unsigned char*)pxmitbuf);
+ inner_ret = rtw_write_port(padapter, ff_hwaddr, w_sz, (unsigned char*)pxmitbuf);
rtw_count_tx_stats(padapter, pxmitframe, sz);
@@ -726,18 +539,12 @@ static void _rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe,
}
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
-
-}
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
-inline void rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe)
-{
- _rtw_dump_xframe(padapter, pxmitframe, _FALSE);
-}
+ if (ret != _SUCCESS)
+ rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_UNKNOWN);
-inline void rtw_dump_xframe_sync(_adapter *padapter, struct xmit_frame *pxmitframe)
-{
- _rtw_dump_xframe(padapter, pxmitframe, _TRUE);
+ return ret;
}
#ifdef CONFIG_USB_TX_AGGREGATION
@@ -767,7 +574,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
struct xmit_frame *pfirstframe = NULL;
// aggregate variable
-// struct hw_xmit *phwxmit;
+ struct hw_xmit *phwxmit;
struct sta_info *psta = NULL;
struct tx_servq *ptxservq = NULL;
@@ -801,7 +608,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
//3 1. pick up first frame
do {
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
pxmitframe = rtw_dequeue_xframe(pxmitpriv, pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry);
if (pxmitframe == NULL) {
@@ -816,7 +623,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
RT_TRACE(_module_rtl8192c_xmit_c_, _drv_err_,
("xmitframe_complete: frame tag(%d) is not DATA_FRAMETAG(%d)!\n",
pxmitframe->frame_tag, DATA_FRAMETAG));
-// rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+// rtw_free_xmitframe(pxmitpriv, pxmitframe);
continue;
}
@@ -826,7 +633,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
RT_TRACE(_module_rtl8192c_xmit_c_, _drv_err_,
("xmitframe_complete: TID(%d) should be 0~15!\n",
pxmitframe->attrib.priority));
-// rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+// rtw_free_xmitframe(pxmitpriv, pxmitframe);
continue;
}
#endif
@@ -838,15 +645,12 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
//pxmitframe->agg_num = 1; // alloc xmitframe should assign to 1.
pxmitframe->pkt_offset = 1; // first frame of aggregation, reserve offset
-#ifdef IDEA_CONDITION
- rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
-#else
- res = rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
- if (res == _FALSE) {
-// rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+
+ if (rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe) == _FALSE) {
+ DBG_871X("%s coalesce 1st xmitframe failed \n",__FUNCTION__);
continue;
}
-#endif
+
// always return ndis_packet after rtw_xmitframe_coalesce
rtw_os_xmit_complete(padapter, pxmitframe);
@@ -876,26 +680,26 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
case 1:
case 2:
ptxservq = &(psta->sta_xmitpriv.bk_q);
-// phwxmit = pxmitpriv->hwxmits + 3;
+ phwxmit = pxmitpriv->hwxmits + 3;
break;
case 4:
case 5:
ptxservq = &(psta->sta_xmitpriv.vi_q);
-// phwxmit = pxmitpriv->hwxmits + 1;
+ phwxmit = pxmitpriv->hwxmits + 1;
break;
case 6:
case 7:
ptxservq = &(psta->sta_xmitpriv.vo_q);
-// phwxmit = pxmitpriv->hwxmits;
+ phwxmit = pxmitpriv->hwxmits;
break;
case 0:
case 3:
default:
ptxservq = &(psta->sta_xmitpriv.be_q);
-// phwxmit = pxmitpriv->hwxmits + 2;
+ phwxmit = pxmitpriv->hwxmits + 2;
break;
}
@@ -913,6 +717,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
rtw_list_delete(&pxmitframe->list);
ptxservq->qcnt--;
+ phwxmit->accnt--;
#ifndef IDEA_CONDITION
// suppose only data frames would be in queue
@@ -920,7 +725,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
RT_TRACE(_module_rtl8192c_xmit_c_, _drv_err_,
("xmitframe_complete: frame tag(%d) is not DATA_FRAMETAG(%d)!\n",
pxmitframe->frame_tag, DATA_FRAMETAG));
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
continue;
}
@@ -930,7 +735,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
RT_TRACE(_module_rtl8192c_xmit_c_, _drv_err_,
("xmitframe_complete: TID(%d) should be 0~15!\n",
pxmitframe->attrib.priority));
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
continue;
}
#endif
@@ -941,24 +746,20 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
pxmitframe->agg_num = 0; // not first frame of aggregation
pxmitframe->pkt_offset = 0; // not first frame of aggregation, no need to reserve offset
-#ifdef IDEA_CONDITION
- rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
-#else
- res = rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
- if (res == _FALSE) {
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ if (rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe) == _FALSE) {
+ DBG_871X("%s coalesce failed \n",__FUNCTION__);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
continue;
}
-#endif
// always return ndis_packet after rtw_xmitframe_coalesce
rtw_os_xmit_complete(padapter, pxmitframe);
// (len - TXDESC_SIZE) == pxmitframe->attrib.last_txcmdsz
- _update_txdesc(pxmitframe, pxmitframe->buf_addr, pxmitframe->attrib.last_txcmdsz);
+ update_txdesc(pxmitframe, pxmitframe->buf_addr, pxmitframe->attrib.last_txcmdsz, _TRUE);
// don't need xmitframe any more
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
// handle pointer and stop condition
pbuf_tail = pbuf + len;
@@ -998,7 +799,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
pfirstframe->pkt_offset = 0;
}
#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
- _update_txdesc(pfirstframe, pfirstframe->buf_addr, pfirstframe->attrib.last_txcmdsz);
+ update_txdesc(pfirstframe, pfirstframe->buf_addr, pfirstframe->attrib.last_txcmdsz, _TRUE);
//3 4. write xmit buffer to USB FIFO
ff_hwaddr = rtw_get_ff_hwaddr(pfirstframe);
@@ -1013,7 +814,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
rtw_count_tx_stats(padapter, pfirstframe, pbuf_tail);
- rtw_free_xmitframe_ex(pxmitpriv, pfirstframe);
+ rtw_free_xmitframe(pxmitpriv, pfirstframe);
return _TRUE;
}
@@ -1063,7 +864,7 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
}
rtw_os_xmit_complete(padapter, pxmitframe);//always return ndis_packet after rtw_xmitframe_coalesce
- }
+ }
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("xmitframe_complete(): rtw_dump_xframe\n"));
@@ -1071,12 +872,12 @@ s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
if(res == _SUCCESS)
{
- rtw_dump_xframe(padapter, pxmitframe);
+ rtw_dump_xframe(padapter, pxmitframe);
}
else
{
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
}
xcnt++;
@@ -1125,15 +926,22 @@ static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe)
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
struct pkt_attrib *pattrib = &pxmitframe->attrib;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
-
+
+
_enter_critical_bh(&pxmitpriv->lock, &irqL);
+
if (rtw_txframes_sta_ac_pending(padapter, pattrib) > 0)
goto enqueue;
- if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE)
+
+ if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
goto enqueue;
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
+ goto enqueue;
+#endif
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
if (pxmitbuf == NULL)
@@ -1147,7 +955,7 @@ static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe)
if (xmitframe_direct(padapter, pxmitframe) != _SUCCESS) {
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
}
return _TRUE;
@@ -1158,7 +966,7 @@ enqueue:
if (res != _SUCCESS) {
RT_TRACE(_module_xmit_osdep_c_, _drv_err_, ("pre_xmitframe: enqueue xmitframe fail\n"));
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
// Trick, make the statistics correct
pxmitpriv->tx_pkts--;
@@ -1169,9 +977,9 @@ enqueue:
return _FALSE;
}
-void rtl8192cu_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe)
+s32 rtl8192cu_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe)
{
- rtw_dump_xframe(padapter, pmgntframe);
+ return rtw_dump_xframe(padapter, pmgntframe);
}
/*
@@ -1184,6 +992,30 @@ s32 rtl8192cu_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe)
return pre_xmitframe(padapter, pxmitframe);
}
+s32 rtl8192cu_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe)
+{
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ s32 err;
+
+ if ((err=rtw_xmitframe_enqueue(padapter, pxmitframe)) != _SUCCESS)
+ {
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
+
+ // Trick, make the statistics correct
+ pxmitpriv->tx_pkts--;
+ pxmitpriv->tx_drop++;
+ }
+ else
+ {
+#ifdef PLATFORM_LINUX
+ tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
+#endif
+ }
+
+ return err;
+
+}
+
#ifdef CONFIG_HOSTAPD_MLME
static void rtl8192cu_hostap_mgnt_xmit_cb(struct urb *urb)
@@ -1193,7 +1025,7 @@ static void rtl8192cu_hostap_mgnt_xmit_cb(struct urb *urb)
//DBG_8192C("%s\n", __FUNCTION__);
- dev_kfree_skb_any(skb);
+ rtw_skb_free(skb);
#endif
}
@@ -1211,7 +1043,7 @@ s32 rtl8192cu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
struct hostapd_priv *phostapdpriv = padapter->phostapdpriv;
struct net_device *pnetdev = padapter->pnetdev;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct dvobj_priv *pdvobj = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
//DBG_8192C("%s\n", __FUNCTION__);
@@ -1226,11 +1058,7 @@ s32 rtl8192cu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
if ((fc & RTW_IEEE80211_FCTL_FTYPE) != RTW_IEEE80211_FTYPE_MGMT)
goto _exit;
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- pxmit_skb = dev_alloc_skb(len + TXDESC_SIZE);
-#else
- pxmit_skb = netdev_alloc_skb(pnetdev, len + TXDESC_SIZE);
-#endif
+ pxmit_skb = rtw_skb_alloc(len + TXDESC_SIZE);
if(!pxmit_skb)
goto _exit;
@@ -1311,7 +1139,7 @@ s32 rtl8192cu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
_exit:
- dev_kfree_skb_any(skb);
+ rtw_skb_free(skb);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c
index 6cac2d5..ff89473 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _HCI_HAL_INIT_C_
#include <drv_conf.h>
@@ -90,7 +90,6 @@ _OneOutEpMapping(
static VOID
_TwoOutEpMapping(
- IN BOOLEAN IsTestChip,
IN HAL_DATA_TYPE *pHalData,
IN BOOLEAN bWIFICfg
)
@@ -106,25 +105,7 @@ _TwoOutEpMapping(
#define HIGH_QUEUE_INX 6
#define TXCMD_QUEUE_INX 7
*/
-
- if(IsTestChip && bWIFICfg){ // test chip && wmm
-
-
- // BK, BE, VI, VO, BCN, CMD,MGT,HIGH,HCCA
- //{ 1, 0, 1, 0, 0, 0, 0, 0, 0 };
- //0:H(end_number=0x02), 1:L (end_number=0x03)
-
- pHalData->Queue2EPNum[0] = pHalData->RtBulkOutPipe[0];//VO
- pHalData->Queue2EPNum[1] = pHalData->RtBulkOutPipe[1];//VI
- pHalData->Queue2EPNum[2] = pHalData->RtBulkOutPipe[0];//BE
- pHalData->Queue2EPNum[3] = pHalData->RtBulkOutPipe[1];//BK
-
- pHalData->Queue2EPNum[4] = pHalData->RtBulkOutPipe[0];//BCN
- pHalData->Queue2EPNum[5] = pHalData->RtBulkOutPipe[0];//MGT
- pHalData->Queue2EPNum[6] = pHalData->RtBulkOutPipe[0];//HIGH
- pHalData->Queue2EPNum[7] = pHalData->RtBulkOutPipe[0];//TXCMD
- }
- else if(!IsTestChip && bWIFICfg){ // Normal chip && wmm
+ if(bWIFICfg){ // Normal chip && wmm
// BK, BE, VI, VO, BCN, CMD,MGT,HIGH,HCCA
//{ 0, 1, 0, 1, 0, 0, 0, 0, 0 };
@@ -202,8 +183,7 @@ static VOID _ThreeOutEpMapping(
static BOOLEAN
_MappingOutEP(
IN PADAPTER pAdapter,
- IN u8 NumOutPipe,
- IN BOOLEAN IsTestChip
+ IN u8 NumOutPipe
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@@ -216,13 +196,9 @@ _MappingOutEP(
switch(NumOutPipe)
{
case 2:
- _TwoOutEpMapping(IsTestChip, pHalData, bWIFICfg);
+ _TwoOutEpMapping(pHalData, bWIFICfg);
break;
- case 3:
- // Test chip doesn't support three out EPs.
- if(IsTestChip){
- return _FALSE;
- }
+ case 3:
_ThreeOutEpMapping(pHalData, bWIFICfg);
break;
case 1:
@@ -238,53 +214,7 @@ _MappingOutEP(
}
static VOID
-_ConfigTestChipOutEP(
- IN PADAPTER pAdapter,
- IN u8 NumOutPipe
- )
-{
- u8 value8,txqsele;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
-
- pHalData->OutEpQueueSel = 0;
- pHalData->OutEpNumber = 0;
-
- value8 = rtw_read8(pAdapter, REG_TEST_SIE_OPTIONAL);
- value8 = (value8 & USB_TEST_EP_MASK) >> USB_TEST_EP_SHIFT;
-
- switch(value8)
- {
- case 0: // 2 bulk OUT, 1 bulk IN
- case 3:
- pHalData->OutEpQueueSel = TX_SELE_HQ | TX_SELE_LQ;
- pHalData->OutEpNumber = 2;
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("EP Config: 2 bulk OUT, 1 bulk IN\n"));
- break;
- case 1: // 1 bulk IN/OUT => map all endpoint to Low queue
- case 2: // 1 bulk IN, 1 bulk OUT => map all endpoint to High queue
- txqsele = rtw_read8(pAdapter, REG_TEST_USB_TXQS);
- if(txqsele & 0x0F){//map all endpoint to High queue
- pHalData->OutEpQueueSel = TX_SELE_HQ;
- }
- else if(txqsele&0xF0){//map all endpoint to Low queue
- pHalData->OutEpQueueSel = TX_SELE_LQ;
- }
- pHalData->OutEpNumber = 1;
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("%s\n", ((1 == value8) ? "1 bulk IN/OUT" : "1 bulk IN, 1 bulk OUT")));
- break;
- default:
- break;
- }
-
- // TODO: Error recovery for this case
- //RT_ASSERT((NumOutPipe == pHalData->OutEpNumber), ("Out EP number isn't match! %d(Descriptor) != %d (SIE reg)\n", (u4Byte)NumOutPipe, (u4Byte)pHalData->OutEpNumber));
-
-}
-
-
-
-static VOID
-_ConfigNormalChipOutEP(
+_ConfigChipOutEP(
IN PADAPTER pAdapter,
IN u8 NumOutPipe
)
@@ -302,7 +232,11 @@ _ConfigNormalChipOutEP(
pHalData->OutEpQueueSel |= TX_SELE_HQ;
pHalData->OutEpNumber++;
}
-
+
+#ifdef CONFIG_USB_ONE_OUT_EP
+ return;
+#endif
+
if((value8 >> USB_NORMAL_SIE_EP_SHIFT) & USB_NORMAL_SIE_EP_MASK){
pHalData->OutEpQueueSel |= TX_SELE_NQ;
pHalData->OutEpNumber++;
@@ -328,38 +262,18 @@ static BOOLEAN HalUsbSetQueuePipeMapping8192CUsb(
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
BOOLEAN result = _FALSE;
- BOOLEAN isNormalChip;
-
- //may be update UPHY Parameter == georgia
-
- // ReadAdapterInfo8192C also call _ReadChipVersion too.
- // Since we need dynamic config EP mapping, so we call this function to get chip version.
- // We can remove _ReadChipVersion from ReadAdapterInfo8192C later.
- //pHalData->VersionID = rtl8192c_ReadChipVersion(pAdapter);
-
- isNormalChip = IS_NORMAL_CHIP(pHalData->VersionID);
-
- if(isNormalChip){
- _ConfigNormalChipOutEP(pAdapter, NumOutPipe);
- }
- else{
- _ConfigTestChipOutEP(pAdapter, NumOutPipe);
- }
+ _ConfigChipOutEP(pAdapter, NumOutPipe);
+ #ifndef CONFIG_USB_ONE_OUT_EP
// Normal chip with one IN and one OUT doesn't have interrupt IN EP.
- if(isNormalChip && (1 == pHalData->OutEpNumber)){
+ if(1 == pHalData->OutEpNumber){
if(1 != NumInPipe){
return result;
}
}
-
- // All config other than above support one Bulk IN and one Interrupt IN.
- //if(2 != NumInPipe){
- // return result;
- //}
-
- result = _MappingOutEP(pAdapter, NumOutPipe, !isNormalChip);
+ #endif
+ result = _MappingOutEP(pAdapter, NumOutPipe);
return result;
@@ -368,7 +282,7 @@ static BOOLEAN HalUsbSetQueuePipeMapping8192CUsb(
void rtl8192cu_interface_configure(_adapter *padapter)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
if (pdvobjpriv->ishighspeed == _TRUE)
{
@@ -399,8 +313,13 @@ void rtl8192cu_interface_configure(_adapter *padapter)
pHalData->UsbRxAggPageTimeout = 0x4; //6, absolute time = 34ms/(2^6)
#endif
- HalUsbSetQueuePipeMapping8192CUsb(padapter,
- pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
+ HalUsbSetQueuePipeMapping8192CUsb(padapter, pdvobjpriv->RtNumInPipes,
+ #ifdef CONFIG_USB_ONE_OUT_EP
+ 1
+ #else
+ pdvobjpriv->RtNumOutPipes
+ #endif
+ );
}
@@ -570,7 +489,6 @@ static void _InitPABias(_adapter *padapter)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
u8 pa_setting;
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
BOOLEAN is92C = IS_92C_SERIAL(pHalData->VersionID);
//FIXED PA current issue
@@ -581,19 +499,19 @@ static void _InitPABias(_adapter *padapter)
if(!(pa_setting & BIT0))
{
- PHY_SetRFReg(padapter, RF90_PATH_A, 0x15, 0x0FFFFF, 0x0F406);
- PHY_SetRFReg(padapter, RF90_PATH_A, 0x15, 0x0FFFFF, 0x4F406);
- PHY_SetRFReg(padapter, RF90_PATH_A, 0x15, 0x0FFFFF, 0x8F406);
- PHY_SetRFReg(padapter, RF90_PATH_A, 0x15, 0x0FFFFF, 0xCF406);
+ PHY_SetRFReg(padapter, RF_PATH_A, 0x15, 0x0FFFFF, 0x0F406);
+ PHY_SetRFReg(padapter, RF_PATH_A, 0x15, 0x0FFFFF, 0x4F406);
+ PHY_SetRFReg(padapter, RF_PATH_A, 0x15, 0x0FFFFF, 0x8F406);
+ PHY_SetRFReg(padapter, RF_PATH_A, 0x15, 0x0FFFFF, 0xCF406);
//RT_TRACE(COMP_INIT, DBG_LOUD, ("PA BIAS path A\n"));
}
- if(!(pa_setting & BIT1) && isNormal && is92C)
+ if(!(pa_setting & BIT1) && is92C)
{
- PHY_SetRFReg(padapter,RF90_PATH_B, 0x15, 0x0FFFFF, 0x0F406);
- PHY_SetRFReg(padapter,RF90_PATH_B, 0x15, 0x0FFFFF, 0x4F406);
- PHY_SetRFReg(padapter,RF90_PATH_B, 0x15, 0x0FFFFF, 0x8F406);
- PHY_SetRFReg(padapter,RF90_PATH_B, 0x15, 0x0FFFFF, 0xCF406);
+ PHY_SetRFReg(padapter,RF_PATH_B, 0x15, 0x0FFFFF, 0x0F406);
+ PHY_SetRFReg(padapter,RF_PATH_B, 0x15, 0x0FFFFF, 0x4F406);
+ PHY_SetRFReg(padapter,RF_PATH_B, 0x15, 0x0FFFFF, 0x8F406);
+ PHY_SetRFReg(padapter,RF_PATH_B, 0x15, 0x0FFFFF, 0xCF406);
//RT_TRACE(COMP_INIT, DBG_LOUD, ("PA BIAS path B\n"));
}
@@ -788,6 +706,11 @@ _SetMacID(
{
u32 i;
for(i=0 ; i< MAC_ADDR_LEN ; i++){
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ rtw_write32(Adapter, REG_MACID1+i, MacID[i]);
+ else
+#endif
rtw_write32(Adapter, REG_MACID+i, MacID[i]);
}
}
@@ -799,6 +722,11 @@ _SetBSSID(
{
u32 i;
for(i=0 ; i< MAC_ADDR_LEN ; i++){
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ rtw_write32(Adapter, REG_BSSID1+i, BSSID[i]);
+ else
+#endif
rtw_write32(Adapter, REG_BSSID+i, BSSID[i]);
}
}
@@ -828,7 +756,6 @@ _InitQueueReservedPage(
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
- BOOLEAN isNormalChip = IS_NORMAL_CHIP(pHalData->VersionID);
u32 outEPNum = (u32)pHalData->OutEpNumber;
u32 numHQ = 0;
@@ -840,64 +767,27 @@ _InitQueueReservedPage(
BOOLEAN bWiFiConfig = pregistrypriv->wifi_spec;
//u32 txQPageNum, txQPageUnit,txQRemainPage;
-#if 0
- if(!pregistrypriv->wifi_spec){
- numPubQ = (isNormalChip) ? NORMAL_PAGE_NUM_PUBQ : TEST_PAGE_NUM_PUBQ;
- //RT_ASSERT((numPubQ < TX_TOTAL_PAGE_NUMBER), ("Public queue page number is great than total tx page number.\n"));
- txQPageNum = TX_TOTAL_PAGE_NUMBER - numPubQ;
-
- //RT_ASSERT((0 == txQPageNum%txQPageNum), ("Total tx page number is not dividable!\n"));
-
- txQPageUnit = txQPageNum/outEPNum;
- txQRemainPage = txQPageNum % outEPNum;
-
- if(pHalData->OutEpQueueSel & TX_SELE_HQ){
- numHQ = txQPageUnit;
- }
- if(pHalData->OutEpQueueSel & TX_SELE_LQ){
- numLQ = txQPageUnit;
- }
- // HIGH priority queue always present in the configuration of 2 or 3 out-ep
- // so ,remainder pages have assigned to High queue
- if((outEPNum>1) && (txQRemainPage)){
- numHQ += txQRemainPage;
- }
-
- // NOTE: This step shall be proceed before writting REG_RQPN.
- if(isNormalChip){
- if(pHalData->OutEpQueueSel & TX_SELE_NQ){
- numNQ = txQPageUnit;
- }
- value8 = (u8)_NPQ(numNQ);
- rtw_write8(Adapter, REG_RQPN_NPQ, value8);
- }
- //RT_ASSERT(((numHQ + numLQ + numNQ + numPubQ) < TX_PAGE_BOUNDARY), ("Total tx page number is greater than tx boundary!\n"));
- }
- else
-#endif
{ //for WMM
//RT_ASSERT((outEPNum>=2), ("for WMM ,number of out-ep must more than or equal to 2!\n"));
- numPubQ = (isNormalChip) ? ((bWiFiConfig)?WMM_NORMAL_PAGE_NUM_PUBQ:NORMAL_PAGE_NUM_PUBQ)
- :WMM_TEST_PAGE_NUM_PUBQ;
-
if(pHalData->OutEpQueueSel & TX_SELE_HQ){
- numHQ = (isNormalChip)?((bWiFiConfig)?WMM_NORMAL_PAGE_NUM_HPQ:NORMAL_PAGE_NUM_HPQ)
- :WMM_TEST_PAGE_NUM_HPQ;
+ numHQ = (bWiFiConfig)?WMM_NORMAL_PAGE_NUM_HPQ:NORMAL_PAGE_NUM_HPQ;
}
if(pHalData->OutEpQueueSel & TX_SELE_LQ){
- numLQ = (isNormalChip)?((bWiFiConfig)?WMM_NORMAL_PAGE_NUM_LPQ:NORMAL_PAGE_NUM_LPQ)
- :WMM_TEST_PAGE_NUM_LPQ;
+ numLQ = (bWiFiConfig)?WMM_NORMAL_PAGE_NUM_LPQ:NORMAL_PAGE_NUM_LPQ;
}
- // NOTE: This step shall be proceed before writting REG_RQPN.
- if(isNormalChip){
- if(pHalData->OutEpQueueSel & TX_SELE_NQ){
- numNQ = (bWiFiConfig)?WMM_NORMAL_PAGE_NUM_NPQ:NORMAL_PAGE_NUM_NPQ;
- }
- value8 = (u8)_NPQ(numNQ);
- rtw_write8(Adapter, REG_RQPN_NPQ, value8);
+ // NOTE: This step shall be proceed before writting REG_RQPN.
+ if(pHalData->OutEpQueueSel & TX_SELE_NQ){
+ numNQ = (bWiFiConfig)?WMM_NORMAL_PAGE_NUM_NPQ:NORMAL_PAGE_NUM_NPQ;
}
+ value8 = (u8)_NPQ(numNQ);
+ rtw_write8(Adapter, REG_RQPN_NPQ, value8);
+
+ if (bWiFiConfig)
+ numPubQ = WMM_NORMAL_TX_TOTAL_PAGE_NUMBER - numHQ - numLQ - numNQ;
+ else
+ numPubQ = TX_TOTAL_PAGE_NUMBER - numHQ - numLQ - numNQ;
}
// TX DMA
@@ -905,48 +795,6 @@ _InitQueueReservedPage(
rtw_write32(Adapter, REG_RQPN, value32);
}
-static void _InitID(IN PADAPTER Adapter)
-{
- int i;
- EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
-
- for(i=0; i<6; i++)
- {
- rtw_write8(Adapter, (REG_MACID+i), pEEPROM->mac_addr[i]);
- }
-
-/*
- NicIFSetMacAddress(Adapter, Adapter->PermanentAddress);
- //Ziv test
-#if 1
- {
- u1Byte sMacAddr[6] = {0};
- u4Byte i;
-
- for(i = 0 ; i < MAC_ADDR_LEN ; i++){
- sMacAddr[i] = PlatformIORead1Byte(Adapter, (REG_MACID + i));
- }
- RT_PRINT_ADDR(COMP_INIT|COMP_EFUSE, DBG_LOUD, "Read back MAC Addr: ", sMacAddr);
- }
-#endif
-
-#if 0
- u4Byte nMAR = 0xFFFFFFFF;
- u8 m_MacID[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06};
- u8 m_BSSID[] = {0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
- int i;
-
- _SetMacID(Adapter, Adapter->PermanentAddress);
- _SetBSSID(Adapter, m_BSSID);
-
- //set MAR
- PlatformIOWrite4Byte(Adapter, REG_MAR, nMAR);
- PlatformIOWrite4Byte(Adapter, REG_MAR+4, nMAR);
-#endif
-*/
-}
-
-
static VOID
_InitTxBufferBoundary(
IN PADAPTER Adapter
@@ -961,8 +809,7 @@ _InitTxBufferBoundary(
txpktbuf_bndy = TX_PAGE_BOUNDARY;
}
else{//for WMM
- txpktbuf_bndy = ( IS_NORMAL_CHIP( pHalData->VersionID))?WMM_NORMAL_TX_PAGE_BOUNDARY
- :WMM_TEST_TX_PAGE_BOUNDARY;
+ txpktbuf_bndy = WMM_NORMAL_TX_PAGE_BOUNDARY;
}
rtw_write8(Adapter, REG_TXPKTBUF_BCNQ_BDNY, txpktbuf_bndy);
@@ -1156,51 +1003,11 @@ _InitNormalChipQueuePriority(
}
static VOID
-_InitTestChipQueuePriority(
- IN PADAPTER Adapter
- )
-{
- u8 hq_sele ;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- struct registry_priv *pregistrypriv = &Adapter->registrypriv;
-
- switch(pHalData->OutEpNumber)
- {
- case 2: // (TX_SELE_HQ|TX_SELE_LQ)
- if(!pregistrypriv->wifi_spec)//typical setting
- hq_sele = HQSEL_VOQ | HQSEL_VIQ | HQSEL_MGTQ | HQSEL_HIQ ;
- else //for WMM
- hq_sele = HQSEL_VOQ | HQSEL_BEQ | HQSEL_MGTQ | HQSEL_HIQ ;
- break;
- case 1:
- if(TX_SELE_LQ == pHalData->OutEpQueueSel ){//map all endpoint to Low queue
- hq_sele = 0;
- }
- else if(TX_SELE_HQ == pHalData->OutEpQueueSel){//map all endpoint to High queue
- hq_sele = HQSEL_VOQ | HQSEL_VIQ | HQSEL_BEQ | HQSEL_BKQ | HQSEL_MGTQ | HQSEL_HIQ ;
- }
- break;
- default:
- //RT_ASSERT(FALSE,("Shall not reach here!\n"));
- break;
- }
- rtw_write8(Adapter, (REG_TRXDMA_CTRL+1), hq_sele);
-}
-
-
-static VOID
_InitQueuePriority(
IN PADAPTER Adapter
)
{
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
-
- if(IS_NORMAL_CHIP( pHalData->VersionID)){
- _InitNormalChipQueuePriority(Adapter);
- }
- else{
- _InitTestChipQueuePriority(Adapter);
- }
+ _InitNormalChipQueuePriority(Adapter);
}
static VOID
@@ -1263,7 +1070,10 @@ _InitWMACSetting(
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
//pHalData->ReceiveConfig = AAP | APM | AM | AB | APP_ICV | ADF | AMF | APP_FCS | HTC_LOC_CTRL | APP_MIC | APP_PHYSTS;
- pHalData->ReceiveConfig = RCR_AAP | RCR_APM | RCR_AM | RCR_AB |RCR_CBSSID_DATA| RCR_CBSSID_BCN| RCR_APP_ICV | RCR_AMF | RCR_HTC_LOC_CTRL | RCR_APP_MIC | RCR_APP_PHYSTS;
+ //pHalData->ReceiveConfig = RCR_AAP | RCR_APM | RCR_AM | RCR_AB |RCR_CBSSID_DATA| RCR_CBSSID_BCN| RCR_APP_ICV | RCR_AMF | RCR_HTC_LOC_CTRL | RCR_APP_MIC | RCR_APP_PHYSTS;
+ // don't turn on AAP, it will allow all packets to driver
+ pHalData->ReceiveConfig = RCR_APM | RCR_AM | RCR_AB |RCR_CBSSID_DATA| RCR_CBSSID_BCN| RCR_APP_ICV | RCR_AMF | RCR_HTC_LOC_CTRL | RCR_APP_MIC | RCR_APP_PHYSTS;
+
#if (0 == RTL8192C_RX_PACKET_NO_INCLUDE_CRC)
pHalData->ReceiveConfig |= ACRC32;
#endif
@@ -1345,10 +1155,15 @@ _InitEDCA(
rtw_write16(Adapter,REG_SPEC_SIFS, 0x100a);
rtw_write16(Adapter,REG_MAC_SPEC_SIFS, 0x100a);
- // Set SIFS for CCK
+ //REG514:SIFS_CCK_CTX
+ //REG515:SIFS_OFDM_CTX
+ //REG516:SIFS_CCK_TRX
+ //REG517:SIFS_OFDM_TRX
+
+ // Set SIFS for CCK_CTS and OFDM_CTX
rtw_write16(Adapter,REG_SIFS_CTX, 0x100a);
- // Set SIFS for OFDM
+ // Set SIFS for CCK_TRX and OFDM_TRX
rtw_write16(Adapter,REG_SIFS_TRX, 0x100a);
// TXOP
@@ -1764,18 +1579,13 @@ _InitBeaconParameters(
// TODO: Remove these magic number
rtw_write16(Adapter, REG_TBTT_PROHIBIT,0x6404);// ms
+
rtw_write8(Adapter, REG_DRVERLYINT, DRIVER_EARLY_INT_TIME);// 5ms
rtw_write8(Adapter, REG_BCNDMATIM, BCN_DMA_ATIME_INT_TIME); // 2ms
// Suggested by designer timchen. Change beacon AIFS to the largest number
// beacause test chip does not contension before sending beacon. by tynli. 2009.11.03
- if(IS_NORMAL_CHIP( pHalData->VersionID)){
- rtw_write16(Adapter, REG_BCNTCFG, 0x660F);
- }
- else{
- rtw_write16(Adapter, REG_BCNTCFG, 0x66FF);
- }
-
+ rtw_write16(Adapter, REG_BCNTCFG, 0x660F);
}
static VOID
@@ -1825,29 +1635,11 @@ _BeaconFunctionEnable(
IN BOOLEAN Linked
)
{
-#if 0
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- u8 value8 = 0;
-
- //value8 = Enable ? (EN_BCN_FUNCTION | EN_TXBCN_RPT) : EN_BCN_FUNCTION;
-
- if(_FALSE == Linked){
- if(IS_NORMAL_CHIP( pHalData->VersionID)){
- value8 |= DIS_TSF_UDT0_NORMAL_CHIP;
- }
- else{
- value8 |= DIS_TSF_UDT0_TEST_CHIP;
- }
- }
-
- rtw_write8(Adapter, REG_BCN_CTRL, value8);
-#else
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
//SetBcnCtrlReg(Adapter, (BIT4 | BIT3 | BIT1), 0x00);
//RT_TRACE(COMP_BEACON, DBG_LOUD, ("_BeaconFunctionEnable 0x550 0x%x\n", PlatformEFIORead1Byte(Adapter, 0x550)));
rtw_write8(Adapter, REG_RD_CTRL+1, 0x6F);
-#endif
}
@@ -1882,7 +1674,7 @@ static VOID _RfPowerSave(
MgntActSet_RF_State(Adapter, eRfOff, RF_CHANGE_BY_SW);
// Those action will be discard in MgntActSet_RF_State because off the same state
for(eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, 0x4, 0xC00, 0x0);
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, 0x4, 0xC00, 0x0);
}
else if(pMgntInfo->RfOffReason > RF_CHANGE_BY_PS){ // H/W or S/W RF OFF before sleep.
RT_TRACE((COMP_INIT|COMP_RF), DBG_LOUD, ("InitializeAdapter8192CUsb(): Turn off RF for RfOffReason(%ld).\n", pMgntInfo->RfOffReason));
@@ -1970,7 +1762,7 @@ HalDetectSelectiveSuspendMode(
{
u8 tmpvalue;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- struct dvobj_priv *pdvobjpriv = &Adapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(Adapter);
// If support HW radio detect, we need to enable WOL ability, otherwise, we
// can not use FW to notify host the power state switch.
@@ -2089,7 +1881,6 @@ u32 rtl8192cu_hal_init(PADAPTER Adapter)
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv;
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
- u8 isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
u8 is92C = IS_92C_SERIAL(pHalData->VersionID);
rt_rf_power_state eRfPowerStateToSet;
#ifdef CONFIG_BT_COEXIST
@@ -2244,7 +2035,6 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_DOWNLOAD_FW);
//HalDetectPwrDownMode(Adapter);
// 2010/08/26 MH If Efuse does not support sective suspend then disable the function.
//HalDetectSelectiveSuspendMode(Adapter);
-
// Set RF type for BB/RF configuration
_InitRFType(Adapter);//->_ReadRFType()
@@ -2258,8 +2048,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_INIT_LLTT);
boundary = TX_PAGE_BOUNDARY;
}
else{// for WMM
- boundary = (IS_NORMAL_CHIP(pHalData->VersionID)) ?WMM_NORMAL_TX_PAGE_BOUNDARY
- :WMM_TEST_TX_PAGE_BOUNDARY;
+ boundary = WMM_NORMAL_TX_PAGE_BOUNDARY;
}
status = InitLLTTable(Adapter, boundary);
if(status == _FAIL){
@@ -2281,7 +2070,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC02);
_InitDriverInfoSize(Adapter, DRVINFO_SZ);
_InitInterrupt(Adapter);
- _InitID(Adapter);//set mac_address
+ hal_init_macaddr(Adapter);//set mac_address
_InitNetworkType(Adapter);//set msr
_InitWMACSetting(Adapter);
_InitAdaptiveCtrl(Adapter);
@@ -2340,16 +2129,16 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_RF);
if(IS_VENDOR_UMC_A_CUT(pHalData->VersionID) && !IS_92C_SERIAL(pHalData->VersionID))
{
- PHY_SetRFReg(Adapter, RF90_PATH_A, RF_RX_G1, bMaskDWord, 0x30255);
- PHY_SetRFReg(Adapter, RF90_PATH_A, RF_RX_G2, bMaskDWord, 0x50a00);
+ PHY_SetRFReg(Adapter, RF_PATH_A, RF_RX_G1, bMaskDWord, 0x30255);
+ PHY_SetRFReg(Adapter, RF_PATH_A, RF_RX_G2, bMaskDWord, 0x50a00);
}
#endif
//
// Joseph Note: Keep RfRegChnlVal for later use.
//
- pHalData->RfRegChnlVal[0] = PHY_QueryRFReg(Adapter, (RF90_RADIO_PATH_E)0, RF_CHNLBW, bRFRegOffsetMask);
- pHalData->RfRegChnlVal[1] = PHY_QueryRFReg(Adapter, (RF90_RADIO_PATH_E)1, RF_CHNLBW, bRFRegOffsetMask);
+ pHalData->RfRegChnlVal[0] = PHY_QueryRFReg(Adapter, (RF_RADIO_PATH_E)0, RF_CHNLBW, bRFRegOffsetMask);
+ pHalData->RfRegChnlVal[1] = PHY_QueryRFReg(Adapter, (RF_RADIO_PATH_E)1, RF_CHNLBW, bRFRegOffsetMask);
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_TURN_ON_BLOCK);
_BBTurnOnBlock(Adapter);
@@ -2424,7 +2213,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC11);
// Those action will be discard in MgntActSet_RF_State because off the same state
//for(eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
- //PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, 0x4, 0xC00, 0x0);
+ //PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, 0x4, 0xC00, 0x0);
}
else if(pwrctrlpriv->rfoff_reason > RF_CHANGE_BY_PS)
{ // H/W or S/W RF OFF before sleep.
@@ -2462,7 +2251,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC11);
pwrctrlpriv->rfoff_reason = 0;
pwrctrlpriv->b_hw_radio_off = _FALSE;
pwrctrlpriv->rf_pwrstate = rf_on;
- rtw_led_control(Adapter, LED_CTL_POWER_ON);
+ rtw_led_control(Adapter, LED_CTL_POWER_ON);
}
@@ -2478,7 +2267,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC11);
// our HW will be set in power-down mode if PDn source from all functions are configured.
// 2010.10.06.
//
- //if(IS_HARDWARE_TYPE_8723U(Adapter))
+ //if(IS_HARDWARE_TYPE_8723AU(Adapter))
//{
// u1bTmp = rtw_read8(Adapter, REG_MULTI_FUNC_CTRL);
// rtw_write8(Adapter, REG_MULTI_FUNC_CTRL, (u1bTmp|WL_HWPDN_EN));
@@ -2572,23 +2361,20 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_INIT_HAL_DM);
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC31);
rtw_write8(Adapter, 0x15, 0xe9);//suggest by Johnny for lower temperature
+
+ rtw_write8(Adapter, 0xc87, 0x50);//suggest by Jackson for CCA
+
//_dbg_dump_macreg(padapter);
- //misc
- {
- int i;
- u8 mac_addr[6];
- for(i=0; i<6; i++)
- {
- mac_addr[i] = rtw_read8(Adapter, REG_MACID+i);
- }
-
- DBG_8192C("MAC Address from REG_MACID = "MAC_FMT"\n", MAC_ARG(mac_addr));
- }
+ rtw_write16(Adapter, REG_BCN_CTRL, 0x1818); // For 2 PORT TSF SYNC
+
+
+
+#ifdef CONFIG_XMIT_ACK
+ //ack for xmit mgmt frames.
+ rtw_write32(Adapter, REG_FWHW_TXQ_CTRL, rtw_read32(Adapter, REG_FWHW_TXQ_CTRL)|BIT(12));
+#endif //CONFIG_XMIT_ACK
-#ifdef CONFIG_ENABLE_NOTCH_FILTER
- rtw_write8(Adapter, 0xc41, 0x42);
-#endif
exit:
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_END);
@@ -2616,11 +2402,6 @@ _func_exit_;
#define SYNC_SD7_20110802_phy_SsPwrSwitch92CU
#ifdef SYNC_SD7_20110802_phy_SsPwrSwitch92CU
-#define PlatformEFIOWrite1Byte rtw_write8
-#define PlatformEFIOWrite2Byte rtw_write16
-#define PlatformEFIORead1Byte rtw_read8
-#define delay_ms rtw_mdelay_os
-#define u1Byte u8
VOID
phy_SsPwrSwitch92CU(
@@ -2630,7 +2411,7 @@ phy_SsPwrSwitch92CU(
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- u1Byte value8;
+ u8 value8;
switch( eRFPowerState )
{
@@ -2641,8 +2422,8 @@ phy_SsPwrSwitch92CU(
//WriteXBYTE(REG_SYS_CLKR+1, ReadXBYTE(REG_SYS_CLKR+1) | BIT(3));
// 2. Force PWM, Enable SPS18_LDO_Marco_Block
- PlatformEFIOWrite1Byte(Adapter, REG_SPS0_CTRL,
- PlatformEFIORead1Byte(Adapter, REG_SPS0_CTRL) | (BIT0|BIT3));
+ rtw_write8(Adapter, REG_SPS0_CTRL,
+ rtw_read8(Adapter, REG_SPS0_CTRL) | (BIT0|BIT3));
// 3. restore BB, AFE control register.
//RF
@@ -2664,27 +2445,27 @@ phy_SsPwrSwitch92CU(
// 4. issue 3-wire command that RF set to Rx idle mode. This is used to re-write the RX idle mode.
// We can only prvide a usual value instead and then HW will modify the value by itself.
- PHY_SetRFReg(Adapter,RF90_PATH_A, 0, bRFRegOffsetMask,0x32D95);
+ PHY_SetRFReg(Adapter,RF_PATH_A, 0, bRFRegOffsetMask,0x32D95);
if (pHalData->rf_type == RF_2T2R)
{
- PHY_SetRFReg(Adapter,RF90_PATH_B, 0, bRFRegOffsetMask,0x32D95);
+ PHY_SetRFReg(Adapter,RF_PATH_B, 0, bRFRegOffsetMask,0x32D95);
}
}
else // Level 2 or others.
{
//h. AFE_PLL_CTRL 0x28[7:0] = 0x80 //disable AFE PLL
- PlatformEFIOWrite1Byte(Adapter, REG_AFE_PLL_CTRL, 0x81);
+ rtw_write8(Adapter, REG_AFE_PLL_CTRL, 0x81);
// i. AFE_XTAL_CTRL 0x24[15:0] = 0x880F //gated AFE DIG_CLOCK
- PlatformEFIOWrite2Byte(Adapter, REG_AFE_XTAL_CTRL, 0x800F);
- delay_ms(1);
+ rtw_write16(Adapter, REG_AFE_XTAL_CTRL, 0x800F);
+ rtw_mdelay_os(1);
// 1. Enable MAC Clock. Can not be enabled now.
//WriteXBYTE(REG_SYS_CLKR+1, ReadXBYTE(REG_SYS_CLKR+1) | BIT(3));
// 2. Force PWM, Enable SPS18_LDO_Marco_Block
- PlatformEFIOWrite1Byte(Adapter, REG_SPS0_CTRL,
- PlatformEFIORead1Byte(Adapter, REG_SPS0_CTRL) | (BIT0|BIT3));
+ rtw_write8(Adapter, REG_SPS0_CTRL,
+ rtw_read8(Adapter, REG_SPS0_CTRL) | (BIT0|BIT3));
// 3. restore BB, AFE control register.
//RF
@@ -2703,10 +2484,10 @@ phy_SsPwrSwitch92CU(
// 4. issue 3-wire command that RF set to Rx idle mode. This is used to re-write the RX idle mode.
// We can only prvide a usual value instead and then HW will modify the value by itself.
- PHY_SetRFReg(Adapter,RF90_PATH_A, 0, bRFRegOffsetMask,0x32D95);
+ PHY_SetRFReg(Adapter,RF_PATH_A, 0, bRFRegOffsetMask,0x32D95);
if (pHalData->rf_type == RF_2T2R)
{
- PHY_SetRFReg(Adapter,RF90_PATH_B, 0, bRFRegOffsetMask,0x32D95);
+ PHY_SetRFReg(Adapter,RF_PATH_B, 0, bRFRegOffsetMask,0x32D95);
}
// 5. gated MAC Clock
@@ -2714,23 +2495,24 @@ phy_SsPwrSwitch92CU(
//PlatformEFIOWrite1Byte(Adapter, REG_SYS_CLKR+1, PlatformEFIORead1Byte(Adapter, REG_SYS_CLKR+1)|(BIT3));
{
- //u1Byte eRFPath = RF90_PATH_A,value8 = 0, retry = 0;
- u1Byte bytetmp;
- //PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, 0x0, bMaskByte0, 0x0);
+ //u8 eRFPath = RF_PATH_A,value8 = 0, retry = 0;
+ u8 bytetmp;
+ //PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, 0x0, bMaskByte0, 0x0);
// 2010/08/12 MH Add for B path under SS test.
//if (pHalData->RF_Type == RF_2T2R)
- //PHY_SetRFReg(Adapter, RF90_PATH_B, 0x0, bMaskByte0, 0x0);
+ //PHY_SetRFReg(Adapter, RF_PATH_B, 0x0, bMaskByte0, 0x0);
- bytetmp = PlatformEFIORead1Byte(Adapter, REG_APSD_CTRL);
- PlatformEFIOWrite1Byte(Adapter, REG_APSD_CTRL, bytetmp & ~BIT6);
+ bytetmp = rtw_read8(Adapter, REG_APSD_CTRL);
+ rtw_write8(Adapter, REG_APSD_CTRL, bytetmp & ~BIT6);
- delay_ms(10);
+ rtw_mdelay_os(10);
// Set BB reset at first
- PlatformEFIOWrite1Byte(Adapter, REG_SYS_FUNC_EN, 0x17 );//0x16
-
+ rtw_write8(Adapter, REG_SYS_FUNC_EN, 0x17 );//0x16
+ //undo clock gated
+ rtw_write32(Adapter, rFPGA0_XCD_RFParameter, rtw_read32(Adapter, rFPGA0_XCD_RFParameter)&(~BIT31));
// Enable TX
- PlatformEFIOWrite1Byte(Adapter, REG_TXPAUSE, 0x0);
+ rtw_write8(Adapter, REG_TXPAUSE, 0x0);
}
//Adapter->HalFunc.InitializeAdapterHandler(Adapter, Adapter->MgntInfo.dot11CurrentChannelNumber);
//CardSelectiveSuspendLeave(Adapter);
@@ -2740,14 +2522,14 @@ phy_SsPwrSwitch92CU(
case rf_sleep:
case rf_off:
- value8 = PlatformEFIORead1Byte(Adapter, REG_SPS0_CTRL) ;
+ value8 = rtw_read8(Adapter, REG_SPS0_CTRL) ;
if (IS_81xxC_VENDOR_UMC_B_CUT(pHalData->VersionID))
value8 &= ~(BIT0);
else
value8 &= ~(BIT0|BIT3);
if (bRegSSPwrLvl == 1)
{
- RT_TRACE(COMP_POWER, DBG_LOUD, ("SS LVL1\n"));
+ //RT_TRACE(COMP_POWER, DBG_LOUD, ("SS LVL1\n"));
// Disable RF and BB only for SelectSuspend.
// 1. Set BB/RF to shutdown.
@@ -2777,39 +2559,40 @@ phy_SsPwrSwitch92CU(
PHY_SetBBReg(Adapter, rRx_Wait_CCA, bMaskDWord ,0x001B25A0);
// 3. issue 3-wire command that RF set to power down.
- PHY_SetRFReg(Adapter,RF90_PATH_A, 0, bRFRegOffsetMask,0);
+ PHY_SetRFReg(Adapter,RF_PATH_A, 0, bRFRegOffsetMask,0);
if (pHalData->rf_type == RF_2T2R)
{
- PHY_SetRFReg(Adapter,RF90_PATH_B, 0, bRFRegOffsetMask,0);
+ PHY_SetRFReg(Adapter,RF_PATH_B, 0, bRFRegOffsetMask,0);
}
// 4. Force PFM , disable SPS18_LDO_Marco_Block
- PlatformEFIOWrite1Byte(Adapter, REG_SPS0_CTRL, value8);
+ rtw_write8(Adapter, REG_SPS0_CTRL, value8);
// 5. gated MAC Clock
//WriteXBYTE(REG_SYS_CLKR+1, ReadXBYTE(REG_SYS_CLKR+1) & ~(BIT(3)));
}
else // Level 2 or others.
{
- RT_TRACE(COMP_POWER, DBG_LOUD, ("SS LVL2\n"));
+ //RT_TRACE(COMP_POWER, DBG_LOUD, ("SS LVL2\n"));
{
- u1Byte eRFPath = RF90_PATH_A,value8 = 0;
- PlatformEFIOWrite1Byte(Adapter, REG_TXPAUSE, 0xFF);
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, 0x0, bMaskByte0, 0x0);
+ u8 eRFPath = RF_PATH_A,value8 = 0;
+ rtw_write8(Adapter, REG_TXPAUSE, 0xFF);
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, 0x0, bMaskByte0, 0x0);
// 2010/08/12 MH Add for B path under SS test.
//if (pHalData->RF_Type == RF_2T2R)
- //PHY_SetRFReg(Adapter, RF90_PATH_B, 0x0, bMaskByte0, 0x0);
+ //PHY_SetRFReg(Adapter, RF_PATH_B, 0x0, bMaskByte0, 0x0);
value8 |= APSDOFF;
- PlatformEFIOWrite1Byte(Adapter, REG_APSD_CTRL, value8);//0x40
+ rtw_write8(Adapter, REG_APSD_CTRL, value8);//0x40
// After switch APSD, we need to delay for stability
- delay_ms(10);
-
+ rtw_mdelay_os(10);
+ //before BB reset should do clock gated
+ rtw_write32(Adapter, rFPGA0_XCD_RFParameter, rtw_read32(Adapter, rFPGA0_XCD_RFParameter)|(BIT31));
// Set BB reset at first
value8 = 0 ;
value8 |=( FEN_USBD | FEN_USBA | FEN_BB_GLB_RSTn);
- PlatformEFIOWrite1Byte(Adapter, REG_SYS_FUNC_EN,value8 );//0x16
+ rtw_write8(Adapter, REG_SYS_FUNC_EN,value8 );//0x16
}
// Disable RF and BB only for SelectSuspend.
@@ -2841,22 +2624,22 @@ phy_SsPwrSwitch92CU(
PHY_SetBBReg(Adapter, rRx_Wait_CCA, bMaskDWord ,0x001B25A0);
// 3. issue 3-wire command that RF set to power down.
- PHY_SetRFReg(Adapter,RF90_PATH_A, 0, bRFRegOffsetMask,0);
+ PHY_SetRFReg(Adapter,RF_PATH_A, 0, bRFRegOffsetMask,0);
if (pHalData->rf_type == RF_2T2R)
{
- PHY_SetRFReg(Adapter,RF90_PATH_B, 0, bRFRegOffsetMask,0);
+ PHY_SetRFReg(Adapter,RF_PATH_B, 0, bRFRegOffsetMask,0);
}
// 4. Force PFM , disable SPS18_LDO_Marco_Block
- PlatformEFIOWrite1Byte(Adapter, REG_SPS0_CTRL, value8);
+ rtw_write8(Adapter, REG_SPS0_CTRL, value8);
// 2010/10/13 MH/Isaachsu exchange sequence.
//h. AFE_PLL_CTRL 0x28[7:0] = 0x80 //disable AFE PLL
- PlatformEFIOWrite1Byte(Adapter, REG_AFE_PLL_CTRL, 0x80);
- delay_ms(1);
+ rtw_write8(Adapter, REG_AFE_PLL_CTRL, 0x80);
+ rtw_mdelay_os(1);
// i. AFE_XTAL_CTRL 0x24[15:0] = 0x880F //gated AFE DIG_CLOCK
- PlatformEFIOWrite2Byte(Adapter, REG_AFE_XTAL_CTRL, 0xA80F);
+ rtw_write16(Adapter, REG_AFE_XTAL_CTRL, 0xA80F);
// 5. gated MAC Clock
//WriteXBYTE(REG_SYS_CLKR+1, ReadXBYTE(REG_SYS_CLKR+1) & ~(BIT(3)));
@@ -2928,11 +2711,11 @@ _ResetFWDownloadRegister(
IN PADAPTER Adapter
)
{
- u8 value8;
+ u32 value32;
- value8 = rtw_read8(Adapter, REG_MCUFWDL);
- value8 &= ~(MCUFWDL_EN | MCUFWDL_RDY);
- rtw_write8(Adapter, REG_MCUFWDL, value8);
+ value32 = rtw_read32(Adapter, REG_MCUFWDL);
+ value32 &= ~(MCUFWDL_EN | MCUFWDL_RDY);
+ rtw_write32(Adapter, REG_MCUFWDL, value32);
//RT_TRACE(COMP_INIT, DBG_LOUD, ("Reset FW download register.\n"));
}
@@ -2980,7 +2763,9 @@ _ResetBB(
)
{
u16 value16;
-
+
+ //before BB reset should do clock gated
+ rtw_write32(Adapter, rFPGA0_XCD_RFParameter, rtw_read32(Adapter, rFPGA0_XCD_RFParameter)|(BIT31));
//reset BB
value16 = rtw_read16(Adapter, REG_SYS_FUNC_EN);
value16 &= ~(FEN_BBRSTB | FEN_BB_GLB_RSTn);
@@ -3072,11 +2857,12 @@ e. SYS_FUNC_EN 0x02[7:0] = 0x14 //reset BB state machine
***************************************/
u8 eRFPath = 0,value8 = 0;
rtw_write8(Adapter, REG_TXPAUSE, 0xFF);
- PHY_SetRFReg(Adapter, (RF90_RADIO_PATH_E)eRFPath, 0x0, bMaskByte0, 0x0);
+ PHY_SetRFReg(Adapter, (RF_RADIO_PATH_E)eRFPath, 0x0, bMaskByte0, 0x0);
value8 |= APSDOFF;
rtw_write8(Adapter, REG_APSD_CTRL, value8);//0x40
-
+ //before BB reset should do clock gated
+ rtw_write32(Adapter, rFPGA0_XCD_RFParameter, rtw_read32(Adapter, rFPGA0_XCD_RFParameter)|(BIT31));
value8 = 0 ;
value8 |=( FEN_USBD | FEN_USBA | FEN_BB_GLB_RSTn);
rtw_write8(Adapter, REG_SYS_FUNC_EN,value8 );//0x16
@@ -3435,7 +3221,7 @@ unsigned int rtl8192cu_inirp_init(PADAPTER Adapter)
u8 i;
struct recv_buf *precvbuf;
uint status;
- struct dvobj_priv *pdev=&Adapter->dvobjpriv;
+ struct dvobj_priv *pdev = adapter_to_dvobj(Adapter);
struct intf_hdl * pintfhdl=&Adapter->iopriv.intf;
struct recv_priv *precvpriv = &(Adapter->recvpriv);
u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
@@ -3498,69 +3284,6 @@ unsigned int rtl8192cu_inirp_deinit(PADAPTER Adapter)
return _SUCCESS;
}
-//-------------------------------------------------------------------------
-//
-// Channel Plan
-//
-//-------------------------------------------------------------------------
-
-static VOID
-ReadChannelPlan(
- IN PADAPTER Adapter,
- IN u8* PROMContent,
- IN BOOLEAN AutoLoadFail
- )
-{
-
-#define EEPROM_TEST_CHANNEL_PLAN (0x7D)
-#define EEPROM_NORMAL_CHANNEL_PLAN (0x75)
-
- struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
- struct registry_priv *pregistrypriv = &Adapter->registrypriv;
- u8 channelPlan;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
-
- if(AutoLoadFail){
- channelPlan = CHPL_FCC;
- }
- else{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- channelPlan = PROMContent[EEPROM_NORMAL_CHANNEL_PLAN];
- else
- channelPlan = PROMContent[EEPROM_TEST_CHANNEL_PLAN];
- }
-
- if((pregistrypriv->channel_plan>= RT_CHANNEL_DOMAIN_MAX) || (channelPlan & EEPROM_CHANNEL_PLAN_BY_HW_MASK))
- {
- pmlmepriv->ChannelPlan = _HalMapChannelPlan8192C(Adapter, (channelPlan & (~(EEPROM_CHANNEL_PLAN_BY_HW_MASK))));
- //pMgntInfo->bChnlPlanFromHW = (channelPlan & EEPROM_CHANNEL_PLAN_BY_HW_MASK) ? _TRUE : _FALSE; // User cannot change channel plan.
- }
- else
- {
- pmlmepriv->ChannelPlan = (RT_CHANNEL_DOMAIN)pregistrypriv->channel_plan;
- }
-
-#if 0 //todo:
- switch(pMgntInfo->ChannelPlan)
- {
- case RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN:
- {
- PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(pMgntInfo);
-
- pDot11dInfo->bEnabled = _TRUE;
- }
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("Enable dot11d when RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN!\n"));
- break;
- }
-#endif
-
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("RegChannelPlan(%d) EEPROMChannelPlan(%ld)", pMgntInfo->RegChannelPlan, (u4Byte)channelPlan));
- //RT_TRACE(COMP_INIT, DBG_LOUD, ("ChannelPlan = %d\n" , pMgntInfo->ChannelPlan));
-
- MSG_8192C("RT_ChannelPlan: 0x%02x\n", pmlmepriv->ChannelPlan);
-
-}
-
//-------------------------------------------------------------------------
//
@@ -3581,7 +3304,7 @@ _ReadPowerValueFromPROM(
if(AutoLoadFail){
for(group = 0 ; group < CHANNEL_GROUP_MAX ; group++){
- for(rfPath = 0 ; rfPath < RF90_PATH_MAX ; rfPath++){
+ for(rfPath = 0 ; rfPath < RF_PATH_MAX ; rfPath++){
pwrInfo->CCKIndex[rfPath][group] = EEPROM_Default_TxPowerLevel;
pwrInfo->HT40_1SIndex[rfPath][group] = EEPROM_Default_TxPowerLevel;
pwrInfo->HT40_2SIndexDiff[rfPath][group]= EEPROM_Default_HT40_2SDiff;
@@ -3598,7 +3321,7 @@ _ReadPowerValueFromPROM(
return;
}
- for(rfPath = 0 ; rfPath < RF90_PATH_MAX ; rfPath++){
+ for(rfPath = 0 ; rfPath < RF_PATH_MAX ; rfPath++){
for(group = 0 ; group < CHANNEL_GROUP_MAX ; group++){
eeAddr = EEPROM_CCK_TX_PWR_INX + (rfPath * 3) + group;
pwrInfo->CCKIndex[rfPath][group] = PROMContent[eeAddr];
@@ -3609,7 +3332,7 @@ _ReadPowerValueFromPROM(
}
for(group = 0 ; group < CHANNEL_GROUP_MAX ; group++){
- for(rfPath = 0 ; rfPath < RF90_PATH_MAX ; rfPath++){
+ for(rfPath = 0 ; rfPath < RF_PATH_MAX ; rfPath++){
pwrInfo->HT40_2SIndexDiff[rfPath][group] =
(PROMContent[EEPROM_HT40_2S_TX_PWR_INX_DIFF + group] >> (rfPath * 4)) & 0xF;
@@ -3675,7 +3398,7 @@ ReadTxPowerInfo(
if(!AutoLoadFail)
pHalData->bTXPowerDataReadFromEEPORM = _TRUE;
- for(rfPath = 0 ; rfPath < RF90_PATH_MAX ; rfPath++){
+ for(rfPath = 0 ; rfPath < RF_PATH_MAX ; rfPath++){
for(ch = 0 ; ch < CHANNEL_MAX_NUMBER ; ch++){
group = _GetChannelGroup(ch);
@@ -3696,7 +3419,7 @@ ReadTxPowerInfo(
#if DBG
- for(rfPath = 0 ; rfPath < RF90_PATH_MAX ; rfPath++){
+ for(rfPath = 0 ; rfPath < RF_PATH_MAX ; rfPath++){
for(ch = 0 ; ch < CHANNEL_MAX_NUMBER ; ch++){
RTPRINT(FINIT, INIT_TxPower,
("RF(%d)-Ch(%d) [CCK / HT40_1S / HT40_2S] = [0x%x / 0x%x / 0x%x]\n",
@@ -3708,19 +3431,19 @@ ReadTxPowerInfo(
}
for(ch = 0 ; ch < CHANNEL_MAX_NUMBER ; ch++){
- RTPRINT(FINIT, INIT_TxPower, ("RF-A Ht20 to HT40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrHt20Diff[RF90_PATH_A][ch]));
+ RTPRINT(FINIT, INIT_TxPower, ("RF-A Ht20 to HT40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrHt20Diff[RF_PATH_A][ch]));
}
for(ch = 0 ; ch < CHANNEL_MAX_NUMBER ; ch++){
- RTPRINT(FINIT, INIT_TxPower, ("RF-A Legacy to Ht40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrLegacyHtDiff[RF90_PATH_A][ch]));
+ RTPRINT(FINIT, INIT_TxPower, ("RF-A Legacy to Ht40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrLegacyHtDiff[RF_PATH_A][ch]));
}
for(ch = 0 ; ch < CHANNEL_MAX_NUMBER ; ch++){
- RTPRINT(FINIT, INIT_TxPower, ("RF-B Ht20 to HT40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrHt20Diff[RF90_PATH_B][ch]));
+ RTPRINT(FINIT, INIT_TxPower, ("RF-B Ht20 to HT40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrHt20Diff[RF_PATH_B][ch]));
}
for(ch = 0 ; ch < CHANNEL_MAX_NUMBER ; ch++){
- RTPRINT(FINIT, INIT_TxPower, ("RF-B Legacy to HT40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrLegacyHtDiff[RF90_PATH_B][ch]));
+ RTPRINT(FINIT, INIT_TxPower, ("RF-B Legacy to HT40 Diff[%d] = 0x%x\n", ch, pHalData->TxPwrLegacyHtDiff[RF_PATH_B][ch]));
}
#endif
@@ -3786,8 +3509,6 @@ _ReadIDs(
pHalData->CustomerID = RT_CID_DLINK;
else if((pHalData->EEPROMVID == 0x2001) && (pHalData->EEPROMPID == 0x330a))
pHalData->CustomerID = RT_CID_DLINK;
- else if((pHalData->EEPROMVID == 0x2001) && (pHalData->EEPROMPID == 0x330d))
- pHalData->CustomerID = RT_CID_DLINK;
break;
case EEPROM_CID_WHQL:
/*
@@ -3854,31 +3575,8 @@ _ReadBoardType(
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- BOOLEAN isNormal = IS_NORMAL_CHIP(pHalData->VersionID);
u32 value32;
u8 boardType = BOARD_USB_DONGLE;
-#if 0
- if(isNormal)
- {
- value32 = rtw_read32(Adapter, REG_HPON_FSM);
-
- DBG_8192C("first value 0x%x BoardType after 0x%x \n", CHIP_BONDING_IDENTIFIER(value32), pHalData->BoardType);
-
- if(!IS_92C_SERIAL(pHalData->VersionID))
- {
- if(CHIP_BONDING_IDENTIFIER(value32) == CHIP_BONDING_88C_USB_MCARD)
- {
- pHalData->BoardType = BOARD_MINICARD;
- DBG_8192C("value 0x%x BoardType after 0x%x \n", CHIP_BONDING_IDENTIFIER(value32), pHalData->BoardType);
- }
- else if(CHIP_BONDING_IDENTIFIER(value32) == CHIP_BONDING_88C_USB_HP)
- {
- pHalData->BoardType = BOARD_USB_High_PA;
- DBG_8192C("value 0x%x BoardType after 0x%x \n", CHIP_BONDING_IDENTIFIER(value32), pHalData->BoardType);
- }
- }
- }
-#endif
if(AutoloadFail){
if(IS_8723_SERIES(pHalData->VersionID))
@@ -3891,17 +3589,9 @@ _ReadBoardType(
return;
}
- if(isNormal)
- {
- boardType = PROMContent[EEPROM_NORMAL_BoardType];
- boardType &= BOARD_TYPE_NORMAL_MASK;//bit[7:5]
- boardType >>= 5;
- }
- else
- {
- boardType = PROMContent[EEPROM_RF_OPT4];
- boardType &= BOARD_TYPE_TEST_MASK;
- }
+ boardType = PROMContent[EEPROM_NORMAL_BoardType];
+ boardType &= BOARD_TYPE_NORMAL_MASK;//bit[7:5]
+ boardType >>= 5;
pHalData->BoardType = boardType;
MSG_8192C("_ReadBoardType(%x)\n",pHalData->BoardType);
@@ -4145,7 +3835,7 @@ readAdapterInfo_8192CU(
rtl8192c_ReadBluetoothCoexistInfo(Adapter, PROMContent, pEEPROM->bautoload_fail_flag);
#endif
- ReadChannelPlan(Adapter, PROMContent, pEEPROM->bautoload_fail_flag);
+ rtl8192c_EfuseParseChnlPlan(Adapter, PROMContent, pEEPROM->bautoload_fail_flag);
_ReadThermalMeter(Adapter, PROMContent, pEEPROM->bautoload_fail_flag);
_ReadLEDSetting(Adapter, PROMContent, pEEPROM->bautoload_fail_flag);
_ReadRFSetting(Adapter, PROMContent, pEEPROM->bautoload_fail_flag);
@@ -4192,7 +3882,7 @@ static void _ReadPROMContent(
//pHalData->EEType = IS_BOOT_FROM_EEPROM(Adapter) ? EEPROM_93C46 : EEPROM_BOOT_EFUSE;
- //if(IS_HARDWARE_TYPE_8723(Adapter))
+ //if(IS_HARDWARE_TYPE_8723A(Adapter))
// readAdapterInfo_8723U(Adapter);
//else
readAdapterInfo_8192CU(Adapter);
@@ -4287,7 +3977,7 @@ static int _ReadAdapterInfo8192CU(PADAPTER Adapter)
//Efuse_InitSomeVar(Adapter);
- //if(IS_HARDWARE_TYPE_8723(Adapter))
+ //if(IS_HARDWARE_TYPE_8723A(Adapter))
// _EfuseCellSel(Adapter);
_ReadRFType(Adapter);//rf_chip -> _InitRFType()
@@ -4339,20 +4029,8 @@ static void ResumeTxBeacon(_adapter *padapter)
// 2010.03.01. Marked by tynli. No need to call workitem beacause we record the value
// which should be read from register to a global variable.
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl) | BIT6);
- pHalData->RegFwHwTxQCtrl |= BIT6;
- rtw_write8(padapter, REG_TBTT_PROHIBIT+1, 0xff);
- pHalData->RegReg542 |= BIT0;
- rtw_write8(padapter, REG_TBTT_PROHIBIT+2, pHalData->RegReg542);
- }
- else
- {
- pHalData->RegTxPause = rtw_read8(padapter, REG_TXPAUSE);
- rtw_write8(padapter, REG_TXPAUSE, pHalData->RegTxPause & (~BIT6));
- }
-
+ rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl) | BIT6);
+ pHalData->RegFwHwTxQCtrl |= BIT6;
}
static void StopTxBeacon(_adapter *padapter)
@@ -4362,19 +4040,8 @@ static void StopTxBeacon(_adapter *padapter)
// 2010.03.01. Marked by tynli. No need to call workitem beacause we record the value
// which should be read from register to a global variable.
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl) & (~BIT6));
- pHalData->RegFwHwTxQCtrl &= (~BIT6);
- rtw_write8(padapter, REG_TBTT_PROHIBIT+1, 0x64);
- pHalData->RegReg542 &= ~(BIT0);
- rtw_write8(padapter, REG_TBTT_PROHIBIT+2, pHalData->RegReg542);
- }
- else
- {
- pHalData->RegTxPause = rtw_read8(padapter, REG_TXPAUSE);
- rtw_write8(padapter, REG_TXPAUSE, pHalData->RegTxPause | BIT6);
- }
+ rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl) & (~BIT6));
+ pHalData->RegFwHwTxQCtrl &= (~BIT6);
//todo: CheckFwRsvdPageContent(Adapter); // 2010.06.23. Added by tynli.
@@ -4460,32 +4127,294 @@ u16 calc_crc(u8 * pdata,int length)
return CRC;
}
-#ifdef CONFIG_WOWLAN
-static int rtw_wowlan_set_pattern(_adapter *padapter ,u8* pbuf){
- struct pwrctrl_priv *pwrpriv=&padapter->pwrctrlpriv;
- int res=0,crc_idx;
- u32 content=0,cmd=0;
- u32 *pdata;
- u8 config,crc,mc,bc,uc,idx,pattern_len,packet[200],packet_len,valid;
- u16 crc_val=0,i;
-
- config=pbuf[0];
- bc=config & BIT(3)?1:0;
- mc=config & BIT(4)?1:0;
- uc=config & BIT(5)?1:0;
- idx=config & 0x7;
- crc=config & BIT(6)?1:0;
- valid=config & BIT(7)?1:0;
- pattern_len=pbuf[1];
- packet_len=pattern_len*8;
- pdata=(u32 *)pbuf;
+static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8* val)
+{
+ u8 val8;
+ u8 mode = *((u8 *)val);
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
- // Write to the Wakeup CAM
- //offset 0
- if(pattern_len>=4){
- content=pdata[1];
- }
- else{
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ {
+ // disable Port1 TSF update
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(4));
+
+ // set net_type
+ val8 = rtw_read8(Adapter, MSR)&0x03;
+ val8 |= (mode<<2);
+ rtw_write8(Adapter, MSR, val8);
+
+ //reset TSF1
+ rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(1));
+
+ DBG_871X("%s()-%d mode = %d\n", __FUNCTION__, __LINE__, mode);
+
+ if((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_))
+ {
+ if(!check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE))
+ {
+ StopTxBeacon(Adapter);
+ }
+
+ rtw_write8(Adapter,REG_BCN_CTRL_1, 0x19);//disable atim wnd
+ //rtw_write8(Adapter,REG_BCN_CTRL_1, 0x18);
+ }
+ else if((mode == _HW_STATE_ADHOC_) /*|| (mode == _HW_STATE_AP_)*/)
+ {
+ ResumeTxBeacon(Adapter);
+ rtw_write8(Adapter,REG_BCN_CTRL_1, 0x1a);
+ }
+ else if(mode == _HW_STATE_AP_)
+ {
+ ResumeTxBeacon(Adapter);
+
+ rtw_write8(Adapter, REG_BCN_CTRL_1, 0x12);
+
+ //Set RCR
+ //rtw_write32(padapter, REG_RCR, 0x70002a8e);//CBSSID_DATA must set to 0
+ rtw_write32(Adapter, REG_RCR, 0x7000228e);//CBSSID_DATA must set to 0
+ //enable to rx data frame
+ rtw_write16(Adapter, REG_RXFLTMAP2, 0xFFFF);
+ //enable to rx ps-poll
+ rtw_write16(Adapter, REG_RXFLTMAP1, 0x0400);
+
+ //Beacon Control related register for first time
+ rtw_write8(Adapter, REG_BCNDMATIM, 0x02); // 2ms
+ rtw_write8(Adapter, REG_DRVERLYINT, 0x05);// 5ms
+ //rtw_write8(Adapter, REG_BCN_MAX_ERR, 0xFF);
+ rtw_write8(Adapter, REG_ATIMWND_1, 0x0a); // 10ms for port1
+ rtw_write16(Adapter, REG_BCNTCFG, 0x00);
+ rtw_write16(Adapter, REG_TBTT_PROHIBIT, 0xff04);
+ rtw_write16(Adapter, REG_TSFTR_SYN_OFFSET, 0x7fff);// +32767 (~32ms)
+
+
+ //enable BCN1 Function for if2
+ //don't enable update TSF1 for if2 (due to TSF update when beacon/probe rsp are received)
+ rtw_write8(Adapter, REG_BCN_CTRL_1, (DIS_TSF_UDT0_NORMAL_CHIP|EN_BCN_FUNCTION | EN_TXBCN_RPT|BIT(1)));
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(Adapter, WIFI_FW_NULL_STATE))
+ rtw_write8(Adapter, REG_BCN_CTRL,
+ rtw_read8(Adapter, REG_BCN_CTRL) & ~EN_BCN_FUNCTION);
+#endif
+
+ DBG_871X("%s()-%d: REG_BCN_CTRL_1 = %02x\n", __FUNCTION__, __LINE__, rtw_read8(Adapter, REG_BCN_CTRL_1));
+
+ //BCN1 TSF will sync to BCN0 TSF with offset(0x518) if if1_sta linked
+ //rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(5));
+ //rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(3));
+
+ //dis BCN0 ATIM WND if if1 is station
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(0));
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+ // Reset TSF for STA+AP concurrent mode
+ if ( check_buddy_fwstate(Adapter, (WIFI_STATION_STATE|WIFI_ASOC_STATE)) ) {
+ if (reset_tsf(Adapter, IFACE_PORT1) == _FALSE)
+ DBG_871X("ERROR! %s()-%d: Reset port1 TSF fail\n",
+ __FUNCTION__, __LINE__);
+ }
+#endif // CONFIG_TSF_RESET_OFFLOAD
+ }
+
+ }
+ else // (Adapter->iface_type == IFACE_PORT1)
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ // disable Port0 TSF update
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4));
+
+ // set net_type
+ val8 = rtw_read8(Adapter, MSR)&0x0c;
+ val8 |= mode;
+ rtw_write8(Adapter, MSR, val8);
+
+ //reset TSF0
+ rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(0));
+
+ DBG_871X("%s()-%d mode = %d\n", __FUNCTION__, __LINE__, mode);
+
+ if((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_))
+ {
+#ifdef CONFIG_CONCURRENT_MODE
+ if(!check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE))
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ StopTxBeacon(Adapter);
+ }
+
+ rtw_write8(Adapter,REG_BCN_CTRL, 0x19);//disable atim wnd
+ //rtw_write8(Adapter,REG_BCN_CTRL, 0x18);
+ }
+ else if((mode == _HW_STATE_ADHOC_) /*|| (mode == _HW_STATE_AP_)*/)
+ {
+ ResumeTxBeacon(Adapter);
+ rtw_write8(Adapter,REG_BCN_CTRL, 0x1a);
+ }
+ else if(mode == _HW_STATE_AP_)
+ {
+ ResumeTxBeacon(Adapter);
+
+ rtw_write8(Adapter, REG_BCN_CTRL, 0x12);
+
+ //Set RCR
+ //write32(padapter, REG_RCR, 0x70002a8e);//CBSSID_DATA must set to 0
+ rtw_write32(Adapter, REG_RCR, 0x7000228e);//CBSSID_DATA must set to 0
+ //enable to rx data frame
+ rtw_write16(Adapter, REG_RXFLTMAP2, 0xFFFF);
+ //enable to rx ps-poll
+ rtw_write16(Adapter, REG_RXFLTMAP1, 0x0400);
+
+ //Beacon Control related register for first time
+
+ rtw_write8(Adapter, REG_BCNDMATIM, 0x02); // 2ms
+ rtw_write8(Adapter, REG_DRVERLYINT, 0x05);// 5ms
+
+ //write8(Adapter, REG_BCN_MAX_ERR, 0xFF);
+ rtw_write8(Adapter, REG_ATIMWND, 0x0a); // 10ms for port0
+ rtw_write16(Adapter, REG_BCNTCFG, 0x00);
+ rtw_write16(Adapter, REG_TBTT_PROHIBIT, 0xff04);
+ rtw_write16(Adapter, REG_TSFTR_SYN_OFFSET, 0x7fff);// +32767 (~32ms)
+
+ //enable BCN0 Function for if1
+ //don't enable update TSF0 for if1 (due to TSF update when beacon/probe rsp are received)
+ rtw_write8(Adapter, REG_BCN_CTRL, (DIS_TSF_UDT0_NORMAL_CHIP|EN_BCN_FUNCTION | EN_TXBCN_RPT|BIT(1)));
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(Adapter, WIFI_FW_NULL_STATE))
+ rtw_write8(Adapter, REG_BCN_CTRL_1,
+ rtw_read8(Adapter, REG_BCN_CTRL_1) & ~EN_BCN_FUNCTION);
+#endif
+ //BCN1 TSF will sync to BCN0 TSF with offset(0x518) if if1_sta linked
+ //only interface 2 as AP MODE need to sync
+ //rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(5));
+
+
+ //dis BCN1 ATIM WND if if2 is station
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(0));
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+ // Reset TSF for STA+AP concurrent mode
+ if ( check_buddy_fwstate(Adapter, (WIFI_STATION_STATE|WIFI_ASOC_STATE)) ) {
+ if (reset_tsf(Adapter, IFACE_PORT0) == _FALSE)
+ DBG_871X("ERROR! %s()-%d: Reset port0 TSF fail\n",
+ __FUNCTION__, __LINE__);
+ }
+#endif // CONFIG_TSF_RESET_OFFLOAD
+
+ }
+
+
+ }
+
+}
+
+static void hw_var_set_macaddr(PADAPTER Adapter, u8 variable, u8* val)
+{
+ u8 idx = 0;
+ u32 reg_macid;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ {
+ reg_macid = REG_MACID1;
+ }
+ else
+#endif
+ {
+ reg_macid = REG_MACID;
+ }
+
+ for(idx = 0 ; idx < 6; idx++)
+ {
+ rtw_write8(Adapter, (reg_macid+idx), val[idx]);
+ }
+
+}
+
+static void hw_var_set_bssid(PADAPTER Adapter, u8 variable, u8* val)
+{
+ u8 idx = 0;
+ u32 reg_bssid;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ {
+ reg_bssid = REG_BSSID1;
+ }
+ else
+#endif
+ {
+ reg_bssid = REG_BSSID;
+ }
+
+ for(idx = 0 ; idx < 6; idx++)
+ {
+ rtw_write8(Adapter, (reg_bssid+idx), val[idx]);
+ }
+
+}
+
+static void hw_var_set_bcn_func(PADAPTER Adapter, u8 variable, u8* val)
+{
+ u32 bcn_ctrl_reg;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ {
+ bcn_ctrl_reg = REG_BCN_CTRL_1;
+
+ if(*((u8 *)val))
+ {
+ rtw_write8(Adapter, bcn_ctrl_reg, (EN_BCN_FUNCTION | EN_TXBCN_RPT));
+ }
+ else
+ {
+ rtw_write8(Adapter, bcn_ctrl_reg, rtw_read8(Adapter, bcn_ctrl_reg)&(~(EN_BCN_FUNCTION | EN_TXBCN_RPT)));
+ }
+ }
+ else
+#endif
+ {
+ bcn_ctrl_reg = REG_BCN_CTRL;
+ if(*((u8 *)val))
+ {
+ rtw_write8(Adapter, bcn_ctrl_reg, (EN_BCN_FUNCTION | EN_TXBCN_RPT));
+ }
+ else
+ {
+ //rtw_write8(Adapter, bcn_ctrl_reg, rtw_read8(Adapter, bcn_ctrl_reg)&(~(EN_BCN_FUNCTION | EN_TXBCN_RPT)));
+ rtw_write8(Adapter, bcn_ctrl_reg, (rtw_read8(Adapter, bcn_ctrl_reg)&(~(EN_TXBCN_RPT))) | DIS_TSF_UDT0_NORMAL_CHIP);
+ }
+ }
+
+
+}
+
+#ifdef CONFIG_WOWLAN
+static int rtw_wowlan_set_pattern(_adapter *padapter ,u8* pbuf){
+ struct pwrctrl_priv *pwrpriv=&padapter->pwrctrlpriv;
+ int res=0,crc_idx;
+ u32 content=0,cmd=0;
+ u32 *pdata;
+ u8 config,crc,mc,bc,uc,idx,pattern_len,packet[200],packet_len,valid;
+ u16 crc_val=0,i;
+
+ config=pbuf[0];
+ bc=config & BIT(3)?1:0;
+ mc=config & BIT(4)?1:0;
+ uc=config & BIT(5)?1:0;
+ idx=config & 0x7;
+ crc=config & BIT(6)?1:0;
+ valid=config & BIT(7)?1:0;
+ pattern_len=pbuf[1];
+ packet_len=pattern_len*8;
+ pdata=(u32 *)pbuf;
+
+ // Write to the Wakeup CAM
+ //offset 0
+ if(pattern_len>=4){
+ content=pdata[1];
+ }
+ else{
content=0;
}
DBG_8192C("\nrtw_wowlan_set_pattern offset[0] content 0x%x [cpu_to_le32 0x%x]\n", content,__cpu_to_le32(content));
@@ -4624,6 +4553,374 @@ void rtw_wowlan_reload_pattern(_adapter *padapter){
}
#endif //CONFIG_WOWLAN
+static void hw_var_set_correct_tsf(PADAPTER Adapter, u8 variable, u8* val)
+{
+#ifdef CONFIG_CONCURRENT_MODE
+ u64 tsf;
+ struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+
+ //tsf = pmlmeext->TSFValue - ((u32)pmlmeext->TSFValue % (pmlmeinfo->bcn_interval*1024)) -1024; //us
+ tsf = pmlmeext->TSFValue - rtw_modular64(pmlmeext->TSFValue, (pmlmeinfo->bcn_interval*1024)) -1024; //us
+
+ if(((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) || ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
+ {
+ //pHalData->RegTxPause |= STOP_BCNQ;BIT(6)
+ //rtw_write8(Adapter, REG_TXPAUSE, (rtw_read8(Adapter, REG_TXPAUSE)|BIT(6)));
+ StopTxBeacon(Adapter);
+ }
+
+ if(Adapter->iface_type == IFACE_PORT1)
+ {
+ //disable related TSF function
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)&(~BIT(3)));
+
+ rtw_write32(Adapter, REG_TSFTR1, tsf);
+ rtw_write32(Adapter, REG_TSFTR1+4, tsf>>32);
+
+ //enable related TSF function
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(3));
+
+
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+ // Update buddy port's TSF(TBTT) if it is SoftAP for beacon TX issue!
+ if ( (pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE
+ && check_buddy_fwstate(Adapter, WIFI_AP_STATE) ) {
+ if (reset_tsf(Adapter, IFACE_PORT0) == _FALSE)
+ DBG_871X("ERROR! %s()-%d: Reset port0 TSF fail\n",
+ __FUNCTION__, __LINE__);
+ }
+#endif // CONFIG_TSF_RESET_OFFLOAD
+
+ }
+ else // Adapter->iface_type == IFACE_PORT1
+ {
+ //disable related TSF function
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(3)));
+ // disable TSF update instead! May induce burst beacon TX
+ //rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4));
+
+ rtw_write32(Adapter, REG_TSFTR, tsf);
+ rtw_write32(Adapter, REG_TSFTR+4, tsf>>32);
+
+ //enable related TSF function
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(3));
+ //rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
+
+ // Update buddy port's TSF if it is SoftAP for beacon TX issue!
+ if ( (pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE
+ && check_buddy_fwstate(Adapter, WIFI_AP_STATE)
+ ) {
+ //disable related TSF function
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)&(~BIT(3)));
+ // disable TSF update instead!
+ //rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(4));
+
+ rtw_write32(Adapter, REG_TSFTR1, tsf);
+ rtw_write32(Adapter, REG_TSFTR1+4, tsf>>32);
+
+ //enable related TSF function
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(3));
+ //rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL_1)&(~BIT(4)));
+ }
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+ // Update buddy port's TSF if it is SoftAP for beacon TX issue!
+ if ( (pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE
+ && check_buddy_fwstate(Adapter, WIFI_AP_STATE) ) {
+ if (reset_tsf(Adapter, IFACE_PORT1) == _FALSE)
+ DBG_871X("ERROR! %s()-%d: Reset port1 TSF fail\n",
+ __FUNCTION__, __LINE__);
+ }
+#endif // CONFIG_TSF_RESET_OFFLOAD
+ }
+
+ if(((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) || ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
+ {
+ //pHalData->RegTxPause &= (~STOP_BCNQ);
+ //rtw_write8(Adapter, REG_TXPAUSE, (rtw_read8(Adapter, REG_TXPAUSE)&(~BIT(6))));
+ ResumeTxBeacon(Adapter);
+ }
+#endif // CONFIG_CONCURRENT_MODE
+}
+
+static void hw_var_set_mlme_disconnect(PADAPTER Adapter, u8 variable, u8* val)
+{
+#ifdef CONFIG_CONCURRENT_MODE
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
+ PADAPTER pbuddy_adapter = Adapter->pbuddy_adapter;
+
+
+ if(check_buddy_mlmeinfo_state(Adapter, _HW_STATE_NOLINK_))
+ rtw_write16(Adapter, REG_RXFLTMAP2, 0x00);
+
+
+ if(Adapter->iface_type == IFACE_PORT1)
+ {
+ int i;
+ u8 reg_bcn_ctrl_1;
+
+ // a.Driver set 0x422 bit 6 =0
+ rtw_write8(Adapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl) & (~BIT6));
+ pHalData->RegFwHwTxQCtrl &= (~BIT6);
+
+
+#ifdef CONFIG_BEACON_DISABLE_OFFLOAD
+ u8 reg_bcn_disable_cnt = rtw_read8(Adapter, REG_FW_BCN_DIS_CNT);
+ DBG_871X("%s()-%d: reg_bcn_disable_cnt=%02x\n", __FUNCTION__, __LINE__, reg_bcn_disable_cnt);
+
+ reg_bcn_ctrl_1 = rtw_read8(Adapter, REG_BCN_CTRL_1);
+ DBG_871X("%s()-%d: reg_bcn_ctrl_1=%02x\n", __FUNCTION__, __LINE__, reg_bcn_ctrl_1);
+
+ // b. driver set h2c cmd
+ rtl8192c_dis_beacon_fun_cmd(Adapter);
+
+ /*
+ // FW Job for port 0
+
+ c. 8051 set nettype to ap
+ d. 8051 check dma_int
+ e. 8051 set nettype to no_link
+ f.8051 dis_tsf_update 0x550 bit 4
+ g.8051 reset beacon function test count 0x553 bit0.
+ h.8051 disable beacon function 0x550 bit3
+ i. 8051 sent ready to driver
+
+ */
+
+ // The worst case is 100 + 15 ms
+ rtw_msleep_os(120);
+
+ for (i=0; i< 10; i++) {
+ reg_bcn_ctrl_1 = rtw_read8(Adapter, REG_BCN_CTRL_1);
+ if ( (reg_bcn_ctrl_1 & BIT(3)) == 0 ) {
+ //DBG_871X("%s()-%d: BEACON_DISABLE_OFFLOAD finished! reg=%02x\n", __FUNCTION__, __LINE__, reg);
+ break;
+ }
+ DBG_871X("%s()-%d: BEACON_DISABLE_OFFLOAD not finished! REG_BCN_CTRL_1=%02x\n", __FUNCTION__, __LINE__, reg_bcn_ctrl_1);
+ DBG_871X("%s()-%d: reg_bcn_disable_cnt=%02x\n", __FUNCTION__, __LINE__, rtw_read8(Adapter, REG_FW_BCN_DIS_CNT));
+ DBG_871X("%s()-%d: REG_BCN_CTRL=%02x\n", __FUNCTION__, __LINE__, rtw_read8(Adapter, REG_BCN_CTRL));
+ DBG_871X("%s()-%d: FWISR=%08x\n", __FUNCTION__, __LINE__, rtw_read32(Adapter, REG_FWISR));
+ rtw_msleep_os(100);
+ }
+ DBG_871X("%s()-%d: reg_bcn_disable_cnt=%02x\n", __FUNCTION__, __LINE__, rtw_read8(Adapter, REG_FW_BCN_DIS_CNT));
+ DBG_871X("%s()-%d: reg_bcn_ctrl_1=%02x\n", __FUNCTION__, __LINE__, reg_bcn_ctrl_1);
+
+#else // CONFIG_BEACON_DISABLE_OFFLOAD
+
+ //disable update TSF1
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(4));
+
+ //reset TSF1
+ rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(1));
+
+ // disable Port1's beacon function
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)&(~BIT(3)));
+
+#endif // CONFIG_BEACON_DISABLE_OFFLOAD
+
+ // j, Driver set 0x422 bit 6 =1
+ rtw_write8(Adapter, REG_FWHW_TXQ_CTRL+2, (pHalData->RegFwHwTxQCtrl) | BIT6);
+ pHalData->RegFwHwTxQCtrl |= BIT6;
+
+ // k. re_download beacon pkt
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE))
+ set_tx_beacon_cmd(pbuddy_adapter);
+
+
+ }
+ else // (Adapter->iface_type == IFACE_PORT1)
+ {
+ //disable update TSF
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4));
+
+ //reset TSF
+ rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(0));
+
+ // Can't disable Port0's beacon function due to it is used by RA
+ }
+#endif
+}
+
+static void hw_var_set_mlme_sitesurvey(PADAPTER Adapter, u8 variable, u8* val)
+{
+ u32 value_rcr, rcr_clear_bit, reg_bcn_ctl;
+ u16 value_rxfltmap2;
+ struct mlme_priv *pmlmepriv=&(Adapter->mlmepriv);
+
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(Adapter->iface_type == IFACE_PORT1)
+ reg_bcn_ctl = REG_BCN_CTRL_1;
+ else
+#endif
+ reg_bcn_ctl = REG_BCN_CTRL;
+
+#ifdef CONFIG_FIND_BEST_CHANNEL
+
+ if( (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
+#ifdef CONFIG_CONCURRENT_MODE
+ || (check_buddy_fwstate(Adapter, WIFI_AP_STATE) == _TRUE)
+#endif
+#ifdef CONFIG_TDLS
+ // TDLS will clear RCR_CBSSID_DATA bit for connection.
+ || ( Adapter->tdlsinfo.setup_state & TDLS_LINKED_STATE )
+#endif // CONFIG_TDLS
+ )
+ {
+ rcr_clear_bit = RCR_CBSSID_BCN;
+ }
+ else
+ {
+ rcr_clear_bit = (RCR_CBSSID_BCN | RCR_CBSSID_DATA);
+ }
+
+ // Recieve all data frames
+ value_rxfltmap2 = 0xFFFF;
+
+#else /* CONFIG_FIND_BEST_CHANNEL */
+
+ rcr_clear_bit = RCR_CBSSID_BCN;
+
+ //config RCR to receive different BSSID & not to receive data frame
+ value_rxfltmap2 = 0;
+
+#endif /* CONFIG_FIND_BEST_CHANNEL */
+
+ value_rcr = rtw_read32(Adapter, REG_RCR);
+
+ if(*((u8 *)val))//under sitesurvey
+ {
+ value_rcr &= ~(rcr_clear_bit);
+ rtw_write32(Adapter, REG_RCR, value_rcr);
+
+ rtw_write16(Adapter, REG_RXFLTMAP2, value_rxfltmap2);
+
+ if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_ADHOC_STATE |WIFI_ADHOC_MASTER_STATE)) {
+ //disable update TSF
+ rtw_write8(Adapter, reg_bcn_ctl, rtw_read8(Adapter, reg_bcn_ctl)|BIT(4));
+ }
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(Adapter, _FW_LINKED))
+ {
+ StopTxBeacon(Adapter);
+ }
+#endif
+ }
+ else//sitesurvey done
+ {
+ if(check_fwstate(pmlmepriv, _FW_LINKED) || check_fwstate(pmlmepriv, WIFI_AP_STATE)
+#ifdef CONFIG_CONCURRENT_MODE
+ || check_buddy_fwstate(Adapter, _FW_LINKED) || check_buddy_fwstate(Adapter, WIFI_AP_STATE)
+#endif
+ )
+ {
+ //enable to rx data frame
+ rtw_write16(Adapter, REG_RXFLTMAP2,0xFFFF);
+ }
+
+ if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_ADHOC_STATE |WIFI_ADHOC_MASTER_STATE)) {
+ //enable update TSF
+ rtw_write8(Adapter, reg_bcn_ctl, rtw_read8(Adapter, reg_bcn_ctl)&(~BIT(4)));
+ }
+
+ value_rcr |= rcr_clear_bit;
+ rtw_write32(Adapter, REG_RCR, value_rcr);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(Adapter, _FW_LINKED))
+ {
+ ResumeTxBeacon(Adapter);
+ }
+#endif
+ }
+}
+
+static void hw_var_set_mlme_join(PADAPTER Adapter, u8 variable, u8* val)
+{
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 RetryLimit = 0x30;
+ u8 type = *((u8 *)val);
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
+ struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
+
+ if(type == 0) // prepare to join
+ {
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(Adapter, _FW_LINKED))
+ {
+ StopTxBeacon(Adapter);
+ }
+
+ //enable to rx data frame.Accept all data frame
+ //rtw_write32(padapter, REG_RCR, rtw_read32(padapter, REG_RCR)|RCR_ADF);
+ rtw_write16(Adapter, REG_RXFLTMAP2,0xFFFF);
+
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE))
+ rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_BCN);
+ else
+ rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
+
+ if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
+ {
+ RetryLimit = (pHalData->CustomerID == RT_CID_CCX) ? 7 : 48;
+ }
+ else // Ad-hoc Mode
+ {
+ RetryLimit = 0x7;
+ }
+ }
+ else if(type == 1) //joinbss_event call back when join res < 0
+ {
+ if(check_buddy_mlmeinfo_state(Adapter, _HW_STATE_NOLINK_))
+ rtw_write16(Adapter, REG_RXFLTMAP2,0x00);
+
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(Adapter, _FW_LINKED))
+ {
+ ResumeTxBeacon(Adapter);
+
+ //reset TSF 1/2 after ResumeTxBeacon
+ //rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(1)|BIT(0));
+
+ }
+ }
+ else if(type == 2) //sta add event call back
+ {
+
+ //enable update TSF
+ if(Adapter->iface_type == IFACE_PORT1)
+ rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)&(~BIT(4)));
+ else
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
+
+
+ if(check_fwstate(pmlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE))
+ {
+ //fixed beacon issue for 8191su...........
+ rtw_write8(Adapter,0x542 ,0x02);
+ RetryLimit = 0x7;
+ }
+
+
+ if(check_buddy_mlmeinfo_state(Adapter, WIFI_FW_AP_STATE) &&
+ check_buddy_fwstate(Adapter, _FW_LINKED))
+ {
+ ResumeTxBeacon(Adapter);
+
+ //reset TSF 1/2 after ResumeTxBeacon
+ //rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(1)|BIT(0));
+ }
+
+ }
+
+ rtw_write16(Adapter, REG_RL, RetryLimit << RETRY_LIMIT_SHORT_SHIFT | RetryLimit << RETRY_LIMIT_LONG_SHIFT);
+
+#endif
+}
+
void SetHwReg8192CU(PADAPTER Adapter, u8 variable, u8* val)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@@ -4652,74 +4949,13 @@ _func_enter_;
}
break;
case HW_VAR_SET_OPMODE:
- {
- u8 val8;
- u8 mode = *((u8 *)val);
-
- if((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_))
- {
- StopTxBeacon(Adapter);
- rtw_write8(Adapter,REG_BCN_CTRL, 0x18);
- }
- else if((mode == _HW_STATE_ADHOC_) /*|| (mode == _HW_STATE_AP_)*/)
- {
- ResumeTxBeacon(Adapter);
- rtw_write8(Adapter,REG_BCN_CTRL, 0x1a);
- }
- else if(mode == _HW_STATE_AP_)
- {
- ResumeTxBeacon(Adapter);
-
- rtw_write8(Adapter, REG_BCN_CTRL, 0x12);
-
-
- //Set RCR
- //rtw_write32(padapter, REG_RCR, 0x70002a8e);//CBSSID_DATA must set to 0
- rtw_write32(Adapter, REG_RCR, 0x7000228e);//CBSSID_DATA must set to 0
- //enable to rx data frame
- rtw_write16(Adapter, REG_RXFLTMAP2, 0xFFFF);
- //enable to rx ps-poll
- rtw_write16(Adapter, REG_RXFLTMAP1, 0x0400);
-
- //Beacon Control related register for first time
- rtw_write8(Adapter, REG_BCNDMATIM, 0x02); // 2ms
- rtw_write8(Adapter, REG_DRVERLYINT, 0x05);// 5ms
- //rtw_write8(Adapter, REG_BCN_MAX_ERR, 0xFF);
- rtw_write8(Adapter, REG_ATIMWND, 0x0a); // 10ms
- rtw_write16(Adapter, REG_BCNTCFG, 0x00);
- rtw_write16(Adapter, REG_TBTT_PROHIBIT, 0x6404);
-
- //reset TSF
- rtw_write8(Adapter, REG_DUAL_TSF_RST, BIT(0));
-
- //enable TSF Function for if1
- rtw_write8(Adapter, REG_BCN_CTRL, (EN_BCN_FUNCTION | EN_TXBCN_RPT));
-
- //enable update TSF for if1
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
- }
- else
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~(BIT(4)|BIT(5))));
- }
-
- }
-
- val8 = rtw_read8(Adapter, MSR)&0x0c;
- val8 |= mode;
- rtw_write8(Adapter, MSR, val8);
- }
+ hw_var_set_opmode(Adapter, variable, val);
+ break;
+ case HW_VAR_MAC_ADDR:
+ hw_var_set_macaddr(Adapter, variable, val);
break;
case HW_VAR_BSSID:
- {
- u8 idx = 0;
- for(idx = 0 ; idx < 6; idx++)
- {
- rtw_write8(Adapter, (REG_BSSID+idx), val[idx]);
- }
- }
+ hw_var_set_bssid(Adapter, variable, val);
break;
case HW_VAR_BASIC_RATE:
{
@@ -4730,14 +4966,14 @@ _func_enter_;
// Select RRSR (in Legacy-OFDM and CCK)
// For 8190, we select only 24M, 12M, 6M, 11M, 5.5M, 2M, and 1M from the Basic rate.
// We do not use other rates.
- rtl8192c_HalSetBrateCfg( Adapter, val, &BrateCfg );
+ HalSetBrateCfg( Adapter, val, &BrateCfg );
//2011.03.30 add by Luke Lee
//CCK 2M ACK should be disabled for some BCM and Atheros AP IOT
//because CCK 2M has poor TXEVM
//CCK 5.5M & 11M ACK should be enabled for better performance
- pHalData->BasicRateSet = BrateCfg = (BrateCfg |0xd) & 0x15d;
+ pHalData->BasicRateSet = BrateCfg = (BrateCfg |0xd) & 0x15d;
BrateCfg |= 0x01; // default enable 1M ACK rate
@@ -4746,6 +4982,7 @@ _func_enter_;
// Set RRSR rate table.
rtw_write8(Adapter, REG_RRSR, BrateCfg&0xff);
rtw_write8(Adapter, REG_RRSR+1, (BrateCfg>>8)&0xff);
+ rtw_write8(Adapter, REG_RRSR+2, rtw_read8(Adapter, REG_RRSR+2)&0xf0);
// Set RTS initial rate
while(BrateCfg > 0x1)
@@ -4761,16 +4998,12 @@ _func_enter_;
rtw_write8(Adapter, REG_TXPAUSE, *((u8 *)val));
break;
case HW_VAR_BCN_FUNC:
- if(*((u8 *)val))
- {
- rtw_write8(Adapter, REG_BCN_CTRL, (EN_BCN_FUNCTION | EN_TXBCN_RPT));
- }
- else
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~(EN_BCN_FUNCTION | EN_TXBCN_RPT)));
- }
+ hw_var_set_bcn_func(Adapter, variable, val);
break;
case HW_VAR_CORRECT_TSF:
+#ifdef CONFIG_CONCURRENT_MODE
+ hw_var_set_correct_tsf(Adapter, variable, val);
+#else
{
u64 tsf;
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
@@ -4803,38 +5036,26 @@ _func_enter_;
ResumeTxBeacon(Adapter);
}
}
+#endif
break;
case HW_VAR_CHECK_BSSID:
if(*((u8 *)val))
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
- }
- else
- {
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA);
- }
+ rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
}
else
{
u32 val32;
val32 = rtw_read32(Adapter, REG_RCR);
-
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- val32 &= ~(RCR_CBSSID_DATA | RCR_CBSSID_BCN);
- }
- else
- {
- val32 &= 0xfffff7bf;
- }
-
+ val32 &= ~(RCR_CBSSID_DATA | RCR_CBSSID_BCN);
rtw_write32(Adapter, REG_RCR, val32);
}
break;
case HW_VAR_MLME_DISCONNECT:
+#ifdef CONFIG_CONCURRENT_MODE
+ hw_var_set_mlme_disconnect(Adapter, variable, val);
+#else
{
//Set RCR to not to receive data frame when NO LINK state
//rtw_write32(Adapter, REG_RCR, rtw_read32(padapter, REG_RCR) & ~RCR_ADF);
@@ -4845,90 +5066,17 @@ _func_enter_;
rtw_write8(Adapter, REG_DUAL_TSF_RST, (BIT(0)|BIT(1)));
//disable update TSF
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4));
- }
- else
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4)|BIT(5));
- }
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4));
}
+#endif
break;
case HW_VAR_MLME_SITESURVEY:
- if(*((u8 *)val))//under sitesurvey
- {
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- //config RCR to receive different BSSID & not to receive data frame
- //pHalData->ReceiveConfig &= (~(RCR_CBSSID_DATA | RCR_CBSSID_BCN));
- u32 v = rtw_read32(Adapter, REG_RCR);
- v &= ~(RCR_CBSSID_DATA | RCR_CBSSID_BCN );//| RCR_ADF
- rtw_write32(Adapter, REG_RCR, v);
- //reject all data frame
- rtw_write16(Adapter, REG_RXFLTMAP2,0x00);
-
- //disable update TSF
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4));
- }
- else
- {
- //config RCR to receive different BSSID & not to receive data frame
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR) & 0xfffff7bf);
-
-
- //disable update TSF
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(4)|BIT(5));
- }
- }
- else//sitesurvey done
- {
- struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- if ((is_client_associated_to_ap(Adapter) == _TRUE) ||
- ((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) )
- {
- //enable to rx data frame
- //rtw_write32(Adapter, REG_RCR, rtw_read32(padapter, REG_RCR)|RCR_ADF);
- rtw_write16(Adapter, REG_RXFLTMAP2,0xFFFF);
-
- //enable update TSF
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
- }
- else
- {
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~(BIT(4)|BIT(5))));
- }
- }
- else if((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
- {
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_ADF);
-
- //enable update TSF
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
- else
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~(BIT(4)|BIT(5))));
- }
-
-
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- if((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_BCN);
- else
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
- }
- else
- {
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA);
- }
- }
+ hw_var_set_mlme_sitesurvey(Adapter, variable, val);
break;
case HW_VAR_MLME_JOIN:
+#ifdef CONFIG_CONCURRENT_MODE
+ hw_var_set_mlme_join(Adapter, variable, val);
+#else
{
u8 RetryLimit = 0x30;
u8 type = *((u8 *)val);
@@ -4940,14 +5088,7 @@ _func_enter_;
//rtw_write32(padapter, REG_RCR, rtw_read32(padapter, REG_RCR)|RCR_ADF);
rtw_write16(Adapter, REG_RXFLTMAP2,0xFFFF);
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
- }
- else
- {
- rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA);
- }
+ rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
{
@@ -4960,33 +5101,12 @@ _func_enter_;
}
else if(type == 1) //joinbss_event call back when join res < 0
{
- //if(IS_NORMAL_CHIP(pHalData->VersionID))
- //{
- //config RCR to receive different BSSID & not to receive data frame during linking
- // u32 v = rtw_read32(Adapter, REG_RCR);
- // v &= ~(RCR_CBSSID_DATA | RCR_CBSSID_BCN );//| RCR_ADF
- // rtw_write32(Adapter, REG_RCR, v);
- //}
- //else
- //{
- //config RCR to receive different BSSID & not to receive data frame during linking
- // rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR) & 0xfffff7bf);
- //}
-
rtw_write16(Adapter, REG_RXFLTMAP2,0x00);
}
else if(type == 2) //sta add event call back
{
- if(IS_NORMAL_CHIP(pHalData->VersionID))
- {
- //enable update TSF
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
- }
- else
- {
- //enable update TSF
- rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~(BIT(4)|BIT(5))));
- }
+ //enable update TSF
+ rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
if(check_fwstate(pmlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE))
{
@@ -4998,7 +5118,18 @@ _func_enter_;
rtw_write16(Adapter, REG_RL, RetryLimit << RETRY_LIMIT_SHORT_SHIFT | RetryLimit << RETRY_LIMIT_LONG_SHIFT);
}
+#endif
+ break;
+
+ case HW_VAR_ON_RCR_AM:
+ rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_AM);
+ DBG_871X("%s, %d, RCR= %x \n", __FUNCTION__,__LINE__, rtw_read32(Adapter, REG_RCR));
break;
+ case HW_VAR_OFF_RCR_AM:
+ rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)& (~RCR_AM));
+ DBG_871X("%s, %d, RCR= %x \n", __FUNCTION__,__LINE__, rtw_read32(Adapter, REG_RCR));
+ break;
+
case HW_VAR_BEACON_INTERVAL:
rtw_write16(Adapter, REG_BCN_INTERVAL, *((u16 *)val));
break;
@@ -5027,8 +5158,9 @@ _func_enter_;
}
}
break;
- case HW_VAR_SIFS:
+ case HW_VAR_RESP_SIFS:
{
+#if 0
// SIFS for OFDM Data ACK
rtw_write8(Adapter, REG_SIFS_CTX+1, val[0]);
// SIFS for OFDM consecutive tx like CTS data!
@@ -5038,8 +5170,17 @@ _func_enter_;
rtw_write8(Adapter,REG_MAC_SPEC_SIFS+1, val[0]);
// 20100719 Joseph: Revise SIFS setting due to Hardware register definition change.
- rtw_write8(Adapter, REG_R2T_SIFS+1, val[0]);
- rtw_write8(Adapter, REG_T2T_SIFS+1, val[0]);
+ rtw_write8(Adapter, REG_R2T_SIFS+1, val[0]); //0x08 - CCK
+ rtw_write8(Adapter, REG_T2T_SIFS+1, val[0]); //0x0e - OFDM
+#else
+ //SIFS_Timer = 0x0a0a0808;
+ //RESP_SIFS for CCK
+ rtw_write8(Adapter, REG_R2T_SIFS, val[0]); // SIFS_T2T_CCK (0x08)
+ rtw_write8(Adapter, REG_R2T_SIFS+1, val[1]); //SIFS_R2T_CCK(0x08)
+ //RESP_SIFS for OFDM
+ rtw_write8(Adapter, REG_T2T_SIFS, val[2]); //SIFS_T2T_OFDM (0x0a)
+ rtw_write8(Adapter, REG_T2T_SIFS+1, val[3]); //SIFS_R2T_OFDM(0x0a)
+#endif
}
break;
case HW_VAR_ACK_PREAMBLE:
@@ -5047,8 +5188,8 @@ _func_enter_;
u8 regTmp;
u8 bShortPreamble = *( (PBOOLEAN)val );
// Joseph marked out for Netgear 3500 TKIP channel 7 issue.(Temporarily)
- //regTmp = (pHalData->nCur40MhzPrimeSC)<<5;
- regTmp = 0;
+ regTmp = (pHalData->nCur40MhzPrimeSC)<<5;
+ //regTmp = 0;
if(bShortPreamble)
regTmp |= 0x80;
@@ -5056,7 +5197,11 @@ _func_enter_;
}
break;
case HW_VAR_SEC_CFG:
+#ifdef CONFIG_CONCURRENT_MODE
+ rtw_write8(Adapter, REG_SECCFG, 0x0c|BIT(5));// enable tx enc and rx dec engine, and no key search for MC/BC
+#else
rtw_write8(Adapter, REG_SECCFG, *((u8 *)val));
+#endif
break;
case HW_VAR_DM_FLAG:
pdmpriv->DMFlag = *((u8 *)val);
@@ -5240,7 +5385,6 @@ _func_enter_;
u8 threshold = *((u8 *)val);
if( threshold == 0)
{
-
threshold = pHalData->UsbRxAggPageCount;
}
rtw_write8(Adapter, REG_RXDMA_AGG_PG_TH, threshold);
@@ -5269,14 +5413,14 @@ _func_enter_;
rtl8192c_set_FwJoinBssReport_cmd(Adapter, mstatus);
}
break;
-#ifdef CONFIG_P2P
+#ifdef CONFIG_P2P_PS
case HW_VAR_H2C_FW_P2P_PS_OFFLOAD:
{
u8 p2p_ps_state = (*(u8 *)val);
rtl8192c_set_p2p_ps_offload_cmd(Adapter, p2p_ps_state);
}
break;
-#endif //CONFIG_P2P
+#endif // CONFIG_P2P_PS
#ifdef CONFIG_TDLS
case HW_VAR_TDLS_WRCR:
rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)&(~ BIT(6) ));
@@ -5305,18 +5449,20 @@ _func_enter_;
{
DIG_T *pDigTable = &pdmpriv->DM_DigTable;
u32 rx_gain = ((u32 *)(val))[0];
-
+
if(rx_gain == 0xff){//restore rx gain
pDigTable->CurIGValue = pDigTable->BackupIGValue;
- rtw_write8(Adapter,rOFDM0_XAAGCCore1, pDigTable->CurIGValue);
- rtw_write8(Adapter,rOFDM0_XBAGCCore1, pDigTable->CurIGValue);
+ PHY_SetBBReg(Adapter, rOFDM0_XAAGCCore1, 0x7f,pDigTable->CurIGValue );
+ PHY_SetBBReg(Adapter, rOFDM0_XBAGCCore1, 0x7f,pDigTable->CurIGValue);
}
else{
- pDigTable->BackupIGValue = pDigTable->CurIGValue;
+ pDigTable->BackupIGValue = pDigTable->CurIGValue;
PHY_SetBBReg(Adapter, rOFDM0_XAAGCCore1, 0x7f,rx_gain );
PHY_SetBBReg(Adapter, rOFDM0_XBAGCCore1, 0x7f,rx_gain);
- pDigTable->CurIGValue = rx_gain;
+ pDigTable->CurIGValue = (u8)rx_gain;
}
+
+
}
break;
case HW_VAR_TRIGGER_GPIO_0:
@@ -5390,7 +5536,7 @@ _func_enter_;
}
}
break;
- case HW_VAR_WOWLAN:
+ case HW_VAR_WOWLAN:
#ifdef CONFIG_WOWLAN
{
struct wowlan_ioctl_param *poidparam;
@@ -5493,6 +5639,42 @@ _func_enter_;
break;
#endif //CONFIG_WOWLAN
+ case HW_VAR_CHECK_TXBUF:
+#ifdef CONFIG_CONCURRENT_MODE
+ {
+ int i;
+ u8 RetryLimit = 0x01;
+
+ //rtw_write16(Adapter, REG_RL,0x0101);
+ rtw_write16(Adapter, REG_RL, RetryLimit << RETRY_LIMIT_SHORT_SHIFT | RetryLimit << RETRY_LIMIT_LONG_SHIFT);
+
+ for(i=0;i<1000;i++)
+ {
+ if(rtw_read32(Adapter, 0x200) != rtw_read32(Adapter, 0x204))
+ {
+ //DBG_871X("packet in tx packet buffer - 0x204=%x, 0x200=%x (%d)\n", rtw_read32(Adapter, 0x204), rtw_read32(Adapter, 0x200), i);
+ rtw_msleep_os(10);
+ }
+ else
+ {
+ DBG_871X("no packet in tx packet buffer (%d)\n", i);
+ break;
+ }
+ }
+
+ RetryLimit = 0x30;
+ rtw_write16(Adapter, REG_RL, RetryLimit << RETRY_LIMIT_SHORT_SHIFT | RetryLimit << RETRY_LIMIT_LONG_SHIFT);
+
+ }
+#endif
+ break;
+ case HW_VAR_BCN_VALID:
+ //BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2, write 1 to clear, Clear by sw
+ rtw_write8(Adapter, REG_TDECTRL+2, rtw_read8(Adapter, REG_TDECTRL+2) | BIT0);
+ break;
+ case HW_VAR_USB_RXAGG_PAGE_TO:
+ rtw_write8(Adapter, REG_USB_DMA_AGG_TO, *((u8 *)val));
+ break;
default:
break;
}
@@ -5513,15 +5695,9 @@ _func_enter_;
case HW_VAR_TXPAUSE:
val[0] = rtw_read8(Adapter, REG_TXPAUSE);
break;
- case HW_VAR_TX_BCN_DONE:
- {
- u32 xmitbcnDown;
- xmitbcnDown= rtw_read32(Adapter, REG_TDECTRL);
- if(xmitbcnDown & BCN_VALID ){
- rtw_write32(Adapter,REG_TDECTRL, xmitbcnDown | BCN_VALID ); // write 1 to clear, Clear by sw
- val[0] = _TRUE;
- }
- }
+ case HW_VAR_BCN_VALID:
+ //BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2
+ val[0] = (BIT0 & rtw_read8(Adapter, REG_TDECTRL+2))?_TRUE:_FALSE;
break;
case HW_VAR_DM_FLAG:
val[0] = pHalData->dmpriv.DMFlag;
@@ -5559,6 +5735,12 @@ _func_enter_;
case HW_VAR_EFUSE_BYTES: // To get EFUE total used bytes, added by Roger, 2008.12.22.
*((u16 *)(val)) = pHalData->EfuseUsedBytes;
break;
+ case HW_VAR_VID:
+ *((u16 *)(val)) = pHalData->EEPROMVID;
+ break;
+ case HW_VAR_PID:
+ *((u16 *)(val)) = pHalData->EEPROMPID;
+ break;
default:
break;
}
@@ -5583,7 +5765,25 @@ GetHalDefVar8192CUsb(
switch(eVariable)
{
case HAL_DEF_UNDERCORATEDSMOOTHEDPWDB:
+#if 0 //trunk
+ {
+ struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
+ struct sta_priv * pstapriv = &Adapter->stapriv;
+ struct sta_info * psta;
+ psta = rtw_get_stainfo(pstapriv, pmlmepriv->cur_network.network.MacAddress);
+ if(psta)
+ {
+ *((int *)pValue) = psta->rssi_stat.UndecoratedSmoothedPWDB;
+ }
+ }
+#else //v4 branch
+ //if(check_fwstate(&Adapter->mlmepriv, WIFI_STATION_STATE) == _TRUE){
*((int *)pValue) = pHalData->dmpriv.UndecoratedSmoothedPWDB;
+ //}
+ //else{
+
+ //}
+#endif
break;
case HAL_DEF_IS_SUPPORT_ANT_DIV:
#ifdef CONFIG_ANTENNA_DIVERSITY
@@ -5609,7 +5809,7 @@ GetHalDefVar8192CUsb(
break;
case HAL_DEF_DBG_DM_FUNC:
*(( u8*)pValue) = pHalData->dmpriv.DMFlag;
- break;
+ break;
default:
//RT_TRACE(COMP_INIT, DBG_WARNING, ("GetHalDefVar8192CUsb(): Unkown variable: %d!\n", eVariable));
bResult = _FALSE;
@@ -5724,6 +5924,7 @@ void _update_response_rate(_adapter *padapter,unsigned int mask)
// Set RRSR rate table.
rtw_write8(padapter, REG_RRSR, mask&0xff);
rtw_write8(padapter,REG_RRSR+1, (mask>>8)&0xff);
+
// Set RTS initial rate
while(mask > 0x1)
@@ -5766,6 +5967,9 @@ void UpdateHalRAMask8192CUsb(PADAPTER padapter, u32 mac_id)
switch (mac_id)
{
case 0:// for infra mode
+#ifdef CONFIG_CONCURRENT_MODE
+ case 2:// first station uses macid=0, second station uses macid=2
+#endif
supportRateNum = rtw_get_rateset_len(cur_network->SupportedRates);
networkType = judge_network_type(padapter, cur_network->SupportedRates, supportRateNum) & 0xf;
//pmlmeext->cur_wireless_mode = networkType;
@@ -5796,17 +6000,29 @@ void UpdateHalRAMask8192CUsb(PADAPTER padapter, u32 mac_id)
break;
default: //for each sta in IBSS
- supportRateNum = rtw_get_rateset_len(pmlmeinfo->FW_sta_info[mac_id].SupportedRates);
- networkType = judge_network_type(padapter, pmlmeinfo->FW_sta_info[mac_id].SupportedRates, supportRateNum) & 0xf;
- //pmlmeext->cur_wireless_mode = networkType;
- raid = networktype_to_raid(networkType);
-
- mask = update_supported_rate(cur_network->SupportedRates, supportRateNum);
- mask |= ((raid<<28)&0xf0000000);
+#ifdef CONFIG_TDLS
+ if(psta->tdls_sta_state & TDLS_LINKED_STATE)
+ {
+ shortGIrate = update_sgi_tdls(padapter, psta);
+ mask = update_mask_tdls(padapter, psta);
+ raid = mask>>28;
+ break;
+ }
+ else
+#endif //CONFIG_TDLS
+ {
+ supportRateNum = rtw_get_rateset_len(pmlmeinfo->FW_sta_info[mac_id].SupportedRates);
+ networkType = judge_network_type(padapter, pmlmeinfo->FW_sta_info[mac_id].SupportedRates, supportRateNum) & 0xf;
+ //pmlmeext->cur_wireless_mode = networkType;
+ raid = networktype_to_raid(networkType);
+
+ mask = update_supported_rate(cur_network->SupportedRates, supportRateNum);
+ mask |= ((raid<<28)&0xf0000000);
- //todo: support HT in IBSS
-
- break;
+ //todo: support HT in IBSS
+
+ break;
+ }
}
#ifdef CONFIG_BT_COEXIST
@@ -5942,6 +6158,7 @@ static void rtl8192cu_init_default_value(_adapter * padapter)
for(i = 0; i < HP_THERMAL_NUM; i++)
pdmpriv->ThermalValue_HP[i] = 0;
}
+
static u8 rtl8192cu_ps_func(PADAPTER Adapter,HAL_INTF_PS_FUNC efunc_id, u8 *val)
{
u8 bResult = _TRUE;
@@ -5949,10 +6166,10 @@ static u8 rtl8192cu_ps_func(PADAPTER Adapter,HAL_INTF_PS_FUNC efunc_id, u8 *val)
#if defined(CONFIG_AUTOSUSPEND) && defined(SUPPORT_HW_RFOFF_DETECTED)
case HAL_USB_SELECT_SUSPEND:
- {
+ {
u8 bfwpoll = *(( u8*)val);
rtl8192c_set_FwSelectSuspend_cmd(Adapter,bfwpoll ,500);//note fw to support hw power down ping detect
- }
+ }
break;
#endif //CONFIG_AUTOSUSPEND && SUPPORT_HW_RFOFF_DETECTED
@@ -5961,6 +6178,7 @@ static u8 rtl8192cu_ps_func(PADAPTER Adapter,HAL_INTF_PS_FUNC efunc_id, u8 *val)
}
return bResult;
}
+
void rtl8192cu_set_hal_ops(_adapter * padapter)
{
struct hal_ops *pHalFunc = &padapter->HalFunc;
@@ -5972,6 +6190,7 @@ _func_enter_;
DBG_8192C("cant not alloc memory for HAL DATA \n");
}
//_rtw_memset(padapter->HalData, 0, sizeof(HAL_DATA_TYPE));
+ padapter->hal_data_sz = sizeof(HAL_DATA_TYPE);
pHalFunc->hal_init = &rtl8192cu_hal_init;
pHalFunc->hal_deinit = &rtl8192cu_hal_deinit;
@@ -5991,7 +6210,7 @@ _func_enter_;
pHalFunc->DeInitSwLeds = &rtl8192cu_DeInitSwLeds;
#else //case of hw led or no led
pHalFunc->InitSwLeds = NULL;
- pHalFunc->DeInitSwLeds = NULL;
+ pHalFunc->DeInitSwLeds = NULL;
#endif//CONFIG_SW_LED
//pHalFunc->dm_init = &rtl8192c_init_dm_priv;
@@ -6017,13 +6236,14 @@ _func_enter_;
//pHalFunc->Add_RateATid = &rtl8192c_Add_RateATid;
//#ifdef CONFIG_SW_ANTENNA_DIVERSITY
- //pHalFunc->SwAntDivBeforeLinkHandler = &SwAntDivBeforeLink8192C;
- //pHalFunc->SwAntDivCompareHandler = &SwAntDivCompare8192C;
+ //pHalFunc->AntDivBeforeLinkHandler = &SwAntDivBeforeLink8192C;
+ //pHalFunc->AntDivCompareHandler = &SwAntDivCompare8192C;
//#endif
pHalFunc->hal_xmit = &rtl8192cu_hal_xmit;
pHalFunc->mgnt_xmit = &rtl8192cu_mgnt_xmit;
-
+ pHalFunc->hal_xmitframe_enqueue = &rtl8192cu_hal_xmitframe_enqueue;
+
//pHalFunc->read_bbreg = &rtl8192c_PHY_QueryBBReg;
//pHalFunc->write_bbreg = &rtl8192c_PHY_SetBBReg;
//pHalFunc->read_rfreg = &rtl8192c_PHY_QueryRFReg;
@@ -6033,7 +6253,7 @@ _func_enter_;
pHalFunc->hostap_mgnt_xmit_entry = &rtl8192cu_hostap_mgnt_xmit_entry;
#endif
pHalFunc->interface_ps_func = &rtl8192cu_ps_func;
-
+
rtl8192c_set_hal_ops(pHalFunc);
_func_exit_;
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_ce.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_ce.c
index 4d01b3c..9523337 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_ce.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_ce.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _HCI_OPS_OS_C_
#include <drv_conf.h>
@@ -870,7 +869,7 @@ _func_enter_;
//not to consider tx fragment
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
#if 1
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_linux.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_linux.c
index d6f3376..2d627d3 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_linux.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_linux.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _HCI_OPS_OS_C_
#include <drv_conf.h>
@@ -35,41 +34,11 @@
#endif
-struct zero_bulkout_context{
- void *pbuf;
- void *purb;
- void *pirp;
- void *padapter;
-};
-
-#define REALTEK_USB_VENQT_MAX_BUF_SIZE 254
-
-#define RTW_USB_CONTROL_MSG_TIMEOUT_TEST 10 //ms
-#define RTW_USB_CONTROL_MSG_TIMEOUT 500 //ms
-//#define RTW_USB_CONTROL_MSG_TIMEOUT 5000 //ms
-
-#if defined(CONFIG_VENDOR_REQ_RETRY) && defined(CONFIG_USB_VENDOR_REQ_MUTEX)
-//vendor req retry should be in the situation when each vendor req is atomically submitted from others
-#define MAX_USBCTRL_VENDORREQ_TIMES 10
-#else
-#define MAX_USBCTRL_VENDORREQ_TIMES 1
-#endif
-
-#define RTW_USB_BULKOUT_TIMEOUT 5000 //ms
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
-#define _usbctrl_vendorreq_async_callback(urb, regs) _usbctrl_vendorreq_async_callback(urb)
-#define usb_bulkout_zero_complete(purb, regs) usb_bulkout_zero_complete(purb)
-#define usb_write_mem_complete(purb, regs) usb_write_mem_complete(purb)
-#define usb_write_port_complete(purb, regs) usb_write_port_complete(purb)
-#define usb_read_port_complete(purb, regs) usb_read_port_complete(purb)
-#define usb_read_interrupt_complete(purb, regs) usb_read_interrupt_complete(purb)
-#endif
-
-static int usbctrl_vendorreq(struct dvobj_priv *pdvobjpriv, u8 request, u16 value, u16 index, void *pdata, u16 len, u8 requesttype)
+static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u16 index, void *pdata, u16 len, u8 requesttype)
{
- _adapter *padapter = pdvobjpriv->padapter ;
- struct usb_device *udev=pdvobjpriv->pusbdev;
+ _adapter *padapter = pintfhdl->padapter;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
+ struct usb_device *udev = pdvobjpriv->pusbdev;
unsigned int pipe;
int status = 0;
@@ -84,6 +53,16 @@ static int usbctrl_vendorreq(struct dvobj_priv *pdvobjpriv, u8 request, u16 val
u8 tmp_buf[MAX_USB_IO_CTL_SIZE];
#endif
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->adapter_type > PRIMARY_ADAPTER)
+ {
+ padapter = padapter->pbuddy_adapter;
+ pdvobjpriv = adapter_to_dvobj(padapter);
+ udev = pdvobjpriv->pusbdev;
+ }
+#endif
+
+
//DBG_871X("%s %s:%d\n",__FUNCTION__, current->comm, current->pid);
if((padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx)){
@@ -153,7 +132,7 @@ static int usbctrl_vendorreq(struct dvobj_priv *pdvobjpriv, u8 request, u16 val
if ( status == len) // Success this control transfer.
{
- rtw_reset_continual_urb_error(&padapter->dvobjpriv);
+ rtw_reset_continual_urb_error(pdvobjpriv);
if ( requesttype == 0x01 )
{ // For Control read transfer, we have to copy the read data from pIo_buf to pdata.
_rtw_memcpy( pdata, pIo_buf, len );
@@ -186,7 +165,7 @@ static int usbctrl_vendorreq(struct dvobj_priv *pdvobjpriv, u8 request, u16 val
}
}
- if(rtw_inc_and_chk_continual_urb_error(&padapter->dvobjpriv) == _TRUE ){
+ if(rtw_inc_and_chk_continual_urb_error(pdvobjpriv) == _TRUE ){
padapter->bSurpriseRemoved = _TRUE;
break;
}
@@ -220,8 +199,7 @@ static u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr)
u16 wvalue;
u16 index;
u16 len;
- u32 data=0;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
+ u32 data=0;
_func_enter_;
@@ -232,7 +210,7 @@ static u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr)
wvalue = (u16)(addr&0x0000ffff);
len = 1;
- usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, &data, len, requesttype);
+ usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
_func_exit_;
@@ -248,7 +226,6 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr)
u16 index;
u16 len;
u32 data=0;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
_func_enter_;
@@ -259,7 +236,7 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr)
wvalue = (u16)(addr&0x0000ffff);
len = 2;
- usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, &data, len, requesttype);
+ usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
_func_exit_;
@@ -275,7 +252,6 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr)
u16 index;
u16 len;
u32 data=0;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
_func_enter_;
@@ -286,7 +262,7 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr)
wvalue = (u16)(addr&0x0000ffff);
len = 4;
- usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, &data, len, requesttype);
+ usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
_func_exit_;
@@ -303,7 +279,6 @@ static int usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
u16 len;
u32 data;
int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
_func_enter_;
@@ -317,7 +292,7 @@ static int usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
data = val;
data = cpu_to_le32(data&0x000000ff);
- ret = usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, &data, len, requesttype);
+ ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
_func_exit_;
@@ -334,7 +309,6 @@ static int usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
u16 len;
u32 data;
int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
_func_enter_;
@@ -348,7 +322,7 @@ static int usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
data = val;
data = cpu_to_le32(data&0x0000ffff);
- ret = usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, &data, len, requesttype);
+ ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
_func_exit_;
@@ -365,7 +339,6 @@ static int usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
u16 len;
u32 data;
int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
_func_enter_;
@@ -378,14 +351,14 @@ static int usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
data = cpu_to_le32(val);
- ret =usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, &data, len, requesttype);
+ ret =usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
_func_exit_;
return ret;
}
-#define VENDOR_CMD_MAX_DATA_LEN 254
+
static int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata)
{
u8 request;
@@ -395,7 +368,6 @@ static int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata
u16 len;
u8 buf[VENDOR_CMD_MAX_DATA_LEN]={0};
int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
_func_enter_;
@@ -407,7 +379,7 @@ static int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata
len = length;
_rtw_memcpy(buf, pdata, len );
- ret = usbctrl_vendorreq(pdvobjpriv, request, wvalue, index, buf, len, requesttype);
+ ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, buf, len, requesttype);
_func_exit_;
@@ -415,271 +387,6 @@ static int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata
}
-#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
-static void _usbctrl_vendorreq_async_callback(struct urb *urb, struct pt_regs *regs)
-{
- if(urb){
- if(urb->context){
- kfree(urb->context);
- }
- usb_free_urb(urb);
- }
-}
-
-static int _usbctrl_vendorreq_async_write(struct usb_device *udev, u8 request, u16 value, u16 index, void *pdata, u16 len, u8 requesttype)
-{
-
- int rc;
- unsigned int pipe;
- u8 reqtype;
- struct usb_ctrlrequest *dr;
- struct urb *urb;
- struct rtl819x_async_write_data {
- u8 data[REALTEK_USB_VENQT_MAX_BUF_SIZE];
- struct usb_ctrlrequest dr;
- } *buf;
-
- if (requesttype == VENDOR_READ){
- pipe = usb_rcvctrlpipe(udev, 0);//read_in
- reqtype = REALTEK_USB_VENQT_READ;
- }
- else {
- pipe = usb_sndctrlpipe(udev, 0);//write_out
- reqtype = REALTEK_USB_VENQT_WRITE;
- }
-
- //buf = kmalloc(sizeof(*buf), GFP_ATOMIC);
- buf = (struct rtl819x_async_write_data *)rtw_zmalloc(sizeof(*buf));
- if (!buf) {
- rc = -ENOMEM;
- goto exit;
- }
-
- urb = usb_alloc_urb(0, GFP_ATOMIC);
- if (!urb) {
- rtw_mfree((u8*)buf,sizeof(*buf));
- rc = -ENOMEM;
- goto exit;
- }
-
- dr = &buf->dr;
-
- dr->bRequestType = reqtype;
- dr->bRequest = request;
- dr->wValue = cpu_to_le16(value);
- dr->wIndex = cpu_to_le16(index);
- dr->wLength = cpu_to_le16(len);
-
- _rtw_memcpy(buf, pdata, len);
-
- usb_fill_control_urb(urb, udev, pipe,
- (unsigned char *)dr, buf, len,
- _usbctrl_vendorreq_async_callback, buf);
-
- rc = usb_submit_urb(urb, GFP_ATOMIC);
- if (rc < 0) {
- rtw_mfree((u8*)buf,sizeof(*buf));
- usb_free_urb(urb);
- }
-
-exit:
- return rc;
-
-}
-
-static int usb_write_async(struct usb_device *udev, u32 addr, u32 val, u16 len)
-{
- u8 request;
- u8 requesttype;
- u16 wvalue;
- u16 index;
- u32 data;
- int ret;
-
- requesttype = VENDOR_WRITE;//write_out
- request = REALTEK_USB_VENQT_CMD_REQ;
- index = REALTEK_USB_VENQT_CMD_IDX;//n/a
-
- wvalue = (u16)(addr&0x0000ffff);
- data = val & (0xffffffff >> ((4 - len) * 8));
- data = cpu_to_le32(data);
-
- ret = _usbctrl_vendorreq_async_write(udev, request, wvalue, index, &data, len, requesttype);
-
- return ret;
-}
-static int usb_async_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
-{
- u32 data;
- int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
- struct usb_device *udev=pdvobjpriv->pusbdev;
-
- _func_enter_;
- data = cpu_to_le32(val & 0xFF);
- ret = usb_write_async(udev, addr, val, 1);
- _func_exit_;
-
- return ret;
-}
-
-static int usb_async_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
-{
- u32 data;
- int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
- struct usb_device *udev=pdvobjpriv->pusbdev;
-
- _func_enter_;
- data = cpu_to_le32(val & 0xFFFF);
- ret = usb_write_async(udev, addr, val, 2);
- _func_exit_;
-
- return ret;
-}
-static int usb_async_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
-{
- u32 data;
- int ret;
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
- struct usb_device *udev=pdvobjpriv->pusbdev;
-
- _func_enter_;
- data = cpu_to_le32(val);
- ret = usb_write_async(udev, addr, val, 4);
- _func_exit_;
-
- return ret;
-}
-#endif
-
-static unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr)
-{
- unsigned int pipe=0;
- int ep_num=0;
- _adapter *padapter = pdvobj->padapter;
- struct usb_device *pusbd = pdvobj->pusbdev;
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
-
- if(addr == RECV_BULK_IN_ADDR)
- {
- pipe=usb_rcvbulkpipe(pusbd, 0x01);
-
- return pipe;
- }
-
- if(addr == RECV_INT_IN_ADDR)
- {
- pipe=usb_rcvbulkpipe(pusbd, 0x04);
-
- return pipe;
- }
-
- if(addr < HW_QUEUE_ENTRY)
- {
- ep_num = (pHalData->Queue2EPNum[(u8)addr] & 0x0f);
-
- pipe = usb_sndbulkpipe(pusbd, ep_num);
-
- return pipe;
- }
-
- return pipe;
-
-}
-
-static void usb_bulkout_zero_complete(struct urb *purb, struct pt_regs *regs)
-{
- struct zero_bulkout_context *pcontext = (struct zero_bulkout_context *)purb->context;
-
- //DBG_8192C("+usb_bulkout_zero_complete\n");
-
- if(pcontext)
- {
- if(pcontext->pbuf)
- {
- rtw_mfree(pcontext->pbuf, sizeof(int));
- }
-
- if(pcontext->purb && (pcontext->purb==purb))
- {
- usb_free_urb(pcontext->purb);
- }
-
-
- rtw_mfree((u8*)pcontext, sizeof(struct zero_bulkout_context));
- }
-
-
-}
-
-static u32 usb_bulkout_zero(struct intf_hdl *pintfhdl, u32 addr)
-{
- int pipe, status, len;
- u32 ret;
- unsigned char *pbuf;
- struct zero_bulkout_context *pcontext;
- PURB purb = NULL;
- _adapter *padapter = (_adapter *)pintfhdl->padapter;
- struct dvobj_priv *pdvobj = (struct dvobj_priv *)&padapter->dvobjpriv;
- struct usb_device *pusbd = pdvobj->pusbdev;
-
- //DBG_8192C("+usb_bulkout_zero\n");
-
-
- if((padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx))
- {
- return _FAIL;
- }
-
-
- pcontext = (struct zero_bulkout_context *)rtw_zmalloc(sizeof(struct zero_bulkout_context));
-
- pbuf = (unsigned char *)rtw_zmalloc(sizeof(int));
- purb = usb_alloc_urb(0, GFP_ATOMIC);
-
- len = 0;
- pcontext->pbuf = pbuf;
- pcontext->purb = purb;
- pcontext->pirp = NULL;
- pcontext->padapter = padapter;
-
-
- //translate DMA FIFO addr to pipehandle
- //pipe = ffaddr2pipehdl(pdvobj, addr);
-
- usb_fill_bulk_urb(purb, pusbd, pipe,
- pbuf,
- len,
- usb_bulkout_zero_complete,
- pcontext);//context is pcontext
-
- status = usb_submit_urb(purb, GFP_ATOMIC);
-
- if (!status)
- {
- ret= _SUCCESS;
- }
- else
- {
- ret= _FAIL;
- }
-
-
- return _SUCCESS;
-
-}
-
-static void usb_read_mem(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
-{
-
-}
-
-static void usb_write_mem(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
-{
-
-}
-
#ifdef CONFIG_USB_INTERRUPT_IN_PIPE
static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
{
@@ -731,8 +438,8 @@ static u32 usb_read_interrupt(struct intf_hdl *pintfhdl, u32 addr)
int err;
unsigned int pipe;
u32 ret = _SUCCESS;
- struct dvobj_priv *pdvobj = (struct dvobj_priv *)pintfhdl->pintf_dev;
- _adapter *adapter = (_adapter *)pdvobj->padapter;
+ _adapter *adapter = pintfhdl->padapter;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(adapter);
struct recv_priv *precvpriv = &adapter->recvpriv;
struct usb_device *pusbd = pdvobj->pusbdev;
@@ -761,17 +468,220 @@ _func_exit_;
}
#endif
+static s32 pre_recv_entry(union recv_frame *precvframe, struct recv_stat *prxstat, struct phy_stat *pphy_info)
+{
+ s32 ret=_SUCCESS;
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 *primary_myid, *secondary_myid, *paddr1;
+ union recv_frame *precvframe_if2 = NULL;
+ _adapter *primary_padapter = precvframe->u.hdr.adapter;
+ _adapter *secondary_padapter = primary_padapter->pbuddy_adapter;
+ struct recv_priv *precvpriv = &primary_padapter->recvpriv;
+ _queue *pfree_recv_queue = &precvpriv->free_recv_queue;
+ u8 *pbuf = precvframe->u.hdr.rx_data;
+
+ if(!secondary_padapter)
+ return ret;
+
+ paddr1 = GetAddr1Ptr(precvframe->u.hdr.rx_data);
+
+ if(IS_MCAST(paddr1) == _FALSE)//unicast packets
+ {
+ //primary_myid = myid(&primary_padapter->eeprompriv);
+ secondary_myid = myid(&secondary_padapter->eeprompriv);
+
+ if(_rtw_memcmp(paddr1, secondary_myid, ETH_ALEN))
+ {
+ //change to secondary interface
+ precvframe->u.hdr.adapter = secondary_padapter;
+ }
+
+ //ret = recv_entry(precvframe);
+
+ }
+ else // Handle BC/MC Packets
+ {
+
+ u8 clone = _TRUE;
+#if 0
+ u8 type, subtype, *paddr2, *paddr3;
+
+ type = GetFrameType(pbuf);
+ subtype = GetFrameSubType(pbuf); //bit(7)~bit(2)
+
+ switch (type)
+ {
+ case WIFI_MGT_TYPE: //Handle BC/MC mgnt Packets
+ if(subtype == WIFI_BEACON)
+ {
+ paddr3 = GetAddr3Ptr(precvframe->u.hdr.rx_data);
+
+ if (check_fwstate(&secondary_padapter->mlmepriv, _FW_LINKED) &&
+ _rtw_memcmp(paddr3, get_bssid(&secondary_padapter->mlmepriv), ETH_ALEN))
+ {
+ //change to secondary interface
+ precvframe->u.hdr.adapter = secondary_padapter;
+ clone = _FALSE;
+ }
+
+ if(check_fwstate(&primary_padapter->mlmepriv, _FW_LINKED) &&
+ _rtw_memcmp(paddr3, get_bssid(&primary_padapter->mlmepriv), ETH_ALEN))
+ {
+ if(clone==_FALSE)
+ {
+ clone = _TRUE;
+ }
+ else
+ {
+ clone = _FALSE;
+ }
+
+ precvframe->u.hdr.adapter = primary_padapter;
+ }
+
+ if(check_fwstate(&primary_padapter->mlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) ||
+ check_fwstate(&secondary_padapter->mlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING))
+ {
+ clone = _TRUE;
+ precvframe->u.hdr.adapter = primary_padapter;
+ }
+
+ }
+ else if(subtype == WIFI_PROBEREQ)
+ {
+ //probe req frame is only for interface2
+ //change to secondary interface
+ precvframe->u.hdr.adapter = secondary_padapter;
+ clone = _FALSE;
+ }
+ break;
+ case WIFI_CTRL_TYPE: // Handle BC/MC ctrl Packets
+
+ break;
+ case WIFI_DATA_TYPE: //Handle BC/MC data Packets
+ //Notes: AP MODE never rx BC/MC data packets
+
+ paddr2 = GetAddr2Ptr(precvframe->u.hdr.rx_data);
+
+ if(_rtw_memcmp(paddr2, get_bssid(&secondary_padapter->mlmepriv), ETH_ALEN))
+ {
+ //change to secondary interface
+ precvframe->u.hdr.adapter = secondary_padapter;
+ clone = _FALSE;
+ }
+
+ break;
+ default:
+
+ break;
+ }
+#endif
+
+ if(_TRUE == clone)
+ {
+ //clone/copy to if2
+ u8 shift_sz = 0;
+ u32 alloc_sz, skb_len;
+ _pkt *pkt_copy = NULL;
+ struct rx_pkt_attrib *pattrib = NULL;
+
+ precvframe_if2 = rtw_alloc_recvframe(pfree_recv_queue);
+ if(precvframe_if2)
+ {
+ precvframe_if2->u.hdr.adapter = secondary_padapter;
+
+ _rtw_init_listhead(&precvframe_if2->u.hdr.list);
+ precvframe_if2->u.hdr.precvbuf = NULL; //can't access the precvbuf for new arch.
+ precvframe_if2->u.hdr.len=0;
+
+ _rtw_memcpy(&precvframe_if2->u.hdr.attrib, &precvframe->u.hdr.attrib, sizeof(struct rx_pkt_attrib));
+
+ pattrib = &precvframe_if2->u.hdr.attrib;
+
+ // Modified by Albert 20101213
+ // For 8 bytes IP header alignment.
+ if (pattrib->qos) // Qos data, wireless lan header length is 26
+ {
+ shift_sz = 6;
+ }
+ else
+ {
+ shift_sz = 0;
+ }
+
+ skb_len = pattrib->pkt_len;
+
+ // for first fragment packet, driver need allocate 1536+drvinfo_sz+RXDESC_SIZE to defrag packet.
+ // modify alloc_sz for recvive crc error packet by thomas 2011-06-02
+ if((pattrib->mfrag == 1)&&(pattrib->frag_num == 0)){
+ //alloc_sz = 1664; //1664 is 128 alignment.
+ if(skb_len <= 1650)
+ alloc_sz = 1664;
+ else
+ alloc_sz = skb_len + 14;
+ }
+ else {
+ alloc_sz = skb_len;
+ // 6 is for IP header 8 bytes alignment in QoS packet case.
+ // 8 is for skb->data 4 bytes alignment.
+ alloc_sz += 14;
+ }
+
+ pkt_copy = rtw_skb_alloc(alloc_sz);
+
+ if(pkt_copy)
+ {
+ pkt_copy->dev = secondary_padapter->pnetdev;
+ precvframe_if2->u.hdr.pkt = pkt_copy;
+ precvframe_if2->u.hdr.rx_head = pkt_copy->data;
+ precvframe_if2->u.hdr.rx_end = pkt_copy->data + alloc_sz;
+ skb_reserve( pkt_copy, 8 - ((SIZE_PTR)( pkt_copy->data ) & 7 ));//force pkt_copy->data at 8-byte alignment address
+ skb_reserve( pkt_copy, shift_sz );//force ip_hdr at 8-byte alignment address according to shift_sz.
+ _rtw_memcpy(pkt_copy->data, pbuf, skb_len);
+ precvframe_if2->u.hdr.rx_data = precvframe_if2->u.hdr.rx_tail = pkt_copy->data;
+
+
+ recvframe_put(precvframe_if2, skb_len);
+ //recvframe_pull(precvframe_if2, drvinfo_sz + RXDESC_SIZE);
+
+ rtl8192c_translate_rx_signal_stuff(precvframe_if2, pphy_info);
+
+ ret = rtw_recv_entry(precvframe_if2);
+
+ } else {
+ rtw_free_recvframe(precvframe_if2, pfree_recv_queue);
+ DBG_8192C("%s()-%d: alloc_skb() failed!\n", __FUNCTION__, __LINE__);
+ }
+
+ }
+
+ }
+
+ }
+
+ rtl8192c_translate_rx_signal_stuff(precvframe, pphy_info);
+
+ ret = rtw_recv_entry(precvframe);
+
+#endif
+
+ return ret;
+
+}
+
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
{
u8 *pbuf;
- u8 frag, mf, shift_sz = 0;
+ u8 shift_sz = 0;
u16 pkt_cnt, drvinfo_sz;
- u32 pkt_len, pkt_offset, skb_len, alloc_sz;
+ u32 pkt_offset, skb_len, alloc_sz;
s32 transfer_len;
struct recv_stat *prxstat;
- _pkt *pkt_copy = NULL;
- union recv_frame *precvframe = NULL;
+ struct phy_stat *pphy_info = NULL;
+ _pkt *pkt_copy = NULL;
+ union recv_frame *precvframe = NULL;
+ struct rx_pkt_attrib *pattrib = NULL;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
struct recv_priv *precvpriv = &padapter->recvpriv;
_queue *pfree_recv_queue = &precvpriv->free_recv_queue;
@@ -795,28 +705,41 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
("recvbuf2recvframe: rxdesc=offsset 0:0x%08x, 4:0x%08x, 8:0x%08x, C:0x%08x\n",
prxstat->rxdw0, prxstat->rxdw1, prxstat->rxdw2, prxstat->rxdw4));
- prxstat = (struct recv_stat *)pbuf;
- pkt_len = le32_to_cpu(prxstat->rxdw0)&0x00003fff;
-
+ prxstat = (struct recv_stat *)pbuf;
+
+ precvframe = rtw_alloc_recvframe(pfree_recv_queue);
+ if(precvframe==NULL)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: precvframe==NULL\n"));
+ DBG_8192C("%s()-%d: rtw_alloc_recvframe() failed! RX Drop!\n", __FUNCTION__, __LINE__);
+ goto _exit_recvbuf2recvframe;
+ }
+
+ _rtw_init_listhead(&precvframe->u.hdr.list);
+ precvframe->u.hdr.precvbuf = NULL; //can't access the precvbuf for new arch.
+ precvframe->u.hdr.len=0;
- mf = (le32_to_cpu(prxstat->rxdw1) >> 27) & 0x1;//more fragment bit
- frag = (le32_to_cpu(prxstat->rxdw2) >> 12) & 0xf;//fragmentation number
+ rtl8192c_query_rx_desc_status(precvframe, prxstat);
- drvinfo_sz = (le32_to_cpu(prxstat->rxdw0) & 0x000f0000) >> 16;
- drvinfo_sz = drvinfo_sz << 3;//uint (2^3) = 8 bytes; REG_RX_DRVINFO_SZ
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe: DRV_INFO_SIZE=%d\n", drvinfo_sz));
+ pattrib = &precvframe->u.hdr.attrib;
+ if(pattrib->physt)
+ {
+ pphy_info = (struct phy_stat *)(pbuf + RXDESC_OFFSET);
+ }
- pkt_offset = pkt_len + drvinfo_sz + RXDESC_SIZE;
+ pkt_offset = RXDESC_SIZE + pattrib->drvinfo_sz + pattrib->shift_sz + pattrib->pkt_len;
- if((pkt_len<=0) || (pkt_offset>transfer_len))
+ if((pattrib->pkt_len<=0) || (pkt_offset>transfer_len))
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe: pkt_len<=0\n"));
+ DBG_8192C("%s()-%d: RX Warning!\n", __FUNCTION__, __LINE__);
+ rtw_free_recvframe(precvframe, pfree_recv_queue);
goto _exit_recvbuf2recvframe;
- }
+ }
// Modified by Albert 20101213
// For 8 bytes IP header alignment.
- if ( ( le32_to_cpu( prxstat->rxdw0 ) >> 23 ) & 0x01 ) // Qos data, wireless lan header length is 26
+ if (pattrib->qos) // Qos data, wireless lan header length is 26
{
shift_sz = 6;
}
@@ -825,23 +748,11 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
shift_sz = 0;
}
- precvframe = rtw_alloc_recvframe(pfree_recv_queue);
- if(precvframe==NULL)
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: precvframe==NULL\n"));
- goto _exit_recvbuf2recvframe;
- }
-
- _rtw_init_listhead(&precvframe->u.hdr.list);
- precvframe->u.hdr.precvbuf = NULL; //can't access the precvbuf for new arch.
- precvframe->u.hdr.len=0;
-
- //skb_len = pkt_offset;
- skb_len = pkt_len;
+ skb_len = pattrib->pkt_len;
// for first fragment packet, driver need allocate 1536+drvinfo_sz+RXDESC_SIZE to defrag packet.
// modify alloc_sz for recvive crc error packet by thomas 2011-06-02
- if((mf ==1)&&(frag == 0)){
+ if((pattrib->mfrag == 1)&&(pattrib->frag_num == 0)){
//alloc_sz = 1664; //1664 is 128 alignment.
if(skb_len <= 1650)
alloc_sz = 1664;
@@ -854,27 +765,24 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
// 8 is for skb->data 4 bytes alignment.
alloc_sz += 14;
}
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- pkt_copy = dev_alloc_skb(alloc_sz);
-#else
- pkt_copy = netdev_alloc_skb(padapter->pnetdev, alloc_sz);
-#endif
+ pkt_copy = rtw_skb_alloc(alloc_sz);
+
if(pkt_copy)
{
pkt_copy->dev = padapter->pnetdev;
precvframe->u.hdr.pkt = pkt_copy;
+ precvframe->u.hdr.rx_head = pkt_copy->data;
+ precvframe->u.hdr.rx_end = pkt_copy->data + alloc_sz;
skb_reserve( pkt_copy, 8 - ((SIZE_PTR)( pkt_copy->data ) & 7 ));//force pkt_copy->data at 8-byte alignment address
skb_reserve( pkt_copy, shift_sz );//force ip_hdr at 8-byte alignment address according to shift_sz.
- _rtw_memcpy(pkt_copy->data, (pbuf + drvinfo_sz + RXDESC_SIZE), skb_len);
- precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data;
- precvframe->u.hdr.rx_end = pkt_copy->data + alloc_sz;
+ _rtw_memcpy(pkt_copy->data, (pbuf + pattrib->shift_sz + pattrib->drvinfo_sz + RXDESC_SIZE), skb_len);
+ precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data;
}
else
{
- DBG_8192C("recvbuf2recvframe:can not allocate memory for skb copy\n");
- //precvframe->u.hdr.pkt = skb_clone(pskb, GFP_ATOMIC);
+ DBG_8192C("recvbuf2recvframe:can not allocate memory for skb copy\n");
+ //precvframe->u.hdr.pkt = rtw_skb_clone(pskb);
//precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pbuf;
//precvframe->u.hdr.rx_end = pbuf + (pkt_offset>1612?pkt_offset:1612);
@@ -901,15 +809,32 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
default:
break;
}
-#endif
-
- //because the endian issue, driver avoid reference to the rxstat after calling update_recvframe_attrib_from_recvstat();
- rtl8192cu_update_recvframe_attrib_from_recvstat(precvframe, prxstat);
-
+#endif
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(rtw_buddy_adapter_up(padapter))
+ {
+ if(pre_recv_entry(precvframe, prxstat, pphy_info) != _SUCCESS)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: recv_entry(precvframe) != _SUCCESS\n"));
+ }
+ }
+ else
+ {
+ rtl8192c_translate_rx_signal_stuff(precvframe, pphy_info);
+ if(rtw_recv_entry(precvframe) != _SUCCESS)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: rtw_recv_entry(precvframe) != _SUCCESS\n"));
+ }
+ }
+
+#else
+ rtl8192c_translate_rx_signal_stuff(precvframe, pphy_info);
if(rtw_recv_entry(precvframe) != _SUCCESS)
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: rtw_recv_entry(precvframe) != _SUCCESS\n"));
}
+#endif
pkt_cnt--;
transfer_len -= pkt_offset;
@@ -924,7 +849,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
_exit_recvbuf2recvframe:
- return _SUCCESS;
+ return _SUCCESS;
}
void rtl8192cu_recv_tasklet(void *priv)
@@ -977,7 +902,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
}
else
{
- rtw_reset_continual_urb_error(&padapter->dvobjpriv);
+ rtw_reset_continual_urb_error(adapter_to_dvobj(padapter));
precvbuf->transfer_len = purb->actual_length;
@@ -993,7 +918,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
DBG_8192C("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
- if(rtw_inc_and_chk_continual_urb_error(&padapter->dvobjpriv) == _TRUE ){
+ if(rtw_inc_and_chk_continual_urb_error(adapter_to_dvobj(padapter)) == _TRUE ){
padapter->bSurpriseRemoved = _TRUE;
}
@@ -1009,6 +934,10 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n"));
break;
case -EPROTO:
+ case -EILSEQ:
+ case -ETIME:
+ case -ECOMM:
+ case -EOVERFLOW:
#ifdef DBG_CONFIG_ERROR_DETECT
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@@ -1037,10 +966,10 @@ static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
int err;
unsigned int pipe;
u32 ret = _SUCCESS;
- PURB purb = NULL;
+ PURB purb = NULL;
struct recv_buf *precvbuf = (struct recv_buf *)rmem;
- struct dvobj_priv *pdvobj = (struct dvobj_priv *)pintfhdl->pintf_dev;
- _adapter *adapter = (_adapter *)pdvobj->padapter;
+ _adapter *adapter = pintfhdl->padapter;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(adapter);
struct recv_priv *precvpriv = &adapter->recvpriv;
struct usb_device *pusbd = pdvobj->pusbdev;
@@ -1099,13 +1028,15 @@ _func_exit_;
static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
{
u8 *pbuf;
- u8 frag, mf, shift_sz = 0;
- u16 pkt_cnt, drvinfo_sz;
- u32 pkt_len, pkt_offset, skb_len, alloc_sz;
+ u8 shift_sz = 0;
+ u16 pkt_cnt;
+ u32 pkt_offset, skb_len, alloc_sz;
s32 transfer_len;
struct recv_stat *prxstat;
+ struct phy_stat *pphy_info = NULL;
_pkt *pkt_copy = NULL;
union recv_frame *precvframe = NULL;
+ struct rx_pkt_attrib *pattrib = NULL;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
struct recv_priv *precvpriv = &padapter->recvpriv;
_queue *pfree_recv_queue = &precvpriv->free_recv_queue;
@@ -1116,7 +1047,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
prxstat = (struct recv_stat *)pbuf;
pkt_cnt = (le32_to_cpu(prxstat->rxdw2)>>16) & 0xff;
-
+
#if 0 //temp remove when disable usb rx aggregation
if((pkt_cnt > 10) || (pkt_cnt < 1) || (transfer_len<RXDESC_SIZE) ||(pkt_len<=0))
{
@@ -1129,27 +1060,41 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
("recvbuf2recvframe: rxdesc=offsset 0:0x%08x, 4:0x%08x, 8:0x%08x, C:0x%08x\n",
prxstat->rxdw0, prxstat->rxdw1, prxstat->rxdw2, prxstat->rxdw4));
- prxstat = (struct recv_stat *)pbuf;
- pkt_len = le32_to_cpu(prxstat->rxdw0)&0x00003fff;
+ prxstat = (struct recv_stat *)pbuf;
+
+ precvframe = rtw_alloc_recvframe(pfree_recv_queue);
+ if(precvframe==NULL)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: precvframe==NULL\n"));
+ DBG_8192C("%s()-%d: rtw_alloc_recvframe() failed! RX Drop!\n", __FUNCTION__, __LINE__);
+ goto _exit_recvbuf2recvframe;
+ }
+
+ _rtw_init_listhead(&precvframe->u.hdr.list);
+ precvframe->u.hdr.precvbuf = NULL; //can't access the precvbuf for new arch.
+ precvframe->u.hdr.len=0;
- mf = (le32_to_cpu(prxstat->rxdw1) >> 27) & 0x1;//more fragment bit
- frag = (le32_to_cpu(prxstat->rxdw2) >> 12) & 0xf;//fragmentation number
+ rtl8192c_query_rx_desc_status(precvframe, prxstat);
- drvinfo_sz = (le32_to_cpu(prxstat->rxdw0) & 0x000f0000) >> 16;
- drvinfo_sz = drvinfo_sz << 3;//uint (2^3) = 8 bytes; REG_RX_DRVINFO_SZ
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe: DRV_INFO_SIZE=%d\n", drvinfo_sz));
+ pattrib = &precvframe->u.hdr.attrib;
+ if(pattrib->physt)
+ {
+ pphy_info = (struct phy_stat *)(pbuf + RXDESC_OFFSET);
+ }
- pkt_offset = pkt_len + drvinfo_sz + RXDESC_SIZE;
+ pkt_offset = RXDESC_SIZE + pattrib->drvinfo_sz + pattrib->shift_sz + pattrib->pkt_len;
- if((pkt_len<=0) || (pkt_offset>transfer_len))
+ if((pattrib->pkt_len<=0) || (pkt_offset>transfer_len))
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe: pkt_len<=0\n"));
+ DBG_8192C("%s()-%d: RX Warning!\n", __FUNCTION__, __LINE__);
+ rtw_free_recvframe(precvframe, pfree_recv_queue);
goto _exit_recvbuf2recvframe;
- }
+ }
// Modified by Albert 20101213
// For 8 bytes IP header alignment.
- if ( ( le32_to_cpu( prxstat->rxdw0 ) >> 23 ) & 0x01 ) // Qos data, wireless lan header length is 26
+ if (pattrib->qos) // Qos data, wireless lan header length is 26
{
shift_sz = 6;
}
@@ -1158,23 +1103,11 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
shift_sz = 0;
}
- precvframe = rtw_alloc_recvframe(pfree_recv_queue);
- if(precvframe==NULL)
- {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: precvframe==NULL\n"));
- goto _exit_recvbuf2recvframe;
- }
-
- _rtw_init_listhead(&precvframe->u.hdr.list);
- precvframe->u.hdr.precvbuf = NULL; //can't access the precvbuf for new arch.
- precvframe->u.hdr.len=0;
-
- //skb_len = pkt_offset;
- skb_len = pkt_len;
+ skb_len = pattrib->pkt_len;
// for first fragment packet, driver need allocate 1536+drvinfo_sz+RXDESC_SIZE to defrag packet.
// modify alloc_sz for recvive crc error packet by thomas 2011-06-02
- if((mf ==1)&&(frag == 0)){
+ if((pattrib->mfrag == 1)&&(pattrib->frag_num == 0)){
//alloc_sz = 1664; //1664 is 128 alignment.
if(skb_len <= 1650)
alloc_sz = 1664;
@@ -1187,26 +1120,24 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
// 8 is for skb->data 4 bytes alignment.
alloc_sz += 14;
}
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- pkt_copy = dev_alloc_skb(alloc_sz);
-#else
- pkt_copy = netdev_alloc_skb(padapter->pnetdev, alloc_sz);
-#endif
+ pkt_copy = rtw_skb_alloc(alloc_sz);
+
if(pkt_copy)
{
pkt_copy->dev = padapter->pnetdev;
precvframe->u.hdr.pkt = pkt_copy;
+ precvframe->u.hdr.rx_head = pkt_copy->data;
+ precvframe->u.hdr.rx_end = pkt_copy->data + alloc_sz;
skb_reserve( pkt_copy, 8 - ((SIZE_PTR)( pkt_copy->data ) & 7 ));//force pkt_copy->data at 8-byte alignment address
skb_reserve( pkt_copy, shift_sz );//force ip_hdr at 8-byte alignment address according to shift_sz.
- _rtw_memcpy(pkt_copy->data, (pbuf + drvinfo_sz + RXDESC_SIZE), skb_len);
- precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data;
- precvframe->u.hdr.rx_end = pkt_copy->data + alloc_sz;
+ _rtw_memcpy(pkt_copy->data, (pbuf + pattrib->shift_sz + pattrib->drvinfo_sz + RXDESC_SIZE), skb_len);
+ precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data;
+
}
else
{
- precvframe->u.hdr.pkt = skb_clone(pskb, GFP_ATOMIC);
+ precvframe->u.hdr.pkt = rtw_skb_clone(pskb);
if(pkt_copy)
{
precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pbuf;
@@ -1214,7 +1145,8 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
}
else
{
- DBG_8192C("recvbuf2recvframe: skb_clone fail\n");
+ DBG_8192C("recvbuf2recvframe: rtw_skb_clone fail\n");
+ rtw_free_recvframe(precvframe, pfree_recv_queue);
goto _exit_recvbuf2recvframe;
}
}
@@ -1238,13 +1170,30 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
}
#endif
- //because the endian issue, driver avoid reference to the rxstat after calling update_recvframe_attrib_from_recvstat();
- rtl8192cu_update_recvframe_attrib_from_recvstat(precvframe, prxstat);
-
+#ifdef CONFIG_CONCURRENT_MODE
+ if(rtw_buddy_adapter_up(padapter))
+ {
+ if(pre_recv_entry(precvframe, prxstat, pphy_info) != _SUCCESS)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: recv_entry(precvframe) != _SUCCESS\n"));
+ }
+ }
+ else
+ {
+ rtl8192c_translate_rx_signal_stuff(precvframe, pphy_info);
+ if(rtw_recv_entry(precvframe) != _SUCCESS)
+ {
+ RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: rtw_recv_entry(precvframe) != _SUCCESS\n"));
+ }
+ }
+
+#else
+ rtl8192c_translate_rx_signal_stuff(precvframe, pphy_info);
if(rtw_recv_entry(precvframe) != _SUCCESS)
{
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: rtw_recv_entry(precvframe) != _SUCCESS\n"));
}
+#endif
pkt_cnt--;
transfer_len -= pkt_offset;
@@ -1273,7 +1222,7 @@ void rtl8192cu_recv_tasklet(void *priv)
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
{
DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved \n");
- dev_kfree_skb_any(pskb);
+ rtw_skb_free(pskb);
break;
}
@@ -1281,17 +1230,14 @@ void rtl8192cu_recv_tasklet(void *priv)
#ifdef CONFIG_PREALLOC_RECV_SKB
-#ifdef NET_SKBUFF_DATA_USES_OFFSET
skb_reset_tail_pointer(pskb);
-#else
- pskb->tail = pskb->data;
-#endif
+
pskb->len = 0;
skb_queue_tail(&precvpriv->free_recv_skb_queue, pskb);
#else
- dev_kfree_skb_any(pskb);
+ rtw_skb_free(pskb);
#endif
}
@@ -1331,10 +1277,11 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
#else
if(precvbuf->pskb){
DBG_8192C("==> free skb(%p)\n",precvbuf->pskb);
- dev_kfree_skb_any(precvbuf->pskb);
+ rtw_skb_free(precvbuf->pskb);
}
#endif
-
+ DBG_8192C("%s()-%d: RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
+ __FUNCTION__, __LINE__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel);
goto exit;
}
@@ -1345,10 +1292,11 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete: (purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)\n"));
precvbuf->reuse = _TRUE;
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
+ DBG_8192C("%s()-%d: RX Warning!\n", __FUNCTION__, __LINE__);
}
else
{
- rtw_reset_continual_urb_error(&padapter->dvobjpriv);
+ rtw_reset_continual_urb_error(adapter_to_dvobj(padapter));
precvbuf->transfer_len = purb->actual_length;
skb_put(precvbuf->pskb, purb->actual_length);
@@ -1368,7 +1316,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
DBG_8192C("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
- if(rtw_inc_and_chk_continual_urb_error(&padapter->dvobjpriv) == _TRUE ){
+ if(rtw_inc_and_chk_continual_urb_error(adapter_to_dvobj(padapter)) == _TRUE ){
padapter->bSurpriseRemoved = _TRUE;
}
@@ -1384,6 +1332,10 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n"));
break;
case -EPROTO:
+ case -EILSEQ:
+ case -ETIME:
+ case -ECOMM:
+ case -EOVERFLOW:
#ifdef DBG_CONFIG_ERROR_DETECT
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@@ -1394,9 +1346,11 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
break;
case -EINPROGRESS:
+ precvpriv->read_port_complete_EINPROGRESS_cnt++;
DBG_8192C("ERROR: URB IS IN PROGRESS!/n");
break;
default:
+ precvpriv->read_port_complete_other_urb_err_cnt++;
break;
}
@@ -1418,12 +1372,11 @@ static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
u32 ret = _SUCCESS;
PURB purb = NULL;
struct recv_buf *precvbuf = (struct recv_buf *)rmem;
- struct dvobj_priv *pdvobj = (struct dvobj_priv *)pintfhdl->pintf_dev;
- _adapter *adapter = (_adapter *)pdvobj->padapter;
+ _adapter *adapter = pintfhdl->padapter;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(adapter);
struct recv_priv *precvpriv = &adapter->recvpriv;
struct usb_device *pusbd = pdvobj->pusbdev;
-
_func_enter_;
if(adapter->bDriverStopped || adapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)
@@ -1450,15 +1403,12 @@ _func_enter_;
//re-assign for linux based on skb
if((precvbuf->reuse == _FALSE) || (precvbuf->pskb == NULL))
{
- //precvbuf->pskb = alloc_skb(MAX_RECVBUF_SZ, GFP_ATOMIC);//don't use this after v2.6.25
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- precvbuf->pskb = dev_alloc_skb(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
-#else
- precvbuf->pskb = netdev_alloc_skb(adapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
-#endif
+ precvbuf->pskb = rtw_skb_alloc(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
+
if(precvbuf->pskb == NULL)
{
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("init_recvbuf(): alloc_skb fail!\n"));
+ precvpriv->recvbuf_skb_alloc_fail_cnt++;
return _FAIL;
}
@@ -1468,28 +1418,16 @@ _func_enter_;
precvbuf->phead = precvbuf->pskb->head;
precvbuf->pdata = precvbuf->pskb->data;
-
-#ifdef NET_SKBUFF_DATA_USES_OFFSET
- precvbuf->ptail = precvbuf->pskb->head + precvbuf->pskb->tail;
- precvbuf->pend = precvbuf->ptail + (MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
-#else
- precvbuf->ptail = precvbuf->pskb->tail;
- precvbuf->pend = precvbuf->pskb->end;
-#endif
+ precvbuf->ptail = skb_tail_pointer(precvbuf->pskb);
+ precvbuf->pend = skb_end_pointer(precvbuf->pskb);
precvbuf->pbuf = precvbuf->pskb->data;
}
else//reuse skb
{
precvbuf->phead = precvbuf->pskb->head;
precvbuf->pdata = precvbuf->pskb->data;
-
-#ifdef NET_SKBUFF_DATA_USES_OFFSET
- precvbuf->ptail = precvbuf->pskb->head + precvbuf->pskb->tail;
- precvbuf->pend = precvbuf->ptail + (MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
-#else
- precvbuf->ptail = precvbuf->pskb->tail;
- precvbuf->pend = precvbuf->pskb->end;
-#endif
+ precvbuf->ptail = skb_tail_pointer(precvbuf->pskb);
+ precvbuf->pend = skb_end_pointer(precvbuf->pskb);
precvbuf->pbuf = precvbuf->pskb->data;
precvbuf->reuse = _FALSE;
@@ -1523,6 +1461,7 @@ _func_enter_;
}
else
{
+ precvpriv->recvbuf_null_cnt++;
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port:precvbuf ==NULL\n"));
ret = _FAIL;
}
@@ -1533,34 +1472,6 @@ _func_exit_;
}
#endif // CONFIG_USE_USB_BUFFER_ALLOC_RX
-static void usb_read_port_cancel(struct intf_hdl *pintfhdl)
-{
- int i;
- struct recv_buf *precvbuf;
- _adapter *padapter = pintfhdl->padapter;
- precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf;
-
- DBG_8192C("usb_read_port_cancel \n");
-
- padapter->bReadPortCancel = _TRUE;
-
- for(i=0; i < NR_RECVBUFF ; i++)
- {
- precvbuf->reuse = _TRUE;
- if(precvbuf->purb)
- {
- //DBG_8192C("usb_read_port_cancel : usb_kill_urb \n");
- usb_kill_urb(precvbuf->purb);
- }
-
- precvbuf++;
- }
-
-#ifdef CONFIG_USB_INTERRUPT_IN_PIPE
- usb_kill_urb(padapter->recvpriv.int_in_urb);
-#endif
-}
-
void rtl8192cu_xmit_tasklet(void *priv)
{
int ret = _FALSE;
@@ -1587,425 +1498,6 @@ void rtl8192cu_xmit_tasklet(void *priv)
}
-static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)
-{
- _irqL irqL;
- int i;
- struct xmit_buf *pxmitbuf = (struct xmit_buf *)purb->context;
- //struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitbuf->priv_data;
- //_adapter *padapter = pxmitframe->padapter;
- _adapter *padapter = pxmitbuf->padapter;
- struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- //struct pkt_attrib *pattrib = &pxmitframe->attrib;
-
-_func_enter_;
-
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("+usb_write_port_complete\n"));
-
-
- switch(pxmitbuf->flags)
- {
- case XMIT_VO_QUEUE:
- pxmitpriv->voq_cnt--;
- break;
- case XMIT_VI_QUEUE:
- pxmitpriv->viq_cnt--;
- break;
- case XMIT_BE_QUEUE:
- pxmitpriv->beq_cnt--;
- break;
- case XMIT_BK_QUEUE:
- pxmitpriv->bkq_cnt--;
- break;
- case HIGH_QUEUE_INX:
-#ifdef CONFIG_AP_MODE
- rtw_chk_hi_queue_cmd(padapter);
-#endif
- break;
- default:
- break;
- }
-
-
-/*
- _enter_critical(&pxmitpriv->lock, &irqL);
-
- pxmitpriv->txirp_cnt--;
-
- switch(pattrib->priority)
- {
- case 1:
- case 2:
- pxmitpriv->bkq_cnt--;
- //DBG_8192C("pxmitpriv->bkq_cnt=%d\n", pxmitpriv->bkq_cnt);
- break;
- case 4:
- case 5:
- pxmitpriv->viq_cnt--;
- //DBG_8192C("pxmitpriv->viq_cnt=%d\n", pxmitpriv->viq_cnt);
- break;
- case 6:
- case 7:
- pxmitpriv->voq_cnt--;
- //DBG_8192C("pxmitpriv->voq_cnt=%d\n", pxmitpriv->voq_cnt);
- break;
- case 0:
- case 3:
- default:
- pxmitpriv->beq_cnt--;
- //DBG_8192C("pxmitpriv->beq_cnt=%d\n", pxmitpriv->beq_cnt);
- break;
-
- }
-
- _exit_critical(&pxmitpriv->lock, &irqL);
-
-
- if(pxmitpriv->txirp_cnt==0)
- {
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: txirp_cnt== 0, set allrxreturnevt!\n"));
- _rtw_up_sema(&(pxmitpriv->tx_retevt));
- }
-*/
- //rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
-
- if(padapter->bSurpriseRemoved || padapter->bDriverStopped ||padapter->bWritePortCancel)
- {
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)", padapter->bDriverStopped, padapter->bSurpriseRemoved));
- goto check_completion;
- }
-
-
- if(purb->status==0)
- {
-
- }
- else
- {
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete : purb->status(%d) != 0 \n", purb->status));
- DBG_8192C("###=> urb_write_port_complete status(%d)\n",purb->status);
- if((purb->status==-EPIPE)||(purb->status==-EPROTO))
- {
- //usb_clear_halt(pusbdev, purb->pipe);
- //msleep(10);
- #ifdef DBG_CONFIG_ERROR_DETECT
- {
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- pHalData->srestpriv.Wifi_Error_Status = USB_WRITE_PORT_FAIL;
- }
- #endif
- }
- else if(purb->status == -EINPROGRESS)
- {
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: EINPROGESS\n"));
- }
- else if(purb->status == (-ESHUTDOWN))
- {
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: ESHUTDOWN\n"));
-
- padapter->bDriverStopped=_TRUE;
-
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped=TRUE\n"));
-
- goto check_completion;
- }
- else
- {
- padapter->bSurpriseRemoved=_TRUE;
- DBG_8192C("bSurpriseRemoved=TRUE\n");
- //rtl8192cu_trigger_gpio_0(padapter);
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bSurpriseRemoved=TRUE\n"));
-
- goto check_completion;
- }
-
-
-
- }
-
- #ifdef DBG_CONFIG_ERROR_DETECT
- {
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- pHalData->srestpriv.last_tx_complete_time = rtw_get_current_time();
- }
- #endif
-
-check_completion:
- if(pxmitbuf->isSync) {
- pxmitbuf->status = purb->status;
- complete(&pxmitbuf->done);
- }
-
- rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
-
- //if(rtw_txframes_pending(padapter))
- {
- tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
- }
-
-
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("-usb_write_port_complete\n"));
-_func_exit_;
-
-}
-
-static u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem, int timeout_ms)
-{
- _irqL irqL;
- unsigned int pipe;
- int status;
- u32 ret, bwritezero = _FALSE;
- PURB purb = NULL;
- _adapter *padapter = (_adapter *)pintfhdl->padapter;
- struct dvobj_priv *pdvobj = (struct dvobj_priv *)&padapter->dvobjpriv;
- struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- struct xmit_buf *pxmitbuf = (struct xmit_buf *)wmem;
- struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitbuf->priv_data;
- struct usb_device *pusbd = pdvobj->pusbdev;
- struct pkt_attrib *pattrib = &pxmitframe->attrib;
-
-_func_enter_;
-
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("+usb_write_port\n"));
-
- if((padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx))
- {
- #ifdef DBG_TX
- DBG_871X(" DBG_TX %s:%d bDriverStopped%d, bSurpriseRemoved:%d, pnp_bstop_trx:%d\n",__FUNCTION__, __LINE__
- ,padapter->bDriverStopped, padapter->bSurpriseRemoved, padapter->pwrctrlpriv.pnp_bstop_trx );
- #endif
-
- rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
-
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port:( padapter->bDriverStopped ||padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
- return _FAIL;
- }
-
- _enter_critical(&pxmitpriv->lock, &irqL);
-
- switch(addr)
- {
- case VO_QUEUE_INX:
- pxmitpriv->voq_cnt++;
- pxmitbuf->flags = XMIT_VO_QUEUE;
- break;
- case VI_QUEUE_INX:
- pxmitpriv->viq_cnt++;
- pxmitbuf->flags = XMIT_VI_QUEUE;
- break;
- case BE_QUEUE_INX:
- pxmitpriv->beq_cnt++;
- pxmitbuf->flags = XMIT_BE_QUEUE;
- break;
- case BK_QUEUE_INX:
- pxmitpriv->bkq_cnt++;
- pxmitbuf->flags = XMIT_BK_QUEUE;
- break;
- case HIGH_QUEUE_INX:
- pxmitbuf->flags = HIGH_QUEUE_INX;
- break;
- default:
- pxmitbuf->flags = XMIT_VO_QUEUE;
- break;
- }
-
- _exit_critical(&pxmitpriv->lock, &irqL);
-
-/*
- _enter_critical(&pxmitpriv->lock, &irqL);
-
- //total irp
- pxmitpriv->txirp_cnt++;
-
- //per ac irp
- switch(pattrib->priority)
- {
- case 1:
- case 2:
- pxmitpriv->bkq_cnt++;
- break;
- case 4:
- case 5:
- pxmitpriv->viq_cnt++;
- break;
- case 6:
- case 7:
- pxmitpriv->voq_cnt++;
- break;
- case 0:
- case 3:
- default:
- pxmitpriv->beq_cnt++;
- break;
- }
-
-
- _exit_critical(&pxmitpriv->lock, &irqL);
-*/
-
- purb = pxmitbuf->pxmit_urb[0];
-
-#if 0
- if(pdvobj->ishighspeed)
- {
- if(cnt> 0 && cnt%512 == 0)
- {
- //DBG_8192C("ishighspeed, cnt=%d\n", cnt);
- bwritezero = _TRUE;
- }
- }
- else
- {
- if(cnt > 0 && cnt%64 == 0)
- {
- //DBG_8192C("cnt=%d\n", cnt);
- bwritezero = _TRUE;
- }
- }
-#endif
-
- //translate DMA FIFO addr to pipehandle
- pipe = ffaddr2pipehdl(pdvobj, addr);
-
-#ifdef CONFIG_REDUCE_USB_TX_INT
- if ( pxmitpriv->free_xmitbuf_cnt%NR_XMITBUFF == 0
- || pxmitbuf->ext_tag )
- {
- purb->transfer_flags &= (~URB_NO_INTERRUPT);
- } else {
- purb->transfer_flags |= URB_NO_INTERRUPT;
- //DBG_8192C("URB_NO_INTERRUPT ");
- }
-#endif
-
-
- usb_fill_bulk_urb(purb, pusbd, pipe,
- pxmitframe->buf_addr, //= pxmitbuf->pbuf
- cnt,
- usb_write_port_complete,
- pxmitbuf);//context is pxmitbuf
-
-#ifdef CONFIG_USE_USB_BUFFER_ALLOC_TX
- purb->transfer_dma = pxmitbuf->dma_transfer_addr;
- purb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
- purb->transfer_flags |= URB_ZERO_PACKET;
-#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
-
-#if 0
- if (bwritezero)
- {
- purb->transfer_flags |= URB_ZERO_PACKET;
- }
-#endif
-
- status = usb_submit_urb(purb, GFP_ATOMIC);
-
- if (!status)
- {
- ret= _SUCCESS;
- #ifdef DBG_CONFIG_ERROR_DETECT
- {
- HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
- pHalData->srestpriv.last_tx_time = rtw_get_current_time();
- }
- #endif
- }
- else
- {
- DBG_8192C("usb_write_port, status=%d\n", status);
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port(): usb_submit_urb, status=%x\n", status));
- ret= _FAIL;
- }
-
-// Commented by Albert 2009/10/13
-// We add the URB_ZERO_PACKET flag to urb so that the host will send the zero packet automatically.
-/*
- if(bwritezero == _TRUE)
- {
- usb_bulkout_zero(pintfhdl, addr);
- }
-*/
-
- // synchronous write handling
- if(timeout_ms >= 0) {
- unsigned long expire = timeout_ms ? msecs_to_jiffies(timeout_ms) : MAX_SCHEDULE_TIMEOUT;
- int status;
- init_completion(&pxmitbuf->done);
- pxmitbuf->isSync = _TRUE;
- pxmitbuf->status = 0;
-
- if (!wait_for_completion_timeout(&pxmitbuf->done, expire)) {
- usb_kill_urb(purb);
- status = (pxmitbuf->status == -ENOENT ? -ETIMEDOUT : pxmitbuf->status);
- } else
- status = pxmitbuf->status;
-
- if (!status) {
- ret= _SUCCESS;
- } else {
- DBG_8192C("usb_write_port sync, status=%d\n", status);
- ret = _FAIL;
- }
- }
-
-
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("-usb_write_port\n"));
-
-_func_exit_;
-
- return ret;
-
-}
-
-static inline u32 usb_write_port_async(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
-{
- return usb_write_port(pintfhdl, addr, cnt, wmem, -1);
-}
-
-static inline int usb_write_port_sync(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
-{
- return usb_write_port(pintfhdl, addr, cnt, wmem, RTW_USB_BULKOUT_TIMEOUT);
-}
-
-static void usb_write_port_cancel(struct intf_hdl *pintfhdl)
-{
- int i, j;
- _adapter *padapter = pintfhdl->padapter;
- struct xmit_buf *pxmitbuf = (struct xmit_buf *)padapter->xmitpriv.pxmitbuf;
-
- DBG_8192C("usb_write_port_cancel \n");
-
- padapter->bWritePortCancel = _TRUE;
-
- for(i=0; i<NR_XMITBUFF; i++)
- {
- for(j=0; j<8; j++)
- {
- if(pxmitbuf->pxmit_urb[j])
- {
- usb_kill_urb(pxmitbuf->pxmit_urb[j]);
- }
- }
-
- pxmitbuf++;
- }
- pxmitbuf = (struct xmit_buf*)padapter->xmitpriv.pxmit_extbuf;
-
- for (i = 0; i < NR_XMIT_EXTBUFF; i++)
- {
- for(j=0; j<8; j++)
- {
- if(pxmitbuf->pxmit_urb[j])
- {
- usb_kill_urb(pxmitbuf->pxmit_urb[j]);
- }
- }
-
- pxmitbuf++;
- }
-
-}
-
void rtl8192cu_set_intf_ops(struct _io_ops *pops)
{
_func_enter_;
@@ -2029,8 +1521,7 @@ void rtl8192cu_set_intf_ops(struct _io_ops *pops)
pops->_write32_async = &usb_async_write32;
#endif
pops->_write_mem = &usb_write_mem;
- pops->_write_port = &usb_write_port_async;
- pops->_write_port_sync = &usb_write_port_sync;
+ pops->_write_port = &usb_write_port;
pops->_read_port_cancel = &usb_read_port_cancel;
pops->_write_port_cancel = &usb_write_port_cancel;
diff --git a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_xp.c b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_xp.c
index 82adeff..32ff645 100644
--- a/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_xp.c
+++ b/drivers/net/wireless/rtl8192cu/hal/rtl8192c/usb/usb_ops_xp.c
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _HCI_OPS_OS_C_
#include <drv_conf.h>
@@ -884,7 +883,7 @@ _func_enter_;
if(pxmitframe !=NULL)
{
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("\n usb_write_port_complete:pIrp->Cancel == _TRUE,(pxmitframe !=NULL\n"));
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
}
return STATUS_MORE_PROCESSING_REQUIRED;
@@ -930,7 +929,7 @@ _func_enter_;
#else
//not to consider tx fragment
- rtw_free_xmitframe_ex(pxmitpriv, pxmitframe);
+ rtw_free_xmitframe(pxmitpriv, pxmitframe);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/ifcfg-wlan0 b/drivers/net/wireless/rtl8192cu/ifcfg-wlan0
old mode 100644
new mode 100755
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192CEHWImg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192CEHWImg.h
index 2ecb65d..4ae3630 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192CEHWImg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192CEHWImg.h
@@ -25,26 +25,29 @@
/*Created on 2011/ 6/15, 5:45*/
#ifdef CONFIG_BT_COEXISTENCE
-#define TSMCImgArrayLength 16248 //v79 TSMC COMMON 2011-10-06
+#define TSMCImgArrayLength 15706 //v84 TSMC COMMON 2012-04-13
#else //#ifdef CONFIG_P2P
-#define TSMCImgArrayLength 16404 //v79 TSMC P2PPS 2011-10-06
+#define TSMCImgArrayLength 16126 //v88 TSMC P2PPS with CCX report C2H 2012-12-05
#endif
extern u8 Rtl8192CEFwTSMCImgArray[TSMCImgArrayLength];
#ifdef CONFIG_BT_COEXISTENCE
#define UMCACutImgArrayLength 16248 //v79 UMC A Cut COMMON 2011-10-06
#else //#ifdef CONFIG_P2P
-#define UMCACutImgArrayLength 16404 //v79 UMC A Cut P2PPS 2011-10-06
+#define UMCACutImgArrayLength 16126 //v88 UMC A Cut P2PPS with CCX report C2H 2012-12-05
#endif
extern u8 Rtl8192CEFwUMCACutImgArray[UMCACutImgArrayLength];
#ifdef CONFIG_BT_COEXISTENCE
-#define UMCBCutImgArrayLength 16254 //v79 UMC B Cut COMMON 2011-10-06
+#define UMCBCutImgArrayLength 15686 //v84 UMC B Cut COMMON 2012-04-13
#else //#ifdef CONFIG_P2P
-#define UMCBCutImgArrayLength 16386 //v79 UMC B Cut P2PPS 2011-10-06
+#define UMCBCutImgArrayLength 16096 //v88 UMC B Cut P2PPS with CCX report C2H 2012-12-05
#endif
extern u8 Rtl8192CEFwUMCBCutImgArray[UMCBCutImgArrayLength];
+//8192C_Formal_92CE_PHYforMP_110804 2011-11-23
+//8188C_Formal_88CE_PHYforMP_111117 2011-11-23
+
#define PHY_REG_2TArrayLength 374
extern u32 Rtl8192CEPHY_REG_2TArray[PHY_REG_2TArrayLength];
#define PHY_REG_1TArrayLength 374
@@ -69,7 +72,8 @@ extern u32 Rtl8192CERadioA_1TArray[RadioA_1TArrayLength];
extern u32 Rtl8192CERadioB_1TArray[RadioB_1TArrayLength];
#define RadioB_GM_ArrayLength 1
extern u32 Rtl8192CERadioB_GM_Array[RadioB_GM_ArrayLength];
-#define MAC_2T_ArrayLength 172
+// MAC reg V14 - 2011-11-23
+#define MAC_2T_ArrayLength 174
extern u32 Rtl8192CEMAC_2T_Array[MAC_2T_ArrayLength];
#define MACPHY_Array_PGLength 1
extern u32 Rtl8192CEMACPHY_Array_PG[MACPHY_Array_PGLength];
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyCfg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyCfg.h
index 6ecb754..3afb292 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyCfg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyCfg.h
@@ -111,15 +111,7 @@ typedef enum _HW90_BLOCK{
HW90_BLOCK_MAXIMUM = 4, // Never use this
}HW90_BLOCK_E, *PHW90_BLOCK_E;
-typedef enum _RF90_RADIO_PATH{
- RF90_PATH_A = 0, //Radio Path A
- RF90_PATH_B = 1, //Radio Path B
- RF90_PATH_C = 2, //Radio Path C
- RF90_PATH_D = 3, //Radio Path D
- //RF90_PATH_MAX //Max RF number 90 support
-}RF90_RADIO_PATH_E, *PRF90_RADIO_PATH_E;
-
-#define RF90_PATH_MAX 2
+#define RF_PATH_MAX 2
#define CHANNEL_MAX_NUMBER 14 // 14 is the max channel number
#define CHANNEL_GROUP_MAX 3 // ch1~3, ch4~9, ch10~14 total three groups
@@ -163,19 +155,6 @@ typedef enum _RF_TYPE_8190P{
RF_PSEUDO_11N=5, // 5, It is a temporality RF.
}RF_TYPE_8190P_E,*PRF_TYPE_8190P_E;
-
-typedef enum _RATR_TABLE_MODE_8192C{
- RATR_INX_WIRELESS_NGB = 0,
- RATR_INX_WIRELESS_NG = 1,
- RATR_INX_WIRELESS_NB = 2,
- RATR_INX_WIRELESS_N = 3,
- RATR_INX_WIRELESS_GB = 4,
- RATR_INX_WIRELESS_G = 5,
- RATR_INX_WIRELESS_B = 6,
- RATR_INX_WIRELESS_MC = 7,
- RATR_INX_WIRELESS_A = 8,
-}RATR_TABLE_MODE_8192C, *PRATR_TABLE_MODE_8192C;
-
typedef struct _BB_REGISTER_DEFINITION{
u32 rfintfs; // set software control:
// 0x870~0x877[8 bytes]
@@ -294,11 +273,11 @@ void rtl8192c_PHY_SetBBReg( IN PADAPTER Adapter,
IN u32 BitMask,
IN u32 Data );
u32 rtl8192c_PHY_QueryRFReg( IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 RegAddr,
IN u32 BitMask );
void rtl8192c_PHY_SetRFReg( IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath,
+ IN RF_RADIO_PATH_E eRFPath,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data );
@@ -313,14 +292,14 @@ int PHY_RFConfig8192C( IN PADAPTER Adapter );
/* RF config */
int rtl8192c_PHY_ConfigRFWithParaFile( IN PADAPTER Adapter,
IN u8* pFileName,
- IN RF90_RADIO_PATH_E eRFPath);
+ IN RF_RADIO_PATH_E eRFPath);
int rtl8192c_PHY_ConfigRFWithHeaderFile( IN PADAPTER Adapter,
- IN RF90_RADIO_PATH_E eRFPath);
+ IN RF_RADIO_PATH_E eRFPath);
/* BB/RF readback check for making sure init OK */
int rtl8192c_PHY_CheckBBAndRFOK( IN PADAPTER Adapter,
IN HW90_BLOCK_E CheckBlock,
- IN RF90_RADIO_PATH_E eRFPath );
+ IN RF_RADIO_PATH_E eRFPath );
/* Read initi reg value for tx power setting. */
void rtl8192c_PHY_GetHWRegOriginalValue( IN PADAPTER Adapter );
@@ -409,8 +388,6 @@ VOID rtl8192c_PHY_LCCalibrate(IN PADAPTER pAdapter);
//
VOID rtl8192c_PHY_APCalibrate(IN PADAPTER pAdapter, IN char delta);
-VOID rtl8192c_PHY_DigitalPredistortion(IN PADAPTER pAdapter);
-
VOID rtl8192c_PHY_SetRFPathSwitch(IN PADAPTER pAdapter, IN BOOLEAN bMain);
//
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyReg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyReg.h
index 1f9f330..6364166 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyReg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192CPhyReg.h
@@ -197,6 +197,19 @@
#define rCCK0_FACounterUpper 0xa58 //0xa5c
//
+// PageB(0xB00)
+//
+#define rPdp_AntA 0xb00
+#define rPdp_AntA_4 0xb04
+#define rConfig_Pmpd_AntA 0xb28
+#define rConfig_AntA 0xb68
+#define rConfig_AntB 0xb6c
+#define rPdp_AntB 0xb70
+#define rPdp_AntB_4 0xb74
+#define rConfig_Pmpd_AntB 0xb98
+#define rAPK 0xbd8
+
+//
// 6. PageC(0xC00)
//
#define rOFDM0_LSTF 0xc00
@@ -390,12 +403,20 @@
#define RF_IQADJ_G1 0x01 //
#define RF_IQADJ_G2 0x02 //
+#define RF_BS_PA_APSET_G1_G4 0x03
+#define RF_BS_PA_APSET_G5_G8 0x04
#define RF_POW_TRSW 0x05 //
#define RF_GAIN_RX 0x06 //
#define RF_GAIN_TX 0x07 //
#define RF_TXM_IDAC 0x08 //
+#define RF_IPA_G 0x09 //
+#define RF_TXBIAS_G 0x0A
+#define RF_TXPA_AG 0x0B
+#define RF_IPA_A 0x0C //
+#define RF_TXBIAS_A 0x0D
+#define RF_BS_PA_APSET_G9_G11 0x0E
#define RF_BS_IQGEN 0x0F //
#define RF_MODE1 0x10 //
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192CUHWImg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192CUHWImg.h
index 254a060..ba3c282 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192CUHWImg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192CUHWImg.h
@@ -20,31 +20,31 @@
#ifndef __INC_HAL8192CU_FW_IMG_H
#define __INC_HAL8192CU_FW_IMG_H
-/*Created on 2011/12/14, 8:38*/
+/*Created on 2011/ 6/15, 5:45*/
#ifdef CONFIG_BT_COEXISTENCE
-#define TSMCImgArrayLength 16248 //v79 TSMC COMMON 2011-10-06
-#else
-#define TSMCImgArrayLength 16116 //v80 TSMC P2PPS 2011-12-14
+#define TSMCImgArrayLength 15706 //v84 TSMC COMMON 2012-04-13
+#else //#ifdef CONFIG_P2P
+#define TSMCImgArrayLength 16126 //v88 TSMC P2PPS with CCX report C2H 2012-12-05
#endif
extern u8 Rtl8192CUFwTSMCImgArray[TSMCImgArrayLength];
#ifdef CONFIG_BT_COEXISTENCE
#define UMCACutImgArrayLength 16248 //v79 UMC A Cut COMMON 2011-10-06
#else //#ifdef CONFIG_P2P
-#define UMCACutImgArrayLength 16116 //v80 UMC A Cut P2PPS 2011-12-14
+#define UMCACutImgArrayLength 16126 //v88 UMC A Cut P2PPS with CCX report C2H 2012-12-05
#endif
extern u8 Rtl8192CUFwUMCACutImgArray[UMCACutImgArrayLength];
#ifdef CONFIG_BT_COEXISTENCE
-#define UMCBCutImgArrayLength 16254 //v79 UMC B Cut COMMON 2011-10-06
+#define UMCBCutImgArrayLength 15686 //v84 UMC B Cut COMMON 2012-04-13
#else //#ifdef CONFIG_P2P
-#define UMCBCutImgArrayLength 16096 //v80 UMC B Cut P2PPS 2011-12-14
+#define UMCBCutImgArrayLength 16096 //v88 UMC B Cut P2PPS with CCX report C2H 2012-12-05
#endif
extern u8 Rtl8192CUFwUMCBCutImgArray[UMCBCutImgArrayLength];
-#define UMC8723ImgArrayLength 16288
-extern u8 Rtl8192CUFwUMC8723ImgArray[UMC8723ImgArrayLength];
+//8188C_Formal_All_PHYforMP_111117 2011-11-23
+//8192C_Formal_92CU_PHYforMP_110817 2011-11-23
#define PHY_REG_2TArrayLength 374
extern u32 Rtl8192CUPHY_REG_2TArray[PHY_REG_2TArrayLength];
#define PHY_REG_1TArrayLength 374
@@ -77,6 +77,10 @@ extern u32 Rtl8192CURadioB_2TArray[RadioB_2TArrayLength];
extern u32 Rtl8192CURadioA_1TArray[RadioA_1TArrayLength];
#define RadioB_1TArrayLength 1
extern u32 Rtl8192CURadioB_1TArray[RadioB_1TArrayLength];
+#define RadioA_2T_mCardArrayLength 282
+extern u32 Rtl8192CURadioA_2T_mCardArray[RadioA_2T_mCardArrayLength];
+#define RadioB_2T_mCardArrayLength 78
+extern u32 Rtl8192CURadioB_2T_mCardArray[RadioB_2T_mCardArrayLength];
#define RadioA_1T_mCardArrayLength 282
extern u32 Rtl8192CURadioA_1T_mCardArray[RadioA_1T_mCardArrayLength];
#define RadioB_1T_mCardArrayLength 1
@@ -85,7 +89,9 @@ extern u32 Rtl8192CURadioB_1T_mCardArray[RadioB_1T_mCardArrayLength];
extern u32 Rtl8192CURadioA_1T_HPArray[RadioA_1T_HPArrayLength];
#define RadioB_GM_ArrayLength 1
extern u32 Rtl8192CURadioB_GM_Array[RadioB_GM_ArrayLength];
-#define MAC_2T_ArrayLength 172
+
+// MAC reg V14 - 2011-11-23
+#define MAC_2T_ArrayLength 174
extern u32 Rtl8192CUMAC_2T_Array[MAC_2T_ArrayLength];
#define MACPHY_Array_PGLength 1
extern u32 Rtl8192CUMACPHY_Array_PG[MACPHY_Array_PGLength];
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192DEHWImg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192DEHWImg.h
index dc2bc17..0639775 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192DEHWImg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192DEHWImg.h
@@ -17,50 +17,50 @@
*
*
******************************************************************************/
-#ifndef __INC_HAL8192DU_FW_IMG_H
-#define __INC_HAL8192DU_FW_IMG_H
+#ifndef __INC_HAL8192DE_FW_IMG_H
+#define __INC_HAL8192DE_FW_IMG_H
#include <basic_types.h>
-/*Created on 2011/ 8/ 8, 1:41*/
+/*Created on 2011/11/11, 8: 8*/
-#define ImgArrayLength 29642
-extern u8 Rtl8192DEFwImgArray[ImgArrayLength];
-#define MainArrayLength 1
-extern u8 Rtl8192DEFwMainArray[MainArrayLength];
-#define DataArrayLength 1
-extern u8 Rtl8192DEFwDataArray[DataArrayLength];
-#define PHY_REG_2TArrayLength 380
-extern u32 Rtl8192DEPHY_REG_2TArray[PHY_REG_2TArrayLength];
-#define PHY_REG_1TArrayLength 1
-extern u32 Rtl8192DEPHY_REG_1TArray[PHY_REG_1TArrayLength];
-#define PHY_REG_Array_PGLength 624
-extern u32 Rtl8192DEPHY_REG_Array_PG[PHY_REG_Array_PGLength];
-#define PHY_REG_Array_MPLength 10
-extern u32 Rtl8192DEPHY_REG_Array_MP[PHY_REG_Array_MPLength];
-#define RadioA_2TArrayLength 378
-extern u32 Rtl8192DERadioA_2TArray[RadioA_2TArrayLength];
-#define RadioB_2TArrayLength 384
-extern u32 Rtl8192DERadioB_2TArray[RadioB_2TArrayLength];
-#define RadioA_1TArrayLength 1
-extern u32 Rtl8192DERadioA_1TArray[RadioA_1TArrayLength];
-#define RadioB_1TArrayLength 1
-extern u32 Rtl8192DERadioB_1TArray[RadioB_1TArrayLength];
-#define RadioA_2T_intPAArrayLength 378
-extern u32 Rtl8192DERadioA_2T_intPAArray[RadioA_2T_intPAArrayLength];
-#define RadioB_2T_intPAArrayLength 384
-extern u32 Rtl8192DERadioB_2T_intPAArray[RadioB_2T_intPAArrayLength];
-#define MAC_2TArrayLength 160
-extern u32 Rtl8192DEMAC_2TArray[MAC_2TArrayLength];
-#define AGCTAB_ArrayLength 386
-extern u32 Rtl8192DEAGCTAB_Array[AGCTAB_ArrayLength];
-#define AGCTAB_5GArrayLength 194
-extern u32 Rtl8192DEAGCTAB_5GArray[AGCTAB_5GArrayLength];
-#define AGCTAB_2GArrayLength 194
-extern u32 Rtl8192DEAGCTAB_2GArray[AGCTAB_2GArrayLength];
-#define AGCTAB_2TArrayLength 1
-extern u32 Rtl8192DEAGCTAB_2TArray[AGCTAB_2TArrayLength];
-#define AGCTAB_1TArrayLength 1
-extern u32 Rtl8192DEAGCTAB_1TArray[AGCTAB_1TArrayLength];
+#define Rtl8192DEImgArrayLength 32296
+extern const u8 Rtl8192DEFwImgArray[Rtl8192DEImgArrayLength];
+#define Rtl8192DEMainArrayLength 1
+extern const u8 Rtl8192DEFwMainArray[Rtl8192DEMainArrayLength];
+#define Rtl8192DEDataArrayLength 1
+extern const u8 Rtl8192DEFwDataArray[Rtl8192DEDataArrayLength];
+#define Rtl8192DEPHY_REG_2TArrayLength 372
+extern const u32 Rtl8192DEPHY_REG_2TArray[Rtl8192DEPHY_REG_2TArrayLength];
+#define Rtl8192DEPHY_REG_1TArrayLength 1
+extern const u32 Rtl8192DEPHY_REG_1TArray[Rtl8192DEPHY_REG_1TArrayLength];
+#define Rtl8192DEPHY_REG_Array_PGLength 624
+extern const u32 Rtl8192DEPHY_REG_Array_PG[Rtl8192DEPHY_REG_Array_PGLength];
+#define Rtl8192DEPHY_REG_Array_MPLength 12
+extern const u32 Rtl8192DEPHY_REG_Array_MP[Rtl8192DEPHY_REG_Array_MPLength];
+#define Rtl8192DERadioA_2TArrayLength 378
+extern const u32 Rtl8192DERadioA_2TArray[Rtl8192DERadioA_2TArrayLength];
+#define Rtl8192DERadioB_2TArrayLength 384
+extern const u32 Rtl8192DERadioB_2TArray[Rtl8192DERadioB_2TArrayLength];
+#define Rtl8192DERadioA_1TArrayLength 1
+extern const u32 Rtl8192DERadioA_1TArray[Rtl8192DERadioA_1TArrayLength];
+#define Rtl8192DERadioB_1TArrayLength 1
+extern const u32 Rtl8192DERadioB_1TArray[Rtl8192DERadioB_1TArrayLength];
+#define Rtl8192DERadioA_2T_intPAArrayLength 378
+extern const u32 Rtl8192DERadioA_2T_intPAArray[Rtl8192DERadioA_2T_intPAArrayLength];
+#define Rtl8192DERadioB_2T_intPAArrayLength 384
+extern const u32 Rtl8192DERadioB_2T_intPAArray[Rtl8192DERadioB_2T_intPAArrayLength];
+#define Rtl8192DEMAC_2T_ArrayLength 192
+extern const u32 Rtl8192DEMAC_2T_Array[Rtl8192DEMAC_2T_ArrayLength];
+#define Rtl8192DEAGCTAB_ArrayLength 386
+extern const u32 Rtl8192DEAGCTAB_Array[Rtl8192DEAGCTAB_ArrayLength];
+#define Rtl8192DEAGCTAB_5GArrayLength 194
+extern const u32 Rtl8192DEAGCTAB_5GArray[Rtl8192DEAGCTAB_5GArrayLength];
+#define Rtl8192DEAGCTAB_2GArrayLength 194
+extern const u32 Rtl8192DEAGCTAB_2GArray[Rtl8192DEAGCTAB_2GArrayLength];
+#define Rtl8192DEAGCTAB_2TArrayLength 1
+extern const u32 Rtl8192DEAGCTAB_2TArray[Rtl8192DEAGCTAB_2TArrayLength];
+#define Rtl8192DEAGCTAB_1TArrayLength 1
+extern const u32 Rtl8192DEAGCTAB_1TArray[Rtl8192DEAGCTAB_1TArrayLength];
#endif //__INC_HAL8192CU_FW_IMG_H
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192DETestHWImg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192DETestHWImg.h
deleted file mode 100644
index 2432bcd..0000000
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192DETestHWImg.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
- ******************************************************************************/
-#ifndef __INC_HAL8192DETEST_FW_IMG_H
-#define __INC_HAL8192DETEST_FW_IMG_H
-
-#include <basic_types.h>
-
-/*Created on 2010/ 5/27, 8: 6*/
-
-#define Rtl8192DTestImgArrayLength 15054
-extern u8 Rtl8192DTestFwImgArray[Rtl8192DTestImgArrayLength];
-#define Rtl8192DTestMainArrayLength 1
-extern u8 Rtl8192DTestFwMainArray[Rtl8192DTestMainArrayLength];
-#define Rtl8192DTestDataArrayLength 1
-extern u8 Rtl8192DTestFwDataArray[Rtl8192DTestDataArrayLength];
-#define Rtl8192DTestPHY_REG_2TArrayLength 376
-extern u32 Rtl8192DTestPHY_REG_2TArray[Rtl8192DTestPHY_REG_2TArrayLength];
-#define Rtl8192DTestPHY_REG_1TArrayLength 1
-extern u32 Rtl8192DTestPHY_REG_1TArray[Rtl8192DTestPHY_REG_1TArrayLength];
-#define Rtl8192DTestPHY_REG_Array_PGLength 1
-extern u32 Rtl8192DTestPHY_REG_Array_PG[Rtl8192DTestPHY_REG_Array_PGLength];
-#define Rtl8192DTestRadioA_2TArrayLength 340
-extern u32 Rtl8192DTestRadioA_2TArray[Rtl8192DTestRadioA_2TArrayLength];
-#define Rtl8192DTestRadioB_2TArrayLength 340
-extern u32 Rtl8192DTestRadioB_2TArray[Rtl8192DTestRadioB_2TArrayLength];
-#define Rtl8192DTestRadioA_1TArrayLength 1
-extern u32 Rtl8192DTestRadioA_1TArray[Rtl8192DTestRadioA_1TArrayLength];
-#define Rtl8192DTestRadioB_1TArrayLength 1
-extern u32 Rtl8192DTestRadioB_1TArray[Rtl8192DTestRadioB_1TArrayLength];
-#define Rtl8192DTestMAC_2TArrayLength 174
-extern u32 Rtl8192DTestMAC_2TArray[Rtl8192DTestMAC_2TArrayLength];
-#define Rtl8192DTestAGCTAB_5GArrayLength 514
-extern u32 Rtl8192DTestAGCTAB_5GArray[Rtl8192DTestAGCTAB_5GArrayLength];
-#define Rtl8192DTestAGCTAB_2GArrayLength 514
-extern u32 Rtl8192DTestAGCTAB_2GArray[Rtl8192DTestAGCTAB_2GArrayLength];
-
-#endif //__INC_HAL8192CU_FW_IMG_H
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192DPhyCfg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192DPhyCfg.h
index 475cf36..624fbda 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192DPhyCfg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192DPhyCfg.h
@@ -157,6 +157,16 @@ typedef enum _MACPHY_MODE_8192D{
DUALMAC_SINGLEPHY,
}MACPHY_MODE_8192D,*PMACPHY_MODE_8192D;
+typedef enum _MACPHY_MODE_CHANGE_ACTION{
+ DMDP2DMSP = 0,
+ DMSP2DMDP = 1,
+ DMDP2SMSP = 2,
+ SMSP2DMDP = 3,
+ DMSP2SMSP = 4,
+ SMSP2DMSP = 5,
+ MAXACTION
+}MACPHY_MODE_CHANGE_ACTION,*PMACPHY_MODE_CHANGE_ACTION;
+
typedef enum _BAND_TYPE{
BAND_ON_2_4G = 0,
BAND_ON_5G,
@@ -187,19 +197,6 @@ typedef enum _RF_TYPE_8190P{
RF_PSEUDO_11N=5, // 5, It is a temporality RF.
}RF_TYPE_8190P_E,*PRF_TYPE_8190P_E;
-
-typedef enum _RATR_TABLE_MODE_8192C{
- RATR_INX_WIRELESS_NGB = 0,
- RATR_INX_WIRELESS_NG = 1,
- RATR_INX_WIRELESS_NB = 2,
- RATR_INX_WIRELESS_N = 3,
- RATR_INX_WIRELESS_GB = 4,
- RATR_INX_WIRELESS_G = 5,
- RATR_INX_WIRELESS_B = 6,
- RATR_INX_WIRELESS_MC = 7,
- RATR_INX_WIRELESS_A = 8,
-}RATR_TABLE_MODE_8192C, *PRATR_TABLE_MODE_8192C;
-
typedef struct _BB_REGISTER_DEFINITION{
u32 rfintfs; // set software control:
// 0x870~0x877[8 bytes]
@@ -514,6 +511,9 @@ HalChangeCCKStatus8192D(
IN BOOLEAN bCCKDisable
);
+VOID
+PHY_InitPABias92D(IN PADAPTER Adapter);
+
/*--------------------------Exported Function prototype---------------------*/
#define PHY_SetBBReg1Byte(Adapter, RegAddr, BitMask, Data) rtl8192d_PHY_SetBBReg1Byte((Adapter), (RegAddr), (BitMask), (Data))
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg.h
index d931001..d6c66d9 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg.h
@@ -24,7 +24,7 @@
/*Created on 2011/11/11, 8: 8*/
-#define Rtl8192DUImgArrayLength 32142
+#define Rtl8192DUImgArrayLength 31452
extern const u8 Rtl8192DUFwImgArray[Rtl8192DUImgArrayLength];
#define Rtl8192DUMainArrayLength 1
extern const u8 Rtl8192DUFwMainArray[Rtl8192DUMainArrayLength];
@@ -36,7 +36,7 @@ extern const u32 Rtl8192DUPHY_REG_2TArray[Rtl8192DUPHY_REG_2TArrayLength];
extern const u32 Rtl8192DUPHY_REG_1TArray[Rtl8192DUPHY_REG_1TArrayLength];
#define Rtl8192DUPHY_REG_Array_PGLength 624
extern const u32 Rtl8192DUPHY_REG_Array_PG[Rtl8192DUPHY_REG_Array_PGLength];
-#define Rtl8192DUPHY_REG_Array_MPLength 12
+#define Rtl8192DUPHY_REG_Array_MPLength 14
extern const u32 Rtl8192DUPHY_REG_Array_MP[Rtl8192DUPHY_REG_Array_MPLength];
#define Rtl8192DURadioA_2TArrayLength 378
extern const u32 Rtl8192DURadioA_2TArray[Rtl8192DURadioA_2TArrayLength];
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg_wowlan.h b/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg_wowlan.h
index a297e76..cc27a77 100644
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg_wowlan.h
+++ b/drivers/net/wireless/rtl8192cu/include/Hal8192DUHWImg_wowlan.h
@@ -23,7 +23,7 @@
/*Created on 2011/11/ 8, 14:15*/
-#define DUWWImgArrayLength 16656
+#define DUWWImgArrayLength 24818
extern u8 Rtl8192DUFwWWImgArray[DUWWImgArrayLength];
#endif //__INC_HAL8192DU_FW_IMG_WOWLAN_H
diff --git a/drivers/net/wireless/rtl8192cu/include/Hal8192DUTestHWImg.h b/drivers/net/wireless/rtl8192cu/include/Hal8192DUTestHWImg.h
deleted file mode 100644
index e0491ff..0000000
--- a/drivers/net/wireless/rtl8192cu/include/Hal8192DUTestHWImg.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
- ******************************************************************************/
-#ifndef __INC_HAL8192DUTEST_FW_IMG_H
-#define __INC_HAL8192DUTEST_FW_IMG_H
-
-#include <basic_types.h>
-
-/*Created on 2010/ 5/27, 9:49*/
-
-#define Rtl8192DTestImgArrayLength 15054
-extern u8 Rtl8192DTestFwImgArray[Rtl8192DTestImgArrayLength];
-#define Rtl8192DTestMainArrayLength 1
-extern u8 Rtl8192DTestFwMainArray[Rtl8192DTestMainArrayLength];
-#define Rtl8192DTestDataArrayLength 1
-extern u8 Rtl8192DTestFwDataArray[Rtl8192DTestDataArrayLength];
-#define Rtl8192DTestPHY_REG_2TArrayLength 376
-extern u32 Rtl8192DTestPHY_REG_2TArray[Rtl8192DTestPHY_REG_2TArrayLength];
-#define Rtl8192DTestPHY_REG_1TArrayLength 1
-extern u32 Rtl8192DTestPHY_REG_1TArray[Rtl8192DTestPHY_REG_1TArrayLength];
-#define Rtl8192DTestPHY_REG_Array_PGLength 1
-extern u32 Rtl8192DTestPHY_REG_Array_PG[Rtl8192DTestPHY_REG_Array_PGLength];
-#define Rtl8192DTestRadioA_2TArrayLength 340
-extern u32 Rtl8192DTestRadioA_2TArray[Rtl8192DTestRadioA_2TArrayLength];
-#define Rtl8192DTestRadioB_2TArrayLength 340
-extern u32 Rtl8192DTestRadioB_2TArray[Rtl8192DTestRadioB_2TArrayLength];
-#define Rtl8192DTestRadioA_1TArrayLength 1
-extern u32 Rtl8192DTestRadioA_1TArray[Rtl8192DTestRadioA_1TArrayLength];
-#define Rtl8192DTestRadioB_1TArrayLength 1
-extern u32 Rtl8192DTestRadioB_1TArray[Rtl8192DTestRadioB_1TArrayLength];
-#define Rtl8192DTestMAC_2TArrayLength 174
-extern u32 Rtl8192DTestMAC_2TArray[Rtl8192DTestMAC_2TArrayLength];
-#define Rtl8192DTestAGCTAB_5GArrayLength 514
-extern u32 Rtl8192DTestAGCTAB_5GArray[Rtl8192DTestAGCTAB_5GArrayLength];
-#define Rtl8192DTestAGCTAB_2GArrayLength 514
-extern u32 Rtl8192DTestAGCTAB_2GArray[Rtl8192DTestAGCTAB_2GArrayLength];
-
-#endif //__INC_HAL8192CU_FW_IMG_H
diff --git a/drivers/net/wireless/rtl8192cu/include/HalPwrSeqCmd.h b/drivers/net/wireless/rtl8192cu/include/HalPwrSeqCmd.h
new file mode 100644
index 0000000..e5d151c
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/HalPwrSeqCmd.h
@@ -0,0 +1,137 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __HALPWRSEQCMD_H__
+#define __HALPWRSEQCMD_H__
+
+#include <drv_types.h>
+
+/*---------------------------------------------*/
+//3 The value of cmd: 4 bits
+/*---------------------------------------------*/
+#define PWR_CMD_READ 0x00
+ // offset: the read register offset
+ // msk: the mask of the read value
+ // value: N/A, left by 0
+ // note: dirver shall implement this function by read & msk
+
+#define PWR_CMD_WRITE 0x01
+ // offset: the read register offset
+ // msk: the mask of the write bits
+ // value: write value
+ // note: driver shall implement this cmd by read & msk after write
+
+#define PWR_CMD_POLLING 0x02
+ // offset: the read register offset
+ // msk: the mask of the polled value
+ // value: the value to be polled, masked by the msd field.
+ // note: driver shall implement this cmd by
+ // do{
+ // if( (Read(offset) & msk) == (value & msk) )
+ // break;
+ // } while(not timeout);
+
+#define PWR_CMD_DELAY 0x03
+ // offset: the value to delay
+ // msk: N/A
+ // value: the unit of delay, 0: us, 1: ms
+
+#define PWR_CMD_END 0x04
+ // offset: N/A
+ // msk: N/A
+ // value: N/A
+
+/*---------------------------------------------*/
+//3 The value of base: 4 bits
+/*---------------------------------------------*/
+ // define the base address of each block
+#define PWR_BASEADDR_MAC 0x00
+#define PWR_BASEADDR_USB 0x01
+#define PWR_BASEADDR_PCIE 0x02
+#define PWR_BASEADDR_SDIO 0x03
+
+/*---------------------------------------------*/
+//3 The value of interface_msk: 4 bits
+/*---------------------------------------------*/
+#define PWR_INTF_SDIO_MSK BIT(0)
+#define PWR_INTF_USB_MSK BIT(1)
+#define PWR_INTF_PCI_MSK BIT(2)
+#define PWR_INTF_ALL_MSK (BIT(0)|BIT(1)|BIT(2)|BIT(3))
+
+/*---------------------------------------------*/
+//3 The value of fab_msk: 4 bits
+/*---------------------------------------------*/
+#define PWR_FAB_TSMC_MSK BIT(0)
+#define PWR_FAB_UMC_MSK BIT(1)
+#define PWR_FAB_ALL_MSK (BIT(0)|BIT(1)|BIT(2)|BIT(3))
+
+/*---------------------------------------------*/
+//3 The value of cut_msk: 8 bits
+/*---------------------------------------------*/
+#define PWR_CUT_TESTCHIP_MSK BIT(0)
+#define PWR_CUT_A_MSK BIT(1)
+#define PWR_CUT_B_MSK BIT(2)
+#define PWR_CUT_C_MSK BIT(3)
+#define PWR_CUT_D_MSK BIT(4)
+#define PWR_CUT_E_MSK BIT(5)
+#define PWR_CUT_F_MSK BIT(6)
+#define PWR_CUT_G_MSK BIT(7)
+#define PWR_CUT_ALL_MSK 0xFF
+
+
+typedef enum _PWRSEQ_CMD_DELAY_UNIT_
+{
+ PWRSEQ_DELAY_US,
+ PWRSEQ_DELAY_MS,
+} PWRSEQ_DELAY_UNIT;
+
+typedef struct _WL_PWR_CFG_
+{
+ u16 offset;
+ u8 cut_msk;
+ u8 fab_msk:4;
+ u8 interface_msk:4;
+ u8 base:4;
+ u8 cmd:4;
+ u8 msk;
+ u8 value;
+} WLAN_PWR_CFG, *PWLAN_PWR_CFG;
+
+
+#define GET_PWR_CFG_OFFSET(__PWR_CMD) __PWR_CMD.offset
+#define GET_PWR_CFG_CUT_MASK(__PWR_CMD) __PWR_CMD.cut_msk
+#define GET_PWR_CFG_FAB_MASK(__PWR_CMD) __PWR_CMD.fab_msk
+#define GET_PWR_CFG_INTF_MASK(__PWR_CMD) __PWR_CMD.interface_msk
+#define GET_PWR_CFG_BASE(__PWR_CMD) __PWR_CMD.base
+#define GET_PWR_CFG_CMD(__PWR_CMD) __PWR_CMD.cmd
+#define GET_PWR_CFG_MASK(__PWR_CMD) __PWR_CMD.msk
+#define GET_PWR_CFG_VALUE(__PWR_CMD) __PWR_CMD.value
+
+
+//================================================================================
+// Prototype of protected function.
+//================================================================================
+u8 HalPwrSeqCmdParsing(
+ PADAPTER padapter,
+ u8 CutVersion,
+ u8 FabVersion,
+ u8 InterfaceType,
+ WLAN_PWR_CFG PwrCfgCmd[]);
+
+#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/autoconf.h b/drivers/net/wireless/rtl8192cu/include/autoconf.h
index 7d6db40..12294df 100644
--- a/drivers/net/wireless/rtl8192cu/include/autoconf.h
+++ b/drivers/net/wireless/rtl8192cu/include/autoconf.h
@@ -31,11 +31,13 @@
#define PLATFORM_LINUX 1
-
//#define CONFIG_IOCTL_CFG80211 1
#ifdef CONFIG_IOCTL_CFG80211
+ //#define RTW_USE_CFG80211_STA_EVENT /* Indecate new sta asoc through cfg80211_new_sta */
#define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
//#define CONFIG_DEBUG_CFG80211 1
+ //#define CONFIG_DRV_ISSUE_PROV_REQ // IOT FOR S2
+ #define CONFIG_SET_SCAN_DENY_TIMER
#endif
/*
@@ -53,12 +55,19 @@
#define CONFIG_R871X_TEST 1
+#define CONFIG_XMIT_ACK
+#ifdef CONFIG_XMIT_ACK
+ #define CONFIG_XMIT_ACK_POLLING
+ #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+#endif
+
#define CONFIG_80211N_HT 1
#define CONFIG_RECV_REORDERING_CTRL 1
//#define CONFIG_TCP_CSUM_OFFLOAD_RX 1
+//#define CONFIG_BEFORE_LINKED_DIG
//#define CONFIG_DRVEXT_MODULE 1
#ifndef CONFIG_MP_INCLUDED
@@ -66,53 +75,69 @@
#ifdef CONFIG_IPS
//#define CONFIG_IPS_LEVEL_2 1 //enable this to set default IPS mode to IPS_LEVEL_2
#endif
- #define SUPPORT_HW_RFOFF_DETECTED 1
+ #define SUPPORT_HW_RFOFF_DETECTED 1
+
#define CONFIG_LPS 1
#define CONFIG_BT_COEXIST 1
+
//befor link
- #define CONFIG_ANTENNA_DIVERSITY
+ #define CONFIG_ANTENNA_DIVERSITY
+
//after link
#ifdef CONFIG_ANTENNA_DIVERSITY
- #define CONFIG_SW_ANTENNA_DIVERSITY
- //#define CONFIG_HW_ANTENNA_DIVERSITY
+ #define CONFIG_SW_ANTENNA_DIVERSITY
+ //#define CONFIG_HW_ANTENNA_DIVERSITY
#endif
-
+
#define CONFIG_IOL
-#else //#ifndef CONFIG_MP_INCLUDED
+#else //#ifndef CONFIG_MP_INCLUDED
#define CONFIG_MP_IWPRIV_SUPPORT 1
-#endif //#ifndef CONFIG_MP_INCLUDED
+#endif //#ifndef CONFIG_MP_INCLUDED
#define CONFIG_AP_MODE 1
-#define CONFIG_NATIVEAP_MLME 1
+#ifdef CONFIG_AP_MODE
+ #define CONFIG_NATIVEAP_MLME 1
+ #ifndef CONFIG_NATIVEAP_MLME
+ #define CONFIG_HOSTAPD_MLME 1
+ #endif
+ #define CONFIG_FIND_BEST_CHANNEL 1
+ //#define CONFIG_NO_WIRELESS_HANDLERS 1
+#endif
// Added by Albert 20110314
#define CONFIG_P2P 1
-
-
#ifdef CONFIG_P2P
-// Added by Albert 20110812
-// The CONFIG_WFD is for supporting the Wi-Fi display
-//#define CONFIG_WFD 1
-
-// Unmarked if there is low p2p scanned ratio; Kurt
-//#define CONFIG_P2P_AGAINST_NOISE 1
-#define CONFIG_P2P_REMOVE_GROUP_INFO
-//#define CONFIG_DBG_P2P
+ //Added by Albert 20110812
+ //The CONFIG_WFD is for supporting the Wi-Fi display
+ #define CONFIG_WFD
+
+ #ifndef CONFIG_WIFI_TEST
+ #define CONFIG_P2P_REMOVE_GROUP_INFO
+ #endif
+ //#define CONFIG_DBG_P2P
+
+ //#define CONFIG_P2P_PS
+ //#define CONFIG_P2P_IPS
+
+ #define P2P_OP_CHECK_SOCIAL_CH
+ // Added comment by Borg 2013/06/21
+ // Issue: Nexus 4 is hard to do miracast.
+ // Root Cause: After group formation,
+ // Nexus 4 is possible to be not at OP channel of Invitation Resp/Nego Confirm but at social channel.
+ // Patch: While scan OP channel,
+ // not only scan OP channel of Invitation Resp/Nego Confirm,
+ // but also scan social channel(1, 6, 11)
#endif
// Added by Kurt 20110511
//#define CONFIG_TDLS 1
#ifdef CONFIG_TDLS
- #define CONFIG_TDLS_AUTOSETUP 1
- #define CONFIG_TDLS_AUTOCHECKALIVE 1
-#endif
-
-#ifdef CONFIG_AP_MODE
- #ifndef CONFIG_NATIVEAP_MLME
- #define CONFIG_HOSTAPD_MLME 1
- #endif
- #define CONFIG_FIND_BEST_CHANNEL 1
+// #ifndef CONFIG_WFD
+// #define CONFIG_WFD 1
+// #endif
+// #define CONFIG_TDLS_AUTOSETUP 1
+// #define CONFIG_TDLS_AUTOCHECKALIVE 1
#endif
#define CONFIG_SKB_COPY 1//for amsdu
@@ -138,6 +163,8 @@
#define CONFIG_LONG_DELAY_ISSUE
#define CONFIG_NEW_SIGNAL_STAT_PROCESS
//#define CONFIG_SIGNAL_DISPLAY_DBM //display RX signal with dbm
+#define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable */
+#define CONFIG_DEAUTH_BEFORE_CONNECT
#ifdef CONFIG_IOL
#define CONFIG_IOL_LLT
@@ -154,12 +181,24 @@
#endif // CONFIG_BR_EXT
#define CONFIG_TX_MCAST2UNI 1 // Support IP multicast->unicast
+//#define CONFIG_DM_ADAPTIVITY
//#define CONFIG_CHECK_AC_LIFETIME 1 // Check packet lifetime of 4 ACs.
+//#define CONFIG_CONCURRENT_MODE 1
+#ifdef CONFIG_CONCURRENT_MODE
+ #define CONFIG_TSF_RESET_OFFLOAD 1 // For 2 PORT TSF SYNC.
+ //#define CONFIG_HWPORT_SWAP //Port0->Sec , Port1 -> Pri
+ //#define CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ //#define CONFIG_MULTI_VIR_IFACES //besides primary&secondary interfaces, extend to support more interfaces
+#endif // CONFIG_CONCURRENT_MODE
+
+#define CONFIG_80211D
/*
* Interface Related Config
*/
+
+//#define CONFIG_USB_ONE_OUT_EP
//#define CONFIG_USB_INTERRUPT_IN_PIPE 1
#ifndef CONFIG_MINIMAL_MEMORY_USAGE
@@ -176,6 +215,9 @@
*/
//#define CONFIG_USE_USB_BUFFER_ALLOC_TX 1 // Trade-off: For TX path, improve stability on some platforms, but may cause performance degrade on other platforms.
//#define CONFIG_USE_USB_BUFFER_ALLOC_RX 1 // For RX path
+#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
+#undef CONFIG_PREALLOC_RECV_SKB
+#endif
/*
* USB VENDOR REQ BUFFER ALLOCATION METHOD
@@ -246,9 +288,7 @@
#define CONFIG_USE_USB_BUFFER_ALLOC_RX 1
#endif
-//#define CONFIG_BEFORE_LINKED_DIG
-//#define CONFIG_ENABLE_NOTCH_FILTER
-
+#define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
/*
* Debug Related Config
@@ -256,7 +296,7 @@
//#define CONFIG_DEBUG_RTL871X
#define DBG 0
-//#define CONFIG_DEBUG_RTL819X
+#define CONFIG_DEBUG_RTL819X
#define CONFIG_PROC_DEBUG 1
@@ -281,8 +321,16 @@
//#define DBG_ROAMING_TEST
//#define DBG_HAL_INIT_PROFILING
-#define DBG_MEMORY_LEAK 1
+
+//#define DBG_MEMORY_LEAK 1
#define DBG_CONFIG_ERROR_DETECT
//#define DBG_CONFIG_ERROR_RESET
+//TX use 1 urb
+//#define CONFIG_SINGLE_XMIT_BUF
+//RX use 1 urb
+//#define CONFIG_SINGLE_RECV_BUF
+
+//turn off power tracking when traffic is busy
+//#define CONFIG_BUSY_TRAFFIC_SKIP_PWR_TRACK
diff --git a/drivers/net/wireless/rtl8192cu/include/basic_types.h b/drivers/net/wireless/rtl8192cu/include/basic_types.h
index f880224..f76e68f 100644
--- a/drivers/net/wireless/rtl8192cu/include/basic_types.h
+++ b/drivers/net/wireless/rtl8192cu/include/basic_types.h
@@ -106,6 +106,51 @@
#endif
+
+#ifdef PLATFORM_FREEBSD
+
+ typedef signed char s8;
+ typedef unsigned char u8;
+
+ typedef signed short s16;
+ typedef unsigned short u16;
+
+ typedef signed int s32;
+ typedef unsigned int u32;
+
+ typedef unsigned int uint;
+ typedef signed int sint;
+ typedef long atomic_t;
+
+ typedef signed long long s64;
+ typedef unsigned long long u64;
+ #define IN
+ #define OUT
+ #define VOID void
+ #define NDIS_OID uint
+ #define NDIS_STATUS uint
+
+ #ifndef PVOID
+ typedef void * PVOID;
+ //#define PVOID (void *)
+ #endif
+ typedef u32 dma_addr_t;
+ #define UCHAR u8
+ #define USHORT u16
+ #define UINT u32
+ #define ULONG u32
+
+ typedef void (*proc_t)(void*);
+
+ typedef unsigned int __kernel_size_t;
+ typedef int __kernel_ssize_t;
+
+ typedef __kernel_size_t SIZE_T;
+ typedef __kernel_ssize_t SSIZE_T;
+ #define FIELD_OFFSET(s,field) ((SSIZE_T)&((s*)(0))->field)
+
+#endif
+
#define MEM_ALIGNMENT_OFFSET (sizeof (SIZE_T))
#define MEM_ALIGNMENT_PADDING (sizeof(SIZE_T) - 1)
diff --git a/drivers/net/wireless/rtl8192cu/include/byteorder/generic.h b/drivers/net/wireless/rtl8192cu/include/byteorder/generic.h
index 246ba89..7c8d4d7 100644
--- a/drivers/net/wireless/rtl8192cu/include/byteorder/generic.h
+++ b/drivers/net/wireless/rtl8192cu/include/byteorder/generic.h
@@ -98,7 +98,7 @@
*/
-#if defined(PLATFORM_LINUX) || defined(PLATFORM_WINDOWS) || defined(PLATFORM_MPIXEL)
+#if defined(PLATFORM_LINUX) || defined(PLATFORM_WINDOWS) || defined(PLATFORM_MPIXEL) || defined(PLATFORM_FREEBSD)
/*
* inside the kernel, we can use nicknames;
* outside of it, we must avoid POSIX namespace pollution...
@@ -168,13 +168,16 @@
#if defined(PLATFORM_LINUX) || (defined (__GLIBC__) && __GLIBC__ >= 2)
extern __u32 ntohl(__u32);
extern __u32 htonl(__u32);
-#else
+#else //defined(PLATFORM_LINUX) || (defined (__GLIBC__) && __GLIBC__ >= 2)
+#ifndef PLATFORM_FREEBSD
extern unsigned long int ntohl(unsigned long int);
extern unsigned long int htonl(unsigned long int);
#endif
+#endif
+#ifndef PLATFORM_FREEBSD
extern unsigned short int ntohs(unsigned short int);
extern unsigned short int htons(unsigned short int);
-
+#endif
#if defined(__GNUC__) && (__GNUC__ >= 2) && defined(__OPTIMIZE__) || defined(PLATFORM_MPIXEL)
diff --git a/drivers/net/wireless/rtl8192cu/include/byteorder/swab.h b/drivers/net/wireless/rtl8192cu/include/byteorder/swab.h
index 117c84d..a3ca9ea 100644
--- a/drivers/net/wireless/rtl8192cu/include/byteorder/swab.h
+++ b/drivers/net/wireless/rtl8192cu/include/byteorder/swab.h
@@ -16,12 +16,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _LINUX_BYTEORDER_SWAB_H
#define _LINUX_BYTEORDER_SWAB_H
-#if !defined(CONFIG_PLATFORM_MSTAR_TITANIA12)
+#if !defined(CONFIG_PLATFORM_MSTAR)
#ifndef __u16
typedef unsigned short __u16;
#endif
@@ -74,7 +73,7 @@ __inline static __u64 ___swab64(__u64 x)
(__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | \
(__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); \
}
-#endif // CONFIG_PLATFORM_MSTAR_TITANIA12
+#endif // CONFIG_PLATFORM_MSTAR
#ifndef __arch__swab16
__inline static __u16 __arch__swab16(__u16 x)
@@ -109,11 +108,19 @@ __inline static __u64 __arch__swab64(__u64 x)
#define __swab64(x) __fswab64(x)
#endif // __swab16
+#ifdef PLATFORM_FREEBSD
+__inline static __u16 __fswab16(__u16 x)
+#else
__inline static const __u16 __fswab16(__u16 x)
+#endif //PLATFORM_FREEBSD
{
return __arch__swab16(x);
}
+#ifdef PLATFORM_FREEBSD
+__inline static __u32 __fswab32(__u32 x)
+#else
__inline static const __u32 __fswab32(__u32 x)
+#endif //PLATFORM_FREEBSD
{
return __arch__swab32(x);
}
diff --git a/drivers/net/wireless/rtl8192cu/include/byteorder/swabb.h b/drivers/net/wireless/rtl8192cu/include/byteorder/swabb.h
index 1735349..7e2a118 100644
--- a/drivers/net/wireless/rtl8192cu/include/byteorder/swabb.h
+++ b/drivers/net/wireless/rtl8192cu/include/byteorder/swabb.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _LINUX_BYTEORDER_SWABB_H
#define _LINUX_BYTEORDER_SWABB_H
diff --git a/drivers/net/wireless/rtl8192cu/include/drv_conf.h b/drivers/net/wireless/rtl8192cu/include/drv_conf.h
index a2b6cc4..1317687 100644
--- a/drivers/net/wireless/rtl8192cu/include/drv_conf.h
+++ b/drivers/net/wireless/rtl8192cu/include/drv_conf.h
@@ -38,7 +38,7 @@
//between java and c/c++ layer (JNI). We force CONFIG_VALIDATE_SSID
//for Android here. If you are sure there is no risk on your system about this,
//mask this macro define to support non-printable ascii ssid.
-#define CONFIG_VALIDATE_SSID
+//#define CONFIG_VALIDATE_SSID
//Android expect dbm as the rx signal strength unit
#define CONFIG_SIGNAL_DISPLAY_DBM
diff --git a/drivers/net/wireless/rtl8192cu/include/drv_types.h b/drivers/net/wireless/rtl8192cu/include/drv_types.h
index 95e20cc..0ac34f2 100644
--- a/drivers/net/wireless/rtl8192cu/include/drv_types.h
+++ b/drivers/net/wireless/rtl8192cu/include/drv_types.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -18,7 +18,7 @@
*
******************************************************************************/
/*-------------------------------------------------------------------------------
-
+
For type defines and data structure defines
--------------------------------------------------------------------------------*/
@@ -45,17 +45,17 @@
#endif
enum _NIC_VERSION {
-
+
RTL8711_NIC,
RTL8712_NIC,
RTL8713_NIC,
RTL8716_NIC
-
+
};
enum{
UP_LINK,
- DOWN_LINK,
+ DOWN_LINK,
};
typedef struct _ADAPTER _adapter, ADAPTER,*PADAPTER;
@@ -65,11 +65,12 @@ typedef struct _ADAPTER _adapter, ADAPTER,*PADAPTER;
#include <rtw_cmd.h>
#include <wlan_bssdef.h>
+#include <rtw_security.h>
#include <rtw_xmit.h>
#include <rtw_recv.h>
-#include <hal_init.h>
+#include <hal_intf.h>
+#include <hal_com.h>
#include <rtw_qos.h>
-#include <rtw_security.h>
#include <rtw_pwrctrl.h>
#include <rtw_io.h>
#include <rtw_eeprom.h>
@@ -81,6 +82,8 @@ typedef struct _ADAPTER _adapter, ADAPTER,*PADAPTER;
#include <rtw_led.h>
#include <rtw_mlme_ext.h>
#include <rtw_p2p.h>
+#include <rtw_tdls.h>
+#include <rtw_ap.h>
#ifdef CONFIG_DRVEXT_MODULE
#include <drvext_api.h>
@@ -106,23 +109,23 @@ typedef struct _ADAPTER _adapter, ADAPTER,*PADAPTER;
#define SPEC_DEV_ID_ASSIGN_IFNAME BIT(5)
struct specific_device_id{
-
+
u32 flags;
-
+
u16 idVendor;
u16 idProduct;
};
struct registry_priv
-{
+{
u8 chip_version;
u8 rfintfs;
u8 lbkmode;
u8 hci;
NDIS_802_11_SSID ssid;
- u8 network_mode; //infra, ad-hoc, auto
- u8 channel;//ad-hoc support requirement
+ u8 network_mode; //infra, ad-hoc, auto
+ u8 channel;//ad-hoc support requirement
u8 wireless_mode;//A, B, G, auto
u8 scan_mode;//active, passive
u8 radio_enable;
@@ -130,11 +133,11 @@ struct registry_priv
u8 vrtl_carrier_sense;//Enable, Disable, Auto
u8 vcs_type;//RTS/CTS, CTS-to-self
u16 rts_thresh;
- u16 frag_thresh;
+ u16 frag_thresh;
u8 adhoc_tx_pwr;
u8 soft_ap;
u8 power_mgnt;
- u8 ips_mode;
+ u8 ips_mode;
u8 smart_ps;
u8 long_retry_lmt;
u8 short_retry_lmt;
@@ -147,12 +150,12 @@ struct registry_priv
u8 acm_method;
//UAPSD
u8 wmm_enable;
- u8 uapsd_enable;
+ u8 uapsd_enable;
u8 uapsd_max_sp;
u8 uapsd_acbk_en;
u8 uapsd_acbe_en;
u8 uapsd_acvi_en;
- u8 uapsd_acvo_en;
+ u8 uapsd_acvo_en;
WLAN_BSSID_EX dev_network;
@@ -164,19 +167,19 @@ struct registry_priv
u8 ampdu_amsdu;//A-MPDU Supports A-MSDU is permitted
#endif
u8 lowrate_two_xmit;
-
+
u8 rf_config ;
u8 low_power ;
- u8 wifi_spec;// !turbo_mode
-
+ u8 wifi_spec;// !turbo_mode
+
u8 channel_plan;
#ifdef CONFIG_BT_COEXIST
u8 bt_iso;
u8 bt_sco;
u8 bt_ampdu;
#endif
- BOOLEAN bAcceptAddbaReq;
+ BOOLEAN bAcceptAddbaReq;
u8 antdiv_cfg;
@@ -197,11 +200,21 @@ struct registry_priv
#ifdef CONFIG_IOL
bool force_iol; //enable iol without other concern
#endif
+ u8 special_rf_path; //0: 2T2R ,1: only turn on path A 1T1R, 2: only turn on path B 1T1R
+ u8 mac_phy_mode; //0:by efuse, 1:smsp, 2:dmdp, 3:dmsp.
-#ifdef SUPPORT_64_STA
- u8 bcmc_rate;
+#ifdef CONFIG_80211D
+ u8 enable80211d;
+#endif
+
+ u8 ifname[16];
+ u8 if2name[16];
+
+ u8 notch_filter;
+
+#ifdef CONFIG_MULTI_VIR_IFACES
+ u8 ext_iface_num;//primary/secondary iface is excluded
#endif
- u8 intel_class_mode;
};
@@ -213,56 +226,62 @@ struct registry_priv
#define MAX_CONTINUAL_URB_ERR 4
-struct dvobj_priv {
+#ifdef CONFIG_SDIO_HCI
+#include <drv_types_sdio.h>
+#define INTF_DATA SDIO_DATA
+#endif
- _adapter * padapter;
+#define GET_PRIMARY_ADAPTER(padapter) (((_adapter *)padapter)->dvobj->if1)
- //For 92D, DMDP have 2 interface.
- u8 InterfaceNumber;
- u8 NumInterfaces;
+#define GET_IFACE_NUMS(padapter) (((_adapter *)padapter)->dvobj->iface_nums)
+#define GET_ADAPTER(padapter, iface_id) (((_adapter *)padapter)->dvobj->padapters[iface_id])
-/*-------- below is for SDIO INTERFACE --------*/
+enum _IFACE_ID {
+ IFACE_ID0, //maping to PRIMARY_ADAPTER
+ IFACE_ID1, //maping to SECONDARY_ADAPTER
+ IFACE_ID2,
+ IFACE_ID3,
+ IFACE_ID_MAX,
+};
-#ifdef CONFIG_SDIO_HCI
+struct dvobj_priv
+{
+ _adapter *if1; //PRIMARY_ADAPTER
+ _adapter *if2; //SECONDARY_ADAPTER
-#ifdef PLATFORM_OS_XP
- PDEVICE_OBJECT pphysdevobj;//pPhysDevObj;
- PDEVICE_OBJECT pfuncdevobj;//pFuncDevObj;
- PDEVICE_OBJECT pnextdevobj;//pNextDevObj;
- SDBUS_INTERFACE_STANDARD sdbusinft;//SdBusInterface;
- u8 nextdevstacksz;//unsigned char NextDeviceStackSize;
-#endif//PLATFORM_OS_XP
+ s32 processing_dev_remove;
-#ifdef PLATFORM_OS_CE
- SD_DEVICE_HANDLE hDevice;
- SD_CARD_RCA sd_rca;
- SD_CARD_INTERFACE card_intf;
- BOOLEAN enableIsarWithStatus;
- WCHAR active_path[MAX_ACTIVE_REG_PATH];
- SD_HOST_BLOCK_CAPABILITY sd_host_blk_cap;
-#endif//PLATFORM_OS_CE
+ //for local/global synchronization
+ _mutex hw_init_mutex;
+ _mutex h2c_fwcmd_mutex;
+ _mutex setch_mutex;
+ _mutex setbw_mutex;
-#ifdef PLATFORM_LINUX
- struct sdio_func *func;
-#endif//PLATFORM_LINUX
+ unsigned char oper_channel; //saved channel info when call set_channel_bw
+ unsigned char oper_bwmode;
+ unsigned char oper_ch_offset;//PRIME_CHNL_OFFSET
+ u32 on_oper_ch_time;
+
+ //extend to support mulitu interface
+ //padapters[IFACE_ID0] == if1
+ //padapters[IFACE_ID1] == if2
+ _adapter *padapters[IFACE_ID_MAX];
+ u8 iface_nums; // total number of ifaces used runtime
+
+ //For 92D, DMDP have 2 interface.
+ u8 InterfaceNumber;
+ u8 NumInterfaces;
+ u8 DualMacMode;
+ u8 irq_alloc;
- u8 func_number;//unsigned char FunctionNumber;
- u32 block_transfer_len;//unsigned long BLOCK_TRANSFER_LEN;
- u32 blk_shiftbits;
- u16 driver_version;
- u16 rxblknum;
- u16 rxblknum_rd;
- u16 c2hblknum;
- u8 tx_block_mode;
- u8 rx_block_mode;
- u8 cmdfifo_cnt;
- u8 rxfifo_cnt;
- u16 sdio_hisr;
- u16 sdio_himr;
-#endif// CONFIG_SDIO_HCI
+/*-------- below is for SDIO INTERFACE --------*/
+
+#ifdef INTF_DATA
+ INTF_DATA intf_data;
+#endif
/*-------- below is for USB INTERFACE --------*/
-
+
#ifdef CONFIG_USB_HCI
u8 nr_endpoint;
@@ -272,17 +291,17 @@ struct dvobj_priv {
int ep_num[5]; //endpoint number
int RegUsbSS;
-
+
_sema usb_suspend_sema;
#ifdef CONFIG_USB_VENDOR_REQ_MUTEX
_mutex usb_vendor_req_mutex;
#endif
-
+
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
u8 * usb_alloc_vendor_req_buf;
u8 * usb_vendor_req_buf;
-#endif
+#endif
#ifdef PLATFORM_WINDOWS
//related device objects
@@ -290,7 +309,7 @@ struct dvobj_priv {
PDEVICE_OBJECT pfuncdevobj;//pFuncDevObj;
PDEVICE_OBJECT pnextdevobj;//pNextDevObj;
- u8 nextdevstacksz;//unsigned char NextDeviceStackSize; //= (CHAR)CEdevice->pUsbDevObj->StackSize + 1;
+ u8 nextdevstacksz;//unsigned char NextDeviceStackSize; //= (CHAR)CEdevice->pUsbDevObj->StackSize + 1;
//urb for control diescriptor request
@@ -306,7 +325,7 @@ struct dvobj_priv {
_nic_hdl pipehdls_r8192c[0x10];
#endif
- u32 config_descriptor_len;//ULONG UsbConfigurationDescriptorLength;
+ u32 config_descriptor_len;//ULONG UsbConfigurationDescriptorLength;
#endif//PLATFORM_WINDOWS
#ifdef PLATFORM_LINUX
@@ -314,11 +333,15 @@ struct dvobj_priv {
struct usb_device *pusbdev;
#endif//PLATFORM_LINUX
+#ifdef PLATFORM_FREEBSD
+ struct usb_interface *pusbintf;
+ struct usb_device *pusbdev;
+#endif//PLATFORM_FREEBSD
ATOMIC_T continual_urb_error;
#endif//CONFIG_USB_HCI
/*-------- below is for PCIE INTERFACE --------*/
-
+
#ifdef CONFIG_PCI_HCI
#ifdef PLATFORM_LINUX
@@ -327,7 +350,7 @@ struct dvobj_priv {
//PCI MEM map
unsigned long pci_mem_end; /* shared mem end */
unsigned long pci_mem_start; /* shared mem start */
-
+
//PCI IO map
unsigned long pci_base_addr; /* device I/O address */
@@ -336,7 +359,6 @@ struct dvobj_priv {
u16 irqline;
u8 irq_enabled;
- u8 irq_alloc;
RT_ISR_CONTENT isr_content;
_lock irq_th_lock;
@@ -349,13 +371,46 @@ struct dvobj_priv {
u8 const_hostpci_aspm_setting;
// pci-e device */
u8 const_devicepci_aspm_setting;
- u8 b_support_aspm; // If it supports ASPM, Offset[560h] = 0x40, otherwise Offset[560h] = 0x00.
+ u8 b_support_aspm; // If it supports ASPM, Offset[560h] = 0x40, otherwise Offset[560h] = 0x00.
u8 b_support_backdoor;
+ u8 bdma64;
#endif//PLATFORM_LINUX
#endif//CONFIG_PCI_HCI
};
+#ifdef PLATFORM_LINUX
+static struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
+{
+ /* todo: get interface type from dvobj and the return the dev accordingly */
+#ifdef RTW_DVOBJ_CHIP_HW_TYPE
+#endif
+
+#ifdef CONFIG_USB_HCI
+ return &dvobj->pusbintf->dev;
+#endif
+#ifdef CONFIG_SDIO_HCI
+ return &dvobj->intf_data.func->dev;
+#endif
+#ifdef CONFIG_PCI_HCI
+ return &dvobj->ppcidev->dev;
+#endif
+}
+#endif
+
+
+enum _IFACE_TYPE {
+ IFACE_PORT0, //mapping to port0 for C/D series chips
+ IFACE_PORT1, //mapping to port1 for C/D series chip
+ MAX_IFACE_PORT,
+};
+
+enum _ADAPTER_TYPE {
+ PRIMARY_ADAPTER,
+ SECONDARY_ADAPTER,
+ MAX_ADAPTER = 0xFF,
+};
+
typedef enum _DRIVER_STATE{
DRIVER_NORMAL = 0,
DRIVER_DISAPPEAR = 1,
@@ -398,8 +453,8 @@ struct _ADAPTER{
u16 chip_type;
u16 HardwareType;
u16 interface_type;//USB,SDIO,PCI
-
- struct dvobj_priv dvobjpriv;
+
+ struct dvobj_priv *dvobj;
struct mlme_priv mlmepriv;
struct mlme_ext_priv mlmeextpriv;
struct cmd_priv cmdpriv;
@@ -409,13 +464,13 @@ struct _ADAPTER{
struct xmit_priv xmitpriv;
struct recv_priv recvpriv;
struct sta_priv stapriv;
- struct security_priv securitypriv;
- struct registry_priv registrypriv;
- struct wlan_acl_pool acl_list;
+ struct security_priv securitypriv;
+ _lock security_key_mutex; // add for CONFIG_IEEE80211W, none 11w also can use
+ struct registry_priv registrypriv;
struct pwrctrl_priv pwrctrlpriv;
struct eeprom_priv eeprompriv;
struct led_priv ledpriv;
-
+
#ifdef CONFIG_MP_INCLUDED
struct mp_priv mppriv;
#endif
@@ -423,17 +478,17 @@ struct _ADAPTER{
#ifdef CONFIG_DRVEXT_MODULE
struct drvext_priv drvextpriv;
#endif
-
+
#ifdef CONFIG_AP_MODE
- struct hostapd_priv *phostapdpriv;
+ struct hostapd_priv *phostapdpriv;
#endif
#ifdef CONFIG_IOCTL_CFG80211
#ifdef CONFIG_P2P
struct cfg80211_wifidirect_info cfg80211_wdinfo;
-#endif //CONFIG_IOCTL_CFG80211
#endif //CONFIG_P2P
-
+#endif //CONFIG_IOCTL_CFG80211
+ u32 setband;
#ifdef CONFIG_P2P
struct wifidirect_info wdinfo;
#endif //CONFIG_P2P
@@ -442,6 +497,10 @@ struct _ADAPTER{
struct tdls_info tdlsinfo;
#endif //CONFIG_TDLS
+#ifdef CONFIG_WFD
+ struct wifi_display_info wfd_info;
+#endif //CONFIG_WFD
+
PVOID HalData;
u32 hal_data_sz;
struct hal_ops HalFunc;
@@ -449,27 +508,28 @@ struct _ADAPTER{
#ifdef CONFIG_BT_COEXIST
//struct btcoexist_priv bt_coexist;
#endif
- s32 bDriverStopped;
+ s32 bDriverStopped;
s32 bSurpriseRemoved;
s32 bCardDisableWOHSM;
u32 IsrContent;
- u32 ImrContent;
+ u32 ImrContent;
u8 EepromAddressSize;
u8 hw_init_completed;
+ u8 bDriverIsGoingToUnload;
u8 init_adpt_in_progress;
- u8 bfirst_init;
u8 bHaltInProgress;
-
- _thread_hdl_ cmdThread;
- _thread_hdl_ evtThread;
- _thread_hdl_ xmitThread;
- _thread_hdl_ recvThread;
+ _thread_hdl_ cmdThread;
+ _thread_hdl_ evtThread;
+ _thread_hdl_ xmitThread;
+ _thread_hdl_ recvThread;
- NDIS_STATUS (*dvobj_init)(_adapter * adapter);
- void (*dvobj_deinit)(_adapter * adapter);
+#ifndef PLATFORM_LINUX
+ NDIS_STATUS (*dvobj_init)(struct dvobj_priv *dvobj);
+ void (*dvobj_deinit)(struct dvobj_priv *dvobj);
+#endif
void (*intf_start)(_adapter * adapter);
void (*intf_stop)(_adapter * adapter);
@@ -479,13 +539,13 @@ struct _ADAPTER{
_nic_hdl hndis_config;//hNdisConfiguration;
NDIS_STRING fw_img;
- u32 NdisPacketFilter;
+ u32 NdisPacketFilter;
u8 MCList[MAX_MCAST_LIST_NUM][6];
- u32 MCAddrCount;
+ u32 MCAddrCount;
#endif //end of PLATFORM_WINDOWS
-#ifdef PLATFORM_LINUX
+#ifdef PLATFORM_LINUX
_nic_hdl pnetdev;
// used by rtw_rereg_nd_name related function
@@ -495,28 +555,71 @@ struct _ADAPTER{
u8 old_ips_mode;
u8 old_bRegUseLed;
} rereg_nd_name_priv;
-
+
int bup;
struct net_device_stats stats;
struct iw_statistics iwstats;
struct proc_dir_entry *dir_dev;// for proc directory
-
#ifdef CONFIG_IOCTL_CFG80211
struct wireless_dev *rtw_wdev;
#endif //CONFIG_IOCTL_CFG80211
-
+
#endif //end of PLATFORM_LINUX
+#ifdef PLATFORM_FREEBSD
+ _nic_hdl pifp;
+ int bup;
+ _lock glock;
+#endif //PLATFORM_FREEBSD
int net_closed;
u8 bFWReady;
u8 bReadPortCancel;
u8 bWritePortCancel;
u8 bRxRSSIDisplay;
+ // Added by Albert 2012/07/26
+ // The driver will write the initial gain everytime when running in the DM_Write_DIG function.
+ u8 bForceWriteInitGain;
+ // Added by Albert 2012/10/26
+ // The driver will show up the desired channel number when this flag is 1.
+ u8 bNotifyChannelChange;
+#ifdef CONFIG_P2P
+ // Added by Albert 2012/12/06
+ // The driver will show the current P2P status when the upper application reads it.
+ u8 bShowGetP2PState;
+#endif
#ifdef CONFIG_AUTOSUSPEND
u8 bDisableAutosuspend;
#endif
+
+ //pbuddy_adapter is used only in two inteface case, (iface_nums=2 in struct dvobj_priv)
+ //PRIMARY_ADAPTER's buddy is SECONDARY_ADAPTER
+ //SECONDARY_ADAPTER's buddy is PRIMARY_ADAPTER
+ //for iface_id > SECONDARY_ADAPTER(IFACE_ID1), refer to padapters[iface_id] in struct dvobj_priv
+ //and their pbuddy_adapter is PRIMARY_ADAPTER.
+ //for PRIMARY_ADAPTER(IFACE_ID0) can directly refer to if1 in struct dvobj_priv
+ _adapter *pbuddy_adapter;
+
+#if defined(CONFIG_CONCURRENT_MODE) || defined(CONFIG_DUALMAC_CONCURRENT)
+ u8 isprimary; //is primary adapter or not
+ //notes:
+ // if isprimary is true, the adapter_type value is 0, iface_id is IFACE_ID0 for PRIMARY_ADAPTER
+ // if isprimary is false, the adapter_type value is 1, iface_id is IFACE_ID1 for SECONDARY_ADAPTER
+ // refer to iface_id if iface_nums>2 and isprimary is false and the adapter_type value is 0xff.
+ u8 adapter_type;//used only in two inteface case(PRIMARY_ADAPTER and SECONDARY_ADAPTER) .
+ u8 iface_type; //interface port type, it depends on HW port
+#endif
+
+ //extend to support multi interface
+ //IFACE_ID0 is equals to PRIMARY_ADAPTER
+ //IFACE_ID1 is equals to SECONDARY_ADAPTER
+ u8 iface_id;
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ u8 DualMacConcurrent; // 1: DMSP 0:DMDP
+#endif
+
#ifdef CONFIG_BR_EXT
_lock br_ext_lock;
//unsigned int macclone_completed;
@@ -528,7 +631,7 @@ struct _ADAPTER{
struct nat25_network_db_entry *scdb_entry;
unsigned char br_mac[MACADDRLEN];
unsigned char br_ip[4];
-
+
struct br_ext_info ethBrExtInfo;
#endif // CONFIG_BR_EXT
@@ -545,6 +648,10 @@ struct _ADAPTER{
};
+#define adapter_to_dvobj(adapter) (adapter->dvobj)
+
+int rtw_handle_dualmac(_adapter *adapter, bool init);
+
__inline static u8 *myid(struct eeprom_priv *peepriv)
{
return (peepriv->mac_addr);
diff --git a/drivers/net/wireless/rtl8192cu/include/drv_types_sdio.h b/drivers/net/wireless/rtl8192cu/include/drv_types_sdio.h
new file mode 100644
index 0000000..fd467ca
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/drv_types_sdio.h
@@ -0,0 +1,70 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __DRV_TYPES_SDIO_H__
+#define __DRV_TYPES_SDIO_H__
+
+#include <drv_conf.h>
+#include <basic_types.h>
+
+// SDIO Header Files
+#ifdef PLATFORM_LINUX
+#include <linux/mmc/sdio_func.h>
+#endif
+#ifdef PLATFORM_OS_XP
+#include <wdm.h>
+#include <ntddsd.h>
+#endif
+#ifdef PLATFORM_OS_CE
+#include <sdcardddk.h>
+#endif
+
+
+typedef struct sdio_data
+{
+ u8 func_number;
+
+ u8 tx_block_mode;
+ u8 rx_block_mode;
+ u32 block_transfer_len;
+
+#ifdef PLATFORM_LINUX
+ struct sdio_func *func;
+#endif
+
+#ifdef PLATFORM_OS_XP
+ PDEVICE_OBJECT pphysdevobj;
+ PDEVICE_OBJECT pfuncdevobj;
+ PDEVICE_OBJECT pnextdevobj;
+ SDBUS_INTERFACE_STANDARD sdbusinft;
+ u8 nextdevstacksz;
+#endif
+
+#ifdef PLATFORM_OS_CE
+ SD_DEVICE_HANDLE hDevice;
+ SD_CARD_RCA sd_rca;
+ SD_CARD_INTERFACE card_intf;
+ BOOLEAN enableIsarWithStatus;
+ WCHAR active_path[MAX_ACTIVE_REG_PATH];
+ SD_HOST_BLOCK_CAPABILITY sd_host_blk_cap;
+#endif
+} SDIO_DATA, *PSDIO_DATA;
+
+#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/farray.h b/drivers/net/wireless/rtl8192cu/include/farray.h
deleted file mode 100644
index 79d2a42..0000000
--- a/drivers/net/wireless/rtl8192cu/include/farray.h
+++ /dev/null
@@ -1,31480 +0,0 @@
-unsigned char f_array[125912] = {
-0x12,0x87,0x09,0x10,
-0x30,0x00,0x00,0x00,
-0x08,0xF8,0x00,0x00,
-0x50,0xF3,0x00,0x00,
-0x30,0x00,0x00,0x00,
-0xB8,0xF1,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x10,0x27,0x17,0x41,
-0x87,0x12,0x12,0x01,
-0x00,0x00,0x12,0x06,
-0x00,0x00,0x00,0x00,
-0x00,0x07,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x01,0x01,0x00,0x01,
-0x01,0x01,0x00,0x00,
-0x01,0x00,0x01,0x00,
-0x00,0x00,0x01,0x01,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x7F,0x00,0x00,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x1F,0x00,0x00,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x1A,0x3C,
-0x80,0x03,0x5A,0x37,
-0x00,0x80,0x1B,0x3C,
-0x80,0x00,0x7B,0x37,
-0x00,0x00,0x5B,0xAF,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x37,
-0x00,0x80,0x1B,0x3C,
-0x80,0x00,0x7B,0x37,
-0x00,0x00,0x5B,0xAF,
-0x01,0x80,0x1A,0x3C,
-0x90,0xEE,0x5A,0x27,
-0x08,0x00,0x40,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0xA1,0xAF,
-0x08,0x00,0xA2,0xAF,
-0x0C,0x00,0xA3,0xAF,
-0x10,0x00,0xA4,0xAF,
-0x14,0x00,0xA5,0xAF,
-0x18,0x00,0xA6,0xAF,
-0x1C,0x00,0xA7,0xAF,
-0x20,0x00,0xA8,0xAF,
-0x24,0x00,0xA9,0xAF,
-0x28,0x00,0xAA,0xAF,
-0x2C,0x00,0xAB,0xAF,
-0x30,0x00,0xAC,0xAF,
-0x34,0x00,0xAD,0xAF,
-0x38,0x00,0xAE,0xAF,
-0x3C,0x00,0xAF,0xAF,
-0x12,0x40,0x00,0x00,
-0x10,0x48,0x00,0x00,
-0x00,0x70,0x0A,0x40,
-0x40,0x00,0xB0,0xAF,
-0x44,0x00,0xB1,0xAF,
-0x48,0x00,0xB2,0xAF,
-0x4C,0x00,0xB3,0xAF,
-0x50,0x00,0xB4,0xAF,
-0x54,0x00,0xB5,0xAF,
-0x58,0x00,0xB6,0xAF,
-0x5C,0x00,0xB7,0xAF,
-0x60,0x00,0xB8,0xAF,
-0x64,0x00,0xB9,0xAF,
-0x68,0x00,0xBC,0xAF,
-0x6C,0x00,0xBD,0xAF,
-0x70,0x00,0xBE,0xAF,
-0x74,0x00,0xBF,0xAF,
-0x78,0x00,0xA8,0xAF,
-0x7C,0x00,0xA9,0xAF,
-0x80,0x00,0xAA,0xAF,
-0x32,0x3B,0x00,0x08,
-0x21,0x20,0xA0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x05,0x3C,
-0x00,0x80,0x02,0x3C,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x03,0xA3,0x34,
-0x00,0x03,0x42,0x24,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x42,0xB0,0x02,0x3C,
-0x03,0x00,0x46,0x34,
-0x00,0x00,0xC3,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x70,0x30,
-0x10,0x00,0x02,0x32,
-0x18,0x00,0x40,0x10,
-0x02,0x80,0x11,0x3C,
-0x30,0x1F,0x27,0x26,
-0x78,0x36,0xE4,0x94,
-0x10,0x00,0x02,0x24,
-0x00,0x00,0xC2,0xA0,
-0x08,0x00,0x80,0x10,
-0x1C,0x03,0xA3,0x34,
-0x7C,0x36,0xE2,0x94,
-0xB0,0x03,0xA4,0x34,
-0x00,0x00,0x62,0xAC,
-0x00,0x00,0x80,0xAC,
-0x78,0x36,0xE0,0xA4,
-0x7C,0x36,0xE0,0xA4,
-0x00,0x00,0x04,0x24,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x06,0x3C,
-0x14,0x5E,0xA2,0x8C,
-0x18,0x5F,0xC3,0x8C,
-0x01,0x00,0x84,0x24,
-0x01,0x00,0x42,0x24,
-0x01,0x00,0x63,0x24,
-0x78,0x36,0xE4,0xA4,
-0x14,0x5E,0xA2,0xAC,
-0x18,0x5F,0xC3,0xAC,
-0x00,0x16,0x10,0x00,
-0x03,0x16,0x02,0x00,
-0x7B,0x00,0x40,0x04,
-0x42,0xB0,0x02,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x40,0x00,0x02,0x32,
-0x16,0x00,0x40,0x10,
-0x30,0x1F,0x24,0x26,
-0x42,0xB0,0x0B,0x3C,
-0x03,0x00,0x62,0x35,
-0x40,0x00,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0x02,0x80,0x03,0x3C,
-0x12,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x1A,0x00,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x12,0x5F,0x60,0xA0,
-0x02,0x80,0x04,0x3C,
-0x0E,0x5F,0x83,0x90,
-0xFD,0xFF,0x02,0x24,
-0x24,0x18,0x62,0x00,
-0x0E,0x5F,0x83,0xA0,
-0x0E,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x42,0x30,
-0x5D,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x24,0x26,
-0xE0,0x1B,0x83,0x94,
-0xDC,0x1B,0x85,0x94,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x80,0x00,0x63,0x30,
-0x41,0xB0,0x02,0x3C,
-0x25,0x18,0x65,0x00,
-0x08,0x00,0x42,0x34,
-0x20,0x00,0xBD,0x27,
-0x00,0x00,0x43,0xA4,
-0x08,0x00,0xE0,0x03,
-0xDC,0x1B,0x83,0xA4,
-0xFA,0x5E,0x82,0x90,
-0x02,0x80,0x05,0x3C,
-0x01,0x00,0x42,0x24,
-0xFA,0x5E,0x82,0xA0,
-0x0E,0x5F,0xA3,0x90,
-0xEF,0xFF,0x02,0x24,
-0x24,0x18,0x62,0x00,
-0x0E,0x5F,0xA3,0xA0,
-0xFA,0x5E,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x2C,
-0x32,0x00,0x40,0x10,
-0x30,0x1F,0x23,0x26,
-0x25,0xB0,0x06,0x3C,
-0x84,0x00,0xC4,0x34,
-0x80,0x00,0xC6,0x34,
-0x00,0x00,0x82,0x8C,
-0x00,0x00,0xC4,0x8C,
-0x02,0x80,0x08,0x3C,
-0x21,0x10,0x00,0x00,
-0x1C,0x5F,0x06,0x8D,
-0x25,0x10,0x44,0x00,
-0x02,0x80,0x04,0x3C,
-0x20,0x5F,0x88,0x8C,
-0x24,0x5F,0x89,0x8C,
-0x00,0x00,0x65,0x91,
-0x21,0x10,0x46,0x00,
-0xFB,0xFF,0x04,0x24,
-0x24,0x28,0xA4,0x00,
-0x23,0x40,0x02,0x01,
-0x00,0x00,0x65,0xA1,
-0x04,0x00,0x00,0x11,
-0x01,0x00,0x06,0x24,
-0x80,0x10,0x08,0x00,
-0x21,0x10,0x48,0x00,
-0x80,0x30,0x02,0x00,
-0x01,0x00,0x04,0x24,
-0x8C,0x23,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x42,0xB0,0x02,0x3C,
-0x22,0x00,0x04,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x44,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x01,0x00,0x05,0x24,
-0x64,0x31,0x00,0x0C,
-0xFF,0x00,0x84,0x30,
-0x30,0x1F,0x24,0x26,
-0xE0,0x1B,0x83,0x94,
-0xDC,0x1B,0x85,0x94,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x80,0x00,0x63,0x30,
-0x41,0xB0,0x02,0x3C,
-0x25,0x18,0x65,0x00,
-0x08,0x00,0x42,0x34,
-0x20,0x00,0xBD,0x27,
-0x00,0x00,0x43,0xA4,
-0x08,0x00,0xE0,0x03,
-0xDC,0x1B,0x83,0xA4,
-0xB0,0x1B,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x16,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x15,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xAB,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x15,0x5F,0x62,0xA0,
-0x0B,0x01,0x00,0x08,
-0x30,0x1F,0x24,0x26,
-0x0C,0x5F,0x40,0xA0,
-0x44,0x01,0x00,0x08,
-0x02,0x80,0x03,0x3C,
-0x80,0xFF,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x9E,0x25,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEF,0x00,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x40,0xA0,
-0x0B,0x01,0x00,0x08,
-0x30,0x1F,0x24,0x26,
-0xFF,0x00,0x84,0x30,
-0x0B,0x00,0x82,0x2C,
-0xFF,0xFF,0xE7,0x30,
-0x10,0x00,0xA8,0x93,
-0x19,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x04,0x00,
-0xD8,0xE9,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x43,0xB0,0x02,0x3C,
-0x78,0x00,0x44,0x34,
-0x07,0x00,0xE2,0x30,
-0x00,0x00,0x85,0xAC,
-0x04,0x00,0x86,0xAC,
-0x04,0x00,0x40,0x18,
-0x00,0x00,0x00,0x00,
-0xF8,0xFF,0xE2,0x30,
-0x08,0x00,0x42,0x24,
-0xFF,0xFF,0x47,0x30,
-0x21,0x10,0xE8,0x00,
-0x00,0x80,0x03,0x3C,
-0x08,0x00,0x82,0xAC,
-0x25,0x10,0x43,0x00,
-0x08,0x00,0x82,0xAC,
-0x01,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x6C,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x60,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x54,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x48,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x3C,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x30,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x24,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x18,0x00,0x44,0x34,
-0x43,0xB0,0x02,0x3C,
-0x83,0x01,0x00,0x08,
-0x0C,0x00,0x44,0x34,
-0x83,0x01,0x00,0x08,
-0x43,0xB0,0x04,0x3C,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0xC0,0x06,0x63,0x24,
-0x00,0x00,0x43,0xAC,
-0x01,0x00,0x05,0x24,
-0x43,0xB0,0x02,0x3C,
-0x04,0x28,0x85,0x00,
-0x88,0x00,0x44,0x34,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x42,0x30,
-0x05,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x00,0x00,0x82,0x94,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x42,0x30,
-0x24,0x10,0x45,0x00,
-0xF5,0xFF,0x40,0x1C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x08,0x3C,
-0x00,0x80,0x02,0x3C,
-0xC8,0xFF,0xBD,0x27,
-0x18,0x03,0x03,0x35,
-0x1C,0x07,0x42,0x24,
-0x00,0x00,0x62,0xAC,
-0x30,0x00,0xB6,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x0C,0x00,0xF2,0x84,
-0x08,0x00,0xF5,0x8C,
-0xFF,0x00,0xC6,0x30,
-0x00,0x01,0x02,0x24,
-0x23,0x10,0x46,0x00,
-0xFF,0xFF,0x51,0x30,
-0xD0,0x03,0x08,0x35,
-0xFF,0x00,0x96,0x30,
-0x00,0x00,0x12,0xAD,
-0x21,0xA0,0xA0,0x00,
-0x21,0x30,0xC5,0x00,
-0x00,0x00,0x15,0xAD,
-0x21,0x20,0xC0,0x02,
-0x21,0x28,0xA0,0x02,
-0x21,0x38,0x20,0x02,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x23,0x18,0x51,0x02,
-0xFF,0xFF,0x82,0x32,
-0x00,0x94,0x03,0x00,
-0x03,0x94,0x12,0x00,
-0x09,0x02,0x00,0x08,
-0x02,0x9A,0x02,0x00,
-0x28,0xB0,0x03,0x3C,
-0xC0,0x10,0x13,0x00,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x25,0xB0,0x10,0x3C,
-0x20,0x10,0x02,0x3C,
-0xFF,0x00,0x93,0x30,
-0x00,0x22,0x13,0x00,
-0xFF,0xFF,0x43,0x32,
-0x01,0x01,0x45,0x2A,
-0x21,0xA0,0x82,0x00,
-0x21,0xA8,0xB1,0x02,
-0xD0,0x03,0x02,0x36,
-0x00,0x01,0x11,0x24,
-0x0B,0x88,0x65,0x00,
-0x21,0x20,0xC0,0x02,
-0x00,0x00,0x53,0xAC,
-0xB0,0x01,0x00,0x0C,
-0xB0,0x03,0x10,0x36,
-0x21,0x30,0x80,0x02,
-0x21,0x20,0xC0,0x02,
-0x21,0x28,0xA0,0x02,
-0x21,0x38,0x20,0x02,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x23,0x18,0x51,0x02,
-0x00,0x94,0x03,0x00,
-0x03,0x94,0x12,0x00,
-0x00,0x00,0x12,0xAE,
-0xE2,0xFF,0x40,0x1E,
-0x00,0x00,0x00,0x00,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x20,0x00,0xB2,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x04,0x00,0x8B,0x8C,
-0x21,0x80,0x80,0x00,
-0x08,0x00,0x84,0x8C,
-0x0E,0x00,0x07,0x96,
-0xFF,0xE0,0x02,0x3C,
-0x10,0x00,0x08,0x8E,
-0x1F,0x00,0x6A,0x31,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x82,0x00,
-0x00,0x1E,0x0A,0x00,
-0x25,0x48,0x83,0x00,
-0x21,0x90,0xA0,0x00,
-0x21,0x60,0xC0,0x00,
-0x10,0x01,0x00,0x05,
-0x07,0x00,0xE7,0x30,
-0x00,0x00,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0xFD,0x0F,0x42,0x28,
-0xC0,0x00,0x40,0x14,
-0x02,0x80,0x11,0x3C,
-0xFF,0xDF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x48,0x22,0x01,
-0x1C,0x00,0x02,0x8E,
-0x00,0x40,0x03,0x3C,
-0x25,0x48,0x23,0x01,
-0x02,0x80,0x11,0x3C,
-0xC5,0x00,0x40,0x04,
-0x08,0x00,0x09,0xAE,
-0xC0,0x30,0x0A,0x00,
-0x21,0x10,0xCA,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x4A,0x00,
-0x80,0x10,0x02,0x00,
-0x30,0x1F,0x27,0x26,
-0x21,0x28,0x47,0x00,
-0x1C,0x24,0xA3,0x8C,
-0x01,0x00,0x0A,0x24,
-0x02,0x13,0x03,0x00,
-0x01,0x00,0x42,0x30,
-0xDB,0x00,0x4A,0x10,
-0x42,0x18,0x03,0x00,
-0x82,0x11,0x09,0x00,
-0x01,0x00,0x42,0x30,
-0x06,0x00,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0xC0,0xFF,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0x04,0x00,0x49,0x34,
-0x08,0x00,0x09,0xAE,
-0x02,0x80,0x02,0x3C,
-0xE9,0x5D,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x6C,0x00,0x60,0x14,
-0x21,0x28,0xC7,0x00,
-0xE8,0x22,0xA4,0x8C,
-0x10,0x00,0x02,0x8E,
-0xBF,0xFF,0x03,0x24,
-0x40,0x00,0x84,0x30,
-0x24,0x10,0x43,0x00,
-0x25,0x40,0x44,0x00,
-0x10,0x00,0x08,0xAE,
-0xE8,0x22,0xA3,0x8C,
-0x7F,0xF8,0x02,0x24,
-0x24,0x10,0x02,0x01,
-0x80,0x07,0x63,0x30,
-0x42,0x27,0x09,0x00,
-0x25,0x40,0x43,0x00,
-0x01,0x00,0x84,0x30,
-0xE1,0x00,0x8A,0x10,
-0x10,0x00,0x08,0xAE,
-0x30,0x1F,0x24,0x26,
-0x21,0x20,0xC4,0x00,
-0xE8,0x22,0x83,0x8C,
-0xFF,0xF7,0x02,0x24,
-0x24,0x10,0x02,0x01,
-0x00,0x08,0x63,0x30,
-0x25,0x40,0x43,0x00,
-0x10,0x00,0x08,0xAE,
-0xE8,0x22,0x83,0x8C,
-0xFF,0xEF,0x02,0x24,
-0x24,0x10,0x02,0x01,
-0x00,0x10,0x63,0x30,
-0x30,0x1F,0x25,0x26,
-0x25,0x40,0x43,0x00,
-0x10,0x00,0x08,0xAE,
-0x21,0x30,0xC5,0x00,
-0xE8,0x22,0xC4,0x8C,
-0xFD,0xFF,0x02,0x3C,
-0x02,0x00,0x03,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x83,0x00,
-0x24,0x10,0x02,0x01,
-0x25,0x40,0x44,0x00,
-0x10,0x00,0x08,0xAE,
-0xB0,0x1B,0xA3,0x94,
-0xFB,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xC2,0x1B,0x03,0x00,
-0x24,0x10,0x02,0x01,
-0x80,0x1C,0x03,0x00,
-0x25,0x40,0x43,0x00,
-0x10,0x00,0x08,0xAE,
-0x8F,0x3E,0xA3,0x90,
-0xE7,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x03,0x00,0x63,0x30,
-0x24,0x10,0x02,0x01,
-0xC0,0x1C,0x03,0x00,
-0x25,0x40,0x43,0x00,
-0x10,0x00,0x08,0xAE,
-0xE8,0x22,0xC4,0x8C,
-0xFF,0xFD,0x02,0x3C,
-0x00,0x02,0x03,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x83,0x00,
-0x24,0x10,0x02,0x01,
-0x25,0x40,0x44,0x00,
-0x10,0x00,0x08,0xAE,
-0xB0,0x1B,0xA3,0x94,
-0xFF,0xFB,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xC2,0x1B,0x03,0x00,
-0x24,0x10,0x02,0x01,
-0x80,0x1E,0x03,0x00,
-0x25,0x40,0x43,0x00,
-0x10,0x00,0x08,0xAE,
-0x8F,0x3E,0xA3,0x90,
-0xFF,0xE7,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x03,0x00,0x63,0x30,
-0x24,0x10,0x02,0x01,
-0xC0,0x1E,0x03,0x00,
-0x25,0x40,0x43,0x00,
-0x10,0x00,0x08,0xAE,
-0xE8,0x22,0xC3,0x8C,
-0xC0,0xFF,0x02,0x24,
-0x24,0x10,0x02,0x01,
-0x3F,0x00,0x63,0x30,
-0x25,0x10,0x43,0x00,
-0x10,0x00,0x02,0xAE,
-0xEC,0x22,0xC5,0x8C,
-0x14,0x00,0x03,0x8E,
-0xFF,0xFF,0x04,0x3C,
-0xFF,0x7F,0x84,0x34,
-0x24,0x18,0x64,0x00,
-0x00,0x80,0xA5,0x30,
-0x25,0x18,0x65,0x00,
-0x14,0x00,0x03,0xAE,
-0xEC,0x22,0xC2,0x8C,
-0x24,0x18,0x64,0x00,
-0x00,0x80,0x42,0x30,
-0x25,0x18,0x62,0x00,
-0x14,0x00,0x03,0xAE,
-0xEE,0x22,0xC4,0x94,
-0xE0,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x1F,0x00,0x84,0x30,
-0x24,0x18,0x62,0x00,
-0x00,0x24,0x04,0x00,
-0x25,0x18,0x64,0x00,
-0x14,0x00,0x03,0xAE,
-0x02,0x00,0x02,0x92,
-0x02,0x24,0x0B,0x00,
-0x02,0x80,0x03,0x3C,
-0x21,0x10,0x4C,0x00,
-0xFF,0xFF,0x42,0x30,
-0x01,0x00,0x84,0x30,
-0x6A,0x00,0x80,0x10,
-0x25,0x30,0x43,0x00,
-0x30,0x1F,0x23,0x26,
-0xF8,0x1D,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0xFF,0x0F,0x45,0x30,
-0x01,0x00,0x42,0x24,
-0xF8,0x1D,0x62,0xA4,
-0x0C,0x00,0x03,0x8E,
-0x00,0xF0,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x00,0x24,0x05,0x00,
-0x24,0x18,0x62,0x00,
-0x25,0x18,0x64,0x00,
-0x0C,0x00,0x03,0xAE,
-0x16,0x00,0xC2,0x94,
-0x00,0x19,0x05,0x00,
-0x02,0x00,0x04,0x24,
-0x0F,0x00,0x42,0x30,
-0x25,0x10,0x43,0x00,
-0x16,0x00,0xC2,0xA4,
-0x21,0x28,0x80,0x01,
-0x21,0x30,0x40,0x02,
-0x80,0x00,0x07,0x24,
-0x01,0x00,0x02,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x52,0xAC,
-0xB0,0x01,0x00,0x0C,
-0x02,0x00,0x04,0x24,
-0x30,0x1F,0x24,0x26,
-0x00,0x00,0x03,0x96,
-0x94,0x3E,0x82,0x8C,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x21,0x10,0x43,0x00,
-0x28,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x94,0x3E,0x82,0xAC,
-0x08,0x00,0x09,0xAE,
-0x30,0x1F,0x22,0x26,
-0x1A,0x3E,0x43,0x90,
-0xFF,0xDF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x07,0x18,0xE3,0x00,
-0x01,0x00,0x63,0x30,
-0x24,0x10,0x22,0x01,
-0x40,0x1F,0x03,0x00,
-0x25,0x48,0x43,0x00,
-0x1C,0x00,0x02,0x8E,
-0x00,0x00,0x00,0x00,
-0x3D,0xFF,0x41,0x04,
-0x08,0x00,0x09,0xAE,
-0x1E,0x00,0x02,0x92,
-0x04,0x00,0x03,0x24,
-0x21,0x30,0x50,0x00,
-0x00,0x00,0xC4,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x82,0x30,
-0x02,0x29,0x02,0x00,
-0x50,0x00,0xA3,0x10,
-0x06,0x00,0x02,0x24,
-0x32,0xFF,0xA2,0x14,
-0x00,0x00,0x00,0x00,
-0x1A,0x00,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0x39,0x00,0xC2,0xA0,
-0x1E,0x00,0x03,0x92,
-0x1A,0x00,0x02,0x96,
-0x21,0x18,0x70,0x00,
-0x03,0x12,0x02,0x00,
-0x38,0x00,0x62,0xA0,
-0x04,0x00,0x0B,0x8E,
-0x08,0x00,0x09,0x8E,
-0xC0,0x30,0x0A,0x00,
-0x21,0x10,0xCA,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x4A,0x00,
-0x80,0x10,0x02,0x00,
-0x30,0x1F,0x27,0x26,
-0x21,0x28,0x47,0x00,
-0x1C,0x24,0xA3,0x8C,
-0x01,0x00,0x0A,0x24,
-0x02,0x13,0x03,0x00,
-0x01,0x00,0x42,0x30,
-0x29,0xFF,0x4A,0x14,
-0x82,0x11,0x09,0x00,
-0x42,0x18,0x03,0x00,
-0x7F,0xFF,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0x80,0x00,0x63,0x30,
-0x25,0x48,0x43,0x00,
-0x08,0x00,0x09,0xAE,
-0x1C,0x24,0xA3,0x8C,
-0x10,0x00,0x04,0x8E,
-0xFF,0xFF,0x02,0x3C,
-0x07,0x00,0x63,0x30,
-0xFF,0x1F,0x42,0x34,
-0x24,0x20,0x82,0x00,
-0x40,0x1B,0x03,0x00,
-0x25,0x40,0x83,0x00,
-0x44,0x02,0x00,0x08,
-0x10,0x00,0x08,0xAE,
-0x0E,0x00,0x02,0x96,
-0x30,0x1F,0x23,0x26,
-0x07,0x00,0x42,0x30,
-0x40,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0xE8,0x1D,0x44,0x94,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x83,0x24,
-0xFF,0x0F,0x85,0x30,
-0xCA,0x02,0x00,0x08,
-0xE8,0x1D,0x43,0xA4,
-0x14,0x00,0x02,0x8E,
-0x00,0x00,0x00,0x00,
-0x42,0x12,0x02,0x00,
-0x3F,0x00,0x42,0x30,
-0x0C,0x00,0x42,0x28,
-0xF1,0xFE,0x40,0x14,
-0xFF,0xDF,0x02,0x3C,
-0x29,0x02,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xE6,0x5D,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x1D,0xFF,0x64,0x14,
-0x30,0x1F,0x24,0x26,
-0x90,0x3E,0xE2,0x90,
-0xFF,0xF7,0x03,0x24,
-0x24,0x18,0x03,0x01,
-0x01,0x00,0x42,0x30,
-0xC0,0x12,0x02,0x00,
-0x25,0x40,0x62,0x00,
-0x10,0x00,0x08,0xAE,
-0x91,0x3E,0xE2,0x90,
-0xFF,0xEF,0x03,0x24,
-0x24,0x18,0x03,0x01,
-0x01,0x00,0x42,0x30,
-0x6D,0x02,0x00,0x08,
-0x00,0x13,0x02,0x00,
-0x1A,0x00,0x05,0x96,
-0x0F,0x00,0x84,0x30,
-0x80,0x20,0x04,0x00,
-0x21,0x18,0xC4,0x00,
-0x11,0x00,0x65,0xA0,
-0x1E,0x00,0x02,0x92,
-0x1A,0x00,0x03,0x96,
-0x21,0x10,0x50,0x00,
-0x21,0x10,0x44,0x00,
-0x03,0x1A,0x03,0x00,
-0x10,0x00,0x43,0xA0,
-0x04,0x00,0x0B,0x8E,
-0x08,0x00,0x09,0x8E,
-0x11,0x03,0x00,0x08,
-0xC0,0x30,0x0A,0x00,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x88,0x0D,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x04,0x3C,
-0x00,0x80,0x02,0x3C,
-0xC0,0xFF,0xBD,0x27,
-0x18,0x03,0x83,0x34,
-0xA4,0x0D,0x42,0x24,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x34,0x00,0xB7,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x02,0x3C,
-0xB0,0x03,0x9E,0x34,
-0x98,0x03,0x00,0x08,
-0x30,0x1F,0x55,0x24,
-0x08,0x00,0x04,0xAE,
-0x14,0x37,0x46,0x8E,
-0x21,0x28,0x60,0x02,
-0x80,0x00,0x07,0x24,
-0x01,0x00,0x04,0x24,
-0x01,0x00,0x14,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB4,0xAF,
-0x14,0x37,0x43,0x8E,
-0x01,0x00,0x04,0x24,
-0x00,0x00,0xC3,0xAE,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0x1C,0x42,0x92,
-0x00,0x00,0x00,0x00,
-0x5F,0x00,0x40,0x10,
-0x2A,0xB0,0x02,0x3C,
-0x09,0x00,0x42,0x34,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x54,0xA0,
-0x00,0x00,0x43,0xA0,
-0xFF,0x00,0x03,0x24,
-0x74,0x00,0x23,0x12,
-0x00,0x00,0x00,0x00,
-0x10,0x37,0xA2,0x8E,
-0x7C,0x37,0xB3,0x8E,
-0x01,0x00,0x04,0x24,
-0x00,0x00,0xC2,0xAF,
-0x14,0x37,0xA2,0xAE,
-0x00,0x00,0xD3,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x7C,0x37,0xA4,0x8E,
-0x80,0x37,0xA3,0x8E,
-0x02,0x80,0x02,0x3C,
-0x04,0xEA,0x42,0x24,
-0x00,0x00,0x52,0x8C,
-0x80,0x00,0x84,0x24,
-0xFF,0x00,0x62,0x24,
-0x2B,0x10,0x44,0x00,
-0x0A,0x18,0x82,0x00,
-0x7C,0x37,0xA3,0xAE,
-0x02,0x80,0x03,0x3C,
-0x08,0xEA,0x63,0x24,
-0x7C,0x37,0x42,0x8E,
-0x00,0x00,0x76,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC2,0xAE,
-0x02,0x80,0x17,0x3C,
-0xFF,0xFF,0x62,0x32,
-0x25,0x80,0x57,0x00,
-0x00,0x00,0xD0,0xAE,
-0x0C,0x00,0x02,0x92,
-0x21,0x28,0x00,0x00,
-0x00,0x00,0xC2,0xAE,
-0x02,0x00,0x04,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x93,0x00,
-0xFF,0xFF,0x84,0x30,
-0xFB,0x60,0x00,0x0C,
-0x25,0x20,0x97,0x00,
-0x0C,0x00,0x11,0x92,
-0x20,0x10,0x02,0x3C,
-0x01,0x00,0x04,0x24,
-0x00,0x1A,0x11,0x00,
-0x21,0x18,0x62,0x00,
-0xFF,0x00,0x02,0x24,
-0x21,0x30,0x60,0x00,
-0x06,0x00,0x22,0x12,
-0x80,0x00,0x07,0x24,
-0x7C,0x37,0x45,0x8E,
-0x10,0x37,0x43,0xAE,
-0xB4,0x36,0x51,0xA2,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x04,0x00,0x04,0x8E,
-0x08,0x00,0x03,0x8E,
-0xFF,0xE0,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x1F,0x00,0x84,0x30,
-0x24,0x18,0x62,0x00,
-0x00,0x26,0x04,0x00,
-0xFF,0xDF,0x02,0x3C,
-0x25,0x18,0x64,0x00,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x00,0x40,0x04,0x3C,
-0x25,0x18,0x64,0x00,
-0xC0,0xFF,0x05,0x24,
-0x82,0x11,0x03,0x00,
-0x24,0x20,0x65,0x00,
-0x01,0x00,0x42,0x30,
-0xA3,0xFF,0x40,0x10,
-0x04,0x00,0x84,0x34,
-0x08,0x00,0x03,0xAE,
-0x14,0x37,0x46,0x8E,
-0x21,0x28,0x60,0x02,
-0x80,0x00,0x07,0x24,
-0x01,0x00,0x04,0x24,
-0x01,0x00,0x14,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB4,0xAF,
-0x14,0x37,0x43,0x8E,
-0x01,0x00,0x04,0x24,
-0x00,0x00,0xC3,0xAE,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0x1C,0x42,0x92,
-0x00,0x00,0x00,0x00,
-0xA3,0xFF,0x40,0x14,
-0x2A,0xB0,0x02,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x2A,0x1C,0x54,0xA2,
-0x02,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x53,0x00,
-0xFF,0xFF,0x42,0x30,
-0x25,0x10,0x57,0x00,
-0x02,0x00,0x43,0x94,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x64,0x30,
-0x00,0xC0,0x84,0x24,
-0xFF,0xFF,0x84,0x30,
-0xC2,0x34,0x00,0x0C,
-0x2B,0x1C,0x43,0xA2,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x2A,0xB0,0x02,0x3C,
-0x09,0x00,0x42,0x34,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x54,0xA0,
-0x00,0x00,0x43,0xA0,
-0xFF,0x00,0x03,0x24,
-0x8E,0xFF,0x23,0x16,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x62,0x24,
-0xD0,0x1B,0x43,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x00,0x38,0x63,0x34,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x83,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0x43,0xAC,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x88,0x10,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xC0,0xFF,0xBD,0x27,
-0x34,0x00,0xB7,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x06,0x3C,
-0xCC,0x5E,0xC5,0x90,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0xA4,0x10,0x63,0x24,
-0x40,0x00,0xA4,0x30,
-0x00,0x00,0x43,0xAC,
-0x21,0xB8,0x00,0x00,
-0x03,0x00,0x80,0x10,
-0x7F,0x00,0xA2,0x30,
-0xBF,0x00,0xA2,0x30,
-0x01,0x00,0x17,0x24,
-0xCC,0x5E,0xC2,0xA0,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x1E,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0xD3,0x27,
-0xB0,0x03,0x55,0x34,
-0x6A,0x04,0x00,0x08,
-0x02,0x80,0x16,0x3C,
-0x90,0x36,0x91,0xA2,
-0x30,0x1F,0xC2,0x27,
-0xC8,0x36,0x46,0x8C,
-0x34,0x37,0x45,0x8C,
-0x03,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x30,0x1F,0xD4,0x27,
-0xCC,0x36,0x85,0x8E,
-0x21,0x20,0x00,0x02,
-0x15,0x02,0x00,0x0C,
-0x21,0x30,0x40,0x02,
-0x2A,0xB0,0x07,0x3C,
-0x0D,0x00,0xE2,0x34,
-0x04,0x00,0x43,0x24,
-0x0B,0x10,0x77,0x00,
-0x01,0x00,0x04,0x24,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x44,0xA0,
-0x00,0x00,0x43,0xA0,
-0x1A,0x5E,0xC4,0x96,
-0x25,0xB0,0x06,0x3C,
-0x66,0x03,0xC5,0x34,
-0x01,0x00,0x84,0x24,
-0x1A,0x5E,0xC4,0xA6,
-0x1A,0x5E,0xC2,0x96,
-0xFF,0x00,0x03,0x24,
-0x00,0x00,0xA2,0xA4,
-0x2F,0x00,0x23,0x12,
-0x00,0x00,0x00,0x00,
-0xC8,0x36,0x62,0x8E,
-0x34,0x37,0x72,0x8E,
-0x03,0x00,0x04,0x24,
-0x00,0x00,0xA2,0xAE,
-0xCC,0x36,0x62,0xAE,
-0x00,0x00,0xB2,0xAE,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x34,0x37,0x64,0x8E,
-0x38,0x37,0x63,0x8E,
-0x02,0x80,0x02,0x3C,
-0x0C,0xEA,0x42,0x24,
-0x00,0x00,0x54,0x8C,
-0x80,0x00,0x84,0x24,
-0xFF,0x00,0x62,0x24,
-0x2B,0x10,0x44,0x00,
-0x0A,0x18,0x82,0x00,
-0x34,0x37,0x63,0xAE,
-0x34,0x37,0x82,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xAE,
-0x02,0x80,0x03,0x3C,
-0xFF,0xFF,0x42,0x32,
-0x25,0x80,0x43,0x00,
-0x00,0x00,0xB0,0xAE,
-0x0C,0x00,0x02,0x92,
-0x01,0x00,0x05,0x24,
-0x00,0x00,0xA2,0xAE,
-0x02,0x00,0x04,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x92,0x00,
-0xFF,0xFF,0x84,0x30,
-0xFB,0x60,0x00,0x0C,
-0x25,0x20,0x83,0x00,
-0x0C,0x00,0x11,0x92,
-0x20,0x10,0x02,0x3C,
-0xFF,0x00,0x03,0x24,
-0x00,0x22,0x11,0x00,
-0xC2,0xFF,0x23,0x12,
-0x21,0x20,0x82,0x00,
-0xB8,0xFF,0xE0,0x16,
-0xC8,0x36,0x84,0xAE,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x4C,0x04,0x00,0x08,
-0x8C,0x36,0x51,0xA0,
-0x21,0x00,0xE0,0x12,
-0x40,0x00,0xE4,0x34,
-0x90,0x36,0x83,0x92,
-0x41,0x00,0xE4,0x34,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA4,0x8C,
-0x01,0x00,0x02,0x3C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x00,0x80,0x42,0x34,
-0x25,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x64,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA4,0xAC,
-0x8C,0x36,0x83,0x92,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA4,0x8C,
-0x01,0x00,0x02,0x3C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x00,0x80,0x42,0x34,
-0x25,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x64,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA4,0xAC,
-0xC0,0xFF,0xBD,0x27,
-0x34,0x00,0xB7,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x06,0x3C,
-0xCC,0x5E,0xC5,0x90,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0x64,0x13,0x63,0x24,
-0x10,0x00,0xA4,0x30,
-0x00,0x00,0x43,0xAC,
-0x21,0xB8,0x00,0x00,
-0x03,0x00,0x80,0x10,
-0xDF,0x00,0xA2,0x30,
-0xEF,0x00,0xA2,0x30,
-0x01,0x00,0x17,0x24,
-0xCC,0x5E,0xC2,0xA0,
-0xCC,0x5E,0xC3,0x90,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x1E,0x3C,
-0x30,0x1F,0xD3,0x27,
-0x21,0xA8,0x40,0x00,
-0x1E,0x05,0x00,0x08,
-0x02,0x80,0x16,0x3C,
-0x98,0x36,0x91,0xA2,
-0x30,0x1F,0xC2,0x27,
-0xD4,0x36,0x46,0x8C,
-0x40,0x37,0x45,0x8C,
-0x04,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x30,0x1F,0xD4,0x27,
-0xD8,0x36,0x85,0x8E,
-0x21,0x20,0x00,0x02,
-0x15,0x02,0x00,0x0C,
-0x21,0x30,0x40,0x02,
-0x2A,0xB0,0x07,0x3C,
-0x15,0x00,0xE2,0x34,
-0x04,0x00,0x43,0x24,
-0x0B,0x10,0x77,0x00,
-0x01,0x00,0x04,0x24,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x44,0xA0,
-0x00,0x00,0x43,0xA0,
-0x1A,0x5E,0xC4,0x96,
-0x25,0xB0,0x06,0x3C,
-0x66,0x03,0xC5,0x34,
-0x01,0x00,0x84,0x24,
-0x1A,0x5E,0xC4,0xA6,
-0x1A,0x5E,0xC2,0x96,
-0xFF,0x00,0x03,0x24,
-0x00,0x00,0xA2,0xA4,
-0x2F,0x00,0x23,0x12,
-0x00,0x00,0x00,0x00,
-0xD4,0x36,0x62,0x8E,
-0x40,0x37,0x72,0x8E,
-0x04,0x00,0x04,0x24,
-0x00,0x00,0xA2,0xAE,
-0xD8,0x36,0x62,0xAE,
-0x00,0x00,0xB2,0xAE,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x40,0x37,0x64,0x8E,
-0x44,0x37,0x63,0x8E,
-0x02,0x80,0x02,0x3C,
-0x10,0xEA,0x42,0x24,
-0x00,0x00,0x54,0x8C,
-0x80,0x00,0x84,0x24,
-0xFF,0x00,0x62,0x24,
-0x2B,0x10,0x44,0x00,
-0x0A,0x18,0x82,0x00,
-0x40,0x37,0x63,0xAE,
-0x40,0x37,0x82,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xAE,
-0x02,0x80,0x03,0x3C,
-0xFF,0xFF,0x42,0x32,
-0x25,0x80,0x43,0x00,
-0x00,0x00,0xB0,0xAE,
-0x0C,0x00,0x02,0x92,
-0x02,0x00,0x05,0x24,
-0x00,0x00,0xA2,0xAE,
-0x02,0x00,0x04,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x92,0x00,
-0xFF,0xFF,0x84,0x30,
-0xFB,0x60,0x00,0x0C,
-0x25,0x20,0x83,0x00,
-0x0C,0x00,0x11,0x92,
-0x20,0x10,0x02,0x3C,
-0xFF,0x00,0x03,0x24,
-0x00,0x22,0x11,0x00,
-0xC2,0xFF,0x23,0x12,
-0x21,0x20,0x82,0x00,
-0xB8,0xFF,0xE0,0x16,
-0xD4,0x36,0x84,0xAE,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x00,0x05,0x00,0x08,
-0x94,0x36,0x51,0xA0,
-0x20,0x00,0xE0,0x12,
-0x42,0x00,0xE4,0x34,
-0x98,0x36,0x83,0x92,
-0x43,0x00,0xE4,0x34,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x06,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0x94,0x36,0x83,0x92,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x06,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0xC0,0xFF,0xBD,0x27,
-0x34,0x00,0xB7,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x06,0x3C,
-0xCC,0x5E,0xC5,0x90,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0x2C,0x16,0x63,0x24,
-0x01,0x00,0xA4,0x30,
-0x00,0x00,0x43,0xAC,
-0x21,0xB8,0x00,0x00,
-0x03,0x00,0x80,0x10,
-0xF7,0x00,0xA2,0x30,
-0xFE,0x00,0xA2,0x30,
-0x01,0x00,0x17,0x24,
-0xCC,0x5E,0xC2,0xA0,
-0xCC,0x5E,0xC3,0x90,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x1E,0x3C,
-0x30,0x1F,0xD3,0x27,
-0x21,0xA8,0x40,0x00,
-0xCF,0x05,0x00,0x08,
-0x02,0x80,0x16,0x3C,
-0xA8,0x36,0x91,0xA2,
-0x30,0x1F,0xC2,0x27,
-0xE0,0x36,0x46,0x8C,
-0x4C,0x37,0x45,0x8C,
-0x05,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x30,0x1F,0xD4,0x27,
-0xE4,0x36,0x85,0x8E,
-0x21,0x20,0x00,0x02,
-0x15,0x02,0x00,0x0C,
-0x21,0x30,0x40,0x02,
-0x2A,0xB0,0x07,0x3C,
-0x1D,0x00,0xE2,0x34,
-0x04,0x00,0x43,0x24,
-0x0B,0x10,0x77,0x00,
-0x01,0x00,0x04,0x24,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x44,0xA0,
-0x00,0x00,0x43,0xA0,
-0x1A,0x5E,0xC4,0x96,
-0x25,0xB0,0x06,0x3C,
-0x66,0x03,0xC5,0x34,
-0x01,0x00,0x84,0x24,
-0x1A,0x5E,0xC4,0xA6,
-0x1A,0x5E,0xC2,0x96,
-0xFF,0x00,0x03,0x24,
-0x00,0x00,0xA2,0xA4,
-0x2F,0x00,0x23,0x12,
-0x00,0x00,0x00,0x00,
-0xE0,0x36,0x62,0x8E,
-0x4C,0x37,0x72,0x8E,
-0x05,0x00,0x04,0x24,
-0x00,0x00,0xA2,0xAE,
-0xE4,0x36,0x62,0xAE,
-0x00,0x00,0xB2,0xAE,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x4C,0x37,0x64,0x8E,
-0x50,0x37,0x63,0x8E,
-0x02,0x80,0x02,0x3C,
-0x14,0xEA,0x42,0x24,
-0x00,0x00,0x54,0x8C,
-0x80,0x00,0x84,0x24,
-0xFF,0x00,0x62,0x24,
-0x2B,0x10,0x44,0x00,
-0x0A,0x18,0x82,0x00,
-0x4C,0x37,0x63,0xAE,
-0x4C,0x37,0x82,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xAE,
-0x02,0x80,0x03,0x3C,
-0xFF,0xFF,0x42,0x32,
-0x25,0x80,0x43,0x00,
-0x00,0x00,0xB0,0xAE,
-0x0C,0x00,0x02,0x92,
-0x08,0x00,0x05,0x24,
-0x00,0x00,0xA2,0xAE,
-0x02,0x00,0x04,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x92,0x00,
-0xFF,0xFF,0x84,0x30,
-0xFB,0x60,0x00,0x0C,
-0x25,0x20,0x83,0x00,
-0x0C,0x00,0x11,0x92,
-0x20,0x10,0x02,0x3C,
-0xFF,0x00,0x03,0x24,
-0x00,0x22,0x11,0x00,
-0xC2,0xFF,0x23,0x12,
-0x21,0x20,0x82,0x00,
-0xB8,0xFF,0xE0,0x16,
-0xE0,0x36,0x84,0xAE,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0xB1,0x05,0x00,0x08,
-0x9C,0x36,0x51,0xA0,
-0x20,0x00,0xE0,0x12,
-0x44,0x00,0xE4,0x34,
-0xA8,0x36,0x83,0x92,
-0x45,0x00,0xE4,0x34,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x18,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0x9C,0x36,0x83,0x92,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x18,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0xC0,0xFF,0xBD,0x27,
-0x34,0x00,0xB7,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x06,0x3C,
-0xCC,0x5E,0xC5,0x90,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0xF0,0x18,0x63,0x24,
-0x02,0x00,0xA4,0x30,
-0x00,0x00,0x43,0xAC,
-0x21,0xB8,0x00,0x00,
-0x03,0x00,0x80,0x10,
-0xFB,0x00,0xA2,0x30,
-0xFD,0x00,0xA2,0x30,
-0x01,0x00,0x17,0x24,
-0xCC,0x5E,0xC2,0xA0,
-0xCC,0x5E,0xC3,0x90,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x1E,0x3C,
-0x30,0x1F,0xD3,0x27,
-0x21,0xA8,0x40,0x00,
-0x80,0x06,0x00,0x08,
-0x02,0x80,0x16,0x3C,
-0xA4,0x36,0x91,0xA2,
-0x30,0x1F,0xC2,0x27,
-0xEC,0x36,0x46,0x8C,
-0x58,0x37,0x45,0x8C,
-0x06,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x30,0x1F,0xD4,0x27,
-0xF0,0x36,0x85,0x8E,
-0x21,0x20,0x00,0x02,
-0x15,0x02,0x00,0x0C,
-0x21,0x30,0x40,0x02,
-0x2A,0xB0,0x07,0x3C,
-0x25,0x00,0xE2,0x34,
-0x04,0x00,0x43,0x24,
-0x0B,0x10,0x77,0x00,
-0x01,0x00,0x04,0x24,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x44,0xA0,
-0x00,0x00,0x43,0xA0,
-0x1A,0x5E,0xC4,0x96,
-0x25,0xB0,0x06,0x3C,
-0x66,0x03,0xC5,0x34,
-0x01,0x00,0x84,0x24,
-0x1A,0x5E,0xC4,0xA6,
-0x1A,0x5E,0xC2,0x96,
-0xFF,0x00,0x03,0x24,
-0x00,0x00,0xA2,0xA4,
-0x2F,0x00,0x23,0x12,
-0x00,0x00,0x00,0x00,
-0xEC,0x36,0x62,0x8E,
-0x58,0x37,0x72,0x8E,
-0x06,0x00,0x04,0x24,
-0x00,0x00,0xA2,0xAE,
-0xF0,0x36,0x62,0xAE,
-0x00,0x00,0xB2,0xAE,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x58,0x37,0x64,0x8E,
-0x5C,0x37,0x63,0x8E,
-0x02,0x80,0x02,0x3C,
-0x18,0xEA,0x42,0x24,
-0x00,0x00,0x54,0x8C,
-0x80,0x00,0x84,0x24,
-0xFF,0x00,0x62,0x24,
-0x2B,0x10,0x44,0x00,
-0x0A,0x18,0x82,0x00,
-0x58,0x37,0x63,0xAE,
-0x58,0x37,0x82,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xAE,
-0x02,0x80,0x03,0x3C,
-0xFF,0xFF,0x42,0x32,
-0x25,0x80,0x43,0x00,
-0x00,0x00,0xB0,0xAE,
-0x0C,0x00,0x02,0x92,
-0x04,0x00,0x05,0x24,
-0x00,0x00,0xA2,0xAE,
-0x02,0x00,0x04,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x92,0x00,
-0xFF,0xFF,0x84,0x30,
-0xFB,0x60,0x00,0x0C,
-0x25,0x20,0x83,0x00,
-0x0C,0x00,0x11,0x92,
-0x20,0x10,0x02,0x3C,
-0xFF,0x00,0x03,0x24,
-0x00,0x22,0x11,0x00,
-0xC2,0xFF,0x23,0x12,
-0x21,0x20,0x82,0x00,
-0xB8,0xFF,0xE0,0x16,
-0xEC,0x36,0x84,0xAE,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x62,0x06,0x00,0x08,
-0xA0,0x36,0x51,0xA0,
-0x20,0x00,0xE0,0x12,
-0x46,0x00,0xE4,0x34,
-0xA4,0x36,0x83,0x92,
-0x47,0x00,0xE4,0x34,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x60,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0xA0,0x36,0x83,0x92,
-0xB0,0x03,0xC5,0x34,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xA3,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x60,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xB4,0x1B,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x05,0x3C,
-0x30,0x1F,0xA5,0x24,
-0xD8,0x1B,0xA2,0x8C,
-0xD0,0x1B,0xA4,0x8C,
-0x00,0x08,0x03,0x3C,
-0x24,0x10,0x43,0x00,
-0x25,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x64,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA4,0xAC,
-0x25,0xB0,0x04,0x3C,
-0x00,0x80,0x02,0x3C,
-0xC8,0xFF,0xBD,0x27,
-0x18,0x03,0x83,0x34,
-0x10,0x1C,0x42,0x24,
-0x30,0x00,0xBF,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x14,0x3C,
-0x30,0x1F,0x93,0x26,
-0xFC,0x00,0x82,0x34,
-0x00,0x00,0x45,0x8C,
-0xAC,0x1B,0x66,0x96,
-0xD8,0x37,0x63,0x96,
-0xD0,0x37,0x67,0x8E,
-0x23,0x28,0xA6,0x00,
-0x21,0x10,0xA3,0x00,
-0x23,0x88,0x47,0x00,
-0xB0,0x03,0x84,0x34,
-0x23,0x30,0x23,0x02,
-0x2B,0x10,0x71,0x00,
-0x00,0x00,0x83,0xAC,
-0x00,0x00,0x91,0xAC,
-0x0B,0x88,0xC2,0x00,
-0x21,0x20,0x20,0x02,
-0x25,0x24,0x00,0x0C,
-0xD4,0x37,0x65,0xAE,
-0x4B,0x00,0x40,0x10,
-0x21,0x90,0x40,0x00,
-0x0C,0x00,0x51,0xAC,
-0xD0,0x37,0x68,0x8E,
-0xD4,0x37,0x62,0x8E,
-0x08,0x00,0x45,0x8E,
-0x20,0xBD,0x03,0x3C,
-0x88,0x03,0x63,0x34,
-0x2B,0x10,0x48,0x00,
-0x40,0x10,0x15,0x3C,
-0x21,0x20,0x00,0x00,
-0xFF,0xFF,0x27,0x32,
-0x00,0x00,0x65,0xAC,
-0x28,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xAC,0x1B,0x66,0x96,
-0x08,0x00,0x42,0x96,
-0x40,0x10,0x05,0x3C,
-0x21,0x20,0x00,0x00,
-0x21,0x30,0x06,0x01,
-0x25,0x28,0x45,0x00,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x02,0x3C,
-0x64,0x57,0x42,0x24,
-0x30,0x1F,0x84,0x26,
-0xD4,0x37,0x83,0x8C,
-0x04,0x00,0x45,0x8C,
-0xD0,0x37,0x83,0xAC,
-0x00,0x00,0x42,0xAE,
-0x04,0x00,0x52,0xAC,
-0x00,0x00,0xB2,0xAC,
-0x04,0x00,0x45,0xAE,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0x85,0x26,
-0xD8,0x1B,0xA2,0x8C,
-0xD0,0x1B,0xA3,0x8C,
-0x30,0x00,0xBF,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x04,0x00,0x42,0x30,
-0x25,0x18,0x62,0x00,
-0x41,0xB0,0x04,0x3C,
-0x38,0x00,0xBD,0x27,
-0x00,0x00,0x83,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA3,0xAC,
-0xD8,0x37,0x70,0x8E,
-0x08,0x00,0x45,0x96,
-0xAC,0x1B,0x66,0x96,
-0x23,0x80,0x08,0x02,
-0xFF,0xFF,0x10,0x32,
-0x21,0x30,0x06,0x01,
-0x25,0x28,0xB5,0x00,
-0x21,0x38,0x00,0x02,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x08,0x00,0x45,0x96,
-0xAC,0x1B,0x62,0x96,
-0x23,0x38,0x30,0x02,
-0x25,0x28,0xB5,0x00,
-0x21,0x10,0x06,0x3C,
-0x21,0x28,0xB0,0x00,
-0x21,0x30,0x46,0x00,
-0xFF,0xFF,0xE7,0x30,
-0x3C,0x07,0x00,0x08,
-0x21,0x20,0x00,0x00,
-0x00,0x60,0x02,0x40,
-0x01,0x00,0x41,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x04,0x3C,
-0xD0,0x5E,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x10,0x63,0x34,
-0xD0,0x5E,0x83,0xAC,
-0x00,0x60,0x82,0x40,
-0x48,0x07,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x04,0x3C,
-0x00,0x80,0x02,0x3C,
-0xC0,0xFF,0xBD,0x27,
-0x18,0x03,0x83,0x34,
-0xFC,0x1D,0x42,0x24,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x34,0x00,0xB7,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x1E,0x3C,
-0x02,0x80,0x02,0x3C,
-0x2A,0xB0,0x03,0x3C,
-0xB0,0x03,0x96,0x34,
-0x80,0xD5,0x57,0x24,
-0x2C,0x00,0x73,0x34,
-0x30,0x1F,0xD1,0x27,
-0x02,0x80,0x15,0x3C,
-0xD1,0x07,0x00,0x08,
-0x02,0x80,0x14,0x3C,
-0x54,0xF3,0x90,0xAE,
-0x02,0x80,0x04,0x3C,
-0x03,0x00,0xC3,0x90,
-0x7C,0xD5,0x82,0x90,
-0x7F,0x00,0x63,0x30,
-0xFF,0x00,0x42,0x30,
-0x6B,0x00,0x62,0x10,
-0x08,0x00,0x10,0x26,
-0x02,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x37,0x00,0x42,0x28,
-0x5E,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0xC5,0x90,
-0x03,0x00,0xC3,0x90,
-0xFF,0x00,0xA5,0x30,
-0x7F,0x00,0x63,0x30,
-0x7C,0xD5,0x83,0xA0,
-0x02,0x00,0xC2,0x90,
-0x0E,0x00,0xA5,0x38,
-0x0A,0x80,0xE5,0x00,
-0xFF,0x00,0x42,0x30,
-0xC0,0x10,0x02,0x00,
-0x21,0x10,0x57,0x00,
-0x04,0x00,0x43,0x8C,
-0x02,0x80,0x04,0x3C,
-0x8C,0xD7,0x84,0x24,
-0x4C,0xF3,0xA3,0xAE,
-0x02,0x00,0xC5,0x90,
-0x2F,0x55,0x00,0x0C,
-0xFF,0x00,0xA5,0x30,
-0x4C,0xF3,0xA2,0x8E,
-0x00,0x00,0x00,0x00,
-0x09,0xF8,0x40,0x00,
-0x21,0x20,0x00,0x02,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0x03,0x24,
-0x01,0x00,0x62,0xA2,
-0x01,0x00,0x63,0xA2,
-0x2B,0x00,0x40,0x12,
-0x00,0x00,0x00,0x00,
-0xB8,0x36,0x22,0x92,
-0x20,0x10,0x03,0x3C,
-0x88,0x37,0x25,0x8E,
-0x00,0x12,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x21,0x30,0x40,0x00,
-0x0A,0x00,0x04,0x24,
-0x00,0x01,0x07,0x24,
-0x1C,0x37,0x22,0xAE,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x88,0x37,0x30,0x8E,
-0xB0,0x01,0x00,0x0C,
-0x0A,0x00,0x04,0x24,
-0xFF,0xFF,0x10,0x32,
-0x02,0x80,0x02,0x3C,
-0x25,0x80,0x02,0x02,
-0x0C,0x00,0x04,0x92,
-0xFF,0x00,0x02,0x24,
-0x21,0x38,0x00,0x02,
-0xFF,0x00,0x83,0x30,
-0x20,0x00,0x10,0x26,
-0x04,0x00,0x62,0x10,
-0x21,0x90,0x00,0x00,
-0xB8,0x36,0x24,0xA2,
-0x01,0x00,0x12,0x24,
-0x00,0x00,0xC3,0xAE,
-0x04,0x00,0xE2,0x8C,
-0x13,0x00,0x03,0x24,
-0x02,0x12,0x02,0x00,
-0x1F,0x00,0x45,0x30,
-0xB6,0xFF,0xA3,0x10,
-0x21,0x30,0x00,0x02,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x38,0xD7,0x84,0x24,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0x03,0x24,
-0x01,0x00,0x62,0xA2,
-0x01,0x00,0x63,0xA2,
-0xD7,0xFF,0x40,0x16,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA2,0x8C,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x00,0x04,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x41,0xB0,0x04,0x3C,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA2,0xAC,
-0x02,0x00,0xC5,0x90,
-0x02,0x80,0x04,0x3C,
-0x78,0xD7,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0xFF,0x00,0xA5,0x30,
-0xEB,0x07,0x00,0x08,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0xC5,0x90,
-0x02,0x00,0xC6,0x90,
-0x7C,0xD5,0x87,0x90,
-0x02,0x80,0x04,0x3C,
-0x48,0xD7,0x84,0x24,
-0xFF,0x00,0xA5,0x30,
-0xFF,0x00,0xC6,0x30,
-0x2F,0x55,0x00,0x0C,
-0xFF,0x00,0xE7,0x30,
-0xC1,0x07,0x00,0x08,
-0x01,0x00,0x02,0x24,
-0xC8,0xFF,0xBD,0x27,
-0xFF,0xFF,0xA8,0x30,
-0x02,0x80,0x02,0x3C,
-0x25,0x40,0x02,0x01,
-0x30,0x00,0xB6,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x00,0x00,0x03,0x8D,
-0xFF,0xFF,0xD2,0x30,
-0x21,0xB0,0xA0,0x00,
-0x00,0xC0,0x02,0x24,
-0x08,0x00,0x45,0x26,
-0x04,0x00,0x06,0x8D,
-0x24,0x18,0x62,0x00,
-0xFF,0x3F,0xA5,0x30,
-0xF0,0xFF,0x02,0x3C,
-0x25,0x18,0x65,0x00,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x00,0x80,0x05,0x3C,
-0x25,0x18,0x65,0x00,
-0xFF,0x01,0xC6,0x34,
-0x00,0x00,0x03,0xAD,
-0x04,0x00,0x06,0xAD,
-0x21,0x48,0x80,0x00,
-0xFF,0xFF,0xE7,0x30,
-0x18,0x00,0x12,0xA5,
-0x1A,0x00,0x07,0xA1,
-0x18,0x00,0x03,0x8D,
-0xFF,0x7F,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x02,0x80,0x15,0x3C,
-0x18,0x00,0x03,0xAD,
-0x30,0x1F,0xA5,0x26,
-0x7A,0x36,0xA3,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x62,0x24,
-0x7A,0x36,0xA2,0xA0,
-0x18,0x00,0x04,0x8D,
-0xFF,0x80,0x02,0x3C,
-0x20,0x00,0x45,0x26,
-0xFF,0xFF,0x42,0x34,
-0x7F,0x00,0x63,0x30,
-0xFF,0xFF,0xB2,0x30,
-0x24,0x20,0x82,0x00,
-0x00,0x1E,0x03,0x00,
-0x25,0xB0,0x02,0x3C,
-0xC0,0x00,0x42,0x34,
-0x25,0x20,0x83,0x00,
-0x07,0x00,0x45,0x32,
-0x18,0x00,0x04,0xAD,
-0x00,0x00,0x52,0xA4,
-0x03,0x00,0xA0,0x10,
-0xFF,0xFF,0x42,0x32,
-0x08,0x00,0x42,0x26,
-0xFF,0xFF,0x42,0x30,
-0x30,0x1F,0xB4,0x26,
-0xF8,0x37,0x86,0x8E,
-0xFC,0x37,0x90,0x8E,
-0xF8,0xFF,0x52,0x30,
-0x21,0x10,0xD2,0x00,
-0x2B,0x10,0x02,0x02,
-0x31,0x00,0x40,0x10,
-0xFF,0x00,0x33,0x31,
-0x23,0x80,0x06,0x02,
-0x21,0x28,0xC0,0x02,
-0xFF,0xFF,0x07,0x32,
-0x01,0x00,0x11,0x24,
-0x21,0x20,0x60,0x02,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB1,0xAF,
-0x23,0x18,0x50,0x02,
-0xFF,0xFF,0x72,0x30,
-0x22,0x10,0x02,0x3C,
-0x21,0x10,0x42,0x02,
-0x21,0x20,0x60,0x02,
-0xB0,0x01,0x00,0x0C,
-0xF8,0x37,0x82,0xAE,
-0x21,0x28,0xD0,0x02,
-0x21,0x38,0x40,0x02,
-0x21,0x20,0x60,0x02,
-0x10,0x00,0xB1,0xAF,
-0x22,0x10,0x06,0x3C,
-0x73,0x01,0x00,0x0C,
-0x30,0x1F,0xB1,0x26,
-0xF8,0x37,0x23,0x8E,
-0x25,0xB0,0x10,0x3C,
-0xB0,0x03,0x02,0x36,
-0x21,0x20,0x60,0x02,
-0x00,0x00,0x43,0xAC,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF8,0x37,0x25,0x8E,
-0xEC,0x00,0x02,0x36,
-0xBD,0x00,0x04,0x36,
-0x00,0x00,0x45,0xAC,
-0x00,0x00,0x83,0x90,
-0xC2,0x00,0x10,0x36,
-0x34,0x00,0xBF,0x8F,
-0x10,0x00,0x63,0x34,
-0x00,0x00,0x83,0xA0,
-0x30,0x00,0xB6,0x8F,
-0x00,0x00,0x05,0xA6,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x21,0x28,0xC0,0x02,
-0x21,0x20,0x60,0x02,
-0x21,0x38,0x40,0x02,
-0x01,0x00,0x02,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0xF8,0x37,0x83,0x8E,
-0x30,0x1F,0xB1,0x26,
-0x25,0xB0,0x10,0x3C,
-0x21,0x18,0x72,0x00,
-0xF8,0x37,0x83,0xAE,
-0xF8,0x37,0x23,0x8E,
-0xB0,0x03,0x02,0x36,
-0x21,0x20,0x60,0x02,
-0x00,0x00,0x43,0xAC,
-0xB0,0x01,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF8,0x37,0x25,0x8E,
-0xEC,0x00,0x02,0x36,
-0xBD,0x00,0x04,0x36,
-0x00,0x00,0x45,0xAC,
-0x00,0x00,0x83,0x90,
-0xC2,0x00,0x10,0x36,
-0x34,0x00,0xBF,0x8F,
-0x10,0x00,0x63,0x34,
-0x00,0x00,0x83,0xA0,
-0x30,0x00,0xB6,0x8F,
-0x00,0x00,0x05,0xA6,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x18,0x00,0xB0,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x21,0x80,0x80,0x00,
-0x00,0x60,0x14,0x40,
-0x01,0x00,0x81,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x14,0x00,0x83,0x8C,
-0x02,0x80,0x15,0x3C,
-0x16,0x00,0x02,0x24,
-0x30,0x1F,0xB3,0x26,
-0x21,0x28,0x00,0x00,
-0x1D,0x00,0x62,0x10,
-0x08,0x00,0x06,0x24,
-0x08,0x00,0x82,0x94,
-0x02,0x80,0x04,0x3C,
-0x08,0x52,0x00,0x0C,
-0x25,0x20,0x44,0x00,
-0x08,0x00,0x05,0x8E,
-0x0C,0x00,0x06,0x96,
-0x14,0x00,0x07,0x96,
-0x19,0x08,0x00,0x0C,
-0x09,0x00,0x04,0x24,
-0x04,0x00,0x02,0x8E,
-0x00,0x00,0x03,0x8E,
-0x21,0x20,0x00,0x02,
-0x00,0x00,0x43,0xAC,
-0x04,0x00,0x62,0xAC,
-0x00,0x00,0x10,0xAE,
-0x3D,0x24,0x00,0x0C,
-0x04,0x00,0x10,0xAE,
-0x00,0x60,0x94,0x40,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0xF8,0x37,0x68,0x8E,
-0x0C,0x00,0x11,0x8E,
-0xFC,0x37,0x62,0x8E,
-0x25,0xB0,0x03,0x3C,
-0x21,0x28,0x11,0x01,
-0xC0,0x00,0x63,0x34,
-0x23,0x90,0x48,0x00,
-0x2B,0x10,0x45,0x00,
-0x01,0x00,0x16,0x24,
-0x09,0x00,0x04,0x24,
-0xFF,0xFF,0x27,0x32,
-0x21,0x30,0x00,0x01,
-0x00,0x00,0x71,0xA4,
-0x33,0x00,0x40,0x10,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0x05,0x8E,
-0xFF,0xFF,0x47,0x32,
-0x23,0x88,0x32,0x02,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB6,0xAF,
-0x22,0x10,0x03,0x3C,
-0x21,0x18,0x23,0x02,
-0x09,0x00,0x04,0x24,
-0xB0,0x01,0x00,0x0C,
-0xF8,0x37,0x63,0xAE,
-0x08,0x00,0x05,0x8E,
-0xFF,0xFF,0x27,0x32,
-0x09,0x00,0x04,0x24,
-0x21,0x28,0xB2,0x00,
-0x22,0x10,0x06,0x3C,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB6,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x09,0x00,0x04,0x24,
-0x30,0x1F,0xA2,0x26,
-0xF8,0x37,0x46,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xEC,0x00,0x64,0x34,
-0x00,0x00,0x86,0xAC,
-0xBD,0x00,0x65,0x34,
-0x00,0x00,0xA2,0x90,
-0xC2,0x00,0x63,0x34,
-0x21,0x20,0x00,0x02,
-0x10,0x00,0x42,0x34,
-0x00,0x00,0xA2,0xA0,
-0x00,0x00,0x66,0xA4,
-0x04,0x00,0x02,0x8E,
-0x00,0x00,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x43,0xAC,
-0x04,0x00,0x62,0xAC,
-0x00,0x00,0x10,0xAE,
-0x3D,0x24,0x00,0x0C,
-0x04,0x00,0x10,0xAE,
-0x00,0x60,0x94,0x40,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x08,0x00,0x05,0x8E,
-0x21,0x30,0x00,0x01,
-0x09,0x00,0x04,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0xF8,0x37,0x63,0x8E,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x71,0x00,
-0x05,0x09,0x00,0x08,
-0xF8,0x37,0x63,0xAE,
-0xE8,0xFF,0xBD,0x27,
-0x14,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x28,0x80,0x00,
-0x00,0x60,0x10,0x40,
-0x01,0x00,0x01,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0xB0,0x02,0x3C,
-0xBF,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x63,0x2C,
-0x05,0x00,0x60,0x10,
-0x02,0x80,0x06,0x3C,
-0x6C,0x57,0xC3,0x8C,
-0x6C,0x57,0xC2,0x24,
-0x0C,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x6C,0x57,0xC2,0x24,
-0x04,0x00,0x43,0x8C,
-0x00,0x00,0xA2,0xAC,
-0x04,0x00,0x45,0xAC,
-0x00,0x00,0x65,0xAC,
-0x04,0x00,0xA3,0xAC,
-0x00,0x60,0x90,0x40,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xB4,0x08,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x90,0x40,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x04,0x3C,
-0x98,0xD7,0x84,0x24,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x2F,0x55,0x00,0x0C,
-0x14,0x00,0xB1,0xAF,
-0x00,0x00,0x04,0x96,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0x83,0x24,
-0x07,0x00,0x62,0x30,
-0x49,0x00,0x40,0x10,
-0xC2,0x10,0x03,0x00,
-0x28,0x00,0x82,0x24,
-0xC2,0x10,0x02,0x00,
-0x25,0x24,0x00,0x0C,
-0xC0,0x20,0x02,0x00,
-0x47,0x00,0x40,0x10,
-0x21,0x88,0x40,0x00,
-0x02,0x80,0x12,0x3C,
-0x30,0x1F,0x50,0x26,
-0x1C,0x37,0x05,0x8E,
-0x0A,0x00,0x04,0x24,
-0x28,0x00,0x06,0x24,
-0xC7,0x01,0x00,0x0C,
-0x21,0x38,0x40,0x00,
-0xB0,0x1B,0x03,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x62,0x30,
-0x47,0x00,0x40,0x14,
-0x01,0x00,0x62,0x30,
-0x02,0x80,0x02,0x3C,
-0xEA,0x5D,0x48,0x90,
-0x25,0xB0,0x04,0x3C,
-0x2F,0x00,0x02,0x3C,
-0xD0,0x01,0x85,0x34,
-0x17,0x32,0x42,0x34,
-0x00,0x00,0xA2,0xAC,
-0x5E,0x00,0x03,0x3C,
-0x10,0x00,0x02,0x3C,
-0xDC,0x01,0x87,0x34,
-0xD4,0x01,0x86,0x34,
-0x17,0x43,0x63,0x34,
-0x20,0x53,0x42,0x34,
-0xD8,0x01,0x84,0x34,
-0x00,0x00,0xC3,0xAC,
-0x30,0x1F,0x49,0x26,
-0x00,0x00,0x82,0xAC,
-0x44,0xA4,0x03,0x34,
-0x01,0x00,0x02,0x24,
-0x00,0x00,0xE3,0xAC,
-0xEC,0x38,0x20,0xAD,
-0x08,0x39,0x20,0xAD,
-0x50,0x3E,0x20,0xAD,
-0x10,0x3E,0x20,0xAD,
-0x51,0x00,0x02,0x11,
-0x1A,0x3E,0x20,0xA1,
-0x10,0x23,0x22,0x8D,
-0xFF,0xF7,0x03,0x24,
-0xFF,0xEF,0x04,0x24,
-0x24,0x10,0x43,0x00,
-0x24,0x10,0x44,0x00,
-0x10,0x23,0x22,0xAD,
-0xB0,0x01,0x00,0x0C,
-0x0A,0x00,0x04,0x24,
-0x08,0x00,0x22,0x96,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x04,0x3C,
-0x25,0x28,0x45,0x00,
-0xDC,0x01,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0x84,0x58,0x84,0x24,
-0x3D,0x24,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x30,0x1F,0x43,0x26,
-0x9C,0x39,0x62,0x8C,
-0xD1,0x11,0x00,0x0C,
-0x30,0x3B,0x62,0xA0,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x25,0x24,0x00,0x0C,
-0xC0,0x20,0x02,0x00,
-0xBB,0xFF,0x40,0x14,
-0x21,0x88,0x40,0x00,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0xA8,0xD7,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x1C,0xEA,0xA5,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x32,0x00,0x40,0x14,
-0x02,0x80,0x04,0x3C,
-0xA3,0x51,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xB0,0x1B,0x02,0x96,
-0x25,0xB0,0x03,0x3C,
-0x4C,0x00,0x63,0x34,
-0xFF,0xFE,0x42,0x30,
-0xB0,0x1B,0x02,0xA6,
-0x00,0x00,0x60,0xA0,
-0x02,0x80,0x02,0x3C,
-0xEA,0x5D,0x48,0x90,
-0x25,0xB0,0x04,0x3C,
-0x2F,0x00,0x02,0x3C,
-0xD0,0x01,0x85,0x34,
-0x17,0x32,0x42,0x34,
-0x00,0x00,0xA2,0xAC,
-0x5E,0x00,0x03,0x3C,
-0x10,0x00,0x02,0x3C,
-0xDC,0x01,0x87,0x34,
-0xD4,0x01,0x86,0x34,
-0x17,0x43,0x63,0x34,
-0x20,0x53,0x42,0x34,
-0xD8,0x01,0x84,0x34,
-0x00,0x00,0xC3,0xAC,
-0x30,0x1F,0x49,0x26,
-0x00,0x00,0x82,0xAC,
-0x44,0xA4,0x03,0x34,
-0x01,0x00,0x02,0x24,
-0x00,0x00,0xE3,0xAC,
-0xEC,0x38,0x20,0xAD,
-0x08,0x39,0x20,0xAD,
-0x50,0x3E,0x20,0xAD,
-0x10,0x3E,0x20,0xAD,
-0xB1,0xFF,0x02,0x15,
-0x1A,0x3E,0x20,0xA1,
-0x02,0x80,0x02,0x3C,
-0xEB,0x5D,0x44,0x90,
-0x02,0x00,0x03,0x24,
-0x06,0x00,0x83,0x10,
-0xFF,0xF7,0x03,0x24,
-0x10,0x23,0x22,0x8D,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x43,0x00,
-0x95,0x09,0x00,0x08,
-0x00,0x10,0x42,0x34,
-0x10,0x23,0x22,0x8D,
-0xFF,0xEF,0x03,0x24,
-0x00,0x08,0x42,0x34,
-0x95,0x09,0x00,0x08,
-0x24,0x10,0x43,0x00,
-0x88,0x58,0x84,0x24,
-0x6C,0x4C,0x00,0x0C,
-0x03,0x00,0x05,0x24,
-0xBE,0x09,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x02,0x80,0x12,0x3C,
-0x1C,0x00,0xB3,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x43,0x26,
-0xB0,0x1B,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x10,0x42,0x30,
-0x76,0x00,0x40,0x14,
-0x21,0x98,0x80,0x00,
-0x00,0x60,0x10,0x40,
-0x01,0x00,0x01,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x14,0x3C,
-0xF6,0x5E,0x82,0x92,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x74,0x00,0x40,0x14,
-0x04,0x00,0x04,0x24,
-0x00,0x60,0x90,0x40,
-0x30,0x1F,0x42,0x8E,
-0xFF,0xF0,0x03,0x24,
-0x0F,0xFF,0x04,0x24,
-0x24,0x10,0x43,0x00,
-0x24,0x10,0x44,0x00,
-0x25,0xB0,0x05,0x3C,
-0xF0,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x64,0x03,0xA4,0x34,
-0x17,0x00,0x03,0x24,
-0x00,0x00,0x80,0xA0,
-0x50,0x0C,0xA3,0xA0,
-0x30,0x1F,0x42,0xAE,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x25,0xB0,0x02,0x3C,
-0x17,0x00,0x03,0x24,
-0x58,0x0C,0x43,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x51,0x26,
-0xB0,0x1B,0x22,0x96,
-0x02,0x80,0x04,0x3C,
-0xB4,0xD7,0x84,0x24,
-0x00,0x10,0x42,0x34,
-0x2F,0x55,0x00,0x0C,
-0xB0,0x1B,0x22,0xA6,
-0x01,0x00,0x02,0x24,
-0x25,0xB0,0x03,0x3C,
-0x6C,0x3B,0x22,0xAE,
-0x4C,0x00,0x63,0x34,
-0x08,0x00,0x66,0x8E,
-0x00,0x00,0x67,0x90,
-0xB0,0x1B,0x22,0x96,
-0x30,0x3B,0x28,0x92,
-0x31,0x3B,0x29,0x92,
-0x8F,0x3E,0x2A,0x92,
-0x38,0x3B,0x2B,0x92,
-0x67,0x3B,0x2C,0x92,
-0x74,0x3B,0x26,0xAE,
-0x00,0x80,0x42,0x30,
-0xA1,0x3B,0x27,0xA2,
-0x21,0x20,0x00,0x00,
-0x00,0x00,0x60,0xA0,
-0x21,0x28,0x00,0x00,
-0x99,0x3B,0x28,0xA2,
-0x9A,0x3B,0x29,0xA2,
-0x9E,0x3B,0x22,0xA6,
-0xA0,0x3B,0x2A,0xA2,
-0x30,0x3B,0x2B,0xA2,
-0x31,0x3B,0x2C,0xA2,
-0xA4,0x3B,0x20,0xAE,
-0xA8,0x3B,0x20,0xAE,
-0x9C,0x3B,0x20,0xA2,
-0x12,0x0D,0x00,0x0C,
-0x9B,0x3B,0x20,0xA2,
-0x08,0x00,0x66,0x8E,
-0x00,0x00,0x00,0x00,
-0x33,0x00,0xC0,0x14,
-0x0C,0x00,0x70,0x26,
-0x00,0x00,0x62,0x8E,
-0x21,0x20,0x20,0x02,
-0xAC,0x3B,0x23,0x26,
-0x70,0x3B,0x22,0xAE,
-0x3F,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0x00,0x00,0x60,0xA0,
-0xFD,0xFF,0x41,0x04,
-0x07,0x00,0x63,0x24,
-0xB0,0x1B,0x83,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x62,0x30,
-0x09,0x00,0x40,0x10,
-0x30,0x1F,0x50,0x26,
-0x01,0x00,0x62,0x30,
-0x06,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x82,0x92,
-0x0C,0x00,0x03,0x24,
-0x0F,0x00,0x42,0x30,
-0x2C,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x30,0x3B,0x04,0x92,
-0x4F,0x0C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x04,0x3C,
-0x48,0x00,0x84,0x34,
-0x00,0x00,0x83,0x8C,
-0x70,0x3B,0x05,0x8E,
-0x7B,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x01,0x00,0x02,0x24,
-0x00,0x00,0x83,0xAC,
-0x19,0x00,0xA2,0x10,
-0x3C,0x00,0x02,0x24,
-0x98,0x38,0x02,0xAE,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x0F,0x0A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x21,0x28,0x00,0x02,
-0x10,0x52,0x00,0x0C,
-0xA8,0x5A,0x84,0x24,
-0x02,0x80,0x04,0x3C,
-0xC4,0xD7,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x21,0x28,0x00,0x02,
-0x54,0x0A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x13,0x0F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x3C,0x00,0x02,0x24,
-0x79,0x0A,0x00,0x08,
-0x98,0x38,0x02,0xAE,
-0xCD,0x4E,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x6A,0x0A,0x00,0x08,
-0x30,0x1F,0x50,0x26,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x21,0x80,0x80,0x00,
-0x00,0x00,0x02,0x92,
-0x02,0x80,0x04,0x3C,
-0x21,0x28,0x40,0x00,
-0x03,0x00,0x42,0x2C,
-0x06,0x00,0x40,0x14,
-0xD0,0xD7,0x84,0x24,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x03,0x92,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x02,0x80,0x02,0x3C,
-0xA8,0x5C,0x43,0xAC,
-0x18,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xD0,0xFF,0xBD,0x27,
-0x18,0x03,0x42,0x34,
-0xC8,0x2A,0x63,0x24,
-0x24,0x00,0xB3,0xAF,
-0x28,0x00,0xBF,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x00,0x00,0x43,0xAC,
-0x02,0x80,0x04,0x3C,
-0xF4,0x5E,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x12,0x00,0x40,0x10,
-0x02,0x80,0x13,0x3C,
-0x02,0x80,0x02,0x3C,
-0x0D,0x5F,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x66,0x00,0x60,0x14,
-0x01,0x00,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x16,0x5F,0x44,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x01,0x00,0x05,0x24,
-0x64,0x31,0x00,0x0C,
-0xFF,0x00,0x84,0x30,
-0x02,0x80,0x02,0x3C,
-0x74,0x57,0x43,0x8C,
-0x74,0x57,0x42,0x24,
-0xA7,0x00,0x62,0x10,
-0x02,0x80,0x13,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x2A,0xB0,0x02,0x3C,
-0x36,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x30,0x1F,0x66,0x26,
-0x00,0x38,0xC5,0x8C,
-0xC0,0x18,0x03,0x00,
-0x23,0xB0,0x04,0x3C,
-0xF0,0x07,0x63,0x30,
-0xFF,0x1F,0x02,0x3C,
-0x21,0x18,0x64,0x00,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x62,0x00,
-0x23,0x88,0x85,0x00,
-0x00,0x04,0x22,0x26,
-0x2B,0x28,0x85,0x00,
-0xA4,0x37,0xC3,0x8C,
-0x0B,0x88,0x45,0x00,
-0xE1,0x01,0x22,0x2E,
-0xA0,0x37,0xC3,0xAC,
-0x04,0x38,0xC4,0xAC,
-0xAA,0x37,0xC0,0xA4,
-0x14,0x00,0x40,0x14,
-0xA9,0x37,0xC0,0xA0,
-0x20,0xFE,0x82,0x24,
-0x20,0x02,0x83,0x24,
-0x0A,0x18,0x45,0x00,
-0x23,0x10,0x02,0x3C,
-0xFF,0x03,0x42,0x34,
-0x2B,0x10,0x43,0x00,
-0x21,0x28,0x60,0x00,
-0x34,0x00,0x40,0x14,
-0x00,0x38,0xC3,0xAC,
-0x04,0x38,0xC2,0x8C,
-0x00,0x00,0x00,0x00,
-0x2B,0x18,0x45,0x00,
-0x23,0x88,0x45,0x00,
-0x03,0x00,0x60,0x10,
-0xE1,0x01,0x22,0x2E,
-0x00,0x04,0x31,0x26,
-0xE1,0x01,0x22,0x2E,
-0x0E,0x00,0x40,0x10,
-0x30,0x1F,0x70,0x26,
-0x30,0x1F,0x70,0x26,
-0x04,0x38,0x03,0x8E,
-0x00,0x38,0x04,0x8E,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x83,0x00,
-0x2E,0x00,0x40,0x14,
-0x2B,0x10,0x64,0x00,
-0x5A,0x00,0x40,0x14,
-0x25,0xB0,0x02,0x3C,
-0x80,0x00,0x03,0x24,
-0xD0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x30,0x1F,0x70,0x26,
-0x00,0x38,0x03,0x96,
-0x2A,0xB0,0x02,0x3C,
-0x35,0x00,0x42,0x34,
-0xC2,0x88,0x03,0x00,
-0x00,0x00,0x51,0xA0,
-0x5D,0x27,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xAA,0x37,0x03,0x96,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xD0,0x1B,0x02,0x8E,
-0x80,0x00,0x03,0x3C,
-0x41,0xB0,0x04,0x3C,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0x82,0xAC,
-0x28,0x00,0xBF,0x8F,
-0xD0,0x1B,0x02,0xAE,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x00,0xFC,0xA5,0x24,
-0xF6,0x0A,0x00,0x08,
-0x00,0x38,0xC5,0xAC,
-0x17,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x9F,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x0D,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xCF,0x0A,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0xA0,0x37,0x05,0x8E,
-0x21,0x30,0x80,0x00,
-0xFF,0xFF,0x27,0x32,
-0x09,0x00,0x04,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xA0,0x37,0x03,0x8E,
-0xAA,0x37,0x05,0x96,
-0x00,0x38,0x02,0x8E,
-0x21,0x18,0x71,0x00,
-0x21,0x28,0x25,0x02,
-0x21,0x10,0x51,0x00,
-0x09,0x00,0x04,0x24,
-0x00,0x38,0x02,0xAE,
-0xA0,0x37,0x03,0xAE,
-0xB0,0x01,0x00,0x0C,
-0xAA,0x37,0x05,0xA6,
-0x30,0x1F,0x70,0x26,
-0x00,0x38,0x03,0x96,
-0x2A,0xB0,0x02,0x3C,
-0x35,0x00,0x42,0x34,
-0xC2,0x88,0x03,0x00,
-0x00,0x00,0x51,0xA0,
-0x5D,0x27,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xAA,0x37,0x03,0x96,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xD0,0x1B,0x02,0x8E,
-0x80,0x00,0x03,0x3C,
-0x41,0xB0,0x04,0x3C,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0x82,0xAC,
-0x28,0x00,0xBF,0x8F,
-0xD0,0x1B,0x02,0xAE,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x08,0x38,0x02,0x8E,
-0xA0,0x37,0x05,0x8E,
-0x21,0x30,0x80,0x00,
-0x23,0x88,0x44,0x00,
-0xFF,0xFF,0x27,0x32,
-0x09,0x00,0x04,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xA0,0x37,0x03,0x8E,
-0xAA,0x37,0x02,0x96,
-0x04,0x38,0x12,0x96,
-0x21,0x18,0x71,0x00,
-0x21,0x10,0x22,0x02,
-0x23,0x10,0x11,0x3C,
-0xA0,0x37,0x03,0xAE,
-0xAA,0x37,0x02,0xA6,
-0x15,0x00,0x40,0x16,
-0x00,0x38,0x11,0xAE,
-0x09,0x00,0x04,0x24,
-0xB0,0x01,0x00,0x0C,
-0x30,0x1F,0x70,0x26,
-0x46,0x0B,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x17,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x57,0xFF,0x40,0x10,
-0x30,0x1F,0x63,0x26,
-0x2A,0x1C,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x53,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x50,0x39,0x64,0x94,
-0x2A,0x1C,0x60,0xA0,
-0x00,0xC0,0x84,0x24,
-0xC2,0x34,0x00,0x0C,
-0xFF,0xFF,0x84,0x30,
-0xD3,0x0A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xB0,0x01,0x00,0x0C,
-0x09,0x00,0x04,0x24,
-0xA0,0x37,0x05,0x8E,
-0x09,0x00,0x04,0x24,
-0x23,0x10,0x06,0x3C,
-0x21,0x38,0x40,0x02,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xA0,0x37,0x03,0x8E,
-0xAA,0x37,0x02,0x96,
-0x21,0x20,0x51,0x02,
-0x21,0x18,0x72,0x00,
-0x21,0x10,0x42,0x02,
-0x00,0x38,0x04,0xAE,
-0x09,0x00,0x04,0x24,
-0xA0,0x37,0x03,0xAE,
-0x75,0x0B,0x00,0x08,
-0xAA,0x37,0x02,0xA6,
-0xFF,0x00,0x86,0x30,
-0x02,0x80,0x02,0x3C,
-0x40,0x00,0xC3,0x2C,
-0x4A,0xF3,0x47,0x90,
-0x00,0x00,0x63,0x38,
-0x3F,0x00,0x02,0x24,
-0x0A,0x30,0x43,0x00,
-0x01,0x00,0x02,0x24,
-0x08,0x0E,0x04,0x24,
-0x00,0x7F,0x05,0x24,
-0x03,0x00,0xE2,0x10,
-0x31,0x00,0xC3,0x2C,
-0xA9,0x45,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x30,0x00,0x02,0x24,
-0xA9,0x45,0x00,0x08,
-0x0A,0x30,0x43,0x00,
-0xC0,0xFF,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x38,0x00,0xB4,0xAF,
-0x34,0x00,0xB3,0xAF,
-0x30,0x00,0xB2,0xAF,
-0x2C,0x00,0xB1,0xAF,
-0x28,0x00,0xB0,0xAF,
-0x28,0xEA,0x62,0x24,
-0x3C,0x00,0xBF,0xAF,
-0x0A,0x00,0x4A,0x94,
-0x02,0x00,0x48,0x94,
-0x06,0x00,0x49,0x94,
-0xFF,0x00,0x84,0x30,
-0xFF,0x00,0xA5,0x30,
-0x28,0xEA,0x6B,0x94,
-0x04,0x00,0x4C,0x94,
-0x08,0x00,0x4D,0x94,
-0x00,0x1C,0x05,0x00,
-0x00,0x14,0x04,0x00,
-0x00,0x3E,0x05,0x00,
-0x00,0x36,0x04,0x00,
-0x25,0x38,0xE3,0x00,
-0x25,0x30,0xC2,0x00,
-0x00,0x44,0x08,0x00,
-0x00,0x12,0x05,0x00,
-0x00,0x4C,0x09,0x00,
-0x00,0x54,0x0A,0x00,
-0x00,0x1A,0x04,0x00,
-0x25,0x38,0xE2,0x00,
-0x25,0x40,0x0B,0x01,
-0x25,0x48,0x2C,0x01,
-0x25,0x50,0x4D,0x01,
-0x25,0x30,0xC3,0x00,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xA8,0xAF,
-0x14,0x00,0xA9,0xAF,
-0x18,0x00,0xAA,0xAF,
-0x25,0x98,0xE5,0x00,
-0x25,0x90,0xC4,0x00,
-0x30,0x1F,0x54,0x24,
-0x21,0x80,0x00,0x00,
-0x10,0x00,0xB1,0x27,
-0x02,0x00,0x02,0x2E,
-0x32,0x00,0x40,0x10,
-0x80,0x10,0x10,0x00,
-0x21,0x10,0x54,0x00,
-0xF0,0x1C,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x21,0x40,0x73,0x00,
-0x21,0x38,0x00,0x00,
-0x7F,0x00,0x09,0x24,
-0xC0,0x20,0x07,0x00,
-0x04,0x10,0x89,0x00,
-0x24,0x10,0x48,0x00,
-0x06,0x10,0x82,0x00,
-0x01,0x00,0xE5,0x24,
-0xFF,0x00,0x43,0x30,
-0x21,0x30,0x27,0x02,
-0x40,0x00,0x63,0x2C,
-0xFF,0x00,0xA7,0x30,
-0x02,0x00,0x60,0x14,
-0x04,0x00,0xE4,0x2C,
-0x3F,0x00,0x02,0x24,
-0xF3,0xFF,0x80,0x14,
-0x10,0x00,0xC2,0xA0,
-0x23,0x00,0xA6,0x93,
-0x22,0x00,0xA2,0x93,
-0x21,0x00,0xA5,0x93,
-0x40,0x18,0x10,0x00,
-0x00,0x14,0x02,0x00,
-0x21,0x18,0x71,0x00,
-0x20,0x00,0xA7,0x93,
-0x00,0x36,0x06,0x00,
-0x25,0x30,0xC2,0x00,
-0x00,0x2A,0x05,0x00,
-0x00,0x00,0x64,0x94,
-0x25,0x30,0xC5,0x00,
-0x7F,0x7F,0x05,0x3C,
-0x25,0x30,0xC7,0x00,
-0xA9,0x45,0x00,0x0C,
-0x7F,0x7F,0xA5,0x34,
-0x01,0x00,0x02,0x26,
-0xFF,0x00,0x50,0x30,
-0x06,0x00,0x03,0x2E,
-0xD5,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xB4,0x8F,
-0x34,0x00,0xB3,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x40,0x00,0xBD,0x27,
-0x21,0x10,0x54,0x00,
-0xF0,0x1C,0x43,0x8C,
-0xDC,0x0B,0x00,0x08,
-0x21,0x40,0x72,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x02,0x80,0x09,0x3C,
-0x1C,0x00,0xB3,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x30,0x1F,0x27,0x25,
-0x02,0x80,0x02,0x3C,
-0xB0,0x1B,0xE3,0x94,
-0xDE,0x5D,0x46,0x90,
-0xFF,0x00,0x90,0x30,
-0x00,0x10,0x63,0x30,
-0x20,0x00,0xC5,0x30,
-0x21,0x20,0x07,0x02,
-0x10,0x00,0xC6,0x30,
-0x02,0x00,0x60,0x14,
-0x3F,0x00,0x13,0x24,
-0x63,0x1D,0x93,0x90,
-0x28,0x00,0xC0,0x10,
-0x30,0x1F,0x22,0x25,
-0x8D,0x1D,0x82,0x90,
-0x7F,0x1D,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x23,0x10,0x43,0x00,
-0x00,0x46,0x02,0x00,
-0x03,0x46,0x08,0x00,
-0xFF,0x00,0x71,0x30,
-0x30,0x1F,0x27,0x25,
-0x0F,0x00,0x08,0x31,
-0x21,0x30,0x00,0x01,
-0x21,0x40,0x07,0x02,
-0xB7,0x1D,0x02,0x91,
-0xB0,0x1B,0xE3,0x84,
-0x0F,0x00,0x05,0x3C,
-0x0F,0x00,0x42,0x30,
-0x21,0x10,0x51,0x00,
-0x0C,0x08,0x04,0x24,
-0x00,0xFF,0xA5,0x34,
-0x06,0x00,0x60,0x04,
-0xFF,0x00,0x52,0x30,
-0xC5,0x1D,0x02,0x91,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x21,0x10,0x51,0x00,
-0xFF,0x00,0x51,0x30,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x9A,0x0B,0x00,0x0C,
-0x21,0x20,0x60,0x02,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x40,0x02,
-0x21,0x30,0x00,0x02,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xAB,0x0B,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0xDF,0xFF,0xA0,0x10,
-0x21,0x18,0x02,0x02,
-0xA9,0x1D,0x62,0x90,
-0x9B,0x1D,0x63,0x90,
-0x26,0x0C,0x00,0x08,
-0x23,0x10,0x43,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x02,0x3C,
-0x18,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0xE9,0x5D,0x43,0x90,
-0x01,0x00,0x02,0x24,
-0x0D,0x00,0x62,0x10,
-0xFF,0x00,0x91,0x30,
-0x0D,0x0C,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x21,0x30,0x20,0x02,
-0x18,0x00,0x04,0x24,
-0x5F,0x47,0x00,0x0C,
-0xFF,0x03,0x05,0x24,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x0A,0x00,0x04,0x24,
-0x25,0x22,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x1A,0x00,0x23,0x12,
-0x0B,0x00,0x02,0x24,
-0x1D,0x00,0x22,0x12,
-0x0F,0x00,0x05,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x15,0x00,0x04,0x24,
-0xF4,0xF8,0x06,0x34,
-0x5F,0x47,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x48,0xF3,0x44,0x90,
-0xFE,0x00,0x03,0x24,
-0xE9,0xFF,0x83,0x14,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0x8A,0x47,0x00,0x0C,
-0x15,0x00,0x04,0x24,
-0xFF,0x00,0x46,0x30,
-0x00,0xFF,0x03,0x36,
-0x24,0x10,0x43,0x00,
-0x01,0x00,0xC6,0x24,
-0x25,0x30,0x46,0x00,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x15,0x00,0x04,0x24,
-0x5B,0x0C,0x00,0x08,
-0x21,0x30,0x20,0x02,
-0x0F,0x00,0x05,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x15,0x00,0x04,0x24,
-0x6B,0x0C,0x00,0x08,
-0xF4,0xA8,0x06,0x34,
-0xFF,0xFF,0xA5,0x34,
-0x15,0x00,0x04,0x24,
-0x6B,0x0C,0x00,0x08,
-0xF5,0xF8,0x06,0x34,
-0xFC,0x00,0x84,0x30,
-0x50,0x00,0x02,0x24,
-0x11,0x00,0x82,0x10,
-0x05,0x00,0x03,0x24,
-0x51,0x00,0x82,0x28,
-0x10,0x00,0x40,0x10,
-0xA0,0x00,0x02,0x24,
-0x20,0x00,0x02,0x24,
-0x0B,0x00,0x82,0x10,
-0x02,0x00,0x03,0x24,
-0x21,0x00,0x82,0x28,
-0x15,0x00,0x40,0x14,
-0x30,0x00,0x02,0x24,
-0x06,0x00,0x82,0x10,
-0x03,0x00,0x03,0x24,
-0x04,0x00,0x03,0x24,
-0x40,0x00,0x02,0x24,
-0x02,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0xFD,0xFF,0x82,0x10,
-0x08,0x00,0x03,0x24,
-0xA1,0x00,0x82,0x28,
-0x0C,0x00,0x40,0x10,
-0xC0,0x00,0x02,0x24,
-0x80,0x00,0x02,0x24,
-0xF7,0xFF,0x82,0x10,
-0x06,0x00,0x03,0x24,
-0x07,0x00,0x03,0x24,
-0x99,0x0C,0x00,0x08,
-0x90,0x00,0x02,0x24,
-0xF2,0xFF,0x80,0x10,
-0x21,0x18,0x00,0x00,
-0x01,0x00,0x03,0x24,
-0x99,0x0C,0x00,0x08,
-0x10,0x00,0x02,0x24,
-0xED,0xFF,0x82,0x10,
-0x0A,0x00,0x03,0x24,
-0xC1,0x00,0x82,0x28,
-0x04,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x09,0x00,0x03,0x24,
-0x99,0x0C,0x00,0x08,
-0xB0,0x00,0x02,0x24,
-0x0B,0x00,0x03,0x24,
-0x99,0x0C,0x00,0x08,
-0xD0,0x00,0x02,0x24,
-0xD8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x08,0x00,0x83,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0x90,0x94,
-0x02,0x80,0x02,0x3C,
-0x21,0x98,0x80,0x00,
-0x25,0x80,0x02,0x02,
-0x21,0x20,0x00,0x02,
-0xFF,0x00,0xB2,0x30,
-0xFF,0x00,0xD1,0x30,
-0x21,0x28,0x00,0x00,
-0x08,0x52,0x00,0x0C,
-0x08,0x00,0x06,0x24,
-0x08,0x00,0x04,0x8E,
-0x04,0x00,0x05,0x8E,
-0xFF,0xDF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xFF,0xE0,0x03,0x24,
-0x24,0x20,0x82,0x00,
-0x00,0x40,0x02,0x3C,
-0x10,0x00,0x06,0x8E,
-0x24,0x28,0xA3,0x00,
-0x25,0x20,0x82,0x00,
-0x3F,0xFF,0x02,0x3C,
-0x0C,0x00,0x67,0x8E,
-0x7F,0xFF,0x03,0x24,
-0xFF,0xFF,0x42,0x34,
-0x00,0x12,0xA5,0x34,
-0x01,0x00,0x52,0x32,
-0x03,0x00,0x31,0x32,
-0x24,0x20,0x83,0x00,
-0x24,0x28,0xA2,0x00,
-0xC0,0x91,0x12,0x00,
-0x80,0x8D,0x11,0x00,
-0x00,0x80,0x02,0x3C,
-0x25,0x30,0xC2,0x00,
-0x25,0x20,0x92,0x00,
-0x25,0x28,0xB1,0x00,
-0x20,0x00,0x02,0x24,
-0x10,0x00,0x06,0xAE,
-0x02,0x00,0x02,0xA2,
-0x08,0x00,0x04,0xAE,
-0x04,0x00,0x05,0xAE,
-0x00,0x00,0x07,0xA6,
-0x02,0x80,0x02,0x3C,
-0xE0,0x3A,0x43,0x94,
-0xFB,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xC2,0x1B,0x03,0x00,
-0x24,0x30,0xC2,0x00,
-0x80,0x1C,0x03,0x00,
-0x25,0x30,0xC3,0x00,
-0x14,0x00,0x05,0x8E,
-0x82,0x24,0x06,0x00,
-0x01,0x00,0x84,0x30,
-0x0C,0x00,0x02,0x24,
-0x0A,0x10,0x04,0x00,
-0xFF,0x81,0x03,0x24,
-0x24,0x28,0xA3,0x00,
-0x40,0x12,0x02,0x00,
-0x25,0x28,0xA2,0x00,
-0x14,0x00,0x05,0xAE,
-0x10,0x00,0x06,0xAE,
-0x00,0x60,0x03,0x40,
-0x01,0x00,0x61,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x02,0x3C,
-0x74,0x57,0x42,0x24,
-0x04,0x00,0x44,0x8C,
-0x00,0x00,0x62,0xAE,
-0x04,0x00,0x53,0xAC,
-0x00,0x00,0x93,0xAC,
-0x04,0x00,0x64,0xAE,
-0x00,0x60,0x83,0x40,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0xFF,0xFF,0x83,0x30,
-0xFF,0x00,0xB1,0x30,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x13,0x3C,
-0x30,0x1F,0x70,0x26,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x80,0x42,0x30,
-0x2F,0x00,0x43,0x10,
-0x02,0x80,0x04,0x3C,
-0x00,0x80,0x02,0x34,
-0x50,0xDF,0x84,0x24,
-0x33,0x00,0x62,0x10,
-0x21,0x30,0x20,0x02,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x30,0x3B,0x04,0x92,
-0x4F,0x0C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0x03,0x02,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x00,0x08,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0x04,0x00,0x42,0x30,
-0x00,0x00,0x62,0xA0,
-0x1B,0x47,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x09,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0x1B,0x47,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x84,0x08,0x04,0x24,
-0xFF,0xFF,0x05,0x24,
-0x1B,0x47,0x00,0x0C,
-0x58,0x00,0x06,0x24,
-0x00,0x0C,0x05,0x24,
-0x01,0x00,0x06,0x24,
-0x5F,0x47,0x00,0x0C,
-0x18,0x00,0x04,0x24,
-0xB0,0x1B,0x02,0x96,
-0x8F,0x3E,0x11,0xA2,
-0xFF,0x7F,0x42,0x30,
-0xB0,0x1B,0x02,0xA6,
-0x30,0x1F,0x62,0x26,
-0x30,0x3B,0x44,0x90,
-0x0D,0x0C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x92,0x40,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x00,0x60,0x92,0x40,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x30,0x3B,0x05,0x92,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x30,0xDF,0x84,0x24,
-0x01,0x00,0x02,0x24,
-0x2C,0x00,0x22,0x12,
-0x00,0x00,0x00,0x00,
-0x30,0x3B,0x04,0x92,
-0x00,0x00,0x00,0x00,
-0xFE,0xFF,0x84,0x24,
-0x4F,0x0C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x07,0x3C,
-0x03,0x02,0xE7,0x34,
-0x00,0x00,0xE2,0x90,
-0xFB,0xFF,0x03,0x24,
-0x00,0x08,0x04,0x24,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0xE2,0xA0,
-0x01,0x00,0x05,0x24,
-0x1B,0x47,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x03,0x00,0x30,0x32,
-0x00,0x09,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0x1B,0x47,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0A,0x04,0x24,
-0x10,0x00,0x05,0x24,
-0x1B,0x47,0x00,0x0C,
-0x42,0x30,0x10,0x00,
-0x21,0x30,0x00,0x02,
-0x00,0x0D,0x04,0x24,
-0x1B,0x47,0x00,0x0C,
-0x00,0x0C,0x05,0x24,
-0x84,0x08,0x04,0x24,
-0xFF,0xFF,0x05,0x24,
-0x1B,0x47,0x00,0x0C,
-0x18,0x00,0x06,0x24,
-0x18,0x00,0x04,0x24,
-0x00,0x0C,0x05,0x24,
-0x5F,0x47,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x30,0x1F,0x64,0x26,
-0xB0,0x1B,0x82,0x94,
-0x00,0x80,0x03,0x24,
-0x8F,0x3E,0x91,0xA0,
-0x25,0x10,0x43,0x00,
-0x47,0x0D,0x00,0x08,
-0xB0,0x1B,0x82,0xA4,
-0x30,0x3B,0x04,0x92,
-0x65,0x0D,0x00,0x08,
-0x02,0x00,0x84,0x24,
-0xC8,0xFF,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x34,0x00,0xBF,0xAF,
-0x30,0x00,0xB2,0xAF,
-0x2C,0x00,0xB1,0xAF,
-0x28,0x00,0xB0,0xAF,
-0x34,0xEA,0x62,0x24,
-0x01,0x00,0x44,0x90,
-0x05,0x00,0x45,0x90,
-0x09,0x00,0x46,0x90,
-0x0D,0x00,0x47,0x90,
-0x04,0x00,0x51,0x90,
-0x08,0x00,0x50,0x90,
-0x34,0xEA,0x72,0x90,
-0x02,0x00,0x4F,0x90,
-0x0C,0x00,0x43,0x90,
-0x06,0x00,0x4E,0x90,
-0x0A,0x00,0x4D,0x90,
-0x0E,0x00,0x48,0x90,
-0x03,0x00,0x49,0x90,
-0x07,0x00,0x4A,0x90,
-0x0B,0x00,0x4B,0x90,
-0x0F,0x00,0x4C,0x90,
-0x00,0x22,0x04,0x00,
-0x00,0x2A,0x05,0x00,
-0x00,0x32,0x06,0x00,
-0x00,0x3A,0x07,0x00,
-0x02,0x80,0x18,0x3C,
-0x25,0x28,0xB1,0x00,
-0x25,0x30,0xD0,0x00,
-0x25,0x38,0xE3,0x00,
-0x25,0x20,0x92,0x00,
-0x11,0x00,0x51,0x90,
-0x10,0x00,0x50,0x90,
-0x30,0x1F,0x03,0x27,
-0x00,0x7C,0x0F,0x00,
-0x00,0x74,0x0E,0x00,
-0x00,0x6C,0x0D,0x00,
-0x00,0x44,0x08,0x00,
-0x25,0x78,0xE4,0x01,
-0x25,0x70,0xC5,0x01,
-0x25,0x68,0xA6,0x01,
-0x25,0x40,0x07,0x01,
-0x5A,0x3E,0x66,0x90,
-0x00,0x4E,0x09,0x00,
-0x00,0x56,0x0A,0x00,
-0x00,0x5E,0x0B,0x00,
-0x00,0x66,0x0C,0x00,
-0x25,0x48,0x2F,0x01,
-0x25,0x50,0x4E,0x01,
-0x25,0x58,0x6D,0x01,
-0x25,0x60,0x88,0x01,
-0x25,0xB0,0x05,0x3C,
-0x37,0x02,0xA5,0x34,
-0x10,0x00,0xA9,0xAF,
-0x14,0x00,0xAA,0xAF,
-0x18,0x00,0xAB,0xAF,
-0x1C,0x00,0xAC,0xAF,
-0x20,0x00,0xB0,0xA3,
-0x21,0x00,0xB1,0xA3,
-0x03,0x00,0xC7,0x30,
-0x00,0x00,0xA4,0x90,
-0x02,0x00,0xE2,0x24,
-0x01,0x00,0x03,0x24,
-0x04,0x18,0x43,0x00,
-0x1C,0x00,0xC6,0x30,
-0xF8,0xFF,0x02,0x24,
-0x24,0x20,0x82,0x00,
-0xFF,0x00,0x67,0x30,
-0x82,0x30,0x06,0x00,
-0x10,0x00,0xE3,0x2C,
-0x25,0x20,0x86,0x00,
-0x0F,0x00,0x02,0x24,
-0x00,0x00,0xA4,0xA0,
-0x0A,0x38,0x43,0x00,
-0x21,0x28,0x00,0x00,
-0x10,0x00,0xA3,0x27,
-0x21,0x30,0x65,0x00,
-0x00,0x00,0xC2,0x90,
-0x01,0x00,0xA5,0x24,
-0x2B,0x10,0xE2,0x00,
-0x02,0x00,0x40,0x10,
-0x11,0x00,0xA4,0x2C,
-0x00,0x00,0xC7,0xA0,
-0xF8,0xFF,0x80,0x14,
-0x21,0x30,0x60,0x00,
-0x21,0x28,0x00,0x00,
-0x25,0xB0,0x07,0x3C,
-0x01,0x00,0xC2,0x90,
-0x00,0x00,0xC3,0x90,
-0x21,0x20,0xA7,0x00,
-0x00,0x11,0x02,0x00,
-0x25,0x10,0x43,0x00,
-0x01,0x00,0xA5,0x24,
-0xFF,0x00,0x42,0x30,
-0x08,0x00,0xA3,0x2C,
-0xA8,0x01,0x82,0xA0,
-0xF6,0xFF,0x60,0x14,
-0x02,0x00,0xC6,0x24,
-0x21,0x00,0xA2,0x93,
-0x20,0x00,0xA4,0x93,
-0x02,0x80,0x03,0x3C,
-0x00,0x11,0x02,0x00,
-0xF1,0x5D,0x65,0x90,
-0x25,0x10,0x44,0x00,
-0xFF,0x00,0x42,0x30,
-0xA7,0x01,0xE3,0x34,
-0x00,0x00,0x62,0xA0,
-0x01,0x00,0x02,0x24,
-0x07,0x00,0xA2,0x10,
-0x30,0x1F,0x03,0x27,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x58,0x3E,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x30,
-0xF6,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x79,0x3E,0x63,0x90,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x62,0x30,
-0xF1,0xFF,0x40,0x10,
-0x03,0x00,0x63,0x30,
-0x0C,0x00,0x65,0x10,
-0x03,0x00,0x02,0x24,
-0x05,0x00,0x62,0x10,
-0x21,0x20,0x00,0x00,
-0x12,0x0D,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0xFF,0x0D,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x80,0x04,0x34,
-0x12,0x0D,0x00,0x0C,
-0x02,0x00,0x05,0x24,
-0xFF,0x0D,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x80,0x04,0x34,
-0x12,0x0D,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0xFF,0x0D,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x02,0x80,0x06,0x3C,
-0x14,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x88,0x58,0xC2,0x24,
-0x01,0x00,0x44,0x90,
-0x88,0x58,0xC3,0x90,
-0x02,0x00,0x45,0x90,
-0x03,0x00,0x46,0x90,
-0x05,0x00,0x47,0x90,
-0x04,0x00,0x48,0x90,
-0x00,0x22,0x04,0x00,
-0x25,0x18,0x64,0x00,
-0x00,0x2C,0x05,0x00,
-0x25,0xB0,0x10,0x3C,
-0x25,0x18,0x65,0x00,
-0x00,0x36,0x06,0x00,
-0x00,0x3A,0x07,0x00,
-0x25,0x18,0x66,0x00,
-0x58,0x00,0x02,0x36,
-0x5C,0x00,0x05,0x36,
-0x25,0x40,0x07,0x01,
-0x02,0x80,0x04,0x3C,
-0x00,0x00,0x43,0xAC,
-0x84,0x58,0x84,0x24,
-0x00,0x00,0xA8,0xAC,
-0x19,0x4F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x94,0x00,0x03,0x36,
-0x00,0x00,0x62,0xA4,
-0x48,0x00,0x10,0x36,
-0x00,0x00,0x02,0x8E,
-0x04,0x00,0x03,0x3C,
-0x14,0x00,0xBF,0x8F,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0x02,0xAE,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x21,0x90,0x80,0x00,
-0x18,0x02,0x04,0x24,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x25,0x24,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x04,0x3C,
-0x21,0x88,0x40,0x00,
-0x84,0x58,0xA5,0x24,
-0xDC,0x01,0x06,0x24,
-0x18,0x00,0x40,0x10,
-0x98,0xDF,0x84,0x24,
-0x08,0x00,0x50,0x94,
-0xF8,0x01,0x02,0x24,
-0x0C,0x00,0x22,0xAE,
-0x02,0x80,0x02,0x3C,
-0x0A,0x00,0x03,0x24,
-0x25,0x80,0x02,0x02,
-0x14,0x00,0x23,0xAE,
-0x3C,0x00,0x04,0x26,
-0x10,0x52,0x00,0x0C,
-0x20,0x00,0x10,0x26,
-0x18,0x00,0x12,0xAE,
-0x21,0x20,0x20,0x02,
-0x30,0x09,0x00,0x0C,
-0x14,0x00,0x12,0xAE,
-0x02,0x80,0x04,0x3C,
-0x21,0x28,0x40,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xA4,0xDF,0x84,0x24,
-0x2F,0x55,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x02,0x80,0x05,0x3C,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x5C,0xEA,0xA5,0x24,
-0x2F,0x55,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x14,0x00,0xB1,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x25,0x24,0x00,0x0C,
-0x28,0x00,0x04,0x24,
-0x02,0x80,0x04,0x3C,
-0x21,0x88,0x40,0x00,
-0x21,0x28,0x00,0x02,
-0x06,0x00,0x06,0x24,
-0x15,0x00,0x40,0x10,
-0xB4,0xDF,0x84,0x24,
-0x08,0x00,0x44,0x94,
-0x08,0x00,0x02,0x24,
-0x0C,0x00,0x22,0xAE,
-0x02,0x80,0x02,0x3C,
-0x0C,0x00,0x03,0x24,
-0x25,0x20,0x82,0x00,
-0x14,0x00,0x23,0xAE,
-0x10,0x52,0x00,0x0C,
-0x20,0x00,0x84,0x24,
-0x30,0x09,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xC0,0xDF,0x84,0x24,
-0x21,0x10,0x00,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x02,0x80,0x05,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x6C,0xEA,0xA5,0x24,
-0x92,0x0E,0x00,0x08,
-0xFF,0xFF,0x02,0x24,
-0xD8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB3,0xAF,
-0x21,0x98,0x80,0x00,
-0x2C,0x00,0x04,0x24,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x21,0x90,0xA0,0x00,
-0x20,0x00,0xBF,0xAF,
-0x25,0x24,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x21,0x88,0x40,0x00,
-0xD8,0xDF,0x84,0x24,
-0x21,0x30,0x40,0x02,
-0x19,0x00,0x40,0x10,
-0x84,0xEA,0xA5,0x24,
-0x05,0x00,0x65,0x92,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x30,0x96,
-0x02,0x80,0x02,0x3C,
-0x0B,0x00,0x03,0x24,
-0x25,0x80,0x02,0x02,
-0x20,0x00,0x10,0x26,
-0x0C,0x00,0x02,0x24,
-0x21,0x20,0x00,0x02,
-0x0C,0x00,0x22,0xAE,
-0x14,0x00,0x23,0xAE,
-0x21,0x28,0x60,0x02,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x08,0x00,0x12,0xAE,
-0x21,0x20,0x20,0x02,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x30,0x09,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xCC,0xDF,0x84,0x24,
-0x2F,0x55,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x02,0x3C,
-0xF6,0x5E,0x43,0x90,
-0x02,0x80,0x11,0x3C,
-0x04,0x00,0x04,0x24,
-0x0F,0x00,0x63,0x30,
-0x04,0x00,0x63,0x28,
-0x36,0x00,0x60,0x14,
-0x01,0x00,0x05,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x50,0x24,
-0x2C,0xE0,0x22,0x8E,
-0x0F,0x00,0x05,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x24,0x00,0x04,0x24,
-0x12,0x00,0x40,0x14,
-0x60,0x00,0x06,0x24,
-0x0F,0x00,0x05,0x3C,
-0x5F,0x47,0x00,0x0C,
-0xFF,0xFF,0xA5,0x34,
-0x01,0x00,0x02,0x24,
-0x2C,0xE0,0x22,0xAE,
-0xD0,0x07,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x70,0x58,0x43,0xAC,
-0x02,0x80,0x02,0x3C,
-0xF5,0x5E,0x44,0x90,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0xFF,0x00,0x84,0x30,
-0x64,0x31,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x8A,0x47,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x9C,0x3E,0x04,0x92,
-0xFF,0x00,0x43,0x30,
-0x00,0x2C,0x03,0x00,
-0x0A,0x00,0x64,0x10,
-0x9D,0x3E,0x02,0xA2,
-0x02,0x80,0x02,0x3C,
-0x49,0xF3,0x44,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x22,0x04,0x00,
-0x6B,0x1E,0x00,0x0C,
-0x25,0x20,0xA4,0x00,
-0x9D,0x3E,0x03,0x92,
-0x00,0x00,0x00,0x00,
-0x9C,0x3E,0x03,0xA2,
-0x10,0x27,0x02,0x24,
-0x40,0x39,0x02,0xAE,
-0x02,0x80,0x02,0x3C,
-0xF5,0x5E,0x44,0x90,
-0x2C,0xE0,0x20,0xAE,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0xFF,0x00,0x84,0x30,
-0x64,0x31,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x64,0x31,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xDB,0x0E,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0xB8,0xFF,0xBD,0x27,
-0x00,0x01,0x04,0x24,
-0x3C,0x00,0xB3,0xAF,
-0x38,0x00,0xB2,0xAF,
-0x34,0x00,0xB1,0xAF,
-0x40,0x00,0xBF,0xAF,
-0x30,0x00,0xB0,0xAF,
-0x25,0x24,0x00,0x0C,
-0x02,0x80,0x13,0x3C,
-0x02,0x80,0x04,0x3C,
-0x21,0x88,0x40,0x00,
-0xF0,0xDD,0x65,0x26,
-0x06,0x00,0x06,0x24,
-0x0C,0x00,0x52,0x24,
-0x4C,0x00,0x40,0x10,
-0x30,0xE0,0x84,0x24,
-0x08,0x00,0x50,0x94,
-0x02,0x80,0x02,0x3C,
-0x25,0x80,0x02,0x02,
-0x24,0x00,0x04,0x26,
-0x10,0x52,0x00,0x0C,
-0x20,0x00,0x00,0xA6,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x04,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x30,0x00,0x04,0x26,
-0xF0,0xDD,0x65,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0x03,0x96,
-0x18,0x00,0x02,0x24,
-0x02,0x80,0x04,0x3C,
-0x03,0xFF,0x63,0x30,
-0x40,0x00,0x63,0x34,
-0x20,0x00,0x03,0xA6,
-0x30,0x1F,0x84,0x24,
-0x0C,0x00,0x22,0xAE,
-0xF8,0x1D,0x82,0x94,
-0x20,0x00,0x06,0x26,
-0x02,0x80,0x07,0x3C,
-0xFF,0x0F,0x43,0x30,
-0x00,0x19,0x03,0x00,
-0x02,0x2A,0x03,0x00,
-0x01,0x00,0x42,0x24,
-0xF8,0x1D,0x82,0xA4,
-0x16,0x00,0xC3,0xA0,
-0x17,0x00,0xC5,0xA0,
-0x74,0x3B,0x86,0x8C,
-0xA8,0x5A,0xE7,0x24,
-0x38,0x00,0x04,0x26,
-0x21,0x28,0x00,0x00,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB2,0xAF,
-0x18,0x00,0xA4,0x27,
-0x28,0x00,0xA5,0x27,
-0x21,0x50,0x00,0x0C,
-0x21,0x80,0x40,0x00,
-0x28,0x00,0xA3,0x8F,
-0x21,0x20,0x00,0x02,
-0x18,0x00,0xA7,0x27,
-0x09,0x00,0x62,0x28,
-0x01,0x00,0x05,0x24,
-0x12,0x00,0x40,0x10,
-0x08,0x00,0x06,0x24,
-0x21,0x20,0x00,0x02,
-0x21,0x30,0x60,0x00,
-0x01,0x00,0x05,0x24,
-0x18,0x00,0xA7,0x27,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB2,0xAF,
-0x21,0x20,0x20,0x02,
-0x01,0x00,0x05,0x24,
-0xB9,0x0C,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x40,0x00,0xBF,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB2,0xAF,
-0x28,0x00,0xA6,0x8F,
-0x21,0x20,0x40,0x00,
-0x32,0x00,0x05,0x24,
-0xF8,0xFF,0xC6,0x24,
-0x59,0x0F,0x00,0x08,
-0x20,0x00,0xA7,0x27,
-0x02,0x80,0x05,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x9C,0xEA,0xA5,0x24,
-0x40,0x00,0xBF,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x30,0x00,0xBE,0xAF,
-0x2C,0x00,0xB7,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x21,0x80,0x80,0x00,
-0x45,0x00,0xA0,0x14,
-0x21,0x90,0x00,0x00,
-0x08,0x00,0x82,0x90,
-0x02,0x80,0x13,0x3C,
-0x30,0x1F,0x63,0x26,
-0x0F,0x00,0x42,0x30,
-0x14,0x3E,0x62,0xAC,
-0x25,0xB0,0x02,0x3C,
-0x0A,0x00,0x10,0x26,
-0xD0,0x01,0x57,0x34,
-0x02,0x80,0x14,0x3C,
-0xD8,0x01,0x5E,0x34,
-0xDC,0x01,0x55,0x34,
-0xD4,0x01,0x56,0x34,
-0x03,0x00,0x11,0x24,
-0x00,0x00,0x06,0x92,
-0x30,0x1F,0x62,0x26,
-0x0C,0x3E,0x47,0x90,
-0x0F,0x00,0xC3,0x30,
-0x01,0x00,0x05,0x92,
-0x18,0x00,0x67,0x00,
-0x03,0x00,0x04,0x92,
-0x02,0x00,0x02,0x92,
-0x0F,0x00,0xA7,0x30,
-0x00,0x3A,0x07,0x00,
-0x02,0x29,0x05,0x00,
-0x00,0x22,0x04,0x00,
-0x25,0x20,0x82,0x00,
-0x00,0x2B,0x05,0x00,
-0x42,0x11,0x06,0x00,
-0x00,0x24,0x04,0x00,
-0x03,0x00,0x49,0x30,
-0x02,0x31,0x06,0x00,
-0x01,0x00,0x02,0x24,
-0x01,0x00,0xC6,0x30,
-0x12,0x18,0x00,0x00,
-0x0A,0x00,0x63,0x24,
-0xFF,0x00,0x63,0x30,
-0x25,0x18,0x67,0x00,
-0x25,0x18,0x65,0x00,
-0x30,0x00,0x22,0x11,
-0x25,0x38,0x64,0x00,
-0x02,0x00,0x22,0x29,
-0x3E,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0x38,0x00,0x22,0x11,
-0x03,0x00,0x02,0x24,
-0x40,0x00,0x22,0x11,
-0x00,0x00,0x00,0x00,
-0x21,0x28,0x20,0x01,
-0x3C,0xE0,0x84,0x26,
-0x2F,0x55,0x00,0x0C,
-0xFF,0xFF,0x31,0x26,
-0xD9,0xFF,0x21,0x06,
-0x04,0x00,0x10,0x26,
-0x25,0xB0,0x02,0x3C,
-0xE7,0x01,0x42,0x34,
-0x00,0x00,0x52,0xA0,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xBE,0x8F,
-0x2C,0x00,0xB7,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x02,0x80,0x13,0x3C,
-0x08,0x00,0x83,0x90,
-0x30,0x1F,0x62,0x26,
-0x14,0x3E,0x44,0x8C,
-0x0F,0x00,0x63,0x30,
-0xBB,0xFF,0x83,0x14,
-0x00,0x00,0x00,0x00,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xBE,0x8F,
-0x2C,0x00,0xB7,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x00,0x00,0xA7,0xAE,
-0x21,0x20,0x00,0x00,
-0x25,0xB0,0x08,0x3C,
-0x07,0x10,0x92,0x00,
-0x01,0x00,0x42,0x30,
-0x01,0x00,0x84,0x24,
-0x02,0x00,0x40,0x10,
-0x03,0x00,0x85,0x2C,
-0xD0,0x01,0x07,0xAD,
-0xF9,0xFF,0xA0,0x14,
-0x04,0x00,0x08,0x25,
-0xB6,0x0F,0x00,0x08,
-0x21,0x28,0x20,0x01,
-0x0D,0x00,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0xB5,0x0F,0x00,0x08,
-0x02,0x00,0x52,0x36,
-0xC7,0xFF,0x20,0x15,
-0x21,0x28,0x20,0x01,
-0x0D,0x00,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0xB6,0x0F,0x00,0x08,
-0x04,0x00,0x52,0x36,
-0x06,0x00,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0xB5,0x0F,0x00,0x08,
-0x01,0x00,0x52,0x36,
-0x00,0x00,0xC7,0xAE,
-0xB6,0x0F,0x00,0x08,
-0x21,0x28,0x20,0x01,
-0x00,0x00,0xE7,0xAE,
-0xB6,0x0F,0x00,0x08,
-0x21,0x28,0x20,0x01,
-0x00,0x00,0xC7,0xAF,
-0xB6,0x0F,0x00,0x08,
-0x21,0x28,0x20,0x01,
-0xC8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB1,0xAF,
-0x02,0x80,0x02,0x3C,
-0x21,0x88,0x80,0x00,
-0x00,0x01,0x04,0x24,
-0x30,0x00,0xB6,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x25,0x24,0x00,0x0C,
-0x84,0x58,0x56,0x24,
-0x74,0x00,0x40,0x10,
-0x21,0x98,0x40,0x00,
-0x08,0x00,0x50,0x94,
-0x02,0x80,0x02,0x3C,
-0x21,0x28,0x20,0x02,
-0x25,0x80,0x02,0x02,
-0x24,0x00,0x04,0x26,
-0x20,0x00,0x00,0xA6,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x04,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x06,0x00,0x06,0x24,
-0x30,0x00,0x04,0x26,
-0x10,0x52,0x00,0x0C,
-0x88,0x58,0xA5,0x24,
-0x20,0x00,0x03,0x96,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x84,0x24,
-0x03,0xFF,0x63,0x30,
-0x50,0x00,0x63,0x34,
-0x20,0x00,0x03,0xA6,
-0xF8,0x1D,0x82,0x94,
-0x20,0x00,0x12,0x26,
-0x74,0x00,0xD1,0x26,
-0xFF,0x0F,0x43,0x30,
-0x00,0x19,0x03,0x00,
-0x01,0x00,0x42,0x24,
-0xF8,0x1D,0x82,0xA4,
-0x02,0x2A,0x03,0x00,
-0x20,0x00,0x02,0x24,
-0x16,0x00,0x43,0xA2,
-0x17,0x00,0x45,0xA2,
-0x21,0x20,0x20,0x02,
-0x17,0x4F,0x00,0x0C,
-0x0C,0x00,0x62,0xAE,
-0x40,0x00,0x12,0x26,
-0x21,0x20,0x40,0x02,
-0x21,0x28,0x40,0x00,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x0C,0x00,0x63,0x8E,
-0x21,0x20,0x20,0x02,
-0x42,0x00,0x12,0x26,
-0x02,0x00,0x63,0x24,
-0x32,0x4F,0x00,0x0C,
-0x0C,0x00,0x63,0xAE,
-0x21,0x28,0x40,0x00,
-0x21,0x20,0x40,0x02,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x0C,0x00,0x63,0x8E,
-0x44,0x00,0x04,0x26,
-0x0C,0x00,0x75,0x26,
-0x02,0x00,0x63,0x24,
-0x0C,0x00,0x63,0xAE,
-0x0C,0x00,0xC6,0x8E,
-0x21,0x28,0x00,0x00,
-0x10,0x00,0xC7,0x26,
-0x60,0x00,0xD0,0x26,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB5,0xAF,
-0x21,0x20,0x00,0x02,
-0x37,0x50,0x00,0x0C,
-0x21,0x90,0x40,0x00,
-0x09,0x00,0x51,0x2C,
-0x08,0x00,0x06,0x24,
-0x21,0x20,0x40,0x02,
-0x0B,0x30,0x51,0x00,
-0x21,0x38,0x00,0x02,
-0x01,0x00,0x05,0x24,
-0x21,0xA0,0x40,0x00,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB5,0xAF,
-0x21,0x20,0x40,0x00,
-0x03,0x00,0x05,0x24,
-0x01,0x00,0x06,0x24,
-0x48,0x00,0xC7,0x26,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB5,0xAF,
-0x0D,0x00,0x20,0x12,
-0x21,0x20,0x60,0x02,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0x21,0x30,0x00,0x00,
-0xB9,0x0C,0x00,0x08,
-0x38,0x00,0xBD,0x27,
-0xF8,0xFF,0x86,0x26,
-0x21,0x20,0x40,0x00,
-0x68,0x00,0xC7,0x26,
-0x32,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB5,0xAF,
-0x21,0x20,0x60,0x02,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0x21,0x30,0x00,0x00,
-0xB9,0x0C,0x00,0x08,
-0x38,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x98,0xE0,0x84,0x24,
-0xAC,0xEA,0xA5,0x24,
-0x2F,0x55,0x00,0x08,
-0x38,0x00,0xBD,0x27,
-0xB0,0xFF,0xBD,0x27,
-0x50,0x00,0xA4,0xAF,
-0xFC,0x01,0x04,0x24,
-0x4C,0x00,0xBF,0xAF,
-0x48,0x00,0xBE,0xAF,
-0x44,0x00,0xB7,0xAF,
-0x40,0x00,0xB6,0xAF,
-0x3C,0x00,0xB5,0xAF,
-0x38,0x00,0xB4,0xAF,
-0x34,0x00,0xB3,0xAF,
-0x30,0x00,0xB2,0xAF,
-0x2C,0x00,0xB1,0xAF,
-0x25,0x24,0x00,0x0C,
-0x28,0x00,0xB0,0xAF,
-0xE3,0x00,0x40,0x10,
-0x1C,0x00,0xA2,0xAF,
-0x50,0x00,0xA6,0x8F,
-0x02,0x80,0x03,0x3C,
-0xD0,0xEA,0x62,0x24,
-0xD0,0xEA,0x68,0x90,
-0x01,0x00,0x44,0x90,
-0x02,0x00,0xC3,0x90,
-0x02,0x00,0x45,0x90,
-0x03,0x00,0x46,0x90,
-0x1C,0x00,0xA2,0x8F,
-0x00,0x22,0x04,0x00,
-0x25,0x20,0x88,0x00,
-0x08,0x00,0x47,0x94,
-0x50,0x00,0xA2,0x8F,
-0x00,0x2C,0x05,0x00,
-0x0F,0x00,0x63,0x30,
-0x00,0x00,0x48,0x8C,
-0x02,0x80,0x02,0x3C,
-0x25,0x38,0xE2,0x00,
-0x50,0x00,0xA2,0x8F,
-0x25,0x28,0xA4,0x00,
-0x00,0x36,0x06,0x00,
-0xC0,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x25,0x30,0xC5,0x00,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xA6,0xAF,
-0xDD,0x5A,0x55,0x24,
-0x22,0x00,0x66,0x24,
-0x18,0x00,0x62,0x24,
-0x28,0x00,0x76,0x24,
-0x02,0x80,0x03,0x3C,
-0x20,0x00,0xF7,0x24,
-0xFF,0x3F,0x1E,0x31,
-0x21,0x90,0x00,0x00,
-0x30,0x1F,0x73,0x24,
-0x01,0x00,0x14,0x24,
-0x21,0x80,0x00,0x00,
-0x24,0x00,0xA6,0xAF,
-0xD0,0x10,0x00,0x08,
-0x20,0x00,0xA2,0xAF,
-0x39,0x52,0x00,0x0C,
-0x07,0x00,0x10,0x26,
-0x19,0x00,0x40,0x10,
-0x40,0x00,0x43,0x2A,
-0x0E,0x00,0x60,0x10,
-0xE8,0xFF,0xC2,0x27,
-0x21,0x88,0x13,0x02,
-0xAC,0x3B,0x22,0x92,
-0x01,0x00,0x52,0x26,
-0x21,0x20,0x15,0x02,
-0x21,0x28,0xC0,0x02,
-0xF4,0xFF,0x54,0x10,
-0x06,0x00,0x06,0x24,
-0x21,0x20,0x15,0x02,
-0x21,0x28,0xC0,0x02,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xAC,0x3B,0x34,0xA2,
-0xE8,0xFF,0xC2,0x27,
-0x69,0x01,0x43,0x28,
-0x16,0x00,0x60,0x14,
-0x18,0x00,0xA2,0xAF,
-0x02,0x80,0x06,0x3C,
-0x30,0x1F,0xC3,0x24,
-0xA8,0x3B,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xA8,0x3B,0x62,0xAC,
-0x1C,0x00,0xA4,0x8F,
-0x3D,0x24,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x4C,0x00,0xBF,0x8F,
-0x48,0x00,0xBE,0x8F,
-0x44,0x00,0xB7,0x8F,
-0x40,0x00,0xB6,0x8F,
-0x3C,0x00,0xB5,0x8F,
-0x38,0x00,0xB4,0x8F,
-0x34,0x00,0xB3,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x50,0x00,0xBD,0x27,
-0x21,0x20,0xE0,0x02,
-0x21,0x28,0x00,0x00,
-0xFF,0x51,0x00,0x0C,
-0xDC,0x01,0x06,0x24,
-0x20,0x00,0xA2,0x8F,
-0x74,0x00,0xF4,0x26,
-0x21,0x20,0x80,0x02,
-0x18,0x00,0x45,0x24,
-0x18,0x00,0xA2,0x8F,
-0x80,0x00,0xF1,0x26,
-0x74,0x00,0x42,0x24,
-0x00,0x00,0xE2,0xAE,
-0x18,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0x30,0x60,0x00,
-0x10,0x52,0x00,0x0C,
-0x70,0x00,0xE3,0xAE,
-0x70,0x00,0xE7,0x8E,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x00,0x00,
-0xF4,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x18,0x00,0xA6,0x27,
-0xD9,0xFF,0x40,0x10,
-0x21,0x80,0x40,0x00,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x62,0x24,
-0x74,0x3B,0x46,0x8C,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0xC0,0x18,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0xCF,0xFF,0xC2,0x14,
-0x02,0x80,0x04,0x3C,
-0xA8,0x5A,0x84,0x24,
-0x39,0x52,0x00,0x0C,
-0x02,0x00,0x05,0x26,
-0xCA,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x06,0x92,
-0x00,0x00,0x00,0x00,
-0x77,0x00,0xC0,0x14,
-0x10,0x00,0xE4,0x26,
-0x0C,0x00,0xE0,0xAE,
-0x50,0x00,0xA6,0x8F,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0xC2,0x94,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x68,0x00,0x40,0x10,
-0x21,0x20,0xC0,0x00,
-0x34,0x00,0xE0,0xAE,
-0x60,0x00,0xF3,0x26,
-0x21,0x20,0x60,0x02,
-0x21,0x28,0x00,0x00,
-0xFF,0x51,0x00,0x0C,
-0x10,0x00,0x06,0x24,
-0x70,0x00,0xE7,0x8E,
-0x21,0x20,0x20,0x02,
-0x01,0x00,0x05,0x24,
-0xF4,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x18,0x00,0xA6,0x27,
-0x06,0x00,0x40,0x10,
-0x21,0x90,0x00,0x00,
-0x18,0x00,0xA6,0x8F,
-0x02,0x00,0x45,0x24,
-0x10,0x52,0x00,0x0C,
-0x21,0x20,0x60,0x02,
-0x18,0x00,0xB2,0x8F,
-0x70,0x00,0xE7,0x8E,
-0x21,0x20,0x20,0x02,
-0x32,0x00,0x05,0x24,
-0xF4,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x18,0x00,0xA6,0x27,
-0x05,0x00,0x40,0x10,
-0x21,0x20,0xF2,0x02,
-0x18,0x00,0xA6,0x8F,
-0x60,0x00,0x84,0x24,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x45,0x24,
-0x18,0x00,0xA5,0x8F,
-0x21,0x20,0x60,0x02,
-0x7D,0x50,0x00,0x0C,
-0x21,0x28,0xB2,0x00,
-0x21,0x18,0x40,0x00,
-0x01,0x00,0x02,0x24,
-0x3F,0x00,0x62,0x10,
-0x03,0x00,0x02,0x24,
-0x38,0x00,0xE2,0xAE,
-0x70,0x00,0xE7,0x8E,
-0x21,0x20,0x20,0x02,
-0x03,0x00,0x05,0x24,
-0xF4,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x18,0x00,0xA6,0x27,
-0x48,0x00,0xE0,0xAE,
-0x04,0x00,0x40,0x10,
-0x3C,0x00,0xE0,0xAE,
-0x02,0x00,0x42,0x90,
-0x00,0x00,0x00,0x00,
-0x48,0x00,0xE2,0xAE,
-0x17,0x4F,0x00,0x0C,
-0x21,0x20,0x80,0x02,
-0x21,0x28,0x40,0x00,
-0x40,0x00,0xE4,0x26,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x34,0x4F,0x00,0x0C,
-0x21,0x20,0xE0,0x02,
-0xFF,0xFF,0x50,0x30,
-0x01,0x00,0x02,0x32,
-0x22,0x00,0x40,0x10,
-0x21,0x28,0xC0,0x02,
-0x01,0x00,0x02,0x24,
-0x5C,0x00,0xE2,0xAE,
-0x24,0x00,0xA5,0x8F,
-0x04,0x00,0xE4,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x10,0x00,0x02,0x32,
-0x1B,0x00,0x40,0x10,
-0x01,0x00,0x02,0x24,
-0x30,0x00,0xE2,0xAE,
-0x02,0x80,0x02,0x3C,
-0x44,0x00,0xE0,0xAE,
-0x30,0x1F,0x44,0x24,
-0xA4,0x3B,0x82,0x8C,
-0x1C,0x00,0xA6,0x8F,
-0xDC,0x01,0x03,0x24,
-0x01,0x00,0x42,0x24,
-0xA4,0x3B,0x82,0xAC,
-0x08,0x00,0x02,0x24,
-0x0C,0x00,0xC3,0xAC,
-0x14,0x00,0xC2,0xAC,
-0x1C,0x00,0xA4,0x8F,
-0x30,0x09,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xE9,0x10,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0xA4,0xE0,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0xBC,0xEA,0xA5,0x24,
-0xE9,0x10,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x6D,0x11,0x00,0x08,
-0x5C,0x00,0xE0,0xAE,
-0x74,0x11,0x00,0x08,
-0x30,0x00,0xE0,0xAE,
-0x52,0x11,0x00,0x08,
-0x38,0x00,0xE3,0xAE,
-0xF7,0x19,0x00,0x0C,
-0x18,0x00,0xC5,0x24,
-0x4C,0x1A,0x00,0x0C,
-0x21,0x20,0x40,0x00,
-0x2B,0x11,0x00,0x08,
-0x34,0x00,0xE2,0xAE,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x05,0x26,
-0x01,0x00,0x03,0x92,
-0x22,0x11,0x00,0x08,
-0x0C,0x00,0xE3,0xAE,
-0x02,0x80,0x04,0x3C,
-0x84,0x58,0x84,0x24,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x17,0x4F,0x00,0x0C,
-0x74,0x00,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x10,0x00,0xA4,0x27,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x10,0x00,0xA2,0x97,
-0x25,0xB0,0x04,0x3C,
-0x94,0x00,0x85,0x34,
-0x9A,0x00,0x87,0x34,
-0x26,0xB0,0x06,0x3C,
-0x00,0x08,0x03,0x24,
-0x00,0x00,0xA2,0xA4,
-0x0A,0x00,0x0B,0x24,
-0x00,0x00,0xE3,0xA4,
-0x98,0x00,0x88,0x34,
-0x96,0x00,0x89,0x34,
-0x7A,0x00,0xCA,0x34,
-0x50,0x00,0x02,0x24,
-0x04,0x00,0x03,0x24,
-0x00,0x00,0x02,0xA5,
-0x00,0x00,0x2B,0xA5,
-0x00,0x00,0x43,0xA1,
-0x10,0x00,0xA2,0x97,
-0x89,0x00,0x83,0x34,
-0x14,0x00,0x07,0x24,
-0x40,0x11,0x02,0x00,
-0xA0,0xFF,0x42,0x24,
-0xFF,0xFF,0x42,0x30,
-0x9C,0x00,0x85,0x34,
-0x7C,0x00,0xC6,0x34,
-0x00,0x00,0xC2,0xA4,
-0x44,0x00,0x84,0x34,
-0x00,0x00,0x67,0xA0,
-0x00,0x00,0xAB,0xA0,
-0x00,0x00,0x82,0x94,
-0xFF,0xFD,0x03,0x24,
-0x18,0x00,0xBF,0x8F,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0x82,0xA4,
-0x00,0x00,0x83,0x94,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x00,0x02,0x63,0x34,
-0x20,0x00,0xBD,0x27,
-0x8E,0x3E,0x40,0xA0,
-0x00,0x00,0x83,0xA4,
-0x08,0x00,0xE0,0x03,
-0x0C,0x3E,0x47,0xA0,
-0xD8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x10,0x3C,
-0x84,0x58,0x04,0x26,
-0x24,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x34,0x4F,0x00,0x0C,
-0x18,0x00,0xB2,0xAF,
-0xFF,0xFF,0x51,0x30,
-0x84,0x58,0x04,0x26,
-0x19,0x4F,0x00,0x0C,
-0x02,0x80,0x10,0x3C,
-0x30,0x1F,0x03,0x26,
-0x01,0x00,0x24,0x32,
-0x08,0x3E,0x62,0xA4,
-0x03,0x00,0x80,0x14,
-0x02,0x00,0x05,0x24,
-0x40,0x10,0x11,0x00,
-0x04,0x00,0x45,0x30,
-0x02,0x00,0x02,0x24,
-0x59,0x00,0xA2,0x10,
-0x30,0x1F,0x02,0x26,
-0x0F,0x00,0x80,0x10,
-0x02,0x00,0x03,0x24,
-0x04,0x00,0x02,0x24,
-0x11,0x00,0x62,0x10,
-0x30,0x1F,0x13,0x26,
-0x02,0x80,0x04,0x3C,
-0x21,0x28,0x20,0x02,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x18,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0x40,0x10,0x11,0x00,
-0x04,0x00,0x43,0x30,
-0x04,0x00,0x02,0x24,
-0xF1,0xFF,0x62,0x14,
-0x30,0x1F,0x13,0x26,
-0x08,0x3E,0x66,0x96,
-0x30,0x3B,0x65,0x92,
-0x02,0x80,0x04,0x3C,
-0xB0,0x1B,0x63,0xA6,
-0xD4,0xE0,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x25,0xB0,0x10,0x3C,
-0x50,0x02,0x03,0x36,
-0x0F,0x00,0x02,0x24,
-0x00,0x00,0x62,0xA0,
-0x21,0x28,0x00,0x00,
-0x12,0x0D,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x30,0x3B,0x64,0x92,
-0x01,0x00,0x14,0x24,
-0x4F,0x0C,0x00,0x0C,
-0x4C,0x00,0x10,0x36,
-0x02,0x80,0x11,0x3C,
-0x00,0x00,0x14,0xA2,
-0x21,0x0E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x37,0x50,0x00,0x0C,
-0xE4,0x58,0x24,0x26,
-0x21,0x28,0x40,0x00,
-0xE4,0x58,0x24,0x26,
-0x7D,0x50,0x00,0x0C,
-0x21,0x90,0x40,0x00,
-0x0F,0x00,0x50,0x30,
-0xE4,0x58,0x24,0x26,
-0x96,0x50,0x00,0x0C,
-0x21,0x28,0x40,0x02,
-0x40,0x02,0x10,0x36,
-0x02,0x80,0x04,0x3C,
-0x21,0x88,0x40,0x00,
-0x21,0x30,0x40,0x00,
-0x21,0x28,0x00,0x02,
-0x2F,0x55,0x00,0x0C,
-0x04,0xE1,0x84,0x24,
-0x21,0x20,0x00,0x02,
-0xC1,0x5B,0x00,0x0C,
-0x21,0x28,0x20,0x02,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0xF3,0x3D,0x84,0x24,
-0x88,0x58,0xA5,0x24,
-0x06,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0xC2,0x1E,0x74,0xA2,
-0x0F,0x48,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x9C,0x11,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xB0,0x1B,0x62,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x34,
-0x53,0x1E,0x00,0x0C,
-0xB0,0x1B,0x62,0xA6,
-0xEC,0x38,0x62,0xAE,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x04,0x24,
-0x48,0x0E,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0x78,0x3D,0x44,0x8C,
-0x01,0x20,0x03,0x24,
-0xB0,0x1B,0x43,0xA4,
-0x02,0x00,0x85,0x10,
-0x0C,0x00,0x03,0x24,
-0x0F,0x00,0x03,0x24,
-0x25,0xB0,0x02,0x3C,
-0x50,0x02,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x30,0x1F,0x10,0x26,
-0xB0,0x1B,0x02,0x96,
-0x08,0x3E,0x06,0x96,
-0x30,0x3B,0x05,0x92,
-0x10,0x00,0x42,0x34,
-0x02,0x80,0x04,0x3C,
-0xB0,0x1B,0x02,0xA6,
-0x2F,0x55,0x00,0x0C,
-0xB0,0xE0,0x84,0x24,
-0x21,0x28,0x00,0x00,
-0x12,0x0D,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x30,0x3B,0x04,0x92,
-0x4F,0x0C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x53,0x1E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEC,0x38,0x02,0xAE,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x65,0x24,
-0x50,0x3E,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x1F,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x0A,0x3E,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x42,0x2C,
-0x1A,0x00,0x40,0x10,
-0x21,0x38,0xA0,0x00,
-0x98,0x3E,0xA4,0x8C,
-0x94,0x3E,0xA5,0x8C,
-0x21,0x30,0x00,0x00,
-0x80,0x10,0x04,0x00,
-0x80,0x18,0x05,0x00,
-0x2B,0x10,0x45,0x00,
-0x04,0x00,0x40,0x14,
-0x2B,0x18,0x64,0x00,
-0x01,0x00,0x06,0x24,
-0x02,0x00,0x02,0x24,
-0x0A,0x30,0x43,0x00,
-0x0A,0x3E,0xE2,0x90,
-0x94,0x3E,0xE0,0xAC,
-0x98,0x3E,0xE0,0xAC,
-0x40,0x18,0x02,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x18,0x66,0x00,
-0x02,0x80,0x02,0x3C,
-0x48,0xDD,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x00,0x00,0x64,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xD8,0x01,0x42,0x34,
-0x00,0x00,0x44,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x21,0x80,0x80,0x00,
-0x02,0x00,0x84,0x90,
-0x02,0x80,0x05,0x3C,
-0x18,0x3B,0xA5,0x24,
-0x0F,0x00,0x84,0x30,
-0xC0,0x20,0x04,0x00,
-0x21,0x20,0x90,0x00,
-0x1C,0x00,0x84,0x24,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x06,0x00,0x40,0x10,
-0x21,0x20,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x92,0x10,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x80,0xFF,0xBD,0x27,
-0x02,0x80,0x06,0x3C,
-0x02,0x80,0x08,0x3C,
-0x78,0x00,0xBE,0xAF,
-0x7C,0x00,0xBF,0xAF,
-0x74,0x00,0xB7,0xAF,
-0x70,0x00,0xB6,0xAF,
-0x6C,0x00,0xB5,0xAF,
-0x68,0x00,0xB4,0xAF,
-0x64,0x00,0xB3,0xAF,
-0x60,0x00,0xB2,0xAF,
-0x5C,0x00,0xB1,0xAF,
-0x58,0x00,0xB0,0xAF,
-0xD0,0xEA,0xC2,0x24,
-0xE4,0xEA,0x03,0x25,
-0x01,0x00,0x44,0x90,
-0x01,0x00,0x65,0x90,
-0xD0,0xEA,0xCB,0x90,
-0xE4,0xEA,0x0A,0x91,
-0x02,0x00,0x47,0x90,
-0x02,0x00,0x66,0x90,
-0x03,0x00,0x48,0x90,
-0x03,0x00,0x69,0x90,
-0x00,0x22,0x04,0x00,
-0x00,0x2A,0x05,0x00,
-0x25,0x20,0x8B,0x00,
-0x25,0x28,0xAA,0x00,
-0x00,0x3C,0x07,0x00,
-0x00,0x34,0x06,0x00,
-0x25,0x38,0xE4,0x00,
-0x25,0x30,0xC5,0x00,
-0x00,0x46,0x08,0x00,
-0x00,0x4E,0x09,0x00,
-0x25,0x40,0x07,0x01,
-0x25,0x48,0x26,0x01,
-0x00,0x02,0x04,0x24,
-0x40,0x00,0xA8,0xAF,
-0x25,0x24,0x00,0x0C,
-0x48,0x00,0xA9,0xAF,
-0xB0,0x01,0x40,0x10,
-0x21,0xF0,0x40,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x52,0x24,
-0xC4,0x39,0x45,0x8E,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x34,0xE1,0x84,0x24,
-0x08,0x00,0xD1,0x97,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x10,0x3C,
-0x25,0x88,0x22,0x02,
-0x88,0x58,0x10,0x26,
-0x24,0x00,0x24,0x26,
-0x21,0x28,0x00,0x02,
-0x20,0x00,0x20,0xA6,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x24,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x21,0x28,0x00,0x02,
-0x06,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0x30,0x00,0x24,0x26,
-0x18,0x00,0x03,0x24,
-0x0C,0x00,0xC3,0xAF,
-0xF8,0x1D,0x42,0x96,
-0x20,0x00,0x25,0x26,
-0x38,0x00,0x37,0x26,
-0xFF,0x0F,0x43,0x30,
-0x00,0x19,0x03,0x00,
-0x02,0x22,0x03,0x00,
-0x01,0x00,0x42,0x24,
-0xF8,0x1D,0x42,0xA6,
-0x17,0x00,0xA4,0xA0,
-0x02,0x80,0x04,0x3C,
-0x16,0x00,0xA3,0xA0,
-0x32,0x4F,0x00,0x0C,
-0xF8,0x58,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x21,0x20,0xE0,0x02,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x3A,0x00,0x24,0x26,
-0x18,0x00,0xA5,0x27,
-0x02,0x00,0x06,0x24,
-0x03,0x00,0x02,0x24,
-0x10,0x52,0x00,0x0C,
-0x18,0x00,0xA2,0xA7,
-0x0C,0x00,0xC3,0x8F,
-0x02,0x80,0x07,0x3C,
-0x3C,0x00,0x24,0x26,
-0x04,0x00,0x63,0x24,
-0x0C,0x00,0xC3,0xAF,
-0x60,0x39,0x46,0x8E,
-0x0C,0x00,0xC2,0x27,
-0x94,0x58,0xE7,0x24,
-0x21,0x28,0x00,0x00,
-0x54,0x00,0xA2,0xAF,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x20,0x00,0xA4,0x27,
-0x50,0x00,0xA5,0x27,
-0x21,0x50,0x00,0x0C,
-0x21,0xB8,0x40,0x00,
-0x50,0x00,0xA8,0x8F,
-0x21,0x88,0x00,0x00,
-0x52,0x00,0x00,0x11,
-0x21,0x80,0x00,0x00,
-0x21,0x38,0x40,0x02,
-0x18,0x00,0xA9,0x27,
-0x21,0x10,0x31,0x01,
-0x08,0x00,0x46,0x90,
-0x21,0x20,0x00,0x00,
-0x7F,0x00,0xC5,0x30,
-0x21,0x10,0x87,0x00,
-0xB4,0x39,0x43,0x90,
-0x01,0x00,0x84,0x24,
-0x7F,0x00,0x63,0x30,
-0x3D,0x00,0xA3,0x10,
-0x0D,0x00,0x82,0x2C,
-0xFA,0xFF,0x40,0x14,
-0x21,0x10,0x87,0x00,
-0x01,0x00,0x31,0x26,
-0x2B,0x10,0x28,0x02,
-0xF2,0xFF,0x40,0x14,
-0x21,0x10,0x31,0x01,
-0x09,0x00,0x02,0x2E,
-0x3D,0x00,0x40,0x14,
-0x21,0x20,0xE0,0x02,
-0x54,0x00,0xA2,0x8F,
-0x01,0x00,0x05,0x24,
-0x08,0x00,0x06,0x24,
-0x30,0x00,0xA7,0x27,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x21,0x20,0x40,0x00,
-0x54,0x00,0xA2,0x8F,
-0xF8,0xFF,0x06,0x26,
-0x32,0x00,0x05,0x24,
-0x38,0x00,0xA7,0x27,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x21,0xB8,0x40,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x44,0x24,
-0x78,0x3D,0x83,0x8C,
-0x02,0x00,0x02,0x24,
-0x37,0x00,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0xC4,0x39,0x83,0x8C,
-0x0C,0x00,0x11,0x24,
-0x2B,0x10,0x23,0x02,
-0x32,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xF8,0x58,0x46,0x24,
-0x21,0x20,0x60,0x00,
-0x4D,0x13,0x00,0x08,
-0x30,0x00,0x05,0x24,
-0x01,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x51,0x00,
-0x02,0x00,0x51,0x24,
-0x2B,0x18,0x24,0x02,
-0x27,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x26,0x02,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xF5,0xFF,0x45,0x14,
-0x02,0x80,0x07,0x3C,
-0x01,0x00,0x66,0x90,
-0x54,0x00,0xA2,0x8F,
-0xFA,0x58,0xE7,0x24,
-0x21,0x20,0xE0,0x02,
-0x21,0x38,0x27,0x02,
-0x30,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x73,0x13,0x00,0x08,
-0x21,0xB8,0x40,0x00,
-0x21,0x10,0x30,0x01,
-0x18,0x00,0x46,0xA0,
-0x50,0x00,0xA8,0x8F,
-0x01,0x00,0x31,0x26,
-0x2B,0x10,0x28,0x02,
-0xB4,0xFF,0x40,0x14,
-0x01,0x00,0x10,0x26,
-0x27,0x13,0x00,0x08,
-0x09,0x00,0x02,0x2E,
-0x54,0x00,0xA2,0x8F,
-0x21,0x20,0xE0,0x02,
-0x21,0x30,0x00,0x02,
-0x01,0x00,0x05,0x24,
-0x30,0x00,0xA7,0x27,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x21,0xB8,0x40,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x44,0x24,
-0x78,0x3D,0x83,0x8C,
-0x02,0x00,0x02,0x24,
-0xCB,0xFF,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0xD5,0x1D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x16,0x00,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x43,0x24,
-0xC4,0x39,0x62,0x8C,
-0x0C,0x00,0x11,0x24,
-0x2B,0x10,0x22,0x02,
-0x10,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xF8,0x58,0x52,0x24,
-0x21,0x80,0x60,0x00,
-0x02,0x80,0x13,0x3C,
-0x21,0x20,0x32,0x02,
-0x00,0x00,0x83,0x90,
-0x2D,0x00,0x02,0x24,
-0xCB,0x00,0x62,0x10,
-0x02,0x80,0x05,0x3C,
-0x01,0x00,0x82,0x90,
-0xC4,0x39,0x03,0x8E,
-0x21,0x10,0x51,0x00,
-0x02,0x00,0x51,0x24,
-0x2B,0x18,0x23,0x02,
-0xF6,0xFF,0x60,0x14,
-0x21,0x20,0x32,0x02,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x44,0x24,
-0x78,0x3D,0x83,0x8C,
-0x02,0x00,0x02,0x24,
-0x82,0x00,0x62,0x10,
-0x0C,0x00,0x11,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x43,0x24,
-0xC4,0x39,0x62,0x8C,
-0x0C,0x00,0x11,0x24,
-0x2B,0x10,0x22,0x02,
-0x26,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xF8,0x58,0x56,0x24,
-0x21,0xA8,0x60,0x00,
-0xDD,0x00,0x14,0x24,
-0xA5,0x13,0x00,0x08,
-0x02,0x80,0x13,0x3C,
-0x01,0x00,0x02,0x92,
-0xC4,0x39,0xA3,0x8E,
-0x21,0x10,0x51,0x00,
-0x02,0x00,0x51,0x24,
-0x2B,0x18,0x23,0x02,
-0x1B,0x00,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0x21,0x80,0x36,0x02,
-0x00,0x00,0x02,0x92,
-0x02,0x00,0x12,0x26,
-0x21,0x20,0x40,0x02,
-0xD0,0xDD,0x65,0x26,
-0xF3,0xFF,0x54,0x14,
-0x06,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEF,0xFF,0x40,0x14,
-0x21,0x20,0xE0,0x02,
-0x54,0x00,0xA2,0x8F,
-0xDD,0x00,0x05,0x24,
-0x21,0x38,0x40,0x02,
-0x07,0x00,0x06,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x08,0x00,0x04,0x92,
-0x21,0xB8,0x40,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x45,0x24,
-0x01,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x0F,0x5F,0x44,0xA0,
-0x10,0x3E,0xA3,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x44,0x24,
-0xC4,0x39,0x82,0x8C,
-0x0C,0x00,0x11,0x24,
-0x2B,0x10,0x22,0x02,
-0x20,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF8,0x58,0x56,0x24,
-0xFA,0x58,0x75,0x24,
-0x21,0xA0,0x80,0x00,
-0xD2,0x13,0x00,0x08,
-0xDD,0x00,0x13,0x24,
-0x01,0x00,0x02,0x92,
-0xC4,0x39,0x83,0x8E,
-0x21,0x10,0x51,0x00,
-0x02,0x00,0x51,0x24,
-0x2B,0x18,0x23,0x02,
-0x14,0x00,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0x21,0x80,0x36,0x02,
-0x00,0x00,0x02,0x92,
-0x21,0x90,0x35,0x02,
-0x21,0x20,0x40,0x02,
-0x48,0x00,0xA5,0x27,
-0xF3,0xFF,0x53,0x14,
-0x04,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEF,0xFF,0x40,0x14,
-0x21,0x20,0xE0,0x02,
-0x01,0x00,0x06,0x92,
-0x54,0x00,0xA2,0x8F,
-0x21,0x38,0x40,0x02,
-0xDD,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x21,0xB8,0x40,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x50,0x24,
-0x0A,0x3E,0x02,0x92,
-0x50,0x3E,0x03,0x8E,
-0x05,0x00,0x42,0x38,
-0x01,0x00,0x63,0x38,
-0x01,0x00,0x42,0x2C,
-0x01,0x00,0x63,0x2C,
-0x24,0x10,0x43,0x00,
-0x58,0x00,0x40,0x14,
-0x02,0x80,0x07,0x3C,
-0xC4,0x39,0x05,0x8E,
-0x0C,0x00,0x11,0x24,
-0x2B,0x10,0x25,0x02,
-0x0F,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xF8,0x58,0x46,0x24,
-0x44,0x00,0x04,0x24,
-0x21,0x80,0x26,0x02,
-0x00,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x3E,0x00,0x44,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x51,0x00,
-0x02,0x00,0x51,0x24,
-0x2B,0x18,0x25,0x02,
-0xF6,0xFF,0x60,0x14,
-0x21,0x80,0x26,0x02,
-0x21,0x20,0xC0,0x03,
-0x21,0x28,0x00,0x00,
-0xB9,0x0C,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x21,0x10,0x00,0x00,
-0x7C,0x00,0xBF,0x8F,
-0x78,0x00,0xBE,0x8F,
-0x74,0x00,0xB7,0x8F,
-0x70,0x00,0xB6,0x8F,
-0x6C,0x00,0xB5,0x8F,
-0x68,0x00,0xB4,0x8F,
-0x64,0x00,0xB3,0x8F,
-0x60,0x00,0xB2,0x8F,
-0x5C,0x00,0xB1,0x8F,
-0x58,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x80,0x00,0xBD,0x27,
-0xC4,0x39,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x22,0x02,
-0x7B,0xFF,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF8,0x58,0x56,0x24,
-0xFA,0x58,0x75,0x24,
-0x21,0xA0,0x80,0x00,
-0x25,0x14,0x00,0x08,
-0xDD,0x00,0x13,0x24,
-0x01,0x00,0x02,0x92,
-0xC4,0x39,0x83,0x8E,
-0x21,0x10,0x51,0x00,
-0x02,0x00,0x51,0x24,
-0x2B,0x18,0x23,0x02,
-0x6F,0xFF,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0x21,0x80,0x36,0x02,
-0x00,0x00,0x02,0x92,
-0x21,0x90,0x35,0x02,
-0x21,0x20,0x40,0x02,
-0x40,0x00,0xA5,0x27,
-0xF3,0xFF,0x53,0x14,
-0x04,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEF,0xFF,0x40,0x14,
-0x21,0x20,0xE0,0x02,
-0x01,0x00,0x06,0x92,
-0x54,0x00,0xA2,0x8F,
-0x21,0x38,0x40,0x02,
-0xDD,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x92,0x13,0x00,0x08,
-0x21,0xB8,0x40,0x00,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x48,0xE1,0x84,0x24,
-0x01,0x00,0x06,0x92,
-0x54,0x00,0xA2,0x8F,
-0x02,0x80,0x07,0x3C,
-0xFA,0x58,0xE7,0x24,
-0x21,0x38,0x27,0x02,
-0x21,0x20,0xE0,0x02,
-0x44,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x03,0x14,0x00,0x08,
-0x21,0x20,0xC0,0x03,
-0x54,0x00,0xA2,0x8F,
-0x21,0x20,0xE0,0x02,
-0x9C,0xDD,0xE7,0x24,
-0xDD,0x00,0x05,0x24,
-0x06,0x00,0x06,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0xEF,0x13,0x00,0x08,
-0x21,0xB8,0x40,0x00,
-0x02,0x80,0x14,0x3C,
-0xFA,0x58,0xA5,0x24,
-0x21,0x28,0x25,0x02,
-0x88,0x5D,0x84,0x26,
-0x10,0x52,0x00,0x0C,
-0x20,0x00,0x06,0x24,
-0x02,0x80,0x03,0x3C,
-0xF1,0x5D,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x1D,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x58,0x3E,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0xBD,0xFF,0x42,0x30,
-0x58,0x3E,0x02,0xA6,
-0x02,0x80,0x02,0x3C,
-0x58,0x3E,0x03,0x96,
-0xDE,0x5D,0x44,0x90,
-0x0C,0x00,0x63,0x34,
-0x01,0x00,0x84,0x30,
-0x15,0x00,0x80,0x10,
-0x58,0x3E,0x03,0xA6,
-0x02,0x80,0x05,0x3C,
-0x8B,0x5D,0x64,0x26,
-0x3C,0xE3,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x10,0x00,0x06,0x24,
-0x21,0x10,0x32,0x02,
-0x01,0x00,0x46,0x90,
-0x54,0x00,0xA2,0x8F,
-0x21,0x20,0xE0,0x02,
-0x88,0x5D,0x87,0x26,
-0x2D,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x21,0xB8,0x40,0x00,
-0x01,0x00,0x02,0x24,
-0x8C,0x13,0x00,0x08,
-0x50,0x3E,0x02,0xAE,
-0x58,0x3E,0x02,0x96,
-0x5D,0x14,0x00,0x08,
-0x02,0x00,0x42,0x34,
-0x02,0x80,0x05,0x3C,
-0x8B,0x5D,0x64,0x26,
-0x68,0x14,0x00,0x08,
-0x4C,0xE3,0xA5,0x24,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x28,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0xD4,0xEA,0xA5,0x24,
-0x07,0x14,0x00,0x08,
-0xFF,0xFF,0x02,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0xB0,0x1B,0x43,0x94,
-0xC8,0x00,0x04,0x24,
-0xD0,0x38,0x44,0xAC,
-0x9F,0xFE,0x63,0x30,
-0x80,0x00,0x63,0x34,
-0xB0,0x1B,0x43,0xA4,
-0x6C,0x3D,0x40,0xAC,
-0x70,0x3D,0x40,0xAC,
-0xA5,0x12,0x00,0x08,
-0xB4,0x38,0x40,0xAC,
-0xD8,0xFF,0xBD,0x27,
-0x28,0x00,0xA4,0xA3,
-0x00,0x01,0x04,0x24,
-0x18,0x00,0xB2,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x2C,0x00,0xA5,0xA3,
-0x25,0x24,0x00,0x0C,
-0x30,0x00,0xA6,0xA7,
-0x94,0x00,0x40,0x10,
-0x21,0x90,0x40,0x00,
-0x30,0x00,0xA7,0x97,
-0x28,0x00,0xA5,0x93,
-0x2C,0x00,0xA6,0x93,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x68,0xE1,0x84,0x24,
-0x08,0x00,0x50,0x96,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x11,0x3C,
-0x25,0x80,0x02,0x02,
-0x88,0x58,0x31,0x26,
-0x21,0x28,0x20,0x02,
-0x24,0x00,0x04,0x26,
-0x06,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0x20,0x00,0x00,0xA6,
-0x02,0x80,0x05,0x3C,
-0x18,0x3B,0xA5,0x24,
-0x2A,0x00,0x04,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x21,0x28,0x20,0x02,
-0x30,0x00,0x04,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0x03,0x96,
-0x18,0x00,0x02,0x24,
-0x20,0x00,0x05,0x26,
-0x03,0xFF,0x63,0x30,
-0xD0,0x00,0x63,0x34,
-0x20,0x00,0x03,0xA6,
-0x02,0x80,0x03,0x3C,
-0x0C,0x00,0x42,0xAE,
-0x30,0x1F,0x73,0x24,
-0xF8,0x1D,0x62,0x96,
-0x0C,0x00,0x51,0x26,
-0x28,0x00,0xA6,0x27,
-0xFF,0x0F,0x43,0x30,
-0x00,0x19,0x03,0x00,
-0x02,0x22,0x03,0x00,
-0x01,0x00,0x42,0x24,
-0xF8,0x1D,0x62,0xA6,
-0x21,0x38,0x20,0x02,
-0x16,0x00,0xA3,0xA0,
-0x17,0x00,0xA4,0xA0,
-0x38,0x00,0x04,0x26,
-0x68,0x4F,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x21,0x20,0x40,0x00,
-0x01,0x00,0x05,0x24,
-0x2C,0x00,0xA6,0x27,
-0x68,0x4F,0x00,0x0C,
-0x21,0x38,0x20,0x02,
-0x28,0x00,0xA3,0x93,
-0x21,0x20,0x40,0x00,
-0x03,0x00,0x02,0x24,
-0x0C,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x40,0x02,
-0x21,0x28,0x00,0x00,
-0xB9,0x0C,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x2C,0x00,0xA3,0x93,
-0x00,0x00,0x00,0x00,
-0x2E,0x00,0x60,0x14,
-0x01,0x00,0x02,0x24,
-0x19,0x3E,0x63,0x92,
-0x21,0x80,0x60,0x02,
-0x01,0x00,0x68,0x24,
-0xFF,0x00,0x02,0x31,
-0xFD,0xFF,0x40,0x10,
-0x21,0x18,0x00,0x01,
-0x02,0x80,0x06,0x3C,
-0x19,0x3E,0x08,0xA2,
-0x21,0x38,0x20,0x02,
-0x49,0x5D,0xC6,0x24,
-0x68,0x4F,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x30,0x00,0xA3,0x97,
-0x02,0x80,0x06,0x3C,
-0x21,0x38,0x20,0x02,
-0x0F,0x00,0x63,0x30,
-0x80,0x18,0x03,0x00,
-0x02,0x08,0x63,0x34,
-0x1C,0x3E,0x03,0xA6,
-0x4C,0x5D,0xC6,0x24,
-0x21,0x20,0x40,0x00,
-0x68,0x4F,0x00,0x0C,
-0x02,0x00,0x05,0x24,
-0x02,0x80,0x06,0x3C,
-0x21,0x38,0x20,0x02,
-0x4E,0x5D,0xC6,0x24,
-0x21,0x20,0x40,0x00,
-0x02,0x00,0x05,0x24,
-0x68,0x4F,0x00,0x0C,
-0x1E,0x3E,0x00,0xA6,
-0x30,0x00,0xA3,0x97,
-0x21,0x20,0x40,0x00,
-0x02,0x80,0x06,0x3C,
-0x07,0x00,0x63,0x30,
-0x40,0x18,0x03,0x00,
-0x21,0x18,0x70,0x00,
-0xE8,0x1D,0x62,0x94,
-0x50,0x5D,0xC6,0x24,
-0x21,0x38,0x20,0x02,
-0x00,0x11,0x02,0x00,
-0x02,0x00,0x05,0x24,
-0x68,0x4F,0x00,0x0C,
-0x20,0x3E,0x02,0xA6,
-0xD8,0x14,0x00,0x08,
-0x21,0x20,0x40,0x02,
-0xC3,0xFF,0x62,0x14,
-0x02,0x80,0x06,0x3C,
-0x21,0x38,0x20,0x02,
-0x48,0x5D,0xC6,0x24,
-0x68,0x4F,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x21,0x20,0x40,0x00,
-0x30,0x00,0xA6,0x27,
-0x21,0x38,0x20,0x02,
-0x68,0x4F,0x00,0x0C,
-0x02,0x00,0x05,0x24,
-0x1C,0x3E,0x63,0x96,
-0x02,0x80,0x06,0x3C,
-0x21,0x38,0x20,0x02,
-0x3F,0x00,0x63,0x30,
-0x00,0x08,0x63,0x34,
-0x21,0x20,0x40,0x00,
-0x4C,0x5D,0xC6,0x24,
-0x02,0x00,0x05,0x24,
-0x68,0x4F,0x00,0x0C,
-0x1C,0x3E,0x63,0xA6,
-0x02,0x80,0x06,0x3C,
-0x21,0x20,0x40,0x00,
-0x4E,0x5D,0xC6,0x24,
-0x21,0x38,0x20,0x02,
-0x68,0x4F,0x00,0x0C,
-0x02,0x00,0x05,0x24,
-0xD8,0x14,0x00,0x08,
-0x21,0x20,0x40,0x02,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x5C,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0xE8,0xEA,0xA5,0x24,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x00,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x03,0x42,0x34,
-0xF0,0x54,0x63,0x24,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x00,0x00,0x43,0xAC,
-0x02,0x00,0x82,0x90,
-0x02,0x80,0x05,0x3C,
-0x88,0x58,0xA5,0x24,
-0x0F,0x00,0x42,0x30,
-0xC0,0x10,0x02,0x00,
-0x21,0x80,0x44,0x00,
-0x28,0x00,0x04,0x26,
-0x06,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x18,0x00,0x11,0x26,
-0x08,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x55,0x50,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x02,0x80,0x04,0x3C,
-0x18,0x3B,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xF1,0xFF,0x40,0x14,
-0x03,0x00,0x02,0x24,
-0x30,0x00,0x03,0x92,
-0x00,0x00,0x00,0x00,
-0xED,0xFF,0x62,0x14,
-0x30,0x00,0x07,0x26,
-0x02,0x80,0x06,0x3C,
-0x30,0x1F,0xC8,0x24,
-0x50,0x3E,0x02,0x8D,
-0x00,0x00,0x00,0x00,
-0xE7,0xFF,0x40,0x10,
-0x01,0x00,0x05,0x24,
-0x01,0x00,0xE3,0x90,
-0x00,0x00,0x00,0x00,
-0x1A,0x00,0x65,0x10,
-0x02,0x00,0x62,0x28,
-0x2E,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0xDF,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0xE3,0x90,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x62,0x30,
-0x0A,0x00,0x40,0x14,
-0x02,0x11,0x03,0x00,
-0x1A,0x3E,0x03,0x91,
-0x04,0x10,0x45,0x00,
-0x27,0x10,0x02,0x00,
-0x24,0x10,0x43,0x00,
-0x1A,0x3E,0x02,0xA1,
-0x05,0x00,0xE3,0x90,
-0x04,0x00,0xE2,0x90,
-0x00,0x1A,0x03,0x00,
-0x25,0x90,0x62,0x00,
-0x1A,0x3E,0x05,0x91,
-0x02,0x80,0x04,0x3C,
-0x94,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x21,0x30,0x40,0x02,
-0x52,0x15,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0xE2,0x90,
-0x03,0x00,0xE4,0x90,
-0x05,0x00,0xE3,0x90,
-0x00,0x12,0x02,0x00,
-0x25,0x10,0x44,0x00,
-0x82,0x18,0x03,0x00,
-0x27,0x00,0x40,0x14,
-0x07,0x00,0x64,0x30,
-0x1A,0x3E,0x03,0x91,
-0x04,0x10,0x85,0x00,
-0x25,0x10,0x43,0x00,
-0x1A,0x3E,0x02,0xA1,
-0x30,0x1F,0xC2,0x24,
-0x4C,0x3E,0x43,0x90,
-0x1A,0x3E,0x45,0x90,
-0x02,0x80,0x04,0x3C,
-0x21,0x18,0x62,0x00,
-0x84,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x44,0x3E,0x60,0xA0,
-0x52,0x15,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xB2,0xFF,0x60,0x14,
-0x03,0x00,0x04,0x24,
-0x02,0x00,0xE2,0x90,
-0x01,0x00,0x05,0x24,
-0x18,0x3E,0x02,0xA1,
-0x04,0x00,0xE3,0x90,
-0x03,0x00,0xE2,0x90,
-0x21,0x30,0x00,0x00,
-0x00,0x1A,0x03,0x00,
-0x25,0x18,0x62,0x00,
-0x1C,0x3E,0x03,0xA5,
-0x06,0x00,0xE2,0x90,
-0x05,0x00,0xE3,0x90,
-0x00,0x12,0x02,0x00,
-0x25,0x10,0x43,0x00,
-0x1E,0x3E,0x02,0xA5,
-0x08,0x00,0xE3,0x90,
-0x07,0x00,0xE2,0x90,
-0x00,0x1A,0x03,0x00,
-0x25,0x18,0x62,0x00,
-0x90,0x14,0x00,0x0C,
-0x20,0x3E,0x03,0xA5,
-0x52,0x15,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x1A,0x3E,0x03,0x91,
-0x04,0x10,0x85,0x00,
-0x27,0x10,0x02,0x00,
-0x94,0x15,0x00,0x08,
-0x24,0x10,0x43,0x00,
-0xC0,0xFF,0xBD,0x27,
-0x34,0x00,0xB5,0xAF,
-0xFF,0xFF,0x95,0x30,
-0x00,0x01,0x04,0x24,
-0x38,0x00,0xB6,0xAF,
-0x28,0x00,0xB2,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x30,0x00,0xB4,0xAF,
-0x2C,0x00,0xB3,0xAF,
-0x24,0x00,0xB1,0xAF,
-0x25,0x24,0x00,0x0C,
-0x20,0x00,0xB0,0xAF,
-0x21,0x90,0x40,0x00,
-0x7A,0x00,0x40,0x10,
-0x21,0xB0,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xB0,0xE1,0x84,0x24,
-0x08,0x00,0x50,0x96,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x11,0x3C,
-0x25,0x80,0x02,0x02,
-0x88,0x58,0x31,0x26,
-0x24,0x00,0x04,0x26,
-0x21,0x28,0x20,0x02,
-0x20,0x00,0x00,0xA6,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x04,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x30,0x00,0x04,0x26,
-0x21,0x28,0x20,0x02,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0x03,0x96,
-0x18,0x00,0x02,0x24,
-0x02,0x80,0x13,0x3C,
-0x03,0xFF,0x63,0x30,
-0xB0,0x00,0x63,0x34,
-0x20,0x00,0x03,0xA6,
-0x30,0x1F,0x68,0x26,
-0x0C,0x00,0x42,0xAE,
-0xF8,0x1D,0x02,0x95,
-0x20,0x00,0x14,0x26,
-0x0C,0x00,0x51,0x26,
-0xFF,0x0F,0x43,0x30,
-0x00,0x19,0x03,0x00,
-0x02,0x22,0x03,0x00,
-0x01,0x00,0x42,0x24,
-0xF8,0x1D,0x02,0xA5,
-0x17,0x00,0x84,0xA2,
-0x16,0x00,0x83,0xA2,
-0x74,0x3D,0x04,0x8D,
-0x03,0x00,0x02,0x24,
-0x3C,0x00,0x82,0x10,
-0x38,0x00,0x10,0x26,
-0x30,0x1F,0x73,0x26,
-0x78,0x3D,0x62,0x8E,
-0x21,0x20,0x00,0x02,
-0x02,0x00,0x05,0x24,
-0x01,0x00,0x42,0x38,
-0x01,0x00,0x42,0x2C,
-0x18,0x00,0xA6,0x27,
-0x21,0x38,0x20,0x02,
-0x68,0x4F,0x00,0x0C,
-0x18,0x00,0xA2,0xA7,
-0x74,0x3D,0x63,0x8E,
-0x21,0x20,0x40,0x00,
-0x02,0x00,0x05,0x24,
-0x18,0x00,0xA6,0x27,
-0x21,0x38,0x20,0x02,
-0x68,0x4F,0x00,0x0C,
-0x18,0x00,0xA3,0xA7,
-0x21,0x20,0x40,0x00,
-0x02,0x00,0x05,0x24,
-0x18,0x00,0xA6,0x27,
-0x21,0x38,0x20,0x02,
-0x68,0x4F,0x00,0x0C,
-0x18,0x00,0xB5,0xA7,
-0x74,0x3D,0x63,0x8E,
-0x21,0x80,0x40,0x00,
-0x03,0x00,0x02,0x24,
-0x0F,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x40,0x02,
-0x21,0x30,0xC0,0x02,
-0xB9,0x0C,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x40,0x00,0xBD,0x27,
-0xB0,0x1B,0x62,0x96,
-0x00,0x00,0x00,0x00,
-0x40,0x00,0x42,0x30,
-0xEF,0xFF,0x40,0x10,
-0x21,0x20,0x40,0x02,
-0x02,0x80,0x07,0x3C,
-0x21,0x20,0x00,0x02,
-0xB8,0x5C,0xE7,0x24,
-0x10,0x00,0x05,0x24,
-0x80,0x00,0x06,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB1,0xAF,
-0x00,0x00,0x83,0x96,
-0x01,0x00,0x16,0x24,
-0x00,0x40,0x63,0x34,
-0x13,0x16,0x00,0x08,
-0x00,0x00,0x83,0xA6,
-0xB0,0x1B,0x02,0x95,
-0x00,0x00,0x00,0x00,
-0x40,0x00,0x42,0x30,
-0xC1,0xFF,0x40,0x10,
-0x21,0x20,0x00,0x02,
-0x80,0x3D,0x03,0x8D,
-0x84,0x3D,0x02,0x8D,
-0x80,0x1F,0x03,0x00,
-0x25,0x18,0x43,0x00,
-0x04,0x00,0x05,0x24,
-0x01,0x00,0x42,0x24,
-0x1C,0x00,0xA6,0x27,
-0x21,0x38,0x20,0x02,
-0x84,0x3D,0x02,0xAD,
-0x68,0x4F,0x00,0x0C,
-0x1C,0x00,0xA3,0xAF,
-0xF7,0x15,0x00,0x08,
-0x21,0x80,0x40,0x00,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0xA4,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0xF8,0xEA,0xA5,0x24,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x40,0x00,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0xB0,0x1B,0x62,0x94,
-0x01,0x00,0x05,0x24,
-0x21,0x20,0x00,0x00,
-0xEF,0xFF,0x42,0x30,
-0x20,0x00,0x42,0x34,
-0xB0,0x1B,0x62,0xA4,
-0xC8,0x00,0x02,0x24,
-0x74,0x3D,0x65,0xAC,
-0xB4,0x38,0x62,0xAC,
-0xD0,0x38,0x60,0xAC,
-0x6C,0x3D,0x60,0xAC,
-0xBC,0x15,0x00,0x08,
-0x70,0x3D,0x60,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xA8,0xFF,0xBD,0x27,
-0x50,0x00,0xBE,0xAF,
-0x40,0x00,0xB4,0xAF,
-0x3C,0x00,0xB3,0xAF,
-0x54,0x00,0xBF,0xAF,
-0x4C,0x00,0xB7,0xAF,
-0x48,0x00,0xB6,0xAF,
-0x44,0x00,0xB5,0xAF,
-0x38,0x00,0xB2,0xAF,
-0x34,0x00,0xB1,0xAF,
-0x30,0x00,0xB0,0xAF,
-0x21,0xA0,0x80,0x00,
-0x02,0x00,0x84,0x90,
-0x21,0xF0,0x00,0x00,
-0x24,0x00,0xA0,0xAF,
-0x0F,0x00,0x84,0x30,
-0xC0,0x20,0x04,0x00,
-0x21,0x20,0x94,0x00,
-0x18,0x00,0x93,0x24,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x15,0x3C,
-0x28,0x00,0x84,0x24,
-0x88,0x58,0xA5,0x26,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x0F,0x00,0x40,0x14,
-0x02,0x80,0x16,0x3C,
-0xF4,0x5E,0xC2,0x92,
-0x00,0x00,0x00,0x00,
-0x29,0x00,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0xC2,0x92,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x50,0x24,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x3C,0x01,0x40,0x14,
-0x05,0x00,0x05,0x24,
-0x00,0x60,0x92,0x40,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x70,0x24,
-0xB0,0x1B,0x03,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x10,0x62,0x30,
-0x24,0x01,0x40,0x14,
-0x10,0x00,0x62,0x30,
-0xCB,0x00,0x40,0x14,
-0x10,0x00,0x64,0x26,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x92,0x24,
-0xB0,0x1B,0x42,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x4E,0x01,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x54,0x00,0xBF,0x8F,
-0x50,0x00,0xBE,0x8F,
-0x4C,0x00,0xB7,0x8F,
-0x48,0x00,0xB6,0x8F,
-0x44,0x00,0xB5,0x8F,
-0x40,0x00,0xB4,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x58,0x00,0xBD,0x27,
-0x30,0x1F,0x43,0x24,
-0xB0,0x1B,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0xD3,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x6C,0x3B,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0xCF,0xFF,0x40,0x14,
-0x02,0x80,0x0B,0x3C,
-0x15,0x5F,0x62,0x91,
-0x00,0x00,0x00,0x00,
-0x55,0x01,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xFA,0x5E,0x40,0xA0,
-0x1C,0x5F,0x60,0xAC,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0x62,0x90,
-0xFD,0xFF,0x03,0x24,
-0x02,0x80,0x04,0x3C,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0x82,0xA0,
-0x42,0xB0,0x17,0x3C,
-0x00,0x00,0xE3,0x92,
-0xEF,0xFF,0x02,0x24,
-0x03,0x00,0xE4,0x36,
-0x24,0x18,0x62,0x00,
-0x40,0x00,0x02,0x24,
-0x00,0x00,0xE3,0xA2,
-0x00,0x00,0x82,0xA0,
-0x02,0x80,0x04,0x3C,
-0xFC,0x5E,0x82,0x94,
-0x20,0x00,0x63,0x96,
-0xFF,0xFF,0x42,0x30,
-0x0A,0x00,0x43,0x10,
-0x02,0x80,0x07,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x94,0x00,0x42,0x34,
-0xFC,0x5E,0x83,0xA4,
-0x00,0x00,0x43,0xA4,
-0xFC,0x5E,0x83,0x94,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x63,0x30,
-0x80,0x1A,0x03,0x00,
-0x00,0x5F,0xE3,0xAC,
-0x25,0xB0,0x04,0x3C,
-0x84,0x00,0x82,0x34,
-0x00,0x00,0x50,0x8C,
-0x80,0x00,0x84,0x34,
-0x00,0x00,0x82,0x8C,
-0x21,0x18,0x00,0x00,
-0x00,0x5F,0xE6,0x8C,
-0x00,0x88,0x10,0x00,
-0x21,0x80,0x00,0x00,
-0x25,0x80,0x02,0x02,
-0x25,0x88,0x23,0x02,
-0x21,0x20,0x00,0x02,
-0x21,0x28,0x20,0x02,
-0x28,0x00,0xA7,0xAF,
-0xBA,0x34,0x00,0x0C,
-0x2C,0x00,0xAB,0xAF,
-0x28,0x00,0xA7,0x8F,
-0x02,0x80,0x0A,0x3C,
-0x21,0x28,0x00,0x00,
-0x00,0x5F,0xE8,0x8C,
-0x04,0x5F,0x43,0x95,
-0x21,0x28,0xB1,0x00,
-0x23,0x48,0x02,0x01,
-0x21,0x20,0x30,0x01,
-0x2B,0x10,0x90,0x00,
-0xFF,0xFF,0x63,0x30,
-0x80,0x1A,0x03,0x00,
-0x21,0x28,0xA2,0x00,
-0x21,0x38,0x00,0x00,
-0x2B,0x40,0x83,0x00,
-0x23,0x28,0xA7,0x00,
-0x23,0x20,0x83,0x00,
-0x23,0x28,0xA8,0x00,
-0x02,0x80,0x03,0x3C,
-0x20,0x5F,0x64,0xAC,
-0x24,0x5F,0x65,0xAC,
-0x04,0x5F,0x42,0x95,
-0x2C,0x00,0xAB,0x8F,
-0xFF,0xFF,0x42,0x30,
-0x80,0x12,0x02,0x00,
-0x2B,0x10,0x49,0x00,
-0x31,0x01,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x04,0x5F,0x42,0x95,
-0x00,0x00,0xE4,0x92,
-0xFB,0xFF,0x03,0x24,
-0xFF,0xFF,0x42,0x30,
-0x80,0x12,0x02,0x00,
-0x24,0x20,0x83,0x00,
-0x23,0x48,0x22,0x01,
-0x00,0x00,0xE4,0xA2,
-0x01,0x00,0x06,0x24,
-0x04,0x00,0x20,0x11,
-0x01,0x00,0x04,0x24,
-0x80,0x10,0x09,0x00,
-0x21,0x10,0x49,0x00,
-0x80,0x30,0x02,0x00,
-0x8C,0x23,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x42,0xB0,0x02,0x3C,
-0x22,0x00,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x00,0x00,0x87,0x8E,
-0x05,0x00,0x05,0x24,
-0x24,0x00,0x64,0x26,
-0xFF,0x3F,0xE7,0x30,
-0xDC,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x20,0x00,0xA6,0x27,
-0x2E,0x00,0x40,0x10,
-0x21,0x28,0x40,0x00,
-0xF4,0x5E,0xC2,0x92,
-0x02,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0x45,0x01,0x43,0x10,
-0x02,0x80,0x07,0x3C,
-0x02,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0xA3,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x62,0x30,
-0x04,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x01,0x00,0x1E,0x24,
-0x12,0x5F,0x5E,0xA0,
-0x04,0x00,0xA3,0x90,
-0x20,0x00,0xA7,0x8F,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0xE2,0x28,
-0x18,0x00,0x40,0x14,
-0xFE,0x00,0x66,0x30,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x43,0x24,
-0x50,0x39,0x64,0x94,
-0xC0,0x10,0x06,0x00,
-0x2A,0x10,0x82,0x00,
-0x12,0x00,0x40,0x14,
-0x02,0x80,0x03,0x3C,
-0x21,0x10,0xC7,0x00,
-0xFD,0xFF,0x42,0x24,
-0xC0,0x10,0x02,0x00,
-0x2A,0x10,0x44,0x00,
-0x0C,0x00,0x40,0x14,
-0xC2,0x10,0x04,0x00,
-0x23,0x30,0x46,0x00,
-0x21,0x18,0xA6,0x00,
-0x05,0x00,0x62,0x90,
-0x07,0x00,0x84,0x30,
-0x01,0x00,0x03,0x24,
-0x07,0x10,0x82,0x00,
-0x24,0x00,0xA4,0x8F,
-0x01,0x00,0x42,0x30,
-0x0B,0x20,0x62,0x00,
-0x24,0x00,0xA4,0xAF,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0x62,0x90,
-0xEF,0xFF,0x03,0x24,
-0x02,0x80,0x04,0x3C,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0x82,0xA0,
-0xF4,0x5E,0xC3,0x92,
-0x02,0x80,0x02,0x3C,
-0x24,0xE9,0x42,0x24,
-0xFF,0x00,0x63,0x30,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x00,0x00,0x66,0x8C,
-0x24,0x00,0xA5,0x8F,
-0x09,0xF8,0xC0,0x00,
-0x21,0x20,0xC0,0x03,
-0x90,0x16,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x88,0x58,0xA5,0x26,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x33,0xFF,0x40,0x14,
-0x02,0x80,0x04,0x3C,
-0x06,0x00,0x02,0x24,
-0x0A,0x3E,0x02,0xA2,
-0xEC,0x38,0x00,0xAE,
-0x00,0x00,0x84,0x8E,
-0x0C,0x00,0x12,0x24,
-0xFF,0x3F,0x82,0x30,
-0xE8,0xFF,0x42,0x24,
-0x2A,0x10,0x42,0x02,
-0xA4,0x00,0x40,0x10,
-0x21,0xA8,0x00,0x02,
-0x7D,0x17,0x00,0x08,
-0x21,0x80,0x72,0x02,
-0x19,0x00,0x03,0x92,
-0xFF,0x3F,0x82,0x30,
-0xE8,0xFF,0x42,0x24,
-0x21,0x18,0x72,0x00,
-0x02,0x00,0x72,0x24,
-0x2A,0x10,0x42,0x02,
-0x9A,0x00,0x40,0x10,
-0x21,0x80,0x72,0x02,
-0x18,0x00,0x03,0x92,
-0xDD,0x00,0x02,0x24,
-0xF5,0xFF,0x62,0x14,
-0x1A,0x00,0x11,0x26,
-0x02,0x80,0x05,0x3C,
-0xC4,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x20,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xC0,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x1A,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xBC,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x0F,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xB8,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x09,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xB4,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x03,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xAC,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x64,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xA8,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x57,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0xB0,0xDD,0xA5,0x24,
-0x21,0x20,0x20,0x02,
-0x39,0x52,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x4A,0x01,0x40,0x10,
-0x02,0x80,0x05,0x3C,
-0x21,0x20,0x20,0x02,
-0x9C,0xDD,0xA5,0x24,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x3E,0x01,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0x84,0x8E,
-0x75,0x17,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x92,0x10,0x00,0x0C,
-0x21,0x20,0x80,0x02,
-0x21,0x18,0x00,0x00,
-0x54,0x00,0xBF,0x8F,
-0x50,0x00,0xBE,0x8F,
-0x4C,0x00,0xB7,0x8F,
-0x48,0x00,0xB6,0x8F,
-0x44,0x00,0xB5,0x8F,
-0x40,0x00,0xB4,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x58,0x00,0xBD,0x27,
-0x00,0x00,0x87,0x8E,
-0x24,0x00,0x64,0x26,
-0xFF,0x3F,0xE7,0x30,
-0xDC,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x20,0x00,0xA6,0x27,
-0xBE,0xFE,0x40,0x10,
-0x21,0x28,0x40,0x00,
-0x20,0x00,0xA7,0x8F,
-0x04,0x00,0x42,0x90,
-0x04,0x00,0xE3,0x28,
-0xB9,0xFE,0x60,0x14,
-0xFE,0x00,0x46,0x30,
-0x50,0x39,0x04,0x96,
-0xC0,0x10,0x06,0x00,
-0x2A,0x10,0x82,0x00,
-0xB4,0xFE,0x40,0x14,
-0x21,0x10,0xC7,0x00,
-0xFD,0xFF,0x42,0x24,
-0xC0,0x10,0x02,0x00,
-0x2A,0x10,0x44,0x00,
-0xAF,0xFE,0x40,0x14,
-0xC2,0x10,0x04,0x00,
-0x23,0x30,0x46,0x00,
-0x21,0x18,0xA6,0x00,
-0x05,0x00,0x62,0x90,
-0x07,0x00,0x84,0x30,
-0x07,0x10,0x82,0x00,
-0x01,0x00,0x42,0x30,
-0xA7,0xFE,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xCD,0x4E,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x90,0x16,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x88,0x58,0xA5,0x26,
-0x10,0x00,0x64,0x26,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xCB,0xFF,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0xB0,0x1B,0x43,0x96,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x62,0x30,
-0x0D,0x00,0x40,0x14,
-0x04,0x00,0x62,0x30,
-0x83,0x00,0x40,0x14,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x70,0x24,
-0x0B,0x3E,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x44,0x24,
-0xFF,0x00,0x83,0x30,
-0x0B,0x00,0x02,0x24,
-0x45,0x00,0x62,0x10,
-0x21,0x18,0x00,0x00,
-0xA1,0x16,0x00,0x08,
-0x0B,0x3E,0x04,0xA2,
-0x00,0x60,0x03,0x40,
-0x01,0x00,0x61,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xD4,0x1E,0x42,0x8E,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xD4,0x1E,0x42,0xAE,
-0x00,0x60,0x83,0x40,
-0xFB,0x17,0x00,0x08,
-0x02,0x80,0x03,0x3C,
-0x15,0x5F,0x62,0x91,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x42,0x24,
-0x15,0x5F,0x62,0xA1,
-0xBD,0x16,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x04,0x3C,
-0xFC,0xE2,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xE6,0x5D,0x46,0x90,
-0x01,0x00,0x03,0x24,
-0x10,0x00,0xC3,0x10,
-0x02,0x80,0x03,0x3C,
-0x53,0x16,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x54,0x00,0xBF,0x8F,
-0x50,0x00,0xBE,0x8F,
-0x4C,0x00,0xB7,0x8F,
-0x48,0x00,0xB6,0x8F,
-0x44,0x00,0xB5,0x8F,
-0x40,0x00,0xB4,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x58,0x00,0xBD,0x27,
-0x30,0x1F,0x64,0x24,
-0x0A,0x3E,0x83,0x90,
-0x03,0x00,0x02,0x24,
-0x62,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x91,0x3E,0x86,0xA0,
-0x53,0x16,0x00,0x0C,
-0x90,0x3E,0x80,0xA0,
-0x21,0x18,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x62,0x91,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x62,0x91,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x15,0x5F,0x62,0xA1,
-0x00,0x00,0xE2,0x92,
-0xFB,0xFF,0x03,0x24,
-0x01,0x00,0x06,0x24,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0xE2,0xA2,
-0x11,0x17,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xE6,0x5D,0x43,0x90,
-0x01,0x00,0x11,0x24,
-0x53,0x00,0x71,0x10,
-0x0B,0x3E,0x00,0xA2,
-0x02,0x80,0x02,0x3C,
-0xEA,0x5D,0x44,0x90,
-0x02,0x00,0x03,0x24,
-0x6E,0xFF,0x83,0x14,
-0x21,0x18,0x00,0x00,
-0x00,0x00,0x87,0x8E,
-0x24,0x00,0x64,0x26,
-0x2A,0x00,0x05,0x24,
-0xFF,0x3F,0xE7,0x30,
-0xDC,0xFF,0xE7,0x24,
-0x55,0x1D,0x00,0x0C,
-0x20,0x00,0xA6,0x27,
-0x65,0xFF,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x02,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x62,0x30,
-0x4D,0x00,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x01,0x00,0x62,0x30,
-0x4B,0x00,0x40,0x14,
-0x30,0x1F,0x85,0x24,
-0x02,0x80,0x02,0x3C,
-0xEB,0x5D,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0xAA,0x00,0x71,0x10,
-0x00,0x00,0x00,0x00,
-0x10,0x23,0x02,0x8E,
-0xFF,0xEF,0x03,0x24,
-0x00,0x08,0x42,0x34,
-0x24,0x10,0x43,0x00,
-0x10,0x23,0x02,0xAE,
-0xBE,0x17,0x00,0x08,
-0x21,0x18,0x00,0x00,
-0x03,0x00,0xA2,0x90,
-0x02,0x80,0x04,0x3C,
-0x10,0x5F,0xE2,0xA0,
-0x02,0x00,0xA3,0x90,
-0x21,0x30,0x80,0x00,
-0x11,0x5F,0x83,0xA0,
-0x11,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x22,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x10,0x5F,0xE2,0x90,
-0x00,0x00,0x00,0x00,
-0x11,0x5F,0xC2,0xA0,
-0x2A,0x17,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x76,0x26,
-0x3B,0x51,0x00,0x0C,
-0x21,0x20,0xC0,0x02,
-0x20,0x00,0x10,0x24,
-0x32,0x00,0x50,0x10,
-0x21,0xA8,0x40,0x00,
-0x00,0x60,0x05,0x40,
-0x01,0x00,0xA1,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x80,0x18,0x15,0x00,
-0x21,0x18,0x75,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x44,0x24,
-0xC0,0x18,0x03,0x00,
-0x21,0x18,0x64,0x00,
-0x0C,0x1E,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x0C,0x1E,0x62,0xAC,
-0x00,0x60,0x85,0x40,
-0xBE,0x17,0x00,0x08,
-0x21,0x18,0x00,0x00,
-0x90,0x3E,0x86,0xA0,
-0x53,0x16,0x00,0x0C,
-0x91,0x3E,0x80,0xA0,
-0x21,0x18,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x11,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x11,0x5F,0xC2,0xA0,
-0x2A,0x17,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x64,0x12,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x4D,0x18,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x04,0x3C,
-0x01,0x00,0x02,0x24,
-0x90,0xE2,0x84,0x24,
-0x18,0x18,0x00,0x08,
-0x0A,0x3E,0xA2,0xA2,
-0x02,0x80,0x04,0x3C,
-0x78,0xE2,0x84,0x24,
-0x18,0x18,0x00,0x08,
-0x0A,0x3E,0xA0,0xA2,
-0x30,0x1F,0x85,0x24,
-0x10,0x23,0xA2,0x8C,
-0xFF,0xEF,0x03,0x24,
-0xFF,0xF7,0x04,0x24,
-0x24,0x10,0x43,0x00,
-0x24,0x10,0x44,0x00,
-0x21,0x18,0x00,0x00,
-0xBE,0x17,0x00,0x08,
-0x10,0x23,0xA2,0xAC,
-0xFF,0xFF,0x04,0x24,
-0xE3,0x50,0x00,0x0C,
-0x21,0x28,0xC0,0x02,
-0xCB,0xFF,0x50,0x10,
-0x21,0xA8,0x40,0x00,
-0x00,0x00,0x87,0x8E,
-0x24,0x00,0x70,0x26,
-0x21,0x20,0x00,0x02,
-0xFF,0x3F,0xE7,0x30,
-0xDC,0xFF,0xE7,0x24,
-0x01,0x00,0x05,0x24,
-0x55,0x1D,0x00,0x0C,
-0x20,0x00,0xA6,0x27,
-0xDF,0xFD,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x20,0x00,0xA6,0x8F,
-0x02,0x00,0x45,0x24,
-0x10,0x52,0x00,0x0C,
-0x10,0x00,0xA4,0x27,
-0x00,0x00,0x87,0x8E,
-0x21,0x20,0x00,0x02,
-0x32,0x00,0x05,0x24,
-0xFF,0x3F,0xE7,0x30,
-0xDC,0xFF,0xE7,0x24,
-0x20,0x00,0xB1,0x8F,
-0x55,0x1D,0x00,0x0C,
-0x20,0x00,0xA6,0x27,
-0x09,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0xA6,0x8F,
-0x10,0x00,0xA4,0x27,
-0x21,0x20,0x91,0x00,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x45,0x24,
-0x20,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0x88,0x23,0x02,
-0x10,0x00,0xA4,0x27,
-0x7D,0x50,0x00,0x0C,
-0x21,0x28,0x20,0x02,
-0x0F,0x00,0x42,0x30,
-0x00,0x81,0x15,0x00,
-0x21,0x28,0x20,0x02,
-0x10,0x00,0xA4,0x27,
-0x25,0x80,0x02,0x02,
-0xC2,0x50,0x00,0x0C,
-0xFF,0xFF,0x10,0x32,
-0x02,0x80,0x04,0x3C,
-0x21,0x88,0x40,0x00,
-0x21,0x38,0x40,0x00,
-0x21,0x28,0xA0,0x02,
-0x21,0x30,0x00,0x02,
-0x2F,0x55,0x00,0x0C,
-0x10,0xE3,0x84,0x24,
-0x21,0x20,0x00,0x02,
-0xC1,0x5B,0x00,0x0C,
-0x21,0x28,0x20,0x02,
-0x8E,0x3E,0x42,0x92,
-0x21,0x20,0xC0,0x02,
-0x21,0x28,0xA0,0x02,
-0x01,0x00,0x42,0x24,
-0x9C,0x0E,0x00,0x0C,
-0x8E,0x3E,0x42,0xA2,
-0x83,0x18,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x43,0x24,
-0xE4,0xE2,0x84,0x24,
-0x05,0x00,0x02,0x24,
-0x18,0x18,0x00,0x08,
-0x0A,0x3E,0x62,0xA0,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x43,0x24,
-0xD0,0xE2,0x84,0x24,
-0x02,0x00,0x02,0x24,
-0x18,0x18,0x00,0x08,
-0x0A,0x3E,0x62,0xA0,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x43,0x24,
-0xBC,0xE2,0x84,0x24,
-0x04,0x00,0x02,0x24,
-0x18,0x18,0x00,0x08,
-0x0A,0x3E,0x62,0xA0,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x43,0x24,
-0xA8,0xE2,0x84,0x24,
-0x03,0x00,0x02,0x24,
-0x18,0x18,0x00,0x08,
-0x0A,0x3E,0x62,0xA0,
-0x10,0x23,0x02,0x8E,
-0xFF,0xF7,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x00,0x10,0x42,0x34,
-0x6C,0x18,0x00,0x08,
-0x10,0x23,0x02,0xAE,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x10,0x3C,
-0x30,0x1F,0x02,0x26,
-0x14,0x00,0xBF,0xAF,
-0xB0,0x1B,0x43,0x94,
-0x21,0x28,0x00,0x00,
-0x00,0x01,0x62,0x30,
-0x03,0x00,0x40,0x10,
-0x01,0x00,0x64,0x30,
-0x06,0x00,0x80,0x14,
-0x00,0x10,0x62,0x30,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0xA0,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x08,0x00,0x40,0x14,
-0x02,0x00,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xF6,0x5E,0x43,0x90,
-0x0C,0x00,0x02,0x24,
-0x0F,0x00,0x63,0x30,
-0x0A,0x00,0x62,0x10,
-0x21,0x20,0x00,0x00,
-0x02,0x00,0x03,0x3C,
-0x30,0x1F,0x04,0x26,
-0x20,0xBF,0x63,0x34,
-0x08,0x39,0x83,0xAC,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0xA0,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xCD,0x4E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x03,0x3C,
-0x30,0x1F,0x04,0x26,
-0x20,0xBF,0x63,0x34,
-0x33,0x19,0x00,0x08,
-0x08,0x39,0x83,0xAC,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x25,0x26,
-0x6C,0x3B,0xA2,0x8C,
-0x00,0x10,0x03,0x3C,
-0x24,0x10,0x43,0x00,
-0x21,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x9B,0x3B,0xA6,0x90,
-0x9C,0x3B,0xA4,0x90,
-0xFF,0x00,0xC3,0x30,
-0x40,0x10,0x03,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x01,0x00,0x84,0x24,
-0x80,0x10,0x02,0x00,
-0xFF,0x00,0x83,0x30,
-0x21,0x10,0x45,0x00,
-0x21,0x10,0x43,0x00,
-0x9C,0x3B,0xA4,0xA0,
-0x38,0x3B,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x21,0x00,0x60,0x10,
-0x01,0x00,0xC2,0x24,
-0xFF,0x00,0xC2,0x30,
-0x22,0x00,0x40,0x14,
-0x30,0x1F,0x30,0x26,
-0x9C,0x3B,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x45,0x00,
-0x38,0x3B,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x64,0x30,
-0x1A,0x00,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0x67,0x3B,0xA2,0x90,
-0x30,0x3B,0xA3,0xA0,
-0x4F,0x0C,0x00,0x0C,
-0x31,0x3B,0xA2,0xA0,
-0x30,0x1F,0x30,0x26,
-0x70,0x3B,0x03,0x8E,
-0x01,0x00,0x02,0x24,
-0x7C,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x6C,0x3B,0x03,0x8E,
-0x00,0x10,0x02,0x3C,
-0x3C,0x00,0x04,0x24,
-0x26,0x18,0x62,0x00,
-0x98,0x38,0x04,0xAE,
-0x6C,0x3B,0x03,0xAE,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x21,0x30,0x40,0x00,
-0x9B,0x3B,0xA2,0xA0,
-0x5C,0x19,0x00,0x08,
-0x9C,0x3B,0xA0,0xA0,
-0x99,0x3B,0x03,0x92,
-0x9A,0x3B,0x02,0x92,
-0xFF,0x00,0x64,0x30,
-0x30,0x3B,0x03,0xA2,
-0x4F,0x0C,0x00,0x0C,
-0x31,0x3B,0x02,0xA2,
-0xB0,0x1B,0x03,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x62,0x30,
-0x09,0x00,0x40,0x10,
-0x01,0x00,0x62,0x30,
-0x08,0x00,0x40,0x10,
-0x30,0x1F,0x30,0x26,
-0x02,0x80,0x02,0x3C,
-0xF6,0x5E,0x43,0x90,
-0x0C,0x00,0x02,0x24,
-0x0F,0x00,0x63,0x30,
-0x61,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x30,0x26,
-0x9E,0x3B,0x04,0x96,
-0xA0,0x3B,0x05,0x92,
-0x12,0x0D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xC1,0x48,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x6C,0x3B,0x00,0xAE,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x3F,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x3C,0x00,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x41,0x00,0x40,0x14,
-0x04,0x00,0x04,0x24,
-0x02,0x80,0x03,0x3C,
-0x15,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x15,0x5F,0x62,0xA0,
-0x00,0x60,0x92,0x40,
-0x25,0xB0,0x07,0x3C,
-0x30,0x1F,0x30,0x26,
-0xB0,0x1B,0x04,0x96,
-0x48,0x00,0xE6,0x34,
-0x00,0x00,0xC3,0x8C,
-0xFF,0xEF,0x84,0x30,
-0x80,0x00,0x02,0x3C,
-0x25,0x18,0x62,0x00,
-0x00,0x01,0x85,0x30,
-0x00,0x00,0xC3,0xAC,
-0x02,0x80,0x08,0x3C,
-0x05,0x00,0xA0,0x10,
-0xB0,0x1B,0x04,0xA6,
-0x00,0x00,0xC2,0x8C,
-0x04,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0xC2,0xAC,
-0x30,0x1F,0x02,0x8D,
-0xFF,0xF0,0x03,0x24,
-0xA1,0x3B,0x05,0x92,
-0x24,0x10,0x43,0x00,
-0x00,0x01,0x42,0x34,
-0x0F,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x10,0x00,0x42,0x34,
-0xF0,0xFF,0x03,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x24,0x10,0x43,0x00,
-0x4C,0x00,0xE3,0x34,
-0x01,0x00,0x42,0x34,
-0x00,0x00,0x65,0xA0,
-0x64,0x03,0xE4,0x34,
-0x07,0x00,0x03,0x24,
-0x20,0x00,0xBD,0x27,
-0x30,0x1F,0x02,0xAD,
-0x00,0x00,0x83,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x15,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x01,0x00,0x05,0x24,
-0x64,0x31,0x00,0x0C,
-0xFF,0x00,0x84,0x30,
-0xB8,0x19,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x13,0x0F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x70,0x19,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0xB0,0x19,0x00,0x08,
-0x02,0x80,0x03,0x3C,
-0xCD,0x4E,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x94,0x19,0x00,0x08,
-0x30,0x1F,0x30,0x26,
-0x0C,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x3F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x17,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x24,0x08,0x42,0x34,
-0x00,0x00,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x02,0x63,0x30,
-0x15,0x00,0x60,0x14,
-0x01,0x00,0x02,0x24,
-0x05,0x00,0xA3,0x90,
-0x00,0x00,0x00,0x00,
-0x82,0x21,0x03,0x00,
-0x28,0x00,0x82,0x10,
-0xF5,0xFF,0x02,0x24,
-0x02,0x00,0x82,0x28,
-0x3B,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0x2F,0x00,0x82,0x10,
-0xE9,0xFF,0x02,0x24,
-0x03,0x00,0x02,0x24,
-0x24,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x05,0x00,0xC2,0x24,
-0x04,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x42,0x10,0x02,0x00,
-0x08,0x00,0xE0,0x03,
-0x96,0xFF,0x42,0x24,
-0x05,0x00,0xA3,0x90,
-0x00,0x00,0x00,0x00,
-0x60,0x00,0x64,0x30,
-0x42,0x21,0x04,0x00,
-0x0F,0x00,0x82,0x10,
-0x1F,0x00,0x62,0x30,
-0x02,0x00,0x82,0x28,
-0x1F,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0x16,0x00,0x82,0x10,
-0x1F,0x00,0x62,0x30,
-0x03,0x00,0x02,0x24,
-0xEC,0xFF,0x82,0x14,
-0x00,0x00,0x00,0x00,
-0x1F,0x00,0x62,0x30,
-0x40,0x10,0x02,0x00,
-0xDD,0xFF,0x03,0x24,
-0x23,0x30,0x62,0x00,
-0x08,0x00,0xE0,0x03,
-0x05,0x00,0xC2,0x24,
-0x40,0x10,0x02,0x00,
-0xF5,0xFF,0x03,0x24,
-0x2A,0x1A,0x00,0x08,
-0x23,0x30,0x62,0x00,
-0x3E,0x00,0x63,0x30,
-0x23,0x30,0x43,0x00,
-0x08,0x00,0xE0,0x03,
-0x05,0x00,0xC2,0x24,
-0x3E,0x00,0x63,0x30,
-0xDD,0xFF,0x02,0x24,
-0x32,0x1A,0x00,0x08,
-0x23,0x30,0x43,0x00,
-0x40,0x10,0x02,0x00,
-0xE9,0xFF,0x03,0x24,
-0x2A,0x1A,0x00,0x08,
-0x23,0x30,0x62,0x00,
-0x3E,0x00,0x63,0x30,
-0x32,0x1A,0x00,0x08,
-0x23,0x30,0x43,0x00,
-0xD1,0xFF,0x80,0x14,
-0x00,0x00,0x00,0x00,
-0x1F,0x00,0x62,0x30,
-0x40,0x10,0x02,0x00,
-0xF8,0xFF,0x03,0x24,
-0x2A,0x1A,0x00,0x08,
-0x23,0x30,0x62,0x00,
-0xCA,0xFF,0x80,0x14,
-0x00,0x00,0x00,0x00,
-0x3E,0x00,0x63,0x30,
-0xF8,0xFF,0x02,0x24,
-0x32,0x1A,0x00,0x08,
-0x23,0x30,0x43,0x00,
-0x63,0x00,0x82,0x24,
-0x77,0x00,0x42,0x2C,
-0x00,0x00,0x85,0x28,
-0x04,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x64,0x00,0x82,0x24,
-0x64,0x00,0x03,0x24,
-0x0B,0x18,0x45,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x02,0x80,0x09,0x3C,
-0x30,0x1F,0x28,0x25,
-0x80,0x36,0x06,0x8D,
-0xFF,0xFF,0x02,0x34,
-0x3F,0x00,0xC2,0x10,
-0x21,0x38,0x80,0x00,
-0x2B,0x10,0xC7,0x00,
-0x30,0x00,0x40,0x10,
-0x02,0x19,0x06,0x00,
-0x21,0x10,0xC7,0x00,
-0x23,0x10,0x43,0x00,
-0x10,0x00,0x46,0x24,
-0x80,0x36,0x06,0xAD,
-0x30,0x1F,0x26,0x25,
-0x04,0x00,0xC4,0x8C,
-0x84,0x36,0x02,0xAD,
-0xFF,0xFF,0x02,0x34,
-0x2F,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x87,0x00,
-0x1F,0x00,0x40,0x10,
-0x02,0x19,0x04,0x00,
-0x21,0x10,0x87,0x00,
-0x23,0x10,0x43,0x00,
-0x10,0x00,0x44,0x24,
-0x04,0x00,0xC4,0xAC,
-0x84,0x36,0xC2,0xAC,
-0xC0,0x10,0x05,0x00,
-0x21,0x10,0x45,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x45,0x00,
-0x30,0x1F,0x23,0x25,
-0x80,0x10,0x02,0x00,
-0x21,0x28,0x43,0x00,
-0x0C,0x24,0xA6,0x8C,
-0x00,0x21,0x07,0x00,
-0xFF,0xFF,0xC2,0x38,
-0x0A,0x30,0x82,0x00,
-0x2B,0x18,0xC7,0x00,
-0x07,0x00,0x60,0x10,
-0x21,0x10,0xC7,0x00,
-0x02,0x19,0x06,0x00,
-0x23,0x10,0x43,0x00,
-0x10,0x00,0x46,0x24,
-0x0C,0x24,0xA6,0xAC,
-0x08,0x00,0xE0,0x03,
-0x10,0x24,0xA2,0xAC,
-0x02,0x19,0x06,0x00,
-0x23,0x10,0x43,0x00,
-0x0C,0x24,0xA2,0xAC,
-0x08,0x00,0xE0,0x03,
-0x10,0x24,0xA2,0xAC,
-0x21,0x10,0x87,0x00,
-0x23,0x10,0x43,0x00,
-0x70,0x1A,0x00,0x08,
-0x04,0x00,0xC2,0xAC,
-0x21,0x10,0xC7,0x00,
-0x30,0x1F,0x26,0x25,
-0x04,0x00,0xC4,0x8C,
-0x23,0x10,0x43,0x00,
-0x80,0x36,0x02,0xAD,
-0x84,0x36,0x02,0xAD,
-0xFF,0xFF,0x02,0x34,
-0xD4,0xFF,0x82,0x14,
-0x2B,0x10,0x87,0x00,
-0x00,0x21,0x07,0x00,
-0x69,0x1A,0x00,0x08,
-0x04,0x00,0xC4,0xAC,
-0x00,0x31,0x04,0x00,
-0x5C,0x1A,0x00,0x08,
-0x80,0x36,0x06,0xAD,
-0xA0,0xFF,0xBD,0x27,
-0x54,0x00,0xB7,0xAF,
-0x5C,0x00,0xBF,0xAF,
-0x58,0x00,0xBE,0xAF,
-0x50,0x00,0xB6,0xAF,
-0x4C,0x00,0xB5,0xAF,
-0x48,0x00,0xB4,0xAF,
-0x44,0x00,0xB3,0xAF,
-0x40,0x00,0xB2,0xAF,
-0x3C,0x00,0xB1,0xAF,
-0x38,0x00,0xB0,0xAF,
-0x02,0x80,0x17,0x3C,
-0x02,0x80,0x02,0x3C,
-0x64,0x57,0x45,0x8C,
-0x00,0x80,0x04,0x3C,
-0x74,0x6A,0x83,0x24,
-0x64,0x57,0x44,0x24,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x7F,0x00,0xA4,0x10,
-0x02,0x80,0x09,0x3C,
-0x02,0x80,0x02,0x3C,
-0x40,0xEB,0x29,0x25,
-0x44,0xEB,0x42,0x24,
-0x00,0x00,0x35,0x8D,
-0x00,0x00,0x53,0x8C,
-0x02,0x80,0x03,0x3C,
-0x48,0xEB,0x63,0x24,
-0x00,0x00,0x7E,0x8C,
-0x34,0x38,0xB4,0x8E,
-0x21,0x20,0x00,0x00,
-0x21,0xB0,0x00,0x00,
-0x08,0x00,0x82,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x62,0xAE,
-0x08,0x00,0x83,0x96,
-0x02,0x80,0x02,0x3C,
-0xB0,0x01,0x00,0x0C,
-0x25,0x90,0x62,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xAC,0x1B,0xA3,0x96,
-0xD0,0x37,0xA2,0x8E,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0xC2,0xAF,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0xF4,0x1A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x17,0x00,0xC7,0x90,
-0x16,0x00,0xC8,0x90,
-0x32,0x3B,0xA2,0x96,
-0xFF,0x00,0xE3,0x30,
-0x00,0x1A,0x03,0x00,
-0xFF,0x00,0x05,0x31,
-0x25,0x18,0x65,0x00,
-0xB7,0x00,0x43,0x10,
-0x24,0xE3,0x24,0x25,
-0xFF,0x00,0xE2,0x30,
-0xFF,0x00,0x03,0x31,
-0x00,0x12,0x02,0x00,
-0x25,0x10,0x43,0x00,
-0x32,0x3B,0xA2,0xA6,
-0x01,0x00,0xC4,0x90,
-0x00,0x00,0xC2,0x90,
-0x00,0x22,0x04,0x00,
-0x88,0x0C,0x00,0x0C,
-0x25,0x20,0x82,0x00,
-0x40,0x18,0x02,0x00,
-0x21,0x18,0x62,0x00,
-0x80,0x18,0x03,0x00,
-0x94,0xDE,0xE2,0x26,
-0x21,0x18,0x62,0x00,
-0x08,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x09,0xF8,0x40,0x00,
-0x21,0x20,0x20,0x02,
-0x0C,0x00,0x82,0x8E,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0xC2,0x02,
-0x2C,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x42,0x8E,
-0x21,0x88,0x40,0x02,
-0x42,0x1B,0x02,0x00,
-0x78,0x00,0x63,0x30,
-0x02,0x26,0x02,0x00,
-0xFF,0x3F,0x42,0x30,
-0x21,0x10,0x43,0x00,
-0x03,0x00,0x84,0x30,
-0x21,0x10,0x44,0x00,
-0x18,0x00,0x42,0x24,
-0xFF,0xFF,0x50,0x30,
-0x7F,0x00,0x02,0x32,
-0x80,0x00,0x03,0x26,
-0x00,0x00,0x70,0xAE,
-0x02,0x00,0x40,0x10,
-0x80,0xFF,0x05,0x32,
-0x80,0xFF,0x65,0x30,
-0x00,0x00,0x65,0xAE,
-0x02,0x00,0x22,0x96,
-0x21,0x18,0xC5,0x02,
-0xFF,0xFF,0x76,0x30,
-0x0F,0x00,0x42,0x30,
-0x00,0x00,0x62,0xAE,
-0x00,0x00,0x23,0x8E,
-0x21,0x90,0x45,0x02,
-0x42,0x13,0x03,0x00,
-0x78,0x00,0x42,0x30,
-0x02,0x1E,0x03,0x00,
-0x21,0x10,0x51,0x00,
-0x03,0x00,0x63,0x30,
-0x21,0x10,0x43,0x00,
-0x18,0x00,0x46,0x24,
-0x00,0x00,0x66,0xAE,
-0x01,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x12,0x02,0x00,
-0x00,0x08,0x42,0x30,
-0xB9,0xFF,0x40,0x14,
-0x02,0x80,0x09,0x3C,
-0x16,0x00,0xC8,0x90,
-0x17,0x00,0xC7,0x90,
-0xDD,0x1A,0x00,0x08,
-0xFF,0x00,0xE2,0x30,
-0x00,0x60,0x10,0x40,
-0x01,0x00,0x01,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x04,0x00,0x83,0x8E,
-0x00,0x00,0x82,0x8E,
-0x21,0x20,0x80,0x02,
-0x00,0x00,0x62,0xAC,
-0x04,0x00,0x43,0xAC,
-0x00,0x00,0x94,0xAE,
-0x3D,0x24,0x00,0x0C,
-0x04,0x00,0x94,0xAE,
-0x00,0x60,0x90,0x40,
-0x02,0x80,0x02,0x3C,
-0x64,0x57,0x43,0x8C,
-0x64,0x57,0x42,0x24,
-0x8B,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x40,0xEB,0x63,0x24,
-0x00,0x00,0x71,0x8C,
-0x25,0xB0,0x10,0x3C,
-0x04,0x01,0x02,0x36,
-0x00,0x00,0x43,0x8C,
-0xE8,0x37,0x27,0x8E,
-0x00,0x00,0x00,0x00,
-0xC8,0x00,0xE3,0x10,
-0xEC,0x37,0x23,0xAE,
-0x2B,0x10,0x67,0x00,
-0xD2,0x00,0x40,0x14,
-0x2B,0x10,0xE3,0x00,
-0x08,0x01,0x40,0x14,
-0x02,0x80,0x09,0x3C,
-0x30,0x1F,0x24,0x25,
-0xBC,0x37,0x83,0x94,
-0x02,0x80,0x02,0x3C,
-0x21,0x80,0x00,0x00,
-0x2F,0x00,0xC0,0x1A,
-0x25,0xA8,0x62,0x00,
-0x21,0x98,0x80,0x00,
-0x21,0x90,0x00,0x00,
-0x01,0x00,0x1E,0x24,
-0x21,0x88,0x55,0x02,
-0x00,0x00,0x22,0x8E,
-0x98,0x3E,0x63,0x8E,
-0xFF,0x3F,0x42,0x30,
-0x21,0x18,0x62,0x00,
-0x98,0x3E,0x63,0xAE,
-0x00,0x60,0x04,0x40,
-0x01,0x00,0x81,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xD4,0x1E,0x62,0x8E,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xD4,0x1E,0x62,0xAE,
-0x00,0x60,0x84,0x40,
-0x04,0x00,0x22,0x8E,
-0x02,0x00,0x03,0x24,
-0x02,0x17,0x02,0x00,
-0x03,0x00,0x42,0x30,
-0x39,0x00,0x43,0x10,
-0x02,0x80,0x03,0x3C,
-0x21,0x10,0x55,0x02,
-0x00,0x00,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x60,0x10,
-0x01,0x00,0x02,0x26,
-0x04,0x00,0x22,0x8E,
-0x00,0xF0,0x03,0x3C,
-0x00,0x20,0x04,0x3C,
-0x24,0x10,0x43,0x00,
-0x10,0x00,0x44,0x10,
-0x02,0x80,0x09,0x3C,
-0x06,0x00,0x02,0x26,
-0x00,0x00,0x23,0x8E,
-0xFF,0xFF,0x50,0x30,
-0x82,0x16,0x03,0x00,
-0x01,0x00,0x42,0x30,
-0x52,0x00,0x5E,0x10,
-0x02,0x80,0x04,0x3C,
-0x80,0x90,0x10,0x00,
-0x2A,0x10,0x56,0x02,
-0xD7,0xFF,0x40,0x14,
-0x21,0x88,0x55,0x02,
-0x3D,0x24,0x00,0x0C,
-0x21,0x20,0x80,0x02,
-0x08,0x1C,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x40,0xEB,0x29,0x25,
-0x00,0x00,0x25,0x8D,
-0x00,0x00,0x00,0x00,
-0xD4,0x1D,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xD4,0x1D,0xA2,0xAC,
-0x0C,0x00,0x24,0x8E,
-0x0C,0x00,0x02,0x24,
-0x3F,0x00,0x83,0x30,
-0xBD,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x02,0x24,
-0xB3,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x3F,0x00,0x83,0x30,
-0x0E,0x00,0x02,0x24,
-0xE0,0xFF,0x62,0x14,
-0x06,0x00,0x02,0x26,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0xE0,0x1D,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x69,0x1B,0x00,0x08,
-0xE0,0x1D,0x62,0xAC,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEF,0x1A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xF4,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xC6,0xFF,0x40,0x10,
-0x21,0x10,0x55,0x02,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xF4,0x5E,0x62,0x90,
-0x02,0x80,0x04,0x3C,
-0xF8,0xE8,0x85,0x24,
-0xFF,0x00,0x42,0x30,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x45,0x00,
-0x00,0x00,0x43,0x8C,
-0x00,0x00,0x24,0x8E,
-0x04,0x00,0x25,0x8E,
-0x09,0xF8,0x60,0x00,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x09,0x3C,
-0xF6,0x5E,0x22,0x91,
-0x0C,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x10,
-0x02,0x80,0x03,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x5F,0x1B,0x00,0x08,
-0x21,0x10,0x55,0x02,
-0x0D,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xF8,0xFF,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x13,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x13,0x5F,0x82,0xA0,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x5F,0x1B,0x00,0x08,
-0x21,0x10,0x55,0x02,
-0x30,0x1F,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x0F,0x00,0x42,0x30,
-0x05,0x00,0x5E,0x10,
-0xC2,0x13,0x03,0x00,
-0x1E,0x00,0x42,0x30,
-0x21,0x10,0x50,0x00,
-0x70,0x1B,0x00,0x08,
-0xFF,0xFF,0x50,0x30,
-0x02,0x00,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0x1C,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x23,0x8E,
-0x00,0x00,0x00,0x00,
-0x02,0x14,0x03,0x00,
-0x0F,0x00,0x42,0x30,
-0x14,0x00,0x40,0x14,
-0x02,0x17,0x03,0x00,
-0x03,0x00,0x44,0x30,
-0x08,0x00,0x80,0x10,
-0x00,0xC0,0x02,0x3C,
-0x24,0x10,0x62,0x00,
-0x0E,0x00,0x40,0x14,
-0x03,0x00,0x02,0x24,
-0x0C,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0x80,0x28,0x10,0x00,
-0x21,0x28,0xB5,0x00,
-0xF7,0x19,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x4C,0x1A,0x00,0x0C,
-0x21,0x20,0x40,0x00,
-0x21,0x20,0x40,0x00,
-0x56,0x1A,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x02,0x00,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0x8B,0x00,0x5E,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x63,0x92,
-0x02,0x00,0x02,0x24,
-0x71,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x63,0x30,
-0x08,0x00,0x7E,0x10,
-0xD0,0x02,0x02,0x24,
-0x00,0x00,0x23,0x8E,
-0x00,0x00,0x00,0x00,
-0xC2,0x13,0x03,0x00,
-0x1E,0x00,0x42,0x30,
-0x21,0x10,0x50,0x00,
-0x70,0x1B,0x00,0x08,
-0xFF,0xFF,0x50,0x30,
-0x80,0x36,0x62,0xAE,
-0x00,0x00,0x23,0x8E,
-0xFA,0x1B,0x00,0x08,
-0xC2,0x13,0x03,0x00,
-0x02,0x80,0x09,0x3C,
-0x00,0x01,0x02,0x36,
-0x30,0x1F,0x29,0x25,
-0x00,0x00,0x47,0xAC,
-0xE8,0x37,0x27,0xAD,
-0x02,0x80,0x02,0x3C,
-0x08,0x04,0x44,0x24,
-0x21,0x28,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x91,0x3C,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0xAA,0x1A,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0xF0,0x37,0x22,0x8E,
-0xFF,0xFF,0x73,0x30,
-0x23,0x10,0x47,0x00,
-0xFF,0xFF,0x52,0x30,
-0x21,0x18,0x53,0x02,
-0xFF,0xFF,0x76,0x30,
-0x25,0x24,0x00,0x0C,
-0x21,0x20,0xC0,0x02,
-0xEF,0xFF,0x40,0x10,
-0x21,0xA0,0x40,0x00,
-0x08,0x00,0x42,0x8C,
-0xE8,0x37,0x26,0x8E,
-0x21,0x38,0x40,0x02,
-0x21,0x18,0x56,0x00,
-0xB8,0x37,0x23,0xAE,
-0x21,0x28,0x40,0x00,
-0x08,0x00,0x04,0x24,
-0xBC,0x37,0x22,0xAE,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x08,0x00,0x04,0x24,
-0xBC,0x37,0x25,0x8E,
-0x24,0x10,0x02,0x3C,
-0x00,0x01,0x10,0x36,
-0x00,0x00,0x02,0xAE,
-0x21,0x38,0x60,0x02,
-0x21,0x28,0xB2,0x00,
-0x08,0x00,0x04,0x24,
-0x24,0x10,0x06,0x3C,
-0xE8,0x37,0x22,0xAE,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xEC,0x37,0x23,0x8E,
-0x08,0x00,0x04,0x24,
-0xB0,0x01,0x00,0x0C,
-0xE8,0x37,0x23,0xAE,
-0xE8,0x37,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x02,0xAE,
-0x40,0x1B,0x00,0x08,
-0x02,0x80,0x09,0x3C,
-0xDC,0x1D,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xDC,0x1D,0xA2,0xAC,
-0x0C,0x00,0x24,0x8E,
-0x88,0x1B,0x00,0x08,
-0x3F,0x00,0x83,0x30,
-0xD8,0x1D,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xD8,0x1D,0xA2,0xAC,
-0x0C,0x00,0x24,0x8E,
-0x84,0x1B,0x00,0x08,
-0x3F,0x00,0x83,0x30,
-0x23,0x10,0x67,0x00,
-0xFF,0xFF,0x56,0x30,
-0x25,0x24,0x00,0x0C,
-0x21,0x20,0xC0,0x02,
-0x4A,0x00,0x40,0x10,
-0x21,0xA0,0x40,0x00,
-0x08,0x00,0x42,0x8C,
-0xE8,0x37,0x26,0x8E,
-0x08,0x00,0x04,0x24,
-0x21,0x18,0x56,0x00,
-0xB8,0x37,0x23,0xAE,
-0x21,0x28,0x40,0x00,
-0x21,0x38,0xC0,0x02,
-0xBC,0x37,0x22,0xAE,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xEC,0x37,0x23,0x8E,
-0x08,0x00,0x04,0x24,
-0xB0,0x01,0x00,0x0C,
-0xE8,0x37,0x23,0xAE,
-0xE8,0x37,0x23,0x8E,
-0x00,0x01,0x02,0x36,
-0x00,0x00,0x43,0xAC,
-0x40,0x1B,0x00,0x08,
-0x02,0x80,0x09,0x3C,
-0x04,0x00,0x23,0x8E,
-0x00,0x00,0x00,0x00,
-0x02,0x14,0x03,0x00,
-0x0F,0x00,0x42,0x30,
-0x08,0x00,0x42,0x28,
-0x8B,0xFF,0x40,0x10,
-0x25,0xB0,0x02,0x3C,
-0x02,0x17,0x03,0x00,
-0x03,0x00,0x42,0x30,
-0x86,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x80,0x28,0x10,0x00,
-0x21,0x28,0xB5,0x00,
-0xF7,0x19,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x4C,0x1A,0x00,0x0C,
-0x21,0x20,0x40,0x00,
-0x21,0x20,0x40,0x00,
-0x56,0x1A,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0xF1,0x1B,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x04,0x00,0x23,0x8E,
-0x00,0x00,0x00,0x00,
-0x02,0x14,0x03,0x00,
-0x0F,0x00,0x42,0x30,
-0x08,0x00,0x42,0x28,
-0x06,0x00,0x40,0x10,
-0x00,0xC0,0x02,0x3C,
-0x02,0x17,0x03,0x00,
-0x03,0x00,0x42,0x30,
-0x0C,0x00,0x40,0x10,
-0x80,0x28,0x10,0x00,
-0x00,0xC0,0x02,0x3C,
-0x24,0x10,0x62,0x00,
-0x68,0xFF,0x40,0x14,
-0x02,0x17,0x03,0x00,
-0x03,0x00,0x42,0x30,
-0x03,0x00,0x03,0x24,
-0x64,0xFF,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x62,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x80,0x28,0x10,0x00,
-0x21,0x28,0xB5,0x00,
-0xF7,0x19,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x4C,0x1A,0x00,0x0C,
-0x21,0x20,0x40,0x00,
-0x21,0x20,0x40,0x00,
-0x56,0x1A,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0xEC,0x1B,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xEC,0x37,0x23,0x8E,
-0x00,0x01,0x02,0x36,
-0x00,0x00,0x43,0xAC,
-0x07,0x1C,0x00,0x08,
-0xE8,0x37,0x23,0xAE,
-0xB8,0xFF,0xBD,0x27,
-0x25,0xB0,0x03,0x3C,
-0x44,0x00,0xBF,0xAF,
-0x40,0x00,0xBE,0xAF,
-0x3C,0x00,0xB7,0xAF,
-0x38,0x00,0xB6,0xAF,
-0x34,0x00,0xB5,0xAF,
-0x30,0x00,0xB4,0xAF,
-0x2C,0x00,0xB3,0xAF,
-0x28,0x00,0xB2,0xAF,
-0x24,0x00,0xB1,0xAF,
-0x20,0x00,0xB0,0xAF,
-0x44,0x00,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x0E,0x00,0x40,0x04,
-0x18,0x00,0xA0,0xAF,
-0x21,0x20,0x60,0x00,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x42,0x30,
-0x64,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0xF6,0xFF,0x41,0x04,
-0x21,0x10,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x74,0x57,0x43,0x8C,
-0x00,0x80,0x06,0x3C,
-0x6C,0x72,0xC2,0x24,
-0x25,0xB0,0x05,0x3C,
-0x02,0x80,0x06,0x3C,
-0x18,0x03,0xA4,0x34,
-0x74,0x57,0xD2,0x24,
-0x00,0x00,0x82,0xAC,
-0x67,0x00,0x72,0x10,
-0x01,0x00,0x16,0x24,
-0x11,0x11,0x02,0x3C,
-0x2A,0xB0,0x03,0x3C,
-0x22,0x22,0x5E,0x34,
-0x02,0x80,0x02,0x3C,
-0x21,0xB8,0x80,0x00,
-0x05,0x00,0x74,0x34,
-0x30,0x1F,0x55,0x24,
-0x01,0x00,0x13,0x24,
-0x00,0x00,0xFE,0xAE,
-0x21,0x00,0xC0,0x12,
-0x2A,0xB0,0x03,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF4,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x40,0x10,
-0x21,0xB0,0x00,0x00,
-0x01,0x00,0x06,0x24,
-0x18,0x00,0xA6,0xAF,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x5F,0x00,0x40,0x14,
-0x04,0x00,0x04,0x24,
-0x02,0x80,0x06,0x3C,
-0xDE,0x5D,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x30,
-0x55,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x2A,0xB0,0x03,0x3C,
-0x06,0x00,0x63,0x34,
-0x00,0x00,0x62,0x94,
-0x44,0x38,0xB1,0x8E,
-0x25,0xB0,0x06,0x3C,
-0xB0,0x03,0xC6,0x34,
-0x00,0xFF,0x42,0x30,
-0x00,0x00,0xD1,0xAC,
-0x0F,0x00,0x40,0x18,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x4C,0xEB,0x42,0x24,
-0x50,0xEB,0x63,0x24,
-0x00,0x00,0x45,0x8C,
-0x00,0x00,0x64,0x8C,
-0x02,0x80,0x06,0x3C,
-0x54,0xEB,0xC6,0x24,
-0x00,0x00,0xC3,0x8C,
-0x00,0x00,0xA4,0xAC,
-0x00,0x00,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0xFF,0x42,0x30,
-0xFB,0xFF,0x40,0x1C,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x23,0x8E,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x62,0x30,
-0x47,0x00,0x40,0x14,
-0x08,0x00,0x62,0x24,
-0xC2,0x10,0x03,0x00,
-0x08,0x00,0x25,0x8E,
-0x04,0x37,0xA6,0x8E,
-0xC0,0x10,0x02,0x00,
-0x20,0x00,0x42,0x24,
-0xFF,0xFF,0x47,0x30,
-0x01,0x00,0x04,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB3,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x02,0x00,0x02,0x24,
-0x00,0x00,0x93,0xA2,
-0x00,0x00,0x82,0xA2,
-0x00,0x60,0x10,0x40,
-0x01,0x00,0x01,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x04,0x00,0x23,0x8E,
-0x00,0x00,0x22,0x8E,
-0x21,0x20,0x20,0x02,
-0x00,0x00,0x62,0xAC,
-0x04,0x00,0x43,0xAC,
-0x00,0x00,0x31,0xAE,
-0x3D,0x24,0x00,0x0C,
-0x04,0x00,0x31,0xAE,
-0x00,0x60,0x90,0x40,
-0x00,0x00,0x42,0x8E,
-0x00,0x00,0x00,0x00,
-0xA3,0xFF,0x52,0x14,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF4,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x11,0x00,0x40,0x14,
-0x18,0x00,0xA0,0xAF,
-0x02,0x80,0x02,0x3C,
-0x08,0x08,0x44,0x24,
-0x21,0x28,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x91,0x3C,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0xBC,0x1C,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x9B,0x30,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0xEA,0x1C,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0xE4,0x1C,0x00,0x08,
-0x02,0x80,0x06,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x06,0x3C,
-0xF5,0x5E,0xC4,0x90,
-0x01,0x00,0x05,0x24,
-0x64,0x31,0x00,0x0C,
-0xFF,0x00,0x84,0x30,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x36,0x1D,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x0E,0x1D,0x00,0x08,
-0xC2,0x10,0x02,0x00,
-0x10,0x00,0xE0,0x18,
-0x21,0x18,0x00,0x00,
-0x00,0x00,0xC0,0xAC,
-0x21,0x40,0x00,0x00,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x45,0x10,
-0x21,0x18,0x80,0x00,
-0x01,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x48,0x00,
-0x02,0x00,0x68,0x24,
-0x21,0x10,0x82,0x00,
-0x2B,0x18,0x07,0x01,
-0xF5,0xFF,0x60,0x14,
-0x02,0x00,0x44,0x24,
-0x21,0x18,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x01,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC2,0xAC,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x02,0x80,0x07,0x3C,
-0x30,0x1F,0xE5,0x24,
-0x22,0x3E,0xA3,0x90,
-0xFF,0x00,0x84,0x30,
-0x80,0x10,0x04,0x00,
-0x0C,0x00,0x60,0x14,
-0x21,0x30,0x45,0x00,
-0xC8,0x00,0x02,0x24,
-0x24,0x39,0xA2,0xAC,
-0x01,0x00,0x03,0x24,
-0x30,0x1F,0xE2,0x24,
-0x04,0x18,0x83,0x00,
-0x4C,0x3E,0xA4,0xA0,
-0x22,0x3E,0x44,0x90,
-0x00,0x00,0x00,0x00,
-0x25,0x18,0x64,0x00,
-0x08,0x00,0xE0,0x03,
-0x22,0x3E,0x43,0xA0,
-0x24,0x39,0xA3,0x8C,
-0xC8,0x00,0x02,0x24,
-0x23,0x10,0x43,0x00,
-0x24,0x3E,0xC2,0xAC,
-0x01,0x00,0x03,0x24,
-0x30,0x1F,0xE2,0x24,
-0x04,0x18,0x83,0x00,
-0x22,0x3E,0x44,0x90,
-0x00,0x00,0x00,0x00,
-0x25,0x18,0x64,0x00,
-0x08,0x00,0xE0,0x03,
-0x22,0x3E,0x43,0xA0,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x30,0x1F,0x25,0x26,
-0x4C,0x3E,0xA6,0x90,
-0x01,0x00,0x02,0x24,
-0x04,0x10,0xC2,0x00,
-0x06,0x00,0x40,0x14,
-0xC9,0x00,0x10,0x24,
-0x1A,0x3E,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x30,
-0x23,0x00,0x40,0x14,
-0x21,0x20,0xC5,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x46,0x24,
-0x21,0x20,0x00,0x00,
-0x24,0x3E,0xC5,0x24,
-0x00,0x00,0xA2,0x8C,
-0x04,0x00,0xA5,0x24,
-0x05,0x00,0x40,0x10,
-0x2B,0x18,0x50,0x00,
-0x03,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x80,0x40,0x00,
-0x4C,0x3E,0xC4,0xA0,
-0x01,0x00,0x84,0x24,
-0x08,0x00,0x82,0x2C,
-0xF5,0xFF,0x40,0x14,
-0xC9,0x00,0x02,0x24,
-0x21,0x00,0x02,0x12,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x45,0x24,
-0x07,0x00,0x04,0x24,
-0x24,0x3E,0xA2,0x8C,
-0xFF,0xFF,0x84,0x24,
-0x02,0x00,0x40,0x10,
-0x23,0x18,0x50,0x00,
-0x24,0x3E,0xA3,0xAC,
-0xFA,0xFF,0x81,0x04,
-0x04,0x00,0xA5,0x24,
-0x30,0x1F,0x22,0x26,
-0x24,0x39,0x50,0xAC,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x44,0x3E,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x63,0x24,
-0xFF,0x00,0x62,0x30,
-0x03,0x00,0x42,0x2C,
-0xD8,0xFF,0x40,0x10,
-0x44,0x3E,0x83,0xA0,
-0x80,0x18,0x06,0x00,
-0x21,0x18,0x65,0x00,
-0xC8,0x00,0x02,0x24,
-0x03,0x00,0x04,0x24,
-0x21,0x28,0x00,0x00,
-0x90,0x14,0x00,0x0C,
-0x24,0x3E,0x62,0xAC,
-0x9C,0x1D,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x22,0x26,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x20,0x00,0xBD,0x27,
-0x22,0x3E,0x40,0xA0,
-0x08,0x00,0xE0,0x03,
-0x24,0x39,0x40,0xAC,
-0xB8,0xFF,0xBD,0x27,
-0x02,0x80,0x08,0x3C,
-0x02,0x80,0x0B,0x3C,
-0x02,0x80,0x0C,0x3C,
-0x40,0x00,0xBF,0xAF,
-0x3C,0x00,0xB5,0xAF,
-0x38,0x00,0xB4,0xAF,
-0x34,0x00,0xB3,0xAF,
-0x30,0x00,0xB2,0xAF,
-0x2C,0x00,0xB1,0xAF,
-0x28,0x00,0xB0,0xAF,
-0x40,0xED,0x63,0x25,
-0x3C,0xED,0x02,0x25,
-0x44,0xED,0x84,0x25,
-0x01,0x00,0x45,0x90,
-0x01,0x00,0x66,0x90,
-0x01,0x00,0x87,0x90,
-0x3C,0xED,0x0F,0x91,
-0x02,0x00,0x4A,0x90,
-0x40,0xED,0x6E,0x91,
-0x02,0x00,0x69,0x90,
-0x44,0xED,0x8D,0x91,
-0x02,0x00,0x88,0x90,
-0x03,0x00,0x4B,0x90,
-0x03,0x00,0x6C,0x90,
-0x03,0x00,0x82,0x90,
-0x00,0x2A,0x05,0x00,
-0x00,0x32,0x06,0x00,
-0x00,0x3A,0x07,0x00,
-0x25,0x28,0xAF,0x00,
-0x25,0x30,0xCE,0x00,
-0x25,0x38,0xED,0x00,
-0x00,0x54,0x0A,0x00,
-0x00,0x4C,0x09,0x00,
-0x00,0x44,0x08,0x00,
-0x25,0x50,0x45,0x01,
-0x25,0x48,0x26,0x01,
-0x25,0x40,0x07,0x01,
-0x00,0x5E,0x0B,0x00,
-0x00,0x66,0x0C,0x00,
-0x00,0x16,0x02,0x00,
-0x02,0x80,0x04,0x3C,
-0x25,0x58,0x6A,0x01,
-0x25,0x60,0x89,0x01,
-0x25,0x10,0x48,0x00,
-0x84,0x58,0x84,0x24,
-0x10,0x00,0xAB,0xAF,
-0x18,0x00,0xAC,0xAF,
-0x34,0x4F,0x00,0x0C,
-0x20,0x00,0xA2,0xAF,
-0x10,0x00,0x42,0x30,
-0x29,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x13,0x3C,
-0x30,0x1F,0x63,0x26,
-0xC4,0x39,0x62,0x8C,
-0x0C,0x00,0x10,0x24,
-0x2B,0x10,0x02,0x02,
-0x2C,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF8,0x58,0x51,0x24,
-0x02,0x59,0x72,0x24,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xFA,0x58,0x54,0x24,
-0x26,0x1E,0x00,0x08,
-0x06,0x59,0x75,0x24,
-0xDD,0x00,0x02,0x24,
-0x21,0x20,0x14,0x02,
-0x2B,0x00,0x62,0x10,
-0x10,0x00,0xA5,0x27,
-0x21,0x10,0x11,0x02,
-0x01,0x00,0x43,0x90,
-0x30,0x1F,0x64,0x26,
-0xC4,0x39,0x82,0x8C,
-0x21,0x18,0x70,0x00,
-0x02,0x00,0x70,0x24,
-0x2B,0x10,0x02,0x02,
-0x17,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x11,0x02,
-0x00,0x00,0x43,0x90,
-0x30,0x00,0x02,0x24,
-0x21,0x20,0x12,0x02,
-0x20,0x00,0xA5,0x27,
-0xED,0xFF,0x62,0x14,
-0x04,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEE,0xFF,0x40,0x14,
-0x21,0x10,0x11,0x02,
-0x01,0x00,0x03,0x24,
-0x40,0x00,0xBF,0x8F,
-0x3C,0x00,0xB5,0x8F,
-0x38,0x00,0xB4,0x8F,
-0x34,0x00,0xB3,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0x40,0x00,0xBF,0x8F,
-0x3C,0x00,0xB5,0x8F,
-0x38,0x00,0xB4,0x8F,
-0x34,0x00,0xB3,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x21,0x18,0x00,0x00,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x15,0x02,
-0x18,0x00,0xA5,0x27,
-0xD1,0xFF,0x40,0x14,
-0x04,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xCE,0xFF,0x40,0x14,
-0x21,0x10,0x11,0x02,
-0x32,0x1E,0x00,0x08,
-0x01,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x38,0x5D,0x43,0x94,
-0x00,0x00,0x00,0x00,
-0x80,0x18,0x03,0x00,
-0xB8,0x0B,0x62,0x28,
-0x04,0x00,0x40,0x14,
-0xB8,0x0B,0x04,0x24,
-0x21,0x4E,0x62,0x28,
-0x20,0x4E,0x04,0x24,
-0x0B,0x20,0x62,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x21,0x38,0x80,0x00,
-0x08,0x00,0xC0,0x10,
-0xFF,0xFF,0xC3,0x24,
-0xFF,0xFF,0x06,0x24,
-0x00,0x00,0xA2,0x8C,
-0xFF,0xFF,0x63,0x24,
-0x04,0x00,0xA5,0x24,
-0x00,0x00,0xE2,0xAC,
-0xFB,0xFF,0x66,0x14,
-0x04,0x00,0xE7,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x25,0xB0,0x03,0x3C,
-0xD8,0xFF,0xBD,0x27,
-0x20,0x00,0xBF,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x94,0x0E,0x65,0x34,
-0x9C,0x0E,0x66,0x34,
-0xA4,0x0E,0x67,0x34,
-0xAC,0x0E,0x68,0x34,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0xA9,0x8C,
-0x30,0x1F,0x58,0x24,
-0x00,0x00,0xCC,0x8C,
-0x00,0x00,0xF1,0x8C,
-0x00,0x00,0x05,0x8D,
-0x0C,0x00,0x07,0x8F,
-0x10,0x00,0x08,0x8F,
-0xFF,0x03,0x0A,0x3C,
-0xB4,0x0E,0x62,0x34,
-0x00,0x00,0x4B,0x8C,
-0x24,0x48,0x2A,0x01,
-0x00,0xFC,0x02,0x24,
-0x24,0x28,0xAA,0x00,
-0xBC,0x0E,0x66,0x34,
-0x24,0x40,0x02,0x01,
-0x02,0x4C,0x09,0x00,
-0x24,0x38,0xE2,0x00,
-0x02,0x2C,0x05,0x00,
-0xF0,0xFF,0x02,0x3C,
-0x00,0x00,0xD0,0x8C,
-0xFF,0x03,0x42,0x34,
-0xCC,0x0E,0x66,0x34,
-0x25,0x38,0xE9,0x00,
-0xC4,0x0E,0x63,0x34,
-0x25,0x40,0x05,0x01,
-0x08,0x00,0x0D,0x8F,
-0x00,0x00,0x6F,0x8C,
-0x24,0x40,0x02,0x01,
-0x00,0x00,0xCE,0x8C,
-0x24,0x38,0xE2,0x00,
-0x24,0x60,0x8A,0x01,
-0x24,0x58,0x6A,0x01,
-0xFF,0x9F,0x02,0x3C,
-0x82,0x61,0x0C,0x00,
-0x82,0x59,0x0B,0x00,
-0xFF,0xFF,0x42,0x34,
-0x0F,0xC0,0x05,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x25,0x38,0xEC,0x00,
-0x25,0x40,0x0B,0x01,
-0x24,0x68,0xA2,0x01,
-0xFF,0x00,0x0B,0x3C,
-0x00,0xFF,0x82,0x30,
-0x24,0x88,0x2A,0x02,
-0x24,0x80,0x0A,0x02,
-0x24,0x18,0x8B,0x00,
-0x24,0x40,0x05,0x01,
-0x21,0x48,0x80,0x00,
-0x02,0x62,0x02,0x00,
-0x24,0x38,0xE5,0x00,
-0x00,0x20,0x02,0x3C,
-0x24,0x70,0xCA,0x01,
-0x00,0x89,0x11,0x00,
-0x00,0x81,0x10,0x00,
-0x24,0x78,0xEA,0x01,
-0x00,0xFF,0x6B,0x35,
-0x25,0x68,0xA2,0x01,
-0x02,0x1C,0x03,0x00,
-0x02,0x80,0x04,0x3C,
-0x25,0x38,0xF1,0x00,
-0x25,0x40,0x10,0x01,
-0x02,0x7C,0x0F,0x00,
-0x02,0x74,0x0E,0x00,
-0x24,0x48,0x2B,0x01,
-0xDC,0xE3,0x84,0x24,
-0x21,0x28,0x80,0x01,
-0x21,0x30,0x60,0x00,
-0x12,0x00,0x02,0x24,
-0x08,0x00,0x0D,0xAF,
-0x0C,0x00,0x07,0xAF,
-0x10,0x00,0x08,0xAF,
-0x14,0x00,0x0F,0xA7,
-0x0A,0x00,0x20,0x15,
-0x16,0x00,0x0E,0xA7,
-0x10,0x00,0xA4,0x27,
-0xC7,0x02,0x02,0xA3,
-0xC8,0x5C,0x00,0x0C,
-0xC3,0x02,0x02,0xA3,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xC7,0x02,0x03,0xA3,
-0x2F,0x55,0x00,0x0C,
-0xC3,0x02,0x0C,0xA3,
-0xC8,0x5C,0x00,0x0C,
-0x10,0x00,0xA4,0x27,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x28,0x00,0xB6,0xAF,
-0x25,0xB0,0x02,0x3C,
-0x00,0x80,0x16,0x3C,
-0x48,0x7B,0xC3,0x26,
-0x18,0x03,0x42,0x34,
-0x30,0x00,0xBE,0xAF,
-0x2C,0x00,0xB7,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x43,0xAC,
-0x21,0x98,0x00,0x00,
-0x02,0x80,0x15,0x3C,
-0x00,0x80,0x1E,0x3C,
-0x02,0x80,0x14,0x3C,
-0x02,0x80,0x17,0x3C,
-0x25,0xB0,0x10,0x3C,
-0x18,0x03,0x02,0x36,
-0x48,0x7B,0xC3,0x26,
-0x00,0x00,0x43,0xAC,
-0x30,0x1F,0xB1,0x26,
-0x7C,0x36,0x24,0x96,
-0x70,0x03,0x05,0x36,
-0x00,0x00,0xB2,0x8C,
-0x01,0x00,0x84,0x24,
-0x03,0x00,0x40,0x12,
-0x7C,0x36,0x24,0xA6,
-0x01,0x00,0x62,0x26,
-0xFF,0xFF,0x53,0x30,
-0xFF,0x00,0x04,0x3C,
-0xFF,0xFF,0x82,0x34,
-0x2B,0x10,0x52,0x00,
-0x47,0x00,0x40,0x10,
-0x00,0x50,0x62,0x2E,
-0x00,0xFF,0x06,0x3C,
-0xFF,0x00,0xC2,0x34,
-0x00,0xFD,0x05,0x3C,
-0x24,0x18,0x42,0x02,
-0x29,0x00,0xA2,0x34,
-0xA7,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0x46,0x00,0x40,0x14,
-0xAC,0x00,0xA2,0x34,
-0x00,0xF2,0x06,0x3C,
-0x01,0x00,0xC2,0x34,
-0xB8,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0x7D,0x00,0x40,0x14,
-0x07,0x00,0xA2,0x34,
-0x00,0xF0,0x05,0x3C,
-0x03,0x00,0xA2,0x34,
-0xD5,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0xC8,0x00,0x40,0x14,
-0x00,0xF1,0x07,0x3C,
-0x21,0x02,0x65,0x10,
-0x00,0xFF,0x82,0x34,
-0x2B,0x10,0xA3,0x00,
-0x48,0x01,0x40,0x14,
-0x01,0x00,0xA2,0x34,
-0x00,0xE0,0x02,0x3C,
-0x73,0x01,0x62,0x10,
-0x00,0xFF,0x48,0x32,
-0x25,0xB0,0x02,0x3C,
-0x70,0x03,0x42,0x34,
-0x21,0x98,0x00,0x00,
-0x00,0x00,0x40,0xAC,
-0x25,0xB0,0x04,0x3C,
-0x18,0x03,0x82,0x34,
-0x48,0x7C,0xC3,0x27,
-0x00,0x00,0x43,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x6C,0x57,0x82,0x8E,
-0x6C,0x57,0x83,0x26,
-0x10,0x00,0x43,0x10,
-0x02,0x80,0x02,0x3C,
-0xBF,0x00,0x92,0x34,
-0x30,0x1F,0x51,0x24,
-0x21,0x80,0x60,0x00,
-0x00,0x00,0x42,0x92,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x42,0x2C,
-0x08,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x3C,0x38,0x24,0x8E,
-0xB4,0x08,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x6C,0x57,0x83,0x8E,
-0x00,0x00,0x00,0x00,
-0xF5,0xFF,0x70,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x21,0x28,0x00,0x00,
-0x08,0x10,0xE4,0x26,
-0x21,0x30,0x00,0x00,
-0x91,0x3C,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0xE8,0x1E,0x00,0x08,
-0x25,0xB0,0x10,0x3C,
-0xDA,0xFF,0x40,0x14,
-0x74,0x03,0x03,0x36,
-0xFF,0xFF,0x02,0x24,
-0x21,0x98,0x00,0x00,
-0x00,0x00,0xA0,0xAC,
-0x00,0x00,0x62,0xAC,
-0x1B,0x1F,0x00,0x08,
-0x25,0xB0,0x04,0x3C,
-0x84,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0x1E,0x00,0x40,0x14,
-0x00,0xFE,0x07,0x3C,
-0xA4,0x00,0xA2,0x34,
-0x8F,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0x47,0x00,0x40,0x14,
-0xA7,0x00,0xA2,0x34,
-0xA1,0x00,0xA2,0x34,
-0xEA,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0xAD,0x00,0x40,0x14,
-0xA2,0x00,0xA2,0x34,
-0xA0,0x00,0xA2,0x34,
-0xBE,0xFF,0x62,0x14,
-0x25,0xB0,0x02,0x3C,
-0x00,0x0F,0x42,0x32,
-0x02,0x22,0x02,0x00,
-0x01,0x00,0x03,0x24,
-0x96,0x02,0x83,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x02,0x24,
-0x8F,0x02,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x02,0x24,
-0x88,0x02,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0xCD,0x5A,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x12,0x00,0xE2,0x34,
-0x65,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0x37,0x00,0x40,0x14,
-0x1A,0x00,0xE2,0x34,
-0xAF,0x00,0xA2,0x34,
-0xC8,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0x97,0x00,0x40,0x14,
-0x10,0x00,0xE2,0x34,
-0xAD,0x00,0xA2,0x34,
-0x44,0x02,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0xAE,0x00,0xA2,0x34,
-0x9C,0xFF,0x62,0x14,
-0x02,0x24,0x12,0x00,
-0x00,0xFF,0x45,0x32,
-0xFF,0x00,0x84,0x30,
-0x58,0x5A,0x00,0x0C,
-0x02,0x2A,0x05,0x00,
-0x25,0xB0,0x03,0x3C,
-0x74,0x03,0x63,0x34,
-0x00,0x00,0x62,0xA0,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x73,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0x35,0x00,0x40,0x14,
-0x18,0x00,0xA2,0x34,
-0x00,0xF8,0x04,0x3C,
-0x16,0x00,0x82,0x34,
-0xB6,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0x90,0x00,0x40,0x14,
-0x17,0x00,0x82,0x34,
-0x15,0x00,0x82,0x34,
-0x84,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0xA7,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x6A,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0xB7,0x00,0x40,0x14,
-0xAA,0x00,0xA2,0x34,
-0xA5,0x00,0xA2,0x34,
-0x35,0x02,0x62,0x10,
-0x24,0x20,0x44,0x02,
-0xA6,0x00,0xA2,0x34,
-0x76,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0xF7,0x5B,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x75,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0x80,0x00,0x40,0x14,
-0x0F,0x00,0xC2,0x34,
-0x18,0x00,0xE2,0x34,
-0xC1,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x19,0x00,0xE2,0x34,
-0x68,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xA2,0x26,
-0x2A,0x1C,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x74,0x03,0x63,0x34,
-0x00,0x00,0x64,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x3E,0x01,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0x74,0x00,0x40,0x14,
-0x19,0x00,0xA2,0x34,
-0x14,0x00,0xA2,0x34,
-0x96,0x01,0x62,0x10,
-0x17,0x00,0xA2,0x34,
-0x51,0xFF,0x62,0x14,
-0x25,0xB0,0x04,0x3C,
-0x68,0x03,0x85,0x34,
-0x00,0x00,0xA3,0x8C,
-0x00,0xFF,0x42,0x32,
-0x00,0x12,0x02,0x00,
-0xFF,0xFF,0x73,0x30,
-0x25,0x10,0x53,0x00,
-0x00,0x00,0xA2,0xAC,
-0x64,0x03,0x84,0x34,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x53,0x30,
-0x40,0x00,0x63,0x36,
-0x00,0x00,0x83,0xA0,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x02,0x00,0xE2,0x34,
-0x3F,0xFF,0x62,0x10,
-0x2B,0x10,0x43,0x00,
-0x9B,0x00,0x40,0x14,
-0x04,0x00,0xE2,0x34,
-0x08,0x00,0xA2,0x34,
-0xA3,0x01,0x62,0x10,
-0x00,0xFF,0x42,0x32,
-0x38,0xFF,0x67,0x14,
-0x25,0xB0,0x04,0x3C,
-0xFF,0x00,0x05,0x3C,
-0x00,0xFF,0xA5,0x34,
-0x24,0x28,0x45,0x02,
-0x02,0x2A,0x05,0x00,
-0x94,0x00,0x83,0x34,
-0x40,0x11,0x05,0x00,
-0x26,0xB0,0x06,0x3C,
-0x00,0x00,0x65,0xA4,
-0xC0,0xFF,0x53,0x24,
-0x7C,0x00,0xCC,0x34,
-0x04,0x00,0x07,0x24,
-0x9A,0x00,0x88,0x34,
-0x98,0x00,0x89,0x34,
-0x96,0x00,0x8A,0x34,
-0x7A,0x00,0xC6,0x34,
-0xB0,0x03,0x8B,0x34,
-0x00,0x04,0x02,0x24,
-0xA0,0x00,0x03,0x24,
-0x00,0x00,0x02,0xA5,
-0x44,0x00,0x84,0x34,
-0x00,0x00,0x23,0xA5,
-0x00,0x00,0x47,0xA5,
-0x00,0x00,0xC7,0xA0,
-0x00,0x00,0x73,0xAD,
-0x00,0x00,0x93,0xA5,
-0x00,0x00,0x83,0x94,
-0xFF,0xFD,0x02,0x24,
-0x30,0x1F,0xA6,0x26,
-0x24,0x18,0x62,0x00,
-0x00,0x00,0x83,0xA4,
-0x00,0x00,0x82,0x94,
-0xBA,0x1B,0xC5,0xA4,
-0x00,0x02,0x42,0x34,
-0x00,0x00,0x82,0xA4,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xBF,0x01,0x62,0x10,
-0x25,0xB0,0x02,0x3C,
-0xA3,0x00,0xA2,0x34,
-0x10,0xFF,0x62,0x14,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0xA2,0x26,
-0x16,0x1F,0x00,0x08,
-0x30,0x38,0x40,0xAC,
-0x3A,0x01,0x62,0x10,
-0x11,0x00,0xE2,0x34,
-0x08,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xFF,0x00,0x04,0x3C,
-0x00,0xFF,0x84,0x34,
-0x24,0x20,0x44,0x02,
-0x30,0x1F,0xA2,0x26,
-0x02,0x22,0x04,0x00,
-0xC2,0x34,0x00,0x0C,
-0x2A,0x1C,0x40,0xA0,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x9F,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0x82,0x34,
-0xF3,0xFE,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x0A,0x23,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x4E,0x01,0x62,0x10,
-0x10,0x00,0xC2,0x34,
-0xEC,0xFE,0x62,0x14,
-0x25,0xB0,0x02,0x3C,
-0x00,0xFF,0x43,0x32,
-0x00,0xFF,0x02,0x34,
-0xDA,0xFF,0x62,0x14,
-0x30,0x1F,0xA2,0x26,
-0x30,0x1F,0xA3,0x26,
-0xFF,0xFF,0x02,0x34,
-0x16,0x1F,0x00,0x08,
-0x30,0x38,0x62,0xAC,
-0x96,0x01,0x62,0x10,
-0x25,0xB0,0x02,0x3C,
-0x28,0x00,0xA2,0x34,
-0xDE,0xFE,0x62,0x14,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0x60,0x00,0x06,0x24,
-0x5F,0x47,0x00,0x0C,
-0x24,0x00,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0xE8,0x03,0x04,0x24,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x24,0x00,0x04,0x24,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x05,0x36,
-0x1F,0x00,0x53,0x30,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x25,0xB0,0x02,0x3C,
-0x74,0x03,0x42,0x34,
-0x00,0x00,0x53,0xA0,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x84,0x01,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0xAB,0x00,0xA2,0x34,
-0xC1,0xFE,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0xE6,0x5F,0x00,0x0C,
-0x21,0x20,0x40,0x02,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x01,0x62,0x10,
-0x25,0xB0,0x02,0x3C,
-0x02,0x00,0xA2,0x34,
-0xB9,0xFE,0x62,0x14,
-0x25,0xB0,0x02,0x3C,
-0x02,0x14,0x12,0x00,
-0x00,0xFF,0x43,0x32,
-0xFF,0x00,0x45,0x30,
-0x04,0x00,0xA0,0x10,
-0x02,0x92,0x03,0x00,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0xA2,0x10,
-0x01,0x00,0x04,0x24,
-0x21,0x20,0x00,0x00,
-0xE6,0x44,0x00,0x0C,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0x8A,0x47,0x00,0x0C,
-0x21,0x20,0x40,0x02,
-0xFF,0xFF,0x10,0x36,
-0x24,0x98,0x50,0x00,
-0x25,0xB0,0x02,0x3C,
-0x74,0x03,0x42,0x34,
-0x00,0x00,0x53,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x15,0x01,0x62,0x10,
-0x24,0x10,0x44,0x02,
-0xA0,0xFE,0x66,0x14,
-0x25,0xB0,0x02,0x3C,
-0x25,0xB0,0x05,0x3C,
-0x74,0x03,0xA3,0x34,
-0x00,0x00,0x64,0x8C,
-0xFF,0x0F,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x90,0x82,0x00,
-0x01,0x00,0x03,0x3C,
-0x2B,0x18,0x72,0x00,
-0x95,0xFE,0x60,0x10,
-0x00,0xB0,0x02,0x3C,
-0x25,0x90,0x42,0x02,
-0x00,0x00,0x53,0x8E,
-0x78,0x03,0xA2,0x34,
-0x00,0x00,0x53,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x02,0x1A,0x08,0x00,
-0xFF,0x00,0x02,0x24,
-0x56,0x01,0x62,0x10,
-0x25,0xB0,0x05,0x3C,
-0x0E,0x00,0x60,0x14,
-0x00,0xCC,0x02,0x34,
-0x25,0xB0,0x04,0x3C,
-0x64,0x03,0x84,0x34,
-0x30,0x1F,0xA7,0x26,
-0x00,0x00,0x85,0x94,
-0xE4,0x02,0xE6,0x8C,
-0xFF,0xCF,0x02,0x3C,
-0xFF,0xFE,0x03,0x24,
-0xFF,0xFF,0x42,0x34,
-0x24,0x28,0xA3,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x00,0x85,0xA4,
-0xE4,0x02,0xE6,0xAC,
-0x00,0xCC,0x02,0x34,
-0x7B,0xFE,0x02,0x15,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0xA5,0x26,
-0xE4,0x02,0xA3,0x8C,
-0xFF,0xCF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x00,0x10,0x04,0x3C,
-0x25,0x18,0x64,0x00,
-0x16,0x1F,0x00,0x08,
-0xE4,0x02,0xA3,0xAC,
-0x02,0x14,0x12,0x00,
-0x00,0x1F,0x43,0x32,
-0x02,0x9A,0x03,0x00,
-0x3F,0x00,0x42,0x30,
-0xC1,0x02,0x22,0xA2,
-0xBC,0x02,0x33,0xA2,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x76,0x2C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x98,0x40,0x00,
-0x74,0x03,0x02,0x36,
-0x00,0x00,0x53,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x03,0x00,0x22,0x92,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x16,0x1F,0x00,0x08,
-0x03,0x00,0x22,0xA2,
-0x74,0x03,0x03,0x36,
-0x00,0x00,0x64,0x8C,
-0xFF,0x0F,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x90,0x82,0x00,
-0x01,0x00,0x03,0x3C,
-0x2B,0x18,0x72,0x00,
-0x51,0xFE,0x60,0x10,
-0x78,0x03,0x02,0x36,
-0x00,0x00,0x53,0x8C,
-0x00,0xB0,0x03,0x3C,
-0x25,0x90,0x43,0x02,
-0x00,0x00,0x53,0xAE,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xBE,0x59,0x00,0x0C,
-0x21,0x20,0x40,0x02,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x00,0xFF,0x82,0x34,
-0x24,0x10,0x42,0x02,
-0x02,0x2A,0x02,0x00,
-0x2B,0x1C,0x25,0xA2,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xFF,0xFF,0x02,0x34,
-0x16,0x1F,0x00,0x08,
-0x30,0x38,0x22,0xAE,
-0x24,0x10,0x44,0x02,
-0x00,0xFF,0x43,0x32,
-0x02,0x2C,0x02,0x00,
-0x04,0x00,0xA0,0x10,
-0x02,0x92,0x03,0x00,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0xA2,0x10,
-0x01,0x00,0x04,0x24,
-0x21,0x20,0x00,0x00,
-0x25,0xB0,0x10,0x3C,
-0xE6,0x44,0x00,0x0C,
-0x74,0x03,0x10,0x36,
-0x00,0x00,0x13,0x8E,
-0x0F,0x00,0x11,0x3C,
-0x21,0x20,0x40,0x02,
-0x21,0x30,0x60,0x02,
-0x5F,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x21,0x20,0x40,0x02,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x00,0x00,0x02,0xAE,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x85,0x5F,0x00,0x0C,
-0x21,0x20,0x40,0x02,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x08,0x00,0x23,0x8E,
-0xFF,0x9F,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x16,0x1F,0x00,0x08,
-0x08,0x00,0x23,0xAE,
-0x00,0xFF,0x42,0x32,
-0x24,0x18,0x44,0x02,
-0x02,0x9A,0x02,0x00,
-0x01,0x00,0x02,0x24,
-0x95,0x00,0x62,0x12,
-0x02,0x1C,0x03,0x00,
-0x02,0x00,0x02,0x24,
-0xA9,0x00,0x62,0x12,
-0xC0,0x10,0x03,0x00,
-0x03,0x00,0x02,0x24,
-0x09,0xFE,0x62,0x16,
-0xC0,0x10,0x03,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x02,0x80,0x04,0x3C,
-0x4C,0x43,0x83,0x24,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x25,0xB0,0x03,0x3C,
-0x74,0x03,0x63,0x34,
-0x00,0x00,0x64,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0xFF,0x82,0x34,
-0x24,0x10,0x42,0x02,
-0x02,0x2A,0x02,0x00,
-0x01,0x00,0x03,0x24,
-0x77,0x00,0xA3,0x10,
-0x74,0x03,0x02,0x36,
-0x02,0x00,0xA2,0x28,
-0xB7,0x00,0x40,0x14,
-0x03,0x00,0x02,0x24,
-0x06,0x00,0xA2,0x10,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0xA2,0x26,
-0x24,0x1C,0x44,0x94,
-0x25,0xB0,0x03,0x3C,
-0x18,0x21,0x00,0x08,
-0x74,0x03,0x63,0x34,
-0x30,0x1F,0xA2,0x26,
-0x26,0x1C,0x44,0x94,
-0x25,0xB0,0x03,0x3C,
-0x18,0x21,0x00,0x08,
-0x74,0x03,0x63,0x34,
-0x24,0x10,0x42,0x02,
-0x02,0x92,0x02,0x00,
-0x21,0x18,0x50,0x02,
-0x00,0x00,0x73,0x8C,
-0x74,0x03,0x02,0x36,
-0x00,0x00,0x53,0xAC,
-0x00,0x00,0x73,0x8C,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xA6,0x5A,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x24,0x20,0x44,0x02,
-0x56,0x25,0x00,0x0C,
-0x02,0x24,0x04,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xD7,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xA3,0x26,
-0x2A,0x1C,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x6A,0xFE,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0xFF,0x82,0x34,
-0x24,0x10,0x42,0x02,
-0x02,0x2A,0x02,0x00,
-0x01,0x00,0x02,0x24,
-0x21,0x20,0xA0,0x00,
-0x2A,0x1C,0x62,0xA0,
-0xC2,0x34,0x00,0x0C,
-0x2B,0x1C,0x65,0xA0,
-0x1A,0x20,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0xFF,0x82,0x34,
-0x24,0x10,0x42,0x02,
-0xBB,0xFD,0x40,0x10,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0xA3,0x26,
-0x04,0x03,0x66,0x90,
-0x24,0x20,0x44,0x02,
-0x00,0xFF,0x45,0x32,
-0x02,0x24,0x04,0x00,
-0x02,0x2A,0x05,0x00,
-0x00,0x01,0xC6,0x34,
-0xFB,0xFF,0x87,0x24,
-0xFB,0xFF,0xA2,0x24,
-0x1F,0x03,0x62,0xA0,
-0x04,0x03,0x66,0xAC,
-0x1D,0x03,0x67,0xA0,
-0x1C,0x03,0x64,0xA0,
-0x16,0x1F,0x00,0x08,
-0x1E,0x03,0x65,0xA0,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0xA2,0x26,
-0x2B,0x1C,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x74,0x03,0x63,0x34,
-0x00,0x00,0x64,0xAC,
-0xB8,0x1F,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0xFF,0x00,0x02,0x24,
-0x56,0x01,0x63,0x34,
-0x00,0x00,0x62,0xA4,
-0x01,0x00,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x16,0x1F,0x00,0x08,
-0x08,0x5E,0x44,0xA0,
-0x02,0x92,0x02,0x00,
-0x05,0x00,0x40,0x12,
-0x21,0x20,0x00,0x00,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0x42,0x12,
-0x01,0x00,0x04,0x24,
-0x21,0x20,0x00,0x00,
-0xE6,0x44,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x02,0x9C,0x02,0x00,
-0x00,0xFF,0x43,0x32,
-0x07,0x00,0x62,0x2E,
-0x88,0xFD,0x40,0x10,
-0x02,0x2A,0x03,0x00,
-0x02,0x80,0x04,0x3C,
-0x50,0xED,0x83,0x24,
-0x80,0x10,0x13,0x00,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x22,0x1C,0x23,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x43,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xC0,0x10,0x03,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x51,0x00,
-0x14,0x24,0x44,0x8C,
-0x74,0x03,0x03,0x36,
-0x00,0x00,0x64,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0xFF,0x83,0x34,
-0x74,0x03,0x44,0x34,
-0x00,0x00,0x93,0x8C,
-0x24,0x18,0x43,0x02,
-0x02,0x92,0x03,0x00,
-0x21,0x10,0x42,0x02,
-0x00,0x00,0x53,0xAC,
-0x00,0x00,0x53,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x93,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x51,0x00,
-0x18,0x24,0x44,0x8C,
-0xA4,0x21,0x00,0x08,
-0x74,0x03,0x03,0x36,
-0xCD,0x59,0x00,0x0C,
-0x21,0x20,0x40,0x02,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x3D,0x23,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x74,0x03,0x42,0x34,
-0x00,0x00,0x45,0x8C,
-0x00,0xFF,0x84,0x34,
-0x24,0x20,0x44,0x02,
-0xC1,0x5B,0x00,0x0C,
-0x02,0x22,0x04,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x70,0x03,0x42,0x34,
-0x21,0x20,0x40,0x02,
-0x00,0x00,0x40,0xAC,
-0x6B,0x1E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xF5,0x5B,0x00,0x0C,
-0x02,0x24,0x04,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x60,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x4B,0xFF,0xA0,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0xA2,0x26,
-0x20,0x1C,0x44,0x94,
-0x25,0xB0,0x03,0x3C,
-0x18,0x21,0x00,0x08,
-0x74,0x03,0x63,0x34,
-0x64,0x03,0xA5,0x34,
-0x30,0x1F,0xA6,0x26,
-0x00,0x00,0xA3,0x94,
-0xE4,0x02,0xC4,0x8C,
-0xFF,0xCF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x82,0x00,
-0x00,0x01,0x63,0x34,
-0x00,0x00,0xA3,0xA4,
-0x9A,0x20,0x00,0x08,
-0xE4,0x02,0xC4,0xAC,
-0xCD,0x5A,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xCD,0x5A,0x00,0x0C,
-0x02,0x00,0x04,0x24,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0xCD,0x5A,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x19,0x05,0x00,
-0x30,0x1F,0xA2,0x26,
-0x21,0x18,0x62,0x00,
-0x36,0x03,0x64,0x94,
-0x25,0xB0,0x02,0x3C,
-0x74,0x03,0x42,0x34,
-0x00,0x00,0x44,0xAC,
-0x17,0x1F,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x19,0x05,0x00,
-0x30,0x1F,0xA2,0x26,
-0x21,0x18,0x62,0x00,
-0x35,0x03,0x64,0x90,
-0xFD,0x21,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x19,0x05,0x00,
-0x30,0x1F,0xA2,0x26,
-0x21,0x18,0x62,0x00,
-0x34,0x03,0x64,0x90,
-0xFD,0x21,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x19,0x05,0x00,
-0x30,0x1F,0xA2,0x26,
-0x21,0x18,0x62,0x00,
-0x32,0x03,0x64,0x94,
-0xFD,0x21,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x19,0x05,0x00,
-0x30,0x1F,0xA2,0x26,
-0x21,0x18,0x62,0x00,
-0x30,0x03,0x64,0x94,
-0xFD,0x21,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x00,0x11,0x05,0x00,
-0x30,0x1F,0xA3,0x26,
-0x21,0x10,0x43,0x00,
-0x2C,0x03,0x44,0x8C,
-0xFC,0x21,0x00,0x08,
-0x42,0x26,0x04,0x00,
-0x00,0x11,0x05,0x00,
-0x30,0x1F,0xA3,0x26,
-0x21,0x10,0x43,0x00,
-0x2F,0x03,0x44,0x90,
-0xFC,0x21,0x00,0x08,
-0x01,0x00,0x84,0x30,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x18,0x03,0x42,0x34,
-0x94,0x88,0x63,0x24,
-0x00,0x00,0x43,0xAC,
-0x02,0x80,0x05,0x3C,
-0xD4,0x5E,0xA5,0x8C,
-0x04,0x00,0x02,0x24,
-0x1E,0x00,0xA2,0x10,
-0x05,0x00,0xA2,0x2C,
-0x10,0x00,0x40,0x10,
-0x05,0x00,0x02,0x24,
-0x03,0x00,0x02,0x24,
-0x08,0x00,0xA2,0x10,
-0x00,0x19,0x04,0x00,
-0x80,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0xC0,0x10,0x02,0x00,
-0x23,0x10,0x44,0x00,
-0x00,0x11,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x40,0x19,0x02,0x00,
-0xFF,0xFF,0x63,0x24,
-0xFE,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xF3,0xFF,0xA2,0x10,
-0x06,0x00,0x02,0x24,
-0xF2,0xFF,0xA2,0x14,
-0x80,0x10,0x04,0x00,
-0x40,0x11,0x04,0x00,
-0x23,0x10,0x44,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x00,0x19,0x02,0x00,
-0x23,0x18,0x62,0x00,
-0x3B,0x22,0x00,0x08,
-0x00,0x19,0x03,0x00,
-0x80,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0xC0,0x10,0x02,0x00,
-0x23,0x10,0x44,0x00,
-0x00,0x11,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x3B,0x22,0x00,0x08,
-0x00,0x19,0x02,0x00,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x50,0x89,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x02,0x80,0x05,0x3C,
-0xD4,0x5E,0xA3,0x8C,
-0x05,0x00,0x02,0x24,
-0x06,0x00,0x62,0x10,
-0x06,0x00,0x62,0x2C,
-0x0C,0x00,0x40,0x10,
-0x06,0x00,0x02,0x24,
-0x04,0x00,0x02,0x24,
-0x0E,0x00,0x62,0x10,
-0x80,0x10,0x04,0x00,
-0x80,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0x80,0x10,0x02,0x00,
-0xFF,0xFF,0x42,0x24,
-0xFE,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xF7,0xFF,0x62,0x14,
-0x00,0x11,0x04,0x00,
-0x23,0x10,0x44,0x00,
-0x66,0x22,0x00,0x08,
-0x40,0x10,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x66,0x22,0x00,0x08,
-0x40,0x10,0x02,0x00,
-0xFF,0xFF,0x85,0x30,
-0x21,0x30,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0x2A,0xB0,0x04,0x3C,
-0xB4,0x00,0x63,0x34,
-0x01,0x00,0xA2,0x24,
-0x31,0x00,0x84,0x34,
-0x00,0x00,0x65,0xA0,
-0x00,0x00,0x85,0xA0,
-0xFF,0xFF,0x45,0x30,
-0x12,0x00,0xA0,0x10,
-0x01,0x00,0x03,0x24,
-0x28,0xB0,0x07,0x3C,
-0x88,0x22,0x00,0x08,
-0xFF,0xFF,0x08,0x24,
-0x00,0x00,0x83,0xA0,
-0x01,0x00,0x63,0x24,
-0xFF,0xFF,0x63,0x30,
-0x2B,0x10,0xA3,0x00,
-0x09,0x00,0x40,0x14,
-0x08,0x00,0xC6,0x24,
-0xF9,0xFF,0x65,0x14,
-0x21,0x20,0xC7,0x00,
-0x01,0x00,0x63,0x24,
-0xFF,0xFF,0x63,0x30,
-0x2B,0x10,0xA3,0x00,
-0x00,0x00,0x88,0xA0,
-0xF9,0xFF,0x40,0x10,
-0x08,0x00,0xC6,0x24,
-0x00,0x01,0xA2,0x2C,
-0x13,0x00,0x40,0x10,
-0x21,0x18,0xA0,0x00,
-0xFF,0x00,0x08,0x24,
-0x28,0xB0,0x07,0x3C,
-0x9C,0x22,0x00,0x08,
-0xFF,0xFF,0x09,0x24,
-0xFF,0xFF,0x43,0x30,
-0x00,0x00,0xA2,0xA0,
-0x00,0x01,0x62,0x2C,
-0x0A,0x00,0x40,0x10,
-0x08,0x00,0xC6,0x24,
-0x01,0x00,0x62,0x24,
-0xF9,0xFF,0x68,0x14,
-0x21,0x28,0xC7,0x00,
-0x00,0x01,0x02,0x24,
-0xFF,0xFF,0x43,0x30,
-0x00,0x01,0x62,0x2C,
-0x00,0x00,0xA9,0xA0,
-0xF8,0xFF,0x40,0x14,
-0x08,0x00,0xC6,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xD0,0xFF,0xBD,0x27,
-0x2C,0x00,0xBF,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0xB0,0x10,0x3C,
-0x40,0x00,0x03,0x36,
-0x00,0x00,0x60,0xA4,
-0xA8,0x00,0x13,0x36,
-0xA0,0x00,0x12,0x36,
-0xA4,0x00,0x10,0x36,
-0x00,0x00,0x55,0x8E,
-0x00,0x00,0x16,0x8E,
-0x00,0x00,0x71,0x8E,
-0x00,0x80,0x14,0x3C,
-0xFC,0x37,0x02,0x24,
-0x00,0x00,0x40,0xAE,
-0xFD,0x00,0x04,0x24,
-0x00,0x00,0x00,0xAE,
-0x21,0x88,0x34,0x02,
-0x00,0x00,0x74,0xAE,
-0x00,0x00,0x62,0xA4,
-0x73,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x55,0xAE,
-0x00,0x00,0x16,0xAE,
-0x00,0x00,0x71,0xAE,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x2C,0x00,0xBF,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0xB0,0x10,0x3C,
-0x40,0x00,0x05,0x36,
-0x00,0x00,0xA2,0x94,
-0x24,0xFA,0x03,0x24,
-0xA8,0x00,0x13,0x36,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0xA2,0xA4,
-0xA0,0x00,0x12,0x36,
-0xA4,0x00,0x10,0x36,
-0x00,0x00,0x55,0x8E,
-0x00,0x00,0x16,0x8E,
-0x00,0x00,0x71,0x8E,
-0x00,0x80,0x14,0x3C,
-0xFC,0x37,0x02,0x24,
-0x00,0x00,0x40,0xAE,
-0xFD,0x00,0x04,0x24,
-0x00,0x00,0x00,0xAE,
-0x21,0x88,0x34,0x02,
-0x00,0x00,0x74,0xAE,
-0x00,0x00,0xA2,0xA4,
-0x73,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x55,0xAE,
-0x00,0x00,0x16,0xAE,
-0x00,0x00,0x71,0xAE,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x2C,0x00,0xBF,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0xB0,0x10,0x3C,
-0x40,0x00,0x05,0x36,
-0x00,0x00,0xA2,0x94,
-0xAF,0xFF,0x03,0x24,
-0xA8,0x00,0x13,0x36,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0xA2,0xA4,
-0xA0,0x00,0x12,0x36,
-0xA4,0x00,0x10,0x36,
-0x00,0x00,0x55,0x8E,
-0x00,0x00,0x16,0x8E,
-0x00,0x00,0x71,0x8E,
-0x00,0x80,0x14,0x3C,
-0xFC,0x37,0x02,0x24,
-0x00,0x00,0x40,0xAE,
-0xFD,0x00,0x04,0x24,
-0x00,0x00,0x00,0xAE,
-0x21,0x88,0x34,0x02,
-0x00,0x00,0x74,0xAE,
-0x00,0x00,0xA2,0xA4,
-0x73,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x55,0xAE,
-0x00,0x00,0x16,0xAE,
-0x00,0x00,0x71,0xAE,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0xB0,0x04,0x3C,
-0x40,0x00,0x84,0x34,
-0x00,0x00,0x82,0x94,
-0xD8,0xFD,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0xFC,0x37,0x03,0x24,
-0x00,0x00,0x82,0xA4,
-0x00,0x00,0x83,0xA4,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x84,0x30,
-0xFF,0xFF,0xAC,0x30,
-0xC0,0x48,0x04,0x00,
-0x00,0x60,0x0E,0x40,
-0x01,0x00,0xC1,0x35,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0xB0,0x02,0x3C,
-0x40,0x02,0x4D,0x34,
-0xF8,0xFF,0xE7,0x24,
-0x21,0x40,0x00,0x00,
-0x01,0x00,0x0F,0x24,
-0x44,0x02,0x4B,0x34,
-0x72,0x23,0x00,0x08,
-0x01,0x80,0x0A,0x3C,
-0x28,0x00,0x0F,0x11,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0xE2,0x90,
-0x00,0x00,0xE4,0x90,
-0x02,0x00,0xE3,0x90,
-0x03,0x00,0xE5,0x90,
-0x00,0x12,0x02,0x00,
-0x25,0x20,0x82,0x00,
-0x00,0x1C,0x03,0x00,
-0x25,0x20,0x83,0x00,
-0x21,0x10,0x28,0x01,
-0x00,0x2E,0x05,0x00,
-0x01,0x00,0x08,0x25,
-0x25,0x20,0x85,0x00,
-0x25,0x10,0x4A,0x00,
-0x06,0x00,0x03,0x2D,
-0x00,0x00,0x64,0xAD,
-0x04,0x00,0xE7,0x24,
-0x00,0x00,0xA2,0xAD,
-0x12,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0xEA,0xFF,0x00,0x15,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC2,0x90,
-0x01,0x00,0xC3,0x90,
-0x04,0x00,0xE7,0x24,
-0x00,0x14,0x02,0x00,
-0x25,0x10,0x82,0x01,
-0x00,0x1E,0x03,0x00,
-0x25,0x20,0x43,0x00,
-0x21,0x10,0x28,0x01,
-0x01,0x00,0x08,0x25,
-0x25,0x10,0x4A,0x00,
-0x06,0x00,0x03,0x2D,
-0x00,0x00,0x64,0xAD,
-0x00,0x00,0xA2,0xAD,
-0xF0,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x8E,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0xC2,0x90,
-0x02,0x00,0xC4,0x90,
-0x04,0x00,0xC3,0x90,
-0x05,0x00,0xC5,0x90,
-0x64,0x23,0x00,0x08,
-0x00,0x12,0x02,0x00,
-0xFF,0xFF,0x84,0x30,
-0x42,0xB0,0x08,0x3C,
-0x80,0x10,0x04,0x00,
-0x21,0x10,0x48,0x00,
-0x04,0x00,0x46,0xAC,
-0x00,0x00,0x07,0x91,
-0x40,0x18,0x04,0x00,
-0x03,0x00,0x06,0x24,
-0xFF,0x00,0xE7,0x30,
-0x04,0x30,0x66,0x00,
-0x01,0x00,0x02,0x24,
-0x04,0x10,0x62,0x00,
-0x25,0x30,0xC7,0x00,
-0xFF,0xFF,0xA5,0x30,
-0x25,0x10,0x47,0x00,
-0x02,0x00,0xA0,0x14,
-0xFF,0x00,0xC7,0x30,
-0xFF,0x00,0x47,0x30,
-0x42,0xB0,0x02,0x3C,
-0x00,0x00,0x47,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0x83,0x90,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0x86,0xAC,
-0x18,0x00,0x85,0xAC,
-0x00,0x00,0x84,0xAC,
-0x03,0x00,0x62,0x10,
-0x04,0x00,0x84,0xAC,
-0x99,0x59,0x00,0x08,
-0x0C,0x00,0x80,0xAC,
-0x0C,0x00,0x82,0x8C,
-0x99,0x59,0x00,0x08,
-0x10,0x00,0x82,0xAC,
-0xC8,0xFF,0xBD,0x27,
-0x28,0x00,0xB6,0xAF,
-0x25,0xB0,0x02,0x3C,
-0x02,0x80,0x16,0x3C,
-0x2C,0x00,0xB7,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x30,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x18,0x03,0x55,0x34,
-0x01,0x80,0x17,0x3C,
-0x02,0x80,0x13,0x3C,
-0x02,0x80,0x14,0x3C,
-0x08,0xE4,0xD2,0x26,
-0xB8,0x8E,0xE2,0x26,
-0x00,0x00,0xA2,0xAE,
-0x08,0xE4,0xD0,0x8E,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x14,0x5E,0x71,0x8E,
-0x00,0x00,0x00,0x00,
-0x25,0x00,0x20,0x12,
-0x00,0x00,0x00,0x00,
-0x14,0x5E,0x60,0xAE,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x23,0x00,0x12,0x12,
-0x08,0x0C,0x84,0x26,
-0x14,0x00,0x03,0x92,
-0x01,0x00,0x02,0x24,
-0x2B,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x60,0x14,
-0x02,0x00,0x02,0x24,
-0x0C,0x00,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x23,0x02,
-0x1E,0x00,0x40,0x10,
-0x23,0x10,0x71,0x00,
-0x0C,0x00,0x02,0xAE,
-0x00,0x00,0x10,0x8E,
-0xCE,0x23,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xFC,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0xF8,0xFF,0x60,0x10,
-0x2B,0x10,0x23,0x02,
-0xF5,0xFF,0x40,0x14,
-0x23,0x10,0x71,0x00,
-0x08,0x00,0x02,0x8E,
-0x18,0x00,0x04,0x8E,
-0x09,0xF8,0x40,0x00,
-0x0C,0x00,0x00,0xAE,
-0x00,0x00,0x10,0x8E,
-0xCE,0x23,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x08,0x0C,0x84,0x26,
-0x21,0x28,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x91,0x3C,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0xC0,0x23,0x00,0x08,
-0xB8,0x8E,0xE2,0x26,
-0x08,0x00,0x02,0x8E,
-0x18,0x00,0x04,0x8E,
-0x09,0xF8,0x40,0x00,
-0x00,0x00,0x00,0x00,
-0xDC,0x23,0x00,0x08,
-0x0C,0x00,0x02,0xAE,
-0x0C,0x00,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x23,0x02,
-0xD9,0xFF,0x40,0x14,
-0x23,0x10,0x71,0x00,
-0x08,0x00,0x02,0x8E,
-0x18,0x00,0x04,0x8E,
-0x09,0xF8,0x40,0x00,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x03,0xAE,
-0x00,0x00,0x10,0x8E,
-0xCE,0x23,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x9C,0x57,0x42,0x24,
-0xC0,0x20,0x04,0x00,
-0x21,0x20,0x82,0x00,
-0x21,0x28,0x00,0x00,
-0x00,0x60,0x06,0x40,
-0x01,0x00,0xC1,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x00,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x09,0x00,0x44,0x10,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x43,0x8C,
-0x21,0x28,0x40,0x00,
-0x00,0x00,0x42,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x62,0xAC,
-0x04,0x00,0x43,0xAC,
-0x00,0x00,0xA5,0xAC,
-0x04,0x00,0xA5,0xAC,
-0x00,0x60,0x86,0x40,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x21,0x18,0x80,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x01,0x01,0x62,0x2C,
-0x10,0x00,0xBF,0xAF,
-0x01,0x00,0x04,0x24,
-0x01,0x02,0x65,0x2C,
-0x0A,0x00,0x40,0x14,
-0x21,0x30,0x00,0x00,
-0x02,0x00,0x04,0x24,
-0x07,0x00,0xA0,0x14,
-0x01,0x08,0x62,0x2C,
-0x05,0x00,0x40,0x14,
-0x03,0x00,0x04,0x24,
-0x10,0x00,0xBF,0x8F,
-0x21,0x10,0xC0,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x0D,0x24,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xBF,0x8F,
-0x21,0x30,0x40,0x00,
-0x21,0x10,0xC0,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x00,0x60,0x06,0x40,
-0x01,0x00,0xC1,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x10,0x00,0x83,0x8C,
-0x02,0x80,0x02,0x3C,
-0x9C,0x57,0x42,0x24,
-0xC0,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x00,0x00,0x65,0x8C,
-0x02,0x80,0x07,0x3C,
-0x02,0x80,0x08,0x3C,
-0x00,0x00,0x85,0xAC,
-0x04,0x00,0xA4,0xAC,
-0x04,0x00,0x83,0xAC,
-0xD0,0x5E,0xE5,0x8C,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0xA0,0x10,
-0x00,0x00,0x64,0xAC,
-0xBC,0x5E,0x02,0x8D,
-0xD0,0x5E,0xE0,0xAC,
-0x25,0x10,0x45,0x00,
-0xBC,0x5E,0x02,0xAD,
-0x00,0x60,0x86,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0xA5,0x30,
-0x25,0xB0,0x02,0x3C,
-0x21,0x28,0xA2,0x00,
-0xFF,0x00,0x84,0x30,
-0x60,0x01,0xA4,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x84,0x30,
-0x01,0x00,0x03,0x24,
-0x10,0x00,0x02,0x3C,
-0x04,0x18,0x83,0x00,
-0xF0,0x70,0x42,0x34,
-0x15,0x00,0x84,0x2C,
-0x06,0x00,0x80,0x10,
-0x24,0x28,0x62,0x00,
-0x0F,0x00,0x63,0x30,
-0x04,0x00,0xA0,0x14,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0x60,0x14,
-0x02,0x00,0x02,0x24,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0xA5,0x30,
-0x04,0x00,0xA2,0x2C,
-0x14,0x00,0x40,0x10,
-0xFF,0x00,0x84,0x30,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xEF,0xFF,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x02,0x00,0x42,0x2C,
-0x0E,0x00,0x40,0x10,
-0x02,0x00,0x03,0x24,
-0x24,0x00,0x83,0x10,
-0x0F,0x10,0x02,0x3C,
-0x03,0x00,0x82,0x28,
-0x14,0x00,0x40,0x10,
-0x03,0x00,0x02,0x24,
-0x01,0x00,0x02,0x24,
-0x2F,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0x1F,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0xFF,0xFF,0x42,0x34,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x35,0x00,0x83,0x10,
-0x0F,0x1F,0x02,0x3C,
-0x03,0x00,0x82,0x28,
-0x16,0x00,0x40,0x10,
-0x03,0x00,0x02,0x24,
-0x01,0x00,0x02,0x24,
-0xF4,0xFF,0x82,0x14,
-0x00,0x00,0x00,0x00,
-0x0F,0x1F,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x00,0x80,0x42,0x34,
-0xF0,0xFF,0x82,0x14,
-0xFF,0x1F,0x02,0x3C,
-0x01,0x00,0x02,0x24,
-0x29,0x00,0xA2,0x10,
-0x0F,0x10,0x02,0x3C,
-0x02,0x00,0xA2,0x28,
-0x1F,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x28,0x00,0xA3,0x10,
-0x00,0x00,0x00,0x00,
-0xE5,0xFF,0xA4,0x14,
-0x00,0x00,0x00,0x00,
-0x0F,0x10,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x00,0xF0,0x42,0x34,
-0xE1,0xFF,0x82,0x14,
-0xFF,0x1F,0x02,0x3C,
-0x01,0x00,0x02,0x24,
-0x1C,0x00,0xA2,0x10,
-0x0F,0x00,0x02,0x3C,
-0x02,0x00,0xA2,0x28,
-0x0B,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x1C,0x00,0xA3,0x10,
-0x00,0x00,0x00,0x00,
-0xD6,0xFF,0xA4,0x14,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x00,0xF0,0x42,0x34,
-0x0F,0x10,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x00,0x80,0x42,0x34,
-0xCE,0xFF,0xA0,0x14,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x15,0xF0,0x42,0x34,
-0xC9,0xFF,0xA0,0x14,
-0x00,0x00,0x00,0x00,
-0x0F,0x10,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x15,0xF0,0x42,0x34,
-0x08,0x00,0xE0,0x03,
-0x00,0xF0,0x42,0x34,
-0x08,0x00,0xE0,0x03,
-0x10,0xF0,0x42,0x34,
-0x08,0x00,0xE0,0x03,
-0x10,0xF0,0x42,0x34,
-0x0F,0x10,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x05,0xF0,0x42,0x34,
-0x0F,0x00,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x05,0xF0,0x42,0x34,
-0xC0,0x40,0x04,0x00,
-0x21,0x18,0x04,0x01,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x64,0x00,
-0x02,0x80,0x02,0x3C,
-0x80,0x18,0x03,0x00,
-0x30,0x1F,0x42,0x24,
-0x21,0x18,0x62,0x00,
-0x18,0x24,0x66,0x8C,
-0x21,0x38,0x60,0x00,
-0x1E,0x24,0x60,0xA0,
-0x1F,0x24,0x60,0xA0,
-0x1C,0x00,0x05,0x24,
-0xDA,0x24,0x00,0x08,
-0x01,0x00,0x03,0x24,
-0x08,0x00,0xA0,0x04,
-0x21,0x10,0x04,0x01,
-0x04,0x10,0xA3,0x00,
-0x24,0x10,0xC2,0x00,
-0xFB,0xFF,0x40,0x10,
-0xFF,0xFF,0xA5,0x24,
-0x01,0x00,0xA5,0x24,
-0x1E,0x24,0xE5,0xA0,
-0x21,0x10,0x04,0x01,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x02,0x00,
-0x30,0x1F,0x63,0x24,
-0x21,0x18,0x43,0x00,
-0x18,0x24,0x66,0x8C,
-0x21,0x28,0x00,0x00,
-0xEE,0x24,0x00,0x08,
-0x01,0x00,0x07,0x24,
-0x1D,0x00,0xA2,0x28,
-0x08,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x04,0x10,0xA7,0x00,
-0x24,0x10,0xC2,0x00,
-0xFA,0xFF,0x40,0x10,
-0x01,0x00,0xA5,0x24,
-0xFF,0xFF,0xA5,0x24,
-0x08,0x00,0xE0,0x03,
-0x1F,0x24,0x65,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x88,0x00,0x00,
-0x30,0x1F,0x50,0x24,
-0xFF,0xF1,0x14,0x24,
-0x25,0xB0,0x13,0x3C,
-0x24,0x00,0xBF,0xAF,
-0x08,0x25,0x00,0x08,
-0x18,0x00,0xB2,0xAF,
-0x01,0x00,0x31,0x26,
-0x20,0x00,0x22,0x2E,
-0x2A,0x00,0x40,0x10,
-0x94,0x00,0x10,0x26,
-0x1C,0x24,0x06,0x8E,
-0x01,0x00,0x03,0x24,
-0x02,0x13,0x06,0x00,
-0x01,0x00,0x45,0x30,
-0xF7,0xFF,0xA3,0x14,
-0x42,0x1A,0x06,0x00,
-0x0C,0x24,0x02,0x8E,
-0x07,0x00,0x64,0x30,
-0x02,0x11,0x02,0x00,
-0x7F,0x00,0x43,0x30,
-0x27,0x00,0x85,0x10,
-0x07,0x00,0xD2,0x30,
-0x02,0x00,0x82,0x28,
-0x31,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0x28,0x00,0x82,0x10,
-0x03,0x00,0x02,0x24,
-0x31,0x00,0x82,0x10,
-0x1A,0x00,0x62,0x2C,
-0x1C,0x24,0x02,0x8E,
-0x04,0x00,0x43,0x2E,
-0x42,0x12,0x02,0x00,
-0x0A,0x00,0x60,0x10,
-0x07,0x00,0x44,0x30,
-0x6E,0x24,0x00,0x0C,
-0x21,0x28,0x40,0x02,
-0x80,0x18,0x12,0x00,
-0x21,0x18,0x73,0x00,
-0x14,0x24,0x04,0x8E,
-0x84,0x01,0x65,0x8C,
-0x24,0x20,0x82,0x00,
-0x24,0x28,0xA4,0x00,
-0x18,0x24,0x05,0xAE,
-0xC9,0x24,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x21,0x10,0x33,0x02,
-0x01,0x00,0x31,0x26,
-0x60,0x01,0x43,0x90,
-0x20,0x00,0x22,0x2E,
-0xD8,0xFF,0x40,0x14,
-0x94,0x00,0x10,0x26,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x32,0x00,0x62,0x2C,
-0xDF,0xFF,0x40,0x10,
-0x24,0x10,0xD4,0x00,
-0x00,0x04,0x42,0x34,
-0x1B,0x25,0x00,0x08,
-0x1C,0x24,0x02,0xAE,
-0x38,0x00,0x62,0x2C,
-0x0D,0x00,0x40,0x14,
-0x14,0x00,0x62,0x2C,
-0x24,0x10,0xD4,0x00,
-0x00,0x02,0x42,0x34,
-0x1B,0x25,0x00,0x08,
-0x1C,0x24,0x02,0xAE,
-0xD3,0xFF,0x80,0x14,
-0x24,0x10,0xD4,0x00,
-0x1B,0x25,0x00,0x08,
-0x1C,0x24,0x02,0xAE,
-0xCF,0xFF,0x40,0x14,
-0x24,0x10,0xD4,0x00,
-0x3E,0x25,0x00,0x08,
-0x00,0x04,0x42,0x34,
-0xCB,0xFF,0x40,0x10,
-0x24,0x10,0xD4,0x00,
-0x00,0x06,0x42,0x34,
-0x1B,0x25,0x00,0x08,
-0x1C,0x24,0x02,0xAE,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0xC0,0x80,0x04,0x00,
-0x21,0x80,0x04,0x02,
-0x80,0x80,0x10,0x00,
-0x21,0x80,0x04,0x02,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x80,0x10,0x00,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x21,0x80,0x02,0x02,
-0x1C,0x24,0x03,0x8E,
-0x25,0xB0,0x02,0x3C,
-0x80,0x01,0x45,0x34,
-0x07,0x00,0x63,0x30,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x00,0x00,0xA6,0x90,
-0x14,0x24,0x05,0x8E,
-0x84,0x01,0x62,0x8C,
-0x21,0x88,0x80,0x00,
-0x24,0x10,0x45,0x00,
-0xC9,0x24,0x00,0x0C,
-0x18,0x24,0x02,0xAE,
-0x1E,0x24,0x04,0x92,
-0xFF,0x00,0x25,0x32,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x57,0x24,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0xFF,0xFF,0x84,0x30,
-0x00,0x02,0x82,0x30,
-0x07,0x00,0x03,0x24,
-0x0D,0x00,0x40,0x14,
-0x0B,0x00,0x84,0x30,
-0x0C,0x00,0x82,0x2C,
-0x0A,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x04,0x00,
-0x74,0xED,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x06,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x05,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x04,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x03,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x02,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x01,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x21,0x18,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0xA8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x50,0x00,0xBE,0xAF,
-0x4C,0x00,0xB7,0xAF,
-0x48,0x00,0xB6,0xAF,
-0x44,0x00,0xB5,0xAF,
-0x3C,0x00,0xB3,0xAF,
-0x38,0x00,0xB2,0xAF,
-0x54,0x00,0xBF,0xAF,
-0x40,0x00,0xB4,0xAF,
-0x34,0x00,0xB1,0xAF,
-0x30,0x00,0xB0,0xAF,
-0xA4,0xED,0x42,0x24,
-0x00,0x00,0x54,0x8C,
-0x21,0x98,0x00,0x00,
-0x21,0xA8,0x00,0x00,
-0x21,0xB0,0x00,0x00,
-0x10,0x00,0xA0,0xAF,
-0x21,0xB8,0x00,0x00,
-0x14,0x00,0xA0,0xAF,
-0x21,0xF0,0x00,0x00,
-0x18,0x00,0xA0,0xAF,
-0x1C,0x00,0xA0,0xAF,
-0x20,0x00,0xA0,0xAF,
-0x24,0x00,0xA0,0xAF,
-0x28,0x00,0xA0,0xAF,
-0x2C,0x00,0xA0,0xAF,
-0x21,0x90,0x80,0x02,
-0x1C,0x24,0x42,0x8E,
-0x00,0x00,0x00,0x00,
-0x02,0x13,0x02,0x00,
-0x01,0x00,0x42,0x30,
-0x68,0x00,0x40,0x10,
-0x25,0xB0,0x02,0x3C,
-0x21,0x10,0x62,0x02,
-0x60,0x01,0x44,0x90,
-0x04,0x24,0x43,0x8E,
-0x00,0x24,0x46,0x8E,
-0xFF,0x00,0x8B,0x30,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x84,0x24,
-0x21,0x10,0x64,0x01,
-0xE7,0x04,0x44,0x90,
-0xCA,0x04,0x45,0x90,
-0xE8,0x23,0x47,0x8E,
-0x18,0x00,0x64,0x00,
-0x12,0x18,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xC5,0x00,
-0x12,0x30,0x00,0x00,
-0x21,0x30,0xC3,0x00,
-0x2B,0x10,0xE6,0x00,
-0x02,0x01,0x40,0x14,
-0x23,0x10,0xE6,0x00,
-0xE8,0x23,0x42,0xAE,
-0x04,0x24,0x44,0x8E,
-0x00,0x24,0x47,0x8E,
-0xEC,0x23,0x48,0x8E,
-0xF0,0x23,0x45,0x8E,
-0xF8,0x23,0x46,0x8E,
-0xFC,0x23,0x43,0x8E,
-0x21,0x38,0xE4,0x00,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x84,0x24,
-0x21,0x10,0x64,0x01,
-0x21,0x40,0x05,0x01,
-0x21,0x30,0xC3,0x00,
-0x3E,0x05,0x42,0x90,
-0xE8,0x23,0x4A,0x8E,
-0x0C,0x00,0xE0,0x10,
-0x21,0x48,0x00,0x00,
-0x2B,0x48,0x47,0x00,
-0x0B,0x00,0x20,0x15,
-0x02,0x80,0x02,0x3C,
-0x07,0x00,0x62,0x2D,
-0x4B,0x01,0x40,0x14,
-0xC0,0x10,0x07,0x00,
-0x0C,0x00,0x02,0x24,
-0x47,0x01,0x62,0x11,
-0x0D,0x00,0x02,0x24,
-0x46,0x01,0x62,0x11,
-0xC0,0x10,0x07,0x00,
-0x6C,0x00,0x20,0x11,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x0B,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x20,0x4B,0x02,
-0x5A,0x24,0x85,0x90,
-0x60,0x05,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x04,0x10,0xA2,0x00,
-0x2B,0x10,0x4A,0x00,
-0x61,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x78,0x24,0x42,0x8E,
-0x01,0x00,0x07,0x24,
-0x04,0x18,0x67,0x01,
-0x24,0x10,0x43,0x00,
-0xE1,0x00,0x40,0x10,
-0x1C,0x00,0x62,0x2D,
-0x21,0x28,0x4B,0x02,
-0x20,0x24,0xA6,0x90,
-0x5A,0x24,0xA2,0x90,
-0x0A,0x00,0x04,0x24,
-0xFF,0x00,0xC3,0x30,
-0x04,0x20,0x44,0x00,
-0x2A,0x18,0x64,0x00,
-0xD8,0x00,0x60,0x10,
-0x1C,0x00,0x62,0x2D,
-0x01,0x00,0xC2,0x24,
-0xFF,0x00,0x43,0x30,
-0x37,0x01,0x64,0x10,
-0x20,0x24,0xA2,0xA0,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x85,0x24,
-0x80,0x10,0x0B,0x00,
-0x21,0x10,0x45,0x00,
-0xD4,0x05,0x44,0x8C,
-0x60,0x05,0x43,0x8C,
-0x18,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0x30,0x45,0x00,
-0x40,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0x21,0x18,0x62,0x00,
-0x82,0x50,0x03,0x00,
-0xE8,0x23,0xCA,0xAC,
-0x30,0x38,0xA3,0x8C,
-0xFF,0xFF,0x02,0x34,
-0x03,0x00,0x62,0x10,
-0x21,0x20,0x60,0x01,
-0x57,0x24,0x00,0x0C,
-0xFF,0x00,0x65,0x32,
-0x9E,0x00,0x60,0x12,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x82,0x24,
-0x21,0x10,0xA2,0x02,
-0xFC,0x23,0x40,0xAC,
-0x00,0x24,0x40,0xAC,
-0x04,0x24,0x40,0xAC,
-0xEC,0x23,0x40,0xAC,
-0xF0,0x23,0x40,0xAC,
-0xF4,0x23,0x40,0xAC,
-0xF8,0x23,0x40,0xAC,
-0x2C,0x00,0xA2,0x8F,
-0x28,0x00,0xA4,0x8F,
-0x01,0x00,0x73,0x26,
-0x94,0x00,0x42,0x24,
-0x94,0x00,0x84,0x24,
-0x2C,0x00,0xA2,0xAF,
-0x28,0x00,0xA4,0xAF,
-0x24,0x00,0xA2,0x8F,
-0x20,0x00,0xA4,0x8F,
-0x20,0x00,0x63,0x2A,
-0x94,0x00,0x42,0x24,
-0x94,0x00,0x84,0x24,
-0x24,0x00,0xA2,0xAF,
-0x20,0x00,0xA4,0xAF,
-0x1C,0x00,0xA2,0x8F,
-0x18,0x00,0xA4,0x8F,
-0x94,0x00,0x52,0x26,
-0x94,0x00,0x42,0x24,
-0x94,0x00,0x84,0x24,
-0x1C,0x00,0xA2,0xAF,
-0x18,0x00,0xA4,0xAF,
-0x14,0x00,0xA2,0x8F,
-0x10,0x00,0xA4,0x8F,
-0x94,0x00,0xDE,0x27,
-0x94,0x00,0x42,0x24,
-0x94,0x00,0x84,0x24,
-0x14,0x00,0xA2,0xAF,
-0x94,0x00,0xF7,0x26,
-0x10,0x00,0xA4,0xAF,
-0x94,0x00,0x94,0x26,
-0x94,0x00,0xD6,0x26,
-0x69,0xFF,0x60,0x14,
-0x94,0x00,0xB5,0x26,
-0x54,0x00,0xBF,0x8F,
-0x50,0x00,0xBE,0x8F,
-0x4C,0x00,0xB7,0x8F,
-0x48,0x00,0xB6,0x8F,
-0x44,0x00,0xB5,0x8F,
-0x40,0x00,0xB4,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x58,0x00,0xBD,0x27,
-0x79,0x00,0xE0,0x10,
-0x00,0x00,0x00,0x00,
-0x79,0x00,0x20,0x15,
-0x02,0x80,0x03,0x3C,
-0x40,0x10,0x07,0x00,
-0x21,0x10,0x47,0x00,
-0x82,0x10,0x02,0x00,
-0x2B,0x10,0x46,0x00,
-0xBE,0xFF,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x88,0x24,
-0x21,0x20,0xC8,0x03,
-0x21,0x30,0x8B,0x00,
-0x78,0x24,0x83,0x8C,
-0x01,0x00,0x05,0x24,
-0x04,0x10,0x65,0x01,
-0x3D,0x24,0xC7,0x90,
-0x27,0x10,0x02,0x00,
-0x24,0x18,0x62,0x00,
-0x78,0x24,0x83,0xAC,
-0x09,0x00,0xE5,0x10,
-0x20,0x24,0xC0,0xA0,
-0x14,0x00,0xA2,0x8F,
-0x21,0x38,0x00,0x00,
-0x21,0x20,0x48,0x00,
-0x21,0x18,0x87,0x00,
-0x01,0x00,0xE7,0x24,
-0x1D,0x00,0xE2,0x28,
-0xFC,0xFF,0x40,0x14,
-0x5A,0x24,0x60,0xA0,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x83,0x24,
-0x21,0x10,0xE3,0x02,
-0x21,0x10,0x4B,0x00,
-0x3D,0x24,0x40,0xA0,
-0x21,0x50,0x60,0x00,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x78,0xE8,0x49,0x24,
-0x04,0xE8,0x68,0x24,
-0x21,0x38,0x00,0x00,
-0x80,0x18,0x07,0x00,
-0x21,0x10,0x69,0x00,
-0x21,0x20,0x68,0x00,
-0x00,0x00,0x46,0x8C,
-0x00,0x00,0x85,0x8C,
-0x01,0x00,0xE7,0x24,
-0x21,0x18,0x6A,0x00,
-0x1D,0x00,0xE2,0x28,
-0x60,0x05,0x65,0xAC,
-0xF6,0xFF,0x40,0x14,
-0xD4,0x05,0x66,0xAC,
-0x15,0x00,0x60,0x11,
-0x02,0x80,0x04,0x3C,
-0x1F,0x24,0x82,0x92,
-0xFF,0xFF,0x67,0x25,
-0x2A,0x10,0xE2,0x00,
-0x10,0x00,0x40,0x14,
-0x02,0x80,0x03,0x3C,
-0x10,0x00,0xA4,0x8F,
-0x30,0x1F,0x62,0x24,
-0x21,0x10,0x82,0x00,
-0x1F,0x24,0x45,0x90,
-0x18,0x24,0x44,0x8C,
-0x01,0x00,0x06,0x24,
-0x04,0x18,0xE6,0x00,
-0x24,0x10,0x83,0x00,
-0xB9,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0xE7,0x24,
-0x2A,0x10,0xE5,0x00,
-0xFA,0xFF,0x40,0x10,
-0x04,0x18,0xE6,0x00,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x83,0x24,
-0x80,0x10,0x0B,0x00,
-0x21,0x10,0x43,0x00,
-0xD4,0x05,0x45,0x8C,
-0x60,0x05,0x44,0x8C,
-0x02,0x80,0x03,0x3C,
-0x40,0x10,0x05,0x00,
-0xDE,0x5D,0x66,0x90,
-0x21,0x10,0x45,0x00,
-0x21,0x20,0x82,0x00,
-0x22,0x00,0x02,0x24,
-0x9D,0x00,0xC2,0x10,
-0x82,0x50,0x04,0x00,
-0x78,0x24,0x83,0x8E,
-0x01,0x00,0x02,0x24,
-0x04,0x10,0x62,0x01,
-0x25,0x18,0x62,0x00,
-0x78,0x24,0x83,0xAE,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x43,0x24,
-0x21,0x10,0xC3,0x02,
-0xE8,0x23,0x4A,0xAC,
-0x30,0x38,0x64,0x8C,
-0xFF,0xFF,0x02,0x34,
-0x62,0xFF,0x82,0x14,
-0x21,0x20,0x60,0x01,
-0x64,0xFF,0x60,0x16,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x70,0x24,
-0xF0,0x23,0x05,0x96,
-0xEC,0x23,0x02,0x96,
-0x25,0xB0,0x11,0x3C,
-0x00,0x2C,0x05,0x00,
-0x21,0x28,0x45,0x00,
-0xB5,0x59,0x00,0x0C,
-0x68,0x0C,0x24,0x36,
-0xFC,0x23,0x02,0x8E,
-0xF8,0x23,0x05,0x8E,
-0xF4,0x23,0x03,0x96,
-0x6C,0x0C,0x24,0x36,
-0x21,0x28,0xA2,0x00,
-0x00,0x2C,0x05,0x00,
-0xB5,0x59,0x00,0x0C,
-0x21,0x28,0x65,0x00,
-0x28,0x26,0x00,0x08,
-0x02,0x80,0x04,0x3C,
-0xD6,0x25,0x00,0x08,
-0xE8,0x23,0x40,0xAE,
-0x4C,0xFF,0x20,0x11,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x62,0x24,
-0x80,0x18,0x0B,0x00,
-0x21,0x18,0x62,0x00,
-0xD4,0x05,0x64,0x8C,
-0x00,0x00,0x00,0x00,
-0x2B,0x20,0x44,0x01,
-0x44,0xFF,0x80,0x10,
-0x02,0x80,0x04,0x3C,
-0x69,0x26,0x00,0x08,
-0x30,0x1F,0x88,0x24,
-0x2D,0xFF,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x21,0x20,0x4B,0x02,
-0x3D,0x24,0x83,0x90,
-0x01,0x00,0x02,0x24,
-0x53,0x00,0x62,0x10,
-0x02,0x80,0x02,0x3C,
-0x2C,0x00,0xA3,0x8F,
-0x30,0x1F,0x42,0x24,
-0x21,0x38,0x00,0x00,
-0x21,0x20,0x62,0x00,
-0x21,0x18,0x87,0x00,
-0x01,0x00,0xE7,0x24,
-0x1D,0x00,0xE2,0x28,
-0xFC,0xFF,0x40,0x14,
-0x5A,0x24,0x60,0xA0,
-0x28,0x00,0xA4,0x8F,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x65,0x24,
-0x21,0x30,0x85,0x00,
-0x78,0x24,0xC2,0x8C,
-0x01,0x00,0x03,0x24,
-0x04,0x18,0x63,0x01,
-0x27,0x18,0x03,0x00,
-0x21,0x20,0xCB,0x00,
-0x24,0x10,0x43,0x00,
-0x3D,0x24,0x80,0xA0,
-0x78,0x24,0xC2,0xAC,
-0x12,0x00,0x60,0x15,
-0x20,0x24,0x80,0xA0,
-0x1E,0x24,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x0E,0x00,0x40,0x10,
-0x01,0x00,0x07,0x24,
-0x24,0x00,0xA3,0x8F,
-0x01,0x00,0x06,0x24,
-0x21,0x10,0x65,0x00,
-0x1E,0x24,0x44,0x90,
-0x18,0x24,0x45,0x8C,
-0x04,0x18,0xE6,0x00,
-0x24,0x10,0xA3,0x00,
-0x4B,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0xE7,0x24,
-0x2A,0x10,0x87,0x00,
-0xFA,0xFF,0x40,0x10,
-0x04,0x18,0xE6,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x44,0x24,
-0x20,0x00,0xA2,0x8F,
-0x01,0x00,0x67,0x25,
-0x21,0x18,0x44,0x00,
-0x1E,0x24,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x2A,0x10,0x47,0x00,
-0x0E,0x00,0x40,0x14,
-0x01,0x00,0x06,0x24,
-0x1C,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x64,0x00,
-0x1E,0x24,0x45,0x90,
-0x18,0x24,0x44,0x8C,
-0x04,0x18,0xE6,0x00,
-0x24,0x10,0x83,0x00,
-0x31,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0xE7,0x24,
-0x2A,0x10,0xA7,0x00,
-0xFA,0xFF,0x40,0x10,
-0x04,0x18,0xE6,0x00,
-0x02,0x80,0x02,0x3C,
-0xDE,0x5D,0x44,0x90,
-0x22,0x00,0x03,0x24,
-0xE4,0xFE,0x83,0x14,
-0x02,0x80,0x04,0x3C,
-0xEE,0xFF,0x62,0x25,
-0xFF,0x00,0x42,0x30,
-0x02,0x00,0x42,0x2C,
-0x18,0x00,0x03,0x24,
-0x12,0x26,0x00,0x08,
-0x0B,0x58,0x62,0x00,
-0xC0,0x10,0x07,0x00,
-0x23,0x10,0x47,0x00,
-0xC2,0x10,0x02,0x00,
-0x2B,0x10,0x48,0x00,
-0xC4,0xFE,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xF1,0x25,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0x62,0x2D,
-0x0A,0x00,0x40,0x14,
-0x05,0x00,0x62,0x2D,
-0x5A,0x24,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x62,0x2C,
-0xB0,0xFF,0x40,0x10,
-0x01,0x00,0x62,0x24,
-0xF4,0x26,0x00,0x08,
-0x5A,0x24,0x82,0xA0,
-0x11,0x26,0x00,0x08,
-0x3D,0x24,0xA7,0xA0,
-0x04,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x5A,0x24,0x83,0x90,
-0x43,0x27,0x00,0x08,
-0x03,0x00,0x62,0x2C,
-0x5A,0x24,0x83,0x90,
-0x43,0x27,0x00,0x08,
-0x04,0x00,0x62,0x2C,
-0x13,0x00,0x02,0x24,
-0x62,0xFF,0x62,0x15,
-0x02,0x80,0x02,0x3C,
-0xBC,0x26,0x00,0x08,
-0x30,0x1F,0x43,0x24,
-0xFF,0x00,0xEB,0x30,
-0x2B,0x27,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x13,0x27,0x00,0x08,
-0xFF,0x00,0xEB,0x30,
-0xA7,0x26,0x00,0x08,
-0xFF,0x00,0xEB,0x30,
-0xD8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x14,0x00,0xB1,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x45,0x24,
-0xA9,0x37,0xA4,0x90,
-0xA4,0x37,0xA3,0x8C,
-0xA0,0x37,0xA2,0x8C,
-0x21,0x88,0x64,0x00,
-0x2B,0x10,0x22,0x02,
-0x60,0x00,0x40,0x10,
-0x21,0x80,0xA0,0x00,
-0x02,0x80,0x14,0x3C,
-0x21,0x98,0xA0,0x00,
-0x76,0x27,0x00,0x08,
-0x21,0x90,0xA0,0x00,
-0xA0,0x37,0x42,0x8E,
-0x10,0x00,0x31,0x26,
-0x2B,0x10,0x22,0x02,
-0x57,0x00,0x40,0x10,
-0x21,0x80,0x40,0x02,
-0xA9,0x37,0x02,0x92,
-0xFF,0xFF,0x23,0x32,
-0x02,0x80,0x05,0x3C,
-0x10,0x00,0x42,0x24,
-0x25,0x28,0x65,0x00,
-0x98,0x55,0x84,0x26,
-0x10,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0xA9,0x37,0x02,0xA2,
-0x6C,0x36,0x06,0x8E,
-0x00,0x00,0x00,0x00,
-0x42,0x24,0x06,0x00,
-0x1F,0x00,0x84,0x30,
-0xC0,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x38,0x50,0x00,
-0x1C,0x24,0xE3,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x1B,0x03,0x00,
-0x01,0x00,0x63,0x30,
-0xE3,0xFF,0x60,0x10,
-0x25,0xB0,0x02,0x3C,
-0x68,0x36,0x05,0x8E,
-0x21,0x10,0x82,0x00,
-0x60,0x01,0x44,0x90,
-0x82,0x1D,0x05,0x00,
-0x3F,0x00,0x63,0x30,
-0x04,0x00,0x0A,0x24,
-0x05,0x00,0x62,0x28,
-0x21,0x40,0x40,0x01,
-0x0B,0x40,0x62,0x00,
-0x07,0x00,0xA0,0x04,
-0xFF,0x00,0x89,0x30,
-0x08,0x24,0xE2,0x8C,
-0x04,0x00,0x08,0x24,
-0x01,0x00,0x42,0x24,
-0x08,0x24,0xE2,0xAC,
-0x6C,0x36,0x66,0x8E,
-0x00,0x00,0x00,0x00,
-0x02,0x13,0x06,0x00,
-0x1F,0x00,0x42,0x30,
-0x08,0x00,0x42,0x28,
-0xCD,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x68,0x36,0x62,0x8E,
-0x00,0x00,0x00,0x00,
-0x3F,0x00,0x42,0x30,
-0xC8,0xFF,0x49,0x14,
-0x00,0x00,0x00,0x00,
-0x29,0x00,0x00,0x11,
-0x01,0x00,0x02,0x24,
-0x2E,0x00,0x02,0x11,
-0x02,0x00,0x02,0x24,
-0x33,0x00,0x02,0x11,
-0x03,0x00,0x02,0x24,
-0x38,0x00,0x02,0x11,
-0x00,0x00,0x00,0x00,
-0x3B,0x00,0x0A,0x11,
-0x00,0x00,0x00,0x00,
-0x0C,0x24,0xE2,0x8C,
-0x21,0x18,0x33,0x01,
-0x04,0x05,0x64,0x90,
-0x02,0x11,0x02,0x00,
-0x2B,0x10,0x44,0x00,
-0x3E,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x24,0xE3,0x8C,
-0x80,0x10,0x09,0x00,
-0x21,0x10,0x49,0x00,
-0x01,0x00,0x63,0x24,
-0x21,0x10,0x53,0x00,
-0x00,0x24,0xE3,0xAC,
-0x21,0x10,0x48,0x00,
-0xA8,0x03,0x44,0x90,
-0xE8,0x23,0xE3,0x8C,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x64,0x00,
-0xE8,0x23,0xE3,0xAC,
-0xA0,0x37,0x42,0x8E,
-0x10,0x00,0x31,0x26,
-0x2B,0x10,0x22,0x02,
-0xAB,0xFF,0x40,0x14,
-0x21,0x80,0x40,0x02,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xEC,0x23,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xEC,0x23,0xE2,0xAC,
-0x01,0x00,0x02,0x24,
-0xD4,0xFF,0x02,0x15,
-0x02,0x00,0x02,0x24,
-0xF0,0x23,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xF0,0x23,0xE2,0xAC,
-0x02,0x00,0x02,0x24,
-0xCF,0xFF,0x02,0x15,
-0x03,0x00,0x02,0x24,
-0xF4,0x23,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xF4,0x23,0xE2,0xAC,
-0x03,0x00,0x02,0x24,
-0xCA,0xFF,0x02,0x15,
-0x00,0x00,0x00,0x00,
-0xF8,0x23,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xC7,0xFF,0x0A,0x15,
-0xF8,0x23,0xE2,0xAC,
-0xFC,0x23,0xE2,0x8C,
-0x21,0x18,0x33,0x01,
-0x01,0x00,0x42,0x24,
-0xFC,0x23,0xE2,0xAC,
-0x0C,0x24,0xE2,0x8C,
-0x04,0x05,0x64,0x90,
-0x02,0x11,0x02,0x00,
-0x2B,0x10,0x44,0x00,
-0xC4,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x04,0x24,0xE3,0x8C,
-0x80,0x10,0x09,0x00,
-0x21,0x10,0x49,0x00,
-0x01,0x00,0x63,0x24,
-0x21,0x10,0x53,0x00,
-0x04,0x24,0xE3,0xAC,
-0x21,0x10,0x48,0x00,
-0x39,0x04,0x44,0x90,
-0xE8,0x23,0xE3,0x8C,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x64,0x00,
-0xC7,0x27,0x00,0x08,
-0xE8,0x23,0xE3,0xAC,
-0x23,0x10,0xA4,0x00,
-0x2B,0x18,0xA4,0x00,
-0x23,0x20,0x85,0x00,
-0x08,0x00,0xE0,0x03,
-0x0B,0x10,0x83,0x00,
-0x20,0xFF,0xBD,0x27,
-0xCC,0x00,0xB5,0xAF,
-0xDC,0x00,0xBF,0xAF,
-0xD8,0x00,0xBE,0xAF,
-0xD4,0x00,0xB7,0xAF,
-0xD0,0x00,0xB6,0xAF,
-0xC8,0x00,0xB4,0xAF,
-0xC4,0x00,0xB3,0xAF,
-0xC0,0x00,0xB2,0xAF,
-0xBC,0x00,0xB1,0xAF,
-0xB8,0x00,0xB0,0xAF,
-0x21,0xA8,0x00,0x00,
-0x40,0x11,0x15,0x00,
-0x10,0x00,0xA3,0x27,
-0x21,0x10,0x43,0x00,
-0x07,0x00,0x16,0x24,
-0xFF,0xFF,0xD6,0x26,
-0x00,0x00,0x40,0xAC,
-0xFD,0xFF,0xC1,0x06,
-0x04,0x00,0x42,0x24,
-0x01,0x00,0xB5,0x26,
-0x03,0x00,0xA2,0x2E,
-0xF6,0xFF,0x40,0x14,
-0x40,0x11,0x15,0x00,
-0x25,0xB0,0x10,0x3C,
-0xC4,0x02,0x02,0x36,
-0x00,0x00,0x40,0xAC,
-0x04,0x00,0x03,0x36,
-0x00,0x00,0x62,0x8C,
-0x04,0x0C,0x03,0x36,
-0x00,0x00,0x63,0x8C,
-0x08,0x0C,0x04,0x36,
-0x0F,0x00,0x11,0x3C,
-0xAC,0x00,0xA3,0xAF,
-0x00,0x00,0x84,0x8C,
-0x24,0x10,0x51,0x00,
-0x02,0xF4,0x02,0x00,
-0xB0,0x00,0xA4,0xAF,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x21,0x20,0x00,0x00,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x70,0x00,0xA2,0xAF,
-0x00,0x60,0x92,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x21,0x20,0x00,0x00,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x74,0x00,0xA2,0xAF,
-0x00,0x60,0x92,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0xE0,0x0E,0x02,0x36,
-0x21,0x20,0x40,0x00,
-0x00,0x00,0x42,0x8C,
-0xDC,0x0E,0x12,0x36,
-0x70,0x0E,0x13,0x36,
-0x78,0x00,0xA2,0xAF,
-0x00,0x00,0x42,0x8E,
-0x74,0x0E,0x14,0x36,
-0x78,0x0E,0x15,0x36,
-0x7C,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8E,
-0x7C,0x0E,0x16,0x36,
-0x80,0x0E,0x17,0x36,
-0x80,0x00,0xA3,0xAF,
-0x00,0x00,0x82,0x8E,
-0xD4,0x0E,0x10,0x36,
-0xED,0x3F,0x11,0x3C,
-0x84,0x00,0xA2,0xAF,
-0x00,0x00,0xA3,0x8E,
-0xFB,0x92,0x25,0x36,
-0x88,0x00,0xA3,0xAF,
-0x00,0x00,0xC2,0x8E,
-0x00,0x00,0x00,0x00,
-0x8C,0x00,0xA2,0xAF,
-0x00,0x00,0xE3,0x8E,
-0x25,0xB0,0x02,0x3C,
-0x84,0x0E,0x42,0x34,
-0x90,0x00,0xA3,0xAF,
-0x00,0x00,0x42,0x8C,
-0x25,0xB0,0x03,0x3C,
-0x88,0x0E,0x63,0x34,
-0x94,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x25,0xB0,0x02,0x3C,
-0x8C,0x0E,0x42,0x34,
-0x98,0x00,0xA3,0xAF,
-0x00,0x00,0x42,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xD0,0x0E,0x63,0x34,
-0x9C,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x00,0x00,0x00,0x00,
-0xA0,0x00,0xA3,0xAF,
-0x00,0x00,0x02,0x8E,
-0x25,0xB0,0x03,0x3C,
-0xD8,0x0E,0x63,0x34,
-0xA4,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x02,0x5C,0x00,0x0C,
-0xA8,0x00,0xA3,0xAF,
-0x21,0x20,0x40,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0x60,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0x80,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0xA0,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0xC0,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0xE0,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x02,0x3C,
-0xA8,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x25,0xB0,0x13,0x3C,
-0x02,0x80,0x03,0x3C,
-0xAC,0xED,0x63,0x24,
-0x00,0x00,0x64,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0xB0,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xB0,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0xFF,0x03,0x14,0x3C,
-0x02,0x80,0x03,0x3C,
-0xB4,0xED,0x63,0x24,
-0x00,0x00,0x64,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x10,0x00,0xB7,0x27,
-0x21,0x20,0x00,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x02,0x3C,
-0xB8,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0xE4,0x28,0x00,0x08,
-0x21,0xA8,0x00,0x00,
-0x6E,0x00,0xC2,0x13,
-0x02,0x80,0x02,0x3C,
-0xAC,0x0E,0x62,0x36,
-0x94,0x0E,0x63,0x36,
-0x00,0x00,0x48,0x8C,
-0x00,0x00,0x64,0x8C,
-0xB4,0x0E,0x62,0x36,
-0x9C,0x0E,0x63,0x36,
-0x00,0x00,0x45,0x8C,
-0x00,0x00,0x66,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xBC,0x0E,0x63,0x34,
-0x00,0x00,0x67,0x8C,
-0x24,0x20,0x94,0x00,
-0x00,0xD8,0x02,0x3C,
-0x24,0x10,0x02,0x01,
-0x24,0x28,0xB4,0x00,
-0x24,0x30,0xD4,0x00,
-0x24,0x38,0xF4,0x00,
-0x02,0x24,0x04,0x00,
-0x20,0x01,0x03,0x24,
-0x01,0x00,0x42,0x2C,
-0x02,0x2C,0x05,0x00,
-0x02,0x34,0x06,0x00,
-0xE8,0x00,0x83,0x10,
-0x02,0x3C,0x07,0x00,
-0xE6,0x00,0xA3,0x10,
-0x20,0x00,0x03,0x24,
-0xE4,0x00,0xC3,0x10,
-0x00,0x00,0x00,0x00,
-0xE2,0x00,0xE3,0x10,
-0x01,0x00,0x08,0x24,
-0x80,0x00,0x03,0x24,
-0x08,0x00,0x83,0x10,
-0x21,0x20,0x00,0x00,
-0x06,0x00,0xA3,0x10,
-0x21,0x20,0x00,0x00,
-0xE0,0x03,0x03,0x24,
-0x03,0x00,0xC3,0x10,
-0x00,0x00,0x00,0x00,
-0xDB,0x00,0xE3,0x10,
-0x01,0x00,0x04,0x24,
-0x05,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x00,0x11,
-0x00,0x00,0x00,0x00,
-0xD7,0x00,0x80,0x14,
-0x94,0x0E,0x63,0x36,
-0x01,0x00,0xB5,0x26,
-0x0A,0x00,0xA2,0x2E,
-0x01,0x01,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xCB,0xFF,0xC0,0x17,
-0x01,0x00,0x02,0x24,
-0xA0,0x00,0x03,0x3C,
-0x30,0x54,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x04,0x0C,0x64,0x36,
-0x08,0x00,0x05,0x3C,
-0xE4,0x00,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x08,0x0C,0x64,0x36,
-0x28,0x0E,0x64,0x36,
-0x02,0x5C,0x00,0x0C,
-0x80,0x80,0x05,0x3C,
-0x14,0x02,0x02,0x3C,
-0x48,0x01,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x40,0x0E,0x64,0x36,
-0x16,0x68,0x05,0x3C,
-0xA2,0x04,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x44,0x0E,0x64,0x36,
-0x4C,0x0E,0x64,0x36,
-0x02,0x5C,0x00,0x0C,
-0xD1,0x28,0x05,0x24,
-0x14,0x02,0x03,0x3C,
-0x4D,0x01,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x60,0x0E,0x64,0x36,
-0x16,0x28,0x05,0x3C,
-0xBA,0x08,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x64,0x0E,0x64,0x36,
-0x6C,0x0E,0x64,0x36,
-0x02,0x5C,0x00,0x0C,
-0xD1,0x28,0x05,0x24,
-0x00,0xFB,0x05,0x3C,
-0x01,0x00,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0x64,0x36,
-0x00,0xF8,0x05,0x3C,
-0x01,0x00,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0x64,0x36,
-0x25,0x22,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0xA0,0x00,0x02,0x3C,
-0x33,0x54,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x04,0x0C,0x64,0x36,
-0x08,0x0C,0x64,0x36,
-0x02,0x5C,0x00,0x0C,
-0xE4,0x00,0x05,0x24,
-0x28,0x0E,0x64,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x01,0x00,0x02,0x24,
-0x96,0xFF,0xC2,0x17,
-0xAC,0x0E,0x62,0x36,
-0x02,0x80,0x02,0x3C,
-0xBC,0xED,0x42,0x24,
-0x25,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0x8C,
-0x20,0x08,0x63,0x34,
-0x00,0x00,0x71,0x8C,
-0x00,0x01,0x03,0x3C,
-0x00,0x01,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x25,0xB0,0x12,0x3C,
-0x00,0x01,0x02,0x3C,
-0x00,0x01,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x28,0x08,0x44,0x36,
-0xA0,0x00,0x03,0x3C,
-0x30,0x54,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x04,0x0C,0x44,0x36,
-0x08,0x00,0x05,0x3C,
-0xE4,0x00,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x08,0x0C,0x44,0x36,
-0x28,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x80,0x80,0x05,0x3C,
-0x00,0x01,0x02,0x3C,
-0x00,0x7C,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x30,0x0E,0x44,0x36,
-0x00,0x01,0x03,0x3C,
-0x00,0x48,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x34,0x0E,0x44,0x36,
-0x00,0x10,0x02,0x3C,
-0x1F,0xDC,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x38,0x0E,0x44,0x36,
-0x00,0x10,0x03,0x3C,
-0x1F,0x8C,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x3C,0x0E,0x44,0x36,
-0x14,0x02,0x02,0x3C,
-0x02,0x01,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x40,0x0E,0x44,0x36,
-0x16,0x68,0x05,0x3C,
-0xC7,0x04,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x44,0x0E,0x44,0x36,
-0x4C,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0xD1,0x28,0x05,0x24,
-0x6C,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0xD1,0x28,0x05,0x24,
-0x00,0x01,0x03,0x3C,
-0x00,0x7C,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x50,0x0E,0x44,0x36,
-0x00,0x01,0x02,0x3C,
-0x00,0x48,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x54,0x0E,0x44,0x36,
-0x00,0x10,0x03,0x3C,
-0x23,0xDC,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x58,0x0E,0x44,0x36,
-0x00,0x10,0x02,0x3C,
-0x23,0x8C,0x45,0x34,
-0x02,0x5C,0x00,0x0C,
-0x5C,0x0E,0x44,0x36,
-0x14,0x02,0x03,0x3C,
-0x02,0x01,0x65,0x34,
-0x02,0x5C,0x00,0x0C,
-0x60,0x0E,0x44,0x36,
-0x16,0x28,0x05,0x3C,
-0x07,0x0D,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x64,0x0E,0x44,0x36,
-0x48,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0xFB,0x05,0x3C,
-0x00,0xF8,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0x44,0x36,
-0x00,0x02,0x10,0x3C,
-0x25,0x22,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0x4C,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0xD1,0x28,0x05,0x36,
-0xD1,0x28,0x05,0x36,
-0x02,0x5C,0x00,0x0C,
-0x6C,0x0E,0x44,0x36,
-0x48,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0xFB,0x05,0x3C,
-0x00,0xF8,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0x44,0x36,
-0x25,0x22,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0xAC,0x00,0xA5,0x8F,
-0x04,0x0C,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x31,0x32,
-0xB0,0x00,0xA5,0x8F,
-0x08,0x0C,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x2B,0x88,0x11,0x00,
-0x28,0x0E,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x23,0xFF,0x20,0x16,
-0xAC,0x0E,0x62,0x36,
-0x02,0x80,0x02,0x3C,
-0xBC,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x05,0x3C,
-0x28,0x08,0x44,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x05,0x3C,
-0xAC,0x0E,0x62,0x36,
-0x94,0x0E,0x63,0x36,
-0x00,0x00,0x48,0x8C,
-0x00,0x00,0x64,0x8C,
-0xB4,0x0E,0x62,0x36,
-0x9C,0x0E,0x63,0x36,
-0x00,0x00,0x45,0x8C,
-0x00,0x00,0x66,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xBC,0x0E,0x63,0x34,
-0x00,0x00,0x67,0x8C,
-0x24,0x20,0x94,0x00,
-0x00,0xD8,0x02,0x3C,
-0x24,0x10,0x02,0x01,
-0x24,0x28,0xB4,0x00,
-0x24,0x30,0xD4,0x00,
-0x24,0x38,0xF4,0x00,
-0x02,0x24,0x04,0x00,
-0x20,0x01,0x03,0x24,
-0x01,0x00,0x42,0x2C,
-0x02,0x2C,0x05,0x00,
-0x02,0x34,0x06,0x00,
-0x1A,0xFF,0x83,0x14,
-0x02,0x3C,0x07,0x00,
-0x80,0x00,0x03,0x24,
-0x20,0xFF,0x83,0x14,
-0x21,0x40,0x00,0x00,
-0xDA,0x28,0x00,0x08,
-0x21,0x20,0x00,0x00,
-0x00,0x00,0x62,0x8C,
-0x9C,0x0E,0x65,0x36,
-0xA4,0x0E,0x66,0x36,
-0x24,0x10,0x54,0x00,
-0x02,0x14,0x02,0x00,
-0x00,0x00,0xE2,0xAE,
-0x00,0x00,0xA4,0x8C,
-0xAC,0x0E,0x67,0x36,
-0xB4,0x0E,0x65,0x36,
-0x24,0x20,0x94,0x00,
-0x02,0x24,0x04,0x00,
-0x04,0x00,0xE4,0xAE,
-0x00,0x00,0xC3,0x8C,
-0xC4,0x0E,0x64,0x36,
-0x24,0x18,0x74,0x00,
-0x02,0x1C,0x03,0x00,
-0x08,0x00,0xE3,0xAE,
-0x00,0x00,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x54,0x00,
-0x02,0x14,0x02,0x00,
-0x0C,0x00,0xE2,0xAE,
-0x00,0x00,0xA3,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x18,0x74,0x00,
-0x02,0x1C,0x03,0x00,
-0x10,0x00,0xE3,0xAE,
-0x25,0xB0,0x03,0x3C,
-0xBC,0x0E,0x63,0x34,
-0x00,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x54,0x00,
-0x02,0x14,0x02,0x00,
-0x14,0x00,0xE2,0xAE,
-0x00,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x18,0x74,0x00,
-0x02,0x1C,0x03,0x00,
-0x18,0x00,0xE3,0xAE,
-0x25,0xB0,0x03,0x3C,
-0xCC,0x0E,0x63,0x34,
-0x00,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x54,0x00,
-0x02,0x14,0x02,0x00,
-0x1C,0x00,0xE2,0xAE,
-0x01,0x00,0xD6,0x26,
-0x03,0x00,0xC2,0x2E,
-0xC7,0xFE,0x40,0x14,
-0x20,0x00,0xF7,0x26,
-0x10,0x00,0xB0,0x8F,
-0x00,0x00,0x00,0x00,
-0x49,0x01,0x00,0x16,
-0x00,0x00,0x00,0x00,
-0x30,0x00,0xB1,0x8F,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x20,0x16,
-0x21,0x20,0x00,0x02,
-0x50,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x29,0x00,0x40,0x10,
-0xFF,0x00,0x05,0x24,
-0x21,0x20,0x00,0x02,
-0x05,0x28,0x00,0x0C,
-0x21,0x28,0x20,0x02,
-0x03,0x00,0x42,0x2C,
-0x08,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x34,0x00,0xA5,0x8F,
-0x14,0x00,0xA4,0x8F,
-0x05,0x28,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x42,0x2C,
-0x1C,0x00,0x40,0x14,
-0x21,0x28,0x00,0x00,
-0x50,0x00,0xB2,0x8F,
-0x21,0x20,0x00,0x02,
-0x05,0x28,0x00,0x0C,
-0x21,0x28,0x40,0x02,
-0x03,0x00,0x42,0x2C,
-0x09,0x00,0x40,0x10,
-0x21,0x20,0x20,0x02,
-0x54,0x00,0xA5,0x8F,
-0x14,0x00,0xA4,0x8F,
-0x05,0x28,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x42,0x2C,
-0x0E,0x00,0x40,0x14,
-0x21,0x28,0x00,0x00,
-0x21,0x20,0x20,0x02,
-0x05,0x28,0x00,0x0C,
-0x21,0x28,0x40,0x02,
-0x03,0x00,0x42,0x2C,
-0xE0,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x54,0x00,0xA5,0x8F,
-0x34,0x00,0xA4,0x8F,
-0x05,0x28,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x42,0x2C,
-0xD9,0x00,0x40,0x10,
-0x01,0x00,0x05,0x24,
-0xFF,0x00,0x02,0x24,
-0xDB,0x00,0xA2,0x10,
-0x25,0xB0,0x03,0x3C,
-0x10,0x00,0xA2,0x27,
-0x40,0x29,0x05,0x00,
-0x02,0x80,0x0F,0x3C,
-0x21,0x28,0xA2,0x00,
-0x30,0x1F,0xEC,0x25,
-0x00,0x00,0xA6,0x8C,
-0x0C,0x00,0xA7,0x8C,
-0x0C,0x00,0x83,0x8D,
-0x10,0x00,0x84,0x8D,
-0x04,0x00,0xA8,0x8C,
-0x10,0x00,0xA9,0x8C,
-0x00,0xFC,0x02,0x24,
-0x08,0x00,0xAA,0x8C,
-0x14,0x00,0xAB,0x8C,
-0x24,0x20,0x82,0x00,
-0xFF,0x03,0xC6,0x30,
-0x24,0x18,0x62,0x00,
-0xFF,0x03,0xE7,0x30,
-0xF0,0xFF,0x02,0x3C,
-0xFF,0x03,0x42,0x34,
-0x25,0x18,0x66,0x00,
-0x25,0x20,0x87,0x00,
-0xFF,0x03,0x08,0x31,
-0xFF,0x03,0x29,0x31,
-0x24,0x20,0x82,0x00,
-0x24,0x18,0x62,0x00,
-0x80,0x42,0x08,0x00,
-0x80,0x4A,0x09,0x00,
-0x0F,0xC0,0x02,0x3C,
-0x1C,0x00,0xA6,0x8C,
-0x18,0x00,0xA7,0x8C,
-0xFF,0xFF,0x42,0x34,
-0x25,0x18,0x68,0x00,
-0x25,0x20,0x89,0x00,
-0xFF,0x03,0x4A,0x31,
-0xFF,0x03,0x6B,0x31,
-0x24,0x20,0x82,0x00,
-0x00,0x55,0x0A,0x00,
-0x24,0x18,0x62,0x00,
-0x00,0x5D,0x0B,0x00,
-0x25,0x18,0x6A,0x00,
-0x25,0x20,0x8B,0x00,
-0x16,0x00,0x86,0xA5,
-0x0C,0x00,0x83,0xAD,
-0x10,0x00,0x84,0xAD,
-0x14,0x00,0x87,0xA5,
-0x30,0x1F,0xF1,0x25,
-0x10,0x00,0x22,0x8E,
-0x01,0x00,0x03,0x24,
-0x82,0x17,0x02,0x00,
-0x4D,0x00,0x43,0x10,
-0x25,0xB0,0x12,0x3C,
-0x0C,0x00,0x23,0x8E,
-0x80,0x0C,0x44,0x36,
-0x00,0x00,0x88,0x8C,
-0x00,0x02,0x62,0x30,
-0xC0,0xFF,0x13,0x3C,
-0x82,0x6D,0x08,0x00,
-0x03,0x00,0x40,0x10,
-0xFF,0x03,0x65,0x30,
-0x00,0xFC,0x02,0x24,
-0x25,0x28,0xA2,0x00,
-0x18,0x00,0xAD,0x00,
-0x82,0x62,0x03,0x00,
-0xFF,0x03,0x8C,0x31,
-0x00,0x02,0x83,0x31,
-0x12,0x10,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x03,0x00,0x60,0x10,
-0xFF,0x03,0x46,0x30,
-0x00,0xFC,0x02,0x24,
-0x25,0x60,0x82,0x01,
-0x18,0x00,0x8D,0x01,
-0x00,0xFC,0x74,0x36,
-0x24,0x28,0x14,0x01,
-0x12,0x80,0x00,0x00,
-0x02,0x82,0x10,0x00,
-0x3F,0x00,0x02,0x32,
-0x00,0x14,0x02,0x00,
-0x25,0x28,0xA2,0x00,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0xA6,0x00,
-0x94,0x0C,0x44,0x36,
-0x00,0x00,0x85,0x8C,
-0xFF,0x0F,0x02,0x3C,
-0xFF,0xFF,0x55,0x34,
-0xC0,0x03,0x10,0x32,
-0x24,0x28,0xB5,0x00,
-0x80,0x85,0x10,0x00,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0xB0,0x00,
-0x10,0x00,0x2C,0x8E,
-0x88,0x0C,0x44,0x36,
-0x00,0x00,0x88,0x8C,
-0x82,0x2A,0x0C,0x00,
-0xFF,0x03,0xA5,0x30,
-0x24,0x10,0x13,0x01,
-0x00,0x02,0xA3,0x30,
-0x03,0x00,0x60,0x10,
-0x82,0x6D,0x02,0x00,
-0x00,0xFC,0x02,0x24,
-0x25,0x28,0xA2,0x00,
-0x18,0x00,0xAD,0x00,
-0x02,0x65,0x0C,0x00,
-0xFF,0x03,0x8C,0x31,
-0x00,0x02,0x83,0x31,
-0x12,0x10,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x03,0x00,0x60,0x10,
-0xFF,0x03,0x46,0x30,
-0x00,0xFC,0x02,0x24,
-0x25,0x60,0x82,0x01,
-0x18,0x00,0x8D,0x01,
-0x24,0x28,0x14,0x01,
-0x12,0x80,0x00,0x00,
-0x02,0x82,0x10,0x00,
-0x3F,0x00,0x02,0x32,
-0x00,0x14,0x02,0x00,
-0x25,0x28,0xA2,0x00,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0xA6,0x00,
-0x9C,0x0C,0x44,0x36,
-0x00,0x00,0x85,0x8C,
-0xC0,0x03,0x10,0x32,
-0x80,0x85,0x10,0x00,
-0x24,0x28,0xB5,0x00,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0xB0,0x00,
-0x78,0x00,0xA5,0x8F,
-0x25,0xB0,0x10,0x3C,
-0x02,0x5C,0x00,0x0C,
-0xE0,0x0E,0x04,0x36,
-0x7C,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0xDC,0x0E,0x04,0x36,
-0x80,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x70,0x0E,0x04,0x36,
-0x84,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x74,0x0E,0x04,0x36,
-0x88,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x78,0x0E,0x04,0x36,
-0x8C,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x7C,0x0E,0x04,0x36,
-0x90,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x80,0x0E,0x04,0x36,
-0x94,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x84,0x0E,0x04,0x36,
-0x98,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x88,0x0E,0x04,0x36,
-0x9C,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x8C,0x0E,0x04,0x36,
-0xA0,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0xD0,0x0E,0x04,0x36,
-0xA4,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0xD4,0x0E,0x04,0x36,
-0xA8,0x00,0xA5,0x8F,
-0x88,0x0E,0x04,0x36,
-0x02,0x5C,0x00,0x0C,
-0x0F,0x00,0x10,0x3C,
-0x70,0x00,0xA6,0x8F,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x74,0x00,0xA6,0x8F,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0xFF,0xFF,0x05,0x36,
-0x8A,0x47,0x00,0x0C,
-0x1E,0x00,0x04,0x24,
-0x21,0x88,0x40,0x00,
-0xFD,0xFF,0x06,0x24,
-0x01,0x00,0x42,0x34,
-0x24,0x30,0x46,0x00,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x1E,0x00,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x36,
-0x03,0x00,0x26,0x36,
-0x5F,0x47,0x00,0x0C,
-0x1E,0x00,0x04,0x24,
-0xDC,0x00,0xBF,0x8F,
-0xD8,0x00,0xBE,0x8F,
-0xD4,0x00,0xB7,0x8F,
-0xD0,0x00,0xB6,0x8F,
-0xCC,0x00,0xB5,0x8F,
-0xC8,0x00,0xB4,0x8F,
-0xC4,0x00,0xB3,0x8F,
-0xC0,0x00,0xB2,0x8F,
-0xBC,0x00,0xB1,0x8F,
-0xB8,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0xE0,0x00,0xBD,0x27,
-0xFF,0x00,0x05,0x24,
-0xFF,0x00,0x02,0x24,
-0x29,0xFF,0xA2,0x14,
-0x10,0x00,0xA2,0x27,
-0x25,0xB0,0x03,0x3C,
-0x94,0x0E,0x62,0x34,
-0x9C,0x0E,0x64,0x34,
-0xA4,0x0E,0x65,0x34,
-0xAC,0x0E,0x66,0x34,
-0x02,0x80,0x0F,0x3C,
-0x00,0x00,0x49,0x8C,
-0x30,0x1F,0xED,0x25,
-0x00,0x00,0x8C,0x8C,
-0x00,0x00,0xAE,0x8C,
-0x00,0x00,0xC7,0x8C,
-0xB4,0x0E,0x62,0x34,
-0x0C,0x00,0xA4,0x8D,
-0x10,0x00,0xA5,0x8D,
-0x00,0x00,0x4A,0x8C,
-0xFF,0x03,0x06,0x3C,
-0x00,0xFC,0x08,0x24,
-0xBC,0x0E,0x62,0x34,
-0x24,0x48,0x26,0x01,
-0x24,0x38,0xE6,0x00,
-0x00,0x00,0x4B,0x8C,
-0x24,0x28,0xA8,0x00,
-0x24,0x20,0x88,0x00,
-0x02,0x3C,0x07,0x00,
-0xCC,0x0E,0x68,0x34,
-0x02,0x4C,0x09,0x00,
-0xC4,0x0E,0x63,0x34,
-0xF0,0xFF,0x02,0x3C,
-0xFF,0x03,0x42,0x34,
-0x25,0x28,0xA7,0x00,
-0x25,0x20,0x89,0x00,
-0x00,0x00,0x67,0x8C,
-0x24,0x60,0x86,0x01,
-0x00,0x00,0x03,0x8D,
-0x24,0x50,0x46,0x01,
-0x24,0x28,0xA2,0x00,
-0x24,0x20,0x82,0x00,
-0x82,0x61,0x0C,0x00,
-0x82,0x51,0x0A,0x00,
-0x0F,0xC0,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x25,0x20,0x8C,0x00,
-0x25,0x28,0xAA,0x00,
-0x24,0x70,0xC6,0x01,
-0x24,0x58,0x66,0x01,
-0x24,0x28,0xA2,0x00,
-0x24,0x18,0x66,0x00,
-0x00,0x71,0x0E,0x00,
-0x24,0x20,0x82,0x00,
-0x00,0x59,0x0B,0x00,
-0x24,0x38,0xE6,0x00,
-0x25,0x20,0x8E,0x00,
-0x25,0x28,0xAB,0x00,
-0x02,0x3C,0x07,0x00,
-0x02,0x1C,0x03,0x00,
-0x16,0x00,0xA3,0xA5,
-0x0C,0x00,0xA4,0xAD,
-0x10,0x00,0xA5,0xAD,
-0x4D,0x2A,0x00,0x08,
-0x14,0x00,0xA7,0xA5,
-0x30,0x00,0xB1,0x8F,
-0xF5,0x29,0x00,0x08,
-0x21,0x20,0x00,0x02,
-0x25,0xB0,0x05,0x3C,
-0x4C,0x00,0xA2,0x34,
-0x02,0x80,0x07,0x3C,
-0x00,0x00,0x43,0x90,
-0x30,0x1F,0xE4,0x24,
-0xC1,0x1B,0x82,0x90,
-0x03,0x00,0x66,0x30,
-0x24,0x00,0x46,0x10,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xC0,0x14,
-0x25,0xB0,0x03,0x3C,
-0xE6,0x02,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x15,0x00,0x40,0x14,
-0x58,0x00,0x62,0x34,
-0x1C,0x00,0x02,0x24,
-0x50,0x0C,0xA3,0x34,
-0x00,0x00,0x62,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x25,0xB0,0x02,0x3C,
-0x58,0x0C,0x42,0x34,
-0x1C,0x00,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x25,0xB0,0x03,0x3C,
-0x58,0x00,0x62,0x34,
-0x00,0x00,0x45,0x8C,
-0x29,0xB0,0x04,0x3C,
-0x5C,0x00,0x63,0x34,
-0x00,0x00,0x85,0xAC,
-0x00,0x00,0x65,0x8C,
-0x30,0x1F,0xE2,0x24,
-0x04,0x00,0x84,0x34,
-0xC1,0x1B,0x46,0xA0,
-0x00,0x00,0x85,0xAC,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x2D,0x0A,0x46,0x34,
-0xA2,0x0D,0x43,0x34,
-0xA4,0x0D,0x44,0x34,
-0xA6,0x0D,0x45,0x34,
-0xA8,0x0D,0x42,0x34,
-0x00,0x00,0x67,0x94,
-0x00,0x00,0x88,0x94,
-0x00,0x00,0xA9,0x94,
-0x00,0x00,0x44,0x94,
-0x00,0x00,0xC3,0x90,
-0x02,0x80,0x0A,0x3C,
-0x30,0x1F,0x42,0x25,
-0x40,0x00,0x63,0x34,
-0xFF,0x00,0x63,0x30,
-0xDE,0x02,0x44,0xA4,
-0x00,0x00,0xC3,0xA0,
-0xD8,0x02,0x47,0xA4,
-0xDA,0x02,0x48,0xA4,
-0xDC,0x02,0x49,0xA4,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x25,0xB0,0x07,0x3C,
-0x5B,0x0A,0xE2,0x34,
-0x00,0x00,0x44,0x90,
-0x30,0x1F,0x46,0x25,
-0x5C,0x0A,0xE2,0x34,
-0x00,0x00,0x45,0x90,
-0xD8,0x02,0xC3,0x94,
-0xDA,0x02,0xC2,0x94,
-0xDC,0x02,0xC9,0x94,
-0xDE,0x02,0xC8,0x94,
-0xFF,0x00,0x84,0x30,
-0x21,0x18,0x62,0x00,
-0x00,0x22,0x04,0x00,
-0xFF,0x00,0xA5,0x30,
-0x21,0x20,0x85,0x00,
-0x21,0x18,0x69,0x00,
-0xFF,0xFF,0x82,0x30,
-0x21,0x18,0x68,0x00,
-0x21,0x18,0x62,0x00,
-0x64,0x0C,0xE7,0x34,
-0xFF,0xFF,0x42,0x30,
-0xE0,0x02,0xC3,0xAC,
-0x00,0x00,0xE2,0xA4,
-0xE4,0x02,0xC4,0xA4,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x42,0x8D,
-0x01,0x00,0x03,0x24,
-0x0F,0x00,0x44,0x30,
-0x07,0x00,0x83,0x10,
-0x30,0x1F,0x45,0x25,
-0xB6,0x5F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xBF,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE4,0x02,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x17,0x02,0x00,
-0x03,0x00,0x42,0x30,
-0xF5,0xFF,0x40,0x14,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x63,0x30,
-0x3F,0x00,0x64,0x10,
-0x30,0x1F,0x44,0x25,
-0xE6,0x02,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x40,0x14,
-0x01,0x00,0x03,0x24,
-0x30,0x1F,0x42,0x8D,
-0x00,0x00,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x0F,0x00,0x42,0x30,
-0x3C,0x00,0x43,0x10,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0x45,0x25,
-0xE6,0x02,0xA3,0x90,
-0xFF,0x00,0x02,0x24,
-0xE0,0xFF,0x62,0x14,
-0x25,0xB0,0x03,0x3C,
-0xC8,0x02,0xA2,0x94,
-0xE0,0x02,0xA6,0x8C,
-0x50,0x0C,0x63,0x34,
-0x00,0x00,0x64,0x90,
-0x2B,0x10,0xC2,0x00,
-0x85,0x00,0x40,0x10,
-0x7F,0x00,0x84,0x30,
-0xFF,0xFF,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x30,0x1F,0x45,0x25,
-0xD0,0x02,0xA3,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x64,0x00,
-0x78,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x60,0x00,
-0x30,0x1F,0x43,0x25,
-0xE0,0x02,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x11,0x27,0x42,0x2C,
-0x6D,0x00,0x40,0x14,
-0x3A,0x00,0x82,0x2C,
-0x32,0x00,0x04,0x24,
-0x44,0x00,0x03,0x24,
-0x25,0xB0,0x02,0x3C,
-0x30,0x0C,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x25,0xB0,0x02,0x3C,
-0x50,0x0C,0x42,0x34,
-0x00,0x00,0x44,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x25,0xB0,0x02,0x3C,
-0x58,0x0C,0x42,0x34,
-0x00,0x00,0x44,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0xA4,0x2B,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE6,0x02,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xBF,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x02,0x24,
-0xB6,0x2B,0x00,0x08,
-0xE6,0x02,0xA2,0xA0,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x63,0x30,
-0xA4,0xFF,0x60,0x10,
-0xFF,0xFF,0x02,0x34,
-0x80,0x36,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0xA0,0xFF,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0xE0,0x02,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x65,0x00,0x62,0x2C,
-0x59,0x00,0x40,0x14,
-0x28,0x00,0x62,0x2C,
-0xD2,0x02,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x03,0x00,
-0x03,0x16,0x02,0x00,
-0xFE,0xFF,0x42,0x24,
-0xFC,0xFF,0x42,0x28,
-0x02,0x00,0x40,0x10,
-0xFE,0xFF,0x62,0x24,
-0xFC,0xFF,0x02,0x24,
-0xD2,0x02,0x82,0xA0,
-0x30,0x1F,0x45,0x25,
-0x80,0x36,0xA2,0x8C,
-0xD2,0x02,0xA3,0x90,
-0xCE,0x02,0xA6,0x90,
-0x02,0x11,0x02,0x00,
-0x7F,0x00,0x42,0x30,
-0x0A,0x00,0x44,0x24,
-0x23,0x18,0x83,0x00,
-0x00,0x26,0x03,0x00,
-0x03,0x26,0x04,0x00,
-0xFF,0x00,0xC2,0x30,
-0x2A,0x10,0x44,0x00,
-0x4D,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x26,0x06,0x00,
-0x03,0x26,0x04,0x00,
-0x30,0x1F,0x43,0x25,
-0xE0,0x02,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x11,0x27,0x42,0x2C,
-0x33,0x00,0x40,0x14,
-0x3A,0x00,0x82,0x28,
-0x32,0x00,0x82,0x28,
-0x30,0x00,0x40,0x10,
-0x3A,0x00,0x82,0x28,
-0x32,0x00,0x04,0x24,
-0x44,0x00,0x03,0x24,
-0x25,0xB0,0x02,0x3C,
-0x30,0x0C,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x25,0xB0,0x02,0x3C,
-0x50,0x0C,0x42,0x34,
-0xFF,0x00,0x84,0x30,
-0x00,0x00,0x44,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x25,0xB0,0x02,0x3C,
-0x58,0x0C,0x42,0x34,
-0x00,0x00,0x44,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0xA4,0x2B,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x95,0xFF,0x40,0x10,
-0x48,0x00,0x03,0x24,
-0xDD,0x2B,0x00,0x08,
-0x44,0x00,0x03,0x24,
-0xD1,0x02,0xA3,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x83,0x00,
-0xD5,0x2B,0x00,0x08,
-0x0B,0x20,0x62,0x00,
-0xCA,0x02,0xA2,0x94,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0xC2,0x00,
-0x7A,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xCC,0x02,0xA2,0x94,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0xC2,0x00,
-0x07,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xCD,0x2B,0x00,0x08,
-0x01,0x00,0x82,0x24,
-0xD2,0xFF,0x40,0x10,
-0x48,0x00,0x03,0x24,
-0x2F,0x2C,0x00,0x08,
-0x44,0x00,0x03,0x24,
-0xCD,0x2B,0x00,0x08,
-0x02,0x00,0x82,0x24,
-0xB2,0xFF,0x40,0x10,
-0x30,0x1F,0x45,0x25,
-0xD2,0x02,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x03,0x00,
-0x03,0x16,0x02,0x00,
-0x02,0x00,0x42,0x24,
-0x0D,0x00,0x42,0x28,
-0x09,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x13,0x2C,0x00,0x08,
-0x0C,0x00,0x02,0x24,
-0xCF,0x02,0xA3,0x80,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x62,0x30,
-0x2A,0x10,0x82,0x00,
-0x24,0x2C,0x00,0x08,
-0x0B,0x20,0x62,0x00,
-0x13,0x2C,0x00,0x08,
-0x02,0x00,0x62,0x24,
-0xC0,0xFF,0xBD,0x27,
-0x28,0x00,0xB4,0xAF,
-0x25,0xB0,0x14,0x3C,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x34,0x00,0xB7,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x24,0x00,0xB3,0xAF,
-0xD8,0x00,0x86,0x36,
-0x00,0x00,0xC3,0x90,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x51,0x24,
-0x2A,0xB0,0x10,0x3C,
-0xA0,0xFF,0x02,0x24,
-0x25,0x18,0x62,0x00,
-0x34,0x00,0x05,0x36,
-0xFE,0xFF,0x02,0x24,
-0xBC,0x02,0x33,0x92,
-0x40,0x00,0x04,0x24,
-0x00,0x00,0xC3,0xA0,
-0x00,0x00,0xA2,0xA0,
-0x25,0x24,0x00,0x0C,
-0x00,0x9E,0x13,0x00,
-0x21,0x90,0x40,0x00,
-0x8A,0x00,0x40,0x12,
-0x00,0x40,0x02,0x3C,
-0x08,0x00,0x43,0x8E,
-0xB0,0x03,0x82,0x36,
-0x25,0xB0,0x1E,0x3C,
-0x21,0x20,0x40,0x02,
-0x00,0x00,0x43,0xAC,
-0x0C,0x4D,0x00,0x0C,
-0x21,0xB8,0x20,0x02,
-0x42,0x00,0xD5,0x37,
-0x03,0x0C,0xD1,0x37,
-0x17,0x0E,0xD6,0x37,
-0x04,0x00,0x14,0x24,
-0x2A,0xB0,0x03,0x3C,
-0x06,0x00,0x63,0x34,
-0x00,0x00,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0xFF,0x42,0x30,
-0x0A,0x00,0x40,0x18,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x8C,0xF0,0x84,0x24,
-0x00,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0xFF,0x42,0x30,
-0xFC,0xFF,0x40,0x1C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x45,0x8E,
-0x20,0x10,0x06,0x3C,
-0x01,0x00,0x04,0x24,
-0x00,0xFE,0xC6,0x34,
-0x40,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA4,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x90,0xF0,0x42,0x24,
-0x00,0x00,0x45,0x8C,
-0x01,0x00,0x03,0x24,
-0x21,0x20,0x00,0x00,
-0x00,0x00,0xA3,0xA0,
-0xFF,0xFF,0x03,0x24,
-0x00,0x00,0xA3,0xA2,
-0x00,0x00,0x22,0x92,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x40,0x00,0x42,0x34,
-0x00,0x00,0x22,0xA2,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x02,0x00,0x02,0x24,
-0x02,0x80,0x04,0x3C,
-0x00,0x00,0xA2,0xA0,
-0x30,0x1F,0x83,0x24,
-0xC1,0x02,0x62,0x90,
-0x00,0x00,0xC4,0x92,
-0x21,0x28,0x00,0x00,
-0x00,0x00,0xC2,0xA2,
-0xFF,0x00,0x90,0x30,
-0x01,0x00,0xA2,0x24,
-0xFF,0x00,0x45,0x30,
-0x06,0x00,0xA3,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0xA2,0x24,
-0xEF,0xFF,0x02,0x24,
-0x64,0x00,0x04,0x24,
-0x00,0x00,0xA2,0xA2,
-0x54,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x22,0x92,
-0x21,0x20,0x00,0x00,
-0xBF,0x00,0x42,0x30,
-0x00,0x00,0x22,0xA2,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x54,0x22,0x00,0x0C,
-0x84,0x03,0x04,0x24,
-0xF4,0x08,0xC2,0x37,
-0x00,0x00,0x43,0x8C,
-0x00,0x80,0x04,0x3C,
-0xDF,0x07,0x84,0x34,
-0x00,0x00,0xD0,0xA2,
-0x21,0x10,0x00,0x00,
-0x24,0x28,0x64,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x00,0x00,0xA0,0xA2,
-0x00,0x00,0x22,0x92,
-0x21,0x20,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x40,0x00,0x42,0x34,
-0x00,0x00,0x22,0xA2,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0xBE,0x02,0xE2,0x92,
-0x1F,0x00,0xA3,0x30,
-0x2B,0x10,0x62,0x00,
-0x0A,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xBF,0x02,0xE2,0x92,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0x05,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x01,0x00,0x02,0x3C,
-0x25,0x10,0x62,0x00,
-0x21,0x98,0x62,0x02,
-0x02,0x80,0x02,0x3C,
-0xDE,0x5D,0x43,0x90,
-0x22,0x00,0x02,0x24,
-0x19,0x00,0x62,0x10,
-0x92,0x00,0x02,0x24,
-0x18,0x00,0x62,0x10,
-0x02,0x80,0x03,0x3C,
-0xFF,0xFF,0x94,0x26,
-0x54,0x22,0x00,0x0C,
-0xF4,0x01,0x04,0x24,
-0x89,0xFF,0x81,0x06,
-0x2A,0xB0,0x03,0x3C,
-0x04,0x00,0x40,0x12,
-0x21,0x10,0x60,0x02,
-0x3D,0x24,0x00,0x0C,
-0x21,0x20,0x40,0x02,
-0x21,0x10,0x60,0x02,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x40,0x00,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0xBE,0x02,0x62,0x90,
-0xC0,0x07,0xA3,0x30,
-0x82,0x19,0x03,0x00,
-0x2B,0x10,0x62,0x00,
-0xE3,0xFF,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x84,0x24,
-0xBF,0x02,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x43,0x00,
-0xDD,0xFF,0x40,0x10,
-0x00,0x12,0x03,0x00,
-0x10,0x00,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x13,0x2D,0x00,0x08,
-0x21,0x98,0x62,0x02,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0xF0,0xF8,0x06,0x34,
-0x15,0x00,0x04,0x24,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x5F,0x47,0x00,0x0C,
-0x14,0x00,0xB1,0xAF,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x02,0x80,0x12,0x3C,
-0xFF,0xFF,0x05,0x36,
-0x56,0x30,0x06,0x24,
-0x5F,0x47,0x00,0x0C,
-0x1A,0x00,0x04,0x24,
-0x30,0x1F,0x51,0x26,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x04,0x03,0x23,0x92,
-0x04,0x00,0x02,0x24,
-0x20,0x00,0x62,0x10,
-0x25,0xB0,0x02,0x3C,
-0x14,0x03,0x25,0x8E,
-0x25,0xB0,0x10,0x3C,
-0x43,0x60,0x00,0x0C,
-0x00,0x0E,0x04,0x36,
-0x14,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x04,0x0E,0x04,0x36,
-0x18,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x08,0x0E,0x04,0x36,
-0x14,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x10,0x0E,0x04,0x36,
-0x14,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x14,0x0E,0x04,0x36,
-0x14,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x18,0x0E,0x04,0x36,
-0x14,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x1C,0x0E,0x04,0x36,
-0x30,0x1F,0x43,0x26,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x04,0x00,0x02,0x24,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x04,0x03,0x62,0xA0,
-0x00,0x0E,0x42,0x34,
-0x00,0x00,0x43,0x8C,
-0x14,0x03,0x25,0x8E,
-0x00,0x00,0x00,0x00,
-0xDE,0xFF,0x65,0x14,
-0x25,0xB0,0x10,0x3C,
-0x6A,0x2D,0x00,0x08,
-0x30,0x1F,0x43,0x26,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0xF0,0xF8,0x06,0x34,
-0x15,0x00,0x04,0x24,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x5F,0x47,0x00,0x0C,
-0x14,0x00,0xB1,0xAF,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x36,
-0x56,0x30,0x06,0x24,
-0x5F,0x47,0x00,0x0C,
-0x1A,0x00,0x04,0x24,
-0x02,0x80,0x10,0x3C,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x30,0x1F,0x02,0x26,
-0x04,0x03,0x46,0x90,
-0x25,0xB0,0x11,0x3C,
-0x10,0x10,0x12,0x3C,
-0x01,0x00,0x03,0x24,
-0x00,0x0E,0x24,0x36,
-0x1E,0x00,0xC3,0x10,
-0x10,0x10,0x45,0x36,
-0x43,0x60,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x04,0x0E,0x24,0x36,
-0x43,0x60,0x00,0x0C,
-0x10,0x10,0x45,0x36,
-0x08,0x0E,0x24,0x36,
-0x43,0x60,0x00,0x0C,
-0x10,0x10,0x05,0x24,
-0x10,0x0E,0x24,0x36,
-0x43,0x60,0x00,0x0C,
-0x10,0x10,0x45,0x36,
-0x14,0x0E,0x24,0x36,
-0x43,0x60,0x00,0x0C,
-0x10,0x10,0x45,0x36,
-0x18,0x0E,0x24,0x36,
-0x43,0x60,0x00,0x0C,
-0x10,0x10,0x45,0x36,
-0x1C,0x0E,0x24,0x36,
-0x43,0x60,0x00,0x0C,
-0x10,0x10,0x45,0x36,
-0x30,0x1F,0x03,0x26,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x04,0x03,0x62,0xA0,
-0x00,0x00,0x86,0x8C,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xC5,0x14,
-0x30,0x1F,0x03,0x26,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x04,0x03,0x62,0xA0,
-0xD8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB3,0xAF,
-0x02,0x80,0x13,0x3C,
-0x14,0x00,0xB1,0xAF,
-0x30,0x1F,0x71,0x26,
-0x0C,0x03,0x26,0x8E,
-0x10,0x00,0xB0,0xAF,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0x15,0x00,0x04,0x24,
-0x20,0x00,0xBF,0xAF,
-0x5F,0x47,0x00,0x0C,
-0x18,0x00,0xB2,0xAF,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x10,0x03,0x26,0x8E,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x1A,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x04,0x03,0x22,0x92,
-0x25,0xB0,0x12,0x3C,
-0x08,0x00,0x40,0x14,
-0x08,0x0E,0x44,0x36,
-0x25,0xB0,0x02,0x3C,
-0x00,0x0E,0x42,0x34,
-0x00,0x00,0x45,0x8C,
-0xEC,0x02,0x23,0x8E,
-0x00,0x00,0x00,0x00,
-0x17,0x00,0xA3,0x10,
-0x30,0x1F,0x62,0x26,
-0xE8,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEC,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x00,0x0E,0x44,0x36,
-0xF0,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x04,0x0E,0x44,0x36,
-0xF4,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x10,0x0E,0x44,0x36,
-0xF8,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x14,0x0E,0x44,0x36,
-0xFC,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x18,0x0E,0x44,0x36,
-0x00,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x1C,0x0E,0x44,0x36,
-0x30,0x1F,0x62,0x26,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x28,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x04,0x03,0x40,0xA0,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x02,0x80,0x12,0x3C,
-0x14,0x00,0xB1,0xAF,
-0x30,0x1F,0x51,0x26,
-0x0C,0x03,0x26,0x8E,
-0x10,0x00,0xB0,0xAF,
-0x0F,0x00,0x10,0x3C,
-0xFF,0xFF,0x05,0x36,
-0x1C,0x00,0xBF,0xAF,
-0x5F,0x47,0x00,0x0C,
-0x15,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x10,0x03,0x26,0x8E,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x1A,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x04,0x03,0x23,0x92,
-0x03,0x00,0x02,0x24,
-0x2C,0x00,0x62,0x10,
-0x25,0xB0,0x02,0x3C,
-0xEC,0x02,0x25,0x8E,
-0x25,0xB0,0x10,0x3C,
-0x43,0x60,0x00,0x0C,
-0x00,0x0E,0x04,0x36,
-0xF0,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x04,0x0E,0x04,0x36,
-0xF4,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x10,0x0E,0x04,0x36,
-0xF8,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x14,0x0E,0x04,0x36,
-0xFC,0x02,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x18,0x0E,0x04,0x36,
-0x00,0x03,0x25,0x8E,
-0x43,0x60,0x00,0x0C,
-0x1C,0x0E,0x04,0x36,
-0x08,0x03,0x24,0x8E,
-0xE8,0x02,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x21,0x28,0x44,0x00,
-0x00,0xFF,0xA3,0x30,
-0xFF,0xFF,0x02,0x3C,
-0xFF,0x00,0x42,0x34,
-0x01,0x3F,0x63,0x2C,
-0x24,0x10,0xA2,0x00,
-0x0C,0x00,0x60,0x10,
-0x08,0x0E,0x04,0x36,
-0x43,0x60,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x43,0x26,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x03,0x00,0x02,0x24,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x04,0x03,0x62,0xA0,
-0x32,0x2E,0x00,0x08,
-0x00,0x3F,0x45,0x34,
-0x00,0x0E,0x42,0x34,
-0x00,0x00,0x43,0x8C,
-0xEC,0x02,0x25,0x8E,
-0x00,0x00,0x00,0x00,
-0xD2,0xFF,0x65,0x14,
-0x25,0xB0,0x10,0x3C,
-0x35,0x2E,0x00,0x08,
-0x30,0x1F,0x43,0x26,
-0xD8,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x02,0x80,0x12,0x3C,
-0x20,0x00,0xB4,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x44,0x26,
-0x0C,0x24,0x82,0x8C,
-0x30,0x1F,0x43,0x8E,
-0x04,0x03,0x93,0x90,
-0x02,0x11,0x02,0x00,
-0x7F,0x00,0x54,0x30,
-0xF0,0xF0,0x63,0x30,
-0x00,0x10,0x02,0x24,
-0x6A,0x00,0x62,0x10,
-0x01,0x00,0x02,0x24,
-0x25,0xB0,0x08,0x3C,
-0x4C,0x00,0x03,0x35,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x42,0x30,
-0x08,0x00,0x40,0x10,
-0x30,0x1F,0x45,0x26,
-0x30,0x1F,0x42,0x8E,
-0x00,0x00,0x00,0x00,
-0x02,0x13,0x02,0x00,
-0x0F,0x00,0x42,0x30,
-0x2F,0x00,0x40,0x10,
-0x00,0x0E,0x05,0x35,
-0x30,0x1F,0x45,0x26,
-0x04,0x03,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x0F,0x00,0x40,0x14,
-0x30,0x1F,0x42,0x26,
-0x25,0xB0,0x02,0x3C,
-0x84,0x01,0x42,0x34,
-0x00,0x00,0x44,0x8C,
-0x0D,0x00,0x03,0x24,
-0x7C,0x00,0x83,0x10,
-0x3E,0x00,0x02,0x24,
-0x4A,0x00,0x03,0x24,
-0x1F,0x03,0xA2,0xA0,
-0x1C,0x03,0xA3,0xA0,
-0x45,0x00,0x02,0x24,
-0x43,0x00,0x03,0x24,
-0x1D,0x03,0xA2,0xA0,
-0x1E,0x03,0xA3,0xA0,
-0x30,0x1F,0x42,0x26,
-0x0C,0x24,0x43,0x8C,
-0x25,0xB0,0x02,0x3C,
-0x60,0x0C,0x42,0x34,
-0x02,0x19,0x03,0x00,
-0xFF,0x00,0x63,0x30,
-0x00,0x00,0x43,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x45,0x8E,
-0x10,0x10,0x02,0x24,
-0xF0,0xF0,0xA3,0x30,
-0x3F,0x00,0x62,0x10,
-0x30,0x1F,0x44,0x26,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x00,0x00,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x5F,0x00,0x40,0x10,
-0x10,0x0E,0x07,0x35,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x08,0x0E,0x02,0x35,
-0x04,0x0E,0x03,0x35,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0xA5,0x8C,
-0x00,0x00,0x66,0x8C,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x49,0x24,
-0xE8,0x02,0x24,0xAD,
-0xEC,0x02,0x25,0xAD,
-0xF0,0x02,0x26,0xAD,
-0x14,0x0E,0x04,0x35,
-0x02,0x80,0x02,0x3C,
-0x18,0x0E,0x05,0x35,
-0x00,0x00,0xE7,0x8C,
-0x1C,0x0E,0x06,0x35,
-0x00,0x00,0x83,0x8C,
-0xDE,0x5D,0x4A,0x90,
-0x00,0x00,0xA2,0x8C,
-0x00,0x00,0xC4,0x8C,
-0xF4,0x02,0x27,0xAD,
-0xFC,0x02,0x22,0xAD,
-0x22,0x00,0x02,0x24,
-0xF8,0x02,0x23,0xAD,
-0x5B,0x00,0x42,0x11,
-0x00,0x03,0x24,0xAD,
-0x92,0x00,0x02,0x24,
-0x59,0x00,0x42,0x11,
-0x0D,0x08,0x02,0x35,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x30,0x1F,0x43,0x8E,
-0xFF,0xFF,0x02,0x3C,
-0xFF,0x0F,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x00,0x10,0x63,0x34,
-0x66,0x2E,0x00,0x08,
-0x30,0x1F,0x43,0xAE,
-0x3A,0x00,0x62,0x12,
-0x04,0x00,0x02,0x24,
-0x38,0x00,0x62,0x12,
-0x30,0x1F,0x43,0x26,
-0xFF,0xFF,0x02,0x24,
-0x59,0x2E,0x00,0x08,
-0x04,0x03,0x62,0xA0,
-0x0C,0x24,0x83,0x8C,
-0xFF,0xFF,0x02,0x34,
-0xBF,0xFF,0x62,0x10,
-0x02,0x12,0x05,0x00,
-0x0F,0x00,0x45,0x30,
-0x01,0x00,0x03,0x24,
-0xBB,0xFF,0xA3,0x14,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x63,0x30,
-0xB5,0xFF,0x60,0x10,
-0x03,0x00,0x02,0x24,
-0x65,0x00,0x62,0x12,
-0x04,0x00,0x62,0x2A,
-0x47,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x6A,0x00,0x60,0x12,
-0x00,0x00,0x00,0x00,
-0xAD,0xFF,0x65,0x16,
-0x00,0x00,0x00,0x00,
-0x1C,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x82,0x02,
-0x56,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x1F,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x54,0x00,
-0x48,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xBE,0x2D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x8B,0x2E,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x3B,0x00,0x02,0x24,
-0x46,0x00,0x03,0x24,
-0x1F,0x03,0xA2,0xA0,
-0x1C,0x03,0xA3,0xA0,
-0x41,0x00,0x02,0x24,
-0x40,0x00,0x03,0x24,
-0x1D,0x03,0xA2,0xA0,
-0x79,0x2E,0x00,0x08,
-0x1E,0x03,0xA3,0xA0,
-0x00,0x00,0xE3,0x8C,
-0x3F,0x3F,0x02,0x3C,
-0x3F,0x3F,0x42,0x34,
-0x9E,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x67,0x2E,0x00,0x08,
-0x30,0x1F,0x45,0x26,
-0x0F,0x00,0x10,0x3C,
-0x01,0x00,0x11,0x3C,
-0xFF,0xFF,0x05,0x36,
-0xF4,0x98,0x26,0x36,
-0x5F,0x47,0x00,0x0C,
-0x15,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x36,
-0x56,0x30,0x26,0x36,
-0x5F,0x47,0x00,0x0C,
-0x1A,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x30,0x1F,0x43,0x26,
-0xFF,0xFF,0x02,0x24,
-0x59,0x2E,0x00,0x08,
-0x04,0x03,0x62,0xA0,
-0x0D,0x08,0x02,0x35,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x63,0x30,
-0x08,0x00,0x62,0x2C,
-0x0F,0x00,0x63,0x38,
-0xA2,0xFF,0x40,0x14,
-0x01,0x00,0x65,0x24,
-0x00,0x16,0x05,0x00,
-0x00,0x24,0x05,0x00,
-0x00,0x1A,0x05,0x00,
-0x25,0x10,0x44,0x00,
-0x25,0x10,0x43,0x00,
-0x25,0x10,0x45,0x00,
-0x25,0x18,0x65,0x00,
-0x18,0x03,0x23,0xAD,
-0xB8,0x2E,0x00,0x08,
-0x14,0x03,0x22,0xAD,
-0x04,0x00,0x02,0x24,
-0x11,0x00,0x62,0x12,
-0xFF,0x00,0x02,0x24,
-0x66,0xFF,0x62,0x16,
-0x00,0x00,0x00,0x00,
-0x1E,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x82,0x02,
-0x21,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x1C,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x82,0x02,
-0x0A,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x7A,0x2D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x8B,0x2E,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x1D,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x54,0x00,
-0xF8,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x3B,0x2D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x8B,0x2E,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x20,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x82,0x02,
-0xA8,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xFC,0x2D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x8B,0x2E,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x1E,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x82,0x02,
-0xE6,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x03,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x54,0x00,
-0x9A,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xFC,0x2D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x8B,0x2E,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x08,0x3C,
-0x30,0x1F,0x05,0x25,
-0x80,0x36,0xA4,0x8C,
-0xE6,0x02,0xA3,0x90,
-0x02,0x11,0x04,0x00,
-0x26,0x00,0x60,0x14,
-0x7F,0x00,0x46,0x30,
-0x25,0xB0,0x07,0x3C,
-0x4C,0x00,0xE2,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x02,0x34,
-0x1D,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0xE3,0x34,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x30,
-0x19,0x00,0x40,0x10,
-0x4B,0x00,0xC2,0x2C,
-0x3E,0x00,0x40,0x10,
-0x01,0x00,0x04,0x24,
-0xD8,0xFF,0xC2,0x24,
-0x1E,0x00,0x42,0x2C,
-0x49,0x00,0x40,0x10,
-0x23,0x00,0xC2,0x2C,
-0x30,0x1F,0x04,0x25,
-0xD3,0x02,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x44,0x00,0x40,0x10,
-0x23,0x00,0xC2,0x2C,
-0x25,0xB0,0x02,0x3C,
-0x87,0x0C,0x42,0x34,
-0x20,0x00,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0xD3,0x02,0x80,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x17,0x00,0x40,0x10,
-0x01,0x00,0x04,0x24,
-0xD8,0xFF,0xC2,0x24,
-0x1E,0x00,0x42,0x2C,
-0x44,0x00,0x40,0x10,
-0x23,0x00,0xC2,0x2C,
-0x30,0x1F,0x04,0x25,
-0xD3,0x02,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x3F,0x00,0x40,0x10,
-0x23,0x00,0xC2,0x2C,
-0x25,0xB0,0x02,0x3C,
-0x30,0x0C,0x42,0x34,
-0x44,0x00,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0xD3,0x02,0x80,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xD3,0x02,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xE7,0xFF,0x44,0x10,
-0x43,0x00,0x02,0x24,
-0x30,0x0C,0xE3,0x34,
-0xD3,0x02,0xA4,0xA0,
-0x00,0x00,0x62,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xD3,0x02,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xC0,0xFF,0x44,0x10,
-0x10,0x00,0x02,0x24,
-0x87,0x0C,0xE3,0x34,
-0xD3,0x02,0xA4,0xA0,
-0x00,0x00,0x62,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xC7,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x04,0x25,
-0xD3,0x02,0x82,0x90,
-0x02,0x00,0x03,0x24,
-0xC2,0xFF,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x87,0x0C,0x42,0x34,
-0xD3,0x02,0x83,0xA0,
-0x00,0x00,0x40,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xB4,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x04,0x25,
-0xD3,0x02,0x82,0x90,
-0x02,0x00,0x03,0x24,
-0xAF,0xFF,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0xD3,0x02,0x83,0xA0,
-0x30,0x0C,0x42,0x34,
-0x42,0x00,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0x01,0x80,0x02,0x3C,
-0x18,0x03,0x64,0x34,
-0x7C,0xBF,0x42,0x24,
-0x00,0x00,0x82,0xAC,
-0x00,0x60,0x07,0x40,
-0x01,0x00,0xE1,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x20,0x80,0x02,0x3C,
-0x30,0x03,0x63,0x34,
-0x00,0x00,0x62,0xAC,
-0x25,0xB0,0x06,0x3C,
-0x01,0x80,0x02,0x3C,
-0x7D,0xBF,0x45,0x24,
-0x33,0x03,0xC3,0x34,
-0x00,0x00,0x85,0xAC,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x40,0x00,0x42,0x30,
-0xFB,0xFF,0x40,0x10,
-0x30,0x03,0xC2,0x34,
-0x00,0x00,0x45,0x8C,
-0x0F,0x00,0x03,0x3C,
-0xFF,0xFF,0x63,0x34,
-0x24,0x28,0xA3,0x00,
-0x40,0x11,0x05,0x00,
-0x23,0x10,0x45,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x45,0x00,
-0xAF,0x0F,0x04,0x3C,
-0xC0,0x10,0x02,0x00,
-0x00,0xA0,0x84,0x34,
-0x1B,0x00,0x82,0x00,
-0x02,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0xC2,0x28,0x05,0x00,
-0xA0,0x3E,0x65,0xAC,
-0x12,0x20,0x00,0x00,
-0xA4,0x3E,0x64,0xAC,
-0x00,0x60,0x87,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x14,0x5F,0x43,0xA0,
-0xD0,0x07,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xE4,0x5E,0x44,0xAC,
-0x13,0x5F,0x60,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x04,0x3C,
-0x28,0x00,0x85,0x34,
-0x02,0x00,0x82,0x94,
-0x04,0x00,0x84,0x24,
-0x05,0x00,0x40,0x14,
-0x2B,0x18,0xA4,0x00,
-0xFB,0xFF,0x60,0x10,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0xBE,0x00,0x63,0x34,
-0x00,0x00,0x62,0x94,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x42,0x2C,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x17,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x19,0x00,0x40,0x10,
-0x74,0x57,0x64,0x24,
-0x74,0x57,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x15,0x00,0x44,0x14,
-0x02,0x80,0x02,0x3C,
-0x14,0x5F,0x43,0x90,
-0x01,0x00,0x02,0x24,
-0xFF,0x00,0x63,0x30,
-0x10,0x00,0x62,0x10,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x05,0x00,0x42,0x28,
-0x0A,0x00,0x40,0x10,
-0x01,0x00,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x9C,0x5A,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x60,0x14,
-0x21,0x10,0x80,0x00,
-0x10,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x10,0x00,0xBF,0x8F,
-0x21,0x20,0x00,0x00,
-0x21,0x10,0x80,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x17,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2C,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x74,0x57,0x43,0x8C,
-0x74,0x57,0x42,0x24,
-0x28,0x00,0x62,0x14,
-0x02,0x80,0x03,0x3C,
-0x0C,0x5F,0x62,0x90,
-0x01,0x00,0x04,0x24,
-0xFF,0x00,0x42,0x30,
-0x23,0x00,0x44,0x10,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x03,0x00,0x42,0x28,
-0x1D,0x00,0x40,0x10,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x42,0x30,
-0x18,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x0E,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0x42,0x30,
-0x13,0x00,0x40,0x14,
-0x02,0x80,0x03,0x3C,
-0x14,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x0E,0x00,0x44,0x10,
-0x02,0x80,0x02,0x3C,
-0x15,0x5F,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x60,0x14,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x6C,0x3B,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x60,0x14,
-0x21,0x18,0x00,0x00,
-0x40,0x39,0x42,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x40,0x14,
-0x01,0x00,0x03,0x24,
-0x21,0x18,0x00,0x00,
-0x10,0x00,0xBF,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x23,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x0E,0x00,0x40,0x10,
-0x6C,0x57,0x65,0x24,
-0x6C,0x57,0x62,0x8C,
-0x02,0x80,0x04,0x3C,
-0x64,0x57,0x86,0x24,
-0x09,0x00,0x45,0x14,
-0x01,0x00,0x03,0x24,
-0x64,0x57,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x46,0x14,
-0x21,0x10,0x60,0x00,
-0x10,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x10,0x00,0xBF,0x8F,
-0x21,0x18,0x00,0x00,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x20,0x00,0xBF,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0xFF,0x00,0x84,0x30,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0E,0x00,0x80,0x10,
-0x02,0x80,0x13,0x3C,
-0x44,0x5F,0x62,0x92,
-0x01,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0x39,0x00,0x43,0x10,
-0x25,0xB0,0x03,0x3C,
-0x00,0x60,0x92,0x40,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x44,0x5F,0x62,0x92,
-0x02,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0xF4,0xFF,0x43,0x14,
-0x44,0x08,0x04,0x24,
-0x94,0x60,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0x04,0x0C,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xFD,0x00,0x42,0x30,
-0x04,0x0C,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x03,0x3C,
-0x04,0x0D,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xFD,0x00,0x42,0x30,
-0x04,0x0D,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x11,0x3C,
-0x70,0x0E,0x25,0x8E,
-0x7F,0xFE,0x10,0x3C,
-0xFF,0xFF,0x10,0x36,
-0x24,0x28,0xB0,0x00,
-0x94,0x60,0x00,0x0C,
-0x70,0x0E,0x04,0x24,
-0x8C,0x0E,0x25,0x8E,
-0x8C,0x0E,0x04,0x24,
-0x94,0x60,0x00,0x0C,
-0x24,0x28,0xB0,0x00,
-0x01,0x00,0x02,0x24,
-0x44,0x5F,0x62,0xA2,
-0x00,0x60,0x92,0x40,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x04,0x0C,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x02,0x00,0x42,0x34,
-0x04,0x0C,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x03,0x3C,
-0x04,0x0D,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x02,0x00,0x42,0x34,
-0x04,0x0D,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x10,0x3C,
-0x70,0x0E,0x05,0x8E,
-0x80,0x01,0x11,0x3C,
-0x70,0x0E,0x04,0x24,
-0x94,0x60,0x00,0x0C,
-0x25,0x28,0xB1,0x00,
-0x8C,0x0E,0x05,0x8E,
-0x8C,0x0E,0x04,0x24,
-0x94,0x60,0x00,0x0C,
-0x25,0x28,0xB1,0x00,
-0x03,0x00,0x05,0x3C,
-0x59,0x01,0xA5,0x34,
-0x94,0x60,0x00,0x0C,
-0x44,0x08,0x04,0x24,
-0x02,0x00,0x02,0x24,
-0x44,0x5F,0x62,0xA2,
-0xDD,0x30,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0xFC,0x37,0x02,0x24,
-0x40,0x00,0x64,0x34,
-0x00,0x00,0x82,0xA4,
-0x42,0x00,0x65,0x34,
-0x03,0x00,0x02,0x24,
-0x00,0x00,0xA0,0xA0,
-0x03,0x08,0x62,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x0B,0x00,0x60,0x10,
-0x25,0xB0,0x10,0x3C,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x30,
-0x32,0x00,0x40,0x14,
-0x00,0x02,0x05,0x3C,
-0x00,0x08,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x25,0xB0,0x10,0x3C,
-0x21,0x00,0x06,0x36,
-0x00,0x00,0xC2,0x90,
-0x18,0x00,0x03,0x36,
-0x42,0x00,0x05,0x36,
-0x01,0x00,0x42,0x34,
-0x00,0x00,0xC2,0xA0,
-0x40,0x00,0x11,0x36,
-0x00,0x00,0x60,0xA0,
-0xFF,0xFF,0x02,0x24,
-0xFC,0x57,0x03,0x24,
-0x00,0x00,0xA2,0xA0,
-0x64,0x00,0x04,0x24,
-0x00,0x00,0x23,0xA6,
-0x54,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xFC,0x77,0x02,0x24,
-0x00,0x00,0x22,0xA6,
-0x54,0x22,0x00,0x0C,
-0x0A,0x00,0x04,0x24,
-0x03,0x08,0x00,0xA2,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x0A,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x25,0xB0,0x10,0x3C,
-0x40,0x00,0x10,0x36,
-0xFC,0x37,0x02,0x24,
-0x00,0x00,0x02,0xA6,
-0x54,0x22,0x00,0x0C,
-0x0A,0x00,0x04,0x24,
-0xFC,0x77,0x02,0x24,
-0x00,0x00,0x02,0xA6,
-0x54,0x22,0x00,0x0C,
-0x0A,0x00,0x04,0x24,
-0xFC,0x57,0x02,0x24,
-0x00,0x00,0x02,0xA6,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x9B,0x30,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x2F,0x31,0x00,0x08,
-0x25,0xB0,0x10,0x3C,
-0xC0,0xFF,0xBD,0x27,
-0x28,0x00,0xB4,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x38,0x00,0xBE,0xAF,
-0x34,0x00,0xB7,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0xFF,0x00,0x90,0x30,
-0xFF,0x00,0xB2,0x30,
-0x21,0xA0,0x00,0x00,
-0x00,0x60,0x16,0x40,
-0x01,0x00,0xC1,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x13,0x3C,
-0xF6,0x5E,0x62,0x92,
-0x0F,0x00,0x11,0x32,
-0x0F,0x00,0x42,0x30,
-0x12,0x00,0x51,0x10,
-0x04,0x00,0x02,0x32,
-0x40,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0x0C,0x00,0x03,0x24,
-0x0F,0x00,0x42,0x30,
-0x8F,0x00,0x43,0x10,
-0x08,0x00,0x02,0x32,
-0xF6,0x5E,0x62,0x92,
-0x04,0x00,0x03,0x24,
-0x0F,0x00,0x42,0x30,
-0xD2,0x01,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0x02,0x00,0x03,0x24,
-0x0F,0x00,0x42,0x30,
-0x9B,0x00,0x43,0x10,
-0x06,0x00,0x02,0x32,
-0x02,0x80,0x10,0x3C,
-0xF5,0x5E,0x03,0x92,
-0xF6,0x5E,0x62,0x92,
-0x0F,0x00,0x63,0x30,
-0x0F,0x00,0x42,0x30,
-0x2A,0x10,0x43,0x00,
-0x1C,0x00,0x40,0x14,
-0x02,0x80,0x12,0x3C,
-0xF5,0x5E,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x40,0x00,0x42,0x30,
-0x17,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xDA,0x5D,0x42,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x43,0x30,
-0x52,0x00,0x60,0x14,
-0x04,0x00,0x42,0x30,
-0x10,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x43,0x92,
-0x02,0x80,0x06,0x3C,
-0x5C,0xE9,0xC5,0x90,
-0x0F,0x00,0x63,0x30,
-0x25,0xB0,0x02,0x3C,
-0x25,0x18,0x65,0x00,
-0xDD,0x02,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0xF5,0x5E,0x04,0x92,
-0x80,0xFF,0x02,0x24,
-0xBF,0xFF,0x03,0x24,
-0x26,0x28,0xA2,0x00,
-0x24,0x20,0x83,0x00,
-0x5C,0xE9,0xC5,0xA0,
-0xF5,0x5E,0x04,0xA2,
-0x00,0x60,0x96,0x40,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x40,0x00,0xBD,0x27,
-0xF6,0x5E,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x42,0x30,
-0x4C,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x42,0x30,
-0x03,0x00,0x40,0x10,
-0x08,0x00,0x02,0x32,
-0x1B,0x00,0x40,0x10,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x42,0x30,
-0x0C,0x00,0x40,0x14,
-0x08,0x00,0x02,0x32,
-0x0A,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x40,0x12,
-0x02,0x80,0x03,0x3C,
-0xE0,0x3A,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x03,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xCD,0x4E,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0xF0,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0xF6,0x5E,0x62,0xA2,
-0xF6,0x5E,0x63,0x92,
-0x00,0x00,0x00,0x00,
-0x25,0x18,0x23,0x02,
-0xF6,0x5E,0x63,0xA2,
-0x8E,0x31,0x00,0x08,
-0x02,0x80,0x10,0x3C,
-0xE0,0x3A,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0xF2,0xFF,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x14,0x5F,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0xA2,0xFF,0x60,0x14,
-0x01,0x00,0x04,0x24,
-0xCD,0x4E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xD9,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0x24,0x00,0x0C,
-0x24,0x00,0x04,0x24,
-0x76,0x01,0x40,0x10,
-0x21,0x88,0x40,0x00,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x45,0x90,
-0xF6,0x5E,0x44,0x92,
-0xF5,0x5E,0x02,0x92,
-0xBF,0xFF,0x03,0x24,
-0x0F,0x00,0x84,0x30,
-0x24,0x10,0x43,0x00,
-0xF5,0x5E,0x02,0xA2,
-0x10,0x00,0xA5,0xA3,
-0x11,0x00,0xA4,0xA3,
-0x08,0x00,0x24,0x96,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xA5,0x27,
-0x25,0x20,0x82,0x00,
-0x20,0x00,0x84,0x24,
-0x5F,0x1E,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x04,0x00,0x03,0x24,
-0x17,0x00,0x02,0x24,
-0x0C,0x00,0x23,0xAE,
-0x14,0x00,0x22,0xAE,
-0x30,0x09,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0xB0,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x0C,0x31,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xC2,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x71,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x28,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x77,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0xF0,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0xF6,0x5E,0x62,0xA2,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x92,
-0xE0,0x3A,0x64,0x94,
-0x04,0x00,0x42,0x34,
-0x00,0x01,0x84,0x30,
-0xF6,0x5E,0x62,0xA2,
-0x61,0xFF,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0xCD,0x4E,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x83,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x65,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x82,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x61,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0xF0,0xFF,0x03,0x24,
-0x41,0xB0,0x04,0x3C,
-0x24,0x10,0x43,0x00,
-0xF6,0x5E,0x62,0xA2,
-0xF6,0x5E,0x63,0x92,
-0x08,0x00,0x85,0x34,
-0x82,0x00,0x02,0x24,
-0x01,0x00,0x63,0x34,
-0x02,0x80,0x1E,0x3C,
-0xF6,0x5E,0x63,0xA2,
-0x00,0x00,0x80,0xAC,
-0x00,0x00,0xA2,0xA4,
-0x42,0xB0,0x04,0x3C,
-0x30,0x1F,0xC2,0x27,
-0xB0,0x1B,0x45,0x94,
-0x00,0x00,0x83,0x90,
-0xBE,0xFF,0x02,0x24,
-0x03,0x00,0x86,0x34,
-0x24,0x18,0x62,0x00,
-0x00,0x01,0xA5,0x30,
-0x90,0xFF,0x02,0x24,
-0x00,0x00,0x83,0xA0,
-0x00,0x00,0xC2,0xA0,
-0x38,0x00,0xA0,0x10,
-0x25,0xB0,0x06,0x3C,
-0x25,0xB0,0x04,0x3C,
-0x84,0x00,0x82,0x34,
-0x00,0x00,0x46,0x8C,
-0x80,0x00,0x84,0x34,
-0x00,0x00,0x82,0x8C,
-0x02,0x80,0x0B,0x3C,
-0x1C,0x5F,0x64,0x8D,
-0x00,0x38,0x06,0x00,
-0x21,0x30,0x00,0x00,
-0x25,0xA0,0xC2,0x00,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x0A,0x3C,
-0x25,0xA8,0xE3,0x00,
-0x21,0x28,0x00,0x00,
-0x24,0x5F,0x42,0x8D,
-0x21,0x20,0x94,0x00,
-0x2B,0x18,0x94,0x00,
-0x21,0x28,0xB5,0x00,
-0x21,0x28,0xA3,0x00,
-0x2B,0x10,0xA2,0x00,
-0x24,0x01,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x24,0x5F,0x42,0x8D,
-0x00,0x00,0x00,0x00,
-0x10,0x01,0x45,0x10,
-0x01,0x00,0x05,0x24,
-0x30,0x1F,0xC2,0x27,
-0xA4,0x3E,0x43,0x8C,
-0x42,0xB0,0x07,0x3C,
-0x00,0x00,0xE6,0x90,
-0x18,0x00,0x65,0x00,
-0xFB,0xFF,0x02,0x24,
-0x24,0x30,0xC2,0x00,
-0x00,0x00,0xE6,0xA0,
-0x67,0x46,0x06,0x3C,
-0xCF,0xAC,0xC6,0x34,
-0x01,0x00,0x04,0x24,
-0x21,0x28,0x00,0x00,
-0x12,0x18,0x00,0x00,
-0x82,0x1A,0x03,0x00,
-0x40,0x10,0x03,0x00,
-0x21,0x10,0x43,0x00,
-0xC0,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x10,0x02,0x00,
-0x19,0x00,0x46,0x00,
-0x10,0x30,0x00,0x00,
-0x23,0x10,0x46,0x00,
-0x42,0x10,0x02,0x00,
-0x21,0x30,0xC2,0x00,
-0x02,0x33,0x06,0x00,
-0x01,0x00,0x02,0x24,
-0x8C,0x23,0x00,0x0C,
-0x0A,0x30,0x46,0x00,
-0x25,0xB0,0x06,0x3C,
-0xF2,0x02,0xC3,0x34,
-0x88,0xFF,0x02,0x24,
-0x00,0x00,0x62,0xA0,
-0x11,0x00,0xC7,0x34,
-0x00,0x00,0xE2,0x90,
-0x08,0x00,0xC5,0x34,
-0x30,0x1F,0xC4,0x27,
-0x01,0x00,0x42,0x34,
-0x00,0x00,0xE2,0xA0,
-0x00,0x00,0xA3,0x94,
-0xB0,0x1B,0x82,0x94,
-0xFF,0xFF,0x64,0x30,
-0x10,0x00,0x84,0x34,
-0x00,0x00,0xA4,0xA4,
-0xFB,0xFF,0x84,0x30,
-0x00,0x00,0xA4,0xA4,
-0x00,0x01,0x42,0x30,
-0x02,0x00,0x84,0x34,
-0x00,0x00,0xA4,0xA4,
-0x04,0x00,0x40,0x10,
-0x42,0xB0,0x02,0x3C,
-0x22,0x00,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0xFF,0xF7,0x84,0x30,
-0x00,0x00,0xA4,0xA4,
-0x28,0x00,0xC4,0x34,
-0x00,0x00,0x83,0x94,
-0xEF,0xFE,0x02,0x24,
-0xFE,0xFF,0x08,0x24,
-0x24,0x18,0x62,0x00,
-0x00,0x00,0x83,0xA4,
-0x00,0x00,0x82,0x94,
-0x26,0x00,0xC5,0x34,
-0x02,0x80,0x03,0x3C,
-0x24,0x10,0x48,0x00,
-0x00,0x00,0x82,0xA4,
-0xDA,0x5D,0x64,0x90,
-0x00,0x00,0xA2,0x94,
-0x04,0x00,0x84,0x30,
-0x00,0x24,0x42,0x34,
-0x00,0x00,0xA2,0xA4,
-0x09,0x00,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0x94,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x48,0x00,
-0x00,0x00,0xA2,0xA4,
-0x00,0x00,0xE3,0x90,
-0xFD,0xFF,0x02,0x24,
-0x24,0x18,0x62,0x00,
-0x00,0x00,0xE3,0xA0,
-0x00,0x68,0x02,0x40,
-0x00,0x08,0x42,0x30,
-0xFD,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x12,0x3C,
-0x11,0x00,0x43,0x36,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x34,
-0x00,0x00,0x62,0xA0,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x26,0x00,0x44,0x36,
-0x00,0x00,0x82,0x94,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x34,
-0x00,0x00,0x82,0xA4,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x83,0x94,
-0xFF,0xDB,0x02,0x24,
-0x28,0x00,0x45,0x36,
-0x24,0x18,0x62,0x00,
-0x00,0x00,0x83,0xA4,
-0x00,0x00,0xA2,0x94,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x34,
-0x00,0x00,0xA2,0xA4,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0x94,
-0x00,0x00,0x00,0x00,
-0x10,0x01,0x42,0x34,
-0x00,0x00,0xA2,0xA4,
-0x08,0x00,0x51,0x36,
-0x00,0x00,0x23,0x96,
-0x30,0x1F,0xD7,0x27,
-0xB0,0x1B,0xE2,0x96,
-0xFF,0xFF,0x70,0x30,
-0x00,0x18,0x10,0x36,
-0x00,0x00,0x30,0xA6,
-0x00,0x01,0x42,0x30,
-0xFD,0xFF,0x10,0x32,
-0x00,0x00,0x30,0xA6,
-0x05,0x00,0x40,0x10,
-0x42,0xB0,0x02,0x3C,
-0x00,0x00,0x43,0x90,
-0xFB,0xFF,0x04,0x24,
-0x24,0x18,0x64,0x00,
-0x00,0x00,0x43,0xA0,
-0x04,0x00,0x10,0x36,
-0x54,0x22,0x00,0x0C,
-0x32,0x00,0x04,0x24,
-0x00,0x00,0x30,0xA6,
-0x22,0x00,0x02,0x24,
-0xF2,0x02,0x43,0x36,
-0xEF,0xFF,0x10,0x32,
-0x00,0x00,0x30,0xA6,
-0xC8,0x00,0x04,0x24,
-0x00,0x00,0x62,0xA0,
-0x54,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xB0,0x1B,0xE2,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x41,0x00,0x40,0x10,
-0x42,0xB0,0x06,0x3C,
-0x84,0x00,0x42,0x36,
-0x00,0x00,0x44,0x8C,
-0x80,0x00,0x46,0x36,
-0x00,0x00,0xC2,0x8C,
-0x00,0x28,0x04,0x00,
-0x21,0x18,0x00,0x00,
-0x21,0x20,0x00,0x00,
-0x25,0x30,0x82,0x00,
-0x25,0x38,0xA3,0x00,
-0xA4,0x3E,0xE3,0x8E,
-0x23,0x28,0xD4,0x00,
-0x80,0x12,0x05,0x00,
-0x1B,0x00,0x43,0x00,
-0x02,0x00,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x02,0x80,0x0B,0x3C,
-0x1C,0x5F,0x63,0x8D,
-0x12,0x10,0x00,0x00,
-0x23,0x10,0x45,0x00,
-0x21,0x10,0x43,0x00,
-0x1C,0x5F,0x62,0xAD,
-0x1C,0x5F,0x63,0x8D,
-0x42,0xB0,0x02,0x3C,
-0x03,0x00,0x42,0x34,
-0xC4,0x09,0x63,0x24,
-0x1C,0x5F,0x63,0xAD,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0x63,0x30,
-0x20,0x00,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x1C,0x5F,0x62,0x8D,
-0x02,0x80,0x0A,0x3C,
-0x24,0x5F,0x44,0x8D,
-0x21,0x40,0x46,0x00,
-0x2B,0x28,0x06,0x01,
-0x21,0x48,0x67,0x00,
-0x21,0x48,0x25,0x01,
-0x2B,0x20,0x24,0x01,
-0x59,0x00,0x80,0x14,
-0x00,0x00,0x00,0x00,
-0x24,0x5F,0x42,0x8D,
-0x00,0x00,0x00,0x00,
-0x47,0x00,0x49,0x10,
-0x01,0x00,0x05,0x24,
-0x42,0xB0,0x02,0x3C,
-0x00,0x00,0x43,0x90,
-0xFB,0xFF,0x04,0x24,
-0x01,0x00,0x06,0x24,
-0x24,0x18,0x64,0x00,
-0x00,0x00,0x43,0xA0,
-0x04,0x00,0xA0,0x10,
-0x01,0x00,0x04,0x24,
-0x80,0x10,0x05,0x00,
-0x21,0x10,0x45,0x00,
-0x80,0x30,0x02,0x00,
-0x8C,0x23,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x42,0xB0,0x02,0x3C,
-0x22,0x00,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x42,0xB0,0x06,0x3C,
-0x00,0x00,0xC2,0x90,
-0x30,0x1F,0xC5,0x27,
-0xD0,0x1B,0xA8,0x8C,
-0xDC,0x1B,0xA7,0x94,
-0x41,0xB0,0x03,0x3C,
-0x41,0x00,0x42,0x34,
-0x08,0x00,0x64,0x34,
-0x00,0x00,0xC2,0xA0,
-0x00,0x00,0x68,0xAC,
-0x00,0x00,0x87,0xA4,
-0xF6,0x5E,0x63,0x92,
-0xF0,0xFF,0x02,0x24,
-0xDC,0x1B,0xA7,0xA4,
-0x24,0x18,0x62,0x00,
-0xF6,0x5E,0x63,0xA2,
-0xF6,0x5E,0x62,0x92,
-0xD0,0x1B,0xA8,0xAC,
-0x02,0x00,0x42,0x34,
-0xF6,0x5E,0x62,0xA2,
-0x8E,0x31,0x00,0x08,
-0x02,0x80,0x10,0x3C,
-0x4C,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x31,0xFE,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x1C,0x31,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF6,0x5E,0x62,0x92,
-0xF0,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0xF6,0x5E,0x62,0xA2,
-0xF6,0x5E,0x63,0x92,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x63,0x34,
-0xF6,0x5E,0x63,0xA2,
-0x88,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x99,0x99,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x97,0x99,0x63,0x34,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0xB0,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x20,0x5F,0x42,0x8D,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x82,0x00,
-0x0C,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x20,0x5F,0x42,0x8D,
-0x61,0x32,0x00,0x08,
-0x01,0x00,0x05,0x24,
-0x20,0x5F,0x42,0x8D,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x02,0x01,
-0x0A,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x20,0x5F,0x42,0x8D,
-0x32,0x33,0x00,0x08,
-0x01,0x00,0x05,0x24,
-0x20,0x5F,0x42,0x8D,
-0x24,0x5F,0x43,0x8D,
-0x1C,0x5F,0x64,0x8D,
-0x23,0x10,0x54,0x00,
-0x61,0x32,0x00,0x08,
-0x23,0x28,0x44,0x00,
-0x20,0x5F,0x42,0x8D,
-0x24,0x5F,0x43,0x8D,
-0x1C,0x5F,0x64,0x8D,
-0x23,0x10,0x46,0x00,
-0x32,0x33,0x00,0x08,
-0x23,0x28,0x44,0x00,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0xF6,0x5E,0x43,0x90,
-0x04,0x00,0x04,0x24,
-0x0F,0x00,0x63,0x30,
-0x04,0x00,0x63,0x28,
-0x03,0x00,0x60,0x14,
-0x01,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x64,0x31,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x02,0x3C,
-0x25,0xB0,0x03,0x3C,
-0xE8,0xFF,0xBD,0x27,
-0x6C,0xCE,0x42,0x24,
-0x18,0x03,0x63,0x34,
-0x14,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x00,0x60,0x10,0x40,
-0x01,0x00,0x01,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x04,0x3C,
-0x13,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x0B,0x00,0x40,0x10,
-0x01,0x00,0x05,0x24,
-0xD0,0x07,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0xE4,0x5E,0x43,0xAC,
-0x13,0x5F,0x80,0xA0,
-0x00,0x60,0x90,0x40,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x01,0x00,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x16,0x5F,0x44,0xA0,
-0x14,0x5F,0x60,0xA0,
-0x02,0x80,0x02,0x3C,
-0xF5,0x5E,0x44,0x90,
-0x64,0x31,0x00,0x0C,
-0xFF,0x00,0x84,0x30,
-0x00,0x60,0x90,0x40,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x42,0x11,0x05,0x00,
-0x0F,0x00,0x46,0x30,
-0xE8,0xFF,0xBD,0x27,
-0x09,0x00,0xC3,0x28,
-0x14,0x00,0xBF,0xAF,
-0x15,0x00,0x60,0x10,
-0x10,0x00,0xB0,0xAF,
-0x82,0x16,0x05,0x00,
-0x01,0x00,0x42,0x30,
-0x15,0x00,0x40,0x10,
-0x00,0xC0,0x02,0x3C,
-0x24,0x10,0xA2,0x00,
-0x48,0x00,0x40,0x14,
-0xC2,0x15,0x04,0x00,
-0x01,0x00,0x42,0x30,
-0x55,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x50,0xE9,0x63,0x24,
-0x21,0x18,0xC3,0x00,
-0x02,0x80,0x04,0x3C,
-0x0F,0x5F,0x85,0x90,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x45,0x00,
-0x4B,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x24,0x10,0xA2,0x00,
-0x20,0x00,0x40,0x14,
-0xC2,0x15,0x04,0x00,
-0x01,0x00,0x42,0x30,
-0x0B,0x00,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x03,0x3C,
-0x50,0xE9,0x63,0x24,
-0x21,0x18,0xC3,0x00,
-0x02,0x80,0x04,0x3C,
-0x0F,0x5F,0x85,0x90,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x45,0x00,
-0x3C,0x00,0x40,0x14,
-0x02,0x80,0x04,0x3C,
-0x0E,0x5F,0x82,0x90,
-0xFE,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0x82,0xA0,
-0x0E,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x42,0x30,
-0xE4,0xFF,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0x0C,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0xFF,0x00,0x84,0x30,
-0x64,0x31,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x0E,0x5F,0x82,0x90,
-0xFD,0xFF,0x03,0x24,
-0x14,0x00,0xBF,0x8F,
-0x24,0x10,0x43,0x00,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0x82,0xA0,
-0x12,0x5F,0x60,0xA0,
-0x42,0xB0,0x04,0x3C,
-0x00,0x00,0x82,0x90,
-0x10,0x00,0xB0,0x8F,
-0xEF,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x03,0x00,0x85,0x34,
-0x40,0x00,0x03,0x24,
-0x18,0x00,0xBD,0x27,
-0x00,0x00,0x82,0xA0,
-0x00,0x00,0xA3,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x42,0xB0,0x07,0x3C,
-0x00,0x00,0xE3,0x90,
-0xEF,0xFF,0x02,0x24,
-0x03,0x00,0xF0,0x34,
-0x24,0x18,0x62,0x00,
-0x40,0x00,0x02,0x24,
-0x00,0x00,0xE3,0xA0,
-0x02,0x00,0x04,0x24,
-0x00,0x00,0x02,0xA2,
-0x21,0x28,0x00,0x00,
-0x8C,0x23,0x00,0x0C,
-0x00,0xF0,0x06,0x34,
-0x44,0x00,0x02,0x24,
-0x00,0x00,0x02,0xA2,
-0xE0,0x33,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x04,0x24,
-0xFE,0x4E,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x0E,0x5F,0x82,0x90,
-0xF6,0x33,0x00,0x08,
-0xFB,0xFF,0x03,0x24,
-0x82,0x16,0x05,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x01,0x00,0x42,0x30,
-0x14,0x00,0xBF,0xAF,
-0x0E,0x00,0x40,0x10,
-0x10,0x00,0xB0,0xAF,
-0x00,0xC0,0x02,0x3C,
-0x24,0x10,0xA2,0x00,
-0x37,0x00,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0x0D,0x5F,0x43,0x90,
-0x02,0x00,0x02,0x24,
-0xFF,0x00,0x63,0x30,
-0x44,0x00,0x62,0x10,
-0x01,0x00,0x04,0x24,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xFE,0x4E,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x00,0xC0,0x02,0x3C,
-0x24,0x10,0xA2,0x00,
-0x0E,0x00,0x40,0x14,
-0x02,0x80,0x06,0x3C,
-0x0E,0x5F,0xC2,0x90,
-0xFE,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0xC2,0xA0,
-0x0E,0x5F,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x42,0x30,
-0x18,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x0E,0x5F,0xC2,0x90,
-0xFD,0xFF,0x03,0x24,
-0x42,0xB0,0x04,0x3C,
-0x24,0x10,0x43,0x00,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0xC2,0xA0,
-0x12,0x5F,0x60,0xA0,
-0x00,0x00,0x82,0x90,
-0xEF,0xFF,0x03,0x24,
-0x03,0x00,0x85,0x34,
-0x24,0x10,0x43,0x00,
-0x40,0x00,0x03,0x24,
-0x00,0x00,0x82,0xA0,
-0x00,0x00,0xA3,0xA0,
-0x0E,0x5F,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x42,0x30,
-0xEA,0xFF,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0x0C,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0xFF,0x00,0x84,0x30,
-0x64,0x31,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x42,0xB0,0x07,0x3C,
-0x00,0x00,0xE3,0x90,
-0xEF,0xFF,0x02,0x24,
-0x03,0x00,0xF0,0x34,
-0x24,0x18,0x62,0x00,
-0x40,0x00,0x02,0x24,
-0x00,0x00,0xE3,0xA0,
-0x02,0x00,0x04,0x24,
-0x00,0x00,0x02,0xA2,
-0x21,0x28,0x00,0x00,
-0x8C,0x23,0x00,0x0C,
-0x00,0xF0,0x06,0x34,
-0x44,0x00,0x02,0x24,
-0x00,0x00,0x02,0xA2,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x0D,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x0C,0x00,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0x64,0x31,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x01,0x80,0x02,0x3C,
-0x25,0xB0,0x03,0x3C,
-0xE8,0xFF,0xBD,0x27,
-0x30,0xD2,0x42,0x24,
-0x18,0x03,0x63,0x34,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x02,0x80,0x10,0x3C,
-0xF5,0x5E,0x02,0x92,
-0x14,0x00,0xBF,0xAF,
-0x0F,0x00,0x42,0x30,
-0x03,0x00,0x42,0x28,
-0x05,0x00,0x40,0x10,
-0x01,0x00,0x05,0x24,
-0x4C,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x40,0x10,
-0x01,0x00,0x05,0x24,
-0xF5,0x5E,0x04,0x92,
-0x64,0x31,0x00,0x0C,
-0xFF,0x00,0x84,0x30,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x84,0x24,
-0xE0,0x1B,0x83,0x94,
-0xDC,0x1B,0x85,0x94,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x02,0x00,0x63,0x30,
-0x41,0xB0,0x02,0x3C,
-0x25,0x18,0x65,0x00,
-0x08,0x00,0x42,0x34,
-0x18,0x00,0xBD,0x27,
-0x00,0x00,0x43,0xA4,
-0x08,0x00,0xE0,0x03,
-0xDC,0x1B,0x83,0xA4,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x02,0x80,0x10,0x3C,
-0x08,0x14,0x04,0x26,
-0x21,0x28,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x91,0x3C,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0xB4,0x34,0x00,0x08,
-0x08,0x14,0x04,0x26,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0xCF,0x61,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0x10,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xFF,0xFF,0x8D,0x30,
-0x00,0x60,0x0F,0x40,
-0x01,0x00,0xE1,0x35,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x06,0x3C,
-0x30,0x1F,0xCE,0x24,
-0x2A,0x1C,0xC2,0x91,
-0x00,0x00,0x00,0x00,
-0x1D,0x00,0x40,0x10,
-0x25,0xB0,0x03,0x3C,
-0x38,0x02,0x64,0x34,
-0x80,0xFF,0x02,0x24,
-0x00,0x00,0x82,0xA0,
-0x34,0x02,0x6A,0x34,
-0xD2,0x01,0x65,0x34,
-0xD6,0x01,0x66,0x34,
-0xDA,0x01,0x67,0x34,
-0xDE,0x01,0x63,0x34,
-0x00,0x00,0xA8,0x94,
-0x00,0x00,0xC9,0x94,
-0x00,0x00,0xEB,0x94,
-0x00,0x00,0x6C,0x94,
-0x00,0x00,0x44,0x95,
-0xB0,0xFE,0xA2,0x25,
-0xFF,0xFF,0x4D,0x30,
-0x28,0x1C,0xC4,0xA5,
-0x00,0x00,0xA0,0xA4,
-0x20,0x1C,0xC8,0xA5,
-0x00,0x00,0xC0,0xA4,
-0x22,0x1C,0xC9,0xA5,
-0x00,0x00,0xE0,0xA4,
-0x24,0x1C,0xCB,0xA5,
-0x00,0x00,0x60,0xA4,
-0x00,0x00,0x4D,0xA5,
-0x26,0x1C,0xCC,0xA5,
-0x00,0x60,0x8F,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x02,0x3C,
-0x0A,0x00,0x45,0x34,
-0x63,0x00,0x03,0x24,
-0xFF,0xFF,0x04,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x40,0x10,
-0x30,0x1F,0xC2,0x24,
-0x64,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x42,0x30,
-0xFE,0xFF,0x40,0x14,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x62,0x24,
-0xFF,0xFF,0x43,0x30,
-0xF4,0xFF,0x64,0x14,
-0x30,0x1F,0xC2,0x24,
-0x28,0x1C,0x48,0x94,
-0x26,0x1C,0x47,0x94,
-0x20,0x1C,0x49,0x94,
-0x22,0x1C,0x4A,0x94,
-0x24,0x1C,0x4B,0x94,
-0x25,0xB0,0x03,0x3C,
-0x38,0x02,0x6C,0x34,
-0x34,0x02,0x62,0x34,
-0xD2,0x01,0x64,0x34,
-0xD6,0x01,0x65,0x34,
-0xDA,0x01,0x66,0x34,
-0xDE,0x01,0x63,0x34,
-0x00,0x00,0x48,0xA4,
-0x00,0x00,0x89,0xA4,
-0x00,0x00,0xAA,0xA4,
-0x00,0x00,0xCB,0xA4,
-0x00,0x00,0x67,0xA4,
-0x00,0x00,0x80,0xA1,
-0x00,0x60,0x8F,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xD0,0xFF,0xBD,0x27,
-0x28,0x00,0xB4,0xAF,
-0x2C,0x00,0xBF,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0xFF,0xFF,0x14,0x24,
-0x02,0x80,0x13,0x3C,
-0x41,0xB0,0x02,0x3C,
-0x30,0x1F,0x63,0x26,
-0x04,0x00,0x42,0x34,
-0x00,0x00,0x45,0x8C,
-0xD4,0x1B,0x64,0x8C,
-0xD0,0x1B,0x66,0x8C,
-0x02,0x80,0x02,0x3C,
-0x08,0x5E,0x47,0x90,
-0x25,0xB0,0x08,0x3C,
-0xB0,0x03,0x02,0x35,
-0x25,0x90,0x85,0x00,
-0x00,0x00,0x52,0xAC,
-0x00,0x00,0x46,0xAC,
-0x01,0x00,0x02,0x24,
-0x8D,0x03,0xE2,0x10,
-0xD4,0x1B,0x72,0xAC,
-0x30,0x1F,0x64,0x26,
-0xD0,0x1B,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x52,0x00,
-0x01,0x00,0x42,0x30,
-0x0E,0x00,0x40,0x10,
-0x30,0x1F,0x67,0x26,
-0x25,0xB0,0x10,0x3C,
-0xB0,0x03,0x02,0x36,
-0x01,0x00,0x05,0x24,
-0x00,0x00,0x45,0xAC,
-0x04,0x00,0x0B,0x36,
-0xD4,0x1B,0x83,0x8C,
-0x00,0x00,0x69,0x8D,
-0x40,0x00,0x02,0x3C,
-0x01,0x00,0x63,0x38,
-0x24,0x10,0x22,0x01,
-0x2A,0x01,0x40,0x10,
-0xD4,0x1B,0x83,0xAC,
-0x30,0x1F,0x67,0x26,
-0xD0,0x1B,0xE8,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x12,0x01,
-0x04,0x00,0x42,0x30,
-0x18,0x00,0x40,0x10,
-0x30,0x1F,0x71,0x26,
-0x25,0xB0,0x03,0x3C,
-0xB0,0x03,0x64,0x34,
-0x04,0x00,0x02,0x24,
-0x00,0x00,0x82,0xAC,
-0xD4,0x1B,0xE2,0x8C,
-0xFC,0x00,0x63,0x34,
-0xAC,0x1B,0xE5,0x94,
-0xD0,0x37,0xE4,0x8C,
-0x00,0x00,0x66,0x8C,
-0x04,0x00,0x42,0x38,
-0x21,0x48,0x85,0x00,
-0x0A,0x00,0xC9,0x10,
-0xD4,0x1B,0xE2,0xAC,
-0x02,0x80,0x05,0x3C,
-0xBC,0x5E,0xA2,0x8C,
-0xFB,0xFF,0x04,0x24,
-0x24,0x20,0x04,0x01,
-0x00,0x10,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0xBC,0x5E,0xA2,0xAC,
-0x00,0x00,0x64,0xAC,
-0xD0,0x1B,0xE4,0xAC,
-0x30,0x1F,0x71,0x26,
-0xD0,0x1B,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x52,0x00,
-0x08,0x00,0x42,0x30,
-0x0A,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xB0,0x1B,0x22,0x96,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x42,0x30,
-0x5D,0x03,0x40,0x14,
-0x00,0x80,0x02,0x3C,
-0xD4,0x1B,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x42,0x38,
-0xD4,0x1B,0x22,0xAE,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x00,0x00,0x00,0x00,
-0x24,0x20,0x52,0x00,
-0x00,0x08,0x83,0x30,
-0x06,0x00,0x60,0x10,
-0x00,0x10,0x82,0x30,
-0xD4,0x1B,0x02,0x8E,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x42,0x38,
-0xD4,0x1B,0x02,0xAE,
-0x00,0x10,0x82,0x30,
-0x05,0x03,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x72,0x00,
-0x00,0x20,0x42,0x30,
-0xF7,0x02,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x72,0x00,
-0x00,0x80,0x42,0x30,
-0xB9,0x01,0x40,0x14,
-0x01,0x00,0x03,0x3C,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x54,0x00,
-0x24,0x10,0x43,0x00,
-0xF1,0x01,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xD0,0x1B,0x02,0x8E,
-0x02,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x43,0x00,
-0x28,0x02,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x04,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x54,0x00,
-0x24,0x10,0x43,0x00,
-0x62,0x02,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x08,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x43,0x00,
-0x9B,0x02,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x10,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x54,0x00,
-0x24,0x10,0x43,0x00,
-0x5A,0x01,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x20,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x43,0x00,
-0x18,0x01,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x40,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x54,0x00,
-0x24,0x10,0x43,0x00,
-0xD6,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x65,0x26,
-0xD0,0x1B,0xA2,0x8C,
-0x00,0x04,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x43,0x00,
-0x3D,0x00,0x40,0x10,
-0x30,0x1F,0x66,0x26,
-0x2A,0xB0,0x02,0x3C,
-0x2C,0x00,0x43,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x02,0x24,
-0xFF,0x00,0x24,0x31,
-0x29,0x03,0x82,0x10,
-0x00,0x80,0x22,0x31,
-0xF9,0x02,0x40,0x14,
-0x00,0x80,0x02,0x3C,
-0x00,0xFF,0x02,0x3C,
-0x24,0x10,0x22,0x01,
-0x0B,0x00,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0xB8,0x36,0xA2,0x90,
-0x20,0xB0,0x03,0x3C,
-0x00,0x12,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x0C,0x00,0x49,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xB0,0x03,0x63,0x34,
-0x00,0x00,0x69,0xAC,
-0xFF,0x00,0x24,0x31,
-0xFF,0x00,0x02,0x24,
-0x1B,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x88,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x1C,0x37,0x03,0xAE,
-0x0A,0x00,0x04,0x24,
-0xB8,0x36,0x09,0xA2,
-0x00,0x01,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xD0,0x1B,0x05,0x8E,
-0x02,0x80,0x06,0x3C,
-0xBC,0x5E,0xC4,0x8C,
-0x00,0x04,0x02,0x3C,
-0x27,0x10,0x02,0x00,
-0x24,0x28,0xA2,0x00,
-0x25,0xB0,0x02,0x3C,
-0x00,0x40,0x84,0x34,
-0xB0,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x65,0xAC,
-0xBC,0x5E,0xC4,0xAC,
-0xD0,0x1B,0x05,0xAE,
-0x30,0x1F,0x65,0x26,
-0xD4,0x1B,0xA4,0x8C,
-0x00,0x04,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x26,0x20,0x83,0x00,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x44,0xAC,
-0xD4,0x1B,0xA4,0xAC,
-0x30,0x1F,0x66,0x26,
-0xD0,0x1B,0xC7,0x8C,
-0x00,0x08,0x04,0x3C,
-0x24,0x28,0xF2,0x00,
-0x24,0x10,0xA4,0x00,
-0x08,0x00,0x40,0x10,
-0x80,0x00,0x08,0x3C,
-0xD4,0x1B,0xC3,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0x26,0x18,0x64,0x00,
-0x00,0x00,0x44,0xAC,
-0xD4,0x1B,0xC3,0xAC,
-0x80,0x00,0x08,0x3C,
-0x24,0x10,0xA8,0x00,
-0x21,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xD4,0x1B,0xC3,0x8C,
-0x25,0xB0,0x09,0x3C,
-0xB0,0x03,0x2A,0x35,
-0x2A,0xB0,0x02,0x3C,
-0x00,0x00,0x43,0xAD,
-0x36,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x23,0xB0,0x04,0x3C,
-0xFF,0x1F,0x02,0x3C,
-0xC0,0x18,0x03,0x00,
-0xF0,0x07,0x63,0x30,
-0x00,0x38,0xC5,0x8C,
-0x21,0x18,0x64,0x00,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0xCE,0x02,0x65,0x10,
-0x04,0x38,0xC3,0xAC,
-0x02,0x80,0x05,0x3C,
-0xBC,0x5E,0xA3,0x8C,
-0x27,0x20,0x08,0x00,
-0x24,0x20,0xE4,0x00,
-0x00,0x08,0x63,0x34,
-0x41,0xB0,0x02,0x3C,
-0x00,0x00,0x43,0xAD,
-0x00,0x00,0x44,0xAC,
-0xBC,0x5E,0xA3,0xAC,
-0xD0,0x1B,0xC4,0xAC,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x80,0x00,0x04,0x3C,
-0x26,0x18,0x64,0x00,
-0xD4,0x1B,0x43,0xAC,
-0x30,0x1F,0x66,0x26,
-0xD0,0x1B,0xC3,0x8C,
-0x00,0x01,0x05,0x3C,
-0x24,0x20,0x72,0x00,
-0x24,0x10,0x85,0x00,
-0x06,0x00,0x40,0x10,
-0x25,0xB0,0x02,0x3C,
-0xD4,0x1B,0xC3,0x8C,
-0xB0,0x03,0x42,0x34,
-0x26,0x18,0x65,0x00,
-0x00,0x00,0x45,0xAC,
-0xD4,0x1B,0xC3,0xAC,
-0x00,0x02,0x05,0x3C,
-0x24,0x10,0x85,0x00,
-0x06,0x00,0x40,0x10,
-0x25,0xB0,0x02,0x3C,
-0xD4,0x1B,0xC3,0x8C,
-0xB0,0x03,0x42,0x34,
-0x26,0x18,0x65,0x00,
-0x00,0x00,0x45,0xAC,
-0xD4,0x1B,0xC3,0xAC,
-0x00,0x10,0x05,0x3C,
-0x24,0x10,0x85,0x00,
-0x0C,0x00,0x40,0x10,
-0x30,0x1F,0x63,0x26,
-0xB0,0x1B,0xC3,0x94,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x62,0x30,
-0x02,0x00,0x40,0x10,
-0x00,0x08,0x62,0x34,
-0xB0,0x1B,0xC2,0xA4,
-0xD4,0x1B,0xC2,0x8C,
-0x00,0x00,0x00,0x00,
-0x26,0x10,0x45,0x00,
-0xD4,0x1B,0xC2,0xAC,
-0x30,0x1F,0x63,0x26,
-0xD0,0x1B,0x62,0x8C,
-0x00,0x20,0x05,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x45,0x00,
-0x0B,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xB0,0x1B,0x64,0x94,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x82,0x30,
-0x02,0x00,0x40,0x10,
-0xFF,0xF7,0x82,0x30,
-0xB0,0x1B,0x62,0xA4,
-0xD4,0x1B,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x26,0x10,0x45,0x00,
-0xD4,0x1B,0x62,0xAC,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x20,0xBD,0x02,0x3C,
-0xEC,0x02,0x03,0x36,
-0x4D,0x00,0x07,0x36,
-0xF1,0x02,0x08,0x36,
-0x08,0x00,0x06,0x24,
-0x78,0x02,0x42,0x34,
-0x00,0x00,0x45,0xA4,
-0x00,0x00,0xE0,0xA0,
-0x00,0x00,0x06,0xA1,
-0x00,0x00,0x60,0xAC,
-0x00,0x00,0x62,0x8C,
-0xFF,0x00,0x04,0x3C,
-0x00,0x00,0xE0,0xA0,
-0xFF,0x00,0x49,0x30,
-0x25,0x48,0x24,0x01,
-0x00,0x00,0x06,0xA1,
-0xF2,0x02,0x05,0x36,
-0x00,0x00,0x64,0xAC,
-0x0A,0x00,0x0A,0x36,
-0x00,0x00,0x69,0xAC,
-0x80,0xFF,0x03,0x24,
-0x00,0x00,0xA0,0xA0,
-0x00,0x00,0x43,0xA1,
-0x00,0x00,0x62,0x8D,
-0x80,0x00,0x03,0x3C,
-0x24,0x10,0x43,0x00,
-0x02,0x00,0x40,0x10,
-0x84,0xFF,0x02,0x24,
-0x00,0x00,0x42,0xA1,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x02,0x00,0x02,0x36,
-0x00,0x00,0x43,0x94,
-0xFF,0xBF,0x04,0x24,
-0x24,0x18,0x64,0x00,
-0x00,0x00,0x43,0xA4,
-0x3C,0x35,0x00,0x08,
-0x30,0x1F,0x67,0x26,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x2A,0xB0,0x06,0x3C,
-0xB0,0x03,0x42,0x34,
-0x00,0x00,0x54,0xAC,
-0x28,0x00,0xC3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x05,0x24,
-0xFF,0x00,0x24,0x31,
-0x6D,0x03,0x85,0x10,
-0x25,0xBD,0x02,0x3C,
-0x00,0x80,0x22,0x31,
-0x59,0x02,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x21,0x00,0x82,0x10,
-0xFF,0x00,0x23,0x31,
-0x30,0x1F,0x70,0x26,
-0x58,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0xA4,0x36,0x09,0xA2,
-0xEC,0x36,0x03,0xAE,
-0x06,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x09,0x3C,
-0xCC,0x5E,0x27,0x91,
-0x02,0x80,0x08,0x3C,
-0xBC,0x5E,0x05,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x60,0x00,0x02,0x3C,
-0x02,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x04,0xA5,0x34,
-0x00,0x26,0x07,0x00,
-0x25,0xB0,0x02,0x3C,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x66,0xAC,
-0xBC,0x5E,0x05,0xAD,
-0xCC,0x5E,0x27,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x40,0x00,0x04,0x3C,
-0x26,0x18,0x64,0x00,
-0xB5,0x35,0x00,0x08,
-0xD4,0x1B,0x43,0xAC,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x05,0x3C,
-0x24,0x00,0xA3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0x48,0x03,0x86,0x10,
-0x25,0xB0,0x02,0x3C,
-0x00,0x80,0x22,0x31,
-0x64,0x02,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x25,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x58,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0xA0,0x36,0x09,0xA2,
-0xEC,0x36,0x03,0xAE,
-0x06,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x0A,0x3C,
-0xCC,0x5E,0x47,0x91,
-0x02,0x80,0x09,0x3C,
-0xBC,0x5E,0x25,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x60,0x00,0x02,0x3C,
-0x04,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x04,0xA5,0x34,
-0x25,0xB0,0x03,0x3C,
-0x40,0x00,0x02,0x3C,
-0x00,0x26,0x07,0x00,
-0x26,0xA0,0x82,0x02,
-0xB0,0x03,0x68,0x34,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x63,0x34,
-0x41,0xB0,0x02,0x3C,
-0x00,0x00,0x64,0xAC,
-0x00,0x00,0x46,0xAC,
-0xBC,0x5E,0x25,0xAD,
-0xCC,0x5E,0x47,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x00,0x00,0x14,0xAD,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x20,0x00,0x04,0x3C,
-0x26,0x18,0x64,0x00,
-0xAD,0x35,0x00,0x08,
-0xD4,0x1B,0x43,0xAC,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x05,0x3C,
-0xB0,0x03,0xA2,0x34,
-0x2A,0xB0,0x07,0x3C,
-0x00,0x00,0x54,0xAC,
-0x20,0x00,0xE3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0x07,0x03,0x86,0x10,
-0x90,0x03,0xA2,0x34,
-0x00,0x80,0x22,0x31,
-0x05,0x02,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x21,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x4C,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0xA8,0x36,0x09,0xA2,
-0xE0,0x36,0x03,0xAE,
-0x05,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x09,0x3C,
-0xCC,0x5E,0x27,0x91,
-0x02,0x80,0x08,0x3C,
-0xBC,0x5E,0x05,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x18,0x00,0x02,0x3C,
-0x01,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x02,0xA5,0x34,
-0x00,0x26,0x07,0x00,
-0x25,0xB0,0x02,0x3C,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x66,0xAC,
-0xBC,0x5E,0x05,0xAD,
-0xCC,0x5E,0x27,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x10,0x00,0x04,0x3C,
-0x26,0x18,0x64,0x00,
-0xA6,0x35,0x00,0x08,
-0xD4,0x1B,0x43,0xAC,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x05,0x3C,
-0x0C,0x00,0xA3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0xC6,0x02,0x86,0x10,
-0x00,0x80,0x22,0x31,
-0x54,0x02,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x24,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x34,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x8C,0x36,0x09,0xA2,
-0xC8,0x36,0x03,0xAE,
-0x03,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x0A,0x3C,
-0xCC,0x5E,0x47,0x91,
-0x02,0x80,0x09,0x3C,
-0xBC,0x5E,0x25,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x01,0x00,0x08,0x3C,
-0x80,0xFF,0x02,0x24,
-0x25,0x38,0xE2,0x00,
-0x00,0x80,0x03,0x35,
-0x80,0x00,0xA5,0x34,
-0x27,0x18,0x03,0x00,
-0x00,0x26,0x07,0x00,
-0x25,0xB0,0x02,0x3C,
-0x24,0x30,0xC3,0x00,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x27,0xA0,0x08,0x00,
-0x00,0x00,0x66,0xAC,
-0xBC,0x5E,0x25,0xAD,
-0xCC,0x5E,0x47,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x30,0x1F,0x63,0x26,
-0xD4,0x1B,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x80,0x42,0x38,
-0xD4,0x1B,0x62,0xAC,
-0x30,0x1F,0x70,0x26,
-0xD0,0x1B,0x02,0x8E,
-0x01,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x54,0x00,
-0x24,0x10,0x43,0x00,
-0x11,0xFE,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x05,0x3C,
-0x10,0x00,0xA3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0x7C,0x02,0x86,0x10,
-0x25,0xB0,0x02,0x3C,
-0x00,0x80,0x22,0x31,
-0xD0,0x01,0x40,0x10,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x22,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x34,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x90,0x36,0x09,0xA2,
-0xC8,0x36,0x03,0xAE,
-0x03,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x09,0x3C,
-0xCC,0x5E,0x27,0x91,
-0x02,0x80,0x08,0x3C,
-0xBC,0x5E,0x05,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x01,0x00,0x02,0x3C,
-0x00,0x80,0x42,0x34,
-0x40,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x80,0x00,0xA5,0x34,
-0x00,0x26,0x07,0x00,
-0x25,0xB0,0x02,0x3C,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x66,0xAC,
-0xBC,0x5E,0x05,0xAD,
-0xCC,0x5E,0x27,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x01,0x00,0x04,0x3C,
-0x30,0x1F,0x70,0x26,
-0x26,0x18,0x64,0x00,
-0xD4,0x1B,0x43,0xAC,
-0xD0,0x1B,0x02,0x8E,
-0x02,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x43,0x00,
-0xDB,0xFD,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x05,0x3C,
-0x14,0x00,0xA3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0x64,0x02,0x86,0x10,
-0x25,0xB0,0x02,0x3C,
-0x00,0x80,0x22,0x31,
-0xFA,0x01,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x25,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x40,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x94,0x36,0x09,0xA2,
-0xD4,0x36,0x03,0xAE,
-0x04,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x0A,0x3C,
-0xCC,0x5E,0x47,0x91,
-0x02,0x80,0x09,0x3C,
-0xBC,0x5E,0x25,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x06,0x00,0x02,0x3C,
-0x20,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x01,0xA5,0x34,
-0x25,0xB0,0x03,0x3C,
-0x04,0x00,0x02,0x3C,
-0x00,0x26,0x07,0x00,
-0x26,0xA0,0x82,0x02,
-0xB0,0x03,0x68,0x34,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x63,0x34,
-0x41,0xB0,0x02,0x3C,
-0x00,0x00,0x64,0xAC,
-0x00,0x00,0x46,0xAC,
-0xBC,0x5E,0x25,0xAD,
-0xCC,0x5E,0x47,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x00,0x00,0x14,0xAD,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x02,0x00,0x04,0x3C,
-0x30,0x1F,0x70,0x26,
-0x26,0x18,0x64,0x00,
-0xD4,0x1B,0x43,0xAC,
-0xD0,0x1B,0x02,0x8E,
-0x04,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x54,0x00,
-0x24,0x10,0x43,0x00,
-0xA1,0xFD,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0xB0,0x03,0x62,0x34,
-0x2A,0xB0,0x07,0x3C,
-0x00,0x00,0x54,0xAC,
-0x18,0x00,0xE5,0x34,
-0x00,0x00,0xA9,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0x16,0x02,0x86,0x10,
-0x04,0x00,0x02,0x24,
-0x00,0x80,0x22,0x31,
-0xD6,0x01,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0xA2,0xAC,
-0xFF,0x00,0x02,0x24,
-0x21,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x40,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x98,0x36,0x09,0xA2,
-0xD4,0x36,0x03,0xAE,
-0x04,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x09,0x3C,
-0xCC,0x5E,0x27,0x91,
-0x02,0x80,0x08,0x3C,
-0xBC,0x5E,0x05,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x06,0x00,0x02,0x3C,
-0x10,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x01,0xA5,0x34,
-0x00,0x26,0x07,0x00,
-0x25,0xB0,0x02,0x3C,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x66,0xAC,
-0xBC,0x5E,0x05,0xAD,
-0xCC,0x5E,0x27,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x04,0x00,0x04,0x3C,
-0x30,0x1F,0x70,0x26,
-0x26,0x18,0x64,0x00,
-0xD4,0x1B,0x43,0xAC,
-0xD0,0x1B,0x02,0x8E,
-0x08,0x00,0x03,0x3C,
-0x24,0x10,0x52,0x00,
-0x24,0x10,0x43,0x00,
-0x68,0xFD,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x05,0x3C,
-0x1C,0x00,0xA3,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x06,0x24,
-0xFF,0x00,0x24,0x31,
-0xDD,0x01,0x86,0x10,
-0x25,0xB0,0x02,0x3C,
-0x00,0x80,0x22,0x31,
-0x33,0x01,0x40,0x10,
-0x00,0xFF,0x02,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x00,0x62,0xAC,
-0xFF,0x00,0x02,0x24,
-0x25,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x4C,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x9C,0x36,0x09,0xA2,
-0xE0,0x36,0x03,0xAE,
-0x05,0x00,0x04,0x24,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0x02,0x80,0x0A,0x3C,
-0xCC,0x5E,0x47,0x91,
-0x02,0x80,0x09,0x3C,
-0xBC,0x5E,0x25,0x8D,
-0xD0,0x1B,0x06,0x8E,
-0x18,0x00,0x02,0x3C,
-0x08,0x00,0xE7,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x02,0xA5,0x34,
-0x25,0xB0,0x03,0x3C,
-0x10,0x00,0x02,0x3C,
-0x00,0x26,0x07,0x00,
-0x26,0xA0,0x82,0x02,
-0xB0,0x03,0x68,0x34,
-0x25,0x20,0x85,0x00,
-0x80,0x03,0x63,0x34,
-0x41,0xB0,0x02,0x3C,
-0x00,0x00,0x64,0xAC,
-0x00,0x00,0x46,0xAC,
-0xBC,0x5E,0x25,0xAD,
-0xCC,0x5E,0x47,0xA1,
-0xD0,0x1B,0x06,0xAE,
-0x00,0x00,0x14,0xAD,
-0x30,0x1F,0x62,0x26,
-0xD4,0x1B,0x43,0x8C,
-0x08,0x00,0x04,0x3C,
-0x26,0x18,0x64,0x00,
-0x9E,0x35,0x00,0x08,
-0xD4,0x1B,0x43,0xAC,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xD4,0x1B,0x02,0x8E,
-0xD0,0x1B,0x03,0x8E,
-0x00,0x20,0x42,0x38,
-0x7D,0x35,0x00,0x08,
-0xD4,0x1B,0x02,0xAE,
-0x8C,0x33,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x2A,0xB0,0x02,0x3C,
-0x08,0x00,0x43,0x34,
-0x00,0x00,0x69,0x8C,
-0xFF,0x00,0x02,0x24,
-0xFF,0x00,0x24,0x31,
-0x2C,0x00,0x82,0x10,
-0x00,0x80,0x22,0x31,
-0x34,0x01,0x40,0x14,
-0x00,0x80,0x02,0x3C,
-0x00,0xFF,0x02,0x3C,
-0x24,0x10,0x22,0x01,
-0x0B,0x00,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0xB4,0x36,0x02,0x92,
-0x20,0xB0,0x03,0x3C,
-0x00,0x12,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x0C,0x00,0x49,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xB0,0x03,0x63,0x34,
-0x00,0x00,0x69,0xAC,
-0xFF,0x00,0x24,0x31,
-0xFF,0x00,0x02,0x24,
-0x1A,0x00,0x82,0x10,
-0x30,0x1F,0x70,0x26,
-0xFF,0x00,0x23,0x31,
-0x7C,0x37,0x05,0x8E,
-0x20,0x10,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x21,0x30,0x60,0x00,
-0x10,0x37,0x03,0xAE,
-0x01,0x00,0x04,0x24,
-0xB4,0x36,0x09,0xA2,
-0x80,0x00,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA0,0xAF,
-0xD0,0x1B,0x05,0x8E,
-0x02,0x80,0x06,0x3C,
-0xBC,0x5E,0xC4,0x8C,
-0xFF,0xC7,0x02,0x24,
-0x24,0x28,0xA2,0x00,
-0x25,0xB0,0x02,0x3C,
-0x10,0x00,0x84,0x34,
-0x80,0x03,0x42,0x34,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x65,0xAC,
-0xBC,0x5E,0xC4,0xAC,
-0xD0,0x1B,0x05,0xAE,
-0x30,0x1F,0x63,0x26,
-0xD4,0x1B,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x10,0x42,0x38,
-0x76,0x35,0x00,0x08,
-0xD4,0x1B,0x62,0xAC,
-0x56,0x01,0x02,0x35,
-0x00,0x00,0x43,0x94,
-0x00,0x00,0x00,0x00,
-0x70,0xFC,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x93,0x55,0x00,0x0C,
-0x07,0x00,0x04,0x24,
-0x29,0x35,0x00,0x08,
-0x30,0x1F,0x64,0x26,
-0x00,0x00,0x62,0xAC,
-0xD3,0x35,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0xF8,0x1D,0x24,0x96,
-0x64,0x37,0x25,0x8E,
-0xFF,0x0F,0x83,0x30,
-0x25,0x28,0xA2,0x00,
-0x00,0x19,0x03,0x00,
-0x20,0x00,0xA6,0x24,
-0x02,0x12,0x03,0x00,
-0x01,0x00,0x84,0x24,
-0xF8,0x1D,0x24,0xA6,
-0x17,0x00,0xC2,0xA0,
-0x16,0x00,0xC3,0xA0,
-0x0C,0x00,0xA4,0x8C,
-0x00,0xF0,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xFF,0x0F,0x63,0x30,
-0x00,0x1C,0x03,0x00,
-0x24,0x20,0x82,0x00,
-0x25,0x20,0x83,0x00,
-0x0C,0x00,0xA4,0xAC,
-0x64,0x37,0x25,0x8E,
-0x01,0x00,0x10,0x24,
-0x01,0x00,0x04,0x24,
-0x31,0x10,0x06,0x3C,
-0x00,0x01,0x07,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x2A,0xB0,0x02,0x3C,
-0x01,0x00,0x42,0x34,
-0x02,0x00,0x03,0x24,
-0x00,0x00,0x50,0xA0,
-0x00,0x00,0x43,0xA0,
-0xD4,0x1B,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x42,0x38,
-0x68,0x35,0x00,0x08,
-0xD4,0x1B,0x22,0xAE,
-0xD0,0x03,0x23,0x35,
-0x80,0x00,0x02,0x24,
-0x00,0x00,0x62,0xAC,
-0x24,0x36,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x25,0xB0,0x02,0x3C,
-0x01,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0xF0,0x35,0x00,0x08,
-0x30,0x1F,0x65,0x26,
-0x24,0x10,0x22,0x01,
-0xA9,0xFD,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x47,0x00,0xC6,0x34,
-0x00,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x85,0x10,
-0x30,0x1F,0x62,0x26,
-0xA4,0x36,0x04,0xA2,
-0x00,0x00,0xC2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x07,0x00,0x83,0x10,
-0x21,0x38,0x00,0x02,
-0x21,0x28,0xC0,0x00,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0xA4,0x36,0xE3,0xA0,
-0x30,0x1F,0x62,0x26,
-0xA4,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0x9C,0x36,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0xFD,0xFD,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x45,0x00,0xE5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0xA8,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0xA8,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0xA8,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0x11,0x37,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0x9E,0xFD,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x46,0x00,0xA5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0xA0,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0xA0,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0xA0,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0xD3,0x36,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x00,0xFF,0x02,0x3C,
-0x24,0x10,0x22,0x01,
-0x30,0xFE,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x41,0x00,0xA5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0x90,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0x90,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0x90,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0x87,0x37,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0xCF,0xFE,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x44,0x00,0xA5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0x9C,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0x9C,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0x9C,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0x47,0x38,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0xAE,0xFD,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x40,0x00,0xA5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0x8C,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0x8C,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0x8C,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0x47,0x37,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x00,0x00,0x62,0xAC,
-0x93,0x38,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0x08,0xFE,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x42,0x00,0xA5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0x94,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0x94,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0x94,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0xC5,0x37,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x24,0x10,0x22,0x01,
-0x2C,0xFE,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x43,0x00,0xE5,0x34,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x0E,0x00,0x86,0x10,
-0x30,0x1F,0x62,0x26,
-0x98,0x36,0x04,0xA2,
-0x00,0x00,0xA2,0x90,
-0xFF,0x00,0x83,0x30,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0x83,0x10,
-0x30,0x1F,0x62,0x26,
-0x21,0x30,0x00,0x02,
-0x00,0x00,0xA2,0x90,
-0x21,0x18,0x80,0x00,
-0xFD,0xFF,0x62,0x14,
-0xFF,0x00,0x44,0x30,
-0x98,0x36,0xC3,0xA0,
-0x30,0x1F,0x62,0x26,
-0x98,0x36,0x43,0x90,
-0x20,0xB0,0x02,0x3C,
-0x00,0x1A,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x0C,0x00,0x69,0x8C,
-0x25,0xB0,0x02,0x3C,
-0xB0,0x03,0x42,0x34,
-0xFF,0x00,0x24,0x31,
-0x00,0x00,0x49,0xAC,
-0x0A,0x38,0x00,0x08,
-0xFF,0x00,0x02,0x24,
-0x06,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0xAB,0x37,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x01,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0xBF,0x36,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x25,0xB0,0x02,0x3C,
-0x07,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x30,0x1F,0x63,0x26,
-0xD4,0x1B,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x80,0x42,0x38,
-0x71,0x37,0x00,0x08,
-0xD4,0x1B,0x62,0xAC,
-0x00,0x00,0x40,0xAC,
-0x34,0x37,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x02,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0xFA,0x36,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x90,0x03,0x63,0x34,
-0x00,0x00,0x62,0xAC,
-0x2D,0x38,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x03,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x6E,0x38,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0x05,0x00,0x03,0x24,
-0x90,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0xEC,0x37,0x00,0x08,
-0x30,0x1F,0x62,0x26,
-0xE0,0xFF,0xBD,0x27,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x25,0xB0,0x0C,0x3C,
-0x01,0x80,0x02,0x3C,
-0x18,0x03,0x83,0x35,
-0x9C,0xE8,0x42,0x24,
-0x02,0x80,0x12,0x3C,
-0x41,0xB0,0x0B,0x3C,
-0x00,0x00,0x62,0xAC,
-0x30,0x1F,0x4A,0x26,
-0x0A,0x00,0x62,0x35,
-0x00,0x00,0x44,0x94,
-0xDE,0x1B,0x43,0x95,
-0xDC,0x1B,0x49,0x95,
-0x25,0x30,0x64,0x00,
-0xFF,0xFF,0xD0,0x30,
-0x24,0x10,0x09,0x02,
-0x02,0x00,0x42,0x30,
-0xC2,0x00,0x40,0x10,
-0xC0,0x03,0x83,0x35,
-0x02,0x00,0x02,0x24,
-0x00,0x00,0x62,0xAC,
-0x02,0x80,0x08,0x3C,
-0xBC,0x5E,0x04,0x8D,
-0xDC,0x02,0x82,0x35,
-0x00,0x00,0x47,0x90,
-0xFD,0xFF,0x03,0x24,
-0x00,0x80,0x02,0x3C,
-0x24,0x18,0x23,0x01,
-0x25,0x20,0x82,0x00,
-0x02,0x00,0xC6,0x38,
-0x08,0x00,0x65,0x35,
-0x02,0x80,0x02,0x3C,
-0xF5,0x5E,0x47,0xA0,
-0xBC,0x5E,0x04,0xAD,
-0xDE,0x1B,0x46,0xA5,
-0x21,0x48,0x60,0x00,
-0x00,0x00,0xA3,0xA4,
-0xDC,0x1B,0x43,0xA5,
-0x24,0x38,0x09,0x02,
-0x04,0x00,0xE2,0x30,
-0x0A,0x00,0x40,0x10,
-0x08,0x00,0xE2,0x30,
-0xDE,0x1B,0x43,0x95,
-0x0C,0x00,0x64,0x35,
-0xC0,0x03,0x85,0x35,
-0x04,0x00,0x63,0x38,
-0x04,0x00,0x02,0x24,
-0x00,0x00,0x86,0x8C,
-0x00,0x00,0xA2,0xAC,
-0xDE,0x1B,0x43,0xA5,
-0x08,0x00,0xE2,0x30,
-0x08,0x00,0x40,0x10,
-0x10,0x00,0xE2,0x30,
-0xDE,0x1B,0x42,0x95,
-0xC0,0x03,0x84,0x35,
-0x08,0x00,0x03,0x24,
-0x08,0x00,0x42,0x38,
-0x00,0x00,0x83,0xAC,
-0xDE,0x1B,0x42,0xA5,
-0x10,0x00,0xE2,0x30,
-0x08,0x00,0x40,0x10,
-0x20,0x00,0xE2,0x30,
-0xDE,0x1B,0x42,0x95,
-0xC0,0x03,0x84,0x35,
-0x10,0x00,0x03,0x24,
-0x10,0x00,0x42,0x38,
-0x00,0x00,0x83,0xAC,
-0xDE,0x1B,0x42,0xA5,
-0x20,0x00,0xE2,0x30,
-0x08,0x00,0x40,0x10,
-0x80,0x00,0xE2,0x30,
-0xDE,0x1B,0x42,0x95,
-0xC0,0x03,0x84,0x35,
-0x20,0x00,0x03,0x24,
-0x20,0x00,0x42,0x38,
-0x00,0x00,0x83,0xAC,
-0xDE,0x1B,0x42,0xA5,
-0x80,0x00,0xE2,0x30,
-0x74,0x00,0x40,0x10,
-0x30,0x1F,0x47,0x26,
-0xC0,0x03,0x83,0x35,
-0x80,0x00,0x02,0x24,
-0x42,0xB0,0x0B,0x3C,
-0x00,0x00,0x62,0xAC,
-0x03,0x00,0x71,0x35,
-0xDE,0x1B,0x42,0x95,
-0x00,0x00,0x23,0x92,
-0x80,0x00,0x42,0x38,
-0x20,0x00,0x63,0x30,
-0x59,0x00,0x60,0x10,
-0xDE,0x1B,0x42,0xA5,
-0x20,0x00,0x02,0x24,
-0x00,0x00,0x22,0xA2,
-0x02,0x80,0x03,0x3C,
-0x16,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x75,0x00,0x40,0x14,
-0x21,0x40,0x00,0x00,
-0xB0,0x1B,0x42,0x95,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x4E,0x00,0x40,0x10,
-0x02,0x80,0x06,0x3C,
-0x02,0x80,0x07,0x3C,
-0xF4,0x5E,0xE2,0x90,
-0x00,0x00,0x00,0x00,
-0x49,0x00,0x40,0x10,
-0x02,0x80,0x09,0x3C,
-0x02,0x80,0x04,0x3C,
-0x00,0x5F,0x82,0x8C,
-0x20,0x5F,0x24,0x8D,
-0x24,0x5F,0x25,0x8D,
-0x21,0x18,0x00,0x00,
-0x21,0x10,0x44,0x00,
-0x2B,0x30,0x44,0x00,
-0x21,0x18,0x65,0x00,
-0x21,0x18,0x66,0x00,
-0x20,0x5F,0x22,0xAD,
-0x24,0x5F,0x23,0xAD,
-0xF4,0x5E,0xE4,0x90,
-0x02,0x00,0x02,0x24,
-0xFF,0x00,0x84,0x30,
-0x07,0x00,0x82,0x10,
-0x02,0x80,0x04,0x3C,
-0xF4,0x5E,0xE2,0x90,
-0x03,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0x5A,0x00,0x43,0x14,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x04,0x3C,
-0x11,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x42,0x24,
-0x11,0x5F,0x82,0xA0,
-0x11,0x5F,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0xFA,0x5E,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x5B,0x00,0x00,0x11,
-0x80,0x00,0x86,0x35,
-0x11,0x5F,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x40,0x14,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x02,0x3C,
-0x10,0x5F,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x11,0x5F,0x83,0xA0,
-0x02,0x80,0x05,0x3C,
-0x0E,0x5F,0xA2,0x90,
-0x02,0x80,0x03,0x3C,
-0x02,0x00,0x04,0x24,
-0x10,0x00,0x42,0x34,
-0x0E,0x5F,0xA2,0xA0,
-0xF9,0x5E,0x62,0x90,
-0x21,0x28,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x80,0x30,0x02,0x00,
-0x21,0x30,0xC2,0x00,
-0x8C,0x23,0x00,0x0C,
-0x00,0x33,0x06,0x00,
-0x42,0xB0,0x02,0x3C,
-0x44,0x00,0x04,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x44,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x05,0x00,0x40,0x10,
-0x02,0x80,0x06,0x3C,
-0x04,0x00,0x04,0x24,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x02,0x80,0x06,0x3C,
-0xBC,0x5E,0xC4,0x8C,
-0x30,0x1F,0x47,0x26,
-0xDC,0x1B,0xE5,0x94,
-0x08,0x00,0x02,0x3C,
-0x25,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x7F,0xFF,0xA5,0x30,
-0xB0,0x03,0x42,0x34,
-0x08,0x00,0x63,0x34,
-0x00,0x00,0x44,0xAC,
-0x00,0x00,0x65,0xA4,
-0xBC,0x5E,0xC4,0xAC,
-0xDC,0x1B,0xE5,0xA4,
-0x30,0x1F,0x47,0x26,
-0xDC,0x1B,0xE2,0x94,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x50,0x00,
-0x00,0x30,0x42,0x30,
-0x06,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xDE,0x1B,0xE2,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x10,0x42,0x38,
-0x00,0x20,0x42,0x34,
-0xDE,0x1B,0xE2,0xA4,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x51,0x3A,0x00,0x08,
-0xDE,0x1B,0x46,0xA5,
-0x01,0x00,0x08,0x24,
-0x16,0x5F,0x60,0xA0,
-0x8D,0x3A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x0E,0x5F,0xA2,0x90,
-0x02,0x80,0x03,0x3C,
-0x02,0x00,0x04,0x24,
-0x10,0x00,0x42,0x34,
-0x0E,0x5F,0xA2,0xA0,
-0xF9,0x5E,0x62,0x90,
-0x21,0x28,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x80,0x30,0x02,0x00,
-0x21,0x30,0xC2,0x00,
-0x8C,0x23,0x00,0x0C,
-0x00,0x33,0x06,0x00,
-0x44,0x00,0x02,0x24,
-0x00,0x00,0x22,0xA2,
-0xD5,0x3A,0x00,0x08,
-0x02,0x80,0x03,0x3C,
-0x84,0x00,0x84,0x35,
-0x00,0x00,0x82,0x8C,
-0x02,0x80,0x08,0x3C,
-0x00,0x00,0xC4,0x8C,
-0x1C,0x5F,0x06,0x8D,
-0x21,0x10,0x00,0x00,
-0x20,0x5F,0x28,0x8D,
-0x24,0x5F,0x29,0x8D,
-0x00,0x00,0x65,0x91,
-0x25,0x10,0x44,0x00,
-0x21,0x10,0x46,0x00,
-0xFB,0xFF,0x04,0x24,
-0x24,0x28,0xA4,0x00,
-0x23,0x40,0x02,0x01,
-0x00,0x00,0x65,0xA1,
-0x04,0x00,0x00,0x11,
-0x01,0x00,0x06,0x24,
-0x80,0x10,0x08,0x00,
-0x21,0x10,0x48,0x00,
-0x80,0x30,0x02,0x00,
-0x01,0x00,0x04,0x24,
-0x8C,0x23,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x42,0xB0,0x02,0x3C,
-0x22,0x00,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0xDF,0x3A,0x00,0x08,
-0x02,0x80,0x06,0x3C,
-0xF0,0xFF,0xBD,0x27,
-0x08,0x00,0xB2,0xAF,
-0x04,0x00,0xB1,0xAF,
-0x00,0x00,0xB0,0xAF,
-0x00,0x40,0x09,0x40,
-0x00,0x68,0x0A,0x40,
-0x00,0x70,0x02,0x40,
-0x00,0x60,0x0B,0x40,
-0x25,0xB0,0x05,0x3C,
-0x18,0x03,0xA7,0x34,
-0x00,0x00,0xE6,0x8C,
-0x01,0x80,0x02,0x3C,
-0x1C,0x03,0xA3,0x34,
-0xC8,0xEC,0x42,0x24,
-0x00,0x00,0x66,0xAC,
-0x00,0x00,0xE2,0xAC,
-0x80,0x00,0x83,0x8C,
-0x7C,0x02,0xA2,0x34,
-0x80,0x02,0xA6,0x34,
-0x84,0x02,0xA7,0x34,
-0x88,0x02,0xA8,0x34,
-0x00,0x00,0x43,0xAC,
-0x00,0x00,0xC9,0xAC,
-0x00,0x00,0xEA,0xAC,
-0x00,0x00,0x0B,0xAD,
-0x74,0x00,0x83,0x8C,
-0x8C,0x02,0xA2,0x34,
-0x90,0x02,0xA7,0x34,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0x86,0x8C,
-0x94,0x02,0xA8,0x34,
-0x98,0x02,0xA9,0x34,
-0x00,0x00,0xE6,0xAC,
-0x0C,0x00,0x82,0x8C,
-0x9C,0x02,0xA6,0x34,
-0xA0,0x02,0xA7,0x34,
-0x00,0x00,0x02,0xAD,
-0x10,0x00,0x83,0x8C,
-0xA4,0x02,0xA8,0x34,
-0xA8,0x02,0xAA,0x34,
-0x00,0x00,0x23,0xAD,
-0x14,0x00,0x82,0x8C,
-0xAC,0x02,0xA9,0x34,
-0xB0,0x02,0xAB,0x34,
-0x00,0x00,0xC2,0xAC,
-0x18,0x00,0x83,0x8C,
-0xB4,0x02,0xAC,0x34,
-0xB8,0x02,0xAD,0x34,
-0x00,0x00,0xE3,0xAC,
-0x1C,0x00,0x82,0x8C,
-0xBC,0x02,0xA7,0x34,
-0xC0,0x02,0xAE,0x34,
-0x00,0x00,0x02,0xAD,
-0x20,0x00,0x83,0x8C,
-0xC4,0x02,0xA8,0x34,
-0xC8,0x02,0xAF,0x34,
-0x00,0x00,0x43,0xAD,
-0x24,0x00,0x82,0x8C,
-0xCC,0x02,0xAA,0x34,
-0xD0,0x02,0xB0,0x34,
-0x00,0x00,0x22,0xAD,
-0x28,0x00,0x83,0x8C,
-0xD4,0x02,0xA9,0x34,
-0xD8,0x02,0xB1,0x34,
-0x00,0x00,0x63,0xAD,
-0x2C,0x00,0x86,0x8C,
-0x70,0x02,0xAB,0x34,
-0x74,0x02,0xB2,0x34,
-0x00,0x00,0x86,0xAD,
-0x30,0x00,0x82,0x8C,
-0x78,0x02,0xA6,0x34,
-0x6C,0x03,0xAC,0x34,
-0x00,0x00,0xA2,0xAD,
-0x34,0x00,0x83,0x8C,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0xE3,0xAC,
-0x38,0x00,0x85,0x8C,
-0x28,0xC7,0x47,0x8C,
-0x00,0x00,0xC5,0xAD,
-0x3C,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x02,0xAD,
-0x40,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xE3,0xAD,
-0x44,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x42,0xAD,
-0x48,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x03,0xAE,
-0x4C,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x22,0xAD,
-0x50,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x23,0xAE,
-0x54,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x62,0xAD,
-0x58,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x43,0xAE,
-0x5C,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC2,0xAC,
-0x21,0x10,0xE0,0x00,
-0x00,0x00,0x82,0xAD,
-0x01,0x00,0xE7,0x24,
-0x21,0x10,0xE0,0x00,
-0x01,0x00,0xE7,0x24,
-0x00,0x00,0x82,0xAD,
-0x9D,0x3B,0x00,0x08,
-0x21,0x10,0xE0,0x00,
-0x01,0x80,0x1B,0x3C,
-0x90,0xEE,0x7B,0x27,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x27,
-0x00,0x00,0x5B,0xAF,
-0x21,0xD8,0xA0,0x03,
-0x82,0xDA,0x1B,0x00,
-0x80,0xDA,0x1B,0x00,
-0x08,0x00,0x7B,0x27,
-0x04,0x00,0x61,0xAF,
-0x08,0x00,0x62,0xAF,
-0x0C,0x00,0x63,0xAF,
-0x10,0x00,0x64,0xAF,
-0x14,0x00,0x65,0xAF,
-0x18,0x00,0x66,0xAF,
-0x1C,0x00,0x67,0xAF,
-0x20,0x00,0x68,0xAF,
-0x24,0x00,0x69,0xAF,
-0x28,0x00,0x6A,0xAF,
-0x2C,0x00,0x6B,0xAF,
-0x30,0x00,0x6C,0xAF,
-0x34,0x00,0x6D,0xAF,
-0x38,0x00,0x6E,0xAF,
-0x3C,0x00,0x6F,0xAF,
-0x12,0x40,0x00,0x00,
-0x10,0x48,0x00,0x00,
-0x00,0x70,0x0A,0x40,
-0x40,0x00,0x70,0xAF,
-0x44,0x00,0x71,0xAF,
-0x48,0x00,0x72,0xAF,
-0x4C,0x00,0x73,0xAF,
-0x50,0x00,0x74,0xAF,
-0x54,0x00,0x75,0xAF,
-0x58,0x00,0x76,0xAF,
-0x5C,0x00,0x77,0xAF,
-0x60,0x00,0x78,0xAF,
-0x64,0x00,0x79,0xAF,
-0x68,0x00,0x7C,0xAF,
-0x6C,0x00,0x7D,0xAF,
-0x70,0x00,0x7E,0xAF,
-0x74,0x00,0x7F,0xAF,
-0x78,0x00,0x68,0xAF,
-0x7C,0x00,0x69,0xAF,
-0x80,0x00,0x6A,0xAF,
-0x00,0x68,0x1A,0x40,
-0x25,0xB0,0x1B,0x3C,
-0x1C,0x03,0x7B,0x37,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x7A,0xAF,
-0x7F,0x00,0x5B,0x33,
-0x30,0x00,0x60,0x13,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x1B,0x3C,
-0x30,0x03,0x7B,0x37,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x7A,0xAF,
-0x00,0x00,0x00,0x00,
-0x21,0xD8,0xA0,0x03,
-0x82,0xDA,0x1B,0x00,
-0x80,0xDA,0x1B,0x00,
-0x08,0x00,0x7B,0x27,
-0x04,0x00,0x61,0xAF,
-0x08,0x00,0x62,0xAF,
-0x0C,0x00,0x63,0xAF,
-0x10,0x00,0x64,0xAF,
-0x14,0x00,0x65,0xAF,
-0x18,0x00,0x66,0xAF,
-0x1C,0x00,0x67,0xAF,
-0x20,0x00,0x68,0xAF,
-0x24,0x00,0x69,0xAF,
-0x28,0x00,0x6A,0xAF,
-0x2C,0x00,0x6B,0xAF,
-0x30,0x00,0x6C,0xAF,
-0x34,0x00,0x6D,0xAF,
-0x38,0x00,0x6E,0xAF,
-0x3C,0x00,0x6F,0xAF,
-0x12,0x40,0x00,0x00,
-0x10,0x48,0x00,0x00,
-0x00,0x70,0x0A,0x40,
-0x40,0x00,0x70,0xAF,
-0x44,0x00,0x71,0xAF,
-0x48,0x00,0x72,0xAF,
-0x4C,0x00,0x73,0xAF,
-0x50,0x00,0x74,0xAF,
-0x54,0x00,0x75,0xAF,
-0x58,0x00,0x76,0xAF,
-0x5C,0x00,0x77,0xAF,
-0x60,0x00,0x78,0xAF,
-0x64,0x00,0x79,0xAF,
-0x68,0x00,0x7C,0xAF,
-0x6C,0x00,0x7D,0xAF,
-0x70,0x00,0x7E,0xAF,
-0x74,0x00,0x7F,0xAF,
-0x78,0x00,0x68,0xAF,
-0x7C,0x00,0x69,0xAF,
-0x80,0x00,0x6A,0xAF,
-0x32,0x3B,0x00,0x08,
-0x21,0x20,0x60,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x08,0x3C,
-0x20,0x03,0x08,0x35,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x1A,0xAD,
-0x00,0x04,0x5B,0x33,
-0x0A,0x00,0x60,0x13,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x08,0x3C,
-0x3C,0xD4,0x08,0x25,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x1B,0x3C,
-0x24,0x03,0x7B,0x37,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x68,0xAF,
-0x09,0xF8,0x00,0x01,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x5B,0x33,
-0x25,0xB0,0x08,0x3C,
-0x28,0x03,0x08,0x35,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x1B,0xAD,
-0x06,0x00,0x60,0x13,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x08,0x3C,
-0x9C,0xE8,0x08,0x25,
-0x00,0x00,0x00,0x00,
-0x09,0xF8,0x00,0x01,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x1A,0x3C,
-0xBC,0x5E,0x5A,0x27,
-0x04,0x00,0x5B,0x97,
-0x25,0xB0,0x08,0x3C,
-0x30,0x03,0x08,0x35,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x1B,0xAD,
-0x18,0x00,0x60,0x13,
-0x00,0x00,0x00,0x00,
-0x08,0xE4,0x9B,0x27,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x61,0x8F,
-0xFC,0x03,0x70,0x7B,
-0x7C,0x00,0x62,0x7B,
-0xBC,0x00,0x64,0x7B,
-0xFC,0x00,0x66,0x7B,
-0x3C,0x01,0x68,0x7B,
-0x13,0x00,0x00,0x02,
-0x11,0x00,0x20,0x02,
-0x7C,0x01,0x6A,0x7B,
-0xBC,0x01,0x6C,0x7B,
-0xFC,0x01,0x6E,0x7B,
-0x3C,0x02,0x70,0x7B,
-0x7C,0x02,0x72,0x7B,
-0xBC,0x02,0x74,0x7B,
-0xFC,0x02,0x76,0x7B,
-0x3C,0x03,0x78,0x7B,
-0x7C,0x03,0x7C,0x7B,
-0xBC,0x03,0x7E,0x7B,
-0x80,0x00,0x7B,0x8F,
-0x8F,0x3C,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0xD8,0xA0,0x03,
-0x82,0xDA,0x1B,0x00,
-0x80,0xDA,0x1B,0x00,
-0x08,0x00,0x7B,0x27,
-0x08,0x00,0x5B,0xAF,
-0xFC,0xE7,0x9D,0x27,
-0x00,0x00,0x4A,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0x00,0x40,0x11,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x08,0x3C,
-0x1C,0x5E,0x08,0x25,
-0x21,0x48,0x00,0x00,
-0x21,0x58,0x00,0x00,
-0x01,0x00,0x6B,0x25,
-0x1A,0x00,0x40,0x11,
-0x24,0x70,0x4B,0x01,
-0x14,0x00,0xC0,0x11,
-0x01,0x00,0x04,0x24,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x44,0xA3,
-0x26,0x50,0x4B,0x01,
-0x00,0x00,0x4A,0xAF,
-0x80,0x80,0x09,0x00,
-0x21,0x80,0x08,0x02,
-0x00,0x00,0x10,0x8E,
-0x00,0x00,0x00,0x00,
-0x09,0xF8,0x00,0x02,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x1B,0x3C,
-0x68,0xF1,0x7B,0x27,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x27,
-0x00,0x00,0x5B,0xAF,
-0x02,0x80,0x1A,0x3C,
-0xBC,0x5E,0x5A,0x27,
-0xE1,0xFF,0x00,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x29,0x25,
-0x40,0x58,0x0B,0x00,
-0x52,0x3C,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x1B,0x3C,
-0xBC,0x5E,0x7B,0x27,
-0x21,0x60,0x00,0x00,
-0x04,0x00,0x6C,0xA7,
-0x08,0x00,0x7A,0x8F,
-0x00,0x00,0x00,0x00,
-0xF8,0xFF,0x5A,0x27,
-0x00,0x00,0x5A,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x5A,0x27,
-0x84,0x00,0x44,0x8F,
-0x00,0x00,0x00,0x00,
-0xF9,0xFF,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x41,0x8F,
-0xFC,0x03,0x50,0x7B,
-0x7C,0x00,0x42,0x7B,
-0xBC,0x00,0x44,0x7B,
-0xFC,0x00,0x46,0x7B,
-0x3C,0x01,0x48,0x7B,
-0x13,0x00,0x00,0x02,
-0x11,0x00,0x20,0x02,
-0x7C,0x01,0x4A,0x7B,
-0xBC,0x01,0x4C,0x7B,
-0xFC,0x01,0x4E,0x7B,
-0x3C,0x02,0x50,0x7B,
-0x7C,0x02,0x52,0x7B,
-0xBC,0x02,0x54,0x7B,
-0xFC,0x02,0x56,0x7B,
-0x3C,0x03,0x58,0x7B,
-0x7C,0x03,0x5C,0x7B,
-0xBC,0x03,0x5E,0x7B,
-0x80,0x00,0x5B,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x60,0x03,
-0x10,0x00,0x00,0x42,
-0x00,0x60,0x05,0x40,
-0x42,0x28,0x05,0x00,
-0x40,0x28,0x05,0x00,
-0x00,0x60,0x85,0x40,
-0x04,0x00,0x81,0xAC,
-0x08,0x00,0x82,0xAC,
-0x0C,0x00,0x83,0xAC,
-0x20,0x00,0x88,0xAC,
-0x24,0x00,0x89,0xAC,
-0x28,0x00,0x8A,0xAC,
-0x2C,0x00,0x8B,0xAC,
-0x30,0x00,0x8C,0xAC,
-0x34,0x00,0x8D,0xAC,
-0x38,0x00,0x8E,0xAC,
-0x3C,0x00,0x8F,0xAC,
-0x12,0x40,0x00,0x00,
-0x10,0x48,0x00,0x00,
-0x40,0x00,0x90,0xAC,
-0x44,0x00,0x91,0xAC,
-0x48,0x00,0x92,0xAC,
-0x4C,0x00,0x93,0xAC,
-0x50,0x00,0x94,0xAC,
-0x54,0x00,0x95,0xAC,
-0x58,0x00,0x96,0xAC,
-0x5C,0x00,0x97,0xAC,
-0x60,0x00,0x98,0xAC,
-0x64,0x00,0x99,0xAC,
-0x68,0x00,0x9C,0xAC,
-0x6C,0x00,0x9D,0xAC,
-0x70,0x00,0x9E,0xAC,
-0x74,0x00,0x9F,0xAC,
-0x78,0x00,0x88,0xAC,
-0x7C,0x00,0x89,0xAC,
-0x80,0x00,0x9F,0xAC,
-0xF8,0xFF,0x84,0x24,
-0x00,0x00,0x84,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x84,0x24,
-0x84,0x00,0x86,0x8C,
-0x00,0x00,0x00,0x00,
-0xF9,0xFF,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0xD8,0x80,0x00,
-0x01,0x00,0xBA,0x34,
-0x04,0x00,0x61,0x8F,
-0xFC,0x03,0x70,0x7B,
-0x7C,0x00,0x62,0x7B,
-0xBC,0x00,0x64,0x7B,
-0xFC,0x00,0x66,0x7B,
-0x3C,0x01,0x68,0x7B,
-0x13,0x00,0x00,0x02,
-0x11,0x00,0x20,0x02,
-0x7C,0x01,0x6A,0x7B,
-0xBC,0x01,0x6C,0x7B,
-0xFC,0x01,0x6E,0x7B,
-0x3C,0x02,0x70,0x7B,
-0x7C,0x02,0x72,0x7B,
-0xBC,0x02,0x74,0x7B,
-0xFC,0x02,0x76,0x7B,
-0x3C,0x03,0x78,0x7B,
-0x7C,0x03,0x7C,0x7B,
-0xBC,0x03,0x7E,0x7B,
-0x80,0x00,0x7B,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x60,0x03,
-0x00,0x60,0x9A,0x40,
-0x00,0x60,0x05,0x40,
-0x42,0x28,0x05,0x00,
-0x40,0x28,0x05,0x00,
-0x00,0x60,0x85,0x40,
-0x04,0x00,0x81,0xAC,
-0x08,0x00,0x82,0xAC,
-0x0C,0x00,0x83,0xAC,
-0x20,0x00,0x88,0xAC,
-0x24,0x00,0x89,0xAC,
-0x28,0x00,0x8A,0xAC,
-0x2C,0x00,0x8B,0xAC,
-0x30,0x00,0x8C,0xAC,
-0x34,0x00,0x8D,0xAC,
-0x38,0x00,0x8E,0xAC,
-0x3C,0x00,0x8F,0xAC,
-0x12,0x40,0x00,0x00,
-0x10,0x48,0x00,0x00,
-0x40,0x00,0x90,0xAC,
-0x44,0x00,0x91,0xAC,
-0x48,0x00,0x92,0xAC,
-0x4C,0x00,0x93,0xAC,
-0x50,0x00,0x94,0xAC,
-0x54,0x00,0x94,0xAC,
-0x58,0x00,0x96,0xAC,
-0x5C,0x00,0x96,0xAC,
-0x60,0x00,0x98,0xAC,
-0x64,0x00,0x99,0xAC,
-0x68,0x00,0x9C,0xAC,
-0x6C,0x00,0x9D,0xAC,
-0x70,0x00,0x9E,0xAC,
-0x78,0x00,0x88,0xAC,
-0x7C,0x00,0x89,0xAC,
-0x80,0x00,0x9F,0xAC,
-0x84,0x00,0x80,0xAC,
-0xF8,0xFF,0x84,0x24,
-0x00,0x00,0x84,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x84,0x24,
-0x84,0x00,0x86,0x8C,
-0xFA,0xFF,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0xD8,0x80,0x00,
-0x01,0x00,0xBA,0x24,
-0x04,0x00,0x61,0x8F,
-0xFC,0x03,0x70,0x7B,
-0x7C,0x00,0x62,0x7B,
-0xBC,0x00,0x64,0x7B,
-0xFC,0x00,0x66,0x7B,
-0x3C,0x01,0x68,0x7B,
-0x13,0x00,0x00,0x02,
-0x11,0x00,0x20,0x02,
-0x7C,0x01,0x6A,0x7B,
-0xBC,0x01,0x6C,0x7B,
-0xFC,0x01,0x6E,0x7B,
-0x3C,0x02,0x70,0x7B,
-0x7C,0x02,0x72,0x7B,
-0xBC,0x02,0x74,0x7B,
-0xFC,0x02,0x76,0x7B,
-0x3C,0x03,0x78,0x7B,
-0x7C,0x03,0x7C,0x7B,
-0xBC,0x03,0x7E,0x7B,
-0x80,0x00,0x7B,0x8F,
-0x08,0x00,0x60,0x03,
-0x00,0x60,0x9A,0x40,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x83,0x4E,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x1B,0x3C,
-0x00,0x00,0x7B,0x27,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x27,
-0x00,0x00,0x5B,0xAF,
-0x00,0x00,0x05,0x24,
-0x03,0x00,0xA4,0x24,
-0x00,0xA0,0x80,0x40,
-0x00,0xA0,0x84,0x40,
-0x01,0x80,0x04,0x3C,
-0x40,0x00,0x84,0x24,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x1B,0x3C,
-0x40,0x00,0x7B,0x27,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x27,
-0x00,0x00,0x5B,0xAF,
-0x02,0x80,0x1A,0x3C,
-0x00,0x00,0x5A,0x27,
-0xFC,0x03,0x5D,0x27,
-0x02,0x80,0x1C,0x3C,
-0x00,0x1C,0x9C,0x27,
-0x00,0xF0,0x08,0x3C,
-0x00,0x0C,0x08,0x35,
-0x00,0x60,0x88,0x40,
-0x02,0x80,0x04,0x3C,
-0x00,0x00,0x84,0x24,
-0xFF,0x7F,0x05,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x24,0x20,0x85,0x00,
-0x00,0x20,0x84,0x4C,
-0xFF,0xFF,0x05,0x34,
-0x21,0x28,0xA4,0x00,
-0x00,0x28,0x85,0x4C,
-0x02,0x80,0x08,0x3C,
-0x00,0x00,0x08,0x25,
-0x00,0x00,0x00,0xAD,
-0x03,0x80,0x09,0x3C,
-0xFC,0xCC,0x29,0x25,
-0x04,0x00,0x08,0x25,
-0xFE,0xFF,0x09,0x15,
-0x00,0x00,0x00,0xAD,
-0x00,0x80,0x04,0x3C,
-0x00,0x00,0x84,0x24,
-0xFF,0x7F,0x05,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x24,0x20,0x85,0x00,
-0x00,0x00,0x84,0x4C,
-0xFF,0xFF,0x06,0x34,
-0x21,0x30,0xC4,0x00,
-0x24,0x30,0xC5,0x00,
-0x00,0x08,0x86,0x4C,
-0x00,0xA0,0x04,0x40,
-0x10,0x00,0x84,0x34,
-0x00,0xA0,0x84,0x40,
-0x01,0x80,0x1B,0x3C,
-0xEC,0x00,0x7B,0x27,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x27,
-0x00,0x00,0x5B,0xAF,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x04,0x3C,
-0x44,0x00,0x84,0x34,
-0x00,0x00,0x85,0x84,
-0x20,0x00,0x06,0x24,
-0x25,0x28,0xA6,0x00,
-0x00,0x00,0x85,0xA4,
-0x01,0x80,0x1B,0x3C,
-0x1C,0x01,0x7B,0x27,
-0x25,0xB0,0x1A,0x3C,
-0x18,0x03,0x5A,0x27,
-0x00,0x00,0x5B,0xAF,
-0x25,0xB0,0x04,0x3C,
-0x44,0x00,0x84,0x34,
-0x00,0x00,0x85,0x8C,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xA5,0x30,
-0xFC,0xFF,0xA0,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0x1F,0x07,0x3C,
-0xFF,0xFF,0xE7,0x34,
-0x02,0x80,0x05,0x3C,
-0xD8,0x5D,0xA5,0x24,
-0xFF,0xFF,0xA5,0x30,
-0x40,0xB0,0x04,0x3C,
-0x25,0x28,0xA4,0x00,
-0x24,0x28,0xA7,0x00,
-0x21,0x30,0x00,0x00,
-0x43,0xB0,0x02,0x3C,
-0x00,0x80,0x04,0x3C,
-0x40,0x00,0x84,0x34,
-0x00,0x00,0x45,0xAC,
-0x04,0x00,0x46,0xAC,
-0x08,0x00,0x44,0xAC,
-0xEA,0x65,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x09,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x41,0x04,
-0xFF,0xFF,0x42,0x24,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x42,0x24,
-0x00,0x60,0x02,0x40,
-0x01,0x00,0x41,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x82,0xAC,
-0x00,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x40,0x00,
-0x00,0x60,0x83,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x82,0xAC,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x00,0x60,0x81,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x0C,0x02,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x04,0x00,0x85,0x8C,
-0x00,0xA0,0x03,0x3C,
-0x01,0x00,0x02,0x24,
-0x25,0x28,0xA3,0x00,
-0x00,0x00,0xA4,0x8C,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x3C,0x02,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x04,0x00,0x82,0x8C,
-0x02,0x00,0x83,0x94,
-0x00,0xA0,0x07,0x3C,
-0x25,0x28,0x47,0x00,
-0x00,0x00,0xA2,0x8C,
-0x10,0x00,0x02,0x24,
-0x13,0x00,0x62,0x10,
-0x11,0x00,0x66,0x28,
-0x06,0x00,0xC0,0x10,
-0x20,0x00,0x02,0x24,
-0x08,0x00,0x02,0x24,
-0x17,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0xFD,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA3,0xAC,
-0x04,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x25,0x10,0x47,0x00,
-0x00,0x00,0x42,0x8C,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xA4,
-0x04,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x25,0x18,0x67,0x00,
-0x00,0x00,0x62,0x94,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xA0,
-0x04,0x00,0x83,0x8C,
-0x00,0x00,0x00,0x00,
-0x25,0x18,0x67,0x00,
-0x00,0x00,0x62,0x90,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x47,0x24,
-0x30,0x37,0xE3,0x90,
-0xFF,0xFF,0xA5,0x30,
-0x09,0x00,0xA3,0x10,
-0x21,0x20,0xC0,0x00,
-0xA0,0x37,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xC2,0xAC,
-0xAA,0x37,0xE3,0x94,
-0x0E,0x00,0x02,0x24,
-0x14,0x00,0xC2,0xAC,
-0x30,0x09,0x00,0x08,
-0x0C,0x00,0xC3,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x31,0x26,
-0x88,0x37,0x30,0x96,
-0x02,0x80,0x02,0x3C,
-0x01,0x80,0x03,0x3C,
-0x25,0x80,0x02,0x02,
-0x25,0xB0,0x02,0x3C,
-0x40,0x03,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x60,0x00,0x04,0x26,
-0x80,0x00,0x05,0x26,
-0x00,0x00,0x43,0xAC,
-0x5F,0x1E,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x21,0x20,0x00,0x02,
-0x21,0x28,0x00,0x00,
-0x08,0x52,0x00,0x0C,
-0x08,0x00,0x06,0x24,
-0x88,0x37,0x22,0x8E,
-0x0C,0x00,0x03,0x24,
-0x0C,0x00,0x43,0xAE,
-0x08,0x00,0x42,0xAE,
-0x12,0x00,0x02,0x24,
-0x14,0x00,0x42,0xAE,
-0x21,0x20,0x40,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x30,0x09,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x30,0x80,0x00,
-0x21,0x90,0x00,0x00,
-0x00,0x60,0x11,0x40,
-0x01,0x00,0x21,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0D,0x00,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x60,0x14,
-0x02,0x80,0x02,0x3C,
-0x01,0x00,0x03,0x24,
-0xF8,0x5E,0x43,0xA0,
-0x0C,0x00,0xC2,0x90,
-0x02,0x80,0x05,0x3C,
-0x0D,0x5F,0xA2,0xA0,
-0x00,0x00,0xC4,0x90,
-0x05,0x00,0x02,0x24,
-0xFF,0x00,0x83,0x30,
-0x41,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x02,0x24,
-0x31,0x00,0x62,0x10,
-0xFF,0x00,0x84,0x30,
-0x09,0x00,0x82,0x2C,
-0x25,0x00,0x40,0x10,
-0x02,0x80,0x10,0x3C,
-0xF4,0x5E,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x21,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0xB6,0x60,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF4,0x5E,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x34,0x00,0x40,0x10,
-0x02,0x80,0x03,0x3C,
-0xE0,0x3A,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x51,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x15,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x11,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x15,0x5F,0x62,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x04,0x00,0x42,0x28,
-0x06,0x00,0x40,0x10,
-0x04,0x00,0x04,0x24,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x40,0x41,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x12,0x24,
-0x00,0x60,0x91,0x40,
-0x21,0x10,0x40,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x0B,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x40,0x14,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x03,0x3C,
-0x01,0x00,0x02,0x24,
-0x10,0x5F,0x62,0xA0,
-0x10,0x5F,0x63,0x90,
-0x02,0x80,0x02,0x3C,
-0x11,0x5F,0x43,0xA0,
-0x00,0x00,0xC4,0x90,
-0x18,0x41,0x00,0x08,
-0xFF,0x00,0x84,0x30,
-0x0D,0x5F,0xA0,0xA0,
-0x00,0x00,0xC4,0x90,
-0x15,0x41,0x00,0x08,
-0xFF,0x00,0x83,0x30,
-0x42,0xB0,0x06,0x3C,
-0x00,0x00,0xC3,0x90,
-0xEF,0xFF,0x02,0x24,
-0x03,0x00,0xC7,0x34,
-0x24,0x18,0x62,0x00,
-0x40,0x00,0x02,0x24,
-0x00,0x00,0xC3,0xA0,
-0x0C,0x00,0x04,0x24,
-0x00,0x00,0xE2,0xA0,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x30,
-0x15,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x2A,0x1C,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0xCD,0xFF,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x50,0x39,0x44,0x94,
-0x2A,0x1C,0x40,0xA0,
-0x00,0xC0,0x84,0x24,
-0xC2,0x34,0x00,0x0C,
-0xFF,0xFF,0x84,0x30,
-0x40,0x41,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x15,0x5F,0x40,0xA0,
-0x40,0x41,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x9B,0x30,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x6B,0x41,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x30,0x26,
-0xB0,0x1B,0x07,0x96,
-0x18,0x00,0xBF,0xAF,
-0xFF,0xFF,0xE3,0x30,
-0x00,0x01,0x62,0x30,
-0x0E,0x00,0x40,0x10,
-0x01,0x00,0x66,0x30,
-0x02,0x80,0x04,0x3C,
-0x88,0x58,0x84,0x24,
-0x03,0x00,0x05,0x24,
-0x17,0x00,0xC0,0x14,
-0x04,0x00,0x62,0x30,
-0x02,0x00,0x40,0x10,
-0xFB,0xF6,0xE3,0x30,
-0xB0,0x1B,0x03,0xA6,
-0xA3,0x51,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x40,0xA0,
-0x21,0x20,0x00,0x00,
-0x12,0x0D,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x30,0x1F,0x23,0x26,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x20,0x00,0xBD,0x27,
-0x10,0x3E,0x60,0xAC,
-0xEC,0x38,0x60,0xAC,
-0x08,0x39,0x60,0xAC,
-0x08,0x00,0xE0,0x03,
-0x50,0x3E,0x60,0xAC,
-0x6C,0x4C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0xFE,0xFE,0x42,0x30,
-0xA3,0x51,0x00,0x0C,
-0xB0,0x1B,0x02,0xA6,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x40,0xA0,
-0x9D,0x41,0x00,0x08,
-0x21,0x20,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x01,0x00,0x83,0x90,
-0x02,0x80,0x02,0x3C,
-0x21,0x38,0x80,0x00,
-0xB0,0x5C,0x43,0xAC,
-0x01,0x00,0x84,0x90,
-0x00,0x00,0xE2,0x90,
-0x02,0x80,0x06,0x3C,
-0xFF,0x00,0x85,0x30,
-0x80,0x10,0x02,0x00,
-0x25,0x28,0xA2,0x00,
-0xE8,0xDD,0xC6,0x24,
-0xFF,0x00,0x84,0x30,
-0x00,0x80,0xA5,0x34,
-0x4E,0x23,0x00,0x0C,
-0x03,0x00,0xE7,0x24,
-0x10,0x00,0xBF,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x03,0x3C,
-0x1C,0x00,0xBF,0xAF,
-0xE0,0x3A,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x43,0x30,
-0x00,0x01,0x42,0x30,
-0x04,0x00,0x40,0x10,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x04,0x3C,
-0x06,0x00,0x60,0x14,
-0xE0,0xD7,0x84,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x07,0x92,
-0x07,0x00,0x02,0x26,
-0x21,0x20,0x00,0x02,
-0x80,0x38,0x07,0x00,
-0x00,0x80,0xE7,0x34,
-0x05,0x00,0x05,0x24,
-0x21,0x30,0x00,0x00,
-0x1E,0x51,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x30,0x1F,0x45,0x24,
-0x50,0x3E,0xA3,0x8C,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x60,0x14,
-0x21,0x80,0x80,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x4C,0x3E,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x45,0x00,
-0x44,0x3E,0x40,0xA0,
-0x00,0x00,0x84,0x8C,
-0x6D,0x1D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x06,0x8E,
-0x03,0x00,0x04,0x24,
-0x90,0x14,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x00,0x00,0x84,0x90,
-0x4F,0x0C,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x86,0x90,
-0x21,0x80,0x80,0x00,
-0x00,0x7F,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x08,0x0E,0x04,0x24,
-0x00,0x00,0x05,0x92,
-0x7F,0x7F,0x11,0x3C,
-0x00,0x0E,0x04,0x24,
-0x00,0x14,0x05,0x00,
-0x00,0x86,0x05,0x00,
-0x00,0x1A,0x05,0x00,
-0x25,0x80,0x02,0x02,
-0x25,0x80,0x03,0x02,
-0x25,0x80,0x05,0x02,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x7F,0x7F,0x25,0x36,
-0x7F,0x7F,0x25,0x36,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x04,0x0E,0x04,0x24,
-0x7F,0x7F,0x25,0x36,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x10,0x0E,0x04,0x24,
-0x7F,0x7F,0x25,0x36,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x14,0x0E,0x04,0x24,
-0x7F,0x7F,0x25,0x36,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x18,0x0E,0x04,0x24,
-0x7F,0x7F,0x25,0x36,
-0x21,0x30,0x00,0x02,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x1C,0x0E,0x04,0x24,
-0xA9,0x45,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x28,0x00,0xBF,0xAF,
-0x00,0x00,0x85,0x94,
-0x02,0x00,0x02,0x24,
-0x21,0x98,0x80,0x00,
-0x10,0x00,0xA0,0xA3,
-0x21,0x80,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x21,0x88,0x00,0x00,
-0x66,0x00,0xA2,0x10,
-0x10,0x00,0xB2,0x27,
-0x03,0x00,0xA2,0x28,
-0x26,0x00,0x40,0x14,
-0x01,0x00,0x02,0x24,
-0x03,0x00,0x02,0x24,
-0x75,0x00,0xA2,0x10,
-0x24,0x08,0x04,0x24,
-0x0C,0x09,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x04,0x08,0x04,0x24,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x05,0x24,
-0x02,0x00,0x64,0x96,
-0x02,0x00,0x02,0x24,
-0x35,0x00,0x82,0x10,
-0x03,0x00,0x82,0x28,
-0x4B,0x00,0x40,0x10,
-0x03,0x00,0x02,0x24,
-0x01,0x00,0x02,0x24,
-0x60,0x00,0x82,0x10,
-0x21,0x30,0x20,0x02,
-0x04,0x0C,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x05,0x24,
-0x21,0x30,0x20,0x02,
-0x04,0x0D,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x05,0x24,
-0x10,0x00,0xA6,0x93,
-0x04,0x0A,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x00,0xFF,0x05,0x3C,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xDE,0xFF,0xA2,0x14,
-0x0C,0x09,0x04,0x24,
-0x24,0x08,0x04,0x24,
-0x0E,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x2C,0x08,0x04,0x24,
-0x01,0x00,0x06,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0E,0x00,0x05,0x24,
-0x10,0x00,0xA2,0x93,
-0x80,0xFF,0x03,0x24,
-0x11,0x11,0x04,0x3C,
-0x0F,0x00,0x42,0x30,
-0x25,0x10,0x43,0x00,
-0x11,0x11,0x86,0x34,
-0x03,0x00,0x10,0x24,
-0x10,0x00,0xA2,0xA3,
-0x0C,0x09,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x04,0x08,0x04,0x24,
-0x21,0x30,0x00,0x02,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x05,0x24,
-0x02,0x00,0x64,0x96,
-0x02,0x00,0x02,0x24,
-0xCD,0xFF,0x82,0x14,
-0x03,0x00,0x82,0x28,
-0x00,0x00,0x42,0x92,
-0x02,0x00,0x11,0x24,
-0xF5,0x00,0x42,0x30,
-0x05,0x00,0x42,0x34,
-0x00,0x00,0x42,0xA2,
-0x21,0x30,0x20,0x02,
-0x04,0x0C,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x05,0x24,
-0x21,0x30,0x20,0x02,
-0x04,0x0D,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x05,0x24,
-0x10,0x00,0xA6,0x93,
-0x04,0x0A,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x00,0xFF,0x05,0x3C,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xB8,0xFF,0x82,0x14,
-0x21,0x30,0x20,0x02,
-0x00,0x00,0x42,0x92,
-0x03,0x00,0x11,0x24,
-0xF0,0x00,0x42,0x30,
-0x01,0x00,0x42,0x34,
-0xD4,0x42,0x00,0x08,
-0x00,0x00,0x42,0xA2,
-0x24,0x08,0x04,0x24,
-0x0E,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x02,0x00,0x06,0x24,
-0x2C,0x08,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0E,0x00,0x05,0x24,
-0x10,0x00,0xA2,0x93,
-0x22,0x22,0x03,0x3C,
-0x22,0x22,0x66,0x34,
-0x0F,0x00,0x42,0x30,
-0x40,0x00,0x42,0x34,
-0x03,0x00,0x10,0x24,
-0xC4,0x42,0x00,0x08,
-0x10,0x00,0xA2,0xA3,
-0x00,0x00,0x42,0x92,
-0x01,0x00,0x11,0x24,
-0xF0,0x00,0x42,0x30,
-0xD4,0x42,0x00,0x08,
-0x00,0x00,0x42,0xA2,
-0x0E,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x02,0x00,0x06,0x24,
-0x2C,0x08,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0E,0x00,0x05,0x24,
-0x10,0x00,0xA2,0x93,
-0xC0,0xFF,0x03,0x24,
-0x03,0x00,0x10,0x24,
-0x0F,0x00,0x42,0x30,
-0x25,0x10,0x43,0x00,
-0x32,0x03,0x03,0x3C,
-0x33,0x13,0x66,0x34,
-0x90,0x42,0x00,0x08,
-0x10,0x00,0xA2,0xA3,
-0x00,0x00,0x86,0x8C,
-0x00,0x0F,0x05,0x3C,
-0xA9,0x45,0x00,0x08,
-0x80,0x08,0x04,0x24,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x04,0x3C,
-0x14,0x00,0xBF,0xAF,
-0x2F,0x55,0x00,0x0C,
-0xF0,0xD7,0x84,0x24,
-0x00,0x00,0x02,0x92,
-0x00,0x0D,0x04,0x24,
-0x00,0x10,0x05,0x3C,
-0x21,0x00,0x40,0x10,
-0x21,0x30,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0xCB,0x45,0x00,0x0C,
-0x00,0x02,0x05,0x3C,
-0x00,0x08,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0x32,0x00,0x40,0x10,
-0x01,0x00,0x06,0x24,
-0x00,0x0A,0x04,0x24,
-0x03,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x10,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x40,0x05,0x3C,
-0x21,0x30,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x40,0x05,0x3C,
-0x21,0x30,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x0D,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x10,0x27,0x04,0x24,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x03,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x10,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x40,0x05,0x3C,
-0x3E,0x43,0x00,0x08,
-0x21,0x30,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x04,0x3C,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x2F,0x55,0x00,0x0C,
-0x08,0xD8,0x84,0x24,
-0x00,0x00,0x02,0x92,
-0x0F,0x00,0x12,0x3C,
-0x0F,0x00,0x11,0x3C,
-0x00,0x08,0x04,0x24,
-0x00,0x01,0x05,0x3C,
-0x20,0x00,0x40,0x10,
-0x21,0x30,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x02,0x05,0x3C,
-0x21,0x30,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x08,0x04,0x24,
-0x01,0x00,0x04,0x92,
-0xE6,0x44,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x06,0x3C,
-0xFF,0xFF,0x45,0x36,
-0x00,0x40,0xC6,0x34,
-0x5F,0x47,0x00,0x0C,
-0x21,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x02,0x00,0x06,0x3C,
-0xFF,0xFF,0x45,0x36,
-0x1F,0x00,0xC6,0x34,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x02,0x05,0x3C,
-0x01,0x00,0x06,0x24,
-0xA9,0x45,0x00,0x0C,
-0x00,0x08,0x04,0x24,
-0x01,0x00,0x04,0x92,
-0xE6,0x44,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x06,0x3C,
-0xFF,0xFF,0x25,0x36,
-0x00,0x40,0xC6,0x34,
-0x5F,0x47,0x00,0x0C,
-0x21,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xFF,0xFF,0x25,0x36,
-0x21,0x20,0x00,0x00,
-0x5F,0x47,0x00,0x0C,
-0x03,0x00,0x06,0x3C,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x04,0x3C,
-0x14,0x00,0xBF,0xAF,
-0x2F,0x55,0x00,0x0C,
-0x20,0xD8,0x84,0x24,
-0x00,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x40,0x10,
-0x00,0x0A,0x04,0x24,
-0x04,0x00,0x02,0x8E,
-0x00,0x08,0x04,0x24,
-0x04,0x00,0x42,0x2C,
-0x1C,0x00,0x40,0x14,
-0x00,0x01,0x05,0x3C,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x04,0x00,0x02,0x8E,
-0x03,0x00,0x05,0x24,
-0x04,0x00,0x42,0x2C,
-0xF8,0xFF,0x40,0x10,
-0x21,0x30,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xCB,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0x00,0x01,0x05,0x3C,
-0x1B,0x00,0x40,0x10,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x10,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x40,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x03,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x00,0x30,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0xE4,0x43,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xEF,0x43,0x00,0x08,
-0x00,0x0D,0x04,0x24,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x04,0x3C,
-0x14,0x00,0xBF,0xAF,
-0x2F,0x55,0x00,0x0C,
-0x40,0xD8,0x84,0x24,
-0x04,0x00,0x03,0x8E,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x62,0x2C,
-0x2C,0x00,0x40,0x14,
-0xFC,0xFF,0x62,0x24,
-0x18,0x00,0x42,0x2C,
-0x05,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x6C,0xD8,0x84,0x24,
-0x00,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x54,0x00,0x40,0x10,
-0x00,0x0D,0x04,0x24,
-0x00,0x08,0x04,0x24,
-0xCB,0x45,0x00,0x0C,
-0x00,0x02,0x05,0x3C,
-0x63,0x00,0x40,0x10,
-0x00,0x08,0x04,0x24,
-0x00,0x0A,0x04,0x24,
-0x03,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x10,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x40,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x58,0xD8,0x84,0x24,
-0x00,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x21,0x00,0x40,0x10,
-0x00,0x0A,0x04,0x24,
-0x00,0x08,0x04,0x24,
-0xCB,0x45,0x00,0x0C,
-0x00,0x01,0x05,0x3C,
-0x3A,0x00,0x40,0x10,
-0x00,0x08,0x04,0x24,
-0x00,0x0D,0x04,0x24,
-0x00,0x10,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x40,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x04,0x00,0x06,0x8E,
-0x00,0x0A,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0x00,0x30,0x05,0x24,
-0x00,0x0A,0x04,0x24,
-0x03,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0x01,0x00,0x06,0x24,
-0xA9,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x3F,0x44,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0A,0x04,0x24,
-0x08,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x24,
-0x66,0x44,0x00,0x08,
-0x01,0x00,0x06,0x24,
-0x00,0x10,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x20,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x40,0x05,0x3C,
-0x21,0x30,0x00,0x00,
-0xA9,0x45,0x00,0x0C,
-0x00,0x0D,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x10,0x27,0x04,0x24,
-0x72,0x44,0x00,0x08,
-0x00,0x0F,0x04,0x24,
-0x00,0x01,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x50,0x44,0x00,0x08,
-0x00,0x0D,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x2C,0x44,0x00,0x08,
-0x00,0x0A,0x04,0x24,
-0xE8,0xFF,0xBD,0x27,
-0x25,0xB0,0x02,0x3C,
-0x14,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x03,0x02,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x90,0x90,
-0x25,0xB0,0x02,0x3C,
-0xFF,0x00,0x63,0x30,
-0xFB,0x00,0x65,0x30,
-0x00,0x00,0x04,0x3A,
-0x04,0x00,0x63,0x34,
-0x0B,0x18,0xA4,0x00,
-0x03,0x02,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0x12,0x00,0x00,0x12,
-0x01,0x00,0x02,0x24,
-0x22,0x00,0x02,0x12,
-0x00,0x08,0x04,0x24,
-0x1A,0x00,0x00,0x12,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0x02,0x16,
-0x00,0x00,0x00,0x00,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x18,0x00,0x04,0x24,
-0x00,0x0C,0x05,0x24,
-0x21,0x30,0x00,0x00,
-0x5F,0x47,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x00,0x08,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x09,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x84,0x08,0x04,0x24,
-0xFF,0xFF,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x58,0x00,0x06,0x24,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x18,0x00,0x04,0x24,
-0x00,0x0C,0x05,0x24,
-0xAE,0x44,0x00,0x08,
-0x01,0x00,0x06,0x24,
-0x01,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x09,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x0A,0x04,0x24,
-0x10,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x0D,0x04,0x24,
-0x00,0x0C,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x84,0x08,0x04,0x24,
-0xFF,0xFF,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x18,0x00,0x06,0x24,
-0xA5,0x44,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x21,0x20,0x82,0x00,
-0x00,0x00,0x85,0xAC,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x05,0x3C,
-0x01,0x80,0x03,0x3C,
-0x21,0x38,0x80,0x00,
-0x18,0x03,0xA2,0x34,
-0x98,0x13,0x63,0x24,
-0x01,0x00,0x04,0x24,
-0x00,0x00,0x43,0xAC,
-0x35,0x00,0xE4,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x10,
-0x20,0x08,0xA2,0x34,
-0x02,0x00,0x02,0x24,
-0x83,0x00,0xE2,0x10,
-0x03,0x00,0x02,0x24,
-0x5A,0x00,0xE2,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x00,0x00,0x44,0x8C,
-0x30,0x1F,0x66,0x24,
-0x70,0x08,0x02,0x24,
-0xE0,0x08,0x03,0x24,
-0x34,0x1C,0xC2,0xAC,
-0x40,0x08,0x02,0x24,
-0x38,0x1C,0xC3,0xAC,
-0x44,0x1C,0xC2,0xAC,
-0x78,0x08,0x03,0x24,
-0x0C,0x08,0x02,0x24,
-0x48,0x1C,0xC3,0xAC,
-0x4C,0x1C,0xC2,0xAC,
-0x10,0x08,0x03,0x24,
-0x20,0x08,0x02,0x24,
-0x50,0x1C,0xC3,0xAC,
-0x54,0x1C,0xC2,0xAC,
-0x24,0x08,0x03,0x24,
-0x58,0x08,0x02,0x24,
-0x58,0x1C,0xC3,0xAC,
-0x5C,0x1C,0xC2,0xAC,
-0x50,0x0C,0x03,0x24,
-0x54,0x0C,0x02,0x24,
-0x60,0x1C,0xC3,0xAC,
-0x64,0x1C,0xC2,0xAC,
-0x14,0x0C,0x03,0x24,
-0x10,0x0C,0x02,0x24,
-0x60,0x08,0x05,0x24,
-0x68,0x1C,0xC3,0xAC,
-0x6C,0x1C,0xC2,0xAC,
-0x80,0x0C,0x03,0x24,
-0x84,0x0C,0x02,0x24,
-0x00,0x01,0x84,0x30,
-0x74,0x1C,0xC2,0xAC,
-0x40,0x1C,0xC5,0xAC,
-0x70,0x1C,0xC3,0xAC,
-0x31,0x1C,0xC0,0xA0,
-0x3C,0x1C,0xC5,0xAC,
-0x02,0x00,0x80,0x10,
-0xA0,0x08,0x02,0x24,
-0xB8,0x08,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x78,0x1C,0xC2,0xAC,
-0x28,0x08,0xA2,0x34,
-0x02,0x80,0x03,0x3C,
-0x00,0x00,0x44,0x8C,
-0x30,0x1F,0x66,0x24,
-0x70,0x08,0x02,0x24,
-0xE0,0x08,0x03,0x24,
-0x34,0x1C,0xC2,0xAC,
-0x44,0x08,0x02,0x24,
-0x38,0x1C,0xC3,0xAC,
-0x44,0x1C,0xC2,0xAC,
-0x78,0x08,0x03,0x24,
-0x0C,0x08,0x02,0x24,
-0x48,0x1C,0xC3,0xAC,
-0x4C,0x1C,0xC2,0xAC,
-0x14,0x08,0x03,0x24,
-0x28,0x08,0x02,0x24,
-0x50,0x1C,0xC3,0xAC,
-0x54,0x1C,0xC2,0xAC,
-0x2C,0x08,0x03,0x24,
-0x58,0x08,0x02,0x24,
-0x58,0x1C,0xC3,0xAC,
-0x5C,0x1C,0xC2,0xAC,
-0x58,0x0C,0x03,0x24,
-0x5C,0x0C,0x02,0x24,
-0x60,0x1C,0xC3,0xAC,
-0x64,0x1C,0xC2,0xAC,
-0x1C,0x0C,0x03,0x24,
-0x18,0x0C,0x02,0x24,
-0x64,0x08,0x05,0x24,
-0x68,0x1C,0xC3,0xAC,
-0x6C,0x1C,0xC2,0xAC,
-0x88,0x0C,0x03,0x24,
-0x8C,0x0C,0x02,0x24,
-0x00,0x01,0x84,0x30,
-0x74,0x1C,0xC2,0xAC,
-0x31,0x1C,0xC7,0xA0,
-0x40,0x1C,0xC5,0xAC,
-0x70,0x1C,0xC3,0xAC,
-0x3C,0x1C,0xC5,0xAC,
-0xD6,0xFF,0x80,0x10,
-0xA4,0x08,0x02,0x24,
-0xBC,0x08,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x78,0x1C,0xC2,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0xAC,0x08,0x03,0x24,
-0x78,0x1C,0x43,0xAC,
-0x74,0x08,0x03,0x24,
-0xE4,0x08,0x04,0x24,
-0x34,0x1C,0x43,0xAC,
-0x4C,0x08,0x03,0x24,
-0x38,0x1C,0x44,0xAC,
-0x44,0x1C,0x43,0xAC,
-0x7C,0x08,0x04,0x24,
-0x0C,0x08,0x03,0x24,
-0x48,0x1C,0x44,0xAC,
-0x4C,0x1C,0x43,0xAC,
-0x1C,0x08,0x04,0x24,
-0x38,0x08,0x03,0x24,
-0x50,0x1C,0x44,0xAC,
-0x54,0x1C,0x43,0xAC,
-0x3C,0x08,0x04,0x24,
-0x5C,0x08,0x03,0x24,
-0x58,0x1C,0x44,0xAC,
-0x5C,0x1C,0x43,0xAC,
-0x68,0x0C,0x04,0x24,
-0x6C,0x0C,0x03,0x24,
-0x60,0x1C,0x44,0xAC,
-0x64,0x1C,0x43,0xAC,
-0x2C,0x0C,0x04,0x24,
-0x28,0x0C,0x03,0x24,
-0x6C,0x08,0x05,0x24,
-0x68,0x1C,0x44,0xAC,
-0x6C,0x1C,0x43,0xAC,
-0x98,0x0C,0x04,0x24,
-0x9C,0x0C,0x03,0x24,
-0x31,0x1C,0x47,0xA0,
-0x40,0x1C,0x45,0xAC,
-0x70,0x1C,0x44,0xAC,
-0x74,0x1C,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x3C,0x1C,0x45,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0xA8,0x08,0x03,0x24,
-0x78,0x1C,0x43,0xAC,
-0x74,0x08,0x03,0x24,
-0xE4,0x08,0x04,0x24,
-0x34,0x1C,0x43,0xAC,
-0x48,0x08,0x03,0x24,
-0x38,0x1C,0x44,0xAC,
-0x44,0x1C,0x43,0xAC,
-0x7C,0x08,0x04,0x24,
-0x0C,0x08,0x03,0x24,
-0x48,0x1C,0x44,0xAC,
-0x4C,0x1C,0x43,0xAC,
-0x18,0x08,0x04,0x24,
-0x30,0x08,0x03,0x24,
-0x50,0x1C,0x44,0xAC,
-0x54,0x1C,0x43,0xAC,
-0x34,0x08,0x04,0x24,
-0x5C,0x08,0x03,0x24,
-0x58,0x1C,0x44,0xAC,
-0x5C,0x1C,0x43,0xAC,
-0x60,0x0C,0x04,0x24,
-0x64,0x0C,0x03,0x24,
-0x60,0x1C,0x44,0xAC,
-0x64,0x1C,0x43,0xAC,
-0x24,0x0C,0x04,0x24,
-0x20,0x0C,0x03,0x24,
-0x68,0x08,0x05,0x24,
-0x68,0x1C,0x44,0xAC,
-0x6C,0x1C,0x43,0xAC,
-0x90,0x0C,0x04,0x24,
-0x94,0x0C,0x03,0x24,
-0x31,0x1C,0x47,0xA0,
-0x40,0x1C,0x45,0xAC,
-0x70,0x1C,0x44,0xAC,
-0x74,0x1C,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x3C,0x1C,0x45,0xAC,
-0xA2,0x45,0x00,0x08,
-0x21,0x18,0x00,0x00,
-0x20,0x00,0x62,0x2C,
-0x06,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x06,0x10,0x64,0x00,
-0x01,0x00,0x42,0x30,
-0xFA,0xFF,0x40,0x10,
-0x01,0x00,0x63,0x24,
-0xFF,0xFF,0x63,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x25,0xB0,0x02,0x3C,
-0x21,0x88,0xA0,0x00,
-0xFF,0xFF,0x03,0x24,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x21,0x98,0xC0,0x00,
-0x21,0x28,0xC0,0x00,
-0x21,0x90,0x80,0x00,
-0x09,0x00,0x23,0x12,
-0x21,0x80,0x82,0x00,
-0x00,0x00,0x10,0x8E,
-0x9D,0x45,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x27,0x28,0x11,0x00,
-0x24,0x28,0xB0,0x00,
-0x04,0x10,0x53,0x00,
-0x25,0x28,0xA2,0x00,
-0x21,0x20,0x40,0x02,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xDB,0x44,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x21,0x30,0x80,0x00,
-0x74,0x3B,0x44,0x8C,
-0xA9,0x45,0x00,0x08,
-0xFF,0xFF,0x05,0x24,
-0xE0,0xFF,0xBD,0x27,
-0x25,0xB0,0x02,0x3C,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x20,0x82,0x00,
-0x00,0x00,0x90,0x8C,
-0x21,0x88,0xA0,0x00,
-0x9D,0x45,0x00,0x0C,
-0x21,0x20,0xA0,0x00,
-0x24,0x80,0x11,0x02,
-0x06,0x10,0x50,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x20,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x31,0x26,
-0x58,0x1C,0x23,0x8E,
-0x25,0xB0,0x02,0x3C,
-0x24,0x08,0x53,0x8C,
-0x21,0x18,0x62,0x00,
-0x00,0x00,0x70,0x8C,
-0x7F,0x80,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xFF,0x7F,0x05,0x3C,
-0x24,0x80,0x02,0x02,
-0xC0,0x25,0x04,0x00,
-0xFF,0xFF,0xA5,0x34,
-0x24,0x28,0x65,0x02,
-0x25,0x80,0x04,0x02,
-0xDB,0x44,0x00,0x0C,
-0x24,0x08,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x00,0x80,0x12,0x3C,
-0x58,0x1C,0x24,0x8E,
-0x25,0x80,0x12,0x02,
-0xDB,0x44,0x00,0x0C,
-0x21,0x28,0x00,0x02,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x25,0x28,0x72,0x02,
-0xDB,0x44,0x00,0x0C,
-0x24,0x08,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x78,0x1C,0x24,0x8E,
-0x0F,0x00,0x05,0x3C,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xFF,0xFF,0xA5,0x34,
-0xCB,0x45,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x30,0x1F,0x27,0x26,
-0x33,0x1C,0xE5,0x90,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x2C,0x18,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x02,0x00,0x06,0x24,
-0x00,0x00,0x43,0xAC,
-0x34,0x00,0xA6,0x10,
-0x21,0x80,0x80,0x00,
-0x03,0x00,0x03,0x24,
-0x3A,0x00,0xA3,0x10,
-0x2E,0x00,0x02,0x2E,
-0x10,0x00,0x02,0x2E,
-0x07,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x04,0x32,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xDC,0x45,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0xFA,0xFF,0xA6,0x14,
-0xFF,0x00,0x04,0x32,
-0x31,0x1C,0xE4,0x90,
-0x01,0x00,0x02,0x24,
-0x33,0x00,0x82,0x10,
-0x02,0x00,0x82,0x28,
-0x38,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x38,0x00,0x85,0x10,
-0x30,0x1F,0x22,0x26,
-0x2E,0x00,0x83,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0xCB,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0xFF,0xFC,0x06,0x3C,
-0xFF,0xFF,0xC6,0x34,
-0x24,0x30,0x46,0x00,
-0x00,0x08,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x30,0x1F,0x22,0x26,
-0x31,0x1C,0x44,0x90,
-0x01,0x00,0x03,0x24,
-0x07,0x00,0x83,0x10,
-0x02,0x00,0x82,0x28,
-0x2C,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0x2C,0x00,0x82,0x10,
-0x03,0x00,0x02,0x24,
-0xDB,0xFF,0x82,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x21,0x46,0x00,0x08,
-0xFF,0x00,0x04,0x32,
-0x25,0x00,0x82,0x2C,
-0xCC,0xFF,0x40,0x14,
-0x03,0x00,0x03,0x24,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xC7,0xFF,0x40,0x14,
-0x10,0x00,0x02,0x2E,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x06,0x24,
-0x33,0x46,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0xCC,0xFF,0x80,0x14,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x06,0x24,
-0x33,0x46,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0xB2,0xFF,0x80,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x21,0x46,0x00,0x08,
-0xFF,0x00,0x04,0x32,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x02,0x80,0x11,0x3C,
-0x30,0x1F,0x28,0x26,
-0x33,0x1C,0x06,0x91,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xD8,0x19,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x02,0x00,0x07,0x24,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x00,0x00,0x43,0xAC,
-0x21,0x90,0xA0,0x00,
-0x39,0x00,0xC7,0x10,
-0xFF,0x00,0x90,0x30,
-0x03,0x00,0x03,0x24,
-0x3F,0x00,0xC3,0x10,
-0x2E,0x00,0x02,0x2E,
-0x10,0x00,0x02,0x2E,
-0x0C,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x04,0x3C,
-0xFF,0xFF,0x84,0x34,
-0x24,0x20,0x44,0x02,
-0x00,0x15,0x10,0x00,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x25,0x20,0x44,0x00,
-0xC6,0x45,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0xF5,0xFF,0xC7,0x14,
-0x0F,0x00,0x04,0x3C,
-0x31,0x1C,0x04,0x91,
-0x01,0x00,0x02,0x24,
-0x33,0x00,0x82,0x10,
-0x02,0x00,0x82,0x28,
-0x38,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x38,0x00,0x86,0x10,
-0x30,0x1F,0x22,0x26,
-0x2E,0x00,0x83,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0xCB,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0xFF,0xFC,0x06,0x3C,
-0xFF,0xFF,0xC6,0x34,
-0x24,0x30,0x46,0x00,
-0x00,0x08,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x30,0x1F,0x22,0x26,
-0x31,0x1C,0x44,0x90,
-0x01,0x00,0x03,0x24,
-0x07,0x00,0x83,0x10,
-0x02,0x00,0x82,0x28,
-0x2C,0x00,0x40,0x14,
-0x02,0x00,0x02,0x24,
-0x2C,0x00,0x82,0x10,
-0x03,0x00,0x02,0x24,
-0xD6,0xFF,0x82,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x8E,0x46,0x00,0x08,
-0x0F,0x00,0x04,0x3C,
-0x25,0x00,0x02,0x2E,
-0xC7,0xFF,0x40,0x14,
-0x03,0x00,0x03,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xC1,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x06,0x24,
-0xA5,0x46,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0xCC,0xFF,0x80,0x14,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x0F,0x00,0x06,0x24,
-0xA5,0x46,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0xAD,0xFF,0x80,0x14,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x22,0x26,
-0x34,0x1C,0x44,0x8C,
-0x0F,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x8E,0x46,0x00,0x08,
-0x0F,0x00,0x04,0x3C,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x14,0x00,0xBF,0xAF,
-0xDC,0x45,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x40,0x01,0x44,0x34,
-0x21,0x18,0x40,0x00,
-0x1F,0x00,0x02,0x2E,
-0x00,0x23,0x04,0x00,
-0x10,0x00,0x40,0x10,
-0x10,0x00,0x05,0x2E,
-0x00,0x01,0x64,0x34,
-0x06,0x00,0xA0,0x10,
-0x00,0x23,0x04,0x00,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xC6,0x45,0x00,0x0C,
-0xF1,0xFF,0x10,0x26,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xC6,0x45,0x00,0x0C,
-0xE2,0xFF,0x10,0x26,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x25,0xB0,0x02,0x3C,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x20,0x82,0x00,
-0x00,0x00,0x90,0x8C,
-0x21,0x88,0xA0,0x00,
-0x9D,0x45,0x00,0x0C,
-0x21,0x20,0xA0,0x00,
-0x24,0x80,0x11,0x02,
-0x06,0x10,0x50,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x25,0xB0,0x02,0x3C,
-0x18,0x00,0xB2,0xAF,
-0x21,0x90,0x82,0x00,
-0xFF,0xFF,0x02,0x24,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x88,0xA0,0x00,
-0x21,0x20,0xA0,0x00,
-0x21,0x18,0x40,0x02,
-0x10,0x00,0xA2,0x10,
-0x21,0x98,0xC0,0x00,
-0x00,0x00,0x50,0x8E,
-0x9D,0x45,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x27,0x18,0x11,0x00,
-0x24,0x18,0x70,0x00,
-0x04,0x10,0x53,0x00,
-0x25,0x18,0x62,0x00,
-0x00,0x00,0x43,0xAE,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x28,0x00,0xBD,0x27,
-0x00,0x00,0x66,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x21,0x38,0x82,0x00,
-0xFF,0xFF,0x02,0x24,
-0x27,0x40,0x05,0x00,
-0x08,0x00,0xA2,0x10,
-0x24,0x18,0xC5,0x00,
-0x00,0x00,0xE2,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x02,0x01,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0xE2,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xE6,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x21,0x38,0xA0,0x00,
-0x25,0xB0,0x02,0x3C,
-0xFF,0xFF,0x03,0x24,
-0x27,0x48,0x05,0x00,
-0x24,0x40,0xC7,0x00,
-0x21,0x28,0xC0,0x00,
-0x05,0x00,0xE3,0x10,
-0x21,0x30,0x82,0x00,
-0x00,0x00,0xC5,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x28,0x25,0x01,
-0x25,0x28,0xA8,0x00,
-0xDB,0x44,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x02,0x3C,
-0x25,0xB0,0x03,0x3C,
-0xD8,0xFF,0xBD,0x27,
-0x7C,0x1D,0x42,0x24,
-0x18,0x03,0x63,0x34,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x62,0xAC,
-0x21,0x88,0xA0,0x00,
-0x21,0x98,0xC0,0x00,
-0x21,0xA0,0x80,0x00,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0F,0x00,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x0A,0x00,0x22,0x12,
-0x21,0x28,0xC0,0x00,
-0x0B,0x46,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x20,0x02,
-0x9D,0x45,0x00,0x0C,
-0x21,0x80,0x40,0x00,
-0x27,0x28,0x11,0x00,
-0x24,0x28,0xB0,0x00,
-0x04,0x10,0x53,0x00,
-0x25,0x28,0xA2,0x00,
-0x76,0x46,0x00,0x0C,
-0xFF,0x00,0x84,0x32,
-0x00,0x60,0x92,0x40,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x01,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x28,0x1E,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0xE0,0xFF,0xBD,0x27,
-0x00,0x00,0x43,0xAC,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x0B,0x46,0x00,0x0C,
-0x21,0x88,0xA0,0x00,
-0x21,0x80,0x40,0x00,
-0x9D,0x45,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x24,0x80,0x11,0x02,
-0x06,0x10,0x50,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x24,0x00,0xB5,0xAF,
-0xFF,0x00,0x84,0x30,
-0x21,0xA8,0xC0,0x00,
-0x28,0x00,0xB6,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x2C,0x00,0xBF,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0xB0,0xA0,0x00,
-0xE6,0x44,0x00,0x0C,
-0x21,0x98,0x00,0x00,
-0x21,0x00,0xA0,0x16,
-0x80,0x10,0x13,0x00,
-0xDD,0x47,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xFD,0x00,0x02,0x24,
-0x23,0x00,0x02,0x12,
-0x05,0x00,0x04,0x24,
-0xFC,0x00,0x02,0x24,
-0x37,0x00,0x02,0x12,
-0x00,0x00,0x00,0x00,
-0xFB,0x00,0x02,0x24,
-0x30,0x00,0x02,0x12,
-0x32,0x00,0x04,0x24,
-0xFA,0x00,0x02,0x24,
-0x2D,0x00,0x02,0x12,
-0x05,0x00,0x04,0x24,
-0xF9,0x00,0x02,0x24,
-0x29,0x00,0x02,0x12,
-0x0F,0x00,0x05,0x3C,
-0x04,0x00,0xD1,0x8C,
-0xFF,0xFF,0xA5,0x34,
-0x21,0x20,0x00,0x02,
-0x5F,0x47,0x00,0x0C,
-0x21,0x30,0x20,0x02,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x19,0x00,0x02,0x24,
-0x28,0x00,0x02,0x12,
-0x21,0x90,0x00,0x00,
-0x02,0x00,0x62,0x26,
-0xFF,0x00,0x53,0x30,
-0x2B,0x18,0x75,0x02,
-0x0F,0x00,0x60,0x10,
-0x80,0x10,0x13,0x00,
-0x21,0x30,0x56,0x00,
-0x00,0x00,0xD0,0x8C,
-0xFF,0x00,0x02,0x24,
-0x0A,0x00,0x02,0x12,
-0xFE,0x00,0x02,0x24,
-0xDC,0xFF,0x02,0x16,
-0x32,0x00,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x62,0x26,
-0xFF,0x00,0x53,0x30,
-0x2B,0x18,0x75,0x02,
-0xF3,0xFF,0x60,0x14,
-0x80,0x10,0x13,0x00,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x01,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xCB,0x47,0x00,0x08,
-0x02,0x00,0x62,0x26,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0xD9,0x47,0x00,0x08,
-0x02,0x00,0x62,0x26,
-0x0F,0x00,0x14,0x3C,
-0x21,0x20,0x00,0x02,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x85,0x36,
-0x21,0x20,0x00,0x02,
-0xFF,0xFF,0x85,0x36,
-0xD2,0xFF,0x51,0x10,
-0x21,0x30,0x20,0x02,
-0x5F,0x47,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x25,0x22,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x01,0x00,0x42,0x26,
-0xFF,0x00,0x52,0x30,
-0x0A,0x00,0x43,0x2E,
-0xF2,0xFF,0x60,0x14,
-0x21,0x20,0x00,0x02,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xB8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x44,0x00,0xBF,0xAF,
-0x40,0x00,0xBE,0xAF,
-0x3C,0x00,0xB7,0xAF,
-0x38,0x00,0xB6,0xAF,
-0x34,0x00,0xB5,0xAF,
-0x30,0x00,0xB4,0xAF,
-0x2C,0x00,0xB3,0xAF,
-0x28,0x00,0xB2,0xAF,
-0x24,0x00,0xB1,0xAF,
-0x20,0x00,0xB0,0xAF,
-0x30,0x1F,0x57,0x24,
-0x64,0x37,0xE3,0x96,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x05,0x3C,
-0x25,0xA0,0x62,0x00,
-0xF0,0xDD,0xA5,0x24,
-0x24,0x00,0x84,0x26,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x02,0x3C,
-0x20,0x00,0x80,0xA6,
-0x10,0x52,0x00,0x0C,
-0x84,0x58,0x56,0x24,
-0x02,0x80,0x05,0x3C,
-0x18,0x3B,0xA5,0x24,
-0x2A,0x00,0x84,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x88,0x58,0xA5,0x24,
-0x06,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0x30,0x00,0x84,0x26,
-0x20,0x00,0x83,0x96,
-0x74,0x00,0xD0,0x26,
-0x21,0x20,0x00,0x02,
-0x03,0xFF,0x63,0x30,
-0x80,0x00,0x63,0x34,
-0x20,0x00,0x83,0xA6,
-0x20,0x00,0x1E,0x24,
-0x40,0x00,0x93,0x26,
-0x17,0x4F,0x00,0x0C,
-0x1C,0x00,0xBE,0xAF,
-0x21,0x28,0x40,0x00,
-0x21,0x20,0x60,0x02,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x1C,0x00,0xA2,0x8F,
-0x21,0x20,0x00,0x02,
-0x42,0x00,0x93,0x26,
-0x02,0x00,0x42,0x24,
-0x32,0x4F,0x00,0x0C,
-0x1C,0x00,0xA2,0xAF,
-0x21,0x28,0x40,0x00,
-0x21,0x20,0x60,0x02,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x1C,0x00,0xA2,0x8F,
-0x0C,0x00,0xC6,0x8E,
-0x1C,0x00,0xB0,0x27,
-0x21,0x28,0x00,0x00,
-0x10,0x00,0xC7,0x26,
-0x02,0x00,0x42,0x24,
-0x44,0x00,0x84,0x26,
-0x60,0x00,0xD1,0x26,
-0x1C,0x00,0xA2,0xAF,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x21,0x20,0x20,0x02,
-0x37,0x50,0x00,0x0C,
-0x21,0x98,0x40,0x00,
-0x09,0x00,0x52,0x2C,
-0x08,0x00,0x06,0x24,
-0x21,0x20,0x60,0x02,
-0x0B,0x30,0x52,0x00,
-0x21,0x38,0x20,0x02,
-0x01,0x00,0x05,0x24,
-0x21,0xA8,0x40,0x00,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x21,0x20,0x40,0x00,
-0x03,0x00,0x05,0x24,
-0x01,0x00,0x06,0x24,
-0x48,0x00,0xC7,0x26,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x21,0x20,0x40,0x00,
-0x06,0x00,0x05,0x24,
-0x02,0x00,0x06,0x24,
-0x18,0x00,0xA7,0x27,
-0x18,0x00,0xA0,0xA7,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x18,0x00,0xA5,0x97,
-0x02,0x80,0x04,0x3C,
-0x68,0xDF,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x21,0x98,0x40,0x00,
-0x13,0x00,0x40,0x12,
-0x21,0x20,0x60,0x02,
-0x1C,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0x42,0x24,
-0x01,0x01,0x42,0x2C,
-0x18,0x00,0x40,0x14,
-0x21,0x20,0x80,0x02,
-0x44,0x00,0xBF,0x8F,
-0x40,0x00,0xBE,0x8F,
-0x3C,0x00,0xB7,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0xF8,0xFF,0xA6,0x26,
-0x68,0x00,0xC7,0x26,
-0x32,0x00,0x05,0x24,
-0x41,0x4F,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0x42,0x24,
-0x01,0x01,0x42,0x2C,
-0xEA,0xFF,0x40,0x10,
-0x21,0x20,0x80,0x02,
-0x21,0x28,0x00,0x00,
-0x08,0x52,0x00,0x0C,
-0x08,0x00,0x06,0x24,
-0x08,0x00,0x84,0x8E,
-0x04,0x00,0x85,0x8E,
-0xFF,0xDF,0x02,0x3C,
-0x10,0x00,0x86,0x8E,
-0x14,0x00,0x87,0x8E,
-0xFF,0xFF,0x42,0x34,
-0x1C,0x00,0xA8,0x8F,
-0x24,0x20,0x82,0x00,
-0x00,0x40,0x03,0x3C,
-0xFF,0xE0,0x02,0x24,
-0x24,0x28,0xA2,0x00,
-0x25,0x20,0x83,0x00,
-0x00,0x80,0x02,0x3C,
-0xFF,0x81,0x03,0x24,
-0x24,0x38,0xE3,0x00,
-0x25,0x30,0xC2,0x00,
-0x00,0x10,0xA5,0x34,
-0x80,0x00,0x84,0x34,
-0x08,0x00,0x84,0xAE,
-0x00,0x00,0x88,0xA6,
-0x02,0x00,0x9E,0xA2,
-0x14,0x00,0x87,0xAE,
-0x04,0x00,0x85,0xAE,
-0x10,0x00,0x86,0xAE,
-0xF8,0x36,0xE6,0x8E,
-0x64,0x37,0xE5,0x8E,
-0x01,0x00,0x04,0x24,
-0x00,0x01,0x07,0x24,
-0x01,0x00,0x02,0x24,
-0x73,0x01,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0xB0,0x01,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x44,0x00,0xBF,0x8F,
-0x40,0x00,0xBE,0x8F,
-0x3C,0x00,0xB7,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x25,0x24,0x00,0x0C,
-0x24,0x00,0x04,0x24,
-0x21,0x30,0x40,0x00,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x50,0x24,
-0x21,0x20,0xC0,0x00,
-0x13,0x00,0xC0,0x10,
-0x48,0xEA,0xA5,0x24,
-0x04,0x00,0x02,0x24,
-0x09,0x00,0x03,0x24,
-0x0C,0x00,0xC2,0xAC,
-0x14,0x00,0xC3,0xAC,
-0x08,0x00,0xC5,0x94,
-0xA4,0x3B,0x03,0x8E,
-0x02,0x80,0x02,0x3C,
-0x25,0x28,0xA2,0x00,
-0x30,0x09,0x00,0x0C,
-0x20,0x00,0xA3,0xAC,
-0xA8,0x3B,0x06,0x8E,
-0xA4,0x3B,0x05,0x8E,
-0x02,0x80,0x04,0x3C,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x80,0xDF,0x84,0x24,
-0x2F,0x55,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x74,0xDF,0x84,0x24,
-0x2F,0x55,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x02,0x00,0x82,0x90,
-0x02,0x80,0x12,0x3C,
-0x30,0x1F,0x51,0x26,
-0xB0,0x1B,0x25,0x96,
-0x0F,0x00,0x42,0x30,
-0xC0,0x10,0x02,0x00,
-0x21,0x80,0x44,0x00,
-0x00,0x01,0xA3,0x30,
-0x04,0x00,0x60,0x10,
-0x18,0x00,0x04,0x26,
-0x00,0x10,0xA2,0x30,
-0x0B,0x00,0x40,0x10,
-0x04,0x00,0xA2,0x30,
-0x21,0x18,0x00,0x00,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xF5,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x55,0x50,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x18,0x3B,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xED,0xFF,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x88,0x58,0x53,0x24,
-0x22,0x00,0x14,0x26,
-0x21,0x20,0x80,0x02,
-0x21,0x28,0x60,0x02,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xE4,0xFF,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x28,0x00,0x04,0x26,
-0x21,0x28,0x60,0x02,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xDE,0xFF,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xE8,0xDF,0x84,0x24,
-0xB0,0x1B,0x24,0x96,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x83,0x30,
-0x01,0x00,0x62,0x30,
-0x08,0x00,0x40,0x10,
-0x00,0x20,0x62,0x30,
-0x15,0x00,0x40,0x10,
-0xFF,0xDE,0x82,0x30,
-0xFE,0xFF,0x04,0x24,
-0xB0,0x1B,0x22,0xA6,
-0xD0,0x38,0x20,0xAE,
-0x48,0x0E,0x00,0x0C,
-0xB4,0x38,0x20,0xAE,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0x50,0x26,
-0x4C,0x00,0x42,0x34,
-0x00,0x00,0x40,0xA0,
-0x21,0x20,0x00,0x00,
-0x21,0x28,0x00,0x00,
-0x12,0x0D,0x00,0x0C,
-0xA1,0x3B,0x00,0xA2,
-0x10,0x3E,0x00,0xAE,
-0xEC,0x38,0x00,0xAE,
-0x08,0x39,0x00,0xAE,
-0xA3,0x51,0x00,0x0C,
-0x50,0x3E,0x00,0xAE,
-0xFA,0x48,0x00,0x08,
-0x21,0x18,0x00,0x00,
-0x76,0x0E,0x00,0x0C,
-0x21,0x20,0x80,0x02,
-0xBB,0xFF,0x40,0x14,
-0xFF,0xFF,0x03,0x24,
-0xB0,0x1B,0x22,0x96,
-0x00,0x00,0x00,0x00,
-0xFF,0xFE,0x42,0x30,
-0x2D,0x49,0x00,0x08,
-0xB0,0x1B,0x22,0xA6,
-0xD0,0xFF,0xBD,0x27,
-0x20,0x00,0xB4,0xAF,
-0x02,0x80,0x14,0x3C,
-0x14,0x00,0xB1,0xAF,
-0x28,0x00,0xBF,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x91,0x26,
-0xB0,0x1B,0x23,0x96,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0x62,0x30,
-0x3A,0x00,0x40,0x14,
-0x00,0x01,0x62,0x30,
-0x2E,0x00,0x40,0x10,
-0x00,0x10,0x62,0x30,
-0x29,0x00,0x40,0x14,
-0x01,0x00,0x62,0x30,
-0x1D,0x00,0x40,0x14,
-0x04,0x00,0x62,0x30,
-0x25,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x21,0x90,0x20,0x02,
-0x2B,0x3D,0x55,0x24,
-0x01,0x00,0x13,0x24,
-0xF0,0x00,0x10,0x24,
-0x65,0x49,0x00,0x08,
-0x19,0x00,0x11,0x24,
-0xFF,0xFF,0x31,0x26,
-0x1C,0x00,0x20,0x06,
-0x28,0x00,0x10,0x26,
-0x21,0x18,0x12,0x02,
-0xFA,0x1D,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xF9,0xFF,0x53,0x14,
-0x00,0x00,0x00,0x00,
-0x0C,0x1E,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x33,0x00,0x40,0x10,
-0x21,0x20,0x15,0x02,
-0x00,0x60,0x02,0x40,
-0x01,0x00,0x41,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0C,0x1E,0x60,0xAC,
-0x00,0x60,0x82,0x40,
-0x63,0x49,0x00,0x08,
-0xFF,0xFF,0x31,0x26,
-0xD4,0x1E,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x2F,0x00,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x00,0x60,0x02,0x40,
-0x01,0x00,0x41,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0xD4,0x1E,0x20,0xAE,
-0x00,0x60,0x82,0x40,
-0x53,0x1E,0x00,0x0C,
-0x30,0x1F,0x90,0x26,
-0xEC,0x38,0x02,0xAE,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xF8,0xDF,0x84,0x24,
-0xB0,0x1B,0x22,0x96,
-0xEC,0x38,0x20,0xAE,
-0xFD,0xFF,0x04,0x24,
-0xEF,0xDF,0x42,0x30,
-0x48,0x0E,0x00,0x0C,
-0xB0,0x1B,0x22,0xA6,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x8E,0x3E,0x42,0x92,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x42,0x24,
-0x8E,0x3E,0x42,0xA2,
-0x76,0x0E,0x00,0x0C,
-0xFA,0x1D,0x60,0xA0,
-0x63,0x49,0x00,0x08,
-0xFF,0xFF,0x31,0x26,
-0x2F,0x55,0x00,0x0C,
-0x18,0xE0,0x84,0x24,
-0xB0,0x1B,0x23,0x96,
-0x25,0xB0,0x02,0x3C,
-0x4C,0x00,0x42,0x34,
-0xFE,0xFE,0x63,0x30,
-0xB0,0x1B,0x23,0xA6,
-0x21,0x20,0x00,0x00,
-0x00,0x00,0x40,0xA0,
-0x21,0x28,0x00,0x00,
-0xA1,0x3B,0x20,0xA2,
-0x12,0x0D,0x00,0x0C,
-0xC2,0x1E,0x20,0xA2,
-0x02,0x80,0x04,0x3C,
-0x76,0x0E,0x00,0x0C,
-0x88,0x58,0x84,0x24,
-0x83,0x49,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xA8,0xFF,0xBD,0x27,
-0x48,0x00,0xB6,0xAF,
-0x3C,0x00,0xB3,0xAF,
-0x38,0x00,0xB2,0xAF,
-0x30,0x00,0xB0,0xAF,
-0x54,0x00,0xBF,0xAF,
-0x50,0x00,0xBE,0xAF,
-0x4C,0x00,0xB7,0xAF,
-0x44,0x00,0xB5,0xAF,
-0x40,0x00,0xB4,0xAF,
-0x34,0x00,0xB1,0xAF,
-0x02,0x00,0x82,0x90,
-0x00,0x00,0x83,0x8C,
-0x21,0xB0,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0xC0,0x10,0x02,0x00,
-0x21,0x80,0x44,0x00,
-0x18,0x00,0x12,0x26,
-0x21,0x20,0x40,0x02,
-0x55,0x50,0x00,0x0C,
-0xFF,0x3F,0x73,0x30,
-0x02,0x80,0x04,0x3C,
-0x18,0x3B,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x0B,0x00,0x40,0x14,
-0x02,0x80,0x15,0x3C,
-0x30,0x1F,0xB1,0x26,
-0xB0,0x1B,0x23,0x96,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x62,0x30,
-0x05,0x00,0x40,0x10,
-0x00,0x10,0x62,0x30,
-0x03,0x00,0x40,0x14,
-0x00,0x01,0x62,0x30,
-0x0E,0x00,0x40,0x10,
-0x20,0x00,0xB4,0x27,
-0x54,0x00,0xBF,0x8F,
-0x50,0x00,0xBE,0x8F,
-0x4C,0x00,0xB7,0x8F,
-0x48,0x00,0xB6,0x8F,
-0x44,0x00,0xB5,0x8F,
-0x40,0x00,0xB4,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x58,0x00,0xBD,0x27,
-0x32,0x00,0x05,0x26,
-0x21,0x20,0x80,0x02,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x20,0x00,0xA5,0x97,
-0x00,0x00,0x00,0x00,
-0xC2,0x00,0xA0,0x14,
-0x02,0x80,0x04,0x3C,
-0x21,0x20,0x80,0x02,
-0x34,0x00,0x05,0x26,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x20,0x00,0xA2,0x97,
-0x21,0x20,0x80,0x02,
-0x30,0x00,0x05,0x26,
-0xFF,0x3F,0x42,0x30,
-0x02,0x00,0x06,0x24,
-0x50,0x39,0x22,0xA6,
-0x10,0x52,0x00,0x0C,
-0x28,0x00,0xA2,0xAF,
-0x20,0x00,0xA3,0x97,
-0x21,0x40,0x20,0x02,
-0x00,0x04,0x63,0x30,
-0x02,0x00,0x60,0x14,
-0x09,0x00,0x02,0x24,
-0x14,0x00,0x02,0x24,
-0x1E,0x00,0x5E,0x26,
-0xE2,0xFF,0x74,0x26,
-0x21,0x20,0xC0,0x03,
-0x01,0x00,0x05,0x24,
-0x24,0x00,0xA6,0x27,
-0x21,0x38,0x80,0x02,
-0x55,0x1D,0x00,0x0C,
-0x0C,0x3E,0x02,0xA1,
-0xA8,0x00,0x40,0x10,
-0x02,0x00,0x45,0x24,
-0x24,0x00,0xA6,0x8F,
-0x10,0x52,0x00,0x0C,
-0x10,0x00,0xA4,0x27,
-0x21,0x20,0xC0,0x03,
-0x32,0x00,0x05,0x24,
-0x24,0x00,0xA6,0x27,
-0x24,0x00,0xB7,0x8F,
-0x55,0x1D,0x00,0x0C,
-0x21,0x38,0x80,0x02,
-0x08,0x00,0x40,0x10,
-0x10,0x00,0xA4,0x27,
-0x24,0x00,0xA6,0x8F,
-0x21,0x20,0x97,0x00,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x45,0x24,
-0x24,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0xB8,0xE3,0x02,
-0x02,0x80,0x02,0x3C,
-0xEA,0x5D,0x44,0x90,
-0x02,0x00,0x03,0x24,
-0xE5,0x00,0x83,0x10,
-0x21,0x20,0xC0,0x03,
-0x30,0x1F,0xA4,0x26,
-0x10,0x3E,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x22,0x00,0x40,0x10,
-0x30,0x1F,0xB1,0x26,
-0x02,0x80,0x02,0x3C,
-0xE6,0x5D,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x1D,0x00,0x60,0x14,
-0x23,0x10,0xD2,0x03,
-0x2B,0x10,0x53,0x00,
-0x1A,0x00,0x40,0x10,
-0x21,0x80,0xC0,0x03,
-0x02,0x80,0x11,0x3C,
-0x21,0x20,0x00,0x02,
-0xDD,0x00,0x05,0x24,
-0x24,0x00,0xA6,0x27,
-0x55,0x1D,0x00,0x0C,
-0x21,0x38,0x80,0x02,
-0x21,0x80,0x40,0x00,
-0x02,0x00,0x44,0x24,
-0xC8,0xDD,0x25,0x26,
-0x0E,0x01,0x40,0x10,
-0x06,0x00,0x06,0x24,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x10,0x01,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x24,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x02,0x02,
-0x02,0x00,0x70,0x24,
-0x23,0x20,0x12,0x02,
-0x03,0x01,0x40,0x10,
-0x2B,0x20,0x93,0x00,
-0xEB,0xFF,0x80,0x14,
-0x21,0x20,0x00,0x02,
-0x30,0x1F,0xB1,0x26,
-0x50,0x3E,0x22,0x8E,
-0x00,0x00,0x00,0x00,
-0x6A,0x00,0x40,0x14,
-0x24,0x00,0xA6,0x27,
-0x53,0x1E,0x00,0x0C,
-0x30,0x1F,0xB2,0x26,
-0x25,0xB0,0x14,0x3C,
-0xB0,0x1B,0x45,0x96,
-0x02,0x00,0x03,0x24,
-0x4C,0x00,0x84,0x36,
-0x00,0x00,0x83,0xA0,
-0xEC,0x38,0x42,0xAE,
-0x02,0x00,0x02,0x3C,
-0x00,0x01,0xA5,0x34,
-0x20,0xBF,0x42,0x34,
-0x08,0x39,0x42,0xAE,
-0x21,0x0E,0x00,0x0C,
-0xB0,0x1B,0x45,0xA6,
-0x10,0x00,0xA4,0x27,
-0x7D,0x50,0x00,0x0C,
-0x21,0x28,0xE0,0x02,
-0x0F,0x00,0x50,0x30,
-0x10,0x00,0xA4,0x27,
-0x96,0x50,0x00,0x0C,
-0x21,0x28,0xE0,0x02,
-0x40,0x02,0x13,0x36,
-0x02,0x80,0x04,0x3C,
-0x21,0x88,0x40,0x00,
-0x21,0x30,0x40,0x00,
-0x21,0x28,0x60,0x02,
-0x2F,0x55,0x00,0x0C,
-0x6C,0xE0,0x84,0x24,
-0x21,0x20,0x60,0x02,
-0xC1,0x5B,0x00,0x0C,
-0x21,0x28,0x20,0x02,
-0x21,0x28,0xE0,0x02,
-0xC2,0x50,0x00,0x0C,
-0x10,0x00,0xA4,0x27,
-0x21,0x88,0x40,0x00,
-0x50,0x3E,0x42,0x8E,
-0x00,0x00,0x00,0x00,
-0x16,0x00,0x40,0x10,
-0x50,0x00,0x13,0x36,
-0x5B,0x3E,0x42,0x92,
-0x5C,0x3E,0x43,0x92,
-0x0A,0x3E,0x44,0x92,
-0x00,0x13,0x02,0x00,
-0x00,0x1D,0x03,0x00,
-0x25,0x10,0x43,0x00,
-0x04,0x00,0x03,0x24,
-0xA0,0x00,0x83,0x10,
-0x25,0x88,0x22,0x02,
-0x54,0x3E,0x43,0x8E,
-0x00,0x00,0x00,0x00,
-0x07,0x00,0x60,0x14,
-0x01,0x00,0x02,0x24,
-0x58,0x3E,0x42,0x96,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0x42,0x30,
-0xA1,0x00,0x40,0x14,
-0x00,0x10,0x02,0x3C,
-0x01,0x00,0x02,0x24,
-0x98,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x80,0xE0,0x84,0x24,
-0x21,0x28,0x60,0x02,
-0x21,0x38,0xC0,0x02,
-0x2F,0x55,0x00,0x0C,
-0x21,0x30,0x20,0x02,
-0x21,0x20,0x60,0x02,
-0xC1,0x5B,0x00,0x0C,
-0x21,0x28,0x20,0x02,
-0x30,0x1F,0xA2,0x26,
-0xB0,0x1B,0x43,0x94,
-0x0A,0x3E,0x44,0x90,
-0xB4,0x38,0x40,0xAC,
-0xFF,0xDF,0x63,0x30,
-0xB0,0x1B,0x43,0xA4,
-0x04,0x00,0x03,0x24,
-0xD0,0x38,0x40,0xAC,
-0x94,0x3E,0x40,0xAC,
-0x06,0x00,0x83,0x10,
-0x98,0x3E,0x40,0xAC,
-0x28,0x00,0xA4,0x8F,
-0x48,0x0E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xE2,0x49,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x06,0x3C,
-0x64,0x03,0xC6,0x34,
-0x30,0x1F,0xA4,0x8E,
-0x00,0x00,0xC5,0x90,
-0x0F,0xFF,0x02,0x24,
-0xFD,0xFF,0x03,0x24,
-0x24,0x20,0x82,0x00,
-0x24,0x28,0xA3,0x00,
-0x30,0x1F,0xA4,0xAE,
-0x00,0x00,0xC5,0xA0,
-0x28,0x00,0xA4,0x8F,
-0x48,0x0E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xE2,0x49,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x2F,0x55,0x00,0x0C,
-0x50,0xE0,0x84,0x24,
-0xFF,0xFF,0x02,0x24,
-0x99,0x4A,0x00,0x08,
-0x28,0x00,0xA2,0xAF,
-0x21,0x20,0xC0,0x03,
-0x2D,0x00,0x05,0x24,
-0x55,0x1D,0x00,0x0C,
-0x21,0x38,0x80,0x02,
-0x91,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x24,0x00,0xAB,0x8F,
-0x00,0x00,0x00,0x00,
-0x1F,0x00,0x60,0x19,
-0x21,0x40,0x00,0x00,
-0x02,0x00,0x49,0x24,
-0x21,0x50,0x20,0x02,
-0x02,0x00,0x0C,0x24,
-0xD5,0x4A,0x00,0x08,
-0x21,0x68,0x20,0x01,
-0x58,0x3E,0x82,0x90,
-0x00,0x00,0x23,0x91,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x43,0x00,
-0x58,0x3E,0x82,0xA0,
-0x01,0x00,0x08,0x25,
-0x2A,0x10,0x0B,0x01,
-0x11,0x00,0x40,0x10,
-0x01,0x00,0x29,0x25,
-0xF6,0xFF,0x0C,0x15,
-0x21,0x20,0x0A,0x01,
-0x5A,0x3E,0x43,0x91,
-0x00,0x00,0x25,0x91,
-0x02,0x00,0xA2,0x91,
-0x1C,0x00,0x64,0x30,
-0x1C,0x00,0xA5,0x30,
-0x03,0x00,0x42,0x30,
-0x03,0x00,0x63,0x30,
-0x2A,0x30,0x43,0x00,
-0x2A,0x38,0xA4,0x00,
-0x0A,0x10,0x66,0x00,
-0x0A,0x20,0xA7,0x00,
-0x25,0x10,0x44,0x00,
-0xD1,0x4A,0x00,0x08,
-0x5A,0x3E,0x42,0xA1,
-0x02,0x80,0x02,0x3C,
-0xDE,0x5D,0x43,0x90,
-0x02,0x80,0x02,0x3C,
-0x3C,0xE3,0x47,0x24,
-0x10,0x00,0x65,0x30,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x4C,0xE3,0x66,0x24,
-0x30,0x1F,0x44,0x24,
-0xF8,0x4A,0x00,0x08,
-0x21,0x40,0x00,0x00,
-0x00,0x00,0x43,0x90,
-0x5B,0x3E,0x82,0x90,
-0x01,0x00,0x08,0x25,
-0x24,0x10,0x43,0x00,
-0x5B,0x3E,0x82,0xA0,
-0x10,0x00,0x02,0x29,
-0x07,0x00,0x40,0x10,
-0x01,0x00,0x84,0x24,
-0x21,0x10,0x07,0x01,
-0xF6,0xFF,0xA0,0x14,
-0x21,0x18,0x06,0x01,
-0x00,0x00,0x63,0x90,
-0xF1,0x4A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0xC0,0x03,
-0x21,0x38,0x80,0x02,
-0x3D,0x00,0x05,0x24,
-0x55,0x1D,0x00,0x0C,
-0x24,0x00,0xA6,0x27,
-0x48,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x24,0x00,0xA6,0x8F,
-0x02,0x80,0x04,0x3C,
-0xA8,0x5D,0x84,0x24,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x45,0x24,
-0x90,0x0D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x54,0x4A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x2A,0x00,0x05,0x24,
-0x24,0x00,0xA6,0x27,
-0x55,0x1D,0x00,0x0C,
-0x21,0x38,0x80,0x02,
-0x30,0x00,0x40,0x10,
-0x30,0x1F,0xA5,0x26,
-0x02,0x00,0x42,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x30,
-0x2B,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0xEB,0x5D,0x44,0x90,
-0x01,0x00,0x03,0x24,
-0x3E,0x00,0x83,0x10,
-0x30,0x1F,0xA2,0x26,
-0x10,0x23,0x43,0x8C,
-0xFF,0xEF,0x04,0x24,
-0x00,0x08,0x63,0x34,
-0x24,0x18,0x64,0x00,
-0x2A,0x4A,0x00,0x08,
-0x10,0x23,0x43,0xAC,
-0xF6,0x01,0x82,0x36,
-0x00,0x00,0x40,0xA4,
-0x91,0x4A,0x00,0x08,
-0x02,0x80,0x04,0x3C,
-0x58,0x3E,0x42,0x96,
-0x00,0x00,0x00,0x00,
-0x40,0x00,0x42,0x30,
-0x66,0xFF,0x40,0x10,
-0x02,0x80,0x04,0x3C,
-0x00,0x10,0x02,0x3C,
-0x25,0x88,0x22,0x02,
-0x0F,0x00,0x08,0x24,
-0x01,0x00,0x03,0x24,
-0x0C,0x00,0x02,0x25,
-0x04,0x10,0x43,0x00,
-0x24,0x10,0x51,0x00,
-0x16,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x08,0x25,
-0xFA,0xFF,0x01,0x05,
-0x0C,0x00,0x02,0x25,
-0x00,0x12,0x16,0x00,
-0x00,0x1B,0x16,0x00,
-0x25,0x18,0x62,0x00,
-0x00,0x21,0x16,0x00,
-0x25,0x18,0x64,0x00,
-0x25,0xB0,0x02,0x3C,
-0x25,0x18,0x76,0x00,
-0xF6,0x01,0x42,0x34,
-0x00,0x00,0x43,0xA4,
-0x91,0x4A,0x00,0x08,
-0x02,0x80,0x04,0x3C,
-0x10,0x23,0xA2,0x8C,
-0xFF,0xF7,0x03,0x24,
-0xFF,0xEF,0x04,0x24,
-0x24,0x10,0x43,0x00,
-0x24,0x10,0x44,0x00,
-0x2A,0x4A,0x00,0x08,
-0x10,0x23,0xA2,0xAC,
-0x38,0x4B,0x00,0x08,
-0xFF,0x00,0x16,0x31,
-0x30,0x1F,0xA2,0x26,
-0x54,0x4A,0x00,0x08,
-0x50,0x3E,0x40,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x4F,0x4A,0x00,0x08,
-0x10,0x3E,0x40,0xAC,
-0x54,0x4A,0x00,0x08,
-0x50,0x3E,0x20,0xAE,
-0x21,0x20,0x00,0x02,
-0x78,0x0F,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x50,0x4A,0x00,0x08,
-0x30,0x1F,0xB1,0x26,
-0x10,0x23,0x43,0x8C,
-0xFF,0xF7,0x04,0x24,
-0x24,0x18,0x64,0x00,
-0x00,0x10,0x63,0x34,
-0x2A,0x4A,0x00,0x08,
-0x10,0x23,0x43,0xAC,
-0xD8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x02,0x00,0x82,0x90,
-0x02,0x80,0x03,0x3C,
-0xE0,0x3A,0x65,0x94,
-0x0F,0x00,0x42,0x30,
-0x00,0x00,0x83,0x8C,
-0xC0,0x10,0x02,0x00,
-0x21,0x20,0x44,0x00,
-0x00,0x10,0xA8,0x30,
-0x02,0x80,0x02,0x3C,
-0x00,0x08,0xA5,0x30,
-0x84,0x58,0x51,0x24,
-0xFF,0x3F,0x63,0x30,
-0x06,0x00,0xA0,0x10,
-0x18,0x00,0x90,0x24,
-0xE8,0xFF,0x67,0x24,
-0x30,0x00,0x84,0x24,
-0x21,0x28,0x00,0x00,
-0x07,0x00,0x00,0x11,
-0x10,0x00,0xA6,0x27,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x55,0x1D,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF7,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x44,0x24,
-0x10,0x00,0xA2,0x8F,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x40,0x10,
-0x10,0x00,0x25,0x26,
-0x0C,0x00,0x26,0x8E,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xED,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x42,0x50,0x00,0x0C,
-0x21,0x20,0x00,0x02,
-0x01,0x10,0x00,0x0C,
-0x21,0x20,0x40,0x00,
-0x77,0x4B,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0xE5,0x48,0x00,0x0C,
-0xFE,0xFF,0x05,0x24,
-0x10,0x00,0xBF,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0xE5,0x48,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x10,0x00,0xBF,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x25,0xB0,0x03,0x3C,
-0x01,0x80,0x02,0x3C,
-0xB0,0x03,0x65,0x34,
-0x8C,0x2E,0x42,0x24,
-0x18,0x03,0x63,0x34,
-0x00,0x00,0x62,0xAC,
-0x00,0x00,0xA4,0xAC,
-0x00,0x00,0x83,0x8C,
-0x21,0x10,0x00,0x00,
-0xFF,0x3F,0x63,0x30,
-0x00,0x00,0xA3,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x30,0x1F,0x50,0x24,
-0x70,0x3D,0x03,0x8E,
-0xFE,0xFF,0x04,0x24,
-0x01,0x00,0x63,0x24,
-0x05,0x00,0x62,0x2C,
-0x12,0x00,0x40,0x10,
-0x70,0x3D,0x03,0xAE,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x30,
-0x05,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xA5,0x12,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xC8,0x00,0x03,0x24,
-0xD0,0x38,0x03,0xAE,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0xFF,0xDF,0x42,0x30,
-0x48,0x0E,0x00,0x0C,
-0xB0,0x1B,0x02,0xA6,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x2C,0x00,0xBF,0xAF,
-0x02,0x00,0x82,0x90,
-0x02,0x80,0x14,0x3C,
-0x30,0x1F,0x92,0x26,
-0xB0,0x1B,0x43,0x96,
-0x00,0x00,0x85,0x8C,
-0x0F,0x00,0x42,0x30,
-0xC0,0x10,0x02,0x00,
-0x21,0x80,0x44,0x00,
-0x01,0x00,0x63,0x30,
-0xFF,0x3F,0xB3,0x30,
-0x18,0x00,0x11,0x26,
-0x0A,0x00,0x60,0x14,
-0x21,0x20,0x00,0x00,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x21,0x10,0x80,0x00,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x55,0x50,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x02,0x80,0x04,0x3C,
-0x18,0x3B,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x39,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xEF,0xFF,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0xB0,0x1B,0x42,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x10,0x42,0x30,
-0xEA,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0x03,0x96,
-0x04,0x00,0x04,0x24,
-0x21,0x10,0x80,0x00,
-0x00,0x40,0x63,0x30,
-0x0A,0x10,0x03,0x00,
-0x21,0x10,0x22,0x02,
-0x1C,0x00,0x43,0x94,
-0x1A,0x00,0x45,0x94,
-0x2F,0x00,0x60,0x14,
-0x02,0x00,0x02,0x24,
-0x14,0x00,0xA2,0x10,
-0x01,0x00,0x02,0x24,
-0x0E,0x00,0xA4,0x14,
-0x02,0x80,0x04,0x3C,
-0x78,0x3D,0x43,0x8E,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x62,0x10,
-0x30,0x1F,0x83,0x26,
-0xB0,0x1B,0x62,0x94,
-0xFF,0xFF,0x04,0x24,
-0xFF,0xDF,0x42,0x30,
-0xE9,0x4B,0x00,0x08,
-0xB0,0x1B,0x62,0xA4,
-0x84,0x14,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xE9,0x4B,0x00,0x08,
-0x21,0x20,0x00,0x00,
-0x2F,0x55,0x00,0x0C,
-0xEC,0xE1,0x84,0x24,
-0x12,0x4C,0x00,0x08,
-0x30,0x1F,0x83,0x26,
-0x78,0x3D,0x43,0x8E,
-0x00,0x00,0x00,0x00,
-0xF5,0xFF,0x62,0x14,
-0xE2,0xFF,0x67,0x26,
-0x36,0x00,0x04,0x26,
-0x10,0x00,0x05,0x24,
-0x55,0x1D,0x00,0x0C,
-0x10,0x00,0xA6,0x27,
-0x16,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xA6,0x8F,
-0x02,0x80,0x04,0x3C,
-0xB8,0x5C,0x84,0x24,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x45,0x24,
-0xB0,0x1B,0x43,0x96,
-0x21,0x20,0x00,0x00,
-0x03,0x00,0x02,0x24,
-0xDF,0xFF,0x63,0x30,
-0x40,0x00,0x63,0x34,
-0xB0,0x1B,0x43,0xA6,
-0xBC,0x15,0x00,0x0C,
-0x74,0x3D,0x42,0xAE,
-0xE9,0x4B,0x00,0x08,
-0x21,0x20,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0xBC,0xE1,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x21,0x28,0x60,0x00,
-0x12,0x4C,0x00,0x08,
-0x30,0x1F,0x83,0x26,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xD8,0xE1,0x84,0x24,
-0x12,0x4C,0x00,0x08,
-0x30,0x1F,0x83,0x26,
-0xE8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x30,0x1F,0x50,0x24,
-0x6C,0x3D,0x03,0x8E,
-0xFF,0xFF,0x04,0x24,
-0x01,0x00,0x63,0x24,
-0x05,0x00,0x62,0x2C,
-0x16,0x00,0x40,0x10,
-0x6C,0x3D,0x03,0xAE,
-0xB0,0x1B,0x03,0x96,
-0xBF,0xFF,0x02,0x24,
-0x21,0x20,0x00,0x00,
-0x24,0x10,0x62,0x00,
-0x80,0x00,0x63,0x30,
-0x05,0x00,0x60,0x10,
-0x20,0x00,0x45,0x34,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x01,0x00,0x02,0x24,
-0x74,0x3D,0x02,0xAE,
-0xBC,0x15,0x00,0x0C,
-0xB0,0x1B,0x05,0xA6,
-0xC8,0x00,0x03,0x24,
-0xB4,0x38,0x03,0xAE,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xB0,0x1B,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0xFF,0xDF,0x42,0x30,
-0x48,0x0E,0x00,0x0C,
-0xB0,0x1B,0x02,0xA6,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x20,0x00,0xB2,0xAF,
-0x21,0x90,0x80,0x00,
-0x00,0x01,0x04,0x24,
-0x24,0x00,0xB3,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x21,0x98,0xA0,0x00,
-0x28,0x00,0xBF,0xAF,
-0x25,0x24,0x00,0x0C,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x21,0x88,0x40,0x00,
-0x20,0xE2,0x84,0x24,
-0x37,0x00,0x40,0x10,
-0x04,0xEB,0xA5,0x24,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x30,0x96,
-0x02,0x80,0x02,0x3C,
-0x21,0x28,0x40,0x02,
-0x25,0x80,0x02,0x02,
-0x24,0x00,0x04,0x26,
-0x20,0x00,0x00,0xA6,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x04,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x30,0x00,0x04,0x26,
-0x88,0x58,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0x03,0x96,
-0x18,0x00,0x02,0x24,
-0x02,0x80,0x05,0x3C,
-0x03,0xFF,0x63,0x30,
-0xC0,0x00,0x63,0x34,
-0x20,0x00,0x03,0xA6,
-0x30,0x1F,0xA5,0x24,
-0x0C,0x00,0x22,0xAE,
-0xF8,0x1D,0xA3,0x94,
-0x20,0x00,0x07,0x26,
-0x38,0x00,0x04,0x26,
-0xFF,0x0F,0x62,0x30,
-0x00,0x11,0x02,0x00,
-0x02,0x32,0x02,0x00,
-0x01,0x00,0x63,0x24,
-0xF8,0x1D,0xA3,0xA4,
-0x17,0x00,0xE6,0xA0,
-0x16,0x00,0xE2,0xA0,
-0x10,0x00,0xA6,0x27,
-0x0C,0x00,0x27,0x26,
-0x02,0x00,0x05,0x24,
-0x68,0x4F,0x00,0x0C,
-0x10,0x00,0xB3,0xA7,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x00,0x00,
-0xB9,0x0C,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x14,0xE2,0x84,0x24,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x20,0x00,0xB2,0xAF,
-0x21,0x90,0x80,0x00,
-0x00,0x01,0x04,0x24,
-0x24,0x00,0xB3,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x21,0x98,0xA0,0x00,
-0x28,0x00,0xBF,0xAF,
-0x25,0x24,0x00,0x0C,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x21,0x88,0x40,0x00,
-0x3C,0xE2,0x84,0x24,
-0x37,0x00,0x40,0x10,
-0x14,0xEB,0xA5,0x24,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x30,0x96,
-0x02,0x80,0x02,0x3C,
-0x21,0x28,0x40,0x02,
-0x25,0x80,0x02,0x02,
-0x24,0x00,0x04,0x26,
-0x20,0x00,0x00,0xA6,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x04,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x30,0x00,0x04,0x26,
-0x88,0x58,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0x03,0x96,
-0x18,0x00,0x02,0x24,
-0x02,0x80,0x05,0x3C,
-0x03,0xFF,0x63,0x30,
-0xA0,0x00,0x63,0x34,
-0x20,0x00,0x03,0xA6,
-0x30,0x1F,0xA5,0x24,
-0x0C,0x00,0x22,0xAE,
-0xF8,0x1D,0xA3,0x94,
-0x20,0x00,0x07,0x26,
-0x38,0x00,0x04,0x26,
-0xFF,0x0F,0x62,0x30,
-0x00,0x11,0x02,0x00,
-0x02,0x32,0x02,0x00,
-0x01,0x00,0x63,0x24,
-0xF8,0x1D,0xA3,0xA4,
-0x17,0x00,0xE6,0xA0,
-0x16,0x00,0xE2,0xA0,
-0x10,0x00,0xA6,0x27,
-0x0C,0x00,0x27,0x26,
-0x02,0x00,0x05,0x24,
-0x68,0x4F,0x00,0x0C,
-0x10,0x00,0xB3,0xA7,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x00,0x00,
-0xB9,0x0C,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x30,0xE2,0x84,0x24,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x2C,0x00,0xB1,0xAF,
-0xFF,0xFF,0x05,0x24,
-0x21,0x88,0x80,0x00,
-0x02,0x00,0x06,0x24,
-0x10,0x00,0xA4,0x27,
-0x34,0x00,0xBF,0xAF,
-0x30,0x00,0xB2,0xAF,
-0x08,0x52,0x00,0x0C,
-0x28,0x00,0xB0,0xAF,
-0x08,0x00,0x30,0x96,
-0x02,0x80,0x02,0x3C,
-0x21,0x28,0x00,0x00,
-0x25,0x80,0x02,0x02,
-0x21,0x20,0x00,0x02,
-0x08,0x52,0x00,0x0C,
-0x10,0x00,0x06,0x24,
-0x20,0x00,0x02,0x96,
-0x24,0x00,0x04,0x26,
-0x10,0x00,0xA5,0x27,
-0x03,0xFF,0x42,0x30,
-0xC8,0x00,0x42,0x34,
-0x20,0x00,0x02,0xA6,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x25,0xB0,0x03,0x3C,
-0x50,0x00,0x62,0x34,
-0x00,0x00,0x44,0x8C,
-0x54,0x00,0x65,0x34,
-0x58,0x00,0x66,0x34,
-0x18,0x00,0xA4,0xAF,
-0x00,0x00,0xA2,0x8C,
-0x5C,0x00,0x63,0x34,
-0x2A,0x00,0x04,0x26,
-0x1C,0x00,0xA2,0xAF,
-0x00,0x00,0xC7,0x8C,
-0x18,0x00,0xA5,0x27,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0xA7,0xAF,
-0x00,0x00,0x62,0x8C,
-0x1A,0x00,0x12,0x24,
-0x10,0x52,0x00,0x0C,
-0x24,0x00,0xA2,0xAF,
-0x30,0x00,0x04,0x26,
-0x20,0x00,0xA5,0x27,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x13,0x00,0x03,0x24,
-0x14,0x00,0x23,0xAE,
-0x0C,0x00,0x32,0xAE,
-0x08,0x00,0x05,0x8E,
-0x04,0x00,0x04,0x8E,
-0xFF,0xDF,0x02,0x3C,
-0x14,0x00,0x06,0x8E,
-0xFF,0xFF,0x42,0x34,
-0x10,0x00,0x07,0x8E,
-0xFF,0xE0,0x03,0x24,
-0x24,0x28,0xA2,0x00,
-0x00,0x40,0x02,0x3C,
-0x24,0x20,0x83,0x00,
-0x25,0x28,0xA2,0x00,
-0xFF,0x81,0x03,0x24,
-0xFE,0xFF,0x02,0x3C,
-0x24,0x30,0xC3,0x00,
-0xFF,0xFF,0x42,0x34,
-0x00,0x12,0x84,0x34,
-0x00,0x80,0x03,0x3C,
-0x24,0x20,0x82,0x00,
-0x25,0x38,0xE3,0x00,
-0x00,0x26,0xC6,0x34,
-0x80,0x00,0xA5,0x34,
-0x20,0x00,0x02,0x24,
-0x00,0x00,0x12,0xA6,
-0x10,0x00,0x07,0xAE,
-0x02,0x00,0x02,0xA2,
-0x14,0x00,0x06,0xAE,
-0x04,0x00,0x04,0xAE,
-0x08,0x00,0x05,0xAE,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB1,0xAF,
-0x01,0x80,0x02,0x3C,
-0x25,0xB0,0x11,0x3C,
-0x18,0x03,0x23,0x36,
-0x80,0x35,0x42,0x24,
-0x28,0x00,0xB4,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x21,0xA0,0x80,0x00,
-0x48,0x00,0xB2,0x93,
-0xFF,0x00,0xE4,0x30,
-0x00,0x00,0x62,0xAC,
-0x24,0x00,0xB3,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x30,0x00,0xBF,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0xFF,0x00,0xB3,0x30,
-0x0D,0x24,0x00,0x0C,
-0xFF,0x00,0xD0,0x30,
-0x66,0x00,0x40,0x10,
-0x10,0x00,0xA2,0xAF,
-0x08,0x00,0x44,0x8C,
-0xB0,0x03,0x22,0x36,
-0x00,0x00,0x44,0xAC,
-0x10,0x00,0xA3,0x8F,
-0x02,0x80,0x02,0x3C,
-0x08,0x00,0x64,0x94,
-0x00,0x00,0x00,0x00,
-0x25,0x88,0x82,0x00,
-0x41,0x00,0x40,0x16,
-0x20,0x00,0x24,0x26,
-0x48,0x00,0x02,0x24,
-0x43,0x00,0x02,0x12,
-0x20,0x00,0x30,0xA6,
-0x04,0x00,0x02,0x24,
-0x47,0x00,0x62,0x16,
-0x21,0x28,0x80,0x02,
-0xA4,0x00,0x02,0x24,
-0x61,0x00,0x02,0x12,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xA2,0x8F,
-0x25,0xB0,0x10,0x3C,
-0xB0,0x03,0x10,0x36,
-0x0C,0x00,0x55,0xAC,
-0x10,0x00,0xA2,0x8F,
-0x12,0x00,0x03,0x24,
-0x21,0x28,0x00,0x00,
-0x14,0x00,0x43,0xAC,
-0x00,0x00,0x15,0xAE,
-0x10,0x00,0xA2,0x8F,
-0x08,0x00,0x06,0x24,
-0x08,0x00,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x03,0xAE,
-0x10,0x00,0xA2,0x8F,
-0x02,0x80,0x03,0x3C,
-0x08,0x00,0x44,0x94,
-0x00,0x00,0x00,0x00,
-0x25,0x88,0x83,0x00,
-0x08,0x52,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x14,0x00,0x25,0x8E,
-0x08,0x00,0x24,0x8E,
-0xFF,0xDF,0x02,0x3C,
-0xFF,0x81,0x03,0x24,
-0xFF,0xFF,0x42,0x34,
-0x24,0x28,0xA3,0x00,
-0x24,0x20,0x82,0x00,
-0x00,0x40,0x03,0x3C,
-0x25,0x20,0x83,0x00,
-0x20,0x00,0x02,0x24,
-0x00,0x24,0xA5,0x34,
-0x00,0x00,0x35,0xA6,
-0x02,0x00,0x22,0xA2,
-0x08,0x00,0x24,0xAE,
-0x14,0x00,0x25,0xAE,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xA3,0x8F,
-0x74,0x57,0x42,0x24,
-0x04,0x00,0x44,0x8C,
-0x00,0x00,0x62,0xAC,
-0x04,0x00,0x43,0xAC,
-0x10,0x00,0xA2,0x27,
-0x00,0x00,0x83,0xAC,
-0x04,0x00,0x64,0xAC,
-0x30,0x00,0xBF,0x8F,
-0x00,0x00,0x02,0xAE,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x00,0x10,0x02,0x36,
-0x20,0x00,0x22,0xA6,
-0x48,0x00,0x02,0x24,
-0xC0,0xFF,0x02,0x16,
-0x04,0x00,0x02,0x24,
-0x20,0x00,0x22,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x42,0x34,
-0x20,0x00,0x22,0xA6,
-0x04,0x00,0x02,0x24,
-0xBB,0xFF,0x62,0x12,
-0x21,0x28,0x80,0x02,
-0x24,0x00,0x24,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x18,0x3B,0xA5,0x24,
-0x2A,0x00,0x24,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x30,0x00,0x24,0x26,
-0x88,0x58,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x88,0x4D,0x00,0x08,
-0x18,0x00,0x15,0x24,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x4C,0xE2,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x24,0xEB,0xA5,0x24,
-0x30,0x00,0xBF,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x80,0x58,0x43,0x94,
-0x02,0x80,0x05,0x3C,
-0x88,0x58,0xA5,0x24,
-0x00,0xC0,0x63,0x24,
-0xFF,0xFF,0x63,0x30,
-0x02,0x12,0x03,0x00,
-0x02,0x00,0x83,0xA0,
-0x03,0x00,0x82,0xA0,
-0x06,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0x24,0x00,0x24,0x26,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x24,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x88,0x4D,0x00,0x08,
-0x18,0x00,0x15,0x24,
-0xB0,0xFF,0xBD,0x27,
-0x3C,0x00,0xB5,0xAF,
-0x38,0x00,0xB4,0xAF,
-0xFF,0xFF,0xF5,0x30,
-0x25,0xB0,0x14,0x3C,
-0x01,0x80,0x02,0x3C,
-0x2C,0x00,0xB1,0xAF,
-0x18,0x03,0x83,0x36,
-0xE8,0x37,0x42,0x24,
-0x20,0x00,0xB1,0x26,
-0x44,0x00,0xB7,0xAF,
-0x34,0x00,0xB3,0xAF,
-0x21,0xB8,0x80,0x00,
-0x60,0x00,0xB3,0x93,
-0x21,0x20,0x20,0x02,
-0x00,0x00,0x62,0xAC,
-0x40,0x00,0xB6,0xAF,
-0x30,0x00,0xB2,0xAF,
-0x48,0x00,0xBF,0xAF,
-0x28,0x00,0xB0,0xAF,
-0xFF,0x00,0xB6,0x30,
-0x25,0x24,0x00,0x0C,
-0xFF,0x00,0xD2,0x30,
-0x11,0x00,0x40,0x14,
-0x20,0x00,0xA2,0xAF,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x58,0xE2,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x30,0xEB,0xA5,0x24,
-0x48,0x00,0xBF,0x8F,
-0x44,0x00,0xB7,0x8F,
-0x40,0x00,0xB6,0x8F,
-0x3C,0x00,0xB5,0x8F,
-0x38,0x00,0xB4,0x8F,
-0x34,0x00,0xB3,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x50,0x00,0xBD,0x27,
-0x08,0x00,0x43,0x8C,
-0xB0,0x03,0x82,0x36,
-0x02,0x80,0x10,0x3C,
-0x00,0x00,0x43,0xAC,
-0x20,0x00,0xA2,0x8F,
-0x21,0x30,0x20,0x02,
-0x21,0x28,0x00,0x00,
-0x08,0x00,0x44,0x94,
-0xFF,0x51,0x00,0x0C,
-0x25,0x20,0x90,0x00,
-0x20,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x25,0x88,0x50,0x00,
-0x51,0x00,0x60,0x16,
-0x20,0x00,0x30,0x26,
-0x20,0x00,0x32,0xA6,
-0x48,0x00,0x02,0x24,
-0x6C,0x00,0x42,0x12,
-0x50,0x00,0x82,0x36,
-0x04,0x00,0x02,0x24,
-0x4D,0x00,0xC2,0x16,
-0x21,0x28,0xE0,0x02,
-0xA4,0x00,0x02,0x24,
-0x7E,0x00,0x42,0x12,
-0x02,0x80,0x02,0x3C,
-0x20,0x00,0xA2,0x8F,
-0x25,0xB0,0x10,0x3C,
-0xB0,0x03,0x10,0x36,
-0x0C,0x00,0x55,0xAC,
-0x20,0x00,0xA2,0x8F,
-0x12,0x00,0x03,0x24,
-0x21,0x28,0x00,0x00,
-0x14,0x00,0x43,0xAC,
-0x00,0x00,0x15,0xAE,
-0x20,0x00,0xA2,0x8F,
-0x08,0x00,0x06,0x24,
-0x08,0x00,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x03,0xAE,
-0x20,0x00,0xA2,0x8F,
-0x02,0x80,0x03,0x3C,
-0x08,0x00,0x44,0x94,
-0x00,0x00,0x00,0x00,
-0x25,0x88,0x83,0x00,
-0x08,0x52,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x04,0x00,0x25,0x8E,
-0x08,0x00,0x26,0x8E,
-0x14,0x00,0x27,0x8E,
-0x10,0x00,0x24,0x8E,
-0xFF,0xE0,0x03,0x24,
-0xFF,0xDF,0x02,0x3C,
-0x24,0x28,0xA3,0x00,
-0xFF,0xFF,0x42,0x34,
-0xFF,0x81,0x03,0x24,
-0x24,0x38,0xE3,0x00,
-0x24,0x30,0xC2,0x00,
-0x00,0x80,0x03,0x3C,
-0x00,0x40,0x02,0x3C,
-0x25,0x30,0xC2,0x00,
-0x25,0x20,0x83,0x00,
-0x00,0x12,0xA5,0x34,
-0x20,0x00,0x02,0x24,
-0x10,0x00,0x24,0xAE,
-0x00,0x00,0x35,0xA6,
-0x02,0x00,0x22,0xA2,
-0x04,0x00,0x25,0xAE,
-0x14,0x00,0x27,0xAE,
-0x08,0x00,0x26,0xAE,
-0x00,0x60,0x05,0x40,
-0x01,0x00,0xA1,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x02,0x3C,
-0x20,0x00,0xA3,0x8F,
-0x74,0x57,0x42,0x24,
-0x04,0x00,0x44,0x8C,
-0x00,0x00,0x62,0xAC,
-0x04,0x00,0x43,0xAC,
-0x20,0x00,0xA2,0x27,
-0x00,0x00,0x83,0xAC,
-0x04,0x00,0x64,0xAC,
-0x00,0x00,0x02,0xAE,
-0x00,0x60,0x85,0x40,
-0x48,0x00,0xBF,0x8F,
-0x44,0x00,0xB7,0x8F,
-0x40,0x00,0xB6,0x8F,
-0x3C,0x00,0xB5,0x8F,
-0x38,0x00,0xB4,0x8F,
-0x34,0x00,0xB3,0x8F,
-0x30,0x00,0xB2,0x8F,
-0x2C,0x00,0xB1,0x8F,
-0x28,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x50,0x00,0xBD,0x27,
-0x00,0x10,0x42,0x36,
-0x35,0x4E,0x00,0x08,
-0x20,0x00,0x22,0xA6,
-0x24,0x00,0x24,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x18,0x3B,0xA5,0x24,
-0x2A,0x00,0x24,0x26,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x30,0x00,0x24,0x26,
-0x88,0x58,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x30,0x1F,0xA5,0x24,
-0xF8,0x1D,0xA6,0x94,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0xC2,0x24,
-0x00,0x21,0x06,0x00,
-0xFF,0xFF,0x46,0x30,
-0xFF,0xFF,0x84,0x30,
-0x00,0x10,0xC2,0x2C,
-0x0A,0x30,0x02,0x00,
-0x02,0x1A,0x04,0x00,
-0x17,0x00,0x03,0xA2,
-0x16,0x00,0x04,0xA2,
-0x3E,0x4E,0x00,0x08,
-0xF8,0x1D,0xA6,0xA4,
-0x00,0x00,0x43,0x8C,
-0x54,0x00,0x84,0x36,
-0x58,0x00,0x85,0x36,
-0x10,0x00,0xA3,0xAF,
-0x00,0x00,0x82,0x8C,
-0x5C,0x00,0x87,0x36,
-0x2A,0x00,0x24,0x26,
-0x14,0x00,0xA2,0xAF,
-0x00,0x00,0xA3,0x8C,
-0x06,0x00,0x06,0x24,
-0x10,0x00,0xA5,0x27,
-0x18,0x00,0xA3,0xAF,
-0x00,0x00,0xE2,0x8C,
-0x10,0x52,0x00,0x0C,
-0x1C,0x00,0xA2,0xAF,
-0x30,0x00,0x24,0x26,
-0x18,0x00,0xA5,0x27,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x20,0x00,0x23,0x96,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x63,0x34,
-0x38,0x4E,0x00,0x08,
-0x20,0x00,0x23,0xA6,
-0x80,0x58,0x43,0x94,
-0x02,0x80,0x05,0x3C,
-0x24,0x00,0x24,0x26,
-0x00,0xC0,0x63,0x24,
-0xFF,0xFF,0x63,0x30,
-0x02,0x12,0x03,0x00,
-0x88,0x58,0xA5,0x24,
-0x03,0x00,0x02,0xA2,
-0x02,0x00,0x03,0xA2,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x02,0x80,0x05,0x3C,
-0x2A,0x00,0x24,0x26,
-0x18,0x3B,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x3E,0x4E,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB0,0xAF,
-0xFF,0x00,0x90,0x30,
-0x02,0x80,0x04,0x3C,
-0x21,0x28,0x00,0x02,
-0x1C,0x00,0xBF,0xAF,
-0x2F,0x55,0x00,0x0C,
-0x64,0xE2,0x84,0x24,
-0x02,0x80,0x04,0x3C,
-0x88,0x58,0x84,0x24,
-0x08,0x00,0x05,0x24,
-0x48,0x00,0x06,0x24,
-0x18,0x00,0x07,0x24,
-0xFA,0x4D,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x01,0x00,0x02,0x24,
-0x21,0x28,0x00,0x00,
-0x90,0x00,0x06,0x24,
-0x21,0x38,0x00,0x00,
-0x18,0x00,0xBF,0xAF,
-0x60,0x4D,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x20,0x00,0xB0,0xAF,
-0xFF,0xFF,0x05,0x24,
-0xFF,0x00,0x90,0x30,
-0x02,0x00,0x06,0x24,
-0x24,0x00,0xBF,0xAF,
-0x08,0x52,0x00,0x0C,
-0x18,0x00,0xA4,0x27,
-0x18,0x00,0xA4,0x27,
-0x08,0x00,0x05,0x24,
-0xC8,0x00,0x06,0x24,
-0x21,0x38,0x00,0x00,
-0x60,0x4D,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x02,0x80,0x05,0x3C,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x30,0x1F,0xA5,0x24,
-0x50,0x39,0xA2,0x94,
-0x01,0x00,0x03,0x24,
-0xFF,0x00,0x90,0x30,
-0x00,0xC0,0x42,0x24,
-0xFF,0xFF,0x44,0x30,
-0xC2,0x34,0x00,0x0C,
-0x2A,0x1C,0xA3,0xA0,
-0x02,0x80,0x04,0x3C,
-0x88,0x58,0x84,0x24,
-0x04,0x00,0x05,0x24,
-0xA4,0x00,0x06,0x24,
-0x10,0x00,0x07,0x24,
-0xFA,0x4D,0x00,0x0C,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x08,0x00,0xE0,0x03,
-0x08,0x00,0x82,0x24,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x17,0x4F,0x00,0x0C,
-0x74,0x00,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x10,0x00,0xA4,0x27,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x10,0x00,0xA2,0x97,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x17,0x4F,0x00,0x0C,
-0x10,0x00,0xA5,0xA7,
-0x21,0x20,0x40,0x00,
-0x10,0x00,0xA5,0x27,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x0A,0x00,0x82,0x24,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x32,0x4F,0x00,0x0C,
-0x74,0x00,0x84,0x24,
-0x21,0x28,0x40,0x00,
-0x10,0x00,0xA4,0x27,
-0x10,0x52,0x00,0x0C,
-0x02,0x00,0x06,0x24,
-0x10,0x00,0xA2,0x97,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0x80,0x00,
-0x00,0x00,0x05,0xA2,
-0x01,0x00,0x06,0xA2,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x21,0x88,0xC0,0x00,
-0x02,0x00,0x84,0x24,
-0x30,0x00,0xB2,0x8F,
-0x0D,0x00,0xC0,0x14,
-0x21,0x28,0xE0,0x00,
-0x00,0x00,0x43,0x8E,
-0x21,0x10,0x11,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x21,0x18,0x71,0x00,
-0x02,0x00,0x63,0x24,
-0x00,0x00,0x43,0xAE,
-0x14,0x00,0xB1,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x02,0x00,0x42,0x24,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x10,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x43,0x8E,
-0x21,0x10,0x11,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x21,0x18,0x71,0x00,
-0x02,0x00,0x63,0x24,
-0x00,0x00,0x43,0xAE,
-0x14,0x00,0xB1,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x02,0x00,0x42,0x24,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0xA0,0x00,
-0x18,0x00,0xB2,0xAF,
-0x21,0x28,0xC0,0x00,
-0x21,0x90,0xE0,0x00,
-0x21,0x30,0x00,0x02,
-0x1C,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x52,0x00,0x0C,
-0x21,0x88,0x80,0x00,
-0x00,0x00,0x43,0x8E,
-0x21,0x10,0x30,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x21,0x18,0x70,0x00,
-0x00,0x00,0x43,0xAE,
-0x14,0x00,0xB1,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x7F,0x00,0x84,0x30,
-0x6D,0x00,0x82,0x2C,
-0x0A,0x00,0x40,0x10,
-0x21,0x28,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x04,0x00,
-0x58,0xEB,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x21,0x28,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x0B,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x0A,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x09,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x08,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x07,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x06,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x03,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x05,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x04,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x02,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x01,0x00,0x05,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x7F,0x00,0x84,0x30,
-0x0C,0x00,0x82,0x2C,
-0x0A,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x04,0x00,
-0x0C,0xED,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x6C,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x60,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x48,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x30,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x24,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x18,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x12,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x0C,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x16,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x0B,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x04,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x02,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0xC8,0xFF,0xBD,0x27,
-0x24,0x00,0xB5,0xAF,
-0x02,0x80,0x15,0x3C,
-0x2C,0x00,0xB7,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x30,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0xB8,0x80,0x00,
-0x21,0xA0,0x00,0x00,
-0x21,0x98,0x00,0x00,
-0x30,0x1F,0xB6,0x26,
-0x30,0x1F,0xA2,0x26,
-0x21,0x10,0x62,0x02,
-0xFB,0x1B,0x51,0x90,
-0xFE,0x00,0x03,0x24,
-0x1E,0x00,0x23,0x12,
-0xFF,0x00,0x02,0x24,
-0x21,0x00,0x22,0x12,
-0x21,0x10,0x80,0x02,
-0xAD,0x4F,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x21,0x88,0x40,0x00,
-0x21,0x80,0x00,0x00,
-0x21,0x90,0xC0,0x02,
-0x21,0x10,0x12,0x02,
-0xEE,0x1B,0x44,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x82,0x24,
-0xFF,0x00,0x42,0x30,
-0x02,0x00,0x42,0x2C,
-0x05,0x00,0x40,0x14,
-0x01,0x00,0x10,0x26,
-0xAD,0x4F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x51,0x10,
-0x01,0x00,0x03,0x24,
-0x0D,0x00,0x02,0x2A,
-0xF3,0xFF,0x40,0x14,
-0x21,0x10,0x12,0x02,
-0x21,0x18,0x00,0x00,
-0x01,0x00,0x02,0x24,
-0x14,0x00,0x62,0x10,
-0xFF,0x00,0x22,0x32,
-0x21,0x10,0xF4,0x02,
-0x00,0x00,0x51,0xA0,
-0x01,0x00,0x94,0x26,
-0x01,0x00,0x73,0x26,
-0x0D,0x00,0x62,0x2A,
-0xDB,0xFF,0x40,0x14,
-0x30,0x1F,0xA2,0x26,
-0x21,0x10,0x80,0x02,
-0x30,0x00,0xBF,0x8F,
-0x2C,0x00,0xB7,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x0C,0x50,0x00,0x08,
-0x80,0x00,0x51,0x34,
-0xD0,0xFF,0xBD,0x27,
-0x24,0x00,0xB1,0xAF,
-0x20,0x00,0xB0,0xAF,
-0x21,0x88,0x80,0x00,
-0x21,0x80,0xA0,0x00,
-0x0D,0x00,0x06,0x24,
-0x21,0x28,0x00,0x00,
-0x28,0x00,0xBF,0xAF,
-0xFF,0x51,0x00,0x0C,
-0x10,0x00,0xA4,0x27,
-0xDD,0x4F,0x00,0x0C,
-0x10,0x00,0xA4,0x27,
-0x00,0x00,0x02,0xAE,
-0x21,0x20,0x20,0x02,
-0x10,0x00,0xA5,0x27,
-0x10,0x52,0x00,0x0C,
-0x21,0x30,0x40,0x00,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x21,0x28,0x00,0x00,
-0x21,0x10,0x85,0x00,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x60,0x10,
-0x0D,0x00,0xA2,0x2C,
-0xFA,0xFF,0x40,0x14,
-0x01,0x00,0xA5,0x24,
-0xFF,0xFF,0xA5,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x00,0x00,0x82,0x94,
-0x21,0x30,0x80,0x00,
-0x10,0x00,0x85,0x24,
-0x42,0x1A,0x02,0x00,
-0xC2,0x11,0x02,0x00,
-0x02,0x00,0x42,0x30,
-0x01,0x00,0x63,0x30,
-0x25,0x18,0x43,0x00,
-0x01,0x00,0x04,0x24,
-0x07,0x00,0x64,0x10,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x60,0x10,
-0x0A,0x00,0xC5,0x24,
-0x02,0x00,0x02,0x24,
-0x02,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xC5,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x00,0x00,0x82,0x94,
-0x21,0x30,0x80,0x00,
-0x04,0x00,0x85,0x24,
-0x42,0x1A,0x02,0x00,
-0xC2,0x11,0x02,0x00,
-0x02,0x00,0x42,0x30,
-0x01,0x00,0x63,0x30,
-0x25,0x18,0x43,0x00,
-0x01,0x00,0x04,0x24,
-0x04,0x00,0x64,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xC5,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xA0,0x00,
-0x13,0x00,0xA0,0x18,
-0x21,0x30,0x00,0x00,
-0x02,0x00,0x07,0x24,
-0x04,0x00,0x08,0x24,
-0x0B,0x00,0x09,0x24,
-0x16,0x00,0x0A,0x24,
-0x21,0x10,0x86,0x00,
-0x00,0x00,0x43,0x90,
-0x01,0x00,0xC6,0x24,
-0x7F,0x00,0x63,0x30,
-0x07,0x00,0x67,0x10,
-0x2A,0x10,0xC5,0x00,
-0x05,0x00,0x68,0x10,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x69,0x10,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x6A,0x14,
-0x00,0x00,0x00,0x00,
-0xF3,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x02,0x80,0x02,0x3C,
-0x80,0x5D,0x43,0x8C,
-0x08,0x00,0x10,0x24,
-0x06,0x00,0xA0,0x14,
-0x0A,0x80,0x03,0x00,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x65,0x50,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x03,0x36,
-0x01,0x00,0x42,0x38,
-0x03,0x00,0x04,0x36,
-0x21,0x80,0x60,0x00,
-0x0B,0x80,0x82,0x00,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x0E,0x00,0xA3,0x2C,
-0x21,0x88,0xA0,0x00,
-0x0D,0x00,0x02,0x24,
-0x0A,0x88,0x43,0x00,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x21,0x98,0x80,0x00,
-0x21,0x90,0x00,0x00,
-0x15,0x00,0x20,0x12,
-0x21,0x80,0x00,0x00,
-0xAA,0x50,0x00,0x08,
-0x01,0x00,0x14,0x24,
-0x2B,0x10,0x11,0x02,
-0x11,0x00,0x40,0x10,
-0x21,0x10,0x40,0x02,
-0x21,0x18,0x70,0x02,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x44,0x30,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0xF6,0xFF,0x41,0x04,
-0x01,0x00,0x10,0x26,
-0x7D,0x4F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x04,0x10,0x54,0x00,
-0x25,0x90,0x42,0x02,
-0x2B,0x10,0x11,0x02,
-0xF3,0xFF,0x40,0x14,
-0x21,0x18,0x70,0x02,
-0x21,0x10,0x40,0x02,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x0E,0x00,0xA3,0x2C,
-0x21,0x88,0xA0,0x00,
-0x0D,0x00,0x02,0x24,
-0x0A,0x88,0x43,0x00,
-0x20,0x00,0xB4,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x21,0xA0,0x80,0x00,
-0x21,0x90,0x00,0x00,
-0x0A,0x00,0x20,0x12,
-0x21,0x80,0x00,0x00,
-0x01,0x00,0x13,0x24,
-0x21,0x10,0x90,0x02,
-0x00,0x00,0x44,0x90,
-0x7D,0x4F,0x00,0x0C,
-0x01,0x00,0x10,0x26,
-0x04,0x10,0x53,0x00,
-0x2B,0x18,0x11,0x02,
-0xF9,0xFF,0x60,0x14,
-0x25,0x90,0x42,0x02,
-0x21,0x10,0x40,0x02,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xE8,0xFF,0xBD,0x27,
-0xFF,0xFF,0x02,0x24,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x21,0x30,0xA0,0x00,
-0x1B,0x00,0x82,0x10,
-0x20,0x00,0x10,0x24,
-0x20,0x00,0x82,0x28,
-0x06,0x00,0x40,0x14,
-0x80,0x18,0x04,0x00,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x21,0x18,0x64,0x00,
-0x21,0x80,0x80,0x00,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x04,0x3C,
-0xC0,0x18,0x03,0x00,
-0x30,0x1F,0x42,0x24,
-0x2B,0x3D,0x84,0x24,
-0x21,0x20,0x64,0x00,
-0x21,0x18,0x62,0x00,
-0x01,0x00,0x02,0x24,
-0x06,0x00,0x06,0x24,
-0x10,0x52,0x00,0x0C,
-0xFA,0x1D,0x62,0xA0,
-0x21,0x10,0x00,0x02,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0xC8,0x00,0x47,0x24,
-0x05,0x00,0x10,0x24,
-0xC2,0x1E,0x43,0x24,
-0x10,0x51,0x00,0x08,
-0xC8,0x00,0x05,0x24,
-0x01,0x00,0x10,0x26,
-0x20,0x00,0x02,0x2E,
-0x28,0x00,0xA5,0x24,
-0xDE,0xFF,0x40,0x10,
-0x28,0x00,0xE7,0x24,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0xF8,0xFF,0x40,0x14,
-0x28,0x00,0x63,0x24,
-0x02,0x80,0x04,0x3C,
-0x2B,0x3D,0x84,0x24,
-0x01,0x00,0x02,0x24,
-0x21,0x20,0xA4,0x00,
-0xFA,0x1D,0xE2,0xA0,
-0x21,0x28,0xC0,0x00,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x00,0x51,0x00,0x08,
-0x21,0x10,0x00,0x02,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x30,0x00,0xB2,0x8F,
-0x21,0x88,0x80,0x00,
-0x21,0x20,0xA0,0x00,
-0x21,0x28,0x20,0x02,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0xE3,0x50,0x00,0x0C,
-0xFF,0xFF,0xF0,0x30,
-0x20,0x00,0x03,0x24,
-0x21,0x20,0x40,0x00,
-0x21,0x28,0x00,0x02,
-0x21,0x30,0x20,0x02,
-0x07,0x00,0x43,0x10,
-0x21,0x38,0x40,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x4E,0x23,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0xA8,0x80,0x00,
-0x30,0x1F,0x54,0x24,
-0x2B,0x3D,0x73,0x24,
-0x05,0x00,0x11,0x24,
-0x01,0x00,0x12,0x24,
-0xC8,0x00,0x10,0x24,
-0x50,0x51,0x00,0x08,
-0x28,0x00,0xBF,0xAF,
-0x01,0x00,0x31,0x26,
-0x20,0x00,0x22,0x2A,
-0x0E,0x00,0x40,0x10,
-0x21,0x10,0x20,0x02,
-0x21,0x10,0x14,0x02,
-0xFA,0x1D,0x43,0x90,
-0x21,0x20,0x13,0x02,
-0x21,0x28,0xA0,0x02,
-0x06,0x00,0x06,0x24,
-0xF6,0xFF,0x72,0x14,
-0x28,0x00,0x10,0x26,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF3,0xFF,0x40,0x14,
-0x01,0x00,0x31,0x26,
-0xFF,0xFF,0x31,0x26,
-0x21,0x10,0x20,0x02,
-0x28,0x00,0xBF,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x98,0x80,0x00,
-0x30,0x1F,0x56,0x24,
-0x2B,0x3D,0x75,0x24,
-0x21,0x88,0x00,0x00,
-0x01,0x00,0x14,0x24,
-0x21,0x80,0x00,0x00,
-0x2C,0x00,0xBF,0xAF,
-0x7C,0x51,0x00,0x08,
-0x18,0x00,0xB2,0xAF,
-0x01,0x00,0x31,0x26,
-0x20,0x00,0x22,0x2A,
-0x1E,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x90,0x16,0x02,
-0xFA,0x1D,0x42,0x92,
-0x21,0x20,0x15,0x02,
-0x21,0x28,0x60,0x02,
-0x06,0x00,0x06,0x24,
-0xF6,0xFF,0x54,0x14,
-0x28,0x00,0x10,0x26,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xF3,0xFF,0x40,0x14,
-0x01,0x00,0x31,0x26,
-0xFF,0xFF,0x31,0x26,
-0x02,0x80,0x06,0x3C,
-0x02,0x80,0x07,0x3C,
-0x21,0x20,0x20,0x02,
-0xFA,0x1D,0x40,0xA2,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xE8,0xDD,0xC6,0x24,
-0xD8,0xDD,0xE7,0x24,
-0x21,0x28,0x00,0x00,
-0x4E,0x23,0x00,0x08,
-0x30,0x00,0xBD,0x27,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x18,0x00,0xB2,0xAF,
-0x30,0x1F,0x52,0x24,
-0x30,0x00,0xBE,0xAF,
-0x2C,0x00,0xB7,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x21,0x80,0x00,0x00,
-0x02,0x80,0x1E,0x3C,
-0x02,0x80,0x17,0x3C,
-0x02,0x80,0x16,0x3C,
-0x01,0x00,0x13,0x24,
-0xFF,0xF7,0x15,0x24,
-0xFF,0xEF,0x14,0x24,
-0x21,0x88,0x40,0x02,
-0xFA,0x1D,0x22,0x92,
-0xC0,0x48,0x10,0x00,
-0xEA,0x5D,0xC7,0x93,
-0x41,0x00,0x53,0x10,
-0x21,0x30,0x32,0x01,
-0xE8,0x22,0xC2,0x8C,
-0xBF,0xFF,0x03,0x24,
-0x24,0x28,0x43,0x00,
-0x80,0x07,0xA3,0x34,
-0x24,0x10,0x75,0x00,
-0x31,0x00,0xF3,0x10,
-0x24,0x10,0x54,0x00,
-0xE8,0x22,0xC2,0xAC,
-0x21,0x48,0x32,0x01,
-0xE8,0x22,0x23,0x8D,
-0xFD,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0xFB,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0xE7,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0xFF,0xFD,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xEC,0x22,0x28,0x8D,
-0x24,0x18,0x62,0x00,
-0xFF,0xFB,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0xFF,0xE7,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x1F,0x00,0x06,0x3C,
-0x00,0x80,0x08,0x35,
-0x24,0x18,0x62,0x00,
-0x25,0x40,0x06,0x01,
-0x21,0x20,0x00,0x02,
-0xE8,0x22,0x23,0xAD,
-0x01,0x00,0x10,0x26,
-0x21,0x28,0x00,0x00,
-0xE8,0xDD,0xE6,0x26,
-0xD8,0xDD,0xC7,0x26,
-0x4E,0x23,0x00,0x0C,
-0xEC,0x22,0x28,0xAD,
-0x20,0x00,0x03,0x2A,
-0xD1,0xFF,0x60,0x14,
-0x28,0x00,0x31,0x26,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xBE,0x8F,
-0x2C,0x00,0xB7,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0xEB,0x5D,0x44,0x90,
-0x24,0x18,0x75,0x00,
-0x80,0x0F,0xA2,0x34,
-0x00,0x10,0x63,0x34,
-0xCA,0xFF,0x87,0x14,
-0x24,0x10,0x54,0x00,
-0xC5,0x51,0x00,0x08,
-0xE8,0x22,0xC3,0xAC,
-0xBD,0x51,0x00,0x08,
-0xFA,0x1D,0x20,0xA2,
-0x04,0x52,0x00,0x08,
-0xFF,0x00,0xA5,0x30,
-0x00,0x00,0x85,0xA0,
-0xFF,0xFF,0xC6,0x24,
-0x01,0x00,0x84,0x24,
-0xFC,0xFF,0xC0,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x85,0xAC,
-0xFF,0xFF,0xC6,0x24,
-0xFD,0xFF,0xC0,0x14,
-0x04,0x00,0x84,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x21,0x38,0x80,0x00,
-0x08,0x00,0xC0,0x10,
-0xFF,0xFF,0xC3,0x24,
-0xFF,0xFF,0x06,0x24,
-0x00,0x00,0xA2,0x90,
-0xFF,0xFF,0x63,0x24,
-0x01,0x00,0xA5,0x24,
-0x00,0x00,0xE2,0xA0,
-0xFB,0xFF,0x66,0x14,
-0x01,0x00,0xE7,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x2B,0x10,0xA4,0x00,
-0x0D,0x00,0x40,0x14,
-0xFF,0xFF,0x02,0x24,
-0xFF,0xFF,0xC6,0x24,
-0x08,0x00,0xC2,0x10,
-0x21,0x18,0x80,0x00,
-0xFF,0xFF,0x07,0x24,
-0x00,0x00,0xA2,0x90,
-0xFF,0xFF,0xC6,0x24,
-0x01,0x00,0xA5,0x24,
-0x00,0x00,0x62,0xA0,
-0xFB,0xFF,0xC7,0x14,
-0x01,0x00,0x63,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x21,0x28,0xA6,0x00,
-0x21,0x18,0x86,0x00,
-0xFF,0xFF,0xC6,0x24,
-0xFA,0xFF,0xC2,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x07,0x24,
-0xFF,0xFF,0xA5,0x24,
-0x00,0x00,0xA2,0x90,
-0xFF,0xFF,0x63,0x24,
-0xFF,0xFF,0xC6,0x24,
-0xFB,0xFF,0xC7,0x14,
-0x00,0x00,0x62,0xA0,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x0C,0x00,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0xA3,0x90,
-0x01,0x00,0x84,0x24,
-0x23,0x10,0x43,0x00,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x04,0x00,0x40,0x14,
-0x01,0x00,0xA5,0x24,
-0xFF,0xFF,0xC6,0x24,
-0xF6,0xFF,0xC0,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xC0,0x00,
-0x4F,0x52,0x00,0x08,
-0x21,0x18,0x86,0x00,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x45,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x84,0x24,
-0xFA,0xFF,0x83,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0x09,0x00,0xC0,0x10,
-0xFF,0xFF,0xC3,0x24,
-0xFF,0x00,0xA5,0x30,
-0xFF,0xFF,0x06,0x24,
-0x00,0x00,0x82,0x90,
-0xFF,0xFF,0x63,0x24,
-0x05,0x00,0x45,0x10,
-0x01,0x00,0x84,0x24,
-0xFB,0xFF,0x66,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0xFF,0xFF,0x82,0x24,
-0x21,0x38,0x00,0x00,
-0x1F,0x00,0xC0,0x10,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x40,0xF2,0x4B,0x24,
-0x00,0x00,0x87,0x90,
-0x00,0x00,0xA3,0x90,
-0xFF,0xFF,0xC6,0x24,
-0x01,0x00,0x84,0x24,
-0x21,0x10,0xEB,0x00,
-0x16,0x00,0xE0,0x10,
-0x01,0x00,0xA5,0x24,
-0x14,0x00,0x60,0x10,
-0x21,0x48,0x6B,0x00,
-0x10,0x00,0xE3,0x10,
-0x20,0x00,0xE8,0x24,
-0x00,0x00,0x42,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x30,
-0x02,0x00,0x40,0x10,
-0x20,0x00,0x6A,0x24,
-0xFF,0x00,0x07,0x31,
-0x00,0x00,0x22,0x91,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x30,
-0x02,0x00,0x40,0x10,
-0xFF,0x00,0xE7,0x30,
-0xFF,0x00,0x43,0x31,
-0xFF,0x00,0x63,0x30,
-0x03,0x00,0xE3,0x14,
-0x00,0x00,0x00,0x00,
-0xE5,0xFF,0xC0,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x23,0x10,0xE3,0x00,
-0x21,0x18,0x80,0x00,
-0x00,0x00,0xA2,0x90,
-0x01,0x00,0xA5,0x24,
-0x00,0x00,0x82,0xA0,
-0xFC,0xFF,0x40,0x14,
-0x01,0x00,0x84,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x21,0x38,0x80,0x00,
-0xFF,0xFF,0x03,0x24,
-0xFF,0xFF,0xC6,0x24,
-0x06,0x00,0xC3,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0x90,
-0x01,0x00,0xA5,0x24,
-0x00,0x00,0x82,0xA0,
-0xF9,0xFF,0x40,0x14,
-0x01,0x00,0x84,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xE0,0x00,
-0x00,0x00,0x82,0x80,
-0x9E,0x52,0x00,0x08,
-0x21,0x18,0x80,0x00,
-0x01,0x00,0x84,0x24,
-0x00,0x00,0x82,0x80,
-0x00,0x00,0x00,0x00,
-0xFC,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0x90,
-0x01,0x00,0xA5,0x24,
-0x00,0x00,0x82,0xA0,
-0xFC,0xFF,0x40,0x14,
-0x01,0x00,0x84,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x12,0x00,0xC0,0x10,
-0x21,0x18,0x80,0x00,
-0x00,0x00,0x82,0x80,
-0xAF,0x52,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x84,0x24,
-0x00,0x00,0x82,0x80,
-0x00,0x00,0x00,0x00,
-0xFC,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0x90,
-0x01,0x00,0xA5,0x24,
-0x00,0x00,0x82,0xA0,
-0x05,0x00,0x40,0x10,
-0x01,0x00,0x84,0x24,
-0xFF,0xFF,0xC6,0x24,
-0xF9,0xFF,0xC0,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x80,0xA0,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x00,0x00,0x83,0x90,
-0x00,0x00,0xA2,0x90,
-0x01,0x00,0x84,0x24,
-0x23,0x10,0x62,0x00,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x03,0x00,0x40,0x14,
-0x01,0x00,0xA5,0x24,
-0xF7,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x00,0x00,
-0x0B,0x00,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0x90,
-0x00,0x00,0x83,0x90,
-0xFF,0xFF,0xC6,0x24,
-0x23,0x10,0x62,0x00,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x03,0x00,0x40,0x14,
-0x01,0x00,0xA5,0x24,
-0xF5,0xFF,0x60,0x14,
-0x01,0x00,0x84,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x83,0x80,
-0x00,0x2E,0x05,0x00,
-0x21,0x10,0x80,0x00,
-0xE0,0x52,0x00,0x08,
-0x03,0x2E,0x05,0x00,
-0x07,0x00,0x60,0x10,
-0x01,0x00,0x42,0x24,
-0x00,0x00,0x43,0x80,
-0x00,0x00,0x00,0x00,
-0xFB,0xFF,0x65,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x00,0x00,0x82,0x80,
-0xEC,0x52,0x00,0x08,
-0x21,0x18,0x80,0x00,
-0x01,0x00,0x63,0x24,
-0x00,0x00,0x62,0x80,
-0x00,0x00,0x00,0x00,
-0xFC,0xFF,0x40,0x14,
-0x23,0x10,0x64,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x21,0x80,0xA0,0x00,
-0x14,0x00,0xB1,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x21,0x88,0x80,0x00,
-0xE6,0x52,0x00,0x0C,
-0x00,0x86,0x10,0x00,
-0x21,0x18,0x51,0x00,
-0x03,0x86,0x10,0x00,
-0x00,0x00,0x62,0x80,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x50,0x10,
-0x21,0x10,0x60,0x00,
-0xFF,0xFF,0x63,0x24,
-0x2B,0x10,0x71,0x00,
-0xF9,0xFF,0x40,0x10,
-0x21,0x10,0x00,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x21,0x30,0x80,0x00,
-0x0D,0x00,0xA0,0x10,
-0xFF,0xFF,0xA3,0x24,
-0x00,0x00,0x82,0x80,
-0x00,0x00,0x00,0x00,
-0x09,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x05,0x24,
-0xFF,0xFF,0x63,0x24,
-0x05,0x00,0x65,0x10,
-0x01,0x00,0xC6,0x24,
-0x00,0x00,0xC2,0x80,
-0x00,0x00,0x00,0x00,
-0xFA,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x23,0x10,0xC4,0x00,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x19,0x00,0x40,0x10,
-0x21,0x40,0x00,0x00,
-0x00,0x00,0xA9,0x80,
-0x00,0x00,0x00,0x00,
-0x17,0x00,0x20,0x11,
-0x21,0x30,0xA0,0x00,
-0x00,0x3E,0x02,0x00,
-0x03,0x3E,0x07,0x00,
-0x21,0x18,0x20,0x01,
-0x15,0x00,0xE3,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0xC6,0x24,
-0x00,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x1E,0x02,0x00,
-0x03,0x1E,0x03,0x00,
-0xF8,0xFF,0x60,0x14,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x06,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x84,0x24,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0xEB,0xFF,0x40,0x14,
-0x01,0x00,0x08,0x25,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x01,
-0x00,0x00,0xA2,0x90,
-0x31,0x53,0x00,0x08,
-0x00,0x16,0x02,0x00,
-0x00,0x00,0xC2,0x90,
-0x31,0x53,0x00,0x08,
-0x00,0x16,0x02,0x00,
-0x00,0x00,0x87,0x90,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xE0,0x10,
-0x21,0x10,0x80,0x00,
-0x00,0x00,0xA4,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x1E,0x04,0x00,
-0x03,0x1E,0x03,0x00,
-0x09,0x00,0x60,0x10,
-0x21,0x30,0xA0,0x00,
-0x00,0x3E,0x07,0x00,
-0x03,0x3E,0x07,0x00,
-0x0B,0x00,0xE3,0x10,
-0x01,0x00,0xC6,0x24,
-0x00,0x00,0xC3,0x80,
-0x00,0x00,0x00,0x00,
-0xFB,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0x00,0x00,0x47,0x90,
-0x00,0x00,0x00,0x00,
-0xF0,0xFF,0xE0,0x14,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x21,0x80,0x80,0x00,
-0x1D,0x00,0x80,0x10,
-0x21,0x88,0xA0,0x00,
-0x1D,0x53,0x00,0x0C,
-0x21,0x20,0x00,0x02,
-0x21,0x80,0x02,0x02,
-0x00,0x00,0x02,0x82,
-0x21,0x28,0x20,0x02,
-0x21,0x20,0x00,0x02,
-0x22,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x41,0x53,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x40,0x10,
-0x21,0x18,0x40,0x00,
-0x00,0x00,0x42,0x80,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x5C,0xF3,0x43,0xAC,
-0x21,0x18,0x00,0x02,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x00,0x00,0x60,0xA0,
-0x72,0x53,0x00,0x08,
-0x01,0x00,0x63,0x24,
-0x02,0x80,0x02,0x3C,
-0x5C,0xF3,0x50,0x8C,
-0x00,0x00,0x00,0x00,
-0xF3,0xFF,0x00,0x12,
-0x21,0x18,0x00,0x00,
-0x1D,0x53,0x00,0x0C,
-0x21,0x20,0x00,0x02,
-0x21,0x80,0x02,0x02,
-0x00,0x00,0x02,0x82,
-0x21,0x28,0x20,0x02,
-0x21,0x20,0x00,0x02,
-0xE0,0xFF,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x02,0x80,0x02,0x3C,
-0x5C,0xF3,0x40,0xAC,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x90,0x8C,
-0x21,0x90,0x80,0x00,
-0x21,0x88,0xA0,0x00,
-0x21,0x18,0x00,0x00,
-0x0F,0x00,0x00,0x12,
-0x21,0x20,0x00,0x02,
-0x1D,0x53,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x80,0x02,0x02,
-0x00,0x00,0x02,0x82,
-0x21,0x28,0x20,0x02,
-0x21,0x20,0x00,0x02,
-0x07,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x41,0x53,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x40,0x00,
-0x09,0x00,0x40,0x14,
-0x00,0x00,0x42,0xAE,
-0x21,0x18,0x00,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x00,0x00,0x42,0x80,
-0x00,0x00,0x00,0x00,
-0xF5,0xFF,0x40,0x10,
-0x01,0x00,0x64,0x24,
-0x00,0x00,0x60,0xA0,
-0xAB,0x53,0x00,0x08,
-0x00,0x00,0x44,0xAE,
-0xD8,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x21,0x88,0x80,0x00,
-0x21,0x20,0xA0,0x00,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0xE6,0x52,0x00,0x0C,
-0x21,0x98,0xA0,0x00,
-0x21,0x90,0x40,0x00,
-0x08,0x00,0x40,0x16,
-0x21,0x10,0x20,0x02,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xE6,0x52,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x21,0x80,0x40,0x00,
-0x2A,0x10,0x52,0x00,
-0x0A,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x60,0x02,
-0x21,0x30,0x40,0x02,
-0x39,0x52,0x00,0x0C,
-0xFF,0xFF,0x10,0x26,
-0x0B,0x00,0x40,0x10,
-0x2A,0x18,0x12,0x02,
-0xF8,0xFF,0x60,0x10,
-0x01,0x00,0x31,0x26,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xC7,0x53,0x00,0x08,
-0x21,0x10,0x20,0x02,
-0x00,0x00,0x87,0x90,
-0x00,0x00,0x00,0x00,
-0x27,0x00,0xE0,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA6,0x90,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0xC0,0x10,
-0xDF,0xFF,0x02,0x24,
-0x24,0x18,0xC2,0x00,
-0x24,0x10,0xE2,0x00,
-0x00,0x16,0x02,0x00,
-0x00,0x1E,0x03,0x00,
-0x03,0x16,0x02,0x00,
-0x03,0x1E,0x03,0x00,
-0x0A,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0xDF,0xFF,0x02,0x24,
-0x24,0x18,0xC2,0x00,
-0x24,0x10,0xE2,0x00,
-0x00,0x16,0x02,0x00,
-0x00,0x1E,0x03,0x00,
-0x03,0x1E,0x03,0x00,
-0x03,0x16,0x02,0x00,
-0x08,0x00,0xE0,0x03,
-0x23,0x10,0x43,0x00,
-0x0A,0x54,0x00,0x08,
-0xDF,0xFF,0x08,0x24,
-0x00,0x00,0xA6,0x90,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x06,0x01,
-0x00,0x16,0x02,0x00,
-0xF0,0xFF,0xC0,0x10,
-0x03,0x16,0x02,0x00,
-0xEF,0xFF,0x62,0x14,
-0xDF,0xFF,0x02,0x24,
-0x01,0x00,0x84,0x24,
-0x00,0x00,0x87,0x90,
-0x01,0x00,0xA5,0x24,
-0x24,0x10,0x07,0x01,
-0x00,0x1E,0x02,0x00,
-0xF2,0xFF,0xE0,0x14,
-0x03,0x1E,0x03,0x00,
-0x00,0x00,0xA6,0x90,
-0xDF,0xFF,0x02,0x24,
-0x24,0x18,0xC2,0x00,
-0x24,0x10,0xE2,0x00,
-0x00,0x16,0x02,0x00,
-0x00,0x1E,0x03,0x00,
-0x03,0x1E,0x03,0x00,
-0x03,0x16,0x02,0x00,
-0x08,0x00,0xE0,0x03,
-0x23,0x10,0x43,0x00,
-0xA8,0xFF,0xBD,0x27,
-0x44,0x00,0xB5,0xAF,
-0x40,0x00,0xB4,0xAF,
-0x38,0x00,0xB2,0xAF,
-0x34,0x00,0xB1,0xAF,
-0x54,0x00,0xBF,0xAF,
-0x50,0x00,0xBE,0xAF,
-0x4C,0x00,0xB7,0xAF,
-0x48,0x00,0xB6,0xAF,
-0x3C,0x00,0xB3,0xAF,
-0x30,0x00,0xB0,0xAF,
-0x21,0x90,0xA0,0x00,
-0x00,0x00,0xA5,0x90,
-0x21,0xA0,0x80,0x00,
-0x21,0xA8,0xC0,0x00,
-0x00,0x26,0x05,0x00,
-0x03,0x26,0x04,0x00,
-0x11,0x00,0x80,0x10,
-0x21,0x88,0x80,0x02,
-0x25,0x00,0x02,0x24,
-0x29,0x00,0x82,0x10,
-0x0A,0x00,0x02,0x24,
-0x1B,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x1E,0x00,0x80,0x12,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x25,0xA2,
-0x01,0x00,0x31,0x26,
-0x01,0x00,0x52,0x26,
-0x00,0x00,0x45,0x92,
-0x00,0x00,0x00,0x00,
-0x00,0x26,0x05,0x00,
-0x03,0x26,0x04,0x00,
-0xF2,0xFF,0x80,0x14,
-0x25,0x00,0x02,0x24,
-0x02,0x00,0x80,0x12,
-0x23,0x10,0x34,0x02,
-0x00,0x00,0x20,0xA2,
-0x54,0x00,0xBF,0x8F,
-0x50,0x00,0xBE,0x8F,
-0x4C,0x00,0xB7,0x8F,
-0x48,0x00,0xB6,0x8F,
-0x44,0x00,0xB5,0x8F,
-0x40,0x00,0xB4,0x8F,
-0x3C,0x00,0xB3,0x8F,
-0x38,0x00,0xB2,0x8F,
-0x34,0x00,0xB1,0x8F,
-0x30,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x58,0x00,0xBD,0x27,
-0xE7,0xFF,0x80,0x16,
-0x00,0x00,0x00,0x00,
-0x77,0x55,0x00,0x0C,
-0x0D,0x00,0x04,0x24,
-0x0A,0x00,0x04,0x24,
-0x77,0x55,0x00,0x0C,
-0x01,0x00,0x52,0x26,
-0x00,0x00,0x45,0x92,
-0x00,0x00,0x00,0x00,
-0x00,0x26,0x05,0x00,
-0x3C,0x54,0x00,0x08,
-0x03,0x26,0x04,0x00,
-0x01,0x00,0x52,0x26,
-0x00,0x00,0x45,0x92,
-0x73,0x00,0x02,0x24,
-0x00,0x1E,0x05,0x00,
-0x03,0x1E,0x03,0x00,
-0x2C,0x00,0x62,0x10,
-0x10,0x00,0xB3,0x27,
-0x23,0x00,0x02,0x24,
-0x21,0xF0,0x60,0x02,
-0x21,0x38,0x00,0x00,
-0x34,0x00,0x62,0x10,
-0x1C,0x00,0x04,0x24,
-0x00,0x16,0x05,0x00,
-0x03,0x16,0x02,0x00,
-0x68,0x00,0x03,0x24,
-0x36,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x05,0x00,
-0x03,0x16,0x02,0x00,
-0x39,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0x20,0x00,0xA2,0x34,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x78,0x00,0x03,0x24,
-0x3C,0x00,0x43,0x10,
-0x20,0x00,0xA6,0x30,
-0x00,0x1E,0x05,0x00,
-0x03,0x1E,0x03,0x00,
-0x64,0x00,0x02,0x24,
-0x49,0x00,0x62,0x10,
-0x40,0x00,0x02,0x24,
-0x81,0x00,0x62,0x10,
-0x21,0x00,0x02,0x24,
-0x92,0x00,0x62,0x10,
-0x63,0x00,0x02,0x24,
-0xA2,0x00,0x62,0x10,
-0x11,0x00,0xB3,0x27,
-0x10,0x00,0xA5,0xA3,
-0x21,0x80,0xC0,0x03,
-0x2B,0x10,0x13,0x02,
-0xB4,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x6C,0x00,0x80,0x12,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x02,0x92,
-0x01,0x00,0x10,0x26,
-0x00,0x00,0x22,0xA2,
-0x81,0x54,0x00,0x08,
-0x01,0x00,0x31,0x26,
-0x00,0x00,0xA2,0x8E,
-0x04,0x00,0xB5,0x26,
-0x21,0x80,0x40,0x00,
-0x00,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0xA6,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x63,0x00,0x80,0x12,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x22,0xA2,
-0x01,0x00,0x10,0x26,
-0x8E,0x54,0x00,0x08,
-0x01,0x00,0x31,0x26,
-0x01,0x00,0x52,0x26,
-0x00,0x00,0x45,0x92,
-0x68,0x00,0x03,0x24,
-0x00,0x16,0x05,0x00,
-0x03,0x16,0x02,0x00,
-0xCC,0xFF,0x43,0x14,
-0x01,0x00,0x07,0x24,
-0x01,0x00,0x52,0x26,
-0x00,0x00,0x45,0x92,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x05,0x00,
-0x03,0x16,0x02,0x00,
-0xC9,0xFF,0x43,0x14,
-0x0C,0x00,0x04,0x24,
-0x01,0x00,0x52,0x26,
-0x00,0x00,0x45,0x92,
-0x78,0x00,0x03,0x24,
-0x20,0x00,0xA2,0x34,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0xC7,0xFF,0x43,0x14,
-0x04,0x00,0x04,0x24,
-0x20,0x00,0xA6,0x30,
-0x00,0x00,0xA5,0x8E,
-0x35,0x00,0xE0,0x14,
-0x04,0x00,0xB5,0x26,
-0xCD,0xFF,0x80,0x04,
-0x02,0x80,0x02,0x3C,
-0x48,0xED,0x42,0x24,
-0x00,0x00,0x47,0x8C,
-0x07,0x10,0x85,0x00,
-0x0F,0x00,0x42,0x30,
-0x21,0x10,0x47,0x00,
-0x00,0x00,0x43,0x90,
-0xFC,0xFF,0x84,0x24,
-0x25,0x18,0xC3,0x00,
-0x00,0x00,0x63,0xA2,
-0xF8,0xFF,0x81,0x04,
-0x01,0x00,0x73,0x26,
-0x81,0x54,0x00,0x08,
-0x21,0x80,0xC0,0x03,
-0x00,0x00,0xA2,0x8E,
-0x04,0x00,0xB5,0x26,
-0x28,0x00,0x40,0x04,
-0x21,0x28,0x40,0x00,
-0x21,0x80,0x60,0x02,
-0x02,0x80,0x02,0x3C,
-0x4C,0xED,0x42,0x24,
-0x00,0x00,0x46,0x8C,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xA6,0x00,
-0xC3,0x27,0x05,0x00,
-0x10,0x10,0x00,0x00,
-0x83,0x10,0x02,0x00,
-0x23,0x10,0x44,0x00,
-0x80,0x18,0x02,0x00,
-0x21,0x18,0x62,0x00,
-0x40,0x18,0x03,0x00,
-0x23,0x18,0xA3,0x00,
-0x30,0x00,0x63,0x24,
-0x00,0x00,0x63,0xA2,
-0x21,0x28,0x40,0x00,
-0xF3,0xFF,0x40,0x14,
-0x01,0x00,0x73,0x26,
-0xE1,0x54,0x00,0x08,
-0xFF,0xFF,0x63,0x26,
-0x00,0x00,0x65,0x80,
-0x00,0x00,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x62,0xA0,
-0x00,0x00,0x05,0xA2,
-0xFF,0xFF,0x63,0x24,
-0x01,0x00,0x10,0x26,
-0x2B,0x10,0x03,0x02,
-0xF7,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x81,0x54,0x00,0x08,
-0x21,0x80,0xC0,0x03,
-0x58,0x00,0xC3,0x34,
-0x30,0x00,0x02,0x24,
-0x12,0x00,0xB3,0x27,
-0x10,0x00,0xA2,0xA3,
-0xB2,0x54,0x00,0x08,
-0x11,0x00,0xA3,0xA3,
-0x2D,0x00,0x02,0x24,
-0x23,0x28,0x05,0x00,
-0x11,0x00,0xB3,0x27,
-0xC5,0x54,0x00,0x08,
-0x10,0x00,0xA2,0xA3,
-0x00,0x00,0x04,0x82,
-0x77,0x55,0x00,0x0C,
-0x01,0x00,0x10,0x26,
-0x82,0x54,0x00,0x08,
-0x2B,0x10,0x13,0x02,
-0x00,0x00,0x04,0x82,
-0x77,0x55,0x00,0x0C,
-0x01,0x00,0x10,0x26,
-0x8E,0x54,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA3,0x8E,
-0x28,0x00,0xB0,0x27,
-0x2C,0x00,0xA4,0x27,
-0x2B,0x10,0x04,0x02,
-0x28,0x00,0xA3,0xAF,
-0x0B,0x00,0x40,0x10,
-0x04,0x00,0xB5,0x26,
-0x21,0xB8,0x80,0x00,
-0x02,0x80,0x16,0x3C,
-0x00,0x00,0x06,0x92,
-0x21,0x20,0x60,0x02,
-0x01,0x00,0x10,0x26,
-0x24,0x55,0x00,0x0C,
-0xD0,0xE3,0xC5,0x26,
-0x2B,0x18,0x17,0x02,
-0xF9,0xFF,0x60,0x14,
-0x21,0x98,0x62,0x02,
-0x80,0x54,0x00,0x08,
-0xFF,0xFF,0x73,0x26,
-0x00,0x00,0xA2,0x8E,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x56,0x24,
-0x21,0x80,0x40,0x00,
-0x2B,0x10,0x56,0x00,
-0xF8,0xFF,0x40,0x10,
-0x04,0x00,0xB5,0x26,
-0x02,0x80,0x17,0x3C,
-0x00,0x00,0x06,0x82,
-0x21,0x20,0x60,0x02,
-0x01,0x00,0x10,0x26,
-0x24,0x55,0x00,0x0C,
-0xD4,0xE3,0xE5,0x26,
-0x2B,0x18,0x16,0x02,
-0xF9,0xFF,0x60,0x14,
-0x21,0x98,0x62,0x02,
-0x80,0x54,0x00,0x08,
-0xFF,0xFF,0x73,0x26,
-0x00,0x00,0xA2,0x8E,
-0x04,0x00,0xB5,0x26,
-0x80,0x54,0x00,0x08,
-0x10,0x00,0xA2,0xA3,
-0xE8,0xFF,0xBD,0x27,
-0x20,0x00,0xA6,0xAF,
-0x20,0x00,0xA6,0x27,
-0x10,0x00,0xBF,0xAF,
-0x24,0x00,0xA7,0xAF,
-0x1B,0x54,0x00,0x0C,
-0x1C,0x00,0xA5,0xAF,
-0x10,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x24,0x00,0xA5,0xAF,
-0x28,0x00,0xA6,0xAF,
-0x2C,0x00,0xA7,0xAF,
-0x20,0x00,0xA4,0xAF,
-0x00,0x60,0x11,0x40,
-0x01,0x00,0x21,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x25,0x24,0x00,0x0C,
-0xA0,0x00,0x04,0x24,
-0x19,0x00,0x40,0x10,
-0x21,0x80,0x40,0x00,
-0x08,0x00,0x44,0x94,
-0x20,0x00,0xA5,0x8F,
-0x02,0x80,0x02,0x3C,
-0x25,0x20,0x82,0x00,
-0x20,0x00,0x84,0x24,
-0x1B,0x54,0x00,0x0C,
-0x24,0x00,0xA6,0x27,
-0x01,0x00,0x42,0x24,
-0x13,0x00,0x03,0x24,
-0x81,0x00,0x44,0x2C,
-0x14,0x00,0x03,0xAE,
-0x17,0x00,0x80,0x14,
-0x0C,0x00,0x02,0xAE,
-0x00,0x60,0x01,0x40,
-0x01,0x00,0x21,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x88,0x88,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x88,0x88,0x63,0x34,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x55,0x55,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x91,0x40,
-0x99,0x99,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x99,0x99,0x63,0x34,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x30,0x09,0x00,0x0C,
-0x21,0x20,0x00,0x02,
-0x00,0x60,0x91,0x40,
-0x5D,0x55,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x02,0x80,0x06,0x3C,
-0x60,0xF3,0xC5,0x8C,
-0x02,0x80,0x02,0x3C,
-0x40,0xF3,0x42,0x24,
-0x03,0x00,0xA3,0x30,
-0x21,0x18,0x62,0x00,
-0x00,0x00,0x64,0x80,
-0x01,0x00,0xA5,0x24,
-0x77,0x55,0x00,0x0C,
-0x60,0xF3,0xC5,0xAC,
-0x10,0x00,0xBF,0x8F,
-0x08,0x00,0x04,0x24,
-0x77,0x55,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x00,0x26,0x04,0x00,
-0x03,0x26,0x04,0x00,
-0x00,0x00,0x84,0x48,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x26,0x04,0x00,
-0x03,0x26,0x04,0x00,
-0xF7,0xFF,0x82,0x24,
-0x05,0x00,0x42,0x2C,
-0x06,0x00,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x20,0x00,0x02,0x24,
-0x03,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x01,0x00,0x03,0x24,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0x00,0x60,0x02,0x40,
-0x01,0x00,0x41,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x03,0x3C,
-0xD4,0x5E,0x64,0xAC,
-0x00,0x60,0x82,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x05,0x3C,
-0x01,0x00,0x06,0x24,
-0x01,0x80,0x02,0x3C,
-0x04,0x30,0x86,0x00,
-0xF1,0x02,0xA7,0x34,
-0xED,0x02,0xA4,0x34,
-0x4C,0x56,0x42,0x24,
-0x18,0x03,0xA5,0x34,
-0x08,0x00,0x03,0x24,
-0x00,0x00,0xA2,0xAC,
-0x00,0x00,0xE3,0xA0,
-0x00,0x00,0x80,0xA0,
-0x00,0x00,0x86,0xA0,
-0x00,0x00,0x80,0xA0,
-0x00,0x00,0x86,0xA0,
-0x00,0x00,0x80,0xA0,
-0x00,0x00,0x86,0xA0,
-0x00,0x00,0x80,0xA0,
-0x00,0x00,0x86,0xA0,
-0x00,0x00,0x80,0xA0,
-0x00,0x00,0xE0,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x82,0x8C,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0xC6,0x30,
-0x10,0x00,0x02,0x24,
-0x0C,0x00,0xC2,0x10,
-0x11,0x00,0xC3,0x28,
-0x06,0x00,0x60,0x10,
-0x20,0x00,0x02,0x24,
-0x08,0x00,0x02,0x24,
-0x0D,0x00,0xC2,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0xC2,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x85,0xA4,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x85,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x85,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x0A,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0xFF,0xFF,0xA5,0x24,
-0x00,0x2C,0x05,0x00,
-0xFD,0x00,0x63,0x30,
-0x03,0x2C,0x05,0x00,
-0xFF,0xFF,0x87,0x30,
-0x00,0x00,0x43,0xA0,
-0x1A,0x00,0xA0,0x04,
-0x00,0x00,0x00,0x00,
-0x21,0x30,0x40,0x00,
-0x07,0x10,0xA7,0x00,
-0x01,0x00,0x42,0x30,
-0xFD,0x00,0x64,0x30,
-0x00,0x00,0x42,0x38,
-0x02,0x00,0x63,0x34,
-0x0A,0x18,0x82,0x00,
-0x00,0x00,0xC3,0xA0,
-0x04,0x00,0x63,0x34,
-0x00,0x00,0xC3,0xA0,
-0x09,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x41,0x04,
-0xFF,0xFF,0x42,0x24,
-0xFB,0x00,0x63,0x30,
-0x00,0x00,0xC3,0xA0,
-0x04,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x41,0x04,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0xA2,0x24,
-0x00,0x2C,0x02,0x00,
-0x03,0x2C,0x05,0x00,
-0xEA,0xFF,0xA1,0x04,
-0x07,0x10,0xA7,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x0A,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0xFF,0xFF,0x84,0x24,
-0x00,0x24,0x04,0x00,
-0x03,0x24,0x04,0x00,
-0xFF,0x00,0x65,0x30,
-0x1D,0x00,0x80,0x04,
-0x21,0x38,0x00,0x00,
-0x21,0x30,0x40,0x00,
-0x01,0x00,0x08,0x24,
-0x04,0x00,0xA5,0x34,
-0x00,0x00,0xC5,0xA0,
-0x00,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x45,0x30,
-0x01,0x00,0xA3,0x30,
-0x05,0x00,0x60,0x10,
-0x04,0x00,0x02,0x24,
-0x04,0x10,0x88,0x00,
-0x25,0x10,0x47,0x00,
-0xFF,0xFF,0x47,0x30,
-0x04,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x41,0x04,
-0xFF,0xFF,0x42,0x24,
-0xFB,0x00,0xA5,0x30,
-0x00,0x00,0xC5,0xA0,
-0x09,0x00,0x02,0x24,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x41,0x04,
-0xFF,0xFF,0x42,0x24,
-0xFF,0xFF,0x82,0x24,
-0x00,0x24,0x02,0x00,
-0x03,0x24,0x04,0x00,
-0xE7,0xFF,0x81,0x04,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xE0,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x25,0xB0,0x10,0x3C,
-0x0A,0x00,0x10,0x36,
-0x18,0x00,0xBF,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x00,0x00,0x02,0x92,
-0xFF,0xFF,0x91,0x30,
-0x03,0x00,0x05,0x24,
-0xC0,0x00,0x42,0x30,
-0x80,0x00,0x43,0x34,
-0x00,0x00,0x03,0xA2,
-0x04,0x00,0x63,0x34,
-0x00,0x00,0x03,0xA2,
-0xFB,0x00,0x63,0x30,
-0x00,0x00,0x03,0xA2,
-0x08,0x00,0x63,0x34,
-0x00,0x00,0x03,0xA2,
-0x04,0x00,0x63,0x34,
-0x00,0x00,0x03,0xA2,
-0xFB,0x00,0x63,0x30,
-0x00,0x00,0x03,0xA2,
-0xC9,0x55,0x00,0x0C,
-0x06,0x00,0x04,0x24,
-0x42,0x20,0x11,0x00,
-0xC9,0x55,0x00,0x0C,
-0x06,0x00,0x05,0x24,
-0xEF,0x55,0x00,0x0C,
-0x10,0x00,0x04,0x24,
-0x00,0x00,0x03,0x92,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0xC0,0x00,0x63,0x30,
-0x00,0x00,0x03,0xA2,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0xFF,0xFF,0xB1,0x30,
-0x18,0x00,0xB2,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x21,0x90,0xC0,0x00,
-0x0A,0x00,0x20,0x12,
-0xFF,0xFF,0x90,0x30,
-0x16,0x56,0x00,0x0C,
-0x21,0x20,0x00,0x02,
-0xFE,0xFF,0x23,0x26,
-0x02,0x00,0x04,0x26,
-0x00,0x00,0x42,0xA6,
-0xFF,0xFF,0x71,0x30,
-0xFF,0xFF,0x90,0x30,
-0xF8,0xFF,0x20,0x16,
-0x02,0x00,0x52,0x26,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x25,0xB0,0x03,0x3C,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x30,0x00,0xBE,0xAF,
-0x2C,0x00,0xB7,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x0A,0x00,0x67,0x34,
-0x00,0x00,0xE2,0x90,
-0xFF,0xFF,0xB2,0x30,
-0x21,0x98,0xC0,0x00,
-0xFF,0x00,0x91,0x30,
-0x20,0x00,0x40,0x12,
-0xFF,0x00,0x50,0x30,
-0x21,0xA0,0xE0,0x00,
-0x0C,0x00,0x77,0x34,
-0x0B,0x00,0x76,0x34,
-0x21,0xF0,0xE0,0x00,
-0xC0,0xFF,0x15,0x24,
-0x25,0x10,0x15,0x02,
-0xFF,0x00,0x50,0x30,
-0x00,0x00,0xD1,0xA2,
-0x00,0x00,0x90,0xA2,
-0x00,0x00,0x82,0x92,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x50,0x30,
-0xC0,0x00,0x03,0x32,
-0x07,0x00,0x60,0x10,
-0x21,0x20,0xC0,0x03,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x50,0x30,
-0xC0,0x00,0x03,0x32,
-0xFB,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xE2,0x8E,
-0x04,0x00,0x23,0x26,
-0x64,0x00,0x04,0x24,
-0x00,0x00,0x62,0xAE,
-0x25,0x22,0x00,0x0C,
-0xFF,0x00,0x71,0x30,
-0xFC,0xFF,0x42,0x26,
-0xFF,0xFF,0x52,0x30,
-0xE7,0xFF,0x40,0x16,
-0x04,0x00,0x73,0x26,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xBE,0x8F,
-0x2C,0x00,0xB7,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x25,0xB0,0x06,0x3C,
-0x31,0x00,0xC2,0x34,
-0xFF,0xFF,0x84,0x30,
-0x00,0x00,0x44,0xA0,
-0x32,0x00,0xC7,0x34,
-0x00,0x00,0xE3,0x90,
-0xFC,0xFF,0x02,0x24,
-0x02,0x22,0x04,0x00,
-0x24,0x18,0x62,0x00,
-0x03,0x00,0x84,0x30,
-0x25,0x20,0x83,0x00,
-0x33,0x00,0xC6,0x34,
-0x72,0x00,0x02,0x24,
-0x00,0x00,0xE4,0xA0,
-0x00,0x00,0xC2,0xA0,
-0x00,0x00,0xC3,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x1E,0x03,0x00,
-0x03,0x1E,0x03,0x00,
-0x05,0x00,0x61,0x04,
-0x21,0x10,0x00,0x00,
-0xB5,0x56,0x00,0x08,
-0x25,0xB0,0x02,0x3C,
-0x11,0x00,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC3,0x90,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x00,0x1E,0x03,0x00,
-0x03,0x1E,0x03,0x00,
-0xF8,0xFF,0x61,0x04,
-0x64,0x00,0x44,0x2C,
-0x64,0x00,0x44,0x2C,
-0x07,0x00,0x80,0x10,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x30,0x00,0x42,0x34,
-0x00,0x00,0x43,0x90,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0xA3,0xA0,
-0xFF,0xFF,0x02,0x24,
-0x00,0x00,0xA2,0xA0,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x25,0xB0,0x06,0x3C,
-0x31,0x00,0xC2,0x34,
-0xFF,0xFF,0x84,0x30,
-0x00,0x00,0x44,0xA0,
-0x32,0x00,0xC3,0x34,
-0x00,0x00,0x62,0x90,
-0x02,0x22,0x04,0x00,
-0x03,0x00,0x84,0x30,
-0x25,0x20,0x82,0x00,
-0x00,0x00,0x64,0xA0,
-0x33,0x00,0xC7,0x34,
-0xFF,0x00,0xA5,0x30,
-0x30,0x00,0xC6,0x34,
-0xF2,0xFF,0x03,0x24,
-0x00,0x00,0xC5,0xA0,
-0x00,0x00,0xE3,0xA0,
-0x00,0x00,0xE2,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x16,0x02,0x00,
-0x03,0x16,0x02,0x00,
-0x03,0x00,0x40,0x04,
-0x21,0x20,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x01,0x00,0x02,0x24,
-0xDA,0x56,0x00,0x08,
-0x21,0x30,0xE0,0x00,
-0x0B,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC3,0x90,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x00,0x1E,0x03,0x00,
-0x03,0x1E,0x03,0x00,
-0xF8,0xFF,0x60,0x04,
-0x64,0x00,0x82,0x2C,
-0x64,0x00,0x82,0x2C,
-0xF1,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x25,0xB0,0x02,0x3C,
-0x18,0x00,0xB0,0xAF,
-0xF8,0x02,0x45,0x34,
-0x25,0xB0,0x10,0x3C,
-0xFF,0x00,0x83,0x30,
-0x01,0x00,0x02,0x24,
-0x1C,0x00,0xBF,0xAF,
-0x03,0x00,0x06,0x36,
-0x0A,0x00,0x62,0x10,
-0x0A,0x00,0x04,0x24,
-0x00,0x00,0xA2,0x90,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB0,0x8F,
-0xFE,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x20,0x00,0xBD,0x27,
-0x00,0x00,0xA2,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x20,0x00,0x43,0x34,
-0x20,0x00,0x42,0x30,
-0x02,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC3,0xA0,
-0x25,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x04,0x36,
-0x00,0x00,0x82,0x90,
-0xFE,0xFF,0x03,0x24,
-0xF8,0x02,0x06,0x36,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0x82,0xA0,
-0x00,0x00,0xC3,0x90,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0x00,0x00,
-0x03,0x00,0x63,0x34,
-0x00,0x00,0xC3,0xA0,
-0x91,0x56,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xFF,0x00,0x84,0x30,
-0x21,0x38,0x00,0x00,
-0x21,0x28,0x00,0x00,
-0x01,0x00,0xA3,0x24,
-0x07,0x10,0xA4,0x00,
-0x01,0x00,0x42,0x30,
-0xFF,0x00,0x65,0x30,
-0x01,0x00,0xE6,0x24,
-0x02,0x00,0x40,0x14,
-0x04,0x00,0xA3,0x2C,
-0xFF,0x00,0xC7,0x30,
-0xF7,0xFF,0x60,0x14,
-0x21,0x10,0xE0,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x8C,0x30,
-0x21,0x48,0x00,0x00,
-0x21,0x38,0x00,0x00,
-0x40,0x10,0x07,0x00,
-0xFF,0x00,0x42,0x30,
-0x21,0x50,0x46,0x00,
-0x01,0x00,0xE3,0x24,
-0x07,0x10,0xEC,0x00,
-0x01,0x00,0x42,0x30,
-0xFF,0x00,0x67,0x30,
-0x21,0x58,0x25,0x01,
-0x01,0x00,0x24,0x25,
-0x09,0x00,0x40,0x14,
-0x04,0x00,0xE8,0x2C,
-0x00,0x00,0x63,0x91,
-0xFF,0x00,0x89,0x30,
-0x21,0x20,0x25,0x01,
-0x00,0x00,0x43,0xA1,
-0x00,0x00,0x83,0x90,
-0x01,0x00,0x22,0x25,
-0xFF,0x00,0x49,0x30,
-0x01,0x00,0x43,0xA1,
-0xED,0xFF,0x00,0x15,
-0x40,0x10,0x07,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x24,0x00,0xBF,0xAF,
-0x01,0x00,0x12,0x24,
-0x21,0x80,0x00,0x00,
-0x57,0x57,0x00,0x08,
-0xFF,0x00,0x11,0x24,
-0x91,0x56,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0x40,0x10,
-0x00,0x02,0x03,0x2E,
-0x0F,0x00,0x60,0x10,
-0x21,0x10,0x00,0x02,
-0x10,0x00,0xA2,0x93,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x51,0x10,
-0x0F,0x00,0x44,0x30,
-0x15,0x57,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x40,0x10,0x02,0x00,
-0x21,0x10,0x50,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x50,0x30,
-0x21,0x20,0x00,0x02,
-0xEE,0xFF,0x40,0x16,
-0x10,0x00,0xA5,0x27,
-0x21,0x10,0x00,0x02,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xB8,0xFF,0xBD,0x27,
-0x3C,0x00,0xB7,0xAF,
-0x38,0x00,0xB6,0xAF,
-0x34,0x00,0xB5,0xAF,
-0x30,0x00,0xB4,0xAF,
-0x2C,0x00,0xB3,0xAF,
-0x24,0x00,0xB1,0xAF,
-0x20,0x00,0xB0,0xAF,
-0x44,0x00,0xBF,0xAF,
-0x40,0x00,0xBE,0xAF,
-0x28,0x00,0xB2,0xAF,
-0x21,0x98,0xA0,0x00,
-0xFF,0x00,0x96,0x30,
-0x01,0x00,0x10,0x24,
-0x01,0x00,0x17,0x24,
-0x21,0xA0,0x00,0x00,
-0x21,0x88,0x00,0x00,
-0x21,0xA8,0x00,0x00,
-0x04,0x00,0xA0,0x10,
-0x21,0x18,0x00,0x00,
-0x10,0x00,0xC2,0x2E,
-0x0E,0x00,0x40,0x14,
-0x21,0x20,0xA0,0x00,
-0x44,0x00,0xBF,0x8F,
-0x40,0x00,0xBE,0x8F,
-0x3C,0x00,0xB7,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0x08,0x00,0x06,0x24,
-0xFF,0x51,0x00,0x0C,
-0xFF,0x00,0x05,0x24,
-0x18,0x00,0xA4,0x27,
-0xFF,0x00,0x05,0x24,
-0xFF,0x51,0x00,0x0C,
-0x08,0x00,0x06,0x24,
-0xE6,0x56,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x96,0x57,0x00,0x08,
-0x10,0x00,0xBE,0x27,
-0x1C,0x00,0x40,0x14,
-0x21,0x20,0xA0,0x02,
-0x37,0x00,0xE0,0x12,
-0x00,0x02,0x22,0x2E,
-0x35,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x02,0x32,
-0xF8,0xFF,0x40,0x10,
-0x20,0x00,0x02,0x32,
-0x21,0x20,0x20,0x02,
-0x91,0x56,0x00,0x0C,
-0x10,0x00,0xA5,0x27,
-0x2D,0x00,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x10,0x00,0xB0,0x93,
-0x00,0x00,0x00,0x00,
-0x29,0x00,0x02,0x12,
-0x0F,0x00,0x15,0x32,
-0x15,0x57,0x00,0x0C,
-0x21,0x20,0xA0,0x02,
-0x02,0x81,0x10,0x00,
-0x10,0x00,0x16,0x12,
-0x21,0xA0,0x40,0x00,
-0x40,0x10,0x14,0x00,
-0x21,0x10,0x51,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x51,0x30,
-0x92,0x57,0x00,0x08,
-0x01,0x00,0x10,0x24,
-0x18,0x00,0xA5,0x27,
-0x24,0x57,0x00,0x0C,
-0x21,0x30,0x60,0x02,
-0x40,0x10,0x14,0x00,
-0x21,0x10,0x51,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x51,0x30,
-0x92,0x57,0x00,0x08,
-0x01,0x00,0x10,0x24,
-0x40,0x90,0x02,0x00,
-0x10,0x00,0x40,0x1A,
-0x21,0x80,0x00,0x00,
-0x21,0x20,0x30,0x02,
-0x01,0x00,0x84,0x24,
-0xFF,0xFF,0x84,0x30,
-0x91,0x56,0x00,0x0C,
-0x10,0x00,0xA5,0x27,
-0x01,0x00,0x03,0x26,
-0x21,0x20,0xD0,0x03,
-0xFF,0x00,0x70,0x30,
-0x04,0x00,0x40,0x10,
-0x2A,0x18,0x12,0x02,
-0x10,0x00,0xA2,0x93,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x82,0xA0,
-0xF3,0xFF,0x60,0x14,
-0x21,0x20,0x30,0x02,
-0x92,0x57,0x00,0x08,
-0x20,0x00,0x10,0x24,
-0xE6,0x56,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x00,0x00,0x63,0x92,
-0xFF,0x00,0x02,0x24,
-0x0F,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x03,0x24,
-0x44,0x00,0xBF,0x8F,
-0x40,0x00,0xBE,0x8F,
-0x3C,0x00,0xB7,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0x01,0x00,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0xF0,0xFF,0x43,0x14,
-0x01,0x00,0x03,0x24,
-0x02,0x00,0x63,0x92,
-0x00,0x00,0x00,0x00,
-0xEB,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0x43,0x14,
-0x01,0x00,0x03,0x24,
-0x04,0x00,0x63,0x92,
-0x00,0x00,0x00,0x00,
-0xE3,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x05,0x00,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0xDF,0xFF,0x43,0x14,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x67,0x92,
-0x00,0x00,0x00,0x00,
-0xDC,0xFF,0xE2,0x14,
-0x01,0x00,0x03,0x24,
-0x07,0x00,0x62,0x92,
-0x00,0x00,0x00,0x00,
-0x7F,0xFF,0x47,0x10,
-0x21,0x18,0x00,0x00,
-0xD1,0x57,0x00,0x08,
-0x01,0x00,0x03,0x24,
-0xC0,0xFF,0xBD,0x27,
-0x38,0x00,0xBE,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x21,0xF0,0xC0,0x00,
-0xFF,0x00,0xB6,0x30,
-0xFF,0xFF,0x95,0x30,
-0xFF,0x00,0x05,0x24,
-0x10,0x00,0xA4,0x27,
-0x08,0x00,0x06,0x24,
-0x34,0x00,0xB7,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x3C,0x00,0xBF,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0xFF,0x51,0x00,0x0C,
-0x0F,0x00,0x17,0x24,
-0x21,0x98,0x00,0x00,
-0x40,0x10,0x13,0x00,
-0xFF,0x00,0x52,0x30,
-0x07,0x10,0x76,0x02,
-0x01,0x00,0x42,0x30,
-0x21,0xA0,0x5E,0x02,
-0x21,0x88,0xA0,0x02,
-0x21,0x20,0xA0,0x02,
-0x13,0x00,0x40,0x10,
-0x01,0x00,0xA3,0x26,
-0x01,0x00,0x62,0x26,
-0xFF,0x00,0x53,0x30,
-0x04,0x00,0x63,0x2E,
-0xF4,0xFF,0x60,0x14,
-0x40,0x10,0x13,0x00,
-0x21,0x10,0xE0,0x02,
-0x3C,0x00,0xBF,0x8F,
-0x38,0x00,0xBE,0x8F,
-0x34,0x00,0xB7,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x40,0x00,0xBD,0x27,
-0x00,0x00,0x85,0x92,
-0xFF,0xFF,0x75,0x30,
-0xBE,0x56,0x00,0x0C,
-0x21,0x80,0xA0,0x02,
-0x01,0x00,0x85,0x92,
-0x21,0x20,0xA0,0x02,
-0x01,0x00,0xA2,0x26,
-0xBE,0x56,0x00,0x0C,
-0xFF,0xFF,0x55,0x30,
-0x10,0x00,0xA3,0x27,
-0x21,0x90,0x72,0x00,
-0x21,0x20,0x20,0x02,
-0x91,0x56,0x00,0x0C,
-0x21,0x28,0x40,0x02,
-0x21,0x20,0x00,0x02,
-0x91,0x56,0x00,0x0C,
-0x01,0x00,0x45,0x26,
-0x00,0x00,0x84,0x92,
-0x00,0x00,0x42,0x92,
-0x01,0x00,0x03,0x24,
-0x04,0x18,0x63,0x02,
-0x03,0x00,0x82,0x10,
-0x27,0x30,0x03,0x00,
-0x19,0x58,0x00,0x08,
-0x24,0xB8,0xD7,0x00,
-0x01,0x00,0x83,0x92,
-0x01,0x00,0x42,0x92,
-0x00,0x00,0x00,0x00,
-0xD2,0xFF,0x62,0x10,
-0x01,0x00,0x62,0x26,
-0x1A,0x58,0x00,0x08,
-0x24,0xB8,0xD7,0x00,
-0x98,0xFF,0xBD,0x27,
-0x50,0x00,0xB4,0xAF,
-0xFF,0x00,0x94,0x30,
-0x01,0x00,0x04,0x24,
-0x64,0x00,0xBF,0xAF,
-0x60,0x00,0xBE,0xAF,
-0x5C,0x00,0xB7,0xAF,
-0x58,0x00,0xB6,0xAF,
-0x4C,0x00,0xB3,0xAF,
-0x48,0x00,0xB2,0xAF,
-0x44,0x00,0xB1,0xAF,
-0x21,0x98,0xC0,0x00,
-0xFF,0x00,0xB1,0x30,
-0x54,0x00,0xB5,0xAF,
-0xE6,0x56,0x00,0x0C,
-0x40,0x00,0xB0,0xAF,
-0x3E,0x57,0x00,0x0C,
-0x01,0x00,0x16,0x24,
-0x21,0x18,0x40,0x00,
-0xFF,0x01,0x42,0x2C,
-0x01,0x00,0x17,0x24,
-0x01,0x00,0x1E,0x24,
-0x21,0x90,0x00,0x00,
-0x0E,0x00,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0x64,0x00,0xBF,0x8F,
-0x60,0x00,0xBE,0x8F,
-0x5C,0x00,0xB7,0x8F,
-0x58,0x00,0xB6,0x8F,
-0x54,0x00,0xB5,0x8F,
-0x50,0x00,0xB4,0x8F,
-0x4C,0x00,0xB3,0x8F,
-0x48,0x00,0xB2,0x8F,
-0x44,0x00,0xB1,0x8F,
-0x40,0x00,0xB0,0x8F,
-0x21,0x10,0x80,0x00,
-0x08,0x00,0xE0,0x03,
-0x68,0x00,0xBD,0x27,
-0xFF,0x01,0x02,0x24,
-0x23,0x10,0x43,0x00,
-0x1A,0x00,0xA4,0x27,
-0xFF,0x00,0x05,0x24,
-0x08,0x00,0x06,0x24,
-0xFF,0xFF,0x50,0x30,
-0x18,0x00,0xB4,0xA3,
-0xFF,0x51,0x00,0x0C,
-0x19,0x00,0xB1,0xA3,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x60,0x02,
-0x24,0x57,0x00,0x0C,
-0x1A,0x00,0xA6,0x27,
-0x19,0x00,0xA4,0x93,
-0x15,0x57,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0xA8,0x40,0x00,
-0xFF,0xFF,0x42,0x30,
-0x2B,0x10,0x02,0x02,
-0xDF,0xFF,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0x01,0x00,0x02,0x24,
-0x09,0x00,0xC2,0x12,
-0x20,0x00,0x02,0x24,
-0x22,0x00,0xC2,0x12,
-0x00,0x00,0x00,0x00,
-0x3B,0x00,0xE0,0x12,
-0x00,0x02,0x42,0x2E,
-0x39,0x00,0x40,0x10,
-0x01,0x00,0x02,0x24,
-0xF9,0xFF,0xC2,0x16,
-0x20,0x00,0x02,0x24,
-0x21,0x20,0x40,0x02,
-0x10,0x00,0xA5,0x27,
-0x91,0x56,0x00,0x0C,
-0x01,0x00,0x13,0x24,
-0x41,0x00,0x40,0x10,
-0xFF,0x00,0x02,0x24,
-0x10,0x00,0xA5,0x93,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0xA4,0x30,
-0x3C,0x00,0x82,0x10,
-0x0F,0x00,0xA3,0x30,
-0x02,0x11,0x04,0x00,
-0x21,0x20,0x60,0x00,
-0x29,0x00,0xA3,0xA3,
-0x28,0x00,0xA2,0xA3,
-0x15,0x57,0x00,0x0C,
-0x11,0x00,0xA5,0xA3,
-0x21,0x80,0x40,0x00,
-0x28,0x00,0xA3,0x93,
-0x18,0x00,0xA2,0x93,
-0x00,0x00,0x00,0x00,
-0x5F,0x00,0x62,0x10,
-0x40,0x10,0x10,0x00,
-0x21,0x10,0x52,0x00,
-0x01,0x00,0x42,0x24,
-0x8B,0x58,0x00,0x08,
-0xFF,0xFF,0x52,0x30,
-0x19,0x00,0xA5,0x93,
-0x01,0x00,0x44,0x26,
-0xFF,0xFF,0x84,0x30,
-0xFC,0x57,0x00,0x0C,
-0x1A,0x00,0xA6,0x27,
-0x21,0x28,0x40,0x00,
-0x0F,0x00,0x43,0x30,
-0x0F,0x00,0x02,0x24,
-0x12,0x00,0x62,0x10,
-0x40,0x10,0x15,0x00,
-0x21,0x10,0x52,0x00,
-0x01,0x00,0x42,0x24,
-0x21,0x20,0xA0,0x00,
-0xFF,0xFF,0x52,0x30,
-0x18,0x00,0xB4,0xA3,
-0x15,0x57,0x00,0x0C,
-0x19,0x00,0xA5,0xA3,
-0x21,0xA8,0x40,0x00,
-0x02,0x80,0x03,0x3C,
-0x04,0xE4,0x62,0x8C,
-0x02,0x80,0x04,0x3C,
-0x01,0x00,0x16,0x24,
-0x01,0x00,0x42,0x24,
-0x04,0x00,0x43,0x28,
-0xC6,0xFF,0x60,0x14,
-0x04,0xE4,0x82,0xAC,
-0x21,0xF0,0x00,0x00,
-0xE6,0x56,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x21,0x20,0xC0,0x03,
-0x64,0x00,0xBF,0x8F,
-0x60,0x00,0xBE,0x8F,
-0x5C,0x00,0xB7,0x8F,
-0x58,0x00,0xB6,0x8F,
-0x54,0x00,0xB5,0x8F,
-0x50,0x00,0xB4,0x8F,
-0x4C,0x00,0xB3,0x8F,
-0x48,0x00,0xB2,0x8F,
-0x44,0x00,0xB1,0x8F,
-0x40,0x00,0xB0,0x8F,
-0x21,0x10,0x80,0x00,
-0x08,0x00,0xE0,0x03,
-0x68,0x00,0xBD,0x27,
-0x3E,0x57,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xFF,0x01,0x03,0x24,
-0x23,0x18,0x62,0x00,
-0xFF,0xFF,0x70,0x30,
-0xFF,0xFF,0xA2,0x32,
-0x2B,0x10,0x02,0x02,
-0xE7,0xFF,0x40,0x14,
-0x21,0x20,0x40,0x02,
-0x18,0x00,0xB0,0x93,
-0x19,0x00,0xA2,0x93,
-0x00,0x81,0x10,0x00,
-0x25,0x80,0x02,0x02,
-0xFF,0x00,0x10,0x32,
-0xBE,0x56,0x00,0x0C,
-0x21,0x28,0x00,0x02,
-0x21,0x20,0x40,0x02,
-0x91,0x56,0x00,0x0C,
-0x11,0x00,0xA5,0x27,
-0x11,0x00,0xA3,0x93,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x64,0x30,
-0x9D,0xFF,0x90,0x10,
-0x20,0x00,0x16,0x24,
-0xFF,0x00,0x02,0x24,
-0xCD,0xFF,0x82,0x10,
-0x0F,0x00,0x63,0x30,
-0x02,0x11,0x04,0x00,
-0x21,0x20,0x60,0x00,
-0x29,0x00,0xA3,0xA3,
-0x15,0x57,0x00,0x0C,
-0x28,0x00,0xA2,0xA3,
-0x38,0x00,0xA4,0x27,
-0xFF,0x00,0x05,0x24,
-0x08,0x00,0x06,0x24,
-0xFF,0x51,0x00,0x0C,
-0x21,0x80,0x40,0x00,
-0x28,0x00,0xA4,0x93,
-0x61,0x57,0x00,0x0C,
-0x38,0x00,0xA5,0x27,
-0x1F,0x00,0x40,0x14,
-0x01,0x00,0x44,0x26,
-0x40,0x10,0x10,0x00,
-0x21,0x10,0x52,0x00,
-0x01,0x00,0x42,0x24,
-0xBE,0x58,0x00,0x08,
-0xFF,0xFF,0x52,0x30,
-0x40,0x88,0x10,0x00,
-0x27,0x00,0x20,0x1A,
-0x21,0x80,0x00,0x00,
-0xFF,0x00,0x16,0x24,
-0x21,0x20,0x50,0x02,
-0x01,0x00,0x84,0x24,
-0xFF,0xFF,0x84,0x30,
-0x91,0x56,0x00,0x0C,
-0x10,0x00,0xA5,0x27,
-0x01,0x00,0x03,0x26,
-0xFF,0x00,0x70,0x30,
-0x05,0x00,0x40,0x10,
-0x2A,0x18,0x11,0x02,
-0x10,0x00,0xA2,0x93,
-0x00,0x00,0x00,0x00,
-0x26,0x10,0x56,0x00,
-0x0B,0x98,0x02,0x00,
-0xF3,0xFF,0x60,0x14,
-0x21,0x20,0x50,0x02,
-0x15,0x00,0x60,0x16,
-0x21,0x10,0x32,0x02,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x52,0x30,
-0x8B,0x58,0x00,0x08,
-0x01,0x00,0x16,0x24,
-0x29,0x00,0xA5,0x93,
-0xFF,0xFF,0x84,0x30,
-0xFC,0x57,0x00,0x0C,
-0x38,0x00,0xA6,0x27,
-0x21,0x28,0x40,0x00,
-0x0F,0x00,0x43,0x30,
-0x0F,0x00,0x02,0x24,
-0xDB,0xFF,0x62,0x10,
-0x40,0x10,0x10,0x00,
-0x28,0x00,0xA4,0x93,
-0x4B,0x58,0x00,0x0C,
-0x38,0x00,0xA6,0x27,
-0x3E,0x57,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xBE,0x58,0x00,0x08,
-0x21,0x90,0x40,0x00,
-0x19,0x00,0xA3,0x93,
-0x29,0x00,0xA6,0x93,
-0x0F,0x00,0x13,0x24,
-0x0E,0x00,0x10,0x24,
-0x25,0x18,0x66,0x00,
-0x01,0x00,0x62,0x30,
-0x0A,0x98,0x02,0x02,
-0x02,0x00,0x64,0x30,
-0xFD,0x00,0x62,0x32,
-0x0A,0x98,0x44,0x00,
-0x04,0x00,0x65,0x30,
-0xFB,0x00,0x62,0x32,
-0x0A,0x98,0x45,0x00,
-0x08,0x00,0x63,0x30,
-0xF7,0x00,0x62,0x32,
-0x0A,0x98,0x43,0x00,
-0x0F,0x00,0x64,0x32,
-0x0F,0x00,0x16,0x24,
-0x25,0x00,0x96,0x10,
-0x21,0x28,0xC0,0x00,
-0x01,0x00,0x44,0x26,
-0xFF,0xFF,0x84,0x30,
-0xFC,0x57,0x00,0x0C,
-0x1A,0x00,0xA6,0x27,
-0x21,0x28,0x40,0x00,
-0x0F,0x00,0x42,0x30,
-0x03,0x00,0x56,0x10,
-0x21,0x20,0x80,0x02,
-0x4B,0x58,0x00,0x0C,
-0x38,0x00,0xA6,0x27,
-0x19,0x00,0xA5,0x93,
-0x00,0x00,0x00,0x00,
-0x26,0x10,0x65,0x02,
-0x01,0x00,0x42,0x30,
-0x0A,0x80,0xC2,0x02,
-0x26,0x18,0x65,0x02,
-0x02,0x00,0x63,0x30,
-0xFD,0x00,0x04,0x32,
-0x0B,0x80,0x83,0x00,
-0x26,0x10,0x65,0x02,
-0x04,0x00,0x42,0x30,
-0xFB,0x00,0x03,0x32,
-0x0B,0x80,0x62,0x00,
-0x26,0x28,0x65,0x02,
-0x08,0x00,0xA5,0x30,
-0xF7,0x00,0x02,0x32,
-0x0B,0x80,0x45,0x00,
-0x0F,0x00,0x03,0x32,
-0x0D,0x00,0x76,0x10,
-0x00,0x00,0x00,0x00,
-0x3E,0x57,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x90,0x40,0x00,
-0x19,0x00,0xB0,0xA3,
-0xBE,0x58,0x00,0x08,
-0x18,0x00,0xB4,0xA3,
-0x21,0x10,0x32,0x02,
-0x01,0x00,0x42,0x24,
-0xFF,0xFF,0x52,0x30,
-0x01,0x00,0x16,0x24,
-0x8B,0x58,0x00,0x08,
-0x18,0x00,0xB4,0xA3,
-0xBE,0x58,0x00,0x08,
-0x21,0xB8,0x00,0x00,
-0x01,0x80,0x02,0x3C,
-0x25,0xB0,0x03,0x3C,
-0xBC,0x65,0x42,0x24,
-0x18,0x03,0x63,0x34,
-0x00,0x00,0x62,0xAC,
-0x00,0x00,0x83,0x90,
-0x30,0x00,0x02,0x24,
-0x05,0x00,0x62,0x10,
-0x21,0x20,0x00,0x00,
-0x31,0x00,0x02,0x24,
-0x02,0x00,0x62,0x10,
-0x01,0x00,0x04,0x24,
-0x07,0x00,0x04,0x24,
-0x93,0x55,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x02,0x3C,
-0x25,0xB0,0x03,0x3C,
-0xF8,0x65,0x42,0x24,
-0x18,0x03,0x63,0x34,
-0x02,0x80,0x04,0x3C,
-0x00,0x00,0x62,0xAC,
-0x08,0x00,0xE0,0x03,
-0x14,0x5E,0x80,0xAC,
-0x42,0xB0,0x02,0x3C,
-0x03,0x00,0x47,0x34,
-0x00,0x00,0xE3,0x90,
-0xFF,0x00,0x84,0x30,
-0x04,0x00,0x84,0x24,
-0xFF,0x00,0x65,0x30,
-0x01,0x00,0x02,0x24,
-0x04,0x30,0x82,0x00,
-0x07,0x18,0x85,0x00,
-0x25,0xB0,0x02,0x3C,
-0xE8,0x03,0x42,0x34,
-0x01,0x00,0x63,0x30,
-0x21,0x20,0xC0,0x00,
-0x00,0x00,0x45,0xA0,
-0x02,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xE6,0xA0,
-0x08,0x00,0xE0,0x03,
-0x24,0x10,0x85,0x00,
-0x00,0x60,0x03,0x40,
-0x01,0x00,0x61,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x02,0x80,0x02,0x3C,
-0x08,0xE4,0x42,0x24,
-0x04,0x00,0x45,0x8C,
-0x00,0x00,0x82,0xAC,
-0x04,0x00,0x44,0xAC,
-0x00,0x00,0xA4,0xAC,
-0x04,0x00,0x85,0xAC,
-0x00,0x60,0x83,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x03,0x40,
-0x01,0x00,0x61,0x34,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x04,0x00,0x85,0x8C,
-0x00,0x00,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA2,0xAC,
-0x04,0x00,0x45,0xAC,
-0x00,0x00,0x84,0xAC,
-0x04,0x00,0x84,0xAC,
-0x00,0x60,0x83,0x40,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x85,0xAC,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x24,0x04,0x00,
-0xFF,0x00,0x84,0x30,
-0xC0,0x18,0x04,0x00,
-0x21,0x18,0x64,0x00,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x64,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x1C,0x24,0x64,0x8C,
-0xFF,0xF1,0x02,0x24,
-0x24,0x20,0x82,0x00,
-0x08,0x00,0xE0,0x03,
-0x1C,0x24,0x64,0xAC,
-0x02,0x24,0x04,0x00,
-0xFF,0x00,0x84,0x30,
-0xC0,0x18,0x04,0x00,
-0x21,0x18,0x64,0x00,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x64,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x62,0x00,
-0x1C,0x24,0x64,0x8C,
-0xFF,0xF1,0x02,0x24,
-0x24,0x20,0x82,0x00,
-0x00,0x02,0x84,0x34,
-0x08,0x00,0xE0,0x03,
-0x1C,0x24,0x64,0xAC,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0xC0,0x80,0x04,0x00,
-0x21,0x80,0x04,0x02,
-0x80,0x80,0x10,0x00,
-0x21,0x80,0x04,0x02,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x80,0x10,0x00,
-0x21,0x80,0x02,0x02,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x24,0x05,0x8E,
-0xFF,0x1F,0x02,0x3C,
-0x25,0xB0,0x12,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x14,0x24,0x02,0xAE,
-0x84,0x01,0x43,0x36,
-0xF8,0xFF,0x02,0x24,
-0x00,0x00,0x66,0x8C,
-0x24,0x28,0xA2,0x00,
-0xFF,0xFE,0x02,0x24,
-0x24,0x28,0xA2,0x00,
-0xFF,0xEF,0x03,0x24,
-0x24,0x28,0xA3,0x00,
-0x18,0x24,0x06,0xAE,
-0x1C,0x24,0x05,0xAE,
-0xC9,0x24,0x00,0x0C,
-0x21,0x88,0x80,0x00,
-0x1E,0x24,0x02,0x92,
-0x21,0x88,0x32,0x02,
-0x1C,0x00,0xBF,0x8F,
-0x60,0x01,0x22,0xA2,
-0x18,0x00,0xB2,0x8F,
-0x08,0x24,0x00,0xAE,
-0xEC,0x23,0x00,0xAE,
-0xF0,0x23,0x00,0xAE,
-0xF4,0x23,0x00,0xAE,
-0xF8,0x23,0x00,0xAE,
-0xFC,0x23,0x00,0xAE,
-0x00,0x24,0x00,0xAE,
-0x04,0x24,0x00,0xAE,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xFF,0x00,0xA5,0x30,
-0xC0,0x10,0x05,0x00,
-0x21,0x10,0x45,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x45,0x00,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x1C,0x24,0x43,0x8C,
-0x25,0xB0,0x05,0x3C,
-0xFF,0x00,0xC6,0x30,
-0x21,0x30,0xC5,0x00,
-0xAF,0x01,0xC2,0x90,
-0x07,0x00,0x63,0x30,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x65,0x00,
-0xFF,0x00,0x88,0x30,
-0xFF,0x00,0x49,0x30,
-0x84,0x01,0x66,0x8C,
-0x21,0x50,0x00,0x00,
-0x21,0x58,0x00,0x00,
-0x2B,0x00,0x20,0x11,
-0x21,0x20,0x00,0x01,
-0x2B,0x00,0xC0,0x10,
-0x2B,0x10,0x09,0x01,
-0x21,0x28,0x00,0x00,
-0x2D,0x5A,0x00,0x08,
-0x01,0x00,0x07,0x24,
-0xFF,0x00,0x65,0x30,
-0x1D,0x00,0xA2,0x2C,
-0x07,0x00,0x40,0x10,
-0xFF,0xFF,0x02,0x25,
-0x04,0x10,0xA7,0x00,
-0x24,0x10,0x46,0x00,
-0xF9,0xFF,0x40,0x10,
-0x01,0x00,0xA3,0x24,
-0x21,0x58,0xA0,0x00,
-0xFF,0xFF,0x02,0x25,
-0xFF,0x00,0x45,0x30,
-0x2B,0x18,0xAB,0x00,
-0x0F,0x00,0x60,0x14,
-0x2B,0x10,0x49,0x01,
-0x01,0x00,0x04,0x24,
-0x04,0x10,0xA4,0x00,
-0x24,0x10,0x46,0x00,
-0xFF,0xFF,0xA7,0x24,
-0x04,0x00,0x40,0x10,
-0x01,0x00,0x43,0x25,
-0x17,0x00,0x49,0x11,
-0xFF,0x00,0x6A,0x30,
-0x21,0x40,0xA0,0x00,
-0xFF,0x00,0xE5,0x30,
-0x2B,0x10,0xAB,0x00,
-0xF6,0xFF,0x40,0x10,
-0x04,0x10,0xA4,0x00,
-0x2B,0x10,0x49,0x01,
-0x08,0x00,0x40,0x10,
-0x21,0x20,0x00,0x01,
-0x23,0x10,0x2A,0x01,
-0x2A,0x10,0x62,0x01,
-0x04,0x00,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0x23,0x10,0x69,0x01,
-0x21,0x10,0x4A,0x00,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0xFD,0xFF,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0x23,0x10,0x09,0x01,
-0x4E,0x5A,0x00,0x08,
-0xFF,0x00,0x44,0x30,
-0x21,0x20,0x00,0x01,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0xFF,0x00,0x84,0x30,
-0xC0,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x25,0xB0,0x06,0x3C,
-0x1C,0x24,0x43,0x8C,
-0xFF,0x00,0xA5,0x30,
-0x21,0x20,0x86,0x00,
-0x21,0x28,0xA6,0x00,
-0x60,0x01,0x82,0x90,
-0xAF,0x01,0xA4,0x90,
-0x07,0x00,0x63,0x30,
-0x80,0x18,0x03,0x00,
-0x21,0x18,0x66,0x00,
-0xFF,0x00,0x48,0x30,
-0xFF,0x00,0x89,0x30,
-0x84,0x01,0x66,0x8C,
-0x21,0x50,0x00,0x00,
-0x21,0x58,0x00,0x00,
-0x2B,0x00,0x20,0x11,
-0x21,0x20,0x00,0x01,
-0x2B,0x00,0xC0,0x10,
-0x2B,0x10,0x09,0x01,
-0x21,0x28,0x00,0x00,
-0x7B,0x5A,0x00,0x08,
-0x01,0x00,0x07,0x24,
-0xFF,0x00,0x65,0x30,
-0x1D,0x00,0xA2,0x2C,
-0x07,0x00,0x40,0x10,
-0xFF,0xFF,0x02,0x25,
-0x04,0x10,0xA7,0x00,
-0x24,0x10,0x46,0x00,
-0xF9,0xFF,0x40,0x10,
-0x01,0x00,0xA3,0x24,
-0x21,0x58,0xA0,0x00,
-0xFF,0xFF,0x02,0x25,
-0xFF,0x00,0x45,0x30,
-0x2B,0x18,0xAB,0x00,
-0x0F,0x00,0x60,0x14,
-0x2B,0x10,0x49,0x01,
-0x01,0x00,0x04,0x24,
-0x04,0x10,0xA4,0x00,
-0x24,0x10,0x46,0x00,
-0xFF,0xFF,0xA7,0x24,
-0x04,0x00,0x40,0x10,
-0x01,0x00,0x43,0x25,
-0x17,0x00,0x49,0x11,
-0xFF,0x00,0x6A,0x30,
-0x21,0x40,0xA0,0x00,
-0xFF,0x00,0xE5,0x30,
-0x2B,0x10,0xAB,0x00,
-0xF6,0xFF,0x40,0x10,
-0x04,0x10,0xA4,0x00,
-0x2B,0x10,0x49,0x01,
-0x08,0x00,0x40,0x10,
-0x21,0x20,0x00,0x01,
-0x23,0x10,0x2A,0x01,
-0x2A,0x10,0x62,0x01,
-0x04,0x00,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0x23,0x10,0x69,0x01,
-0x21,0x10,0x4A,0x00,
-0xFF,0x00,0x44,0x30,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0xFD,0xFF,0x40,0x14,
-0x21,0x20,0x00,0x00,
-0x23,0x10,0x09,0x01,
-0x9C,0x5A,0x00,0x08,
-0xFF,0x00,0x44,0x30,
-0x21,0x20,0x00,0x01,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x80,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x10,0x00,0xB0,0xAF,
-0x30,0x1F,0x50,0x24,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x21,0x88,0x00,0x00,
-0x21,0x90,0x00,0x02,
-0xDD,0x59,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x1E,0x24,0x02,0x92,
-0x21,0x28,0x00,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x52,0x00,
-0x60,0x05,0x44,0x8C,
-0xD4,0x05,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x21,0x18,0x64,0x00,
-0x42,0x18,0x03,0x00,
-0xE8,0x23,0x03,0xAE,
-0x21,0x10,0x05,0x02,
-0x01,0x00,0xA5,0x24,
-0x1D,0x00,0xA3,0x28,
-0x5A,0x24,0x40,0xA0,
-0x20,0x24,0x40,0xA0,
-0xFA,0xFF,0x60,0x14,
-0x3D,0x24,0x40,0xA0,
-0x01,0x00,0x31,0x26,
-0x20,0x00,0x22,0x2A,
-0x78,0x24,0x00,0xAE,
-0xE9,0xFF,0x40,0x14,
-0x94,0x00,0x10,0x26,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x28,0x00,0xB6,0xAF,
-0x02,0x80,0x16,0x3C,
-0x24,0x00,0xB5,0xAF,
-0x30,0x1F,0xC6,0x26,
-0x2C,0x00,0xBF,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x30,0x38,0xC2,0x8C,
-0xFF,0x00,0x8D,0x30,
-0xFF,0x00,0x03,0x24,
-0xFF,0xFF,0x42,0x38,
-0x21,0xA8,0x00,0x00,
-0xFF,0xFF,0x04,0x34,
-0x0A,0xA8,0x62,0x00,
-0xA4,0x00,0xA0,0x11,
-0x30,0x38,0xC4,0xAC,
-0x02,0x80,0x02,0x3C,
-0xE4,0xE7,0x45,0x24,
-0x04,0x05,0xC4,0x24,
-0xEB,0x5A,0x00,0x08,
-0x21,0x80,0x00,0x00,
-0x01,0x00,0x10,0x26,
-0x00,0x00,0x82,0xA0,
-0x1D,0x00,0x02,0x2A,
-0x0B,0x00,0x40,0x10,
-0x01,0x00,0x84,0x24,
-0x21,0x10,0x05,0x02,
-0x00,0x00,0x42,0x90,
-0x00,0x00,0x00,0x00,
-0xF7,0xFF,0x40,0x10,
-0xFD,0xFF,0x43,0x24,
-0x01,0x00,0x10,0x26,
-0x1D,0x00,0x02,0x2A,
-0x00,0x00,0x83,0xA0,
-0xF7,0xFF,0x40,0x14,
-0x01,0x00,0x84,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x4A,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x7C,0xE5,0x6C,0x24,
-0x04,0xE5,0x4B,0x24,
-0x21,0x80,0x00,0x00,
-0x21,0x48,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x21,0x40,0x2A,0x01,
-0x21,0x38,0x2C,0x01,
-0x21,0x10,0xE6,0x00,
-0x91,0x00,0x44,0x90,
-0x00,0x00,0x45,0x90,
-0x21,0x18,0x06,0x01,
-0x01,0x00,0xC6,0x24,
-0x05,0x00,0xC2,0x28,
-0x39,0x04,0x64,0xA0,
-0xF8,0xFF,0x40,0x14,
-0xA8,0x03,0x65,0xA0,
-0x21,0x10,0x0B,0x02,
-0x1D,0x00,0x44,0x90,
-0x00,0x00,0x45,0x90,
-0x21,0x18,0x0A,0x02,
-0x01,0x00,0x10,0x26,
-0x1D,0x00,0x02,0x2A,
-0xE7,0x04,0x64,0xA0,
-0xCA,0x04,0x65,0xA0,
-0xEB,0xFF,0x40,0x14,
-0x05,0x00,0x29,0x25,
-0x9A,0x00,0xA0,0x11,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x48,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x78,0xE8,0x69,0x24,
-0x04,0xE8,0x47,0x24,
-0x21,0x80,0x00,0x00,
-0x80,0x18,0x10,0x00,
-0x21,0x10,0x69,0x00,
-0x21,0x20,0x67,0x00,
-0x00,0x00,0x46,0x8C,
-0x00,0x00,0x85,0x8C,
-0x01,0x00,0x10,0x26,
-0x21,0x18,0x68,0x00,
-0x04,0x00,0x02,0x2A,
-0x60,0x05,0x65,0xAC,
-0xF6,0xFF,0x40,0x14,
-0xD4,0x05,0x66,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x49,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x78,0xE8,0x68,0x24,
-0x04,0xE8,0x47,0x24,
-0x04,0x00,0x10,0x24,
-0x80,0x20,0x10,0x00,
-0x21,0x10,0x88,0x00,
-0x21,0x30,0x87,0x00,
-0x00,0x00,0x45,0x8C,
-0x00,0x00,0xC3,0x8C,
-0x01,0x00,0x10,0x26,
-0x21,0x20,0x89,0x00,
-0x82,0x28,0x05,0x00,
-0x82,0x18,0x03,0x00,
-0x1D,0x00,0x02,0x2A,
-0x60,0x05,0x83,0xAC,
-0xF4,0xFF,0x40,0x14,
-0xD4,0x05,0x85,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x53,0x24,
-0x21,0x80,0x00,0x00,
-0x21,0xA0,0x60,0x02,
-0x21,0x90,0x00,0x00,
-0x46,0x5B,0x00,0x08,
-0x21,0x88,0x60,0x02,
-0x01,0x00,0x10,0x26,
-0x20,0x00,0x02,0x2A,
-0x94,0x00,0x31,0x26,
-0x32,0x00,0x40,0x10,
-0x94,0x00,0x52,0x26,
-0x1C,0x24,0x24,0x8E,
-0x01,0x00,0x03,0x24,
-0x02,0x13,0x04,0x00,
-0x01,0x00,0x42,0x30,
-0xF6,0xFF,0x43,0x14,
-0x07,0x00,0x82,0x30,
-0x25,0xB0,0x03,0x3C,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x43,0x00,
-0x84,0x01,0x45,0x8C,
-0x14,0x24,0x23,0x8E,
-0x21,0x20,0x00,0x02,
-0x24,0x28,0xA3,0x00,
-0xC9,0x24,0x00,0x0C,
-0x18,0x24,0x25,0xAE,
-0x1E,0x24,0x24,0x92,
-0x57,0x24,0x00,0x0C,
-0xFF,0x00,0x05,0x32,
-0x1E,0x24,0x23,0x92,
-0xEC,0x23,0x20,0xAE,
-0xF0,0x23,0x20,0xAE,
-0x80,0x18,0x03,0x00,
-0xF4,0x23,0x20,0xAE,
-0xF8,0x23,0x20,0xAE,
-0xFC,0x23,0x20,0xAE,
-0x00,0x24,0x20,0xAE,
-0x04,0x24,0x20,0xAE,
-0x08,0x24,0x20,0xAE,
-0x21,0x18,0x74,0x00,
-0x60,0x05,0x64,0x8C,
-0xD4,0x05,0x62,0x8C,
-0x21,0x30,0x00,0x00,
-0x21,0x28,0x53,0x02,
-0x21,0x10,0x44,0x00,
-0x42,0x10,0x02,0x00,
-0xE8,0x23,0x22,0xAE,
-0x21,0x10,0xA6,0x00,
-0x01,0x00,0xC6,0x24,
-0x1D,0x00,0xC3,0x28,
-0x5A,0x24,0x40,0xA0,
-0x20,0x24,0x40,0xA0,
-0xFA,0xFF,0x60,0x14,
-0x3D,0x24,0x40,0xA0,
-0x01,0x00,0x10,0x26,
-0x20,0x00,0x02,0x2A,
-0x78,0x24,0xA0,0xAC,
-0x94,0x00,0x31,0x26,
-0xD0,0xFF,0x40,0x14,
-0x94,0x00,0x52,0x26,
-0x02,0x00,0xA0,0x16,
-0x30,0x1F,0xC2,0x26,
-0x30,0x38,0x40,0xAC,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0xE4,0xE7,0x45,0x24,
-0x04,0x05,0xC4,0x24,
-0x21,0x80,0x00,0x00,
-0x21,0x10,0x05,0x02,
-0x00,0x00,0x43,0x90,
-0x01,0x00,0x10,0x26,
-0x1D,0x00,0x02,0x2A,
-0x00,0x00,0x83,0xA0,
-0xFA,0xFF,0x40,0x14,
-0x01,0x00,0x84,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x4A,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xA0,0xE6,0x6C,0x24,
-0x40,0xE5,0x4B,0x24,
-0x21,0x80,0x00,0x00,
-0x21,0x48,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x21,0x40,0x2A,0x01,
-0x21,0x38,0x2C,0x01,
-0x21,0x10,0xE6,0x00,
-0x91,0x00,0x44,0x90,
-0x00,0x00,0x45,0x90,
-0x21,0x18,0x06,0x01,
-0x01,0x00,0xC6,0x24,
-0x05,0x00,0xC2,0x28,
-0x39,0x04,0x64,0xA0,
-0xF8,0xFF,0x40,0x14,
-0xA8,0x03,0x65,0xA0,
-0x21,0x10,0x0B,0x02,
-0x1D,0x00,0x44,0x90,
-0x00,0x00,0x45,0x90,
-0x21,0x18,0x0A,0x02,
-0x01,0x00,0x10,0x26,
-0x1D,0x00,0x02,0x2A,
-0xE7,0x04,0x64,0xA0,
-0xCA,0x04,0x65,0xA0,
-0xEB,0xFF,0x40,0x14,
-0x05,0x00,0x29,0x25,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x49,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x78,0xE8,0x68,0x24,
-0x04,0xE8,0x47,0x24,
-0x21,0x80,0x00,0x00,
-0x80,0x18,0x10,0x00,
-0x21,0x10,0x68,0x00,
-0x21,0x20,0x67,0x00,
-0x00,0x00,0x46,0x8C,
-0x00,0x00,0x85,0x8C,
-0x01,0x00,0x10,0x26,
-0x21,0x18,0x69,0x00,
-0x1D,0x00,0x02,0x2A,
-0x60,0x05,0x65,0xAC,
-0xF6,0xFF,0x40,0x14,
-0xD4,0x05,0x66,0xAC,
-0x3B,0x5B,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0xD8,0xFF,0xBD,0x27,
-0xFF,0xFF,0x84,0x30,
-0x18,0x00,0xB2,0xAF,
-0xF0,0x01,0x92,0x30,
-0x02,0x91,0x12,0x00,
-0x14,0x00,0xB1,0xAF,
-0xC0,0x88,0x12,0x00,
-0x21,0x88,0x32,0x02,
-0x80,0x88,0x11,0x00,
-0x21,0x88,0x32,0x02,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x88,0x11,0x00,
-0x21,0x88,0x22,0x02,
-0x20,0x00,0xBF,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x1C,0x24,0x30,0x8E,
-0x00,0x02,0x82,0x30,
-0xFF,0xFE,0x03,0x24,
-0x2B,0x10,0x02,0x00,
-0x00,0x10,0x10,0x36,
-0x24,0x80,0x03,0x02,
-0x00,0x12,0x02,0x00,
-0x25,0x80,0x02,0x02,
-0x14,0x24,0x25,0xAE,
-0x1C,0x24,0x30,0xAE,
-0x76,0x25,0x00,0x0C,
-0x21,0x98,0xA0,0x00,
-0xF8,0xFF,0x03,0x24,
-0x24,0x80,0x03,0x02,
-0x07,0x00,0x42,0x30,
-0x25,0x80,0x02,0x02,
-0x07,0x00,0x03,0x32,
-0x25,0xB0,0x02,0x3C,
-0x80,0x18,0x03,0x00,
-0x1C,0x24,0x30,0xAE,
-0x21,0x18,0x62,0x00,
-0x84,0x01,0x62,0x8C,
-0x21,0x20,0x40,0x02,
-0x24,0x10,0x53,0x00,
-0xC9,0x24,0x00,0x0C,
-0x18,0x24,0x22,0xAE,
-0x1E,0x24,0x24,0x92,
-0x21,0x28,0x40,0x02,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x57,0x24,0x00,0x08,
-0x28,0x00,0xBD,0x27,
-0xDD,0x59,0x00,0x08,
-0xFF,0x00,0x84,0x30,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x43,0x24,
-0x1F,0x00,0x04,0x24,
-0x1C,0x24,0x62,0x8C,
-0xFF,0xFF,0x84,0x24,
-0x00,0x10,0x42,0x34,
-0x1C,0x24,0x62,0xAC,
-0xFB,0xFF,0x81,0x04,
-0x94,0x00,0x63,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x85,0xAC,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x44,0x00,0x02,0x24,
-0x10,0x00,0xA2,0xA3,
-0x49,0x00,0x03,0x24,
-0x47,0x00,0x02,0x24,
-0x02,0x80,0x07,0x3C,
-0xD4,0xF3,0xE7,0x24,
-0x11,0x00,0xA3,0xA3,
-0x12,0x00,0xA2,0xA3,
-0x10,0x27,0x03,0x24,
-0x01,0x00,0x02,0x24,
-0x01,0x80,0x06,0x3C,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0xE0,0x00,
-0x20,0x73,0xC6,0x24,
-0x0C,0x00,0xE3,0xAC,
-0x14,0x00,0xE2,0xA0,
-0x18,0x00,0xBF,0xAF,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD0,0xFF,0xBD,0x27,
-0x25,0xB0,0x03,0x3C,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x2C,0x00,0xBF,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x03,0x0D,0x64,0x34,
-0x00,0x00,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x54,0x30,
-0x70,0x00,0x93,0x32,
-0x5D,0x00,0x60,0x12,
-0x42,0x00,0x63,0x34,
-0x8F,0x00,0x82,0x32,
-0x00,0x00,0x82,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x55,0x00,0x60,0x12,
-0x00,0x00,0x00,0x00,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0F,0x00,0x11,0x3C,
-0x21,0x20,0x00,0x00,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x21,0xA8,0x40,0x00,
-0x00,0x60,0x92,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x21,0x20,0x00,0x00,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x21,0xB0,0x40,0x00,
-0x00,0x60,0x92,0x40,
-0x64,0x00,0x04,0x24,
-0x54,0x22,0x00,0x0C,
-0x08,0x00,0x10,0x3C,
-0xFF,0xFF,0x10,0x36,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x01,0x00,0x12,0x3C,
-0x24,0x30,0xB0,0x02,
-0x25,0x30,0xD2,0x00,
-0xFF,0xFF,0x25,0x36,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x24,0x80,0xD0,0x02,
-0xE6,0x44,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x25,0x30,0x12,0x02,
-0xFF,0xFF,0x25,0x36,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0F,0x00,0x10,0x3C,
-0x18,0x00,0x04,0x24,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x05,0x36,
-0x21,0x88,0x40,0x00,
-0x00,0x60,0x92,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x18,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x00,0x80,0x26,0x36,
-0x25,0x22,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0x25,0x00,0x60,0x16,
-0x25,0xB0,0x02,0x3C,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x25,0xB0,0x02,0x3C,
-0x42,0x00,0x42,0x34,
-0x30,0x00,0xBD,0x27,
-0x00,0x00,0x40,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x02,0x24,
-0x00,0x00,0x62,0xA0,
-0x00,0x60,0x12,0x40,
-0x01,0x00,0x41,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x0F,0x00,0x10,0x3C,
-0x18,0x00,0x04,0x24,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x05,0x36,
-0x21,0x88,0x40,0x00,
-0x00,0x60,0x92,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x18,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x00,0x80,0x26,0x36,
-0x25,0x22,0x00,0x0C,
-0x03,0x00,0x04,0x24,
-0xDD,0xFF,0x60,0x12,
-0x25,0xB0,0x02,0x3C,
-0x03,0x0D,0x42,0x34,
-0x00,0x00,0x54,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x0F,0x00,0x10,0x3C,
-0x21,0x30,0xA0,0x02,
-0xFF,0xFF,0x05,0x36,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x36,
-0x21,0x30,0xC0,0x02,
-0x5F,0x47,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x20,0x00,0x00,
-0xE6,0x44,0x00,0x08,
-0x30,0x00,0xBD,0x27,
-0xC8,0xFF,0xBD,0x27,
-0x28,0x00,0xB4,0xAF,
-0x02,0x80,0x14,0x3C,
-0x30,0x00,0xB6,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x30,0x1F,0x85,0x26,
-0x0C,0x00,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x82,0x17,0x02,0x00,
-0x01,0x00,0x42,0x30,
-0x08,0x00,0x40,0x14,
-0x06,0x00,0x16,0x24,
-0x08,0x00,0xA2,0x8C,
-0x01,0x00,0x03,0x24,
-0x42,0x17,0x02,0x00,
-0x03,0x00,0x42,0x30,
-0x57,0x00,0x43,0x10,
-0x25,0xB0,0x02,0x3C,
-0x30,0x1F,0x85,0x26,
-0x0C,0x00,0xA2,0x8C,
-0x01,0x00,0x03,0x24,
-0x82,0x17,0x02,0x00,
-0x01,0x00,0x44,0x30,
-0x0B,0x00,0x83,0x10,
-0x21,0x10,0x00,0x00,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x08,0x00,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x42,0x17,0x02,0x00,
-0x03,0x00,0x43,0x30,
-0xF1,0xFF,0x64,0x14,
-0x21,0x10,0x00,0x00,
-0x10,0x00,0xA2,0x8C,
-0x00,0x00,0x00,0x00,
-0x82,0x17,0x02,0x00,
-0x50,0x02,0x43,0x10,
-0x25,0xB0,0x02,0x3C,
-0xC7,0x02,0xB3,0x90,
-0x62,0x0C,0x42,0x34,
-0xFF,0x00,0x63,0x32,
-0x00,0x00,0x43,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x90,0x26,
-0xC6,0x02,0x02,0x92,
-0x00,0x00,0x00,0x00,
-0x83,0x00,0x40,0x10,
-0x01,0x00,0x02,0x24,
-0x25,0xB0,0x11,0x3C,
-0x03,0x0D,0x23,0x36,
-0x00,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x70,0x00,0x42,0x30,
-0xA9,0x00,0x40,0x14,
-0xCC,0x00,0x02,0x24,
-0xC4,0x02,0x02,0x96,
-0x00,0x00,0x00,0x00,
-0x23,0x20,0x53,0x00,
-0x2B,0x18,0x53,0x00,
-0x23,0x10,0x62,0x02,
-0x0A,0x10,0x83,0x00,
-0x03,0x00,0x42,0x2C,
-0x76,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xC4,0x02,0x03,0x92,
-0x63,0x0C,0x22,0x36,
-0x21,0x20,0x00,0x00,
-0x00,0x00,0x43,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x30,0x1F,0x83,0x26,
-0xC3,0x02,0x62,0x90,
-0x08,0x00,0x66,0x8C,
-0xC2,0x02,0x73,0xA0,
-0x23,0x20,0x53,0x00,
-0x02,0x2C,0x06,0x00,
-0x2B,0x40,0x62,0x02,
-0x23,0x90,0x62,0x02,
-0x0B,0x90,0x88,0x00,
-0x3F,0x00,0xA7,0x30,
-0x3F,0x00,0xC6,0x30,
-0x24,0x00,0x02,0x24,
-0x20,0x00,0x03,0x24,
-0x23,0x10,0x46,0x00,
-0x91,0x00,0x40,0x16,
-0x23,0x20,0x67,0x00,
-0xE6,0x5C,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x80,0x0C,0x42,0x34,
-0x00,0x00,0x43,0x8C,
-0x21,0x30,0xA0,0x00,
-0xC0,0xFF,0x02,0x3C,
-0x24,0x20,0x62,0x00,
-0x21,0x88,0x00,0x00,
-0xC0,0xFF,0x05,0x3C,
-0x42,0x5D,0x00,0x08,
-0x18,0x00,0xC3,0x24,
-0x01,0x00,0x31,0x26,
-0x25,0x00,0x22,0x2E,
-0x0D,0x00,0x40,0x10,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x45,0x00,
-0xF8,0xFF,0x44,0x14,
-0x04,0x00,0x63,0x24,
-0x08,0x00,0xC2,0x8C,
-0xC0,0xFF,0x03,0x24,
-0x3F,0x00,0x24,0x32,
-0x24,0x10,0x43,0x00,
-0x25,0x10,0x44,0x00,
-0x08,0x00,0xC2,0xAC,
-0x02,0x80,0x02,0x3C,
-0xDE,0x5D,0x44,0x90,
-0x22,0x00,0x03,0x24,
-0x42,0x00,0x83,0x10,
-0x92,0x00,0x02,0x24,
-0x41,0x00,0x82,0x10,
-0x25,0xB0,0x02,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x24,0x0A,0x42,0x34,
-0x00,0x00,0x44,0x8C,
-0x3F,0x3F,0x03,0x3C,
-0x3F,0x3F,0x63,0x34,
-0x24,0x20,0x83,0x00,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xDE,0x1F,0x53,0x24,
-0xE6,0x20,0x72,0x24,
-0x21,0x88,0x00,0x00,
-0x69,0x5D,0x00,0x08,
-0x10,0x00,0xA4,0xAF,
-0x39,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x4B,0x00,0x40,0x10,
-0x30,0x1F,0x85,0x26,
-0x01,0x00,0x31,0x26,
-0x21,0x00,0x22,0x2E,
-0x17,0x00,0x40,0x10,
-0x30,0x1F,0x82,0x26,
-0xC0,0x80,0x11,0x00,
-0x10,0x00,0xA4,0x27,
-0x21,0x28,0x13,0x02,
-0x39,0x52,0x00,0x0C,
-0x04,0x00,0x06,0x24,
-0x21,0x28,0x12,0x02,
-0x10,0x00,0xA4,0x27,
-0xF0,0xFF,0x40,0x14,
-0x04,0x00,0x06,0x24,
-0x30,0x1F,0x85,0x26,
-0x08,0x00,0xA3,0x8C,
-0xC0,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x3F,0x00,0x24,0x32,
-0x24,0x18,0x62,0x00,
-0x00,0x24,0x04,0x00,
-0xFF,0x7F,0x02,0x3C,
-0x25,0x18,0x64,0x00,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x08,0x00,0xA3,0xAC,
-0x30,0x1F,0x82,0x26,
-0x0C,0x00,0x43,0x8C,
-0x00,0x40,0x04,0x3C,
-0x30,0x1F,0x85,0x26,
-0x25,0x18,0x64,0x00,
-0x0C,0x00,0x43,0xAC,
-0x0C,0x00,0xA2,0x8C,
-0x01,0x00,0x03,0x24,
-0x82,0x17,0x02,0x00,
-0x01,0x00,0x44,0x30,
-0x5D,0xFF,0x83,0x14,
-0x21,0x10,0x00,0x00,
-0xF0,0x5C,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xC6,0x02,0x02,0xA2,
-0x0A,0x5D,0x00,0x08,
-0xC4,0x02,0x13,0xA6,
-0x23,0x5C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x1A,0x5D,0x00,0x08,
-0xC4,0x02,0x13,0xA6,
-0x25,0xB0,0x02,0x3C,
-0x88,0x0C,0x42,0x34,
-0x00,0x00,0x44,0x8C,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x66,0x24,
-0xC0,0xFF,0x02,0x3C,
-0x24,0x20,0x82,0x00,
-0x21,0x88,0x00,0x00,
-0xC0,0xFF,0x05,0x3C,
-0xA2,0x5D,0x00,0x08,
-0x18,0x00,0xC3,0x24,
-0x01,0x00,0x31,0x26,
-0x25,0x00,0x22,0x2E,
-0xB4,0xFF,0x40,0x10,
-0x25,0xB0,0x02,0x3C,
-0x00,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x45,0x00,
-0xF8,0xFF,0x44,0x14,
-0x04,0x00,0x63,0x24,
-0x08,0x00,0xC2,0x8C,
-0x3F,0x00,0x23,0x32,
-0xFF,0xC0,0x04,0x24,
-0x24,0x10,0x44,0x00,
-0x00,0x1A,0x03,0x00,
-0x25,0x10,0x43,0x00,
-0x54,0x5D,0x00,0x08,
-0x08,0x00,0xC2,0xAC,
-0x08,0x00,0xA3,0x8C,
-0xC0,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x3F,0x00,0x24,0x32,
-0x24,0x18,0x62,0x00,
-0x00,0x24,0x04,0x00,
-0x25,0x18,0x64,0x00,
-0x00,0x80,0x02,0x3C,
-0x7D,0x5D,0x00,0x08,
-0x25,0x18,0x62,0x00,
-0x63,0x0C,0x23,0x36,
-0x00,0x00,0x62,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x24,0x5D,0x00,0x08,
-0x30,0x1F,0x83,0x26,
-0x71,0x01,0x00,0x11,
-0x23,0x28,0xF2,0x00,
-0x2B,0x10,0x42,0x02,
-0x21,0x18,0xD2,0x00,
-0x00,0x00,0x42,0x38,
-0x24,0x00,0x08,0x24,
-0x2B,0x20,0x44,0x02,
-0x0B,0x40,0x62,0x00,
-0x06,0x00,0x80,0x10,
-0x20,0x00,0x15,0x24,
-0x30,0x1F,0x83,0x26,
-0x0A,0x00,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x3F,0x00,0x42,0x30,
-0x21,0xA8,0x52,0x00,
-0x2B,0x28,0xC8,0x02,
-0x5E,0x01,0xA0,0x10,
-0x30,0x1F,0x82,0x26,
-0x80,0x10,0x08,0x00,
-0x30,0x1F,0x83,0x26,
-0x21,0x10,0x43,0x00,
-0x18,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x82,0x25,0x04,0x00,
-0x30,0x1F,0x86,0x26,
-0x0C,0x00,0xC3,0x8C,
-0x00,0x00,0x00,0x00,
-0xFF,0x03,0x67,0x30,
-0x47,0x01,0xE0,0x10,
-0x00,0x02,0x62,0x30,
-0x04,0x00,0x40,0x10,
-0x18,0x00,0xE4,0x00,
-0x00,0xFC,0x02,0x24,
-0x25,0x38,0xE2,0x00,
-0x18,0x00,0xE4,0x00,
-0x82,0x82,0x03,0x00,
-0xFF,0x03,0x10,0x32,
-0x00,0x02,0x03,0x32,
-0x12,0x10,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x03,0x00,0x60,0x10,
-0xFF,0x03,0x45,0x30,
-0x00,0xFC,0x02,0x24,
-0x25,0x80,0x02,0x02,
-0x18,0x00,0x04,0x02,
-0x80,0x1D,0x04,0x00,
-0x25,0xB0,0x11,0x3C,
-0x80,0x0C,0x24,0x36,
-0x94,0x0C,0x31,0x36,
-0x12,0x80,0x00,0x00,
-0x02,0x82,0x10,0x00,
-0x3F,0x00,0x02,0x32,
-0x00,0x14,0x02,0x00,
-0x25,0x18,0x62,0x00,
-0x25,0x18,0x65,0x00,
-0x21,0x28,0x60,0x00,
-0x02,0x5C,0x00,0x0C,
-0x10,0x00,0xA3,0xAF,
-0x00,0x00,0x23,0x8E,
-0xFF,0x0F,0x02,0x3C,
-0xC0,0x03,0x10,0x32,
-0xFF,0xFF,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0x80,0x85,0x10,0x00,
-0x25,0x18,0x70,0x00,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x60,0x00,
-0x10,0x00,0xA3,0xAF,
-0x02,0x5C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x83,0x26,
-0x08,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0xB9,0x00,0x40,0x04,
-0xC0,0x28,0x15,0x00,
-0x21,0x10,0xA3,0x00,
-0xAC,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x22,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xAD,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x23,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xAE,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x24,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xAF,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x25,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB0,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x26,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB1,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x27,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB2,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x28,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB3,0x00,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x29,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x02,0x80,0x02,0x3C,
-0xDE,0x5D,0x44,0x90,
-0x22,0x00,0x03,0x24,
-0x03,0x00,0x83,0x10,
-0x92,0x00,0x02,0x24,
-0x73,0xFE,0x82,0x14,
-0x21,0x10,0x00,0x00,
-0x30,0x1F,0x82,0x26,
-0x08,0x00,0x43,0x8C,
-0x01,0x00,0x44,0x3A,
-0x24,0x00,0x02,0x24,
-0x02,0x1A,0x03,0x00,
-0x3F,0x00,0x63,0x30,
-0x01,0x00,0x84,0x30,
-0xF3,0x00,0x80,0x10,
-0x23,0x28,0x43,0x00,
-0x42,0x18,0x12,0x00,
-0x40,0x10,0x03,0x00,
-0x21,0x90,0x43,0x00,
-0x30,0x1F,0x83,0x26,
-0xC3,0x02,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x62,0x02,
-0xB8,0x00,0x40,0x10,
-0x2B,0x10,0x45,0x02,
-0x06,0x00,0x40,0x10,
-0x24,0x00,0x06,0x24,
-0x08,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x3F,0x00,0x42,0x30,
-0x21,0x30,0x52,0x00,
-0x2B,0x28,0xC6,0x02,
-0xB8,0x00,0xA0,0x10,
-0x30,0x1F,0x82,0x26,
-0x80,0x10,0x06,0x00,
-0x30,0x1F,0x83,0x26,
-0x21,0x10,0x43,0x00,
-0x18,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x82,0x25,0x04,0x00,
-0x30,0x1F,0x83,0x26,
-0x10,0x00,0x70,0x8C,
-0x00,0x00,0x00,0x00,
-0x82,0x3A,0x10,0x00,
-0xFF,0x03,0xE7,0x30,
-0xC5,0x00,0xE0,0x10,
-0x00,0x02,0xE2,0x30,
-0x04,0x00,0x40,0x10,
-0x18,0x00,0xE4,0x00,
-0x00,0xFC,0x02,0x24,
-0x25,0x38,0xE2,0x00,
-0x18,0x00,0xE4,0x00,
-0x02,0x85,0x10,0x00,
-0xFF,0x03,0x10,0x32,
-0x00,0x02,0x03,0x32,
-0x12,0x10,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x03,0x00,0x60,0x10,
-0xFF,0x03,0x45,0x30,
-0x00,0xFC,0x02,0x24,
-0x25,0x80,0x02,0x02,
-0x18,0x00,0x04,0x02,
-0x80,0x1D,0x04,0x00,
-0x25,0xB0,0x11,0x3C,
-0x88,0x0C,0x24,0x36,
-0x9C,0x0C,0x31,0x36,
-0x12,0x80,0x00,0x00,
-0x02,0x82,0x10,0x00,
-0x3F,0x00,0x02,0x32,
-0x00,0x14,0x02,0x00,
-0x25,0x18,0x62,0x00,
-0x25,0x18,0x65,0x00,
-0x21,0x28,0x60,0x00,
-0x02,0x5C,0x00,0x0C,
-0x10,0x00,0xA3,0xAF,
-0x00,0x00,0x23,0x8E,
-0xFF,0x0F,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xC0,0x03,0x10,0x32,
-0x24,0x18,0x62,0x00,
-0x80,0x85,0x10,0x00,
-0x25,0x18,0x70,0x00,
-0x21,0x20,0x20,0x02,
-0x21,0x28,0x60,0x00,
-0x02,0x5C,0x00,0x0C,
-0x10,0x00,0xA3,0xAF,
-0xE6,0x5C,0x00,0x08,
-0x21,0x10,0x00,0x00,
-0x21,0x10,0xA3,0x00,
-0xB4,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x22,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB5,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x23,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB6,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x24,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB7,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x25,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB8,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x26,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xB9,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x27,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xBA,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x28,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x42,0x24,
-0x30,0x1F,0x82,0x26,
-0x21,0x10,0xA2,0x00,
-0xBB,0x01,0x44,0x90,
-0x25,0xB0,0x03,0x3C,
-0x29,0x0A,0x63,0x34,
-0x00,0x00,0x64,0xA0,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x6E,0x5E,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x36,0x00,0xA0,0x10,
-0x80,0x10,0x08,0x00,
-0x21,0x10,0x46,0x00,
-0x18,0x00,0x45,0x8C,
-0x25,0xB0,0x04,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x80,0x0C,0x84,0x34,
-0x25,0xB0,0x04,0x3C,
-0x94,0x0C,0x84,0x34,
-0x07,0x5E,0x00,0x08,
-0x21,0x28,0x00,0x00,
-0x30,0x00,0x43,0x8C,
-0xDB,0x5D,0x00,0x08,
-0x82,0x25,0x03,0x00,
-0x23,0x20,0xD2,0x00,
-0x2B,0x10,0x46,0x02,
-0x2B,0x18,0x47,0x02,
-0x21,0x40,0x00,0x00,
-0x21,0xA8,0x00,0x00,
-0x0B,0x40,0x82,0x00,
-0xD2,0x5D,0x00,0x08,
-0x0B,0xA8,0xA3,0x00,
-0x08,0x00,0x62,0x8C,
-0x00,0x00,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0x3F,0x00,0x42,0x30,
-0x2B,0x18,0x42,0x02,
-0x4A,0xFF,0x60,0x14,
-0x23,0x30,0x52,0x00,
-0x21,0x30,0x00,0x00,
-0x21,0x28,0x00,0x00,
-0x30,0x1F,0x82,0x26,
-0x30,0x00,0x43,0x8C,
-0x96,0x5E,0x00,0x08,
-0x82,0x25,0x03,0x00,
-0x0F,0x00,0x11,0x3C,
-0xFF,0xFF,0x25,0x36,
-0x60,0x00,0x06,0x24,
-0x5F,0x47,0x00,0x0C,
-0x24,0x00,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0xE8,0x03,0x04,0x24,
-0x00,0x60,0x10,0x40,
-0x01,0x00,0x01,0x36,
-0x01,0x00,0x21,0x38,
-0x00,0x60,0x81,0x40,
-0x24,0x00,0x04,0x24,
-0x8A,0x47,0x00,0x0C,
-0xFF,0xFF,0x25,0x36,
-0x1F,0x00,0x53,0x30,
-0x00,0x60,0x90,0x40,
-0x54,0x22,0x00,0x0C,
-0x64,0x00,0x04,0x24,
-0x06,0x5D,0x00,0x08,
-0x30,0x1F,0x90,0x26,
-0x30,0x00,0xC5,0x8C,
-0x2C,0x5F,0x00,0x08,
-0x25,0xB0,0x04,0x3C,
-0x13,0x00,0xA0,0x10,
-0x00,0x00,0x00,0x00,
-0x80,0x10,0x06,0x00,
-0x21,0x10,0x43,0x00,
-0x18,0x00,0x45,0x8C,
-0x25,0xB0,0x04,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x88,0x0C,0x84,0x34,
-0x25,0xB0,0x04,0x3C,
-0x9C,0x0C,0x84,0x34,
-0x02,0x5C,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0xE6,0x5C,0x00,0x08,
-0x21,0x10,0x00,0x00,
-0xFF,0xFF,0x43,0x26,
-0x42,0x18,0x03,0x00,
-0x40,0x10,0x03,0x00,
-0x21,0x10,0x43,0x00,
-0x80,0x5E,0x00,0x08,
-0x01,0x00,0x52,0x24,
-0x30,0x00,0x65,0x8C,
-0x67,0x5F,0x00,0x08,
-0x25,0xB0,0x04,0x3C,
-0x00,0xFF,0x84,0x30,
-0x02,0x22,0x04,0x00,
-0x08,0x00,0x80,0x10,
-0x02,0x80,0x02,0x3C,
-0xFF,0x00,0x02,0x24,
-0x04,0x00,0x82,0x10,
-0xCC,0xFF,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x16,0x22,0x43,0xA0,
-0x02,0x80,0x02,0x3C,
-0x08,0x00,0xE0,0x03,
-0x16,0x22,0x44,0xA0,
-0x02,0x24,0x04,0x00,
-0xFF,0x00,0x84,0x30,
-0xC0,0x10,0x04,0x00,
-0x21,0x10,0x44,0x00,
-0x80,0x10,0x02,0x00,
-0x21,0x10,0x44,0x00,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x02,0x00,
-0x30,0x1F,0x63,0x24,
-0x20,0x00,0x84,0x2C,
-0x09,0x00,0x80,0x10,
-0x21,0x10,0x43,0x00,
-0x0C,0x24,0x43,0x8C,
-0x25,0xB0,0x02,0x3C,
-0x74,0x03,0x42,0x34,
-0x02,0x19,0x03,0x00,
-0x7F,0x00,0x63,0x30,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xB0,0x55,0x43,0x8C,
-0x25,0xB0,0x02,0x3C,
-0x74,0x03,0x42,0x34,
-0x02,0x19,0x03,0x00,
-0x7F,0x00,0x63,0x30,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x85,0x30,
-0xD2,0xFF,0xA3,0x24,
-0xFE,0xFF,0xA2,0x24,
-0xDA,0xFF,0xA4,0x24,
-0x04,0x00,0x63,0x2C,
-0x08,0x00,0x84,0x2C,
-0x06,0x00,0x60,0x14,
-0xFF,0x00,0x42,0x30,
-0xF0,0xFF,0xA2,0x24,
-0xFC,0xFF,0xA3,0x24,
-0x16,0x00,0x46,0x2C,
-0x03,0x00,0x80,0x10,
-0xFF,0x00,0x62,0x30,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xFA,0xFF,0xA3,0x24,
-0xFC,0xFF,0xC0,0x10,
-0x21,0x10,0xA0,0x00,
-0x08,0x00,0xE0,0x03,
-0xFF,0x00,0x62,0x30,
-0x25,0xB0,0x03,0x3C,
-0x03,0x0D,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x08,0x00,0x42,0x34,
-0x00,0x00,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x03,0x3C,
-0x03,0x0D,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xF7,0x00,0x42,0x30,
-0x00,0x00,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x03,0x3C,
-0x2D,0x0A,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0x3F,0x00,0x42,0x30,
-0x00,0x00,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x82,0x24,
-0x25,0xB0,0x03,0x3C,
-0x2D,0x0A,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x21,0x20,0x00,0x00,
-0xFF,0x00,0x42,0x30,
-0x80,0x00,0x42,0x34,
-0x00,0x00,0x62,0xA0,
-0x01,0x00,0x82,0x24,
-0xFF,0x00,0x44,0x30,
-0x06,0x00,0x83,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0xFF,0x00,0x03,0x3C,
-0x82,0x01,0x49,0x34,
-0x81,0x01,0x48,0x34,
-0x24,0x10,0x83,0x00,
-0x02,0x3C,0x02,0x00,
-0x00,0xFF,0x63,0x34,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x45,0x24,
-0x02,0x32,0x04,0x00,
-0x01,0x00,0x02,0x24,
-0x24,0x20,0x83,0x00,
-0xE6,0x1D,0xA2,0xA0,
-0xD4,0x1D,0xA0,0xAC,
-0xD8,0x1D,0xA0,0xAC,
-0xDC,0x1D,0xA0,0xAC,
-0x06,0x00,0x80,0x14,
-0xE0,0x1D,0xA0,0xAC,
-0x00,0x00,0x02,0x91,
-0x00,0x00,0x23,0x91,
-0xE4,0x1D,0xA2,0xA0,
-0x08,0x00,0xE0,0x03,
-0xE5,0x1D,0xA3,0xA0,
-0xE5,0x1D,0xA7,0xA0,
-0x08,0x00,0xE0,0x03,
-0xE4,0x1D,0xA6,0xA0,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x63,0x24,
-0xE5,0x1D,0x66,0x90,
-0xE4,0x1D,0x65,0x90,
-0x25,0xB0,0x02,0x3C,
-0x82,0x01,0x44,0x34,
-0x81,0x01,0x42,0x34,
-0x00,0x00,0x45,0xA0,
-0x00,0x00,0x86,0xA0,
-0x08,0x00,0xE0,0x03,
-0xE6,0x1D,0x60,0xA0,
-0x02,0x80,0x08,0x3C,
-0x30,0x1F,0x04,0x25,
-0xE6,0x1D,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x15,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0xD8,0x1D,0x82,0x8C,
-0xD4,0x1D,0x85,0x8C,
-0x25,0xB0,0x03,0x3C,
-0x40,0x11,0x02,0x00,
-0x2B,0x10,0xA2,0x00,
-0x82,0x01,0x67,0x34,
-0x0F,0x00,0x40,0x10,
-0x81,0x01,0x66,0x34,
-0xE5,0x1D,0x83,0x90,
-0xE4,0x1D,0x82,0x90,
-0xF0,0x00,0x63,0x30,
-0x1F,0x00,0x42,0x30,
-0x00,0x00,0xC2,0xA0,
-0x00,0x00,0xE3,0xA0,
-0x30,0x1F,0x02,0x25,
-0x01,0x00,0x03,0x24,
-0xE0,0x1D,0x40,0xAC,
-0xD4,0x1D,0x40,0xAC,
-0xD8,0x1D,0x40,0xAC,
-0xDC,0x1D,0x40,0xAC,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x60,0x00,
-0xDC,0x1D,0x82,0x8C,
-0x25,0xB0,0x03,0x3C,
-0x82,0x01,0x69,0x34,
-0x40,0x11,0x02,0x00,
-0x2B,0x10,0xA2,0x00,
-0x0E,0x00,0x40,0x14,
-0x81,0x01,0x66,0x34,
-0xE0,0x1D,0x82,0x8C,
-0x00,0x00,0x00,0x00,
-0x40,0x11,0x02,0x00,
-0x2B,0x10,0xA2,0x00,
-0x08,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0xE5,0x1D,0x83,0x90,
-0xE4,0x1D,0x82,0x90,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xC2,0xA0,
-0x00,0x00,0x23,0xA1,
-0x20,0x60,0x00,0x08,
-0x30,0x1F,0x02,0x25,
-0xE5,0x1D,0x83,0x90,
-0xE4,0x1D,0x82,0x90,
-0xF0,0x00,0x63,0x30,
-0x7F,0x00,0x42,0x30,
-0x00,0x00,0xC2,0xA0,
-0x00,0x00,0x23,0xA1,
-0x20,0x60,0x00,0x08,
-0x30,0x1F,0x02,0x25,
-0x00,0x00,0x85,0xAC,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x03,0x3C,
-0x33,0x02,0x65,0x34,
-0x00,0x11,0x04,0x00,
-0x00,0x00,0xA2,0xA0,
-0x30,0x02,0x63,0x34,
-0x00,0x00,0x65,0x8C,
-0x0F,0x00,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x28,0xA2,0x00,
-0x01,0x00,0x03,0x24,
-0x04,0x18,0x83,0x00,
-0x02,0x00,0xA0,0x10,
-0x21,0x10,0x00,0x00,
-0xFF,0xFF,0x62,0x30,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x25,0xB0,0x11,0x3C,
-0x18,0x00,0xB2,0xAF,
-0x4C,0x00,0x22,0x36,
-0x1C,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0x44,0x90,
-0x02,0x80,0x03,0x3C,
-0x02,0x00,0x02,0x24,
-0xFF,0x00,0x84,0x30,
-0x07,0x00,0x82,0x10,
-0x30,0x1F,0x72,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x8A,0x36,0x43,0x96,
-0x01,0x00,0x02,0x24,
-0xF7,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0xF2,0xFF,0x60,0x14,
-0x21,0x20,0x00,0x00,
-0x4C,0x60,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x04,0x24,
-0x4C,0x60,0x00,0x0C,
-0x21,0x80,0x40,0x00,
-0x25,0x80,0x02,0x02,
-0x02,0x80,0x04,0x3C,
-0x33,0x02,0x23,0x36,
-0x08,0x00,0x02,0x24,
-0xFF,0xFF,0x10,0x32,
-0x40,0x00,0x27,0x36,
-0xEC,0xE8,0x84,0x24,
-0x00,0x00,0x62,0xA0,
-0xE3,0xFF,0x00,0x16,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xE2,0x94,
-0x88,0x36,0x43,0x96,
-0xFF,0xDF,0x42,0x30,
-0x01,0x00,0x63,0x24,
-0x00,0x20,0x46,0x34,
-0x88,0x36,0x43,0xA6,
-0xFF,0xFF,0x65,0x30,
-0x00,0x00,0xE2,0xA4,
-0x00,0x00,0xE6,0xA4,
-0x2F,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x69,0x60,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0x21,0x20,0x82,0x00,
-0x00,0x00,0x85,0xAC,
-0x21,0x10,0x00,0x00,
-0x01,0x00,0x42,0x24,
-0xFF,0x00,0x42,0x30,
-0x06,0x00,0x43,0x2C,
-0xFC,0xFF,0x60,0x14,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0xDF,0x2F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xBF,0x8F,
-0x02,0x80,0x02,0x3C,
-0xE8,0x03,0x03,0x24,
-0x34,0x5F,0x43,0xAC,
-0x18,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xFA,0x5E,0x40,0xA0,
-0xFF,0x00,0x85,0x30,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x0C,0x5F,0x60,0xA0,
-0x08,0x00,0xA4,0x2C,
-0x0E,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x16,0x5F,0x60,0xA0,
-0xF4,0x5E,0x45,0xA0,
-0x2C,0x00,0x80,0x10,
-0x02,0x80,0x03,0x3C,
-0x80,0x10,0x05,0x00,
-0x94,0xF0,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x05,0x3C,
-0x30,0x1F,0xA5,0x24,
-0xD0,0x1B,0xA4,0x8C,
-0x00,0x70,0x02,0x3C,
-0x02,0x00,0x42,0x34,
-0x25,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x64,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA4,0xAC,
-0x02,0x80,0x05,0x3C,
-0x30,0x1F,0xA5,0x24,
-0xD0,0x1B,0xA4,0x8C,
-0x00,0x70,0x02,0x3C,
-0x02,0x00,0x42,0x34,
-0x27,0x10,0x02,0x00,
-0x24,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x64,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA4,0xAC,
-0x02,0x80,0x05,0x3C,
-0x30,0x1F,0xA5,0x24,
-0xD0,0x1B,0xA4,0x8C,
-0x00,0x70,0x02,0x3C,
-0x27,0x10,0x02,0x00,
-0x24,0x20,0x82,0x00,
-0x02,0x80,0x07,0x3C,
-0x41,0xB0,0x02,0x3C,
-0x01,0x00,0x03,0x24,
-0x00,0x00,0x44,0xAC,
-0x10,0x5F,0xE3,0xA0,
-0x10,0x5F,0xE6,0x90,
-0x02,0x80,0x02,0x3C,
-0xD0,0x1B,0xA4,0xAC,
-0x11,0x5F,0x46,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x05,0x3C,
-0x30,0x1F,0xA5,0x24,
-0xD0,0x1B,0xA4,0x8C,
-0x00,0x70,0x02,0x3C,
-0x27,0x10,0x02,0x00,
-0x24,0x20,0x82,0x00,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x64,0xAC,
-0x08,0x00,0xE0,0x03,
-0xD0,0x1B,0xA4,0xAC,
-0xE0,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x10,0x3C,
-0xF4,0x5E,0x02,0x92,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x21,0x90,0x80,0x00,
-0x1C,0x00,0x40,0x10,
-0xFF,0x00,0xB1,0x30,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x42,0x30,
-0x1C,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x00,0x08,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x02,0x80,0x03,0x3C,
-0xF6,0x5E,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x42,0x30,
-0x0C,0x00,0x42,0x28,
-0x06,0x00,0x40,0x10,
-0x08,0x00,0x02,0x24,
-0x00,0x00,0x44,0x96,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x83,0x30,
-0x1B,0x00,0x62,0x10,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x02,0x92,
-0x05,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0x0B,0x00,0x43,0x10,
-0x02,0x80,0x03,0x3C,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x9B,0x30,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x0C,0x61,0x00,0x08,
-0x00,0x08,0x04,0x24,
-0x0F,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x24,0x10,0x22,0x02,
-0xF2,0xFF,0x40,0x10,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x04,0x00,0x42,0x34,
-0x0E,0x5F,0x62,0xA0,
-0x20,0x61,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x0D,0x5F,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x60,0x14,
-0x00,0x10,0x82,0x34,
-0x1B,0x61,0x00,0x08,
-0x00,0x00,0x42,0xA6,
-0x0C,0x00,0x04,0x24,
-0x64,0x31,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x1B,0x61,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0xFF,0x00,0xA5,0x30,
-0x10,0x00,0xB0,0xAF,
-0x14,0x00,0xBF,0xAF,
-0x18,0x00,0xA0,0x14,
-0xFF,0x00,0x90,0x30,
-0x2C,0x00,0x00,0x12,
-0x01,0x00,0x05,0x24,
-0x02,0x80,0x03,0x3C,
-0x01,0x00,0x07,0x24,
-0x0C,0x5F,0x67,0xA0,
-0x02,0x80,0x08,0x3C,
-0x0E,0x5F,0x02,0x91,
-0x02,0x00,0x04,0x24,
-0x21,0x28,0x00,0x00,
-0x02,0x00,0x42,0x34,
-0x00,0xF0,0x06,0x34,
-0x0E,0x5F,0x02,0xA1,
-0x8C,0x23,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x42,0xB0,0x02,0x3C,
-0x44,0x00,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x18,0x00,0xBD,0x27,
-0x00,0x00,0x43,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x0C,0x5F,0x43,0xA0,
-0x02,0x80,0x02,0x3C,
-0x0F,0x5F,0x43,0x90,
-0x0F,0x00,0x02,0x24,
-0x02,0x80,0x05,0x3C,
-0x0F,0x00,0x63,0x30,
-0x07,0x00,0x62,0x10,
-0x01,0x00,0x04,0x24,
-0x0E,0x5F,0xA2,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x34,
-0x0E,0x5F,0xA2,0xA0,
-0xFE,0x4E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xDB,0xFF,0x00,0x16,
-0x02,0x80,0x03,0x3C,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x0C,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xFF,0x00,0x84,0x30,
-0x64,0x31,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0xFF,0x00,0xA5,0x30,
-0x14,0x00,0xB1,0xAF,
-0x18,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x03,0x00,0xA0,0x14,
-0xFF,0x00,0x91,0x30,
-0x3A,0x00,0x20,0x12,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x10,0x3C,
-0x0E,0x5F,0x02,0x92,
-0xFB,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0x02,0xA2,
-0x10,0x00,0xA0,0x14,
-0x02,0x80,0x03,0x3C,
-0x0E,0x5F,0x02,0x92,
-0xFE,0xFF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0x02,0xA2,
-0x19,0x00,0x20,0x16,
-0x02,0x80,0x02,0x3C,
-0x0E,0x5F,0x02,0x92,
-0xFD,0xFF,0x03,0x24,
-0x18,0x00,0xBF,0x8F,
-0x24,0x10,0x43,0x00,
-0x0E,0x5F,0x02,0xA2,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x01,0x00,0x04,0x24,
-0x0C,0x5F,0x64,0xA0,
-0x0E,0x5F,0x02,0x92,
-0x02,0x80,0x03,0x3C,
-0x01,0x00,0x42,0x34,
-0x0E,0x5F,0x02,0xA2,
-0x0D,0x5F,0x62,0x90,
-0x02,0x00,0x03,0x24,
-0xFF,0x00,0x42,0x30,
-0x23,0x00,0x43,0x10,
-0x00,0x00,0x00,0x00,
-0xFE,0x4E,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0xE9,0xFF,0x20,0x12,
-0x02,0x80,0x02,0x3C,
-0x01,0x00,0x04,0x24,
-0x0C,0x5F,0x44,0xA0,
-0x0E,0x5F,0x03,0x92,
-0x02,0x00,0x04,0x24,
-0x21,0x28,0x00,0x00,
-0x02,0x00,0x63,0x34,
-0x00,0xF0,0x06,0x34,
-0x0E,0x5F,0x03,0xA2,
-0x8C,0x23,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x42,0xB0,0x02,0x3C,
-0x44,0x00,0x03,0x24,
-0x03,0x00,0x42,0x34,
-0x20,0x00,0xBD,0x27,
-0x00,0x00,0x43,0xA0,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x0C,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0xF5,0x5E,0x64,0x90,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x05,0x24,
-0xFF,0x00,0x84,0x30,
-0x64,0x31,0x00,0x08,
-0x20,0x00,0xBD,0x27,
-0x0D,0x30,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x0C,0x00,0x04,0x24,
-0x64,0x31,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x90,0x61,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB2,0xAF,
-0x0C,0x00,0xB1,0xAF,
-0x08,0x00,0xB0,0xAF,
-0x21,0x40,0xE0,0x00,
-0x21,0x90,0xA0,0x03,
-0x21,0x60,0xC0,0x00,
-0x21,0x78,0x80,0x00,
-0x45,0x00,0xE0,0x14,
-0x21,0x50,0xA0,0x00,
-0x2B,0x10,0xA6,0x00,
-0x78,0x00,0x40,0x10,
-0xFF,0xFF,0x02,0x34,
-0x2B,0x10,0x46,0x00,
-0x8F,0x01,0x40,0x10,
-0x21,0x28,0xC0,0x00,
-0xFF,0x00,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x10,0x00,0x03,0x24,
-0x2B,0x10,0x46,0x00,
-0x18,0x00,0x04,0x24,
-0x21,0x30,0x60,0x00,
-0x0B,0x30,0x82,0x00,
-0x02,0x80,0x03,0x3C,
-0x06,0x10,0xC5,0x00,
-0xB4,0xF0,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x20,0x00,0x02,0x24,
-0x21,0x20,0x86,0x00,
-0x23,0x30,0x44,0x00,
-0x08,0x00,0xC0,0x10,
-0x02,0x4C,0x0C,0x00,
-0x23,0x10,0x46,0x00,
-0x06,0x10,0x4F,0x00,
-0x04,0x18,0xCA,0x00,
-0x25,0x50,0x62,0x00,
-0x04,0x60,0xCC,0x00,
-0x04,0x78,0xCF,0x00,
-0x02,0x4C,0x0C,0x00,
-0x1B,0x00,0x49,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0x87,0x31,
-0x02,0x24,0x0F,0x00,
-0x12,0x18,0x00,0x00,
-0x10,0x28,0x00,0x00,
-0x00,0x14,0x05,0x00,
-0x25,0x28,0x44,0x00,
-0x18,0x00,0x67,0x00,
-0x12,0x58,0x00,0x00,
-0x2B,0x18,0xAB,0x00,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x49,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x08,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x28,0xAC,0x00,
-0x2B,0x10,0xAC,0x00,
-0x04,0x00,0x40,0x14,
-0x2B,0x10,0xAB,0x00,
-0x00,0x00,0x42,0x38,
-0x21,0x18,0xAC,0x00,
-0x0B,0x28,0x62,0x00,
-0x23,0x28,0xAB,0x00,
-0x1B,0x00,0xA9,0x00,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0xE4,0x31,
-0x12,0x18,0x00,0x00,
-0x10,0x40,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x8F,0x62,0x00,0x08,
-0x18,0x00,0x67,0x00,
-0x2B,0x10,0xA7,0x00,
-0x0A,0x00,0x40,0x10,
-0xFF,0xFF,0x02,0x34,
-0x10,0x00,0xB2,0x8F,
-0x0C,0x00,0xB1,0x8F,
-0x08,0x00,0xB0,0x8F,
-0x21,0x10,0x80,0x00,
-0x21,0x18,0xA0,0x00,
-0x00,0x00,0xA4,0xAF,
-0x04,0x00,0xA5,0xAF,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x2B,0x10,0x47,0x00,
-0xD2,0x00,0x40,0x10,
-0x00,0x01,0xE3,0x2C,
-0xFF,0x00,0x02,0x3C,
-0x10,0x00,0x03,0x24,
-0xFF,0xFF,0x42,0x34,
-0x2B,0x10,0x47,0x00,
-0x18,0x00,0x04,0x24,
-0x21,0x28,0x60,0x00,
-0x0B,0x28,0x82,0x00,
-0x06,0x10,0xA8,0x00,
-0x02,0x80,0x03,0x3C,
-0xB4,0xF0,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x20,0x00,0x02,0x24,
-0x21,0x20,0x85,0x00,
-0x23,0x30,0x44,0x00,
-0xCE,0x00,0xC0,0x14,
-0x23,0x38,0x46,0x00,
-0x2B,0x10,0x0A,0x01,
-0x04,0x00,0x40,0x14,
-0x23,0x20,0xEC,0x01,
-0x2B,0x10,0xEC,0x01,
-0x05,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0xE4,0x01,
-0x23,0x18,0x48,0x01,
-0x23,0x50,0x62,0x00,
-0x21,0x78,0x80,0x00,
-0x04,0x00,0x40,0x12,
-0x21,0xC0,0xE0,0x01,
-0x21,0xC8,0x40,0x01,
-0x00,0x00,0x58,0xAE,
-0x04,0x00,0x59,0xAE,
-0x00,0x00,0xA2,0x8F,
-0x04,0x00,0xA3,0x8F,
-0x10,0x00,0xB2,0x8F,
-0x0C,0x00,0xB1,0x8F,
-0x08,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x53,0x00,0xC0,0x10,
-0x01,0x00,0x02,0x24,
-0xFF,0xFF,0x02,0x34,
-0x2B,0x10,0x4C,0x00,
-0x59,0x00,0x40,0x14,
-0xFF,0x00,0x02,0x3C,
-0x00,0x01,0x83,0x2D,
-0x08,0x00,0x02,0x24,
-0x21,0x28,0x00,0x00,
-0x0A,0x28,0x43,0x00,
-0x06,0x10,0xAC,0x00,
-0x02,0x80,0x03,0x3C,
-0xB4,0xF0,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x20,0x00,0x02,0x24,
-0x21,0x20,0x85,0x00,
-0x23,0x30,0x44,0x00,
-0x5B,0x00,0xC0,0x14,
-0x00,0x00,0x00,0x00,
-0x23,0x50,0x4C,0x01,
-0x02,0x4C,0x0C,0x00,
-0xFF,0xFF,0x8D,0x31,
-0x1B,0x00,0x49,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x02,0x24,0x0F,0x00,
-0x12,0x18,0x00,0x00,
-0x10,0x28,0x00,0x00,
-0x00,0x14,0x05,0x00,
-0x25,0x28,0x44,0x00,
-0x18,0x00,0x6D,0x00,
-0x12,0x58,0x00,0x00,
-0x2B,0x18,0xAB,0x00,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x49,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x08,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x28,0xAC,0x00,
-0x2B,0x10,0xAC,0x00,
-0x04,0x00,0x40,0x14,
-0x2B,0x10,0xAB,0x00,
-0x00,0x00,0x42,0x38,
-0x21,0x18,0xAC,0x00,
-0x0B,0x28,0x62,0x00,
-0x23,0x28,0xAB,0x00,
-0x1B,0x00,0xA9,0x00,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0xE4,0x31,
-0x12,0x18,0x00,0x00,
-0x10,0x40,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0x6D,0x00,
-0x00,0x14,0x08,0x00,
-0x12,0x58,0x00,0x00,
-0x25,0x40,0x44,0x00,
-0x2B,0x18,0x0B,0x01,
-0x1B,0x00,0xA9,0x00,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x08,0x00,0x60,0x10,
-0x00,0x00,0x00,0x00,
-0x21,0x40,0x0C,0x01,
-0x2B,0x10,0x0C,0x01,
-0x04,0x00,0x40,0x14,
-0x2B,0x10,0x0B,0x01,
-0x21,0x18,0x0C,0x01,
-0x00,0x00,0x42,0x38,
-0x0B,0x40,0x62,0x00,
-0xAB,0xFF,0x40,0x12,
-0x23,0x78,0x0B,0x01,
-0x06,0xC0,0xCF,0x00,
-0x21,0xC8,0x00,0x00,
-0x00,0x00,0x58,0xAE,
-0x4C,0x62,0x00,0x08,
-0x04,0x00,0x59,0xAE,
-0x1B,0x00,0x47,0x00,
-0x02,0x00,0xE0,0x14,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0x02,0x34,
-0x12,0x60,0x00,0x00,
-0x2B,0x10,0x4C,0x00,
-0xAB,0xFF,0x40,0x10,
-0x00,0x01,0x83,0x2D,
-0xFF,0x00,0x02,0x3C,
-0x10,0x00,0x03,0x24,
-0xFF,0xFF,0x42,0x34,
-0x2B,0x10,0x4C,0x00,
-0x18,0x00,0x04,0x24,
-0x21,0x28,0x60,0x00,
-0x0B,0x28,0x82,0x00,
-0x02,0x80,0x03,0x3C,
-0x06,0x10,0xAC,0x00,
-0xB4,0xF0,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x20,0x00,0x02,0x24,
-0x21,0x20,0x85,0x00,
-0x23,0x30,0x44,0x00,
-0xA7,0xFF,0xC0,0x10,
-0x00,0x00,0x00,0x00,
-0x23,0x38,0x46,0x00,
-0x04,0x60,0xCC,0x00,
-0x06,0x58,0xEA,0x00,
-0x02,0x4C,0x0C,0x00,
-0x1B,0x00,0x69,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0x8D,0x31,
-0x06,0x18,0xEF,0x00,
-0x04,0x10,0xCA,0x00,
-0x25,0x50,0x43,0x00,
-0x02,0x24,0x0A,0x00,
-0x12,0x28,0x00,0x00,
-0x10,0x40,0x00,0x00,
-0x00,0x14,0x08,0x00,
-0x25,0x40,0x44,0x00,
-0x18,0x00,0xAD,0x00,
-0x12,0x28,0x00,0x00,
-0x2B,0x18,0x05,0x01,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x69,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x05,0x00,0x60,0x10,
-0x04,0x78,0xCF,0x00,
-0x21,0x40,0x0C,0x01,
-0x2B,0x10,0x0C,0x01,
-0x93,0x00,0x40,0x10,
-0x2B,0x10,0x05,0x01,
-0x23,0x40,0x05,0x01,
-0x1B,0x00,0x09,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0x44,0x31,
-0x12,0x18,0x00,0x00,
-0x10,0x58,0x00,0x00,
-0x00,0x14,0x0B,0x00,
-0x25,0x58,0x44,0x00,
-0x18,0x00,0x6D,0x00,
-0x12,0x28,0x00,0x00,
-0x2B,0x18,0x65,0x01,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x09,0x01,
-0x02,0x00,0x20,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x77,0xFF,0x60,0x10,
-0x23,0x50,0x65,0x01,
-0x21,0x58,0x6C,0x01,
-0x2B,0x10,0x6C,0x01,
-0x04,0x00,0x40,0x14,
-0x2B,0x10,0x65,0x01,
-0x00,0x00,0x42,0x38,
-0x21,0x18,0x6C,0x01,
-0x0B,0x58,0x62,0x00,
-0x6A,0x62,0x00,0x08,
-0x23,0x50,0x65,0x01,
-0x08,0x00,0x02,0x24,
-0x21,0x28,0x00,0x00,
-0x0A,0x28,0x43,0x00,
-0x02,0x80,0x03,0x3C,
-0x06,0x10,0xA8,0x00,
-0xB4,0xF0,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x20,0x00,0x02,0x24,
-0x21,0x20,0x85,0x00,
-0x23,0x30,0x44,0x00,
-0x34,0xFF,0xC0,0x10,
-0x23,0x38,0x46,0x00,
-0x06,0x10,0xEC,0x00,
-0x04,0x18,0xC8,0x00,
-0x25,0x40,0x62,0x00,
-0x06,0x58,0xEA,0x00,
-0x02,0x6C,0x08,0x00,
-0x1B,0x00,0x6D,0x01,
-0x02,0x00,0xA0,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0x11,0x31,
-0x06,0x10,0xEF,0x00,
-0x04,0x18,0xCA,0x00,
-0x25,0x50,0x62,0x00,
-0x02,0x24,0x0A,0x00,
-0x04,0x60,0xCC,0x00,
-0x12,0x80,0x00,0x00,
-0x10,0x48,0x00,0x00,
-0x00,0x14,0x09,0x00,
-0x25,0x48,0x44,0x00,
-0x12,0x28,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x18,0x00,0x11,0x02,
-0x12,0x70,0x00,0x00,
-0x2B,0x18,0x2E,0x01,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x6D,0x01,
-0x02,0x00,0xA0,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x0A,0x00,0x60,0x10,
-0x04,0x78,0xCF,0x00,
-0x21,0x48,0x28,0x01,
-0x2B,0x10,0x28,0x01,
-0x06,0x00,0x40,0x14,
-0xFF,0xFF,0xB0,0x24,
-0x2B,0x10,0x2E,0x01,
-0x03,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x10,0x26,
-0x21,0x48,0x28,0x01,
-0x23,0x48,0x2E,0x01,
-0x1B,0x00,0x2D,0x01,
-0x02,0x00,0xA0,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0xFF,0xFF,0x44,0x31,
-0x12,0x28,0x00,0x00,
-0x10,0x58,0x00,0x00,
-0x00,0x14,0x0B,0x00,
-0x25,0x58,0x44,0x00,
-0x18,0x00,0xB1,0x00,
-0x12,0x70,0x00,0x00,
-0x2B,0x18,0x6E,0x01,
-0x00,0x00,0x00,0x00,
-0x1B,0x00,0x2D,0x01,
-0x02,0x00,0xA0,0x15,
-0x00,0x00,0x00,0x00,
-0x0D,0x00,0x07,0x00,
-0x0B,0x00,0x60,0x10,
-0x00,0x14,0x10,0x00,
-0x21,0x58,0x68,0x01,
-0x2B,0x10,0x68,0x01,
-0x06,0x00,0x40,0x14,
-0xFF,0xFF,0xA5,0x24,
-0x2B,0x10,0x6E,0x01,
-0x04,0x00,0x40,0x10,
-0x00,0x14,0x10,0x00,
-0xFF,0xFF,0xA5,0x24,
-0x21,0x58,0x68,0x01,
-0x00,0x14,0x10,0x00,
-0x25,0x10,0x45,0x00,
-0x23,0x58,0x6E,0x01,
-0x19,0x00,0x4C,0x00,
-0x10,0x28,0x00,0x00,
-0x2B,0x18,0x65,0x01,
-0x12,0x48,0x00,0x00,
-0x05,0x00,0x60,0x14,
-0x23,0x20,0x2C,0x01,
-0x07,0x00,0xAB,0x14,
-0x2B,0x10,0xE9,0x01,
-0x05,0x00,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x2B,0x10,0x24,0x01,
-0x23,0x18,0xA8,0x00,
-0x23,0x28,0x62,0x00,
-0x21,0x48,0x80,0x00,
-0xEA,0xFE,0x40,0x12,
-0x23,0x18,0xE9,0x01,
-0x23,0x20,0x65,0x01,
-0x2B,0x10,0xE3,0x01,
-0x23,0x50,0x82,0x00,
-0x04,0x28,0xEA,0x00,
-0x06,0x18,0xC3,0x00,
-0x25,0xC0,0xA3,0x00,
-0x06,0xC8,0xCA,0x00,
-0x00,0x00,0x58,0xAE,
-0x4C,0x62,0x00,0x08,
-0x04,0x00,0x59,0xAE,
-0x00,0x01,0xC3,0x2C,
-0x08,0x00,0x02,0x24,
-0x21,0x30,0x00,0x00,
-0xE6,0x61,0x00,0x08,
-0x0A,0x30,0x43,0x00,
-0x00,0x00,0x42,0x38,
-0x21,0x18,0x0C,0x01,
-0xE0,0x62,0x00,0x08,
-0x0B,0x40,0x62,0x00,
-0x25,0xB0,0x02,0x3C,
-0xFF,0x00,0x03,0x3C,
-0xEC,0x02,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xF0,0x8D,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x7F,0x00,0x02,0x3C,
-0x0D,0xB8,0x44,0x34,
-0x80,0x04,0x03,0x3C,
-0x25,0x20,0x83,0x00,
-0x00,0x08,0x02,0x3C,
-0x25,0x20,0x82,0x00,
-0x00,0x30,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x25,0x20,0x83,0x00,
-0x41,0xB0,0x03,0x3C,
-0x00,0x00,0x64,0xAC,
-0xD8,0x1B,0x44,0xAC,
-0xD0,0x1B,0x44,0xAC,
-0x08,0x00,0x63,0x34,
-0x86,0x00,0x04,0x24,
-0x00,0x00,0x64,0xA4,
-0xDC,0x1B,0x44,0xA4,
-0xD4,0x1B,0x40,0xAC,
-0xDE,0x1B,0x40,0xA4,
-0x08,0x00,0xE0,0x03,
-0xE0,0x1B,0x44,0xA4,
-0x99,0x63,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x42,0xB0,0x03,0x3C,
-0x01,0x00,0x63,0x34,
-0x02,0x00,0x02,0x24,
-0xE8,0xFF,0xBD,0x27,
-0x00,0x00,0x62,0xA0,
-0x10,0x00,0xBF,0xAF,
-0xDF,0x2F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x00,0x00,
-0x01,0x00,0x05,0x24,
-0x8C,0x23,0x00,0x0C,
-0x00,0x50,0x06,0x24,
-0x1F,0x00,0x06,0x3C,
-0x10,0x00,0xBF,0x8F,
-0x00,0x40,0xC6,0x34,
-0x03,0x00,0x04,0x24,
-0x01,0x00,0x05,0x24,
-0x8C,0x23,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x25,0xB0,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xC8,0xFF,0xBD,0x27,
-0x18,0x03,0x64,0x34,
-0xB8,0x8E,0x42,0x24,
-0x00,0x00,0x82,0xAC,
-0x30,0x00,0xBE,0xAF,
-0x2C,0x00,0xB7,0xAF,
-0x28,0x00,0xB6,0xAF,
-0x24,0x00,0xB5,0xAF,
-0x20,0x00,0xB4,0xAF,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x34,0x00,0xBF,0xAF,
-0xB6,0x00,0x63,0x34,
-0x00,0x00,0x62,0x90,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x70,0x24,
-0xAB,0x1B,0x02,0xA2,
-0x28,0x6B,0x00,0x0C,
-0x7A,0x36,0x00,0xA2,
-0x48,0x01,0x03,0x24,
-0x84,0x36,0x03,0xAE,
-0x80,0x36,0x03,0xAE,
-0xFD,0xFF,0x02,0x3C,
-0xFB,0xFF,0x03,0x3C,
-0x21,0x98,0x00,0x02,
-0x21,0xA0,0x00,0x02,
-0xFF,0xFF,0x55,0x34,
-0xFF,0xFF,0x76,0x34,
-0x21,0x88,0x00,0x00,
-0x02,0x80,0x1E,0x3C,
-0x02,0x80,0x17,0x3C,
-0x21,0x90,0x00,0x02,
-0x80,0x10,0x11,0x00,
-0x21,0x10,0x51,0x00,
-0xC0,0x10,0x02,0x00,
-0x21,0x10,0x53,0x00,
-0xE8,0x1D,0x42,0x24,
-0x07,0x00,0x03,0x24,
-0xFF,0xFF,0x63,0x24,
-0x00,0x00,0x40,0xA4,
-0xFD,0xFF,0x61,0x04,
-0x02,0x00,0x42,0x24,
-0xC0,0x80,0x11,0x00,
-0x18,0x42,0xC4,0x27,
-0x21,0x20,0x04,0x02,
-0x21,0x28,0x00,0x00,
-0x02,0x00,0x06,0x24,
-0xF8,0x1D,0x40,0xA6,
-0x08,0x52,0x00,0x0C,
-0xFA,0x1D,0x40,0xA2,
-0x21,0x20,0x13,0x02,
-0xE8,0x22,0x83,0x8C,
-0xEA,0x5D,0xE7,0x92,
-0xBF,0xFF,0x02,0x24,
-0x24,0x28,0x62,0x00,
-0x01,0x00,0x02,0x24,
-0x63,0x00,0xE2,0x10,
-0x80,0x07,0xA6,0x34,
-0xFF,0xF7,0x03,0x24,
-0x24,0x10,0xC3,0x00,
-0xFF,0xEF,0x03,0x24,
-0x24,0x10,0x43,0x00,
-0xE8,0x22,0x82,0xAC,
-0x21,0x30,0x14,0x02,
-0xE8,0x22,0xC4,0x8C,
-0xE7,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x95,0x00,
-0x24,0x20,0x96,0x00,
-0xFF,0xFD,0x03,0x3C,
-0x24,0x20,0x82,0x00,
-0xFF,0xFF,0x63,0x34,
-0xFF,0xFB,0x02,0x3C,
-0x24,0x20,0x83,0x00,
-0xEC,0x22,0xC5,0x8C,
-0xFF,0xFF,0x42,0x34,
-0xFF,0xE7,0x03,0x3C,
-0x24,0x20,0x82,0x00,
-0xFF,0xFF,0x63,0x34,
-0xFF,0xFF,0x02,0x3C,
-0x24,0x20,0x83,0x00,
-0xFF,0x7F,0x42,0x34,
-0xC0,0xFF,0x03,0x24,
-0x24,0x28,0xA2,0x00,
-0x24,0x20,0x83,0x00,
-0x1F,0x00,0x02,0x3C,
-0x01,0x00,0x31,0x26,
-0x25,0x28,0xA2,0x00,
-0x08,0x00,0x84,0x34,
-0x20,0x00,0x22,0x2A,
-0xE8,0x22,0xC4,0xAC,
-0xEC,0x22,0xC5,0xAC,
-0xC3,0xFF,0x40,0x14,
-0x28,0x00,0x52,0x26,
-0x25,0xB0,0x02,0x3C,
-0x10,0x00,0x03,0x24,
-0xB0,0x03,0x42,0x34,
-0x02,0x80,0x04,0x3C,
-0x00,0x00,0x43,0xAC,
-0x58,0x22,0x84,0x24,
-0x21,0x28,0x00,0x00,
-0x08,0x52,0x00,0x0C,
-0x20,0x00,0x06,0x24,
-0x02,0x80,0x02,0x3C,
-0xE9,0x5D,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x3A,0x00,0x60,0x10,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x50,0x24,
-0x24,0x03,0x00,0xA2,
-0x38,0x70,0x00,0x0C,
-0x25,0x03,0x00,0xA2,
-0x02,0x80,0x09,0x3C,
-0x64,0x57,0x22,0x25,
-0x02,0x80,0x0A,0x3C,
-0x02,0x80,0x0B,0x3C,
-0x02,0x80,0x0C,0x3C,
-0x02,0x80,0x0D,0x3C,
-0x02,0x80,0x0E,0x3C,
-0x02,0x80,0x0F,0x3C,
-0x04,0x00,0x42,0xAC,
-0x64,0x57,0x22,0xAD,
-0x6C,0x57,0x43,0x25,
-0x74,0x57,0x64,0x25,
-0x7C,0x57,0x85,0x25,
-0x84,0x57,0xA6,0x25,
-0x8C,0x57,0xC7,0x25,
-0x94,0x57,0xE8,0x25,
-0x09,0x00,0x02,0x24,
-0x04,0x00,0x63,0xAC,
-0x6C,0x57,0x43,0xAD,
-0x04,0x00,0x84,0xAC,
-0x74,0x57,0x64,0xAD,
-0x04,0x00,0xA5,0xAC,
-0x7C,0x57,0x85,0xAD,
-0x04,0x00,0xC6,0xAC,
-0x84,0x57,0xA6,0xAD,
-0x04,0x00,0xE7,0xAC,
-0x8C,0x57,0xC7,0xAD,
-0x94,0x57,0xE8,0xAD,
-0x04,0x00,0x08,0xAD,
-0x34,0x00,0xBF,0x8F,
-0x0C,0x3E,0x02,0xA2,
-0x32,0x3B,0x00,0xA6,
-0x8E,0x3E,0x00,0xA2,
-0x30,0x00,0xBE,0x8F,
-0x2C,0x00,0xB7,0x8F,
-0x28,0x00,0xB6,0x8F,
-0x24,0x00,0xB5,0x8F,
-0x20,0x00,0xB4,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0xEB,0x5D,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x9C,0xFF,0x67,0x14,
-0x80,0x0F,0xA2,0x34,
-0xFF,0xF7,0x03,0x24,
-0x24,0x10,0xC3,0x00,
-0xF0,0x63,0x00,0x08,
-0x00,0x10,0x42,0x34,
-0xFA,0x6B,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x50,0x6E,0x00,0x0C,
-0x30,0x38,0x80,0xAE,
-0x6E,0x6F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x64,0x90,
-0x92,0x00,0x02,0x24,
-0x03,0x00,0x82,0x10,
-0x00,0x00,0x00,0x00,
-0xCA,0x6F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xB0,0x6F,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x6A,0x6E,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x03,0x24,
-0x8A,0x36,0x83,0xA6,
-0x1E,0x70,0x00,0x0C,
-0x88,0x36,0x80,0xA6,
-0x1E,0x64,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xC8,0xFF,0xBD,0x27,
-0xB8,0x91,0x63,0x24,
-0x18,0x03,0x42,0x34,
-0x18,0x00,0xB0,0xAF,
-0x34,0x00,0xBF,0xAF,
-0x30,0x00,0xB6,0xAF,
-0x2C,0x00,0xB5,0xAF,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x20,0x00,0xB2,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x00,0x00,0x43,0xAC,
-0x21,0x80,0x00,0x00,
-0x01,0x00,0x02,0x26,
-0xFF,0xFF,0x50,0x30,
-0x64,0x00,0x03,0x2E,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0x02,0x26,
-0x02,0x80,0x03,0x3C,
-0xDB,0x5D,0x68,0x90,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xD8,0x5D,0x4B,0x94,
-0xF3,0x5D,0x6A,0x90,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x14,0x3C,
-0xFA,0x5D,0x67,0x90,
-0xE8,0x5D,0x49,0x90,
-0xDA,0x5D,0x83,0x92,
-0x02,0x80,0x0C,0x3C,
-0x02,0x80,0x02,0x3C,
-0xF5,0x5D,0x46,0x90,
-0xF8,0x5D,0x85,0x91,
-0x25,0xB0,0x04,0x3C,
-0xB0,0x03,0x82,0x34,
-0x00,0x00,0x4B,0xAC,
-0x00,0x00,0x48,0xAC,
-0x00,0x00,0x49,0xAC,
-0x00,0x00,0x43,0xAC,
-0x02,0x80,0x03,0x3C,
-0x00,0x00,0x4A,0xAC,
-0x0A,0x00,0x88,0x34,
-0x00,0x00,0x46,0xAC,
-0x00,0x00,0x45,0xAC,
-0x00,0x00,0x47,0xAC,
-0x1A,0x5E,0x60,0xA4,
-0x00,0x00,0x06,0x91,
-0x02,0x80,0x02,0x3C,
-0x0B,0x00,0x04,0x24,
-0x02,0x80,0x16,0x3C,
-0xE5,0x5D,0x44,0xA0,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0xC5,0x26,
-0x00,0x78,0x03,0x24,
-0x08,0x5E,0x40,0xA0,
-0xF0,0xFF,0x02,0x24,
-0x01,0x00,0x07,0x24,
-0x02,0x80,0x15,0x3C,
-0xAC,0x1B,0xA3,0xA4,
-0xAA,0x1B,0xA2,0xA0,
-0xFF,0x07,0x03,0x24,
-0xFF,0xFF,0x02,0x24,
-0x20,0x00,0xC6,0x30,
-0xF8,0x5D,0x87,0xA1,
-0xA8,0x1B,0xA7,0xA0,
-0xAE,0x1B,0xA3,0xA4,
-0x48,0xF3,0xA2,0xA2,
-0xB1,0x00,0xC0,0x10,
-0xB0,0x1B,0xA0,0xA4,
-0x00,0x00,0x02,0x91,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0x42,0x30,
-0xFB,0x00,0x40,0x14,
-0x02,0x80,0x13,0x3C,
-0x21,0x80,0x00,0x00,
-0x21,0x88,0x00,0x00,
-0xB8,0xF1,0x72,0x26,
-0xFF,0x00,0x24,0x32,
-0x61,0x57,0x00,0x0C,
-0x21,0x28,0x12,0x02,
-0x08,0x00,0x03,0x26,
-0xFF,0xFF,0x70,0x30,
-0x01,0x00,0x22,0x26,
-0x80,0x00,0x03,0x2E,
-0xF8,0xFF,0x60,0x14,
-0xFF,0xFF,0x51,0x30,
-0xDA,0x5D,0x83,0x92,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0x62,0x30,
-0xC1,0x00,0x40,0x14,
-0x04,0x00,0x62,0x30,
-0x9A,0x00,0x40,0x10,
-0x25,0xB0,0x03,0x3C,
-0x25,0xB0,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x06,0x00,0x06,0x24,
-0x50,0x00,0x84,0x34,
-0x10,0x52,0x00,0x0C,
-0x07,0xF2,0xA5,0x24,
-0xB8,0xF1,0x63,0x26,
-0x7B,0x00,0x66,0x90,
-0x00,0x00,0x00,0x00,
-0x02,0x00,0xC2,0x2C,
-0x04,0x00,0x40,0x14,
-0x02,0x00,0x0B,0x24,
-0x79,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x03,0x00,0x4B,0x30,
-0x04,0x00,0xC2,0x2C,
-0xDC,0x00,0x40,0x10,
-0xB8,0xF1,0x62,0x26,
-0x02,0x80,0x02,0x3C,
-0x4A,0xF3,0x40,0xA0,
-0x02,0x80,0x02,0x3C,
-0xE7,0x5D,0x43,0x90,
-0x01,0x00,0x02,0x24,
-0x02,0x00,0x62,0x10,
-0xFC,0xFF,0x08,0x24,
-0x21,0x40,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xB8,0xF1,0x4A,0x24,
-0x30,0x1F,0x69,0x24,
-0x21,0x60,0x00,0x00,
-0x21,0x80,0x00,0x00,
-0x01,0x00,0x02,0x26,
-0x21,0x30,0x30,0x01,
-0x03,0x00,0x03,0x2E,
-0x08,0x00,0x04,0x2E,
-0xFF,0xFF,0x50,0x30,
-0x0E,0x00,0x07,0x2E,
-0x04,0x00,0x60,0x14,
-0x21,0x88,0x00,0x00,
-0x01,0x00,0x11,0x24,
-0x02,0x00,0x02,0x24,
-0x0A,0x88,0x44,0x00,
-0x21,0x10,0x51,0x01,
-0x61,0x00,0x43,0x90,
-0x55,0x00,0x44,0x90,
-0x5B,0x00,0x45,0x90,
-0x21,0x18,0x03,0x01,
-0x21,0x20,0x04,0x01,
-0x21,0x28,0x05,0x01,
-0x9C,0x1D,0xC3,0xA0,
-0x64,0x1D,0xC4,0xA0,
-0xEB,0xFF,0xE0,0x14,
-0x80,0x1D,0xC5,0xA0,
-0x01,0x00,0x8C,0x25,
-0x02,0x00,0x82,0x2D,
-0x0E,0x00,0x29,0x25,
-0xE5,0xFF,0x40,0x14,
-0x03,0x00,0x4A,0x25,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x47,0x24,
-0xB8,0xF1,0x66,0x24,
-0x21,0x80,0x00,0x00,
-0x03,0x00,0x02,0x2E,
-0x21,0x20,0x07,0x02,
-0xB9,0x00,0x40,0x10,
-0x08,0x00,0x03,0x2E,
-0x71,0x00,0xC3,0x90,
-0x6E,0x00,0xC2,0x90,
-0x00,0x00,0x00,0x00,
-0xC6,0x1D,0x82,0xA0,
-0xB8,0x1D,0x83,0xA0,
-0x01,0x00,0x02,0x26,
-0xFF,0xFF,0x50,0x30,
-0x0E,0x00,0x03,0x2E,
-0xF4,0xFF,0x60,0x14,
-0x03,0x00,0x02,0x2E,
-0x03,0x00,0x02,0x24,
-0x2A,0x00,0x62,0x15,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xB8,0xF1,0x4E,0x24,
-0x34,0xD9,0x6F,0x24,
-0x21,0x60,0x00,0x00,
-0x21,0x68,0x00,0x00,
-0x21,0x10,0xAE,0x01,
-0x74,0x00,0x43,0x90,
-0x21,0x80,0x00,0x00,
-0x0F,0x00,0x6A,0x30,
-0x02,0x49,0x03,0x00,
-0x21,0x10,0xB0,0x01,
-0x00,0x11,0x02,0x00,
-0x21,0x58,0x4F,0x00,
-0x21,0x38,0x00,0x00,
-0x21,0x40,0x67,0x01,
-0x00,0x00,0x03,0x91,
-0x00,0x31,0x09,0x00,
-0x01,0x00,0xE7,0x24,
-0x02,0x11,0x03,0x00,
-0x00,0x21,0x02,0x00,
-0x0F,0x00,0x63,0x30,
-0x2B,0x10,0x49,0x00,
-0x0A,0x20,0xC2,0x00,
-0x2B,0x28,0x6A,0x00,
-0x00,0x00,0xA5,0x38,
-0x25,0x18,0x83,0x00,
-0xFF,0xFF,0xE7,0x30,
-0x25,0x20,0x8A,0x00,
-0x0A,0x18,0x85,0x00,
-0x10,0x00,0xE2,0x2C,
-0xEF,0xFF,0x40,0x14,
-0x00,0x00,0x03,0xA1,
-0x01,0x00,0x02,0x26,
-0xFF,0xFF,0x50,0x30,
-0x03,0x00,0x03,0x2E,
-0xE7,0xFF,0x60,0x14,
-0x21,0x10,0xB0,0x01,
-0x01,0x00,0x8C,0x25,
-0x02,0x00,0x82,0x2D,
-0xDD,0xFF,0x40,0x14,
-0x03,0x00,0xAD,0x25,
-0xE6,0x56,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x48,0xF3,0xA5,0x26,
-0x91,0x56,0x00,0x0C,
-0xFA,0x01,0x04,0x24,
-0xE6,0x56,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x25,0xB0,0x05,0x3C,
-0x18,0x3B,0x84,0x24,
-0x50,0x00,0xA5,0x34,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0x30,0x1F,0xC5,0x26,
-0x01,0x00,0x02,0x24,
-0x06,0x00,0x03,0x24,
-0x05,0x00,0x04,0x24,
-0x33,0x1C,0xA2,0xA0,
-0x8A,0x55,0x00,0x0C,
-0x30,0x3B,0xA3,0xA0,
-0x34,0x00,0xBF,0x8F,
-0x30,0x00,0xB6,0x8F,
-0x2C,0x00,0xB5,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x38,0x00,0xBD,0x27,
-0x25,0xB0,0x03,0x3C,
-0x4C,0x87,0x02,0x3C,
-0x54,0x00,0x65,0x34,
-0x00,0xE0,0x42,0x34,
-0x50,0x00,0x63,0x34,
-0x00,0x00,0x62,0xAC,
-0x12,0x01,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0xA4,0xAC,
-0x30,0x1F,0x46,0x24,
-0x21,0x60,0x00,0x00,
-0x10,0x00,0x05,0x24,
-0x21,0x80,0x00,0x00,
-0x01,0x00,0x02,0x26,
-0x21,0x18,0xD0,0x00,
-0xFF,0xFF,0x50,0x30,
-0x0E,0x00,0x04,0x2E,
-0x80,0x1D,0x65,0xA0,
-0x64,0x1D,0x65,0xA0,
-0xF9,0xFF,0x80,0x14,
-0x9C,0x1D,0x65,0xA0,
-0x01,0x00,0x8C,0x25,
-0x02,0x00,0x82,0x2D,
-0xF4,0xFF,0x40,0x14,
-0x0E,0x00,0xC6,0x24,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x46,0x24,
-0x21,0x80,0x00,0x00,
-0x04,0x00,0x05,0x24,
-0x01,0x00,0x02,0x26,
-0x21,0x18,0x06,0x02,
-0xFF,0xFF,0x50,0x30,
-0x0E,0x00,0x04,0x2E,
-0xC6,0x1D,0x60,0xA0,
-0xFA,0xFF,0x80,0x14,
-0xB8,0x1D,0x65,0xA0,
-0x48,0x65,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x50,0x00,0x84,0x34,
-0xCA,0xF1,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x06,0x00,0x06,0x24,
-0xB8,0xF1,0x62,0x92,
-0xB8,0xF1,0x64,0x26,
-0x01,0x00,0x85,0x90,
-0x21,0x18,0x40,0x00,
-0x10,0x00,0xA2,0xA3,
-0x29,0x00,0x02,0x24,
-0x11,0x00,0xA5,0xA3,
-0x50,0x00,0x86,0x90,
-0x3B,0x00,0x62,0x10,
-0xFF,0x00,0xA3,0x30,
-0xB8,0xF1,0x65,0x26,
-0x68,0x00,0xA2,0x90,
-0x02,0x80,0x03,0x3C,
-0x04,0x00,0xC4,0x2C,
-0x1F,0x00,0x42,0x30,
-0x24,0x00,0x80,0x14,
-0x49,0xF3,0x62,0xA0,
-0x7A,0x00,0xA2,0x90,
-0x79,0x00,0xA4,0x90,
-0x02,0x80,0x03,0x3C,
-0x04,0x00,0x42,0x30,
-0x83,0x10,0x02,0x00,
-0x03,0x00,0x8B,0x30,
-0x4A,0xF3,0x62,0xA0,
-0x06,0x00,0xC2,0x2C,
-0x37,0xFF,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0xB8,0xF1,0x63,0x26,
-0x69,0x00,0x62,0x90,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x42,0x30,
-0x31,0xFF,0x40,0x14,
-0x02,0x80,0x02,0x3C,
-0xE8,0x64,0x00,0x08,
-0x21,0x40,0x00,0x00,
-0x21,0x20,0x00,0x00,
-0x80,0x00,0x05,0x24,
-0x53,0x56,0x00,0x0C,
-0xB8,0xF1,0x66,0x26,
-0xC7,0x64,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x7D,0x00,0x43,0x90,
-0x69,0x00,0x44,0x90,
-0x02,0x80,0x02,0x3C,
-0x04,0x00,0x63,0x30,
-0x01,0x00,0x84,0x30,
-0x83,0x18,0x03,0x00,
-0x01,0x00,0x84,0x2C,
-0x1F,0xFF,0x80,0x10,
-0x4A,0xF3,0x43,0xA0,
-0xE8,0x64,0x00,0x08,
-0x21,0x40,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x02,0x00,0x0B,0x24,
-0xAA,0x65,0x00,0x08,
-0x4A,0xF3,0x40,0xA0,
-0x21,0x28,0x07,0x02,
-0x06,0x00,0x60,0x10,
-0x21,0x20,0xA0,0x00,
-0x67,0x00,0xC3,0x90,
-0x6F,0x00,0xC2,0x90,
-0xB8,0x1D,0xA3,0xA0,
-0x17,0x65,0x00,0x08,
-0xC6,0x1D,0xA2,0xA0,
-0x72,0x00,0xC3,0x90,
-0x70,0x00,0xC2,0x90,
-0x16,0x65,0x00,0x08,
-0xC6,0x1D,0x82,0xA0,
-0x81,0x00,0x02,0x24,
-0xC4,0xFF,0x62,0x14,
-0x01,0x00,0x02,0x24,
-0x54,0x00,0x83,0x90,
-0x00,0x00,0x00,0x00,
-0x0A,0x00,0x62,0x10,
-0x02,0x00,0x02,0x24,
-0x04,0x00,0x62,0x10,
-0x11,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x9C,0x65,0x00,0x08,
-0xDE,0x5D,0x43,0xA0,
-0x22,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x9C,0x65,0x00,0x08,
-0xDE,0x5D,0x43,0xA0,
-0x12,0x00,0x03,0x24,
-0x02,0x80,0x02,0x3C,
-0x9C,0x65,0x00,0x08,
-0xDE,0x5D,0x43,0xA0,
-0xD8,0xFF,0xBD,0x27,
-0x18,0x00,0xB0,0xAF,
-0x02,0x80,0x02,0x3C,
-0x25,0xB0,0x10,0x3C,
-0x18,0x03,0x03,0x36,
-0xA8,0x97,0x42,0x24,
-0x00,0x00,0x62,0xAC,
-0x20,0x00,0xB2,0xAF,
-0x02,0x80,0x12,0x3C,
-0x24,0x00,0xBF,0xAF,
-0x6E,0x64,0x00,0x0C,
-0x1C,0x00,0xB1,0xAF,
-0x9C,0x66,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x36,0x69,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x1A,0x6A,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x7C,0x6C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x82,0x69,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x30,0x1F,0x43,0x26,
-0x30,0x3B,0x64,0x90,
-0x0D,0x0C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x76,0x63,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x64,0x40,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x44,0x00,0x03,0x36,
-0x00,0x00,0x62,0x94,
-0x00,0x00,0x00,0x00,
-0x40,0x00,0x42,0x34,
-0x00,0x00,0x62,0xA4,
-0xAE,0x63,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x7C,0x63,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x9B,0x63,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xE6,0x69,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xA3,0x69,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x00,0x80,0x04,0x3C,
-0x74,0x6A,0x84,0x24,
-0x03,0x6A,0x00,0x0C,
-0x01,0x00,0x05,0x24,
-0x00,0x80,0x04,0x3C,
-0x6C,0x72,0x84,0x24,
-0x03,0x6A,0x00,0x0C,
-0x02,0x00,0x05,0x24,
-0x00,0x80,0x04,0x3C,
-0x48,0x7B,0x84,0x24,
-0x03,0x6A,0x00,0x0C,
-0x04,0x00,0x05,0x24,
-0x7E,0x59,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x01,0x80,0x04,0x3C,
-0xB8,0x8E,0x84,0x24,
-0x03,0x6A,0x00,0x0C,
-0x03,0x00,0x05,0x24,
-0x02,0x80,0x03,0x3C,
-0xE8,0x5D,0x63,0x90,
-0x00,0x00,0x00,0x00,
-0x60,0x00,0x60,0x10,
-0x43,0x00,0x02,0x36,
-0x07,0x00,0x02,0x24,
-0x0C,0x00,0x62,0x10,
-0x03,0x00,0x02,0x24,
-0x25,0xB0,0x04,0x3C,
-0x43,0x00,0x85,0x34,
-0x10,0x02,0x86,0x34,
-0x10,0x00,0x03,0x24,
-0x00,0x00,0xA2,0xA0,
-0xD8,0x00,0x84,0x34,
-0x00,0x00,0xC3,0xA0,
-0x00,0x00,0x82,0x90,
-0x80,0xFF,0x03,0x24,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0x82,0xA0,
-0xE0,0x6A,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x42,0xB0,0x03,0x3C,
-0x00,0x00,0x62,0x90,
-0x25,0xB0,0x10,0x3C,
-0x02,0x80,0x11,0x3C,
-0x01,0x00,0x42,0x34,
-0x00,0x00,0x62,0xA0,
-0x83,0x63,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x44,0x00,0x05,0x36,
-0x00,0x00,0xA2,0x94,
-0x02,0x80,0x03,0x3C,
-0x8C,0xC6,0x64,0x8C,
-0xC0,0x00,0x42,0x34,
-0x00,0x00,0xA2,0xA4,
-0x2F,0x55,0x00,0x0C,
-0x80,0x0C,0x10,0x36,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xDA,0x5D,0x45,0x90,
-0xDF,0x5D,0x66,0x90,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x90,0xC6,0x84,0x24,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x45,0x90,
-0x48,0xF3,0x66,0x90,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xE7,0x5D,0x47,0x90,
-0x4A,0xF3,0x62,0x90,
-0x02,0x80,0x04,0x3C,
-0xA4,0xC6,0x84,0x24,
-0x2F,0x55,0x00,0x0C,
-0x10,0x00,0xA2,0xAF,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0x07,0x8E,
-0xE6,0x5D,0x46,0x90,
-0xE9,0x5D,0x25,0x92,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xC0,0xC6,0x84,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xEB,0x5D,0x66,0x90,
-0xEA,0x5D,0x45,0x90,
-0x02,0x80,0x04,0x3C,
-0x30,0x1F,0x50,0x26,
-0x2F,0x55,0x00,0x0C,
-0xDC,0xC6,0x84,0x24,
-0xA0,0x3E,0x06,0x8E,
-0xA4,0x3E,0x05,0x8E,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0xF0,0xC6,0x84,0x24,
-0x02,0x80,0x02,0x3C,
-0x49,0xF3,0x45,0x90,
-0x02,0x80,0x04,0x3C,
-0x2F,0x55,0x00,0x0C,
-0x10,0xC7,0x84,0x24,
-0xE9,0x5D,0x23,0x92,
-0x10,0x27,0x02,0x24,
-0x02,0x80,0x04,0x3C,
-0x0B,0x10,0x03,0x00,
-0x40,0x39,0x02,0xAE,
-0x08,0x00,0x84,0x24,
-0x21,0x28,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x91,0x3C,0x00,0x0C,
-0x21,0x38,0x00,0x00,
-0x99,0x63,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x24,0x00,0xBF,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xD8,0x00,0x04,0x36,
-0x00,0x00,0x40,0xA0,
-0x38,0x66,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x20,0x00,0x00,
-0x20,0xB0,0x06,0x3C,
-0xFF,0xFF,0x05,0x34,
-0x21,0x18,0x86,0x00,
-0x04,0x00,0x84,0x24,
-0x2A,0x10,0xA4,0x00,
-0x00,0x00,0x60,0xAC,
-0xFB,0xFF,0x40,0x10,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xB8,0xFF,0xBD,0x27,
-0x24,0x00,0xB1,0xAF,
-0x44,0x00,0xBF,0xAF,
-0x40,0x00,0xBE,0xAF,
-0x3C,0x00,0xB7,0xAF,
-0x38,0x00,0xB6,0xAF,
-0x34,0x00,0xB5,0xAF,
-0x30,0x00,0xB4,0xAF,
-0x2C,0x00,0xB3,0xAF,
-0x28,0x00,0xB2,0xAF,
-0x20,0x00,0xB0,0xAF,
-0x02,0x80,0x02,0x3C,
-0xDA,0x5D,0x42,0x90,
-0x25,0xB0,0x11,0x3C,
-0x58,0x00,0x25,0x36,
-0x10,0x00,0xA2,0xAF,
-0x4C,0x81,0x02,0x3C,
-0x00,0xE0,0x42,0x34,
-0x00,0x00,0xA2,0xAC,
-0xFF,0xFF,0x04,0x24,
-0x96,0x01,0x03,0x24,
-0x28,0x28,0x02,0x24,
-0x5C,0x00,0x26,0x36,
-0x60,0x00,0x27,0x36,
-0x64,0x00,0x28,0x36,
-0x8A,0x00,0x29,0x36,
-0x00,0x00,0xC3,0xAC,
-0x00,0x00,0xE4,0xAC,
-0x00,0x00,0x04,0xAD,
-0x00,0x00,0x22,0xA5,
-0x0E,0x0E,0x02,0x3C,
-0x09,0x00,0x03,0x24,
-0x0A,0x0A,0x42,0x34,
-0x89,0x00,0x2A,0x36,
-0x8C,0x00,0x2B,0x36,
-0x00,0x00,0x43,0xA1,
-0x90,0x00,0x2C,0x36,
-0x00,0x00,0x62,0xAD,
-0x13,0x00,0x03,0x24,
-0x30,0x00,0x02,0x24,
-0x91,0x00,0x2D,0x36,
-0x00,0x00,0x83,0xA1,
-0x92,0x00,0x2E,0x36,
-0x00,0x00,0xA2,0xA1,
-0x3A,0x01,0x03,0x24,
-0x21,0x00,0x02,0x24,
-0xB5,0x00,0x2F,0x36,
-0x00,0x00,0xC3,0xA5,
-0x00,0x00,0xE2,0xA1,
-0x10,0x00,0xA2,0x8F,
-0x12,0x00,0x03,0x24,
-0x89,0x01,0x43,0x10,
-0x07,0x07,0x02,0x3C,
-0x07,0x07,0x42,0x34,
-0xA0,0x00,0x24,0x36,
-0x00,0x00,0x82,0xAC,
-0xA4,0x00,0x25,0x36,
-0x00,0x07,0x03,0x24,
-0x00,0xC0,0x02,0x3C,
-0xA8,0x00,0x26,0x36,
-0x00,0x00,0xA3,0xAC,
-0x00,0xC4,0x42,0x34,
-0x00,0x00,0xC2,0xAC,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x62,0x24,
-0xAC,0x1B,0x45,0x94,
-0xAE,0x1B,0x46,0x94,
-0xAA,0x1B,0x42,0x90,
-0x02,0x80,0x03,0x3C,
-0x21,0xB0,0x07,0x3C,
-0x14,0x00,0xA2,0xA3,
-0xE9,0x5D,0x63,0x90,
-0x20,0xB0,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x18,0x00,0xA3,0xAF,
-0x23,0xB0,0x03,0x3C,
-0xFF,0xFF,0x63,0x34,
-0x24,0xB0,0x08,0x3C,
-0xFF,0x1F,0x04,0x3C,
-0x25,0xB0,0x1E,0x3C,
-0xFF,0xFF,0x84,0x34,
-0x21,0x38,0xA7,0x00,
-0x21,0x40,0xC8,0x00,
-0x21,0x28,0xA2,0x00,
-0x21,0x30,0xC3,0x00,
-0x24,0x40,0x04,0x01,
-0x24,0x28,0xA4,0x00,
-0x24,0x38,0xE4,0x00,
-0x24,0x30,0xC4,0x00,
-0x35,0x00,0x02,0x24,
-0x20,0x00,0xC4,0x37,
-0x00,0x00,0x82,0xA0,
-0x22,0x00,0x03,0x24,
-0x09,0x00,0x02,0x24,
-0x03,0x05,0xC9,0x37,
-0x60,0x05,0xCA,0x37,
-0xAC,0x00,0xCB,0x37,
-0xF8,0x00,0xCC,0x37,
-0xB0,0x00,0xCD,0x37,
-0x08,0x01,0xCE,0x37,
-0xD8,0x00,0xCF,0x37,
-0x00,0x00,0x23,0xA1,
-0x00,0x00,0x42,0xA1,
-0x00,0x00,0x65,0xAD,
-0x00,0x00,0x87,0xAD,
-0x00,0x00,0xA6,0xAD,
-0x00,0x00,0xC8,0xAD,
-0x00,0x00,0xE0,0xA1,
-0x14,0x00,0xA3,0x93,
-0x25,0xB0,0x02,0x3C,
-0xB4,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA0,
-0xB6,0x00,0xD1,0x37,
-0x04,0x00,0x02,0x24,
-0x25,0xB0,0x03,0x3C,
-0x00,0x00,0x22,0xA2,
-0xB9,0x00,0x63,0x34,
-0xFF,0xFF,0x02,0x24,
-0x00,0x00,0x62,0xA0,
-0x25,0xB0,0x03,0x3C,
-0x0F,0x00,0x02,0x24,
-0xBA,0x00,0x63,0x34,
-0x00,0x00,0x62,0xA4,
-0x16,0x01,0xD4,0x37,
-0x3F,0x3F,0x03,0x24,
-0x2F,0x00,0x02,0x3C,
-0x00,0x00,0x83,0xA6,
-0x17,0x32,0x42,0x34,
-0xFF,0xCF,0x03,0x24,
-0x18,0x01,0xD5,0x37,
-0x1A,0x01,0xD6,0x37,
-0xDC,0x00,0xD7,0x37,
-0xD0,0x01,0xD8,0x37,
-0x00,0x00,0xA0,0xA6,
-0x00,0x00,0xC0,0xA6,
-0x00,0x00,0xE3,0xAE,
-0x00,0x00,0x02,0xAF,
-0x5E,0x00,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x17,0x43,0x63,0x34,
-0xD4,0x01,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x10,0x00,0x02,0x3C,
-0x20,0x53,0x42,0x34,
-0xD8,0x01,0xDF,0x37,
-0x00,0x00,0xE2,0xAF,
-0x25,0xB0,0x02,0x3C,
-0x44,0xA4,0x03,0x34,
-0xDC,0x01,0x42,0x34,
-0x00,0x00,0x43,0xAC,
-0x25,0xB0,0x03,0x3C,
-0x1A,0x06,0x02,0x24,
-0xE0,0x01,0x63,0x34,
-0x00,0x00,0x62,0xA4,
-0xC2,0x00,0x02,0x3C,
-0x30,0x30,0x03,0x24,
-0x51,0x10,0x42,0x34,
-0xF4,0x01,0xD0,0x37,
-0xF8,0x01,0xD3,0x37,
-0x00,0x00,0x03,0xA6,
-0x00,0x02,0xD2,0x37,
-0x00,0x00,0x62,0xAE,
-0x26,0x00,0x03,0x24,
-0x03,0x02,0xD9,0x37,
-0x04,0x00,0x02,0x24,
-0x00,0x00,0x43,0xA6,
-0x00,0x00,0x22,0xA3,
-0x18,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0xE5,0x00,0x60,0x14,
-0x36,0x02,0xC2,0x37,
-0x04,0x00,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0x02,0x80,0x0B,0x3C,
-0xDE,0x5D,0x66,0x91,
-0x25,0xB0,0x09,0x3C,
-0x80,0x00,0x02,0x24,
-0x34,0x02,0x24,0x35,
-0x00,0x00,0x82,0xA4,
-0x37,0x02,0x25,0x35,
-0x53,0x00,0x03,0x24,
-0x22,0x00,0x02,0x24,
-0x00,0x00,0xA3,0xA0,
-0xE6,0x00,0xC2,0x10,
-0x1B,0x1B,0x02,0x3C,
-0x13,0x13,0x02,0x3C,
-0x13,0x13,0x42,0x34,
-0x60,0x01,0x23,0x35,
-0x64,0x01,0x24,0x35,
-0x68,0x01,0x25,0x35,
-0x7C,0x01,0x2A,0x35,
-0x6C,0x01,0x26,0x35,
-0x70,0x01,0x27,0x35,
-0x74,0x01,0x28,0x35,
-0x78,0x01,0x29,0x35,
-0x00,0x00,0x62,0xAC,
-0x00,0x00,0x82,0xAC,
-0x00,0x00,0xA2,0xAC,
-0x00,0x00,0xC2,0xAC,
-0x00,0x00,0xE2,0xAC,
-0x00,0x00,0x02,0xAD,
-0x00,0x00,0x22,0xAD,
-0x00,0x00,0x42,0xAD,
-0xDE,0x5D,0x65,0x91,
-0x25,0xB0,0x0C,0x3C,
-0x01,0x00,0x03,0x3C,
-0x80,0x01,0x82,0x35,
-0x08,0x5F,0x63,0x34,
-0x22,0x00,0x04,0x24,
-0x00,0x00,0x43,0xAC,
-0xE5,0x00,0xA4,0x10,
-0x0F,0x1F,0x02,0x3C,
-0x92,0x00,0x02,0x24,
-0xE2,0x00,0xA2,0x10,
-0x0F,0x1F,0x02,0x3C,
-0x0F,0x10,0x02,0x3C,
-0x00,0xF0,0x4F,0x34,
-0xF7,0x01,0x91,0x35,
-0x15,0xF0,0x4D,0x34,
-0x77,0x00,0x0E,0x24,
-0x84,0x01,0x87,0x35,
-0x88,0x01,0x88,0x35,
-0x10,0xF0,0x44,0x34,
-0x8C,0x01,0x85,0x35,
-0x05,0xF0,0x42,0x34,
-0x00,0x00,0xED,0xAC,
-0x90,0x01,0x83,0x35,
-0x00,0x00,0x04,0xAD,
-0x94,0x01,0x86,0x35,
-0x00,0x00,0xA2,0xAC,
-0xF5,0x0F,0x02,0x24,
-0x00,0x00,0x6F,0xAC,
-0x98,0x01,0x89,0x35,
-0x00,0x00,0xC2,0xAC,
-0x9C,0x01,0x8A,0x35,
-0xA0,0x01,0x8B,0x35,
-0xF0,0x0F,0x03,0x24,
-0xF6,0x01,0x8C,0x35,
-0x0D,0x00,0x02,0x24,
-0x00,0x00,0x23,0xAD,
-0x00,0x00,0x42,0xAD,
-0x00,0x00,0x6D,0xAD,
-0x02,0x80,0x02,0x3C,
-0x00,0x00,0x8E,0xA1,
-0x00,0x00,0x2E,0xA2,
-0xFB,0x5D,0x42,0x90,
-0x25,0xB0,0x1F,0x3C,
-0xA7,0x01,0xE7,0x37,
-0x1C,0x00,0xA2,0xAF,
-0xFF,0xFF,0x02,0x24,
-0x00,0x00,0xE2,0xA0,
-0x05,0x06,0x03,0x3C,
-0x25,0xB0,0x02,0x3C,
-0x03,0x04,0x63,0x34,
-0x0C,0x00,0x04,0x24,
-0xFF,0xFF,0x05,0x24,
-0x01,0x02,0x06,0x3C,
-0xC2,0x01,0x42,0x34,
-0xA8,0x01,0xE8,0x37,
-0xAC,0x01,0xE9,0x37,
-0xB0,0x01,0xEA,0x37,
-0xB4,0x01,0xEB,0x37,
-0xB8,0x01,0xEC,0x37,
-0xBC,0x01,0xED,0x37,
-0xC0,0x01,0xEE,0x37,
-0xC1,0x01,0xEF,0x37,
-0x00,0x00,0x05,0xAD,
-0x00,0x00,0x25,0xAD,
-0x00,0x00,0x46,0xAD,
-0x00,0x00,0x63,0xAD,
-0x00,0x00,0x86,0xAD,
-0x00,0x00,0xA3,0xAD,
-0x00,0x00,0xC4,0xA1,
-0x25,0xB0,0x03,0x3C,
-0x00,0x00,0xE4,0xA1,
-0x00,0x00,0x44,0xA0,
-0x25,0xB0,0x02,0x3C,
-0x0D,0x00,0x17,0x24,
-0x0E,0x00,0x18,0x24,
-0xC4,0x01,0x63,0x34,
-0xC5,0x01,0x42,0x34,
-0xC3,0x01,0xF1,0x37,
-0x00,0x00,0x37,0xA2,
-0xC6,0x01,0xF4,0x37,
-0x00,0x00,0x77,0xA0,
-0xC7,0x01,0xF5,0x37,
-0x00,0x00,0x58,0xA0,
-0x0F,0x00,0x02,0x24,
-0x00,0x00,0x98,0xA2,
-0x00,0x00,0xA2,0xA2,
-0xD3,0x01,0x02,0x3C,
-0x46,0x00,0xF6,0x37,
-0x48,0x00,0xFE,0x37,
-0x0E,0xF0,0x42,0x34,
-0x00,0x00,0xC0,0xA6,
-0x00,0x00,0xC2,0xAF,
-0x1C,0x00,0xA3,0x8F,
-0x00,0x00,0x00,0x00,
-0x09,0x00,0x60,0x10,
-0x44,0x00,0xF7,0x37,
-0x00,0x00,0xE2,0x8E,
-0x00,0x02,0x03,0x3C,
-0x25,0x10,0x43,0x00,
-0x00,0x00,0xE2,0xAE,
-0x00,0x00,0xC3,0x8F,
-0x00,0x04,0x02,0x3C,
-0x25,0x18,0x62,0x00,
-0x00,0x00,0xC3,0xAF,
-0x4C,0x00,0xE2,0x37,
-0x00,0x00,0x40,0xA0,
-0x4D,0x00,0xE3,0x37,
-0xF1,0x02,0xE4,0x37,
-0x08,0x00,0x02,0x24,
-0x00,0x00,0x60,0xA0,
-0x40,0x00,0xE6,0x37,
-0x00,0x00,0x82,0xA0,
-0x64,0x03,0xE5,0x37,
-0xBC,0x00,0x03,0x24,
-0xFC,0x37,0x02,0x24,
-0x00,0x00,0xC3,0xA4,
-0x00,0x00,0xA0,0xA0,
-0x00,0x00,0xC2,0xA4,
-0x02,0x80,0x02,0x3C,
-0xD8,0x00,0xE9,0x37,
-0x30,0x1F,0x43,0x24,
-0x00,0x00,0x26,0x91,
-0xAA,0x1B,0x64,0x90,
-0x2A,0xB0,0x05,0x3C,
-0xA0,0xFF,0x02,0x24,
-0x26,0xB0,0x07,0x3C,
-0x25,0x30,0xC2,0x00,
-0x30,0x00,0xAD,0x34,
-0x34,0x00,0xA8,0x34,
-0x01,0x00,0x83,0x24,
-0x38,0x00,0xA5,0x34,
-0x20,0x20,0x02,0x24,
-0x00,0x00,0x26,0xA1,
-0x79,0x00,0xEA,0x34,
-0x00,0x00,0x03,0xA1,
-0x00,0x00,0xA2,0xA4,
-0x40,0x00,0x03,0x24,
-0x16,0x00,0x02,0x24,
-0x00,0x00,0xA3,0xA1,
-0x94,0x00,0xEB,0x37,
-0x00,0x00,0x42,0xA1,
-0x98,0x00,0xEC,0x37,
-0x64,0x00,0x03,0x24,
-0x22,0x00,0x02,0x24,
-0x00,0x00,0x63,0xA5,
-0x7C,0x00,0xF4,0x34,
-0x00,0x00,0x82,0xA5,
-0x7A,0x00,0xE7,0x34,
-0x04,0x00,0x03,0x24,
-0x20,0x0C,0x02,0x24,
-0x00,0x00,0xE3,0xA0,
-0x9C,0x00,0xEE,0x37,
-0x00,0x00,0x82,0xA6,
-0x9A,0x00,0xEF,0x37,
-0x0A,0x00,0x03,0x24,
-0xFF,0x03,0x02,0x24,
-0x00,0x00,0xC3,0xA1,
-0x00,0x00,0xE2,0xA5,
-0x25,0xB0,0x02,0x3C,
-0x02,0x00,0x03,0x24,
-0x96,0x00,0x42,0x34,
-0x00,0x00,0x43,0xA4,
-0x89,0x00,0xF5,0x37,
-0xB7,0x00,0xF1,0x37,
-0x20,0x00,0x02,0x24,
-0x09,0x00,0x03,0x24,
-0x00,0x00,0x22,0xA2,
-0x00,0x00,0xA3,0xA2,
-0x00,0x00,0xE2,0x96,
-0xFF,0xFD,0x03,0x24,
-0x04,0x02,0x05,0x24,
-0x24,0x10,0x43,0x00,
-0x00,0x00,0xE2,0xA6,
-0x00,0x00,0xE3,0x96,
-0x29,0xB0,0x02,0x3C,
-0x40,0x00,0x42,0x34,
-0x00,0x02,0x63,0x34,
-0x00,0x00,0xE3,0xA6,
-0xFF,0x00,0x84,0x30,
-0x00,0x00,0x45,0xA4,
-0x73,0x22,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x44,0x00,0xBF,0x8F,
-0x40,0x00,0xBE,0x8F,
-0x3C,0x00,0xB7,0x8F,
-0x38,0x00,0xB6,0x8F,
-0x34,0x00,0xB5,0x8F,
-0x30,0x00,0xB4,0x8F,
-0x2C,0x00,0xB3,0x8F,
-0x28,0x00,0xB2,0x8F,
-0x24,0x00,0xB1,0x8F,
-0x20,0x00,0xB0,0x8F,
-0x01,0x00,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x48,0x00,0xBD,0x27,
-0xFF,0xFF,0x03,0x24,
-0x00,0x00,0x43,0xA0,
-0x02,0x80,0x0B,0x3C,
-0xDE,0x5D,0x66,0x91,
-0x25,0xB0,0x09,0x3C,
-0x80,0x00,0x02,0x24,
-0x34,0x02,0x24,0x35,
-0x00,0x00,0x82,0xA4,
-0x37,0x02,0x25,0x35,
-0x53,0x00,0x03,0x24,
-0x22,0x00,0x02,0x24,
-0x00,0x00,0xA3,0xA0,
-0x1E,0xFF,0xC2,0x14,
-0x13,0x13,0x02,0x3C,
-0x1B,0x1B,0x02,0x3C,
-0x1B,0x1B,0x42,0x34,
-0x60,0x01,0x23,0x35,
-0x64,0x01,0x24,0x35,
-0x68,0x01,0x25,0x35,
-0x7C,0x01,0x2A,0x35,
-0x6C,0x01,0x26,0x35,
-0x70,0x01,0x27,0x35,
-0x74,0x01,0x28,0x35,
-0x78,0x01,0x29,0x35,
-0x00,0x00,0x62,0xAC,
-0x00,0x00,0x82,0xAC,
-0x00,0x00,0xA2,0xAC,
-0x00,0x00,0xC2,0xAC,
-0x00,0x00,0xE2,0xAC,
-0x00,0x00,0x02,0xAD,
-0x00,0x00,0x22,0xAD,
-0x00,0x00,0x42,0xAD,
-0xDE,0x5D,0x65,0x91,
-0x25,0xB0,0x0C,0x3C,
-0x01,0x00,0x03,0x3C,
-0x80,0x01,0x82,0x35,
-0x08,0x5F,0x63,0x34,
-0x22,0x00,0x04,0x24,
-0x00,0x00,0x43,0xAC,
-0x1D,0xFF,0xA4,0x14,
-0x0F,0x1F,0x02,0x3C,
-0x00,0xF0,0x4F,0x34,
-0xF7,0x01,0x91,0x35,
-0x15,0xF0,0x4D,0x34,
-0x78,0x67,0x00,0x08,
-0xFF,0xFF,0x0E,0x24,
-0x02,0x80,0x02,0x3C,
-0xDF,0x5D,0x44,0x90,
-0x06,0x00,0x03,0x24,
-0x0C,0x00,0x83,0x10,
-0x00,0x1C,0x02,0x3C,
-0x00,0x1C,0x42,0x34,
-0xA0,0x00,0x24,0x36,
-0x00,0x00,0x82,0xAC,
-0x00,0xE0,0x02,0x3C,
-0xA4,0x00,0x25,0x36,
-0x00,0x04,0x03,0x24,
-0xA8,0x00,0x26,0x36,
-0x00,0xB0,0x42,0x34,
-0x00,0x00,0xA3,0xAC,
-0xDA,0x66,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x16,0x16,0x02,0x3C,
-0x07,0x07,0x42,0x34,
-0xA0,0x00,0x23,0x36,
-0x00,0x00,0x62,0xAC,
-0x00,0xC0,0x02,0x3C,
-0xA8,0x00,0x25,0x36,
-0xA4,0x00,0x24,0x36,
-0x00,0xB4,0x42,0x34,
-0x00,0x00,0x80,0xAC,
-0x00,0x00,0xA2,0xAC,
-0xDC,0x66,0x00,0x08,
-0x02,0x80,0x03,0x3C,
-0xE8,0xFF,0xBD,0x27,
-0x01,0x00,0x06,0x24,
-0xE8,0x0E,0x04,0x24,
-0x10,0x00,0xBF,0xAF,
-0xA9,0x45,0x00,0x0C,
-0x00,0x10,0x05,0x3C,
-0x60,0x08,0x04,0x24,
-0xCB,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x20,0x04,0x06,0x3C,
-0x20,0x04,0xC6,0x34,
-0x25,0x30,0x46,0x00,
-0x60,0x08,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x70,0x08,0x04,0x24,
-0x00,0x04,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x00,0x20,0x06,0x3C,
-0x80,0x00,0xC6,0x34,
-0x80,0x0C,0x04,0x24,
-0xA9,0x45,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0x00,0x40,0x06,0x3C,
-0x10,0x00,0xBF,0x8F,
-0x00,0x01,0xC6,0x34,
-0x88,0x0C,0x04,0x24,
-0xFF,0xFF,0x05,0x24,
-0xA9,0x45,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x10,0x00,0xA0,0x10,
-0x21,0x38,0x00,0x00,
-0x25,0xB0,0x08,0x3C,
-0x00,0x00,0x82,0x8C,
-0x04,0x00,0x83,0x8C,
-0x21,0x30,0x00,0x00,
-0x21,0x10,0x48,0x00,
-0x00,0x00,0x43,0xAC,
-0x01,0x00,0xC2,0x24,
-0xFF,0x00,0x46,0x30,
-0x06,0x00,0xC3,0x2C,
-0xFD,0xFF,0x60,0x14,
-0x01,0x00,0xC2,0x24,
-0x02,0x00,0xE7,0x24,
-0x2B,0x10,0xE5,0x00,
-0xF3,0xFF,0x40,0x14,
-0x08,0x00,0x84,0x24,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x1C,0x00,0xBF,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x21,0x90,0xA0,0x00,
-0x0B,0x00,0xA0,0x10,
-0x21,0x88,0x00,0x00,
-0x21,0x80,0x80,0x00,
-0x00,0x00,0x04,0x8E,
-0x04,0x00,0x05,0x8E,
-0x08,0x00,0x06,0x8E,
-0x03,0x00,0x31,0x26,
-0xA9,0x45,0x00,0x0C,
-0x0C,0x00,0x10,0x26,
-0x2B,0x10,0x32,0x02,
-0xF8,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x21,0x40,0x80,0x00,
-0x21,0x48,0x00,0x00,
-0x1E,0x00,0xA0,0x10,
-0x21,0x38,0x00,0x00,
-0x80,0x30,0x07,0x00,
-0x21,0x10,0xC8,0x00,
-0x00,0x00,0x43,0x8C,
-0x00,0x00,0x00,0x00,
-0x00,0xF2,0x63,0x24,
-0x1D,0x00,0x62,0x2C,
-0x12,0x00,0x40,0x10,
-0x80,0x10,0x03,0x00,
-0x02,0x80,0x03,0x3C,
-0x64,0xE9,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x8C,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0x80,0x00,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x23,0x18,0x69,0x00,
-0x08,0x00,0x44,0x8C,
-0x02,0x80,0x02,0x3C,
-0x80,0x18,0x03,0x00,
-0x30,0x1F,0x42,0x24,
-0x21,0x18,0x62,0x00,
-0x04,0x1D,0x64,0xAC,
-0x01,0x00,0x29,0x25,
-0x03,0x00,0xE7,0x24,
-0x2B,0x10,0xE5,0x00,
-0xE5,0xFF,0x40,0x14,
-0x80,0x30,0x07,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x08,0x00,0x44,0x8C,
-0x23,0x18,0x69,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x03,0x00,0xE7,0x24,
-0x21,0x18,0x62,0x00,
-0x2B,0x10,0xE5,0x00,
-0xD6,0xFF,0x40,0x14,
-0x00,0x1D,0x64,0xAC,
-0xE0,0x68,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x08,0x00,0x44,0x8C,
-0x23,0x18,0x69,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x03,0x00,0xE7,0x24,
-0x21,0x18,0x62,0x00,
-0x2B,0x10,0xE5,0x00,
-0xC8,0xFF,0x40,0x14,
-0xFC,0x1C,0x64,0xAC,
-0xE0,0x68,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x08,0x00,0x44,0x8C,
-0x23,0x18,0x69,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x03,0x00,0xE7,0x24,
-0x21,0x18,0x62,0x00,
-0x2B,0x10,0xE5,0x00,
-0xBA,0xFF,0x40,0x14,
-0xF8,0x1C,0x64,0xAC,
-0xE0,0x68,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x08,0x00,0x44,0x8C,
-0x23,0x18,0x69,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x03,0x00,0xE7,0x24,
-0x21,0x18,0x62,0x00,
-0x2B,0x10,0xE5,0x00,
-0xAC,0xFF,0x40,0x14,
-0x08,0x1D,0x64,0xAC,
-0xE0,0x68,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x08,0x00,0x44,0x8C,
-0x23,0x18,0x69,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x03,0x00,0xE7,0x24,
-0x21,0x18,0x62,0x00,
-0x2B,0x10,0xE5,0x00,
-0x9E,0xFF,0x40,0x14,
-0xF4,0x1C,0x64,0xAC,
-0xE0,0x68,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x21,0x10,0xC8,0x00,
-0xC0,0x18,0x09,0x00,
-0x08,0x00,0x44,0x8C,
-0x23,0x18,0x69,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x80,0x18,0x03,0x00,
-0x03,0x00,0xE7,0x24,
-0x21,0x18,0x62,0x00,
-0x2B,0x10,0xE5,0x00,
-0x90,0xFF,0x40,0x14,
-0xF0,0x1C,0x64,0xAC,
-0xE0,0x68,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x25,0xB0,0x02,0x3C,
-0xFC,0x37,0x03,0x24,
-0x40,0x00,0x42,0x34,
-0x02,0x80,0x04,0x3C,
-0x00,0x00,0x43,0xA4,
-0xE8,0xFF,0xBD,0x27,
-0xA4,0xCF,0x84,0x24,
-0x10,0x00,0xBF,0xAF,
-0x94,0x68,0x00,0x0C,
-0x74,0x01,0x05,0x24,
-0x02,0x80,0x02,0x3C,
-0xDE,0x5D,0x44,0x90,
-0x12,0x00,0x03,0x24,
-0x34,0x00,0x83,0x10,
-0x13,0x00,0x82,0x28,
-0x17,0x00,0x40,0x14,
-0x11,0x00,0x02,0x24,
-0x22,0x00,0x02,0x24,
-0x36,0x00,0x82,0x10,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x04,0x3C,
-0x2C,0xCC,0x84,0x24,
-0xBF,0x68,0x00,0x0C,
-0x54,0x00,0x05,0x24,
-0x02,0x80,0x02,0x3C,
-0x4A,0xF3,0x44,0x90,
-0x01,0x00,0x03,0x24,
-0x1A,0x00,0x83,0x10,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x2C,0xC7,0x84,0x24,
-0x94,0x68,0x00,0x0C,
-0x40,0x01,0x05,0x24,
-0x10,0x00,0xBF,0x8F,
-0x84,0x08,0x04,0x24,
-0xFF,0x00,0x05,0x24,
-0x58,0x00,0x06,0x24,
-0x1B,0x47,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0xED,0xFF,0x82,0x14,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x04,0x3C,
-0xE4,0xCE,0x84,0x24,
-0xA7,0x68,0x00,0x0C,
-0x30,0x00,0x05,0x24,
-0x02,0x80,0x04,0x3C,
-0x2C,0xCC,0x84,0x24,
-0xBF,0x68,0x00,0x0C,
-0x54,0x00,0x05,0x24,
-0x02,0x80,0x02,0x3C,
-0x4A,0xF3,0x44,0x90,
-0x01,0x00,0x03,0x24,
-0xE8,0xFF,0x83,0x14,
-0x00,0x00,0x00,0x00,
-0x75,0x68,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x2C,0xC7,0x84,0x24,
-0x94,0x68,0x00,0x0C,
-0x40,0x01,0x05,0x24,
-0x10,0x00,0xBF,0x8F,
-0x84,0x08,0x04,0x24,
-0xFF,0x00,0x05,0x24,
-0x58,0x00,0x06,0x24,
-0x1B,0x47,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x04,0x3C,
-0x30,0xCE,0x84,0x24,
-0x2D,0x00,0x05,0x24,
-0xA7,0x68,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x64,0x69,0x00,0x08,
-0x02,0x80,0x04,0x3C,
-0x7C,0xCD,0x84,0x24,
-0x7B,0x69,0x00,0x08,
-0x2D,0x00,0x05,0x24,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xB0,0xAF,
-0x50,0x0C,0x04,0x24,
-0xFF,0x00,0x05,0x24,
-0x02,0x80,0x10,0x3C,
-0x14,0x00,0xBF,0xAF,
-0x0A,0x47,0x00,0x0C,
-0x30,0x1F,0x10,0x26,
-0x60,0x1D,0x02,0xA2,
-0x58,0x0C,0x04,0x24,
-0x0A,0x47,0x00,0x0C,
-0xFF,0x00,0x05,0x24,
-0x61,0x1D,0x02,0xA2,
-0x60,0x0C,0x04,0x24,
-0x0A,0x47,0x00,0x0C,
-0xFF,0x00,0x05,0x24,
-0x62,0x1D,0x02,0xA2,
-0x68,0x0C,0x04,0x24,
-0x0A,0x47,0x00,0x0C,
-0xFF,0x00,0x05,0x24,
-0x63,0x1D,0x02,0xA2,
-0x38,0x0C,0x04,0x24,
-0x0A,0x47,0x00,0x0C,
-0xFF,0x00,0x05,0x24,
-0xE8,0x1C,0x02,0xA2,
-0x34,0x0C,0x04,0x24,
-0x0A,0x47,0x00,0x0C,
-0xFF,0xFF,0x05,0x24,
-0xEC,0x1C,0x02,0xAE,
-0x14,0x00,0xBF,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x03,0x3C,
-0x84,0xA7,0x42,0x24,
-0xBC,0x5E,0x60,0xAC,
-0x1C,0x5E,0xA2,0xAC,
-0x02,0x80,0x03,0x3C,
-0x00,0x80,0x02,0x3C,
-0xC0,0x5E,0x60,0xA4,
-0x1C,0x5E,0xA4,0x24,
-0x88,0x0D,0x42,0x24,
-0x02,0x80,0x03,0x3C,
-0xC2,0x5E,0x60,0xA4,
-0x08,0x00,0x82,0xAC,
-0x00,0x80,0x03,0x3C,
-0x00,0x80,0x02,0x3C,
-0x02,0x80,0x06,0x3C,
-0x88,0x10,0x42,0x24,
-0xA4,0x0D,0x63,0x24,
-0xC4,0x5E,0xC7,0x24,
-0x14,0x00,0x82,0xAC,
-0x10,0x00,0x83,0xAC,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xC4,0x5E,0xC0,0xAC,
-0x04,0x00,0xE0,0xAC,
-0xCC,0x5E,0x40,0xA0,
-0xD0,0x5E,0x60,0xAC,
-0x01,0x80,0x02,0x3C,
-0x30,0xD2,0x42,0x24,
-0x7C,0x00,0x82,0xAC,
-0x00,0x80,0x03,0x3C,
-0x00,0x80,0x02,0x3C,
-0xA4,0x10,0x63,0x24,
-0x64,0x13,0x42,0x24,
-0x1C,0x00,0x83,0xAC,
-0x20,0x00,0x82,0xAC,
-0x00,0x80,0x03,0x3C,
-0x00,0x80,0x02,0x3C,
-0x2C,0x16,0x63,0x24,
-0xF0,0x18,0x42,0x24,
-0x24,0x00,0x83,0xAC,
-0x28,0x00,0x82,0xAC,
-0x00,0x80,0x03,0x3C,
-0x01,0x80,0x02,0x3C,
-0xC8,0x2A,0x63,0x24,
-0x98,0x01,0x42,0x24,
-0x2C,0x00,0x83,0xAC,
-0x50,0x00,0x82,0xAC,
-0x00,0x80,0x03,0x3C,
-0x00,0x80,0x02,0x3C,
-0x10,0x1C,0x63,0x24,
-0xFC,0x1D,0x42,0x24,
-0x30,0x00,0x83,0xAC,
-0x38,0x00,0x82,0xAC,
-0x00,0x80,0x03,0x3C,
-0x00,0x80,0x02,0x3C,
-0x00,0x03,0x63,0x24,
-0xB4,0x1B,0x42,0x24,
-0x4C,0x00,0x83,0xAC,
-0x08,0x00,0xE0,0x03,
-0x3C,0x00,0x82,0xAC,
-0x25,0xB0,0x02,0x3C,
-0x08,0x00,0x42,0x34,
-0x00,0x00,0x43,0x8C,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x0E,0x3C,
-0x02,0x80,0x08,0x3C,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0xF8,0x03,0x4D,0x24,
-0x00,0x1C,0x6C,0x24,
-0x01,0x00,0x07,0x24,
-0x00,0x00,0xCB,0x25,
-0xFF,0xFF,0x0A,0x24,
-0x00,0x04,0x09,0x25,
-0x80,0x1A,0x07,0x00,
-0x21,0x10,0x6B,0x00,
-0x00,0x00,0x42,0xAC,
-0x90,0x00,0x4A,0xAC,
-0x00,0x04,0x04,0x8D,
-0x01,0x00,0xE7,0x24,
-0x08,0x00,0x45,0x24,
-0x21,0x18,0x6D,0x00,
-0x07,0x00,0xE6,0x28,
-0x04,0x00,0x82,0xAC,
-0x00,0x00,0x44,0xAC,
-0x04,0x00,0x49,0xAC,
-0x00,0x04,0x02,0xAD,
-0x8C,0x00,0x40,0xAC,
-0x6C,0x00,0xA3,0xAC,
-0xF0,0xFF,0xC0,0x14,
-0x68,0x00,0xAC,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0xC9,0xAD,
-0x07,0x00,0xA2,0x2C,
-0x13,0x00,0x40,0x10,
-0xFF,0xFF,0x07,0x24,
-0x02,0x80,0x02,0x3C,
-0x80,0x1A,0x05,0x00,
-0x00,0x00,0x42,0x24,
-0x0E,0x00,0xA0,0x10,
-0x21,0x30,0x62,0x00,
-0x90,0x00,0xC3,0x8C,
-0xFF,0xFF,0x02,0x24,
-0x0A,0x00,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x8C,0x00,0xC2,0x8C,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x02,0x24,
-0x88,0x00,0xC4,0xAC,
-0x8C,0x00,0xC2,0xAC,
-0x90,0x00,0xC5,0xAC,
-0x21,0x38,0xA0,0x00,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0xE0,0x00,
-0x25,0xB0,0x06,0x3C,
-0x02,0x80,0x02,0x3C,
-0xE0,0xFF,0xBD,0x27,
-0x68,0xA8,0x42,0x24,
-0xDB,0xFF,0x03,0x24,
-0x18,0x03,0xC4,0x34,
-0x27,0x00,0xC5,0x34,
-0x00,0x00,0x82,0xAC,
-0x1C,0x00,0xBF,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x00,0x00,0xA3,0xA0,
-0x06,0x00,0xC2,0x34,
-0x00,0x00,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x0F,0x00,0x63,0x30,
-0x5A,0x00,0x60,0x14,
-0x01,0x00,0x02,0x24,
-0x1B,0x00,0xC3,0x34,
-0x07,0x00,0x02,0x24,
-0x00,0x00,0x62,0xA0,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x50,0x24,
-0x34,0x1C,0x04,0x8E,
-0xCB,0x45,0x00,0x0C,
-0x10,0x00,0x05,0x24,
-0x40,0x1C,0x04,0x8E,
-0x10,0x00,0x05,0x3C,
-0x01,0x00,0x06,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x90,0x40,0x00,
-0x3C,0x1C,0x04,0x8E,
-0x10,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x58,0x1C,0x04,0x8E,
-0x00,0x04,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x58,0x1C,0x04,0x8E,
-0x00,0x08,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x02,0x80,0x05,0x3C,
-0xEC,0xD9,0xA5,0x24,
-0x21,0x20,0x00,0x00,
-0x9F,0x47,0x00,0x0C,
-0xCA,0x00,0x06,0x24,
-0x31,0x00,0x40,0x10,
-0x21,0x18,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0xE7,0x5D,0x43,0x90,
-0x01,0x00,0x11,0x24,
-0x57,0x00,0x71,0x10,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x02,0x3C,
-0x4A,0xF3,0x43,0x90,
-0x00,0x00,0x00,0x00,
-0x58,0x00,0x71,0x10,
-0x02,0x80,0x05,0x3C,
-0x34,0x1C,0x04,0x8E,
-0x21,0x30,0x40,0x02,
-0x10,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x02,0x80,0x11,0x3C,
-0xDE,0x5D,0x23,0x92,
-0x11,0x00,0x02,0x24,
-0x2E,0x00,0x62,0x10,
-0x00,0x08,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x01,0x00,0x04,0x24,
-0x34,0x1C,0x04,0x8E,
-0xCB,0x45,0x00,0x0C,
-0x10,0x00,0x05,0x3C,
-0x40,0x1C,0x04,0x8E,
-0x10,0x00,0x05,0x3C,
-0x01,0x00,0x06,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x90,0x40,0x00,
-0x3C,0x1C,0x04,0x8E,
-0x10,0x00,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x58,0x1C,0x04,0x8E,
-0x00,0x04,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x58,0x1C,0x04,0x8E,
-0x00,0x08,0x05,0x24,
-0xA9,0x45,0x00,0x0C,
-0x21,0x30,0x00,0x00,
-0x02,0x80,0x05,0x3C,
-0x94,0xD9,0xA5,0x24,
-0x01,0x00,0x04,0x24,
-0x9F,0x47,0x00,0x0C,
-0x16,0x00,0x06,0x24,
-0x0C,0x00,0x40,0x14,
-0x21,0x18,0x00,0x00,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xA9,0xFF,0x62,0x14,
-0x1F,0x00,0xC3,0x34,
-0x2F,0x6A,0x00,0x08,
-0x07,0x00,0x02,0x24,
-0x34,0x1C,0x04,0x8E,
-0x21,0x30,0x40,0x02,
-0xA9,0x45,0x00,0x0C,
-0x10,0x00,0x05,0x3C,
-0x00,0x08,0x04,0x24,
-0x00,0x01,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0x00,0x08,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x01,0x00,0x06,0x24,
-0xDE,0x5D,0x23,0x92,
-0x11,0x00,0x02,0x24,
-0x1D,0x00,0x62,0x10,
-0x00,0x08,0x04,0x24,
-0xE6,0x44,0x00,0x0C,
-0x21,0x20,0x00,0x00,
-0x0F,0x00,0x05,0x3C,
-0x0C,0x00,0x06,0x3C,
-0xFF,0xFF,0xA5,0x34,
-0x00,0xB4,0xC6,0x34,
-0x5F,0x47,0x00,0x0C,
-0x08,0x00,0x04,0x24,
-0x1C,0x00,0xBF,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x01,0x00,0x03,0x24,
-0x21,0x10,0x60,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x84,0xD8,0xA5,0x24,
-0x21,0x20,0x00,0x00,
-0x9F,0x47,0x00,0x0C,
-0x16,0x00,0x06,0x24,
-0x55,0x6A,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0xDC,0xD8,0xA5,0x24,
-0x21,0x20,0x00,0x00,
-0x9F,0x47,0x00,0x0C,
-0x16,0x00,0x06,0x24,
-0x59,0x6A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0xFF,0x05,0x3C,
-0xA9,0x45,0x00,0x0C,
-0x03,0x00,0x06,0x24,
-0x9A,0x6A,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x02,0x80,0x02,0x3C,
-0x61,0x5A,0x47,0x90,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x03,0x00,0x03,0x24,
-0x1E,0x3B,0x84,0x24,
-0xAC,0xE3,0xA5,0x24,
-0x0F,0x00,0xE3,0x10,
-0x0D,0x00,0x06,0x24,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x1E,0x3B,0x84,0x24,
-0x5C,0xE3,0xA5,0x24,
-0x10,0x52,0x00,0x0C,
-0x0D,0x00,0x06,0x24,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x10,0x00,0xBF,0x8F,
-0x2B,0x3B,0x84,0x24,
-0x6C,0xE3,0xA5,0x24,
-0x0D,0x00,0x06,0x24,
-0x10,0x52,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x10,0x52,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0x10,0x00,0xBF,0x8F,
-0x2B,0x3B,0x84,0x24,
-0x9C,0xE3,0xA5,0x24,
-0x0D,0x00,0x06,0x24,
-0x10,0x52,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x02,0x80,0x11,0x3C,
-0x02,0x80,0x05,0x3C,
-0x02,0x80,0x10,0x3C,
-0x30,0x1F,0x10,0x26,
-0x64,0x5A,0x24,0x26,
-0x14,0xDD,0xA5,0x24,
-0x34,0x00,0x06,0x24,
-0x18,0x00,0xBF,0xAF,
-0x10,0x52,0x00,0x0C,
-0x64,0x5A,0x31,0x26,
-0xBD,0x6A,0x00,0x0C,
-0x68,0x3B,0x11,0xAE,
-0x02,0x00,0x11,0x24,
-0x02,0x80,0x04,0x3C,
-0x00,0x80,0x06,0x3C,
-0xA0,0x38,0x11,0xA2,
-0xBC,0x57,0x84,0x24,
-0xFC,0x64,0xC6,0x24,
-0x21,0x28,0x00,0x00,
-0xA2,0x23,0x00,0x0C,
-0x98,0x38,0x00,0xAE,
-0x02,0x80,0x04,0x3C,
-0x01,0x80,0x06,0x3C,
-0xBC,0x38,0x11,0xA2,
-0xD8,0x57,0x84,0x24,
-0x0C,0x31,0xC6,0x24,
-0x21,0x28,0x00,0x00,
-0xA2,0x23,0x00,0x0C,
-0xB4,0x38,0x00,0xAE,
-0x02,0x80,0x04,0x3C,
-0x01,0x80,0x06,0x3C,
-0xD8,0x38,0x11,0xA2,
-0xF4,0x57,0x84,0x24,
-0xC0,0x2E,0xC6,0x24,
-0x21,0x28,0x00,0x00,
-0xA2,0x23,0x00,0x0C,
-0xD0,0x38,0x00,0xAE,
-0x02,0x80,0x04,0x3C,
-0x01,0x80,0x06,0x3C,
-0xF4,0x38,0x11,0xA2,
-0x10,0x58,0x84,0x24,
-0x14,0x25,0xC6,0x24,
-0x21,0x28,0x00,0x00,
-0xA2,0x23,0x00,0x0C,
-0xEC,0x38,0x00,0xAE,
-0x02,0x80,0x04,0x3C,
-0x00,0x80,0x06,0x3C,
-0x10,0x39,0x11,0xA2,
-0x2C,0x58,0x84,0x24,
-0x58,0x64,0xC6,0x24,
-0x21,0x28,0x00,0x00,
-0xA2,0x23,0x00,0x0C,
-0x08,0x39,0x00,0xAE,
-0x02,0x80,0x04,0x3C,
-0x00,0x80,0x06,0x3C,
-0x48,0x39,0x11,0xA2,
-0x40,0x39,0x00,0xAE,
-0x64,0x58,0x84,0x24,
-0x38,0x3B,0xC6,0x24,
-0xA2,0x23,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x02,0x80,0x02,0x3C,
-0x49,0xF3,0x43,0x90,
-0x18,0x00,0xBF,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x9C,0x3E,0x03,0xA2,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x03,0x80,0x05,0x3C,
-0x00,0x80,0xA5,0x24,
-0x40,0x10,0x0D,0x3C,
-0xFF,0xFF,0xA5,0x30,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x42,0x24,
-0x25,0xC8,0xAD,0x00,
-0x38,0x37,0x59,0xAC,
-0x00,0x01,0x39,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x44,0x37,0x59,0xAC,
-0x00,0x01,0x39,0x27,
-0x1C,0x00,0xB7,0xAF,
-0x18,0x00,0xB6,0xAF,
-0x14,0x00,0xB5,0xAF,
-0x10,0x00,0xB4,0xAF,
-0x0C,0x00,0xB3,0xAF,
-0x08,0x00,0xB2,0xAF,
-0x04,0x00,0xB1,0xAF,
-0x00,0x00,0xB0,0xAF,
-0x50,0x37,0x59,0xAC,
-0x00,0x01,0x39,0x27,
-0x5C,0x37,0x59,0xAC,
-0xAA,0x1B,0x44,0x90,
-0x00,0x01,0x39,0x27,
-0x68,0x37,0x59,0xAC,
-0x00,0x01,0x39,0x27,
-0x74,0x37,0x59,0xAC,
-0x20,0xB0,0x06,0x3C,
-0x44,0x37,0x48,0x8C,
-0x50,0x37,0x49,0x8C,
-0x5C,0x37,0x4A,0x8C,
-0x68,0x37,0x4B,0x8C,
-0x74,0x37,0x4C,0x8C,
-0x00,0x22,0x04,0x00,
-0x00,0x01,0xC7,0x34,
-0xFF,0x1F,0x03,0x3C,
-0x00,0x01,0x39,0x27,
-0xFF,0xFF,0x63,0x34,
-0x21,0x38,0x87,0x00,
-0x21,0x20,0x86,0x00,
-0x24,0x38,0xE3,0x00,
-0x20,0x10,0x06,0x3C,
-0x24,0x20,0x83,0x00,
-0x80,0x37,0x59,0xAC,
-0x21,0x78,0x20,0x03,
-0x25,0x28,0xAD,0x00,
-0x25,0xB0,0x0E,0x3C,
-0x00,0x01,0x39,0x27,
-0x34,0x37,0x45,0xAC,
-0x40,0x37,0x48,0xAC,
-0x4C,0x37,0x49,0xAC,
-0x58,0x37,0x4A,0xAC,
-0xF8,0x36,0x44,0xAC,
-0x64,0x37,0x4B,0xAC,
-0x04,0x37,0x47,0xAC,
-0x70,0x37,0x4C,0xAC,
-0xAC,0x00,0xC3,0x35,
-0xCC,0x36,0x46,0xAC,
-0xC8,0x36,0x46,0xAC,
-0xD8,0x36,0x46,0xAC,
-0xD4,0x36,0x46,0xAC,
-0xE4,0x36,0x46,0xAC,
-0x8C,0x37,0x59,0xAC,
-0xFC,0x36,0x44,0xAC,
-0x08,0x37,0x47,0xAC,
-0x7C,0x37,0x4F,0xAC,
-0xE0,0x36,0x46,0xAC,
-0xF0,0x36,0x46,0xAC,
-0xEC,0x36,0x46,0xAC,
-0x14,0x37,0x46,0xAC,
-0x10,0x37,0x46,0xAC,
-0x00,0x02,0x39,0x27,
-0x00,0x00,0x68,0x8C,
-0xAC,0x1B,0x47,0x94,
-0xA4,0x37,0x59,0xAC,
-0xB0,0x00,0xC3,0x35,
-0x00,0x00,0x75,0x8C,
-0x21,0x10,0x05,0x3C,
-0x8C,0x37,0x52,0x8C,
-0x23,0x10,0x0B,0x3C,
-0x22,0x10,0x0F,0x3C,
-0x02,0x80,0x14,0x3C,
-0x02,0x80,0x16,0x3C,
-0x02,0x80,0x17,0x3C,
-0x02,0x80,0x18,0x3C,
-0x00,0x80,0xA4,0x34,
-0x21,0x98,0x20,0x03,
-0x23,0x20,0x87,0x00,
-0x00,0x04,0x39,0x27,
-0x24,0x10,0x07,0x3C,
-0x9C,0x57,0x8A,0x26,
-0xA4,0x57,0xC9,0x26,
-0xAC,0x57,0xEC,0x26,
-0xB4,0x57,0x0D,0x27,
-0x00,0x04,0x70,0x35,
-0x01,0x00,0x08,0x25,
-0x00,0x40,0xF1,0x35,
-0x00,0x01,0xCE,0x35,
-0x01,0x00,0x03,0x24,
-0x88,0x37,0x52,0xAC,
-0x91,0x37,0x43,0xA0,
-0xA0,0x37,0x53,0xAC,
-0x08,0x38,0x50,0xAC,
-0xCC,0x37,0x48,0xAC,
-0xD8,0x37,0x44,0xAC,
-0xFC,0x37,0x51,0xAC,
-0xF0,0x37,0x55,0xAC,
-0x00,0x00,0xC7,0xAD,
-0xEC,0x37,0x47,0xAC,
-0x0C,0x38,0x46,0xAC,
-0x20,0x37,0x46,0xAC,
-0x1C,0x37,0x46,0xAC,
-0xAA,0x37,0x40,0xA4,
-0xA9,0x37,0x40,0xA0,
-0xA8,0x37,0x40,0xA0,
-0x00,0x38,0x4B,0xAC,
-0x04,0x38,0x4B,0xAC,
-0xC4,0x37,0x45,0xAC,
-0xC8,0x37,0x45,0xAC,
-0xD0,0x37,0x45,0xAC,
-0xD4,0x37,0x45,0xAC,
-0xF4,0x37,0x4F,0xAC,
-0xF8,0x37,0x4F,0xAC,
-0xE8,0x37,0x47,0xAC,
-0x10,0x38,0x46,0xAC,
-0x1C,0x38,0x59,0xAC,
-0x18,0x38,0x59,0xAC,
-0x04,0x00,0x4A,0xAD,
-0x9C,0x57,0x8A,0xAE,
-0x04,0x00,0x8C,0xAD,
-0xA4,0x57,0xC9,0xAE,
-0x04,0x00,0xAD,0xAD,
-0xAC,0x57,0xEC,0xAE,
-0xB4,0x57,0x0D,0xAF,
-0x04,0x00,0x29,0xAD,
-0x02,0x80,0x02,0x3C,
-0x00,0x1C,0x43,0x24,
-0x01,0x00,0x05,0x24,
-0x21,0x20,0x20,0x01,
-0x0F,0x00,0x06,0x24,
-0x21,0x10,0x80,0x00,
-0xFF,0xFF,0xC6,0x24,
-0x08,0x00,0x79,0xAC,
-0x00,0x00,0x63,0xAC,
-0x10,0x00,0x65,0xAC,
-0x00,0x00,0x69,0xAC,
-0x21,0x20,0x60,0x00,
-0x04,0x00,0x62,0xAC,
-0x00,0x00,0x43,0xAC,
-0x00,0x01,0x39,0x27,
-0xF5,0xFF,0xC1,0x04,
-0x18,0x00,0x63,0x24,
-0x02,0x80,0x02,0x3C,
-0xAC,0x57,0x48,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x04,0x00,0x07,0x8D,
-0x80,0x1D,0x4B,0x24,
-0x04,0x00,0x24,0xAD,
-0x00,0x1C,0x6A,0x24,
-0x02,0x00,0x09,0x24,
-0x21,0x28,0x00,0x00,
-0x0F,0x00,0x06,0x24,
-0x21,0x20,0xAB,0x00,
-0x21,0x10,0xAA,0x00,
-0xFF,0xFF,0xC6,0x24,
-0x88,0x01,0x59,0xAC,
-0x90,0x01,0x49,0xAC,
-0x18,0x00,0xA5,0x24,
-0x00,0x00,0x88,0xAC,
-0x04,0x00,0x87,0xAC,
-0x00,0x00,0xE4,0xAC,
-0x00,0x02,0x39,0x27,
-0xF5,0xFF,0xC1,0x04,
-0x21,0x38,0x80,0x00,
-0x02,0x80,0x02,0x3C,
-0xB4,0x57,0x49,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x04,0x00,0x27,0x8D,
-0x00,0x1F,0x4B,0x24,
-0x04,0x00,0x04,0xAD,
-0x00,0x1C,0x6A,0x24,
-0x03,0x00,0x08,0x24,
-0x21,0x28,0x00,0x00,
-0x01,0x00,0x06,0x24,
-0x21,0x20,0xAB,0x00,
-0x21,0x10,0xAA,0x00,
-0xFF,0xFF,0xC6,0x24,
-0x08,0x03,0x59,0xAC,
-0x10,0x03,0x48,0xAC,
-0x18,0x00,0xA5,0x24,
-0x00,0x00,0x89,0xAC,
-0x04,0x00,0x87,0xAC,
-0x00,0x00,0xE4,0xAC,
-0x00,0x08,0x39,0x27,
-0xF5,0xFF,0xC1,0x04,
-0x21,0x38,0x80,0x00,
-0x1C,0x00,0xB7,0x8F,
-0x18,0x00,0xB6,0x8F,
-0x14,0x00,0xB5,0x8F,
-0x10,0x00,0xB4,0x8F,
-0x0C,0x00,0xB3,0x8F,
-0x08,0x00,0xB2,0x8F,
-0x04,0x00,0xB1,0x8F,
-0x00,0x00,0xB0,0x8F,
-0x20,0x00,0xBD,0x27,
-0x08,0x00,0xE0,0x03,
-0x04,0x00,0x24,0xAD,
-0xD0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x20,0x00,0xB2,0xAF,
-0x02,0x80,0x03,0x3C,
-0x78,0xE8,0x52,0x24,
-0x02,0x80,0x02,0x3C,
-0x28,0x00,0xB4,0xAF,
-0x24,0x00,0xB3,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x2C,0x00,0xBF,0xAF,
-0x04,0xE8,0x73,0x24,
-0x30,0x1F,0x50,0x24,
-0x21,0x88,0x00,0x00,
-0x02,0x80,0x14,0x3C,
-0xDD,0x59,0x00,0x0C,
-0x21,0x20,0x20,0x02,
-0x1C,0x24,0x05,0x8E,
-0x6C,0x00,0x66,0x8E,
-0xE4,0xE7,0x82,0x26,
-0x6C,0x00,0x43,0x8E,
-0x1B,0x00,0x44,0x90,
-0xFF,0xF1,0x02,0x24,
-0x21,0x18,0x66,0x00,
-0x24,0x28,0xA2,0x00,
-0x00,0x21,0x04,0x00,
-0x42,0x18,0x03,0x00,
-0x00,0x02,0xA5,0x34,
-0xE8,0x23,0x03,0xAE,
-0x0C,0x24,0x04,0xAE,
-0x1C,0x24,0x05,0xAE,
-0x10,0x24,0x04,0xAE,
-0x21,0x30,0x00,0x00,
-0x21,0x10,0x06,0x02,
-0x01,0x00,0xC6,0x24,
-0x1D,0x00,0xC3,0x28,
-0x3D,0x24,0x40,0xA0,
-0x20,0x24,0x40,0xA0,
-0xFA,0xFF,0x60,0x14,
-0x5A,0x24,0x40,0xA0,
-0x01,0x00,0x31,0x26,
-0x20,0x00,0x22,0x2A,
-0x78,0x24,0x00,0xAE,
-0xE3,0xFF,0x40,0x14,
-0x94,0x00,0x10,0x26,
-0x02,0x80,0x02,0x3C,
-0x02,0x80,0x03,0x3C,
-0x30,0x1F,0x4B,0x24,
-0x02,0x80,0x02,0x3C,
-0x78,0xE8,0x6F,0x24,
-0x04,0xE8,0x4D,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xE4,0xE7,0x6E,0x24,
-0xC4,0xE7,0x4C,0x24,
-0x21,0x88,0x00,0x00,
-0x80,0x18,0x11,0x00,
-0x21,0x20,0x6D,0x00,
-0x21,0x10,0x6F,0x00,
-0x21,0x28,0x2E,0x02,
-0x21,0x30,0x2C,0x02,
-0x00,0x00,0x88,0x8C,
-0x00,0x00,0xA9,0x90,
-0x00,0x00,0xC7,0x90,
-0x00,0x00,0x4A,0x8C,
-0x21,0x10,0x2B,0x02,
-0x01,0x00,0x31,0x26,
-0x21,0x18,0x6B,0x00,
-0x1D,0x00,0x24,0x2A,
-0x60,0x05,0x68,0xAC,
-0x3E,0x05,0x47,0xA0,
-0xD4,0x05,0x6A,0xAC,
-0xEF,0xFF,0x80,0x14,
-0x04,0x05,0x49,0xA0,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x4A,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xA0,0xE6,0x6B,0x24,
-0x40,0xE5,0x4C,0x24,
-0x21,0x88,0x00,0x00,
-0x21,0x48,0x00,0x00,
-0x21,0x30,0x00,0x00,
-0x21,0x40,0x2A,0x01,
-0x21,0x38,0x2B,0x01,
-0x21,0x10,0xE6,0x00,
-0x91,0x00,0x44,0x90,
-0x00,0x00,0x45,0x90,
-0x21,0x18,0x06,0x01,
-0x01,0x00,0xC6,0x24,
-0x05,0x00,0xC2,0x28,
-0x39,0x04,0x64,0xA0,
-0xF8,0xFF,0x40,0x14,
-0xA8,0x03,0x65,0xA0,
-0x21,0x10,0x2C,0x02,
-0x1D,0x00,0x44,0x90,
-0x00,0x00,0x45,0x90,
-0x21,0x18,0x2A,0x02,
-0x01,0x00,0x31,0x26,
-0x1D,0x00,0x22,0x2A,
-0xE7,0x04,0x64,0xA0,
-0xCA,0x04,0x65,0xA0,
-0xEB,0xFF,0x40,0x14,
-0x05,0x00,0x29,0x25,
-0x52,0x00,0x02,0x24,
-0x10,0x00,0xA2,0xA3,
-0x41,0x00,0x03,0x24,
-0x4D,0x00,0x02,0x24,
-0x02,0x80,0x07,0x3C,
-0x64,0xF3,0xE7,0x24,
-0x11,0x00,0xA3,0xA3,
-0x12,0x00,0xA2,0xA3,
-0xE8,0x03,0x03,0x24,
-0x01,0x00,0x02,0x24,
-0x01,0x80,0x06,0x3C,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0xE0,0x00,
-0xDC,0x93,0xC6,0x24,
-0x0C,0x00,0xE3,0xAC,
-0x14,0x00,0xE2,0xA0,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x2C,0x00,0xBF,0x8F,
-0x28,0x00,0xB4,0x8F,
-0x24,0x00,0xB3,0x8F,
-0x20,0x00,0xB2,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x30,0x00,0xBD,0x27,
-0x90,0xFF,0xBD,0x27,
-0x48,0x00,0xB0,0xAF,
-0x25,0xB0,0x10,0x3C,
-0x6C,0x00,0xBF,0xAF,
-0x68,0x00,0xBE,0xAF,
-0x64,0x00,0xB7,0xAF,
-0x58,0x00,0xB4,0xAF,
-0x54,0x00,0xB3,0xAF,
-0x50,0x00,0xB2,0xAF,
-0x4C,0x00,0xB1,0xAF,
-0x60,0x00,0xB6,0xAF,
-0x5C,0x00,0xB5,0xAF,
-0xE0,0x0E,0x02,0x36,
-0x21,0x20,0x40,0x00,
-0x00,0x00,0x42,0x8C,
-0xDC,0x0E,0x12,0x36,
-0x70,0x0E,0x13,0x36,
-0x10,0x00,0xA2,0xAF,
-0x00,0x00,0x42,0x8E,
-0x78,0x0E,0x1E,0x36,
-0x7C,0x0E,0x14,0x36,
-0x14,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8E,
-0x25,0xB0,0x02,0x3C,
-0x74,0x0E,0x42,0x34,
-0x18,0x00,0xA3,0xAF,
-0x00,0x00,0x42,0x8C,
-0xD4,0x0E,0x10,0x36,
-0xED,0x3F,0x11,0x3C,
-0x1C,0x00,0xA2,0xAF,
-0x00,0x00,0xC3,0x8F,
-0xFB,0x92,0x25,0x36,
-0x25,0xB0,0x17,0x3C,
-0x20,0x00,0xA3,0xAF,
-0x00,0x00,0x82,0x8E,
-0x25,0xB0,0x03,0x3C,
-0x80,0x0E,0x63,0x34,
-0x24,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x25,0xB0,0x02,0x3C,
-0x84,0x0E,0x42,0x34,
-0x28,0x00,0xA3,0xAF,
-0x00,0x00,0x42,0x8C,
-0x25,0xB0,0x03,0x3C,
-0x88,0x0E,0x63,0x34,
-0x2C,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x25,0xB0,0x02,0x3C,
-0x8C,0x0E,0x42,0x34,
-0x30,0x00,0xA3,0xAF,
-0x00,0x00,0x42,0x8C,
-0x25,0xB0,0x03,0x3C,
-0xD0,0x0E,0x63,0x34,
-0x34,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x00,0x00,0x00,0x00,
-0x38,0x00,0xA3,0xAF,
-0x00,0x00,0x02,0x8E,
-0x25,0xB0,0x03,0x3C,
-0xD8,0x0E,0x63,0x34,
-0x3C,0x00,0xA2,0xAF,
-0x00,0x00,0x63,0x8C,
-0x02,0x5C,0x00,0x0C,
-0x40,0x00,0xA3,0xAF,
-0x21,0x20,0x40,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0x60,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x05,0x3C,
-0xC0,0xED,0xA5,0x24,
-0x00,0x00,0xA4,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x13,0x3C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0x20,0xC0,0x03,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0x20,0x80,0x02,
-0x02,0x80,0x02,0x3C,
-0xC4,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0xA0,0x00,0x12,0x3C,
-0x02,0x80,0x03,0x3C,
-0xC8,0xED,0x63,0x24,
-0x00,0x00,0x64,0x8C,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x05,0x3C,
-0xCC,0xED,0xA5,0x24,
-0x00,0x00,0xA4,0x8C,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x02,0x3C,
-0xD0,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x03,0x3C,
-0xD4,0xED,0x63,0x24,
-0x00,0x00,0x64,0x8C,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x21,0x20,0x00,0x02,
-0x02,0x5C,0x00,0x0C,
-0xFB,0x92,0x25,0x36,
-0x02,0x80,0x05,0x3C,
-0xD8,0xED,0xA5,0x24,
-0x00,0x00,0xA4,0x8C,
-0xFB,0x92,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0x80,0x00,0x00,
-0x14,0x02,0x11,0x3C,
-0x20,0x08,0xE4,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x65,0x36,
-0x28,0x08,0xE4,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x65,0x36,
-0x30,0x54,0x45,0x36,
-0x02,0x5C,0x00,0x0C,
-0x04,0x0C,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x08,0x00,0x05,0x3C,
-0xE4,0x00,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x08,0x0C,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x80,0x80,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x28,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x02,0x01,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x40,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x16,0x68,0x05,0x3C,
-0xC2,0x04,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x44,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0xD1,0x28,0x05,0x24,
-0x02,0x5C,0x00,0x0C,
-0x4C,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x02,0x01,0x25,0x36,
-0x02,0x5C,0x00,0x0C,
-0x60,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x16,0x28,0x05,0x3C,
-0x05,0x0D,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x64,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x00,0xFB,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x00,0xF8,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x25,0x22,0x00,0x0C,
-0x02,0x00,0x04,0x24,
-0x00,0x02,0x05,0x3C,
-0xD1,0x28,0xA5,0x34,
-0x02,0x5C,0x00,0x0C,
-0x6C,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x00,0xFB,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x00,0xF8,0x05,0x3C,
-0x02,0x5C,0x00,0x0C,
-0x48,0x0E,0xE4,0x36,
-0x25,0x22,0x00,0x0C,
-0x02,0x00,0x04,0x24,
-0x33,0x54,0x45,0x36,
-0x02,0x5C,0x00,0x0C,
-0x04,0x0C,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0xE4,0x00,0x05,0x24,
-0x02,0x5C,0x00,0x0C,
-0x08,0x0C,0xE4,0x36,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x28,0x0E,0xE4,0x36,
-0x02,0x5C,0x00,0x0C,
-0x21,0x28,0x00,0x00,
-0x20,0x08,0xE4,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x05,0x3C,
-0x28,0x08,0xE4,0x36,
-0x02,0x5C,0x00,0x0C,
-0x00,0x01,0x05,0x3C,
-0x25,0xB0,0x02,0x3C,
-0xAC,0x0E,0x42,0x34,
-0x00,0x00,0x5E,0x8C,
-0x00,0xD8,0x02,0x3C,
-0x24,0x10,0xC2,0x03,
-0x37,0x00,0x40,0x10,
-0x01,0x00,0x10,0x26,
-0x0A,0x00,0x02,0x2E,
-0x97,0xFF,0x40,0x14,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xA5,0x8F,
-0x25,0xB0,0x10,0x3C,
-0x02,0x5C,0x00,0x0C,
-0xE0,0x0E,0x04,0x36,
-0x14,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0xDC,0x0E,0x04,0x36,
-0x18,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x70,0x0E,0x04,0x36,
-0x1C,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x74,0x0E,0x04,0x36,
-0x20,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x78,0x0E,0x04,0x36,
-0x24,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x7C,0x0E,0x04,0x36,
-0x28,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x80,0x0E,0x04,0x36,
-0x2C,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x84,0x0E,0x04,0x36,
-0x30,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x88,0x0E,0x04,0x36,
-0x34,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0x8C,0x0E,0x04,0x36,
-0x38,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0xD0,0x0E,0x04,0x36,
-0x3C,0x00,0xA5,0x8F,
-0x02,0x5C,0x00,0x0C,
-0xD4,0x0E,0x04,0x36,
-0x40,0x00,0xA5,0x8F,
-0x88,0x0E,0x04,0x36,
-0x6C,0x00,0xBF,0x8F,
-0x68,0x00,0xBE,0x8F,
-0x64,0x00,0xB7,0x8F,
-0x60,0x00,0xB6,0x8F,
-0x5C,0x00,0xB5,0x8F,
-0x58,0x00,0xB4,0x8F,
-0x54,0x00,0xB3,0x8F,
-0x50,0x00,0xB2,0x8F,
-0x4C,0x00,0xB1,0x8F,
-0x48,0x00,0xB0,0x8F,
-0x02,0x5C,0x00,0x08,
-0x70,0x00,0xBD,0x27,
-0x80,0x0C,0xF1,0x36,
-0x94,0x0E,0xE3,0x36,
-0x00,0x00,0x24,0x8E,
-0x00,0x00,0x62,0x8C,
-0xFF,0x03,0x03,0x3C,
-0xFF,0x03,0x95,0x30,
-0x24,0x10,0x43,0x00,
-0x02,0x14,0x02,0x00,
-0x18,0x00,0x55,0x00,
-0x02,0x80,0x10,0x3C,
-0x30,0x1F,0x10,0x26,
-0x0C,0x00,0x02,0x8E,
-0x00,0xFC,0x12,0x24,
-0x00,0x00,0x3E,0x8E,
-0x24,0x10,0x52,0x00,
-0x21,0x20,0x20,0x02,
-0x24,0x30,0xD2,0x03,
-0xFF,0xFF,0x13,0x3C,
-0xFF,0x03,0x73,0x36,
-0x12,0x18,0x00,0x00,
-0x02,0x1A,0x03,0x00,
-0xFF,0x03,0x63,0x30,
-0x25,0x10,0x43,0x00,
-0xFF,0x03,0x45,0x30,
-0x25,0x28,0xC5,0x00,
-0x02,0x5C,0x00,0x0C,
-0x0C,0x00,0x02,0xAE,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x9C,0x0E,0xE3,0x36,
-0x00,0x00,0x62,0x8C,
-0xFF,0x03,0x03,0x3C,
-0x0C,0x00,0x06,0x8E,
-0x24,0x10,0x43,0x00,
-0x02,0xB4,0x02,0x00,
-0x18,0x00,0xD5,0x02,
-0xF0,0xFF,0x02,0x3C,
-0xFF,0x03,0x42,0x34,
-0x24,0x30,0xC2,0x00,
-0x00,0x00,0x3E,0x8E,
-0xC0,0xFF,0x04,0x3C,
-0xFF,0xFF,0x84,0x34,
-0x24,0x10,0xC4,0x03,
-0x21,0x20,0x20,0x02,
-0xFF,0x0F,0x11,0x3C,
-0xFF,0xFF,0x31,0x36,
-0x12,0x18,0x00,0x00,
-0x02,0x1A,0x03,0x00,
-0xFF,0x03,0x63,0x30,
-0x80,0x1A,0x03,0x00,
-0x25,0x30,0xC3,0x00,
-0x82,0x2A,0x06,0x00,
-0x3F,0x00,0xA5,0x30,
-0x00,0x2C,0x05,0x00,
-0x0C,0x00,0x06,0xAE,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0x45,0x00,
-0x94,0x0C,0xE4,0x36,
-0x00,0x00,0x9E,0x8C,
-0x82,0x29,0x16,0x00,
-0x00,0x2F,0x05,0x00,
-0x24,0x10,0xD1,0x03,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0x45,0x00,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x25,0xB0,0x05,0x3C,
-0xA4,0x0E,0xE3,0x36,
-0x14,0x0C,0xA5,0x34,
-0x00,0x00,0xBE,0x8C,
-0x00,0x00,0x62,0x8C,
-0xFF,0x03,0x05,0x3C,
-0x02,0x80,0x03,0x3C,
-0xDC,0xED,0x63,0x24,
-0x24,0x10,0x45,0x00,
-0x00,0x00,0x64,0x8C,
-0x02,0x14,0x02,0x00,
-0x24,0x18,0xD2,0x03,
-0x25,0xF0,0x62,0x00,
-0x02,0x5C,0x00,0x0C,
-0x21,0x28,0xC0,0x03,
-0x25,0xB0,0x02,0x3C,
-0xAC,0x0E,0x42,0x34,
-0x00,0x00,0x45,0x8C,
-0x3F,0x00,0x03,0x3C,
-0x24,0x10,0xD3,0x03,
-0x24,0x28,0xA3,0x00,
-0x82,0x29,0x05,0x00,
-0x25,0x28,0x45,0x00,
-0x02,0x80,0x02,0x3C,
-0xDC,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0x02,0x5C,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x25,0xB0,0x05,0x3C,
-0xB4,0x0E,0xE3,0x36,
-0x88,0x0C,0xA5,0x34,
-0x00,0x00,0xA4,0x8C,
-0x00,0x00,0x62,0x8C,
-0xFF,0x03,0x03,0x3C,
-0xFF,0x03,0x95,0x30,
-0x24,0x10,0x43,0x00,
-0x02,0x14,0x02,0x00,
-0x18,0x00,0x55,0x00,
-0x0C,0x00,0x06,0x8E,
-0x00,0x00,0xBE,0x8C,
-0x02,0x80,0x02,0x3C,
-0x24,0x30,0xD2,0x00,
-0xE0,0xED,0x42,0x24,
-0x00,0x00,0x44,0x8C,
-0x24,0x10,0xD2,0x03,
-0x12,0x18,0x00,0x00,
-0x02,0x1A,0x03,0x00,
-0xFF,0x03,0x63,0x30,
-0x25,0x30,0xC3,0x00,
-0xFF,0x03,0xC5,0x30,
-0x25,0x28,0x45,0x00,
-0x02,0x5C,0x00,0x0C,
-0x0C,0x00,0x06,0xAE,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0xBC,0x0E,0xE2,0x36,
-0x00,0x00,0x43,0x8C,
-0xFF,0x03,0x05,0x3C,
-0x0C,0x00,0x06,0x8E,
-0x24,0x18,0x65,0x00,
-0x02,0xB4,0x03,0x00,
-0x18,0x00,0xD5,0x02,
-0x25,0xB0,0x04,0x3C,
-0x88,0x0C,0x84,0x34,
-0xF0,0xFF,0x03,0x3C,
-0x00,0x00,0x9E,0x8C,
-0xFF,0x03,0x63,0x34,
-0x24,0x30,0xC3,0x00,
-0xC0,0xFF,0x04,0x3C,
-0x02,0x80,0x05,0x3C,
-0xFF,0xFF,0x84,0x34,
-0xE0,0xED,0xA5,0x24,
-0x24,0xF0,0xC4,0x03,
-0x00,0x00,0xA4,0x8C,
-0x44,0x00,0xBE,0xAF,
-0x12,0x10,0x00,0x00,
-0x02,0x12,0x02,0x00,
-0xFF,0x03,0x42,0x30,
-0x80,0x12,0x02,0x00,
-0x25,0x30,0xC2,0x00,
-0x82,0x2A,0x06,0x00,
-0x3F,0x00,0xA5,0x30,
-0x00,0x2C,0x05,0x00,
-0x0C,0x00,0x06,0xAE,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0xC5,0x03,
-0x9C,0x0C,0xE4,0x36,
-0x00,0x00,0x9E,0x8C,
-0x82,0x29,0x16,0x00,
-0x00,0x2F,0x05,0x00,
-0x24,0x88,0xD1,0x03,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0x25,0x02,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x25,0xB0,0x02,0x3C,
-0xC4,0x0E,0xE3,0x36,
-0x1C,0x0C,0x42,0x34,
-0x00,0x00,0x5E,0x8C,
-0x00,0x00,0x62,0x8C,
-0xFF,0x03,0x05,0x3C,
-0x02,0x80,0x03,0x3C,
-0xE4,0xED,0x63,0x24,
-0x24,0x10,0x45,0x00,
-0x00,0x00,0x64,0x8C,
-0x02,0x14,0x02,0x00,
-0x24,0x90,0xD2,0x03,
-0x25,0xF0,0x42,0x02,
-0x02,0x5C,0x00,0x0C,
-0x21,0x28,0xC0,0x03,
-0xCC,0x0E,0xE2,0x36,
-0x00,0x00,0x45,0x8C,
-0x02,0x80,0x02,0x3C,
-0xE4,0xED,0x42,0x24,
-0x3F,0x00,0x03,0x3C,
-0x00,0x00,0x44,0x8C,
-0x24,0x28,0xA3,0x00,
-0x24,0x98,0xD3,0x03,
-0x82,0x29,0x05,0x00,
-0x02,0x5C,0x00,0x0C,
-0x25,0x28,0x65,0x02,
-0x54,0x22,0x00,0x0C,
-0x05,0x00,0x04,0x24,
-0x5C,0x6D,0x00,0x08,
-0x00,0x00,0x00,0x00,
-0xE0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x42,0x00,0x03,0x24,
-0x10,0x00,0xA3,0xA3,
-0xF1,0x3A,0x40,0xA0,
-0x4E,0x00,0x03,0x24,
-0x43,0x00,0x02,0x24,
-0x02,0x80,0x07,0x3C,
-0x9C,0xF3,0xE7,0x24,
-0x11,0x00,0xA2,0xA3,
-0x12,0x00,0xA3,0xA3,
-0xD0,0x07,0x02,0x24,
-0x01,0x00,0x03,0x24,
-0x01,0x80,0x06,0x3C,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0xE0,0x00,
-0xDC,0xAC,0xC6,0x24,
-0x0C,0x00,0xE2,0xAC,
-0x14,0x00,0xE3,0xA0,
-0x18,0x00,0xBF,0xAF,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x48,0xFD,0xBD,0x27,
-0xE8,0xED,0x46,0x24,
-0x02,0x80,0x03,0x3C,
-0xB0,0x02,0xB2,0xAF,
-0xAC,0x02,0xB1,0xAF,
-0xA8,0x02,0xB0,0xAF,
-0x33,0x1F,0x60,0xA0,
-0x21,0x38,0xA0,0x03,
-0x90,0x00,0xC8,0x24,
-0x00,0x00,0xC2,0x8C,
-0x04,0x00,0xC3,0x8C,
-0x08,0x00,0xC4,0x8C,
-0x0C,0x00,0xC5,0x8C,
-0x10,0x00,0xC6,0x24,
-0x00,0x00,0xE2,0xAC,
-0x04,0x00,0xE3,0xAC,
-0x08,0x00,0xE4,0xAC,
-0x0C,0x00,0xE5,0xAC,
-0xF6,0xFF,0xC8,0x14,
-0x10,0x00,0xE7,0x24,
-0x00,0x00,0xC3,0x8C,
-0x02,0x80,0x02,0x3C,
-0x7C,0xEE,0x58,0x24,
-0x00,0x00,0xE3,0xAC,
-0x98,0x00,0xB9,0x27,
-0x00,0x01,0x12,0x27,
-0x01,0x00,0x02,0x93,
-0x05,0x00,0x03,0x93,
-0x09,0x00,0x04,0x93,
-0x0D,0x00,0x05,0x93,
-0x00,0x00,0x11,0x93,
-0x02,0x00,0x0D,0x93,
-0x04,0x00,0x10,0x93,
-0x06,0x00,0x0C,0x93,
-0x08,0x00,0x0F,0x93,
-0x0A,0x00,0x07,0x93,
-0x0C,0x00,0x0E,0x93,
-0x0E,0x00,0x06,0x93,
-0x03,0x00,0x08,0x93,
-0x07,0x00,0x09,0x93,
-0x0B,0x00,0x0A,0x93,
-0x0F,0x00,0x0B,0x93,
-0x00,0x12,0x02,0x00,
-0x00,0x1A,0x03,0x00,
-0x00,0x22,0x04,0x00,
-0x00,0x2A,0x05,0x00,
-0x25,0x10,0x51,0x00,
-0x25,0x18,0x70,0x00,
-0x25,0x20,0x8F,0x00,
-0x25,0x28,0xAE,0x00,
-0x00,0x6C,0x0D,0x00,
-0x00,0x64,0x0C,0x00,
-0x00,0x3C,0x07,0x00,
-0x00,0x34,0x06,0x00,
-0x25,0x68,0xA2,0x01,
-0x25,0x60,0x83,0x01,
-0x25,0x38,0xE4,0x00,
-0x25,0x30,0xC5,0x00,
-0x00,0x46,0x08,0x00,
-0x00,0x4E,0x09,0x00,
-0x00,0x56,0x0A,0x00,
-0x00,0x5E,0x0B,0x00,
-0x25,0x40,0x0D,0x01,
-0x25,0x48,0x2C,0x01,
-0x25,0x50,0x47,0x01,
-0x25,0x58,0x66,0x01,
-0x10,0x00,0x18,0x27,
-0x00,0x00,0x28,0xAF,
-0x04,0x00,0x29,0xAF,
-0x08,0x00,0x2A,0xAF,
-0x0C,0x00,0x2B,0xAF,
-0xD2,0xFF,0x12,0x17,
-0x10,0x00,0x39,0x27,
-0x01,0x00,0x02,0x93,
-0x05,0x00,0x03,0x93,
-0x00,0x00,0x09,0x93,
-0x02,0x00,0x04,0x93,
-0x04,0x00,0x08,0x93,
-0x06,0x00,0x05,0x93,
-0x07,0x00,0x06,0x93,
-0x03,0x00,0x07,0x93,
-0x00,0x12,0x02,0x00,
-0x00,0x1A,0x03,0x00,
-0x25,0x10,0x49,0x00,
-0x25,0x18,0x68,0x00,
-0x00,0x24,0x04,0x00,
-0x00,0x2C,0x05,0x00,
-0x25,0x20,0x82,0x00,
-0x25,0x28,0xA3,0x00,
-0x00,0x3E,0x07,0x00,
-0x00,0x36,0x06,0x00,
-0x02,0x80,0x02,0x3C,
-0x25,0x38,0xE4,0x00,
-0x25,0x30,0xC5,0x00,
-0x84,0xEF,0x58,0x24,
-0x04,0x00,0x26,0xAF,
-0x00,0x00,0x27,0xAF,
-0x00,0x01,0x12,0x27,
-0xA0,0x01,0xB9,0x27,
-0x01,0x00,0x02,0x93,
-0x05,0x00,0x03,0x93,
-0x09,0x00,0x04,0x93,
-0x0D,0x00,0x05,0x93,
-0x00,0x00,0x11,0x93,
-0x02,0x00,0x0D,0x93,
-0x04,0x00,0x10,0x93,
-0x06,0x00,0x0C,0x93,
-0x08,0x00,0x0F,0x93,
-0x0A,0x00,0x07,0x93,
-0x0C,0x00,0x0E,0x93,
-0x0E,0x00,0x06,0x93,
-0x03,0x00,0x08,0x93,
-0x07,0x00,0x09,0x93,
-0x0B,0x00,0x0A,0x93,
-0x0F,0x00,0x0B,0x93,
-0x00,0x12,0x02,0x00,
-0x00,0x1A,0x03,0x00,
-0x00,0x22,0x04,0x00,
-0x00,0x2A,0x05,0x00,
-0x25,0x10,0x51,0x00,
-0x25,0x18,0x70,0x00,
-0x25,0x20,0x8F,0x00,
-0x25,0x28,0xAE,0x00,
-0x00,0x6C,0x0D,0x00,
-0x00,0x64,0x0C,0x00,
-0x00,0x3C,0x07,0x00,
-0x00,0x34,0x06,0x00,
-0x25,0x68,0xA2,0x01,
-0x25,0x60,0x83,0x01,
-0x25,0x38,0xE4,0x00,
-0x25,0x30,0xC5,0x00,
-0x00,0x46,0x08,0x00,
-0x00,0x4E,0x09,0x00,
-0x00,0x56,0x0A,0x00,
-0x00,0x5E,0x0B,0x00,
-0x25,0x40,0x0D,0x01,
-0x25,0x48,0x2C,0x01,
-0x25,0x50,0x47,0x01,
-0x25,0x58,0x66,0x01,
-0x10,0x00,0x18,0x27,
-0x00,0x00,0x28,0xAF,
-0x04,0x00,0x29,0xAF,
-0x08,0x00,0x2A,0xAF,
-0x0C,0x00,0x2B,0xAF,
-0xD2,0xFF,0x12,0x17,
-0x10,0x00,0x39,0x27,
-0x01,0x00,0x02,0x93,
-0x05,0x00,0x03,0x93,
-0x00,0x00,0x09,0x93,
-0x02,0x00,0x04,0x93,
-0x04,0x00,0x08,0x93,
-0x06,0x00,0x05,0x93,
-0x07,0x00,0x06,0x93,
-0x03,0x00,0x07,0x93,
-0x00,0x12,0x02,0x00,
-0x00,0x1A,0x03,0x00,
-0x25,0x10,0x49,0x00,
-0x25,0x18,0x68,0x00,
-0x00,0x24,0x04,0x00,
-0x00,0x2C,0x05,0x00,
-0x25,0x20,0x82,0x00,
-0x25,0x28,0xA3,0x00,
-0x00,0x3E,0x07,0x00,
-0x00,0x36,0x06,0x00,
-0x25,0x30,0xC5,0x00,
-0x25,0x38,0xE4,0x00,
-0x02,0x80,0x02,0x3C,
-0x04,0x00,0x26,0xAF,
-0x00,0x00,0x27,0xAF,
-0x30,0x1F,0x46,0x24,
-0x21,0x50,0x00,0x00,
-0x80,0x20,0x0A,0x00,
-0x21,0x10,0x9D,0x00,
-0x00,0x00,0x45,0x8C,
-0x01,0x00,0x43,0x25,
-0xFF,0x00,0x6A,0x30,
-0x21,0x20,0x86,0x00,
-0x25,0x00,0x42,0x2D,
-0xF8,0xFF,0x40,0x14,
-0x18,0x00,0x85,0xAC,
-0x02,0x80,0x02,0x3C,
-0x30,0x1F,0x4B,0x24,
-0x21,0x50,0x00,0x00,
-0xC0,0x10,0x0A,0x00,
-0x21,0x48,0x5D,0x00,
-0x21,0x38,0x00,0x00,
-0x21,0x40,0x4B,0x00,
-0x21,0x10,0x27,0x01,
-0xA0,0x01,0x46,0x90,
-0x98,0x00,0x45,0x90,
-0x01,0x00,0xE4,0x24,
-0x21,0x18,0x07,0x01,
-0xFF,0x00,0x87,0x30,
-0x08,0x00,0xE2,0x2C,
-0xB4,0x01,0x66,0xA0,
-0xF7,0xFF,0x40,0x14,
-0xAC,0x00,0x65,0xA0,
-0x01,0x00,0x42,0x25,
-0xFF,0x00,0x4A,0x30,
-0x21,0x00,0x43,0x2D,
-0xEF,0xFF,0x60,0x14,
-0xC0,0x10,0x0A,0x00,
-0x08,0x00,0x64,0x8D,
-0xFF,0x7F,0x07,0x3C,
-0xFF,0xFF,0xE7,0x34,
-0xC0,0xFF,0x02,0x24,
-0x24,0x20,0x87,0x00,
-0x24,0x20,0x82,0x00,
-0x0C,0x00,0x84,0x34,
-0xFF,0xC0,0x02,0x24,
-0x24,0x20,0x82,0x00,
-0xC0,0xFF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x00,0x18,0x84,0x34,
-0xBF,0xFF,0x03,0x3C,
-0x24,0x20,0x82,0x00,
-0xFF,0xFF,0x63,0x34,
-0x7F,0xFF,0x02,0x3C,
-0x24,0x20,0x83,0x00,
-0xFF,0xFF,0x42,0x34,
-0x24,0x20,0x82,0x00,
-0x0C,0x00,0x65,0x8D,
-0x7F,0xFF,0x03,0x24,
-0x40,0x40,0x84,0x34,
-0xFF,0xFF,0x02,0x3C,
-0x24,0x20,0x83,0x00,
-0xFF,0x7F,0x42,0x34,
-0xFF,0xBF,0x03,0x3C,
-0x10,0x00,0x66,0x8D,
-0x24,0x20,0x82,0x00,
-0xFF,0xFF,0x63,0x34,
-0xFF,0x9F,0x02,0x3C,
-0x24,0x28,0xA3,0x00,
-0xFF,0xFF,0x42,0x34,
-0xFF,0x3F,0x03,0x3C,
-0x24,0x20,0x82,0x00,
-0xFF,0xFF,0x63,0x34,
-0x12,0x00,0x02,0x24,
-0xB0,0x02,0xB2,0x8F,
-0xAC,0x02,0xB1,0x8F,
-0xA8,0x02,0xB0,0x8F,
-0x24,0x30,0xC3,0x00,
-0xC7,0x02,0x62,0xA1,
-0x1F,0x00,0x03,0x24,
-0x01,0x00,0x02,0x24,
-0x24,0x28,0xA7,0x00,
-0xBE,0x02,0x63,0xA1,
-0xC0,0x02,0x62,0xA1,
-0xFF,0x00,0x03,0x24,
-0xFF,0xFF,0x02,0x24,
-0xB8,0x02,0xBD,0x27,
-0x08,0x00,0x64,0xAD,
-0x10,0x00,0x66,0xAD,
-0x0C,0x00,0x65,0xAD,
-0xC2,0x02,0x62,0xA1,
-0xC4,0x02,0x63,0xA5,
-0xBF,0x02,0x60,0xA1,
-0x08,0x00,0xE0,0x03,
-0xC6,0x02,0x60,0xA1,
-0x02,0x80,0x0B,0x3C,
-0x30,0x1F,0x67,0x25,
-0xE0,0xFF,0xBD,0x27,
-0xE6,0x02,0xE0,0xA0,
-0x18,0x00,0xBF,0xAF,
-0xE4,0x02,0xE8,0x8C,
-0xFF,0xCF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x30,0x1F,0x69,0x8D,
-0x24,0x40,0x02,0x01,
-0xFF,0xBF,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0xF0,0xFF,0x03,0x24,
-0x24,0x40,0x02,0x01,
-0xFF,0x7F,0x02,0x3C,
-0x24,0x48,0x23,0x01,
-0xFF,0xFF,0x42,0x34,
-0xFF,0xF0,0x03,0x24,
-0x24,0x48,0x23,0x01,
-0x24,0x40,0x02,0x01,
-0x20,0x00,0x03,0x24,
-0x0A,0x00,0x02,0x24,
-0x30,0x1F,0x69,0xAD,
-0xD2,0x02,0xE2,0xA0,
-0xD7,0x02,0xE3,0xA0,
-0x20,0x00,0x02,0x24,
-0x00,0x01,0x03,0x24,
-0xC8,0x02,0xE2,0xA4,
-0xCA,0x02,0xE3,0xA4,
-0x00,0x02,0x02,0x24,
-0x49,0x00,0x03,0x24,
-0x02,0x80,0x0A,0x3C,
-0xE4,0x02,0xE8,0xAC,
-0x80,0xF3,0x4A,0x25,
-0xFF,0xFF,0x0D,0x34,
-0x3E,0x00,0x0E,0x24,
-0x1C,0x00,0x0F,0x24,
-0x01,0x00,0x0C,0x24,
-0x11,0x00,0xA3,0xA3,
-0xCC,0x02,0xE2,0xA4,
-0xD0,0x07,0x03,0x24,
-0x44,0x00,0x02,0x24,
-0x01,0x80,0x06,0x3C,
-0x10,0x00,0xA2,0xA3,
-0x10,0x00,0xA5,0x27,
-0x47,0x00,0x02,0x24,
-0x21,0x20,0x40,0x01,
-0x94,0xAD,0xC6,0x24,
-0x04,0x00,0xED,0xAC,
-0xD0,0x02,0xEE,0xA0,
-0xD1,0x02,0xEF,0xA0,
-0x02,0x00,0xEC,0xA0,
-0x0C,0x00,0x43,0xAD,
-0x14,0x00,0x4C,0xA1,
-0x80,0x36,0xED,0xAC,
-0xCE,0x02,0xEE,0xA0,
-0xCF,0x02,0xEF,0xA0,
-0xD6,0x02,0xE0,0xA0,
-0xD4,0x02,0xE0,0xA0,
-0x12,0x00,0xA2,0xA3,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x50,0x00,0x03,0x24,
-0x10,0x00,0xA3,0xA3,
-0x16,0x3D,0x40,0xA0,
-0x41,0x00,0x03,0x24,
-0x52,0x00,0x02,0x24,
-0x02,0x80,0x07,0x3C,
-0x0C,0xF4,0xE7,0x24,
-0x11,0x00,0xA2,0xA3,
-0x12,0x00,0xA3,0xA3,
-0xD0,0x07,0x02,0x24,
-0x01,0x00,0x03,0x24,
-0x02,0x80,0x06,0x3C,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0xE0,0x00,
-0x2C,0x80,0xC6,0x24,
-0x0C,0x00,0xE2,0xAC,
-0x14,0x00,0xE3,0xA0,
-0x18,0x00,0xBF,0xAF,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0x02,0x80,0x09,0x3C,
-0x30,0x1F,0x23,0x8D,
-0xFF,0xFF,0x02,0x24,
-0xFF,0x00,0x4B,0x30,
-0x0F,0xFF,0x02,0x24,
-0x24,0x18,0x62,0x00,
-0xFF,0xFF,0x02,0x3C,
-0xFF,0x0F,0x42,0x34,
-0x24,0x18,0x62,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x30,0x1F,0x23,0xAD,
-0x47,0x00,0x02,0x24,
-0x3B,0x00,0x03,0x24,
-0x02,0x80,0x08,0x3C,
-0x28,0xF4,0x08,0x25,
-0x18,0x00,0xB0,0xAF,
-0x10,0x00,0xA2,0xA3,
-0x30,0x1F,0x30,0x25,
-0x11,0x00,0xA3,0xA3,
-0xD0,0x07,0x02,0x24,
-0x01,0x00,0x03,0x24,
-0x01,0x00,0x07,0x3C,
-0x01,0x80,0x06,0x3C,
-0x04,0x03,0x0B,0xAE,
-0x1C,0x00,0xB1,0xAF,
-0x56,0x30,0xEA,0x34,
-0x43,0x00,0x11,0x24,
-0xF4,0x98,0xE7,0x34,
-0x10,0x00,0xA5,0x27,
-0x0C,0x00,0x02,0xAD,
-0x14,0x00,0x03,0xA1,
-0x21,0x20,0x00,0x01,
-0x1C,0xB9,0xC6,0x24,
-0x20,0x00,0xBF,0xAF,
-0x12,0x00,0xB1,0xA3,
-0x0C,0x03,0x07,0xAE,
-0x10,0x03,0x0A,0xAE,
-0x13,0x00,0xA0,0xA3,
-0x08,0x03,0x00,0xAE,
-0x14,0x03,0x00,0xAE,
-0xA2,0x23,0x00,0x0C,
-0x18,0x03,0x00,0xAE,
-0x1E,0x00,0x02,0x24,
-0x21,0x03,0x02,0xA2,
-0x4A,0x00,0x03,0x24,
-0x45,0x00,0x02,0x24,
-0x1C,0x03,0x03,0xA2,
-0x1D,0x03,0x02,0xA2,
-0x23,0x00,0x03,0x24,
-0x3E,0x00,0x02,0x24,
-0x1E,0x03,0x11,0xA2,
-0x1F,0x03,0x02,0xA2,
-0x20,0x03,0x03,0xA2,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x3B,0x00,0x02,0x24,
-0x43,0x00,0x03,0x24,
-0x10,0x00,0xA2,0xA3,
-0x11,0x00,0xA3,0xA3,
-0x36,0x00,0x02,0x24,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x07,0x3C,
-0x44,0xF4,0xE7,0x24,
-0x12,0x00,0xA2,0xA3,
-0x03,0x22,0x60,0xA0,
-0xD0,0x07,0x02,0x24,
-0x01,0x00,0x03,0x24,
-0x01,0x80,0x06,0x3C,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0xE0,0x00,
-0x50,0xBD,0xC6,0x24,
-0x0C,0x00,0xE2,0xAC,
-0x14,0x00,0xE3,0xA0,
-0x18,0x00,0xBF,0xAF,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xE0,0xFF,0xBD,0x27,
-0x02,0x80,0x02,0x3C,
-0x52,0x00,0x03,0x24,
-0x10,0x00,0xA3,0xA3,
-0xB8,0x55,0x40,0xA4,
-0x54,0x00,0x03,0x24,
-0x53,0x00,0x02,0x24,
-0x02,0x80,0x07,0x3C,
-0x7C,0xF4,0xE7,0x24,
-0x11,0x00,0xA2,0xA3,
-0x12,0x00,0xA3,0xA3,
-0xF4,0x01,0x02,0x24,
-0x01,0x00,0x03,0x24,
-0x02,0x80,0x06,0x3C,
-0x10,0x00,0xA5,0x27,
-0x21,0x20,0xE0,0x00,
-0x70,0x81,0xC6,0x24,
-0x0C,0x00,0xE2,0xAC,
-0x14,0x00,0xE3,0xA0,
-0x18,0x00,0xBF,0xAF,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x18,0x00,0xBF,0x8F,
-0x00,0x00,0x00,0x00,
-0x08,0x00,0xE0,0x03,
-0x20,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x02,0x80,0x03,0x3C,
-0x20,0x00,0xBF,0xAF,
-0x1C,0x00,0xB1,0xAF,
-0x18,0x00,0xB0,0xAF,
-0x58,0xE9,0x62,0x24,
-0x58,0xE9,0x67,0x94,
-0x02,0x00,0x48,0x90,
-0x02,0x80,0x02,0x3C,
-0xD8,0x5E,0x42,0x24,
-0x02,0x00,0x11,0x24,
-0x01,0x80,0x06,0x3C,
-0x21,0x20,0x40,0x00,
-0x14,0x00,0x51,0xA0,
-0x10,0x00,0xA5,0x27,
-0x6C,0xCE,0xC6,0x24,
-0x02,0x80,0x10,0x3C,
-0x10,0x00,0xA7,0xA7,
-0x28,0x5F,0x10,0x26,
-0x12,0x00,0xA8,0xA3,
-0xA2,0x23,0x00,0x0C,
-0x13,0x00,0xA0,0xA3,
-0x02,0x80,0x06,0x3C,
-0x21,0x20,0x00,0x02,
-0x10,0x00,0xA5,0x27,
-0x14,0x00,0x11,0xA2,
-0xA2,0x23,0x00,0x0C,
-0x7C,0x82,0xC6,0x24,
-0x02,0x80,0x03,0x3C,
-0xDE,0x5D,0x62,0x90,
-0x02,0x00,0x07,0x24,
-0x0C,0x00,0x04,0x24,
-0x02,0x00,0x42,0x30,
-0x01,0x00,0x42,0x2C,
-0x23,0x38,0xE2,0x00,
-0xE8,0x03,0x02,0x24,
-0x0C,0x00,0x02,0xAE,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xF4,0x5E,0x60,0xA0,
-0xF5,0x5E,0x44,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xF6,0x5E,0x64,0xA0,
-0x0D,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x13,0x5F,0x60,0xA0,
-0x01,0x00,0x06,0x24,
-0x14,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xF8,0x5E,0x66,0xA0,
-0x0F,0x00,0x04,0x24,
-0x15,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0xF7,0x5E,0x66,0xA0,
-0xF9,0x5E,0x44,0xA0,
-0x02,0x80,0x03,0x3C,
-0x08,0x00,0x04,0x24,
-0x02,0x80,0x02,0x3C,
-0xFA,0x5E,0x60,0xA0,
-0x64,0x00,0x05,0x24,
-0x04,0x5F,0x44,0xA4,
-0x02,0x80,0x03,0x3C,
-0x01,0x00,0x02,0x3C,
-0xFC,0x5E,0x65,0xA4,
-0x00,0x90,0x42,0x34,
-0x02,0x80,0x03,0x3C,
-0x00,0x5F,0x62,0xAC,
-0x02,0x80,0x04,0x3C,
-0x02,0x80,0x02,0x3C,
-0x08,0x5F,0x80,0xAC,
-0x02,0x80,0x03,0x3C,
-0x0C,0x5F,0x40,0xA0,
-0x02,0x80,0x02,0x3C,
-0x0E,0x5F,0x60,0xA0,
-0x16,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x44,0x5F,0x67,0xA0,
-0x20,0x00,0xBF,0x8F,
-0x0F,0x5F,0x40,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x1C,0x00,0xB1,0x8F,
-0x18,0x00,0xB0,0x8F,
-0x10,0x5F,0x66,0xA0,
-0x11,0x5F,0x46,0xA0,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x12,0x5F,0x60,0xA0,
-0x21,0x20,0x00,0x00,
-0x18,0x5F,0x40,0xAC,
-0x02,0x80,0x03,0x3C,
-0x02,0x80,0x02,0x3C,
-0x21,0x28,0x00,0x00,
-0x28,0x00,0xBD,0x27,
-0x1C,0x5F,0x60,0xAC,
-0x20,0x5F,0x44,0xAC,
-0x24,0x5F,0x45,0xAC,
-0x08,0x00,0xE0,0x03,
-0x00,0x00,0x00,0x00,
-0xD8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x21,0x80,0x80,0x00,
-0x21,0x98,0xA0,0x00,
-0x21,0x88,0xC0,0x00,
-0x21,0x90,0x00,0x00,
-0x00,0x00,0x04,0x82,
-0x7C,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xFC,0xFF,0x40,0x14,
-0x01,0x00,0x10,0x26,
-0xFF,0xFF,0x10,0x26,
-0x00,0x00,0x04,0x92,
-0x2B,0x00,0x02,0x24,
-0x00,0x1E,0x04,0x00,
-0x03,0x1E,0x03,0x00,
-0x41,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0x02,0x24,
-0x30,0x00,0x22,0x12,
-0x00,0x1E,0x04,0x00,
-0x07,0x00,0x20,0x16,
-0x21,0x18,0x80,0x00,
-0x00,0x1E,0x04,0x00,
-0x03,0x1E,0x03,0x00,
-0x30,0x00,0x02,0x24,
-0x3B,0x00,0x62,0x10,
-0x0A,0x00,0x11,0x24,
-0x21,0x18,0x80,0x00,
-0x00,0x16,0x03,0x00,
-0x03,0x16,0x02,0x00,
-0x1A,0x00,0x40,0x10,
-0xFF,0x00,0x64,0x30,
-0xA9,0xFF,0x82,0x24,
-0x61,0x00,0x83,0x2C,
-0xFF,0x00,0x45,0x30,
-0x09,0x00,0x60,0x10,
-0x41,0x00,0x86,0x2C,
-0xC9,0xFF,0x82,0x24,
-0xFF,0x00,0x45,0x30,
-0x05,0x00,0xC0,0x10,
-0x3A,0x00,0x87,0x2C,
-0xD0,0xFF,0x82,0x24,
-0x02,0x00,0xE0,0x10,
-0xFF,0x00,0x05,0x24,
-0xFF,0x00,0x45,0x30,
-0x2A,0x10,0xB1,0x00,
-0x0A,0x00,0x40,0x10,
-0x18,0x00,0x51,0x02,
-0x01,0x00,0x10,0x26,
-0x12,0x10,0x00,0x00,
-0x2B,0x18,0x52,0x00,
-0x23,0x00,0x60,0x14,
-0x21,0x90,0xA2,0x00,
-0x00,0x00,0x03,0x92,
-0x00,0x00,0x00,0x00,
-0xE8,0xFF,0x60,0x14,
-0xFF,0x00,0x64,0x30,
-0x02,0x00,0x60,0x12,
-0x21,0x10,0x40,0x02,
-0x00,0x00,0x70,0xAE,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x03,0x1E,0x03,0x00,
-0x30,0x00,0x02,0x24,
-0xCE,0xFF,0x62,0x14,
-0x00,0x00,0x00,0x00,
-0x01,0x00,0x03,0x82,
-0x78,0x00,0x02,0x24,
-0x03,0x00,0x62,0x10,
-0x58,0x00,0x02,0x24,
-0xD0,0xFF,0x62,0x14,
-0x21,0x18,0x80,0x00,
-0x02,0x00,0x10,0x26,
-0x00,0x00,0x04,0x92,
-0xC0,0x70,0x00,0x08,
-0x10,0x00,0x11,0x24,
-0x01,0x00,0x10,0x26,
-0x00,0x00,0x04,0x92,
-0xB7,0x70,0x00,0x08,
-0x10,0x00,0x02,0x24,
-0xEC,0x70,0x00,0x08,
-0x08,0x00,0x11,0x24,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xFF,0xFF,0x02,0x24,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x21,0x48,0x80,0x00,
-0x31,0x00,0xC0,0x14,
-0x21,0x50,0x00,0x00,
-0x00,0x00,0x87,0x90,
-0x30,0x00,0x02,0x24,
-0x00,0x1E,0x07,0x00,
-0x03,0x1E,0x03,0x00,
-0x2E,0x00,0x62,0x10,
-0x0A,0x00,0x06,0x24,
-0x02,0x80,0x02,0x3C,
-0x40,0xF2,0x4B,0x24,
-0xFF,0x00,0xE8,0x30,
-0x21,0x10,0x0B,0x01,
-0x00,0x00,0x44,0x90,
-0x00,0x1E,0x07,0x00,
-0x03,0x1E,0x03,0x00,
-0x44,0x00,0x82,0x30,
-0x02,0x00,0x87,0x30,
-0xD0,0xFF,0x63,0x24,
-0x1A,0x00,0x40,0x10,
-0x04,0x00,0x84,0x30,
-0x07,0x00,0x80,0x14,
-0x2B,0x10,0x66,0x00,
-0x21,0x10,0x00,0x01,
-0x02,0x00,0xE0,0x10,
-0xE0,0xFF,0x03,0x25,
-0xFF,0x00,0x62,0x30,
-0xC9,0xFF,0x43,0x24,
-0x2B,0x10,0x66,0x00,
-0x10,0x00,0x40,0x10,
-0x18,0x00,0x46,0x01,
-0x01,0x00,0x29,0x25,
-0x00,0x00,0x27,0x91,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0xE8,0x30,
-0x12,0x10,0x00,0x00,
-0x21,0x50,0x43,0x00,
-0x21,0x10,0x0B,0x01,
-0x00,0x00,0x44,0x90,
-0x00,0x1E,0x07,0x00,
-0x03,0x1E,0x03,0x00,
-0x44,0x00,0x82,0x30,
-0x02,0x00,0x87,0x30,
-0xD0,0xFF,0x63,0x24,
-0xE8,0xFF,0x40,0x14,
-0x04,0x00,0x84,0x30,
-0x02,0x00,0xA0,0x10,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0xA9,0xAC,
-0x08,0x00,0xE0,0x03,
-0x21,0x10,0x40,0x01,
-0x00,0x00,0x87,0x90,
-0x0E,0x71,0x00,0x08,
-0x02,0x80,0x02,0x3C,
-0x01,0x00,0x89,0x24,
-0x00,0x00,0x27,0x91,
-0x78,0x00,0x02,0x24,
-0x00,0x1E,0x07,0x00,
-0x03,0x1E,0x03,0x00,
-0xCD,0xFF,0x62,0x14,
-0x08,0x00,0x06,0x24,
-0x01,0x00,0x22,0x91,
-0x02,0x80,0x03,0x3C,
-0x40,0xF2,0x63,0x24,
-0x21,0x10,0x43,0x00,
-0x00,0x00,0x44,0x90,
-0x00,0x00,0x00,0x00,
-0x44,0x00,0x84,0x30,
-0xC5,0xFF,0x80,0x10,
-0x02,0x80,0x02,0x3C,
-0x01,0x00,0x29,0x25,
-0x00,0x00,0x27,0x91,
-0x0E,0x71,0x00,0x08,
-0x10,0x00,0x06,0x24,
-0xE8,0xFF,0xBD,0x27,
-0x10,0x00,0xBF,0xAF,
-0x00,0x00,0x83,0x80,
-0x2D,0x00,0x02,0x24,
-0x04,0x00,0x62,0x10,
-0x00,0x00,0x00,0x00,
-0x10,0x00,0xBF,0x8F,
-0x04,0x71,0x00,0x08,
-0x18,0x00,0xBD,0x27,
-0x04,0x71,0x00,0x0C,
-0x01,0x00,0x84,0x24,
-0x10,0x00,0xBF,0x8F,
-0x23,0x10,0x02,0x00,
-0x08,0x00,0xE0,0x03,
-0x18,0x00,0xBD,0x27,
-0xD8,0xFF,0xBD,0x27,
-0x1C,0x00,0xB3,0xAF,
-0x18,0x00,0xB2,0xAF,
-0x14,0x00,0xB1,0xAF,
-0x10,0x00,0xB0,0xAF,
-0x20,0x00,0xBF,0xAF,
-0x21,0x80,0x80,0x00,
-0x21,0x90,0xA0,0x00,
-0x21,0x98,0xC0,0x00,
-0x21,0x88,0x00,0x00,
-0x00,0x00,0x04,0x82,
-0x7C,0x55,0x00,0x0C,
-0x00,0x00,0x00,0x00,
-0xFC,0xFF,0x40,0x14,
-0x01,0x00,0x10,0x26,
-0xFF,0xFF,0x10,0x26,
-0x00,0x00,0x03,0x82,
-0x2D,0x00,0x02,0x24,
-0x0F,0x00,0x62,0x10,
-0x21,0x20,0x00,0x02,
-0x21,0x28,0x40,0x02,
-0xA0,0x70,0x00,0x0C,
-0x21,0x30,0x60,0x02,
-0x12,0x00,0x40,0x04,
-0x21,0x18,0x40,0x00,
-0x23,0x10,0x02,0x00,
-0x0A,0x10,0x71,0x00,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x01,0x00,0x10,0x26,
-0x21,0x20,0x00,0x02,
-0x21,0x28,0x40,0x02,
-0xA0,0x70,0x00,0x0C,
-0x21,0x30,0x60,0x02,
-0xFF,0xFF,0x11,0x24,
-0xF0,0xFF,0x41,0x04,
-0x21,0x18,0x40,0x00,
-0xF0,0xFF,0x20,0x16,
-0x00,0x80,0x02,0x3C,
-0x20,0x00,0xBF,0x8F,
-0x1C,0x00,0xB3,0x8F,
-0x18,0x00,0xB2,0x8F,
-0x14,0x00,0xB1,0x8F,
-0x10,0x00,0xB0,0x8F,
-0xFF,0x7F,0x02,0x3C,
-0xFF,0xFF,0x42,0x34,
-0x08,0x00,0xE0,0x03,
-0x28,0x00,0xBD,0x27,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x52,0x54,0x4C,0x38,
-0x37,0x31,0x32,0x20,
-0x46,0x57,0x20,0x76,
-0x65,0x72,0x73,0x69,
-0x6F,0x6E,0x20,0x30,
-0x2E,0x30,0x2E,0x31,
-0x23,0x20,0xE4,0xB8,
-0x89,0x20,0x31,0x30,
-0xE6,0x9C,0x88,0x20,
-0x32,0x38,0x20,0x31,
-0x37,0x3A,0x34,0x31,
-0x3A,0x34,0x37,0x20,
-0x43,0x53,0x54,0x20,
-0x32,0x30,0x30,0x39,
-0x0A,0x00,0x00,0x00,
-0x50,0xC6,0x01,0x80,
-0x48,0x43,0x49,0x20,
-0x74,0x79,0x70,0x65,
-0x3A,0x20,0x25,0x78,
-0x28,0x25,0x78,0x29,
-0x0A,0x00,0x00,0x00,
-0x72,0x66,0x5F,0x63,
-0x6F,0x66,0x69,0x67,
-0x3A,0x20,0x25,0x78,
-0x28,0x25,0x78,0x2C,
-0x20,0x25,0x78,0x2C,
-0x20,0x25,0x78,0x29,
-0x0A,0x00,0x00,0x00,
-0x6D,0x70,0x5F,0x6D,
-0x6F,0x64,0x65,0x3A,
-0x20,0x25,0x78,0x28,
-0x25,0x78,0x29,0x2C,
-0x20,0x49,0x51,0x4B,
-0x3A,0x20,0x25,0x78,
-0x0A,0x00,0x00,0x00,
-0x76,0x63,0x73,0x20,
-0x74,0x79,0x70,0x65,
-0x3A,0x20,0x25,0x78,
-0x28,0x25,0x78,0x29,
-0x0A,0x00,0x00,0x00,
-0x33,0x32,0x6B,0x20,
-0x63,0x61,0x6C,0x69,
-0x62,0x72,0x61,0x3A,
-0x20,0x25,0x64,0x2C,
-0x20,0x33,0x32,0x4B,
-0x20,0x54,0x53,0x46,
-0x3A,0x20,0x25,0x78,
-0x00,0x00,0x00,0x00,
-0x74,0x61,0x72,0x67,
-0x65,0x74,0x20,0x74,
-0x68,0x65,0x72,0x6D,
-0x61,0x6C,0x3A,0x20,
-0x25,0x78,0x0A,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x00,0x7F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x01,0x7F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x02,0x7E,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x03,0x7D,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x04,0x7C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x05,0x7B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x06,0x7A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x07,0x79,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x08,0x78,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x09,0x77,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x0A,0x76,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x0B,0x75,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x0C,0x74,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x0D,0x73,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x0E,0x72,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x0F,0x71,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x10,0x70,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x11,0x6F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x12,0x6F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x13,0x6E,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x14,0x6D,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x15,0x6D,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x16,0x6C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x17,0x6B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x18,0x6A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x19,0x6A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x1A,0x69,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x1B,0x68,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x1C,0x67,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x1D,0x66,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x1E,0x65,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x1F,0x64,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x20,0x63,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x21,0x4C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x22,0x4B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x23,0x4A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x24,0x49,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x25,0x48,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x26,0x47,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x27,0x46,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x28,0x45,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x29,0x44,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x2A,0x2C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x2B,0x2B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x2C,0x2A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x2D,0x29,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x2E,0x28,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x2F,0x27,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x30,0x26,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x31,0x25,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x32,0x24,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x33,0x23,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x34,0x22,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x35,0x09,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x36,0x08,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x37,0x07,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x38,0x06,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x39,0x05,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x3A,0x04,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x3B,0x03,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x3C,0x02,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x3D,0x01,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x3E,0x00,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x3F,0x00,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x40,0x7F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x41,0x7F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x42,0x7E,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x43,0x7D,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x44,0x7C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x45,0x7B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x46,0x7A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x47,0x79,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x48,0x78,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x49,0x77,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x4A,0x76,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x4B,0x75,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x4C,0x74,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x4D,0x73,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x4E,0x72,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x4F,0x71,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x50,0x70,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x51,0x6F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x52,0x6F,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x53,0x6E,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x54,0x6D,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x55,0x6D,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x56,0x6C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x57,0x6B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x58,0x6A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x59,0x6A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x5A,0x69,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x5B,0x68,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x5C,0x67,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x5D,0x66,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x5E,0x65,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x5F,0x64,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x60,0x63,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x61,0x4C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x62,0x4B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x63,0x4A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x64,0x49,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x65,0x48,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x66,0x47,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x67,0x46,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x68,0x45,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x69,0x44,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x6A,0x2C,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x6B,0x2B,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x6C,0x2A,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x6D,0x29,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x6E,0x28,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x6F,0x27,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x70,0x26,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x71,0x25,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x72,0x24,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x73,0x23,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x74,0x22,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x75,0x09,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x76,0x08,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x77,0x07,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x78,0x06,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x79,0x05,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x7A,0x04,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x7B,0x03,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x7C,0x02,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x7D,0x01,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x7E,0x00,
-0x78,0x0C,0x00,0x00,
-0x01,0x00,0x7F,0x00,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x00,0x30,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x01,0x30,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x02,0x30,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x03,0x30,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x04,0x30,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x05,0x34,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x06,0x38,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x07,0x3E,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x08,0x3E,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x09,0x44,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x0A,0x46,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x0B,0x48,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x0C,0x48,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x0D,0x4E,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x0E,0x56,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x0F,0x5A,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x10,0x5E,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x11,0x62,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x12,0x6C,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x13,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x14,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x15,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x16,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x17,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x18,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x19,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x1A,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x1B,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x1C,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x1D,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x1E,0x72,
-0x78,0x0C,0x00,0x00,
-0x1E,0x00,0x1F,0x72,
-0x00,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x06,0x06,0x06,0x04,
-0x04,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x04,0x02,0x02,0x00,
-0x08,0x0E,0x00,0x00,
-0x00,0xFF,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x10,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x0A,0x08,0x08,0x04,
-0x14,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x04,0x02,0x02,0x00,
-0x18,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x0A,0x08,0x08,0x04,
-0x1C,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x04,0x02,0x02,0x00,
-0x00,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x04,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x08,0x0E,0x00,0x00,
-0x00,0xFF,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x10,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x14,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x18,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x1C,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x00,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x04,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x08,0x0E,0x00,0x00,
-0x00,0xFF,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x10,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x14,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x18,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x1C,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x00,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x04,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x08,0x0E,0x00,0x00,
-0x00,0xFF,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x10,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x14,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x18,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x1C,0x0E,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x00,
-0x04,0x08,0x00,0x00,
-0x0F,0x00,0x00,0x00,
-0x03,0x00,0x00,0x00,
-0x24,0x08,0x00,0x00,
-0x0F,0x00,0xF0,0x00,
-0x04,0x00,0x30,0x00,
-0x2C,0x08,0x00,0x00,
-0x0F,0x00,0xF0,0x00,
-0x04,0x00,0x30,0x00,
-0x70,0x08,0x00,0x00,
-0x00,0x00,0x00,0x04,
-0x01,0x00,0x00,0x00,
-0x64,0x08,0x00,0x00,
-0x00,0x04,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x78,0x08,0x00,0x00,
-0x0F,0x00,0x0F,0x00,
-0x02,0x00,0x02,0x00,
-0x74,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x06,0x00,0x00,0x00,
-0x78,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x06,0x00,0x00,0x00,
-0x7C,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x06,0x00,0x00,0x00,
-0x80,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x06,0x00,0x00,0x00,
-0x0C,0x09,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x33,0x00,0x00,0x00,
-0x04,0x0C,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x33,0x00,0x00,0x00,
-0x04,0x0D,0x00,0x00,
-0x0F,0x00,0x00,0x00,
-0x03,0x00,0x00,0x00,
-0xF4,0x01,0x00,0x00,
-0x00,0x00,0xFF,0xFF,
-0xFF,0xFF,0x00,0x00,
-0x34,0x02,0x00,0x00,
-0x00,0x00,0x00,0xF8,
-0x13,0x00,0x00,0x00,
-0x04,0x08,0x00,0x00,
-0x0F,0x00,0x00,0x00,
-0x03,0x00,0x00,0x00,
-0x24,0x08,0x00,0x00,
-0x0F,0x00,0xF0,0x00,
-0x04,0x00,0x30,0x00,
-0x2C,0x08,0x00,0x00,
-0x0F,0x00,0xF0,0x00,
-0x02,0x00,0x30,0x00,
-0x70,0x08,0x00,0x00,
-0x00,0x00,0x00,0x04,
-0x01,0x00,0x00,0x00,
-0x64,0x08,0x00,0x00,
-0x00,0x04,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x78,0x08,0x00,0x00,
-0x0F,0x00,0x0F,0x00,
-0x02,0x00,0x00,0x00,
-0x74,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x78,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x7C,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x80,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x0C,0x09,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x11,0x00,0x00,0x00,
-0x04,0x0C,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x33,0x00,0x00,0x00,
-0x04,0x0D,0x00,0x00,
-0x0F,0x00,0x00,0x00,
-0x03,0x00,0x00,0x00,
-0xF4,0x01,0x00,0x00,
-0x00,0x00,0xFF,0xFF,
-0x77,0x77,0x00,0x00,
-0x34,0x02,0x00,0x00,
-0x00,0x00,0x00,0xF8,
-0x0A,0x00,0x00,0x00,
-0x44,0x08,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x01,0x00,
-0x04,0x08,0x00,0x00,
-0x0F,0x00,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x24,0x08,0x00,0x00,
-0x0F,0x00,0xF0,0x00,
-0x04,0x00,0x30,0x00,
-0x2C,0x08,0x00,0x00,
-0x0F,0x00,0xF0,0x00,
-0x02,0x00,0x10,0x00,
-0x70,0x08,0x00,0x00,
-0x00,0x00,0x00,0x04,
-0x01,0x00,0x00,0x00,
-0x64,0x08,0x00,0x00,
-0x00,0x04,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x78,0x08,0x00,0x00,
-0x0F,0x00,0x0F,0x00,
-0x02,0x00,0x00,0x00,
-0x74,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x78,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x7C,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x80,0x0E,0x00,0x00,
-0x00,0x00,0x00,0x0F,
-0x02,0x00,0x00,0x00,
-0x0C,0x09,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x11,0x00,0x00,0x00,
-0x04,0x0C,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x11,0x00,0x00,0x00,
-0x04,0x0D,0x00,0x00,
-0x0F,0x00,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0xF4,0x01,0x00,0x00,
-0x00,0x00,0xFF,0xFF,
-0x77,0x77,0x00,0x00,
-0x34,0x02,0x00,0x00,
-0x00,0x00,0x00,0xF8,
-0x0A,0x00,0x00,0x00,
-0x1C,0x00,0x00,0x00,
-0x00,0x00,0x00,0x07,
-0x00,0x08,0x00,0x00,
-0x00,0x00,0x04,0x00,
-0x04,0x08,0x00,0x00,
-0x03,0x80,0x00,0x00,
-0x08,0x08,0x00,0x00,
-0x00,0xFC,0x00,0x00,
-0x0C,0x08,0x00,0x00,
-0x0A,0x00,0x00,0x00,
-0x10,0x08,0x00,0x00,
-0x88,0x50,0x00,0x10,
-0x14,0x08,0x00,0x00,
-0x10,0x3D,0x0C,0x02,
-0x18,0x08,0x00,0x00,
-0x85,0x01,0x20,0x00,
-0x1C,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x20,0x08,0x00,0x00,
-0x00,0x00,0x00,0x01,
-0x24,0x08,0x00,0x00,
-0x04,0x00,0x39,0x00,
-0x28,0x08,0x00,0x00,
-0x00,0x00,0x00,0x01,
-0x2C,0x08,0x00,0x00,
-0x04,0x00,0x39,0x00,
-0x30,0x08,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x34,0x08,0x00,0x00,
-0x00,0x02,0x69,0x00,
-0x38,0x08,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x3C,0x08,0x00,0x00,
-0x00,0x02,0x69,0x00,
-0x40,0x08,0x00,0x00,
-0x00,0x00,0x01,0x00,
-0x44,0x08,0x00,0x00,
-0x00,0x00,0x01,0x00,
-0x48,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x4C,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x50,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x54,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x58,0x08,0x00,0x00,
-0x48,0x48,0x48,0x48,
-0x5C,0x08,0x00,0x00,
-0xA9,0x65,0xA9,0x65,
-0x60,0x08,0x00,0x00,
-0x30,0x01,0x7F,0x0F,
-0x64,0x08,0x00,0x00,
-0x30,0x01,0x7F,0x0F,
-0x68,0x08,0x00,0x00,
-0x30,0x01,0x7F,0x0F,
-0x6C,0x08,0x00,0x00,
-0x30,0x01,0x7F,0x0F,
-0x70,0x08,0x00,0x00,
-0x00,0x07,0x00,0x03,
-0x74,0x08,0x00,0x00,
-0x00,0x03,0x00,0x03,
-0x78,0x08,0x00,0x00,
-0x02,0x00,0x02,0x00,
-0x7C,0x08,0x00,0x00,
-0x01,0x02,0x4F,0x00,
-0x80,0x08,0x00,0x00,
-0xC1,0x0A,0x30,0xA8,
-0x84,0x08,0x00,0x00,
-0x58,0x00,0x00,0x00,
-0x88,0x08,0x00,0x00,
-0x08,0x00,0x00,0x00,
-0x8C,0x08,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x90,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x94,0x08,0x00,0x00,
-0xFE,0xFF,0xFF,0xFF,
-0x98,0x08,0x00,0x00,
-0x10,0x20,0x30,0x40,
-0x9C,0x08,0x00,0x00,
-0x50,0x60,0x70,0x00,
-0xB0,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xE0,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xE4,0x08,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x0E,0x00,0x00,
-0x33,0x33,0x33,0x30,
-0x04,0x0E,0x00,0x00,
-0x2F,0x2E,0x2D,0x2A,
-0x08,0x0E,0x00,0x00,
-0x32,0x32,0x00,0x00,
-0x10,0x0E,0x00,0x00,
-0x33,0x33,0x33,0x30,
-0x14,0x0E,0x00,0x00,
-0x2F,0x2E,0x2D,0x2A,
-0x18,0x0E,0x00,0x00,
-0x33,0x33,0x33,0x30,
-0x1C,0x0E,0x00,0x00,
-0x2F,0x2E,0x2D,0x2A,
-0x30,0x0E,0x00,0x00,
-0x00,0x7C,0x00,0x01,
-0x34,0x0E,0x00,0x00,
-0x00,0x48,0x00,0x01,
-0x38,0x0E,0x00,0x00,
-0x1F,0xDC,0x00,0x10,
-0x3C,0x0E,0x00,0x00,
-0x1F,0x8C,0x00,0x10,
-0x40,0x0E,0x00,0x00,
-0xA0,0x00,0x14,0x02,
-0x44,0x0E,0x00,0x00,
-0xA0,0x00,0x16,0x28,
-0x48,0x0E,0x00,0x00,
-0x01,0x00,0x00,0xF8,
-0x4C,0x0E,0x00,0x00,
-0x10,0x29,0x00,0x00,
-0x50,0x0E,0x00,0x00,
-0x00,0x7C,0x00,0x01,
-0x54,0x0E,0x00,0x00,
-0x00,0x48,0x00,0x01,
-0x58,0x0E,0x00,0x00,
-0x1F,0xDC,0x00,0x10,
-0x5C,0x0E,0x00,0x00,
-0x1F,0x8C,0x00,0x10,
-0x60,0x0E,0x00,0x00,
-0xA0,0x00,0x14,0x02,
-0x64,0x0E,0x00,0x00,
-0xA0,0x00,0x16,0x28,
-0x6C,0x0E,0x00,0x00,
-0x10,0x29,0x00,0x00,
-0x70,0x0E,0x00,0x00,
-0xFB,0x92,0xED,0x31,
-0x74,0x0E,0x00,0x00,
-0xFB,0x36,0x15,0x36,
-0x78,0x0E,0x00,0x00,
-0xFB,0x36,0x15,0x36,
-0x7C,0x0E,0x00,0x00,
-0xFB,0x36,0x15,0x36,
-0x80,0x0E,0x00,0x00,
-0xFB,0x36,0x15,0x36,
-0x84,0x0E,0x00,0x00,
-0xFB,0x92,0x0D,0x00,
-0x88,0x0E,0x00,0x00,
-0xFB,0x92,0x0D,0x00,
-0x8C,0x0E,0x00,0x00,
-0xFB,0x92,0xED,0x31,
-0xD0,0x0E,0x00,0x00,
-0xFB,0x92,0xED,0x31,
-0xD4,0x0E,0x00,0x00,
-0xFB,0x92,0xED,0x31,
-0xD8,0x0E,0x00,0x00,
-0xFB,0x92,0x0D,0x00,
-0xDC,0x0E,0x00,0x00,
-0xFB,0x92,0x0D,0x00,
-0xE0,0x0E,0x00,0x00,
-0xFB,0x92,0x0D,0x00,
-0xE4,0x0E,0x00,0x00,
-0x48,0x54,0x5E,0x01,
-0xE8,0x0E,0x00,0x00,
-0x48,0x54,0x55,0x21,
-0x00,0x09,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x04,0x09,0x00,0x00,
-0x23,0x00,0x00,0x00,
-0x08,0x09,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x0C,0x09,0x00,0x00,
-0x13,0x13,0x12,0x01,
-0x00,0x0A,0x00,0x00,
-0xC8,0x47,0xD0,0x00,
-0x04,0x0A,0x00,0x00,
-0x08,0x00,0xFF,0x80,
-0x08,0x0A,0x00,0x00,
-0x00,0x83,0xCD,0x88,
-0x0C,0x0A,0x00,0x00,
-0x0F,0x12,0x62,0x2E,
-0x10,0x0A,0x00,0x00,
-0x78,0xBB,0x00,0x95,
-0x14,0x0A,0x00,0x00,
-0x28,0x40,0x14,0x11,
-0x18,0x0A,0x00,0x00,
-0x17,0x11,0x88,0x00,
-0x1C,0x0A,0x00,0x00,
-0x00,0x0F,0x14,0x89,
-0x20,0x0A,0x00,0x00,
-0x00,0x00,0x1B,0x1A,
-0x24,0x0A,0x00,0x00,
-0x17,0x13,0x0E,0x09,
-0x28,0x0A,0x00,0x00,
-0x04,0x02,0x00,0x00,
-0x2C,0x0A,0x00,0x00,
-0x00,0x00,0xD3,0x10,
-0x00,0x0C,0x00,0x00,
-0x40,0x1D,0x07,0x40,
-0x04,0x0C,0x00,0x00,
-0x33,0x56,0xA0,0x00,
-0x08,0x0C,0x00,0x00,
-0xE4,0x00,0x00,0x00,
-0x0C,0x0C,0x00,0x00,
-0x6C,0x6C,0x6C,0x6C,
-0x10,0x0C,0x00,0x00,
-0x00,0x00,0x80,0x08,
-0x14,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x18,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x08,
-0x1C,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x20,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x08,
-0x24,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x28,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x08,
-0x2C,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x30,0x0C,0x00,0x00,
-0x44,0xAC,0xE9,0x6D,
-0x34,0x0C,0x00,0x00,
-0xCF,0x52,0x96,0x46,
-0x38,0x0C,0x00,0x00,
-0x94,0x59,0x79,0x49,
-0x3C,0x0C,0x00,0x00,
-0x64,0x97,0x97,0x0A,
-0x40,0x0C,0x00,0x00,
-0x3F,0x40,0x7C,0x1F,
-0x44,0x0C,0x00,0x00,
-0xB7,0x00,0x01,0x00,
-0x48,0x0C,0x00,0x00,
-0x00,0x00,0x02,0xEC,
-0x4C,0x0C,0x00,0x00,
-0x7F,0x03,0x7F,0x00,
-0x50,0x0C,0x00,0x00,
-0x20,0x34,0x54,0x69,
-0x54,0x0C,0x00,0x00,
-0x94,0x00,0x3C,0x43,
-0x58,0x0C,0x00,0x00,
-0x20,0x34,0x54,0x69,
-0x5C,0x0C,0x00,0x00,
-0x94,0x00,0x3C,0x43,
-0x60,0x0C,0x00,0x00,
-0x20,0x34,0x54,0x69,
-0x64,0x0C,0x00,0x00,
-0x94,0x00,0x3C,0x43,
-0x68,0x0C,0x00,0x00,
-0x20,0x34,0x54,0x69,
-0x6C,0x0C,0x00,0x00,
-0x94,0x00,0x3C,0x43,
-0x70,0x0C,0x00,0x00,
-0x0D,0x00,0x7F,0x2C,
-0x74,0x0C,0x00,0x00,
-0x5B,0x17,0x86,0x01,
-0x78,0x0C,0x00,0x00,
-0x1F,0x00,0x00,0x00,
-0x7C,0x0C,0x00,0x00,
-0x12,0x16,0xB9,0x00,
-0x80,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x84,0x0C,0x00,0x00,
-0x00,0x00,0xF6,0x20,
-0x88,0x0C,0x00,0x00,
-0x80,0x00,0x00,0x20,
-0x8C,0x0C,0x00,0x00,
-0x00,0x00,0x20,0x20,
-0x90,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x94,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x98,0x0C,0x00,0x00,
-0x00,0x01,0x00,0x40,
-0x9C,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xA0,0x0C,0x00,0x00,
-0x92,0x24,0x49,0x00,
-0xA4,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xA8,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xAC,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xB0,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xB4,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xB8,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xBC,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x28,
-0xC0,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xC4,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xC8,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xCC,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xD0,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xD4,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xD8,0x0C,0x00,0x00,
-0x27,0x24,0xB2,0x64,
-0xDC,0x0C,0x00,0x00,
-0x32,0x69,0x76,0x00,
-0xE0,0x0C,0x00,0x00,
-0x22,0x22,0x22,0x00,
-0xE4,0x0C,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xE8,0x0C,0x00,0x00,
-0x02,0x43,0x64,0x37,
-0xEC,0x0C,0x00,0x00,
-0x0C,0xD4,0x97,0x2F,
-0x00,0x0D,0x00,0x00,
-0x50,0x07,0x00,0x00,
-0x04,0x0D,0x00,0x00,
-0x03,0x04,0x00,0x00,
-0x08,0x0D,0x00,0x00,
-0x7F,0x90,0x00,0x00,
-0x0C,0x0D,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x10,0x0D,0x00,0x00,
-0x33,0x33,0x63,0xA0,
-0x14,0x0D,0x00,0x00,
-0x63,0x3C,0x33,0x33,
-0x18,0x0D,0x00,0x00,
-0x6B,0x5B,0x8F,0x6A,
-0x1C,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x20,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x24,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x28,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x2C,0x0D,0x00,0x00,
-0x75,0x99,0x97,0xCC,
-0x30,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x34,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x38,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x3C,0x0D,0x00,0x00,
-0x93,0x72,0x02,0x00,
-0x40,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x44,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x48,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x50,0x0D,0x00,0x00,
-0x0A,0x14,0x37,0x64,
-0x54,0x0D,0x00,0x00,
-0x02,0xBD,0x4D,0x02,
-0x58,0x0D,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x5C,0x0D,0x00,0x00,
-0x64,0x20,0x03,0x30,
-0x60,0x0D,0x00,0x00,
-0x68,0xDE,0x53,0x46,
-0x64,0x0D,0x00,0x00,
-0x3C,0x8A,0x51,0x00,
-0x68,0x0D,0x00,0x00,
-0x01,0x21,0x00,0x00,
-0x14,0x0F,0x00,0x00,
-0x03,0x00,0x00,0x00,
-0x4C,0x0F,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x0F,0x00,0x00,
-0x00,0x03,0x00,0x00,
-0x40,0x01,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x10,0x00,0x00,0x00,
-0x0C,0x02,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x3C,0x02,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x2C,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x34,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x3C,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x44,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x1C,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x24,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x7C,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x84,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0xE0,0x03,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0xD8,0x03,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x8C,0x08,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x94,0x08,0x01,0x80,
-0xDC,0x01,0x00,0x00,
-0x54,0x25,0x00,0x80,
-0x04,0x00,0x00,0x00,
-0x10,0x06,0x01,0x80,
-0xDC,0x01,0x00,0x00,
-0x54,0x25,0x00,0x80,
-0x04,0x00,0x00,0x00,
-0xD0,0x27,0x00,0x80,
-0x30,0x00,0x00,0x00,
-0xD8,0x27,0x00,0x80,
-0x04,0x00,0x00,0x00,
-0x64,0x2A,0x00,0x80,
-0x13,0x00,0x00,0x00,
-0xE8,0x06,0x01,0x80,
-0x17,0x00,0x00,0x00,
-0x3C,0x07,0x01,0x80,
-0x06,0x00,0x00,0x00,
-0xC4,0x07,0x01,0x80,
-0x06,0x00,0x00,0x00,
-0xCC,0x07,0x01,0x80,
-0x08,0x00,0x00,0x00,
-0xD4,0x07,0x01,0x80,
-0x0C,0x00,0x00,0x00,
-0xDC,0x07,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xE4,0x07,0x01,0x80,
-0x0E,0x00,0x00,0x00,
-0xEC,0x07,0x01,0x80,
-0x01,0x00,0x00,0x00,
-0xF4,0x07,0x01,0x80,
-0x38,0x00,0x00,0x00,
-0xFC,0x07,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x04,0x08,0x01,0x80,
-0x02,0x00,0x00,0x00,
-0x0C,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x14,0x08,0x01,0x80,
-0x01,0x00,0x00,0x00,
-0x54,0x08,0x01,0x80,
-0x01,0x00,0x00,0x00,
-0x5C,0x08,0x01,0x80,
-0x0C,0x00,0x00,0x00,
-0xE8,0x03,0x01,0x80,
-0x0E,0x00,0x00,0x00,
-0xF0,0x03,0x01,0x80,
-0x0C,0x00,0x00,0x00,
-0x08,0x06,0x01,0x80,
-0x34,0x00,0x00,0x00,
-0x64,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x6C,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x9C,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xA4,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xAC,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x74,0x08,0x01,0x80,
-0x08,0x00,0x00,0x00,
-0x40,0x03,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xB4,0x08,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x2C,0x09,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x38,0x09,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xEC,0x09,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x50,0x0C,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x60,0x0C,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xC8,0x0D,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0xF4,0x0E,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x30,0x10,0x01,0x80,
-0x04,0x00,0x00,0x00,
-0x48,0x12,0x01,0x80,
-0x51,0x73,0x65,0x6C,
-0x20,0x45,0x72,0x72,
-0x6F,0x72,0x2C,0x20,
-0x25,0x78,0x00,0x00,
-0x72,0x65,0x70,0x65,
-0x61,0x74,0x65,0x64,
-0x20,0x65,0x6C,0x65,
-0x6D,0x65,0x6E,0x74,
-0x20,0x49,0x44,0x3A,
-0x20,0x25,0x78,0x2C,
-0x20,0x63,0x6D,0x64,
-0x20,0x73,0x65,0x71,
-0x3D,0x25,0x78,0x2C,
-0x20,0x68,0x32,0x64,
-0x73,0x65,0x71,0x3D,
-0x25,0x78,0x0A,0x00,
-0x69,0x6E,0x76,0x61,
-0x6C,0x69,0x64,0x20,
-0x63,0x6D,0x64,0x20,
-0x69,0x64,0x3A,0x20,
-0x25,0x78,0x0A,0x00,
-0x48,0x32,0x43,0x3A,
-0x20,0x25,0x78,0x0A,
-0x00,0x00,0x00,0x00,
-0x67,0x65,0x74,0x20,
-0x6A,0x6F,0x69,0x6E,
-0x20,0x63,0x6D,0x64,
-0x0A,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x67,0x65,0x74,0x20,
-0x73,0x75,0x72,0x76,
-0x65,0x79,0x20,0x63,
-0x6D,0x64,0x0A,0x00,
-0x53,0x53,0x49,0x44,
-0x3A,0x20,0x25,0x73,
-0x0A,0x00,0x00,0x00,
-0x73,0x65,0x74,0x41,
-0x75,0x74,0x68,0x3A,
-0x20,0x25,0x78,0x0A,
-0x00,0x00,0x00,0x00,
-0x72,0x63,0x76,0x20,
-0x73,0x65,0x74,0x5F,
-0x73,0x74,0x61,0x6B,
-0x65,0x79,0x0A,0x00,
-0x53,0x65,0x74,0x53,
-0x69,0x6E,0x67,0x6C,
-0x65,0x43,0x61,0x72,
-0x72,0x69,0x65,0x72,
-0x54,0x78,0x5F,0x68,
-0x64,0x6C,0x0A,0x00,
-0x53,0x65,0x74,0x53,
-0x69,0x6E,0x67,0x6C,
-0x65,0x54,0x6F,0x6E,
-0x65,0x54,0x78,0x5F,
-0x68,0x64,0x6C,0x0A,
-0x00,0x00,0x00,0x00,
-0x53,0x65,0x74,0x43,
-0x61,0x72,0x72,0x69,
-0x65,0x72,0x53,0x75,
-0x70,0x70,0x72,0x65,
-0x73,0x73,0x69,0x6F,
-0x6E,0x54,0x78,0x5F,
-0x68,0x64,0x6C,0x0A,
-0x00,0x00,0x00,0x00,
-0x53,0x65,0x74,0x43,
-0x6F,0x6E,0x74,0x69,
-0x6E,0x75,0x6F,0x75,
-0x73,0x54,0x78,0x5F,
-0x68,0x64,0x6C,0x0A,
-0x00,0x00,0x00,0x00,
-0x53,0x65,0x74,0x43,
-0x43,0x4B,0x43,0x6F,
-0x6E,0x74,0x69,0x6E,
-0x75,0x6F,0x75,0x73,
-0x54,0x78,0x0A,0x00,
-0x53,0x65,0x74,0x4F,
-0x46,0x44,0x4D,0x43,
-0x6F,0x6E,0x74,0x69,
-0x6E,0x75,0x6F,0x75,
-0x73,0x54,0x78,0x0A,
-0x00,0x00,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0xF8,0x9E,0x02,0x00,
-0x13,0x00,0x00,0x00,
-0xC8,0x5E,0x02,0x00,
-0x13,0x00,0x00,0x00,
-0xF8,0x0E,0x02,0x00,
-0x13,0x00,0x00,0x00,
-0xC8,0xCE,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0xD4,0x8E,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0xA4,0x4E,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0xD0,0x0E,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0xA0,0xCE,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0xD0,0x86,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0xA0,0x46,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x70,0x06,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0xA4,0x9E,0x02,0x00,
-0x13,0x00,0x00,0x00,
-0x74,0x5E,0x02,0x00,
-0x13,0x00,0x00,0x00,
-0xA4,0x0E,0x02,0x00,
-0x13,0x00,0x00,0x00,
-0xD0,0xCE,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0x40,0x9F,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0x70,0x4E,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0xA0,0x06,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0x70,0xC6,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0xA0,0x82,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x70,0x42,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x40,0x02,0x00,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0xAA,0x88,0x88,0x44,
-0x44,0x22,0x22,0x00,
-0x00,0x00,0x00,0x00,
-0x59,0x01,0x03,0x00,
-0x01,0x00,0x00,0x00,
-0x41,0x10,0x00,0x00,
-0x02,0x00,0x00,0x00,
-0x00,0x10,0x01,0x00,
-0x05,0x00,0x00,0x00,
-0xC0,0x0F,0x08,0x00,
-0x07,0x00,0x00,0x00,
-0x03,0xC8,0x0F,0x00,
-0x13,0x00,0x00,0x00,
-0xB0,0x7C,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0xC0,0x1C,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0x60,0xDC,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x60,0x8C,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x50,0x44,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x20,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x59,0x01,0x03,0x00,
-0x01,0x00,0x00,0x00,
-0x50,0x02,0x03,0x00,
-0x02,0x00,0x00,0x00,
-0x00,0x00,0x01,0x00,
-0x10,0x00,0x00,0x00,
-0x0F,0x00,0x08,0x00,
-0x11,0x00,0x00,0x00,
-0xFC,0x31,0x02,0x00,
-0x10,0x00,0x00,0x00,
-0x0F,0x00,0x0C,0x00,
-0x11,0x00,0x00,0x00,
-0xF8,0xF9,0x03,0x00,
-0x10,0x00,0x00,0x00,
-0x0F,0x00,0x02,0x00,
-0x11,0x00,0x00,0x00,
-0x01,0x01,0x02,0x00,
-0x14,0x00,0x00,0x00,
-0x3E,0x09,0x01,0x00,
-0x14,0x00,0x00,0x00,
-0x3E,0x09,0x09,0x00,
-0x15,0x00,0x00,0x00,
-0xF4,0x98,0x01,0x00,
-0x17,0x00,0x00,0x00,
-0x00,0x65,0x0F,0x00,
-0x1A,0x00,0x00,0x00,
-0x56,0x30,0x01,0x00,
-0x1B,0x00,0x00,0x00,
-0x00,0x00,0x06,0x00,
-0x1C,0x00,0x00,0x00,
-0x00,0x03,0x00,0x00,
-0x1E,0x00,0x00,0x00,
-0x59,0x10,0x03,0x00,
-0x21,0x00,0x00,0x00,
-0x00,0x40,0x05,0x00,
-0x22,0x00,0x00,0x00,
-0x3C,0x08,0x00,0x00,
-0x23,0x00,0x00,0x00,
-0x58,0x15,0x00,0x00,
-0x24,0x00,0x00,0x00,
-0x60,0x00,0x00,0x00,
-0x25,0x00,0x00,0x00,
-0x83,0x25,0x02,0x00,
-0x26,0x00,0x00,0x00,
-0x00,0xF2,0x00,0x00,
-0x27,0x00,0x00,0x00,
-0xF1,0xAC,0x0E,0x00,
-0x28,0x00,0x00,0x00,
-0x54,0xBD,0x09,0x00,
-0x29,0x00,0x00,0x00,
-0x82,0x45,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x34,0x13,0x02,0x00,
-0x2A,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0A,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x08,0x08,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0C,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x02,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x08,0x08,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0xB3,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x03,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x08,0x08,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x08,0x08,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0xB3,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x05,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x09,0x07,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x06,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x09,0x07,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0xB3,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x07,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x09,0x07,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x08,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x09,0x07,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0xB3,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x09,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0A,0x06,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x0A,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0A,0x06,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0xB3,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x0B,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0A,0x06,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x0C,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0A,0x06,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0xB3,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0B,0x05,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x33,0x33,0x05,0x00,
-0x2C,0x00,0x00,0x00,
-0x0D,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x0E,0x00,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x0B,0x05,0x00,0x00,
-0x2B,0x00,0x00,0x00,
-0x23,0x66,0x06,0x00,
-0x2C,0x00,0x00,0x00,
-0x1A,0x00,0x00,0x00,
-0x2A,0x00,0x00,0x00,
-0x00,0x40,0x0E,0x00,
-0x30,0x00,0x00,0x00,
-0x00,0x00,0x02,0x00,
-0x31,0x00,0x00,0x00,
-0x31,0x96,0x0B,0x00,
-0x32,0x00,0x00,0x00,
-0x0D,0x13,0x00,0x00,
-0x33,0x00,0x00,0x00,
-0x87,0x01,0x00,0x00,
-0x13,0x00,0x00,0x00,
-0x6C,0x9E,0x01,0x00,
-0x13,0x00,0x00,0x00,
-0x94,0x5E,0x01,0x00,
-0x00,0x00,0x00,0x00,
-0x59,0x01,0x01,0x00,
-0x18,0x00,0x00,0x00,
-0x01,0xF4,0x00,0x00,
-0xFE,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x1E,0x00,0x00,0x00,
-0x5B,0x10,0x03,0x00,
-0xFE,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x59,0x01,0x03,0x00,
-0x10,0x00,0x00,0x00,
-0x0F,0x00,0x04,0x00,
-0x11,0x00,0x00,0x00,
-0xF9,0x03,0x02,0x00,
-0x6C,0x09,0x00,0x00,
-0x01,0x02,0x03,0x04,
-0x05,0x06,0x07,0x08,
-0x09,0x0A,0x0B,0x00,
-0x00,0x00,0x00,0x12,
-0x12,0x12,0x12,0x12,
-0x12,0x12,0x12,0x12,
-0x12,0x12,0x00,0x00,
-0x00,0x00,0x0F,0x0F,
-0x0F,0x0F,0x0F,0x0F,
-0x0F,0x0F,0x0F,0x0F,
-0x0F,0x00,0x00,0x00,
-0x00,0x17,0x05,0x03,
-0x22,0x43,0x5E,0x00,
-0x4F,0xA4,0x00,0x00,
-0x4F,0xA4,0x00,0x00,
-0x22,0x43,0x5E,0x00,
-0x4F,0xA4,0x00,0x00,
-0x22,0x43,0x5E,0x00,
-0x4F,0xA4,0x3E,0x00,
-0x30,0xA6,0x00,0x00,
-0x4F,0xA4,0x3E,0x00,
-0x2B,0xA4,0x5E,0x00,
-0x2B,0xA4,0x00,0x00,
-0x2B,0xA4,0x5E,0x00,
-0x22,0xA4,0x5E,0x00,
-0x4F,0xA4,0x00,0x00,
-0x4F,0xA4,0x00,0x00,
-0x4F,0xA4,0x5E,0x00,
-0x4F,0xA4,0x5E,0x00,
-0x4F,0xA4,0x5E,0x00,
-0x4F,0xA4,0x5E,0x00,
-0x4F,0xA4,0x00,0x00,
-0x4F,0xA4,0x5E,0x00,
-0x00,0xE0,0x4C,0x02,
-0x01,0x20,0x00,0x00,
-0x00,0xE0,0x4C,0x00,
-0x00,0x0C,0x43,0x00,
-0x00,0x50,0x43,0x00,
-0x00,0x40,0x96,0x00,
-0x00,0x05,0xB5,0x00,
-0x00,0x0A,0xF7,0x00,
-0x00,0x10,0x18,0x00,
-0x00,0x13,0x74,0x00,
-0x00,0x03,0x7F,0x00,
-0x00,0x50,0xF2,0x02,
-0x01,0x01,0x00,0x00,
-0x00,0x50,0xF2,0x02,
-0x00,0x01,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0xFF,0xFF,
-0xFF,0xFF,0x00,0x00,
-0x4F,0x6E,0x41,0x73,
-0x73,0x6F,0x63,0x52,
-0x65,0x71,0x00,0x00,
-0x4F,0x6E,0x41,0x73,
-0x73,0x6F,0x63,0x52,
-0x73,0x70,0x00,0x00,
-0x4F,0x6E,0x52,0x65,
-0x41,0x73,0x73,0x6F,
-0x63,0x52,0x65,0x71,
-0x00,0x00,0x00,0x00,
-0x4F,0x6E,0x52,0x65,
-0x41,0x73,0x73,0x6F,
-0x63,0x52,0x73,0x70,
-0x00,0x00,0x00,0x00,
-0x4F,0x6E,0x50,0x72,
-0x6F,0x62,0x65,0x52,
-0x65,0x71,0x00,0x00,
-0x4F,0x6E,0x50,0x72,
-0x6F,0x62,0x65,0x52,
-0x73,0x70,0x00,0x00,
-0x4F,0x6E,0x42,0x65,
-0x61,0x63,0x6F,0x6E,
-0x00,0x00,0x00,0x00,
-0x4F,0x6E,0x41,0x54,
-0x49,0x4D,0x00,0x00,
-0x4F,0x6E,0x44,0x69,
-0x73,0x61,0x73,0x73,
-0x6F,0x63,0x00,0x00,
-0x4F,0x6E,0x41,0x75,
-0x74,0x68,0x00,0x00,
-0x4F,0x6E,0x44,0x65,
-0x41,0x75,0x74,0x68,
-0x00,0x00,0x00,0x00,
-0x4F,0x6E,0x41,0x63,
-0x74,0x69,0x6F,0x6E,
-0x00,0x00,0x00,0x00,
-0x4F,0x6E,0x45,0x78,
-0x63,0x65,0x70,0x74,
-0x69,0x6F,0x6E,0x00,
-0x00,0x00,0x00,0x00,
-0xF8,0xDD,0x01,0x80,
-0xE8,0x26,0x01,0x80,
-0x10,0x00,0x00,0x00,
-0x04,0xDE,0x01,0x80,
-0xF0,0x26,0x01,0x80,
-0x20,0x00,0x00,0x00,
-0x10,0xDE,0x01,0x80,
-0xE8,0x26,0x01,0x80,
-0x30,0x00,0x00,0x00,
-0x20,0xDE,0x01,0x80,
-0xF0,0x26,0x01,0x80,
-0x40,0x00,0x00,0x00,
-0x30,0xDE,0x01,0x80,
-0x80,0x2D,0x01,0x80,
-0x50,0x00,0x00,0x00,
-0x3C,0xDE,0x01,0x80,
-0x28,0x4A,0x00,0x80,
-0x80,0x00,0x00,0x00,
-0x48,0xDE,0x01,0x80,
-0x90,0x59,0x00,0x80,
-0x90,0x00,0x00,0x00,
-0x54,0xDE,0x01,0x80,
-0x44,0x2E,0x01,0x80,
-0xA0,0x00,0x00,0x00,
-0x5C,0xDE,0x01,0x80,
-0x4C,0x2E,0x01,0x80,
-0xB0,0x00,0x00,0x00,
-0x68,0xDE,0x01,0x80,
-0x54,0x2F,0x01,0x80,
-0xC0,0x00,0x00,0x00,
-0x70,0xDE,0x01,0x80,
-0x6C,0x2E,0x01,0x80,
-0xD0,0x00,0x00,0x00,
-0x7C,0xDE,0x01,0x80,
-0xF0,0x54,0x00,0x80,
-0x0C,0x00,0x00,0x00,
-0x88,0xDE,0x01,0x80,
-0x8C,0x2E,0x01,0x80,
-0x73,0x77,0x69,0x74,
-0x63,0x68,0x20,0x74,
-0x6F,0x20,0x34,0x30,
-0x4D,0x20,0x48,0x7A,
-0x20,0x6D,0x6F,0x64,
-0x65,0x28,0x25,0x78,
-0x2C,0x20,0x25,0x78,
-0x29,0x0A,0x00,0x00,
-0x73,0x77,0x69,0x74,
-0x63,0x68,0x20,0x74,
-0x6F,0x20,0x32,0x30,
-0x4D,0x20,0x48,0x7A,
-0x20,0x6D,0x6F,0x64,
-0x65,0x0A,0x00,0x00,
-0x41,0x54,0x49,0x4D,
-0x3A,0x20,0x25,0x78,
-0x0A,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x73,0x75,0x72,0x76,
-0x65,0x79,0x20,0x64,
-0x6F,0x6E,0x65,0x28,
-0x25,0x78,0x2C,0x20,
-0x25,0x78,0x29,0x0A,
-0x00,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x6A,0x6F,0x69,0x6E,
-0x20,0x72,0x65,0x73,
-0x28,0x25,0x78,0x29,
-0x0A,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x64,0x65,0x6C,0x20,
-0x73,0x74,0x61,0x0A,
-0x00,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x61,0x64,0x64,0x20,
-0x73,0x74,0x61,0x3A,
-0x25,0x78,0x2C,0x20,
-0x25,0x78,0x0A,0x00,
-0x72,0x63,0x76,0x20,
-0x64,0x69,0x73,0x63,
-0x6F,0x6E,0x6E,0x65,
-0x63,0x74,0x0A,0x00,
-0x64,0x69,0x73,0x63,
-0x6F,0x6E,0x6E,0x65,
-0x63,0x74,0x20,0x74,
-0x69,0x6D,0x65,0x72,
-0x3A,0x20,0x6E,0x6F,
-0x20,0x62,0x65,0x61,
-0x63,0x6F,0x6E,0x0A,
-0x00,0x00,0x00,0x00,
-0x64,0x69,0x73,0x63,
-0x6F,0x6E,0x6E,0x65,
-0x63,0x74,0x20,0x74,
-0x69,0x6D,0x65,0x72,
-0x0A,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x40,
-0x25,0x73,0x0A,0x00,
-0x57,0x4D,0x4D,0x28,
-0x25,0x78,0x29,0x3A,
-0x20,0x25,0x78,0x2C,
-0x20,0x25,0x78,0x0A,
-0x00,0x00,0x00,0x00,
-0x61,0x73,0x73,0x6F,
-0x63,0x20,0x72,0x65,
-0x6A,0x65,0x63,0x74,
-0x2C,0x20,0x73,0x74,
-0x61,0x74,0x75,0x73,
-0x3A,0x20,0x25,0x64,
-0x0A,0x00,0x00,0x00,
-0x6D,0x61,0x63,0x20,
-0x69,0x64,0x20,0x23,
-0x34,0x3A,0x20,0x25,
-0x78,0x2C,0x20,0x25,
-0x78,0x0A,0x00,0x00,
-0x6D,0x61,0x63,0x20,
-0x69,0x64,0x20,0x23,
-0x35,0x3A,0x20,0x25,
-0x78,0x2C,0x20,0x25,
-0x78,0x2C,0x20,0x25,
-0x78,0x0A,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x40,
-0x25,0x73,0x0A,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x63,0x75,0x72,0x20,
-0x63,0x68,0x61,0x6E,
-0x6E,0x65,0x6C,0x3A,
-0x20,0x25,0x78,0x2C,
-0x20,0x62,0x63,0x6E,
-0x20,0x69,0x6E,0x74,
-0x65,0x72,0x76,0x61,
-0x6C,0x3A,0x20,0x25,
-0x78,0x0A,0x00,0x00,
-0x49,0x42,0x53,0x53,
-0x20,0x6D,0x6F,0x64,
-0x65,0x2C,0x20,0x63,
-0x75,0x72,0x20,0x63,
-0x68,0x61,0x6E,0x6E,
-0x65,0x6C,0x3A,0x20,
-0x25,0x78,0x2C,0x20,
-0x62,0x63,0x6E,0x20,
-0x69,0x6E,0x74,0x65,
-0x72,0x76,0x61,0x6C,
-0x3A,0x20,0x25,0x78,
-0x0A,0x00,0x00,0x00,
-0x6D,0x61,0x63,0x20,
-0x69,0x64,0x20,0x23,
-0x34,0x3A,0x20,0x25,
-0x78,0x2C,0x20,0x25,
-0x78,0x0A,0x00,0x00,
-0x69,0x6E,0x76,0x61,
-0x6C,0x69,0x64,0x20,
-0x63,0x61,0x70,0x3A,
-0x25,0x78,0x0A,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x20,0x61,0x73,
-0x73,0x6F,0x63,0x72,
-0x65,0x71,0x28,0x25,
-0x78,0x29,0x0A,0x00,
-0x5B,0x57,0x41,0x50,
-0x49,0x5D,0x20,0x67,
-0x65,0x74,0x20,0x77,
-0x61,0x70,0x69,0x20,
-0x49,0x45,0x0A,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x20,0x61,0x63,
-0x74,0x69,0x6F,0x6E,
-0x3A,0x20,0x25,0x78,
-0x2C,0x20,0x25,0x78,
-0x2C,0x20,0x25,0x78,
-0x20,0x0A,0x00,0x00,
-0x41,0x44,0x44,0x42,
-0x41,0x20,0x52,0x53,
-0x50,0x3A,0x20,0x25,
-0x78,0x0A,0x00,0x00,
-0x44,0x45,0x4C,0x42,
-0x41,0x3A,0x20,0x25,
-0x78,0x28,0x25,0x78,
-0x29,0x0A,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x20,0x61,0x75,
-0x74,0x68,0x0A,0x00,
-0x63,0x6C,0x6E,0x74,
-0x20,0x61,0x75,0x74,
-0x68,0x20,0x66,0x61,
-0x69,0x6C,0x2C,0x20,
-0x73,0x74,0x61,0x74,
-0x75,0x73,0x3A,0x20,
-0x25,0x64,0x0A,0x00,
-0x6E,0x6F,0x20,0x63,
-0x68,0x61,0x6C,0x6C,
-0x65,0x6E,0x67,0x65,
-0x20,0x74,0x65,0x78,
-0x74,0x3F,0x0A,0x00,
-0x63,0x6C,0x6E,0x74,
-0x20,0x61,0x75,0x74,
-0x68,0x20,0x66,0x61,
-0x69,0x6C,0x65,0x64,
-0x20,0x64,0x75,0x65,
-0x20,0x74,0x6F,0x20,
-0x69,0x6C,0x6C,0x65,
-0x67,0x61,0x6C,0x20,
-0x73,0x65,0x71,0x3D,
-0x25,0x78,0x0A,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x64,0x65,
-0x61,0x75,0x74,0x68,
-0x0A,0x00,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x64,0x69,
-0x73,0x61,0x73,0x73,
-0x6F,0x63,0x0A,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x4E,0x6F,0x20,0x69,
-0x72,0x70,0x20,0x25,
-0x73,0x0A,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x20,0x6E,0x75,
-0x6C,0x6C,0x20,0x64,
-0x61,0x74,0x61,0x28,
-0x25,0x64,0x29,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x41,0x72,0x74,0x68,
-0x65,0x72,0x6F,0x73,
-0x20,0x41,0x50,0x0A,
-0x00,0x00,0x00,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x42,0x72,0x6F,0x61,
-0x64,0x63,0x6F,0x6D,
-0x20,0x41,0x50,0x0A,
-0x00,0x00,0x00,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x4D,0x61,0x72,0x76,
-0x65,0x6C,0x6C,0x20,
-0x41,0x50,0x0A,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x52,0x61,0x6C,0x69,
-0x6E,0x6B,0x20,0x41,
-0x50,0x0A,0x00,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x43,0x69,0x73,0x63,
-0x6F,0x20,0x41,0x50,
-0x0A,0x00,0x00,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x52,0x65,0x61,0x6C,
-0x74,0x65,0x6B,0x20,
-0x39,0x36,0x42,0x20,
-0x41,0x50,0x0A,0x00,
-0x6C,0x69,0x6E,0x6B,
-0x20,0x74,0x6F,0x20,
-0x75,0x6E,0x6B,0x6E,
-0x6F,0x77,0x6E,0x20,
-0x41,0x50,0x0A,0x00,
-0x6D,0x61,0x63,0x20,
-0x69,0x64,0x20,0x23,
-0x25,0x78,0x3A,0x20,
-0x25,0x78,0x2C,0x20,
-0x25,0x78,0x0A,0x00,
-0x64,0x72,0x6F,0x70,
-0x20,0x64,0x75,0x65,
-0x20,0x74,0x6F,0x20,
-0x64,0x65,0x63,0x61,
-0x63,0x68,0x65,0x0A,
-0x00,0x00,0x00,0x00,
-0xFF,0x00,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xFF,0xFF,0x00,0x00,
-0x01,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x02,0x03,
-0xFF,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x02,0x03,
-0x04,0x05,0x06,0x07,
-0x08,0x09,0x0A,0x0B,
-0xFF,0x00,0x00,0x00,
-0x04,0x05,0x06,0x07,
-0x08,0x09,0x0A,0x0B,
-0xFF,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x04,0x05,0x06,0x07,
-0x08,0xFF,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x02,0x03,
-0xFF,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x01,0x01,0x03,
-0xFF,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x30,0x31,0x32,0x33,
-0x34,0x35,0x36,0x37,
-0x38,0x39,0x41,0x42,
-0x43,0x44,0x45,0x46,
-0x00,0x00,0x00,0x00,
-0x25,0x64,0x2E,0x00,
-0x25,0x68,0x68,0x58,
-0x3A,0x00,0x00,0x00,
-0x74,0x61,0x72,0x67,
-0x65,0x74,0x20,0x74,
-0x68,0x65,0x72,0x6D,
-0x61,0x6C,0x3A,0x20,
-0x25,0x78,0x2C,0x20,
-0x63,0x75,0x72,0x20,
-0x74,0x68,0x65,0x72,
-0x6D,0x61,0x6C,0x3A,
-0x20,0x25,0x78,0x0A,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x08,0xE4,0x01,0x80,
-0x08,0xE4,0x01,0x80,
-0x31,0x10,0x10,0x00,
-0x00,0x30,0x00,0x00,
-0x31,0x20,0x10,0x00,
-0x00,0x30,0x00,0x00,
-0x31,0x28,0x10,0x00,
-0x00,0x30,0x00,0x00,
-0x31,0x2C,0x10,0x10,
-0x00,0x30,0x00,0x00,
-0x31,0x2F,0x10,0x10,
-0x00,0x30,0x00,0x00,
-0x31,0x30,0x18,0x00,
-0x00,0x30,0x00,0x00,
-0x31,0x30,0x20,0x10,
-0x00,0x30,0x00,0x00,
-0x22,0x20,0x18,0x08,
-0x00,0x20,0x00,0x00,
-0x22,0x21,0x14,0x08,
-0x00,0x20,0x00,0x00,
-0x22,0x21,0x1C,0x08,
-0x00,0x20,0x00,0x00,
-0x22,0x21,0x20,0x08,
-0x00,0x20,0x00,0x00,
-0x22,0x21,0x20,0x10,
-0x00,0x20,0x00,0x00,
-0x22,0x21,0x20,0x18,
-0x00,0x20,0x00,0x00,
-0x1A,0x19,0x18,0x10,
-0x00,0x18,0x00,0x00,
-0x12,0x11,0x10,0x08,
-0x00,0x10,0x00,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x08,0x00,0x00,
-0x0A,0x09,0x08,0x02,
-0x00,0x08,0x00,0x00,
-0x0A,0x09,0x08,0x04,
-0x00,0x08,0x00,0x00,
-0x0A,0x09,0x08,0x06,
-0x00,0x08,0x00,0x00,
-0x08,0x07,0x06,0x04,
-0x00,0x06,0x00,0x00,
-0x06,0x05,0x04,0x02,
-0x00,0x04,0x00,0x00,
-0x06,0x05,0x04,0x03,
-0x00,0x04,0x00,0x00,
-0x05,0x04,0x03,0x02,
-0x00,0x03,0x00,0x00,
-0x09,0x08,0x07,0x06,
-0x07,0x06,0x06,0x05,
-0x05,0x04,0x04,0x03,
-0x06,0x05,0x05,0x04,
-0x04,0x03,0x03,0x03,
-0x05,0x04,0x04,0x03,
-0x03,0x02,0x02,0x02,
-0x00,0x09,0x08,0x07,
-0x06,0x07,0x06,0x06,
-0x05,0x05,0x04,0x04,
-0x03,0x05,0x04,0x04,
-0x03,0x03,0x02,0x02,
-0x02,0x04,0x03,0x03,
-0x02,0x02,0x01,0x01,
-0x01,0x00,0x00,0x00,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x10,0x10,0x20,
-0x08,0x08,0x08,0x08,
-0x20,0x20,0x20,0x20,
-0x08,0x08,0x08,0x08,
-0x08,0x20,0x20,0x20,
-0x30,0x08,0x08,0x08,
-0x08,0x18,0x18,0x18,
-0x18,0x18,0x20,0x30,
-0x30,0x10,0x20,0x20,
-0x20,0x20,0x20,0x30,
-0x30,0x08,0x10,0x20,
-0x30,0x30,0x30,0x30,
-0x30,0x30,0x00,0x00,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x10,0x10,0x20,
-0x08,0x08,0x08,0x08,
-0x08,0x20,0x20,0x20,
-0x08,0x08,0x08,0x08,
-0x08,0x20,0x20,0x20,
-0x20,0x08,0x08,0x08,
-0x08,0x18,0x18,0x18,
-0x18,0x18,0x20,0x30,
-0x30,0x10,0x20,0x20,
-0x20,0x20,0x20,0x30,
-0x30,0x08,0x10,0x20,
-0x30,0x30,0x30,0x30,
-0x30,0x30,0x00,0x00,
-0x0A,0x09,0x08,0x04,
-0x00,0x0A,0x09,0x08,
-0x04,0x00,0x0A,0x09,
-0x08,0x04,0x00,0x0A,
-0x09,0x08,0x04,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x0A,0x09,0x08,
-0x00,0x00,0x0A,0x09,
-0x08,0x00,0x00,0x0A,
-0x09,0x08,0x00,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x12,0x11,0x10,
-0x08,0x00,0x12,0x11,
-0x10,0x08,0x00,0x22,
-0x21,0x20,0x18,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x0A,0x09,0x08,
-0x00,0x00,0x0A,0x09,
-0x08,0x00,0x00,0x0A,
-0x09,0x08,0x00,0x00,
-0x22,0x21,0x20,0x18,
-0x00,0x22,0x21,0x20,
-0x18,0x00,0x22,0x21,
-0x1C,0x08,0x00,0x22,
-0x20,0x18,0x08,0x00,
-0x0A,0x09,0x08,0x02,
-0x00,0x0A,0x09,0x08,
-0x02,0x00,0x0A,0x09,
-0x08,0x02,0x00,0x0A,
-0x09,0x08,0x02,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x22,0x21,0x20,
-0x10,0x00,0x22,0x21,
-0x20,0x08,0x00,0x22,
-0x21,0x1C,0x08,0x00,
-0x31,0x30,0x18,0x00,
-0x00,0x0A,0x09,0x08,
-0x04,0x00,0x0A,0x09,
-0x08,0x04,0x00,0x0A,
-0x09,0x08,0x04,0x00,
-0x0A,0x09,0x08,0x04,
-0x00,0x1A,0x19,0x18,
-0x10,0x00,0x1A,0x19,
-0x18,0x10,0x00,0x1A,
-0x19,0x18,0x10,0x00,
-0x1A,0x19,0x18,0x10,
-0x00,0x1A,0x19,0x18,
-0x10,0x00,0x22,0x21,
-0x20,0x08,0x00,0x31,
-0x2C,0x10,0x10,0x00,
-0x31,0x28,0x10,0x00,
-0x00,0x12,0x11,0x10,
-0x08,0x00,0x22,0x21,
-0x20,0x18,0x00,0x22,
-0x21,0x20,0x18,0x00,
-0x22,0x21,0x20,0x08,
-0x00,0x22,0x21,0x14,
-0x08,0x00,0x22,0x20,
-0x18,0x08,0x00,0x31,
-0x30,0x20,0x10,0x00,
-0x31,0x2C,0x10,0x10,
-0x00,0x0A,0x09,0x08,
-0x00,0x00,0x12,0x11,
-0x10,0x08,0x00,0x22,
-0x21,0x20,0x18,0x00,
-0x22,0x21,0x20,0x18,
-0x00,0x31,0x30,0x20,
-0x10,0x00,0x31,0x2F,
-0x10,0x10,0x00,0x31,
-0x2F,0x10,0x10,0x00,
-0x31,0x10,0x10,0x00,
-0x00,0x31,0x2C,0x10,
-0x10,0x00,0x00,0x00,
-0x0A,0x09,0x08,0x04,
-0x00,0x0A,0x09,0x08,
-0x04,0x00,0x0A,0x09,
-0x08,0x04,0x00,0x0A,
-0x09,0x08,0x04,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x0A,0x09,0x08,
-0x00,0x00,0x0A,0x09,
-0x08,0x00,0x00,0x0A,
-0x09,0x08,0x00,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x12,0x11,0x10,
-0x08,0x00,0x12,0x11,
-0x10,0x08,0x00,0x22,
-0x21,0x20,0x18,0x00,
-0x0A,0x09,0x08,0x04,
-0x00,0x0A,0x09,0x08,
-0x04,0x00,0x0A,0x09,
-0x08,0x02,0x00,0x0A,
-0x09,0x08,0x00,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x22,0x21,0x20,
-0x18,0x00,0x22,0x21,
-0x1C,0x08,0x00,0x22,
-0x21,0x14,0x08,0x00,
-0x0A,0x09,0x08,0x02,
-0x00,0x0A,0x09,0x08,
-0x02,0x00,0x0A,0x09,
-0x08,0x02,0x00,0x0A,
-0x09,0x08,0x02,0x00,
-0x0A,0x09,0x08,0x00,
-0x00,0x22,0x21,0x20,
-0x10,0x00,0x22,0x21,
-0x20,0x08,0x00,0x22,
-0x21,0x14,0x08,0x00,
-0x22,0x21,0x14,0x08,
-0x00,0x0A,0x09,0x08,
-0x04,0x00,0x0A,0x09,
-0x08,0x04,0x00,0x0A,
-0x09,0x08,0x04,0x00,
-0x0A,0x09,0x08,0x04,
-0x00,0x1A,0x19,0x18,
-0x10,0x00,0x1A,0x19,
-0x18,0x10,0x00,0x1A,
-0x19,0x18,0x10,0x00,
-0x1A,0x19,0x18,0x10,
-0x00,0x1A,0x19,0x18,
-0x10,0x00,0x22,0x21,
-0x20,0x08,0x00,0x31,
-0x2C,0x10,0x10,0x00,
-0x31,0x28,0x10,0x00,
-0x00,0x12,0x11,0x10,
-0x08,0x00,0x22,0x21,
-0x20,0x18,0x00,0x22,
-0x21,0x20,0x18,0x00,
-0x22,0x21,0x20,0x08,
-0x00,0x22,0x21,0x14,
-0x08,0x00,0x22,0x20,
-0x18,0x08,0x00,0x31,
-0x30,0x20,0x10,0x00,
-0x31,0x2C,0x10,0x10,
-0x00,0x0A,0x09,0x08,
-0x00,0x00,0x12,0x11,
-0x10,0x08,0x00,0x22,
-0x21,0x20,0x18,0x00,
-0x22,0x21,0x20,0x18,
-0x00,0x31,0x30,0x20,
-0x10,0x00,0x31,0x2F,
-0x10,0x10,0x00,0x31,
-0x2F,0x10,0x10,0x00,
-0x31,0x10,0x10,0x00,
-0x00,0x31,0x2C,0x10,
-0x10,0x00,0x00,0x00,
-0x01,0x02,0x04,0x08,
-0x02,0x04,0x08,0x0C,
-0x10,0x18,0x20,0x30,
-0x02,0x04,0x08,0x0C,
-0x10,0x18,0x20,0x30,
-0x06,0x0C,0x10,0x18,
-0x24,0x30,0x3C,0x48,
-0x48,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x25,0x27,0x2C,
-0x19,0x1B,0x1E,0x20,
-0x23,0x29,0x2A,0x2B,
-0x00,0x00,0x00,0x00,
-0x25,0x29,0x2B,0x2E,
-0x2E,0x00,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x08,0x00,0x00,0x00,
-0x10,0x00,0x00,0x00,
-0x18,0x00,0x00,0x00,
-0x24,0x00,0x00,0x00,
-0x30,0x00,0x00,0x00,
-0x48,0x00,0x00,0x00,
-0x60,0x00,0x00,0x00,
-0x90,0x00,0x00,0x00,
-0xC0,0x00,0x00,0x00,
-0xD8,0x00,0x00,0x00,
-0x50,0x00,0x00,0x00,
-0x78,0x00,0x00,0x00,
-0xA0,0x00,0x00,0x00,
-0xC8,0x00,0x00,0x00,
-0x40,0x01,0x00,0x00,
-0x90,0x01,0x00,0x00,
-0xE0,0x01,0x00,0x00,
-0x30,0x02,0x00,0x00,
-0x2C,0x01,0x00,0x00,
-0x40,0x01,0x00,0x00,
-0xE0,0x01,0x00,0x00,
-0xD0,0x02,0x00,0x00,
-0x80,0x0C,0x00,0x00,
-0x80,0x0C,0x00,0x00,
-0x80,0x0C,0x00,0x00,
-0xA0,0x0F,0x00,0x00,
-0xA0,0x0F,0x00,0x00,
-0x02,0x00,0x00,0x00,
-0x02,0x00,0x00,0x00,
-0x04,0x00,0x00,0x00,
-0x08,0x00,0x00,0x00,
-0x0C,0x00,0x00,0x00,
-0x12,0x00,0x00,0x00,
-0x18,0x00,0x00,0x00,
-0x24,0x00,0x00,0x00,
-0x30,0x00,0x00,0x00,
-0x48,0x00,0x00,0x00,
-0x60,0x00,0x00,0x00,
-0x6C,0x00,0x00,0x00,
-0x28,0x00,0x00,0x00,
-0x3C,0x00,0x00,0x00,
-0x50,0x00,0x00,0x00,
-0x64,0x00,0x00,0x00,
-0xA0,0x00,0x00,0x00,
-0xC8,0x00,0x00,0x00,
-0xF0,0x00,0x00,0x00,
-0x18,0x01,0x00,0x00,
-0x64,0x00,0x00,0x00,
-0xA0,0x00,0x00,0x00,
-0xF0,0x00,0x00,0x00,
-0x68,0x01,0x00,0x00,
-0x40,0x06,0x00,0x00,
-0x40,0x06,0x00,0x00,
-0x40,0x06,0x00,0x00,
-0xD0,0x07,0x00,0x00,
-0xD0,0x07,0x00,0x00,
-0x72,0x65,0x73,0x65,
-0x74,0x28,0x25,0x78,
-0x29,0x0A,0x00,0x00,
-0xC8,0x82,0x01,0x80,
-0xC8,0xD0,0x00,0x80,
-0xC8,0xD0,0x00,0x80,
-0xC8,0xD0,0x00,0x80,
-0xC8,0xD0,0x00,0x80,
-0x14,0xCF,0x00,0x80,
-0xD0,0x82,0x01,0x80,
-0xC8,0x82,0x01,0x80,
-0xC8,0x82,0x01,0x80,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xF0,0x85,0x01,0x80,
-0xF0,0x85,0x01,0x80,
-0xF0,0x85,0x01,0x80,
-0xF0,0x85,0x01,0x80,
-0xA8,0x82,0x01,0x80,
-0x00,0x85,0x01,0x80,
-0xB0,0x82,0x01,0x80,
-0xB8,0x82,0x01,0x80,
-0xC0,0x82,0x01,0x80,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x08,0x04,0x04,0x08,
-0x02,0x02,0x01,0x01,
-0x50,0x53,0x00,0x00,
-0x80,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xA0,0xA4,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x68,0xA4,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x30,0xA4,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0xF8,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0xC0,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x88,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x70,0xA3,0x01,0x80,
-0x48,0xA3,0x01,0x80,
-0xB8,0x06,0x00,0x80,
-0xAC,0x06,0x00,0x80,
-0xA0,0x06,0x00,0x80,
-0x94,0x06,0x00,0x80,
-0x88,0x06,0x00,0x80,
-0x7C,0x06,0x00,0x80,
-0x70,0x06,0x00,0x80,
-0x64,0x06,0x00,0x80,
-0x58,0x06,0x00,0x80,
-0x4C,0x06,0x00,0x80,
-0x04,0x06,0x00,0x80,
-0x30,0x1F,0x02,0x80,
-0xB0,0x03,0x25,0xB0,
-0x30,0x1F,0x02,0x80,
-0x30,0x1F,0x02,0x80,
-0x30,0x1F,0x02,0x80,
-0x30,0x1F,0x02,0x80,
-0x6A,0x6F,0x69,0x6E,
-0x62,0x73,0x73,0x5F,
-0x68,0x64,0x6C,0x00,
-0x00,0x0E,0x04,0x0E,
-0x10,0x0E,0x14,0x0E,
-0x18,0x0E,0x1C,0x0E,
-0x02,0x04,0x04,0x07,
-0x07,0x0D,0x0D,0x0D,
-0x02,0x07,0x07,0x0D,
-0x0D,0x0F,0x0F,0x0F,
-0x0F,0x00,0x00,0x00,
-0x72,0x65,0x70,0x6F,
-0x72,0x74,0x5F,0x73,
-0x75,0x72,0x76,0x65,
-0x79,0x5F,0x64,0x6F,
-0x6E,0x65,0x00,0x00,
-0x72,0x65,0x70,0x6F,
-0x72,0x74,0x5F,0x6A,
-0x6F,0x69,0x6E,0x5F,
-0x72,0x65,0x73,0x00,
-0x72,0x65,0x70,0x6F,
-0x72,0x74,0x5F,0x64,
-0x65,0x6C,0x5F,0x73,
-0x74,0x61,0x5F,0x65,
-0x76,0x65,0x6E,0x74,
-0x00,0x00,0x00,0x00,
-0x72,0x65,0x70,0x6F,
-0x72,0x74,0x5F,0x61,
-0x64,0x64,0x5F,0x73,
-0x74,0x61,0x5F,0x65,
-0x76,0x65,0x6E,0x74,
-0x00,0x00,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x70,0x72,
-0x6F,0x62,0x65,0x72,
-0x65,0x71,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x70,0x72,
-0x6F,0x62,0x65,0x72,
-0x73,0x70,0x00,0x00,
-0x72,0x65,0x70,0x6F,
-0x72,0x74,0x5F,0x42,
-0x53,0x53,0x49,0x44,
-0x5F,0x69,0x6E,0x66,
-0x6F,0x00,0x00,0x00,
-0x00,0x50,0xF2,0x01,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x61,0x73,
-0x73,0x6F,0x63,0x72,
-0x65,0x71,0x00,0x00,
-0x00,0x50,0xF2,0x04,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x61,0x63,
-0x74,0x69,0x6F,0x6E,
-0x00,0x00,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x61,0x75,
-0x74,0x68,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x64,0x65,
-0x61,0x75,0x74,0x68,
-0x00,0x00,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x64,0x69,
-0x73,0x61,0x73,0x73,
-0x6F,0x63,0x00,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x66,0x72,
-0x61,0x6D,0x65,0x00,
-0x69,0x73,0x73,0x75,
-0x65,0x5F,0x66,0x72,
-0x61,0x6D,0x65,0x5F,
-0x6C,0x65,0x6E,0x00,
-0x30,0x1F,0x02,0x80,
-0xB0,0x03,0x25,0xB0,
-0xF8,0x00,0x25,0xB0,
-0x18,0x03,0x25,0xB0,
-0x44,0x44,0x33,0x33,
-0x06,0x00,0x2A,0xB0,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x24,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0xA8,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x9C,0x3E,0x01,0x80,
-0x90,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x84,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x78,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x6C,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x60,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x54,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x48,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x3C,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x28,0x3E,0x01,0x80,
-0x30,0x3E,0x01,0x80,
-0x68,0x3F,0x01,0x80,
-0x5C,0x3F,0x01,0x80,
-0x50,0x3F,0x01,0x80,
-0x44,0x3F,0x01,0x80,
-0x38,0x3F,0x01,0x80,
-0x2C,0x3F,0x01,0x80,
-0x20,0x3F,0x01,0x80,
-0x14,0x3F,0x01,0x80,
-0x08,0x3F,0x01,0x80,
-0xFC,0x3E,0x01,0x80,
-0xF0,0x3E,0x01,0x80,
-0xE4,0x3E,0x01,0x80,
-0x00,0x50,0xF2,0x01,
-0x00,0x50,0xF2,0x02,
-0x00,0x0F,0xAC,0x02,
-0xBC,0xE3,0x01,0x80,
-0x67,0x66,0x66,0x66,
-0x7C,0x88,0x00,0x80,
-0x64,0x88,0x00,0x80,
-0x4C,0x88,0x00,0x80,
-0x34,0x88,0x00,0x80,
-0x1C,0x88,0x00,0x80,
-0x04,0x88,0x00,0x80,
-0xE0,0x87,0x00,0x80,
-0x00,0x02,0x00,0x00,
-0x08,0x09,0x00,0x00,
-0x18,0x96,0x00,0x80,
-0x24,0x96,0x00,0x80,
-0x30,0x96,0x00,0x80,
-0x3C,0x96,0x00,0x80,
-0x18,0x96,0x00,0x80,
-0x18,0x96,0x00,0x80,
-0x18,0x96,0x00,0x80,
-0x18,0x96,0x00,0x80,
-0x48,0x96,0x00,0x80,
-0x54,0x96,0x00,0x80,
-0x60,0x96,0x00,0x80,
-0x6C,0x96,0x00,0x80,
-0x30,0x1F,0x02,0x80,
-0x84,0x0E,0x25,0xB0,
-0x88,0x0E,0x25,0xB0,
-0x8C,0x0E,0x25,0xB0,
-0xD0,0x0E,0x25,0xB0,
-0xD8,0x0E,0x25,0xB0,
-0x20,0x08,0x25,0xB0,
-0x74,0x0E,0x25,0xB0,
-0x80,0x0E,0x25,0xB0,
-0x84,0x0E,0x25,0xB0,
-0x88,0x0E,0x25,0xB0,
-0x8C,0x0E,0x25,0xB0,
-0xD0,0x0E,0x25,0xB0,
-0xD8,0x0E,0x25,0xB0,
-0x14,0x0C,0x25,0xB0,
-0x88,0x0C,0x25,0xB0,
-0x1C,0x0C,0x25,0xB0,
-0xFE,0x01,0x80,0x7F,
-0xE2,0x01,0x80,0x78,
-0xC7,0x01,0xC0,0x71,
-0xAE,0x01,0x80,0x6B,
-0x95,0x01,0x40,0x65,
-0x7F,0x01,0xC0,0x5F,
-0x69,0x01,0x40,0x5A,
-0x55,0x01,0x40,0x55,
-0x42,0x01,0x80,0x50,
-0x30,0x01,0x00,0x4C,
-0x1F,0x01,0xC0,0x47,
-0x0F,0x01,0xC0,0x43,
-0x00,0x01,0x00,0x40,
-0xF2,0x00,0x80,0x3C,
-0xE4,0x00,0x00,0x39,
-0xD7,0x00,0xC0,0x35,
-0xCB,0x00,0xC0,0x32,
-0xC0,0x00,0x00,0x30,
-0xB5,0x00,0x40,0x2D,
-0xAB,0x00,0xC0,0x2A,
-0xA2,0x00,0x80,0x28,
-0x98,0x00,0x00,0x26,
-0x90,0x00,0x00,0x24,
-0x88,0x00,0x00,0x22,
-0x80,0x00,0x00,0x20,
-0x79,0x00,0x40,0x1E,
-0x72,0x00,0x80,0x1C,
-0x6C,0x00,0x00,0x1B,
-0x66,0x00,0x80,0x19,
-0x60,0x00,0x00,0x18,
-0x5B,0x00,0xC0,0x16,
-0x56,0x00,0x80,0x15,
-0x51,0x00,0x40,0x14,
-0x4C,0x00,0x00,0x13,
-0x48,0x00,0x00,0x12,
-0x44,0x00,0x00,0x11,
-0x40,0x00,0x00,0x10,
-0x36,0x35,0x2E,0x25,
-0x1C,0x12,0x09,0x04,
-0x33,0x32,0x2B,0x23,
-0x1A,0x11,0x08,0x04,
-0x30,0x2F,0x29,0x21,
-0x19,0x10,0x08,0x03,
-0x2D,0x2D,0x27,0x1F,
-0x18,0x0F,0x08,0x03,
-0x2B,0x2A,0x25,0x1E,
-0x16,0x0E,0x07,0x03,
-0x28,0x28,0x22,0x1C,
-0x15,0x0D,0x07,0x03,
-0x26,0x25,0x21,0x1B,
-0x14,0x0D,0x06,0x03,
-0x24,0x23,0x1F,0x19,
-0x13,0x0C,0x06,0x03,
-0x22,0x21,0x1D,0x18,
-0x11,0x0B,0x06,0x02,
-0x20,0x20,0x1B,0x16,
-0x11,0x08,0x05,0x02,
-0x1F,0x1E,0x1A,0x15,
-0x10,0x0A,0x05,0x02,
-0x1D,0x1C,0x18,0x14,
-0x0F,0x0A,0x05,0x02,
-0x1B,0x1A,0x17,0x13,
-0x0E,0x09,0x04,0x02,
-0x1A,0x19,0x16,0x12,
-0x0D,0x09,0x04,0x02,
-0x18,0x17,0x15,0x11,
-0x0C,0x08,0x04,0x02,
-0x17,0x16,0x13,0x10,
-0x0C,0x08,0x04,0x02,
-0x16,0x15,0x12,0x0F,
-0x0B,0x07,0x04,0x01,
-0x14,0x14,0x11,0x0E,
-0x0B,0x07,0x03,0x02,
-0x13,0x13,0x10,0x0D,
-0x0A,0x06,0x03,0x01,
-0x12,0x12,0x0F,0x0C,
-0x09,0x06,0x03,0x01,
-0x11,0x11,0x0F,0x0C,
-0x09,0x06,0x03,0x01,
-0x10,0x10,0x0E,0x0B,
-0x08,0x05,0x03,0x01,
-0x0F,0x0F,0x0D,0x0B,
-0x08,0x05,0x03,0x01,
-0x0E,0x0E,0x0C,0x0A,
-0x08,0x05,0x02,0x01,
-0x0D,0x0D,0x0C,0x0A,
-0x07,0x05,0x02,0x01,
-0x0D,0x0C,0x0B,0x09,
-0x07,0x04,0x02,0x01,
-0x0C,0x0C,0x0A,0x09,
-0x06,0x04,0x02,0x01,
-0x0B,0x0B,0x0A,0x08,
-0x06,0x04,0x02,0x01,
-0x0B,0x0A,0x09,0x08,
-0x06,0x04,0x02,0x01,
-0x0A,0x0A,0x09,0x07,
-0x05,0x03,0x02,0x01,
-0x0A,0x09,0x08,0x07,
-0x05,0x03,0x02,0x01,
-0x09,0x09,0x08,0x06,
-0x05,0x03,0x01,0x01,
-0x09,0x08,0x07,0x06,
-0x04,0x03,0x01,0x01,
-0x36,0x35,0x2E,0x1B,
-0x00,0x00,0x00,0x00,
-0x33,0x32,0x2B,0x19,
-0x00,0x00,0x00,0x00,
-0x30,0x2F,0x29,0x18,
-0x00,0x00,0x00,0x00,
-0x2D,0x2D,0x17,0x17,
-0x00,0x00,0x00,0x00,
-0x2B,0x2A,0x25,0x15,
-0x00,0x00,0x00,0x00,
-0x28,0x28,0x24,0x14,
-0x00,0x00,0x00,0x00,
-0x26,0x25,0x21,0x13,
-0x00,0x00,0x00,0x00,
-0x24,0x23,0x1F,0x12,
-0x00,0x00,0x00,0x00,
-0x22,0x21,0x1D,0x11,
-0x00,0x00,0x00,0x00,
-0x20,0x20,0x1B,0x10,
-0x00,0x00,0x00,0x00,
-0x1F,0x1E,0x1A,0x0F,
-0x00,0x00,0x00,0x00,
-0x1D,0x1C,0x18,0x0E,
-0x00,0x00,0x00,0x00,
-0x1B,0x1A,0x17,0x0E,
-0x00,0x00,0x00,0x00,
-0x1A,0x19,0x16,0x0D,
-0x00,0x00,0x00,0x00,
-0x18,0x17,0x15,0x0C,
-0x00,0x00,0x00,0x00,
-0x17,0x16,0x13,0x0B,
-0x00,0x00,0x00,0x00,
-0x16,0x15,0x12,0x0B,
-0x00,0x00,0x00,0x00,
-0x14,0x14,0x11,0x0A,
-0x00,0x00,0x00,0x00,
-0x13,0x13,0x10,0x0A,
-0x00,0x00,0x00,0x00,
-0x12,0x12,0x0F,0x09,
-0x00,0x00,0x00,0x00,
-0x11,0x11,0x0F,0x09,
-0x00,0x00,0x00,0x00,
-0x10,0x10,0x0E,0x08,
-0x00,0x00,0x00,0x00,
-0x0F,0x0F,0x0D,0x08,
-0x00,0x00,0x00,0x00,
-0x0E,0x0E,0x0C,0x07,
-0x00,0x00,0x00,0x00,
-0x0D,0x0D,0x0C,0x07,
-0x00,0x00,0x00,0x00,
-0x0D,0x0C,0x0B,0x06,
-0x00,0x00,0x00,0x00,
-0x0C,0x0C,0x0A,0x06,
-0x00,0x00,0x00,0x00,
-0x0B,0x0B,0x0A,0x06,
-0x00,0x00,0x00,0x00,
-0x0B,0x0A,0x09,0x05,
-0x00,0x00,0x00,0x00,
-0x0A,0x0A,0x09,0x05,
-0x00,0x00,0x00,0x00,
-0x0A,0x09,0x08,0x05,
-0x00,0x00,0x00,0x00,
-0x09,0x09,0x08,0x05,
-0x00,0x00,0x00,0x00,
-0x09,0x08,0x07,0x04,
-0x00,0x00,0x00,0x00,
-0x06,0x00,0x2A,0xB0,
-0x05,0x00,0x2A,0xB0,
-0x54,0x83,0x01,0x80,
-0xC4,0x83,0x01,0x80,
-0x80,0x83,0x01,0x80,
-0xC4,0x83,0x01,0x80,
-0xC4,0x83,0x01,0x80,
-0xC4,0x83,0x01,0x80,
-0xC4,0x83,0x01,0x80,
-0x2C,0x83,0x01,0x80,
-0x00,0x01,0x02,0x02,
-0x03,0x03,0x03,0x03,
-0x04,0x04,0x04,0x04,
-0x04,0x04,0x04,0x04,
-0x05,0x05,0x05,0x05,
-0x05,0x05,0x05,0x05,
-0x05,0x05,0x05,0x05,
-0x05,0x05,0x05,0x05,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x06,0x06,0x06,0x06,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x07,0x07,0x07,0x07,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x28,0x28,0x28,
-0x28,0x28,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0x08,0x08,0x08,0x08,
-0xA0,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x04,0x04,0x04,0x04,
-0x04,0x04,0x04,0x04,
-0x04,0x04,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x41,0x41,0x41,
-0x41,0x41,0x41,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x42,0x42,0x42,
-0x42,0x42,0x42,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x10,
-0x10,0x10,0x10,0x08,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0xA0,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x10,0x10,0x10,0x10,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x10,
-0x01,0x01,0x01,0x01,
-0x01,0x01,0x01,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x10,
-0x02,0x02,0x02,0x02,
-0x02,0x02,0x02,0x00,
-0x2D,0x5C,0x7C,0x2F,
-0x00,0x00,0x00,0x00,
-0xFD,0xFA,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x45,0xC4,0xF0,
-0x00,0x45,0xC4,0xF0,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x00,0x45,0xB5,0x60,
-0xFF,0xFF,0xFF,0xFF,
-0x00,0x00,0x00,0x02,
-0x00,0x00,0x00,0x00,
-0x00,0x00,0x00,0x00,
-0x08,0xFB,0x90,0xB8,
-0xFF,0xFF,0xFF,0xFF,
-};
diff --git a/drivers/net/wireless/rtl8192cu/include/hal_com.h b/drivers/net/wireless/rtl8192cu/include/hal_com.h
new file mode 100644
index 0000000..42aae0e
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/hal_com.h
@@ -0,0 +1,146 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __HAL_COMMON_H__
+#define __HAL_COMMON_H__
+
+//CCK
+#define RATE_1M BIT(0)
+#define RATE_2M BIT(1)
+#define RATE_5_5M BIT(2)
+#define RATE_11M BIT(3)
+//OFDM
+#define RATE_6M BIT(4)
+#define RATE_9M BIT(5)
+#define RATE_12M BIT(6)
+#define RATE_18M BIT(7)
+#define RATE_24M BIT(8)
+#define RATE_36M BIT(9)
+#define RATE_48M BIT(10)
+#define RATE_54M BIT(11)
+//MCS 1 Spatial Stream
+#define RATE_MCS0 BIT(12)
+#define RATE_MCS1 BIT(13)
+#define RATE_MCS2 BIT(14)
+#define RATE_MCS3 BIT(15)
+#define RATE_MCS4 BIT(16)
+#define RATE_MCS5 BIT(17)
+#define RATE_MCS6 BIT(18)
+#define RATE_MCS7 BIT(19)
+//MCS 2 Spatial Stream
+#define RATE_MCS8 BIT(20)
+#define RATE_MCS9 BIT(21)
+#define RATE_MCS10 BIT(22)
+#define RATE_MCS11 BIT(23)
+#define RATE_MCS12 BIT(24)
+#define RATE_MCS13 BIT(25)
+#define RATE_MCS14 BIT(26)
+#define RATE_MCS15 BIT(27)
+
+// ALL CCK Rate
+#define RATE_ALL_CCK RATR_1M|RATR_2M|RATR_55M|RATR_11M
+#define RATE_ALL_OFDM_AG RATR_6M|RATR_9M|RATR_12M|RATR_18M|RATR_24M|\
+ RATR_36M|RATR_48M|RATR_54M
+#define RATE_ALL_OFDM_1SS RATR_MCS0|RATR_MCS1|RATR_MCS2|RATR_MCS3 |\
+ RATR_MCS4|RATR_MCS5|RATR_MCS6 |RATR_MCS7
+#define RATE_ALL_OFDM_2SS RATR_MCS8|RATR_MCS9 |RATR_MCS10|RATR_MCS11|\
+ RATR_MCS12|RATR_MCS13|RATR_MCS14|RATR_MCS15
+
+/*------------------------------ Tx Desc definition Macro ------------------------*/
+//#pragma mark -- Tx Desc related definition. --
+//----------------------------------------------------------------------------
+//-----------------------------------------------------------
+// Rate
+//-----------------------------------------------------------
+// CCK Rates, TxHT = 0
+#define DESC_RATE1M 0x00
+#define DESC_RATE2M 0x01
+#define DESC_RATE5_5M 0x02
+#define DESC_RATE11M 0x03
+
+// OFDM Rates, TxHT = 0
+#define DESC_RATE6M 0x04
+#define DESC_RATE9M 0x05
+#define DESC_RATE12M 0x06
+#define DESC_RATE18M 0x07
+#define DESC_RATE24M 0x08
+#define DESC_RATE36M 0x09
+#define DESC_RATE48M 0x0a
+#define DESC_RATE54M 0x0b
+
+// MCS Rates, TxHT = 1
+#define DESC_RATEMCS0 0x0c
+#define DESC_RATEMCS1 0x0d
+#define DESC_RATEMCS2 0x0e
+#define DESC_RATEMCS3 0x0f
+#define DESC_RATEMCS4 0x10
+#define DESC_RATEMCS5 0x11
+#define DESC_RATEMCS6 0x12
+#define DESC_RATEMCS7 0x13
+#define DESC_RATEMCS8 0x14
+#define DESC_RATEMCS9 0x15
+#define DESC_RATEMCS10 0x16
+#define DESC_RATEMCS11 0x17
+#define DESC_RATEMCS12 0x18
+#define DESC_RATEMCS13 0x19
+#define DESC_RATEMCS14 0x1a
+#define DESC_RATEMCS15 0x1b
+#define DESC_RATEMCS15_SG 0x1c
+#define DESC_RATEMCS32 0x20
+
+//============================================================
+// Global var
+//============================================================
+#define OFDM_TABLE_SIZE_92C 37
+#define OFDM_TABLE_SIZE_92D 43
+#define CCK_TABLE_SIZE 33
+
+extern u32 OFDMSwingTable[OFDM_TABLE_SIZE_92D] ;
+
+extern u8 CCKSwingTable_Ch1_Ch13[CCK_TABLE_SIZE][8];
+
+extern u8 CCKSwingTable_Ch14 [CCK_TABLE_SIZE][8];
+
+#ifdef CONFIG_CHIP_VER_INTEGRATION
+void dump_chip_info(HAL_VERSION ChipVersion);
+#endif
+
+u8 //return the final channel plan decision
+hal_com_get_channel_plan(
+ IN PADAPTER padapter,
+ IN u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
+ IN u8 sw_channel_plan, //channel plan from SW (registry/module param)
+ IN u8 def_channel_plan, //channel plan used when the former two is invalid
+ IN BOOLEAN AutoLoadFail
+ );
+
+void HalSetBrateCfg(
+ IN PADAPTER Adapter,
+ IN u8 *mBratesOS,
+ OUT u16 *pBrateCfg);
+
+u8 MRateToHwRate(u8 rate);
+
+void hal_init_macaddr(_adapter *adapter);
+
+void c2h_evt_clear(_adapter *adapter);
+s32 c2h_evt_read(_adapter *adapter, u8 *buf);
+
+#endif //__HAL_COMMON_H__
+
diff --git a/drivers/net/wireless/rtl8192cu/include/hal_init.h b/drivers/net/wireless/rtl8192cu/include/hal_init.h
deleted file mode 100644
index ec48f83..0000000
--- a/drivers/net/wireless/rtl8192cu/include/hal_init.h
+++ /dev/null
@@ -1,305 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
- ******************************************************************************/
-#ifndef __HAL_INIT_H__
-#define __HAL_INIT_H__
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-
-#ifdef CONFIG_PCI_HCI
-#include <pci_hal.h>
-#endif
-
-
-enum RTL871X_HCI_TYPE {
-
- RTW_SDIO,
- RTW_USB,
- RTW_PCIE
-};
-
-enum _CHIP_TYPE {
-
- NULL_CHIP_TYPE,
- RTL8712_8188S_8191S_8192S,
- RTL8188C_8192C,
- RTL8192D,
- MAX_CHIP_TYPE
-};
-
-
-typedef enum _HW_VARIABLES{
- HW_VAR_MEDIA_STATUS,
- HW_VAR_MEDIA_STATUS1,
- HW_VAR_SET_OPMODE,
- HW_VAR_MAC_ADDR,
- HW_VAR_BSSID,
- HW_VAR_INIT_RTS_RATE,
- HW_VAR_BASIC_RATE,
- HW_VAR_TXPAUSE,
- HW_VAR_BCN_FUNC,
- HW_VAR_CORRECT_TSF,
- HW_VAR_CHECK_BSSID,
- HW_VAR_MLME_DISCONNECT,
- HW_VAR_MLME_SITESURVEY,
- HW_VAR_MLME_JOIN,
- HW_VAR_BEACON_INTERVAL,
- HW_VAR_SLOT_TIME,
- HW_VAR_SIFS,
- HW_VAR_ACK_PREAMBLE,
- HW_VAR_SEC_CFG,
- HW_VAR_TX_BCN_DONE,
- HW_VAR_RF_TYPE,
- HW_VAR_DM_FLAG,
- HW_VAR_DM_FUNC_OP,
- HW_VAR_DM_FUNC_SET,
- HW_VAR_DM_FUNC_CLR,
- HW_VAR_CAM_EMPTY_ENTRY,
- HW_VAR_CAM_INVALID_ALL,
- HW_VAR_CAM_WRITE,
- HW_VAR_AC_PARAM_VO,
- HW_VAR_AC_PARAM_VI,
- HW_VAR_AC_PARAM_BE,
- HW_VAR_AC_PARAM_BK,
- HW_VAR_ACM_CTRL,
- HW_VAR_AMPDU_MIN_SPACE,
- HW_VAR_AMPDU_FACTOR,
- HW_VAR_RXDMA_AGG_PG_TH,
- HW_VAR_SET_RPWM,
- HW_VAR_H2C_FW_PWRMODE,
- HW_VAR_H2C_FW_JOINBSSRPT,
- HW_VAR_FWLPS_RF_ON,
- HW_VAR_H2C_FW_P2P_PS_OFFLOAD,
- HW_VAR_TDLS_WRCR,
- HW_VAR_TDLS_INIT_CH_SEN,
- HW_VAR_TDLS_RS_RCR,
- HW_VAR_TDLS_DONE_CH_SEN,
- HW_VAR_INITIAL_GAIN,
- HW_VAR_TRIGGER_GPIO_0,
- HW_VAR_BT_SET_COEXIST,
- HW_VAR_BT_ISSUE_DELBA,
- HW_VAR_CURRENT_ANTENNA,
- HW_VAR_ANTENNA_DIVERSITY_LINK,
- HW_VAR_ANTENNA_DIVERSITY_SELECT,
- HW_VAR_SWITCH_EPHY_WoWLAN,
- HW_VAR_EFUSE_BYTES,
- HW_VAR_FIFO_CLEARN_UP,
- HW_VAR_CHECK_TXBUF,
- HW_VAR_APFM_ON_MAC, //Auto FSM to Turn On, include clock, isolation, power control for MAC only HW_VAR_WOWLAN,}HW_VARIABLES;
- HW_VAR_WOWLAN,
-}HW_VARIABLES;
-
-typedef enum _HAL_DEF_VARIABLE{
- HAL_DEF_UNDERCORATEDSMOOTHEDPWDB,
- HAL_DEF_IS_SUPPORT_ANT_DIV,
- HAL_DEF_CURRENT_ANTENNA,
- HAL_DEF_DRVINFO_SZ,
- HAL_DEF_MAX_RECVBUF_SZ,
- HAL_DEF_RX_PACKET_OFFSET,
- HAL_DEF_DBG_DUMP_RXPKT,//for dbg
- HAL_DEF_DBG_DM_FUNC,//for dbg
-}HAL_DEF_VARIABLE;
-
-typedef enum _HAL_INTF_PS_FUNC{
- HAL_USB_SELECT_SUSPEND,
- HAL_MAX_ID,
-}HAL_INTF_PS_FUNC;
-
-struct hal_ops {
- u32 (*hal_init)(PADAPTER Adapter);
- u32 (*hal_deinit)(PADAPTER Adapter);
-
- void (*free_hal_data)(PADAPTER Adapter);
-
- u32 (*inirp_init)(PADAPTER Adapter);
- u32 (*inirp_deinit)(PADAPTER Adapter);
-
- s32 (*init_xmit_priv)(PADAPTER Adapter);
- void (*free_xmit_priv)(PADAPTER Adapter);
-
- s32 (*init_recv_priv)(PADAPTER Adapter);
- void (*free_recv_priv)(PADAPTER Adapter);
-
- void (*InitSwLeds)(PADAPTER Adapter);
- void (*DeInitSwLeds)(PADAPTER Adapter);
-
- void (*dm_init)(PADAPTER Adapter);
- void (*dm_deinit)(PADAPTER Adapter);
- void (*read_chip_version)(PADAPTER Adapter);
-
- void (*init_default_value)(PADAPTER Adapter);
-
- void (*intf_chip_configure)(PADAPTER Adapter);
-
- void (*read_adapter_info)(PADAPTER Adapter);
-
- void (*enable_interrupt)(PADAPTER Adapter);
- void (*disable_interrupt)(PADAPTER Adapter);
- s32 (*interrupt_handler)(PADAPTER Adapter);
-
- void (*set_bwmode_handler)(PADAPTER Adapter, HT_CHANNEL_WIDTH Bandwidth, u8 Offset);
- void (*set_channel_handler)(PADAPTER Adapter, u8 channel);
-
- void (*hal_dm_watchdog)(PADAPTER Adapter);
-
- void (*SetHwRegHandler)(PADAPTER Adapter, u8 variable,u8* val);
- void (*GetHwRegHandler)(PADAPTER Adapter, u8 variable,u8* val);
-
- u8 (*GetHalDefVarHandler)(PADAPTER Adapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
- u8 (*SetHalDefVarHandler)(PADAPTER Adapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
-
- void (*UpdateRAMaskHandler)(PADAPTER Adapter, u32 mac_id);
- void (*SetBeaconRelatedRegistersHandler)(PADAPTER Adapter);
-
- void (*Add_RateATid)(PADAPTER Adapter, u32 bitmap, u8 arg, u8 mac_id);
-
-#ifdef CONFIG_ANTENNA_DIVERSITY
- u8 (*SwAntDivBeforeLinkHandler)(PADAPTER Adapter);
- void (*SwAntDivCompareHandler)(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);
-#endif
- u8 (*interface_ps_func)(PADAPTER Adapter,HAL_INTF_PS_FUNC efunc_id, u8* val);
-
- s32 (*hal_xmit)(PADAPTER Adapter, struct xmit_frame *pxmitframe);
- void (*mgnt_xmit)(PADAPTER Adapter, struct xmit_frame *pmgntframe);
-
- u32 (*read_bbreg)(PADAPTER Adapter, u32 RegAddr, u32 BitMask);
- void (*write_bbreg)(PADAPTER Adapter, u32 RegAddr, u32 BitMask, u32 Data);
- u32 (*read_rfreg)(PADAPTER Adapter, u32 eRFPath, u32 RegAddr, u32 BitMask);
- void (*write_rfreg)(PADAPTER Adapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
-
-#ifdef CONFIG_HOSTAPD_MLME
- s32 (*hostap_mgnt_xmit_entry)(PADAPTER Adapter, _pkt *pkt);
-#endif
- void (*EfusePowerSwitch)(PADAPTER pAdapter, u8 bWrite, u8 PwrState);
- void (*ReadEFuse)(PADAPTER Adapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf, BOOLEAN bPseudoTest);
- void (*EFUSEGetEfuseDefinition)(PADAPTER pAdapter, u8 efuseType, u8 type, PVOID *pOut, BOOLEAN bPseudoTest);
- u16 (*EfuseGetCurrentSize)(PADAPTER pAdapter, u8 efuseType, BOOLEAN bPseudoTest);
- int (*Efuse_PgPacketRead)(PADAPTER pAdapter, u8 offset, u8 *data, BOOLEAN bPseudoTest);
- int (*Efuse_PgPacketWrite)(PADAPTER pAdapter, u8 offset, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
- u8 (*Efuse_WordEnableDataWrite)(PADAPTER pAdapter, u16 efuse_addr, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
-
-#ifdef DBG_CONFIG_ERROR_DETECT
- void (*sreset_init_value)(_adapter *padapter);
- void (*sreset_reset_value)(_adapter *padapter);
- void (*silentreset)(_adapter *padapter);
- void (*sreset_xmit_status_check)(_adapter *padapter);
- void (*sreset_linked_status_check) (_adapter *padapter);
- u8 (*sreset_get_wifi_status)(_adapter *padapter);
-#endif
-
-#ifdef CONFIG_IOL
- int (*IOL_exec_cmds_sync)(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms);
-#endif
-};
-
-typedef enum _RT_EEPROM_TYPE{
- EEPROM_93C46,
- EEPROM_93C56,
- EEPROM_BOOT_EFUSE,
-}RT_EEPROM_TYPE,*PRT_EEPROM_TYPE;
-
-#define USB_HIGH_SPEED_BULK_SIZE 512
-#define USB_FULL_SPEED_BULK_SIZE 64
-
-#define RF_CHANGE_BY_INIT 0
-#define RF_CHANGE_BY_IPS BIT28
-#define RF_CHANGE_BY_PS BIT29
-#define RF_CHANGE_BY_HW BIT30
-#define RF_CHANGE_BY_SW BIT31
-
-typedef enum _HARDWARE_TYPE{
- HARDWARE_TYPE_RTL8180,
- HARDWARE_TYPE_RTL8185,
- HARDWARE_TYPE_RTL8187,
- HARDWARE_TYPE_RTL8188,
- HARDWARE_TYPE_RTL8190P,
- HARDWARE_TYPE_RTL8192E,
- HARDWARE_TYPE_RTL819xU,
- HARDWARE_TYPE_RTL8192SE,
- HARDWARE_TYPE_RTL8192SU,
- HARDWARE_TYPE_RTL8192CE,
- HARDWARE_TYPE_RTL8192CU,
- HARDWARE_TYPE_RTL8192DE,
- HARDWARE_TYPE_RTL8192DU,
- HARDWARE_TYPE_RTL8723E,
- HARDWARE_TYPE_RTL8723U,
-}HARDWARE_TYPE;
-
-#define IS_HARDWARE_TYPE_8192CE(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192CE)
-#define IS_HARDWARE_TYPE_8192CU(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192CU)
-
-#define IS_HARDWARE_TYPE_8192DE(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192DE)
-#define IS_HARDWARE_TYPE_8192DU(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192DU)
-
-#define IS_HARDWARE_TYPE_8723E(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8723E)
-#define IS_HARDWARE_TYPE_8723U(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8723U)
-
-#define IS_HARDWARE_TYPE_8192C(_Adapter) \
-(IS_HARDWARE_TYPE_8192CE(_Adapter) || IS_HARDWARE_TYPE_8192CU(_Adapter))
-
-#define IS_HARDWARE_TYPE_8192D(_Adapter) \
-(IS_HARDWARE_TYPE_8192DE(_Adapter) || IS_HARDWARE_TYPE_8192DU(_Adapter))
-
-#define IS_HARDWARE_TYPE_8723(_Adapter) \
-(IS_HARDWARE_TYPE_8723E(_Adapter) || IS_HARDWARE_TYPE_8723U(_Adapter))
-
-
-typedef struct eeprom_priv EEPROM_EFUSE_PRIV, *PEEPROM_EFUSE_PRIV;
-#define GET_EEPROM_EFUSE_PRIV(priv) (&priv->eeprompriv)
-
-typedef enum _wowlan_subcode{
- WOWLAN_PATTERN_MATCH = 1,
- WOWLAN_MAGIC_PACKET = 2,
- WOWLAN_UNICAST = 3,
- WOWLAN_SET_PATTERN = 4,
- WOWLAN_DUMP_REG = 5,
- WOWLAN_ENABLE = 6,
- WOWLAN_DISABLE = 7,
- WOWLAN_STATUS = 8,
- WOWLAN_DEBUG_RELOAD_FW = 9,
- WOWLAN_DEBUG_1 =10,
- WOWLAN_DEBUG_2 =11
-}wowlan_subcode;
-
-struct wowlan_ioctl_param{
- unsigned int subcode;
- unsigned int subcode_value;
- unsigned int wakeup_reason;
- unsigned int len;
- unsigned char pattern[0];
-};
-void rtw_dm_init(_adapter *padapter);
-void rtw_sw_led_init(_adapter *padapter);
-void rtw_sw_led_deinit(_adapter *padapter);
-
-uint rtw_hal_init(_adapter *padapter);
-uint rtw_hal_deinit(_adapter *padapter);
-void rtw_hal_stop(_adapter *padapter);
-
-void intf_chip_configure(_adapter *padapter);
-void intf_read_chip_info(_adapter *padapter);
-void intf_read_chip_version(_adapter *padapter);
-#ifdef DBG_CONFIG_ERROR_DETECT
-void rtw_sreset_init(_adapter *padapter);
-#endif
-
-#endif //__HAL_INIT_H__
-
diff --git a/drivers/net/wireless/rtl8192cu/include/hal_intf.h b/drivers/net/wireless/rtl8192cu/include/hal_intf.h
new file mode 100644
index 0000000..dd82662
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/hal_intf.h
@@ -0,0 +1,432 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __HAL_INTF_H__
+#define __HAL_INTF_H__
+
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+
+#ifdef CONFIG_PCI_HCI
+#include <pci_hal.h>
+#endif
+
+
+enum RTL871X_HCI_TYPE {
+
+ RTW_SDIO,
+ RTW_USB,
+ RTW_PCIE
+};
+
+enum _CHIP_TYPE {
+
+ NULL_CHIP_TYPE,
+ RTL8712_8188S_8191S_8192S,
+ RTL8188C_8192C,
+ RTL8192D,
+ RTL8723A,
+ RTL8188E,
+ MAX_CHIP_TYPE
+};
+
+
+typedef enum _HW_VARIABLES{
+ HW_VAR_MEDIA_STATUS,
+ HW_VAR_MEDIA_STATUS1,
+ HW_VAR_SET_OPMODE,
+ HW_VAR_MAC_ADDR,
+ HW_VAR_BSSID,
+ HW_VAR_INIT_RTS_RATE,
+ HW_VAR_INIT_DATA_RATE,
+ HW_VAR_BASIC_RATE,
+ HW_VAR_TXPAUSE,
+ HW_VAR_BCN_FUNC,
+ HW_VAR_CORRECT_TSF,
+ HW_VAR_CHECK_BSSID,
+ HW_VAR_MLME_DISCONNECT,
+ HW_VAR_MLME_SITESURVEY,
+ HW_VAR_MLME_JOIN,
+ HW_VAR_ON_RCR_AM,
+ HW_VAR_OFF_RCR_AM,
+ HW_VAR_BEACON_INTERVAL,
+ HW_VAR_SLOT_TIME,
+ HW_VAR_RESP_SIFS,
+ HW_VAR_ACK_PREAMBLE,
+ HW_VAR_SEC_CFG,
+ HW_VAR_BCN_VALID,
+ HW_VAR_RF_TYPE,
+ HW_VAR_DM_FLAG,
+ HW_VAR_DM_FUNC_OP,
+ HW_VAR_DM_FUNC_SET,
+ HW_VAR_DM_FUNC_CLR,
+ HW_VAR_DM_INIT_PWDB,
+ HW_VAR_CAM_EMPTY_ENTRY,
+ HW_VAR_CAM_INVALID_ALL,
+ HW_VAR_CAM_WRITE,
+ HW_VAR_CAM_READ,
+ HW_VAR_AC_PARAM_VO,
+ HW_VAR_AC_PARAM_VI,
+ HW_VAR_AC_PARAM_BE,
+ HW_VAR_AC_PARAM_BK,
+ HW_VAR_ACM_CTRL,
+ HW_VAR_AMPDU_MIN_SPACE,
+ HW_VAR_AMPDU_FACTOR,
+ HW_VAR_RXDMA_AGG_PG_TH,
+ HW_VAR_SET_RPWM,
+ HW_VAR_H2C_FW_PWRMODE,
+ HW_VAR_H2C_FW_JOINBSSRPT,
+ HW_VAR_FWLPS_RF_ON,
+ HW_VAR_H2C_FW_P2P_PS_OFFLOAD,
+ HW_VAR_TDLS_WRCR,
+ HW_VAR_TDLS_INIT_CH_SEN,
+ HW_VAR_TDLS_RS_RCR,
+ HW_VAR_TDLS_DONE_CH_SEN,
+ HW_VAR_INITIAL_GAIN,
+ HW_VAR_TRIGGER_GPIO_0,
+ HW_VAR_BT_SET_COEXIST,
+ HW_VAR_BT_ISSUE_DELBA,
+ HW_VAR_CURRENT_ANTENNA,
+ HW_VAR_ANTENNA_DIVERSITY_LINK,
+ HW_VAR_ANTENNA_DIVERSITY_SELECT,
+ HW_VAR_SWITCH_EPHY_WoWLAN,
+ HW_VAR_EFUSE_BYTES,
+ HW_VAR_FIFO_CLEARN_UP,
+ HW_VAR_CHECK_TXBUF,
+ HW_VAR_APFM_ON_MAC, //Auto FSM to Turn On, include clock, isolation, power control for MAC only
+ HW_VAR_WOWLAN,
+ HW_VAR_VID,
+ HW_VAR_PID,
+ HW_VAR_MBSSID_CAM_WRITE,
+ HW_VAR_MBSSID_CAM_CLEAR,
+ HW_VAR_RCR_MBSSID_EN,
+ HW_VAR_USB_RXAGG_PAGE_TO,
+}HW_VARIABLES;
+
+typedef enum _HAL_DEF_VARIABLE{
+ HAL_DEF_UNDERCORATEDSMOOTHEDPWDB,
+ HAL_DEF_IS_SUPPORT_ANT_DIV,
+ HAL_DEF_CURRENT_ANTENNA,
+ HAL_DEF_DRVINFO_SZ,
+ HAL_DEF_MAX_RECVBUF_SZ,
+ HAL_DEF_RX_PACKET_OFFSET,
+ HAL_DEF_DBG_DUMP_RXPKT,//for dbg
+ HAL_DEF_DBG_DM_FUNC,//for dbg
+ HAL_DEF_DUAL_MAC_MODE,
+}HAL_DEF_VARIABLE;
+
+typedef enum _HAL_INTF_PS_FUNC{
+ HAL_USB_SELECT_SUSPEND,
+ HAL_MAX_ID,
+}HAL_INTF_PS_FUNC;
+
+typedef s32 (*c2h_id_filter)(u8 id);
+
+struct hal_ops {
+ u32 (*hal_init)(PADAPTER Adapter);
+ u32 (*hal_deinit)(PADAPTER Adapter);
+
+ void (*free_hal_data)(PADAPTER Adapter);
+
+ u32 (*inirp_init)(PADAPTER Adapter);
+ u32 (*inirp_deinit)(PADAPTER Adapter);
+
+ s32 (*init_xmit_priv)(PADAPTER Adapter);
+ void (*free_xmit_priv)(PADAPTER Adapter);
+
+ s32 (*init_recv_priv)(PADAPTER Adapter);
+ void (*free_recv_priv)(PADAPTER Adapter);
+
+ void (*InitSwLeds)(PADAPTER Adapter);
+ void (*DeInitSwLeds)(PADAPTER Adapter);
+
+ void (*dm_init)(PADAPTER Adapter);
+ void (*dm_deinit)(PADAPTER Adapter);
+ void (*read_chip_version)(PADAPTER Adapter);
+
+ void (*init_default_value)(PADAPTER Adapter);
+
+ void (*intf_chip_configure)(PADAPTER Adapter);
+
+ void (*read_adapter_info)(PADAPTER Adapter);
+
+ void (*enable_interrupt)(PADAPTER Adapter);
+ void (*disable_interrupt)(PADAPTER Adapter);
+ s32 (*interrupt_handler)(PADAPTER Adapter);
+
+ void (*set_bwmode_handler)(PADAPTER Adapter, HT_CHANNEL_WIDTH Bandwidth, u8 Offset);
+ void (*set_channel_handler)(PADAPTER Adapter, u8 channel);
+
+ void (*hal_dm_watchdog)(PADAPTER Adapter);
+
+ void (*SetHwRegHandler)(PADAPTER Adapter, u8 variable,u8* val);
+ void (*GetHwRegHandler)(PADAPTER Adapter, u8 variable,u8* val);
+
+ u8 (*GetHalDefVarHandler)(PADAPTER Adapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
+ u8 (*SetHalDefVarHandler)(PADAPTER Adapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
+
+ void (*UpdateRAMaskHandler)(PADAPTER Adapter, u32 mac_id);
+ void (*SetBeaconRelatedRegistersHandler)(PADAPTER Adapter);
+
+ void (*Add_RateATid)(PADAPTER Adapter, u32 bitmap, u8 arg);
+
+#ifdef CONFIG_ANTENNA_DIVERSITY
+ u8 (*AntDivBeforeLinkHandler)(PADAPTER Adapter);
+ void (*AntDivCompareHandler)(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);
+#endif
+ u8 (*interface_ps_func)(PADAPTER Adapter,HAL_INTF_PS_FUNC efunc_id, u8* val);
+
+ s32 (*hal_xmit)(PADAPTER Adapter, struct xmit_frame *pxmitframe);
+ s32 (*mgnt_xmit)(PADAPTER Adapter, struct xmit_frame *pmgntframe);
+ s32 (*hal_xmitframe_enqueue)(_adapter *padapter, struct xmit_frame *pxmitframe);
+
+ u32 (*read_bbreg)(PADAPTER Adapter, u32 RegAddr, u32 BitMask);
+ void (*write_bbreg)(PADAPTER Adapter, u32 RegAddr, u32 BitMask, u32 Data);
+ u32 (*read_rfreg)(PADAPTER Adapter, u32 eRFPath, u32 RegAddr, u32 BitMask);
+ void (*write_rfreg)(PADAPTER Adapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
+
+#ifdef CONFIG_HOSTAPD_MLME
+ s32 (*hostap_mgnt_xmit_entry)(PADAPTER Adapter, _pkt *pkt);
+#endif
+ void (*EfusePowerSwitch)(PADAPTER pAdapter, u8 bWrite, u8 PwrState);
+ void (*ReadEFuse)(PADAPTER Adapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf, BOOLEAN bPseudoTest);
+ void (*EFUSEGetEfuseDefinition)(PADAPTER pAdapter, u8 efuseType, u8 type, PVOID *pOut, BOOLEAN bPseudoTest);
+ u16 (*EfuseGetCurrentSize)(PADAPTER pAdapter, u8 efuseType, BOOLEAN bPseudoTest);
+ int (*Efuse_PgPacketRead)(PADAPTER pAdapter, u8 offset, u8 *data, BOOLEAN bPseudoTest);
+ int (*Efuse_PgPacketWrite)(PADAPTER pAdapter, u8 offset, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
+ u8 (*Efuse_WordEnableDataWrite)(PADAPTER pAdapter, u16 efuse_addr, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
+
+#ifdef DBG_CONFIG_ERROR_DETECT
+ void (*sreset_init_value)(_adapter *padapter);
+ void (*sreset_reset_value)(_adapter *padapter);
+ void (*silentreset)(_adapter *padapter);
+ void (*sreset_xmit_status_check)(_adapter *padapter);
+ void (*sreset_linked_status_check) (_adapter *padapter);
+ u8 (*sreset_get_wifi_status)(_adapter *padapter);
+ bool (*sreset_inprogress)(_adapter *padapter);
+#endif
+
+#ifdef CONFIG_IOL
+ int (*IOL_exec_cmds_sync)(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms);
+#endif
+ void (*hal_notch_filter)(_adapter * adapter, bool enable);
+ void (*hal_reset_security_engine)(_adapter * adapter);
+
+ s32 (*c2h_handler)(_adapter *padapter, struct c2h_evt_hdr *c2h_evt);
+ c2h_id_filter c2h_id_filter_ccx;
+};
+
+typedef enum _RT_EEPROM_TYPE{
+ EEPROM_93C46,
+ EEPROM_93C56,
+ EEPROM_BOOT_EFUSE,
+}RT_EEPROM_TYPE,*PRT_EEPROM_TYPE;
+
+#define USB_HIGH_SPEED_BULK_SIZE 512
+#define USB_FULL_SPEED_BULK_SIZE 64
+
+#define RF_CHANGE_BY_INIT 0
+#define RF_CHANGE_BY_IPS BIT28
+#define RF_CHANGE_BY_PS BIT29
+#define RF_CHANGE_BY_HW BIT30
+#define RF_CHANGE_BY_SW BIT31
+
+typedef enum _HARDWARE_TYPE{
+ HARDWARE_TYPE_RTL8180,
+ HARDWARE_TYPE_RTL8185,
+ HARDWARE_TYPE_RTL8187,
+ HARDWARE_TYPE_RTL8188,
+ HARDWARE_TYPE_RTL8190P,
+ HARDWARE_TYPE_RTL8192E,
+ HARDWARE_TYPE_RTL819xU,
+ HARDWARE_TYPE_RTL8192SE,
+ HARDWARE_TYPE_RTL8192SU,
+ HARDWARE_TYPE_RTL8192CE,
+ HARDWARE_TYPE_RTL8192CU,
+ HARDWARE_TYPE_RTL8192DE,
+ HARDWARE_TYPE_RTL8192DU,
+ HARDWARE_TYPE_RTL8723AE,
+ HARDWARE_TYPE_RTL8723AU,
+ HARDWARE_TYPE_RTL8723AS,
+ HARDWARE_TYPE_RTL8188EE,
+ HARDWARE_TYPE_RTL8188EU,
+ HARDWARE_TYPE_RTL8188ES,
+ HARDWARE_TYPE_MAX,
+}HARDWARE_TYPE;
+
+//
+// RTL8192C Series
+//
+#define IS_HARDWARE_TYPE_8192CE(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192CE)
+#define IS_HARDWARE_TYPE_8192CU(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192CU)
+#define IS_HARDWARE_TYPE_8192C(_Adapter) \
+(IS_HARDWARE_TYPE_8192CE(_Adapter) || IS_HARDWARE_TYPE_8192CU(_Adapter))
+
+//
+// RTL8192D Series
+//
+#define IS_HARDWARE_TYPE_8192DE(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192DE)
+#define IS_HARDWARE_TYPE_8192DU(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8192DU)
+#define IS_HARDWARE_TYPE_8192D(_Adapter) \
+(IS_HARDWARE_TYPE_8192DE(_Adapter) || IS_HARDWARE_TYPE_8192DU(_Adapter))
+
+//
+// RTL8723A Series
+//
+#define IS_HARDWARE_TYPE_8723AE(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8723AE)
+#define IS_HARDWARE_TYPE_8723AU(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8723AU)
+#define IS_HARDWARE_TYPE_8723AS(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8723AS)
+#define IS_HARDWARE_TYPE_8723A(_Adapter) \
+(IS_HARDWARE_TYPE_8723AE(_Adapter) || IS_HARDWARE_TYPE_8723AU(_Adapter) || IS_HARDWARE_TYPE_8723AS(_Adapter))
+
+//
+// RTL8188E Series
+//
+#define IS_HARDWARE_TYPE_8188EE(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8188EE)
+#define IS_HARDWARE_TYPE_8188EU(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8188EU)
+#define IS_HARDWARE_TYPE_8188ES(_Adapter) (((PADAPTER)_Adapter)->HardwareType==HARDWARE_TYPE_RTL8188ES)
+#define IS_HARDWARE_TYPE_8188E(_Adapter) \
+(IS_HARDWARE_TYPE_8188EE(_Adapter) || IS_HARDWARE_TYPE_8188EU(_Adapter) || IS_HARDWARE_TYPE_8188ES(_Adapter))
+
+
+typedef struct eeprom_priv EEPROM_EFUSE_PRIV, *PEEPROM_EFUSE_PRIV;
+#define GET_EEPROM_EFUSE_PRIV(priv) (&priv->eeprompriv)
+
+#ifdef CONFIG_WOWLAN
+typedef enum _wowlan_subcode{
+ WOWLAN_PATTERN_MATCH = 1,
+ WOWLAN_MAGIC_PACKET = 2,
+ WOWLAN_UNICAST = 3,
+ WOWLAN_SET_PATTERN = 4,
+ WOWLAN_DUMP_REG = 5,
+ WOWLAN_ENABLE = 6,
+ WOWLAN_DISABLE = 7,
+ WOWLAN_STATUS = 8,
+ WOWLAN_DEBUG_RELOAD_FW = 9,
+ WOWLAN_DEBUG_1 =10,
+ WOWLAN_DEBUG_2 =11
+}wowlan_subcode;
+
+struct wowlan_ioctl_param{
+ unsigned int subcode;
+ unsigned int subcode_value;
+ unsigned int wakeup_reason;
+ unsigned int len;
+ unsigned char pattern[0];
+};
+
+#define Rx_Pairwisekey BIT(0)
+#define Rx_GTK BIT(1)
+#define Rx_DisAssoc BIT(2)
+#define Rx_DeAuth BIT(3)
+#define FWDecisionDisconnect BIT(4)
+#define Rx_MagicPkt BIT(5)
+#define FinishBtFwPatch BIT(7)
+
+#endif // CONFIG_WOWLAN
+
+void rtw_hal_def_value_init(_adapter *padapter);
+void rtw_hal_free_data(_adapter *padapter);
+
+void rtw_hal_dm_init(_adapter *padapter);
+void rtw_hal_dm_deinit(_adapter *padapter);
+void rtw_hal_sw_led_init(_adapter *padapter);
+void rtw_hal_sw_led_deinit(_adapter *padapter);
+
+uint rtw_hal_init(_adapter *padapter);
+uint rtw_hal_deinit(_adapter *padapter);
+void rtw_hal_stop(_adapter *padapter);
+
+void rtw_hal_set_hwreg(PADAPTER padapter, u8 variable, u8 *val);
+void rtw_hal_get_hwreg(PADAPTER padapter, u8 variable, u8 *val);
+
+void rtw_hal_chip_configure(_adapter *padapter);
+void rtw_hal_read_chip_info(_adapter *padapter);
+void rtw_hal_read_chip_version(_adapter *padapter);
+
+u8 rtw_hal_set_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
+u8 rtw_hal_get_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
+
+void rtw_hal_enable_interrupt(_adapter *padapter);
+void rtw_hal_disable_interrupt(_adapter *padapter);
+
+u32 rtw_hal_inirp_init(_adapter *padapter);
+u32 rtw_hal_inirp_deinit(_adapter *padapter);
+
+u8 rtw_hal_intf_ps_func(_adapter *padapter,HAL_INTF_PS_FUNC efunc_id, u8* val);
+
+s32 rtw_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe);
+s32 rtw_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe);
+s32 rtw_hal_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
+
+s32 rtw_hal_init_xmit_priv(_adapter *padapter);
+void rtw_hal_free_xmit_priv(_adapter *padapter);
+
+s32 rtw_hal_init_recv_priv(_adapter *padapter);
+void rtw_hal_free_recv_priv(_adapter *padapter);
+
+void rtw_hal_update_ra_mask(_adapter *padapter, u32 mac_id);
+void rtw_hal_add_ra_tid(_adapter *padapter, u32 bitmap, u8 arg);
+
+void rtw_hal_bcn_related_reg_setting(_adapter *padapter);
+
+u32 rtw_hal_read_bbreg(_adapter *padapter, u32 RegAddr, u32 BitMask);
+void rtw_hal_write_bbreg(_adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
+u32 rtw_hal_read_rfreg(_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask);
+void rtw_hal_write_rfreg(_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
+
+s32 rtw_hal_interrupt_handler(_adapter *padapter);
+
+void rtw_hal_set_bwmode(_adapter *padapter, HT_CHANNEL_WIDTH Bandwidth, u8 Offset);
+void rtw_hal_set_chan(_adapter *padapter, u8 channel);
+
+void rtw_hal_dm_watchdog(_adapter *padapter);
+
+#ifdef CONFIG_ANTENNA_DIVERSITY
+u8 rtw_hal_antdiv_before_linked(_adapter *padapter);
+void rtw_hal_antdiv_rssi_compared(_adapter *padapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);
+#endif
+
+#ifdef CONFIG_HOSTAPD_MLME
+s32 rtw_hal_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt);
+#endif
+
+#ifdef DBG_CONFIG_ERROR_DETECT
+void rtw_hal_sreset_init(_adapter *padapter);
+void rtw_hal_sreset_reset(_adapter *padapter);
+void rtw_hal_sreset_reset_value(_adapter *padapter);
+void rtw_hal_sreset_xmit_status_check(_adapter *padapter);
+void rtw_hal_sreset_linked_status_check(_adapter *padapter);
+u8 rtw_hal_sreset_get_wifi_status(_adapter *padapter);
+bool rtw_hal_sreset_inprogress(_adapter *padapter);
+#endif
+
+#ifdef CONFIG_IOL
+int rtw_hal_iol_cmd(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms);
+#endif
+
+void rtw_hal_notch_filter(_adapter * adapter, bool enable);
+void rtw_hal_reset_security_engine(_adapter * adapter);
+
+s32 rtw_hal_c2h_handler(_adapter *adapter, struct c2h_evt_hdr *c2h_evt);
+c2h_id_filter rtw_hal_c2h_id_filter_ccx(_adapter *adapter);
+
+#endif //__HAL_INTF_H__
+
diff --git a/drivers/net/wireless/rtl8192cu/include/ieee80211.h b/drivers/net/wireless/rtl8192cu/include/ieee80211.h
index 5c17a28..e283a5f 100644
--- a/drivers/net/wireless/rtl8192cu/include/ieee80211.h
+++ b/drivers/net/wireless/rtl8192cu/include/ieee80211.h
@@ -43,6 +43,8 @@
#define MGMT_QUEUE_NUM 5
#define ETH_ALEN 6
+#define ETH_TYPE_LEN 2
+#define PAYLOAD_TYPE_LEN 1
#ifdef CONFIG_AP_MODE
@@ -71,6 +73,9 @@ enum {
RTL871X_HOSTAPD_SET_WPS_PROBE_RESP = 18,
RTL871X_HOSTAPD_SET_WPS_ASSOC_RESP = 19,
RTL871X_HOSTAPD_SET_HIDDEN_SSID = 20,
+ RTL871X_HOSTAPD_SET_MACADDR_ACL = 21,
+ RTL871X_HOSTAPD_ACL_ADD_STA = 22,
+ RTL871X_HOSTAPD_ACL_REMOVE_STA = 23,
};
/* STA flags */
@@ -131,31 +136,43 @@ enum {
#define WPA_SELECTOR_LEN 4
-static u8 WPA_OUI_TYPE[] = { 0x00, 0x50, 0xf2, 1 };
-static u16 WPA_VERSION = 1;
-static u8 WPA_AUTH_KEY_MGMT_NONE[] = { 0x00, 0x50, 0xf2, 0 };
-static u8 WPA_AUTH_KEY_MGMT_UNSPEC_802_1X[] = { 0x00, 0x50, 0xf2, 1 };
-static u8 WPA_AUTH_KEY_MGMT_PSK_OVER_802_1X[] = { 0x00, 0x50, 0xf2, 2 };
-static u8 WPA_CIPHER_SUITE_NONE[] = { 0x00, 0x50, 0xf2, 0 };
-static u8 WPA_CIPHER_SUITE_WEP40[] = { 0x00, 0x50, 0xf2, 1 };
-static u8 WPA_CIPHER_SUITE_TKIP[] = { 0x00, 0x50, 0xf2, 2 };
-//static u8 WPA_CIPHER_SUITE_WRAP[] = { 0x00, 0x50, 0xf2, 3 };
-static u8 WPA_CIPHER_SUITE_CCMP[] = { 0x00, 0x50, 0xf2, 4 };
-static u8 WPA_CIPHER_SUITE_WEP104[] = { 0x00, 0x50, 0xf2, 5 };
+extern u8 RTW_WPA_OUI_TYPE[] ;
+extern u16 RTW_WPA_VERSION ;
+extern u8 WPA_AUTH_KEY_MGMT_NONE[];
+extern u8 WPA_AUTH_KEY_MGMT_UNSPEC_802_1X[];
+extern u8 WPA_AUTH_KEY_MGMT_PSK_OVER_802_1X[];
+extern u8 WPA_CIPHER_SUITE_NONE[];
+extern u8 WPA_CIPHER_SUITE_WEP40[];
+extern u8 WPA_CIPHER_SUITE_TKIP[];
+extern u8 WPA_CIPHER_SUITE_WRAP[];
+extern u8 WPA_CIPHER_SUITE_CCMP[];
+extern u8 WPA_CIPHER_SUITE_WEP104[];
#define RSN_HEADER_LEN 4
#define RSN_SELECTOR_LEN 4
-static u16 RSN_VERSION = 1;
-static u8 RSN_AUTH_KEY_MGMT_UNSPEC_802_1X[] = { 0x00, 0x0f, 0xac, 1 };
-static u8 RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X[] = { 0x00, 0x0f, 0xac, 2 };
-static u8 RSN_CIPHER_SUITE_NONE[] = { 0x00, 0x0f, 0xac, 0 };
-static u8 RSN_CIPHER_SUITE_WEP40[] = { 0x00, 0x0f, 0xac, 1 };
-static u8 RSN_CIPHER_SUITE_TKIP[] = { 0x00, 0x0f, 0xac, 2 };
-//static u8 RSN_CIPHER_SUITE_WRAP[] = { 0x00, 0x0f, 0xac, 3 };
-static u8 RSN_CIPHER_SUITE_CCMP[] = { 0x00, 0x0f, 0xac, 4 };
-static u8 RSN_CIPHER_SUITE_WEP104[] = { 0x00, 0x0f, 0xac, 5 };
+extern u16 RSN_VERSION_BSD;
+extern u8 RSN_AUTH_KEY_MGMT_UNSPEC_802_1X[];
+extern u8 RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X[];
+extern u8 RSN_CIPHER_SUITE_NONE[];
+extern u8 RSN_CIPHER_SUITE_WEP40[];
+extern u8 RSN_CIPHER_SUITE_TKIP[];
+extern u8 RSN_CIPHER_SUITE_WRAP[];
+extern u8 RSN_CIPHER_SUITE_CCMP[];
+extern u8 RSN_CIPHER_SUITE_WEP104[];
+
+typedef enum _RATR_TABLE_MODE{
+ RATR_INX_WIRELESS_NGB = 0, // BGN 40 Mhz 2SS 1SS
+ RATR_INX_WIRELESS_NG = 1, // GN or N
+ RATR_INX_WIRELESS_NB = 2, // BGN 20 Mhz 2SS 1SS or BN
+ RATR_INX_WIRELESS_N = 3,
+ RATR_INX_WIRELESS_GB = 4,
+ RATR_INX_WIRELESS_G = 5,
+ RATR_INX_WIRELESS_B = 6,
+ RATR_INX_WIRELESS_MC = 7,
+ RATR_INX_WIRELESS_AC_N = 8,
+}RATR_TABLE_MODE, *PRATR_TABLE_MODE;
enum NETWORK_TYPE
{
@@ -166,12 +183,15 @@ enum NETWORK_TYPE
WIRELESS_11A = BIT(2), // tx: ofdm only, rx: ofdm only, hw: ofdm only
WIRELESS_11_24N = BIT(3), // tx: MCS only, rx: MCS & cck, hw: MCS & cck
WIRELESS_11_5N = BIT(4), // tx: MCS only, rx: MCS & ofdm, hw: ofdm only
+ //WIRELESS_AUTO = BIT(5),
+ WIRELESS_AC = BIT(6),
//Combination
WIRELESS_11BG = (WIRELESS_11B|WIRELESS_11G), // tx: cck & ofdm, rx: cck & ofdm & MCS, hw: cck & ofdm
WIRELESS_11G_24N = (WIRELESS_11G|WIRELESS_11_24N), // tx: ofdm & MCS, rx: ofdm & cck & MCS, hw: cck & ofdm
WIRELESS_11A_5N = (WIRELESS_11A|WIRELESS_11_5N), // tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only
WIRELESS_11BG_24N = (WIRELESS_11B|WIRELESS_11G|WIRELESS_11_24N), // tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: ofdm & cck
+ WIRELESS_11AGN = (WIRELESS_11A|WIRELESS_11G|WIRELESS_11_24N|WIRELESS_11_5N), // tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only
WIRELESS_11ABGN = (WIRELESS_11A|WIRELESS_11B|WIRELESS_11G|WIRELESS_11_24N|WIRELESS_11_5N),
};
@@ -196,7 +216,7 @@ enum NETWORK_TYPE
typedef struct ieee_param {
u32 cmd;
u8 sta_addr[ETH_ALEN];
- union {
+ union {
struct {
u8 name;
u32 value;
@@ -236,6 +256,30 @@ typedef struct ieee_param {
} u;
}ieee_param;
+#ifdef CONFIG_AP_MODE
+typedef struct ieee_param_ex {
+ u32 cmd;
+ u8 sta_addr[ETH_ALEN];
+ u8 data[0];
+}ieee_param_ex;
+
+struct sta_data{
+ u16 aid;
+ u16 capability;
+ int flags;
+ u32 sta_set;
+ u8 tx_supp_rates[16];
+ u32 tx_supp_rates_len;
+ struct rtw_ieee80211_ht_cap ht_cap;
+ u64 rx_pkts;
+ u64 rx_bytes;
+ u64 rx_drops;
+ u64 tx_pkts;
+ u64 tx_bytes;
+ u64 tx_drops;
+};
+#endif
+
#if WIRELESS_EXT < 17
#define IW_QUAL_QUAL_INVALID 0x10
@@ -271,7 +315,7 @@ struct ieee_ibss_seq {
_list list;
};
-#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW)
+#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW)||defined(PLATFORM_FREEBSD)
struct rtw_ieee80211_hdr {
u16 frame_ctl;
@@ -304,7 +348,7 @@ struct rtw_ieee80211_hdr_qos {
u16 qc;
} __attribute__ ((packed));
-struct rtw_ieee80211_hdr_3addr_qos {
+struct rtw_ieee80211_hdr_3addr_qos {
u16 frame_ctl;
u16 duration_id;
u8 addr1[ETH_ALEN];
@@ -350,11 +394,11 @@ struct rtw_ieee80211_hdr_3addr {
struct rtw_ieee80211_hdr_qos {
- struct rtw_ieee80211_hdr wlan_hdr;
+ struct rtw_ieee80211_hdr wlan_hdr;
u16 qc;
};
-struct rtw_ieee80211_hdr_3addr_qos {
+struct rtw_ieee80211_hdr_3addr_qos {
struct rtw_ieee80211_hdr_3addr wlan_hdr;
u16 qc;
};
@@ -388,21 +432,23 @@ enum eap_type {
#define MAX_FRAG_THRESHOLD 2346U
/* Frame control field constants */
-#define RTW_IEEE80211_FCTL_VERS 0x0002
+#define RTW_IEEE80211_FCTL_VERS 0x0003
#define RTW_IEEE80211_FCTL_FTYPE 0x000c
#define RTW_IEEE80211_FCTL_STYPE 0x00f0
#define RTW_IEEE80211_FCTL_TODS 0x0100
-#define RTW_IEEE80211_FCTL_FROMDS 0x0200
+#define RTW_IEEE80211_FCTL_FROMDS 0x0200
#define RTW_IEEE80211_FCTL_MOREFRAGS 0x0400
#define RTW_IEEE80211_FCTL_RETRY 0x0800
#define RTW_IEEE80211_FCTL_PM 0x1000
#define RTW_IEEE80211_FCTL_MOREDATA 0x2000
-#define RTW_IEEE80211_FCTL_WEP 0x4000
+#define RTW_IEEE80211_FCTL_PROTECTED 0x4000
#define RTW_IEEE80211_FCTL_ORDER 0x8000
+#define RTW_IEEE80211_FCTL_CTL_EXT 0x0f00
#define RTW_IEEE80211_FTYPE_MGMT 0x0000
#define RTW_IEEE80211_FTYPE_CTL 0x0004
#define RTW_IEEE80211_FTYPE_DATA 0x0008
+#define RTW_IEEE80211_FTYPE_EXT 0x000c
/* management */
#define RTW_IEEE80211_STYPE_ASSOC_REQ 0x0000
@@ -416,14 +462,18 @@ enum eap_type {
#define RTW_IEEE80211_STYPE_DISASSOC 0x00A0
#define RTW_IEEE80211_STYPE_AUTH 0x00B0
#define RTW_IEEE80211_STYPE_DEAUTH 0x00C0
+#define RTW_IEEE80211_STYPE_ACTION 0x00D0
/* control */
+#define RTW_IEEE80211_STYPE_CTL_EXT 0x0060
+#define RTW_IEEE80211_STYPE_BACK_REQ 0x0080
+#define RTW_IEEE80211_STYPE_BACK 0x0090
#define RTW_IEEE80211_STYPE_PSPOLL 0x00A0
#define RTW_IEEE80211_STYPE_RTS 0x00B0
#define RTW_IEEE80211_STYPE_CTS 0x00C0
#define RTW_IEEE80211_STYPE_ACK 0x00D0
#define RTW_IEEE80211_STYPE_CFEND 0x00E0
-#define RTW_IEEE80211_STYPE_CFENDACK 0x00F0
+#define RTW_IEEE80211_STYPE_CFENDACK 0x00F0
/* data */
#define RTW_IEEE80211_STYPE_DATA 0x0000
@@ -434,11 +484,23 @@ enum eap_type {
#define RTW_IEEE80211_STYPE_CFACK 0x0050
#define RTW_IEEE80211_STYPE_CFPOLL 0x0060
#define RTW_IEEE80211_STYPE_CFACKPOLL 0x0070
-#define RTW_IEEE80211_QOS_DATAGRP 0x0080
-#define RTW_IEEE80211_QoS_DATAGRP RTW_IEEE80211_QOS_DATAGRP
+#define RTW_IEEE80211_STYPE_QOS_DATA 0x0080
+#define RTW_IEEE80211_STYPE_QOS_DATA_CFACK 0x0090
+#define RTW_IEEE80211_STYPE_QOS_DATA_CFPOLL 0x00A0
+#define RTW_IEEE80211_STYPE_QOS_DATA_CFACKPOLL 0x00B0
+#define RTW_IEEE80211_STYPE_QOS_NULLFUNC 0x00C0
+#define RTW_IEEE80211_STYPE_QOS_CFACK 0x00D0
+#define RTW_IEEE80211_STYPE_QOS_CFPOLL 0x00E0
+#define RTW_IEEE80211_STYPE_QOS_CFACKPOLL 0x00F0
+
+/* sequence control field */
+#define RTW_IEEE80211_SCTL_FRAG 0x000F
+#define RTW_IEEE80211_SCTL_SEQ 0xFFF0
-#define RTW_IEEE80211_SCTL_FRAG 0x000F
-#define RTW_IEEE80211_SCTL_SEQ 0xFFF0
+
+#define RTW_ERP_INFO_NON_ERP_PRESENT BIT(0)
+#define RTW_ERP_INFO_USE_PROTECTION BIT(1)
+#define RTW_ERP_INFO_BARKER_PREAMBLE_MODE BIT(2)
/* QoS,QOS */
#define NORMAL_ACK 0
@@ -462,7 +524,7 @@ enum eap_type {
#define P80211_OUI_LEN 3
-#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW)
+#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW) || defined(PLATFORM_FREEBSD)
struct ieee80211_snap_hdr {
@@ -545,6 +607,7 @@ struct ieee80211_snap_hdr {
#define WLAN_REASON_DISASSOC_STA_HAS_LEFT 8
#define WLAN_REASON_STA_REQ_ASSOC_WITHOUT_AUTH 9
#define WLAN_REASON_JOIN_WRONG_CHANNEL 65534
+#define WLAN_REASON_EXPIRATION_CHK 65535
/* Information Element IDs */
#define WLAN_EID_SSID 0
@@ -694,6 +757,7 @@ struct ieee80211_frag_entry {
u8 dst_addr[ETH_ALEN];
};
+#ifndef PLATFORM_FREEBSD //Baron BSD has already defined
struct ieee80211_stats {
uint tx_unicast_frames;
uint tx_multicast_frames;
@@ -717,7 +781,7 @@ struct ieee80211_stats {
uint rx_message_in_msg_fragments;
uint rx_message_in_bad_msg_fragments;
};
-
+#endif //PLATFORM_FREEBSD
struct ieee80211_softmac_stats{
uint rx_ass_ok;
uint rx_ass_err;
@@ -757,7 +821,10 @@ struct ieee80211_softmac_stats{
#define WEP_KEYS 4
#define WEP_KEY_LEN 13
-
+#ifdef CONFIG_IEEE80211W
+#define BIP_MAX_KEYID 5
+#define BIP_AAD_SIZE 20
+#endif //CONFIG_IEEE80211W
#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW)
@@ -847,52 +914,6 @@ struct ieee80211_info_element {
} __attribute__ ((packed));
#endif
-#ifdef CONFIG_TDLS
-/* TDLS */
-#define TDLS_MIC_LEN 16
-#define WPA_NONCE_LEN 32
-#define TDLS_TIMEOUT_LEN 4
-
-struct wpa_tdls_ftie {
- u8 ie_type; /* FTIE */
- u8 ie_len;
- u8 mic_ctrl[2];
- u8 mic[TDLS_MIC_LEN];
- u8 Anonce[WPA_NONCE_LEN]; /* Responder Nonce in TDLS */
- u8 Snonce[WPA_NONCE_LEN]; /* Initiator Nonce in TDLS */
- /* followed by optional elements */
-} ;
-
-struct wpa_tdls_timeoutie {
- u8 ie_type; /* Timeout IE */
- u8 ie_len;
- u8 interval_type;
- u8 value[TDLS_TIMEOUT_LEN];
-} ;
-
-struct wpa_tdls_lnkid {
- u8 ie_type; /* Link Identifier IE */
- u8 ie_len;
- u8 bssid[ETH_ALEN];
- u8 init_sta[ETH_ALEN];
- u8 resp_sta[ETH_ALEN];
-} ;
-
-static u8 TDLS_RSNIE[]={ 0x01, 0x00, //version shall be set to 1
- 0x00, 0x0f, 0xac, 0x07, //group sipher suite
- 0x01, 0x00, //pairwise cipher suite count
- 0x00, 0x0f, 0xac, 0x04, //pairwise cipher suite list; CCMP only
- 0x01, 0x00, //AKM suite count
- 0x00, 0x0f, 0xac, 0x07, //TPK Handshake
- 0x00, 0x02,
- //PMKID shall not be present
- };
-
-static u8 TDLS_WMMIE[]={0x00, 0x50, 0xf2, 0x02, 0x00, 0x01, 0x00}; //Qos info all set zero
-
-static u8 TDLS_EXT_CAPIE[] = {0x00, 0x00, 0x00, 0x50, 0x20}; //bit(28), bit(30), bit(37)
-#endif
-
#ifdef PLATFORM_WINDOWS
#pragma pack(1)
@@ -1052,7 +1073,7 @@ struct ieee80211_txb {
#define CRC_LENGTH 4U
-#define MAX_WPA_IE_LEN (128)
+#define MAX_WPA_IE_LEN (256)
#define MAX_WPS_IE_LEN (512)
#define MAX_P2P_IE_LEN (256)
#define MAX_WFD_IE_LEN (128)
@@ -1120,6 +1141,8 @@ join_res:
> 0: TID
*/
+#ifndef PLATFORM_FREEBSD //Baron BSD has already defined
+
enum ieee80211_state {
/* the card is not linked at all */
@@ -1158,12 +1181,19 @@ enum ieee80211_state {
IEEE80211_LINKED_SCANNING,
};
+#endif //PLATFORM_FREEBSD
#define DEFAULT_MAX_SCAN_AGE (15 * HZ)
#define DEFAULT_FTS 2346
#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3],((u8*)(x))[4],((u8*)(x))[5]
+#ifdef PLATFORM_FREEBSD //Baron change func to macro
+#define is_multicast_mac_addr(Addr) ((((Addr[0]) & 0x01) == 0x01) && ((Addr[0]) != 0xff))
+#define is_broadcast_mac_addr(Addr) ((((Addr[0]) & 0xff) == 0xff) && (((Addr[1]) & 0xff) == 0xff) && \
+(((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
+(((Addr[5]) & 0xff) == 0xff))
+#else
extern __inline int is_multicast_mac_addr(const u8 *addr)
{
return ((addr[0] != 0xff) && (0x01 & addr[0]));
@@ -1175,6 +1205,13 @@ extern __inline int is_broadcast_mac_addr(const u8 *addr)
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
}
+extern __inline int is_zero_mac_addr(const u8 *addr)
+{
+ return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
+ (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
+}
+#endif //PLATFORM_FREEBSD
+
#define CFG_IEEE80211_RESERVE_FCS (1<<0)
#define CFG_IEEE80211_COMPUTE_FCS (1<<1)
@@ -1192,48 +1229,9 @@ typedef struct tx_pending_t{
#define IEEE_G (1<<2)
#define IEEE_MODE_MASK (IEEE_A|IEEE_B|IEEE_G)
-extern __inline int ieee80211_is_empty_essid(const char *essid, int essid_len)
-{
- /* Single white space is for Linksys APs */
- if (essid_len == 1 && essid[0] == ' ')
- return 1;
-
- /* Otherwise, if the entire essid is 0, we assume it is hidden */
- while (essid_len) {
- essid_len--;
- if (essid[essid_len] != '\0')
- return 0;
- }
-
- return 1;
-}
-
-extern __inline int ieee80211_get_hdrlen(u16 fc)
-{
- int hdrlen = 24;
-
- switch (WLAN_FC_GET_TYPE(fc)) {
- case RTW_IEEE80211_FTYPE_DATA:
- if (fc & RTW_IEEE80211_QOS_DATAGRP)
- hdrlen += 2;
- if ((fc & RTW_IEEE80211_FCTL_FROMDS) && (fc & RTW_IEEE80211_FCTL_TODS))
- hdrlen += 6; /* Addr4 */
- break;
- case RTW_IEEE80211_FTYPE_CTL:
- switch (WLAN_FC_GET_STYPE(fc)) {
- case RTW_IEEE80211_STYPE_CTS:
- case RTW_IEEE80211_STYPE_ACK:
- hdrlen = 10;
- break;
- default:
- hdrlen = 16;
- break;
- }
- break;
- }
-
- return hdrlen;
-}
+//Baron move to ieee80211.c
+int ieee80211_is_empty_essid(const char *essid, int essid_len);
+int ieee80211_get_hdrlen(u16 fc);
#if 0
/* Action frame categories (IEEE 802.11-2007, 7.3.1.11, Table 7-24) */
@@ -1259,7 +1257,9 @@ enum rtw_ieee80211_category {
RTW_WLAN_CATEGORY_FT = 6,
RTW_WLAN_CATEGORY_HT = 7,
RTW_WLAN_CATEGORY_SA_QUERY = 8,
+ RTW_WLAN_CATEGORY_UNPROTECTED_WNM = 11, // add for CONFIG_IEEE80211W, none 11w also can use
RTW_WLAN_CATEGORY_TDLS = 12,
+ RTW_WLAN_CATEGORY_SELF_PROTECTED = 15, // add for CONFIG_IEEE80211W, none 11w also can use
RTW_WLAN_CATEGORY_WMM = 17,
RTW_WLAN_CATEGORY_P2P = 0x7f,//P2P action frames
};
@@ -1276,8 +1276,22 @@ enum rtw_ieee80211_spectrum_mgmt_actioncode {
enum _PUBLIC_ACTION{
ACT_PUBLIC_BSSCOEXIST = 0, // 20/40 BSS Coexistence
+ ACT_PUBLIC_DSE_ENABLE = 1,
+ ACT_PUBLIC_DSE_DEENABLE = 2,
+ ACT_PUBLIC_DSE_REG_LOCATION = 3,
+ ACT_PUBLIC_EXT_CHL_SWITCH = 4,
+ ACT_PUBLIC_DSE_MSR_REQ = 5,
+ ACT_PUBLIC_DSE_MSR_RPRT = 6,
ACT_PUBLIC_MP = 7, // Measurement Pilot
- ACT_PUBLIC_P2P = 9, // WIFI_DIRECT
+ ACT_PUBLIC_DSE_PWR_CONSTRAINT = 8,
+ ACT_PUBLIC_VENDOR = 9, // for WIFI_DIRECT
+ ACT_PUBLIC_GAS_INITIAL_REQ = 10,
+ ACT_PUBLIC_GAS_INITIAL_RSP = 11,
+ ACT_PUBLIC_GAS_COMEBACK_REQ = 12,
+ ACT_PUBLIC_GAS_COMEBACK_RSP = 13,
+ ACT_PUBLIC_TDLS_DISCOVERY_RSP = 14,
+ ACT_PUBLIC_LOCATION_TRACK = 15,
+ ACT_PUBLIC_MAX
};
#ifdef CONFIG_TDLS
@@ -1295,7 +1309,10 @@ enum TDLS_ACTION_FIELD{
TDLS_DISCOVERY_REQUEST = 10,
TDLS_DISCOVERY_RESPONSE = 14, //it's used in public action frame
};
-#endif
+
+#define TUNNELED_PROBE_REQ 15
+#define TUNNELED_PROBE_RSP 16
+#endif //CONFIG_TDLS
/* BACK action code */
enum rtw_ieee80211_back_actioncode {
@@ -1327,8 +1344,9 @@ enum rtw_ieee80211_back_parties {
#define OUI_MICROSOFT 0x0050f2 /* Microsoft (also used in Wi-Fi specs)
* 00:50:F2 */
-
+#ifndef PLATFORM_FREEBSD //Baron BSD has defined
#define WME_OUI_TYPE 2
+#endif //PLATFORM_FREEBSD
#define WME_OUI_SUBTYPE_INFORMATION_ELEMENT 0
#define WME_OUI_SUBTYPE_PARAMETER_ELEMENT 1
#define WME_OUI_SUBTYPE_TSPEC_ELEMENT 2
@@ -1351,8 +1369,76 @@ enum rtw_ieee80211_back_parties {
#define VENDOR_HT_CAPAB_OUI_TYPE 0x33 /* 00-90-4c:0x33 */
+/**
+ * enum rtw_ieee80211_channel_flags - channel flags
+ *
+ * Channel flags set by the regulatory control code.
+ *
+ * @RTW_IEEE80211_CHAN_DISABLED: This channel is disabled.
+ * @RTW_IEEE80211_CHAN_PASSIVE_SCAN: Only passive scanning is permitted
+ * on this channel.
+ * @RTW_IEEE80211_CHAN_NO_IBSS: IBSS is not allowed on this channel.
+ * @RTW_IEEE80211_CHAN_RADAR: Radar detection is required on this channel.
+ * @RTW_IEEE80211_CHAN_NO_HT40PLUS: extension channel above this channel
+ * is not permitted.
+ * @RTW_IEEE80211_CHAN_NO_HT40MINUS: extension channel below this channel
+ * is not permitted.
+ */
+ enum rtw_ieee80211_channel_flags {
+ RTW_IEEE80211_CHAN_DISABLED = 1<<0,
+ RTW_IEEE80211_CHAN_PASSIVE_SCAN = 1<<1,
+ RTW_IEEE80211_CHAN_NO_IBSS = 1<<2,
+ RTW_IEEE80211_CHAN_RADAR = 1<<3,
+ RTW_IEEE80211_CHAN_NO_HT40PLUS = 1<<4,
+ RTW_IEEE80211_CHAN_NO_HT40MINUS = 1<<5,
+ };
+
+ #define RTW_IEEE80211_CHAN_NO_HT40 \
+ (RTW_IEEE80211_CHAN_NO_HT40PLUS | RTW_IEEE80211_CHAN_NO_HT40MINUS)
+
+/* Represent channel details, subset of ieee80211_channel */
+struct rtw_ieee80211_channel {
+ //enum ieee80211_band band;
+ //u16 center_freq;
+ u16 hw_value;
+ u32 flags;
+ //int max_antenna_gain;
+ //int max_power;
+ //int max_reg_power;
+ //bool beacon_found;
+ //u32 orig_flags;
+ //int orig_mag;
+ //int orig_mpwr;
+};
+
+#define CHAN_FMT \
+ /*"band:%d, "*/ \
+ /*"center_freq:%u, "*/ \
+ "hw_value:%u, " \
+ "flags:0x%08x" \
+ /*"max_antenna_gain:%d\n"*/ \
+ /*"max_power:%d\n"*/ \
+ /*"max_reg_power:%d\n"*/ \
+ /*"beacon_found:%u\n"*/ \
+ /*"orig_flags:0x%08x\n"*/ \
+ /*"orig_mag:%d\n"*/ \
+ /*"orig_mpwr:%d\n"*/
+
+#define CHAN_ARG(channel) \
+ /*(channel)->band*/ \
+ /*, (channel)->center_freq*/ \
+ (channel)->hw_value \
+ , (channel)->flags \
+ /*, (channel)->max_antenna_gain*/ \
+ /*, (channel)->max_power*/ \
+ /*, (channel)->max_reg_power*/ \
+ /*, (channel)->beacon_found*/ \
+ /*, (channel)->orig_flags*/ \
+ /*, (channel)->orig_mag*/ \
+ /*, (channel)->orig_mpwr*/ \
+
/* Parsed Information Elements */
-struct ieee802_11_elems {
+struct rtw_ieee802_11_elems {
u8 *ssid;
u8 ssid_len;
u8 *supp_rates;
@@ -1404,12 +1490,27 @@ struct ieee802_11_elems {
typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes;
ParseRes rtw_ieee802_11_parse_elems(u8 *start, uint len,
- struct ieee802_11_elems *elems,
+ struct rtw_ieee802_11_elems *elems,
int show_errors);
u8 *rtw_set_fixed_ie(unsigned char *pbuf, unsigned int len, unsigned char *source, unsigned int *frlen);
u8 *rtw_set_ie(u8 *pbuf, sint index, uint len, u8 *source, uint *frlen);
+
+enum secondary_ch_offset {
+ SCN = 0, /* no secondary channel */
+ SCA = 1, /* secondary channel above */
+ SCB = 3, /* secondary channel below */
+};
+u8 secondary_ch_offset_to_hal_ch_offset(u8 ch_offset);
+u8 hal_ch_offset_to_secondary_ch_offset(u8 ch_offset);
+u8 *rtw_set_ie_ch_switch(u8 *buf, u32 *buf_len, u8 ch_switch_mode, u8 new_ch, u8 ch_switch_cnt);
+u8 *rtw_set_ie_secondary_ch_offset(u8 *buf, u32 *buf_len, u8 secondary_ch_offset);
+u8 *rtw_set_ie_mesh_ch_switch_parm(u8 *buf, u32 *buf_len, u8 ttl, u8 flags, u16 reason, u16 precedence);
+
u8 *rtw_get_ie(u8*pbuf, sint index, sint *len, sint limit);
+u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);
+int rtw_ies_remove_ie(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u8 oui_len);
+
void rtw_set_supported_rate(u8* SupportedRates, uint mode) ;
unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit);
@@ -1426,19 +1527,31 @@ u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id ,u8 *buf_attr, u32 *len_attr);
u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id ,u8 *buf_content, uint *len_content);
-u8 *rtw_get_p2p_ie(u8 *in_ie, uint in_len, u8 *p2p_ie, uint *p2p_ielen);
-u8 *rtw_get_p2p_attr(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id ,u8 *buf_attr, u32 *len_attr);
-u8 *rtw_get_p2p_attr_content(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id ,u8 *buf_content, uint *len_content);
-u32 rtw_set_p2p_attr_content(u8 *pbuf, u8 attr_id, u16 attr_len, u8 *pdata_attr);
+/**
+ * for_each_ie - iterate over continuous IEs
+ * @ie:
+ * @buf:
+ * @buf_len:
+ */
+#define for_each_ie(ie, buf, buf_len) \
+ for (ie = (void*)buf; (((u8*)ie) - ((u8*)buf) + 1) < buf_len; ie = (void*)(((u8*)ie) + *(((u8*)ie)+1) + 2))
void dump_ies(u8 *buf, u32 buf_len);
void dump_wps_ie(u8 *ie, u32 ie_len);
+
#ifdef CONFIG_P2P
+u32 rtw_get_p2p_merged_ies_len(u8 *in_ie, u32 in_len);
+int rtw_p2p_merge_ies(u8 *in_ie, u32 in_len, u8 *merge_ie);
void dump_p2p_ie(u8 *ie, u32 ie_len);
+u8 *rtw_get_p2p_ie(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen);
+u8 *rtw_get_p2p_attr(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id ,u8 *buf_attr, u32 *len_attr);
+u8 *rtw_get_p2p_attr_content(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id ,u8 *buf_content, uint *len_content);
+u32 rtw_set_p2p_attr_content(u8 *pbuf, u8 attr_id, u16 attr_len, u8 *pdata_attr);
void rtw_WLAN_BSSID_EX_remove_p2p_attr(WLAN_BSSID_EX *bss_ex, u8 attr_id);
#endif
+
#ifdef CONFIG_WFD
-int rtw_get_wfd_ie(u8 *in_ie, uint in_len, u8 *wfd_ie, uint *wfd_ielen);
+int rtw_get_wfd_ie(u8 *in_ie, int in_len, u8 *wfd_ie, uint *wfd_ielen);
int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id ,u8 *attr_content, uint *attr_contentlen);
#endif // CONFIG_WFD
@@ -1457,5 +1570,11 @@ uint rtw_is_cckratesonly_included(u8 *rate);
int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
void rtw_macaddr_cfg(u8 *mac_addr);
+
+u16 rtw_mcs_rate(u8 rf_type, u8 bw_40MHz, u8 short_GI_20, u8 short_GI_40, unsigned char * MCS_rate);
+
+int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8* category, u8 *action);
+const char *action_public_str(u8 action);
+
#endif /* IEEE80211_H */
diff --git a/drivers/net/wireless/rtl8192cu/include/if_ether.h b/drivers/net/wireless/rtl8192cu/include/if_ether.h
index 045c067..9e36d7f 100644
--- a/drivers/net/wireless/rtl8192cu/include/if_ether.h
+++ b/drivers/net/wireless/rtl8192cu/include/if_ether.h
@@ -1,22 +1,22 @@
-/*
- * INET An implementation of the TCP/IP protocol suite for the LINUX
- * operating system. INET is implemented using the BSD Socket
- * interface as the means of communication with the user level.
+/******************************************************************************
*
- * Global definitions for the Ethernet IEEE 802.3 interface.
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
*
- * Version: @(#)if_ether.h 1.0.1a 02/08/94
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
*
- * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
- * Donald Becker, <becker@super.org>
- * Alan Cox, <alan@redhat.com>
- * Steve Whitehouse, <gw7rrm@eeshack3.swan.ac.uk>
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
+ *
+ ******************************************************************************/
#ifndef _LINUX_IF_ETHER_H
#define _LINUX_IF_ETHER_H
diff --git a/drivers/net/wireless/rtl8192cu/include/ioctl_cfg80211.h b/drivers/net/wireless/rtl8192cu/include/ioctl_cfg80211.h
index 7846927..ceb0db8 100644
--- a/drivers/net/wireless/rtl8192cu/include/ioctl_cfg80211.h
+++ b/drivers/net/wireless/rtl8192cu/include/ioctl_cfg80211.h
@@ -27,6 +27,62 @@
#error "We haven't verify our cfg80211 solution below kernel version 2.6.35"
#endif
+#if defined(RTW_USE_CFG80211_STA_EVENT)
+ #undef CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
+#endif
+
+struct rtw_wdev_invit_info {
+ u8 state; /* 0: req, 1:rep */
+ u8 peer_mac[ETH_ALEN];
+ u8 active;
+ u8 token;
+ u8 flags;
+ u8 status;
+ u8 req_op_ch;
+ u8 rsp_op_ch;
+};
+
+#define rtw_wdev_invit_info_init(invit_info) \
+ do { \
+ (invit_info)->state = 0xff; \
+ _rtw_memset((invit_info)->peer_mac, 0, ETH_ALEN); \
+ (invit_info)->active = 0xff; \
+ (invit_info)->token = 0; \
+ (invit_info)->flags = 0x00; \
+ (invit_info)->status = 0xff; \
+ (invit_info)->req_op_ch = 0; \
+ (invit_info)->rsp_op_ch = 0; \
+ } while (0)
+
+struct rtw_wdev_nego_info {
+ u8 state; /* 0: req, 1:rep, 3:conf */
+ u8 peer_mac[ETH_ALEN];
+ u8 active;
+ u8 token;
+ u8 status;
+ u8 req_intent;
+ u8 req_op_ch;
+ u8 req_listen_ch;
+ u8 rsp_intent;
+ u8 rsp_op_ch;
+ u8 conf_op_ch;
+};
+
+#define rtw_wdev_nego_info_init(nego_info) \
+ do { \
+ (nego_info)->state = 0xff; \
+ _rtw_memset((nego_info)->peer_mac, 0, ETH_ALEN); \
+ (nego_info)->active = 0xff; \
+ (nego_info)->token = 0; \
+ (nego_info)->status = 0xff; \
+ (nego_info)->req_intent = 0xff; \
+ (nego_info)->req_op_ch = 0; \
+ (nego_info)->req_listen_ch = 0; \
+ (nego_info)->rsp_intent = 0xff; \
+ (nego_info)->rsp_op_ch = 0; \
+ (nego_info)->conf_op_ch = 0; \
+ } while (0)
+
struct rtw_wdev_priv
{
struct wireless_dev *rtw_wdev;
@@ -43,8 +99,18 @@ struct rtw_wdev_priv
u8 provdisc_req_issued;
+ struct rtw_wdev_invit_info invit_info;
+ struct rtw_wdev_nego_info nego_info;
+
+ u8 bandroid_scan;
bool block;
+ bool power_mgmt;
+#ifdef CONFIG_CONCURRENT_MODE
+ ATOMIC_T ro_ch_to;
+ ATOMIC_T switch_ch_to;
+#endif
+
};
#define wdev_to_priv(w) ((struct rtw_wdev_priv *)(wdev_priv(w)))
@@ -53,15 +119,14 @@ struct rtw_wdev_priv
#define wiphy_to_wdev(x) (struct wireless_dev *)(((struct rtw_wdev_priv*)wiphy_priv(x))->rtw_wdev)
-
-
int rtw_wdev_alloc(_adapter *padapter, struct device *dev);
void rtw_wdev_free(struct wireless_dev *wdev);
+void rtw_wdev_unregister(struct wireless_dev *wdev);
void rtw_cfg80211_init_wiphy(_adapter *padapter);
void rtw_cfg80211_surveydone_event_callback(_adapter *padapter);
-
+int rtw_cfg80211_check_bss(_adapter *padapter);
void rtw_cfg80211_indicate_connect(_adapter *padapter);
void rtw_cfg80211_indicate_disconnect(_adapter *padapter);
void rtw_cfg80211_indicate_scan_done(struct rtw_wdev_priv *pwdev_priv, bool aborted);
@@ -74,8 +139,42 @@ void rtw_cfg80211_indicate_sta_disassoc(_adapter *padapter, unsigned char *da, u
void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf, size_t len);
void rtw_cfg80211_rx_p2p_action_public(_adapter *padapter, u8 *pmgmt_frame, uint frame_len);
void rtw_cfg80211_rx_action_p2p(_adapter *padapter, u8 *pmgmt_frame, uint frame_len);
+void rtw_cfg80211_rx_action(_adapter *adapter, u8 *frame, uint frame_len, const char*msg);
int rtw_cfg80211_set_mgnt_wpsp2pie(struct net_device *net, char *buf, int len, int type);
+bool rtw_cfg80211_pwr_mgmt(_adapter *adapter);
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) && !defined(COMPAT_KERNEL_RELEASE)
+#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->pnetdev, freq, buf, len, gfp)
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
+#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->pnetdev, freq, sig_dbm, buf, len, gfp)
+#else
+#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, gfp)
+#endif
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) && !defined(COMPAT_KERNEL_RELEASE)
+#define rtw_cfg80211_send_rx_assoc(adapter, bss, buf, len) cfg80211_send_rx_assoc((adapter)->pnetdev, buf, len)
+#else
+#define rtw_cfg80211_send_rx_assoc(adapter, bss, buf, len) cfg80211_send_rx_assoc((adapter)->pnetdev, bss, buf, len)
+#endif
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
+#define rtw_cfg80211_mgmt_tx_status(adapter, cookie, buf, len, ack, gfp) cfg80211_mgmt_tx_status((adapter)->pnetdev, cookie, buf, len, ack, gfp)
+#else
+#define rtw_cfg80211_mgmt_tx_status(adapter, cookie, buf, len, ack, gfp) cfg80211_mgmt_tx_status((adapter)->rtw_wdev, cookie, buf, len, ack, gfp)
+#endif
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
+#define rtw_cfg80211_ready_on_channel(adapter, cookie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel((adapter)->pnetdev, cookie, chan, channel_type, duration, gfp)
+#define rtw_cfg80211_remain_on_channel_expired(adapter, cookie, chan, chan_type, gfp) cfg80211_remain_on_channel_expired((adapter)->pnetdev, cookie, chan, chan_type, gfp)
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
+#define rtw_cfg80211_ready_on_channel(adapter, cookie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel((adapter)->rtw_wdev, cookie, chan, channel_type, duration, gfp)
+#define rtw_cfg80211_remain_on_channel_expired(adapter, cookie, chan, chan_type, gfp) cfg80211_remain_on_channel_expired((adapter)->rtw_wdev, cookie, chan, chan_type, gfp)
+#else
+#define rtw_cfg80211_ready_on_channel(adapter, cookie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel((adapter)->rtw_wdev, cookie, chan, duration, gfp)
+#define rtw_cfg80211_remain_on_channel_expired(adapter, cookie, chan, chan_type, gfp) cfg80211_remain_on_channel_expired((adapter)->rtw_wdev, cookie, chan, gfp)
+#endif
+
#endif //__IOCTL_CFG80211_H__
diff --git a/drivers/net/wireless/rtl8192cu/include/ip.h b/drivers/net/wireless/rtl8192cu/include/ip.h
index 5846347..d7f723d 100644
--- a/drivers/net/wireless/rtl8192cu/include/ip.h
+++ b/drivers/net/wireless/rtl8192cu/include/ip.h
@@ -1,19 +1,22 @@
-/*
- * INET An implementation of the TCP/IP protocol suite for the LINUX
- * operating system. INET is implemented using the BSD Socket
- * interface as the means of communication with the user level.
+/******************************************************************************
*
- * Definitions for the IP protocol.
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
*
- * Version: @(#)ip.h 1.0.2 04/28/93
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
*
- * Authors: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
+ *
+ ******************************************************************************/
#ifndef _LINUX_IP_H
#define _LINUX_IP_H
#include <rtw_byteorder.h>
diff --git a/drivers/net/wireless/rtl8192cu/include/linux/wireless.h b/drivers/net/wireless/rtl8192cu/include/linux/wireless.h
new file mode 100644
index 0000000..24a22d6
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/linux/wireless.h
@@ -0,0 +1,90 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+
+#ifndef _LINUX_WIRELESS_H
+#define _LINUX_WIRELESS_H
+
+/***************************** INCLUDES *****************************/
+
+#if 0
+#include <linux/types.h> /* for __u* and __s* typedefs */
+#include <linux/socket.h> /* for "struct sockaddr" et al */
+#include <linux/if.h> /* for IFNAMSIZ and co... */
+#else
+#define __user
+//typedef uint16_t __u16;
+#include <sys/socket.h> /* for "struct sockaddr" et al */
+#include <net/if.h> /* for IFNAMSIZ and co... */
+#endif
+
+/****************************** TYPES ******************************/
+
+/* --------------------------- SUBTYPES --------------------------- */
+/*
+ * For all data larger than 16 octets, we need to use a
+ * pointer to memory allocated in user space.
+ */
+struct iw_point
+{
+ void __user *pointer; /* Pointer to the data (in user space) */
+ __u16 length; /* number of fields or size in bytes */
+ __u16 flags; /* Optional params */
+};
+
+
+/* ------------------------ IOCTL REQUEST ------------------------ */
+/*
+ * This structure defines the payload of an ioctl, and is used
+ * below.
+ *
+ * Note that this structure should fit on the memory footprint
+ * of iwreq (which is the same as ifreq), which mean a max size of
+ * 16 octets = 128 bits. Warning, pointers might be 64 bits wide...
+ * You should check this when increasing the structures defined
+ * above in this file...
+ */
+union iwreq_data
+{
+ /* Config - generic */
+ char name[IFNAMSIZ];
+ /* Name : used to verify the presence of wireless extensions.
+ * Name of the protocol/provider... */
+
+ struct iw_point data; /* Other large parameters */
+};
+
+/*
+ * The structure to exchange data for ioctl.
+ * This structure is the same as 'struct ifreq', but (re)defined for
+ * convenience...
+ * Do I need to remind you about structure size (32 octets) ?
+ */
+struct iwreq
+{
+ union
+ {
+ char ifrn_name[IFNAMSIZ]; /* if name, e.g. "eth0" */
+ } ifr_ifrn;
+
+ /* Data part (defined just above) */
+ union iwreq_data u;
+};
+
+#endif /* _LINUX_WIRELESS_H */
diff --git a/drivers/net/wireless/rtl8192cu/include/mlme_osdep.h b/drivers/net/wireless/rtl8192cu/include/mlme_osdep.h
index 1583053..75754db 100644
--- a/drivers/net/wireless/rtl8192cu/include/mlme_osdep.h
+++ b/drivers/net/wireless/rtl8192cu/include/mlme_osdep.h
@@ -34,10 +34,6 @@ extern void rtw_os_indicate_connect( _adapter *adapter );
void rtw_os_indicate_scan_done( _adapter *padapter, bool aborted);
extern void rtw_report_sec_ie(_adapter *adapter,u8 authmode,u8 *sec_ie);
-#ifdef CONFIG_AP_MODE
-void rtw_indicate_sta_assoc_event(_adapter *padapter, struct sta_info *psta);
-void rtw_indicate_sta_disassoc_event(_adapter *padapter, struct sta_info *psta);
-#endif
void rtw_reset_securitypriv( _adapter *adapter );
#endif //_MLME_OSDEP_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/osdep_intf.h b/drivers/net/wireless/rtl8192cu/include/osdep_intf.h
index 86b3f1f..3cd1659 100644
--- a/drivers/net/wireless/rtl8192cu/include/osdep_intf.h
+++ b/drivers/net/wireless/rtl8192cu/include/osdep_intf.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -25,11 +25,8 @@
#include <osdep_service.h>
#include <drv_types.h>
-#define RND4(x) (((x >> 2) + (((x & 3) == 0) ? 0: 1)) << 2)
-
-
struct intf_priv {
-
+
u8 *intf_dev;
u32 max_iosz; //USB2.0: 128, USB1.1: 64, SDIO:64
u32 max_xmitsz; //USB2.0: unlimited, SDIO:512
@@ -39,9 +36,9 @@ struct intf_priv {
volatile u8 *allocated_io_rwmem;
u32 io_wsz; //unit: 4bytes
u32 io_rsz;//unit: 4bytes
- u8 intf_status;
-
- void (*_bus_io)(u8 *priv);
+ u8 intf_status;
+
+ void (*_bus_io)(u8 *priv);
/*
Under Sync. IRP (SDIO/USB)
@@ -53,9 +50,9 @@ The protection mechanism is through the pending queue.
_mutex ioctl_mutex;
-
-#ifdef PLATFORM_LINUX
- #ifdef CONFIG_USB_HCI
+
+#ifdef PLATFORM_LINUX
+ #ifdef CONFIG_USB_HCI
// when in USB, IO is through interrupt in/out endpoints
struct usb_device *udev;
PURB piorw_urb;
@@ -70,7 +67,7 @@ The protection mechanism is through the pending queue.
#ifdef PLATFORM_OS_XP
#ifdef CONFIG_SDIO_HCI
- // below is for io_rwmem...
+ // below is for io_rwmem...
PMDL pmdl;
PSDBUS_REQUEST_PACKET sdrp;
PSDBUS_REQUEST_PACKET recv_sdrp;
@@ -84,11 +81,11 @@ The protection mechanism is through the pending queue.
PIRP piorw_irp;
u8 io_irp_cnt;
u8 bio_irp_pending;
- _sema io_retevt;
- #endif
+ _sema io_retevt;
+ #endif
#endif
-};
+};
#ifdef CONFIG_R871X_TEST
@@ -96,6 +93,9 @@ int rtw_start_pseudo_adhoc(_adapter *padapter);
int rtw_stop_pseudo_adhoc(_adapter *padapter);
#endif
+struct dvobj_priv *devobj_init(void);
+void devobj_deinit(struct dvobj_priv *pdvobj);
+
u8 rtw_init_drv_sw(_adapter *padapter);
u8 rtw_free_drv_sw(_adapter *padapter);
u8 rtw_reset_drv_sw(_adapter *padapter);
@@ -109,20 +109,47 @@ int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
struct net_device *rtw_init_netdev(_adapter *padapter);
+void rtw_unregister_netdevs(struct dvobj_priv *dvobj);
+
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+u16 rtw_recv_select_queue(struct sk_buff *skb);
+#endif //LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35)
#ifdef CONFIG_PROC_DEBUG
void rtw_proc_init_one(struct net_device *dev);
void rtw_proc_remove_one(struct net_device *dev);
-#endif
-#endif
+#else //!CONFIG_PROC_DEBUG
+static void rtw_proc_init_one(struct net_device *dev){}
+static void rtw_proc_remove_one(struct net_device *dev){}
+#endif //!CONFIG_PROC_DEBUG
+#endif //PLATFORM_LINUX
+#ifdef PLATFORM_FREEBSD
+extern int rtw_ioctl(struct ifnet * ifp, u_long cmd, caddr_t data);
+#endif
+
void rtw_ips_dev_unload(_adapter *padapter);
#ifdef CONFIG_IPS
int rtw_ips_pwr_up(_adapter *padapter);
void rtw_ips_pwr_down(_adapter *padapter);
#endif
+#ifdef CONFIG_CONCURRENT_MODE
+struct _io_ops;
+_adapter *rtw_drv_if2_init(_adapter *primary_padapter, void (*set_intf_ops)(struct _io_ops *pops));
+void rtw_drv_if2_free(_adapter *if2);
+void rtw_drv_if2_stop(_adapter *if2);
+#ifdef CONFIG_MULTI_VIR_IFACES
+struct dvobj_priv;
+_adapter *rtw_drv_add_vir_if(_adapter *primary_padapter, void (*set_intf_ops)(struct _io_ops *pops));
+void rtw_drv_stop_vir_ifaces(struct dvobj_priv *dvobj);
+void rtw_drv_free_vir_ifaces(struct dvobj_priv *dvobj);
+#endif //CONFIG_MULTI_VIR_IFACES
+#endif
+
+int rtw_drv_register_netdev(_adapter *padapter);
+void rtw_ndev_destructor(_nic_hdl ndev);
#endif //_OSDEP_INTF_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/osdep_service.h b/drivers/net/wireless/rtl8192cu/include/osdep_service.h
index 6fedff4..c5c465e 100644
--- a/drivers/net/wireless/rtl8192cu/include/osdep_service.h
+++ b/drivers/net/wireless/rtl8192cu/include/osdep_service.h
@@ -24,8 +24,9 @@
#include <basic_types.h>
//#include <rtl871x_byteorder.h>
-#define _SUCCESS 1
#define _FAIL 0
+#define _SUCCESS 1
+#define RTW_RX_HANDLED 2
//#define RTW_STATUS_TIMEDOUT -110
#undef _TRUE
@@ -33,6 +34,719 @@
#undef _FALSE
#define _FALSE 0
+
+
+#ifdef PLATFORM_FREEBSD
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#include <sys/systm.h>
+#include <sys/param.h>
+#include <sys/sockio.h>
+#include <sys/sysctl.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
+#include <sys/mbuf.h>
+#include <sys/kernel.h>
+#include <sys/socket.h>
+#include <sys/systm.h>
+#include <sys/malloc.h>
+#include <sys/module.h>
+#include <sys/bus.h>
+#include <sys/endian.h>
+#include <sys/kdb.h>
+#include <sys/kthread.h>
+#include <machine/atomic.h>
+
+#include <machine/bus.h>
+#include <machine/resource.h>
+#include <sys/rman.h>
+
+#include <net/bpf.h>
+#include <net/if.h>
+#include <net/if_arp.h>
+#include <net/ethernet.h>
+#include <net/if_dl.h>
+#include <net/if_media.h>
+#include <net/if_types.h>
+#include <net/route.h>
+
+
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/in_var.h>
+#include <netinet/if_ether.h>
+
+#include <net80211/ieee80211_var.h>
+#include <net80211/ieee80211_regdomain.h>
+#include <net80211/ieee80211_radiotap.h>
+#include <net80211/ieee80211_ratectl.h>
+
+#include <dev/usb/usb.h>
+#include <dev/usb/usbdi.h>
+#include "usbdevs.h"
+
+#define USB_DEBUG_VAR rum_debug
+#include <dev/usb/usb_debug.h>
+
+#if 1 //Baron porting from linux, it's all temp solution, needs to check again
+#include <sys/sema.h>
+#include <sys/pcpu.h> /* XXX for PCPU_GET */
+// typedef struct semaphore _sema;
+ typedef struct sema _sema;
+// typedef spinlock_t _lock;
+ typedef struct mtx _lock;
+ typedef struct mtx _mutex;
+ typedef struct timer_list _timer;
+ struct list_head {
+ struct list_head *next, *prev;
+ };
+ struct __queue {
+ struct list_head queue;
+ _lock lock;
+ };
+
+ //typedef struct sk_buff _pkt;
+ typedef struct mbuf _pkt;
+ typedef struct mbuf _buffer;
+
+ typedef struct __queue _queue;
+ typedef struct list_head _list;
+ typedef int _OS_STATUS;
+ //typedef u32 _irqL;
+ typedef unsigned long _irqL;
+ typedef struct ifnet * _nic_hdl;
+
+ typedef pid_t _thread_hdl_;
+// typedef struct thread _thread_hdl_;
+ typedef void thread_return;
+ typedef void* thread_context;
+
+ //#define thread_exit() complete_and_exit(NULL, 0)
+
+ typedef void timer_hdl_return;
+ typedef void* timer_hdl_context;
+ typedef struct work_struct _workitem;
+
+#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+/* emulate a modern version */
+#define LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 35)
+
+#define WIRELESS_EXT -1
+#define HZ hz
+#define spin_lock_irqsave mtx_lock_irqsave
+#define spin_lock_bh mtx_lock_irqsave
+#define mtx_lock_irqsave(lock, x) mtx_lock(lock)//{local_irq_save((x)); mtx_lock_spin((lock));}
+//#define IFT_RTW 0xf9 //ifnet allocate type for RTW
+#define free_netdev if_free
+#define LIST_CONTAINOR(ptr, type, member) \
+ ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
+#define container_of(p,t,n) (t*)((p)-&(((t*)0)->n))
+/*
+ * Linux timers are emulated using FreeBSD callout functions
+ * (and taskqueue functionality).
+ *
+ * Currently no timer stats functionality.
+ *
+ * See (linux_compat) processes.c
+ *
+ */
+struct timer_list {
+
+ /* FreeBSD callout related fields */
+ struct callout callout;
+
+ //timeout function
+ void (*function)(void*);
+ //argument
+ void *arg;
+
+};
+struct workqueue_struct;
+struct work_struct;
+typedef void (*work_func_t)(struct work_struct *work);
+/* Values for the state of an item of work (work_struct) */
+typedef enum work_state {
+ WORK_STATE_UNSET = 0,
+ WORK_STATE_CALLOUT_PENDING = 1,
+ WORK_STATE_TASK_PENDING = 2,
+ WORK_STATE_WORK_CANCELLED = 3
+} work_state_t;
+
+struct work_struct {
+ struct task task; /* FreeBSD task */
+ work_state_t state; /* the pending or otherwise state of work. */
+ work_func_t func;
+};
+#define spin_unlock_irqrestore mtx_unlock_irqrestore
+#define spin_unlock_bh mtx_unlock_irqrestore
+#define mtx_unlock_irqrestore(lock,x) mtx_unlock(lock);
+extern void _rtw_spinlock_init(_lock *plock);
+
+//modify private structure to match freebsd
+#define BITS_PER_LONG 32
+union ktime {
+ s64 tv64;
+#if BITS_PER_LONG != 64 && !defined(CONFIG_KTIME_SCALAR)
+ struct {
+#ifdef __BIG_ENDIAN
+ s32 sec, nsec;
+#else
+ s32 nsec, sec;
+#endif
+ } tv;
+#endif
+};
+#define kmemcheck_bitfield_begin(name)
+#define kmemcheck_bitfield_end(name)
+#define CHECKSUM_NONE 0
+typedef unsigned char *sk_buff_data_t;
+typedef union ktime ktime_t; /* Kill this */
+
+void rtw_mtx_lock(_lock *plock);
+
+void rtw_mtx_unlock(_lock *plock);
+
+/**
+ * struct sk_buff - socket buffer
+ * @next: Next buffer in list
+ * @prev: Previous buffer in list
+ * @sk: Socket we are owned by
+ * @tstamp: Time we arrived
+ * @dev: Device we arrived on/are leaving by
+ * @transport_header: Transport layer header
+ * @network_header: Network layer header
+ * @mac_header: Link layer header
+ * @_skb_refdst: destination entry (with norefcount bit)
+ * @sp: the security path, used for xfrm
+ * @cb: Control buffer. Free for use by every layer. Put private vars here
+ * @len: Length of actual data
+ * @data_len: Data length
+ * @mac_len: Length of link layer header
+ * @hdr_len: writable header length of cloned skb
+ * @csum: Checksum (must include start/offset pair)
+ * @csum_start: Offset from skb->head where checksumming should start
+ * @csum_offset: Offset from csum_start where checksum should be stored
+ * @local_df: allow local fragmentation
+ * @cloned: Head may be cloned (check refcnt to be sure)
+ * @nohdr: Payload reference only, must not modify header
+ * @pkt_type: Packet class
+ * @fclone: skbuff clone status
+ * @ip_summed: Driver fed us an IP checksum
+ * @priority: Packet queueing priority
+ * @users: User count - see {datagram,tcp}.c
+ * @protocol: Packet protocol from driver
+ * @truesize: Buffer size
+ * @head: Head of buffer
+ * @data: Data head pointer
+ * @tail: Tail pointer
+ * @end: End pointer
+ * @destructor: Destruct function
+ * @mark: Generic packet mark
+ * @nfct: Associated connection, if any
+ * @ipvs_property: skbuff is owned by ipvs
+ * @peeked: this packet has been seen already, so stats have been
+ * done for it, don't do them again
+ * @nf_trace: netfilter packet trace flag
+ * @nfctinfo: Relationship of this skb to the connection
+ * @nfct_reasm: netfilter conntrack re-assembly pointer
+ * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c
+ * @skb_iif: ifindex of device we arrived on
+ * @rxhash: the packet hash computed on receive
+ * @queue_mapping: Queue mapping for multiqueue devices
+ * @tc_index: Traffic control index
+ * @tc_verd: traffic control verdict
+ * @ndisc_nodetype: router type (from link layer)
+ * @dma_cookie: a cookie to one of several possible DMA operations
+ * done by skb DMA functions
+ * @secmark: security marking
+ * @vlan_tci: vlan tag control information
+ */
+
+struct sk_buff {
+ /* These two members must be first. */
+ struct sk_buff *next;
+ struct sk_buff *prev;
+
+ ktime_t tstamp;
+
+ struct sock *sk;
+ //struct net_device *dev;
+ struct ifnet *dev;
+
+ /*
+ * This is the control buffer. It is free to use for every
+ * layer. Please put your private variables there. If you
+ * want to keep them across layers you have to do a skb_clone()
+ * first. This is owned by whoever has the skb queued ATM.
+ */
+ char cb[48] __aligned(8);
+
+ unsigned long _skb_refdst;
+#ifdef CONFIG_XFRM
+ struct sec_path *sp;
+#endif
+ unsigned int len,
+ data_len;
+ u16 mac_len,
+ hdr_len;
+ union {
+ u32 csum;
+ struct {
+ u16 csum_start;
+ u16 csum_offset;
+ }smbol2;
+ }smbol1;
+ u32 priority;
+ kmemcheck_bitfield_begin(flags1);
+ u8 local_df:1,
+ cloned:1,
+ ip_summed:2,
+ nohdr:1,
+ nfctinfo:3;
+ u8 pkt_type:3,
+ fclone:2,
+ ipvs_property:1,
+ peeked:1,
+ nf_trace:1;
+ kmemcheck_bitfield_end(flags1);
+ u16 protocol;
+
+ void (*destructor)(struct sk_buff *skb);
+#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
+ struct nf_conntrack *nfct;
+ struct sk_buff *nfct_reasm;
+#endif
+#ifdef CONFIG_BRIDGE_NETFILTER
+ struct nf_bridge_info *nf_bridge;
+#endif
+
+ int skb_iif;
+#ifdef CONFIG_NET_SCHED
+ u16 tc_index; /* traffic control index */
+#ifdef CONFIG_NET_CLS_ACT
+ u16 tc_verd; /* traffic control verdict */
+#endif
+#endif
+
+ u32 rxhash;
+
+ kmemcheck_bitfield_begin(flags2);
+ u16 queue_mapping:16;
+#ifdef CONFIG_IPV6_NDISC_NODETYPE
+ u8 ndisc_nodetype:2,
+ deliver_no_wcard:1;
+#else
+ u8 deliver_no_wcard:1;
+#endif
+ kmemcheck_bitfield_end(flags2);
+
+ /* 0/14 bit hole */
+
+#ifdef CONFIG_NET_DMA
+ dma_cookie_t dma_cookie;
+#endif
+#ifdef CONFIG_NETWORK_SECMARK
+ u32 secmark;
+#endif
+ union {
+ u32 mark;
+ u32 dropcount;
+ }symbol3;
+
+ u16 vlan_tci;
+
+ sk_buff_data_t transport_header;
+ sk_buff_data_t network_header;
+ sk_buff_data_t mac_header;
+ /* These elements must be at the end, see alloc_skb() for details. */
+ sk_buff_data_t tail;
+ sk_buff_data_t end;
+ unsigned char *head,
+ *data;
+ unsigned int truesize;
+ atomic_t users;
+};
+struct sk_buff_head {
+ /* These two members must be first. */
+ struct sk_buff *next;
+ struct sk_buff *prev;
+
+ u32 qlen;
+ _lock lock;
+};
+#define skb_tail_pointer(skb) skb->tail
+static inline unsigned char *skb_put(struct sk_buff *skb, unsigned int len)
+{
+ unsigned char *tmp = skb_tail_pointer(skb);
+ //SKB_LINEAR_ASSERT(skb);
+ skb->tail += len;
+ skb->len += len;
+ return tmp;
+}
+
+static inline unsigned char *__skb_pull(struct sk_buff *skb, unsigned int len)
+{
+ skb->len -= len;
+ if(skb->len < skb->data_len)
+ printf("%s(),%d,error!\n",__FUNCTION__,__LINE__);
+ return skb->data += len;
+}
+static inline unsigned char *skb_pull(struct sk_buff *skb, unsigned int len)
+{
+ #ifdef PLATFORM_FREEBSD
+ return __skb_pull(skb, len);
+ #else
+ return unlikely(len > skb->len) ? NULL : __skb_pull(skb, len);
+ #endif //PLATFORM_FREEBSD
+}
+static inline u32 skb_queue_len(const struct sk_buff_head *list_)
+{
+ return list_->qlen;
+}
+static inline void __skb_insert(struct sk_buff *newsk,
+ struct sk_buff *prev, struct sk_buff *next,
+ struct sk_buff_head *list)
+{
+ newsk->next = next;
+ newsk->prev = prev;
+ next->prev = prev->next = newsk;
+ list->qlen++;
+}
+static inline void __skb_queue_before(struct sk_buff_head *list,
+ struct sk_buff *next,
+ struct sk_buff *newsk)
+{
+ __skb_insert(newsk, next->prev, next, list);
+}
+static inline void skb_queue_tail(struct sk_buff_head *list,
+ struct sk_buff *newsk)
+{
+ mtx_lock(&list->lock);
+ __skb_queue_before(list, (struct sk_buff *)list, newsk);
+ mtx_unlock(&list->lock);
+}
+static inline struct sk_buff *skb_peek(struct sk_buff_head *list_)
+{
+ struct sk_buff *list = ((struct sk_buff *)list_)->next;
+ if (list == (struct sk_buff *)list_)
+ list = NULL;
+ return list;
+}
+static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list)
+{
+ struct sk_buff *next, *prev;
+
+ list->qlen--;
+ next = skb->next;
+ prev = skb->prev;
+ skb->next = skb->prev = NULL;
+ next->prev = prev;
+ prev->next = next;
+}
+
+static inline struct sk_buff *skb_dequeue(struct sk_buff_head *list)
+{
+ mtx_lock(&list->lock);
+
+ struct sk_buff *skb = skb_peek(list);
+ if (skb)
+ __skb_unlink(skb, list);
+
+ mtx_unlock(&list->lock);
+
+ return skb;
+}
+static inline void skb_reserve(struct sk_buff *skb, int len)
+{
+ skb->data += len;
+ skb->tail += len;
+}
+static inline void __skb_queue_head_init(struct sk_buff_head *list)
+{
+ list->prev = list->next = (struct sk_buff *)list;
+ list->qlen = 0;
+}
+/*
+ * This function creates a split out lock class for each invocation;
+ * this is needed for now since a whole lot of users of the skb-queue
+ * infrastructure in drivers have different locking usage (in hardirq)
+ * than the networking core (in softirq only). In the long run either the
+ * network layer or drivers should need annotation to consolidate the
+ * main types of usage into 3 classes.
+ */
+static inline void skb_queue_head_init(struct sk_buff_head *list)
+{
+ _rtw_spinlock_init(&list->lock);
+ __skb_queue_head_init(list);
+}
+unsigned long copy_from_user(void *to, const void *from, unsigned long n);
+unsigned long copy_to_user(void *to, const void *from, unsigned long n);
+struct sk_buff * dev_alloc_skb(unsigned int size);
+struct sk_buff *skb_clone(const struct sk_buff *skb);
+void dev_kfree_skb_any(struct sk_buff *skb);
+#endif //Baron porting from linux, it's all temp solution, needs to check again
+
+
+#if 1 // kenny add Linux compatibility code for Linux USB driver
+#include <dev/usb/usb_compat_linux.h>
+
+#define __init // __attribute ((constructor))
+#define __exit // __attribute ((destructor))
+
+/*
+ * Definitions for module_init and module_exit macros.
+ *
+ * These macros will use the SYSINIT framework to call a specified
+ * function (with no arguments) on module loading or unloading.
+ *
+ */
+
+void module_init_exit_wrapper(void *arg);
+
+#define module_init(initfn) \
+ SYSINIT(mod_init_ ## initfn, \
+ SI_SUB_KLD, SI_ORDER_FIRST, \
+ module_init_exit_wrapper, initfn)
+
+#define module_exit(exitfn) \
+ SYSUNINIT(mod_exit_ ## exitfn, \
+ SI_SUB_KLD, SI_ORDER_ANY, \
+ module_init_exit_wrapper, exitfn)
+
+/*
+ * The usb_register and usb_deregister functions are used to register
+ * usb drivers with the usb subsystem.
+ */
+int usb_register(struct usb_driver *driver);
+int usb_deregister(struct usb_driver *driver);
+
+/*
+ * usb_get_dev and usb_put_dev - increment/decrement the reference count
+ * of the usb device structure.
+ *
+ * Original body of usb_get_dev:
+ *
+ * if (dev)
+ * get_device(&dev->dev);
+ * return dev;
+ *
+ * Reference counts are not currently used in this compatibility
+ * layer. So these functions will do nothing.
+ */
+static inline struct usb_device *
+usb_get_dev(struct usb_device *dev)
+{
+ return dev;
+}
+
+static inline void
+usb_put_dev(struct usb_device *dev)
+{
+ return;
+}
+
+
+// rtw_usb_compat_linux
+int rtw_usb_submit_urb(struct urb *urb, uint16_t mem_flags);
+int rtw_usb_unlink_urb(struct urb *urb);
+int rtw_usb_clear_halt(struct usb_device *dev, struct usb_host_endpoint *uhe);
+int rtw_usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe,
+ uint8_t request, uint8_t requesttype,
+ uint16_t value, uint16_t index, void *data,
+ uint16_t size, usb_timeout_t timeout);
+int rtw_usb_set_interface(struct usb_device *dev, uint8_t iface_no, uint8_t alt_index);
+int rtw_usb_setup_endpoint(struct usb_device *dev,
+ struct usb_host_endpoint *uhe, usb_size_t bufsize);
+struct urb *rtw_usb_alloc_urb(uint16_t iso_packets, uint16_t mem_flags);
+struct usb_host_endpoint *rtw_usb_find_host_endpoint(struct usb_device *dev, uint8_t type, uint8_t ep);
+struct usb_host_interface *rtw_usb_altnum_to_altsetting(const struct usb_interface *intf, uint8_t alt_index);
+struct usb_interface *rtw_usb_ifnum_to_if(struct usb_device *dev, uint8_t iface_no);
+void *rtw_usb_buffer_alloc(struct usb_device *dev, usb_size_t size, uint8_t *dma_addr);
+void *rtw_usbd_get_intfdata(struct usb_interface *intf);
+void rtw_usb_linux_register(void *arg);
+void rtw_usb_linux_deregister(void *arg);
+void rtw_usb_linux_free_device(struct usb_device *dev);
+void rtw_usb_buffer_free(struct usb_device *dev, usb_size_t size,
+ void *addr, uint8_t dma_addr);
+void rtw_usb_free_urb(struct urb *urb);
+void rtw_usb_init_urb(struct urb *urb);
+void rtw_usb_kill_urb(struct urb *urb);
+void rtw_usb_set_intfdata(struct usb_interface *intf, void *data);
+void rtw_usb_fill_bulk_urb(struct urb *urb, struct usb_device *udev,
+ struct usb_host_endpoint *uhe, void *buf,
+ int length, usb_complete_t callback, void *arg);
+int rtw_usb_bulk_msg(struct usb_device *udev, struct usb_host_endpoint *uhe,
+ void *data, int len, uint16_t *pactlen, usb_timeout_t timeout);
+void *usb_get_intfdata(struct usb_interface *intf);
+int usb_linux_init_endpoints(struct usb_device *udev);
+
+
+
+typedef struct urb * PURB;
+
+typedef unsigned gfp_t;
+#define __GFP_WAIT ((gfp_t)0x10u) /* Can wait and reschedule? */
+#define __GFP_HIGH ((gfp_t)0x20u) /* Should access emergency pools? */
+#define __GFP_IO ((gfp_t)0x40u) /* Can start physical IO? */
+#define __GFP_FS ((gfp_t)0x80u) /* Can call down to low-level FS? */
+#define __GFP_COLD ((gfp_t)0x100u) /* Cache-cold page required */
+#define __GFP_NOWARN ((gfp_t)0x200u) /* Suppress page allocation failure warning */
+#define __GFP_REPEAT ((gfp_t)0x400u) /* Retry the allocation. Might fail */
+#define __GFP_NOFAIL ((gfp_t)0x800u) /* Retry for ever. Cannot fail */
+#define __GFP_NORETRY ((gfp_t)0x1000u)/* Do not retry. Might fail */
+#define __GFP_NO_GROW ((gfp_t)0x2000u)/* Slab internal usage */
+#define __GFP_COMP ((gfp_t)0x4000u)/* Add compound page metadata */
+#define __GFP_ZERO ((gfp_t)0x8000u)/* Return zeroed page on success */
+#define __GFP_NOMEMALLOC ((gfp_t)0x10000u) /* Don't use emergency reserves */
+#define __GFP_HARDWALL ((gfp_t)0x20000u) /* Enforce hardwall cpuset memory allocs */
+
+/* This equals 0, but use constants in case they ever change */
+#define GFP_NOWAIT (GFP_ATOMIC & ~__GFP_HIGH)
+/* GFP_ATOMIC means both !wait (__GFP_WAIT not set) and use emergency pool */
+#define GFP_ATOMIC (__GFP_HIGH)
+#define GFP_NOIO (__GFP_WAIT)
+#define GFP_NOFS (__GFP_WAIT | __GFP_IO)
+#define GFP_KERNEL (__GFP_WAIT | __GFP_IO | __GFP_FS)
+#define GFP_USER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL)
+#define GFP_HIGHUSER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL | \
+ __GFP_HIGHMEM)
+
+
+#endif // kenny add Linux compatibility code for Linux USB
+
+
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
+#endif
+
+__inline static _list *get_next(_list *list)
+{
+ return list->next;
+}
+
+__inline static _list *get_list_head(_queue *queue)
+{
+ return (&(queue->queue));
+}
+
+
+#define LIST_CONTAINOR(ptr, type, member) \
+ ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
+
+
+__inline static void _enter_critical(_lock *plock, _irqL *pirqL)
+{
+ spin_lock_irqsave(plock, *pirqL);
+}
+
+__inline static void _exit_critical(_lock *plock, _irqL *pirqL)
+{
+ spin_unlock_irqrestore(plock, *pirqL);
+}
+
+__inline static void _enter_critical_ex(_lock *plock, _irqL *pirqL)
+{
+ spin_lock_irqsave(plock, *pirqL);
+}
+
+__inline static void _exit_critical_ex(_lock *plock, _irqL *pirqL)
+{
+ spin_unlock_irqrestore(plock, *pirqL);
+}
+
+__inline static void _enter_critical_bh(_lock *plock, _irqL *pirqL)
+{
+ spin_lock_bh(plock, *pirqL);
+}
+
+__inline static void _exit_critical_bh(_lock *plock, _irqL *pirqL)
+{
+ spin_unlock_bh(plock, *pirqL);
+}
+
+__inline static void _enter_critical_mutex(_mutex *pmutex, _irqL *pirqL)
+{
+
+ mtx_lock(pmutex);
+
+}
+
+
+__inline static void _exit_critical_mutex(_mutex *pmutex, _irqL *pirqL)
+{
+
+ mtx_unlock(pmutex);
+
+}
+static inline void __list_del(struct list_head * prev, struct list_head * next)
+{
+ next->prev = prev;
+ prev->next = next;
+}
+static inline void INIT_LIST_HEAD(struct list_head *list)
+{
+ list->next = list;
+ list->prev = list;
+}
+__inline static void rtw_list_delete(_list *plist)
+{
+ __list_del(plist->prev, plist->next);
+ INIT_LIST_HEAD(plist);
+}
+
+__inline static void _init_timer(_timer *ptimer,_nic_hdl padapter,void *pfunc,void* cntx)
+{
+ ptimer->function = pfunc;
+ ptimer->arg = cntx;
+ callout_init(&ptimer->callout, CALLOUT_MPSAFE);
+}
+
+__inline static void _set_timer(_timer *ptimer,u32 delay_time)
+{
+ // mod_timer(ptimer , (jiffies+(delay_time*HZ/1000)));
+ if(ptimer->function && ptimer->arg){
+ rtw_mtx_lock(NULL);
+ callout_reset(&ptimer->callout, delay_time,ptimer->function, ptimer->arg);
+ rtw_mtx_unlock(NULL);
+ }
+}
+
+__inline static void _cancel_timer(_timer *ptimer,u8 *bcancelled)
+{
+ // del_timer_sync(ptimer);
+ // *bcancelled= _TRUE;//TRUE ==1; FALSE==0
+ rtw_mtx_lock(NULL);
+ callout_drain(&ptimer->callout);
+ rtw_mtx_unlock(NULL);
+}
+
+__inline static void _init_workitem(_workitem *pwork, void *pfunc, PVOID cntx)
+{
+ printf("%s Not implement yet! \n",__FUNCTION__);
+}
+
+__inline static void _set_workitem(_workitem *pwork)
+{
+ printf("%s Not implement yet! \n",__FUNCTION__);
+// schedule_work(pwork);
+}
+
+//
+// Global Mutex: can only be used at PASSIVE level.
+//
+
+#define ACQUIRE_GLOBAL_MUTEX(_MutexCounter) \
+{ \
+}
+
+#define RELEASE_GLOBAL_MUTEX(_MutexCounter) \
+{ \
+}
+
+#define ATOMIC_INIT(i) { (i) }
+
+#endif //PLATFORM_FREEBSD
#ifdef PLATFORM_LINUX
@@ -69,16 +783,18 @@
#include <linux/rtnetlink.h>
#include <linux/delay.h>
#include <linux/proc_fs.h> // Necessary because we use the proc fs
+ #include <linux/interrupt.h> // for struct tasklet_struct
+ #include <linux/ip.h>
+ #include <linux/kthread.h>
#ifdef CONFIG_IOCTL_CFG80211
// #include <linux/ieee80211.h>
- #include <net/ieee80211_radiotap.h>
+ #include <net/ieee80211_radiotap.h>
#include <net/cfg80211.h>
#endif //CONFIG_IOCTL_CFG80211
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
#include <linux/in.h>
- #include <linux/ip.h>
#include <linux/udp.h>
#endif
@@ -91,18 +807,10 @@
#endif
#endif
-#ifdef CONFIG_SDIO_HCI
- #include <linux/mmc/sdio_func.h>
- #include <linux/mmc/sdio_ids.h>
-#endif
-
#ifdef CONFIG_PCI_HCI
#include <linux/pci.h>
#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
- #include <linux/kthread.h>
-#endif
#ifdef CONFIG_USB_HCI
typedef struct urb * PURB;
@@ -136,12 +844,8 @@
//typedef u32 _irqL;
typedef unsigned long _irqL;
typedef struct net_device * _nic_hdl;
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0))
- typedef pid_t _thread_hdl_;
-#else
- typedef struct task_struct * _thread_hdl_;
-#endif
+
+ typedef void* _thread_hdl_;
typedef int thread_return;
typedef void* thread_context;
@@ -156,7 +860,26 @@
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
- #define skb_tail_pointer(skb) skb->tail
+// Porting from linux kernel, for compatible with old kernel.
+static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb)
+{
+ return skb->tail;
+}
+
+static inline void skb_reset_tail_pointer(struct sk_buff *skb)
+{
+ skb->tail = skb->data;
+}
+
+static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset)
+{
+ skb->tail = skb->data + offset;
+}
+
+static inline unsigned char *skb_end_pointer(const struct sk_buff *skb)
+{
+ return skb->end;
+}
#endif
__inline static _list *get_next(_list *list)
@@ -271,6 +994,15 @@ __inline static void _set_workitem(_workitem *pwork)
schedule_work(pwork);
}
+__inline static void _cancel_workitem_sync(_workitem *pwork)
+{
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,22))
+ cancel_work_sync(pwork);
+#else
+ flush_scheduled_work();
+#endif
+}
+
//
// Global Mutex: can only be used at PASSIVE level.
//
@@ -289,6 +1021,45 @@ __inline static void _set_workitem(_workitem *pwork)
atomic_dec((atomic_t *)&(_MutexCounter)); \
}
+static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)
+{
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ return (netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) &&
+ netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) &&
+ netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) &&
+ netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3)) );
+#else
+ return netif_queue_stopped(pnetdev);
+#endif
+}
+
+static inline void rtw_netif_wake_queue(struct net_device *pnetdev)
+{
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ netif_tx_wake_all_queues(pnetdev);
+#else
+ netif_wake_queue(pnetdev);
+#endif
+}
+
+static inline void rtw_netif_start_queue(struct net_device *pnetdev)
+{
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ netif_tx_start_all_queues(pnetdev);
+#else
+ netif_start_queue(pnetdev);
+#endif
+}
+
+static inline void rtw_netif_stop_queue(struct net_device *pnetdev)
+{
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ netif_tx_stop_all_queues(pnetdev);
+#else
+ netif_stop_queue(pnetdev);
+#endif
+}
+
#endif // PLATFORM_LINUX
@@ -296,7 +1067,6 @@ __inline static void _set_workitem(_workitem *pwork)
#include <ndis.h>
#include <ntddk.h>
- #include <ntddsd.h>
#include <ntddndis.h>
#include <ntdef.h>
@@ -470,46 +1240,160 @@ extern int RTW_STATUS_CODE(int error_code);
#define CONFIG_USE_VMALLOC
+/* flags used for rtw_mstat_update() */
+enum mstat_f {
+ /* type: 0x00ff */
+ MSTAT_TYPE_VIR = 0x00,
+ MSTAT_TYPE_PHY= 0x01,
+ MSTAT_TYPE_SKB = 0x02,
+ MSTAT_TYPE_USB = 0x03,
+ MSTAT_TYPE_MAX = 0x04,
+
+ /* func: 0xff00 */
+ MSTAT_FUNC_UNSPECIFIED = 0x00<<8,
+ MSTAT_FUNC_IO = 0x01<<8,
+ MSTAT_FUNC_TX_IO = 0x02<<8,
+ MSTAT_FUNC_RX_IO = 0x03<<8,
+ MSTAT_FUNC_TX = 0x04<<8,
+ MSTAT_FUNC_RX = 0x05<<8,
+ MSTAT_FUNC_MAX = 0x06<<8,
+};
+
+#define mstat_tf_idx(flags) ((flags)&0xff)
+#define mstat_ff_idx(flags) (((flags)&0xff00) >> 8)
+
+typedef enum mstat_status{
+ MSTAT_ALLOC_SUCCESS = 0,
+ MSTAT_ALLOC_FAIL,
+ MSTAT_FREE
+} MSTAT_STATUS;
+
#ifdef DBG_MEM_ALLOC
-void rtw_dump_mem_stat (void);
-extern u8* dbg_rtw_vmalloc(u32 sz, const char *func, int line);
-extern u8* dbg_rtw_zvmalloc(u32 sz, const char *func, int line);
-extern void dbg_rtw_vmfree(u8 *pbuf, u32 sz, const char *func, int line);
-extern u8* dbg_rtw_malloc(u32 sz, const char *func, int line);
-extern u8* dbg_rtw_zmalloc(u32 sz, const char *func, int line);
-extern void dbg_rtw_mfree(u8 *pbuf, u32 sz, const char *func, int line);
+void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 sz);
+int _rtw_mstat_dump(char *buf, int len);
+void rtw_mstat_dump (void);
+u8* dbg_rtw_vmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
+u8* dbg_rtw_zvmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
+void dbg_rtw_vmfree(u8 *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line);
+u8* dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
+u8* dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
+void dbg_rtw_mfree(u8 *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line);
+
+struct sk_buff * dbg_rtw_skb_alloc(unsigned int size, const enum mstat_f flags, const char *func, const int line);
+void dbg_rtw_skb_free(struct sk_buff *skb, const enum mstat_f flags, const char *func, const int line);
+struct sk_buff *dbg_rtw_skb_copy(const struct sk_buff *skb, const enum mstat_f flags, const char *func, const int line);
+struct sk_buff *dbg_rtw_skb_clone(struct sk_buff *skb, const enum mstat_f flags, const char *func, const int line);
+int dbg_rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb, const enum mstat_f flags, const char *func, int line);
+void dbg_rtw_skb_queue_purge(struct sk_buff_head *list, enum mstat_f flags, const char *func, int line);
+
+#ifdef CONFIG_USB_HCI
+void *dbg_rtw_usb_buffer_alloc(struct usb_device *dev, size_t size, dma_addr_t *dma, const enum mstat_f flags, const char *func, const int line);
+void dbg_rtw_usb_buffer_free(struct usb_device *dev, size_t size, void *addr, dma_addr_t dma, const enum mstat_f flags, const char *func, const int line);
+#endif /* CONFIG_USB_HCI */
+
#ifdef CONFIG_USE_VMALLOC
-#define rtw_vmalloc(sz) dbg_rtw_vmalloc((sz), __FUNCTION__, __LINE__)
-#define rtw_zvmalloc(sz) dbg_rtw_zvmalloc((sz), __FUNCTION__, __LINE__)
-#define rtw_vmfree(pbuf, sz) dbg_rtw_vmfree((pbuf), (sz), __FUNCTION__, __LINE__)
-#else //CONFIG_USE_VMALLOC
-#define rtw_vmalloc(sz) dbg_rtw_malloc((sz), __FUNCTION__, __LINE__)
-#define rtw_zvmalloc(sz) dbg_rtw_zmalloc((sz), __FUNCTION__, __LINE__)
-#define rtw_vmfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), __FUNCTION__, __LINE__)
-#endif //CONFIG_USE_VMALLOC
-#define rtw_malloc(sz) dbg_rtw_malloc((sz), __FUNCTION__, __LINE__)
-#define rtw_zmalloc(sz) dbg_rtw_zmalloc((sz), __FUNCTION__, __LINE__)
-#define rtw_mfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), __FUNCTION__, __LINE__)
-#else
-extern u8* _rtw_vmalloc(u32 sz);
-extern u8* _rtw_zvmalloc(u32 sz);
-extern void _rtw_vmfree(u8 *pbuf, u32 sz);
-extern u8* _rtw_zmalloc(u32 sz);
-extern u8* _rtw_malloc(u32 sz);
-extern void _rtw_mfree(u8 *pbuf, u32 sz);
+#define rtw_vmalloc(sz) dbg_rtw_vmalloc((sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__)
+#define rtw_zvmalloc(sz) dbg_rtw_zvmalloc((sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__)
+#define rtw_vmfree(pbuf, sz) dbg_rtw_vmfree((pbuf), (sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__)
+#define rtw_vmalloc_f(sz, mstat_f) dbg_rtw_vmalloc((sz), ((mstat_f)&0xff00)|MSTAT_TYPE_VIR, __FUNCTION__, __LINE__)
+#define rtw_zvmalloc_f(sz, mstat_f) dbg_rtw_zvmalloc((sz), ((mstat_f)&0xff00)|MSTAT_TYPE_VIR, __FUNCTION__, __LINE__)
+#define rtw_vmfree_f(pbuf, sz, mstat_f) dbg_rtw_vmfree((pbuf), (sz), ((mstat_f)&0xff00)|MSTAT_TYPE_VIR, __FUNCTION__, __LINE__)
+#else /* CONFIG_USE_VMALLOC */
+#define rtw_vmalloc(sz) dbg_rtw_malloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_zvmalloc(sz) dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_vmfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_vmalloc_f(sz, mstat_f) dbg_rtw_malloc((sz), ((mstat_f)&0xff00)|MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_zvmalloc_f(sz, mstat_f) dbg_rtw_zmalloc((sz), ((mstat_f)&0xff00)|MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_vmfree_f(pbuf, sz, mstat_f) dbg_rtw_mfree((pbuf), (sz), ((mstat_f)&0xff00)|MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#endif /* CONFIG_USE_VMALLOC */
+#define rtw_malloc(sz) dbg_rtw_malloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_zmalloc(sz) dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_mfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_malloc_f(sz, mstat_f) dbg_rtw_malloc((sz), ((mstat_f)&0xff00)|MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_zmalloc_f(sz, mstat_f) dbg_rtw_zmalloc((sz), ((mstat_f)&0xff00)|MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+#define rtw_mfree_f(pbuf, sz, mstat_f) dbg_rtw_mfree((pbuf), (sz), ((mstat_f)&0xff00)|MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
+
+#define rtw_skb_alloc(size) dbg_rtw_skb_alloc((size), MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_free(skb) dbg_rtw_skb_free((skb), MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_alloc_f(size, mstat_f) dbg_rtw_skb_alloc((size), ((mstat_f)&0xff00)|MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_free_f(skb, mstat_f) dbg_rtw_skb_free((skb), ((mstat_f)&0xff00)|MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_copy(skb) dbg_rtw_skb_copy((skb), MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_clone(skb) dbg_rtw_skb_clone((skb), MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_copy_f(skb, mstat_f) dbg_rtw_skb_copy((skb), ((mstat_f)&0xff00)|MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_clone_f(skb, mstat_f) dbg_rtw_skb_clone((skb), ((mstat_f)&0xff00)|MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_netif_rx(ndev, skb) dbg_rtw_netif_rx(ndev, skb, MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#define rtw_skb_queue_purge(sk_buff_head) dbg_rtw_skb_queue_purge(sk_buff_head, MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
+#ifdef CONFIG_USB_HCI
+#define rtw_usb_buffer_alloc(dev, size, dma) dbg_rtw_usb_buffer_alloc((dev), (size), (dma), MSTAT_TYPE_USB, __FUNCTION__, __LINE__)
+#define rtw_usb_buffer_free(dev, size, addr, dma) dbg_rtw_usb_buffer_free((dev), (size), (addr), (dma), MSTAT_TYPE_USB, __FUNCTION__, __LINE__)
+#define rtw_usb_buffer_alloc_f(dev, size, dma, mstat_f) dbg_rtw_usb_buffer_alloc((dev), (size), (dma), ((mstat_f)&0xff00)|MSTAT_TYPE_USB, __FUNCTION__, __LINE__)
+#define rtw_usb_buffer_free_f(dev, size, addr, dma, mstat_f) dbg_rtw_usb_buffer_free((dev), (size), (addr), (dma), ((mstat_f)&0xff00)|MSTAT_TYPE_USB, __FUNCTION__, __LINE__)
+#endif /* CONFIG_USB_HCI */
+
+#else /* DBG_MEM_ALLOC */
+#define rtw_mstat_update(flag, status, sz) do {} while(0)
+#define rtw_mstat_dump() do {} while(0)
+u8* _rtw_vmalloc(u32 sz);
+u8* _rtw_zvmalloc(u32 sz);
+void _rtw_vmfree(u8 *pbuf, u32 sz);
+u8* _rtw_zmalloc(u32 sz);
+u8* _rtw_malloc(u32 sz);
+void _rtw_mfree(u8 *pbuf, u32 sz);
+
+struct sk_buff *_rtw_skb_alloc(u32 sz);
+void _rtw_skb_free(struct sk_buff *skb);
+struct sk_buff *_rtw_skb_copy(const struct sk_buff *skb);
+struct sk_buff *_rtw_skb_clone(struct sk_buff *skb);
+int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb);
+void _rtw_skb_queue_purge(struct sk_buff_head *list);
+
+#ifdef CONFIG_USB_HCI
+void *_rtw_usb_buffer_alloc(struct usb_device *dev, size_t size, dma_addr_t *dma);
+void _rtw_usb_buffer_free(struct usb_device *dev, size_t size, void *addr, dma_addr_t dma);
+#endif /* CONFIG_USB_HCI */
+
#ifdef CONFIG_USE_VMALLOC
#define rtw_vmalloc(sz) _rtw_vmalloc((sz))
#define rtw_zvmalloc(sz) _rtw_zvmalloc((sz))
#define rtw_vmfree(pbuf, sz) _rtw_vmfree((pbuf), (sz))
-#else //CONFIG_USE_VMALLOC
+#define rtw_vmalloc_f(sz, mstat_f) _rtw_vmalloc((sz))
+#define rtw_zvmalloc_f(sz, mstat_f) _rtw_zvmalloc((sz))
+#define rtw_vmfree_f(pbuf, sz, mstat_f) _rtw_vmfree((pbuf), (sz))
+#else /* CONFIG_USE_VMALLOC */
#define rtw_vmalloc(sz) _rtw_malloc((sz))
#define rtw_zvmalloc(sz) _rtw_zmalloc((sz))
#define rtw_vmfree(pbuf, sz) _rtw_mfree((pbuf), (sz))
-#endif //CONFIG_USE_VMALLOC
+#define rtw_vmalloc_f(sz, mstat_f) _rtw_malloc((sz))
+#define rtw_zvmalloc_f(sz, mstat_f) _rtw_zmalloc((sz))
+#define rtw_vmfree_f(pbuf, sz, mstat_f) _rtw_mfree((pbuf), (sz))
+#endif /* CONFIG_USE_VMALLOC */
#define rtw_malloc(sz) _rtw_malloc((sz))
#define rtw_zmalloc(sz) _rtw_zmalloc((sz))
#define rtw_mfree(pbuf, sz) _rtw_mfree((pbuf), (sz))
-#endif
+#define rtw_malloc_f(sz, mstat_f) _rtw_malloc((sz))
+#define rtw_zmalloc_f(sz, mstat_f) _rtw_zmalloc((sz))
+#define rtw_mfree_f(pbuf, sz, mstat_f) _rtw_mfree((pbuf), (sz))
+
+#define rtw_skb_alloc(size) _rtw_skb_alloc((size))
+#define rtw_skb_free(skb) _rtw_skb_free((skb))
+#define rtw_skb_alloc_f(size, mstat_f) _rtw_skb_alloc((size))
+#define rtw_skb_free_f(skb, mstat_f) _rtw_skb_free((skb))
+#define rtw_skb_copy(skb) _rtw_skb_copy((skb))
+#define rtw_skb_clone(skb) _rtw_skb_clone((skb))
+#define rtw_skb_copy_f(skb, mstat_f) _rtw_skb_copy((skb))
+#define rtw_skb_clone_f(skb, mstat_f) _rtw_skb_clone((skb))
+#define rtw_netif_rx(ndev, skb) _rtw_netif_rx(ndev, skb)
+#define rtw_skb_queue_purge(sk_buff_head) _rtw_skb_queue_purge(sk_buff_head)
+#ifdef CONFIG_USB_HCI
+#define rtw_usb_buffer_alloc(dev, size, dma) _rtw_usb_buffer_alloc((dev), (size), (dma))
+#define rtw_usb_buffer_free(dev, size, addr, dma) _rtw_usb_buffer_free((dev), (size), (addr), (dma))
+#define rtw_usb_buffer_alloc_f(dev, size, dma, mstat_f) _rtw_usb_buffer_alloc((dev), (size), (dma))
+#define rtw_usb_buffer_free_f(dev, size, addr, dma, mstat_f) _rtw_usb_buffer_free((dev), (size), (addr), (dma))
+#endif /* CONFIG_USB_HCI */
+#endif /* DBG_MEM_ALLOC */
+
+extern void* rtw_malloc2d(int h, int w, int size);
+extern void rtw_mfree2d(void *pbuf, int h, int w, int size);
extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
extern int _rtw_memcmp(void *dst, void *src, u32 sz);
@@ -517,8 +1401,11 @@ extern void _rtw_memset(void *pbuf, int c, u32 sz);
extern void _rtw_init_listhead(_list *list);
extern u32 rtw_is_list_empty(_list *phead);
+extern void rtw_list_insert_head(_list *plist, _list *phead);
extern void rtw_list_insert_tail(_list *plist, _list *phead);
+#ifndef PLATFORM_FREEBSD
extern void rtw_list_delete(_list *plist);
+#endif //PLATFORM_FREEBSD
extern void _rtw_init_sema(_sema *sema, int init_val);
extern void _rtw_free_sema(_sema *sema);
@@ -526,7 +1413,9 @@ extern void _rtw_up_sema(_sema *sema);
extern u32 _rtw_down_sema(_sema *sema);
extern void _rtw_mutex_init(_mutex *pmutex);
extern void _rtw_mutex_free(_mutex *pmutex);
+#ifndef PLATFORM_FREEBSD
extern void _rtw_spinlock_init(_lock *plock);
+#endif //PLATFORM_FREEBSD
extern void _rtw_spinlock_free(_lock *plock);
extern void _rtw_spinlock(_lock *plock);
extern void _rtw_spinunlock(_lock *plock);
@@ -539,6 +1428,7 @@ extern u32 rtw_end_of_queue_search(_list *queue, _list *pelement);
extern u32 rtw_get_current_time(void);
extern u32 rtw_systime_to_ms(u32 systime);
+extern u32 rtw_ms_to_systime(u32 ms);
extern s32 rtw_get_passing_time_ms(u32 start);
extern s32 rtw_get_time_interval_ms(u32 start, u32 end);
@@ -547,6 +1437,8 @@ extern void rtw_sleep_schedulable(int ms);
extern void rtw_msleep_os(int ms);
extern void rtw_usleep_os(int us);
+extern u32 rtw_atoi(u8* s);
+
#ifdef DBG_DELAY_OS
#define rtw_mdelay_os(ms) _rtw_mdelay_os((ms), __FUNCTION__, __LINE__)
#define rtw_udelay_os(ms) _rtw_udelay_os((ms), __FUNCTION__, __LINE__)
@@ -557,6 +1449,7 @@ extern void rtw_mdelay_os(int ms);
extern void rtw_udelay_os(int us);
#endif
+extern void rtw_yield_os(void);
__inline static unsigned char _cancel_timer_ex(_timer *ptimer)
@@ -564,7 +1457,10 @@ __inline static unsigned char _cancel_timer_ex(_timer *ptimer)
#ifdef PLATFORM_LINUX
return del_timer_sync(ptimer);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ _cancel_timer(ptimer,0);
+ return 0;
+#endif
#ifdef PLATFORM_WINDOWS
u8 bcancelled;
@@ -574,16 +1470,25 @@ __inline static unsigned char _cancel_timer_ex(_timer *ptimer)
#endif
}
-__inline static void thread_enter(void *context)
+#ifdef PLATFORM_FREEBSD
+static __inline void thread_enter(void *context);
+#endif //PLATFORM_FREEBSD
+static __inline void thread_enter(char *name)
{
#ifdef PLATFORM_LINUX
- //struct net_device *pnetdev = (struct net_device *)context;
- //daemonize("%s", pnetdev->name);
- //daemonize("%s", "RTKTHREAD");
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0))
+ daemonize("%s", name);
+ #endif
allow_signal(SIGTERM);
#endif
+#ifdef PLATFORM_FREEBSD
+ printf("%s", "RTKTHREAD_enter");
+#endif
}
+#ifdef PLATFORM_FREEBSD
+#define thread_exit() do{printf("%s", "RTKTHREAD_exit");}while(0)
+#endif //PLATFORM_FREEBSD
__inline static void flush_signals_thread(void)
{
#ifdef PLATFORM_LINUX
@@ -598,7 +1503,7 @@ __inline static _OS_STATUS res_to_status(sint res)
{
-#if defined (PLATFORM_LINUX) || defined (PLATFORM_MPIXEL)
+#if defined (PLATFORM_LINUX) || defined (PLATFORM_MPIXEL) || defined (PLATFORM_FREEBSD)
return res;
#endif
@@ -613,6 +1518,22 @@ __inline static _OS_STATUS res_to_status(sint res)
}
+__inline static void rtw_dump_stack(void)
+{
+#ifdef PLATFORM_LINUX
+ dump_stack();
+#endif
+}
+
+#ifdef PLATFORM_LINUX
+#define rtw_warn_on(condition) WARN_ON(condition)
+#else
+#define rtw_warn_on(condition) do {} while (0)
+#endif
+
+#define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r))
+#define RND4(x) (((x >> 2) + (((x & 3) == 0) ? 0: 1)) << 2)
+
__inline static u32 _RND4(u32 sz)
{
@@ -712,6 +1633,7 @@ extern void rtw_suspend_lock_init(void);
extern void rtw_suspend_lock_uninit(void);
extern void rtw_lock_suspend(void);
extern void rtw_unlock_suspend(void);
+extern void rtw_lock_suspend_timeout(u32 timeout_ms);
//Atomic integer operations
@@ -719,6 +1641,8 @@ extern void rtw_unlock_suspend(void);
#define ATOMIC_T atomic_t
#elif defined(PLATFORM_WINDOWS)
#define ATOMIC_T LONG
+#elif defined(PLATFORM_FREEBSD)
+ typedef uint32_t ATOMIC_T ;
#endif
extern void ATOMIC_SET(ATOMIC_T *v, int i);
@@ -738,7 +1662,6 @@ extern int rtw_retrive_from_file(char *path, u8* buf, u32 sz);
extern int rtw_store_to_file(char *path, u8* buf, u32 sz);
-
#if 1 //#ifdef MEM_ALLOC_REFINE_ADAPTOR
struct rtw_netdev_priv_indicator {
void *priv;
@@ -746,20 +1669,58 @@ struct rtw_netdev_priv_indicator {
};
struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv, void *old_priv);
extern struct net_device * rtw_alloc_etherdev(int sizeof_priv);
+
+#ifndef PLATFORM_FREEBSD
#define rtw_netdev_priv(netdev) ( ((struct rtw_netdev_priv_indicator *)netdev_priv(netdev))->priv )
+#else //PLATFORM_FREEBSD
+#define rtw_netdev_priv(netdev) (((struct ifnet *)netdev)->if_softc)
+#endif //PLATFORM_FREEBSD
+
+#ifndef PLATFORM_FREEBSD
extern void rtw_free_netdev(struct net_device * netdev);
-#else
+#else //PLATFORM_FREEBSD
+#define rtw_free_netdev(netdev) if_free((netdev))
+#endif //PLATFORM_FREEBSD
+
+#else //MEM_ALLOC_REFINE_ADAPTOR
+
#define rtw_alloc_etherdev(sizeof_priv) alloc_etherdev((sizeof_priv))
+
+#ifndef PLATFORM_FREEBSD
#define rtw_netdev_priv(netdev) netdev_priv((netdev))
#define rtw_free_netdev(netdev) free_netdev((netdev))
+#else //PLATFORM_FREEBSD
+#define rtw_netdev_priv(netdev) (((struct ifnet *)netdev)->if_softc)
+#define rtw_free_netdev(netdev) if_free((netdev))
+#endif //PLATFORM_FREEBSD
+#endif
+
+#ifdef PLATFORM_LINUX
+#define NDEV_FMT "%s"
+#define NDEV_ARG(ndev) ndev->name
+#define ADPT_FMT "%s"
+#define ADPT_ARG(adapter) adapter->pnetdev->name
+#define FUNC_NDEV_FMT "%s(%s)"
+#define FUNC_NDEV_ARG(ndev) __func__, ndev->name
+#define FUNC_ADPT_FMT "%s(%s)"
+#define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
+#else
+#define NDEV_FMT "%s"
+#define NDEV_ARG(ndev) ""
+#define ADPT_FMT "%s"
+#define ADPT_ARG(adapter) ""
+#define FUNC_NDEV_FMT "%s"
+#define FUNC_NDEV_ARG(ndev) __func__
+#define FUNC_ADPT_FMT "%s"
+#define FUNC_ADPT_ARG(adapter) __func__
#endif
#ifdef PLATFORM_LINUX
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
#define rtw_signal_process(pid, sig) kill_pid(find_vpid((pid)),(sig), 1)
-#else
+#else //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
#define rtw_signal_process(pid, sig) kill_proc((pid), (sig), 1)
-#endif
+#endif //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
#endif //PLATFORM_LINUX
extern u64 rtw_modular64(u64 x, u64 y);
@@ -832,10 +1793,23 @@ extern u64 rtw_division64(u64 x, u64 y);
(((u64) (a)[3]) << 24) | (((u64) (a)[2]) << 16) | \
(((u64) (a)[1]) << 8) | ((u64) (a)[0]))
-#endif
+void rtw_buf_free(u8 **buf, u32 *buf_len);
+void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len);
+
+struct rtw_cbuf {
+ u32 write;
+ u32 read;
+ u32 size;
+ void *bufs[0];
+};
+
+bool rtw_cbuf_full(struct rtw_cbuf *cbuf);
+bool rtw_cbuf_empty(struct rtw_cbuf *cbuf);
+bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf);
+void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
+struct rtw_cbuf *rtw_cbuf_alloc(u32 size);
+void rtw_cbuf_free(struct rtw_cbuf *cbuf);
-#ifdef PLATFORM_LINUX
-extern int start_kthread(_thread_hdl_ *t_hdl, int (*threadfn)(void *data),
- void *data, const char *name);
#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/pci_ops.h b/drivers/net/wireless/rtl8192cu/include/pci_ops.h
index dd63f5f..9404ff4 100644
--- a/drivers/net/wireless/rtl8192cu/include/pci_ops.h
+++ b/drivers/net/wireless/rtl8192cu/include/pci_ops.h
@@ -37,6 +37,7 @@ void rtl8192ce_xmit_tasklet(void *priv);
void rtl8192ce_recv_tasklet(void *priv);
void rtl8192ce_prepare_bcn_tasklet(void *priv);
void rtl8192ce_set_intf_ops(struct _io_ops *pops);
+#define pci_set_intf_ops rtl8192ce_set_intf_ops
#endif
#ifdef CONFIG_RTL8192D
@@ -51,6 +52,7 @@ void rtl8192de_xmit_tasklet(void *priv);
void rtl8192de_recv_tasklet(void *priv);
void rtl8192de_prepare_bcn_tasklet(void *priv);
void rtl8192de_set_intf_ops(struct _io_ops *pops);
+#define pci_set_intf_ops rtl8192de_set_intf_ops
u32 MpReadPCIDwordDBI8192D(IN PADAPTER Adapter, IN u16 Offset, IN u8 Direct);
void MpWritePCIDwordDBI8192D(IN PADAPTER Adapter, IN u16 Offset, IN u32 Value, IN u8 Direct);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_cmd.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_cmd.h
index 1689c54..c54cc31 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_cmd.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_cmd.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192C_CMD_H_
#define __RTL8192C_CMD_H_
@@ -35,15 +34,23 @@ enum cmd_msg_element_id
MACID_PS_MODE_EID=7,
P2P_PS_OFFLOAD_EID=8,
SELECTIVE_SUSPEND_ROF_CMD=9,
+#ifdef CONFIG_WOWLAN
H2C_WO_WLAN_CMD = 26, // Wake on Wlan.
EXT_MACID_PERIOD_EID = 27, // support macid to 64
MACID64_CONFIG_EID = 28, // support macid to 64
+#endif // CONFIG_WOWLAN
P2P_PS_CTW_CMD_EID=32,
H2C_92C_IO_OFFLOAD=44,
+#ifdef CONFIG_WOWLAN
KEEP_ALIVE_CONTROL_CMD=48,
DISCONNECT_DECISION_CTRL_CMD=49,
REMOTE_WAKE_CTRL_CMD=60,
- H2C_92C_CMD_MAX};
+#endif // CONFIG_WOWLAN
+ H2C_92C_TSF_SYNC=67,
+ H2C_92C_DISABLE_BCN_FUNC=68,
+ H2C_92C_RESET_TSF = 75,
+ H2C_92C_CMD_MAX
+};
struct cmd_msg_parm {
u8 eid; //element id
@@ -51,31 +58,13 @@ struct cmd_msg_parm {
u8 buf[6];
};
-enum evt_msg_element_id
-{
- EVT_DBG_EID=0,
- EVT_TSF_EID=1,
- EVT_AP_RPT_RSP_EID=2,
- EVT_CCX_TXRPT_EID=3,
- EVT_BT_RSSI_EID=4,
- EVT_BT_OPMODE_EID=5,
- EVT_EXT_RA_RPT_EID=6,
- EVT_BT_TYPE_RPT_EID=7,
- EVT_INIT_OFFLOAD_EID=8,
- EVT_PSD_CONTROL_EID=9,
- EVT_HW_INFO_EXCHGNGE_EID=10,
- EVT_C2H_H2C_TEST_EID=11,
- EVT_BT_INTO_EID=12,
- EVT_BT_RPT_EID=13,
- H2C_92C_EVT_MAX};
-
-
typedef struct _SETPWRMODE_PARM{
u8 Mode;
u8 SmartPS;
u8 BcnPassTime; // unit: 100ms
}SETPWRMODE_PARM, *PSETPWRMODE_PARM;
+#ifdef CONFIG_WOWLAN
typedef struct _SETWOWLAN_PARM{
u8 mode;
u8 gpio_index;
@@ -95,6 +84,7 @@ typedef struct _SETWOWLAN_PARM{
#define FW_WOWLAN_GPIO_WAKEUP_EN BIT(0)
#define FW_FW_PARSE_MAGIC_PKT BIT(1)
+#endif // CONFIG_WOWLAN
struct H2C_SS_RFOFF_PARAM{
u8 ROFOn; // 1: on, 0:off
@@ -132,8 +122,7 @@ void rtl8192c_set_FwPwrMode_cmd(_adapter*padapter, u8 Mode);
void rtl8192c_set_FwJoinBssReport_cmd(_adapter* padapter, u8 mstatus);
u8 rtl8192c_set_rssi_cmd(_adapter*padapter, u8 *param);
u8 rtl8192c_set_raid_cmd(_adapter*padapter, u32 mask, u8 arg);
-u8 rtl8192c_set_raid64_cmd(_adapter*padapter, u32 mask, u8 arg);
-void rtl8192c_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg, u8 mac_id);
+void rtl8192c_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg);
u8 rtl8192c_set_FwSelectSuspend_cmd(_adapter*padapter,u8 bfwpoll, u16 period);
#ifdef CONFIG_P2P
void rtl8192c_set_p2p_ps_offload_cmd(_adapter* padapter, u8 p2p_ps_state);
@@ -146,8 +135,19 @@ typedef struct _IO_OFFLOAD_LOC{
int rtl8192c_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms);
#endif //CONFIG_IOL
-#endif
+#ifdef CONFIG_BEACON_DISABLE_OFFLOAD
+u8 rtl8192c_dis_beacon_fun_cmd(_adapter* padapter);
+#endif // CONFIG_BEACON_DISABLE_OFFLOAD
+
+
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+int reset_tsf(PADAPTER Adapter, u8 reset_port );
+#endif // CONFIG_TSF_RESET_OFFLOAD
+
#ifdef CONFIG_WOWLAN
void rtl8192c_set_wowlan_cmd(_adapter* padapter);
void SetFwRelatedForWoWLAN8192CU(_adapter* padapter,u8 bHostIsGoingtoSleep);
#endif // CONFIG_WOWLAN
+
+#endif // __RTL8192C_CMD_H_
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_dm.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_dm.h
index 80b4a67..9d06540 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_dm.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_dm.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192C_DM_H__
#define __RTL8192C_DM_H__
//============================================================
@@ -28,125 +27,10 @@
//
//============================================================
-#define RSSI_CCK 0
-#define RSSI_OFDM 1
+#define RSSI_CCK 0
+#define RSSI_OFDM 1
#define RSSI_DEFAULT 2
-#define OFDM_TABLE_SIZE 37
-#define CCK_TABLE_SIZE 33
-
-static u32 OFDMSwingTable[OFDM_TABLE_SIZE] = {
- 0x7f8001fe, // 0, +6.0dB
- 0x788001e2, // 1, +5.5dB
- 0x71c001c7, // 2, +5.0dB
- 0x6b8001ae, // 3, +4.5dB
- 0x65400195, // 4, +4.0dB
- 0x5fc0017f, // 5, +3.5dB
- 0x5a400169, // 6, +3.0dB
- 0x55400155, // 7, +2.5dB
- 0x50800142, // 8, +2.0dB
- 0x4c000130, // 9, +1.5dB
- 0x47c0011f, // 10, +1.0dB
- 0x43c0010f, // 11, +0.5dB
- 0x40000100, // 12, +0dB
- 0x3c8000f2, // 13, -0.5dB
- 0x390000e4, // 14, -1.0dB
- 0x35c000d7, // 15, -1.5dB
- 0x32c000cb, // 16, -2.0dB
- 0x300000c0, // 17, -2.5dB
- 0x2d4000b5, // 18, -3.0dB
- 0x2ac000ab, // 19, -3.5dB
- 0x288000a2, // 20, -4.0dB
- 0x26000098, // 21, -4.5dB
- 0x24000090, // 22, -5.0dB
- 0x22000088, // 23, -5.5dB
- 0x20000080, // 24, -6.0dB
- 0x1e400079, // 25, -6.5dB
- 0x1c800072, // 26, -7.0dB
- 0x1b00006c, // 27. -7.5dB
- 0x19800066, // 28, -8.0dB
- 0x18000060, // 29, -8.5dB
- 0x16c0005b, // 30, -9.0dB
- 0x15800056, // 31, -9.5dB
- 0x14400051, // 32, -10.0dB
- 0x1300004c, // 33, -10.5dB
- 0x12000048, // 34, -11.0dB
- 0x11000044, // 35, -11.5dB
- 0x10000040, // 36, -12.0dB
-};
-
-static u8 CCKSwingTable_Ch1_Ch13[CCK_TABLE_SIZE][8] = {
-{0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04}, // 0, +0dB
-{0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04}, // 1, -0.5dB
-{0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03}, // 2, -1.0dB
-{0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03}, // 3, -1.5dB
-{0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03}, // 4, -2.0dB
-{0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03}, // 5, -2.5dB
-{0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03}, // 6, -3.0dB
-{0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03}, // 7, -3.5dB
-{0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02}, // 8, -4.0dB
-{0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02}, // 9, -4.5dB
-{0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02}, // 10, -5.0dB
-{0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02}, // 11, -5.5dB
-{0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02}, // 12, -6.0dB
-{0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02}, // 13, -6.5dB
-{0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02}, // 14, -7.0dB
-{0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02}, // 15, -7.5dB
-{0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01}, // 16, -8.0dB
-{0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02}, // 17, -8.5dB
-{0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01}, // 18, -9.0dB
-{0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, // 19, -9.5dB
-{0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, // 20, -10.0dB
-{0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01}, // 21, -10.5dB
-{0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01}, // 22, -11.0dB
-{0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01}, // 23, -11.5dB
-{0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01}, // 24, -12.0dB
-{0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01}, // 25, -12.5dB
-{0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01}, // 26, -13.0dB
-{0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01}, // 27, -13.5dB
-{0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01}, // 28, -14.0dB
-{0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01}, // 29, -14.5dB
-{0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01}, // 30, -15.0dB
-{0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01}, // 31, -15.5dB
-{0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01} // 32, -16.0dB
-};
-
-static u8 CCKSwingTable_Ch14 [CCK_TABLE_SIZE][8]= {
-{0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00}, // 0, +0dB
-{0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00}, // 1, -0.5dB
-{0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00}, // 2, -1.0dB
-{0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00}, // 3, -1.5dB
-{0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00}, // 4, -2.0dB
-{0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00}, // 5, -2.5dB
-{0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00}, // 6, -3.0dB
-{0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00}, // 7, -3.5dB
-{0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00}, // 8, -4.0dB
-{0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00}, // 9, -4.5dB
-{0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00}, // 10, -5.0dB
-{0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00}, // 11, -5.5dB
-{0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00}, // 12, -6.0dB
-{0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00}, // 13, -6.5dB
-{0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00}, // 14, -7.0dB
-{0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00}, // 15, -7.5dB
-{0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00}, // 16, -8.0dB
-{0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00}, // 17, -8.5dB
-{0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00}, // 18, -9.0dB
-{0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, // 19, -9.5dB
-{0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, // 20, -10.0dB
-{0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00}, // 21, -10.5dB
-{0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00}, // 22, -11.0dB
-{0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, // 23, -11.5dB
-{0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, // 24, -12.0dB
-{0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00}, // 25, -12.5dB
-{0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, // 26, -13.0dB
-{0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, // 27, -13.5dB
-{0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, // 28, -14.0dB
-{0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, // 29, -14.5dB
-{0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, // 30, -15.0dB
-{0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, // 31, -15.5dB
-{0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} // 32, -16.0dB
-};
-
//============================================================
// structure and define
//============================================================
@@ -211,6 +95,7 @@ typedef struct _Dynamic_Initial_Gain_Threshold_
u8 LargeFAHit;
u8 ForbiddenIGI;
u32 Recover_cnt;
+ u8 rx_gain_range_min_nolink;
}DIG_T;
@@ -351,7 +236,7 @@ struct btcoexist_priv {
#define DM_DIG_MAX 0x3e
#define DM_DIG_MIN 0x1e //0x22//0x1c
-#define DM_DIG_FA_UPPER 0x32
+#define DM_DIG_FA_UPPER 0x3e
#define DM_DIG_FA_LOWER 0x20
#define DM_DIG_FA_TH0 0x20
#define DM_DIG_FA_TH1 0x100
@@ -577,6 +462,21 @@ struct dm_priv
// Add for Reading Initial Data Rate SEL Register 0x484 during watchdog. Using for fill tx desc. 2011.3.21 by Thomas
u8 INIDATA_RATE[32];
+
+#ifdef CONFIG_DM_ADAPTIVITY
+ /* Ported from ODM, for ESTI Adaptivity test */
+ s8 TH_L2H_ini;
+ s8 TH_EDCCA_HL_diff;
+ s8 IGI_Base;
+ u8 IGI_target;
+ bool ForceEDCCA;
+ u8 AdapEn_RSSI;
+ s8 Force_TH_H;
+ s8 Force_TH_L;
+ u8 IGI_LowerBound;
+
+ bool bPreEdccaEnable;
+#endif
};
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_event.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_event.h
index 131b658..1013f74 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_event.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_event.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTL8192C_EVENT_H_
#define _RTL8192C_EVENT_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_hal.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_hal.h
index cddd998..3348971 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_hal.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_hal.h
@@ -16,11 +16,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192C_HAL_H__
#define __RTL8192C_HAL_H__
+#include "hal_com.h"
#include "rtl8192c_spec.h"
#include "Hal8192CPhyReg.h"
#include "Hal8192CPhyCfg.h"
@@ -123,9 +123,11 @@
#define RTL8192C_FW_TSMC_IMG "rtl8192CU\\rtl8192cfwT.bin"
#define RTL8192C_FW_UMC_IMG "rtl8192CU\\rtl8192cfwU.bin"
#define RTL8192C_FW_UMC_B_IMG "rtl8192CU\\rtl8192cfwU_B.bin"
+#ifdef CONFIG_WOWLAN
#define RTL8192C_FW_TSMC_WW_IMG "rtl8192CU\\rtl8192cfwTww.bin"
#define RTL8192C_FW_UMC_WW_IMG "rtl8192CU\\rtl8192cfwUww.bin"
#define RTL8192C_FW_UMC_B_WW_IMG "rtl8192CU\\rtl8192cfwU_Bww.bin"
+#endif // CONFIG_WOWLAN
//#define RTL819X_FW_BOOT_IMG "rtl8192CU\\boot.img"
//#define RTL819X_FW_MAIN_IMG "rtl8192CU\\main.img"
//#define RTL819X_FW_DATA_IMG "rtl8192CU\\data.img"
@@ -307,10 +309,10 @@ typedef enum _USB_RX_AGG_MODE{
#define WMM_NORMAL_TX_TOTAL_PAGE_NUMBER 0xF5
#define WMM_NORMAL_TX_PAGE_BOUNDARY (WMM_TEST_TX_TOTAL_PAGE_NUMBER + 1) //F6
-#define WMM_NORMAL_PAGE_NUM_PUBQ 0xB0
-#define WMM_NORMAL_PAGE_NUM_HPQ 0x29
-#define WMM_NORMAL_PAGE_NUM_LPQ 0x1C
-#define WMM_NORMAL_PAGE_NUM_NPQ 0x1C
+#define WMM_NORMAL_PAGE_NUM_PUBQ 0x65
+#define WMM_NORMAL_PAGE_NUM_HPQ 0x30
+#define WMM_NORMAL_PAGE_NUM_LPQ 0x30
+#define WMM_NORMAL_PAGE_NUM_NPQ 0x30
//-------------------------------------------------------------------------
// Chip specific
@@ -428,13 +430,13 @@ enum ChannelPlan{
};
typedef struct _TxPowerInfo{
- u8 CCKIndex[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
- u8 HT40_1SIndex[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
- u8 HT40_2SIndexDiff[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
- u8 HT20IndexDiff[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
- u8 OFDMIndexDiff[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
- u8 HT40MaxOffset[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
- u8 HT20MaxOffset[RF90_PATH_MAX][CHANNEL_GROUP_MAX];
+ u8 CCKIndex[RF_PATH_MAX][CHANNEL_GROUP_MAX];
+ u8 HT40_1SIndex[RF_PATH_MAX][CHANNEL_GROUP_MAX];
+ u8 HT40_2SIndexDiff[RF_PATH_MAX][CHANNEL_GROUP_MAX];
+ s8 HT20IndexDiff[RF_PATH_MAX][CHANNEL_GROUP_MAX];
+ u8 OFDMIndexDiff[RF_PATH_MAX][CHANNEL_GROUP_MAX];
+ u8 HT40MaxOffset[RF_PATH_MAX][CHANNEL_GROUP_MAX];
+ u8 HT20MaxOffset[RF_PATH_MAX][CHANNEL_GROUP_MAX];
u8 TSSI_A;
u8 TSSI_B;
}TxPowerInfo, *PTxPowerInfo;
@@ -490,6 +492,21 @@ typedef enum _RT_REGULATOR_MODE{
RT_LDO_REGULATOR = 1,
}RT_REGULATOR_MODE,*PRT_REGULATOR_MODE;
+enum c2h_id_8192c {
+ C2H_DBG = 0,
+ C2H_TSF = 1,
+ C2H_AP_RPT_RSP = 2,
+ C2H_CCX_TX_RPT = 3,
+ C2H_BT_RSSI = 4,
+ C2H_BT_OP_MODE = 5,
+ C2H_EXT_RA_RPT = 6,
+ C2H_HW_INFO_EXCH = 10,
+ C2H_C2H_H2C_TEST = 11,
+ C2H_BT_INFO = 12,
+ C2H_BT_MP_INFO = 15,
+ MAX_C2HEVENT
+};
+
#ifdef CONFIG_PCI_HCI
struct hal_data_8192ce
{
@@ -553,14 +570,14 @@ struct hal_data_8192ce
u8 bDefaultAntenna;
u8 bIQKInitialized;
- u8 TxPwrLevelCck[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];
- u8 TxPwrLevelHT40_1S[RF90_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
- u8 TxPwrLevelHT40_2S[RF90_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
- u8 TxPwrHt20Diff[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];// HT 20<->40 Pwr diff
- u8 TxPwrLegacyHtDiff[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];// For HT<->legacy pwr diff
+ u8 TxPwrLevelCck[RF_PATH_MAX][CHANNEL_MAX_NUMBER];
+ u8 TxPwrLevelHT40_1S[RF_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
+ u8 TxPwrLevelHT40_2S[RF_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
+ s8 TxPwrHt20Diff[RF_PATH_MAX][CHANNEL_MAX_NUMBER];// HT 20<->40 Pwr diff
+ u8 TxPwrLegacyHtDiff[RF_PATH_MAX][CHANNEL_MAX_NUMBER];// For HT<->legacy pwr diff
// For power group
- u8 PwrGroupHT20[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];
- u8 PwrGroupHT40[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];
+ u8 PwrGroupHT20[RF_PATH_MAX][CHANNEL_MAX_NUMBER];
+ u8 PwrGroupHT40[RF_PATH_MAX][CHANNEL_MAX_NUMBER];
u8 LegacyHTTxPowerDiff;// Legacy to HT rate power diff
@@ -672,7 +689,7 @@ typedef struct hal_data_8192ce HAL_DATA_TYPE, *PHAL_DATA_TYPE;
#define IS_MULTI_FUNC_CHIP(_Adapter) (((((PHAL_DATA_TYPE)(_Adapter->HalData))->MultiFunc) & (RT_MULTI_FUNC_BT|RT_MULTI_FUNC_GPS)) ? _TRUE : _FALSE)
void InterruptRecognized8192CE(PADAPTER Adapter, PRT_ISR_CONTENT pIsrContent);
-VOID UpdateInterruptMask8192CE(PADAPTER Adapter, u32 AddMSR, u32 RemoveMSR);
+VOID UpdateInterruptMask8192CE(PADAPTER Adapter, u32 AddMSR, u32 AddMSR1, u32 RemoveMSR, u32 RemoveMSR1);
#endif
#ifdef CONFIG_USB_HCI
@@ -722,14 +739,14 @@ struct hal_data_8192cu
u8 bIQKInitialized;
- u8 TxPwrLevelCck[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];
- u8 TxPwrLevelHT40_1S[RF90_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
- u8 TxPwrLevelHT40_2S[RF90_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
- u8 TxPwrHt20Diff[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];// HT 20<->40 Pwr diff
- u8 TxPwrLegacyHtDiff[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];// For HT<->legacy pwr diff
+ u8 TxPwrLevelCck[RF_PATH_MAX][CHANNEL_MAX_NUMBER];
+ u8 TxPwrLevelHT40_1S[RF_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
+ u8 TxPwrLevelHT40_2S[RF_PATH_MAX][CHANNEL_MAX_NUMBER]; // For HT 40MHZ pwr
+ s8 TxPwrHt20Diff[RF_PATH_MAX][CHANNEL_MAX_NUMBER];// HT 20<->40 Pwr diff
+ u8 TxPwrLegacyHtDiff[RF_PATH_MAX][CHANNEL_MAX_NUMBER];// For HT<->legacy pwr diff
// For power group
- u8 PwrGroupHT20[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];
- u8 PwrGroupHT40[RF90_PATH_MAX][CHANNEL_MAX_NUMBER];
+ u8 PwrGroupHT20[RF_PATH_MAX][CHANNEL_MAX_NUMBER];
+ u8 PwrGroupHT40[RF_PATH_MAX][CHANNEL_MAX_NUMBER];
u8 LegacyHTTxPowerDiff;// Legacy to HT rate power diff
@@ -876,12 +893,45 @@ VOID rtl8192c_FirmwareSelfReset(IN PADAPTER Adapter);
int FirmwareDownload92C(IN PADAPTER Adapter,IN BOOLEAN bUsedWoWLANFw);
VOID InitializeFirmwareVars92C(PADAPTER Adapter);
u8 GetEEPROMSize8192C(PADAPTER Adapter);
-RT_CHANNEL_DOMAIN _HalMapChannelPlan8192C(PADAPTER Adapter, u8 HalChannelPlan);
+void rtl8192c_EfuseParseChnlPlan(PADAPTER padapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
VERSION_8192C rtl8192c_ReadChipVersion(IN PADAPTER Adapter);
void rtl8192c_ReadBluetoothCoexistInfo(PADAPTER Adapter, u8 *PROMContent, BOOLEAN AutoloadFail);
-void rtl8192c_HalSetBrateCfg(PADAPTER Adapter, u8 *mBratesOS, u16 *pBrateCfg);
//void rtl8192c_free_hal_data(_adapter * padapter);
VOID rtl8192c_EfuseParseIDCode(PADAPTER pAdapter, u8 *hwinfo);
void rtl8192c_set_hal_ops(struct hal_ops *pHalFunc);
+s32 c2h_id_filter_ccx_8192c(u8 id);
#endif
+
+#ifdef CONFIG_MP_INCLUDED
+
+extern void Hal_SetAntenna(PADAPTER pAdapter);
+extern void Hal_SetBandwidth(PADAPTER pAdapter);
+
+extern void Hal_SetTxPower(PADAPTER pAdapter);
+extern void Hal_SetCarrierSuppressionTx(PADAPTER pAdapter, u8 bStart);
+extern void Hal_SetSingleToneTx ( PADAPTER pAdapter , u8 bStart );
+extern void Hal_SetSingleCarrierTx (PADAPTER pAdapter, u8 bStart);
+extern void Hal_SetContinuousTx (PADAPTER pAdapter, u8 bStart);
+
+extern void Hal_SetDataRate(PADAPTER pAdapter);
+extern void Hal_SetChannel(PADAPTER pAdapter);
+extern void Hal_SetAntennaPathPower(PADAPTER pAdapter);
+extern s32 Hal_SetThermalMeter(PADAPTER pAdapter, u8 target_ther);
+extern s32 Hal_SetPowerTracking(PADAPTER padapter, u8 enable);
+extern void Hal_GetPowerTracking(PADAPTER padapter, u8 * enable);
+extern void Hal_GetThermalMeter(PADAPTER pAdapter, u8 *value);
+extern void Hal_mpt_SwitchRfSetting(PADAPTER pAdapter);
+extern void Hal_MPT_CCKTxPowerAdjust(PADAPTER Adapter, BOOLEAN bInCH14);
+extern void Hal_MPT_CCKTxPowerAdjustbyIndex(PADAPTER pAdapter, BOOLEAN beven);
+extern void Hal_SetCCKTxPower(PADAPTER pAdapter, u8 * TxPower);
+extern void Hal_SetOFDMTxPower(PADAPTER pAdapter, u8 * TxPower);
+extern void Hal_TriggerRFThermalMeter(PADAPTER pAdapter);
+extern u8 Hal_ReadRFThermalMeter(PADAPTER pAdapter);
+extern void Hal_SetCCKContinuousTx(PADAPTER pAdapter, u8 bStart);
+extern void Hal_SetOFDMContinuousTx(PADAPTER pAdapter, u8 bStart);
+
+#endif
+
+
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_led.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_led.h
index b361ba5..1ccf935 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_led.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_led.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192C_LED_H_
#define __RTL8192C_LED_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_recv.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_recv.h
index b532a59..d5656f5 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_recv.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_recv.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTL8192C_RECV_H_
#define _RTL8192C_RECV_H_
@@ -54,7 +53,11 @@
//#define MAX_RECVBUF_SZ (32768) // 32k
//#define MAX_RECVBUF_SZ (16384) //16K
//#define MAX_RECVBUF_SZ (10240) //10K
- #define MAX_RECVBUF_SZ (15360) // 15k < 16k
+ #ifdef CONFIG_PLATFORM_MSTAR
+ #define MAX_RECVBUF_SZ (8192) // 8K
+ #else
+ #define MAX_RECVBUF_SZ (15360) // 15k < 16k
+ #endif
//#define MAX_RECVBUF_SZ (8192+1024) // 8K+1k
#else
#define MAX_RECVBUF_SZ (4000) // about 4K
@@ -62,11 +65,11 @@
#endif
#elif defined(CONFIG_PCI_HCI)
-#ifndef CONFIG_MINIMAL_MEMORY_USAGE
- #define MAX_RECVBUF_SZ (9100)
-#else
+//#ifndef CONFIG_MINIMAL_MEMORY_USAGE
+// #define MAX_RECVBUF_SZ (9100)
+//#else
#define MAX_RECVBUF_SZ (4000) // about 4K
-#endif
+//#endif
#define RX_MPDU_QUEUE 0
#define RX_CMD_QUEUE 1
@@ -167,17 +170,15 @@ typedef struct _INTERRUPT_MSG_FORMAT_EX{
void rtl8192cu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf);
int rtl8192cu_init_recv_priv(_adapter * padapter);
void rtl8192cu_free_recv_priv(_adapter * padapter);
-void rtl8192cu_update_recvframe_attrib_from_recvstat(union recv_frame *precvframe, struct recv_stat *prxstat);
#endif
#ifdef CONFIG_PCI_HCI
int rtl8192ce_init_recv_priv(_adapter * padapter);
void rtl8192ce_free_recv_priv(_adapter * padapter);
-void rtl8192ce_update_recvframe_attrib_from_recvstat(union recv_frame *precvframe, struct recv_stat *prxstat);
#endif
-void rtl8192c_query_rx_phy_status(union recv_frame *prframe, struct phy_stat *pphy_stat);
-void rtl8192c_process_phy_info(_adapter *padapter, void *prframe);
+void rtl8192c_translate_rx_signal_stuff(union recv_frame *precvframe, struct phy_stat *pphy_info);
+void rtl8192c_query_rx_desc_status(union recv_frame *precvframe, struct recv_stat *pdesc);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_rf.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_rf.h
index d3c4b67..26c678a 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_rf.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_rf.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
/******************************************************************************
*
*
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_spec.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_spec.h
index 27e0f0e..8ff13a7 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_spec.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_spec.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192C_SPEC_H__
#define __RTL8192C_SPEC_H__
@@ -115,7 +114,9 @@
#define REG_GPIO_IO_SEL_2 0x0062 // RTL8723 WIFI/BT/GPS Multi-Function GPIO Select.
#define REG_MULTI_FUNC_CTRL 0x0068 // RTL8723 WIFI/BT/GPS Multi-Function control source.
#define REG_MCUFWDL 0x0080
+#ifdef CONFIG_WOWLAN
#define REG_WOWLAN_REASON 0x0081
+#endif //CONFIG_WOWLAN
#define REG_HMEBOX_EXT_0 0x0088
#define REG_HMEBOX_EXT_1 0x008A
#define REG_HMEBOX_EXT_2 0x008C
@@ -264,6 +265,12 @@
#define REG_RD_RESP_PKT_TH 0x0463
#define REG_INIRTS_RATE_SEL 0x0480
#define REG_INIDATA_RATE_SEL 0x0484
+
+//#define REG_FW_TSF_SYNC_CNT 0x04A0
+#define REG_FW_RESET_TSF_CNT_1 0x05FC
+#define REG_FW_RESET_TSF_CNT_0 0x05FD
+#define REG_FW_BCN_DIS_CNT 0x05FE
+
#define REG_POWER_STATUS 0x04A4
#define REG_POWER_STAGE1 0x04B4
#define REG_POWER_STAGE2 0x04B8
@@ -300,6 +307,7 @@
#define REG_SIFS_OFDM 0x0516
#define REG_SIFS_CTX 0x0514
#define REG_SIFS_TRX 0x0516
+#define REG_TSFTR_SYN_OFFSET 0x0518
#define REG_AGGR_BREAK_TIME 0x051A
#define REG_SLOT 0x051B
#define REG_TX_PTCL_CTRL 0x0520
@@ -322,7 +330,9 @@
#define REG_RXTSF_OFFSET_CCK 0x055E
#define REG_RXTSF_OFFSET_OFDM 0x055F
#define REG_TSFTR 0x0560
+#define REG_TSFTR1 0x0568
#define REG_INIT_TSFTR 0x0564
+#define REG_ATIMWND_1 0x0570
#define REG_PSTIMER 0x0580
#define REG_TIMER0 0x0584
#define REG_TIMER1 0x0588
@@ -397,6 +407,9 @@
#define REG_BT_COEX_TABLE 0x06C0
#define REG_WMAC_RESP_TXINFO 0x06D8
+#define REG_MACID1 0x0700
+#define REG_BSSID1 0x0708
+
//-----------------------------------------------------
//
@@ -594,53 +607,6 @@ Default: 00b.
#define RATR_MCS14 0x04000000
#define RATR_MCS15 0x08000000
-
-// NOTE: For 92CU - Ziv
-//CCK
-#define RATE_1M BIT(0)
-#define RATE_2M BIT(1)
-#define RATE_5_5M BIT(2)
-#define RATE_11M BIT(3)
-//OFDM
-#define RATE_6M BIT(4)
-#define RATE_9M BIT(5)
-#define RATE_12M BIT(6)
-#define RATE_18M BIT(7)
-#define RATE_24M BIT(8)
-#define RATE_36M BIT(9)
-#define RATE_48M BIT(10)
-#define RATE_54M BIT(11)
-//MCS 1 Spatial Stream
-#define RATE_MCS0 BIT(12)
-#define RATE_MCS1 BIT(13)
-#define RATE_MCS2 BIT(14)
-#define RATE_MCS3 BIT(15)
-#define RATE_MCS4 BIT(16)
-#define RATE_MCS5 BIT(17)
-#define RATE_MCS6 BIT(18)
-#define RATE_MCS7 BIT(19)
-//MCS 2 Spatial Stream
-#define RATE_MCS8 BIT(20)
-#define RATE_MCS9 BIT(21)
-#define RATE_MCS10 BIT(22)
-#define RATE_MCS11 BIT(23)
-#define RATE_MCS12 BIT(24)
-#define RATE_MCS13 BIT(25)
-#define RATE_MCS14 BIT(26)
-#define RATE_MCS15 BIT(27)
-
-
-
-
-// ALL CCK Rate
-#define RATE_ALL_CCK RATR_1M|RATR_2M|RATR_55M|RATR_11M
-#define RATE_ALL_OFDM_AG RATR_6M|RATR_9M|RATR_12M|RATR_18M|RATR_24M|\
- RATR_36M|RATR_48M|RATR_54M
-#define RATE_ALL_OFDM_1SS RATR_MCS0|RATR_MCS1|RATR_MCS2|RATR_MCS3 |\
- RATR_MCS4|RATR_MCS5|RATR_MCS6 |RATR_MCS7
-#define RATE_ALL_OFDM_2SS RATR_MCS8|RATR_MCS9 |RATR_MCS10|RATR_MCS11|\
- RATR_MCS12|RATR_MCS13|RATR_MCS14|RATR_MCS15
-
//----------------------------------------------------------------------------
// 8192C BW_OPMODE bits (Offset 0x203, 8bit)
//----------------------------------------------------------------------------
@@ -724,6 +690,7 @@ Default: 00b.
#define IMR_TX_MASK (IMR_VODOK|IMR_VIDOK|IMR_BEDOK|IMR_BKDOK|IMR_MGNTDOK|IMR_HIGHDOK|IMR_BDOK)
// 13. Host Interrupt Status Extension Register (Offset: 0x012C-012Eh)
+#define IMR_BcnInt_E BIT12
#define IMR_TXERR BIT11
#define IMR_RXERR BIT10
#define IMR_C2HCMD BIT9
@@ -1697,7 +1664,6 @@ Current IOREG MAP
#define EN_MBSSID BIT(1)
#define EN_TXBCN_RPT BIT(2)
#define EN_BCN_FUNCTION BIT(3)
-
// The same function but different bit field.
#define DIS_TSF_UDT0_NORMAL_CHIP BIT(4)
#define DIS_TSF_UDT0_TEST_CHIP BIT(5)
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_sreset.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_sreset.h
index dace413..20e88b5 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_sreset.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_sreset.h
@@ -16,39 +16,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTL8192C_SRESET_C_
#define _RTL8192C_SRESET_C_
#include <drv_conf.h>
#include <osdep_service.h>
#include <drv_types.h>
+#include <rtw_sreset.h>
#ifdef DBG_CONFIG_ERROR_DETECT
-#define WIFI_STATUS_SUCCESS 0
-#define USB_VEN_REQ_CMD_FAIL BIT0
-#define USB_READ_PORT_FAIL BIT1
-#define USB_WRITE_PORT_FAIL BIT2
-#define WIFI_MAC_TXDMA_ERROR BIT3
-#define WIFI_TX_HANG BIT4
-#define WIFI_RX_HANG BIT5
-#define WIFI_IF_NOT_EXIST BIT6
-
-struct sreset_priv {
- _mutex silentreset_mutex;
- u8 silent_reset_inprogress;
- u8 Wifi_Error_Status;
- unsigned long last_tx_time;
- unsigned long last_tx_complete_time;
-};
-
-
-extern void rtl8192c_sreset_init_value(_adapter *padapter);
-extern void rtl8192c_sreset_reset_value(_adapter *padapter);
-extern void rtl8192c_silentreset_for_specific_platform(_adapter *padapter);
extern void rtl8192c_sreset_xmit_status_check(_adapter *padapter);
extern void rtl8192c_sreset_linked_status_check(_adapter *padapter);
-extern u8 rtl8192c_sreset_get_wifi_status(_adapter *padapter);
#endif
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192c_xmit.h b/drivers/net/wireless/rtl8192cu/include/rtl8192c_xmit.h
index efb5f99..7d2059d 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192c_xmit.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192c_xmit.h
@@ -16,22 +16,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTL8192C_XMIT_H_
#define _RTL8192C_XMIT_H_
-#define VO_QUEUE_INX 0
-#define VI_QUEUE_INX 1
-#define BE_QUEUE_INX 2
-#define BK_QUEUE_INX 3
-#define BCN_QUEUE_INX 4
-#define MGT_QUEUE_INX 5
-#define HIGH_QUEUE_INX 6
-#define TXCMD_QUEUE_INX 7
-
-#define HW_QUEUE_ENTRY 8
-
//
// Queue Select Value in TxDesc
//
@@ -44,6 +32,51 @@
#define QSLT_MGNT 0x12
#define QSLT_CMD 0x13
+struct txrpt_ccx_8192c {
+ /* offset 0 */
+ u8 retry_cnt:6;
+ u8 rsvd_0:2;
+
+ /* offset 1 */
+ u8 rts_retry_cnt:6;
+ u8 rsvd_1:2;
+
+ /* offset 2 */
+ u8 ccx_qtime0;
+ u8 ccx_qtime1;
+
+ /* offset 4 */
+ u8 missed_pkt_num:5;
+ u8 rsvd_4:3;
+
+ /* offset 5 */
+ u8 mac_id:5;
+ u8 des1_fragssn:3;
+
+ /* offset 6 */
+ u8 rpt_pkt_num:5;
+ u8 pkt_drop:1;
+ u8 lifetime_over:1;
+ u8 retry_over:1;
+
+ /* offset 7*/
+ u8 edca_tx_queue:4;
+ u8 rsvd_7:1;
+ u8 bmc:1;
+ u8 pkt_ok:1;
+ u8 int_ccx:1;
+};
+
+#define txrpt_ccx_qtime_8192c(txrpt_ccx) ((txrpt_ccx)->ccx_qtime0+((txrpt_ccx)->ccx_qtime1<<8))
+
+#ifdef CONFIG_XMIT_ACK
+void dump_txrpt_ccx_8192c(void *buf);
+void handle_txrpt_ccx_8192c(_adapter *adapter, void *buf);
+#else
+#define dump_txrpt_ccx_8192c(buf) do {} while(0)
+#define handle_txrpt_ccx_8192c(adapter, buf) do {} while(0)
+#endif
+
#ifdef CONFIG_USB_HCI
#ifdef CONFIG_USB_TX_AGGREGATION
@@ -58,10 +91,12 @@ void rtl8192cu_cal_txdesc_chksum(struct tx_desc *ptxdesc);
s32 rtl8192cu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf);
-void rtl8192cu_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
+s32 rtl8192cu_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
s32 rtl8192cu_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe);
+s32 rtl8192cu_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe);
+
#ifdef CONFIG_HOSTAPD_MLME
s32 rtl8192cu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt);
#endif
@@ -77,10 +112,13 @@ struct xmit_buf *rtl8192ce_dequeue_xmitbuf(struct rtw_tx_ring *ring);
void rtl8192ce_xmitframe_resume(_adapter *padapter);
-void rtl8192ce_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
+s32 rtl8192ce_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
s32 rtl8192ce_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe);
+s32 rtl8192ce_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe);
+
+
#ifdef CONFIG_HOSTAPD_MLME
s32 rtl8192ce_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_cmd.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_cmd.h
index cb414a1..ad7e783 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_cmd.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_cmd.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192D_CMD_H_
#define __RTL8192D_CMD_H_
@@ -75,12 +74,18 @@ typedef enum _RTL8192D_H2C_CMD
H2C_P2P_PS_OFFLOAD = 8,
H2C_MAC_MODE_SEL = 9,
H2C_PWRM=15,
+#ifdef CONFIG_WOWLAN
H2C_WO_WLAN_CMD = 20, // Wake on Wlan.
+#endif // CONFIG_WOWLAN
H2C_P2P_PS_CTW_CMD = 24,
H2C_PathDiv = 26, //PathDiv--NeilChen--2011.07.15
+#ifdef CONFIG_WOWLAN
KEEP_ALIVE_CONTROL_CMD=31, //keep alive for wake on wlan
DISCONNECT_DECISION_CTRL_CMD=32,
REMOTE_WAKE_CTRL_CMD=34,
+#endif // CONFIG_WOWLAN
+ H2C_92D_TSF_SYNC=36,
+ H2C_92D_RESET_TSF = 43,
H2C_CMD_MAX
}RTL8192D_H2C_CMD;
@@ -98,12 +103,14 @@ void rtl8192d_set_FwPwrMode_cmd(_adapter*padapter, u8 Mode);
void rtl8192d_set_FwJoinBssReport_cmd(_adapter* padapter, u8 mstatus);
u8 rtl8192d_set_rssi_cmd(_adapter*padapter, u8 *param);
u8 rtl8192d_set_raid_cmd(_adapter*padapter, u32 mask, u8 arg);
-void rtl8192d_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg, u8 mac_id);
+void rtl8192d_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg);
#ifdef CONFIG_P2P
void rtl8192d_set_p2p_ps_offload_cmd(_adapter* padapter, u8 p2p_ps_state);
#endif //CONFIG_P2P
-#endif
+#ifdef CONFIG_TSF_RESET_OFFLOAD
+int reset_tsf(PADAPTER Adapter, u8 reset_port );
+#endif // CONFIG_TSF_RESET_OFFLOAD
#ifdef CONFIG_WOWLAN
typedef struct _SETWOWLAN_PARM{
@@ -130,4 +137,6 @@ void rtl8192d_set_wowlan_cmd(_adapter* padapter);
void SetFwRelatedForWoWLAN8192DU(_adapter* padapter,u8 bHostIsGoingtoSleep);
#endif // CONFIG_WOWLAN
+#endif // __RTL8192D_CMD_H_
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_dm.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_dm.h
index ce674f8..ab5e5f7 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_dm.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_dm.h
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192D_DM_H__
#define __RTL8192D_DM_H__
//============================================================
@@ -32,15 +32,6 @@
extern u32 EDCAParam[maxAP][3] ;
-#define OFDM_TABLE_SIZE 37
-#define OFDM_TABLE_SIZE_92D 43
-#define CCK_TABLE_SIZE 33
-extern u32 OFDMSwingTable[OFDM_TABLE_SIZE_92D] ;
-
-extern u8 CCKSwingTable_Ch1_Ch13[CCK_TABLE_SIZE][8];
-
-extern u8 CCKSwingTable_Ch14 [CCK_TABLE_SIZE][8];
-
//============================================================
// structure and define
//============================================================
@@ -101,7 +92,9 @@ typedef struct _Dynamic_Initial_Gain_Threshold_
u8 LargeFAHit;
u8 ForbiddenIGI;
u32 Recover_cnt;
+ u8 rx_gain_range_min_nolink;
}DIG_T,*pDIG_T;
+
typedef enum tag_Dynamic_Init_Gain_Operation_Type_Definition
{
DIG_TYPE_THRESH_HIGH = 0,
@@ -176,8 +169,8 @@ typedef enum tag_DIG_Connect_Definition
#define DM_DIG_FA_TH2 0x400//0x200
//this is for 92d
#define DM_DIG_FA_TH0_92D 0x100
-#define DM_DIG_FA_TH1_92D 0x400
-#define DM_DIG_FA_TH2_92D 0x600
+#define DM_DIG_FA_TH1_92D 0x150
+#define DM_DIG_FA_TH2_92D 0x250
#define DM_DIG_BACKOFF_MAX 12
#define DM_DIG_BACKOFF_MIN (-4)
@@ -304,6 +297,15 @@ struct dm_priv
int EntryMaxUndecoratedSmoothedPWDB;
int MinUndecoratedPWDBForDM;
int LastMinUndecoratedPWDBForDM;
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ int RssiValMinForAnotherMacOfDMSP;
+ u32 CurDigValueForAnotherMacOfDMSP;
+ BOOLEAN bWriteDigForAnotherMacOfDMSP;
+ BOOLEAN bChangeCCKPDStateForAnotherMacOfDMSP;
+ u8 CurCCKPDStateForAnotherMacOfDMSP;
+ BOOLEAN bChangeTxHighPowerLvlForAnotherMacOfDMSP;
+ u8 CurTxHighLvlForAnotherMacOfDMSP;
+#endif
//for High Power
u8 bDynamicTxPowerEnable;
@@ -364,17 +366,6 @@ struct dm_priv
SWAT_T DM_SWAT_Table;
- //Neil Chen----2011--06--23-----
- //3 Path Diversity
- BOOLEAN bPathDiv_Enable; //For 92D Non-interrupt Antenna Diversity by Neil ,add by wl.2011.07.19
- BOOLEAN RSSI_test;
- s32 RSSI_sum_A;
- s32 RSSI_cnt_A;
- s32 RSSI_sum_B;
- s32 RSSI_cnt_B;
- struct sta_info *RSSI_target;
- _timer PathDivSwitchTimer;
-
//for TxPwrTracking
int RegE94;
int RegE9C;
@@ -392,6 +383,21 @@ struct dm_priv
// Add for Reading Initial Data Rate SEL Register 0x484 during watchdog. Using for fill tx desc. 2011.3.21 by Thomas
u8 INIDATA_RATE[32];
+
+#ifdef CONFIG_DM_ADAPTIVITY
+ /* Ported from ODM, for ESTI Adaptivity test */
+ s8 TH_L2H_ini;
+ s8 TH_EDCCA_HL_diff;
+ s8 IGI_Base;
+ u8 IGI_target;
+ bool ForceEDCCA;
+ u8 AdapEn_RSSI;
+ s8 Force_TH_H;
+ s8 Force_TH_L;
+ u8 IGI_LowerBound;
+
+ bool bPreEdccaEnable;
+#endif
};
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_hal.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_hal.h
index 30f2955..1ab5f98 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_hal.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_hal.h
@@ -20,6 +20,7 @@
#ifndef __RTL8192D_HAL_H__
#define __RTL8192D_HAL_H__
+#include "hal_com.h"
#include "rtl8192d_spec.h"
#include "Hal8192DPhyReg.h"
#include "Hal8192DPhyCfg.h"
@@ -29,6 +30,136 @@
#include "rtl8192d_xmit.h"
#include "rtl8192d_cmd.h"
+/*---------------------------Define Local Constant---------------------------*/
+/* Channel switch:The size of command tables for switch channel*/
+#define MAX_PRECMD_CNT 16
+#define MAX_RFDEPENDCMD_CNT 16
+#define MAX_POSTCMD_CNT 16
+
+#define MAX_DOZE_WAITING_TIMES_9x 64
+
+#define MAX_RF_IMR_INDEX 12
+#define MAX_RF_IMR_INDEX_NORMAL 13
+#define RF_REG_NUM_for_C_CUT_5G 6
+#define RF_REG_NUM_for_C_CUT_5G_internalPA 7
+#define RF_REG_NUM_for_C_CUT_2G 5
+#define RF_CHNL_NUM_5G 19
+#define RF_CHNL_NUM_5G_40M 17
+#define TARGET_CHNL_NUM_5G 221
+#define TARGET_CHNL_NUM_2G 14
+#define TARGET_CHNL_NUM_2G_5G 59
+#define CV_CURVE_CNT 64
+
+//static u32 RF_REG_FOR_5G_SWCHNL[MAX_RF_IMR_INDEX]={0,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x38,0x39,0x0};
+static u32 RF_REG_FOR_5G_SWCHNL_NORMAL[MAX_RF_IMR_INDEX_NORMAL]={0,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x0};
+
+static u8 RF_REG_for_C_CUT_5G[RF_REG_NUM_for_C_CUT_5G] =
+ {RF_SYN_G1, RF_SYN_G2, RF_SYN_G3, RF_SYN_G4, RF_SYN_G5, RF_SYN_G6};
+
+static u8 RF_REG_for_C_CUT_5G_internalPA[RF_REG_NUM_for_C_CUT_5G_internalPA] =
+ {0x0B, 0x48, 0x49, 0x4B, 0x03, 0x04, 0x0E};
+static u8 RF_REG_for_C_CUT_2G[RF_REG_NUM_for_C_CUT_2G] =
+ {RF_SYN_G1, RF_SYN_G2, RF_SYN_G3, RF_SYN_G7, RF_SYN_G8};
+
+#if DBG
+static u32 RF_REG_MASK_for_C_CUT_2G[RF_REG_NUM_for_C_CUT_2G] =
+ {BIT19|BIT18|BIT17|BIT14|BIT1, BIT10|BIT9,
+ BIT18|BIT17|BIT16|BIT1, BIT2|BIT1,
+ BIT15|BIT14|BIT13|BIT12|BIT11};
+#endif //amy, temp remove
+static u8 RF_CHNL_5G[RF_CHNL_NUM_5G] =
+ {36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140};
+static u8 RF_CHNL_5G_40M[RF_CHNL_NUM_5G_40M] =
+ {38,42,46,50,54,58,62,102,106,110,114,118,122,126,130,134,138};
+
+static u32 RF_REG_Param_for_C_CUT_5G[5][RF_REG_NUM_for_C_CUT_5G] = {
+ {0xE43BE, 0xFC638, 0x77C0A, 0xDE471, 0xd7110, 0x8EB04},
+ {0xE43BE, 0xFC078, 0xF7C1A, 0xE0C71, 0xD7550, 0xAEB04},
+ {0xE43BF, 0xFF038, 0xF7C0A, 0xDE471, 0xE5550, 0xAEB04},
+ {0xE43BF, 0xFF079, 0xF7C1A, 0xDE471, 0xE5550, 0xAEB04},
+ {0xE43BF, 0xFF038, 0xF7C1A, 0xDE471, 0xd7550, 0xAEB04}};
+
+static u32 RF_REG_Param_for_C_CUT_2G[3][RF_REG_NUM_for_C_CUT_2G] = {
+ {0x643BC, 0xFC038, 0x77C1A, 0x41289, 0x01840},
+ {0x643BC, 0xFC038, 0x07C1A, 0x41289, 0x01840},
+ {0x243BC, 0xFC438, 0x07C1A, 0x4128B, 0x0FC41}};
+
+#if SWLCK == 1
+static u32 RF_REG_SYN_G4_for_C_CUT_2G = 0xD1C31&0x7FF;
+#endif
+
+static u32 RF_REG_Param_for_C_CUT_5G_internalPA[3][RF_REG_NUM_for_C_CUT_5G_internalPA] = {
+ {0x01a00, 0x40443, 0x00eb5, 0x89bec, 0x94a12, 0x94a12, 0x94a12},
+ {0x01800, 0xc0443, 0x00730, 0x896ee, 0x94a52, 0x94a52, 0x94a52},
+ {0x01800, 0xc0443, 0x00730, 0x896ee, 0x94a12, 0x94a12, 0x94a12}};
+
+
+
+//[mode][patha+b][reg]
+static u32 RF_IMR_Param_Normal[1][3][MAX_RF_IMR_INDEX_NORMAL]={{
+ {0x70000,0x00ff0,0x4400f,0x00ff0,0x0,0x0,0x0,0x0,0x0,0x64888,0xe266c,0x00090,0x22fff},// channel 1-14.
+ {0x70000,0x22880,0x4470f,0x55880,0x00070, 0x88000, 0x0,0x88080,0x70000,0x64a82,0xe466c,0x00090,0x32c9a}, //path 36-64
+ {0x70000,0x44880,0x4477f,0x77880,0x00070, 0x88000, 0x0,0x880b0,0x0,0x64b82,0xe466c,0x00090,0x32c9a} //100 -165
+}
+};
+
+//static u32 CurveIndex_5G[TARGET_CHNL_NUM_5G]={0};
+//static u32 CurveIndex_2G[TARGET_CHNL_NUM_2G]={0};
+static u32 CurveIndex[TARGET_CHNL_NUM_2G_5G]={0};
+
+static u32 TargetChnl_5G[TARGET_CHNL_NUM_5G] = {
+25141, 25116, 25091, 25066, 25041,
+25016, 24991, 24966, 24941, 24917,
+24892, 24867, 24843, 24818, 24794,
+24770, 24765, 24721, 24697, 24672,
+24648, 24624, 24600, 24576, 24552,
+24528, 24504, 24480, 24457, 24433,
+24409, 24385, 24362, 24338, 24315,
+24291, 24268, 24245, 24221, 24198,
+24175, 24151, 24128, 24105, 24082,
+24059, 24036, 24013, 23990, 23967,
+23945, 23922, 23899, 23876, 23854,
+23831, 23809, 23786, 23764, 23741,
+23719, 23697, 23674, 23652, 23630,
+23608, 23586, 23564, 23541, 23519,
+23498, 23476, 23454, 23432, 23410,
+23388, 23367, 23345, 23323, 23302,
+23280, 23259, 23237, 23216, 23194,
+23173, 23152, 23130, 23109, 23088,
+23067, 23046, 23025, 23003, 22982,
+22962, 22941, 22920, 22899, 22878,
+22857, 22837, 22816, 22795, 22775,
+22754, 22733, 22713, 22692, 22672,
+22652, 22631, 22611, 22591, 22570,
+22550, 22530, 22510, 22490, 22469,
+22449, 22429, 22409, 22390, 22370,
+22350, 22336, 22310, 22290, 22271,
+22251, 22231, 22212, 22192, 22173,
+22153, 22134, 22114, 22095, 22075,
+22056, 22037, 22017, 21998, 21979,
+21960, 21941, 21921, 21902, 21883,
+21864, 21845, 21826, 21807, 21789,
+21770, 21751, 21732, 21713, 21695,
+21676, 21657, 21639, 21620, 21602,
+21583, 21565, 21546, 21528, 21509,
+21491, 21473, 21454, 21436, 21418,
+21400, 21381, 21363, 21345, 21327,
+21309, 21291, 21273, 21255, 21237,
+21219, 21201, 21183, 21166, 21148,
+21130, 21112, 21095, 21077, 21059,
+21042, 21024, 21007, 20989, 20972,
+25679, 25653, 25627, 25601, 25575,
+25549, 25523, 25497, 25471, 25446,
+25420, 25394, 25369, 25343, 25318,
+25292, 25267, 25242, 25216, 25191,
+25166 };
+
+static u32 TargetChnl_2G[TARGET_CHNL_NUM_2G] = { // channel 1~14
+26084, 26030, 25976, 25923, 25869, 25816, 25764,
+25711, 25658, 25606, 25554, 25502, 25451, 25328
+};
+
+
#ifdef CONFIG_PCI_HCI
#include <pci_ops.h>
#include "Hal8192DEHWImg.h"
@@ -79,7 +210,7 @@
#define Rtl8192D_RadioB_2T_intPAArray Rtl8192DERadioB_2T_intPAArray
// Array length
- #define Rtl8192D_FwImageArrayLength Rtl8192DEImgArrayLength
+ #define Rtl8192D_FwImageArrayLength Rtl8192DEImgArrayLength
#define Rtl8192D_MAC_ArrayLength Rtl8192DEMAC_2T_ArrayLength
#define Rtl8192D_AGCTAB_5GArrayLength Rtl8192DEAGCTAB_5GArrayLength
#define Rtl8192D_AGCTAB_2GArrayLength Rtl8192DEAGCTAB_2GArrayLength
@@ -201,8 +332,9 @@
(le16_to_cpu(_pFwHdr->Signature)&0xFFFF) == 0x92D2 ||\
(le16_to_cpu(_pFwHdr->Signature)&0xFFFF) == 0x92D3 )
-#define FW_8192D_SIZE 0x8000
+#define FW_8192D_SIZE 0x8020 // Max FW len = 32k + 32(FW header length).
#define FW_8192D_START_ADDRESS 0x1000
+#define FW_8192D_END_ADDRESS 0x1FFF
#define MAX_PAGE_SIZE 4096 // @ page : 4k bytes
@@ -344,7 +476,7 @@ typedef enum _USB_RX_AGG_MODE{
// For Test Chip Setting
// (HPQ + LPQ + PUBQ) shall be TX_TOTAL_PAGE_NUMBER
-#define TEST_PAGE_NUM_PUBQ 0x89
+#define TEST_PAGE_NUM_PUBQ_92DU 0x89
#define TX_TOTAL_PAGE_NUMBER_92D_DUAL_MAC 0x7A
#define NORMAL_PAGE_NUM_PUBQ_92D_DUAL_MAC 0x5A
#define NORMAL_PAGE_NUM_HPQ_92D_DUAL_MAC 0x10
@@ -366,16 +498,16 @@ typedef enum _USB_RX_AGG_MODE{
#define WMM_NORMAL_TX_TOTAL_PAGE_NUMBER 0xF5
#define WMM_NORMAL_TX_PAGE_BOUNDARY (WMM_TEST_TX_TOTAL_PAGE_NUMBER + 1) //F6
-#define WMM_NORMAL_PAGE_NUM_PUBQ 0xB0
-#define WMM_NORMAL_PAGE_NUM_HPQ 0x29
-#define WMM_NORMAL_PAGE_NUM_LPQ 0x1C
-#define WMM_NORMAL_PAGE_NUM_NPQ 0x1C
-
#define WMM_NORMAL_PAGE_NUM_PUBQ_92D 0X65//0x82
#define WMM_NORMAL_PAGE_NUM_HPQ_92D 0X30//0x29
#define WMM_NORMAL_PAGE_NUM_LPQ_92D 0X30
#define WMM_NORMAL_PAGE_NUM_NPQ_92D 0X30
+#define WMM_NORMAL_PAGE_NUM_PUBQ_92D_DUAL_MAC 0X32
+#define WMM_NORMAL_PAGE_NUM_HPQ_92D_DUAL_MAC 0X18
+#define WMM_NORMAL_PAGE_NUM_LPQ_92D_DUAL_MAC 0X18
+#define WMM_NORMAL_PAGE_NUM_NPQ_92D_DUAL_MAC 0X18
+
//-------------------------------------------------------------------------
// Chip specific
//-------------------------------------------------------------------------
@@ -524,6 +656,22 @@ typedef enum _PA_MODE {
PA_MODE_INTERNAL_SPDT = 0x02
} PA_MODE;
+/* Copy from rtl8192c */
+enum c2h_id_8192d {
+ C2H_DBG = 0,
+ C2H_TSF = 1,
+ C2H_AP_RPT_RSP = 2,
+ C2H_CCX_TX_RPT = 3,
+ C2H_BT_RSSI = 4,
+ C2H_BT_OP_MODE = 5,
+ C2H_EXT_RA_RPT = 6,
+ C2H_HW_INFO_EXCH = 10,
+ C2H_C2H_H2C_TEST = 11,
+ C2H_BT_INFO = 12,
+ C2H_BT_MP_INFO = 15,
+ MAX_C2HEVENT
+};
+
#ifdef CONFIG_PCI_HCI
struct hal_data_8192de
{
@@ -658,8 +806,6 @@ struct hal_data_8192de
BOOLEAN bEarlyModeEnable;
- ATOMIC_T IQKRdyForXmit;// Tx must wait for IQK done
-
#if 1
IQK_MATRIX_REGS_SETTING IQKMatrixRegSetting[IQK_Matrix_Settings_NUM];
#else
@@ -857,8 +1003,6 @@ struct hal_data_8192du
BOOLEAN bEarlyModeEnable;
- ATOMIC_T IQKRdyForXmit;// Tx must wait for IQK done
-
#if 1
IQK_MATRIX_REGS_SETTING IQKMatrixRegSetting[IQK_Matrix_Settings_NUM];
#else
@@ -935,11 +1079,10 @@ typedef struct hal_data_8192du HAL_DATA_TYPE, *PHAL_DATA_TYPE;
int FirmwareDownload92D(IN PADAPTER Adapter,IN BOOLEAN bUsedWoWLANFw);
VOID rtl8192d_FirmwareSelfReset(IN PADAPTER Adapter);
void rtl8192d_ReadChipVersion(IN PADAPTER Adapter);
-VOID rtl8192d_ReadChannelPlan(PADAPTER Adapter, u8* PROMContent, BOOLEAN AutoLoadFail);
+VOID rtl8192d_EfuseParseChnlPlan(PADAPTER Adapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
VOID rtl8192d_ReadTxPowerInfo(PADAPTER Adapter, u8* PROMContent, BOOLEAN AutoLoadFail);
VOID rtl8192d_ResetDualMacSwitchVariables(IN PADAPTER Adapter);
u8 GetEEPROMSize8192D(PADAPTER Adapter);
-void rtl8192d_HalSetBrateCfg(PADAPTER Adapter, u8 *mBratesOS, u16 *pBrateCfg);
BOOLEAN PHY_CheckPowerOffFor8192D(PADAPTER Adapter);
VOID PHY_SetPowerOnFor8192D(PADAPTER Adapter);
//void PHY_ConfigMacPhyMode92D(PADAPTER Adapter);
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_led.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_led.h
index 454a1b8..d736bda4 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_led.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_led.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTL8192D_LED_H_
#define __RTL8192D_LED_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_recv.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_recv.h
index 3ffc646..36cc232 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_recv.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_recv.h
@@ -61,7 +61,11 @@
//#define MAX_RECVBUF_SZ (32768) // 32k
//#define MAX_RECVBUF_SZ (16384) //16K
//#define MAX_RECVBUF_SZ (10240) //10K
- #define MAX_RECVBUF_SZ (15360) // 15k < 16k
+ #ifdef CONFIG_PLATFORM_MSTAR
+ #define MAX_RECVBUF_SZ (8192) // 8K
+ #else
+ #define MAX_RECVBUF_SZ (15360) // 15k < 16k
+ #endif
#else
#define MAX_RECVBUF_SZ (4000) // about 4K
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_rf.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_rf.h
index 6995464..0b439a3 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_rf.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_rf.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
/******************************************************************************
*
*
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_spec.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_spec.h
index 9bba78a..bef7184 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_spec.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_spec.h
@@ -113,7 +113,9 @@
#define REG_FSISR 0x0054
#define REG_MCUFWDL 0x0080
-#define REG_WOWLAN_REASON 0x0081
+#ifdef CONFIG_WOWLAN
+#define REG_WOWLAN_REASON 0x00FC
+#endif // CONFIG_WOWLAN
#define REG_HMEBOX_EXT_0 0x0088
#define REG_HMEBOX_EXT_1 0x008A
#define REG_HMEBOX_EXT_2 0x008C
@@ -277,6 +279,12 @@
#define REG_RD_RESP_PKT_TH 0x0463
#define REG_INIRTS_RATE_SEL 0x0480
#define REG_INIDATA_RATE_SEL 0x0484
+
+//#define REG_FW_TSF_SYNC_CNT 0x04A0
+#define REG_FW_RESET_TSF_CNT_1 0x05FC
+#define REG_FW_RESET_TSF_CNT_0 0x05FD
+#define REG_FW_BCN_DIS_CNT 0x05FE
+
#define REG_POWER_STATUS 0x04A4
#define REG_POWER_STAGE1 0x04B4
#define REG_POWER_STAGE2 0x04B8
@@ -617,53 +625,6 @@ Default: 00b.
#define RATR_MCS14 0x04000000
#define RATR_MCS15 0x08000000
-
-// NOTE: For 92CU - Ziv
-//CCK
-#define RATE_1M BIT(0)
-#define RATE_2M BIT(1)
-#define RATE_5_5M BIT(2)
-#define RATE_11M BIT(3)
-//OFDM
-#define RATE_6M BIT(4)
-#define RATE_9M BIT(5)
-#define RATE_12M BIT(6)
-#define RATE_18M BIT(7)
-#define RATE_24M BIT(8)
-#define RATE_36M BIT(9)
-#define RATE_48M BIT(10)
-#define RATE_54M BIT(11)
-//MCS 1 Spatial Stream
-#define RATE_MCS0 BIT(12)
-#define RATE_MCS1 BIT(13)
-#define RATE_MCS2 BIT(14)
-#define RATE_MCS3 BIT(15)
-#define RATE_MCS4 BIT(16)
-#define RATE_MCS5 BIT(17)
-#define RATE_MCS6 BIT(18)
-#define RATE_MCS7 BIT(19)
-//MCS 2 Spatial Stream
-#define RATE_MCS8 BIT(20)
-#define RATE_MCS9 BIT(21)
-#define RATE_MCS10 BIT(22)
-#define RATE_MCS11 BIT(23)
-#define RATE_MCS12 BIT(24)
-#define RATE_MCS13 BIT(25)
-#define RATE_MCS14 BIT(26)
-#define RATE_MCS15 BIT(27)
-
-
-
-
-// ALL CCK Rate
-#define RATE_ALL_CCK RATR_1M|RATR_2M|RATR_55M|RATR_11M
-#define RATE_ALL_OFDM_AG RATR_6M|RATR_9M|RATR_12M|RATR_18M|RATR_24M|\
- RATR_36M|RATR_48M|RATR_54M
-#define RATE_ALL_OFDM_1SS RATR_MCS0|RATR_MCS1|RATR_MCS2|RATR_MCS3 |\
- RATR_MCS4|RATR_MCS5|RATR_MCS6|RATR_MCS7
-#define RATE_ALL_OFDM_2SS RATR_MCS8|RATR_MCS9|RATR_MCS10|RATR_MCS11|\
- RATR_MCS12|RATR_MCS13|RATR_MCS14|RATR_MCS15
-
//----------------------------------------------------------------------------
// 8192C BW_OPMODE bits (Offset 0x203, 8bit)
//----------------------------------------------------------------------------
@@ -921,7 +882,9 @@ Default: 00b.
#define EEPROM_VID 0xC // SE Vendor ID.A-B
#define EEPROM_PID 0xE // SE Device ID. C-D
#define EEPROM_ENDPOINT_SETTING 0x10
+#ifdef CONFIG_WOWLAN
#define EEPROM_Option_Setting 0x11
+#endif // CONFIG_WOWLAN
#define EEPROM_CHIRP_K 0x12 // Changed
#define EEPROM_USB_PHY 0x13 // Changed
#define EEPROM_NORMAL_BoardType EEPROM_RF_OPT1 //[7:5]
@@ -1696,7 +1659,6 @@ Current IOREG MAP
#define EN_MBSSID BIT(1)
#define EN_TXBCN_RPT BIT(2)
#define EN_BCN_FUNCTION BIT(3)
-
// The same function but different bit field.
#define DIS_TSF_UDT0_NORMAL_CHIP BIT(4)
#define DIS_TSF_UDT0_TEST_CHIP BIT(5)
diff --git a/drivers/net/wireless/rtl8192cu/include/rtl8192d_xmit.h b/drivers/net/wireless/rtl8192cu/include/rtl8192d_xmit.h
index 0babb27..d01fb4a 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtl8192d_xmit.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtl8192d_xmit.h
@@ -16,22 +16,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTL8192D_XMIT_H_
#define _RTL8192D_XMIT_H_
-#define VO_QUEUE_INX 0
-#define VI_QUEUE_INX 1
-#define BE_QUEUE_INX 2
-#define BK_QUEUE_INX 3
-#define BCN_QUEUE_INX 4
-#define MGT_QUEUE_INX 5
-#define HIGH_QUEUE_INX 6
-#define TXCMD_QUEUE_INX 7
-
-#define HW_QUEUE_ENTRY 8
-
//
// Queue Select Value in TxDesc
//
@@ -58,6 +46,52 @@
#define SET_EARLYMODE_LEN3(__pAddr, __Value) SET_BITS_TO_LE_4BYTE(__pAddr+4, 8, 12, __Value)
#define SET_EARLYMODE_LEN4(__pAddr, __Value) SET_BITS_TO_LE_4BYTE(__pAddr+4, 20, 12, __Value)
+/* Copy from rtl8192c */
+struct txrpt_ccx_8192d {
+ /* offset 0 */
+ u8 retry_cnt:6;
+ u8 rsvd_0:2;
+
+ /* offset 1 */
+ u8 rts_retry_cnt:6;
+ u8 rsvd_1:2;
+
+ /* offset 2 */
+ u8 ccx_qtime0;
+ u8 ccx_qtime1;
+
+ /* offset 4 */
+ u8 missed_pkt_num:5;
+ u8 rsvd_4:3;
+
+ /* offset 5 */
+ u8 mac_id:5;
+ u8 des1_fragssn:3;
+
+ /* offset 6 */
+ u8 rpt_pkt_num:5;
+ u8 pkt_drop:1;
+ u8 lifetime_over:1;
+ u8 retry_over:1;
+
+ /* offset 7*/
+ u8 edca_tx_queue:4;
+ u8 rsvd_7:1;
+ u8 bmc:1;
+ u8 pkt_ok:1;
+ u8 int_ccx:1;
+};
+
+#define txrpt_ccx_qtime_8192d(txrpt_ccx) ((txrpt_ccx)->ccx_qtime0+((txrpt_ccx)->ccx_qtime1<<8))
+
+#ifdef CONFIG_XMIT_ACK
+void dump_txrpt_ccx_8192d(void *buf);
+void handle_txrpt_ccx_8192d(_adapter *adapter, void *buf);
+#else
+#define dump_txrpt_ccx_8192d(buf) do {} while(0)
+#define handle_txrpt_ccx_8192d(adapter, buf) do {} while(0)
+#endif
+
#ifdef CONFIG_USB_HCI
#ifdef CONFIG_USB_TX_AGGREGATION
@@ -72,10 +106,13 @@ void rtl8192du_cal_txdesc_chksum(struct tx_desc *ptxdesc);
s32 rtl8192du_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf);
-void rtl8192du_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
+s32 rtl8192du_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
s32 rtl8192du_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe);
+s32 rtl8192du_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe);
+
+
#ifdef CONFIG_HOSTAPD_MLME
s32 rtl8192du_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt);
#endif
@@ -91,10 +128,12 @@ struct xmit_buf *rtl8192de_dequeue_xmitbuf(struct rtw_tx_ring *ring);
void rtl8192de_xmitframe_resume(_adapter *padapter);
-void rtl8192de_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
+s32 rtl8192de_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
s32 rtl8192de_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe);
+s32 rtl8192de_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe);
+
#ifdef CONFIG_HOSTAPD_MLME
s32 rtl8192de_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_android.h b/drivers/net/wireless/rtl8192cu/include/rtw_android.h
index e1a0432..f9214c2 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_android.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_android.h
@@ -59,22 +59,32 @@ enum ANDROID_WIFI_CMD {
ANDROID_WIFI_CMD_BLOCK,
+ ANDROID_WIFI_CMD_WFD_ENABLE,
+ ANDROID_WIFI_CMD_WFD_DISABLE,
+
+ ANDROID_WIFI_CMD_WFD_SET_TCPPORT,
+ ANDROID_WIFI_CMD_WFD_SET_MAX_TPUT,
+ ANDROID_WIFI_CMD_WFD_SET_DEVTYPE,
+
ANDROID_WIFI_CMD_MAX
};
int rtw_android_cmdstr_to_num(char *cmdstr);
int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd);
-#if defined(CONFIG_WIFI_CONTROL_FUNC) && 0
-int wl_android_wifictrl_func_add(void);
-void wl_android_wifictrl_func_del(void);
+#if defined(RTW_ENABLE_WIFI_CONTROL_FUNC)
+int rtw_android_wifictrl_func_add(void);
+void rtw_android_wifictrl_func_del(void);
void* wl_android_prealloc(int section, unsigned long size);
int wifi_get_irq_number(unsigned long *irq_flags_ptr);
int wifi_set_power(int on, unsigned long msec);
int wifi_get_mac_addr(unsigned char *buf);
void *wifi_get_country_code(char *ccode);
-#endif /* CONFIG_WIFI_CONTROL_FUNC */
+#else
+static int rtw_android_wifictrl_func_add(void) { return 0; }
+static void rtw_android_wifictrl_func_del(void) {}
+#endif /* defined(RTW_ENABLE_WIFI_CONTROL_FUNC) */
#endif //__RTW_ANDROID_H__
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_ap.h b/drivers/net/wireless/rtl8192cu/include/rtw_ap.h
new file mode 100644
index 0000000..42be4c6
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_ap.h
@@ -0,0 +1,64 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __RTW_AP_H_
+#define __RTW_AP_H_
+
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+
+
+#ifdef CONFIG_AP_MODE
+
+//external function
+extern void rtw_indicate_sta_assoc_event(_adapter *padapter, struct sta_info *psta);
+extern void rtw_indicate_sta_disassoc_event(_adapter *padapter, struct sta_info *psta);
+
+
+void init_mlme_ap_info(_adapter *padapter);
+void free_mlme_ap_info(_adapter *padapter);
+//void update_BCNTIM(_adapter *padapter);
+void rtw_add_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *data, u8 len);
+void rtw_remove_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index);
+void update_beacon(_adapter *padapter, u8 ie_id, u8 *oui, u8 tx);
+void expire_timeout_chk(_adapter *padapter);
+void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta);
+int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len);
+void rtw_ap_restore_network(_adapter *padapter);
+void rtw_set_macaddr_acl(_adapter *padapter, int mode);
+int rtw_acl_add_sta(_adapter *padapter, u8 *addr);
+int rtw_acl_remove_sta(_adapter *padapter, u8 *addr);
+
+#ifdef CONFIG_NATIVEAP_MLME
+void associated_clients_update(_adapter *padapter, u8 updated);
+void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta);
+u8 bss_cap_update_on_sta_leave(_adapter *padapter, struct sta_info *psta);
+void sta_info_update(_adapter *padapter, struct sta_info *psta);
+void ap_sta_info_defer_update(_adapter *padapter, struct sta_info *psta);
+u8 ap_free_sta(_adapter *padapter, struct sta_info *psta, bool active, u16 reason);
+int rtw_sta_flush(_adapter *padapter);
+int rtw_ap_inform_ch_switch(_adapter *padapter, u8 new_ch, u8 ch_offset);
+void start_ap_mode(_adapter *padapter);
+void stop_ap_mode(_adapter *padapter);
+#endif
+#endif //end of CONFIG_AP_MODE
+
+#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_byteorder.h b/drivers/net/wireless/rtl8192cu/include/rtw_byteorder.h
index 1313a25..0f06b7a 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_byteorder.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_byteorder.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTL871X_BYTEORDER_H_
#define _RTL871X_BYTEORDER_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_cmd.h b/drivers/net/wireless/rtl8192cu/include/rtw_cmd.h
index 0556d0b..ab115c5 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_cmd.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_cmd.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_CMD_H_
#define __RTW_CMD_H_
@@ -47,6 +46,7 @@
#endif
struct cmd_obj {
+ _adapter *padapter;
u16 cmdcode;
u8 res;
u8 *parmbuf;
@@ -71,6 +71,7 @@
u32 cmd_done_cnt;
u32 rsp_cnt;
u8 cmdthd_running;
+ u8 stop_req;
_adapter *padapter;
};
@@ -89,7 +90,15 @@
_sema evt_notify;
_sema terminate_evtthread_sema;
_queue evt_queue;
-#endif
+#endif
+
+//#define CONFIG_C2H_WK
+#ifdef CONFIG_C2H_WK
+ _workitem c2h_wk;
+ bool c2h_wk_alive;
+ struct rtw_cbuf *c2h_queue;
+ #define C2H_QUEUE_MAX_LEN 10
+#endif
#ifdef CONFIG_H2CLBK
_sema lbkevt_done;
@@ -121,6 +130,15 @@ do {\
pcmd->rspsz = 0;\
} while(0)
+struct c2h_evt_hdr {
+ u8 id:4;
+ u8 plen:4;
+ u8 seq;
+ u8 payload[0];
+};
+
+#define c2h_evt_exist(c2h_evt) ((c2h_evt)->id || (c2h_evt)->plen)
+
extern u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
extern struct cmd_obj *rtw_dequeue_cmd(struct cmd_priv *pcmdpriv);
extern void rtw_free_cmd_obj(struct cmd_obj *pcmd);
@@ -131,6 +149,7 @@ extern struct evt_obj *rtw_dequeue_evt(_queue *queue);
extern void rtw_free_evt_obj(struct evt_obj *pcmd);
#endif
+void rtw_stop_cmd_thread(_adapter *adapter);
thread_return rtw_cmd_thread(thread_context context);
extern u32 rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
@@ -160,6 +179,10 @@ enum rtw_drvextra_cmd_id
P2P_PS_WK_CID,
P2P_PROTO_WK_CID,
CHECK_HIQ_WK_CID,//for softap mode, check hi queue if empty
+ INTEl_WIDI_WK_CID,
+ C2H_WK_CID,
+ RESET_SECURITYPRIV, // add for CONFIG_IEEE80211W, none 11w also can use
+ FREE_ASSOC_RESOURCES, // add for CONFIG_IEEE80211W, none 11w also can use
MAX_WK_CID
};
@@ -220,7 +243,7 @@ Command Mode
*/
struct disconnect_parm {
- u32 rsvd;
+ u32 deauth_timeout_ms;
};
/*
@@ -267,11 +290,14 @@ Command-Event Mode
*/
#define RTW_SSID_SCAN_AMOUNT 9 // for WEXT_CSCAN_AMOUNT 9
+#define RTW_CHANNEL_SCAN_AMOUNT (14+37)
struct sitesurvey_parm {
sint scan_mode; //active: 1, passive: 0
- sint bsslimit; // 1 ~ 48
- // for up to 9 probreq with specific ssid
+ /* sint bsslimit; // 1 ~ 48 */
+ u8 ssid_num;
+ u8 ch_num;
NDIS_802_11_SSID ssid[RTW_SSID_SCAN_AMOUNT];
+ struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
};
/*
@@ -320,6 +346,7 @@ when shared key ==> algorithm/keyid
struct set_stakey_parm {
u8 addr[ETH_ALEN];
u8 algorithm;
+ u8 id;// currently for erasing cam entry if algorithm == _NO_PRIVACY_
u8 key[16];
};
@@ -793,9 +820,10 @@ struct addBaReq_parm
};
/*H2C Handler index: 46 */
-struct SetChannel_parm
-{
- u32 curr_ch;
+struct set_ch_parm {
+ u8 ch;
+ u8 bw;
+ u8 ch_offset;
};
#ifdef MP_FIRMWARE_OFFLOAD
@@ -908,13 +936,14 @@ Result:
extern u8 rtw_setassocsta_cmd(_adapter *padapter, u8 *mac_addr);
extern u8 rtw_setstandby_cmd(_adapter *padapter, uint action);
-extern u8 rtw_sitesurvey_cmd(_adapter *padapter, NDIS_802_11_SSID *pssid, int ssid_max_num);
+u8 rtw_sitesurvey_cmd(_adapter *padapter, NDIS_802_11_SSID *ssid, int ssid_num, struct rtw_ieee80211_channel *ch, int ch_num);
extern u8 rtw_createbss_cmd(_adapter *padapter);
extern u8 rtw_createbss_cmd_ex(_adapter *padapter, unsigned char *pbss, unsigned int sz);
extern u8 rtw_setphy_cmd(_adapter *padapter, u8 modem, u8 ch);
extern u8 rtw_setstakey_cmd(_adapter *padapter, u8 *psta, u8 unicast_key);
+extern u8 rtw_clearstakey_cmd(_adapter *padapter, u8 *psta, u8 entry, u8 enqueue);
extern u8 rtw_joinbss_cmd(_adapter *padapter, struct wlan_network* pnetwork);
-extern u8 rtw_disassoc_cmd(_adapter *padapter);
+u8 rtw_disassoc_cmd(_adapter *padapter, u32 deauth_timeout_ms, bool enqueue);
extern u8 rtw_setopmode_cmd(_adapter *padapter, NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
extern u8 rtw_setdatarate_cmd(_adapter *padapter, u8 *rateset);
extern u8 rtw_setbasicrate_cmd(_adapter *padapter, u8 *rateset);
@@ -931,7 +960,9 @@ extern u8 rtw_setfwdig_cmd(_adapter*padapter, u8 type);
extern u8 rtw_setfwra_cmd(_adapter*padapter, u8 type);
extern u8 rtw_addbareq_cmd(_adapter*padapter, u8 tid, u8 *addr);
-
+// add for CONFIG_IEEE80211W, none 11w also can use
+extern u8 rtw_reset_securitypriv_cmd(_adapter*padapter);
+extern u8 rtw_free_assoc_resources_cmd(_adapter *padapter);
extern u8 rtw_dynamic_chk_wk_cmd(_adapter *adapter);
u8 rtw_lps_ctrl_wk_cmd(_adapter*padapter, u8 lps_ctrl_type, u8 enqueue);
@@ -947,11 +978,14 @@ extern u8 rtw_ps_cmd(_adapter*padapter);
u8 rtw_chk_hi_queue_cmd(_adapter*padapter);
#endif
-extern u8 rtw_set_chplan_cmd(_adapter*padapter, u8 chplan, u8 enaueue);
+u8 rtw_set_ch_cmd(_adapter*padapter, u8 ch, u8 bw, u8 ch_offset, u8 enqueue);
+extern u8 rtw_set_chplan_cmd(_adapter*padapter, u8 chplan, u8 enqueue);
extern u8 rtw_led_blink_cmd(_adapter*padapter, PLED_871x pLed);
extern u8 rtw_set_csa_cmd(_adapter*padapter, u8 new_ch_no);
extern u8 rtw_tdls_cmd(_adapter*padapter, u8 *addr, u8 option);
+extern u8 rtw_c2h_wk_cmd(PADAPTER padapter, u8 *c2h_evt);
+
u8 rtw_drvextra_cmd_hdl(_adapter *padapter, unsigned char *pbuf);
extern void rtw_survey_cmd_callback(_adapter *padapter, struct cmd_obj *pcmd);
@@ -1041,7 +1075,7 @@ enum rtw_h2c_cmd
GEN_CMD_CODE(_SetChannelPlan), /*59*/
GEN_CMD_CODE(_LedBlink), /*60*/
-
+
GEN_CMD_CODE(_SetChannelSwitch), /*61*/
GEN_CMD_CODE(_TDLS), /*62*/
@@ -1123,6 +1157,7 @@ struct _cmd_callback rtw_cmd_callback[] =
{GEN_CMD_CODE(_Set_H2C_MSG), NULL},/*58*/
{GEN_CMD_CODE(_SetChannelPlan), NULL},/*59*/
{GEN_CMD_CODE(_LedBlink), NULL},/*60*/
+
{GEN_CMD_CODE(_SetChannelSwitch), NULL},/*61*/
{GEN_CMD_CODE(_TDLS), NULL},/*62*/
};
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_debug.h b/drivers/net/wireless/rtl8192cu/include/rtw_debug.h
index eca6692..0ccf220 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_debug.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_debug.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -25,6 +25,7 @@
#include <drv_types.h>
+#define _no_debug_ 0
#define _drv_emerg_ 1
#define _drv_alert_ 2
#define _drv_crit_ 3
@@ -34,72 +35,75 @@
#define _drv_info_ 7
#define _drv_dump_ 8
#define _drv_debug_ 9
-
-
-#define _module_rtl871x_xmit_c_ BIT(0)
-#define _module_xmit_osdep_c_ BIT(1)
-#define _module_rtl871x_recv_c_ BIT(2)
-#define _module_recv_osdep_c_ BIT(3)
-#define _module_rtl871x_mlme_c_ BIT(4)
-#define _module_mlme_osdep_c_ BIT(5)
-#define _module_rtl871x_sta_mgt_c_ BIT(6)
-#define _module_rtl871x_cmd_c_ BIT(7)
-#define _module_cmd_osdep_c_ BIT(8)
-#define _module_rtl871x_io_c_ BIT(9)
-#define _module_io_osdep_c_ BIT(10)
-#define _module_os_intfs_c_ BIT(11)
-#define _module_rtl871x_security_c_ BIT(12)
-#define _module_rtl871x_eeprom_c_ BIT(13)
-#define _module_hal_init_c_ BIT(14)
-#define _module_hci_hal_init_c_ BIT(15)
-#define _module_rtl871x_ioctl_c_ BIT(16)
-#define _module_rtl871x_ioctl_set_c_ BIT(17)
-#define _module_rtl871x_ioctl_query_c_ BIT(18)
-#define _module_rtl871x_pwrctrl_c_ BIT(19)
-#define _module_hci_intfs_c_ BIT(20)
-#define _module_hci_ops_c_ BIT(21)
-#define _module_osdep_service_c_ BIT(22)
+#define _drv_always_ _drv_emerg_
+
+#define _module_rtl871x_xmit_c_ BIT(0)
+#define _module_xmit_osdep_c_ BIT(1)
+#define _module_rtl871x_recv_c_ BIT(2)
+#define _module_recv_osdep_c_ BIT(3)
+#define _module_rtl871x_mlme_c_ BIT(4)
+#define _module_mlme_osdep_c_ BIT(5)
+#define _module_rtl871x_sta_mgt_c_ BIT(6)
+#define _module_rtl871x_cmd_c_ BIT(7)
+#define _module_cmd_osdep_c_ BIT(8)
+#define _module_rtl871x_io_c_ BIT(9)
+#define _module_io_osdep_c_ BIT(10)
+#define _module_os_intfs_c_ BIT(11)
+#define _module_rtl871x_security_c_ BIT(12)
+#define _module_rtl871x_eeprom_c_ BIT(13)
+#define _module_hal_init_c_ BIT(14)
+#define _module_hci_hal_init_c_ BIT(15)
+#define _module_rtl871x_ioctl_c_ BIT(16)
+#define _module_rtl871x_ioctl_set_c_ BIT(17)
+#define _module_rtl871x_ioctl_query_c_ BIT(18)
+#define _module_rtl871x_pwrctrl_c_ BIT(19)
+#define _module_hci_intfs_c_ BIT(20)
+#define _module_hci_ops_c_ BIT(21)
+#define _module_osdep_service_c_ BIT(22)
#define _module_mp_ BIT(23)
-#define _module_hci_ops_os_c_ BIT(24)
-#define _module_rtl871x_ioctl_os_c BIT(25)
-#define _module_rtl8712_cmd_c_ BIT(26)
+#define _module_hci_ops_os_c_ BIT(24)
+#define _module_rtl871x_ioctl_os_c BIT(25)
+#define _module_rtl8712_cmd_c_ BIT(26)
//#define _module_efuse_ BIT(27)
#define _module_rtl8192c_xmit_c_ BIT(28)
-#define _module_efuse_ BIT(29)
-#define _module_rtl8712_recv_c_ BIT(30)
-#define _module_rtl8712_led_c_ BIT(31)
+#define _module_hal_xmit_c_ BIT(28)
+#define _module_efuse_ BIT(29)
+#define _module_rtl8712_recv_c_ BIT(30)
+#define _module_rtl8712_led_c_ BIT(31)
#undef _MODULE_DEFINE_
-#if defined _RTL871X_XMIT_C_
+#if defined _RTW_XMIT_C_
#define _MODULE_DEFINE_ _module_rtl871x_xmit_c_
#elif defined _XMIT_OSDEP_C_
#define _MODULE_DEFINE_ _module_xmit_osdep_c_
-#elif defined _RTL871X_RECV_C_
+#elif defined _RTW_RECV_C_
#define _MODULE_DEFINE_ _module_rtl871x_recv_c_
#elif defined _RECV_OSDEP_C_
#define _MODULE_DEFINE_ _module_recv_osdep_c_
-#elif defined _RTL871X_MLME_C_
+#elif defined _RTW_MLME_C_
#define _MODULE_DEFINE_ _module_rtl871x_mlme_c_
#elif defined _MLME_OSDEP_C_
#define _MODULE_DEFINE_ _module_mlme_osdep_c_
-#elif defined _RTL871X_STA_MGT_C_
+#elif defined _RTW_MLME_EXT_C_
+ #define _MODULE_DEFINE_ 1
+#elif defined _RTW_STA_MGT_C_
#define _MODULE_DEFINE_ _module_rtl871x_sta_mgt_c_
-#elif defined _RTL871X_CMD_C_
+#elif defined _RTW_CMD_C_
#define _MODULE_DEFINE_ _module_rtl871x_cmd_c_
#elif defined _CMD_OSDEP_C_
#define _MODULE_DEFINE_ _module_cmd_osdep_c_
-#elif defined _RTL871X_IO_C_
+#elif defined _RTW_IO_C_
#define _MODULE_DEFINE_ _module_rtl871x_io_c_
#elif defined _IO_OSDEP_C_
#define _MODULE_DEFINE_ _module_io_osdep_c_
#elif defined _OS_INTFS_C_
#define _MODULE_DEFINE_ _module_os_intfs_c_
-#elif defined _RTL871X_SECURITY_C_
+#elif defined _RTW_SECURITY_C_
#define _MODULE_DEFINE_ _module_rtl871x_security_c_
-#elif defined _RTL871X_EEPROM_C_
+#elif defined _RTW_EEPROM_C_
#define _MODULE_DEFINE_ _module_rtl871x_eeprom_c_
-#elif defined _HAL_INIT_C_
+#elif defined _HAL_INTF_C_
#define _MODULE_DEFINE_ _module_hal_init_c_
#elif defined _HCI_HAL_INIT_C_
#define _MODULE_DEFINE_ _module_hci_hal_init_c_
@@ -111,10 +115,14 @@
#define _MODULE_DEFINE_ _module_rtl871x_ioctl_query_c_
#elif defined _RTL871X_PWRCTRL_C_
#define _MODULE_DEFINE_ _module_rtl871x_pwrctrl_c_
+#elif defined _RTW_PWRCTRL_C_
+ #define _MODULE_DEFINE_ 1
#elif defined _HCI_INTF_C_
#define _MODULE_DEFINE_ _module_hci_intfs_c_
#elif defined _HCI_OPS_C_
#define _MODULE_DEFINE_ _module_hci_ops_c_
+#elif defined _SDIO_OPS_C_
+ #define _MODULE_DEFINE_ 1
#elif defined _OSDEP_HCI_INTF_C_
#define _MODULE_DEFINE_ _module_hci_intfs_c_
#elif defined _OSDEP_SERVICE_C_
@@ -126,7 +134,9 @@
#elif defined _RTL8712_CMD_C_
#define _MODULE_DEFINE_ _module_rtl8712_cmd_c_
#elif defined _RTL8192C_XMIT_C_
- #define _MODULE_DEFINE_ _module_rtl8192c_xmit_c_
+ #define _MODULE_DEFINE_ 1
+#elif defined _RTL8723AS_XMIT_C_
+ #define _MODULE_DEFINE_ 1
#elif defined _RTL8712_RECV_C_
#define _MODULE_DEFINE_ _module_rtl8712_recv_c_
#elif defined _RTL8192CU_RECV_C_
@@ -161,19 +171,23 @@ extern void rtl871x_cedbg(const char *fmt, ...);
#ifdef PLATFORM_WINDOWS
- #ifdef PLATFORM_OS_XP
+ #ifdef PLATFORM_OS_XP
- #define _dbgdump DbgPrint
+ #define _dbgdump DbgPrint
- #elif defined PLATFORM_OS_CE
+ #elif defined PLATFORM_OS_CE
- #define _dbgdump rtl871x_cedbg
+ #define _dbgdump rtl871x_cedbg
- #endif
+ #endif
- #elif defined PLATFORM_LINUX
+#elif defined PLATFORM_LINUX
- #define _dbgdump printk
+ #define _dbgdump printk
+
+#elif defined PLATFORM_FREEBSD
+
+ #define _dbgdump printf
#endif
@@ -186,8 +200,8 @@ extern void rtl871x_cedbg(const char *fmt, ...);
#define RT_TRACE(_Comp, _Level, Fmt)\
do {\
if((_Comp & GlobalDebugComponents) && (_Level <= GlobalDebugLevel)) {\
- _dbgdump("%s [0x%08x,%d]", RTL871X_MODULE_NAME, (unsigned int)_Comp, _Level);\
- _dbgdump Fmt; \
+ _dbgdump("%s [0x%08x,%d]", RTL871X_MODULE_NAME, (unsigned int)_Comp, _Level);\
+ _dbgdump Fmt;\
}\
}while(0)
@@ -233,21 +247,34 @@ extern void rtl871x_cedbg(const char *fmt, ...);
#ifdef CONFIG_DEBUG_RTL819X
- #ifdef PLATFORM_WINDOWS
- #ifdef PLATFORM_OS_XP
- #define _dbgdump DbgPrint
-
- #elif defined PLATFORM_OS_CE
- #define _dbgdump rtl871x_cedbg
+#undef _dbgdump
+
+#ifdef PLATFORM_WINDOWS
+
+ #ifdef PLATFORM_OS_XP
+
+ #define _dbgdump DbgPrint
+
+ #elif defined PLATFORM_OS_CE
- #endif
+ #define _dbgdump rtl871x_cedbg
- #elif defined PLATFORM_LINUX
- #define _dbgdump printk
#endif
+
+#elif defined PLATFORM_LINUX
+
+ #define _dbgdump printk
+
+#elif defined PLATFORM_FREEBSD
+
+ #define _dbgdump printf
+
#endif
+#endif /* CONFIG_DEBUG_RTL819X */
+
+
#ifdef PLATFORM_WINDOWS
#define DBG_871X do {} while(0)
#define MSG_8192C do {} while(0)
@@ -264,15 +291,38 @@ extern void rtl871x_cedbg(const char *fmt, ...);
#define ERR_8192C(x,...) do {} while(0)
#endif
-#if defined (_dbgdump)
- #undef DBG_871X
- #define DBG_871X _dbgdump
+#ifdef PLATFORM_FREEBSD
+ #define _dbgdump printf
+ #define DBG_871X(x, ...) do {} while(0)
+ #define MSG_8192C(x, ...) do {} while(0)
+ #define DBG_8192C(x,...) do {} while(0)
+ #define WRN_8192C(x,...) do {} while(0)
+ #define ERR_8192C(x,...) do {} while(0)
+#endif
+
+extern u32 GlobalDebugLevel;
+#define LOG_LEVEL(level, ...)\
+ do {\
+ if(level <= GlobalDebugLevel) {\
+ printk(__VA_ARGS__);\
+ }\
+ }while(0)
+
+#define DBG_871X_LEVEL LOG_LEVEL
- #undef MSG_8192C
- #define MSG_8192C _dbgdump
+#if defined (_dbgdump)
+ #undef DBG_871X
+// #define DBG_871X _dbgdump
+ #define DBG_871X(...) LOG_LEVEL(_drv_emerg_ , __VA_ARGS__)
+
+ #undef MSG_8192C
+// #define MSG_8192C _dbgdump
+ #define MSG_8192C(...) LOG_LEVEL(_drv_emerg_ , __VA_ARGS__)
+
+ #undef DBG_8192C
+// #define DBG_8192C _dbgdump
+ #define DBG_8192C(...) LOG_LEVEL(_drv_emerg_ , __VA_ARGS__)
- #undef DBG_8192C
- #define DBG_8192C _dbgdump
#undef WRN_8192C
#define WRN_8192C _dbgdump
@@ -282,13 +332,25 @@ extern void rtl871x_cedbg(const char *fmt, ...);
#endif
-
#ifdef CONFIG_PROC_DEBUG
int proc_get_drv_version(char *page, char **start,
off_t offset, int count,
int *eof, void *data);
+ int proc_get_log_level(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_set_log_level(struct file *file, const char *buffer,
+ unsigned long count, void *data);
+
+#ifdef DBG_MEM_ALLOC
+ int proc_get_mstat(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+#endif /* DBG_MEM_ALLOC */
+
int proc_get_write_reg(char *page, char **start,
off_t offset, int count,
int *eof, void *data);
@@ -340,6 +402,45 @@ extern void rtl871x_cedbg(const char *fmt, ...);
off_t offset, int count,
int *eof, void *data);
+ int proc_get_mac_reg_dump1(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_mac_reg_dump2(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_mac_reg_dump3(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_bb_reg_dump1(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_bb_reg_dump2(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_bb_reg_dump3(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_rf_reg_dump1(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_rf_reg_dump2(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_rf_reg_dump3(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_rf_reg_dump4(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
#ifdef CONFIG_AP_MODE
@@ -359,6 +460,8 @@ extern void rtl871x_cedbg(const char *fmt, ...);
int proc_get_best_channel(char *page, char **start,
off_t offset, int count,
int *eof, void *data);
+ int proc_set_best_channel(struct file *file, const char *buffer,
+ unsigned long count, void *data);
#endif
int proc_get_rx_signal(char *page, char **start,
@@ -367,13 +470,47 @@ extern void rtl871x_cedbg(const char *fmt, ...);
int proc_set_rx_signal(struct file *file, const char *buffer,
unsigned long count, void *data);
+
+ int proc_get_ht_enable(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_set_ht_enable(struct file *file, const char *buffer,
+ unsigned long count, void *data);
+
+ int proc_get_cbw40_enable(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+ int proc_set_cbw40_enable(struct file *file, const char *buffer,
+ unsigned long count, void *data);
+
int proc_get_ampdu_enable(char *page, char **start,
off_t offset, int count,
int *eof, void *data);
int proc_set_ampdu_enable(struct file *file, const char *buffer,
unsigned long count, void *data);
+
+ int proc_get_two_path_rssi(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_rx_stbc(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_set_rx_stbc(struct file *file, const char *buffer,
+ unsigned long count, void *data);
+
+
+ int proc_get_vid(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+
+ int proc_get_pid(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
int proc_get_rssi_disp(char *page, char **start,
off_t offset, int count,
@@ -381,7 +518,19 @@ extern void rtl871x_cedbg(const char *fmt, ...);
int proc_set_rssi_disp(struct file *file, const char *buffer,
unsigned long count, void *data);
-
+
+#if defined(DBG_CONFIG_ERROR_DETECT)
+int proc_get_sreset(char *page, char **start, off_t offset, int count, int *eof, void *data);
+int proc_set_sreset(struct file *file, const char *buffer, unsigned long count, void *data);
+#endif /* DBG_CONFIG_ERROR_DETECT */
+
+#ifdef CONFIG_DM_ADAPTIVITY
+int proc_get_dm_adaptivity(char *page, char **start,
+ off_t offset, int count,
+ int *eof, void *data);
+int proc_set_dm_adaptivity(struct file *file, const char *buffer,
+ unsigned long count, void *data);
+#endif /* CONFIG_DM_ADAPTIVITY */
#endif //CONFIG_PROC_DEBUG
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_eeprom.h b/drivers/net/wireless/rtl8192cu/include/rtw_eeprom.h
index 9d31998..ce834dd 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_eeprom.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_eeprom.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_EEPROM_H__
#define __RTW_EEPROM_H__
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_efuse.h b/drivers/net/wireless/rtl8192cu/include/rtw_efuse.h
index 66be910..224aa4f 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_efuse.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_efuse.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -106,7 +106,7 @@ u8 rtw_efuse_map_write(PADAPTER padapter, u16 addr, u16 cnts, u8 *data);
u16 Efuse_GetCurrentSize(PADAPTER pAdapter, u8 efuseType, BOOLEAN bPseudoTest);
u8 Efuse_CalculateWordCnts(u8 word_en);
void ReadEFuseByte(PADAPTER Adapter, u16 _offset, u8 *pbuf, BOOLEAN bPseudoTest) ;
-void EFUSE_GetEfuseDefinition(PADAPTER pAdapter, u8 efuseType, u8 type, PVOID *pOut, BOOLEAN bPseudoTest);
+void EFUSE_GetEfuseDefinition(PADAPTER pAdapter, u8 efuseType, u8 type, void *pOut, BOOLEAN bPseudoTest);
u8 efuse_OneByteRead(PADAPTER pAdapter, u16 addr, u8 *data, BOOLEAN bPseudoTest);
u8 efuse_OneByteWrite(PADAPTER pAdapter, u16 addr, u8 data, BOOLEAN bPseudoTest);
@@ -121,3 +121,4 @@ void EFUSE_ShadowMapUpdate(PADAPTER pAdapter, u8 efuseType, BOOLEAN bPseudoTest)
void EFUSE_ShadowRead(PADAPTER pAdapter, u8 Type, u16 Offset, u32 *Value);
#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_event.h b/drivers/net/wireless/rtl8192cu/include/rtw_event.h
index dd9f097..4299ddc 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_event.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_event.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_EVENT_H_
#define _RTW_EVENT_H_
#include <drv_conf.h>
@@ -92,7 +91,8 @@ struct stassoc_event {
struct stadel_event {
unsigned char macaddr[6];
- unsigned char rsvd[2];
+ unsigned char rsvd[2]; //for reason
+ int mac_id;
};
struct addba_event
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_ht.h b/drivers/net/wireless/rtl8192cu/include/rtw_ht.h
index 4dcad2b..3cd904d 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_ht.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_ht.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_HT_H_
#define _RTW_HT_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_io.h b/drivers/net/wireless/rtl8192cu/include/rtw_io.h
index b1f57c1..c66845c 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_io.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_io.h
@@ -16,8 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
+
#ifndef _RTW_IO_H_
#define _RTW_IO_H_
@@ -44,16 +44,6 @@
#else
#include <linux/usb/ch9.h>
#endif
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
-#define rtw_usb_buffer_alloc(dev, size, mem_flags, dma) usb_alloc_coherent((dev), (size), (mem_flags), (dma))
-#define rtw_usb_buffer_free(dev, size, addr, dma) usb_free_coherent((dev), (size), (addr), (dma))
-#else
-#define rtw_usb_buffer_alloc(dev, size, mem_flags, dma) usb_buffer_alloc((dev), (size), (mem_flags), (dma))
-#define rtw_usb_buffer_free(dev, size, addr, dma) usb_buffer_free((dev), (size), (addr), (dma))
-#endif
-
-
#endif //CONFIG_USB_HCI
#endif //PLATFORM_LINUX
@@ -129,72 +119,39 @@
#define _INTF_ASYNC_ BIT(0) //support async io
struct intf_priv;
-struct intf_hdl;
+struct intf_hdl;
struct io_queue;
-struct _io_ops {
-
-
- uint (*_sdbus_read_bytes_to_membuf)(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
- uint (*_sdbus_read_blocks_to_membuf)(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
- void (*_attrib_read)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
+struct _io_ops
+{
u8 (*_read8)(struct intf_hdl *pintfhdl, u32 addr);
-
u16 (*_read16)(struct intf_hdl *pintfhdl, u32 addr);
-
u32 (*_read32)(struct intf_hdl *pintfhdl, u32 addr);
-
- uint (*_sdbus_write_blocks_from_membuf)(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf,u8 async);
-
- uint (*_sdbus_write_bytes_from_membuf)(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
- u8 (*_cmd52r)(struct intf_priv *pintfpriv, u32 addr);
- void (*_cmd52w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
- u8 (*_cmdfunc152r)(struct intf_priv *pintfpriv, u32 addr);
- void (*_cmdfunc152w)(struct intf_priv *pintfpriv, u32 addr, u8 val8);
-
-
- void (*_attrib_write)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val);
-
int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
-
int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val);
-
int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata);
int (*_write8_async)(struct intf_hdl *pintfhdl, u32 addr, u8 val);
-
int (*_write16_async)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
-
int (*_write32_async)(struct intf_hdl *pintfhdl, u32 addr, u32 val);
-
void (*_read_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
- void (*_sync_irp_protocol_rw)(struct io_queue *pio_q);
+ void (*_sync_irp_protocol_rw)(struct io_queue *pio_q);
u32 (*_read_interrupt)(struct intf_hdl *pintfhdl, u32 addr);
u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
- int (*_write_port_sync)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
-
u32 (*_write_scsi)(struct intf_hdl *pintfhdl,u32 cnt, u8 *pmem);
-
void (*_read_port_cancel)(struct intf_hdl *pintfhdl);
-
void (*_write_port_cancel)(struct intf_hdl *pintfhdl);
-
+
};
struct io_req {
@@ -424,26 +381,30 @@ extern int _rtw_write16_async(_adapter *adapter, u32 addr, u16 val);
extern int _rtw_write32_async(_adapter *adapter, u32 addr, u32 val);
extern void _rtw_write_mem(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-extern void _rtw_write_port(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-extern int _rtw_write_port_sync(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
+extern u32 _rtw_write_port(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
+u32 _rtw_write_port_and_wait(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem, int timeout_ms);
extern void _rtw_write_port_cancel(_adapter *adapter);
#ifdef DBG_IO
+bool match_read_sniff_ranges(u16 addr, u16 len);
+bool match_write_sniff_ranges(u16 addr, u16 len);
+
+extern u8 dbg_rtw_read8(_adapter *adapter, u32 addr, const char *caller, const int line);
+extern u16 dbg_rtw_read16(_adapter *adapter, u32 addr, const char *caller, const int line);
+extern u32 dbg_rtw_read32(_adapter *adapter, u32 addr, const char *caller, const int line);
+
extern int dbg_rtw_write8(_adapter *adapter, u32 addr, u8 val, const char *caller, const int line);
extern int dbg_rtw_write16(_adapter *adapter, u32 addr, u16 val, const char *caller, const int line);
extern int dbg_rtw_write32(_adapter *adapter, u32 addr, u32 val, const char *caller, const int line);
extern int dbg_rtw_writeN(_adapter *adapter, u32 addr ,u32 length , u8 *data, const char *caller, const int line);
-#define rtw_read8(adapter, addr) _rtw_read8((adapter), (addr))
-#define rtw_read16(adapter, addr) _rtw_read16((adapter), (addr))
-#define rtw_read32(adapter, addr) _rtw_read32((adapter), (addr))
+#define rtw_read8(adapter, addr) dbg_rtw_read8((adapter), (addr), __FUNCTION__, __LINE__)
+#define rtw_read16(adapter, addr) dbg_rtw_read16((adapter), (addr), __FUNCTION__, __LINE__)
+#define rtw_read32(adapter, addr) dbg_rtw_read32((adapter), (addr), __FUNCTION__, __LINE__)
#define rtw_read_mem(adapter, addr, cnt, mem) _rtw_read_mem((adapter), (addr), (cnt), (mem))
#define rtw_read_port(adapter, addr, cnt, mem) _rtw_read_port((adapter), (addr), (cnt), (mem))
#define rtw_read_port_cancel(adapter) _rtw_read_port_cancel((adapter))
-#define DBG_IO_WRITE_SNIFF_ADDR_START 0x24 //0x4c //0x4c // the starting address to sniff
-#define DBG_IO_WRITE_SNIFF_ADDR_END 0x27 //0x4c+ 1 // the ending address to sniff
-
#define rtw_write8(adapter, addr, val) dbg_rtw_write8((adapter), (addr), (val), __FUNCTION__, __LINE__)
#define rtw_write16(adapter, addr, val) dbg_rtw_write16((adapter), (addr), (val), __FUNCTION__, __LINE__)
#define rtw_write32(adapter, addr, val) dbg_rtw_write32((adapter), (addr), (val), __FUNCTION__, __LINE__)
@@ -455,7 +416,7 @@ extern int dbg_rtw_writeN(_adapter *adapter, u32 addr ,u32 length , u8 *data, co
#define rtw_write_mem(adapter, addr, cnt, mem) _rtw_write_mem((adapter), addr, cnt, mem)
#define rtw_write_port(adapter, addr, cnt, mem) _rtw_write_port(adapter, addr, cnt, mem)
-#define rtw_write_port_sync(adapter, addr, cnt, mem) _rtw_write_port_sync((adapter), (addr), (cnt), (mem))
+#define rtw_write_port_and_wait(adapter, addr, cnt, mem, timeout_ms) _rtw_write_port_and_wait((adapter), (addr), (cnt), (mem), (timeout_ms))
#define rtw_write_port_cancel(adapter) _rtw_write_port_cancel(adapter)
#else //DBG_IO
#define rtw_read8(adapter, addr) _rtw_read8((adapter), (addr))
@@ -476,7 +437,7 @@ extern int dbg_rtw_writeN(_adapter *adapter, u32 addr ,u32 length , u8 *data, co
#define rtw_write_mem(adapter, addr, cnt, mem) _rtw_write_mem((adapter), (addr), (cnt), (mem))
#define rtw_write_port(adapter, addr, cnt, mem) _rtw_write_port((adapter), (addr), (cnt), (mem))
-#define rtw_write_port_sync(adapter, addr, cnt, mem) _rtw_write_port_sync((adapter), (addr), (cnt), (mem))
+#define rtw_write_port_and_wait(adapter, addr, cnt, mem, timeout_ms) _rtw_write_port_and_wait((adapter), (addr), (cnt), (mem), (timeout_ms))
#define rtw_write_port_cancel(adapter) _rtw_write_port_cancel((adapter))
#endif //DBG_IO
@@ -512,7 +473,7 @@ extern void async_write_mem(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
extern void async_write_port(_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-int rtw_init_io_priv(_adapter *padapter);
+int rtw_init_io_priv(_adapter *padapter, void (*set_intf_ops)(struct _io_ops *pops));
extern uint alloc_io_queue(_adapter *adapter);
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl.h b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl.h
index e6d34f0..c4da301 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_IOCTL_H_
#define _RTW_IOCTL_H_
@@ -88,14 +87,14 @@ struct oid_funs_node {
struct oid_par_priv
{
- void *adapter_context;
- NDIS_OID oid;
- void* information_buf;
+ void *adapter_context;
+ NDIS_OID oid;
+ void *information_buf;
u32 information_buf_len;
- u32* bytes_rw;
- u32* bytes_needed;
+ u32 *bytes_rw;
+ u32 *bytes_needed;
enum oid_type type_of_oid;
- u32 dbg;
+ u32 dbg;
};
struct oid_obj_priv {
@@ -103,7 +102,8 @@ struct oid_obj_priv {
NDIS_STATUS (*oidfuns)(struct oid_par_priv *poid_par_priv);
};
-#ifdef CONFIG_MP_INCLUDED
+#if (defined(CONFIG_MP_INCLUDED) && defined(_RTW_MP_IOCTL_C_)) || \
+ (defined(PLATFORM_WINDOWS) && defined(_RTW_IOCTL_RTL_C_))
static NDIS_STATUS oid_null_function(struct oid_par_priv* poid_par_priv)
{
_func_enter_;
@@ -243,10 +243,8 @@ void Set_802_3_MULTICAST_LIST(ADAPTER *pAdapter, UCHAR *MCListbuf, ULONG MCListl
#endif// end of PLATFORM_WINDOWS
-#ifdef PLATFORM_LINUX
-
+#if defined(PLATFORM_LINUX) && defined(CONFIG_WIRELESS_EXT)
extern struct iw_handler_def rtw_handlers_def;
-
#endif
extern NDIS_STATUS drv_query_info(
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_query.h b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_query.h
index e9ad16f1..5b6018a 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_query.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_query.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_IOCTL_QUERY_H_
#define _RTW_IOCTL_QUERY_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_rtl.h b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_rtl.h
index 1ea8f21..3bff766 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_rtl.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_rtl.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_IOCTL_RTL_H_
#define _RTW_IOCTL_RTL_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_set.h b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_set.h
index 577af51..82f9810 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_set.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_ioctl_set.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_IOCTL_SET_H_
#define __RTW_IOCTL_SET_H_
@@ -60,19 +59,21 @@ u8 rtw_set_802_11_authentication_mode(_adapter *pdapter, NDIS_802_11_AUTHENTICAT
u8 rtw_set_802_11_bssid(_adapter* padapter, u8 *bssid);
u8 rtw_set_802_11_add_wep(_adapter * padapter, NDIS_802_11_WEP * wep);
u8 rtw_set_802_11_disassociate(_adapter * padapter);
-u8 rtw_set_802_11_bssid_list_scan(_adapter* padapter);
+u8 rtw_set_802_11_bssid_list_scan(_adapter* padapter, NDIS_802_11_SSID *pssid, int ssid_max_num);
u8 rtw_set_802_11_infrastructure_mode(_adapter * padapter, NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
u8 rtw_set_802_11_remove_wep(_adapter * padapter, u32 keyindex);
u8 rtw_set_802_11_ssid(_adapter * padapter, NDIS_802_11_SSID * ssid);
+u8 rtw_set_802_11_connect(_adapter* padapter, u8 *bssid, NDIS_802_11_SSID *ssid);
u8 rtw_set_802_11_remove_key(_adapter * padapter, NDIS_802_11_REMOVE_KEY * key);
-
+u8 rtw_validate_bssid(u8 *bssid);
u8 rtw_validate_ssid(NDIS_802_11_SSID *ssid);
-u16 rtw_get_network_max_rate(_adapter *adapter, WLAN_BSSID_EX *bss);
+u16 rtw_get_cur_max_rate(_adapter *adapter);
int rtw_set_scan_mode(_adapter *adapter, RT_SCAN_TYPE scan_mode);
int rtw_set_channel_plan(_adapter *adapter, u8 channel_plan);
int rtw_set_country(_adapter *adapter, const char *country_code);
+int rtw_set_band(_adapter *adapter, enum _BAND band);
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_led.h b/drivers/net/wireless/rtl8192cu/include/rtw_led.h
index 72634f8..b5365ba 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_led.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_led.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_LED_H_
#define __RTW_LED_H_
@@ -44,15 +43,15 @@ typedef enum _LED_CTL_MODE{
}LED_CTL_MODE;
-#ifdef CONFIG_USB_HCI
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI)
//================================================================================
// LED object.
//================================================================================
typedef enum _LED_STATE_871x{
LED_UNKNOWN = 0,
- LED_ON = 1,
- LED_OFF = 2,
+ RTW_LED_ON = 1,
+ RTW_LED_OFF = 2,
LED_BLINK_NORMAL = 3,
LED_BLINK_SLOWLY = 4,
LED_POWER_ON_BLINK = 5,
@@ -95,10 +94,10 @@ typedef struct _LED_871x{
u8 bLedWPSBlinkInProgress;
u32 BlinkTimes; // Number of times to toggle led state for blinking.
- LED_STATE_871x BlinkingLedState; // Next state for blinking, either LED_ON or LED_OFF are.
+ LED_STATE_871x BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
_timer BlinkTimer; // Timer object for led blinking.
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)|| defined PLATFORM_FREEBSD
_workitem BlinkWorkItem; // Workitem used by BlinkTimer to manipulate H/W to blink LED.
#endif
} LED_871x, *PLED_871x;
@@ -127,8 +126,8 @@ typedef enum _LED_STRATEGY_871x{
typedef enum _LED_STATE_871x{
LED_UNKNOWN = 0,
- LED_ON = 1,
- LED_OFF = 2,
+ RTW_LED_ON = 1,
+ RTW_LED_OFF = 2,
LED_BLINK_NORMAL = 3,
LED_BLINK_SLOWLY = 4,
LED_POWER_ON_BLINK = 5,
@@ -160,9 +159,13 @@ typedef struct _LED_871x{
u8 bLedSlowBlinkInProgress;//added by vivi, for led new mode
u32 BlinkTimes; // Number of times to toggle led state for blinking.
- LED_STATE_871x BlinkingLedState; // Next state for blinking, either LED_ON or LED_OFF are.
+ LED_STATE_871x BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
_timer BlinkTimer; // Timer object for led blinking.
+
+ u8 bLedLinkBlinkInProgress;
+ u8 bLedNoLinkBlinkInProgress;
+ u8 bLedScanBlinkInProgress;
} LED_871x, *PLED_871x;
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_mlme.h b/drivers/net/wireless/rtl8192cu/include/rtw_mlme.h
index 0beca93..d9d6456 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_mlme.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_mlme.h
@@ -16,18 +16,21 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_MLME_H_
#define __RTW_MLME_H_
#include <drv_conf.h>
#include <osdep_service.h>
+#include <mlme_osdep.h>
#include <drv_types.h>
#include <wlan_bssdef.h>
+#ifdef CONFIG_INTEL_WIDI
+#include <rtw_intel_widi.h>
+#endif
-#define MAX_BSS_CNT 64
+#define MAX_BSS_CNT 128
//#define MAX_JOIN_TIMEOUT 2000
//#define MAX_JOIN_TIMEOUT 2500
#define MAX_JOIN_TIMEOUT 6500
@@ -45,39 +48,48 @@
#define SCANQUEUE_LIFETIME 20 // unit:sec
#endif
-#define WIFI_NULL_STATE 0x00000000
-#define WIFI_ASOC_STATE 0x00000001 // Under Linked state...
-#define WIFI_REASOC_STATE 0x00000002
-#define WIFI_SLEEP_STATE 0x00000004
-#define WIFI_STATION_STATE 0x00000008
+#define WIFI_NULL_STATE 0x00000000
+
+#define WIFI_ASOC_STATE 0x00000001 // Under Linked state...
+#define WIFI_REASOC_STATE 0x00000002
+#define WIFI_SLEEP_STATE 0x00000004
+#define WIFI_STATION_STATE 0x00000008
+
#define WIFI_AP_STATE 0x00000010
#define WIFI_ADHOC_STATE 0x00000020
#define WIFI_ADHOC_MASTER_STATE 0x00000040
#define WIFI_UNDER_LINKING 0x00000080
-//#define WIFI_UNDER_CMD 0x00000200
-// ========== P2P Section Start ===============
-#define WIFI_P2P_LISTEN_STATE 0x00010000
-#define WIFI_P2P_GROUP_FORMATION_STATE 0x00020000
-// ========== P2P Section End ===============
-#define WIFI_SITE_MONITOR 0x00000800 //to indicate the station is under site surveying
+
+#define WIFI_UNDER_WPS 0x00000100
+//#define WIFI_UNDER_CMD 0x00000200
+//#define WIFI_UNDER_P2P 0x00000400
+#define WIFI_STA_ALIVE_CHK_STATE 0x00000400
+#define WIFI_SITE_MONITOR 0x00000800 //to indicate the station is under site surveying
#ifdef WDS
-#define WIFI_WDS 0x00001000
-#define WIFI_WDS_RX_BEACON 0x00002000 // already rx WDS AP beacon
+#define WIFI_WDS 0x00001000
+#define WIFI_WDS_RX_BEACON 0x00002000 // already rx WDS AP beacon
#endif
#ifdef AUTO_CONFIG
-#define WIFI_AUTOCONF 0x00004000
-#define WIFI_AUTOCONF_IND 0x00008000
+#define WIFI_AUTOCONF 0x00004000
+#define WIFI_AUTOCONF_IND 0x00008000
#endif
+/*
+// ========== P2P Section Start ===============
+#define WIFI_P2P_LISTEN_STATE 0x00010000
+#define WIFI_P2P_GROUP_FORMATION_STATE 0x00020000
+// ========== P2P Section End ===============
+*/
+
//#ifdef UNDER_MPTEST
-#define WIFI_MP_STATE 0x00010000
-#define WIFI_MP_CTX_BACKGROUND 0x00020000 // in continous tx background
-#define WIFI_MP_CTX_ST 0x00040000 // in continous tx with single-tone
+#define WIFI_MP_STATE 0x00010000
+#define WIFI_MP_CTX_BACKGROUND 0x00020000 // in continous tx background
+#define WIFI_MP_CTX_ST 0x00040000 // in continous tx with single-tone
#define WIFI_MP_CTX_BACKGROUND_PENDING 0x00080000 // pending in continous tx background due to out of skb
-#define WIFI_MP_CTX_CCK_HW 0x00100000 // in continous tx
-#define WIFI_MP_CTX_CCK_CS 0x00200000 // in continous tx with carrier suppression
-#define WIFI_MP_LPBK_STATE 0x00400000
+#define WIFI_MP_CTX_CCK_HW 0x00100000 // in continous tx
+#define WIFI_MP_CTX_CCK_CS 0x00200000 // in continous tx with carrier suppression
+#define WIFI_MP_LPBK_STATE 0x00400000
//#endif
//#define _FW_UNDER_CMD WIFI_UNDER_CMD
@@ -85,6 +97,7 @@
#define _FW_LINKED WIFI_ASOC_STATE
#define _FW_UNDER_SURVEY WIFI_SITE_MONITOR
+
enum dot11AuthAlgrthmNum {
dot11AuthAlgrthm_Open = 0,
dot11AuthAlgrthm_Shared,
@@ -101,6 +114,29 @@ typedef enum _RT_SCAN_TYPE
SCAN_MIX,
}RT_SCAN_TYPE, *PRT_SCAN_TYPE;
+enum DriverInterface {
+ DRIVER_WEXT = 1,
+ DRIVER_CFG80211 = 2
+};
+
+enum _BAND
+{
+ GHZ24_50 = 0,
+ GHZ_50,
+ GHZ_24,
+ GHZ_MAX,
+};
+
+#define rtw_band_valid(band) ((band) >= GHZ24_50 && (band) < GHZ_MAX)
+
+enum SCAN_RESULT_TYPE
+{
+ SCAN_RESULT_P2P_ONLY = 0, // Will return all the P2P devices.
+ SCAN_RESULT_ALL = 1, // Will return all the scanned device, include AP.
+ SCAN_RESULT_WFD_TYPE = 2 // Will just return the correct WFD device.
+ // If this device is Miracast sink device, it will just return all the Miracast source devices.
+};
+
/*
there are several "locks" in mlme_priv,
@@ -136,6 +172,7 @@ typedef struct _RT_LINK_DETECT_T{
BOOLEAN bRxBusyTraffic;
BOOLEAN bHigherBusyTraffic; // For interrupt migration purpose.
BOOLEAN bHigherBusyRxTraffic; // We may disable Tx interrupt according as Rx traffic.
+ BOOLEAN bHigherBusyTxTraffic; // We may disable Tx interrupt according as Tx traffic.
}RT_LINK_DETECT_T, *PRT_LINK_DETECT_T;
struct profile_info {
@@ -146,9 +183,14 @@ struct profile_info {
struct tx_invite_req_info{
u8 token;
- u8 ssid[ WLAN_SSID_MAXLEN ];
+ u8 benable;
+ u8 go_ssid[ WLAN_SSID_MAXLEN ];
u8 ssidlen;
- u8 peer_operation_ch;
+ u8 go_bssid[ ETH_ALEN ];
+ u8 peer_macaddr[ ETH_ALEN ];
+ u8 operating_ch; // This information will be set by using the p2p_set op_ch=x
+ u8 peer_ch; // The listen channel for peer P2P device
+
};
struct tx_invite_resp_info{
@@ -158,9 +200,25 @@ struct tx_invite_resp_info{
#ifdef CONFIG_WFD
struct wifi_display_info{
- u16 rtsp_ctrlport; // TCP port number at which the this WFD device listens for RTSP messages
- u16 peer_rtsp_ctrlport; // TCP port number at which the peer WFD device listens for RTSP messages
- // This filed should be filled when receiving the gropu negotiation request
+ u16 wfd_enable; // Eanble/Disable the WFD function.
+ u16 rtsp_ctrlport; // TCP port number at which the this WFD device listens for RTSP messages
+ u16 peer_rtsp_ctrlport; // TCP port number at which the peer WFD device listens for RTSP messages
+ // This filed should be filled when receiving the gropu negotiation request
+
+ u8 peer_session_avail; // WFD session is available or not for the peer wfd device.
+ // This variable will be set when sending the provisioning discovery request to peer WFD device.
+ // And this variable will be reset when it is read by using the iwpriv p2p_get wfd_sa command.
+
+ u8 ip_address[4];
+ u8 peer_ip_address[4];
+ u8 wfd_pc; // WFD preferred connection
+ // 0 -> Prefer to use the P2P for WFD connection on peer side.
+ // 1 -> Prefer to use the TDLS for WFD connection on peer side.
+
+ u8 wfd_device_type; // WFD Device Type
+ // 0 -> WFD Source Device
+ // 1 -> WFD Primary Sink Device
+ enum SCAN_RESULT_TYPE scan_result_type; // Used when P2P is enable. This parameter will impact the scan result.
};
#endif //CONFIG_WFD
@@ -190,6 +248,15 @@ struct group_id_info{
u8 ssid[ WLAN_SSID_MAXLEN ]; // The SSID of this P2P group
};
+struct scan_limit_info{
+ u8 scan_op_ch_only; // When this flag is set, the driver should just scan the operation channel
+#ifndef P2P_OP_CHECK_SOCIAL_CH
+ u8 operation_ch[2]; // Store the operation channel of invitation request frame
+#else
+ u8 operation_ch[5]; // Store additional channel 1,6,11 for Android 4.2 IOT & Nexus 4
+#endif //P2P_OP_CHECK_SOCIAL_CH
+};
+
#ifdef CONFIG_IOCTL_CFG80211
struct cfg80211_wifidirect_info{
_timer remain_on_ch_timer;
@@ -197,8 +264,7 @@ struct cfg80211_wifidirect_info{
struct ieee80211_channel remain_on_ch_channel;
enum nl80211_channel_type remain_on_ch_type;
u64 remain_on_ch_cookie;
- struct net_device *remain_on_ch_dev;
-
+ bool is_ro_ch;
};
#endif //CONFIG_IOCTL_CFG80211
@@ -209,6 +275,12 @@ struct wifidirect_info{
// Used to do the scanning. After confirming the peer is availalble, the driver transmits the P2P frame to peer.
_timer pre_tx_scan_timer;
+ _timer reset_ch_sitesurvey;
+ _timer reset_ch_sitesurvey2; // Just for resetting the scan limit function by using p2p nego
+#ifdef CONFIG_CONCURRENT_MODE
+ // Used to switch the channel between legacy AP and listen state.
+ _timer ap_p2p_switch_timer;
+#endif
struct tx_provdisc_req_info tx_prov_disc_info;
struct rx_provdisc_req_info rx_prov_disc_info;
struct tx_invite_req_info invitereq_info;
@@ -216,9 +288,11 @@ struct wifidirect_info{
struct tx_invite_resp_info inviteresp_info;
struct tx_nego_req_info nego_req_info;
struct group_id_info groupid_info; // Store the group id information when doing the group negotiation handshake.
+ struct scan_limit_info rx_invitereq_info; // Used for get the limit scan channel from the Invitation procedure
+ struct scan_limit_info p2p_info; // Used for get the limit scan channel from the P2P negotiation handshake
#ifdef CONFIG_WFD
- struct wifi_display_info wfd_info;
-#endif
+ struct wifi_display_info *wfd_info;
+#endif
enum P2P_ROLE role;
enum P2P_STATE pre_p2p_state;
enum P2P_STATE p2p_state;
@@ -232,6 +306,7 @@ struct wifidirect_info{
u8 p2p_wildcard_ssid[P2P_WILDCARD_SSID_LEN];
u8 intent; // should only include the intent value.
u8 p2p_peer_interface_addr[ ETH_ALEN ];
+ u8 p2p_peer_device_addr[ ETH_ALEN ];
u8 peer_intent; // Included the intent value and tie breaker value.
u8 device_name[ WPS_MAX_DEVICE_NAME_LEN ]; // Device name for displaying on searching device screen
u8 device_name_len;
@@ -244,15 +319,41 @@ struct wifidirect_info{
u8 nego_ssidlen;
u8 p2p_group_ssid[WLAN_SSID_MAXLEN];
u8 p2p_group_ssid_len;
-
- enum P2P_WPSINFO ui_got_wps_info; // This field will store the WPS value (PIN value or PBC) that UI had got from the user.
- u16 supported_wps_cm; // This field describes the WPS config method which this driver supported.
- // The value should be the combination of config method defined in page104 of WPS v2.0 spec.
- u8 channel_cnt; // This field is the count number for P2P Channel List attribute of group negotitation response frame.
- u8 channel_list[13]; // This field will contain the channel number of P2P Channel List attribute of group negotitation response frame.
- // We will use the channel_cnt and channel_list fields when constructing the group negotitation confirm frame.
- u8 p2p_ps_enable;
- enum P2P_PS p2p_ps; // indicate p2p ps state
+ u8 persistent_supported; // Flag to know the persistent function should be supported or not.
+ // In the Sigma test, the Sigma will provide this enable from the sta_set_p2p CAPI.
+ // 0: disable
+ // 1: enable
+ u8 session_available; // Flag to set the WFD session available to enable or disable "by Sigma"
+ // In the Sigma test, the Sigma will disable the session available by using the sta_preset CAPI.
+ // 0: disable
+ // 1: enable
+ u8 wfd_tdls_enable; // Flag to enable or disable the TDLS by WFD Sigma
+ // 0: disable
+ // 1: enable
+ u8 wfd_tdls_weaksec; // Flag to enable or disable the weak security function for TDLS by WFD Sigma
+ // 0: disable
+ // In this case, the driver can't issue the tdsl setup request frame.
+ // 1: enable
+ // In this case, the driver can issue the tdls setup request frame
+ // even the current security is weak security.
+
+ enum P2P_WPSINFO ui_got_wps_info; // This field will store the WPS value (PIN value or PBC) that UI had got from the user.
+ u16 supported_wps_cm; // This field describes the WPS config method which this driver supported.
+ // The value should be the combination of config method defined in page104 of WPS v2.0 spec.
+ u8 external_uuid; // UUID flag
+ u8 uuid[16]; // UUID
+ uint channel_list_attr_len; // This field will contain the length of body of P2P Channel List attribute of group negotitation response frame.
+ u8 channel_list_attr[100]; // This field will contain the body of P2P Channel List attribute of group negotitation response frame.
+ // We will use the channel_cnt and channel_list fields when constructing the group negotitation confirm frame.
+ u8 driver_interface; // Indicate DRIVER_WEXT or DRIVER_CFG80211
+
+#ifdef CONFIG_CONCURRENT_MODE
+ u16 ext_listen_interval; // The interval to be available with legacy AP (ms)
+ u16 ext_listen_period; // The time period to be available for P2P listen state (ms)
+#endif
+#ifdef CONFIG_P2P_PS
+ enum P2P_PS_MODE p2p_ps_mode; // indicate p2p ps mode
+ enum P2P_PS_STATE p2p_ps_state; // indicate p2p ps state
u8 noa_index; // Identifies and instance of Notice of Absence timing.
u8 ctwindow; // Client traffic window. A period of time in TU after TBTT.
u8 opp_ps; // opportunistic power save.
@@ -261,11 +362,12 @@ struct wifidirect_info{
u32 noa_duration[P2P_MAX_NOA_NUM]; // Max duration for owner, preferred or min acceptable duration for client.
u32 noa_interval[P2P_MAX_NOA_NUM]; // Length of interval for owner, preferred or max acceptable interval of client.
u32 noa_start_time[P2P_MAX_NOA_NUM]; // schedule expressed in terms of the lower 4 bytes of the TSF timer.
+#endif // CONFIG_P2P_PS
};
-struct tdls_ss_record{ //signal strength record
+struct tdls_ss_record{ //signal strength record; recording the tdls sta with lowerest ss
u8 macaddr[ETH_ALEN];
- u8 signal_strength;
+ u8 RxPWDBAll;
u8 is_tdls_sta; // _TRUE: direct link sta, _FALSE: else
};
@@ -275,16 +377,20 @@ struct tdls_info{
u8 sta_cnt;
u8 sta_maximum; // 1:tdls sta is equal (NUM_STA-1), reach max direct link number; 0: else;
struct tdls_ss_record ss_record;
- u8 cam_entry_to_write; //cam entry that is empty to write
- u8 cam_entry_to_clear; //cam entry that is trying to clear, using in direct link teardown
+ u8 macid_index; //macid entry that is ready to write
+ u8 clear_cam; //cam entry that is trying to clear, using it in direct link teardown
u8 ch_sensing;
u8 cur_channel;
u8 candidate_ch;
u8 collect_pkt_num[MAX_CHANNEL_NUM];
_lock cmd_lock;
_lock hdl_lock;
- _lock timer_lock;
u8 watchdog_count;
+ u8 dev_discovered; //WFD_TDLS: for sigma test
+ u8 enable;
+#ifdef CONFIG_WFD
+ struct wifi_display_info *wfd_info;
+#endif
};
struct mlme_priv {
@@ -299,6 +405,7 @@ struct mlme_priv {
u8 *nic_hdl;
+ u8 not_indic_disco;
_list *pscanned;
_queue free_bss_pool;
_queue scanned_queue;
@@ -317,6 +424,7 @@ struct mlme_priv {
_timer assoc_timer;
uint assoc_by_bssid;
+ uint assoc_by_rssi;
_timer scan_to_timer; // driver itself handles scan_timeout status.
u32 scan_start_time; // used to evaluate the time spent in scanning
@@ -346,10 +454,9 @@ struct mlme_priv {
RT_LINK_DETECT_T LinkDetectInfo;
_timer dynamic_chk_timer; //dynamic/periodic check timer
- u8 key_mask; //use for ips to set wep key after ips_leave
u8 acm_mask; // for wmm acm mask
u8 ChannelPlan;
- RT_SCAN_TYPE scan_mode; // active: 1, passive: 0
+ RT_SCAN_TYPE scan_mode; // active: 1, passive: 0
//u8 probereq_wpsie[MAX_WPS_IE_LEN];//added in probe req
//int probereq_wpsie_len;
@@ -385,15 +492,20 @@ struct mlme_priv {
u16 ht_op_mode;
#endif /* CONFIG_80211N_HT */
+ u8 *assoc_req;
+ u32 assoc_req_len;
+ u8 *assoc_rsp;
+ u32 assoc_rsp_len;
+
u8 *wps_beacon_ie;
//u8 *wps_probe_req_ie;
u8 *wps_probe_resp_ie;
- u8 *wps_assoc_resp_ie; // for CONFIG_IOCTL_CFG80211, this IE could include p2p ie
+ u8 *wps_assoc_resp_ie; // for CONFIG_IOCTL_CFG80211, this IE could include p2p ie / wfd ie
u32 wps_beacon_ie_len;
//u32 wps_probe_req_ie_len;
u32 wps_probe_resp_ie_len;
- u32 wps_assoc_resp_ie_len;
+ u32 wps_assoc_resp_ie_len; // for CONFIG_IOCTL_CFG80211, this IE len could include p2p ie / wfd ie
u8 *p2p_beacon_ie;
u8 *p2p_probe_req_ie;
@@ -425,12 +537,58 @@ struct mlme_priv {
#endif //#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
+#if defined(CONFIG_WFD) && defined(CONFIG_IOCTL_CFG80211)
+
+ u8 *wfd_beacon_ie;
+ u8 *wfd_probe_req_ie;
+ u8 *wfd_probe_resp_ie;
+ u8 *wfd_go_probe_resp_ie; //for GO
+ u8 *wfd_assoc_req_ie;
+
+ u32 wfd_beacon_ie_len;
+ u32 wfd_probe_req_ie_len;
+ u32 wfd_probe_resp_ie_len;
+ u32 wfd_go_probe_resp_ie_len; //for GO
+ u32 wfd_assoc_req_ie_len;
+
+#endif
+
#ifdef RTK_DMP_PLATFORM
// DMP kobject_hotplug function signal need in passive level
_workitem Linkup_workitem;
_workitem Linkdown_workitem;
#endif
+#ifdef CONFIG_INTEL_WIDI
+ int widi_state;
+ int listen_state;
+ _timer listen_timer;
+ ATOMIC_T rx_probe_rsp; // 1:receive probe respone from RDS source.
+ u8 *l2sdTaBuffer;
+ u8 channel_idx;
+ s8 group_cnt; //For WiDi 3.5, they specified another scan algo. for WFD/RDS co-existed
+ u8 sa_ext[L2SDTA_SERVICE_VE_LEN];
+
+ u8 widi_enable;
+ /**
+ * For WiDi 4; upper layer would set
+ * p2p_primary_device_type_category_id
+ * p2p_primary_device_type_sub_category_id
+ * p2p_secondary_device_type_category_id
+ * p2p_secondary_device_type_sub_category_id
+ */
+ u16 p2p_pdt_cid;
+ u16 p2p_pdt_scid;
+ u8 num_p2p_sdt;
+ u16 p2p_sdt_cid[MAX_NUM_P2P_SDT];
+ u16 p2p_sdt_scid[MAX_NUM_P2P_SDT];
+ u8 p2p_reject_disable; //When starting NL80211 wpa_supplicant/hostapd, it will call netdev_close
+ //such that it will cause p2p disabled. Use this flag to reject.
+#endif // CONFIG_INTEL_WIDI
+
+#ifdef CONFIG_CONCURRENT_MODE
+ u8 scanning_via_buddy_intf;
+#endif
};
#ifdef CONFIG_AP_MODE
@@ -479,7 +637,7 @@ extern void _rtw_scan_timeout_handler (
#endif
-#ifdef PLATFORM_LINUX
+#if defined (PLATFORM_LINUX)|| defined (PLATFORM_FREEBSD)
extern int event_thread(void *context);
extern void rtw_join_timeout_handler(void* FunctionContext);
extern void _rtw_scan_timeout_handler(void* FunctionContext);
@@ -563,6 +721,11 @@ __inline static void up_scanned_network(struct mlme_priv *pmlmepriv)
_exit_critical_bh(&pmlmepriv->lock, &irqL);
}
+#ifdef CONFIG_CONCURRENT_MODE
+sint rtw_buddy_adapter_up(_adapter *padapter);
+sint check_buddy_fwstate(_adapter *padapter, sint state);
+#endif //CONFIG_CONCURRENT_MODE
+
__inline static void down_scanned_network(struct mlme_priv *pmlmepriv)
{
_irqL irqL;
@@ -592,6 +755,7 @@ extern void rtw_free_assoc_resources(_adapter* adapter, int lock_scanned_queue);
extern void rtw_indicate_disconnect(_adapter* adapter);
extern void rtw_indicate_connect(_adapter* adapter);
void rtw_indicate_scan_done( _adapter *padapter, bool aborted);
+void rtw_scan_abort(_adapter *adapter);
extern int rtw_restruct_sec_ie(_adapter *adapter,u8 *in_ie,u8 *out_ie,uint in_len);
extern int rtw_restruct_wmm_ie(_adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len, uint initial_out_len);
@@ -606,8 +770,15 @@ extern void rtw_scan_timeout_handler(_adapter *adapter);
extern void rtw_dynamic_check_timer_handlder(_adapter *adapter);
#ifdef CONFIG_SET_SCAN_DENY_TIMER
-extern void rtw_set_scan_deny_timer_hdl(_adapter *adapter);
-void rtw_set_scan_deny(struct mlme_priv *mlmepriv, u32 ms);
+bool rtw_is_scan_deny(_adapter *adapter);
+void rtw_clear_scan_deny(_adapter *adapter);
+void rtw_set_scan_deny_timer_hdl(_adapter *adapter);
+void rtw_set_scan_deny(_adapter *adapter, u32 ms);
+#else
+#define rtw_is_scan_deny(adapter) _FALSE
+#define rtw_clear_scan_deny(adapter) do {} while (0)
+#define rtw_set_scan_deny_timer_hdl(adapter) do {} while (0)
+#define rtw_set_scan_deny(adapter, ms) do {} while (0)
#endif
@@ -643,16 +814,24 @@ u8 *rtw_get_beacon_interval_from_ie(u8 *ie);
void rtw_joinbss_reset(_adapter *padapter);
#ifdef CONFIG_80211N_HT
-unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, uint *pout_len);
-void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len);
+unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, uint *pout_len, u8 channel);
+void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len, u8 channel);
void rtw_issue_addbareq_cmd(_adapter *padapter, struct xmit_frame *pxmitframe);
#endif
int rtw_is_same_ibss(_adapter *adapter, struct wlan_network *pnetwork);
+int is_same_network(WLAN_BSSID_EX *src, WLAN_BSSID_EX *dst);
#ifdef CONFIG_LAYER2_ROAMING
-void rtw_roaming(_adapter *padapter, struct wlan_network *tgt_network);
-void _rtw_roaming(_adapter *padapter, struct wlan_network *tgt_network);
+void _rtw_roaming(_adapter *adapter, struct wlan_network *tgt_network);
+void rtw_roaming(_adapter *adapter, struct wlan_network *tgt_network);
+void rtw_set_roaming(_adapter *adapter, u8 to_roaming);
+u8 rtw_to_roaming(_adapter *adapter);
+#else
+#define _rtw_roaming(adapter, tgt_network) do {} while(0)
+#define rtw_roaming(adapter, tgt_network) do {} while(0)
+#define rtw_set_roaming(adapter, to_roaming) do {} while(0)
+#define rtw_to_roaming(adapter) 0
#endif
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_mlme_ext.h b/drivers/net/wireless/rtl8192cu/include/rtw_mlme_ext.h
index d9a203f..5cddca4 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_mlme_ext.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_mlme_ext.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_MLME_EXT_H_
#define __RTW_MLME_EXT_H_
@@ -41,8 +40,8 @@
#define LINKED_TO (1) //unit:2 sec, 1x2=2 sec
-#define REAUTH_LIMIT (2)
-#define REASSOC_LIMIT (2)
+#define REAUTH_LIMIT (4)
+#define REASSOC_LIMIT (4)
#define READDBA_LIMIT (2)
//#define IOCMD_REG0 0x10250370
@@ -61,6 +60,7 @@
#define DYNAMIC_FUNC_SS BIT(2) //Tx Power Tracking
#define DYNAMIC_FUNC_BT BIT(3)
#define DYNAMIC_FUNC_ANT_DIV BIT(4)
+#define DYNAMIC_FUNC_ADAPTIVITY BIT(5)
#define _HW_STATE_NOLINK_ 0x00
#define _HW_STATE_ADHOC_ 0x01
@@ -82,6 +82,16 @@
#define _54M_RATE_ 11
+extern unsigned char RTW_WPA_OUI[];
+extern unsigned char WMM_OUI[];
+extern unsigned char WPS_OUI[];
+extern unsigned char WFD_OUI[];
+extern unsigned char P2P_OUI[];
+
+extern unsigned char WMM_INFO_OUI[];
+extern unsigned char WMM_PARA_OUI[];
+
+
//
// Channel Plan Type.
// Note:
@@ -113,7 +123,7 @@ typedef enum _RT_CHANNEL_DOMAIN
RT_CHANNEL_DOMAIN_FCC_NO_DFS = 0x11,
RT_CHANNEL_DOMAIN_JAPAN_NO_DFS = 0x12,
RT_CHANNEL_DOMAIN_WORLD_WIDE_5G = 0x13,
- RT_CHANNEL_DOMAIN_TAIWAN_NO_DFS = 0x14,
+ RT_CHANNEL_DOMAIN_TAIWAN_NO_DFS = 0x14,
//===== new channel plan mapping, (2GDOMAIN_5GDOMAIN) =====//
RT_CHANNEL_DOMAIN_WORLD_NULL = 0x20,
@@ -150,6 +160,7 @@ typedef enum _RT_CHANNEL_DOMAIN_2G
RT_CHANNEL_DOMAIN_2G_FCC1 = 0x02, //US
RT_CHANNEL_DOMAIN_2G_MKK1 = 0x03, //Japan
RT_CHANNEL_DOMAIN_2G_ETSI2 = 0x04, //France
+ RT_CHANNEL_DOMAIN_2G_NULL = 0x05,
//===== Add new channel plan above this line===============//
RT_CHANNEL_DOMAIN_2G_MAX,
}RT_CHANNEL_DOMAIN_2G, *PRT_CHANNEL_DOMAIN_2G;
@@ -177,6 +188,7 @@ typedef enum _RT_CHANNEL_DOMAIN_5G
//===== Driver Self Defined =====//
RT_CHANNEL_DOMAIN_5G_FCC = 0x11,
RT_CHANNEL_DOMAIN_5G_JAPAN_NO_DFS = 0x12,
+ RT_CHANNEL_DOMAIN_5G_FCC4_NO_DFS = 0x13,
RT_CHANNEL_DOMAIN_5G_MAX,
}RT_CHANNEL_DOMAIN_5G, *PRT_CHANNEL_DOMAIN_5G;
@@ -247,7 +259,10 @@ struct ss_res
int bss_cnt;
int channel_idx;
int scan_mode;
+ u8 ssid_num;
+ u8 ch_num;
NDIS_802_11_SSID ssid[RTW_SSID_SCAN_AMOUNT];
+ struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
};
//#define AP_MODE 0x0C
@@ -270,33 +285,6 @@ struct ss_res
#define WIFI_FW_LINKING_STATE (WIFI_FW_AUTH_NULL | WIFI_FW_AUTH_STATE | WIFI_FW_AUTH_SUCCESS |WIFI_FW_ASSOC_STATE)
#ifdef CONFIG_TDLS
-/* TDLS STA state */
-#define UN_TDLS_STATE 0x00000000 //default state
-#define TDLS_INITIATOR_STATE 0x10000000
-#define TDLS_RESPONDER_STATE 0x20000000
-#define TDLS_LINKED_STATE 0x40000000
-#define TDLS_CH_SWITCH_ON_STATE 0x01000000
-#define TDLS_PEER_AT_OFF_STATE 0x02000000 //could send pkt on target ch
-#define TDLS_AT_OFF_CH_STATE 0x04000000
-#define TDLS_CH_SW_INITIATOR_STATE 0x08000000 //avoiding duplicated or unconditional ch. switch rsp.
-#define TDLS_APSD_CHSW_STATE 0x00100000 //in APSD and want to setup channel switch
-#define TDLS_PEER_SLEEP_STATE 0x00200000 //peer sta is sleeping
-#define TDLS_SW_OFF_STATE 0x00400000 //terminate channel swithcing
-#define TDLS_ALIVE_STATE 0x00010000 //Check if peer sta is alived.
-
-#define TPK_RESEND_COUNT 301
-#define CH_SWITCH_TIME 10
-#define CH_SWITCH_TIMEOUT 30
-#define TDLS_STAY_TIME 500
-#define TDLS_SIGNAL_THRESH 0x20
-#define TDLS_WATCHDOG_PERIOD 10 //Periodically sending tdls discovery request in TDLS_WATCHDOG_PERIOD * 2 sec
-#define TDLS_ALIVE_TIMER_PH1 5000
-#define TDLS_ALIVE_TIMER_PH2 2000
-#define TDLS_STAY_TIME 500
-#define TDLS_HANDSHAKE_TIME 5000
-#define TDLS_ALIVE_COUNT 3
-
-
// 1: Write RCR DATA BIT
// 2: Issue peer traffic indication
// 3: Go back to the channel linked with AP, terminating channel switch procedure
@@ -308,6 +296,8 @@ struct ss_res
// 9: Set channel back to off channel
// 10: Restore RCR DATA BIT
// 11: Check alive
+// 12: Check alive
+// 13: Free TDLS sta
enum TDLS_option
{
TDLS_WRCR = 1,
@@ -326,7 +316,7 @@ enum TDLS_option
maxTDLS,
};
-#endif
+#endif //CONFIG_TDLS
struct FW_Sta_Info
{
@@ -337,6 +327,30 @@ struct FW_Sta_Info
NDIS_802_11_RATES_EX SupportedRates;
};
+/*
+ * Usage:
+ * When one iface acted as AP mode and the other iface is STA mode and scanning,
+ * it should switch back to AP's operating channel periodically.
+ * Parameters info:
+ * When the driver scanned RTW_SCAN_NUM_OF_CH channels, it would switch back to AP's operating channel for
+ * RTW_STAY_AP_CH_MILLISECOND * SURVEY_TO milliseconds.
+ * Example:
+ * For chip supports 2.4G + 5GHz and AP mode is operating in channel 1,
+ * RTW_SCAN_NUM_OF_CH is 8, RTW_STAY_AP_CH_MILLISECOND is 3 and SURVEY_TO is 100.
+ * When it's STA mode gets set_scan command,
+ * it would
+ * 1. Doing the scan on channel 1.2.3.4.5.6.7.8
+ * 2. Back to channel 1 for 300 milliseconds
+ * 3. Go through doing site survey on channel 9.10.11.36.40.44.48.52
+ * 4. Back to channel 1 for 300 milliseconds
+ * 5. ... and so on, till survey done.
+ */
+#if defined CONFIG_STA_MODE_SCAN_UNDER_AP_MODE && defined CONFIG_CONCURRENT_MODE
+#define RTW_SCAN_NUM_OF_CH 8
+#define RTW_STAY_AP_CH_MILLISECOND 3 // this value is a multiplier,for example, when this value is 3, it would stay AP's op ch for
+ // 3 * SURVEY_TO millisecond.
+#endif //defined CONFIG_STA_MODE_SCAN_UNDER_AP_MODE && defined CONFIG_CONCURRENT_MODE
+
struct mlme_ext_info
{
u32 state;
@@ -381,6 +395,10 @@ struct mlme_ext_info
struct HT_info_element HT_info;
WLAN_BSSID_EX network;//join network or bss_network, if in ap mode, it is the same to cur_network.network
struct FW_Sta_Info FW_sta_info[NUM_STA];
+
+#ifdef CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
+ u8 scan_cnt;
+#endif //CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
};
// The channel information about this channel including joining, scanning, and power constraints.
@@ -396,7 +414,41 @@ typedef struct _RT_CHANNEL_INFO
#endif
}RT_CHANNEL_INFO, *PRT_CHANNEL_INFO;
-extern int rtw_is_channel_set_contains_channel(RT_CHANNEL_INFO *channel_set, const u32 channel_num);
+int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch);
+bool rtw_mlme_band_check(_adapter *adapter, const u32 ch);
+
+// P2P_MAX_REG_CLASSES - Maximum number of regulatory classes
+#define P2P_MAX_REG_CLASSES 10
+
+// P2P_MAX_REG_CLASS_CHANNELS - Maximum number of channels per regulatory class
+#define P2P_MAX_REG_CLASS_CHANNELS 20
+
+// struct p2p_channels - List of supported channels
+struct p2p_channels {
+ // struct p2p_reg_class - Supported regulatory class
+ struct p2p_reg_class {
+ // reg_class - Regulatory class (IEEE 802.11-2007, Annex J)
+ u8 reg_class;
+
+ // channel - Supported channels
+ u8 channel[P2P_MAX_REG_CLASS_CHANNELS];
+
+ // channels - Number of channel entries in use
+ size_t channels;
+ } reg_class[P2P_MAX_REG_CLASSES];
+
+ // reg_classes - Number of reg_class entries in use
+ size_t reg_classes;
+};
+
+struct p2p_oper_class_map {
+ enum hw_mode {IEEE80211G,IEEE80211A} mode;
+ u8 op_class;
+ u8 min_chan;
+ u8 max_chan;
+ u8 inc;
+ enum { BW20, BW40PLUS, BW40MINUS } bw;
+};
struct mlme_ext_priv
{
@@ -404,15 +456,21 @@ struct mlme_ext_priv
u8 mlmeext_init;
ATOMIC_T event_seq;
u16 mgnt_seq;
-
+#ifdef CONFIG_IEEE80211W
+ u16 sa_query_seq;
+ u64 mgnt_80211w_IPN;
+ u64 mgnt_80211w_IPN_rx;
+#endif //CONFIG_IEEE80211W
//struct fw_priv fwpriv;
unsigned char cur_channel;
unsigned char cur_bwmode;
unsigned char cur_ch_offset;//PRIME_CHNL_OFFSET
unsigned char cur_wireless_mode;
+
unsigned char max_chan_nums;
RT_CHANNEL_INFO channel_set[MAX_CHANNEL_NUM];
+ struct p2p_channels channel_list;
unsigned char basicrate[NumRates];
unsigned char datarate[NumRates];
@@ -421,10 +479,14 @@ struct mlme_ext_priv
//for ap mode, network includes ap's cap_info
_timer survey_timer;
_timer link_timer;
+#ifdef CONFIG_IEEE80211W
+ _timer sa_query_timer;
+#endif //CONFIG_IEEE80211W
//_timer ADDBA_timer;
u16 chan_scan_time;
- u8 scan_abort;
+ u8 scan_abort;
+ u8 tx_rate; // TXRATE when USERATE is set.
u32 retry; //retry for issue probereq
@@ -434,9 +496,18 @@ struct mlme_ext_priv
unsigned char bstart_bss;
#endif
- //recv_decache check for Action_public frame
+ //recv_decache check for Action_public frame
+ u8 action_public_dialog_token;
u16 action_public_rxseq;
+#ifdef CONFIG_80211D
+ u8 update_channel_plan_by_ap_done;
+#endif
+
+#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
+ u8 active_keep_alive_check;
+#endif
+
};
int init_mlme_ext_priv(_adapter* padapter);
@@ -444,26 +515,34 @@ int init_hw_mlme_ext(_adapter *padapter);
void free_mlme_ext_priv (struct mlme_ext_priv *pmlmeext);
extern void init_mlme_ext_timer(_adapter *padapter);
extern void init_addba_retry_timer(_adapter *padapter, struct sta_info *psta);
-
-#ifdef CONFIG_TDLS
-int rtw_init_tdls_info(_adapter* padapter);
-void rtw_free_tdls_info(struct tdls_info *ptdlsinfo);
-#endif //CONFIG_TDLS
-
extern struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv);
+struct xmit_frame *alloc_mgtxmitframe_once(struct xmit_priv *pxmitpriv);
//void fill_fwpriv(_adapter * padapter, struct fw_priv *pfwpriv);
unsigned char networktype_to_raid(unsigned char network_type);
int judge_network_type(_adapter *padapter, unsigned char *rate, int ratelen);
void get_rate_set(_adapter *padapter, unsigned char *pbssrate, int *bssrate_len);
+void UpdateBrateTbl(_adapter *padapter,u8 *mBratesOS);
+void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen);
+void change_band_update_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork);
void Save_DM_Func_Flag(_adapter *padapter);
void Restore_DM_Func_Flag(_adapter *padapter);
void Switch_DM_Func(_adapter *padapter, u8 mode, u8 enable);
-void Set_NETYPE1_MSR(_adapter *padapter, u8 type);
-void Set_NETYPE0_MSR(_adapter *padapter, u8 type);
+//void Set_NETYPE1_MSR(_adapter *padapter, u8 type);
+//void Set_NETYPE0_MSR(_adapter *padapter, u8 type);
+void Set_MSR(_adapter *padapter, u8 type);
+
+u8 rtw_get_oper_ch(_adapter *adapter);
+void rtw_set_oper_ch(_adapter *adapter, u8 ch);
+u8 rtw_get_oper_bw(_adapter *adapter);
+void rtw_set_oper_bw(_adapter *adapter, u8 bw);
+u8 rtw_get_oper_choffset(_adapter *adapter);
+void rtw_set_oper_choffset(_adapter *adapter, u8 offset);
+u32 rtw_get_on_oper_ch_time(_adapter *adapter);
+u32 rtw_get_on_cur_ch_time(_adapter *adapter);
void set_channel_bwmode(_adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode);
void SelectChannel(_adapter *padapter, unsigned char channel);
@@ -500,7 +579,6 @@ int WMM_param_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE);
#ifdef CONFIG_WFD
int WFD_info_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE);
#endif
-
void WMMOnAssocRsp(_adapter *padapter);
void HT_caps_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE);
@@ -517,6 +595,7 @@ void process_csa_ie(_adapter *padapter, u8 *pframe, uint len);
void update_IOT_info(_adapter *padapter);
void update_capinfo(PADAPTER Adapter, u16 updateCap);
void update_wireless_mode(_adapter * padapter);
+void update_tx_basic_rate(_adapter *padapter, u8 modulation);
void update_bmc_sta_support_rate(_adapter *padapter, u32 mac_id);
int update_sta_support_rate(_adapter *padapter, u8* pvar_ie, uint var_ie_len, int cam_idx);
@@ -544,50 +623,37 @@ void report_add_sta_event(_adapter *padapter, unsigned char* MacAddr, int cam_id
void beacon_timing_control(_adapter *padapter);
extern u8 set_tx_beacon_cmd(_adapter*padapter);
unsigned int setup_beacon_frame(_adapter *padapter, unsigned char *beacon_frame);
+void update_mgnt_tx_rate(_adapter *padapter, u8 rate);
void update_mgntframe_attrib(_adapter *padapter, struct pkt_attrib *pattrib);
void dump_mgntframe(_adapter *padapter, struct xmit_frame *pmgntframe);
+s32 dump_mgntframe_and_wait(_adapter *padapter, struct xmit_frame *pmgntframe, int timeout_ms);
+s32 dump_mgntframe_and_wait_ack(_adapter *padapter, struct xmit_frame *pmgntframe);
#ifdef CONFIG_P2P
void issue_probersp_p2p(_adapter *padapter, unsigned char *da);
-void issue_p2p_provision_request( _adapter *padapter, u8* pinterface_raddr, u8* pssid, u8 ussidlen, u8* pdev_raddr);
+void issue_p2p_provision_request( _adapter *padapter, u8* pssid, u8 ussidlen, u8* pdev_raddr);
void issue_p2p_GO_request(_adapter *padapter, u8* raddr);
-void issue_probereq_p2p(_adapter *padapter);
+void issue_probereq_p2p(_adapter *padapter, u8 *da);
+int issue_probereq_p2p_ex(_adapter *adapter, u8 *da, int try_cnt, int wait_ms);
void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken, u8 success);
void issue_p2p_invitation_request(_adapter *padapter, u8* raddr );
#endif //CONFIG_P2P
-#ifdef CONFIG_TDLS
-void issue_nulldata_to_TDLS_peer_STA(_adapter *padapter, struct sta_info *ptdls_sta, unsigned int power_mode);
-void init_TPK_timer(_adapter *padapter, struct sta_info *psta);
-void init_ch_switch_timer(_adapter *padapter, struct sta_info *psta);
-void init_base_ch_timer(_adapter *padapter, struct sta_info *psta);
-void init_off_ch_timer(_adapter *padapter, struct sta_info *psta);
-void init_tdls_alive_timer(_adapter *padapter, struct sta_info *psta);
-void init_handshake_timer(_adapter *padapter, struct sta_info *psta);
-void free_tdls_sta(_adapter *padapter, struct sta_info *ptdls_sta);
-void issue_tdls_dis_req(_adapter *padapter, u8 *mac_addr);
-void issue_tdls_setup_req(_adapter *padapter, u8 *mac_addr);
-void issue_tdls_setup_rsp(_adapter *padapter, union recv_frame *precv_frame);
-void issue_tdls_setup_cfm(_adapter *padapter, union recv_frame *precv_frame);
-void issue_tdls_dis_rsp(_adapter * padapter, union recv_frame * precv_frame, u8 dialog);
-void issue_tdls_teardown(_adapter *padapter, u8 *mac_addr);
-void issue_tdls_peer_traffic_indication(_adapter *padapter, struct sta_info *psta);
-void issue_tdls_ch_switch_req(_adapter *padapter, u8 *mac_addr);
-void issue_tdls_ch_switch_rsp(_adapter *padapter, u8 *mac_addr);
-sint On_TDLS_Dis_Rsp(_adapter *adapter, union recv_frame *precv_frame);
-#endif
void issue_beacon(_adapter *padapter);
void issue_probersp(_adapter *padapter, unsigned char *da, u8 is_valid_p2p_probereq);
void issue_assocreq(_adapter *padapter);
void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *pstat, int pkt_type);
void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status);
-// Added by Albert 2010/07/26
-// blnbc: 1 -> broadcast probe request
-// blnbc: 0 -> unicast probe request. The address 1 will be the BSSID.
-void issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 blnbc);
-void issue_nulldata(_adapter *padapter, unsigned int power_mode);
-void issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid);
-void issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason);
+void issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 *da);
+s32 issue_probereq_ex(_adapter *padapter, NDIS_802_11_SSID *pssid, u8* da, int try_cnt, int wait_ms);
+int issue_nulldata(_adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms);
+int issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms);
+int issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason);
+int issue_deauth_ex(_adapter *padapter, u8 *da, unsigned short reason, int try_cnt, int wait_ms);
+void issue_action_spct_ch_switch(_adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset);
void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short status);
+#ifdef CONFIG_IEEE80211W
+void issue_action_SA_Query(_adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short tid);
+#endif //CONFIG_IEEE80211W
unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr);
unsigned int send_beacon(_adapter *padapter);
@@ -609,11 +675,15 @@ unsigned int OnAuthClient(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnDeAuth(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAction(_adapter *padapter, union recv_frame *precv_frame);
+unsigned int on_action_spct(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAction_qos(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAction_dls(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame);
-unsigned int OnAction_public(_adapter *padapter, union recv_frame *precv_frame);
+unsigned int on_action_public(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAction_ht(_adapter *padapter, union recv_frame *precv_frame);
+#ifdef CONFIG_IEEE80211W
+unsigned int OnAction_sa_query(_adapter *padapter, union recv_frame *precv_frame);
+#endif //CONFIG_IEEE80211W
unsigned int OnAction_wmm(_adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame);
@@ -627,6 +697,9 @@ void linked_status_chk(_adapter *padapter);
void survey_timer_hdl (_adapter *padapter);
void link_timer_hdl (_adapter *padapter);
void addba_timer_hdl(struct sta_info *psta);
+#ifdef CONFIG_IEEE80211W
+void sa_query_timer_hdl(_adapter *padapter);
+#endif //CONFIG_IEEE80211W
//void reauth_timer_hdl(_adapter *padapter);
//void reassoc_timer_hdl(_adapter *padapter);
@@ -641,7 +714,13 @@ void addba_timer_hdl(struct sta_info *psta);
/*DBG_871X("%s set_link_timer(%p, %d)\n", __FUNCTION__, (mlmeext), (ms));*/ \
_set_timer(&(mlmeext)->link_timer, (ms)); \
} while(0)
-
+#ifdef CONFIG_IEEE80211W
+#define set_sa_query_timer(mlmeext, ms) \
+ do { \
+ DBG_871X("%s set_sa_query_timer(%p, %d)\n", __FUNCTION__, (mlmeext), (ms)); \
+ _set_timer(&(mlmeext)->sa_query_timer, (ms)); \
+ } while(0)
+#endif //CONFIG_IEEE80211W
extern int cckrates_included(unsigned char *rate, int ratelen);
extern int cckratesonly_included(unsigned char *rate, int ratelen);
@@ -650,24 +729,29 @@ extern void process_addba_req(_adapter *padapter, u8 *paddba_req, u8 *addr);
extern void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len);
extern void correct_TSF(_adapter *padapter, struct mlme_ext_priv *pmlmeext);
-#ifdef CONFIG_AP_MODE
-void init_mlme_ap_info(_adapter *padapter);
-void free_mlme_ap_info(_adapter *padapter);
-//void update_BCNTIM(_adapter *padapter);
-void update_beacon(_adapter *padapter, u8 ie_id, u8 *oui, u8 tx);
-void expire_timeout_chk(_adapter *padapter);
-void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta);
-int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len);
-#ifdef CONFIG_NATIVEAP_MLME
-void bss_cap_update(_adapter *padapter, struct sta_info *psta);
-void sta_info_update(_adapter *padapter, struct sta_info *psta);
-void ap_sta_info_defer_update(_adapter *padapter, struct sta_info *psta);
-void ap_free_sta(_adapter *padapter, struct sta_info *psta);
-int rtw_sta_flush(_adapter *padapter);
-void start_ap_mode(_adapter *padapter);
-void stop_ap_mode(_adapter *padapter);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ sint check_buddy_mlmeinfo_state(_adapter *padapter, u32 state);
+void concurrent_chk_joinbss_done(_adapter *padapter, int join_res);
+#endif //CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+void dc_SelectChannel(_adapter *padapter, unsigned char channel);
+void dc_SetBWMode(_adapter *padapter, unsigned short bwmode, unsigned char channel_offset);
+void dc_set_channel_bwmode_disconnect(_adapter *padapter);
+u8 dc_handle_join_request(_adapter *padapter);
+void dc_handle_join_done(_adapter *padapter, u8 join_res);
+sint dc_check_fwstate(_adapter *padapter, sint fw_state);
+u8 dc_handle_site_survey(_adapter *padapter);
+void dc_report_survey_event(_adapter *padapter, union recv_frame *precv_frame);
+void dc_set_channel_bwmode_survey_done(_adapter *padapter);
+void dc_set_ap_channel_bandwidth(_adapter *padapter, u8 channel, u8 channel_offset, u8 bwmode);
+void dc_resume_xmit(_adapter *padapter);
+u8 dc_check_xmit(_adapter *padapter);
#endif
-#endif //end of CONFIG_AP_MODE
+
+int rtw_chk_start_clnt_join(_adapter *padapter);
+int rtw_get_ch_setting_union(_adapter *adapter, u8 *ch, u8 *bw, u8 *offset);
struct cmd_hdl {
uint parmsize;
@@ -699,6 +783,7 @@ u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf);
u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf);
u8 h2c_msg_hdl(_adapter *padapter, unsigned char *pbuf);
u8 tx_beacon_hdl(_adapter *padapter, unsigned char *pbuf);
+u8 set_ch_hdl(_adapter *padapter, u8 *pbuf);
u8 set_chplan_hdl(_adapter *padapter, unsigned char *pbuf);
u8 led_blink_hdl(_adapter *padapter, unsigned char *pbuf);
u8 set_csa_hdl(_adapter *padapter, unsigned char *pbuf); //Kurt: Handling DFS channel switch announcement ie.
@@ -758,7 +843,7 @@ struct cmd_hdl wlancmds[] =
GEN_MLME_EXT_HANDLER(0, NULL)
GEN_MLME_EXT_HANDLER(0, NULL)
GEN_MLME_EXT_HANDLER(sizeof(struct addBaReq_parm), add_ba_hdl)
- GEN_MLME_EXT_HANDLER(0, NULL)
+ GEN_MLME_EXT_HANDLER(sizeof(struct set_ch_parm), set_ch_hdl) /* 46 */
GEN_MLME_EXT_HANDLER(0, NULL)
GEN_MLME_EXT_HANDLER(0, NULL)
GEN_MLME_EXT_HANDLER(0, NULL)
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_mp.h b/drivers/net/wireless/rtl8192cu/include/rtw_mp.h
index a468714..0ebb1ba 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_mp.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_mp.h
@@ -192,7 +192,7 @@ struct mp_tx
u8 *pallocated_buf;
u8 *buf;
u32 buf_size, write_size;
- _thread_hdl_ PktTxThread;
+ _thread_hdl_ PktTxThread;
};
//#if (MP_DRIVER == 1)
@@ -606,6 +606,12 @@ typedef enum _ENCRY_CTRL_STATE_ {
SW_ENCRY_HW_DECRY //sw encryption & hw decryption
}ENCRY_CTRL_STATE;
+typedef enum _OFDM_TX_MODE {
+ OFDM_ALL_OFF = 0,
+ OFDM_ContinuousTx = 1,
+ OFDM_SingleCarrier = 2,
+ OFDM_SingleTone = 4,
+} OFDM_TX_MODE;
//=======================================================================
//extern struct mp_xmit_frame *alloc_mp_xmitframe(struct mp_priv *pmp_priv);
@@ -673,8 +679,6 @@ extern void GetPowerTracking(PADAPTER padapter, u8 *enable);
extern u32 mp_query_psd(PADAPTER pAdapter, u8 *data);
-extern u32 rtw_atoi(u8 *s);
-
extern void Hal_SetAntenna(PADAPTER pAdapter);
extern void Hal_SetBandwidth(PADAPTER pAdapter);
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_mp_ioctl.h b/drivers/net/wireless/rtl8192cu/include/rtw_mp_ioctl.h
index e16df40..962bc38 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_mp_ioctl.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_mp_ioctl.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_mp_phy_regdef.h b/drivers/net/wireless/rtl8192cu/include/rtw_mp_phy_regdef.h
index 4906005..0b47cb5 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_mp_phy_regdef.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_mp_phy_regdef.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
/*****************************************************************************
*
* Module: __RTW_MP_PHY_REGDEF_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_p2p.h b/drivers/net/wireless/rtl8192cu/include/rtw_p2p.h
index a29ceaa..4249bc9 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_p2p.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_p2p.h
@@ -29,11 +29,13 @@ u32 build_assoc_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 status
u32 build_deauth_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
#ifdef CONFIG_WFD
u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
-u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
+u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 tunneled);
u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
+u32 build_invitation_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
+u32 build_invitation_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf);
@@ -51,16 +53,24 @@ u8 process_p2p_group_negotation_resp( struct wifidirect_info *pwdinfo, u8 *pfram
u8 process_p2p_group_negotation_confirm( struct wifidirect_info *pwdinfo, u8 *pframe, uint len );
u8 process_p2p_presence_req(struct wifidirect_info *pwdinfo, u8 *pframe, uint len);
-void process_p2p_ps_ie(PADAPTER padapter, u8 *IEs, u32 IELength);
-void p2p_ps_wk_hdl(_adapter *padapter, u8 p2p_ps_state);
void p2p_protocol_wk_hdl(_adapter *padapter, int intCmdType);
-u8 p2p_ps_wk_cmd(_adapter*padapter, u8 p2p_ps_state, u8 enqueue);
+
+#ifdef CONFIG_P2P_PS
+void process_p2p_ps_ie(PADAPTER padapter, u8 *IEs, u32 IELength);
+void p2p_ps_wk_hdl(_adapter *padapter, u8 p2p_ps_state);
+u8 p2p_ps_wk_cmd(_adapter*padapter, u8 p2p_ps_state, u8 enqueue);
+#endif // CONFIG_P2P_PS
#ifdef CONFIG_IOCTL_CFG80211
void rtw_init_cfg80211_wifidirect_info( _adapter* padapter);
int rtw_p2p_check_frames(_adapter *padapter, const u8 *buf, u32 len, u8 tx);
+void rtw_append_wfd_ie(_adapter *padapter, u8 *buf, u32 *len);
#endif //CONFIG_IOCTL_CFG80211
+void reset_global_wifidirect_info( _adapter* padapter );
+int rtw_init_wifi_display_info(_adapter* padapter);
+void rtw_init_wifidirect_timers(_adapter* padapter);
+void rtw_init_wifidirect_addrs(_adapter* padapter, u8 *dev_addr, u8 *iface_addr);
void init_wifidirect_info( _adapter* padapter, enum P2P_ROLE role);
int rtw_p2p_enable(_adapter *padapter, enum P2P_ROLE role);
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_pwrctrl.h b/drivers/net/wireless/rtl8192cu/include/rtw_pwrctrl.h
index 2b00beb..a4cb292 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_pwrctrl.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_pwrctrl.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_PWRCTRL_H_
#define __RTW_PWRCTRL_H_
@@ -74,31 +73,35 @@ enum Power_Mgnt
BIT[4] = sub-state
*/
-#define PS_DPS BIT(0)
-#define PS_LCLK (PS_DPS)
-#define PS_RF_OFF BIT(1)
-#define PS_ALL_ON BIT(2)
-#define PS_ST_ACTIVE BIT(3)
-#define PS_LP BIT(4) // low performance
+#define PS_DPS BIT(0)
+#define PS_LCLK (PS_DPS)
+#define PS_RF_OFF BIT(1)
+#define PS_ALL_ON BIT(2)
+#define PS_ST_ACTIVE BIT(3)
-#define PS_STATE_MASK (0x0F)
-#define PS_STATE_HW_MASK (0x07)
-#define PS_SEQ_MASK (0xc0)
+#define PS_ISR_ENABLE BIT(4)
+#define PS_IMR_ENABLE BIT(5)
+#define PS_ACK BIT(6)
+#define PS_TOGGLE BIT(7)
-#define PS_STATE(x) (PS_STATE_MASK & (x))
-#define PS_STATE_HW(x) (PS_STATE_HW_MASK & (x))
-#define PS_SEQ(x) (PS_SEQ_MASK & (x))
+#define PS_STATE_MASK (0x0F)
+#define PS_STATE_HW_MASK (0x07)
+#define PS_SEQ_MASK (0xc0)
-#define PS_STATE_S0 (PS_DPS)
-#define PS_STATE_S1 (PS_LCLK)
-#define PS_STATE_S2 (PS_RF_OFF)
-#define PS_STATE_S3 (PS_ALL_ON)
-#define PS_STATE_S4 ((PS_ST_ACTIVE) | (PS_ALL_ON))
+#define PS_STATE(x) (PS_STATE_MASK & (x))
+#define PS_STATE_HW(x) (PS_STATE_HW_MASK & (x))
+#define PS_SEQ(x) (PS_SEQ_MASK & (x))
+#define PS_STATE_S0 (PS_DPS)
+#define PS_STATE_S1 (PS_LCLK)
+#define PS_STATE_S2 (PS_RF_OFF)
+#define PS_STATE_S3 (PS_ALL_ON)
+#define PS_STATE_S4 ((PS_ST_ACTIVE) | (PS_ALL_ON))
-#define PS_IS_RF_ON(x) ((x) & (PS_ALL_ON))
-#define PS_IS_ACTIVE(x) ((x) & (PS_ST_ACTIVE))
-#define CLR_PS_STATE(x) ((x) = ((x) & (0xF0)))
+
+#define PS_IS_RF_ON(x) ((x) & (PS_ALL_ON))
+#define PS_IS_ACTIVE(x) ((x) & (PS_ST_ACTIVE))
+#define CLR_PS_STATE(x) ((x) = ((x) & (0xF0)))
struct reportpwrstate_parm {
@@ -174,12 +177,13 @@ enum _PS_BBRegBackup_ {
};
enum { // for ips_mode
- IPS_NORMAL = 0,
- IPS_LEVEL_2,
- IPS_NONE,
+ IPS_NONE=0,
+ IPS_NORMAL,
+ IPS_LEVEL_2,
};
-struct pwrctrl_priv {
+struct pwrctrl_priv
+{
_pwrlock lock;
volatile u8 rpwm; // requested power state for fw
volatile u8 cpwm; // fw current power state. updated when 1. read from HCPWM 2. driver lowers power level
@@ -187,7 +191,7 @@ struct pwrctrl_priv {
volatile u8 cpwm_tog; // toggling
u8 pwr_mode;
u8 smart_ps;
- uint alives;
+ u32 alives;
u8 b_hw_radio_off;
u8 reg_rfoff;
@@ -198,7 +202,7 @@ struct pwrctrl_priv {
u32 cur_ps_level;
u32 reg_rfps_level;
-
+
#ifdef CONFIG_PCI_HCI
//just for PCIE ASPM
@@ -209,16 +213,14 @@ struct pwrctrl_priv {
u8 const_amdpci_aspm;
#endif
- //u8 ips_enable;//for dbg
- //u8 lps_enable;//for dbg
-
uint ips_enter_cnts;
uint ips_leave_cnts;
-
- _timer ips_check_timer;
u8 ips_mode;
u8 ips_mode_req; // used to accept the mode setting request, will update to ipsmode later
+ uint bips_processing;
+ u32 ips_deny_time; /* will deny IPS when system time is smaller than this */
+ u8 ps_processing; /* temporarily used to mark whether in rtw_ps_processor */
u8 bLeisurePs;
u8 LpsIdleCount;
@@ -233,16 +235,17 @@ struct pwrctrl_priv {
u8 bInternalAutoSuspend;
u8 bInSuspend;
u8 bSupportRemoteWakeup;
+#ifdef CONFIG_WOWLAN
u8 wowlan_mode;
u8 wowlan_pattern;
u8 wowlan_magic;
u8 wowlan_unicast;
u8 wowlan_pattern_idx;
u32 wowlan_pattern_context[8][5];
+#endif // CONFIG_WOWLAN
_timer pwr_state_check_timer;
int pwr_state_check_interval;
u8 pwr_state_check_cnts;
- uint bips_processing;
int ps_flag;
@@ -250,7 +253,6 @@ struct pwrctrl_priv {
//rt_rf_power_state current_rfpwrstate;
rt_rf_power_state change_rfpwrstate;
- u8 wepkeymask;
u8 bHWPowerdown;//if support hw power down
u8 bHWPwrPindetect;
u8 bkeepfwalive;
@@ -266,15 +268,12 @@ struct pwrctrl_priv {
struct early_suspend early_suspend;
u8 do_late_resume;
#endif //CONFIG_HAS_EARLYSUSPEND
-
+
#ifdef CONFIG_ANDROID_POWER
android_early_suspend_t early_suspend;
u8 do_late_resume;
#endif
-
- #ifdef CONFIG_INTEL_PROXIM
- u8 stored_power_mgnt;
- #endif
+
};
#define rtw_get_ips_mode_req(pwrctrlpriv) \
@@ -283,6 +282,8 @@ struct pwrctrl_priv {
#define rtw_ips_mode_req(pwrctrlpriv, ips_mode) \
(pwrctrlpriv)->ips_mode_req = (ips_mode)
+#define RTW_PWR_STATE_CHK_INTERVAL 2000
+
#define _rtw_set_pwr_state_check_timer(pwrctrlpriv, ms) \
do { \
/*DBG_871X("%s _rtw_set_pwr_state_check_timer(%p, %d)\n", __FUNCTION__, (pwrctrlpriv), (ms));*/ \
@@ -294,20 +295,26 @@ struct pwrctrl_priv {
extern void rtw_init_pwrctrl_priv(_adapter *adapter);
extern void rtw_free_pwrctrl_priv(_adapter * adapter);
-extern sint rtw_register_tx_alive(_adapter *padapter);
-extern void rtw_unregister_tx_alive(_adapter *padapter);
-extern sint rtw_register_rx_alive(_adapter *padapter);
-extern void rtw_unregister_rx_alive(_adapter *padapter);
-extern sint rtw_register_cmd_alive(_adapter *padapter);
-extern void rtw_unregister_cmd_alive(_adapter *padapter);
-extern sint rtw_register_evt_alive(_adapter *padapter);
-extern void rtw_unregister_evt_alive(_adapter *padapter);
-extern void cpwm_int_hdl(_adapter *padapter, struct reportpwrstate_parm *preportpwrstate);
+
+#ifdef CONFIG_LPS_LCLK
+extern s32 rtw_register_tx_alive(PADAPTER padapter);
+extern void rtw_unregister_tx_alive(PADAPTER padapter);
+extern s32 rtw_register_rx_alive(PADAPTER padapter);
+extern void rtw_unregister_rx_alive(PADAPTER padapter);
+extern s32 rtw_register_cmd_alive(PADAPTER padapter);
+extern void rtw_unregister_cmd_alive(PADAPTER padapter);
+extern s32 rtw_register_evt_alive(PADAPTER padapter);
+extern void rtw_unregister_evt_alive(PADAPTER padapter);
+extern void cpwm_int_hdl(PADAPTER padapter, struct reportpwrstate_parm *preportpwrstate);
+#endif
+
extern void rtw_set_ps_mode(_adapter * padapter, u8 ps_mode, u8 smart_ps);
extern void rtw_set_rpwm(_adapter * padapter, u8 val8);
extern void LeaveAllPowerSaveMode(PADAPTER Adapter);
#ifdef CONFIG_IPS
+void _ips_enter(_adapter * padapter);
void ips_enter(_adapter * padapter);
+int _ips_leave(_adapter * padapter);
int ips_leave(_adapter * padapter);
#endif
@@ -331,13 +338,25 @@ void rtw_resume_in_workqueue(struct pwrctrl_priv *pwrpriv);
#endif //CONFIG_RESUME_IN_WORKQUEUE
#if defined(CONFIG_HAS_EARLYSUSPEND ) || defined(CONFIG_ANDROID_POWER)
-#define rtw_is_earlysuspend_registered(pwrpriv) (pwrpriv)->early_suspend.suspend
+bool rtw_is_earlysuspend_registered(struct pwrctrl_priv *pwrpriv);
+bool rtw_is_do_late_resume(struct pwrctrl_priv *pwrpriv);
+void rtw_set_do_late_resume(struct pwrctrl_priv *pwrpriv, bool enable);
void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv);
void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv);
-#endif //CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER
+#else
+#define rtw_is_earlysuspend_registered(pwrpriv) _FALSE
+#define rtw_is_do_late_resume(pwrpriv) _FALSE
+#define rtw_set_do_late_resume(pwrpriv, enable) do {} while (0)
+#define rtw_register_early_suspend(pwrpriv) do {} while (0)
+#define rtw_unregister_early_suspend(pwrpriv) do {} while (0)
+#endif /* CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER */
u8 rtw_interface_ps_func(_adapter *padapter,HAL_INTF_PS_FUNC efunc_id,u8* val);
-int _rtw_pwr_wakeup(_adapter *padapter, const char *caller);
-#define rtw_pwr_wakeup(adapter) _rtw_pwr_wakeup(adapter, __FUNCTION__)
+void rtw_set_ips_deny(_adapter *padapter, u32 ms);
+int _rtw_pwr_wakeup(_adapter *padapter, u32 ips_deffer_ms, const char *caller);
+#define rtw_pwr_wakeup(adapter) _rtw_pwr_wakeup(adapter, RTW_PWR_STATE_CHK_INTERVAL, __FUNCTION__)
+#define rtw_pwr_wakeup_ex(adapter, ips_deffer_ms) _rtw_pwr_wakeup(adapter, ips_deffer_ms, __FUNCTION__)
+int rtw_pm_set_ips(_adapter *padapter, u8 mode);
+int rtw_pm_set_lps(_adapter *padapter, u8 mode);
#endif //__RTL871X_PWRCTRL_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_qos.h b/drivers/net/wireless/rtl8192cu/include/rtw_qos.h
index e35b77f..a359c5f 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_qos.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_qos.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_QOS_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_recv.h b/drivers/net/wireless/rtl8192cu/include/rtw_recv.h
index e204ef3..3a4b14b 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_recv.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_recv.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_RECV_H_
#define _RTW_RECV_H_
@@ -61,14 +60,14 @@ struct recv_reorder_ctrl
u8 enable;
u16 indicate_seq;//=wstart_b, init_value=0xffff
u16 wend_b;
- u8 wsize_b;
+ u8 wsize_b;
_queue pending_recvframe_queue;
_timer reordering_ctrl_timer;
};
struct stainfo_rxcache {
u16 tid_rxseq[16];
-/*
+/*
unsigned short tid0_rxseq;
unsigned short tid1_rxseq;
unsigned short tid2_rxseq;
@@ -103,49 +102,53 @@ struct signal_stat {
u32 total_val; //sum of valid elements
};
-struct rx_pkt_attrib {
+struct rx_pkt_attrib
+{
u16 pkt_len;
u8 physt;
u8 drvinfo_sz;
u8 shift_sz;
+ u8 hdrlen; //the WLAN Header Len
+ u8 to_fr_ds;
u8 amsdu;
- u8 order;
u8 qos;
- u8 to_fr_ds;
+ u8 priority;
+ u8 pw_save;
+ u8 mdata;
u16 seq_num;
u8 frag_num;
- u8 pw_save;
u8 mfrag;
- u8 mdata;
+ u8 order;
u8 privacy; //in frame_ctrl field
u8 bdecrypted;
- int hdrlen; //the WLAN Header Len
- int iv_len;
- int icv_len;
- u8 encrypt; //when 0 indicate no encrypt. when non-zero, indicate the encrypt algorith
- u8 priority;
- u8 ack_policy;
- u8 crc_err;
+ u8 encrypt; //when 0 indicate no encrypt. when non-zero, indicate the encrypt algorith
+ u8 iv_len;
+ u8 icv_len;
+ u8 crc_err;
u8 icv_err;
+ u16 eth_type;
+
u8 dst[ETH_ALEN];
u8 src[ETH_ALEN];
u8 ta[ETH_ALEN];
u8 ra[ETH_ALEN];
u8 bssid[ETH_ALEN];
-#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
+
+ u8 ack_policy;
+
+//#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
u8 tcpchk_valid; // 0: invalid, 1: valid
u8 ip_chkrpt; //0: incorrect, 1: correct
u8 tcp_chkrpt; //0: incorrect, 1: correct
-#endif
-
+//#endif
u8 key_index;
u8 mcs_rate;
u8 rxht;
u8 sgi;
u8 signal_qual;
- s8 rx_mimo_signal_qual[2];
+ s8 rx_mimo_signal_qual[2];
u8 signal_strength;
u8 rx_rssi[2]; //This value is percentage
u8 rx_snr[2];
@@ -159,7 +162,7 @@ struct rx_pkt_attrib {
#define SN_EQUAL(a, b) (a == b)
//#define REORDER_WIN_SIZE 128
//#define REORDER_ENTRY_NUM 128
-#define REORDER_WAIT_TIME (30) // (ms)
+#define REORDER_WAIT_TIME (50) // (ms)
#define RECVBUFF_ALIGN_SZ 8
@@ -190,8 +193,8 @@ struct recv_stat
#define EOR BIT(30)
#ifdef CONFIG_PCI_HCI
-#define PCI_MAX_RX_QUEUE 2// MSDU packet queue, Rx Command Queue
-#define PCI_MAX_RX_COUNT 64
+#define PCI_MAX_RX_QUEUE 1// MSDU packet queue, Rx Command Queue
+#define PCI_MAX_RX_COUNT 128
struct rtw_rx_ring {
struct recv_stat *desc;
@@ -207,27 +210,28 @@ accesser of recv_priv: rtw_recv_entry(dispatch / passive level); recv_thread(pas
using enter_critical section to protect
*/
-struct recv_priv {
-
+struct recv_priv
+{
_lock lock;
-#ifdef CONFIG_RECV_THREAD_MODE
+#ifdef CONFIG_RECV_THREAD_MODE
_sema recv_sema;
_sema terminate_recvthread_sema;
#endif
-
+
//_queue blk_strms[MAX_RX_NUMBLKS]; // keeping the block ack frame until return ack
_queue free_recv_queue;
_queue recv_pending_queue;
-
+ _queue uc_swdec_pending_queue;
+
u8 *pallocated_frame_buf;
- u8 *precv_frame_buf;
-
+ u8 *precv_frame_buf;
+
uint free_recvframe_cnt;
-
+
_adapter *adapter;
-
+
#ifdef PLATFORM_WINDOWS
_nic_hdl RxPktPoolHdl;
_nic_hdl RxBufPoolHdl;
@@ -235,9 +239,9 @@ struct recv_priv {
#ifdef PLATFORM_OS_XP
PMDL pbytecnt_mdl;
#endif
- uint counter; //record the number that up-layer will return to drv; only when counter==0 can we release recv_priv
+ uint counter; //record the number that up-layer will return to drv; only when counter==0 can we release recv_priv
NDIS_EVENT recv_resource_evt ;
-#endif
+#endif
u32 bIsAnyNonBEPkts;
u64 rx_bytes;
@@ -250,12 +254,12 @@ struct recv_priv {
uint rx_smallpacket_crcerr;
uint rx_middlepacket_crcerr;
-#ifdef CONFIG_USB_HCI
+#ifdef CONFIG_USB_HCI
//u8 *pallocated_urb_buf;
_sema allrxreturnevt;
uint ff_hwaddr;
u8 rx_pending_cnt;
-
+
#ifdef CONFIG_USB_INTERRUPT_IN_PIPE
#ifdef PLATFORM_LINUX
PURB int_in_urb;
@@ -264,28 +268,34 @@ struct recv_priv {
u8 *int_in_buf;
#endif
-#endif
-#ifdef PLATFORM_LINUX
+#endif
+#if defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD)
+#ifdef PLATFORM_FREEBSD
+ struct task irq_prepare_beacon_tasklet;
+ struct task recv_tasklet;
+#else //PLATFORM_FREEBSD
struct tasklet_struct irq_prepare_beacon_tasklet;
struct tasklet_struct recv_tasklet;
+#endif //PLATFORM_FREEBSD
struct sk_buff_head free_recv_skb_queue;
struct sk_buff_head rx_skb_queue;
+#ifdef CONFIG_RX_INDICATE_QUEUE
+ struct task rx_indicate_tasklet;
+ struct ifqueue rx_indicate_queue;
+#endif // CONFIG_RX_INDICATE_QUEUE
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
_queue recv_buf_pending_queue;
#endif // CONFIG_USE_USB_BUFFER_ALLOC_RX
-#endif
+#endif //defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD)
u8 *pallocated_recv_buf;
- u8 *precv_buf; // 4 alignment
+ u8 *precv_buf; // 4 alignment
_queue free_recv_buf_queue;
u32 free_recv_buf_queue_cnt;
#ifdef CONFIG_SDIO_HCI
- u8 bytecnt_buf[512];
- //u8 * recvbuf_drop_ori;
- //u8 * recvbuf_drop;
- struct recv_buf *recvbuf_drop;
+ _queue recv_buf_pending_queue;
#endif
#ifdef CONFIG_PCI_HCI
@@ -317,7 +327,13 @@ struct recv_priv {
struct smooth_rssi_data signal_qual_data;
struct smooth_rssi_data signal_strength_data;
#endif //CONFIG_NEW_SIGNAL_STAT_PROCESS
+
+ u32 recvbuf_skb_alloc_fail_cnt;
+ u32 recvbuf_null_cnt;
+ u32 read_port_complete_EINPROGRESS_cnt;
+ u32 read_port_complete_other_urb_err_cnt;
+
};
#ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS
@@ -325,15 +341,15 @@ struct recv_priv {
#endif //CONFIG_NEW_SIGNAL_STAT_PROCESS
struct sta_recv_priv {
-
- _lock lock;
- sint option;
-
+
+ _lock lock;
+ sint option;
+
//_queue blk_strms[MAX_RX_NUMBLKS];
_queue defrag_q; //keeping the fragment frame until defrag
-
- struct stainfo_rxcache rxcache;
-
+
+ struct stainfo_rxcache rxcache;
+
//uint sta_rx_bytes;
//uint sta_rx_pkts;
//uint sta_rx_fail;
@@ -341,26 +357,28 @@ struct sta_recv_priv {
};
-struct recv_buf{
-
+struct recv_buf
+{
_list list;
_lock recvbuf_lock;
u32 ref_cnt;
- _adapter *adapter;
+ PADAPTER adapter;
-#ifdef CONFIG_SDIO_HCI
-#ifdef PLATFORM_OS_XP
- PMDL mdl_ptr;
-#endif
- u8 cmd_fail;
-#endif
+ u8 *pbuf;
+ u8 *pallocated_buf;
+
+ u32 len;
+ u8 *phead;
+ u8 *pdata;
+ u8 *ptail;
+ u8 *pend;
#ifdef CONFIG_USB_HCI
- #if defined(PLATFORM_OS_XP)||defined(PLATFORM_LINUX)
+ #if defined(PLATFORM_OS_XP)||defined(PLATFORM_LINUX)||defined(PLATFORM_FREEBSD)
PURB purb;
dma_addr_t dma_transfer_addr; /* (in) dma addr for transfer_buffer */
u32 alloc_sz;
@@ -383,16 +401,10 @@ struct recv_buf{
_pkt *pskb;
u8 reuse;
#endif
-
- uint len;
- u8 *phead;
- u8 *pdata;
- u8 *ptail;
- u8 *pend;
-
- u8 *pbuf;
- u8 *pallocated_buf;
-
+#ifdef PLATFORM_FREEBSD //skb solution
+ struct sk_buff *pskb;
+ u8 reuse;
+#endif //PLATFORM_FREEBSD //skb solution
};
@@ -411,14 +423,19 @@ struct recv_buf{
len = (unsigned int )(tail - data);
*/
-struct recv_frame_hdr{
-
+struct recv_frame_hdr
+{
_list list;
+#ifndef CONFIG_BSD_RX_USE_MBUF
+ struct sk_buff *pkt;
+ struct sk_buff *pkt_newalloc;
+#else // CONFIG_BSD_RX_USE_MBUF
_pkt *pkt;
_pkt *pkt_newalloc;
+#endif // CONFIG_BSD_RX_USE_MBUF
_adapter *adapter;
-
+
u8 fragcnt;
int frame_tag;
@@ -456,13 +473,19 @@ union recv_frame{
};
+extern union recv_frame *_rtw_alloc_recvframe (_queue *pfree_recv_queue); //get a free recv_frame from pfree_recv_queue
extern union recv_frame *rtw_alloc_recvframe (_queue *pfree_recv_queue); //get a free recv_frame from pfree_recv_queue
extern void rtw_init_recvframe(union recv_frame *precvframe ,struct recv_priv *precvpriv);
-extern int rtw_free_recvframe(union recv_frame *precvframe, _queue *pfree_recv_queue);
-extern union recv_frame *rtw_dequeue_recvframe (_queue *queue);
-extern int rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue);
-extern void rtw_free_recvframe_queue(_queue *pframequeue, _queue *pfree_recv_queue);
+extern int rtw_free_recvframe(union recv_frame *precvframe, _queue *pfree_recv_queue);
+
+#define rtw_dequeue_recvframe(queue) rtw_alloc_recvframe(queue)
+extern int _rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue);
+extern int rtw_enqueue_recvframe(union recv_frame *precvframe, _queue *queue);
+extern void rtw_free_recvframe_queue(_queue *pframequeue, _queue *pfree_recv_queue);
+u32 rtw_free_uc_swdec_pending_queue(_adapter *adapter);
+
+sint rtw_enqueue_recvbuf_to_head(struct recv_buf *precvbuf, _queue *queue);
sint rtw_enqueue_recvbuf(struct recv_buf *precvbuf, _queue *queue);
struct recv_buf *rtw_dequeue_recvbuf (_queue *queue);
@@ -479,32 +502,32 @@ __inline static u8 *get_rxmem(union recv_frame *precvframe)
__inline static u8 *get_rx_status(union recv_frame *precvframe)
{
-
+
return get_rxmem(precvframe);
-
+
}
__inline static u8 *get_recvframe_data(union recv_frame *precvframe)
{
-
- //alwasy return rx_data
+
+ //alwasy return rx_data
if(precvframe==NULL)
return NULL;
return precvframe->u.hdr.rx_data;
-
+
}
__inline static u8 *recvframe_push(union recv_frame *precvframe, sint sz)
-{
- // append data before rx_data
+{
+ // append data before rx_data
/* add data to the start of recv_frame
*
* This function extends the used data area of the recv_frame at the buffer
* start. rx_data must be still larger than rx_head, after pushing.
*/
-
+
if(precvframe==NULL)
return NULL;
@@ -519,7 +542,7 @@ __inline static u8 *recvframe_push(union recv_frame *precvframe, sint sz)
precvframe->u.hdr.len +=sz;
return precvframe->u.hdr.rx_data;
-
+
}
@@ -533,7 +556,7 @@ __inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz)
if(precvframe==NULL)
return NULL;
-
+
precvframe->u.hdr.rx_data += sz;
if(precvframe->u.hdr.rx_data > precvframe->u.hdr.rx_tail)
@@ -543,9 +566,9 @@ __inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz)
}
precvframe->u.hdr.len -=sz;
-
+
return precvframe->u.hdr.rx_data;
-
+
}
__inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz)
@@ -553,16 +576,16 @@ __inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz)
// rx_tai += sz; move rx_tail sz bytes hereafter
//used for append sz bytes from ptr to rx_tail, update rx_tail and return the updated rx_tail to the caller
- //after putting, rx_tail must be still larger than rx_end.
+ //after putting, rx_tail must be still larger than rx_end.
unsigned char * prev_rx_tail;
if(precvframe==NULL)
return NULL;
prev_rx_tail = precvframe->u.hdr.rx_tail;
-
+
precvframe->u.hdr.rx_tail += sz;
-
+
if(precvframe->u.hdr.rx_tail > precvframe->u.hdr.rx_end)
{
precvframe->u.hdr.rx_tail -= sz;
@@ -580,7 +603,7 @@ __inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz)
__inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)
{
// rmv data from rx_tail (by yitsen)
-
+
//used for extract sz bytes from rx_end, update rx_end and return the updated rx_end to the caller
//after pulling, rx_end must be still larger than rx_data.
@@ -606,10 +629,10 @@ __inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)
__inline static _buffer * get_rxbuf_desc(union recv_frame *precvframe)
{
_buffer * buf_desc;
-
+
if(precvframe==NULL)
return NULL;
-#ifdef PLATFORM_WINDOWS
+#ifdef PLATFORM_WINDOWS
NdisQueryPacket(precvframe->u.hdr.pkt, NULL, NULL, &buf_desc, NULL);
#endif
@@ -619,18 +642,17 @@ __inline static _buffer * get_rxbuf_desc(union recv_frame *precvframe)
__inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem)
{
- //due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame
+ //due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame
//from any given member of recv_frame.
// rxmem indicates the any member/address in recv_frame
-
- //return (union recv_frame*)(((uint)rxmem>>RXFRAME_ALIGN) <<RXFRAME_ALIGN) ;
- //return (union recv_frame*)(((SIZE_PTR)rxmem >> RXFRAME_ALIGN) << RXFRAME_ALIGN);
- return (union recv_frame*)(((ulong)rxmem>>RXFRAME_ALIGN) <<RXFRAME_ALIGN) ;
+
+ return (union recv_frame*)(((SIZE_PTR)rxmem >> RXFRAME_ALIGN) << RXFRAME_ALIGN);
+
}
__inline static union recv_frame *pkt_to_recvframe(_pkt *pkt)
{
-
+
u8 * buf_star;
union recv_frame * precv_frame;
#ifdef PLATFORM_WINDOWS
@@ -648,7 +670,7 @@ __inline static union recv_frame *pkt_to_recvframe(_pkt *pkt)
__inline static u8 *pkt_to_recvmem(_pkt *pkt)
{
// return the rx_head
-
+
union recv_frame * precv_frame = pkt_to_recvframe(pkt);
return precv_frame->u.hdr.rx_head;
@@ -662,7 +684,7 @@ __inline static u8 *pkt_to_recvdata(_pkt *pkt)
union recv_frame * precv_frame =pkt_to_recvframe(pkt);
return precv_frame->u.hdr.rx_data;
-
+
}
@@ -686,13 +708,14 @@ __inline static u8 query_rx_pwr_percentage(s8 antpower )
return (100+antpower);
}
}
+
__inline static s32 translate_percentage_to_dbm(u32 SignalStrengthIndex)
{
s32 SignalPower; // in dBm.
// Translate to dBm (x=0.5y-95).
- SignalPower = (s32)((SignalStrengthIndex + 1) >> 1);
- SignalPower -= 95;
+ SignalPower = (s32)((SignalStrengthIndex + 1) >> 1);
+ SignalPower -= 95;
return SignalPower;
}
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_rf.h b/drivers/net/wireless/rtl8192cu/include/rtw_rf.h
index 7414c1b6..697dd4e 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_rf.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_rf.h
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_RF_H_
#define __RTW_RF_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_security.h b/drivers/net/wireless/rtl8192cu/include/rtw_security.h
index 02ef9b0..835677c3 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_security.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_security.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __RTW_SECURITY_H_
#define __RTW_SECURITY_H_
@@ -33,6 +32,10 @@
#define _TKIP_WTMIC_ 0x3
#define _AES_ 0x4
#define _WEP104_ 0x5
+#ifdef CONFIG_IEEE80211W
+#define _BIP_ 0x8
+#endif //CONFIG_IEEE80211W
+#define is_wep_enc(alg) (((alg) == _WEP40_) || ((alg) == _WEP104_))
#define _WPA_IE_ID_ 0xdd
#define _WPA2_IE_ID_ 0x30
@@ -109,6 +112,7 @@ struct security_priv
u32 dot11PrivacyKeyIndex; // this is only valid for legendary wep, 0~3 for key id. (tx key index)
union Keytype dot11DefKey[4]; // this is only valid for def. key
u32 dot11DefKeylen[4];
+ u8 key_mask; /* use to restore wep key after hal_init */
u32 dot118021XGrpPrivacy; // This specify the privacy algthm. used for Grp key
u32 dot118021XGrpKeyid; // key id used for Grp Key ( tx key index)
@@ -117,7 +121,12 @@ struct security_priv
union Keytype dot118021XGrprxmickey[4];
union pn48 dot11Grptxpn; // PN48 used for Grp Key xmit.
union pn48 dot11Grprxpn; // PN48 used for Grp Key recv.
-
+#ifdef CONFIG_IEEE80211W
+ u32 dot11wBIPKeyid; // key id used for BIP Key ( tx key index)
+ union Keytype dot11wBIPKey[6]; // BIP Key, for index4 and index5
+ union pn48 dot11wBIPtxpn; // PN48 used for Grp Key xmit.
+ union pn48 dot11wBIPrxpn; // PN48 used for Grp Key recv.
+#endif //CONFIG_IEEE80211W
#ifdef CONFIG_AP_MODE
//extend security capabilities for AP_MODE
unsigned int dot8021xalg;//0:disable, 1:psk, 2:802.1x
@@ -128,12 +137,14 @@ struct security_priv
unsigned int wpa2_pairwise_cipher;
#endif
- u8 wps_phase;//for wps
u8 wps_ie[MAX_WPS_IE_LEN];//added in assoc req
int wps_ie_len;
u8 binstallGrpkey;
+#ifdef CONFIG_IEEE80211W
+ u8 binstallBIPkey;
+#endif //CONFIG_IEEE80211W
u8 busetkipkey;
//_timer tkip_timer;
u8 bcheck_grpkey;
@@ -181,6 +192,7 @@ struct security_priv
//u32 PMKIDCount; // Added by Annie, 2006-10-13.
//u8 szCapability[256]; // For WPA2-PSK using zero-config, by Annie, 2005-09-20.
+ u8 bWepDefaultKeyIdxSet;
};
struct sha256_state {
@@ -377,7 +389,9 @@ static const unsigned long K[64] = {
#ifndef MIN
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#endif
-
+#ifdef CONFIG_IEEE80211W
+int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac);
+#endif //CONFIG_IEEE80211W
void rtw_secmicsetkey(struct mic_data *pmicdata, u8 * key );
void rtw_secmicappendbyte(struct mic_data *pmicdata, u8 b );
void rtw_secmicappend(struct mic_data *pmicdata, u8 * src, u32 nBytes );
@@ -398,7 +412,9 @@ void rtw_wep_encrypt(_adapter *padapter, u8 *pxmitframe);
u32 rtw_aes_decrypt(_adapter *padapter, u8 *precvframe);
u32 rtw_tkip_decrypt(_adapter *padapter, u8 *precvframe);
void rtw_wep_decrypt(_adapter *padapter, u8 *precvframe);
-
+#ifdef CONFIG_IEEE80211W
+u32 rtw_BIP_verify(_adapter *padapter, u8 *precvframe);
+#endif //CONFIG_IEEE80211W
#ifdef CONFIG_TDLS
void wpa_tdls_generate_tpk(_adapter *padapter, struct sta_info *psta);
int wpa_tdls_ftie_mic(u8 *kck, u8 trans_seq,
@@ -406,7 +422,7 @@ int wpa_tdls_ftie_mic(u8 *kck, u8 trans_seq,
u8 *mic);
int tdls_verify_mic(u8 *kck, u8 trans_seq,
u8 *lnkid, u8 *rsnie, u8 *timeoutie, u8 *ftie);
-#endif
+#endif //CONFIG_TDLS
#ifdef PLATFORM_WINDOWS
void rtw_use_tkipkey_handler (
@@ -419,5 +435,13 @@ void rtw_use_tkipkey_handler (
#ifdef PLATFORM_LINUX
void rtw_use_tkipkey_handler(void* FunctionContext);
#endif
+
+#ifdef PLATFORM_FREEBSD
+void rtw_use_tkipkey_handler(void* FunctionContext);
+#endif //PLATFORM_FREEBSD
+
+void rtw_sec_restore_wep_key(_adapter *adapter);
+u8 rtw_handle_tkip_countermeasure(_adapter* adapter, const char *caller);
+
#endif //__RTL871X_SECURITY_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_sreset.h b/drivers/net/wireless/rtl8192cu/include/rtw_sreset.h
new file mode 100644
index 0000000..45dd2bf
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_sreset.h
@@ -0,0 +1,74 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef _RTW_SRESET_C_
+#define _RTW_SRESET_C_
+
+#include <drv_conf.h>
+#include <osdep_service.h>
+#include <drv_types.h>
+
+enum {
+ SRESET_TGP_NULL = 0,
+ SRESET_TGP_XMIT_STATUS = 1,
+ SRESET_TGP_LINK_STATUS = 2,
+};
+
+struct sreset_priv {
+ _mutex silentreset_mutex;
+ u8 silent_reset_inprogress;
+ u8 Wifi_Error_Status;
+ unsigned long last_tx_time;
+ unsigned long last_tx_complete_time;
+
+ s32 dbg_trigger_point;
+};
+
+#ifdef CONFIG_RTL8192C
+#include <rtl8192c_hal.h>
+#endif
+#ifdef CONFIG_RTL8192D
+#include <rtl8192d_hal.h>
+#endif
+#ifdef CONFIG_RTL8723A
+#include <rtl8723a_hal.h>
+#endif
+#ifdef CONFIG_RTL8188E
+#include <rtl8188e_hal.h>
+#endif
+
+#define WIFI_STATUS_SUCCESS 0
+#define USB_VEN_REQ_CMD_FAIL BIT0
+#define USB_READ_PORT_FAIL BIT1
+#define USB_WRITE_PORT_FAIL BIT2
+#define WIFI_MAC_TXDMA_ERROR BIT3
+#define WIFI_TX_HANG BIT4
+#define WIFI_RX_HANG BIT5
+#define WIFI_IF_NOT_EXIST BIT6
+
+void sreset_init_value(_adapter *padapter);
+void sreset_reset_value(_adapter *padapter);
+u8 sreset_get_wifi_status(_adapter *padapter);
+void sreset_set_wifi_error_status(_adapter *padapter, u32 status);
+void sreset_set_trigger_point(_adapter *padapter, s32 tgp);
+bool sreset_inprogress(_adapter *padapter);
+void sreset_reset(_adapter *padapter);
+
+#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_tdls.h b/drivers/net/wireless/rtl8192cu/include/rtw_tdls.h
new file mode 100644
index 0000000..1005331
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_tdls.h
@@ -0,0 +1,143 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __RTW_TDLS_H_
+#define __RTW_TDLS_H_
+
+#include <drv_types.h>
+
+#ifdef CONFIG_TDLS
+/* TDLS STA state */
+#define TDLS_STATE_NONE 0x00000000 //default state
+#define TDLS_INITIATOR_STATE 0x10000000
+#define TDLS_RESPONDER_STATE 0x20000000
+#define TDLS_LINKED_STATE 0x40000000
+#define TDLS_CH_SWITCH_ON_STATE 0x01000000
+#define TDLS_PEER_AT_OFF_STATE 0x02000000 //could send pkt on target ch
+#define TDLS_AT_OFF_CH_STATE 0x04000000
+#define TDLS_CH_SW_INITIATOR_STATE 0x08000000 //avoiding duplicated or unconditional ch. switch rsp.
+#define TDLS_APSD_CHSW_STATE 0x00100000 //in APSD and want to setup channel switch
+#define TDLS_PEER_SLEEP_STATE 0x00200000 //peer sta is sleeping
+#define TDLS_SW_OFF_STATE 0x00400000 //terminate channel swithcing
+#define TDLS_ALIVE_STATE 0x00010000 //Check if peer sta is alived.
+
+#define TPK_RESEND_COUNT 301
+#define CH_SWITCH_TIME 10
+#define CH_SWITCH_TIMEOUT 30
+#define TDLS_STAY_TIME 500
+#define TDLS_SIGNAL_THRESH 0x20
+#define TDLS_WATCHDOG_PERIOD 10 //Periodically sending tdls discovery request in TDLS_WATCHDOG_PERIOD * 2 sec
+#define TDLS_ALIVE_TIMER_PH1 5000
+#define TDLS_ALIVE_TIMER_PH2 2000
+#define TDLS_STAY_TIME 500
+#define TDLS_HANDSHAKE_TIME 2000
+#define TDLS_ALIVE_COUNT 3
+#define TDLS_INI_MACID_ENTRY 6
+
+/* TDLS */
+#define TDLS_MIC_LEN 16
+#define WPA_NONCE_LEN 32
+#define TDLS_TIMEOUT_LEN 4
+
+struct wpa_tdls_ftie {
+ u8 ie_type; /* FTIE */
+ u8 ie_len;
+ u8 mic_ctrl[2];
+ u8 mic[TDLS_MIC_LEN];
+ u8 Anonce[WPA_NONCE_LEN]; /* Responder Nonce in TDLS */
+ u8 Snonce[WPA_NONCE_LEN]; /* Initiator Nonce in TDLS */
+ /* followed by optional elements */
+} ;
+
+struct wpa_tdls_lnkid {
+ u8 ie_type; /* Link Identifier IE */
+ u8 ie_len;
+ u8 bssid[ETH_ALEN];
+ u8 init_sta[ETH_ALEN];
+ u8 resp_sta[ETH_ALEN];
+} ;
+
+static u8 TDLS_RSNIE[]={ 0x01, 0x00, //version shall be set to 1
+ 0x00, 0x0f, 0xac, 0x07, //group sipher suite
+ 0x01, 0x00, //pairwise cipher suite count
+ 0x00, 0x0f, 0xac, 0x04, //pairwise cipher suite list; CCMP only
+ 0x01, 0x00, //AKM suite count
+ 0x00, 0x0f, 0xac, 0x07, //TPK Handshake
+ 0x00, 0x02,
+ //PMKID shall not be present
+ };
+
+static u8 TDLS_WMMIE[]={0x00, 0x50, 0xf2, 0x02, 0x00, 0x01, 0x00}; //Qos info all set zero
+
+static u8 TDLS_EXT_CAPIE[] = {0x00, 0x00, 0x00, 0x50, 0x20}; //bit(28), bit(30), bit(37)
+
+// SRC: Supported Regulatory Classes
+static u8 TDLS_SRC[] = { 0x01, 0x01, 0x02, 0x03, 0x04, 0x0c, 0x16, 0x17, 0x18, 0x19, 0x1b, 0x1c, 0x1d, 0x1e, 0x20, 0x21 };
+
+void rtw_reset_tdls_info(_adapter* padapter);
+int rtw_init_tdls_info(_adapter* padapter);
+void rtw_free_tdls_info(struct tdls_info *ptdlsinfo);
+void issue_nulldata_to_TDLS_peer_STA(_adapter *padapter, struct sta_info *ptdls_sta, unsigned int power_mode);
+void init_TPK_timer(_adapter *padapter, struct sta_info *psta);
+void init_ch_switch_timer(_adapter *padapter, struct sta_info *psta);
+void init_base_ch_timer(_adapter *padapter, struct sta_info *psta);
+void init_off_ch_timer(_adapter *padapter, struct sta_info *psta);
+void init_tdls_alive_timer(_adapter *padapter, struct sta_info *psta);
+void init_handshake_timer(_adapter *padapter, struct sta_info *psta);
+void free_tdls_sta(_adapter *padapter, struct sta_info *ptdls_sta);
+#ifdef CONFIG_WFD
+void issue_tunneled_probe_req(_adapter *padapter);
+void issue_tunneled_probe_rsp(_adapter *padapter, union recv_frame *precv_frame);
+#endif //CONFIG_WFD
+void issue_tdls_dis_req(_adapter *padapter, u8 *mac_addr);
+void issue_tdls_setup_req(_adapter *padapter, u8 *mac_addr);
+void issue_tdls_setup_rsp(_adapter *padapter, union recv_frame *precv_frame);
+void issue_tdls_setup_cfm(_adapter *padapter, union recv_frame *precv_frame);
+void issue_tdls_dis_rsp(_adapter * padapter, union recv_frame * precv_frame, u8 dialog);
+void issue_tdls_teardown(_adapter *padapter, u8 *mac_addr);
+void issue_tdls_peer_traffic_indication(_adapter *padapter, struct sta_info *psta);
+void issue_tdls_ch_switch_req(_adapter *padapter, u8 *mac_addr);
+void issue_tdls_ch_switch_rsp(_adapter *padapter, u8 *mac_addr);
+sint On_TDLS_Dis_Rsp(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Setup_Req(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Setup_Rsp(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Setup_Cfm(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Dis_Req(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Teardown(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Peer_Traffic_Rsp(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Ch_Switch_Req(_adapter *adapter, union recv_frame *precv_frame);
+sint On_TDLS_Ch_Switch_Rsp(_adapter *adapter, union recv_frame *precv_frame);
+void rtw_build_tdls_setup_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_setup_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_setup_cfm_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_teardown_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_dis_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_dis_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe, u8 dialog);
+void rtw_build_tdls_peer_traffic_indication_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_ch_switch_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tdls_ch_switch_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tunneled_probe_req_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+void rtw_build_tunneled_probe_rsp_ies(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe);
+
+int update_sgi_tdls(_adapter *padapter, struct sta_info *psta);
+u32 update_mask_tdls(_adapter *padapter, struct sta_info *psta);
+#endif //CONFIG_TDLS
+
+#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_version.h b/drivers/net/wireless/rtl8192cu/include/rtw_version.h
index f88ea77..4fb9dd4 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_version.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_version.h
@@ -1 +1 @@
-#define DRIVERVERSION "v3.4.4_4749.20121105"
+#define DRIVERVERSION "v4.0.2_9000.20130911"
diff --git a/drivers/net/wireless/rtl8192cu/include/rtw_xmit.h b/drivers/net/wireless/rtl8192cu/include/rtw_xmit.h
index 54e0b2d..f7eaf4a 100644
--- a/drivers/net/wireless/rtl8192cu/include/rtw_xmit.h
+++ b/drivers/net/wireless/rtl8192cu/include/rtw_xmit.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -16,25 +16,34 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#ifndef _RTW_XMIT_H_
#define _RTW_XMIT_H_
#include <drv_conf.h>
#include <osdep_service.h>
#include <drv_types.h>
-#include <xmit_osdep.h>
+#ifdef PLATFORM_FREEBSD
+#include <if_ether.h>
+#endif //PLATFORM_FREEBSD
#ifdef CONFIG_SDIO_HCI
-#define MAX_XMITBUF_SZ (30720)// (2048)
+//#define MAX_XMITBUF_SZ (30720)// (2048)
+#define MAX_XMITBUF_SZ (12288)
#define NR_XMITBUFF (16)
#elif defined (CONFIG_USB_HCI)
#ifdef CONFIG_USB_TX_AGGREGATION
-#define MAX_XMITBUF_SZ 20480 // 20k
+ #if defined(CONFIG_PLATFORM_ARM_SUNxI) || defined(CONFIG_PLATFORM_ARM_SUN6I)
+ #define MAX_XMITBUF_SZ (12288) //12k 1536*8
+ #elif defined (CONFIG_PLATFORM_MSTAR)
+ #define MAX_XMITBUF_SZ 7680 // 7.5k
+ #else
+ #define MAX_XMITBUF_SZ (20480) // 20k
+ #endif
#else
#define MAX_XMITBUF_SZ (2048)
-#endif
+#endif //CONFIG_USB_TX_AGGREGATION
#ifdef CONFIG_SINGLE_XMIT_BUF
#define NR_XMITBUFF (1)
#else
@@ -57,7 +66,7 @@
#endif
// xmit extension buff defination
-#define MAX_XMIT_EXTBUF_SZ (2048)
+#define MAX_XMIT_EXTBUF_SZ (1536)
#ifdef CONFIG_SINGLE_XMIT_BUF
#define NR_XMIT_EXTBUFF (1)
#else
@@ -71,9 +80,20 @@
#define XMIT_BE_QUEUE (2)
#define XMIT_BK_QUEUE (3)
+#define VO_QUEUE_INX 0
+#define VI_QUEUE_INX 1
+#define BE_QUEUE_INX 2
+#define BK_QUEUE_INX 3
+#define BCN_QUEUE_INX 4
+#define MGT_QUEUE_INX 5
+#define HIGH_QUEUE_INX 6
+#define TXCMD_QUEUE_INX 7
+
+#define HW_QUEUE_ENTRY 8
+
#ifdef CONFIG_PCI_HCI
-#define TXDESC_NUM 64
-//#define TXDESC_NUM 128
+//#define TXDESC_NUM 64
+#define TXDESC_NUM 128
#define TXDESC_NUM_BE_QUEUE 128
#endif
@@ -117,9 +137,13 @@ do{\
#define HWXMIT_ENTRY 4
#define TXDESC_SIZE 32
-#define PACKET_OFFSET_SZ (8)
+
+#ifdef CONFIG_SDIO_HCI
+#define TXDESC_OFFSET TXDESC_SIZE
+#endif
#ifdef CONFIG_USB_HCI
+#define PACKET_OFFSET_SZ (8)
#define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ)
#endif
@@ -212,7 +236,7 @@ struct tx_desc{
union txdesc {
struct tx_desc txdesc;
- unsigned int value[TXDESC_SIZE>>2];
+ unsigned int value[TXDESC_SIZE>>2];
};
#ifdef CONFIG_PCI_HCI
@@ -230,36 +254,36 @@ struct rtw_tx_ring {
struct hw_xmit {
//_lock xmit_lock;
- //_list pending;
+ //_list pending;
_queue *sta_queue;
//struct hw_txqueue *phwtxqueue;
- //sint txcmdcnt;
+ //sint txcmdcnt;
int accnt;
};
#if 0
struct pkt_attrib
-{
+{
u8 type;
u8 subtype;
u8 bswenc;
u8 dhcp_pkt;
- u16 ether_type;
+ u16 ether_type;
int pktlen; //the original 802.3 pkt raw_data len (not include ether_hdr data)
int pkt_hdrlen; //the original 802.3 pkt header len
- int hdrlen; //the WLAN Header Len
+ int hdrlen; //the WLAN Header Len
int nr_frags;
int last_txcmdsz;
int encrypt; //when 0 indicate no encrypt. when non-zero, indicate the encrypt algorith
u8 iv[8];
int iv_len;
- u8 icv[8];
+ u8 icv[8];
int icv_len;
int priority;
int ack_policy;
int mac_id;
- int vcs_mode; //virtual carrier sense method
-
+ int vcs_mode; //virtual carrier sense method
+
u8 dst[ETH_ALEN];
u8 src[ETH_ALEN];
u8 ta[ETH_ALEN];
@@ -268,7 +292,7 @@ struct pkt_attrib
u8 key_idx;
u8 qos_en;
- u8 ht_en;
+ u8 ht_en;
u8 raid;//rate adpative id
u8 bwmode;
u8 ch_offset;//PRIME_CHNL_OFFSET
@@ -279,19 +303,19 @@ struct pkt_attrib
u8 pctrl;//per packet txdesc control enable
u8 triggered;//for ap mode handling Power Saving sta
-
+
u32 qsel;
u16 seqnum;
struct sta_info * psta;
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
u8 hw_tcp_csum;
-#endif
+#endif
};
#else
//reduce size
struct pkt_attrib
-{
+{
u8 type;
u8 subtype;
u8 bswenc;
@@ -318,7 +342,7 @@ struct pkt_attrib
u8 ra[ETH_ALEN];
u8 key_idx;
u8 qos_en;
- u8 ht_en;
+ u8 ht_en;
u8 raid;//rate adpative id
u8 bwmode;
u8 ch_offset;//PRIME_CHNL_OFFSET
@@ -335,10 +359,28 @@ struct pkt_attrib
struct sta_info * psta;
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
u8 hw_tcp_csum;
-#endif
+#endif
+ union Keytype dot11tkiptxmickey;
+ //union Keytype dot11tkiprxmickey;
+ union Keytype dot118021x_UncstKey;
};
#endif
+#ifdef PLATFORM_FREEBSD
+#define ETH_ALEN 6 /* Octets in one ethernet addr */
+#define ETH_HLEN 14 /* Total octets in header. */
+#define ETH_P_IP 0x0800 /* Internet Protocol packet */
+
+/*struct rtw_ieee80211_hdr {
+ uint16_t frame_control;
+ uint16_t duration_id;
+ u8 addr1[6];
+ u8 addr2[6];
+ u8 addr3[6];
+ uint16_t seq_ctrl;
+ u8 addr4[6];
+} ;*/
+#endif //PLATFORM_FREEBSD
#define WLANHDR_OFFSET 64
@@ -355,6 +397,35 @@ struct pkt_attrib
#define TXAGG_FRAMETAG 0x08
+struct submit_ctx{
+ u32 submit_time; /* */
+ u32 timeout_ms; /* <0: not synchronous, 0: wait forever, >0: up to ms waiting */
+ int status; /* status for operation */
+#ifdef PLATFORM_LINUX
+ struct completion done;
+#endif
+};
+
+enum {
+ RTW_SCTX_SUBMITTED = -1,
+ RTW_SCTX_DONE_SUCCESS = 0,
+ RTW_SCTX_DONE_UNKNOWN,
+ RTW_SCTX_DONE_TIMEOUT,
+ RTW_SCTX_DONE_BUF_ALLOC,
+ RTW_SCTX_DONE_BUF_FREE,
+ RTW_SCTX_DONE_WRITE_PORT_ERR,
+ RTW_SCTX_DONE_TX_DESC_NA,
+ RTW_SCTX_DONE_TX_DENY,
+ RTW_SCTX_DONE_CCX_PKT_FAIL,
+ RTW_SCTX_DONE_DRV_STOP,
+ RTW_SCTX_DONE_DEV_REMOVE,
+};
+
+
+void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms);
+int rtw_sctx_wait(struct submit_ctx *sctx);
+void rtw_sctx_done_err(struct submit_ctx **sctx, int status);
+void rtw_sctx_done(struct submit_ctx **sctx);
struct xmit_buf
{
@@ -372,11 +443,13 @@ struct xmit_buf
u16 flags;
u32 alloc_sz;
+ struct submit_ctx *sctx;
+
#ifdef CONFIG_USB_HCI
-
- u32 sz[8];
-#if defined(PLATFORM_OS_XP)||defined(PLATFORM_LINUX)
+ u32 sz[8];
+
+#if defined(PLATFORM_OS_XP)||defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD)
PURB pxmit_urb[8];
dma_addr_t dma_transfer_addr; /* (in) dma addr for transfer_buffer */
#endif
@@ -389,20 +462,14 @@ struct xmit_buf
USB_TRANSFER usb_transfer_write_port;
#endif
-#ifdef PLATFORM_LINUX
- u8 isSync; //is this synchronous?
- int status; // keeping urb status for synchronous call to access
- struct completion done; // for wirte_port synchronously
-#endif
-
u8 bpending[8];
-
+
sint last[8];
-
+
#endif
#ifdef CONFIG_SDIO_HCI
- u32 len;
+ u32 len;
u8 *phead;
u8 *pdata;
u8 *ptail;
@@ -410,9 +477,9 @@ struct xmit_buf
u32 ff_hwaddr;
#ifdef PLATFORM_OS_XP
PMDL pxmitbuf_mdl;
- PIRP pxmitbuf_irp;
+ PIRP pxmitbuf_irp;
PSDBUS_REQUEST_PACKET pxmitbuf_sdrp;
-#endif
+#endif
#endif
#ifdef CONFIG_PCI_HCI
@@ -443,6 +510,7 @@ struct xmit_frame
#ifdef CONFIG_SDIO_HCI
u8 pg_num;
+ u8 agg_num;
#endif
#ifdef CONFIG_USB_HCI
@@ -455,12 +523,19 @@ struct xmit_frame
u16 EMPktLen[5];//The max value by HW
#endif
#endif
+#ifdef CONFIG_XMIT_ACK
+ u8 ack_report;
+#endif
+
+ u8 *alloc_addr; /* the actual address this xmitframe allocated */
+ u8 ext_tag; /* 0:data, 1:mgmt */
+
};
struct tx_servq {
_list tx_pending;
- _queue sta_pending;
- int qcnt;
+ _queue sta_pending;
+ int qcnt;
};
@@ -473,7 +548,7 @@ struct sta_xmit_priv
//struct tx_servq blk_q[MAX_NUMBLKS];
- struct tx_servq be_q; //priority == 0,3
+ struct tx_servq be_q; //priority == 0,3
struct tx_servq bk_q; //priority == 1,2
struct tx_servq vi_q; //priority == 4,5
struct tx_servq vo_q; //priority == 6,7
@@ -492,7 +567,7 @@ struct sta_xmit_priv
struct hw_txqueue {
volatile sint head;
volatile sint tail;
- volatile sint free_sz; //in units of 64 bytes
+ volatile sint free_sz; //in units of 64 bytes
volatile sint free_cmdsz;
volatile sint txsz[8];
uint ff_hwaddr;
@@ -502,30 +577,34 @@ struct hw_txqueue {
struct xmit_priv {
-
+
_lock lock;
_sema xmit_sema;
_sema terminate_xmitthread_sema;
-
+
//_queue blk_strms[MAX_NUMBLKS];
_queue be_pending;
_queue bk_pending;
_queue vi_pending;
_queue vo_pending;
_queue bm_pending;
-
+
//_queue legacy_dz_queue;
//_queue apsd_queue;
-
+
u8 *pallocated_frame_buf;
u8 *pxmit_frame_buf;
uint free_xmitframe_cnt;
+ _queue free_xmit_queue;
//uint mapping_addr;
- //uint pkt_sz;
-
- _queue free_xmit_queue;
+ //uint pkt_sz;
+
+ u8 *xframe_ext_alloc_addr;
+ u8 *xframe_ext;
+ uint free_xframe_ext_cnt;
+ _queue free_xframe_ext_queue;
//struct hw_txqueue be_txqueue;
//struct hw_txqueue bk_txqueue;
@@ -536,25 +615,25 @@ struct xmit_priv {
uint frag_len;
_adapter *adapter;
-
+
u8 vcs_setting;
u8 vcs;
u8 vcs_type;
//u16 rts_thresh;
-
+
u64 tx_bytes;
u64 tx_pkts;
u64 tx_drop;
u64 last_tx_bytes;
u64 last_tx_pkts;
-
+
struct hw_xmit *hwxmits;
u8 hwxmit_entry;
#ifdef CONFIG_USB_HCI
_sema tx_retevt;//all tx return event;
u8 txirp_cnt;//
-
+
#ifdef PLATFORM_OS_CE
USB_TRANSFER usb_transfer_write_port;
// USB_TRANSFER usb_transfer_write_mem;
@@ -562,33 +641,20 @@ struct xmit_priv {
#ifdef PLATFORM_LINUX
struct tasklet_struct xmit_tasklet;
#endif
+#ifdef PLATFORM_FREEBSD
+ struct task xmit_tasklet;
+#endif
//per AC pending irp
int beq_cnt;
int bkq_cnt;
int viq_cnt;
int voq_cnt;
-
-#endif
-
-#ifdef CONFIG_SDIO_HCI
- u8 free_pg[8];
- u8 public_pgsz;
- u8 required_pgsz;
- u8 used_pgsz;
- u8 init_pgsz;
-#ifdef PLATFORM_OS_XP
- PMDL prd_freesz_mdl[2];
- u8 brd_freesz_pending[2];
- PIRP prd_freesz_irp[2];
- PSDBUS_REQUEST_PACKET prd_freesz_sdrp[2];
- u8 rd_freesz_irp_idx;
-#endif
#endif
#ifdef CONFIG_PCI_HCI
// Tx
- struct rtw_tx_ring tx_ring[PCI_MAX_TX_QUEUE_COUNT];
+ struct rtw_tx_ring tx_ring[PCI_MAX_TX_QUEUE_COUNT];
int txringcount[PCI_MAX_TX_QUEUE_COUNT];
#ifdef PLATFORM_LINUX
struct tasklet_struct xmit_tasklet;
@@ -596,18 +662,24 @@ struct xmit_priv {
#endif
_queue free_xmitbuf_queue;
- _queue pending_xmitbuf_queue; // unused??
+ _queue pending_xmitbuf_queue;
u8 *pallocated_xmitbuf;
u8 *pxmitbuf;
uint free_xmitbuf_cnt;
-
+
_queue free_xmit_extbuf_queue;
u8 *pallocated_xmit_extbuf;
u8 *pxmit_extbuf;
uint free_xmit_extbuf_cnt;
u16 nqos_ssn;
- ATOMIC_T HwRdyXmitData; // driver should wait hw setting done for join event callback, only for Data Frame. 1:done 0:not yet.
+
+#ifdef CONFIG_XMIT_ACK
+ int ack_tx;
+ _mutex ack_tx_mutex;
+ struct submit_ctx ack_tx_ops;
+#endif
+ _lock lock_sctx;
};
extern struct xmit_buf *rtw_alloc_xmitbuf_ext(struct xmit_priv *pxmitpriv);
@@ -622,6 +694,8 @@ extern s32 rtw_make_wlanhdr(_adapter *padapter, u8 *hdr, struct pkt_attrib *patt
extern s32 rtw_put_snap(u8 *data, u16 h_proto);
extern struct xmit_frame *rtw_alloc_xmitframe(struct xmit_priv *pxmitpriv);
+struct xmit_frame *rtw_alloc_xmitframe_ext(struct xmit_priv *pxmitpriv);
+struct xmit_frame *rtw_alloc_xmitframe_once(struct xmit_priv *pxmitpriv);
extern s32 rtw_free_xmitframe(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe);
extern void rtw_free_xmitframe_queue(struct xmit_priv *pxmitpriv, _queue *pframequeue);
struct tx_servq *rtw_get_sta_pending(_adapter *padapter, struct sta_info *psta, sint up, u8 *ac);
@@ -630,15 +704,15 @@ extern struct xmit_frame* rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct
extern s32 rtw_xmit_classifier(_adapter *padapter, struct xmit_frame *pxmitframe);
extern thread_return rtw_xmit_thread(thread_context context);
+extern u32 rtw_calculate_wlan_pkt_size_by_attribue(struct pkt_attrib *pattrib);
+#define rtw_wlan_pkt_size(f) rtw_calculate_wlan_pkt_size_by_attribue(&f->attrib)
extern s32 rtw_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame *pxmitframe);
+#ifdef CONFIG_IEEE80211W
+extern s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame *pxmitframe);
+#endif //CONFIG_IEEE80211W
#ifdef CONFIG_TDLS
-extern void rtw_tdls_dis_rsp_fr(_adapter * padapter, struct xmit_frame * pxmitframe, u8 *pframe, u8 dialog);
-extern s32 rtw_xmit_tdls_coalesce(_adapter *padapter, struct xmit_frame *pxmitframe, u8 action);
-void rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe);
-#endif
-#ifdef CONFIG_IOL
-void rtw_dump_xframe_sync(_adapter *padapter, struct xmit_frame *pxmitframe);
-#endif
+s32 rtw_xmit_tdls_coalesce(_adapter *padapter, struct xmit_frame *pxmitframe, u8 action);
+#endif //CONFIG_TDLS
s32 _rtw_init_hw_txqueue(struct hw_txqueue* phw_txqueue, u8 ac_tag);
void _rtw_init_sta_xmit_priv(struct sta_xmit_priv *psta_xmitpriv);
@@ -655,20 +729,26 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv);
void rtw_alloc_hwxmits(_adapter *padapter);
void rtw_free_hwxmits(_adapter *padapter);
-s32 rtw_free_xmitframe_ex(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe);
s32 rtw_xmit(_adapter *padapter, _pkt **pkt);
-#ifdef CONFIG_TDLS
-sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_frame *pxmitframe);
-#endif
-
-#ifdef CONFIG_AP_MODE
+#if defined(CONFIG_AP_MODE) || defined(CONFIG_TDLS)
sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *pxmitframe);
void stop_sta_xmit(_adapter *padapter, struct sta_info *psta);
void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta);
void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta);
#endif
+u8 qos_acm(u8 acm_mask, u8 priority);
+
+#ifdef CONFIG_XMIT_ACK
+int rtw_ack_tx_wait(struct xmit_priv *pxmitpriv, u32 timeout_ms);
+void rtw_ack_tx_done(struct xmit_priv *pxmitpriv, int status);
+#endif //CONFIG_XMIT_ACK
+
+
+//include after declaring struct xmit_buf, in order to avoid warning
+#include <xmit_osdep.h>
+
#endif //_RTL871X_XMIT_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/sdio_hal.h b/drivers/net/wireless/rtl8192cu/include/sdio_hal.h
deleted file mode 100644
index 51139bb..0000000
--- a/drivers/net/wireless/rtl8192cu/include/sdio_hal.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#ifndef __SDIO_HAL_H__
-
-#define __SDIO_HAL_H__
-
-extern u8 sd_hal_bus_init(_adapter * adapter);
-extern u8 sd_hal_bus_deinit(_adapter * adapter);
-
-
-u8 sd_int_isr (IN PADAPTER padapter);
-void sd_int_dpc(PADAPTER padapter);
-
-
-#endif //__SDIO_HAL_H__
-
diff --git a/drivers/net/wireless/rtl8192cu/include/sdio_ops.h b/drivers/net/wireless/rtl8192cu/include/sdio_ops.h
deleted file mode 100644
index b1e9b63..0000000
--- a/drivers/net/wireless/rtl8192cu/include/sdio_ops.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#ifndef __SDIO_OPS_H_
-#define __SDIO_OPS_H_
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-#include <osdep_intf.h>
-
-#ifdef PLATFORM_LINUX
-#include <sdio_ops_linux.h>
-#endif
-
-
-
-#ifdef PLATFORM_WINDOWS
-
-#ifdef PLATFORM_OS_XP
-#include <sdio_ops_xp.h>
-struct async_context
-{
- PMDL pmdl;
- PSDBUS_REQUEST_PACKET sdrp;
- unsigned char* r_buf;
- unsigned char* padapter;
-};
-#endif
-#ifdef PLATFORM_OS_CE
-#include <sdio_ops_ce.h>
-#endif
-#endif
-
-
-
-extern void sdio_set_intf_option(u32 *poption);
-
-extern void sdio_set_intf_funs(struct intf_hdl *pintf_hdl);
-
-extern uint sdio_init_intf_priv(struct intf_priv *pintfpriv);
-
-extern void sdio_unload_intf_priv(struct intf_priv *pintfpriv);
-
-extern void sdio_intf_hdl_init(u8 *priv);
-
-extern void sdio_intf_hdl_unload(u8 *priv);
-
-extern void sdio_intf_hdl_open(u8 *priv);
-
-extern void sdio_intf_hdl_close(u8 *priv);
-
-extern void sdio_set_intf_ops(struct _io_ops *pops);
-
-//extern void sdio_set_intf_callbacks(struct _io_callbacks *pcallbacks);
-extern void sdio_func1cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem);
-extern void sdio_func1cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem);
-
-extern uint __inline _cvrt2ftaddr(const u32 addr, u32 *pftaddr) ;
-
-
-#endif
-
diff --git a/drivers/net/wireless/rtl8192cu/include/sdio_ops_ce.h b/drivers/net/wireless/rtl8192cu/include/sdio_ops_ce.h
deleted file mode 100644
index 81687c9..0000000
--- a/drivers/net/wireless/rtl8192cu/include/sdio_ops_ce.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#ifndef _SDIO_OPS_WINCE_H_
-#define _SDIO_OPS_WINCE_H_
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-#include <osdep_intf.h>
-
-
-#ifdef PLATFORM_OS_CE
-
-
-extern u8 sdbus_cmd52r_ce(struct intf_priv *pintfpriv, u32 addr);
-
-
-extern void sdbus_cmd52w_ce(struct intf_priv *pintfpriv, u32 addr,u8 val8);
-
-
-uint sdbus_read_blocks_to_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
-extern uint sdbus_read_bytes_to_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
-
-extern uint sdbus_write_blocks_from_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf,u8 async);
-
-extern uint sdbus_write_bytes_from_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-extern u8 sdbus_func1cmd52r_ce(struct intf_priv *pintfpriv, u32 addr);
-extern void sdbus_func1cmd52w_ce(struct intf_priv *pintfpriv, u32 addr, u8 val8);
-extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata);
-extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata);
-extern void sdio_read_int(_adapter *padapter, u32 addr,u8 sz,void *pdata);
-
-#endif
-
-#endif
-
diff --git a/drivers/net/wireless/rtl8192cu/include/sdio_ops_linux.h b/drivers/net/wireless/rtl8192cu/include/sdio_ops_linux.h
deleted file mode 100644
index c58ab08..0000000
--- a/drivers/net/wireless/rtl8192cu/include/sdio_ops_linux.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#ifndef _SDIO_OPS_LINUX_H_
-#define _SDIO_OPS_LINUX_H_
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-#include <osdep_intf.h>
-
-
-#ifdef PLATFORM_LINUX
-
-
-extern u8 sdbus_cmd52r(struct intf_priv *pintfpriv, u32 addr);
-
-
-extern void sdbus_cmd52w(struct intf_priv *pintfpriv, u32 addr,u8 val8);
-extern u8 sdbus_direct_read8(struct intf_priv *pintfpriv, u32 addr);
-extern void sdbus_direct_write8(struct intf_priv *pintfpriv, u32 addr, u8 val8);
-
-extern uint sdbus_read_bytes_to_recvbuf(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-extern uint sdbus_read_blocks_to_recvbuf(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
-
-extern uint sdbus_write_blocks_from_xmitbuf(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf,u8 async);
-
-extern uint sdbus_write_bytes_from_xmitbuf(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
-
-extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata);
-extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata);
-extern void sdio_read_int(_adapter *padapter, u32 addr,u8 sz,void *pdata);
-#endif
-
-#endif
-
diff --git a/drivers/net/wireless/rtl8192cu/include/sdio_ops_xp.h b/drivers/net/wireless/rtl8192cu/include/sdio_ops_xp.h
deleted file mode 100644
index 3569611..0000000
--- a/drivers/net/wireless/rtl8192cu/include/sdio_ops_xp.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#ifndef _SDIO_OPS_XP_H_
-#define _SDIO_OPS_XP_H_
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-#include <osdep_intf.h>
-
-
-#ifdef PLATFORM_OS_XP
-
-
-extern u8 sdbus_cmd52r_xp(struct intf_priv *pintfpriv, u32 addr);
-
-
-extern void sdbus_cmd52w_xp(struct intf_priv *pintfpriv, u32 addr,u8 val8);
-
-
-uint sdbus_read_blocks_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
-extern uint sdbus_read_bytes_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-
-
-extern uint sdbus_write_blocks_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf,u8 async);
-
-extern uint sdbus_write_bytes_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
-extern u8 sdbus_func1cmd52r_xp(struct intf_priv *pintfpriv, u32 addr);
-extern void sdbus_func1cmd52w_xp(struct intf_priv *pintfpriv, u32 addr, u8 val8);
-extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata);
-extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata);
-extern void sdio_read_int(_adapter *padapter, u32 addr,u8 sz,void *pdata);
-
-#endif
-
-#endif
-
diff --git a/drivers/net/wireless/rtl8192cu/include/sdio_osintf.h b/drivers/net/wireless/rtl8192cu/include/sdio_osintf.h
deleted file mode 100644
index 099262b..0000000
--- a/drivers/net/wireless/rtl8192cu/include/sdio_osintf.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#ifndef __SDIO_OSINTF_H
-#define __SDIO_OSINTF_H
-
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-
-
-extern unsigned int sd_dvobj_init(_adapter * adapter);
-extern void sd_dvobj_deinit(_adapter * adapter);
-
-void rtl871x_intf_stop(_adapter *padapter);
-
-u8 sd_hal_bus_init(_adapter * padapter);
-u8 sd_hal_bus_deinit(_adapter * padapter);
-void update_xmit_hw_res(_adapter * padapter);
-void sd_c2h_hdl( PADAPTER padapter);
-
-#ifdef PLATFORM_OS_CE
-extern NDIS_STATUS ce_sd_get_dev_hdl(_adapter *padapter );
-SD_API_STATUS
-ce_sd_int_callback(SD_DEVICE_HANDLE hDevice, _adapter* padapter);
-extern void sd_setup_irs(_adapter *padapter);
-#endif
-
-#endif
-
diff --git a/drivers/net/wireless/rtl8192cu/include/sta_info.h b/drivers/net/wireless/rtl8192cu/include/sta_info.h
index 8f01f21..75763db 100644
--- a/drivers/net/wireless/rtl8192cu/include/sta_info.h
+++ b/drivers/net/wireless/rtl8192cu/include/sta_info.h
@@ -15,8 +15,8 @@
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
- *
-******************************************************************************/
+ *
+ ******************************************************************************/
#ifndef __STA_INFO_H_
#define __STA_INFO_H_
@@ -26,13 +26,8 @@
#include <wifi.h>
#define IBSS_START_MAC_ID 2
-#ifdef SUPPORT_64_STA
-#define NUM_STA 64
-#else
#define NUM_STA 32
-#endif
-#define FW_CTRL_MACID 32
-#define NUM_ACL 64
+#define NUM_ACL 16
//if mode ==0, then the sta is allowed once the addr is hit.
@@ -40,27 +35,44 @@
struct rtw_wlan_acl_node {
_list list;
u8 addr[ETH_ALEN];
- u8 mode;
+ u8 valid;
};
+//mode=0, disable
+//mode=1, accept unless in deny list
+//mode=2, deny unless in accept list
struct wlan_acl_pool {
- struct rtw_wlan_acl_node aclnode[NUM_ACL];
+ int mode;
+ int num;
+ struct rtw_wlan_acl_node aclnode[NUM_ACL];
+ _queue acl_node_q;
};
typedef struct _RSSI_STA{
- int UndecoratedSmoothedPWDB;
- int UndecoratedSmoothedCCK;
+ s32 UndecoratedSmoothedPWDB;
+ s32 UndecoratedSmoothedCCK;
+ s32 UndecoratedSmoothedOFDM;
+ u64 PacketMap;
+ u8 ValidBit;
}RSSI_STA, *PRSSI_STA;
struct stainfo_stats {
- //u64 rx_pkts;
u64 rx_mgnt_pkts;
+ u64 rx_beacon_pkts;
+ u64 rx_probereq_pkts;
+ u64 rx_probersp_pkts;
+ u64 rx_probersp_bm_pkts;
+ u64 rx_probersp_uo_pkts;
u64 rx_ctrl_pkts;
u64 rx_data_pkts;
- //u64 last_rx_pkts;
u64 last_rx_mgnt_pkts;
+ u64 last_rx_beacon_pkts;
+ u64 last_rx_probereq_pkts;
+ u64 last_rx_probersp_pkts;
+ u64 last_rx_probersp_bm_pkts;
+ u64 last_rx_probersp_uo_pkts;
u64 last_rx_ctrl_pkts;
u64 last_rx_data_pkts;
@@ -78,7 +90,7 @@ struct TDLS_PeerKey {
u8 kck[16]; /* TPK-KCK */
u8 tk[16]; /* TPK-TK; only CCMP will be used */
} ;
-#endif
+#endif //CONFIG_TDLS
struct sta_info {
@@ -107,6 +119,9 @@ struct sta_info {
union Keytype dot11tkiprxmickey;
union Keytype dot118021x_UncstKey;
union pn48 dot11txpn; // PN48 used for Unicast xmit.
+#ifdef CONFIG_IEEE80211W
+ union pn48 dot11wtxpn; // PN48 used for Unicast mgmt xmit.
+#endif //CONFIG_IEEE80211W
union pn48 dot11rxpn; // PN48 used for Unicast recv.
@@ -133,7 +148,6 @@ struct sta_info {
_timer TPK_timer;
struct TDLS_PeerKey tpk;
_adapter *padapter;
- u8 cam_entry;
u16 stat_code;
u8 off_ch;
u16 ch_switch_time;
@@ -148,7 +162,7 @@ struct sta_info {
_timer alive_timer2;
u8 timer_flag;
u8 alive_count;
-#endif
+#endif //CONFIG_TDLS
//for A-MPDU TX, ADDBA timeout check
_timer addba_retry_timer;
@@ -240,6 +254,8 @@ struct sta_info {
u8 under_exist_checking;
#endif // CONFIG_TX_MCAST2UNI
+ u8 keep_alive_trycnt;
+
#endif // CONFIG_AP_MODE
#ifdef CONFIG_IOCTL_CFG80211
@@ -250,7 +266,8 @@ struct sta_info {
//for DM
RSSI_STA rssi_stat;
-
+ /* To store the sequence number of received management frame */
+ u16 RxMgmtFrameSeqNum;
};
#define sta_rx_pkts(sta) \
@@ -263,9 +280,56 @@ struct sta_info {
+ sta->sta_stats.last_rx_ctrl_pkts \
+ sta->sta_stats.last_rx_data_pkts)
+#define sta_rx_data_pkts(sta) \
+ (sta->sta_stats.rx_data_pkts)
+
+#define sta_last_rx_data_pkts(sta) \
+ (sta->sta_stats.last_rx_data_pkts)
+
+#define sta_rx_mgnt_pkts(sta) \
+ (sta->sta_stats.rx_mgnt_pkts)
+
+#define sta_last_rx_mgnt_pkts(sta) \
+ (sta->sta_stats.last_rx_mgnt_pkts)
+
+#define sta_rx_beacon_pkts(sta) \
+ (sta->sta_stats.rx_beacon_pkts)
+
+#define sta_last_rx_beacon_pkts(sta) \
+ (sta->sta_stats.last_rx_beacon_pkts)
+
+#define sta_rx_probereq_pkts(sta) \
+ (sta->sta_stats.rx_probereq_pkts)
+
+#define sta_last_rx_probereq_pkts(sta) \
+ (sta->sta_stats.last_rx_probereq_pkts)
+
+#define sta_rx_probersp_pkts(sta) \
+ (sta->sta_stats.rx_probersp_pkts)
+
+#define sta_last_rx_probersp_pkts(sta) \
+ (sta->sta_stats.last_rx_probersp_pkts)
+
+#define sta_rx_probersp_bm_pkts(sta) \
+ (sta->sta_stats.rx_probersp_bm_pkts)
+
+#define sta_last_rx_probersp_bm_pkts(sta) \
+ (sta->sta_stats.last_rx_probersp_bm_pkts)
+
+#define sta_rx_probersp_uo_pkts(sta) \
+ (sta->sta_stats.rx_probersp_uo_pkts)
+
+#define sta_last_rx_probersp_uo_pkts(sta) \
+ (sta->sta_stats.last_rx_probersp_uo_pkts)
+
#define sta_update_last_rx_pkts(sta) \
do { \
sta->sta_stats.last_rx_mgnt_pkts = sta->sta_stats.rx_mgnt_pkts; \
+ sta->sta_stats.last_rx_beacon_pkts = sta->sta_stats.rx_beacon_pkts; \
+ sta->sta_stats.last_rx_probereq_pkts = sta->sta_stats.rx_probereq_pkts; \
+ sta->sta_stats.last_rx_probersp_pkts = sta->sta_stats.rx_probersp_pkts; \
+ sta->sta_stats.last_rx_probersp_bm_pkts = sta->sta_stats.rx_probersp_bm_pkts; \
+ sta->sta_stats.last_rx_probersp_uo_pkts = sta->sta_stats.rx_probersp_uo_pkts; \
sta->sta_stats.last_rx_ctrl_pkts = sta->sta_stats.rx_ctrl_pkts; \
sta->sta_stats.last_rx_data_pkts = sta->sta_stats.rx_data_pkts; \
} while(0)
@@ -280,6 +344,11 @@ struct sta_info {
, sta->sta_stats.last_rx_ctrl_pkts \
, sta->sta_stats.last_rx_data_pkts
+#define STA_RX_PKTS_DIFF_ARG(sta) \
+ sta->sta_stats.rx_mgnt_pkts - sta->sta_stats.last_rx_mgnt_pkts \
+ , sta->sta_stats.rx_ctrl_pkts - sta->sta_stats.last_rx_ctrl_pkts \
+ , sta->sta_stats.rx_data_pkts -sta->sta_stats.last_rx_data_pkts
+
#define STA_PKTS_FMT "(m:%llu, c:%llu, d:%llu)"
struct sta_priv {
@@ -302,6 +371,8 @@ struct sta_priv {
_list auth_list;
_lock asoc_list_lock;
_lock auth_list_lock;
+ u8 asoc_list_cnt;
+ u8 auth_list_cnt;
unsigned int auth_to; //sec, time to expire in authenticating.
unsigned int assoc_to; //sec, time to expire before associating.
@@ -317,6 +388,8 @@ struct sta_priv {
u16 tim_bitmap;//only support 15 stations, aid=0~15 mapping bit0~bit15
u16 max_num_sta;
+
+ struct wlan_acl_pool acl_list;
#endif
};
@@ -342,12 +415,18 @@ __inline static u32 wifi_mac_hash(u8 *mac)
extern u32 _rtw_init_sta_priv(struct sta_priv *pstapriv);
extern u32 _rtw_free_sta_priv(struct sta_priv *pstapriv);
+
+#define stainfo_offset_valid(offset) (offset < NUM_STA && offset >= 0)
+int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta);
+struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int offset);
+
extern struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
extern u32 rtw_free_stainfo(_adapter *padapter , struct sta_info *psta);
extern void rtw_free_all_stainfo(_adapter *padapter);
extern struct sta_info *rtw_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
extern u32 rtw_init_bcmc_stainfo(_adapter* padapter);
extern struct sta_info* rtw_get_bcmc_stainfo(_adapter* padapter);
-extern u8 rtw_access_ctrl(struct wlan_acl_pool* pacl_list, u8 * mac_addr);
+extern u8 rtw_access_ctrl(_adapter *padapter, u8 *mac_addr);
#endif //_STA_INFO_H_
+
diff --git a/drivers/net/wireless/rtl8192cu/include/usb_hal.h b/drivers/net/wireless/rtl8192cu/include/usb_hal.h
index 9cd21f3..d765b82 100644
--- a/drivers/net/wireless/rtl8192cu/include/usb_hal.h
+++ b/drivers/net/wireless/rtl8192cu/include/usb_hal.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __USB_HAL_H__
#define __USB_HAL_H__
@@ -28,5 +27,11 @@ void rtl8192du_set_hal_ops(_adapter * padapter);
#ifdef CONFIG_INTEL_PROXIM
extern _adapter *rtw_usb_get_sw_pointer(void);
#endif //CONFIG_INTEL_PROXIM
+#ifdef CONFIG_WOWLAN
+#ifdef CONFIG_WOWLAN_MANUAL
+extern int rtw_suspend_toshiba(PADAPTER Adapter);
+extern int rtw_resume_toshiba(PADAPTER Adapter);
+#endif // CONFIG_WOWLAN_MANUAL
+#endif //CONFIG_WOWLAN
#endif //__USB_HAL_H__
diff --git a/drivers/net/wireless/rtl8192cu/include/usb_ops.h b/drivers/net/wireless/rtl8192cu/include/usb_ops.h
index 3868bc0..8bbec2d 100644
--- a/drivers/net/wireless/rtl8192cu/include/usb_ops.h
+++ b/drivers/net/wireless/rtl8192cu/include/usb_ops.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __USB_OPS_H_
#define __USB_OPS_H_
@@ -53,10 +52,12 @@ enum{
usb_bulk_msg((usb_dev), (pipe), (data), (len), (actual_length), \
((timeout_ms) == 0) ||((timeout_ms)*HZ/1000>0)?((timeout_ms)*HZ/1000):1)
#endif
+#include <usb_ops_linux.h>
#endif //PLATFORM_LINUX
#ifdef CONFIG_RTL8192C
void rtl8192cu_set_intf_ops(struct _io_ops *pops);
+#define usb_set_intf_ops rtl8192cu_set_intf_ops
void rtl8192cu_recv_tasklet(void *priv);
@@ -65,8 +66,16 @@ void rtl8192cu_xmit_tasklet(void *priv);
#ifdef CONFIG_RTL8192D
void rtl8192du_set_intf_ops(struct _io_ops *pops);
+#define usb_set_intf_ops rtl8192du_set_intf_ops
+#ifndef PLATFORM_FREEBSD
void rtl8192du_recv_tasklet(void *priv);
+#else // PLATFORM_FREEBSD
+void rtl8192du_recv_tasklet(void *priv, int npending);
+#ifdef CONFIG_RX_INDICATE_QUEUE
+void rtw_rx_indicate_tasklet(void *priv, int npending);
+#endif // CONFIG_RX_INDICATE_QUEUE
+#endif // PLATFORM_FREEBSD
void rtl8192du_xmit_tasklet(void *priv);
#endif
@@ -76,15 +85,15 @@ void rtl8192du_xmit_tasklet(void *priv);
* @return _TRUE:
* @return _FALSE:
*/
-static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobjpriv)
+static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj)
{
int ret = _FALSE;
int value;
- if( (value=ATOMIC_INC_RETURN(&dvobjpriv->continual_urb_error)) > MAX_CONTINUAL_URB_ERR) {
- DBG_871X("[dvobjpriv:%p][ERROR] continual_urb_error:%d > %d\n", dvobjpriv, value, MAX_CONTINUAL_URB_ERR);
+ if( (value=ATOMIC_INC_RETURN(&dvobj->continual_urb_error)) > MAX_CONTINUAL_URB_ERR) {
+ DBG_871X("[dvobj:%p][ERROR] continual_urb_error:%d > %d\n", dvobj, value, MAX_CONTINUAL_URB_ERR);
ret = _TRUE;
} else {
- //DBG_871X("[dvobjpriv:%p] continual_urb_error:%d\n", dvobjpriv, value);
+ //DBG_871X("[dvobj:%p] continual_urb_error:%d\n", dvobj, value);
}
return ret;
}
@@ -92,9 +101,10 @@ static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobjpr
/*
* Set the continual_urb_error of this @param dvobjprive to 0
*/
-static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobjpriv)
+static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
{
- ATOMIC_SET(&dvobjpriv->continual_urb_error, 0);
+ ATOMIC_SET(&dvobj->continual_urb_error, 0);
}
#endif //__USB_OPS_H_
+
diff --git a/drivers/net/wireless/rtl8192cu/include/usb_ops_linux.h b/drivers/net/wireless/rtl8192cu/include/usb_ops_linux.h
new file mode 100644
index 0000000..d418ba2
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/include/usb_ops_linux.h
@@ -0,0 +1,63 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ ******************************************************************************/
+#ifndef __USB_OPS_LINUX_H__
+#define __USB_OPS_LINUX_H__
+
+#define VENDOR_CMD_MAX_DATA_LEN 254
+
+#define RTW_USB_CONTROL_MSG_TIMEOUT_TEST 10//ms
+#define RTW_USB_CONTROL_MSG_TIMEOUT 500//ms
+
+#if defined(CONFIG_VENDOR_REQ_RETRY) && defined(CONFIG_USB_VENDOR_REQ_MUTEX)
+/* vendor req retry should be in the situation when each vendor req is atomically submitted from others */
+#define MAX_USBCTRL_VENDORREQ_TIMES 10
+#else
+#define MAX_USBCTRL_VENDORREQ_TIMES 1
+#endif
+
+#define RTW_USB_BULKOUT_TIMEOUT 5000//ms
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
+#define _usbctrl_vendorreq_async_callback(urb, regs) _usbctrl_vendorreq_async_callback(urb)
+#define usb_bulkout_zero_complete(purb, regs) usb_bulkout_zero_complete(purb)
+#define usb_write_mem_complete(purb, regs) usb_write_mem_complete(purb)
+#define usb_write_port_complete(purb, regs) usb_write_port_complete(purb)
+#define usb_read_port_complete(purb, regs) usb_read_port_complete(purb)
+#define usb_read_interrupt_complete(purb, regs) usb_read_interrupt_complete(purb)
+#endif
+
+#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
+int usb_async_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val);
+int usb_async_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val);
+int usb_async_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val);
+#endif /* CONFIG_USB_SUPPORT_ASYNC_VDN_REQ */
+
+unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr);
+
+void usb_read_mem(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem);
+void usb_write_mem(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem);
+
+void usb_read_port_cancel(struct intf_hdl *pintfhdl);
+
+u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem);
+void usb_write_port_cancel(struct intf_hdl *pintfhdl);
+
+#endif
+
diff --git a/drivers/net/wireless/rtl8192cu/include/usb_osintf.h b/drivers/net/wireless/rtl8192cu/include/usb_osintf.h
index 8642aa2..753013d 100644
--- a/drivers/net/wireless/rtl8192cu/include/usb_osintf.h
+++ b/drivers/net/wireless/rtl8192cu/include/usb_osintf.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __USB_OSINTF_H
#define __USB_OSINTF_H
diff --git a/drivers/net/wireless/rtl8192cu/include/usb_vendor_req.h b/drivers/net/wireless/rtl8192cu/include/usb_vendor_req.h
index 72864de..f33e982 100644
--- a/drivers/net/wireless/rtl8192cu/include/usb_vendor_req.h
+++ b/drivers/net/wireless/rtl8192cu/include/usb_vendor_req.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _USB_VENDOR_REQUEST_H_
#define _USB_VENDOR_REQUEST_H_
diff --git a/drivers/net/wireless/rtl8192cu/include/wifi.h b/drivers/net/wireless/rtl8192cu/include/wifi.h
index a80a805..0bb55bb 100644
--- a/drivers/net/wireless/rtl8192cu/include/wifi.h
+++ b/drivers/net/wireless/rtl8192cu/include/wifi.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef _WIFI_H_
#define _WIFI_H_
@@ -551,6 +550,7 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
#define _IBSS_PARA_IE_ 6
#define _COUNTRY_IE_ 7
#define _CHLGETXT_IE_ 16
+#define _POW_CAP_IE_ 33
#define _SUPPORTED_CH_IE_ 36
#define _CH_SWTICH_ANNOUNCE_ 37 //Secondary Channel Offset
#define _RSN_IE_2_ 48
@@ -561,6 +561,7 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
#define _HT_CAPABILITY_IE_ 45
#define _FTIE_ 55
#define _TIMEOUT_ITVL_IE_ 56
+#define _SRC_IE_ 59
#define _HT_EXTRA_INFO_IE_ 61
#define _HT_ADD_INFO_IE_ 61 //_HT_EXTRA_INFO_IE_
@@ -568,6 +569,9 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
#define EID_BSSIntolerantChlReport 73
#define _RIC_Descriptor_IE_ 75
+#ifdef CONFIG_IEEE80211W
+#define _MME_IE_ 76 //802.11w Management MIC element
+#endif //CONFIG_IEEE80211W
#define _LINK_ID_IE_ 101
#define _CH_SWITCH_TIMING_ 104
#define _PTI_BUFFER_STATUS_ 106
@@ -624,7 +628,10 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
#define _WEP_104_PRIVACY_ 5
#define _WEP_WPA_MIXED_PRIVACY_ 6 // WEP + WPA
*/
-
+
+#ifdef CONFIG_IEEE80211W
+#define _MME_IE_LENGTH_ 18
+#endif //CONFIG_IEEE80211W
/*-----------------------------------------------------------------------------
Below is the definition for WMM
------------------------------------------------------------------------------*/
@@ -654,7 +661,7 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
/**
- * struct ieee80211_bar - HT Block Ack Request
+ * struct rtw_ieee80211_bar - HT Block Ack Request
*
* This structure refers to "HT BlockAckReq" as
* described in 802.11n draft section 7.2.1.7.1
@@ -675,7 +682,9 @@ struct rtw_ieee80211_bar {
#define IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA 0x0004
- #if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8712FW)
+ #if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8712FW) || defined(PLATFORM_FREEBSD)
+
+
/**
* struct rtw_ieee80211_ht_cap - HT capabilities
@@ -722,7 +731,7 @@ struct HT_caps_element
unsigned char ASEL_caps;
} HT_cap_element;
unsigned char HT_cap[26];
- };
+ }u;
} __attribute__ ((packed));
struct HT_info_element
@@ -887,7 +896,7 @@ struct ADDBA_request
#define WLAN_HT_CAP_SM_PS_INVALID 2
#define WLAN_HT_CAP_SM_PS_DISABLED 3
-#ifdef CONFIG_AP_MODE
+
#define OP_MODE_PURE 0
#define OP_MODE_MAY_BE_LEGACY_STAS 1
#define OP_MODE_20MHZ_HT_STA_ASSOCED 2
@@ -914,7 +923,7 @@ struct ADDBA_request
#define HT_INFO_STBC_PARAM_LSIG_TXOP_PROTECT_ALLOWED ((u16) BIT(9))
#define HT_INFO_STBC_PARAM_PCO_ACTIVE ((u16) BIT(10))
#define HT_INFO_STBC_PARAM_PCO_PHASE ((u16) BIT(11))
-#endif
+
//#endif
@@ -932,6 +941,7 @@ struct ADDBA_request
#define WPS_ATTR_MODEL_NUMBER 0x1024
#define WPS_ATTR_SERIAL_NUMBER 0x1042
#define WPS_ATTR_PRIMARY_DEV_TYPE 0x1054
+#define WPS_ATTR_SEC_DEV_TYPE_LIST 0x1055
#define WPS_ATTR_DEVICE_NAME 0x1011
#define WPS_ATTR_CONF_METHOD 0x1008
#define WPS_ATTR_RF_BANDS 0x103C
@@ -940,7 +950,7 @@ struct ADDBA_request
#define WPS_ATTR_ASSOCIATION_STATE 0x1002
#define WPS_ATTR_CONFIG_ERROR 0x1009
#define WPS_ATTR_VENDOR_EXT 0x1049
-#define WPA_ATTR_SELECTED_REGISTRAR 0x1041
+#define WPS_ATTR_SELECTED_REGISTRAR 0x1041
// Value of WPS attribute "WPS_ATTR_DEVICE_NAME
#define WPS_MAX_DEVICE_NAME_LEN 32
@@ -980,12 +990,13 @@ struct ADDBA_request
#define WPS_CONFIG_METHOD_PDISPLAY 0x4008
// Value of Category ID of WPS Primary Device Type Attribute
+#define WPS_PDT_CID_DISPLAYS 0x0007
#define WPS_PDT_CID_MULIT_MEDIA 0x0008
-#define WPS_PDT_CID_RTK_WIDI 0x001E
+#define WPS_PDT_CID_RTK_WIDI WPS_PDT_CID_MULIT_MEDIA
// Value of Sub Category ID of WPS Primary Device Type Attribute
#define WPS_PDT_SCID_MEDIA_SERVER 0x0005
-#define WPS_PDT_SCID_RTK_DMP 0x0001
+#define WPS_PDT_SCID_RTK_DMP WPS_PDT_SCID_MEDIA_SERVER
// Value of Device Password ID
#define WPS_DPID_PIN 0x0000
@@ -995,6 +1006,16 @@ struct ADDBA_request
#define WPS_DPID_PBC 0x0004
#define WPS_DPID_REGISTRAR_SPEC 0x0005
+// Value of WPS RF Bands Attribute
+#define WPS_RF_BANDS_2_4_GHZ 0x01
+#define WPS_RF_BANDS_5_GHZ 0x02
+
+// Value of WPS Association State Attribute
+#define WPS_ASSOC_STATE_NOT_ASSOCIATED 0x00
+#define WPS_ASSOC_STATE_CONNECTION_SUCCESS 0x01
+#define WPS_ASSOC_STATE_CONFIGURATION_FAILURE 0x02
+#define WPS_ASSOC_STATE_ASSOCIATION_FAILURE 0x03
+#define WPS_ASSOC_STATE_IP_FAILURE 0x04
// =====================P2P Section=====================
// For P2P
@@ -1038,6 +1059,12 @@ struct ADDBA_request
// Value of Inviation Flags Attribute
#define P2P_INVITATION_FLAGS_PERSISTENT BIT(0)
+#define DMP_P2P_DEVCAP_SUPPORT (P2P_DEVCAP_SERVICE_DISCOVERY | \
+ P2P_DEVCAP_CLIENT_DISCOVERABILITY | \
+ P2P_DEVCAP_CONCURRENT_OPERATION | \
+ P2P_DEVCAP_INVITATION_PROC)
+
+#define DMP_P2P_GRPCAP_SUPPORT (P2P_GRPCAP_INTRABSS)
// Value of Device Capability Bitmap
#define P2P_DEVCAP_SERVICE_DISCOVERY BIT(0)
@@ -1090,9 +1117,13 @@ struct ADDBA_request
#define P2P_FINDPHASE_EX_SOCIAL_LAST P2P_FINDPHASE_EX_MAX
#define P2P_PROVISION_TIMEOUT 5000 // 5 seconds timeout for sending the provision discovery request
+#define P2P_CONCURRENT_PROVISION_TIMEOUT 3000 // 3 seconds timeout for sending the provision discovery request under concurrent mode
#define P2P_GO_NEGO_TIMEOUT 5000 // 5 seconds timeout for receiving the group negotation response
+#define P2P_CONCURRENT_GO_NEGO_TIMEOUT 3000 // 3 seconds timeout for sending the negotiation request under concurrent mode
#define P2P_TX_PRESCAN_TIMEOUT 100 // 100ms
-
+#define P2P_INVITE_TIMEOUT 5000 // 5 seconds timeout for sending the invitation request
+#define P2P_CONCURRENT_INVITE_TIMEOUT 3000 // 3 seconds timeout for sending the invitation request under concurrent mode
+#define P2P_RESET_SCAN_CH 15000 // 15 seconds timeout to reset the scan channel ( based on channel plan )
#define P2P_MAX_INTENT 15
#define P2P_MAX_NOA_NUM 2
@@ -1119,21 +1150,29 @@ enum P2P_ROLE {
};
enum P2P_STATE {
- P2P_STATE_NONE = 0, // P2P disable
- P2P_STATE_IDLE = 1, // P2P had enabled and do nothing
- P2P_STATE_LISTEN = 2, // In pure listen state
- P2P_STATE_SCAN = 3, // In scan phase
- P2P_STATE_FIND_PHASE_LISTEN = 4, // In the listen state of find phase
- P2P_STATE_FIND_PHASE_SEARCH = 5, // In the search state of find phase
- P2P_STATE_TX_PROVISION_DIS_REQ = 6, // In P2P provisioning discovery
+ P2P_STATE_NONE = 0, // P2P disable
+ P2P_STATE_IDLE = 1, // P2P had enabled and do nothing
+ P2P_STATE_LISTEN = 2, // In pure listen state
+ P2P_STATE_SCAN = 3, // In scan phase
+ P2P_STATE_FIND_PHASE_LISTEN = 4, // In the listen state of find phase
+ P2P_STATE_FIND_PHASE_SEARCH = 5, // In the search state of find phase
+ P2P_STATE_TX_PROVISION_DIS_REQ = 6, // In P2P provisioning discovery
P2P_STATE_RX_PROVISION_DIS_RSP = 7,
P2P_STATE_RX_PROVISION_DIS_REQ = 8,
- P2P_STATE_GONEGO_ING = 9, // Doing the group owner negoitation handshake
- P2P_STATE_GONEGO_OK = 10, // finish the group negoitation handshake with success
- P2P_STATE_GONEGO_FAIL = 11, // finish the group negoitation handshake with failure
- P2P_STATE_RECV_INVITE_REQ = 12, // receiving the P2P Inviation request
- P2P_STATE_PROVISIONING_ING = 13, // Doing the P2P WPS
- P2P_STATE_PROVISIONING_DONE = 14, // Finish the P2P WPS
+ P2P_STATE_GONEGO_ING = 9, // Doing the group owner negoitation handshake
+ P2P_STATE_GONEGO_OK = 10, // finish the group negoitation handshake with success
+ P2P_STATE_GONEGO_FAIL = 11, // finish the group negoitation handshake with failure
+ P2P_STATE_RECV_INVITE_REQ_MATCH = 12, // receiving the P2P Inviation request and match with the profile.
+ P2P_STATE_PROVISIONING_ING = 13, // Doing the P2P WPS
+ P2P_STATE_PROVISIONING_DONE = 14, // Finish the P2P WPS
+ P2P_STATE_TX_INVITE_REQ = 15, // Transmit the P2P Invitation request
+ P2P_STATE_RX_INVITE_RESP_OK = 16, // Receiving the P2P Invitation response with sucess
+ P2P_STATE_RECV_INVITE_REQ_DISMATCH = 17, // receiving the P2P Inviation request and dismatch with the profile.
+ P2P_STATE_RECV_INVITE_REQ_GO = 18, // receiving the P2P Inviation request and this wifi is GO.
+ P2P_STATE_RECV_INVITE_REQ_JOIN = 19, // receiving the P2P Inviation request to join an existing P2P Group.
+ P2P_STATE_RX_INVITE_RESP_FAIL = 20, // recveing the P2P Inviation response with failure
+ P2P_STATE_RX_INFOR_NOREADY = 21, // receiving p2p negoitation response with information is not available
+ P2P_STATE_TX_INFOR_NOREADY = 22, // sending p2p negoitation response with information is not available
};
enum P2P_WPSINFO {
@@ -1150,34 +1189,51 @@ enum P2P_PROTO_WK_ID
P2P_FIND_PHASE_WK = 0,
P2P_RESTORE_STATE_WK = 1,
P2P_PRE_TX_PROVDISC_PROCESS_WK = 2,
- P2P_PRE_TX_NEGOREQ_PROCESS_WK = 3,
- P2P_RO_CH_WK = 4,
+ P2P_PRE_TX_NEGOREQ_PROCESS_WK = 3,
+ P2P_PRE_TX_INVITEREQ_PROCESS_WK = 4,
+ P2P_AP_P2P_CH_SWITCH_PROCESS_WK =5,
+ P2P_RO_CH_WK = 6,
};
-enum P2P_PS
+#ifdef CONFIG_P2P_PS
+enum P2P_PS_STATE
{
- P2P_PS_DISABLE=0,
- P2P_PS_ENABLE=1,
- P2P_PS_SCAN=2,
- P2P_PS_SCAN_DONE=3,
- P2P_PS_ALLSTASLEEP=4, // for owner
+ P2P_PS_DISABLE = 0,
+ P2P_PS_ENABLE = 1,
+ P2P_PS_SCAN = 2,
+ P2P_PS_SCAN_DONE = 3,
+ P2P_PS_ALLSTASLEEP = 4, // for P2P GO
};
+enum P2P_PS_MODE
+{
+ P2P_PS_NONE = 0,
+ P2P_PS_CTWINDOW = 1,
+ P2P_PS_NOA = 2,
+ P2P_PS_MIX = 3, // CTWindow and NoA
+};
+#endif // CONFIG_P2P_PS
+
// =====================WFD Section=====================
// For Wi-Fi Display
#define WFD_ATTR_DEVICE_INFO 0x00
#define WFD_ATTR_ASSOC_BSSID 0x01
#define WFD_ATTR_COUPLED_SINK_INFO 0x06
+#define WFD_ATTR_LOCAL_IP_ADDR 0x08
#define WFD_ATTR_SESSION_INFO 0x09
+#define WFD_ATTR_ALTER_MAC 0x0a
// For WFD Device Information Attribute
-#define WFD_DEVINFO_SOURCE 0
-#define WFD_DEVINFO_PRIARY_SINK 1
-#define WFD_DEVINFO_SECARY_SINK 2
-#define WFD_DEVINFO_SOURCE_PRIARY_SINK 3
+#define WFD_DEVINFO_SOURCE 0x0000
+#define WFD_DEVINFO_PSINK 0x0001
+#define WFD_DEVINFO_SSINK 0x0002
+#define WFD_DEVINFO_DUAL 0x0003
+
+#define WFD_DEVINFO_SESSION_AVAIL 0x0010
+#define WFD_DEVINFO_WSD 0x0040
+#define WFD_DEVINFO_PC_TDLS 0x0080
+#define WFD_DEVINFO_HDCP_SUPPORT 0x0100
-#define WFD_DEVINFO_NO_COUPLED_SINK 0
-#define WFD_DEVINFO_COUPLED_SINK 4
#ifdef CONFIG_TX_MCAST2UNI
#define IP_MCAST_MAC(mac) ((mac[0]==0x01)&&(mac[1]==0x00)&&(mac[2]==0x5e))
diff --git a/drivers/net/wireless/rtl8192cu/include/wlan_bssdef.h b/drivers/net/wireless/rtl8192cu/include/wlan_bssdef.h
index fe555c6..1cf93dc 100644
--- a/drivers/net/wireless/rtl8192cu/include/wlan_bssdef.h
+++ b/drivers/net/wireless/rtl8192cu/include/wlan_bssdef.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __WLAN_BSSDEF_H__
#define __WLAN_BSSDEF_H__
@@ -295,6 +294,275 @@ typedef struct _NDIS_802_11_TEST
#endif //end of #ifdef PLATFORM_LINUX
+#ifdef PLATFORM_FREEBSD
+
+#define NDIS_802_11_LENGTH_SSID 32
+#define NDIS_802_11_LENGTH_RATES 8
+#define NDIS_802_11_LENGTH_RATES_EX 16
+
+typedef unsigned char NDIS_802_11_MAC_ADDRESS[6];
+typedef long NDIS_802_11_RSSI; // in dBm
+typedef unsigned char NDIS_802_11_RATES[NDIS_802_11_LENGTH_RATES]; // Set of 8 data rates
+typedef unsigned char NDIS_802_11_RATES_EX[NDIS_802_11_LENGTH_RATES_EX]; // Set of 16 data rates
+
+
+typedef ULONG NDIS_802_11_KEY_INDEX;
+typedef unsigned long long NDIS_802_11_KEY_RSC;
+
+
+typedef struct _NDIS_802_11_SSID
+{
+ ULONG SsidLength;
+ UCHAR Ssid[32];
+} NDIS_802_11_SSID, *PNDIS_802_11_SSID;
+
+typedef enum _NDIS_802_11_NETWORK_TYPE
+{
+ Ndis802_11FH,
+ Ndis802_11DS,
+ Ndis802_11OFDM5,
+ Ndis802_11OFDM24,
+ Ndis802_11NetworkTypeMax // not a real type, defined as an upper bound
+} NDIS_802_11_NETWORK_TYPE, *PNDIS_802_11_NETWORK_TYPE;
+
+typedef struct _NDIS_802_11_CONFIGURATION_FH
+{
+ ULONG Length; // Length of structure
+ ULONG HopPattern; // As defined by 802.11, MSB set
+ ULONG HopSet; // to one if non-802.11
+ ULONG DwellTime; // units are Kusec
+} NDIS_802_11_CONFIGURATION_FH, *PNDIS_802_11_CONFIGURATION_FH;
+
+
+/*
+ FW will only save the channel number in DSConfig.
+ ODI Handler will convert the channel number to freq. number.
+*/
+typedef struct _NDIS_802_11_CONFIGURATION
+{
+ ULONG Length; // Length of structure
+ ULONG BeaconPeriod; // units are Kusec
+ ULONG ATIMWindow; // units are Kusec
+ ULONG DSConfig; // Frequency, units are kHz
+ NDIS_802_11_CONFIGURATION_FH FHConfig;
+} NDIS_802_11_CONFIGURATION, *PNDIS_802_11_CONFIGURATION;
+
+
+
+typedef enum _NDIS_802_11_NETWORK_INFRASTRUCTURE
+{
+ Ndis802_11IBSS,
+ Ndis802_11Infrastructure,
+ Ndis802_11AutoUnknown,
+ Ndis802_11InfrastructureMax, // Not a real value, defined as upper bound
+ Ndis802_11APMode
+} NDIS_802_11_NETWORK_INFRASTRUCTURE, *PNDIS_802_11_NETWORK_INFRASTRUCTURE;
+
+
+
+
+
+typedef struct _NDIS_802_11_FIXED_IEs
+{
+ UCHAR Timestamp[8];
+ USHORT BeaconInterval;
+ USHORT Capabilities;
+} NDIS_802_11_FIXED_IEs, *PNDIS_802_11_FIXED_IEs;
+
+
+
+typedef struct _NDIS_802_11_VARIABLE_IEs
+{
+ UCHAR ElementID;
+ UCHAR Length;
+ UCHAR data[1];
+} NDIS_802_11_VARIABLE_IEs, *PNDIS_802_11_VARIABLE_IEs;
+
+
+
+/*
+
+
+
+Length is the 4 bytes multiples of the sume of
+ sizeof (NDIS_802_11_MAC_ADDRESS) + 2 + sizeof (NDIS_802_11_SSID) + sizeof (ULONG)
++ sizeof (NDIS_802_11_RSSI) + sizeof (NDIS_802_11_NETWORK_TYPE) + sizeof (NDIS_802_11_CONFIGURATION)
++ sizeof (NDIS_802_11_RATES_EX) + IELength
+
+Except the IELength, all other fields are fixed length. Therefore, we can define a marco to present the
+partial sum.
+
+*/
+#if 0
+typedef struct _NDIS_WLAN_BSSID_EX
+{
+ ULONG Length;
+ NDIS_802_11_MAC_ADDRESS MacAddress;
+ UCHAR Reserved[2];//[0]: IS beacon frame, [1]:optimum_antenna=>For antenna diversity;
+ NDIS_802_11_SSID Ssid;
+ ULONG Privacy;
+ NDIS_802_11_RSSI Rssi;
+ NDIS_802_11_NETWORK_TYPE NetworkTypeInUse;
+ NDIS_802_11_CONFIGURATION Configuration;
+ NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode;
+ NDIS_802_11_RATES_EX SupportedRates;
+ ULONG IELength;
+ UCHAR IEs[MAX_IE_SZ]; //(timestamp, beacon interval, and capability information)
+} NDIS_WLAN_BSSID_EX, *PNDIS_WLAN_BSSID_EX;
+
+
+typedef struct _NDIS_802_11_BSSID_LIST_EX
+{
+ ULONG NumberOfItems;
+ NDIS_WLAN_BSSID_EX Bssid[1];
+} NDIS_802_11_BSSID_LIST_EX, *PNDIS_802_11_BSSID_LIST_EX;
+#endif
+
+typedef enum _NDIS_802_11_AUTHENTICATION_MODE
+{
+ Ndis802_11AuthModeOpen,
+ Ndis802_11AuthModeShared,
+ Ndis802_11AuthModeAutoSwitch,
+ Ndis802_11AuthModeWPA,
+ Ndis802_11AuthModeWPAPSK,
+ Ndis802_11AuthModeWPANone,
+ Ndis802_11AuthModeMax // Not a real mode, defined as upper bound
+} NDIS_802_11_AUTHENTICATION_MODE, *PNDIS_802_11_AUTHENTICATION_MODE;
+
+typedef enum _NDIS_802_11_WEP_STATUS
+{
+ Ndis802_11WEPEnabled,
+ Ndis802_11Encryption1Enabled = Ndis802_11WEPEnabled,
+ Ndis802_11WEPDisabled,
+ Ndis802_11EncryptionDisabled = Ndis802_11WEPDisabled,
+ Ndis802_11WEPKeyAbsent,
+ Ndis802_11Encryption1KeyAbsent = Ndis802_11WEPKeyAbsent,
+ Ndis802_11WEPNotSupported,
+ Ndis802_11EncryptionNotSupported = Ndis802_11WEPNotSupported,
+ Ndis802_11Encryption2Enabled,
+ Ndis802_11Encryption2KeyAbsent,
+ Ndis802_11Encryption3Enabled,
+ Ndis802_11Encryption3KeyAbsent
+} NDIS_802_11_WEP_STATUS, *PNDIS_802_11_WEP_STATUS,
+ NDIS_802_11_ENCRYPTION_STATUS, *PNDIS_802_11_ENCRYPTION_STATUS;
+
+
+#define NDIS_802_11_AI_REQFI_CAPABILITIES 1
+#define NDIS_802_11_AI_REQFI_LISTENINTERVAL 2
+#define NDIS_802_11_AI_REQFI_CURRENTAPADDRESS 4
+
+#define NDIS_802_11_AI_RESFI_CAPABILITIES 1
+#define NDIS_802_11_AI_RESFI_STATUSCODE 2
+#define NDIS_802_11_AI_RESFI_ASSOCIATIONID 4
+
+typedef struct _NDIS_802_11_AI_REQFI
+{
+ USHORT Capabilities;
+ USHORT ListenInterval;
+ NDIS_802_11_MAC_ADDRESS CurrentAPAddress;
+} NDIS_802_11_AI_REQFI, *PNDIS_802_11_AI_REQFI;
+
+typedef struct _NDIS_802_11_AI_RESFI
+{
+ USHORT Capabilities;
+ USHORT StatusCode;
+ USHORT AssociationId;
+} NDIS_802_11_AI_RESFI, *PNDIS_802_11_AI_RESFI;
+
+typedef struct _NDIS_802_11_ASSOCIATION_INFORMATION
+{
+ ULONG Length;
+ USHORT AvailableRequestFixedIEs;
+ NDIS_802_11_AI_REQFI RequestFixedIEs;
+ ULONG RequestIELength;
+ ULONG OffsetRequestIEs;
+ USHORT AvailableResponseFixedIEs;
+ NDIS_802_11_AI_RESFI ResponseFixedIEs;
+ ULONG ResponseIELength;
+ ULONG OffsetResponseIEs;
+} NDIS_802_11_ASSOCIATION_INFORMATION, *PNDIS_802_11_ASSOCIATION_INFORMATION;
+
+typedef enum _NDIS_802_11_RELOAD_DEFAULTS
+{
+ Ndis802_11ReloadWEPKeys
+} NDIS_802_11_RELOAD_DEFAULTS, *PNDIS_802_11_RELOAD_DEFAULTS;
+
+
+// Key mapping keys require a BSSID
+typedef struct _NDIS_802_11_KEY
+{
+ ULONG Length; // Length of this structure
+ ULONG KeyIndex;
+ ULONG KeyLength; // length of key in bytes
+ NDIS_802_11_MAC_ADDRESS BSSID;
+ NDIS_802_11_KEY_RSC KeyRSC;
+ UCHAR KeyMaterial[32]; // variable length depending on above field
+} NDIS_802_11_KEY, *PNDIS_802_11_KEY;
+
+typedef struct _NDIS_802_11_REMOVE_KEY
+{
+ ULONG Length; // Length of this structure
+ ULONG KeyIndex;
+ NDIS_802_11_MAC_ADDRESS BSSID;
+} NDIS_802_11_REMOVE_KEY, *PNDIS_802_11_REMOVE_KEY;
+
+typedef struct _NDIS_802_11_WEP
+{
+ ULONG Length; // Length of this structure
+ ULONG KeyIndex; // 0 is the per-client key, 1-N are the global keys
+ ULONG KeyLength; // length of key in bytes
+ UCHAR KeyMaterial[16];// variable length depending on above field
+} NDIS_802_11_WEP, *PNDIS_802_11_WEP;
+
+typedef struct _NDIS_802_11_AUTHENTICATION_REQUEST
+{
+ ULONG Length; // Length of structure
+ NDIS_802_11_MAC_ADDRESS Bssid;
+ ULONG Flags;
+} NDIS_802_11_AUTHENTICATION_REQUEST, *PNDIS_802_11_AUTHENTICATION_REQUEST;
+
+typedef enum _NDIS_802_11_STATUS_TYPE
+{
+ Ndis802_11StatusType_Authentication,
+ Ndis802_11StatusType_MediaStreamMode,
+ Ndis802_11StatusType_PMKID_CandidateList,
+ Ndis802_11StatusTypeMax // not a real type, defined as an upper bound
+} NDIS_802_11_STATUS_TYPE, *PNDIS_802_11_STATUS_TYPE;
+
+typedef struct _NDIS_802_11_STATUS_INDICATION
+{
+ NDIS_802_11_STATUS_TYPE StatusType;
+} NDIS_802_11_STATUS_INDICATION, *PNDIS_802_11_STATUS_INDICATION;
+
+// mask for authentication/integrity fields
+#define NDIS_802_11_AUTH_REQUEST_AUTH_FIELDS 0x0f
+#define NDIS_802_11_AUTH_REQUEST_REAUTH 0x01
+#define NDIS_802_11_AUTH_REQUEST_KEYUPDATE 0x02
+#define NDIS_802_11_AUTH_REQUEST_PAIRWISE_ERROR 0x06
+#define NDIS_802_11_AUTH_REQUEST_GROUP_ERROR 0x0E
+
+// MIC check time, 60 seconds.
+#define MIC_CHECK_TIME 60000000
+
+typedef struct _NDIS_802_11_AUTHENTICATION_EVENT
+{
+ NDIS_802_11_STATUS_INDICATION Status;
+ NDIS_802_11_AUTHENTICATION_REQUEST Request[1];
+} NDIS_802_11_AUTHENTICATION_EVENT, *PNDIS_802_11_AUTHENTICATION_EVENT;
+
+typedef struct _NDIS_802_11_TEST
+{
+ ULONG Length;
+ ULONG Type;
+ union
+ {
+ NDIS_802_11_AUTHENTICATION_EVENT AuthenticationEvent;
+ NDIS_802_11_RSSI RssiTrigger;
+ }tt;
+} NDIS_802_11_TEST, *PNDIS_802_11_TEST;
+
+
+#endif //PLATFORM_FREEBSD
#ifndef Ndis802_11APMode
#define Ndis802_11APMode (Ndis802_11InfrastructureMax+1)
#endif
@@ -340,25 +608,7 @@ WLAN_BSSID_EX, *PWLAN_BSSID_EX;
__inline static uint get_WLAN_BSSID_EX_sz(WLAN_BSSID_EX *bss)
{
- uint t_len;
-
- t_len = sizeof (ULONG)
- + sizeof (NDIS_802_11_MAC_ADDRESS)
- + 2
- + sizeof (NDIS_802_11_SSID)
- + sizeof (ULONG)
- + sizeof (NDIS_802_11_RSSI)
- + sizeof (NDIS_802_11_NETWORK_TYPE)
- + sizeof (NDIS_802_11_CONFIGURATION)
- + sizeof (NDIS_802_11_NETWORK_INFRASTRUCTURE)
- + sizeof (NDIS_802_11_RATES_EX)
- //all new member add here
- + sizeof(WLAN_PHY_INFO)
- //all new member add here
- + sizeof (ULONG)
- + bss->IELength;
- return t_len;
-
+ return (sizeof(WLAN_BSSID_EX) - MAX_IE_SZ + bss->IELength);
}
struct wlan_network {
diff --git a/drivers/net/wireless/rtl8192cu/include/xmit_osdep.h b/drivers/net/wireless/rtl8192cu/include/xmit_osdep.h
index 7d28d43..e5848ec 100644
--- a/drivers/net/wireless/rtl8192cu/include/xmit_osdep.h
+++ b/drivers/net/wireless/rtl8192cu/include/xmit_osdep.h
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#ifndef __XMIT_OSDEP_H_
#define __XMIT_OSDEP_H_
@@ -56,6 +55,11 @@ IN UINT flags
#endif
+#ifdef PLATFORM_FREEBSD
+#define NR_XMITFRAME 256
+extern int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev);
+extern void rtw_xmit_entry_wrap (struct ifnet * pifp);
+#endif //PLATFORM_FREEBSD
#ifdef PLATFORM_LINUX
@@ -67,6 +71,7 @@ struct sta_xmit_priv;
struct xmit_frame;
struct xmit_buf;
+extern int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev);
extern int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev);
#endif
@@ -86,5 +91,5 @@ extern sint rtw_endofpktfile (struct pkt_file *pfile);
extern void rtw_os_pkt_complete(_adapter *padapter, _pkt *pkt);
extern void rtw_os_xmit_complete(_adapter *padapter, struct xmit_frame *pxframe);
-#endif //
+#endif //__XMIT_OSDEP_H_
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_cfg80211.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_cfg80211.c
index b592e27..5975d1e 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_cfg80211.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_cfg80211.c
@@ -1,6 +1,6 @@
/******************************************************************************
*
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
@@ -31,6 +31,8 @@
#include "ioctl_cfg80211.h"
+#define RTW_MAX_MGMT_TX_CNT (8)
+
#define RTW_SCAN_IE_LEN_MAX 2304
#define RTW_MAX_REMAIN_ON_CHANNEL_DURATION 65535 //ms
#define RTW_MAX_NUM_PMKIDS 4
@@ -42,6 +44,9 @@ static const u32 rtw_cipher_suites[] = {
WLAN_CIPHER_SUITE_WEP104,
WLAN_CIPHER_SUITE_TKIP,
WLAN_CIPHER_SUITE_CCMP,
+#ifdef CONFIG_IEEE80211W
+ WLAN_CIPHER_SUITE_AES_CMAC,
+#endif //CONFIG_IEEE80211W
};
#define RATETAB_ENT(_rate, _rateid, _flags) \
@@ -85,9 +90,12 @@ static struct ieee80211_rate rtw_rates[] = {
};
#define rtw_a_rates (rtw_rates + 4)
-#define rtw_a_rates_size 8
+#define RTW_A_RATES_NUM 8
#define rtw_g_rates (rtw_rates + 0)
-#define rtw_g_rates_size 12
+#define RTW_G_RATES_NUM 12
+
+#define RTW_2G_CHANNELS_NUM 14
+#define RTW_5G_CHANNELS_NUM 37
static struct ieee80211_channel rtw_2ghz_channels[] = {
CHAN2G(1, 2412, 0),
@@ -106,8 +114,6 @@ static struct ieee80211_channel rtw_2ghz_channels[] = {
CHAN2G(14, 2484, 0),
};
-//{{1,2,3,4,5,6,7,8,9,10,11,12,13,36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165},37}, // 0x12, RT_CHANNEL_DOMAIN_WORLD_WIDE37
-
static struct ieee80211_channel rtw_5ghz_a_channels[] = {
CHAN5G(34, 0), CHAN5G(36, 0),
CHAN5G(38, 0), CHAN5G(40, 0),
@@ -130,23 +136,116 @@ static struct ieee80211_channel rtw_5ghz_a_channels[] = {
CHAN5G(216, 0),
};
-static struct ieee80211_supported_band rtw_band_2ghz = {
- .band = IEEE80211_BAND_2GHZ,
- .channels = rtw_2ghz_channels,
- .n_channels = ARRAY_SIZE(rtw_2ghz_channels),
- .bitrates = rtw_g_rates,
- .n_bitrates = rtw_g_rates_size,
-};
-static struct ieee80211_supported_band rtw_band_5ghz = {
- .band = IEEE80211_BAND_5GHZ,
- .channels = rtw_5ghz_a_channels,
- .n_channels = ARRAY_SIZE(rtw_5ghz_a_channels),
- .bitrates = rtw_a_rates,
- .n_bitrates = rtw_a_rates_size,
-};
+void rtw_2g_channels_init(struct ieee80211_channel *channels)
+{
+ _rtw_memcpy((void*)channels, (void*)rtw_2ghz_channels,
+ sizeof(struct ieee80211_channel)*RTW_2G_CHANNELS_NUM
+ );
+}
+
+void rtw_5g_channels_init(struct ieee80211_channel *channels)
+{
+ _rtw_memcpy((void*)channels, (void*)rtw_5ghz_a_channels,
+ sizeof(struct ieee80211_channel)*RTW_5G_CHANNELS_NUM
+ );
+}
+
+void rtw_2g_rates_init(struct ieee80211_rate *rates)
+{
+ _rtw_memcpy(rates, rtw_g_rates,
+ sizeof(struct ieee80211_rate)*RTW_G_RATES_NUM
+ );
+}
+
+void rtw_5g_rates_init(struct ieee80211_rate *rates)
+{
+ _rtw_memcpy(rates, rtw_a_rates,
+ sizeof(struct ieee80211_rate)*RTW_A_RATES_NUM
+ );
+}
+
+struct ieee80211_supported_band *rtw_spt_band_alloc(
+ enum ieee80211_band band
+ )
+{
+ struct ieee80211_supported_band *spt_band = NULL;
+ int n_channels, n_bitrates;
+
+ if(band == IEEE80211_BAND_2GHZ)
+ {
+ n_channels = RTW_2G_CHANNELS_NUM;
+ n_bitrates = RTW_G_RATES_NUM;
+ }
+ else if(band == IEEE80211_BAND_5GHZ)
+ {
+ n_channels = RTW_5G_CHANNELS_NUM;
+ n_bitrates = RTW_A_RATES_NUM;
+ }
+ else
+ {
+ goto exit;
+ }
+
+ spt_band = (struct ieee80211_supported_band *)rtw_zmalloc(
+ sizeof(struct ieee80211_supported_band)
+ + sizeof(struct ieee80211_channel)*n_channels
+ + sizeof(struct ieee80211_rate)*n_bitrates
+ );
+ if(!spt_band)
+ goto exit;
+
+ spt_band->channels = (struct ieee80211_channel*)(((u8*)spt_band)+sizeof(struct ieee80211_supported_band));
+ spt_band->bitrates= (struct ieee80211_rate*)(((u8*)spt_band->channels)+sizeof(struct ieee80211_channel)*n_channels);
+ spt_band->band = band;
+ spt_band->n_channels = n_channels;
+ spt_band->n_bitrates = n_bitrates;
+
+ if(band == IEEE80211_BAND_2GHZ)
+ {
+ rtw_2g_channels_init(spt_band->channels);
+ rtw_2g_rates_init(spt_band->bitrates);
+ }
+ else if(band == IEEE80211_BAND_5GHZ)
+ {
+ rtw_5g_channels_init(spt_band->channels);
+ rtw_5g_rates_init(spt_band->bitrates);
+ }
+
+ //spt_band.ht_cap
+
+exit:
+
+ return spt_band;
+}
+
+void rtw_spt_band_free(struct ieee80211_supported_band *spt_band)
+{
+ u32 size;
+
+ if(!spt_band)
+ return;
+
+ if(spt_band->band == IEEE80211_BAND_2GHZ)
+ {
+ size = sizeof(struct ieee80211_supported_band)
+ + sizeof(struct ieee80211_channel)*RTW_2G_CHANNELS_NUM
+ + sizeof(struct ieee80211_rate)*RTW_G_RATES_NUM;
+ }
+ else if(spt_band->band == IEEE80211_BAND_5GHZ)
+ {
+ size = sizeof(struct ieee80211_supported_band)
+ + sizeof(struct ieee80211_channel)*RTW_5G_CHANNELS_NUM
+ + sizeof(struct ieee80211_rate)*RTW_A_RATES_NUM;
+ }
+ else
+ {
+
+ }
+ rtw_mfree((u8*)spt_band, size);
+}
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
static const struct ieee80211_txrx_stypes
rtw_cfg80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
[NL80211_IFTYPE_ADHOC] = {
@@ -217,6 +316,7 @@ static int rtw_ieee80211_channel_to_frequency(int chan, int band)
}
}
+#define MAX_BSSINFO_LEN 1000
static int rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_network *pnetwork)
{
int ret=0;
@@ -231,30 +331,102 @@ static int rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_network *pnet
u8 *notify_ie;
size_t notify_ielen;
s32 notify_signal;
- u8 buf[768], *pbuf;
- size_t len;
+ u8 buf[MAX_BSSINFO_LEN], *pbuf;
+ size_t len,bssinf_len=0;
struct rtw_ieee80211_hdr *pwlanhdr;
unsigned short *fctrl;
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
struct wireless_dev *wdev = padapter->rtw_wdev;
struct wiphy *wiphy = wdev->wiphy;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- //printk("%s\n", __func__);
-
+ //DBG_8192C("%s\n", __func__);
- channel = pnetwork->network.Configuration.DSConfig;
- if (channel <= RTW_CH_MAX_2G_CHANNEL)
+ bssinf_len = pnetwork->network.IELength+sizeof (struct rtw_ieee80211_hdr_3addr);
+ if(bssinf_len > MAX_BSSINFO_LEN){
+ DBG_871X("%s IE Length too long > %d byte \n",__FUNCTION__,MAX_BSSINFO_LEN);
+ goto exit;
+ }
+
+ //To reduce PBC Overlap rate
+ //_enter_critical_bh(&pwdev_priv->scan_req_lock, &irqL);
+ if(wdev_to_priv(wdev)->scan_request != NULL)
{
- //band = wiphy->bands[IEEE80211_BAND_2GHZ];
+ u8 *psr=NULL, sr = 0;
+ NDIS_802_11_SSID *pssid = &pnetwork->network.Ssid;
+ struct cfg80211_scan_request *request = wdev_to_priv(wdev)->scan_request;
+ struct cfg80211_ssid *ssids = request->ssids;
+ u32 wpsielen=0;
+ u8 *wpsie=NULL;
+
+ wpsie = rtw_get_wps_ie(pnetwork->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_IE_LENGTH_, NULL, &wpsielen);
+
+ if(wpsie && wpsielen>0)
+ psr = rtw_get_wps_attr_content(wpsie, wpsielen, WPS_ATTR_SELECTED_REGISTRAR, (u8*)(&sr), NULL);
+
+ if (sr != 0)
+ {
+ if(request->n_ssids == 1 && request->n_channels == 1) // it means under processing WPS
+ {
+ DBG_8192C("ssid=%s, len=%d\n", pssid->Ssid, pssid->SsidLength);
+
+ if(pssid->SsidLength == ssids[0].ssid_len &&
+ _rtw_memcmp(pssid->Ssid, ssids[0].ssid, ssids[0].ssid_len))
+ {
+ DBG_871X("%s, got sr and ssid match!\n", __func__);
+ }
+ else
+ {
+ if(psr !=NULL)
+ *psr = 0; //clear sr
+
+#if 0
+ WLAN_BSSID_EX *pselect_network = &pnetwork->network;
+ struct cfg80211_bss *pselect_bss = NULL;
+ struct ieee80211_channel *notify_channel = NULL;
+ u32 freq;
+
+ DBG_871X("%s, got sr, but ssid mismatch, to remove this bss\n", __func__);
+
+ if (pselect_network->Configuration.DSConfig <= RTW_CH_MAX_2G_CHANNEL)
+ freq = rtw_ieee80211_channel_to_frequency(pselect_network->Configuration.DSConfig, IEEE80211_BAND_2GHZ);
+ else
+ freq = rtw_ieee80211_channel_to_frequency(pselect_network->Configuration.DSConfig, IEEE80211_BAND_5GHZ);
+
+ notify_channel = ieee80211_get_channel(wiphy, freq);
+ pselect_bss = cfg80211_get_bss(wiphy, NULL/*notify_channel*/,
+ pselect_network->MacAddress, pselect_network->Ssid.Ssid,
+ pselect_network->Ssid.SsidLength, 0/*WLAN_CAPABILITY_ESS*/,
+ 0/*WLAN_CAPABILITY_ESS*/);
+
+ if(pselect_bss)
+ {
+ DBG_871X("%s, got bss for cfg80211 for unlinking bss\n", __func__);
+
+ cfg80211_unlink_bss(wiphy, pselect_bss);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
+ cfg80211_put_bss(wiphy, pselect_bss);
+#else
+ cfg80211_put_bss(pselect_bss);
+#endif
+
+ }
+
+ goto exit;
+#endif
+ }
+ }
+ }
+ }
+ //_exit_critical_bh(&pwdev_priv->scan_req_lock, &irqL);
+
+ channel = pnetwork->network.Configuration.DSConfig;
+ if (channel <= RTW_CH_MAX_2G_CHANNEL)
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
- }
else
- {
- //band = wiphy->bands[IEEE80211_BAND_5GHZ];
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
- }
notify_channel = ieee80211_get_channel(wiphy, freq);
@@ -267,53 +439,59 @@ static int rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_network *pnet
notify_ie = pnetwork->network.IEs+_FIXED_IE_LENGTH_;
notify_ielen = pnetwork->network.IELength-_FIXED_IE_LENGTH_;
-
- //notify_signal = (s16)le16_to_cpu(bi->RSSI) * 100;
//We've set wiphy's signal_type as CFG80211_SIGNAL_TYPE_MBM: signal strength in mBm (100*dBm)
- notify_signal = 100*translate_percentage_to_dbm(pnetwork->network.PhyInfo.SignalStrength);//dbm
+ if ( check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE &&
+ is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network)) {
+ notify_signal = 100*translate_percentage_to_dbm(padapter->recvpriv.signal_strength);//dbm
+ } else {
+ notify_signal = 100*translate_percentage_to_dbm(pnetwork->network.PhyInfo.SignalStrength);//dbm
+ }
/*
- printk("bssid: %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n",
+ DBG_8192C("bssid: %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n",
pnetwork->network.MacAddress[0], pnetwork->network.MacAddress[1], pnetwork->network.MacAddress[2],
pnetwork->network.MacAddress[3], pnetwork->network.MacAddress[4], pnetwork->network.MacAddress[5]);
- printk("Channel: %d(%d)\n", channel, freq);
- printk("Capability: %X\n", notify_capability);
- printk("Beacon interval: %d\n", notify_interval);
- printk("Signal: %d\n", notify_signal);
- printk("notify_timestamp: %#018llx\n", notify_timestamp);
+ DBG_8192C("Channel: %d(%d)\n", channel, freq);
+ DBG_8192C("Capability: %X\n", notify_capability);
+ DBG_8192C("Beacon interval: %d\n", notify_interval);
+ DBG_8192C("Signal: %d\n", notify_signal);
+ DBG_8192C("notify_timestamp: %#018llx\n", notify_timestamp);
*/
pbuf = buf;
+
pwlanhdr = (struct rtw_ieee80211_hdr *)pbuf;
fctrl = &(pwlanhdr->frame_ctl);
- *(fctrl) = 0;
-
+ *(fctrl) = 0;
+
SetSeqNum(pwlanhdr, 0/*pmlmeext->mgnt_seq*/);
//pmlmeext->mgnt_seq++;
-
- if (pnetwork->network.Reserved[0] == 1) { // WIFI_BEACON
+ if (pnetwork->network.Reserved[0] == 1) { // WIFI_BEACON
_rtw_memcpy(pwlanhdr->addr1, bc_addr, ETH_ALEN);
-
SetFrameSubType(pbuf, WIFI_BEACON);
-
} else {
-
- _rtw_memcpy(pwlanhdr->addr1, myid(&(padapter->eeprompriv)), ETH_ALEN);
-
+ _rtw_memcpy(pwlanhdr->addr1, myid(&(padapter->eeprompriv)), ETH_ALEN);
SetFrameSubType(pbuf, WIFI_PROBERSP);
}
_rtw_memcpy(pwlanhdr->addr2, pnetwork->network.MacAddress, ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr3, pnetwork->network.MacAddress, ETH_ALEN);
-
+
pbuf += sizeof(struct rtw_ieee80211_hdr_3addr);
len = sizeof (struct rtw_ieee80211_hdr_3addr);
_rtw_memcpy(pbuf, pnetwork->network.IEs, pnetwork->network.IELength);
len += pnetwork->network.IELength;
+
+ //#ifdef CONFIG_P2P
+ //if(rtw_get_p2p_ie(pnetwork->network.IEs+12, pnetwork->network.IELength-12, NULL, NULL))
+ //{
+ // DBG_8192C("%s, got p2p_ie\n", __func__);
+ //}
+ //#endif
#if 1
@@ -327,26 +505,96 @@ static int rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_network *pnet
#endif
if (unlikely(!bss)) {
- printk("rtw_cfg80211_inform_bss error\n");
+ DBG_8192C("rtw_cfg80211_inform_bss error\n");
return -EINVAL;
}
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38))
+#ifndef COMPAT_KERNEL_RELEASE
+ //patch for cfg80211, update beacon ies to information_elements
+ if (pnetwork->network.Reserved[0] == 1) { // WIFI_BEACON
+
+ if(bss->len_information_elements != bss->len_beacon_ies)
+ {
+ bss->information_elements = bss->beacon_ies;
+ bss->len_information_elements = bss->len_beacon_ies;
+ }
+ }
+#endif //COMPAT_KERNEL_RELEASE
+#endif //LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+
+/*
+ {
+ if( bss->information_elements == bss->proberesp_ies)
+ {
+ if( bss->len_information_elements != bss->len_proberesp_ies)
+ {
+ DBG_8192C("error!, len_information_elements != bss->len_proberesp_ies\n");
+ }
+
+ }
+ else if(bss->len_information_elements < bss->len_beacon_ies)
+ {
+ bss->information_elements = bss->beacon_ies;
+ bss->len_information_elements = bss->len_beacon_ies;
+ }
+ }
+*/
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
+ cfg80211_put_bss(wiphy, bss);
+#else
+ cfg80211_put_bss(bss);
+#endif
+
+exit:
return ret;
}
+/*
+ Check the given bss is valid by kernel API cfg80211_get_bss()
+ @padapter : the given adapter
+
+ return _TRUE if bss is valid, _FALSE for not found.
+*/
+int rtw_cfg80211_check_bss(_adapter *padapter)
+{
+ WLAN_BSSID_EX *pnetwork = &(padapter->mlmeextpriv.mlmext_info.network);
+ struct cfg80211_bss *bss = NULL;
+ struct ieee80211_channel *notify_channel = NULL;
+ u32 freq;
+
+ if (!(pnetwork) || !(padapter->rtw_wdev))
+ return _FALSE;
+
+ if (pnetwork->Configuration.DSConfig <= RTW_CH_MAX_2G_CHANNEL)
+ freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, IEEE80211_BAND_2GHZ);
+ else
+ freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, IEEE80211_BAND_5GHZ);
+
+ notify_channel = ieee80211_get_channel(padapter->rtw_wdev->wiphy, freq);
+ bss = cfg80211_get_bss(padapter->rtw_wdev->wiphy, notify_channel,
+ pnetwork->MacAddress, pnetwork->Ssid.Ssid,
+ pnetwork->Ssid.SsidLength,
+ WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS);
+
+ return (bss!=NULL);
+}
+
void rtw_cfg80211_indicate_connect(_adapter *padapter)
{
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct wlan_network *cur_network = &(pmlmepriv->cur_network);
struct wireless_dev *pwdev = padapter->rtw_wdev;
+#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif
+ struct cfg80211_bss *bss = NULL;
-
- printk("%s\n", __func__);
-
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
if (pwdev->iftype != NL80211_IFTYPE_STATION
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
&& pwdev->iftype != NL80211_IFTYPE_P2P_CLIENT
#endif
) {
@@ -355,33 +603,59 @@ void rtw_cfg80211_indicate_connect(_adapter *padapter)
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
return;
-
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+
+#ifdef CONFIG_P2P
+ if(pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
- rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
- printk("%s, role=%d, p2p_state=%d, pre_p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo), rtw_p2p_pre_state(pwdinfo));
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_CLIENT);
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
+ DBG_8192C("%s, role=%d, p2p_state=%d, pre_p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo), rtw_p2p_pre_state(pwdinfo));
+ }
}
+#endif //CONFIG_P2P
#ifdef CONFIG_LAYER2_ROAMING
- if(pmlmepriv->to_roaming > 0) {
- //rtw_cfg80211_inform_bss(padapter, cur_network);
+ if (rtw_to_roaming(padapter) > 0) {
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
+ struct wiphy *wiphy = pwdev->wiphy;
+ struct ieee80211_channel *notify_channel;
+ u32 freq;
+ u16 channel = cur_network->network.Configuration.DSConfig;
+
+ if (channel <= RTW_CH_MAX_2G_CHANNEL)
+ freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
+ else
+ freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
+
+ notify_channel = ieee80211_get_channel(wiphy, freq);
+ #endif
+
DBG_871X("%s call cfg80211_roamed\n", __FUNCTION__);
- cfg80211_roamed(padapter->pnetdev,
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
- NULL,
+ cfg80211_roamed(padapter->pnetdev
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
+ , notify_channel
#endif
- cur_network->network.MacAddress,
- cur_network->network.IEs+_FIXED_IE_LENGTH_, cur_network->network.IELength-_FIXED_IE_LENGTH_,
- NULL, 0, GFP_ATOMIC
- );
+ , cur_network->network.MacAddress
+ , pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2
+ , pmlmepriv->assoc_req_len-sizeof(struct rtw_ieee80211_hdr_3addr)-2
+ , pmlmepriv->assoc_rsp+sizeof(struct rtw_ieee80211_hdr_3addr)+6
+ , pmlmepriv->assoc_rsp_len-sizeof(struct rtw_ieee80211_hdr_3addr)-6
+ , GFP_ATOMIC);
}
else
#endif
{
- cfg80211_connect_result(padapter->pnetdev, cur_network->network.MacAddress, NULL, 0, NULL, 0,
- WLAN_STATUS_SUCCESS, GFP_ATOMIC/*GFP_KERNEL*/);
+ DBG_8192C("pwdev->sme_state(b)=%d\n", pwdev->sme_state);
+ cfg80211_connect_result(padapter->pnetdev, cur_network->network.MacAddress
+ , pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2
+ , pmlmepriv->assoc_req_len-sizeof(struct rtw_ieee80211_hdr_3addr)-2
+ , pmlmepriv->assoc_rsp+sizeof(struct rtw_ieee80211_hdr_3addr)+6
+ , pmlmepriv->assoc_rsp_len-sizeof(struct rtw_ieee80211_hdr_3addr)-6
+ , WLAN_STATUS_SUCCESS, GFP_ATOMIC);
+ DBG_8192C("pwdev->sme_state(a)=%d\n", pwdev->sme_state);
}
}
@@ -389,12 +663,14 @@ void rtw_cfg80211_indicate_disconnect(_adapter *padapter)
{
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct wireless_dev *pwdev = padapter->rtw_wdev;
+#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif
- printk("%s\n", __func__);
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
if (pwdev->iftype != NL80211_IFTYPE_STATION
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
&& pwdev->iftype != NL80211_IFTYPE_P2P_CLIENT
#endif
) {
@@ -404,28 +680,36 @@ void rtw_cfg80211_indicate_disconnect(_adapter *padapter)
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
return;
-
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+#ifdef CONFIG_P2P
+ if( pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- _cancel_timer_ex( &pwdinfo->find_phase_timer );
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ _cancel_timer_ex( &pwdinfo->find_phase_timer );
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
- rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
- printk("%s, role=%d, p2p_state=%d, pre_p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo), rtw_p2p_pre_state(pwdinfo));
+ DBG_8192C("%s, role=%d, p2p_state=%d, pre_p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo), rtw_p2p_pre_state(pwdinfo));
+ }
}
+#endif //CONFIG_P2P
- if(pwdev->sme_state==CFG80211_SME_CONNECTING)
- cfg80211_connect_result(padapter->pnetdev, NULL, NULL, 0, NULL, 0,
- WLAN_STATUS_UNSPECIFIED_FAILURE, GFP_ATOMIC/*GFP_KERNEL*/);
- else if(pwdev->sme_state==CFG80211_SME_CONNECTED)
- cfg80211_disconnected(padapter->pnetdev, 0,
- NULL, 0, GFP_ATOMIC);
- else
- printk("pwdev->sme_state=%d\n", pwdev->sme_state);
+ if (!padapter->mlmepriv.not_indic_disco) {
+ DBG_8192C("pwdev->sme_state(b)=%d\n", pwdev->sme_state);
+ if(pwdev->sme_state==CFG80211_SME_CONNECTING)
+ cfg80211_connect_result(padapter->pnetdev, NULL, NULL, 0, NULL, 0,
+ WLAN_STATUS_UNSPECIFIED_FAILURE, GFP_ATOMIC/*GFP_KERNEL*/);
+ else if(pwdev->sme_state==CFG80211_SME_CONNECTED)
+ cfg80211_disconnected(padapter->pnetdev, 0, NULL, 0, GFP_ATOMIC);
+ //else
+ //DBG_8192C("pwdev->sme_state=%d\n", pwdev->sme_state);
+
+ DBG_8192C("pwdev->sme_state(a)=%d\n", pwdev->sme_state);
+ }
}
@@ -493,6 +777,8 @@ static int set_group_key(_adapter *padapter, u8 *key, u8 alg, int keyid)
_rtw_memset(psetkeyparm, 0, sizeof(struct setkey_parm));
psetkeyparm->keyid=(u8)keyid;
+ if (is_wep_enc(alg))
+ padapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid);
psetkeyparm->algorithm = alg;
@@ -558,7 +844,6 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
{
int ret = 0;
u32 wep_key_idx, wep_key_len,wep_total_len;
- NDIS_802_11_WEP *pwep = NULL;
struct sta_info *psta = NULL, *pbcmc_sta = NULL;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
@@ -624,67 +909,33 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
goto exit;
}
-
if (wep_key_len > 0)
{
wep_key_len = wep_key_len <= 5 ? 5 : 13;
- wep_total_len = wep_key_len + FIELD_OFFSET(NDIS_802_11_WEP, KeyMaterial);
- pwep =(NDIS_802_11_WEP *)rtw_malloc(wep_total_len);
- if(pwep == NULL){
- DBG_8192C(" r871x_set_encryption: pwep allocate fail !!!\n");
- goto exit;
- }
-
- _rtw_memset(pwep, 0, wep_total_len);
-
- pwep->KeyLength = wep_key_len;
- pwep->Length = wep_total_len;
-
}
- pwep->KeyIndex = wep_key_idx;
-
- _rtw_memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength);
-
- if(param->u.crypt.set_tx)
+ if (psecuritypriv->bWepDefaultKeyIdxSet == 0)
{
- DBG_8192C("wep, set_tx=1\n");
+ //wep default key has not been set, so use this key index as default key.
psecuritypriv->ndisencryptstatus = Ndis802_11Encryption1Enabled;
psecuritypriv->dot11PrivacyAlgrthm=_WEP40_;
psecuritypriv->dot118021XGrpPrivacy=_WEP40_;
- if(pwep->KeyLength==13)
+ if(wep_key_len == 13)
{
psecuritypriv->dot11PrivacyAlgrthm=_WEP104_;
psecuritypriv->dot118021XGrpPrivacy=_WEP104_;
}
-
psecuritypriv->dot11PrivacyKeyIndex = wep_key_idx;
-
- _rtw_memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength);
-
- psecuritypriv->dot11DefKeylen[wep_key_idx]=pwep->KeyLength;
-
- set_wep_key(padapter, pwep->KeyMaterial, pwep->KeyLength, wep_key_idx);
-
-
}
- else
- {
- DBG_8192C("wep, set_tx=0\n");
- //don't update "psecuritypriv->dot11PrivacyAlgrthm" and
- //"psecuritypriv->dot11PrivacyKeyIndex=keyid", but can rtw_set_key to cam
+ _rtw_memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len);
- _rtw_memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength);
+ psecuritypriv->dot11DefKeylen[wep_key_idx] = wep_key_len;
- psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->KeyLength;
-
- set_wep_key(padapter, pwep->KeyMaterial, pwep->KeyLength, wep_key_idx);
-
- }
+ set_wep_key(padapter, param->u.crypt.key, wep_key_len, wep_key_idx);
goto exit;
@@ -693,8 +944,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
if(!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) // //group key
{
- //if(param->u.crypt.set_tx == 1)
- if(param->u.crypt.set_tx == 0)
+ if(param->u.crypt.set_tx == 0) //group key
{
if(strcmp(param->u.crypt.alg, "WEP") == 0)
{
@@ -765,7 +1015,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
{
if(check_fwstate(pmlmepriv, WIFI_AP_STATE))
{
- if(param->u.crypt.set_tx ==1)
+ if(param->u.crypt.set_tx ==1) //pairwise key
{
_rtw_memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
@@ -874,11 +1124,6 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
exit:
- if(pwep)
- {
- rtw_mfree((u8 *)pwep, wep_total_len);
- }
-
return ret;
}
@@ -888,7 +1133,6 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, struct ieee_param
{
int ret = 0;
u32 wep_key_idx, wep_key_len,wep_total_len;
- NDIS_802_11_WEP *pwep = NULL;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct security_priv *psecuritypriv = &padapter->securitypriv;
@@ -898,7 +1142,7 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, struct ieee_param
_func_enter_;
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
param->u.crypt.err = 0;
param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0';
@@ -913,9 +1157,13 @@ _func_enter_;
param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff)
{
- if (param->u.crypt.idx >= WEP_KEYS)
+ if (param->u.crypt.idx >= WEP_KEYS
+#ifdef CONFIG_IEEE80211W
+ && param->u.crypt.idx > BIP_MAX_KEYID
+#endif //CONFIG_IEEE80211W
+ )
{
- ret = -EINVAL;
+ ret = -EINVAL;
goto exit;
}
} else {
@@ -928,77 +1176,39 @@ _func_enter_;
RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("wpa_set_encryption, crypt.alg = WEP\n"));
DBG_8192C("wpa_set_encryption, crypt.alg = WEP\n");
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
- padapter->securitypriv.dot11PrivacyAlgrthm=_WEP40_;
- padapter->securitypriv.dot118021XGrpPrivacy=_WEP40_;
-
wep_key_idx = param->u.crypt.idx;
wep_key_len = param->u.crypt.key_len;
- RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_info_,("(1)wep_key_idx=%d\n", wep_key_idx));
- DBG_8192C("(1)wep_key_idx=%d\n", wep_key_idx);
-
- if (wep_key_idx > WEP_KEYS)
- return -EINVAL;
-
- RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_info_,("(2)wep_key_idx=%d\n", wep_key_idx));
-
- if (wep_key_len > 0)
+ if ((wep_key_idx > WEP_KEYS) || (wep_key_len <= 0))
{
- wep_key_len = wep_key_len <= 5 ? 5 : 13;
- wep_total_len = wep_key_len + FIELD_OFFSET(NDIS_802_11_WEP, KeyMaterial);
- pwep =(NDIS_802_11_WEP *) rtw_malloc(wep_total_len);
- if(pwep == NULL){
- RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,(" wpa_set_encryption: pwep allocate fail !!!\n"));
- goto exit;
- }
-
- _rtw_memset(pwep, 0, wep_total_len);
-
- pwep->KeyLength = wep_key_len;
- pwep->Length = wep_total_len;
-
- if(wep_key_len==13)
- {
- padapter->securitypriv.dot11PrivacyAlgrthm=_WEP104_;
- padapter->securitypriv.dot118021XGrpPrivacy=_WEP104_;
- }
- }
- else {
ret = -EINVAL;
goto exit;
}
- pwep->KeyIndex = wep_key_idx;
- pwep->KeyIndex |= 0x80000000;
+ if (psecuritypriv->bWepDefaultKeyIdxSet == 0)
+ {
+ //wep default key has not been set, so use this key index as default key.
- _rtw_memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength);
+ wep_key_len = wep_key_len <= 5 ? 5 : 13;
- if(param->u.crypt.set_tx)
- {
- DBG_8192C("wep, set_tx=1\n");
+ psecuritypriv->ndisencryptstatus = Ndis802_11Encryption1Enabled;
+ psecuritypriv->dot11PrivacyAlgrthm = _WEP40_;
+ psecuritypriv->dot118021XGrpPrivacy = _WEP40_;
- if(rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL)
+ if(wep_key_len==13)
{
- ret = -EOPNOTSUPP ;
+ psecuritypriv->dot11PrivacyAlgrthm = _WEP104_;
+ psecuritypriv->dot118021XGrpPrivacy = _WEP104_;
}
+
+ psecuritypriv->dot11PrivacyKeyIndex = wep_key_idx;
}
- else
- {
- DBG_8192C("wep, set_tx=0\n");
- //don't update "psecuritypriv->dot11PrivacyAlgrthm" and
- //"psecuritypriv->dot11PrivacyKeyIndex=keyid", but can rtw_set_key to fw/cam
+ _rtw_memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len);
- if (wep_key_idx >= WEP_KEYS) {
- ret = -EOPNOTSUPP ;
- goto exit;
- }
+ psecuritypriv->dot11DefKeylen[wep_key_idx] = wep_key_len;
- _rtw_memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength);
- psecuritypriv->dot11DefKeylen[wep_key_idx]=pwep->KeyLength;
- rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0);
- }
+ rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0);
goto exit;
}
@@ -1008,14 +1218,14 @@ _func_enter_;
struct sta_info * psta,*pbcmc_sta;
struct sta_priv * pstapriv = &padapter->stapriv;
- //printk("%s, : dot11AuthAlgrthm == dot11AuthAlgrthm_8021X \n", __func__);
+ //DBG_8192C("%s, : dot11AuthAlgrthm == dot11AuthAlgrthm_8021X \n", __func__);
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == _TRUE) //sta mode
{
psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv));
if (psta == NULL) {
//DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail \n"));
- printk("%s, : Obtain Sta_info fail \n", __func__);
+ DBG_8192C("%s, : Obtain Sta_info fail \n", __func__);
}
else
{
@@ -1033,7 +1243,7 @@ _func_enter_;
if(param->u.crypt.set_tx ==1)//pairwise key
{
- printk("%s, : param->u.crypt.set_tx ==1 \n", __func__);
+ DBG_8192C("%s, : param->u.crypt.set_tx ==1 \n", __func__);
_rtw_memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
@@ -1047,29 +1257,50 @@ _func_enter_;
//_set_timer(&padapter->securitypriv.tkip_timer, 50);
}
- //DEBUG_ERR(("\n param->u.crypt.key_len=%d\n",param->u.crypt.key_len));
- //DEBUG_ERR(("\n ~~~~stastakey:unicastkey\n"));
- DBG_871X("\n ~~~~stastakey:unicastkey\n");
+ //DEBUG_ERR((" param->u.crypt.key_len=%d\n",param->u.crypt.key_len));
+ DBG_871X(" ~~~~set sta key:unicastkey\n");
rtw_setstakey_cmd(padapter, (unsigned char *)psta, _TRUE);
}
else//group key
- {
- _rtw_memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
- _rtw_memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]),8);
- _rtw_memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]),8);
- padapter->securitypriv.binstallGrpkey = _TRUE;
- //DEBUG_ERR(("\n param->u.crypt.key_len=%d\n", param->u.crypt.key_len));
- //DEBUG_ERR(("\n ~~~~stastakey:groupkey\n"));
- DBG_871X("\n ~~~~stastakey:groupkey\n");
-
- padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx;
-
- rtw_set_key(padapter,&padapter->securitypriv,param->u.crypt.idx, 1);
+ {
+ if(strcmp(param->u.crypt.alg, "TKIP") == 0 || strcmp(param->u.crypt.alg, "CCMP") == 0)
+ {
+ _rtw_memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
+ _rtw_memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]),8);
+ _rtw_memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]),8);
+ padapter->securitypriv.binstallGrpkey = _TRUE;
+ //DEBUG_ERR((" param->u.crypt.key_len=%d\n", param->u.crypt.key_len));
+ DBG_871X(" ~~~~set sta key:groupkey\n");
+
+ padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx;
+
+ rtw_set_key(padapter,&padapter->securitypriv,param->u.crypt.idx, 1);
+ }
+#ifdef CONFIG_IEEE80211W
+ else if(strcmp(param->u.crypt.alg, "BIP") == 0)
+ {
+ int no;
+ //DBG_871X("BIP key_len=%d , index=%d @@@@@@@@@@@@@@@@@@\n", param->u.crypt.key_len, param->u.crypt.idx);
+ //save the IGTK key, length 16 bytes
+ _rtw_memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
+ /*DBG_871X("IGTK key below:\n");
+ for(no=0;no<16;no++)
+ printk(" %02x ", padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey[no]);
+ DBG_871X("\n");*/
+ padapter->securitypriv.dot11wBIPKeyid = param->u.crypt.idx;
+ padapter->securitypriv.binstallBIPkey = _TRUE;
+ DBG_871X(" ~~~~set sta key:IGKT\n");
+ }
+#endif //CONFIG_IEEE80211W
+
#ifdef CONFIG_P2P
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_PROVISIONING_ING))
+ if(pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- rtw_p2p_set_state(pwdinfo, P2P_STATE_PROVISIONING_DONE);
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_PROVISIONING_ING))
+ {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_PROVISIONING_DONE);
+ }
}
#endif //CONFIG_P2P
@@ -1101,11 +1332,7 @@ _func_enter_;
exit:
- printk("%s, ret=%d\n", __func__, ret);
-
- if (pwep) {
- rtw_mfree((u8 *)pwep,wep_total_len);
- }
+ DBG_8192C("%s, ret=%d\n", __func__, ret);
_func_exit_;
@@ -1113,7 +1340,7 @@ exit:
}
static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
u8 key_index, bool pairwise, const u8 *mac_addr,
#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
u8 key_index, const u8 *mac_addr,
@@ -1128,22 +1355,15 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
_adapter *padapter = wiphy_to_adapter(wiphy);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
-
- printk("%s, Adding key for %pM\n", __func__, mac_addr);
-
- printk("cipher=0x%x\n", params->cipher);
-
- printk("key_len=0x%x\n", params->key_len);
-
- printk("seq_len=0x%x\n", params->seq_len);
-
- printk("key_index=%d\n", key_index);
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- printk("pairwise=%d\n", pairwise);
+ DBG_871X(FUNC_NDEV_FMT" adding key for %pM\n", FUNC_NDEV_ARG(ndev), mac_addr);
+ DBG_871X("cipher=0x%x\n", params->cipher);
+ DBG_871X("key_len=0x%x\n", params->key_len);
+ DBG_871X("seq_len=0x%x\n", params->seq_len);
+ DBG_871X("key_index=%d\n", key_index);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ DBG_871X("pairwise=%d\n", pairwise);
#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
-
param_len = sizeof(struct ieee_param) + params->key_len;
param = (struct ieee_param *)rtw_malloc(param_len);
if (param == NULL)
@@ -1170,6 +1390,11 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
case WLAN_CIPHER_SUITE_CCMP:
alg_name = "CCMP";
break;
+#ifdef CONFIG_IEEE80211W
+ case WLAN_CIPHER_SUITE_AES_CMAC:
+ alg_name = "BIP";
+ break;
+#endif //CONFIG_IEEE80211W
default:
return -ENOTSUPP;
}
@@ -1179,9 +1404,9 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
if (!mac_addr || is_broadcast_ether_addr(mac_addr))
{
- param->u.crypt.set_tx = 0;
+ param->u.crypt.set_tx = 0; //for wpa/wpa2 group key
} else {
- param->u.crypt.set_tx = 1;
+ param->u.crypt.set_tx = 1; //for wpa/wpa2 pairwise key
}
@@ -1199,12 +1424,11 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
_rtw_memcpy(param->u.crypt.key, params->key, params->key_len);
}
- //if(rtw_wdev->iftype == NL80211_IFTYPE_STATION)
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
{
ret = rtw_cfg80211_set_encryption(ndev, param, param_len);
}
- else if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)//else if(rtw_wdev->iftype == NL80211_IFTYPE_AP)
+ else if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
#ifdef CONFIG_AP_MODE
if(mac_addr)
@@ -1215,7 +1439,7 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
}
else
{
- printk("error! fw_state=0x%x, iftype=%d\n", pmlmepriv->fw_state, rtw_wdev->iftype);
+ DBG_8192C("error! fw_state=0x%x, iftype=%d\n", pmlmepriv->fw_state, rtw_wdev->iftype);
}
@@ -1229,7 +1453,7 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
}
static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
u8 key_index, bool pairwise, const u8 *mac_addr,
#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
u8 key_index, const u8 *mac_addr,
@@ -1256,123 +1480,165 @@ static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev,
callback(cookie, &params);
return key->key_len ? 0 : -ENOENT;
-#endif
- printk("%s\n", __func__);
+#endif
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
u8 key_index, bool pairwise, const u8 *mac_addr)
#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
u8 key_index, const u8 *mac_addr)
#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
{
-#if 0
- struct iwm_priv *iwm = ndev_to_iwm(ndev);
- struct iwm_key *key = &iwm->keys[key_index];
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
- if (!iwm->keys[key_index].key_len) {
- IWM_DBG_WEXT(iwm, DBG, "Key %d not used\n", key_index);
- return 0;
- }
+ DBG_871X(FUNC_NDEV_FMT" key_index=%d\n", FUNC_NDEV_ARG(ndev), key_index);
- if (key_index == iwm->default_key)
- iwm->default_key = -1;
+ if (key_index == psecuritypriv->dot11PrivacyKeyIndex)
+ {
+ //clear the flag of wep default key set.
+ psecuritypriv->bWepDefaultKeyIdxSet = 0;
+ }
- return iwm_set_key(iwm, 1, key);
-#endif
- printk("%s\n", __func__);
return 0;
}
static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
- struct net_device *ndev,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- u8 key_index, bool unicast, bool multicast)
-#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- u8 key_index)
-#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
+ struct net_device *ndev, u8 key_index
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+ , bool unicast, bool multicast
+ #endif
+ )
{
-#if 0
- struct iwm_priv *iwm = ndev_to_iwm(ndev);
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
- IWM_DBG_WEXT(iwm, DBG, "Default key index is: %d\n", key_index);
+ DBG_871X(FUNC_NDEV_FMT" key_index=%d"
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+ ", unicast=%d, multicast=%d"
+ #endif
+ ".\n", FUNC_NDEV_ARG(ndev), key_index
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+ , unicast, multicast
+ #endif
+ );
- if (!iwm->keys[key_index].key_len) {
- IWM_ERR(iwm, "Key %d not used\n", key_index);
- return -EINVAL;
- }
+ if ((key_index < WEP_KEYS) && ((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) || (psecuritypriv->dot11PrivacyAlgrthm == _WEP104_))) //set wep default key
+ {
+ psecuritypriv->ndisencryptstatus = Ndis802_11Encryption1Enabled;
- iwm->default_key = key_index;
+ psecuritypriv->dot11PrivacyKeyIndex = key_index;
+
+ psecuritypriv->dot11PrivacyAlgrthm = _WEP40_;
+ psecuritypriv->dot118021XGrpPrivacy = _WEP40_;
+ if (psecuritypriv->dot11DefKeylen[key_index] == 13)
+ {
+ psecuritypriv->dot11PrivacyAlgrthm = _WEP104_;
+ psecuritypriv->dot118021XGrpPrivacy = _WEP104_;
+ }
+
+ psecuritypriv->bWepDefaultKeyIdxSet = 1; //set the flag to represent that wep default key has been set
+ }
- return iwm_set_tx_key(iwm, key_index);
-#endif
- printk("%s\n", __func__);
return 0;
+
}
static int cfg80211_rtw_get_station(struct wiphy *wiphy,
struct net_device *ndev,
u8 *mac, struct station_info *sinfo)
{
+ int ret = 0;
_adapter *padapter = wiphy_to_adapter(wiphy);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct sta_info *psta = NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ sinfo->filled = 0;
+
+ if (!mac) {
+ DBG_871X(FUNC_NDEV_FMT" mac==%p\n", FUNC_NDEV_ARG(ndev), mac);
+ ret = -ENOENT;
+ goto exit;
+ }
- if(!mac) {
- DBG_871X("%s, mac==%p\n", __func__, mac);
- return -ENOENT;
+ psta = rtw_get_stainfo(pstapriv, mac);
+ if (psta == NULL) {
+ DBG_8192C("%s, sta_info is null\n", __func__);
+ ret = -ENOENT;
+ goto exit;
}
#ifdef CONFIG_DEBUG_CFG80211
- DBG_871X("%s, mac="MAC_FMT"\n", __func__, MAC_ARG(mac));
+ DBG_871X(FUNC_NDEV_FMT" mac="MAC_FMT"\n", FUNC_NDEV_ARG(ndev), MAC_ARG(mac));
#endif
//for infra./P2PClient mode
- if(check_fwstate(pmlmepriv, WIFI_STATION_STATE)
+ if( check_fwstate(pmlmepriv, WIFI_STATION_STATE)
&& check_fwstate(pmlmepriv, _FW_LINKED)
)
{
struct wlan_network *cur_network = &(pmlmepriv->cur_network);
-
- if (_rtw_memcmp(mac, cur_network->network.MacAddress, ETH_ALEN) == _FALSE)
- {
+
+ if (_rtw_memcmp(mac, cur_network->network.MacAddress, ETH_ALEN) == _FALSE) {
DBG_871X("%s, mismatch bssid="MAC_FMT"\n", __func__, MAC_ARG(cur_network->network.MacAddress));
- return -ENOENT;
+ ret = -ENOENT;
+ goto exit;
}
sinfo->filled |= STATION_INFO_SIGNAL;
sinfo->signal = translate_percentage_to_dbm(padapter->recvpriv.signal_strength);
sinfo->filled |= STATION_INFO_TX_BITRATE;
- sinfo->txrate.legacy = 10 * rtw_get_network_max_rate(padapter, &pmlmepriv->cur_network.network);
+ sinfo->txrate.legacy = rtw_get_cur_max_rate(padapter);
+
+ sinfo->filled |= STATION_INFO_RX_PACKETS;
+ sinfo->rx_packets = sta_rx_data_pkts(psta);
+
+ sinfo->filled |= STATION_INFO_TX_PACKETS;
+ sinfo->tx_packets = psta->sta_stats.tx_pkts;
+
}
-
+
//for Ad-Hoc/AP mode
if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)
- ||check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)
- ||check_fwstate(pmlmepriv, WIFI_AP_STATE) )
+ ||check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)
+ ||check_fwstate(pmlmepriv, WIFI_AP_STATE))
&& check_fwstate(pmlmepriv, _FW_LINKED)
)
{
- struct sta_info *psta = NULL;
- struct sta_priv *pstapriv = &padapter->stapriv;
-
- psta = rtw_get_stainfo(pstapriv, mac);
- if(psta == NULL)
- {
- printk("%s, sta_info is null\n", __func__);
- return -ENOENT;
- }
-
//TODO: should acquire station info...
}
- return 0;
+exit:
+ return ret;
}
extern int netdev_open(struct net_device *pnetdev);
+#ifdef CONFIG_CONCURRENT_MODE
+extern int netdev_if2_open(struct net_device *pnetdev);
+#endif
+/*
+enum nl80211_iftype {
+ NL80211_IFTYPE_UNSPECIFIED,
+ NL80211_IFTYPE_ADHOC, //1
+ NL80211_IFTYPE_STATION, //2
+ NL80211_IFTYPE_AP, //3
+ NL80211_IFTYPE_AP_VLAN,
+ NL80211_IFTYPE_WDS,
+ NL80211_IFTYPE_MONITOR, //6
+ NL80211_IFTYPE_MESH_POINT,
+ NL80211_IFTYPE_P2P_CLIENT, //8
+ NL80211_IFTYPE_P2P_GO, //9
+ //keep last
+ NUM_NL80211_IFTYPES,
+ NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
+};
+*/
static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
struct net_device *ndev,
enum nl80211_iftype type, u32 *flags,
@@ -1381,60 +1647,99 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
enum nl80211_iftype old_type;
NDIS_802_11_NETWORK_INFRASTRUCTURE networkType ;
_adapter *padapter = wiphy_to_adapter(wiphy);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct wireless_dev *rtw_wdev = wiphy_to_wdev(wiphy);
- struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _queue *queue = &pmlmepriv->scanned_queue;
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif
int ret = 0;
u8 change = _FALSE;
-
- DBG_871X("%s call netdev_open\n", __FUNCTION__);
- if(netdev_open(ndev) != 0) {
+ if (adapter_to_dvobj(padapter)->processing_dev_remove == _TRUE) {
ret= -EPERM;
goto exit;
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->adapter_type == SECONDARY_ADAPTER)
+ {
+ DBG_871X(FUNC_NDEV_FMT" call netdev_if2_open\n", FUNC_NDEV_ARG(ndev));
+ if(netdev_if2_open(ndev) != 0) {
+ ret= -EPERM;
+ goto exit;
+ }
+ }
+ else if(padapter->adapter_type == PRIMARY_ADAPTER)
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ DBG_871X(FUNC_NDEV_FMT" call netdev_open\n", FUNC_NDEV_ARG(ndev));
+ if(netdev_open(ndev) != 0) {
+ ret= -EPERM;
+ goto exit;
+ }
+ }
+
if(_FAIL == rtw_pwr_wakeup(padapter)) {
ret= -EPERM;
goto exit;
}
old_type = rtw_wdev->iftype;
- printk("%s, old_iftype=%d, new_iftype=%d\n", __func__, old_type, type);
-
-
+ DBG_871X(FUNC_NDEV_FMT" old_iftype=%d, new_iftype=%d\n",
+ FUNC_NDEV_ARG(ndev), old_type, type);
if(old_type != type)
+ {
change = _TRUE;
+ pmlmeext->action_public_rxseq = 0xffff;
+ pmlmeext->action_public_dialog_token = 0xff;
+ }
-
switch (type) {
case NL80211_IFTYPE_ADHOC:
networkType = Ndis802_11IBSS;
break;
+#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE))
+ case NL80211_IFTYPE_P2P_CLIENT:
+#endif
case NL80211_IFTYPE_STATION:
networkType = Ndis802_11Infrastructure;
- if(change && rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ #ifdef CONFIG_P2P
+ if(pwdinfo->driver_interface == DRIVER_CFG80211 )
{
+ if(change && rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ {
+ _cancel_timer_ex( &pwdinfo->find_phase_timer );
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
- _cancel_timer_ex( &pwdinfo->find_phase_timer );
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
-
- //it means remove GO and change mode from AP(GO) to station(P2P DEVICE)
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
- rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+ //it means remove GO and change mode from AP(GO) to station(P2P DEVICE)
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_DEVICE);
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
- printk("%s, role=%d, p2p_state=%d, pre_p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo), rtw_p2p_pre_state(pwdinfo));
-
+ DBG_8192C("%s, role=%d, p2p_state=%d, pre_p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo), rtw_p2p_pre_state(pwdinfo));
+ }
}
+ #endif //CONFIG_P2P
break;
+#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE))
+ case NL80211_IFTYPE_P2P_GO:
+#endif
case NL80211_IFTYPE_AP:
networkType = Ndis802_11APMode;
- if(change && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ #ifdef CONFIG_P2P
+ if(pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- //it means P2P Group created, we will be GO and change mode from P2P DEVICE to AP(GO)
- rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
- }
+ if(change && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ //it means P2P Group created, we will be GO and change mode from P2P DEVICE to AP(GO)
+ rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
+ }
+ }
+ #endif //CONFIG_P2P
break;
default:
return -EOPNOTSUPP;
@@ -1442,12 +1747,19 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
rtw_wdev->iftype = type;
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+ _enter_critical_bh(&queue->lock, &irqL);
+
if (rtw_set_802_11_infrastructure_mode(padapter, networkType) ==_FALSE)
{
rtw_wdev->iftype = old_type;
ret = -EPERM;
+ _exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
goto exit;
}
+ _exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
rtw_setopmode_cmd(padapter, networkType);
@@ -1465,18 +1777,27 @@ void rtw_cfg80211_indicate_scan_done(struct rtw_wdev_priv *pwdev_priv, bool abor
{
//struct cfg80211_scan_request *scan_request = pwdev_priv->scan_request;
-#ifdef CONFIG_DEBUG_CFG80211
+ #ifdef CONFIG_DEBUG_CFG80211
DBG_871X("%s with scan req\n", __FUNCTION__);
-#endif
+ #endif
//avoid WARN_ON(request != wiphy_to_dev(request->wiphy)->scan_req);
//if(scan_request == wiphy_to_dev(scan_request->wiphy)->scan_req)
+ if(pwdev_priv->scan_request->wiphy != pwdev_priv->rtw_wdev->wiphy)
+ {
+ DBG_8192C("error wiphy compare\n");
+ }
+ else
+ {
+ cfg80211_scan_done(pwdev_priv->scan_request, aborted);
+ }
- cfg80211_scan_done(pwdev_priv->scan_request, aborted);
pwdev_priv->scan_request = NULL;
} else {
- DBG_871X("%s without scan req\n", __FUNCTION__);
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("%s without scan req\n", __FUNCTION__);
+ #endif
}
_exit_critical_bh(&pwdev_priv->scan_req_lock, &irqL);
}
@@ -1498,46 +1819,7 @@ void rtw_cfg80211_surveydone_event_callback(_adapter *padapter)
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
#ifdef CONFIG_DEBUG_CFG80211
- printk("%s\n", __func__);
-#endif
-
-#if 0
- if(padapter->pwrctrlpriv.brfoffbyhw && padapter->bDriverStopped)
- {
- return;
- }
-
-#ifdef CONFIG_P2P
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- // P2P is enabled
- wait_for_surveydone = 200;
- }
- else
- {
- // P2P is disabled
- wait_for_surveydone = 100;
- }
-#else
- {
- wait_for_surveydone = 100;
- }
-#endif //CONFIG_P2P
-
-
- wait_status = _FW_UNDER_SURVEY
- #ifndef CONFIG_ANDROID
- |_FW_UNDER_LINKING
- #endif
- ;
-
- while(check_fwstate(pmlmepriv, wait_status) == _TRUE)
- {
- rtw_msleep_os(30);
- cnt++;
- if(cnt > wait_for_surveydone )
- break;
- }
+ DBG_8192C("%s\n", __func__);
#endif
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
@@ -1553,10 +1835,9 @@ void rtw_cfg80211_surveydone_event_callback(_adapter *padapter)
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
//report network only if the current channel set contains the channel to which this network belongs
- if( _TRUE == rtw_is_channel_set_contains_channel(padapter->mlmeextpriv.channel_set, pnetwork->network.Configuration.DSConfig)
- #ifdef CONFIG_VALIDATE_SSID
+ if(rtw_ch_set_search_ch(padapter->mlmeextpriv.channel_set, pnetwork->network.Configuration.DSConfig) >= 0
+ && rtw_mlme_band_check(padapter, pnetwork->network.Configuration.DSConfig) == _TRUE
&& _TRUE == rtw_validate_ssid(&(pnetwork->network.Ssid))
- #endif
)
{
//ev=translate_scan(padapter, a, pnetwork, ev, stop);
@@ -1568,44 +1849,24 @@ void rtw_cfg80211_surveydone_event_callback(_adapter *padapter)
}
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
-
- #if 0
- // Disable P2P Listen State
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- _cancel_timer_ex( &pwdinfo->find_phase_timer );
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
-
- //rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
- rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
-#endif
-
- if(pwrpriv->bips_processing == _FALSE){
- rtw_set_pwr_state_check_timer(pwrpriv);
- }
- }
- #endif
-
+
//call this after other things have been done
- rtw_indicate_scan_done(padapter, _FALSE);
-
+ rtw_cfg80211_indicate_scan_done(wdev_to_priv(padapter->rtw_wdev), _FALSE);
}
-static int rtw_cfg80211_set_probe_req_wpsp2pie(struct net_device *net, char *buf, int len)
+static int rtw_cfg80211_set_probe_req_wpsp2pie(_adapter *padapter, char *buf, int len)
{
int ret = 0;
uint wps_ielen = 0;
u8 *wps_ie;
u32 p2p_ielen = 0;
u8 *p2p_ie;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(net);
+ u32 wfd_ielen = 0;
+ u8 *wfd_ie;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, ielen=%d\n", __func__, len);
+ DBG_8192C("%s, ielen=%d\n", __func__, len);
#endif
if(len>0)
@@ -1613,7 +1874,7 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct net_device *net, char *buf
if((wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen)))
{
#ifdef CONFIG_DEBUG_CFG80211
- printk("probe_req_wps_ielen=%d\n", wps_ielen);
+ DBG_8192C("probe_req_wps_ielen=%d\n", wps_ielen);
#endif
if(pmlmepriv->wps_probe_req_ie)
@@ -1626,7 +1887,7 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct net_device *net, char *buf
pmlmepriv->wps_probe_req_ie = rtw_malloc(wps_ielen);
if ( pmlmepriv->wps_probe_req_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -1634,12 +1895,18 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct net_device *net, char *buf
pmlmepriv->wps_probe_req_ie_len = wps_ielen;
}
- buf += wps_ielen;
- len -= wps_ielen;
+ //buf += wps_ielen;
+ //len -= wps_ielen;
+
+ #ifdef CONFIG_P2P
if((p2p_ie=rtw_get_p2p_ie(buf, len, NULL, &p2p_ielen)))
{
+ struct wifidirect_info *wdinfo = &padapter->wdinfo;
+ u32 attr_contentlen = 0;
+ u8 listen_ch_attr[5];
+
#ifdef CONFIG_DEBUG_CFG80211
- printk("probe_req_p2p_ielen=%d\n", p2p_ielen);
+ DBG_8192C("probe_req_p2p_ielen=%d\n", p2p_ielen);
#endif
if(pmlmepriv->p2p_probe_req_ie)
@@ -1650,58 +1917,67 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct net_device *net, char *buf
pmlmepriv->p2p_probe_req_ie = NULL;
}
- pmlmepriv->p2p_probe_req_ie = rtw_malloc(len);
+ pmlmepriv->p2p_probe_req_ie = rtw_malloc(p2p_ielen);
if ( pmlmepriv->p2p_probe_req_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
_rtw_memcpy(pmlmepriv->p2p_probe_req_ie, p2p_ie, p2p_ielen);
pmlmepriv->p2p_probe_req_ie_len = p2p_ielen;
- }
-
- }
-
- return ret;
-
-}
-
-static void rtw_cfg80211_scan_abort(_adapter *padapter)
-{
- u32 cnt=0;
- u32 wait_for_surveydone;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s\n", __func__);
-#endif
+ if(rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_LISTEN_CH, (u8*)listen_ch_attr, (uint*) &attr_contentlen)
+ && attr_contentlen == 5)
+ {
+ if (wdinfo->listen_channel != listen_ch_attr[4]) {
+ DBG_871X(FUNC_ADPT_FMT" listen channel - country:%c%c%c, class:%u, ch:%u\n",
+ FUNC_ADPT_ARG(padapter), listen_ch_attr[0], listen_ch_attr[1], listen_ch_attr[2],
+ listen_ch_attr[3], listen_ch_attr[4]);
+ wdinfo->listen_channel = listen_ch_attr[4];
+ }
+ }
+ }
+ #endif //CONFIG_P2P
+
+ //buf += p2p_ielen;
+ //len -= p2p_ielen;
- wait_for_surveydone = 10;
+ #ifdef CONFIG_WFD
+ if(rtw_get_wfd_ie(buf, len, NULL, &wfd_ielen))
+ {
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("probe_req_wfd_ielen=%d\n", wfd_ielen);
+ #endif
- pmlmeext->scan_abort = _TRUE;
+ if(pmlmepriv->wfd_probe_req_ie)
+ {
+ u32 free_len = pmlmepriv->wfd_probe_req_ie_len;
+ pmlmepriv->wfd_probe_req_ie_len = 0;
+ rtw_mfree(pmlmepriv->wfd_probe_req_ie, free_len);
+ pmlmepriv->wfd_probe_req_ie = NULL;
+ }
- while(check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE)
- {
- printk("%s : fw_state=_FW_UNDER_SURVEY!\n", __func__);
+ pmlmepriv->wfd_probe_req_ie = rtw_malloc(wfd_ielen);
+ if ( pmlmepriv->wfd_probe_req_ie == NULL) {
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ return -EINVAL;
+
+ }
+ rtw_get_wfd_ie(buf, len, pmlmepriv->wfd_probe_req_ie, &pmlmepriv->wfd_probe_req_ie_len);
+ }
+ #endif //CONFIG_WFD
- rtw_msleep_os(20);
- cnt++;
- if(cnt > wait_for_surveydone )
- {
- printk("waiting for scan_abort time out!\n");
- break;
- }
}
- pmlmeext->scan_abort = _FALSE;
-
- rtw_cfg80211_indicate_scan_done(wdev_to_priv(padapter->rtw_wdev), _TRUE);
-
+ return ret;
+
}
-static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
- struct cfg80211_scan_request *request)
+static int cfg80211_rtw_scan(struct wiphy *wiphy
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))
+ , struct net_device *ndev
+ #endif
+ , struct cfg80211_scan_request *request)
{
int i;
u8 _status = _FALSE;
@@ -1709,11 +1985,14 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
_adapter *padapter = wiphy_to_adapter(wiphy);
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
NDIS_802_11_SSID ssid[RTW_SSID_SCAN_AMOUNT];
+ struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
_irqL irqL;
u8 *wps_ie=NULL;
uint wps_ielen=0;
u8 *p2p_ie=NULL;
uint p2p_ielen=0;
+ u8 survey_times=3;
+ u8 survey_times_for_one_ch=6;
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
#endif //CONFIG_P2P
@@ -1721,10 +2000,21 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_ssid *ssids = request->ssids;
int social_channel = 0, j = 0;
bool need_indicate_scan_done = _FALSE;
-
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s\n", __func__);
-#endif
+#ifdef CONFIG_CONCURRENT_MODE
+ PADAPTER pbuddy_adapter = NULL;
+ struct mlme_priv *pbuddy_mlmepriv = NULL;
+#endif //CONFIG_CONCURRENT_MODE
+
+//#ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
+//#endif
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->pbuddy_adapter) {
+ pbuddy_adapter = padapter->pbuddy_adapter;
+ pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+ }
+#endif //CONFIG_CONCURRENT_MODE
#ifdef CONFIG_MP_INCLUDED
if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
@@ -1740,8 +2030,22 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
- //need_indicate_scan_done = _TRUE;
- //goto check_need_indicate_scan_done;
+#ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X("%s under WIFI_AP_STATE\n", __FUNCTION__);
+#endif
+
+ if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS|_FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
+ {
+ DBG_8192C("%s, fwstate=0x%x\n", __func__, pmlmepriv->fw_state);
+
+ if(check_fwstate(pmlmepriv, WIFI_UNDER_WPS))
+ {
+ DBG_8192C("AP mode process WPS \n");
+ }
+
+ need_indicate_scan_done = _TRUE;
+ goto check_need_indicate_scan_done;
+ }
}
if(_FAIL == rtw_pwr_wakeup(padapter)) {
@@ -1749,26 +2053,31 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
goto check_need_indicate_scan_done;
}
- if( ssids->ssid != NULL )
+ #ifdef CONFIG_P2P
+ if( pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- if( _rtw_memcmp(ssids->ssid, "DIRECT-", 7)
+ if(ssids->ssid != NULL
+ && _rtw_memcmp(ssids->ssid, "DIRECT-", 7)
&& rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)
)
{
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
+ u32 initialgain = 0x30;
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _TRUE;
+ padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)&(initialgain));
+ padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_INITIAL_GAIN, (u8 *)&(initialgain));
}
else
{
rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
+ DBG_8192C("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
#endif
}
rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
-
+
if(request->n_channels == 3 &&
request->channels[0]->hw_value == 1 &&
request->channels[1]->hw_value == 6 &&
@@ -1779,37 +2088,72 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
}
}
}
+ #endif //CONFIG_P2P
if(request->ie && request->ie_len>0)
{
- rtw_cfg80211_set_probe_req_wpsp2pie( ndev, (u8 *)request->ie, request->ie_len );
+ rtw_cfg80211_set_probe_req_wpsp2pie(padapter, (u8 *)request->ie, request->ie_len );
}
if (pmlmepriv->LinkDetectInfo.bBusyTraffic == _TRUE)
{
- printk("%s, bBusyTraffic == _TRUE\n", __func__);
+ DBG_8192C("%s, bBusyTraffic == _TRUE\n", __func__);
need_indicate_scan_done = _TRUE;
goto check_need_indicate_scan_done;
- }
+ }
+ if (rtw_is_scan_deny(padapter)){
+ DBG_871X(FUNC_ADPT_FMT ": scan deny\n", FUNC_ADPT_ARG(padapter));
+ need_indicate_scan_done = _TRUE;
+ goto check_need_indicate_scan_done;
+ }
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pbuddy_mlmepriv && (pbuddy_mlmepriv->LinkDetectInfo.bBusyTraffic == _TRUE))
+ {
+ DBG_8192C("%s, bBusyTraffic == _TRUE at buddy_intf\n", __func__);
+ need_indicate_scan_done = _TRUE;
+ goto check_need_indicate_scan_done;
+ }
+#endif //CONFIG_CONCURRENT_MODE
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
{
- printk("%s, fwstate=0x%x\n", __func__, pmlmepriv->fw_state);
+ DBG_8192C("%s, fwstate=0x%x\n", __func__, pmlmepriv->fw_state);
need_indicate_scan_done = _TRUE;
goto check_need_indicate_scan_done;
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter,
+ _FW_UNDER_SURVEY|_FW_UNDER_LINKING|WIFI_UNDER_WPS) == _TRUE)
+ {
+ if(check_buddy_fwstate(padapter, _FW_UNDER_SURVEY))
+ {
+ DBG_8192C("scanning_via_buddy_intf\n");
+ pmlmepriv->scanning_via_buddy_intf = _TRUE;
+ }
+
+ DBG_8192C("buddy_intf's mlme state:0x%x\n", pbuddy_mlmepriv->fw_state);
+
+ need_indicate_scan_done = _TRUE;
+ goto check_need_indicate_scan_done;
+ }
+#endif
+
#ifdef CONFIG_P2P
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ if( pwdinfo->driver_interface == DRIVER_CFG80211 )
{
- rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH);
- rtw_free_network_queue(padapter, _TRUE);
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ {
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH);
+ rtw_free_network_queue(padapter, _TRUE);
- if(social_channel == 0)
- rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
- else
- rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_SOCIAL_LAST);
+ if(social_channel == 0)
+ rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
+ else
+ rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_SOCIAL_LAST);
+ }
}
#endif //CONFIG_P2P
@@ -1818,20 +2162,38 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
//parsing request ssids, n_ssids
for (i = 0; i < request->n_ssids && i < RTW_SSID_SCAN_AMOUNT; i++) {
#ifdef CONFIG_DEBUG_CFG80211
- printk("ssid=%s, len=%d\n", ssids[i].ssid, ssids[i].ssid_len);
+ DBG_8192C("ssid=%s, len=%d\n", ssids[i].ssid, ssids[i].ssid_len);
#endif
_rtw_memcpy(ssid[i].Ssid, ssids[i].ssid, ssids[i].ssid_len);
ssid[i].SsidLength = ssids[i].ssid_len;
}
-#ifdef CONFIG_DEBUG_CFG80211
- //parsing channels, n_channels
- DBG_871X("%s n_channels:%u\n", __FUNCTION__, request->n_channels);
-#endif
+ /* parsing channels, n_channels */
+ _rtw_memset(ch, 0, sizeof(struct rtw_ieee80211_channel)*RTW_CHANNEL_SCAN_AMOUNT);
+ for (i=0;i<request->n_channels && i<RTW_CHANNEL_SCAN_AMOUNT;i++) {
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X(FUNC_ADPT_FMT CHAN_FMT"\n", FUNC_ADPT_ARG(padapter), CHAN_ARG(request->channels[i]));
+ #endif
+ ch[i].hw_value = request->channels[i]->hw_value;
+ ch[i].flags = request->channels[i]->flags;
+ }
- _enter_critical_bh(&pmlmepriv->lock, &irqL);
- _status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT);
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+ if (request->n_channels == 1) {
+ for(i=1;i<survey_times_for_one_ch;i++)
+ _rtw_memcpy(&ch[i], &ch[0], sizeof(struct rtw_ieee80211_channel));
+ _status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, ch, survey_times_for_one_ch);
+ } else if (request->n_channels == 2) {
+ _rtw_memcpy(&ch[3], &ch[1], sizeof(struct rtw_ieee80211_channel));
+ for(i=1;i<survey_times;i++) {
+ _rtw_memcpy(&ch[i], &ch[0], sizeof(struct rtw_ieee80211_channel));
+ _rtw_memcpy(&ch[i+3], &ch[3], sizeof(struct rtw_ieee80211_channel));
+ }
+ _status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, ch, survey_times * 2);
+ } else {
+ _status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, NULL, 0);
+ }
_exit_critical_bh(&pmlmepriv->lock, &irqL);
@@ -1881,11 +2243,11 @@ static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
return ret;
}
#endif
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
return 0;
}
-static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_ibss_params *params)
{
#if 0
@@ -1908,11 +2270,11 @@ static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *dev,
return iwm_send_mlme_profile(iwm);
#endif
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
-static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
+static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *ndev)
{
#if 0
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
@@ -1920,14 +2282,13 @@ static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
if (iwm->umac_profile_active)
return iwm_invalidate_mlme_profile(iwm);
#endif
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
static int rtw_cfg80211_set_wpa_version(struct security_priv *psecuritypriv, u32 wpa_version)
{
- printk("%s, wpa_version=%d\n", __func__, wpa_version);
-
+ DBG_8192C("%s, wpa_version=%d\n", __func__, wpa_version);
if (!wpa_version) {
psecuritypriv->ndisauthtype = Ndis802_11AuthModeOpen;
@@ -1954,7 +2315,7 @@ static int rtw_cfg80211_set_wpa_version(struct security_priv *psecuritypriv, u32
static int rtw_cfg80211_set_auth_type(struct security_priv *psecuritypriv,
enum nl80211_auth_type sme_auth_type)
{
- printk("%s, nl80211_auth_type=%d\n", __func__, sme_auth_type);
+ DBG_8192C("%s, nl80211_auth_type=%d\n", __func__, sme_auth_type);
switch (sme_auth_type) {
@@ -1995,7 +2356,7 @@ static int rtw_cfg80211_set_cipher(struct security_priv *psecuritypriv, u32 ciph
u32 *profile_cipher = ucast ? &psecuritypriv->dot11PrivacyAlgrthm :
&psecuritypriv->dot118021XGrpPrivacy;
- printk("%s, ucast=%d, cipher=0x%x\n", __func__, ucast, cipher);
+ DBG_8192C("%s, ucast=%d, cipher=0x%x\n", __func__, ucast, cipher);
if (!cipher) {
@@ -2026,7 +2387,7 @@ static int rtw_cfg80211_set_cipher(struct security_priv *psecuritypriv, u32 ciph
ndisencryptstatus = Ndis802_11Encryption3Enabled;
break;
default:
- printk("Unsupported cipher: 0x%x\n", cipher);
+ DBG_8192C("Unsupported cipher: 0x%x\n", cipher);
return -ENOTSUPP;
}
@@ -2043,7 +2404,7 @@ static int rtw_cfg80211_set_cipher(struct security_priv *psecuritypriv, u32 ciph
static int rtw_cfg80211_set_key_mgt(struct security_priv *psecuritypriv, u32 key_mgt)
{
- printk("%s, key_mgt=0x%x\n", __func__, key_mgt);
+ DBG_8192C("%s, key_mgt=0x%x\n", __func__, key_mgt);
if (key_mgt == WLAN_AKM_SUITE_8021X)
//*auth_type = UMAC_AUTH_TYPE_8021X;
@@ -2051,7 +2412,7 @@ static int rtw_cfg80211_set_key_mgt(struct security_priv *psecuritypriv, u32 key
else if (key_mgt == WLAN_AKM_SUITE_PSK) {
psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X;
} else {
- printk("Invalid key mgt: 0x%x\n", key_mgt);
+ DBG_8192C("Invalid key mgt: 0x%x\n", key_mgt);
//return -EINVAL;
}
@@ -2064,230 +2425,225 @@ static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen)
u32 left;
int group_cipher = 0, pairwise_cipher = 0;
int ret = 0;
-#ifdef CONFIG_P2P
- struct wifidirect_info* pwdinfo = &padapter->wdinfo;
-#endif //CONFIG_P2P
int wpa_ielen=0;
int wpa2_ielen=0;
u8 *pwpa, *pwpa2;
+ u8 null_addr[]= {0,0,0,0,0,0};
+ if (pie == NULL || !ielen) {
+ /* Treat this as normal case, but need to clear WIFI_UNDER_WPS */
+ _clr_fwstate_(&padapter->mlmepriv, WIFI_UNDER_WPS);
+ goto exit;
+ }
- if((ielen > MAX_WPA_IE_LEN+MAX_WPS_IE_LEN+MAX_P2P_IE_LEN) || (pie == NULL)){
- padapter->securitypriv.wps_phase = _FALSE;
- if(pie == NULL)
- return ret;
- else
- return -EINVAL;
+ if (ielen > MAX_WPA_IE_LEN+MAX_WPS_IE_LEN+MAX_P2P_IE_LEN) {
+ ret = -EINVAL;
+ goto exit;
}
- if(ielen)
- {
- buf = rtw_zmalloc(ielen);
- if (buf == NULL){
- ret = -ENOMEM;
- goto exit;
- }
-
- _rtw_memcpy(buf, pie , ielen);
+ buf = rtw_zmalloc(ielen);
+ if (buf == NULL){
+ ret = -ENOMEM;
+ goto exit;
+ }
- //dump
- {
- int i;
- DBG_8192C("set wpa_ie(length:%d):\n", ielen);
- for(i=0;i<ielen;i=i+8)
- DBG_8192C("0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n",buf[i],buf[i+1],buf[i+2],buf[i+3],buf[i+4],buf[i+5],buf[i+6],buf[i+7]);
- }
-
- pos = buf;
- if(ielen < RSN_HEADER_LEN){
- RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("Ie len too short %d\n", ielen));
- ret = -1;
- goto exit;
- }
+ _rtw_memcpy(buf, pie , ielen);
-#if 0
- pos += RSN_HEADER_LEN;
- left = ielen - RSN_HEADER_LEN;
-
- if (left >= RSN_SELECTOR_LEN){
- pos += RSN_SELECTOR_LEN;
- left -= RSN_SELECTOR_LEN;
- }
- else if (left > 0){
- RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("Ie length mismatch, %u too much \n", left));
- ret =-1;
- goto exit;
- }
-#endif
-
- pwpa = rtw_get_wpa_ie(buf, &wpa_ielen, ielen);
- pwpa2 = rtw_get_wpa2_ie(buf, &wpa2_ielen, ielen);
-
- if(pwpa && wpa_ielen>0)
+ //dump
+ {
+ int i;
+ DBG_8192C("set wpa_ie(length:%zu):\n", ielen);
+ for(i=0;i<ielen;i=i+8)
+ DBG_8192C("0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n",buf[i],buf[i+1],buf[i+2],buf[i+3],buf[i+4],buf[i+5],buf[i+6],buf[i+7]);
+ }
+
+ pos = buf;
+ if(ielen < RSN_HEADER_LEN){
+ RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("Ie len too short %d\n", ielen));
+ ret = -1;
+ goto exit;
+ }
+
+ pwpa = rtw_get_wpa_ie(buf, &wpa_ielen, ielen);
+ if(pwpa && wpa_ielen>0)
+ {
+ if(rtw_parse_wpa_ie(pwpa, wpa_ielen+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
{
- if(rtw_parse_wpa_ie(pwpa, wpa_ielen+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
- {
- padapter->securitypriv.dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
- padapter->securitypriv.ndisauthtype=Ndis802_11AuthModeWPAPSK;
- _rtw_memcpy(padapter->securitypriv.supplicant_ie, &pwpa[0], wpa_ielen+2);
+ padapter->securitypriv.dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
+ padapter->securitypriv.ndisauthtype=Ndis802_11AuthModeWPAPSK;
+ _rtw_memcpy(padapter->securitypriv.supplicant_ie, &pwpa[0], wpa_ielen+2);
- printk("got wpa_ie\n");
- }
+ DBG_8192C("got wpa_ie, wpa_ielen:%u\n", wpa_ielen);
}
-
- if(pwpa2 && wpa2_ielen>0)
+ }
+
+ pwpa2 = rtw_get_wpa2_ie(buf, &wpa2_ielen, ielen);
+ if(pwpa2 && wpa2_ielen>0)
+ {
+ if(rtw_parse_wpa2_ie(pwpa2, wpa2_ielen+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
{
- if(rtw_parse_wpa2_ie(pwpa2, wpa2_ielen+2, &group_cipher, &pairwise_cipher) == _SUCCESS)
- {
- padapter->securitypriv.dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
- padapter->securitypriv.ndisauthtype=Ndis802_11AuthModeWPA2PSK;
- _rtw_memcpy(padapter->securitypriv.supplicant_ie, &pwpa2[0], wpa2_ielen+2);
+ padapter->securitypriv.dot11AuthAlgrthm= dot11AuthAlgrthm_8021X;
+ padapter->securitypriv.ndisauthtype=Ndis802_11AuthModeWPA2PSK;
+ _rtw_memcpy(padapter->securitypriv.supplicant_ie, &pwpa2[0], wpa2_ielen+2);
- printk("got wpa2_ie\n");
- }
+ DBG_8192C("got wpa2_ie, wpa2_ielen:%u\n", wpa2_ielen);
}
-
- switch(group_cipher)
- {
- case WPA_CIPHER_NONE:
- padapter->securitypriv.dot118021XGrpPrivacy=_NO_PRIVACY_;
- padapter->securitypriv.ndisencryptstatus=Ndis802_11EncryptionDisabled;
- break;
- case WPA_CIPHER_WEP40:
- padapter->securitypriv.dot118021XGrpPrivacy=_WEP40_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
- break;
- case WPA_CIPHER_TKIP:
- padapter->securitypriv.dot118021XGrpPrivacy=_TKIP_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption2Enabled;
- break;
- case WPA_CIPHER_CCMP:
- padapter->securitypriv.dot118021XGrpPrivacy=_AES_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption3Enabled;
- break;
- case WPA_CIPHER_WEP104:
- padapter->securitypriv.dot118021XGrpPrivacy=_WEP104_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
- break;
+ }
+
+ if (group_cipher == 0)
+ {
+ group_cipher = WPA_CIPHER_NONE;
+ }
+ if (pairwise_cipher == 0)
+ {
+ pairwise_cipher = WPA_CIPHER_NONE;
+ }
+
+ switch(group_cipher)
+ {
+ case WPA_CIPHER_NONE:
+ padapter->securitypriv.dot118021XGrpPrivacy=_NO_PRIVACY_;
+ padapter->securitypriv.ndisencryptstatus=Ndis802_11EncryptionDisabled;
+ break;
+ case WPA_CIPHER_WEP40:
+ padapter->securitypriv.dot118021XGrpPrivacy=_WEP40_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
+ break;
+ case WPA_CIPHER_TKIP:
+ padapter->securitypriv.dot118021XGrpPrivacy=_TKIP_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption2Enabled;
+ break;
+ case WPA_CIPHER_CCMP:
+ padapter->securitypriv.dot118021XGrpPrivacy=_AES_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption3Enabled;
+ break;
+ case WPA_CIPHER_WEP104:
+ padapter->securitypriv.dot118021XGrpPrivacy=_WEP104_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
+ break;
+ }
+
+ switch(pairwise_cipher)
+ {
+ case WPA_CIPHER_NONE:
+ padapter->securitypriv.dot11PrivacyAlgrthm=_NO_PRIVACY_;
+ padapter->securitypriv.ndisencryptstatus=Ndis802_11EncryptionDisabled;
+ break;
+ case WPA_CIPHER_WEP40:
+ padapter->securitypriv.dot11PrivacyAlgrthm=_WEP40_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
+ break;
+ case WPA_CIPHER_TKIP:
+ padapter->securitypriv.dot11PrivacyAlgrthm=_TKIP_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption2Enabled;
+ break;
+ case WPA_CIPHER_CCMP:
+ padapter->securitypriv.dot11PrivacyAlgrthm=_AES_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption3Enabled;
+ break;
+ case WPA_CIPHER_WEP104:
+ padapter->securitypriv.dot11PrivacyAlgrthm=_WEP104_;
+ padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
+ break;
+ }
+
+ {/* handle wps_ie */
+ uint wps_ielen;
+ u8 *wps_ie;
+
+ wps_ie = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen);
+ if (wps_ie && wps_ielen > 0) {
+ DBG_8192C("got wps_ie, wps_ielen:%u\n", wps_ielen);
+ padapter->securitypriv.wps_ie_len = wps_ielen<MAX_WPS_IE_LEN?wps_ielen:MAX_WPS_IE_LEN;
+ _rtw_memcpy(padapter->securitypriv.wps_ie, wps_ie, padapter->securitypriv.wps_ie_len);
+ set_fwstate(&padapter->mlmepriv, WIFI_UNDER_WPS);
+ } else {
+ _clr_fwstate_(&padapter->mlmepriv, WIFI_UNDER_WPS);
}
+ }
+
+ #ifdef CONFIG_P2P
+ {//check p2p_ie for assoc req;
+ uint p2p_ielen=0;
+ u8 *p2p_ie;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- switch(pairwise_cipher)
+ if((p2p_ie=rtw_get_p2p_ie(buf, ielen, NULL, &p2p_ielen)))
{
- case WPA_CIPHER_NONE:
- padapter->securitypriv.dot11PrivacyAlgrthm=_NO_PRIVACY_;
- padapter->securitypriv.ndisencryptstatus=Ndis802_11EncryptionDisabled;
- break;
- case WPA_CIPHER_WEP40:
- padapter->securitypriv.dot11PrivacyAlgrthm=_WEP40_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
- break;
- case WPA_CIPHER_TKIP:
- padapter->securitypriv.dot11PrivacyAlgrthm=_TKIP_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption2Enabled;
- break;
- case WPA_CIPHER_CCMP:
- padapter->securitypriv.dot11PrivacyAlgrthm=_AES_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption3Enabled;
- break;
- case WPA_CIPHER_WEP104:
- padapter->securitypriv.dot11PrivacyAlgrthm=_WEP104_;
- padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
- break;
- }
-
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s p2p_assoc_req_ielen=%d\n", __FUNCTION__, p2p_ielen);
+ #endif
-
- padapter->securitypriv.wps_phase = _FALSE;
- {//set wps_ie
- u16 cnt = 0;
- u8 eid, wps_oui[4]={0x0,0x50,0xf2,0x04};
- uint wps_ielen=0;
- u8 *pwps;
-
- pwps = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen);
-
- //while( cnt < ielen )
- while( cnt < wps_ielen )
+ if(pmlmepriv->p2p_assoc_req_ie)
{
- //eid = buf[cnt];
- eid = pwps[cnt];
-
- if((eid==_VENDOR_SPECIFIC_IE_)&&(_rtw_memcmp(&pwps[cnt+2], wps_oui, 4)==_TRUE))
- {
- DBG_8192C("SET WPS_IE\n");
+ u32 free_len = pmlmepriv->p2p_assoc_req_ie_len;
+ pmlmepriv->p2p_assoc_req_ie_len = 0;
+ rtw_mfree(pmlmepriv->p2p_assoc_req_ie, free_len);
+ pmlmepriv->p2p_assoc_req_ie = NULL;
+ }
- padapter->securitypriv.wps_ie_len = ( (pwps[cnt+1]+2) < (MAX_WPA_IE_LEN<<2)) ? (pwps[cnt+1]+2):(MAX_WPA_IE_LEN<<2);
-
- _rtw_memcpy(padapter->securitypriv.wps_ie, &pwps[cnt], padapter->securitypriv.wps_ie_len);
-
- if(pwpa==NULL && pwpa2==NULL)
- {
- padapter->securitypriv.wps_phase = _TRUE;
-
- DBG_8192C("SET WPS_IE, wps_phase==_TRUE\n");
- }
-#ifdef CONFIG_P2P
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_OK))
- {
- //rtw_p2p_set_state(pwdinfo, P2P_STATE_PROVISIONING_ING);
- }
-#endif //CONFIG_P2P
+ pmlmepriv->p2p_assoc_req_ie = rtw_malloc(p2p_ielen);
+ if ( pmlmepriv->p2p_assoc_req_ie == NULL) {
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ goto exit;
+ }
+ _rtw_memcpy(pmlmepriv->p2p_assoc_req_ie, p2p_ie, p2p_ielen);
+ pmlmepriv->p2p_assoc_req_ie_len = p2p_ielen;
+ }
+ }
+ #endif //CONFIG_P2P
- cnt += pwps[cnt+1]+2;
-
- break;
- } else {
- cnt += pwps[cnt+1]+2; //goto next
- }
- }
- }//set wps_ie
+ #ifdef CONFIG_WFD
+ {//check wfd_ie for assoc req;
+ uint wfd_ielen=0;
+ u8 *wfd_ie;
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- {//check p2p_ie for assoc req;
- uint p2p_ielen=0;
- u8 *p2p_ie;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ if(rtw_get_wfd_ie(buf, ielen, NULL, &wfd_ielen))
+ {
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s wfd_assoc_req_ielen=%d\n", __FUNCTION__, wfd_ielen);
+ #endif
- if((p2p_ie=rtw_get_p2p_ie(buf, ielen, NULL, &p2p_ielen)))
+ if(pmlmepriv->wfd_assoc_req_ie)
{
- #ifdef CONFIG_DEBUG_CFG80211
- printk("%s p2p_assoc_req_ielen=%d\n", __FUNCTION__, p2p_ielen);
- #endif
-
- if(pmlmepriv->p2p_assoc_req_ie)
- {
- u32 free_len = pmlmepriv->p2p_assoc_req_ie_len;
- pmlmepriv->p2p_assoc_req_ie_len = 0;
- rtw_mfree(pmlmepriv->p2p_assoc_req_ie, free_len);
- pmlmepriv->p2p_assoc_req_ie = NULL;
- }
+ u32 free_len = pmlmepriv->wfd_assoc_req_ie_len;
+ pmlmepriv->wfd_assoc_req_ie_len = 0;
+ rtw_mfree(pmlmepriv->wfd_assoc_req_ie, free_len);
+ pmlmepriv->wfd_assoc_req_ie = NULL;
+ }
- pmlmepriv->p2p_assoc_req_ie = rtw_malloc(p2p_ielen);
- if ( pmlmepriv->p2p_assoc_req_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
- goto exit;
-
- }
- _rtw_memcpy(pmlmepriv->p2p_assoc_req_ie, p2p_ie, p2p_ielen);
- pmlmepriv->p2p_assoc_req_ie_len = p2p_ielen;
-
+ pmlmepriv->wfd_assoc_req_ie = rtw_malloc(wfd_ielen);
+ if ( pmlmepriv->wfd_assoc_req_ie == NULL) {
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ goto exit;
}
+ rtw_get_wfd_ie(buf, ielen, pmlmepriv->wfd_assoc_req_ie, &pmlmepriv->wfd_assoc_req_ie_len);
}
-
}
-
-
+ #endif //CONFIG_WFD
+
+ //TKIP and AES disallow multicast packets until installing group key
+ if(padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_
+ || padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_WTMIC_
+ || padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)
+ //WPS open need to enable multicast
+ //|| check_fwstate(&padapter->mlmepriv, WIFI_UNDER_WPS) == _TRUE)
+ rtw_hal_set_hwreg(padapter, HW_VAR_OFF_RCR_AM, null_addr);
+
RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_,
- ("rtw_set_wpa_ie: pairwise_cipher=0x%08x padapter->securitypriv.ndisencryptstatus=%d padapter->securitypriv.ndisauthtype=%d\n",
- pairwise_cipher, padapter->securitypriv.ndisencryptstatus, padapter->securitypriv.ndisauthtype));
-
-exit:
+ ("rtw_set_wpa_ie: pairwise_cipher=0x%08x padapter->securitypriv.ndisencryptstatus=%d padapter->securitypriv.ndisauthtype=%d\n",
+ pairwise_cipher, padapter->securitypriv.ndisencryptstatus, padapter->securitypriv.ndisauthtype));
- if (buf) rtw_mfree(buf, ielen);
-
- return ret;
+exit:
+ if (buf)
+ rtw_mfree(buf, ielen);
+ if (ret)
+ _clr_fwstate_(&padapter->mlmepriv, WIFI_UNDER_WPS);
+ return ret;
}
-static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_connect_params *sme)
{
int ret=0;
@@ -2306,10 +2662,9 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
struct security_priv *psecuritypriv = &padapter->securitypriv;
_queue *queue = &pmlmepriv->scanned_queue;
- printk("\n=>%s\n",__FUNCTION__);
-
-
- printk("privacy=%d, key=%p, key_len=%d, key_idx=%d\n", sme->privacy, sme->key, sme->key_len, sme->key_idx);
+ DBG_871X("=>"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+ DBG_871X("privacy=%d, key=%p, key_len=%d, key_idx=%d\n",
+ sme->privacy, sme->key, sme->key_len, sme->key_idx);
if(wdev_to_priv(padapter->rtw_wdev)->block == _TRUE)
@@ -2319,6 +2674,22 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
goto exit;
}
+#ifdef CONFIG_PLATFORM_MSTAR
+ printk("MStar Android!\n");
+ if((wdev_to_priv(padapter->rtw_wdev))->bandroid_scan == _FALSE)
+ {
+#ifdef CONFIG_P2P
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+#endif //CONFIG_P2P
+ {
+ ret = -EBUSY;
+ printk("Android hasn't attached yet!\n");
+ goto exit;
+ }
+ }
+#endif
+
if(_FAIL == rtw_pwr_wakeup(padapter)) {
ret= -EPERM;
goto exit;
@@ -2329,6 +2700,17 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
goto exit;
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter, _FW_UNDER_LINKING) == _TRUE) {
+ DBG_8192C("%s, but buddy_intf is under linking\n", __FUNCTION__);
+ ret = -EINVAL;
+ goto exit;
+ }
+ if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY) == _TRUE) {
+ rtw_scan_abort(padapter->pbuddy_adapter);
+ }
+#endif
+
if (!sme->ssid || !sme->ssid_len)
{
ret = -EINVAL;
@@ -2341,104 +2723,25 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
goto exit;
}
-
_rtw_memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
ndis_ssid.SsidLength = sme->ssid_len;
_rtw_memcpy(ndis_ssid.Ssid, sme->ssid, sme->ssid_len);
- DBG_8192C("ssid=%s, len=%d\n", ndis_ssid.Ssid, sme->ssid_len);
+ DBG_8192C("ssid=%s, len=%zu\n", ndis_ssid.Ssid, sme->ssid_len);
if (sme->bssid)
- printk("bssid="MAC_FMT"\n", MAC_ARG(sme->bssid));
+ DBG_8192C("bssid="MAC_FMT"\n", MAC_ARG(sme->bssid));
- if(check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
- {
+ if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == _TRUE) {
ret = -EBUSY;
- printk("%s, fw_state=0x%x, goto exit\n", __FUNCTION__, pmlmepriv->fw_state);
+ DBG_8192C("%s, fw_state=0x%x, goto exit\n", __FUNCTION__, pmlmepriv->fw_state);
goto exit;
- }
-
-
- _enter_critical_bh(&queue->lock, &irqL);
-
- phead = get_list_head(queue);
- pmlmepriv->pscanned = get_next(phead);
-
- while (1)
- {
- if (rtw_end_of_queue_search(phead, pmlmepriv->pscanned) == _TRUE)
- {
- break;
- }
-
- pnetwork = LIST_CONTAINOR(pmlmepriv->pscanned, struct wlan_network, list);
- pmlmepriv->pscanned = get_next(pmlmepriv->pscanned);
-
- dst_ssid = pnetwork->network.Ssid.Ssid;
- dst_bssid = pnetwork->network.MacAddress;
-
- if(sme->bssid) {
- if(_rtw_memcmp(pnetwork->network.MacAddress, sme->bssid, ETH_ALEN) == _FALSE)
- continue;
- }
-
- if(sme->ssid && sme->ssid_len) {
- if( pnetwork->network.Ssid.SsidLength != sme->ssid_len
- || _rtw_memcmp(pnetwork->network.Ssid.Ssid, sme->ssid, sme->ssid_len) == _FALSE
- )
- continue;
- }
-
-
- if (sme->bssid)
- {
- src_bssid = sme->bssid;
-
- if ((_rtw_memcmp(dst_bssid, src_bssid, ETH_ALEN)) == _TRUE)
- {
- printk("matched by bssid\n");
-
- ndis_ssid.SsidLength = pnetwork->network.Ssid.SsidLength;
- _rtw_memcpy(ndis_ssid.Ssid, pnetwork->network.Ssid.Ssid, pnetwork->network.Ssid.SsidLength);
-
- matched=_TRUE;
- break;
- }
-
- }
- else if (sme->ssid && sme->ssid_len)
- {
- src_ssid = ndis_ssid.Ssid;
-
- if ((_rtw_memcmp(dst_ssid, src_ssid, ndis_ssid.SsidLength) == _TRUE) &&
- (pnetwork->network.Ssid.SsidLength==ndis_ssid.SsidLength))
- {
- printk("matched by ssid\n");
- matched=_TRUE;
- break;
- }
- }
-
- }
-
- _exit_critical_bh(&queue->lock, &irqL);
-
- if((matched == _FALSE) || (pnetwork== NULL))
- {
- ret = -ENOENT;
- printk("connect, matched == _FALSE, goto exit\n");
- goto exit;
}
-
-
- if (rtw_set_802_11_infrastructure_mode(padapter, pnetwork->network.InfrastructureMode) == _FALSE)
- {
- ret = -EPERM;
- goto exit;
+ if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE) {
+ rtw_scan_abort(padapter);
}
-
psecuritypriv->ndisencryptstatus = Ndis802_11EncryptionDisabled;
psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_;
@@ -2455,6 +2758,11 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
if (ret < 0)
goto exit;
+ DBG_8192C("%s, ie_len=%zu\n", __func__, sme->ie_len);
+
+ ret = rtw_cfg80211_set_wpa_ie(padapter, sme->ie, sme->ie_len);
+ if (ret < 0)
+ goto exit;
if (sme->crypto.n_ciphers_pairwise) {
ret = rtw_cfg80211_set_cipher(psecuritypriv, sme->crypto.ciphers_pairwise[0], _TRUE);
@@ -2534,24 +2842,17 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *dev,
goto exit;
}
- printk("%s, ie_len=%d\n", __func__, sme->ie_len);
-
- ret = rtw_cfg80211_set_wpa_ie(padapter, sme->ie, sme->ie_len);
- if (ret < 0)
- goto exit;
-
authmode = psecuritypriv->ndisauthtype;
rtw_set_802_11_authentication_mode(padapter, authmode);
//rtw_set_802_11_encryption_mode(padapter, padapter->securitypriv.ndisencryptstatus);
- if (rtw_set_802_11_ssid(padapter, &ndis_ssid) == _FALSE) {
+ if (rtw_set_802_11_connect(padapter, sme->bssid, &ndis_ssid) == _FALSE) {
ret = -1;
goto exit;
}
-
- printk("set ssid:dot11AuthAlgrthm=%d, dot11PrivacyAlgrthm=%d, dot118021XGrpPrivacy=%d\n", psecuritypriv->dot11AuthAlgrthm, psecuritypriv->dot11PrivacyAlgrthm, psecuritypriv->dot118021XGrpPrivacy);
+ DBG_8192C("set ssid:dot11AuthAlgrthm=%d, dot11PrivacyAlgrthm=%d, dot118021XGrpPrivacy=%d\n", psecuritypriv->dot11AuthAlgrthm, psecuritypriv->dot11PrivacyAlgrthm, psecuritypriv->dot118021XGrpPrivacy);
exit:
@@ -2560,20 +2861,26 @@ exit:
return ret;
}
-static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *ndev,
u16 reason_code)
{
_adapter *padapter = wiphy_to_adapter(wiphy);
- printk("\n%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+
+ rtw_set_roaming(padapter, 0);
if(check_fwstate(&padapter->mlmepriv, _FW_LINKED))
{
- rtw_disassoc_cmd(padapter);
+ rtw_scan_abort(padapter);
+ LeaveAllPowerSaveMode(padapter);
+ rtw_disassoc_cmd(padapter, 500, _FALSE);
- DBG_871X("%s...call rtw_indicate_disconnect\n ", __FUNCTION__);
+ DBG_871X("%s...call rtw_indicate_disconnect\n", __FUNCTION__);
+ padapter->mlmepriv.not_indic_disco = _TRUE;
rtw_indicate_disconnect(padapter);
+ padapter->mlmepriv.not_indic_disco = _FALSE;
rtw_free_assoc_resources(padapter, 1);
}
@@ -2582,11 +2889,14 @@ static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *dev,
}
static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
- enum nl80211_tx_power_setting type, int mbm)
-#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
- enum tx_power_setting type, int dbm)
-#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+ struct wireless_dev *wdev,
+#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)) || defined(COMPAT_KERNEL_RELEASE)
+ enum nl80211_tx_power_setting type, int mbm)
+#else
+ enum tx_power_setting type, int dbm)
+#endif
{
#if 0
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
@@ -2614,44 +2924,47 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
return -EOPNOTSUPP;
}
#endif
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
return 0;
}
-static int cfg80211_rtw_get_txpower(struct wiphy *wiphy, int *dbm)
+static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+ struct wireless_dev *wdev,
+#endif
+ int *dbm)
{
//_adapter *padapter = wiphy_to_adapter(wiphy);
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
*dbm = (12);
return 0;
}
+inline bool rtw_cfg80211_pwr_mgmt(_adapter *adapter)
+{
+ struct rtw_wdev_priv *rtw_wdev_priv = wdev_to_priv(adapter->rtw_wdev);
+ return rtw_wdev_priv->power_mgmt;
+}
+
static int cfg80211_rtw_set_power_mgmt(struct wiphy *wiphy,
- struct net_device *dev,
+ struct net_device *ndev,
bool enabled, int timeout)
{
-#if 0
- struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
- u32 power_index;
-
- if (enabled)
- power_index = IWM_POWER_INDEX_DEFAULT;
- else
- power_index = IWM_POWER_INDEX_MIN;
-
- if (power_index == iwm->conf.power_index)
- return 0;
-
- iwm->conf.power_index = power_index;
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+ struct rtw_wdev_priv *rtw_wdev_priv = wdev_to_priv(padapter->rtw_wdev);
+
+ DBG_871X(FUNC_NDEV_FMT" enabled:%u, timeout:%d\n", FUNC_NDEV_ARG(ndev),
+ enabled, timeout);
- return iwm_umac_set_config_fix(iwm, UMAC_PARAM_TBL_CFG_FIX,
- CFG_POWER_INDEX, iwm->conf.power_index);
-#endif
+ rtw_wdev_priv->power_mgmt = enabled;
- printk("%s\n", __func__);
+ #ifdef CONFIG_LPS
+ if (!enabled)
+ LPS_Leave(padapter);
+ #endif
return 0;
}
@@ -2660,12 +2973,52 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
struct net_device *netdev,
struct cfg80211_pmksa *pmksa)
{
- //struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
- _adapter *padapter = wiphy_to_adapter(wiphy);
+ u8 index,blInserted = _FALSE;
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
+ u8 strZeroMacAddress[ ETH_ALEN ] = { 0x00 };
+
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(netdev));
+
+ if ( _rtw_memcmp( pmksa->bssid, strZeroMacAddress, ETH_ALEN ) == _TRUE )
+ {
+ return -EINVAL;
+ }
+
+ blInserted = _FALSE;
+
+ //overwrite PMKID
+ for(index=0 ; index<NUM_PMKID_CACHE; index++)
+ {
+ if( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==_TRUE )
+ { // BSSID is matched, the same AP => rewrite with new PMKID.
+ DBG_871X(FUNC_NDEV_FMT" BSSID exists in the PMKList.\n", FUNC_NDEV_ARG(netdev));
+
+ _rtw_memcpy( psecuritypriv->PMKIDList[index].PMKID, pmksa->pmkid, WLAN_PMKID_LEN);
+ psecuritypriv->PMKIDList[index].bUsed = _TRUE;
+ psecuritypriv->PMKIDIndex = index+1;
+ blInserted = _TRUE;
+ break;
+ }
+ }
- printk("%s\n", __func__);
+ if(!blInserted)
+ {
+ // Find a new entry
+ DBG_871X(FUNC_NDEV_FMT" Use the new entry index = %d for this PMKID.\n",
+ FUNC_NDEV_ARG(netdev), psecuritypriv->PMKIDIndex );
+
+ _rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].Bssid, pmksa->bssid, ETH_ALEN);
+ _rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].PMKID, pmksa->pmkid, WLAN_PMKID_LEN);
+
+ psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].bUsed = _TRUE;
+ psecuritypriv->PMKIDIndex++ ;
+ if(psecuritypriv->PMKIDIndex==16)
+ {
+ psecuritypriv->PMKIDIndex =0;
+ }
+ }
- //return iwm_send_pmkid_update(iwm, pmksa, IWM_CMD_PMKID_ADD);
return 0;
}
@@ -2673,28 +3026,45 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
struct net_device *netdev,
struct cfg80211_pmksa *pmksa)
{
- //struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
- _adapter *padapter = wiphy_to_adapter(wiphy);
+ u8 index, bMatched = _FALSE;
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
+
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(netdev));
+
+ for(index=0 ; index<NUM_PMKID_CACHE; index++)
+ {
+ if( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==_TRUE )
+ { // BSSID is matched, the same AP => Remove this PMKID information and reset it.
+ _rtw_memset( psecuritypriv->PMKIDList[index].Bssid, 0x00, ETH_ALEN );
+ _rtw_memset( psecuritypriv->PMKIDList[index].PMKID, 0x00, WLAN_PMKID_LEN );
+ psecuritypriv->PMKIDList[index].bUsed = _FALSE;
+ bMatched = _TRUE;
+ break;
+ }
+ }
- printk("%s\n", __func__);
+ if(_FALSE == bMatched)
+ {
+ DBG_871X(FUNC_NDEV_FMT" do not have matched BSSID\n"
+ , FUNC_NDEV_ARG(netdev));
+ return -EINVAL;
+ }
- //return iwm_send_pmkid_update(iwm, pmksa, IWM_CMD_PMKID_DEL);
return 0;
}
static int cfg80211_rtw_flush_pmksa(struct wiphy *wiphy,
struct net_device *netdev)
{
- //struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
- _adapter *padapter = wiphy_to_adapter(wiphy);
- struct cfg80211_pmksa pmksa;
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(netdev));
- memset(&pmksa, 0, sizeof(struct cfg80211_pmksa));
+ _rtw_memset( &psecuritypriv->PMKIDList[ 0 ], 0x00, sizeof( RT_PMKID_LIST ) * NUM_PMKID_CACHE );
+ psecuritypriv->PMKIDIndex = 0;
-
- //return iwm_send_pmkid_update(iwm, &pmksa, IWM_CMD_PMKID_FLUSH);
return 0;
}
@@ -2705,30 +3075,50 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
int channel;
struct wireless_dev *pwdev = padapter->rtw_wdev;
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct net_device *ndev = padapter->pnetdev;
- printk("%s\n", __func__);
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
+#if defined(RTW_USE_CFG80211_STA_EVENT) || defined(COMPAT_KERNEL_RELEASE)
+ {
+ struct station_info sinfo;
+ u8 ie_offset;
+ if (GetFrameSubType(pmgmt_frame) == WIFI_ASSOCREQ)
+ ie_offset = _ASOCREQ_IE_OFFSET_;
+ else // WIFI_REASSOCREQ
+ ie_offset = _REASOCREQ_IE_OFFSET_;
+
+ sinfo.filled = 0;
+ sinfo.filled = STATION_INFO_ASSOC_REQ_IES;
+ sinfo.assoc_req_ies = pmgmt_frame + WLAN_HDR_A3_LEN + ie_offset;
+ sinfo.assoc_req_ies_len = frame_len - WLAN_HDR_A3_LEN - ie_offset;
+ cfg80211_new_sta(ndev, GetAddr2Ptr(pmgmt_frame), &sinfo, GFP_ATOMIC);
+ }
+#else /* defined(RTW_USE_CFG80211_STA_EVENT) */
channel = pmlmeext->cur_channel;
-
if (channel <= RTW_CH_MAX_2G_CHANNEL)
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
- }
else
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
- }
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- cfg80211_rx_mgmt(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
-#else
- //to avoid WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION) when calling cfg80211_send_rx_assoc()
- pwdev->iftype = NL80211_IFTYPE_STATION;
- cfg80211_send_rx_assoc(padapter->pnetdev, pmgmt_frame, frame_len);
- pwdev->iftype = NL80211_IFTYPE_AP;
- //cfg80211_rx_action(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
-#endif
+ #ifdef COMPAT_KERNEL_RELEASE
+ rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC);
+ #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC);
+ #else //COMPAT_KERNEL_RELEASE
+ {
+ //to avoid WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION) when calling cfg80211_send_rx_assoc()
+ #ifndef CONFIG_PLATFORM_MSTAR
+ pwdev->iftype = NL80211_IFTYPE_STATION;
+ #endif //CONFIG_PLATFORM_MSTAR
+ DBG_8192C("iftype=%d before call cfg80211_send_rx_assoc()\n", pwdev->iftype);
+ rtw_cfg80211_send_rx_assoc(padapter, NULL, pmgmt_frame, frame_len);
+ DBG_8192C("iftype=%d after call cfg80211_send_rx_assoc()\n", pwdev->iftype);
+ pwdev->iftype = NL80211_IFTYPE_AP;
+ //cfg80211_rx_action(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
+ }
+ #endif //COMPAT_KERNEL_RELEASE
+#endif /* defined(RTW_USE_CFG80211_STA_EVENT) */
}
@@ -2743,21 +3133,18 @@ void rtw_cfg80211_indicate_sta_disassoc(_adapter *padapter, unsigned char *da, u
u8 mgmt_buf[128] = {0};
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
+ struct net_device *ndev = padapter->pnetdev;
-
- printk("%s\n", __func__);
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
+#if defined(RTW_USE_CFG80211_STA_EVENT) || defined(COMPAT_KERNEL_RELEASE)
+ cfg80211_del_sta(ndev, da, GFP_ATOMIC);
+#else /* defined(RTW_USE_CFG80211_STA_EVENT) */
channel = pmlmeext->cur_channel;
-
if (channel <= RTW_CH_MAX_2G_CHANNEL)
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
- }
else
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
- }
-
pmgmt_frame = mgmt_buf;
pwlanhdr = (struct rtw_ieee80211_hdr *)pmgmt_frame;
@@ -2781,20 +3168,22 @@ void rtw_cfg80211_indicate_sta_disassoc(_adapter *padapter, unsigned char *da, u
reason = cpu_to_le16(reason);
pmgmt_frame = rtw_set_fixed_ie(pmgmt_frame, _RSON_CODE_ , (unsigned char *)&reason, &frame_len);
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
- cfg80211_rx_mgmt(padapter->pnetdev, freq, mgmt_buf, frame_len, GFP_ATOMIC);
-#else
+ #ifdef COMPAT_KERNEL_RELEASE
+ rtw_cfg80211_rx_mgmt(padapter, freq, 0, mgmt_buf, frame_len, GFP_ATOMIC);
+ #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
+ rtw_cfg80211_rx_mgmt(padapter, freq, 0, mgmt_buf, frame_len, GFP_ATOMIC);
+ #else //COMPAT_KERNEL_RELEASE
cfg80211_send_disassoc(padapter->pnetdev, mgmt_buf, frame_len);
//cfg80211_rx_action(padapter->pnetdev, freq, mgmt_buf, frame_len, GFP_ATOMIC);
-#endif
-
+ #endif //COMPAT_KERNEL_RELEASE
+#endif /* defined(RTW_USE_CFG80211_STA_EVENT) */
}
static int rtw_cfg80211_monitor_if_open(struct net_device *ndev)
{
int ret = 0;
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
return ret;
}
@@ -2803,7 +3192,7 @@ static int rtw_cfg80211_monitor_if_close(struct net_device *ndev)
{
int ret = 0;
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
return ret;
}
@@ -2816,14 +3205,17 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
int dot11_hdr_len = 24;
int snap_len = 6;
unsigned char *pdata;
- unsigned short frame_ctl;
+ u16 frame_ctl;
unsigned char src_mac_addr[6];
unsigned char dst_mac_addr[6];
struct ieee80211_hdr *dot11_hdr;
struct ieee80211_radiotap_header *rtap_hdr;
_adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+
+ if (skb)
+ rtw_mstat_update(MSTAT_TYPE_SKB, MSTAT_ALLOC_SUCCESS, skb->truesize);
if (unlikely(skb->len < sizeof(struct ieee80211_radiotap_header)))
goto fail;
@@ -2838,7 +3230,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
if(rtap_len != 14)
{
- printk("radiotap len (should be 14): %d\n", rtap_len);
+ DBG_8192C("radiotap len (should be 14): %d\n", rtap_len);
goto fail;
}
@@ -2848,7 +3240,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
dot11_hdr = (struct ieee80211_hdr *)skb->data;
frame_ctl = le16_to_cpu(dot11_hdr->frame_control);
/* Check if the QoS bit is set */
- if ((frame_ctl & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA) {
+ if ((frame_ctl & RTW_IEEE80211_FCTL_FTYPE) == RTW_IEEE80211_FTYPE_DATA) {
/* Check if this ia a Wireless Distribution System (WDS) frame
* which has 4 MAC addresses
*/
@@ -2868,15 +3260,17 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
memcpy(pdata, dst_mac_addr, sizeof(dst_mac_addr));
memcpy(pdata + sizeof(dst_mac_addr), src_mac_addr, sizeof(src_mac_addr));
- printk("should be eapol packet\n");
+ DBG_8192C("should be eapol packet\n");
/* Use the real net device to transmit the packet */
- ret = rtw_xmit_entry(skb, padapter->pnetdev);
+ ret = _rtw_xmit_entry(skb, padapter->pnetdev);
return ret;
}
- else if((frame_ctl & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) == cpu_to_le16(IEEE80211_STYPE_ACTION))
+ else if ((frame_ctl & (RTW_IEEE80211_FCTL_FTYPE|RTW_IEEE80211_FCTL_STYPE))
+ == (RTW_IEEE80211_FTYPE_MGMT|RTW_IEEE80211_STYPE_ACTION)
+ )
{
//only for action frames
struct xmit_frame *pmgntframe;
@@ -2889,50 +3283,27 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
u8 *buf = skb->data;
u32 len = skb->len;
+ u8 category, action;
+ int type = -1;
- if(rtw_p2p_check_frames(padapter, buf, len, _TRUE) < 0)
- {
+ if (rtw_action_frame_parse(buf, len, &category, &action) == _FALSE) {
+ DBG_8192C(FUNC_NDEV_FMT" frame_control:0x%x\n", FUNC_NDEV_ARG(ndev),
+ le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)buf)->frame_ctl));
goto fail;
- }
-
-/*
- frame_body = (unsigned char *)(buf + sizeof(struct rtw_ieee80211_hdr_3addr));
- category = frame_body[0];
- //just for check
- if(category == RTW_WLAN_CATEGORY_PUBLIC)
- {
- action = frame_body[ 1 ];
- OUI_Subtype = frame_body[ 6 ];
- dialogToken = frame_body[7];
-
- if ( action == ACT_PUBLIC_P2P )
- {
- printk("ACTION_CATEGORY_PUBLIC: ACT_PUBLIC_P2P, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
- }
- else
- {
- printk("ACTION_CATEGORY_PUBLIC: action=%d, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- action, cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
- }
+ }
- }
- else if(category == RTW_WLAN_CATEGORY_P2P)
- {
- OUI_Subtype = frame_body[5];
- dialogToken = frame_body[6];
-
- printk("ACTION_CATEGORY_P2P: OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- cpu_to_be32( *( ( u32* ) ( frame_body + 1 ) ) ), OUI_Subtype, dialogToken);
+ DBG_8192C("RTW_Tx:da="MAC_FMT" via "FUNC_NDEV_FMT"\n",
+ MAC_ARG(GetAddr1Ptr(buf)), FUNC_NDEV_ARG(ndev));
+ #ifdef CONFIG_P2P
+ if((type = rtw_p2p_check_frames(padapter, buf, len, _TRUE)) >= 0)
+ goto dump;
+ #endif
+ if (category == RTW_WLAN_CATEGORY_PUBLIC)
+ DBG_871X("RTW_Tx:%s\n", action_public_str(action));
+ else
+ DBG_871X("RTW_Tx:category(%u), action(%u)\n", category, action);
- }
- else
- {
- printk("%s, action frame category=%d, drop!\n", __func__, category);
- goto fail;
- }
-*/
-
+dump:
//starting alloc mgmt frame to dump it
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
{
@@ -2949,6 +3320,19 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
_rtw_memcpy(pframe, (void*)buf, len);
+ #ifdef CONFIG_WFD
+ if (type >= 0)
+ {
+ struct wifi_display_info *pwfd_info;
+
+ pwfd_info = padapter->wdinfo.wfd_info;
+
+ if ( _TRUE == pwfd_info->wfd_enable )
+ {
+ rtw_append_wfd_ie( padapter, pframe, &len );
+ }
+ }
+ #endif // CONFIG_WFD
pattrib->pktlen = len;
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
@@ -2961,12 +3345,11 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
pattrib->last_txcmdsz = pattrib->pktlen;
dump_mgntframe(padapter, pmgntframe);
-
}
else
{
- printk("frame_ctl=0x%x\n", frame_ctl & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE));
+ DBG_8192C("frame_ctl=0x%x\n", frame_ctl & (RTW_IEEE80211_FCTL_FTYPE|RTW_IEEE80211_FCTL_STYPE));
}
@@ -2980,14 +3363,14 @@ fail:
static void rtw_cfg80211_monitor_if_set_multicast_list(struct net_device *ndev)
{
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
}
static int rtw_cfg80211_monitor_if_set_mac_address(struct net_device *ndev, void *addr)
{
int ret = 0;
- printk("%s\n", __func__);
+ DBG_8192C("%s\n", __func__);
return ret;
}
@@ -2997,181 +3380,210 @@ static const struct net_device_ops rtw_cfg80211_monitor_if_ops = {
.ndo_open = rtw_cfg80211_monitor_if_open,
.ndo_stop = rtw_cfg80211_monitor_if_close,
.ndo_start_xmit = rtw_cfg80211_monitor_if_xmit_entry,
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0))
.ndo_set_multicast_list = rtw_cfg80211_monitor_if_set_multicast_list,
+ #endif
.ndo_set_mac_address = rtw_cfg80211_monitor_if_set_mac_address,
};
#endif
-static struct net_device *rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name)
+static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct net_device **ndev)
{
int ret = 0;
- struct net_device* ndev = NULL;
+ struct net_device* mon_ndev = NULL;
+ struct wireless_dev* mon_wdev = NULL;
struct rtw_netdev_priv_indicator *pnpi;
struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
-
- printk("%s\n", __func__);
- if (!name ) {
+ if (!name ) {
+ DBG_871X(FUNC_ADPT_FMT" without specific name\n", FUNC_ADPT_ARG(padapter));
ret = -EINVAL;
goto out;
}
- if((strnicmp(name, pwdev_priv->ifname_mon, strlen(name)) ==0)
- && pwdev_priv->pmon_ndev)
- {
- ndev = pwdev_priv->pmon_ndev;
-
- printk("%s, monitor interface(%s) has existed\n", __func__, name);
-
+ if (pwdev_priv->pmon_ndev) {
+ DBG_871X(FUNC_ADPT_FMT" monitor interface exist: "NDEV_FMT"\n",
+ FUNC_ADPT_ARG(padapter), NDEV_ARG(pwdev_priv->pmon_ndev));
+ ret = -EBUSY;
goto out;
}
-
-
- ndev = alloc_etherdev(sizeof(struct rtw_netdev_priv_indicator));
- if (!ndev) {
+
+ mon_ndev = alloc_etherdev(sizeof(struct rtw_netdev_priv_indicator));
+ if (!mon_ndev) {
+ DBG_871X(FUNC_ADPT_FMT" allocate ndev fail\n", FUNC_ADPT_ARG(padapter));
ret = -ENOMEM;
goto out;
}
- ndev->type = ARPHRD_IEEE80211_RADIOTAP;
- strncpy(ndev->name, name, IFNAMSIZ);
- ndev->name[IFNAMSIZ - 1] = 0;
+ mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
+ strncpy(mon_ndev->name, name, IFNAMSIZ);
+ mon_ndev->name[IFNAMSIZ - 1] = 0;
+ mon_ndev->destructor = rtw_ndev_destructor;
-#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
- ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
+ mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
#else
- ndev->open = rtw_cfg80211_monitor_if_open;
- ndev->stop = rtw_cfg80211_monitor_if_close;
- ndev->hard_start_xmit = rtw_cfg80211_monitor_if_xmit_entry;
- ndev->set_mac_address = rtw_cfg80211_monitor_if_set_mac_address;
+ mon_ndev->open = rtw_cfg80211_monitor_if_open;
+ mon_ndev->stop = rtw_cfg80211_monitor_if_close;
+ mon_ndev->hard_start_xmit = rtw_cfg80211_monitor_if_xmit_entry;
+ mon_ndev->set_mac_address = rtw_cfg80211_monitor_if_set_mac_address;
#endif
- pnpi = netdev_priv(ndev);
+ pnpi = netdev_priv(mon_ndev);
pnpi->priv = padapter;
pnpi->sizeof_priv = sizeof(_adapter);
- ret = register_netdevice(ndev);
- if (ret) {
+ /* wdev */
+ mon_wdev = (struct wireless_dev *)rtw_zmalloc(sizeof(struct wireless_dev));
+ if (!mon_wdev) {
+ DBG_871X(FUNC_ADPT_FMT" allocate mon_wdev fail\n", FUNC_ADPT_ARG(padapter));
+ ret = -ENOMEM;
goto out;
}
- pwdev_priv->pmon_ndev = ndev;
+ mon_wdev->wiphy = padapter->rtw_wdev->wiphy;
+ mon_wdev->netdev = mon_ndev;
+ mon_wdev->iftype = NL80211_IFTYPE_MONITOR;
+ mon_ndev->ieee80211_ptr = mon_wdev;
+
+ ret = register_netdevice(mon_ndev);
+ if (ret) {
+ goto out;
+ }
+
+ *ndev = pwdev_priv->pmon_ndev = mon_ndev;
_rtw_memcpy(pwdev_priv->ifname_mon, name, IFNAMSIZ+1);
out:
- if (ret && ndev)
- {
- free_netdev(ndev);
- ndev = NULL;
+ if (ret && mon_wdev) {
+ rtw_mfree((u8*)mon_wdev, sizeof(struct wireless_dev));
+ mon_wdev = NULL;
}
-
-
- printk("%s, ndev=%p, pmon_ndev=%p, ret=%d\n", __func__, ndev, pwdev_priv->pmon_ndev, ret);
-
- return ndev;
+
+ if (ret && mon_ndev) {
+ free_netdev(mon_ndev);
+ *ndev = mon_ndev = NULL;
+ }
+
+ return ret;
}
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
-static struct net_device * cfg80211_rtw_add_virtual_intf(struct wiphy *wiphy, char *name,
-#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
-static int cfg80211_rtw_add_virtual_intf(struct wiphy *wiphy, char *name,
-#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- enum nl80211_iftype type, u32 *flags,
- struct vif_params *params)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+static struct wireless_dev *
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+static struct net_device *
+#else
+static int
+#endif
+ cfg80211_rtw_add_virtual_intf(
+ struct wiphy *wiphy,
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
+ const char *name,
+ #else
+ char *name,
+ #endif
+ enum nl80211_iftype type, u32 *flags, struct vif_params *params)
{
+ int ret = 0;
struct net_device* ndev = NULL;
- _adapter *padapter = wiphy_to_adapter(wiphy);
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+
+ DBG_871X(FUNC_ADPT_FMT " wiphy:%s, name:%s, type:%d\n",
+ FUNC_ADPT_ARG(padapter), wiphy_name(wiphy), name, type);
- printk("%s, ifname=%s, type=%d\n", __func__, name, type);
-
-
switch (type) {
case NL80211_IFTYPE_ADHOC:
case NL80211_IFTYPE_AP_VLAN:
case NL80211_IFTYPE_WDS:
case NL80211_IFTYPE_MESH_POINT:
-
+ ret = -ENODEV;
break;
case NL80211_IFTYPE_MONITOR:
- ndev = rtw_cfg80211_add_monitor_if(padapter, name);
+ ret = rtw_cfg80211_add_monitor_if(padapter, (char *)name, &ndev);
break;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
case NL80211_IFTYPE_P2P_CLIENT:
#endif
case NL80211_IFTYPE_STATION:
-
+ ret = -ENODEV;
break;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
case NL80211_IFTYPE_P2P_GO:
#endif
case NL80211_IFTYPE_AP:
-
+ ret = -ENODEV;
break;
default:
- printk("Unsupported interface type\n");
+ ret = -ENODEV;
+ DBG_871X("Unsupported interface type\n");
break;
}
- printk("ndev=%p\n", ndev);
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- return ndev;
-#else // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- return 0;
-#endif // (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
-
+ DBG_871X(FUNC_ADPT_FMT" ndev:%p, ret:%d\n", FUNC_ADPT_ARG(padapter), ndev, ret);
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+ return ndev ? ndev->ieee80211_ptr : ERR_PTR(ret);
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+ return ndev ? ndev : ERR_PTR(ret);
+#else
+ return ret;
+#endif
}
-static int cfg80211_rtw_del_virtual_intf(struct wiphy *wiphy, struct net_device *dev)
+static int cfg80211_rtw_del_virtual_intf(struct wiphy *wiphy,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+ struct wireless_dev *wdev
+#else
+ struct net_device *ndev
+#endif
+)
{
- _adapter *padapter = wiphy_to_adapter(wiphy);
struct rtw_wdev_priv *pwdev_priv = (struct rtw_wdev_priv *)wiphy_priv(wiphy);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+ struct net_device *ndev;
+ ndev = wdev ? wdev->netdev : NULL;
+#endif
+
+ if (!ndev)
+ goto exit;
- printk("%s\n", __func__);
+ unregister_netdevice(ndev);
- if(dev)
- {
- unregister_netdev(dev);
-
- free_netdev(dev);
+ if (ndev == pwdev_priv->pmon_ndev) {
+ pwdev_priv->pmon_ndev = NULL;
+ pwdev_priv->ifname_mon[0] = '\0';
+ DBG_871X(FUNC_NDEV_FMT" remove monitor interface\n", FUNC_NDEV_ARG(ndev));
+ }
- if(dev == pwdev_priv->pmon_ndev)
- {
- printk("remove monitor interface\n");
- pwdev_priv->pmon_ndev = NULL;
- pwdev_priv->ifname_mon[0] = '\0';
- }
- }
-
+exit:
return 0;
}
-static int cfg80211_rtw_add_beacon(struct wiphy *wiphy, struct net_device *dev,
- struct beacon_parameters *info)
+static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, const u8 *tail, size_t tail_len)
{
int ret=0;
u8 *pbuf = NULL;
uint len, wps_ielen=0;
uint p2p_ielen=0;
u8 *p2p_ie;
- _adapter *padapter = wiphy_to_adapter(wiphy);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ u8 got_p2p_ie = _FALSE;
+ struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
//struct sta_priv *pstapriv = &padapter->stapriv;
- printk("%s, beacon_head_len=%d, beacon_tail_len=%d\n", __FUNCTION__, info->head_len, info->tail_len);
+ DBG_8192C("%s beacon_head_len=%zu, beacon_tail_len=%zu\n", __FUNCTION__, head_len, tail_len);
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
return -EINVAL;
- if(info->head_len<24)
+ if(head_len<24)
return -EINVAL;
- pbuf = rtw_zmalloc(info->head_len+info->tail_len);
+ pbuf = rtw_zmalloc(head_len+tail_len);
if(!pbuf)
return -ENOMEM;
@@ -3182,38 +3594,33 @@ static int cfg80211_rtw_add_beacon(struct wiphy *wiphy, struct net_device *dev,
// pstapriv->max_num_sta = NUM_STA;
- _rtw_memcpy(pbuf, info->head+24, info->head_len-24);// 24=beacon header len.
- _rtw_memcpy(pbuf+info->head_len-24, info->tail, info->tail_len);
+ _rtw_memcpy(pbuf, (void *)head+24, head_len-24);// 24=beacon header len.
+ _rtw_memcpy(pbuf+head_len-24, (void *)tail, tail_len);
- len = info->head_len+info->tail_len-24;
+ len = head_len+tail_len-24;
//check wps ie if inclued
if(rtw_get_wps_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &wps_ielen))
- printk("add bcn, wps_ielen=%d\n", wps_ielen);
+ DBG_8192C("add bcn, wps_ielen=%d\n", wps_ielen);
-
+#ifdef CONFIG_P2P
//check p2p ie if inclued
- if(rtw_get_p2p_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &p2p_ielen))
- printk("got p2p_ie, len=%d\n", p2p_ielen);
-
-
-
- // pbss_network->IEs will not include p2p_ie
- if(rtw_check_beacon_data(padapter, pbuf, len-p2p_ielen) == _SUCCESS)
- //if(rtw_check_beacon_data(padapter, pbuf, len) == _SUCCESS)
+ if( adapter->wdinfo.driver_interface == DRIVER_CFG80211 )
{
-#ifdef CONFIG_P2P
//check p2p if enable
- if((p2p_ie=rtw_get_p2p_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &p2p_ielen)))
+ if(rtw_get_p2p_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &p2p_ielen))
{
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+ struct wifidirect_info *pwdinfo= &(adapter->wdinfo);
+
+ DBG_8192C("got p2p_ie, len=%d\n", p2p_ielen);
+ got_p2p_ie = _TRUE;
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- printk("Enable P2P function for the first time\n");
- rtw_p2p_enable(padapter, P2P_ROLE_GO);
- wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _TRUE;
+ {
+ DBG_8192C("Enable P2P function for the first time\n");
+ rtw_p2p_enable(adapter, P2P_ROLE_GO);
+ wdev_to_priv(adapter->rtw_wdev)->p2p_enabled = _TRUE;
}
else
{
@@ -3221,20 +3628,32 @@ static int cfg80211_rtw_add_beacon(struct wiphy *wiphy, struct net_device *dev,
_cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
_cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
- printk("enter GO Mode, p2p_ielen=%d\n", p2p_ielen);
+ DBG_8192C("enter GO Mode, p2p_ielen=%d\n", p2p_ielen);
rtw_p2p_set_role(pwdinfo, P2P_ROLE_GO);
rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_OK);
pwdinfo->intent = 15;
- }
+ }
+ }
+ }
+#endif // CONFIG_P2P
+
+ /* pbss_network->IEs will not include p2p_ie, wfd ie */
+ rtw_ies_remove_ie(pbuf, &len, _BEACON_IE_OFFSET_, _VENDOR_SPECIFIC_IE_, P2P_OUI, 4);
+ rtw_ies_remove_ie(pbuf, &len, _BEACON_IE_OFFSET_, _VENDOR_SPECIFIC_IE_, WFD_OUI, 4);
+ if (rtw_check_beacon_data(adapter, pbuf, len) == _SUCCESS)
+ {
+#ifdef CONFIG_P2P
+ //check p2p if enable
+ if(got_p2p_ie == _TRUE)
+ {
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+ struct wifidirect_info *pwdinfo= &(adapter->wdinfo);
pwdinfo->operating_channel = pmlmeext->cur_channel;
-
}
#endif //CONFIG_P2P
-
ret = 0;
-
}
else
{
@@ -3242,66 +3661,136 @@ static int cfg80211_rtw_add_beacon(struct wiphy *wiphy, struct net_device *dev,
}
- rtw_mfree(pbuf, info->head_len+info->tail_len);
+ rtw_mfree(pbuf, head_len+tail_len);
return ret;
-
}
-static int cfg80211_rtw_set_beacon(struct wiphy *wiphy, struct net_device *dev,
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) && !defined(COMPAT_KERNEL_RELEASE)
+static int cfg80211_rtw_add_beacon(struct wiphy *wiphy, struct net_device *ndev,
+ struct beacon_parameters *info)
+{
+ int ret=0;
+ _adapter *adapter = wiphy_to_adapter(wiphy);
+
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+ ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len);
+
+ return ret;
+}
+
+static int cfg80211_rtw_set_beacon(struct wiphy *wiphy, struct net_device *ndev,
struct beacon_parameters *info)
{
_adapter *padapter = wiphy_to_adapter(wiphy);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
pmlmeext->bstart_bss = _TRUE;
- cfg80211_rtw_add_beacon(wiphy, dev, info);
+ cfg80211_rtw_add_beacon(wiphy, ndev, info);
return 0;
}
-static int cfg80211_rtw_del_beacon(struct wiphy *wiphy, struct net_device *dev)
+static int cfg80211_rtw_del_beacon(struct wiphy *wiphy, struct net_device *ndev)
{
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+
+ return 0;
+}
+#else
+static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev,
+ struct cfg80211_ap_settings *settings)
+{
+ int ret = 0;
+ _adapter *adapter = wiphy_to_adapter(wiphy);
+ DBG_871X(FUNC_NDEV_FMT" hidden_ssid:%d, auth_type:%d\n", FUNC_NDEV_ARG(ndev),
+ settings->hidden_ssid, settings->auth_type);
+
+ ret = rtw_add_beacon(adapter, settings->beacon.head, settings->beacon.head_len,
+ settings->beacon.tail, settings->beacon.tail_len);
+
+ adapter->mlmeextpriv.mlmext_info.hidden_ssid_mode = settings->hidden_ssid;
+
+ if (settings->ssid && settings->ssid_len) {
+ WLAN_BSSID_EX *pbss_network = &adapter->mlmepriv.cur_network.network;
+ WLAN_BSSID_EX *pbss_network_ext = &adapter->mlmeextpriv.mlmext_info.network;
+
+ if(0)
+ DBG_871X(FUNC_ADPT_FMT" ssid:(%s,%d), from ie:(%s,%d)\n", FUNC_ADPT_ARG(adapter),
+ settings->ssid, settings->ssid_len,
+ pbss_network->Ssid.Ssid, pbss_network->Ssid.SsidLength);
+
+ _rtw_memcpy(pbss_network->Ssid.Ssid, (void *)settings->ssid, settings->ssid_len);
+ pbss_network->Ssid.SsidLength = settings->ssid_len;
+ _rtw_memcpy(pbss_network_ext->Ssid.Ssid, (void *)settings->ssid, settings->ssid_len);
+ pbss_network_ext->Ssid.SsidLength = settings->ssid_len;
+
+ if(0)
+ DBG_871X(FUNC_ADPT_FMT" after ssid:(%s,%d), (%s,%d)\n", FUNC_ADPT_ARG(adapter),
+ pbss_network->Ssid.Ssid, pbss_network->Ssid.SsidLength,
+ pbss_network_ext->Ssid.Ssid, pbss_network_ext->Ssid.SsidLength);
+ }
+
+ return ret;
+}
+
+static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
+ struct cfg80211_beacon_data *info)
+{
+ int ret = 0;
+ _adapter *adapter = wiphy_to_adapter(wiphy);
+
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+
+ ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len);
+
+ return ret;
+}
+
+static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
+{
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
+#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0))
-static int cfg80211_rtw_add_station(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_add_station(struct wiphy *wiphy, struct net_device *ndev,
u8 *mac, struct station_parameters *params)
{
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
-static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev,
u8 *mac)
{
int ret=0;
_irqL irqL;
_list *phead, *plist;
+ u8 updated;
struct sta_info *psta = NULL;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct sta_priv *pstapriv = &padapter->stapriv;
- printk("+%s\n", __func__);
+ DBG_871X("+"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
if(check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != _TRUE)
{
- printk("%s, fw_state != FW_LINKED|WIFI_AP_STATE\n", __func__);
+ DBG_8192C("%s, fw_state != FW_LINKED|WIFI_AP_STATE\n", __func__);
return -EINVAL;
}
if(!mac)
{
- printk("flush all sta, and cam_entry\n");
+ DBG_8192C("flush all sta, and cam_entry\n");
flush_all_cam_entry(padapter); //clear CAM
@@ -3311,7 +3800,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *dev,
}
- printk("free sta macaddr =" MAC_FMT "\n", MAC_ARG(mac));
+ DBG_8192C("free sta macaddr =" MAC_FMT "\n", MAC_ARG(mac));
if (mac[0] == 0xff && mac[1] == 0xff &&
mac[2] == 0xff && mac[3] == 0xff &&
@@ -3344,9 +3833,10 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *dev,
DBG_8192C("free psta=%p, aid=%d\n", psta, psta->aid);
rtw_list_delete(&psta->asoc_list);
+ pstapriv->asoc_list_cnt--;
//_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- ap_free_sta(padapter, psta);
+ updated = ap_free_sta(padapter, psta, _TRUE, WLAN_REASON_DEAUTH_LEAVING);
//_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
psta = NULL;
@@ -3360,73 +3850,48 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *dev,
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
-
-#if 0
- psta = rtw_get_stainfo(pstapriv, mac);
- if(psta)
- {
- //DBG_8192C("free psta=%p, aid=%d\n", psta, psta->aid);
-
- _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- if(rtw_is_list_empty(&psta->asoc_list)==_FALSE)
- {
- rtw_list_delete(&psta->asoc_list);
- ap_free_sta(padapter, psta);
-
- psta = NULL;
+ associated_clients_update(padapter, updated);
- }
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
-
- }
- else
- {
- DBG_8192C("cfg80211_rtw_del_station(), sta has already been removed or never been added\n");
-
- //ret = -1;
- }
-#endif
-
- printk("-%s\n", __func__);
+ DBG_871X("-"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return ret;
}
-static int cfg80211_rtw_change_station(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_change_station(struct wiphy *wiphy, struct net_device *ndev,
u8 *mac, struct station_parameters *params)
{
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
-static int cfg80211_rtw_dump_station(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_dump_station(struct wiphy *wiphy, struct net_device *ndev,
int idx, u8 *mac, struct station_info *sinfo)
{
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
//TODO: dump scanned queue
return -ENOENT;
}
-static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *ndev,
struct bss_parameters *params)
{
u8 i;
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
/*
- printk("use_cts_prot=%d\n", params->use_cts_prot);
- printk("use_short_preamble=%d\n", params->use_short_preamble);
- printk("use_short_slot_time=%d\n", params->use_short_slot_time);
- printk("ap_isolate=%d\n", params->ap_isolate);
+ DBG_8192C("use_cts_prot=%d\n", params->use_cts_prot);
+ DBG_8192C("use_short_preamble=%d\n", params->use_short_preamble);
+ DBG_8192C("use_short_slot_time=%d\n", params->use_short_slot_time);
+ DBG_8192C("ap_isolate=%d\n", params->ap_isolate);
- printk("basic_rates_len=%d\n", params->basic_rates_len);
+ DBG_8192C("basic_rates_len=%d\n", params->basic_rates_len);
for(i=0; i<params->basic_rates_len; i++)
{
- printk("basic_rates=%d\n", params->basic_rates[i]);
+ DBG_8192C("basic_rates=%d\n", params->basic_rates[i]);
}
*/
@@ -3434,27 +3899,31 @@ static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *dev,
}
-static int cfg80211_rtw_set_channel(struct wiphy *wiphy, struct net_device *dev,
- struct ieee80211_channel *chan,
- enum nl80211_channel_type channel_type)
+static int cfg80211_rtw_set_channel(struct wiphy *wiphy
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ , struct net_device *ndev
+ #endif
+ , struct ieee80211_channel *chan, enum nl80211_channel_type channel_type)
{
- printk("%s\n", __func__);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+ #endif
return 0;
}
-static int cfg80211_rtw_auth(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_auth(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_auth_request *req)
{
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
-static int cfg80211_rtw_assoc(struct wiphy *wiphy, struct net_device *dev,
+static int cfg80211_rtw_assoc(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_assoc_request *req)
{
- printk("%s\n", __func__);
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
return 0;
}
@@ -3462,66 +3931,108 @@ static int cfg80211_rtw_assoc(struct wiphy *wiphy, struct net_device *dev,
void rtw_cfg80211_rx_action_p2p(_adapter *padapter, u8 *pmgmt_frame, uint frame_len)
{
+ int type;
s32 freq;
- int channel;
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ int channel;
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ u8 category, action;
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s\n", __func__);
-#endif
+ channel = rtw_get_oper_ch(padapter);
- rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, _FALSE);
+ DBG_8192C("RTW_Rx:cur_ch=%d\n", channel);
+ #ifdef CONFIG_P2P
+ type = rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, _FALSE);
+ if (type >= 0)
+ goto indicate;
+ #endif
+ rtw_action_frame_parse(pmgmt_frame, frame_len, &category, &action);
+ DBG_871X("RTW_Rx:category(%u), action(%u)\n", category, action);
- channel = pmlmeext->cur_channel;
-
+indicate:
if (channel <= RTW_CH_MAX_2G_CHANNEL)
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
- }
else
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
- }
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- cfg80211_rx_mgmt(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC);
#else
cfg80211_rx_action(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
#endif
-
}
void rtw_cfg80211_rx_p2p_action_public(_adapter *padapter, u8 *pmgmt_frame, uint frame_len)
{
+ int type;
s32 freq;
int channel;
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ u8 category, action;
+
+ channel = rtw_get_oper_ch(padapter);
+
+ DBG_8192C("RTW_Rx:cur_ch=%d\n", channel);
+ #ifdef CONFIG_P2P
+ type = rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, _FALSE);
+ if (type >= 0) {
+ switch (type) {
+ case P2P_GO_NEGO_CONF:
+ case P2P_PROVISION_DISC_RESP:
+ case P2P_INVIT_RESP:
+ rtw_set_scan_deny(padapter, 2000);
+ rtw_clear_scan_deny(padapter);
+ }
+ goto indicate;
+ }
+ #endif
+ rtw_action_frame_parse(pmgmt_frame, frame_len, &category, &action);
+ DBG_871X("RTW_Rx:category(%u), action(%u)\n", category, action);
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s\n", __func__);
+indicate:
+ if (channel <= RTW_CH_MAX_2G_CHANNEL)
+ freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
+ else
+ freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC);
+#else
+ cfg80211_rx_action(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
#endif
+}
- rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, _FALSE);
+void rtw_cfg80211_rx_action(_adapter *adapter, u8 *frame, uint frame_len, const char*msg)
+{
+ s32 freq;
+ int channel;
+ struct mlme_ext_priv *pmlmeext = &(adapter->mlmeextpriv);
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(adapter->rtw_wdev);
+ u8 category, action;
+
+ channel = rtw_get_oper_ch(adapter);
+
+ rtw_action_frame_parse(frame, frame_len, &category, &action);
+
+ DBG_8192C("RTW_Rx:cur_ch=%d\n", channel);
+ if (msg)
+ DBG_871X("RTW_Rx:%s\n", msg);
+ else
+ DBG_871X("RTW_Rx:category(%u), action(%u)\n", category, action);
- channel = pmlmeext->cur_channel;
-
if (channel <= RTW_CH_MAX_2G_CHANNEL)
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ);
- }
else
- {
freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ);
- }
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- cfg80211_rx_mgmt(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ rtw_cfg80211_rx_mgmt(adapter, freq, 0, frame, frame_len, GFP_ATOMIC);
#else
- cfg80211_rx_action(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
+ cfg80211_rx_action(adapter->pnetdev, freq, frame, frame_len, GFP_ATOMIC);
#endif
}
+#ifdef CONFIG_P2P
void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf, size_t len)
{
u16 wps_devicepassword_id = 0x0000;
@@ -3625,9 +4136,9 @@ void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf,
fctrl = &(pwlanhdr->frame_ctl);
*(fctrl) = 0;
- _rtw_memcpy(pwlanhdr->addr1, pwdinfo->tx_prov_disc_info.peerIFAddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr1, pwdinfo->tx_prov_disc_info.peerDevAddr, ETH_ALEN);
_rtw_memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN);
- _rtw_memcpy(pwlanhdr->addr3, pwdinfo->tx_prov_disc_info.peerIFAddr, ETH_ALEN);
+ _rtw_memcpy(pwlanhdr->addr3, pwdinfo->tx_prov_disc_info.peerDevAddr, ETH_ALEN);
SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
pmlmeext->mgnt_seq++;
@@ -3668,8 +4179,7 @@ void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf,
// Value:
// Device Capability Bitmap, 1 byte
- // Be able to participate in additional P2P Groups and
- // support the P2P Invitation Procedure
+ // Group Capability Bitmap, 1 byte
_rtw_memcpy(p2p_ie + p2pielen, &capability, 2);
p2pielen += 2;
@@ -3736,344 +4246,528 @@ void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf,
pattrib->last_txcmdsz = pattrib->pktlen;
- dump_mgntframe(padapter, pmgntframe);
+ //dump_mgntframe(padapter, pmgntframe);
+ if (dump_mgntframe_and_wait_ack(padapter, pmgntframe) != _SUCCESS)
+ DBG_8192C("%s, ack to\n", __func__);
//if(wps_devicepassword_id == WPS_DPID_REGISTRAR_SPEC)
//{
- // printk("waiting for p2p peer key-in PIN CODE\n");
+ // DBG_8192C("waiting for p2p peer key-in PIN CODE\n");
// rtw_msleep_os(15000); // 15 sec for key in PIN CODE, workaround for GS2 before issuing Nego Req.
//}
}
-static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- struct ieee80211_channel *chan, bool offchan,
- enum nl80211_channel_type channel_type,
- bool channel_type_valid, unsigned int wait,
-#else //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- struct ieee80211_channel *chan,
- enum nl80211_channel_type channel_type,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- bool channel_type_valid,
+static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+ struct wireless_dev *wdev,
+#else
+ struct net_device *ndev,
+#endif
+ struct ieee80211_channel * channel,
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
+ enum nl80211_channel_type channel_type,
#endif
-#endif //(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
- const u8 *buf, size_t len, u64 *cookie)
+ unsigned int duration, u64 *cookie)
{
- struct xmit_frame *pmgntframe;
- struct pkt_attrib *pattrib;
- unsigned char *pframe;
- const struct ieee80211_mgmt *mgmt;
- //u8 category, action, OUI_Subtype, dialogToken=0;
- //unsigned char *frame_body;
- int ret = 0;
- int type = (-1);
- u16 fc;
- bool ack = _TRUE;
- struct rtw_ieee80211_hdr *pwlanhdr;
- _adapter *padapter = wiphy_to_adapter(wiphy);
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ s32 err = 0;
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
+ u8 remain_ch = (u8) ieee80211_frequency_to_channel(channel->center_freq);
+ u8 ready_on_channel = _FALSE;
+ DBG_871X(FUNC_ADPT_FMT" ch:%u duration:%d\n", FUNC_ADPT_ARG(padapter), remain_ch, duration);
- /* cookie generation */
- *cookie = (unsigned long) buf;
+ if(pcfg80211_wdinfo->is_ro_ch == _TRUE)
+ {
+ DBG_8192C("%s, cancel ro ch timer\n", __func__);
+
+ _cancel_timer_ex(&padapter->cfg80211_wdinfo.remain_on_ch_timer);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ ATOMIC_SET(&pwdev_priv->ro_ch_to, 1);
+#endif //CONFIG_CONCURRENT_MODE
+
+ p2p_protocol_wk_hdl(padapter, P2P_RO_CH_WK);
+ }
+
+ pcfg80211_wdinfo->is_ro_ch = _TRUE;
+
+ if(_FAIL == rtw_pwr_wakeup(padapter)) {
+ err = -EFAULT;
+ goto exit;
+ }
+ _rtw_memcpy(&pcfg80211_wdinfo->remain_on_ch_channel, channel, sizeof(struct ieee80211_channel));
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
+ pcfg80211_wdinfo->remain_on_ch_type= channel_type;
+ #endif
+ pcfg80211_wdinfo->remain_on_ch_cookie= *cookie;
- printk("%s, len=%d, ch=%d, ch_type=%d\n", __func__, len,
- ieee80211_frequency_to_channel(chan->center_freq), channel_type);
+ rtw_scan_abort(padapter);
+#ifdef CONFIG_CONCURRENT_MODE
+ if(rtw_buddy_adapter_up(padapter))
+ rtw_scan_abort(padapter->pbuddy_adapter);
+#endif //CONFIG_CONCURRENT_MODE
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- printk("channel_type_valid=%d\n", channel_type_valid);
+ //if(!rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) && !rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
+ wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _TRUE;
+ }
+ else
+ {
+ rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+#ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
#endif
+ }
+
+
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
+
+
+ if(duration < 400)
+ duration = duration*3;//extend from exper.
- mgmt = (const struct ieee80211_mgmt *) buf;
- fc = mgmt->frame_control;
- if (fc != IEEE80211_STYPE_ACTION)
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if(check_buddy_fwstate(padapter, _FW_LINKED) &&
+ (duration<pwdinfo->ext_listen_interval))
{
- if (fc == IEEE80211_STYPE_PROBE_RESP)
+ duration = duration + pwdinfo->ext_listen_interval;
+ }
+#endif
+
+ pcfg80211_wdinfo->restore_channel = rtw_get_oper_ch(padapter);
+
+ if(rtw_ch_set_search_ch(pmlmeext->channel_set, remain_ch) >= 0) {
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
{
- printk("%s, fc == IEEE80211_STYPE_PROBE_RESP\n", __func__);
- }
- else
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ if(remain_ch != pbuddy_mlmeext->cur_channel)
+ {
+ if(ATOMIC_READ(&pwdev_priv->switch_ch_to)==1 ||
+ (remain_ch != pmlmeext->cur_channel))
+ {
+ DBG_8192C("%s, issue nulldata pwrbit=1\n", __func__);
+ issue_nulldata(padapter->pbuddy_adapter, NULL, 1, 3, 500);
+
+ ATOMIC_SET(&pwdev_priv->switch_ch_to, 0);
+
+ DBG_8192C("%s, set switch ch timer, duration=%d\n", __func__, duration-pwdinfo->ext_listen_interval);
+ _set_timer(&pwdinfo->ap_p2p_switch_timer, duration-pwdinfo->ext_listen_interval);
+ }
+ }
+
+ ready_on_channel = _TRUE;
+ //pmlmeext->cur_channel = remain_ch;
+ //set_channel_bwmode(padapter, remain_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }else
+#endif //CONFIG_CONCURRENT_MODE
+ if(remain_ch != pmlmeext->cur_channel )
{
- printk("%s, frame_control == 0x%x\n", __func__, fc);
+ ready_on_channel = _TRUE;
+ //pmlmeext->cur_channel = remain_ch;
+ //set_channel_bwmode(padapter, remain_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
}
-
- //cfg80211_mgmt_tx_status(dev, *cookie, buf, len, ack, GFP_KERNEL);
-
- goto exit;
-
- }
- else
+ } else {
+ DBG_871X("%s remain_ch:%u not in channel plan!!!!\n", __FUNCTION__, remain_ch);
+ }
+
+
+ //call this after other things have been done
+#ifdef CONFIG_CONCURRENT_MODE
+ if(ATOMIC_READ(&pwdev_priv->ro_ch_to)==1 ||
+ (remain_ch != pmlmeext->cur_channel))
{
- u32 cnt=0;
- u32 wait_for_surveydone;
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ u8 co_channel = 0xff;
+ ATOMIC_SET(&pwdev_priv->ro_ch_to, 0);
+#endif
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, do: scan_abort\n", __func__);
+ if(ready_on_channel == _TRUE)
+ {
+ if ( !check_fwstate(&padapter->mlmepriv, _FW_LINKED ) )
+ pmlmeext->cur_channel = remain_ch;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ co_channel = rtw_get_oper_ch(padapter);
+
+ if(co_channel !=remain_ch)
#endif
-
- /* Abort the dwell time of any previous off-channel action frame that may
- * be still in effect. Sending off-channel action frames relies on the
- * driver's scan engine. If a previous off-channel action frame tx is
- * still in progress (including the dwell time), then this new action
- * frame will not be sent out.
- */
-
- rtw_cfg80211_scan_abort(padapter);
- }
-#if 0
- if (wl->p2p->vif_created) {
- wifi_p2p_pub_act_frame_t *act_frm =
- (wifi_p2p_pub_act_frame_t *) (action_frame->data);
- WL_DBG(("action_frame->len: %d chan %d category %d subtype %d\n",
- action_frame->len, af_params->channel,
- act_frm->category, act_frm->subtype));
- /*
- * To make sure to send successfully action frame, we have to turn off mpc
- */
- if ((act_frm->subtype == P2P_PAF_GON_REQ)||
- (act_frm->subtype == P2P_PAF_GON_RSP)) {
- wldev_iovar_setint(dev, "mpc", 0);
- } else if (act_frm->subtype == P2P_PAF_GON_CONF) {
- wldev_iovar_setint(dev, "mpc", 1);
- } else if (act_frm->subtype == P2P_PAF_DEVDIS_REQ) {
- af_params->dwell_time = WL_LONG_DWELL_TIME;
+ {
+ if (!padapter->mlmepriv.LinkDetectInfo.bBusyTraffic)
+ set_channel_bwmode(padapter, remain_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
}
+ DBG_8192C("%s, set ro ch timer, duration=%d\n", __func__, duration);
+ _set_timer( &pcfg80211_wdinfo->remain_on_ch_timer, duration);
+
+#ifdef CONFIG_CONCURRENT_MODE
}
#endif
-/*
- frame_body = (unsigned char *)(buf + sizeof(struct rtw_ieee80211_hdr_3addr));
- category = frame_body[0];
- //just for check
- if(category == RTW_WLAN_CATEGORY_PUBLIC)
- {
- action = frame_body[ 1 ];
- OUI_Subtype = frame_body[ 6 ];
- dialogToken = frame_body[7];
+ rtw_cfg80211_ready_on_channel(padapter, *cookie, channel, channel_type, duration, GFP_KERNEL);
- if ( action == ACT_PUBLIC_P2P )
- {
- printk("ACTION_CATEGORY_PUBLIC: ACT_PUBLIC_P2P, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
- }
- else
- {
- printk("ACTION_CATEGORY_PUBLIC: action=%d, OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- action, cpu_to_be32( *( ( u32* ) ( frame_body + 2 ) ) ), OUI_Subtype, dialogToken);
- }
-
- }
- else if(category == RTW_WLAN_CATEGORY_P2P)
- {
- OUI_Subtype = frame_body[5];
- dialogToken = frame_body[6];
+exit:
+ if (err)
+ pcfg80211_wdinfo->is_ro_ch = _FALSE;
- printk("ACTION_CATEGORY_P2P: OUI=0x%x, OUI_Subtype=%d, dialogToken=%d\n",
- cpu_to_be32( *( ( u32* ) ( frame_body + 1 ) ) ), OUI_Subtype, dialogToken);
+ return err;
+}
- }
- else
- {
- printk("%s, action frame category=%d\n", __func__, category);
- ack = _FALSE;
- goto exit;
+static s32 cfg80211_rtw_cancel_remain_on_channel(struct wiphy *wiphy,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+ struct wireless_dev *wdev,
+#else
+ struct net_device *ndev,
+#endif
+ u64 cookie)
+{
+ s32 err = 0;
+ _adapter *padapter = wiphy_to_adapter(wiphy);
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+ struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
+
+ DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
+
+ if (pcfg80211_wdinfo->is_ro_ch == _TRUE) {
+ DBG_8192C("%s, cancel ro ch timer\n", __func__);
+ _cancel_timer_ex(&padapter->cfg80211_wdinfo.remain_on_ch_timer);
+ #ifdef CONFIG_CONCURRENT_MODE
+ ATOMIC_SET(&pwdev_priv->ro_ch_to, 1);
+ #endif
+ p2p_protocol_wk_hdl(padapter, P2P_RO_CH_WK);
}
-*/
- if( ieee80211_frequency_to_channel(chan->center_freq) != pmlmeext->cur_channel )
+ #if 0
+ // Disable P2P Listen State
+ if(!rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) && !rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
{
- pmlmeext->cur_channel = ieee80211_frequency_to_channel(chan->center_freq);
- set_channel_bwmode(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ _cancel_timer_ex( &pwdinfo->find_phase_timer );
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
+
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
+ _rtw_memset(pwdinfo, 0x00, sizeof(struct wifidirect_info));
+ }
}
-
-
- if( (type = rtw_p2p_check_frames(padapter, buf, len, _TRUE)) < 0)
+ else
+ #endif
{
- ack = _FALSE;
- goto exit;
- }
+ rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
+#ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
+#endif
+ }
+ pcfg80211_wdinfo->is_ro_ch = _FALSE;
+ return err;
+}
- //if(type == P2P_GO_NEGO_REQ)
- //{
- // rtw_cfg80211_issue_p2p_provision_request(padapter, buf, len);
- //}
-
-
- //starting alloc mgmt frame to dump it
- if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
- {
- ack = _FALSE;
- ret = -ENOMEM;
+#endif //CONFIG_P2P
+
+static int _cfg80211_rtw_mgmt_tx(_adapter *padapter, u8 tx_ch, const u8 *buf, size_t len)
+{
+ struct xmit_frame *pmgntframe;
+ struct pkt_attrib *pattrib;
+ unsigned char *pframe;
+ int ret = _FAIL;
+ bool ack = _TRUE;
+ struct rtw_ieee80211_hdr *pwlanhdr;
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
+ struct wifidirect_info *pwdinfo = &padapter->wdinfo;
+ //struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
+
+ if(_FAIL == rtw_pwr_wakeup(padapter)) {
+ ret = -EFAULT;
goto exit;
}
- //update attribute
- pattrib = &pmgntframe->attrib;
- update_mgntframe_attrib(padapter, pattrib);
- pattrib->retry_ctrl = _FALSE;
+ rtw_set_scan_deny(padapter, 1000);
- _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
+ rtw_scan_abort(padapter);
+ #ifdef CONFIG_CONCURRENT_MODE
+ if(rtw_buddy_adapter_up(padapter))
+ rtw_scan_abort(padapter->pbuddy_adapter);
+ #endif /* CONFIG_CONCURRENT_MODE */
- pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
+ if (padapter->cfg80211_wdinfo.is_ro_ch == _TRUE) {
+ //DBG_8192C("%s, cancel ro ch timer\n", __func__);
+ //_cancel_timer_ex(&padapter->cfg80211_wdinfo.remain_on_ch_timer);
+ //padapter->cfg80211_wdinfo.is_ro_ch = _FALSE;
+ #ifdef CONFIG_CONCURRENT_MODE
+ if (!check_fwstate(&padapter->mlmepriv, _FW_LINKED ))
+ {
+ DBG_8192C("%s, extend ro ch time\n", __func__);
+ _set_timer( &padapter->cfg80211_wdinfo.remain_on_ch_timer, pwdinfo->ext_listen_period);
+ }
+ #endif //CONFIG_CONCURRENT_MODE
+ }
- _rtw_memcpy(pframe, (void*)buf, len);
- pattrib->pktlen = len;
-
- pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
- //update seq number
- pmlmeext->mgnt_seq = GetSequence(pwlanhdr);
- pattrib->seqnum = pmlmeext->mgnt_seq;
- pmlmeext->mgnt_seq++;
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter, _FW_LINKED )) {
+ u8 co_channel=0xff;
+ PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
-
- pattrib->last_txcmdsz = pattrib->pktlen;
-
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, ack=%d, ok!\n", __func__, ack );
-#endif
+ co_channel = rtw_get_oper_ch(padapter);
- //indicate ack before issue frame to avoid racing with rsp frame
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- cfg80211_mgmt_tx_status(dev, *cookie, buf, len, ack, GFP_KERNEL);
-#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))
- cfg80211_action_tx_status(dev, *cookie, buf, len, ack, GFP_KERNEL);
-#endif
-
- dump_mgntframe(padapter, pmgntframe);
-
- return ret;
-
-exit:
-
- printk("%s, ack=%d \n", __func__, ack );
+ if (tx_ch != pbuddy_mlmeext->cur_channel) {
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- cfg80211_mgmt_tx_status(dev, *cookie, buf, len, ack, GFP_KERNEL);
-#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))
- cfg80211_action_tx_status(dev, *cookie, buf, len, ack, GFP_KERNEL);
-#endif
-
- return ret;
+ u16 ext_listen_period;
-}
+ if (ATOMIC_READ(&pwdev_priv->switch_ch_to)==1) {
+ DBG_8192C("%s, issue nulldata pwrbit=1\n", __func__);
+ issue_nulldata(padapter->pbuddy_adapter, NULL, 1, 3, 500);
-static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device *dev,
- struct ieee80211_channel * channel,
- enum nl80211_channel_type channel_type,
- unsigned int duration, u64 *cookie)
-{
- s32 err = 0;
- _adapter *padapter = wiphy_to_adapter(wiphy);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- struct wifidirect_info *pwdinfo = &padapter->wdinfo;
- struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
- u8 remain_ch = (u8) ieee80211_frequency_to_channel(channel->center_freq);
+ ATOMIC_SET(&pwdev_priv->switch_ch_to, 0);
+
+ //DBG_8192C("%s, set switch ch timer, period=%d\n", __func__, pwdinfo->ext_listen_period);
+ //_set_timer(&pwdinfo->ap_p2p_switch_timer, pwdinfo->ext_listen_period);
+ }
+
+ if (check_fwstate(&padapter->mlmepriv, _FW_LINKED ))
+ {
+ ext_listen_period = 500;// 500ms
+ }
+ else
+ {
+ ext_listen_period = pwdinfo->ext_listen_period;
+ }
+
+ DBG_8192C("%s, set switch ch timer, period=%d\n", __func__, ext_listen_period);
+ _set_timer(&pwdinfo->ap_p2p_switch_timer, ext_listen_period);
+
+ }
- printk("%s channel %02u duration %d\n", __func__, remain_ch, duration);
+ if (!check_fwstate(&padapter->mlmepriv, _FW_LINKED ))
+ pmlmeext->cur_channel = tx_ch;
+
+ if (tx_ch != co_channel)
+ set_channel_bwmode(padapter, tx_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }else
+#endif //CONFIG_CONCURRENT_MODE
+ //if (tx_ch != pmlmeext->cur_channel) {
+ if(tx_ch != rtw_get_oper_ch(padapter)) {
+ if (!check_fwstate(&padapter->mlmepriv, _FW_LINKED ))
+ pmlmeext->cur_channel = tx_ch;
+ set_channel_bwmode(padapter, tx_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
- if(_FAIL == rtw_pwr_wakeup(padapter)) {
- err = -EFAULT;
+ //starting alloc mgmt frame to dump it
+ if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+ {
+ //ret = -ENOMEM;
+ ret = _FAIL;
goto exit;
}
- pcfg80211_wdinfo->remain_on_ch_dev = dev;
- _rtw_memcpy(&pcfg80211_wdinfo->remain_on_ch_channel, channel, sizeof(struct ieee80211_channel));
- pcfg80211_wdinfo->remain_on_ch_type= channel_type;
- pcfg80211_wdinfo->remain_on_ch_cookie= *cookie;
- cfg80211_ready_on_channel(dev, *cookie, channel, channel_type, duration, GFP_KERNEL);
+ //update attribute
+ pattrib = &pmgntframe->attrib;
+ update_mgntframe_attrib(padapter, pattrib);
+ pattrib->retry_ctrl = _FALSE;
+
+ _rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
- pcfg80211_wdinfo->restore_channel = pmlmeext->cur_channel;
+ pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
- rtw_cfg80211_scan_abort(padapter);
+ _rtw_memcpy(pframe, (void*)buf, len);
+ pattrib->pktlen = len;
+
+ pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
+ //update seq number
+ pmlmeext->mgnt_seq = GetSequence(pwlanhdr);
+ pattrib->seqnum = pmlmeext->mgnt_seq;
+ pmlmeext->mgnt_seq++;
- if( remain_ch != pmlmeext->cur_channel )
+#ifdef CONFIG_WFD
{
- if(rtw_is_channel_set_contains_channel(pmlmeext->channel_set, remain_ch)) {
- pmlmeext->cur_channel = remain_ch;
- set_channel_bwmode(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- } else {
- DBG_871X("%s remain_ch:%u not in channel plan!!!!\n", __FUNCTION__, remain_ch);
+ struct wifi_display_info *pwfd_info;
+
+ pwfd_info = padapter->wdinfo.wfd_info;
+
+ if ( _TRUE == pwfd_info->wfd_enable )
+ {
+ rtw_append_wfd_ie( padapter, pframe, &pattrib->pktlen );
}
}
+#endif // CONFIG_WFD
+
+ pattrib->last_txcmdsz = pattrib->pktlen;
- //if(!rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) && !rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ if (dump_mgntframe_and_wait_ack(padapter, pmgntframe) != _SUCCESS)
{
- rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
- wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _TRUE;
+ ack = _FALSE;
+ ret = _FAIL;
+
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s, ack == _FAIL\n", __func__);
+ #endif
}
- else
+ else
{
- rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
-#endif
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s, ack=%d, ok!\n", __func__, ack);
+ #endif
+ ret = _SUCCESS;
}
-
- rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN);
- pwdinfo->listen_channel = pmlmeext->cur_channel;
-
- //call this after other things have been done
- _set_timer( &pcfg80211_wdinfo->remain_on_ch_timer, duration);
-
+
exit:
- return err;
+
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("%s, ret=%d\n", __func__, ret);
+ #endif
+
+ return ret;
+
}
-static s32 cfg80211_rtw_cancel_remain_on_channel(struct wiphy *wiphy, struct net_device *dev,
- u64 cookie)
+static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
+ struct wireless_dev *wdev,
+#else
+ struct net_device *ndev,
+#endif
+ struct ieee80211_channel *chan,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+ bool offchan,
+#endif
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
+ enum nl80211_channel_type channel_type,
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ bool channel_type_valid,
+ #endif
+#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
+ unsigned int wait,
+#endif
+ const u8 *buf, size_t len,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
+ bool no_cck,
+#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
+ bool dont_wait_for_ack,
+#endif
+ u64 *cookie)
{
- s32 err = 0;
- _adapter *padapter = wiphy_to_adapter(wiphy);
- struct wifidirect_info *pwdinfo = &padapter->wdinfo;
- struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
-
- printk("%s\n", __func__);
+ _adapter *padapter = (_adapter *)wiphy_to_adapter(wiphy);
+ struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
+ int ret = 0;
+ int tx_ret;
+ u32 dump_limit = RTW_MAX_MGMT_TX_CNT;
+ u32 dump_cnt = 0;
+ bool ack = _TRUE;
+ u8 tx_ch = (u8)ieee80211_frequency_to_channel(chan->center_freq);
+ u8 category, action;
+ int type = (-1);
+ u32 start = rtw_get_current_time();
- //Modified bu Kurt 20120114
- _cancel_timer_ex(&padapter->cfg80211_wdinfo.remain_on_ch_timer);
+ /* cookie generation */
+ *cookie = (unsigned long) buf;
- #if 0
- // Disable P2P Listen State
- if(!rtw_p2p_chk_role(pwdinfo, P2P_ROLE_CLIENT) && !rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
- {
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
- {
- _cancel_timer_ex( &pwdinfo->find_phase_timer );
- _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
- _cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
-
- rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
- _rtw_memset(pwdinfo, 0x00, sizeof(struct wifidirect_info));
+#ifdef CONFIG_DEBUG_CFG80211
+ DBG_871X(FUNC_ADPT_FMT" len=%zu, ch=%d"
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
+ ", ch_type=%d"
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ ", channel_type_valid=%d"
+ #endif
+ #endif
+ "\n", FUNC_ADPT_ARG(padapter),
+ len, tx_ch
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
+ , channel_type
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ , channel_type_valid
+ #endif
+ #endif
+ );
+#endif /* CONFIG_DEBUG_CFG80211 */
- if(pwrpriv->bips_processing == _FALSE){
- rtw_set_pwr_state_check_timer(pwrpriv);
- }
- }
+ /* indicate ack before issue frame to avoid racing with rsp frame */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
+ rtw_cfg80211_mgmt_tx_status(padapter, *cookie, buf, len, ack, GFP_KERNEL);
+#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))
+ cfg80211_action_tx_status(ndev, *cookie, buf, len, ack, GFP_KERNEL);
+#endif
+
+ if (rtw_action_frame_parse(buf, len, &category, &action) == _FALSE) {
+ DBG_8192C(FUNC_ADPT_FMT" frame_control:0x%x\n", FUNC_ADPT_ARG(padapter),
+ le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)buf)->frame_ctl));
+ goto exit;
+ }
+
+ DBG_8192C("RTW_Tx:tx_ch=%d, da="MAC_FMT"\n", tx_ch, MAC_ARG(GetAddr1Ptr(buf)));
+ #ifdef CONFIG_P2P
+ if((type = rtw_p2p_check_frames(padapter, buf, len, _TRUE)) >= 0) {
+ goto dump;
}
- else
#endif
- {
- rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
-#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
-#endif
+ if (category == RTW_WLAN_CATEGORY_PUBLIC)
+ DBG_871X("RTW_Tx:%s\n", action_public_str(action));
+ else
+ DBG_871X("RTW_Tx:category(%u), action(%u)\n", category, action);
+
+dump:
+ do {
+ dump_cnt++;
+ tx_ret = _cfg80211_rtw_mgmt_tx(padapter, tx_ch, buf, len);
+ } while (dump_cnt < dump_limit && tx_ret != _SUCCESS);
+
+ if (tx_ret != _SUCCESS || dump_cnt > 1) {
+ DBG_871X(FUNC_ADPT_FMT" %s (%d/%d) in %d ms\n", FUNC_ADPT_ARG(padapter),
+ tx_ret==_SUCCESS?"OK":"FAIL", dump_cnt, dump_limit, rtw_get_passing_time_ms(start));
}
- return err;
+ switch (type) {
+ case P2P_GO_NEGO_CONF:
+ rtw_clear_scan_deny(padapter);
+ break;
+ case P2P_INVIT_RESP:
+ if (pwdev_priv->invit_info.flags & BIT(0)
+ && pwdev_priv->invit_info.status == 0)
+ {
+ DBG_871X(FUNC_ADPT_FMT" agree with invitation of persistent group\n",
+ FUNC_ADPT_ARG(padapter));
+ rtw_set_scan_deny(padapter, 5000);
+ rtw_pwr_wakeup_ex(padapter, 5000);
+ rtw_clear_scan_deny(padapter);
+ }
+ break;
+ }
+
+exit:
+ return ret;
}
-static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy, struct net_device *dev,
+static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))
+ struct wireless_dev *wdev,
+#else
+ struct net_device *ndev,
+#endif
u16 frame_type, bool reg)
{
+ _adapter *adapter = wiphy_to_adapter(wiphy);
#ifdef CONFIG_DEBUG_CFG80211
- printk("%s: frame_type: %x, reg: %d\n", __func__, frame_type, reg);
+ DBG_871X(FUNC_ADPT_FMT" frame_type:%x, reg:%d\n", FUNC_ADPT_ARG(adapter),
+ frame_type, reg);
#endif
if (frame_type != (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_REQ))
@@ -4082,7 +4776,7 @@ static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy, struct net_dev
return;
}
-static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *net, char *buf, int len)
+static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf, int len)
{
int ret = 0;
uint wps_ielen = 0;
@@ -4090,18 +4784,20 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *net, char *buf, i
u32 p2p_ielen = 0;
u8 wps_oui[8]={0x0,0x50,0xf2,0x04};
u8 *p2p_ie;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(net);
+ u32 wfd_ielen = 0;
+ u8 *wfd_ie;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- printk("%s, ielen=%d\n", __func__, len);
+ DBG_871X(FUNC_NDEV_FMT" ielen=%d\n", FUNC_NDEV_ARG(ndev), len);
if(len>0)
{
if((wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen)))
{
#ifdef CONFIG_DEBUG_CFG80211
- printk("bcn_wps_ielen=%d\n", wps_ielen);
+ DBG_8192C("bcn_wps_ielen=%d\n", wps_ielen);
#endif
if(pmlmepriv->wps_beacon_ie)
@@ -4114,7 +4810,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *net, char *buf, i
pmlmepriv->wps_beacon_ie = rtw_malloc(wps_ielen);
if ( pmlmepriv->wps_beacon_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -4126,13 +4822,14 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *net, char *buf, i
}
- buf += wps_ielen;
- len -= wps_ielen;
-
+ //buf += wps_ielen;
+ //len -= wps_ielen;
+
+ #ifdef CONFIG_P2P
if((p2p_ie=rtw_get_p2p_ie(buf, len, NULL, &p2p_ielen)))
{
#ifdef CONFIG_DEBUG_CFG80211
- printk("bcn_p2p_ielen=%d\n", p2p_ielen);
+ DBG_8192C("bcn_p2p_ielen=%d\n", p2p_ielen);
#endif
if(pmlmepriv->p2p_beacon_ie)
@@ -4145,7 +4842,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *net, char *buf, i
pmlmepriv->p2p_beacon_ie = rtw_malloc(p2p_ielen);
if ( pmlmepriv->p2p_beacon_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -4154,6 +4851,35 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *net, char *buf, i
pmlmepriv->p2p_beacon_ie_len = p2p_ielen;
}
+ #endif //CONFIG_P2P
+
+ //buf += p2p_ielen;
+ //len -= p2p_ielen;
+
+ #ifdef CONFIG_WFD
+ if(rtw_get_wfd_ie(buf, len, NULL, &wfd_ielen))
+ {
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("bcn_wfd_ielen=%d\n", wfd_ielen);
+ #endif
+
+ if(pmlmepriv->wfd_beacon_ie)
+ {
+ u32 free_len = pmlmepriv->wfd_beacon_ie_len;
+ pmlmepriv->wfd_beacon_ie_len = 0;
+ rtw_mfree(pmlmepriv->wfd_beacon_ie, free_len);
+ pmlmepriv->wfd_beacon_ie = NULL;
+ }
+
+ pmlmepriv->wfd_beacon_ie = rtw_malloc(wfd_ielen);
+ if ( pmlmepriv->wfd_beacon_ie == NULL) {
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ return -EINVAL;
+
+ }
+ rtw_get_wfd_ie(buf, len, pmlmepriv->wfd_beacon_ie, &pmlmepriv->wfd_beacon_ie_len);
+ }
+ #endif //CONFIG_WFD
pmlmeext->bstart_bss = _TRUE;
@@ -4170,11 +4896,13 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
u8 *wps_ie;
u32 p2p_ielen = 0;
u8 *p2p_ie;
+ u32 wfd_ielen = 0;
+ u8 *wfd_ie;
_adapter *padapter = (_adapter *)rtw_netdev_priv(net);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, ielen=%d\n", __func__, len);
+ DBG_8192C("%s, ielen=%d\n", __func__, len);
#endif
if(len>0)
@@ -4185,9 +4913,25 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
u16 uconfig_method, *puconfig_method = NULL;
#ifdef CONFIG_DEBUG_CFG80211
- printk("probe_resp_wps_ielen=%d\n", wps_ielen);
+ DBG_8192C("probe_resp_wps_ielen=%d\n", wps_ielen);
#endif
-
+
+ if(check_fwstate(pmlmepriv, WIFI_UNDER_WPS))
+ {
+ u8 sr = 0;
+ rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8*)(&sr), NULL);
+
+ if (sr != 0)
+ {
+ DBG_871X("%s, got sr\n", __func__);
+ }
+ else
+ {
+ DBG_8192C("GO mode process WPS under site-survey, sr no set\n");
+ return ret;
+ }
+ }
+
if(pmlmepriv->wps_probe_resp_ie)
{
u32 free_len = pmlmepriv->wps_probe_resp_ie_len;
@@ -4198,7 +4942,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
pmlmepriv->wps_probe_resp_ie = rtw_malloc(wps_ielen);
if ( pmlmepriv->wps_probe_resp_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -4221,9 +4965,10 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
}
- buf += wps_ielen;
- len -= wps_ielen;
-
+ //buf += wps_ielen;
+ //len -= wps_ielen;
+
+ #ifdef CONFIG_P2P
if((p2p_ie=rtw_get_p2p_ie(buf, len, NULL, &p2p_ielen)))
{
u8 is_GO = _FALSE;
@@ -4231,7 +4976,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
u16 cap_attr=0;
#ifdef CONFIG_DEBUG_CFG80211
- printk("probe_resp_p2p_ielen=%d\n", p2p_ielen);
+ DBG_8192C("probe_resp_p2p_ielen=%d\n", p2p_ielen);
#endif
//Check P2P Capability ATTR
@@ -4245,7 +4990,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
is_GO = (grp_cap&BIT(0)) ? _TRUE:_FALSE;
if(is_GO)
- printk("Got P2P Capability Attr, grp_cap=0x%x, is_GO\n", grp_cap);
+ DBG_8192C("Got P2P Capability Attr, grp_cap=0x%x, is_GO\n", grp_cap);
}
@@ -4261,7 +5006,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
pmlmepriv->p2p_probe_resp_ie = rtw_malloc(p2p_ielen);
if ( pmlmepriv->p2p_probe_resp_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -4280,7 +5025,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
pmlmepriv->p2p_go_probe_resp_ie = rtw_malloc(p2p_ielen);
if ( pmlmepriv->p2p_go_probe_resp_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -4288,7 +5033,36 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
pmlmepriv->p2p_go_probe_resp_ie_len = p2p_ielen;
}
- }
+ }
+ #endif //CONFIG_P2P
+
+ //buf += p2p_ielen;
+ //len -= p2p_ielen;
+
+ #ifdef CONFIG_WFD
+ if(rtw_get_wfd_ie(buf, len, NULL, &wfd_ielen))
+ {
+ #ifdef CONFIG_DEBUG_CFG80211
+ DBG_8192C("probe_resp_wfd_ielen=%d\n", wfd_ielen);
+ #endif
+
+ if(pmlmepriv->wfd_probe_resp_ie)
+ {
+ u32 free_len = pmlmepriv->wfd_probe_resp_ie_len;
+ pmlmepriv->wfd_probe_resp_ie_len = 0;
+ rtw_mfree(pmlmepriv->wfd_probe_resp_ie, free_len);
+ pmlmepriv->wfd_probe_resp_ie = NULL;
+ }
+
+ pmlmepriv->wfd_probe_resp_ie = rtw_malloc(wfd_ielen);
+ if ( pmlmepriv->wfd_probe_resp_ie == NULL) {
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ return -EINVAL;
+
+ }
+ rtw_get_wfd_ie(buf, len, pmlmepriv->wfd_probe_resp_ie, &pmlmepriv->wfd_probe_resp_ie_len);
+ }
+ #endif //CONFIG_WFD
}
@@ -4302,7 +5076,7 @@ static int rtw_cfg80211_set_assoc_resp_wpsp2pie(struct net_device *net, char *bu
_adapter *padapter = (_adapter *)rtw_netdev_priv(net);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- printk("%s, ielen=%d\n", __func__, len);
+ DBG_8192C("%s, ielen=%d\n", __func__, len);
if(len>0)
{
@@ -4316,7 +5090,7 @@ static int rtw_cfg80211_set_assoc_resp_wpsp2pie(struct net_device *net, char *bu
pmlmepriv->wps_assoc_resp_ie = rtw_malloc(len);
if ( pmlmepriv->wps_assoc_resp_ie == NULL) {
- printk("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -4336,11 +5110,14 @@ int rtw_cfg80211_set_mgnt_wpsp2pie(struct net_device *net, char *buf, int len,
u32 p2p_ielen = 0;
#ifdef CONFIG_DEBUG_CFG80211
- printk("%s, ielen=%d\n", __func__, len);
+ DBG_8192C("%s, ielen=%d\n", __func__, len);
#endif
- if((rtw_get_wps_ie(buf, len, NULL, &wps_ielen) && (wps_ielen>0)) ||
- (rtw_get_p2p_ie(buf, len, NULL, &p2p_ielen) && (p2p_ielen>0)) )
+ if( (rtw_get_wps_ie(buf, len, NULL, &wps_ielen) && (wps_ielen>0))
+ #ifdef CONFIG_P2P
+ || (rtw_get_p2p_ie(buf, len, NULL, &p2p_ielen) && (p2p_ielen>0))
+ #endif
+ )
{
if (net != NULL)
{
@@ -4382,24 +5159,39 @@ static struct cfg80211_ops rtw_cfg80211_ops = {
.set_pmksa = cfg80211_rtw_set_pmksa,
.del_pmksa = cfg80211_rtw_del_pmksa,
.flush_pmksa = cfg80211_rtw_flush_pmksa,
+
#ifdef CONFIG_AP_MODE
.add_virtual_intf = cfg80211_rtw_add_virtual_intf,
.del_virtual_intf = cfg80211_rtw_del_virtual_intf,
+
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)) && !defined(COMPAT_KERNEL_RELEASE)
.add_beacon = cfg80211_rtw_add_beacon,
.set_beacon = cfg80211_rtw_set_beacon,
.del_beacon = cfg80211_rtw_del_beacon,
+ #else
+ .start_ap = cfg80211_rtw_start_ap,
+ .change_beacon = cfg80211_rtw_change_beacon,
+ .stop_ap = cfg80211_rtw_stop_ap,
+ #endif
+
.add_station = cfg80211_rtw_add_station,
.del_station = cfg80211_rtw_del_station,
.change_station = cfg80211_rtw_change_station,
.dump_station = cfg80211_rtw_dump_station,
.change_bss = cfg80211_rtw_change_bss,
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))
.set_channel = cfg80211_rtw_set_channel,
+ #endif
//.auth = cfg80211_rtw_auth,
//.assoc = cfg80211_rtw_assoc,
#endif //CONFIG_AP_MODE
+
+#ifdef CONFIG_P2P
.remain_on_channel = cfg80211_rtw_remain_on_channel,
- .cancel_remain_on_channel = cfg80211_rtw_cancel_remain_on_channel,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+ .cancel_remain_on_channel = cfg80211_rtw_cancel_remain_on_channel,
+#endif
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
.mgmt_tx = cfg80211_rtw_mgmt_tx,
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))
@@ -4458,7 +5250,7 @@ static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum
}
else
{
- printk("%s, error rf_type=%d\n", __func__, rf_type);
+ DBG_8192C("%s, error rf_type=%d\n", __func__, rf_type);
}
}
@@ -4470,18 +5262,48 @@ void rtw_cfg80211_init_wiphy(_adapter *padapter)
struct wireless_dev *pwdev = padapter->rtw_wdev;
struct wiphy *wiphy = pwdev->wiphy;
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
- printk("%s:rf_type=%d\n", __func__, rf_type);
-
- bands = wiphy->bands[IEEE80211_BAND_2GHZ];
- rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_2GHZ, rf_type);
+ DBG_8192C("%s:rf_type=%d\n", __func__, rf_type);
+ /* if (padapter->registrypriv.wireless_mode & WIRELESS_11G) */
+ {
+ bands = wiphy->bands[IEEE80211_BAND_2GHZ];
+ if(bands)
+ rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_2GHZ, rf_type);
+ }
- bands = wiphy->bands[IEEE80211_BAND_5GHZ];
- rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_5GHZ, rf_type);
+ /* if (padapter->registrypriv.wireless_mode & WIRELESS_11A) */
+ {
+ bands = wiphy->bands[IEEE80211_BAND_5GHZ];
+ if(bands)
+ rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_5GHZ, rf_type);
+ }
}
+/*
+struct ieee80211_iface_limit rtw_limits[] = {
+ { .max = 1, .types = BIT(NL80211_IFTYPE_STATION)
+ | BIT(NL80211_IFTYPE_ADHOC)
+#ifdef CONFIG_AP_MODE
+ | BIT(NL80211_IFTYPE_AP)
+#endif
+#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE))
+ | BIT(NL80211_IFTYPE_P2P_CLIENT)
+ | BIT(NL80211_IFTYPE_P2P_GO)
+#endif
+ },
+ {.max = 1, .types = BIT(NL80211_IFTYPE_MONITOR)},
+};
+
+struct ieee80211_iface_combination rtw_combinations = {
+ .limits = rtw_limits,
+ .n_limits = ARRAY_SIZE(rtw_limits),
+ .max_interfaces = 2,
+ .num_different_channels = 1,
+};
+*/
+
static void rtw_cfg80211_preinit_wiphy(_adapter *padapter, struct wiphy *wiphy)
{
@@ -4491,95 +5313,134 @@ static void rtw_cfg80211_preinit_wiphy(_adapter *padapter, struct wiphy *wiphy)
wiphy->max_scan_ie_len = RTW_SCAN_IE_LEN_MAX;
wiphy->max_num_pmkids = RTW_MAX_NUM_PMKIDS;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
wiphy->max_remain_on_channel_duration = RTW_MAX_REMAIN_ON_CHANNEL_DURATION;
#endif
- wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
- BIT(NL80211_IFTYPE_ADHOC)
+ wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION)
+ | BIT(NL80211_IFTYPE_ADHOC)
#ifdef CONFIG_AP_MODE
- | BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_MONITOR)
+ | BIT(NL80211_IFTYPE_AP)
+ | BIT(NL80211_IFTYPE_MONITOR)
+#endif
+#if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE))
+ | BIT(NL80211_IFTYPE_P2P_CLIENT)
+ | BIT(NL80211_IFTYPE_P2P_GO)
#endif
-#if defined(CONFIG_P2P) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
- | BIT(NL80211_IFTYPE_P2P_CLIENT) | BIT(NL80211_IFTYPE_P2P_GO)
-#endif
- ;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+ ;
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
#ifdef CONFIG_AP_MODE
wiphy->mgmt_stypes = rtw_cfg80211_default_mgmt_stypes;
#endif //CONFIG_AP_MODE
#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
+ wiphy->software_iftypes |= BIT(NL80211_IFTYPE_MONITOR);
+#endif
+
+ /*
+ wiphy->iface_combinations = &rtw_combinations;
+ wiphy->n_iface_combinations = 1;
+ */
+
wiphy->cipher_suites = rtw_cipher_suites;
wiphy->n_cipher_suites = ARRAY_SIZE(rtw_cipher_suites);
-
- wiphy->bands[IEEE80211_BAND_2GHZ] = &rtw_band_2ghz;
- wiphy->bands[IEEE80211_BAND_5GHZ] = &rtw_band_5ghz;
+ /* if (padapter->registrypriv.wireless_mode & WIRELESS_11G) */
+ wiphy->bands[IEEE80211_BAND_2GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_2GHZ);
+ /* if (padapter->registrypriv.wireless_mode & WIRELESS_11A) */
+ wiphy->bands[IEEE80211_BAND_5GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_5GHZ);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38) && LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))
+ wiphy->flags |= WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS;
+#endif
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
+ wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
+ wiphy->flags |= WIPHY_FLAG_OFFCHAN_TX | WIPHY_FLAG_HAVE_AP_SME;
+#endif
+
+ if(padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE)
+ wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
+ else
+ wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
}
int rtw_wdev_alloc(_adapter *padapter, struct device *dev)
{
int ret = 0;
+ struct wiphy *wiphy;
struct wireless_dev *wdev;
struct rtw_wdev_priv *pwdev_priv;
struct net_device *pnetdev = padapter->pnetdev;
- printk("%s\n", __func__);
+ DBG_8192C("%s(padapter=%p)\n", __func__, padapter);
- wdev = (struct wireless_dev *)rtw_zmalloc(sizeof(struct wireless_dev));
- if (!wdev) {
- printk("Couldn't allocate wireless device\n");
- return (-ENOMEM);
+ /* wiphy */
+ wiphy = wiphy_new(&rtw_cfg80211_ops, sizeof(struct rtw_wdev_priv));
+ if (!wiphy) {
+ DBG_8192C("Couldn't allocate wiphy device\n");
+ ret = -ENOMEM;
+ goto exit;
}
+ set_wiphy_dev(wiphy, dev);
+ rtw_cfg80211_preinit_wiphy(padapter, wiphy);
- wdev->wiphy = wiphy_new(&rtw_cfg80211_ops, sizeof(struct rtw_wdev_priv));
- if (!wdev->wiphy) {
- printk("Couldn't allocate wiphy device\n");
- ret = -ENOMEM;
- goto out_err_new;
+ ret = wiphy_register(wiphy);
+ if (ret < 0) {
+ DBG_8192C("Couldn't register wiphy device\n");
+ goto free_wiphy;
}
- set_wiphy_dev(wdev->wiphy, dev);
-
- //
+ /* wdev */
+ wdev = (struct wireless_dev *)rtw_zmalloc(sizeof(struct wireless_dev));
+ if (!wdev) {
+ DBG_8192C("Couldn't allocate wireless device\n");
+ ret = -ENOMEM;
+ goto unregister_wiphy;
+ }
+ wdev->wiphy = wiphy;
+ wdev->netdev = pnetdev;
+ //wdev->iftype = NL80211_IFTYPE_STATION;
+ wdev->iftype = NL80211_IFTYPE_MONITOR; // for rtw_setopmode_cmd() in cfg80211_rtw_change_iface()
padapter->rtw_wdev = wdev;
pnetdev->ieee80211_ptr = wdev;
//init pwdev_priv
pwdev_priv = wdev_to_priv(wdev);
- pwdev_priv->pmon_ndev = NULL;
- pwdev_priv->ifname_mon[0] = '\0';
pwdev_priv->rtw_wdev = wdev;
+ pwdev_priv->pmon_ndev = NULL;
+ pwdev_priv->ifname_mon[0] = '\0';
pwdev_priv->padapter = padapter;
pwdev_priv->scan_request = NULL;
_rtw_spinlock_init(&pwdev_priv->scan_req_lock);
pwdev_priv->p2p_enabled = _FALSE;
pwdev_priv->provdisc_req_issued = _FALSE;
+ rtw_wdev_invit_info_init(&pwdev_priv->invit_info);
+ rtw_wdev_nego_info_init(&pwdev_priv->nego_info);
- wdev->netdev = pnetdev;
- wdev->iftype = NL80211_IFTYPE_MONITOR;
-
- rtw_cfg80211_preinit_wiphy(padapter, wdev->wiphy);
-
- ret = wiphy_register(wdev->wiphy);
- if (ret < 0) {
- printk("Couldn't register wiphy device\n");
- goto out_err_register;
- }
+ pwdev_priv->bandroid_scan = _FALSE;
- SET_NETDEV_DEV(pnetdev, wiphy_dev(wdev->wiphy));
+ if(padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE)
+ pwdev_priv->power_mgmt = _TRUE;
+ else
+ pwdev_priv->power_mgmt = _FALSE;
+
+#ifdef CONFIG_CONCURRENT_MODE
+ ATOMIC_SET(&pwdev_priv->switch_ch_to, 1);
+ ATOMIC_SET(&pwdev_priv->ro_ch_to, 1);
+#endif
return ret;
- out_err_register:
- wiphy_free(wdev->wiphy);
-
- out_err_new:
rtw_mfree((u8*)wdev, sizeof(struct wireless_dev));
-
+unregister_wiphy:
+ wiphy_unregister(wiphy);
+ free_wiphy:
+ wiphy_free(wiphy);
+exit:
return ret;
}
@@ -4588,30 +5449,40 @@ void rtw_wdev_free(struct wireless_dev *wdev)
{
struct rtw_wdev_priv *pwdev_priv;
- printk("%s\n", __func__);
+ DBG_8192C("%s(wdev=%p)\n", __func__, wdev);
if (!wdev)
return;
pwdev_priv = wdev_to_priv(wdev);
+
+ rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]);
+ rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]);
- printk("%s, scan abort when device remove\n", __func__);
+ wiphy_free(wdev->wiphy);
+
+ rtw_mfree((u8*)wdev, sizeof(struct wireless_dev));
+}
+
+void rtw_wdev_unregister(struct wireless_dev *wdev)
+{
+ struct rtw_wdev_priv *pwdev_priv;
+
+ DBG_8192C("%s(wdev=%p)\n", __func__, wdev);
+
+ if (!wdev)
+ return;
+
+ pwdev_priv = wdev_to_priv(wdev);
+
rtw_cfg80211_indicate_scan_done(pwdev_priv, _TRUE);
-
- if(pwdev_priv->pmon_ndev)
- {
- printk("%s, unregister monitor interface\n", __func__);
-
+
+ if (pwdev_priv->pmon_ndev) {
+ DBG_8192C("%s, unregister monitor interface\n", __func__);
unregister_netdev(pwdev_priv->pmon_ndev);
-
- free_netdev(pwdev_priv->pmon_ndev);
- }
-
+ }
wiphy_unregister(wdev->wiphy);
- wiphy_free(wdev->wiphy);
-
- rtw_mfree((u8*)wdev, sizeof(struct wireless_dev));
}
#endif //CONFIG_IOCTL_CFG80211
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_linux.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_linux.c
index f999502..9adbeaf 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_linux.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/ioctl_linux.c
@@ -34,7 +34,7 @@
//#ifdef CONFIG_MP_INCLUDED
#include <rtw_mp_ioctl.h>
//#endif
-
+
#ifdef CONFIG_USB_HCI
#include <usb_ops.h>
#endif //CONFIG_USB_HCI
@@ -76,8 +76,7 @@ extern int ui_pid[3];
extern u8 key_2char2num(u8 hch, u8 lch);
extern u8 str_2char2num(u8 hch, u8 lch);
-
-int rfpwrstate_check(_adapter *padapter);
+extern u8 convert_ip_addr(u8 hch, u8 mch, u8 lch);
u32 rtw_rates[] = {1000000,2000000,5500000,11000000,
6000000,9000000,12000000,18000000,24000000,36000000,48000000,54000000};
@@ -139,11 +138,12 @@ static int hwaddr_aton_i(const char *txt, u8 *addr)
static void indicate_wx_custom_event(_adapter *padapter, char *msg)
{
+#ifndef CONFIG_IOCTL_CFG80211
u8 *buff, *p;
union iwreq_data wrqu;
- if (strlen(msg) > IW_CUSTOM_MAX) {
- DBG_871X("%s strlen(msg):%u > IW_CUSTOM_MAX:%u\n", __FUNCTION__ ,strlen(msg), IW_CUSTOM_MAX);
+ if ((u32)strlen(msg) > IW_CUSTOM_MAX) {
+ DBG_871X("%s strlen(msg):%u > IW_CUSTOM_MAX:%u\n", __FUNCTION__ ,(u32)strlen(msg), IW_CUSTOM_MAX);
return;
}
@@ -152,90 +152,96 @@ static void indicate_wx_custom_event(_adapter *padapter, char *msg)
return;
_rtw_memcpy(buff, msg, strlen(msg));
-
+
_rtw_memset(&wrqu,0,sizeof(wrqu));
wrqu.data.length = strlen(msg);
- DBG_8192C("%s %s\n", __FUNCTION__, buff);
+ DBG_871X("%s %s\n", __FUNCTION__, buff);
wireless_send_event(padapter->pnetdev, IWEVCUSTOM, &wrqu, buff);
rtw_mfree(buff, IW_CUSTOM_MAX+1);
-
+#endif
}
static void request_wps_pbc_event(_adapter *padapter)
{
+#ifndef CONFIG_IOCTL_CFG80211
u8 *buff, *p;
union iwreq_data wrqu;
-
buff = rtw_malloc(IW_CUSTOM_MAX);
if(!buff)
return;
-
+
_rtw_memset(buff, 0, IW_CUSTOM_MAX);
-
+
p=buff;
-
+
p+=sprintf(p, "WPS_PBC_START.request=TRUE");
-
+
_rtw_memset(&wrqu,0,sizeof(wrqu));
-
+
wrqu.data.length = p-buff;
-
+
wrqu.data.length = (wrqu.data.length<IW_CUSTOM_MAX) ? wrqu.data.length:IW_CUSTOM_MAX;
- DBG_8192C("%s\n", __FUNCTION__);
-
+ DBG_871X("%s\n", __FUNCTION__);
+
wireless_send_event(padapter->pnetdev, IWEVCUSTOM, &wrqu, buff);
if(buff)
{
rtw_mfree(buff, IW_CUSTOM_MAX);
}
-
+#endif
}
void indicate_wx_scan_complete_event(_adapter *padapter)
-{
+{
+#ifndef CONFIG_IOCTL_CFG80211
union iwreq_data wrqu;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
_rtw_memset(&wrqu, 0, sizeof(union iwreq_data));
- //DBG_8192C("+rtw_indicate_wx_scan_complete_event\n");
+ //DBG_871X("+rtw_indicate_wx_scan_complete_event\n");
wireless_send_event(padapter->pnetdev, SIOCGIWSCAN, &wrqu, NULL);
+#endif
}
void rtw_indicate_wx_assoc_event(_adapter *padapter)
-{
+{
+#ifndef CONFIG_IOCTL_CFG80211
union iwreq_data wrqu;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
_rtw_memset(&wrqu, 0, sizeof(union iwreq_data));
-
- wrqu.ap_addr.sa_family = ARPHRD_ETHER;
-
+
+ wrqu.ap_addr.sa_family = ARPHRD_ETHER;
+
_rtw_memcpy(wrqu.ap_addr.sa_data, pmlmepriv->cur_network.network.MacAddress, ETH_ALEN);
- //DBG_8192C("+rtw_indicate_wx_assoc_event\n");
+ //DBG_871X("+rtw_indicate_wx_assoc_event\n");
wireless_send_event(padapter->pnetdev, SIOCGIWAP, &wrqu, NULL);
+#endif
}
void rtw_indicate_wx_disassoc_event(_adapter *padapter)
-{
+{
+#ifndef CONFIG_IOCTL_CFG80211
union iwreq_data wrqu;
_rtw_memset(&wrqu, 0, sizeof(union iwreq_data));
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
_rtw_memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN);
-
- //DBG_8192C("+rtw_indicate_wx_disassoc_event\n");
+
+ //DBG_871X("+rtw_indicate_wx_disassoc_event\n");
wireless_send_event(padapter->pnetdev, SIOCGIWAP, &wrqu, NULL);
+#endif
}
/*
@@ -291,36 +297,87 @@ static char *translate_scan(_adapter *padapter,
#endif //CONFIG_P2P
#ifdef CONFIG_P2P
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+#ifdef CONFIG_WFD
+ if ( SCAN_RESULT_ALL == pwdinfo->wfd_info->scan_result_type )
{
- u32 blnGotP2PIE = _FALSE;
-
- // User is doing the P2P device discovery
- // The prefix of SSID should be "DIRECT-" and the IE should contains the P2P IE.
- // If not, the driver should ignore this AP and go to the next AP.
- // Verifying the SSID
- if ( _rtw_memcmp( pnetwork->network.Ssid.Ssid, pwdinfo->p2p_wildcard_ssid, P2P_WILDCARD_SSID_LEN ) )
+ }
+ else if ( ( SCAN_RESULT_P2P_ONLY == pwdinfo->wfd_info->scan_result_type ) ||
+ ( SCAN_RESULT_WFD_TYPE == pwdinfo->wfd_info->scan_result_type ) )
+#endif // CONFIG_WFD
+ {
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
- u32 p2pielen = 0;
+ u32 blnGotP2PIE = _FALSE;
+
+ // User is doing the P2P device discovery
+ // The prefix of SSID should be "DIRECT-" and the IE should contains the P2P IE.
+ // If not, the driver should ignore this AP and go to the next AP.
- // Verifying the P2P IE
- if ( rtw_get_p2p_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen) )
+ // Verifying the SSID
+ if ( _rtw_memcmp( pnetwork->network.Ssid.Ssid, pwdinfo->p2p_wildcard_ssid, P2P_WILDCARD_SSID_LEN ) )
{
- blnGotP2PIE = _TRUE;
+ u32 p2pielen = 0;
+
+ // Verifying the P2P IE
+ if ( rtw_get_p2p_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen) )
+ {
+ blnGotP2PIE = _TRUE;
+ }
}
+ if ( blnGotP2PIE == _FALSE )
+ {
+ return start;
+ }
+
}
+ }
- if ( blnGotP2PIE == _FALSE )
+#ifdef CONFIG_WFD
+ if ( SCAN_RESULT_WFD_TYPE == pwdinfo->wfd_info->scan_result_type )
+ {
+ u32 blnGotWFD = _FALSE;
+ u8 wfd_ie[ 128 ] = { 0x00 };
+ uint wfd_ielen = 0;
+
+ if ( rtw_get_wfd_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, wfd_ie, &wfd_ielen ) )
{
- return start;
+ u8 wfd_devinfo[ 6 ] = { 0x00 };
+ uint wfd_devlen = 6;
+
+ if ( rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, wfd_devinfo, &wfd_devlen) )
+ {
+ if ( pwdinfo->wfd_info->wfd_device_type == WFD_DEVINFO_PSINK )
+ {
+ // the first two bits will indicate the WFD device type
+ if ( ( wfd_devinfo[ 1 ] & 0x03 ) == WFD_DEVINFO_SOURCE )
+ {
+ // If this device is Miracast PSink device, the scan reuslt should just provide the Miracast source.
+ blnGotWFD = _TRUE;
+ }
+ }
+ else if ( pwdinfo->wfd_info->wfd_device_type == WFD_DEVINFO_SOURCE )
+ {
+ // the first two bits will indicate the WFD device type
+ if ( ( wfd_devinfo[ 1 ] & 0x03 ) == WFD_DEVINFO_PSINK )
+ {
+ // If this device is Miracast source device, the scan reuslt should just provide the Miracast PSink.
+ // Todo: How about the SSink?!
+ blnGotWFD = _TRUE;
+ }
+ }
+ }
}
+ if ( blnGotWFD == _FALSE )
+ {
+ return start;
+ }
}
+#endif // CONFIG_WFD
#endif //CONFIG_P2P
-
/* AP MAC address */
iwe.cmd = SIOCGIWAP;
iwe.u.ap_addr.sa_family = ARPHRD_ETHER;
@@ -335,7 +392,7 @@ static char *translate_scan(_adapter *padapter,
start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.Ssid.Ssid);
//parsing HT_CAP_IE
- p = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELength-12);
+ p = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELength-12);
if(p && ht_ielen>0)
{
@@ -445,7 +502,7 @@ static char *translate_scan(_adapter *padapter,
}
else//default MCS7
{
- DBG_8192C("wx_get_scan, mcs_rate_bitmap=0x%x\n", mcs_rate);
+ DBG_871X("wx_get_scan, mcs_rate_bitmap=0x%x\n", mcs_rate);
max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
}
@@ -508,58 +565,56 @@ static char *translate_scan(_adapter *padapter,
}
{ //parsing WPS IE
- int cnt = 0,total_ielen=0;
+ uint cnt = 0,total_ielen;
u8 *wpsie_ptr=NULL;
uint wps_ielen = 0;
u8 *ie_ptr = pnetwork->network.IEs +_FIXED_IE_LENGTH_;
total_ielen= pnetwork->network.IELength - _FIXED_IE_LENGTH_;
- if((ie_ptr) && (total_ielen>0))
+
+ while(cnt < total_ielen)
{
- while(cnt < total_ielen)
+ if(rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen>2))
{
- if(rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen>2))
- {
- wpsie_ptr = &ie_ptr[cnt];
- iwe.cmd =IWEVGENIE;
- iwe.u.data.length = (u16)wps_ielen;
- start = iwe_stream_add_point(info, start, stop, &iwe, wpsie_ptr);
- }
- cnt+=ie_ptr[cnt+1]+2; //goto next
- }
+ wpsie_ptr = &ie_ptr[cnt];
+ iwe.cmd =IWEVGENIE;
+ iwe.u.data.length = (u16)wps_ielen;
+ start = iwe_stream_add_point(info, start, stop, &iwe, wpsie_ptr);
+ }
+ cnt+=ie_ptr[cnt+1]+2; //goto next
}
}
+
+{
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ u8 ss, sq;
+
/* Add quality statistics */
iwe.cmd = IWEVQUAL;
- rssi = pnetwork->network.Rssi;//dBM
-
-#ifdef CONFIG_RTL8711
- rssi = (rssi*2) + 190;
- if(rssi>100) rssi = 100;
- if(rssi<0) rssi = 0;
-#endif
-
- //DBG_8192C("RSSI=0x%X%%\n", rssi);
-
- // we only update signal_level (signal strength) that is rssi.
iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | IW_QUAL_NOISE_INVALID
-#ifdef CONFIG_PLATFORM_MT53XX
- ;
- iwe.u.qual.level = (u8)pnetwork->network.PhyInfo.SignalStrength;//%
-#else
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
| IW_QUAL_DBM
#endif
;
+ if ( check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE &&
+ is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network)) {
+ ss = padapter->recvpriv.signal_strength;
+ sq = padapter->recvpriv.signal_qual;
+ } else {
+ ss = pnetwork->network.PhyInfo.SignalStrength;
+ sq = pnetwork->network.PhyInfo.SignalQuality;
+ }
+
+
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
- iwe.u.qual.level = (u8) translate_percentage_to_dbm(pnetwork->network.PhyInfo.SignalStrength);//dbm
+ iwe.u.qual.level = (u8) translate_percentage_to_dbm(ss);//dbm
#else
- iwe.u.qual.level = (u8)pnetwork->network.PhyInfo.SignalStrength;//%
+ iwe.u.qual.level = (u8)ss;//%
#endif
-#endif
- iwe.u.qual.qual = (u8)pnetwork->network.PhyInfo.SignalQuality; // signal quality
+
+ iwe.u.qual.qual = (u8)sq; // signal quality
#ifdef CONFIG_PLATFORM_ROCKCHIPS
iwe.u.qual.noise = -100; // noise level suggest by zhf@rockchips
@@ -567,14 +622,10 @@ static char *translate_scan(_adapter *padapter,
iwe.u.qual.noise = 0; // noise level
#endif //CONFIG_PLATFORM_ROCKCHIPS
- //DBG_8192C("iqual=%d, ilevel=%d, inoise=%d, iupdated=%d\n", iwe.u.qual.qual, iwe.u.qual.level , iwe.u.qual.noise, iwe.u.qual.updated);
+ //DBG_871X("iqual=%d, ilevel=%d, inoise=%d, iupdated=%d\n", iwe.u.qual.qual, iwe.u.qual.level , iwe.u.qual.noise, iwe.u.qual.updated);
start = iwe_stream_add_event(info, start, stop, &iwe, IW_EV_QUAL_LEN);
-
- //how to translate rssi to ?%
- //rssi = (iwe.u.qual.level*2) + 190;
- //if(rssi>100) rssi = 100;
- //if(rssi<0) rssi = 0;
+}
return start;
}
@@ -586,14 +637,14 @@ static int wpa_set_auth_algs(struct net_device *dev, u32 value)
if ((value & AUTH_ALG_SHARED_KEY)&&(value & AUTH_ALG_OPEN_SYSTEM))
{
- DBG_8192C("wpa_set_auth_algs, AUTH_ALG_SHARED_KEY and AUTH_ALG_OPEN_SYSTEM [value:0x%x]\n",value);
+ DBG_871X("wpa_set_auth_algs, AUTH_ALG_SHARED_KEY and AUTH_ALG_OPEN_SYSTEM [value:0x%x]\n",value);
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeAutoSwitch;
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Auto;
}
else if (value & AUTH_ALG_SHARED_KEY)
{
- DBG_8192C("wpa_set_auth_algs, AUTH_ALG_SHARED_KEY [value:0x%x]\n",value);
+ DBG_871X("wpa_set_auth_algs, AUTH_ALG_SHARED_KEY [value:0x%x]\n",value);
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
#ifdef CONFIG_PLATFORM_MT53XX
@@ -606,7 +657,7 @@ static int wpa_set_auth_algs(struct net_device *dev, u32 value)
}
else if(value & AUTH_ALG_OPEN_SYSTEM)
{
- DBG_8192C("wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM\n");
+ DBG_871X("wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM\n");
//padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
if(padapter->securitypriv.ndisauthtype < Ndis802_11AuthModeWPAPSK)
{
@@ -622,11 +673,11 @@ static int wpa_set_auth_algs(struct net_device *dev, u32 value)
}
else if(value & AUTH_ALG_LEAP)
{
- DBG_8192C("wpa_set_auth_algs, AUTH_ALG_LEAP\n");
+ DBG_871X("wpa_set_auth_algs, AUTH_ALG_LEAP\n");
}
else
{
- DBG_8192C("wpa_set_auth_algs, error!\n");
+ DBG_871X("wpa_set_auth_algs, error!\n");
ret = -EINVAL;
}
@@ -661,20 +712,30 @@ _func_enter_;
param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff)
{
- if (param->u.crypt.idx >= WEP_KEYS)
+
+ if (param->u.crypt.idx >= WEP_KEYS
+#ifdef CONFIG_IEEE80211W
+ && param->u.crypt.idx > BIP_MAX_KEYID
+#endif //CONFIG_IEEE80211W
+ )
+ {
+ ret = -EINVAL;
+ goto exit;
+ }
+ }
+ else
+ {
+
{
ret = -EINVAL;
goto exit;
}
- } else {
- ret = -EINVAL;
- goto exit;
}
if (strcmp(param->u.crypt.alg, "WEP") == 0)
{
RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("wpa_set_encryption, crypt.alg = WEP\n"));
- DBG_8192C("wpa_set_encryption, crypt.alg = WEP\n");
+ DBG_871X("wpa_set_encryption, crypt.alg = WEP\n");
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
padapter->securitypriv.dot11PrivacyAlgrthm=_WEP40_;
@@ -684,7 +745,7 @@ _func_enter_;
wep_key_len = param->u.crypt.key_len;
RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_info_,("(1)wep_key_idx=%d\n", wep_key_idx));
- DBG_8192C("(1)wep_key_idx=%d\n", wep_key_idx);
+ DBG_871X("(1)wep_key_idx=%d\n", wep_key_idx);
if (wep_key_idx > WEP_KEYS)
return -EINVAL;
@@ -724,7 +785,7 @@ _func_enter_;
if(param->u.crypt.set_tx)
{
- DBG_8192C("wep, set_tx=1\n");
+ DBG_871X("wep, set_tx=1\n");
if(rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL)
{
@@ -733,7 +794,7 @@ _func_enter_;
}
else
{
- DBG_8192C("wep, set_tx=0\n");
+ DBG_871X("wep, set_tx=0\n");
//don't update "psecuritypriv->dot11PrivacyAlgrthm" and
//"psecuritypriv->dot11PrivacyKeyIndex=keyid", but can rtw_set_key to fw/cam
@@ -796,17 +857,40 @@ _func_enter_;
}
else//group key
{
- _rtw_memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
- _rtw_memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]),8);
- _rtw_memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]),8);
- padapter->securitypriv.binstallGrpkey = _TRUE;
- //DEBUG_ERR(("\n param->u.crypt.key_len=%d\n", param->u.crypt.key_len));
- //DEBUG_ERR(("\n ~~~~stastakey:groupkey\n"));
- DBG_871X("\n ~~~~stastakey:groupkey\n");
-
- padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx;
-
- rtw_set_key(padapter,&padapter->securitypriv,param->u.crypt.idx, 1);
+ if(strcmp(param->u.crypt.alg, "TKIP") == 0 || strcmp(param->u.crypt.alg, "CCMP") == 0)
+ {
+ _rtw_memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
+ //only TKIP group key need to install this
+ if(param->u.crypt.key_len > 16)
+ {
+ _rtw_memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]),8);
+ _rtw_memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]),8);
+ }
+ padapter->securitypriv.binstallGrpkey = _TRUE;
+ //DEBUG_ERR((" param->u.crypt.key_len=%d\n", param->u.crypt.key_len));
+ DBG_871X(" ~~~~set sta key:groupkey\n");
+
+ padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx;
+
+ rtw_set_key(padapter,&padapter->securitypriv,param->u.crypt.idx, 1);
+ }
+#ifdef CONFIG_IEEE80211W
+ else if(strcmp(param->u.crypt.alg, "BIP") == 0)
+ {
+ int no;
+ //printk("BIP key_len=%d , index=%d @@@@@@@@@@@@@@@@@@\n", param->u.crypt.key_len, param->u.crypt.idx);
+ //save the IGTK key, length 16 bytes
+ _rtw_memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
+ /*printk("IGTK key below:\n");
+ for(no=0;no<16;no++)
+ printk(" %02x ", padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey[no]);
+ printk("\n");*/
+ padapter->securitypriv.dot11wBIPKeyid = param->u.crypt.idx;
+ padapter->securitypriv.binstallBIPkey = _TRUE;
+ DBG_871X(" ~~~~set sta key:IGKT\n");
+ }
+#endif //CONFIG_IEEE80211W
+
#ifdef CONFIG_P2P
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_PROVISIONING_ING))
{
@@ -843,7 +927,7 @@ _func_enter_;
exit:
if (pwep) {
- rtw_mfree((u8 *)pwep,wep_total_len);
+ rtw_mfree((u8 *)pwep, wep_total_len);
}
_func_exit_;
@@ -857,12 +941,13 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
u32 left;
int group_cipher = 0, pairwise_cipher = 0;
int ret = 0;
+ u8 null_addr[]= {0,0,0,0,0,0};
#ifdef CONFIG_P2P
struct wifidirect_info* pwdinfo = &padapter->wdinfo;
#endif //CONFIG_P2P
if((ielen > MAX_WPA_IE_LEN) || (pie == NULL)){
- padapter->securitypriv.wps_phase = _FALSE;
+ _clr_fwstate_(&padapter->mlmepriv, WIFI_UNDER_WPS);
if(pie == NULL)
return ret;
else
@@ -882,9 +967,9 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
//dump
{
int i;
- DBG_8192C("\n wpa_ie(length:%d):\n", ielen);
+ DBG_871X("\n wpa_ie(length:%d):\n", ielen);
for(i=0;i<ielen;i=i+8)
- DBG_8192C("0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n",buf[i],buf[i+1],buf[i+2],buf[i+3],buf[i+4],buf[i+5],buf[i+6],buf[i+7]);
+ DBG_871X("0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n",buf[i],buf[i+1],buf[i+2],buf[i+3],buf[i+4],buf[i+5],buf[i+6],buf[i+7]);
}
pos = buf;
@@ -923,6 +1008,15 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
_rtw_memcpy(padapter->securitypriv.supplicant_ie, &buf[0], ielen);
}
+ if (group_cipher == 0)
+ {
+ group_cipher = WPA_CIPHER_NONE;
+ }
+ if (pairwise_cipher == 0)
+ {
+ pairwise_cipher = WPA_CIPHER_NONE;
+ }
+
switch(group_cipher)
{
case WPA_CIPHER_NONE:
@@ -971,7 +1065,7 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
break;
}
- padapter->securitypriv.wps_phase = _FALSE;
+ _clr_fwstate_(&padapter->mlmepriv, WIFI_UNDER_WPS);
{//set wps_ie
u16 cnt = 0;
u8 eid, wps_oui[4]={0x0,0x50,0xf2,0x04};
@@ -982,13 +1076,13 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
if((eid==_VENDOR_SPECIFIC_IE_)&&(_rtw_memcmp(&buf[cnt+2], wps_oui, 4)==_TRUE))
{
- DBG_8192C("SET WPS_IE\n");
+ DBG_871X("SET WPS_IE\n");
padapter->securitypriv.wps_ie_len = ( (buf[cnt+1]+2) < (MAX_WPA_IE_LEN<<2)) ? (buf[cnt+1]+2):(MAX_WPA_IE_LEN<<2);
_rtw_memcpy(padapter->securitypriv.wps_ie, &buf[cnt], padapter->securitypriv.wps_ie_len);
- padapter->securitypriv.wps_phase = _TRUE;
+ set_fwstate(&padapter->mlmepriv, WIFI_UNDER_WPS);
#ifdef CONFIG_P2P
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_OK))
@@ -996,8 +1090,6 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
rtw_p2p_set_state(pwdinfo, P2P_STATE_PROVISIONING_ING);
}
#endif //CONFIG_P2P
- DBG_8192C("SET WPS_IE, wps_phase==_TRUE\n");
-
cnt += buf[cnt+1]+2;
break;
@@ -1007,7 +1099,15 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen)
}
}
}
-
+
+ //TKIP and AES disallow multicast packets until installing group key
+ if(padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_
+ || padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_WTMIC_
+ || padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)
+ //WPS open need to enable multicast
+ //|| check_fwstate(&padapter->mlmepriv, WIFI_UNDER_WPS) == _TRUE)
+ rtw_hal_set_hwreg(padapter, HW_VAR_OFF_RCR_AM, null_addr);
+
RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_,
("rtw_set_wpa_ie: pairwise_cipher=0x%08x padapter->securitypriv.ndisencryptstatus=%d padapter->securitypriv.ndisauthtype=%d\n",
pairwise_cipher, padapter->securitypriv.ndisencryptstatus, padapter->securitypriv.ndisauthtype));
@@ -1135,10 +1235,12 @@ static int rtw_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
NDIS_802_11_NETWORK_INFRASTRUCTURE networkType ;
int ret = 0;
-
+ _irqL irqL;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _queue *queue = &pmlmepriv->scanned_queue;
_func_enter_;
- if(_FAIL == rfpwrstate_check(padapter)) {
+ if(_FAIL == rtw_pwr_wakeup(padapter)) {
ret= -EPERM;
goto exit;
}
@@ -1152,20 +1254,20 @@ static int rtw_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
{
case IW_MODE_AUTO:
networkType = Ndis802_11AutoUnknown;
- DBG_8192C("set_mode = IW_MODE_AUTO\n");
+ DBG_871X("set_mode = IW_MODE_AUTO\n");
break;
case IW_MODE_ADHOC:
networkType = Ndis802_11IBSS;
- DBG_8192C("set_mode = IW_MODE_ADHOC\n");
+ DBG_871X("set_mode = IW_MODE_ADHOC\n");
break;
case IW_MODE_MASTER:
networkType = Ndis802_11APMode;
- DBG_8192C("set_mode = IW_MODE_MASTER\n");
+ DBG_871X("set_mode = IW_MODE_MASTER\n");
//rtw_setopmode_cmd(padapter, networkType);
break;
case IW_MODE_INFRA:
networkType = Ndis802_11Infrastructure;
- DBG_8192C("set_mode = IW_MODE_INFRA\n");
+ DBG_871X("set_mode = IW_MODE_INFRA\n");
break;
default :
@@ -1184,14 +1286,18 @@ static int rtw_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
rtw_setopmode_cmd(padapter, Ndis802_11AutoUnknown);
}
*/
-
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+ _enter_critical_bh(&queue->lock, &irqL);
if (rtw_set_802_11_infrastructure_mode(padapter, networkType) ==_FALSE){
ret = -EPERM;
+ _exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
goto exit;
}
-
+ _exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
rtw_setopmode_cmd(padapter, networkType);
exit:
@@ -1267,7 +1373,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
_rtw_memcpy( strIssueBssid, pPMK->bssid.sa_data, ETH_ALEN);
if ( pPMK->cmd == IW_PMKSA_ADD )
{
- DBG_8192C( "[rtw_wx_set_pmkid] IW_PMKSA_ADD!\n" );
+ DBG_871X( "[rtw_wx_set_pmkid] IW_PMKSA_ADD!\n" );
if ( _rtw_memcmp( strIssueBssid, strZeroMacAddress, ETH_ALEN ) == _TRUE )
{
return( intReturn );
@@ -1284,7 +1390,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
if( _rtw_memcmp( psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN) ==_TRUE )
{ // BSSID is matched, the same AP => rewrite with new PMKID.
- DBG_8192C( "[rtw_wx_set_pmkid] BSSID exists in the PMKList.\n" );
+ DBG_871X( "[rtw_wx_set_pmkid] BSSID exists in the PMKList.\n" );
_rtw_memcpy( psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN);
psecuritypriv->PMKIDList[ j ].bUsed = _TRUE;
@@ -1297,7 +1403,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
if(!blInserted)
{
// Find a new entry
- DBG_8192C( "[rtw_wx_set_pmkid] Use the new entry index = %d for this PMKID.\n",
+ DBG_871X( "[rtw_wx_set_pmkid] Use the new entry index = %d for this PMKID.\n",
psecuritypriv->PMKIDIndex );
_rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].Bssid, strIssueBssid, ETH_ALEN);
@@ -1313,7 +1419,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
}
else if ( pPMK->cmd == IW_PMKSA_REMOVE )
{
- DBG_8192C( "[rtw_wx_set_pmkid] IW_PMKSA_REMOVE!\n" );
+ DBG_871X( "[rtw_wx_set_pmkid] IW_PMKSA_REMOVE!\n" );
intReturn = _TRUE;
for(j=0 ; j<NUM_PMKID_CACHE; j++)
{
@@ -1327,7 +1433,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
}
else if ( pPMK->cmd == IW_PMKSA_FLUSH )
{
- DBG_8192C( "[rtw_wx_set_pmkid] IW_PMKSA_FLUSH!\n" );
+ DBG_871X( "[rtw_wx_set_pmkid] IW_PMKSA_FLUSH!\n" );
_rtw_memset( &psecuritypriv->PMKIDList[ 0 ], 0x00, sizeof( RT_PMKID_LIST ) * NUM_PMKID_CACHE );
psecuritypriv->PMKIDIndex = 0;
intReturn = _TRUE;
@@ -1509,10 +1615,39 @@ static int rtw_wx_set_wap(struct net_device *dev,
_queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
NDIS_802_11_AUTHENTICATION_MODE authmode;
-
- _func_enter_;
- if(_FAIL == rfpwrstate_check(padapter))
+ _func_enter_;
+/*
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->iface_type > PRIMARY_IFACE)
+ {
+ ret = -EINVAL;
+ goto exit;
+ }
+#endif
+*/
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
+ {
+ printk("set bssid, but buddy_intf is under scanning or linking\n");
+
+ ret = -EINVAL;
+
+ goto exit;
+ }
+#endif
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ if (dc_check_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING)== _TRUE)
+ {
+ printk("set bssid, but buddy_intf is under scanning or linking\n");
+ ret = -EINVAL;
+ goto exit;
+ }
+#endif
+
+ if(_FAIL == rtw_pwr_wakeup(padapter))
{
ret= -1;
goto exit;
@@ -1530,6 +1665,7 @@ static int rtw_wx_set_wap(struct net_device *dev,
}
authmode = padapter->securitypriv.ndisauthtype;
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
_enter_critical_bh(&queue->lock, &irqL);
phead = get_list_head(queue);
pmlmepriv->pscanned = get_next(phead);
@@ -1572,6 +1708,7 @@ static int rtw_wx_set_wap(struct net_device *dev,
{
ret = -1;
_exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
goto exit;
}
@@ -1580,7 +1717,7 @@ static int rtw_wx_set_wap(struct net_device *dev,
}
_exit_critical_bh(&queue->lock, &irqL);
-
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
rtw_set_802_11_authentication_mode(padapter, authmode);
//set_802_11_encryption_mode(padapter, padapter->securitypriv.ndisencryptstatus);
if (rtw_set_802_11_bssid(padapter, temp->sa_data) == _FALSE) {
@@ -1653,8 +1790,13 @@ struct iw_mlme
if(mlme==NULL)
return -1;
+ printk("%s\n", __FUNCTION__);
+
reason = cpu_to_le16(mlme->reason_code);
+
+ printk("%s, cmd=%d, reason=%d\n", __FUNCTION__, mlme->cmd, reason);
+
switch (mlme->cmd)
{
case IW_MLME_DEAUTH:
@@ -1676,77 +1818,6 @@ struct iw_mlme
}
-int rfpwrstate_check(_adapter *padapter)
-{
- struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- int ret = _SUCCESS;
-
- //block here for system suspend only
- if((pwrpriv->bInternalAutoSuspend == _FALSE) && (_TRUE == pwrpriv->bInSuspend )){
- ret = _FAIL;
- goto exit;
- }
-
- if( pwrpriv->power_mgnt == PS_MODE_ACTIVE ) {
- goto exit;
- }
-
- if((pwrpriv->bInternalAutoSuspend == _TRUE) && (padapter->net_closed == _TRUE)) {
- ret = _FAIL;
- goto exit;
- }
- if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
- {
- ret = _SUCCESS;
- goto exit;
- }
-
- if(rf_off == pwrpriv->rf_pwrstate )
- {
-#ifdef CONFIG_USB_HCI
-#ifdef CONFIG_AUTOSUSPEND
- if(pwrpriv->brfoffbyhw==_TRUE)
- {
- DBG_8192C("hw still in rf_off state ...........\n");
- ret = _FAIL;
- goto exit;
- }
- else if(padapter->registrypriv.usbss_enable)
- {
- DBG_8192C("\n %s call autoresume_enter....\n",__FUNCTION__);
- if(_FAIL == autoresume_enter(padapter))
- {
- DBG_8192C("======> autoresume fail.............\n");
- ret = _FAIL;
- goto exit;
- }
- }
- else
-#endif
-#endif
- {
-#ifdef CONFIG_IPS
- DBG_8192C("\n %s call ips_leave....\n",__FUNCTION__);
- if(_FAIL == ips_leave(padapter))
- {
- DBG_8192C("======> ips_leave fail.............\n");
- ret = _FAIL;
- goto exit;
- }
-#endif
- }
- }else {
- //Jeff: reset timer to avoid falling ips or selective suspend soon
- if(pwrpriv->bips_processing == _FALSE)
- rtw_set_pwr_state_check_timer(pwrpriv);
- }
-
-exit:
- return ret;
-
-}
-
static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
union iwreq_data *wrqu, char *extra)
{
@@ -1756,7 +1827,6 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
NDIS_802_11_SSID ssid[RTW_SSID_SCAN_AMOUNT];
_irqL irqL;
-
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
#endif //CONFIG_P2P
@@ -1767,6 +1837,15 @@ _func_enter_;
#ifdef DBG_IOCTL
DBG_871X("DBG_IOCTL %s:%d\n",__FUNCTION__, __LINE__);
#endif
+/*
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->iface_type > PRIMARY_IFACE)
+ {
+ ret = -1;
+ goto exit;
+ }
+#endif
+*/
#ifdef CONFIG_MP_INCLUDED
if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
@@ -1776,14 +1855,14 @@ _func_enter_;
}
#endif
- if(_FAIL == rfpwrstate_check(padapter))
+ if(_FAIL == rtw_pwr_wakeup(padapter))
{
ret= -1;
goto exit;
}
if(padapter->bDriverStopped){
- DBG_8192C("bDriverStopped=%d\n", padapter->bDriverStopped);
+ DBG_871X("bDriverStopped=%d\n", padapter->bDriverStopped);
ret= -1;
goto exit;
}
@@ -1813,6 +1892,30 @@ _func_enter_;
goto exit;
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter,
+ _FW_UNDER_SURVEY|_FW_UNDER_LINKING|WIFI_UNDER_WPS) == _TRUE)
+ {
+ if(check_buddy_fwstate(padapter, _FW_UNDER_SURVEY))
+ {
+ printk("scanning_via_buddy_intf\n");
+ pmlmepriv->scanning_via_buddy_intf = _TRUE;
+ }
+
+ indicate_wx_scan_complete_event(padapter);
+
+ goto exit;
+ }
+#endif
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ if (dc_check_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING)== _TRUE)
+ {
+ indicate_wx_scan_complete_event(padapter);
+ goto exit;
+ }
+#endif
+
// Mareded by Albert 20101103
// For the DMP WiFi Display project, the driver won't to scan because
// the pmlmepriv->scan_interval is always equal to 3.
@@ -1824,15 +1927,16 @@ _func_enter_;
if(pmlmepriv->scan_interval > 0)
{
- DBG_8192C("scan done\n");
+ DBG_871X("scan done\n");
ret = 0;
goto exit;
}
*/
#ifdef CONFIG_P2P
- if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
+ rtw_p2p_set_pre_state( pwdinfo, rtw_p2p_state( pwdinfo ) );
rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH);
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_FULL);
rtw_free_network_queue(padapter, _TRUE);
@@ -1853,18 +1957,18 @@ _func_enter_;
_rtw_memcpy(ssid[0].Ssid, req->essid, len);
ssid[0].SsidLength = len;
- DBG_8192C("IW_SCAN_THIS_ESSID, ssid=%s, len=%d\n", req->essid, req->essid_len);
+ DBG_871X("IW_SCAN_THIS_ESSID, ssid=%s, len=%d\n", req->essid, req->essid_len);
_enter_critical_bh(&pmlmepriv->lock, &irqL);
- _status = rtw_sitesurvey_cmd(padapter, ssid, 1);
+ _status = rtw_sitesurvey_cmd(padapter, ssid, 1, NULL, 0);
_exit_critical_bh(&pmlmepriv->lock, &irqL);
}
else if (req->scan_type == IW_SCAN_TYPE_PASSIVE)
{
- DBG_8192C("rtw_wx_set_scan, req->scan_type == IW_SCAN_TYPE_PASSIVE\n");
+ DBG_871X("rtw_wx_set_scan, req->scan_type == IW_SCAN_TYPE_PASSIVE\n");
}
}
@@ -1942,15 +2046,13 @@ _func_enter_;
}
- //jeff: it has still some scan paramater to parse, we only do this now...
- _enter_critical_bh(&pmlmepriv->lock, &irqL);
- _status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT);
- _exit_critical_bh(&pmlmepriv->lock, &irqL);
+ //jeff: it has still some scan paramater to parse, we only do this now...
+ _status = rtw_set_802_11_bssid_list_scan(padapter, ssid, RTW_SSID_SCAN_AMOUNT);
} else
{
- _status = rtw_set_802_11_bssid_list_scan(padapter);
+ _status = rtw_set_802_11_bssid_list_scan(padapter, NULL, 0);
}
if(_status == _FALSE)
@@ -1972,7 +2074,7 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
_irqL irqL;
_list *plist, *phead;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
_queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
char *ev = extra;
@@ -1981,6 +2083,10 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
u32 cnt=0;
u32 wait_for_surveydone;
sint wait_status;
+#ifdef CONFIG_CONCURRENT_MODE
+ //PADAPTER pbuddy_adapter = padapter->pbuddy_adapter;
+ //struct mlme_priv *pbuddy_mlmepriv = &(pbuddy_adapter->mlmepriv);
+#endif
#ifdef CONFIG_P2P
struct wifidirect_info* pwdinfo = &padapter->wdinfo;
#endif //CONFIG_P2P
@@ -1993,6 +2099,15 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
DBG_871X("DBG_IOCTL %s:%d\n",__FUNCTION__, __LINE__);
#endif
+/*
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->iface_type > PRIMARY_IFACE)
+ {
+ ret = -EINVAL;
+ goto exit;
+ }
+#endif
+*/
if(padapter->pwrctrlpriv.brfoffbyhw && padapter->bDriverStopped)
{
ret = -EINVAL;
@@ -2003,7 +2118,10 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
// P2P is enabled
- wait_for_surveydone = 200;
+ if ( padapter->chip_type == RTL8192D )
+ wait_for_surveydone = 300; // Because the 8192du supports more channels.
+ else
+ wait_for_surveydone = 200;
}
else
{
@@ -2016,14 +2134,39 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
}
#endif //CONFIG_P2P
+/*
+#ifdef CONFIG_CONCURRENT_MODE
+ if(pmlmepriv->scanning_via_buddy_intf == _TRUE)
+ {
+ pmlmepriv->scanning_via_buddy_intf = _FALSE;//reset
+
+ // change pointers to buddy interface
+ padapter = pbuddy_adapter;
+ pmlmepriv = pbuddy_mlmepriv;
+ queue = &(pbuddy_mlmepriv->scanned_queue);
+
+ }
+#endif // CONFIG_CONCURRENT_MODE
+*/
+
wait_status = _FW_UNDER_SURVEY
#ifndef CONFIG_ANDROID
|_FW_UNDER_LINKING
#endif
;
- while(check_fwstate(pmlmepriv, wait_status) == _TRUE)
- {
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ while(dc_check_fwstate(padapter, wait_status)== _TRUE)
+ {
+ rtw_msleep_os(30);
+ cnt++;
+ if(cnt > wait_for_surveydone )
+ break;
+ }
+#endif // CONFIG_DUALMAC_CONCURRENT
+
+ while(check_fwstate(pmlmepriv, wait_status) == _TRUE)
+ {
rtw_msleep_os(30);
cnt++;
if(cnt > wait_for_surveydone )
@@ -2048,10 +2191,9 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
//report network only if the current channel set contains the channel to which this network belongs
- if( _TRUE == rtw_is_channel_set_contains_channel(padapter->mlmeextpriv.channel_set, pnetwork->network.Configuration.DSConfig)
- #ifdef CONFIG_VALIDATE_SSID
+ if(rtw_ch_set_search_ch(padapter->mlmeextpriv.channel_set, pnetwork->network.Configuration.DSConfig) >= 0
+ && rtw_mlme_band_check(padapter, pnetwork->network.Configuration.DSConfig) == _TRUE
&& _TRUE == rtw_validate_ssid(&(pnetwork->network.Ssid))
- #endif
)
{
ev=translate_scan(padapter, a, pnetwork, ev, stop);
@@ -2095,7 +2237,6 @@ static int rtw_wx_set_essid(struct net_device *dev,
_list *phead;
s8 status = _TRUE;
struct wlan_network *pnetwork = NULL;
-
NDIS_802_11_AUTHENTICATION_MODE authmode;
NDIS_802_11_SSID ndis_ssid;
u8 *dst_ssid, *src_ssid;
@@ -2108,9 +2249,39 @@ static int rtw_wx_set_essid(struct net_device *dev,
DBG_871X("DBG_IOCTL %s:%d\n",__FUNCTION__, __LINE__);
#endif
+/*
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->iface_type > PRIMARY_IFACE)
+ {
+ ret = -EINVAL;
+ goto exit;
+ }
+#endif
+*/
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
+ {
+ printk("set ssid, but buddy_intf is under scanning or linking\n");
+
+ ret = -EINVAL;
+
+ goto exit;
+ }
+#endif
+
+#ifdef CONFIG_DUALMAC_CONCURRENT
+ if (dc_check_fwstate(padapter, _FW_UNDER_SURVEY|_FW_UNDER_LINKING)== _TRUE)
+ {
+ printk("set bssid, but buddy_intf is under scanning or linking\n");
+ ret = -EINVAL;
+ goto exit;
+ }
+#endif
+
RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_,
("+rtw_wx_set_essid: fw_state=0x%08x\n", get_fwstate(pmlmepriv)));
- if(_FAIL == rfpwrstate_check(padapter))
+ if(_FAIL == rtw_pwr_wakeup(padapter))
{
ret = -1;
goto exit;
@@ -2136,7 +2307,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
}
authmode = padapter->securitypriv.ndisauthtype;
- DBG_8192C("=>%s\n",__FUNCTION__);
+ DBG_871X("=>%s\n",__FUNCTION__);
if (wrqu->essid.flags && wrqu->essid.length)
{
// Commented by Albert 20100519
@@ -2153,7 +2324,8 @@ static int rtw_wx_set_essid(struct net_device *dev,
len = (wrqu->essid.length < IW_ESSID_MAX_SIZE) ? wrqu->essid.length : IW_ESSID_MAX_SIZE;
#endif
- DBG_8192C("ssid=%s, len=%d\n", extra, wrqu->essid.length);
+ if( wrqu->essid.length != 33 )
+ DBG_871X("ssid=%s, len=%d\n", extra, wrqu->essid.length);
_rtw_memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
ndis_ssid.SsidLength = len;
@@ -2161,6 +2333,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
src_ssid = ndis_ssid.Ssid;
RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_, ("rtw_wx_set_essid: ssid=[%s]\n", src_ssid));
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
_enter_critical_bh(&queue->lock, &irqL);
phead = get_list_head(queue);
pmlmepriv->pscanned = get_next(phead);
@@ -2215,6 +2388,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
{
ret = -1;
_exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
goto exit;
}
@@ -2222,6 +2396,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
}
}
_exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_,
("set ssid: set_802_11_auth. mode=%d\n", authmode));
rtw_set_802_11_authentication_mode(padapter, authmode);
@@ -2234,7 +2409,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
exit:
- DBG_8192C("<=%s, ret %d\n",__FUNCTION__, ret);
+ DBG_871X("<=%s, ret %d\n",__FUNCTION__, ret);
#ifdef DBG_IOCTL
DBG_871X("DBG_IOCTL %s:%d return %d\n",__FUNCTION__, __LINE__, ret);
@@ -2379,94 +2554,43 @@ static int rtw_wx_get_rate(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
- int i;
- u8 *p;
- u16 rate = 0, max_rate = 0, ht_cap=_FALSE;
- u32 ht_ielen = 0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- WLAN_BSSID_EX *pcur_bss = &pmlmepriv->cur_network.network;
- struct rtw_ieee80211_ht_cap *pht_capie;
- u8 bw_40MHz=0, short_GI=0;
- u16 mcs_rate=0;
- u8 rf_type = 0;
- struct registry_priv *pregpriv = &padapter->registrypriv;
-
-
- i=0;
-#ifdef CONFIG_MP_INCLUDED
- if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
- return -1;
-#endif
- if((check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) || (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE))
- {
- p = rtw_get_ie(&pcur_bss->IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pcur_bss->IELength-12);
- if(p && ht_ielen>0)
- {
- ht_cap = _TRUE;
+ u16 max_rate = 0;
- pht_capie = (struct rtw_ieee80211_ht_cap *)(p+2);
-
- _rtw_memcpy(&mcs_rate , pht_capie->supp_mcs_set, 2);
+ max_rate = rtw_get_cur_max_rate((_adapter *)rtw_netdev_priv(dev));
- bw_40MHz = (pht_capie->cap_info&IEEE80211_HT_CAP_SUP_WIDTH) ? 1:0;
+ if(max_rate == 0)
+ return -EPERM;
+
+ wrqu->bitrate.fixed = 0; /* no auto select */
+ wrqu->bitrate.value = max_rate * 100000;
- short_GI = (pht_capie->cap_info&(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40)) ? 1:0;
- }
+ return 0;
+}
- while( (pcur_bss->SupportedRates[i]!=0) && (pcur_bss->SupportedRates[i]!=0xFF))
- {
- rate = pcur_bss->SupportedRates[i]&0x7F;
- if(rate>max_rate)
- max_rate = rate;
+static int rtw_wx_set_rts(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- wrqu->bitrate.fixed = 0; /* no auto select */
- //wrqu->bitrate.disabled = 1/;
-
- i++;
- }
+ _func_enter_;
- if(ht_cap == _TRUE)
- {
-#if 0 //have some issue,neet to debug - 20101008-georgia
- if(mcs_rate&0x8000)//MCS15
- {
- max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130);
-
- }
- else if(mcs_rate&0x0080)//MCS7
- {
- max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
- }
- else//default MCS7
- {
- //DBG_8192C("wx_get_rate, mcs_rate_bitmap=0x%x\n", mcs_rate);
- max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
- }
-#else
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
- if(rf_type == RF_1T1R)
- max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
- else
- max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130);
-#endif
- max_rate = max_rate*2;//Mbps/2
- wrqu->bitrate.value = max_rate*500000;
-
- }
- else
- {
- wrqu->bitrate.value = max_rate*500000;
- }
-
- }
- else
- {
- return -1;
+ if (wrqu->rts.disabled)
+ padapter->registrypriv.rts_thresh = 2347;
+ else {
+ if (wrqu->rts.value < 0 ||
+ wrqu->rts.value > 2347)
+ return -EINVAL;
+
+ padapter->registrypriv.rts_thresh = wrqu->rts.value;
}
- return 0;
+ DBG_871X("%s, rts_thresh=%d\n", __func__, padapter->registrypriv.rts_thresh);
+
+ _func_exit_;
+ return 0;
+
}
static int rtw_wx_get_rts(struct net_device *dev,
@@ -2476,7 +2600,8 @@ static int rtw_wx_get_rts(struct net_device *dev,
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
_func_enter_;
- RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,(" rtw_wx_get_rts \n"));
+
+ DBG_871X("%s, rts_thresh=%d\n", __func__, padapter->registrypriv.rts_thresh);
wrqu->rts.value = padapter->registrypriv.rts_thresh;
wrqu->rts.fixed = 0; /* no auto select */
@@ -2504,6 +2629,8 @@ static int rtw_wx_set_frag(struct net_device *dev,
padapter->xmitpriv.frag_len = wrqu->frag.value & ~0x1;
}
+
+ DBG_871X("%s, frag_len=%d\n", __func__, padapter->xmitpriv.frag_len);
_func_exit_;
@@ -2511,7 +2638,6 @@ static int rtw_wx_set_frag(struct net_device *dev,
}
-
static int rtw_wx_get_frag(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -2519,6 +2645,8 @@ static int rtw_wx_get_frag(struct net_device *dev,
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
_func_enter_;
+
+ DBG_871X("%s, frag_len=%d\n", __func__, padapter->xmitpriv.frag_len);
wrqu->frag.value = padapter->xmitpriv.frag_len;
wrqu->frag.fixed = 0; /* no auto select */
@@ -2579,7 +2707,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
struct iw_point *erq = &(wrqu->encoding);
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- DBG_8192C("+rtw_wx_set_enc, flags=0x%x\n", erq->flags);
+ DBG_871X("+rtw_wx_set_enc, flags=0x%x\n", erq->flags);
_rtw_memset(&wep, 0, sizeof(NDIS_802_11_WEP));
@@ -2589,7 +2717,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
if (erq->flags & IW_ENCODE_DISABLED)
{
- DBG_8192C("EncryptionDisabled\n");
+ DBG_871X("EncryptionDisabled\n");
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
padapter->securitypriv.dot11PrivacyAlgrthm=_NO_PRIVACY_;
padapter->securitypriv.dot118021XGrpPrivacy=_NO_PRIVACY_;
@@ -2610,13 +2738,13 @@ static int rtw_wx_set_enc(struct net_device *dev,
{
keyindex_provided = 0;
key = padapter->securitypriv.dot11PrivacyKeyIndex;
- DBG_8192C("rtw_wx_set_enc, key=%d\n", key);
+ DBG_871X("rtw_wx_set_enc, key=%d\n", key);
}
//set authentication mode
if(erq->flags & IW_ENCODE_OPEN)
{
- DBG_8192C("rtw_wx_set_enc():IW_ENCODE_OPEN\n");
+ DBG_871X("rtw_wx_set_enc():IW_ENCODE_OPEN\n");
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;//Ndis802_11EncryptionDisabled;
#ifdef CONFIG_PLATFORM_MT53XX
@@ -2632,7 +2760,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
}
else if(erq->flags & IW_ENCODE_RESTRICTED)
{
- DBG_8192C("rtw_wx_set_enc():IW_ENCODE_RESTRICTED\n");
+ DBG_871X("rtw_wx_set_enc():IW_ENCODE_RESTRICTED\n");
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;
#ifdef CONFIG_PLATFORM_MT53XX
@@ -2648,7 +2776,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
}
else
{
- DBG_8192C("rtw_wx_set_enc():erq->flags=0x%x\n", erq->flags);
+ DBG_871X("rtw_wx_set_enc():erq->flags=0x%x\n", erq->flags);
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;//Ndis802_11EncryptionDisabled;
padapter->securitypriv.dot11AuthAlgrthm= dot11AuthAlgrthm_Open; //open system
@@ -2673,7 +2801,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
{
padapter->securitypriv.dot11PrivacyKeyIndex = key;
- DBG_8192C("(keyindex_provided == 1), keyid=%d, key_len=%d\n", key, padapter->securitypriv.dot11DefKeylen[key]);
+ DBG_871X("(keyindex_provided == 1), keyid=%d, key_len=%d\n", key, padapter->securitypriv.dot11DefKeylen[key]);
switch(padapter->securitypriv.dot11DefKeylen[key])
{
@@ -2910,7 +3038,8 @@ static int rtw_wx_set_auth(struct net_device *dev,
* It's the starting point of a link layer connection using wpa_supplicant
*/
if(check_fwstate(&padapter->mlmepriv, _FW_LINKED)) {
- rtw_disassoc_cmd(padapter);
+ LeaveAllPowerSaveMode(padapter);
+ rtw_disassoc_cmd(padapter, 500, _FALSE);
DBG_871X("%s...call rtw_indicate_disconnect\n ",__FUNCTION__);
rtw_indicate_disconnect(padapter);
rtw_free_assoc_resources(padapter, 1);
@@ -2987,6 +3116,11 @@ static int rtw_wx_set_enc_ext(struct net_device *dev,
case IW_ENCODE_ALG_CCMP:
alg_name = "CCMP";
break;
+#ifdef CONFIG_IEEE80211W
+ case IW_ENCODE_ALG_AES_CMAC:
+ alg_name = "BIP";
+ break;
+#endif //CONFIG_IEEE80211W
default:
return -1;
}
@@ -2994,7 +3128,11 @@ static int rtw_wx_set_enc_ext(struct net_device *dev,
strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN);
- if(pext->ext_flags & IW_ENCODE_EXT_GROUP_KEY)//?
+ if((pext->ext_flags & IW_ENCODE_EXT_GROUP_KEY)//?
+#ifdef CONFIG_IEEE80211W
+ || (pext->ext_flags & IW_ENCODE_ALG_AES_CMAC)
+#endif //CONFIG_IEEE80211W
+ )
{
param->u.crypt.set_tx = 0;
}
@@ -3065,40 +3203,40 @@ static int rtw_wx_get_nick(struct net_device *dev,
u32 ndisencryptstatus;
*/
- //DBG_8192C("auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x%x\n",
+ //DBG_871X("auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x%x\n",
// psecuritypriv->dot11AuthAlgrthm, psecuritypriv->dot11PrivacyAlgrthm,
// psecuritypriv->ndisauthtype, psecuritypriv->ndisencryptstatus);
- //DBG_8192C("enc_alg=0x%x\n", psecuritypriv->dot11PrivacyAlgrthm);
- //DBG_8192C("auth_type=0x%x\n", psecuritypriv->ndisauthtype);
- //DBG_8192C("enc_type=0x%x\n", psecuritypriv->ndisencryptstatus);
+ //DBG_871X("enc_alg=0x%x\n", psecuritypriv->dot11PrivacyAlgrthm);
+ //DBG_871X("auth_type=0x%x\n", psecuritypriv->ndisauthtype);
+ //DBG_871X("enc_type=0x%x\n", psecuritypriv->ndisencryptstatus);
#if 0
- DBG_8192C("dbg(0x210)=0x%x\n", rtw_read32(padapter, 0x210));
- DBG_8192C("dbg(0x608)=0x%x\n", rtw_read32(padapter, 0x608));
- DBG_8192C("dbg(0x280)=0x%x\n", rtw_read32(padapter, 0x280));
- DBG_8192C("dbg(0x284)=0x%x\n", rtw_read32(padapter, 0x284));
- DBG_8192C("dbg(0x288)=0x%x\n", rtw_read32(padapter, 0x288));
+ DBG_871X("dbg(0x210)=0x%x\n", rtw_read32(padapter, 0x210));
+ DBG_871X("dbg(0x608)=0x%x\n", rtw_read32(padapter, 0x608));
+ DBG_871X("dbg(0x280)=0x%x\n", rtw_read32(padapter, 0x280));
+ DBG_871X("dbg(0x284)=0x%x\n", rtw_read32(padapter, 0x284));
+ DBG_871X("dbg(0x288)=0x%x\n", rtw_read32(padapter, 0x288));
- DBG_8192C("dbg(0x664)=0x%x\n", rtw_read32(padapter, 0x664));
+ DBG_871X("dbg(0x664)=0x%x\n", rtw_read32(padapter, 0x664));
- DBG_8192C("\n");
+ DBG_871X("\n");
- DBG_8192C("dbg(0x430)=0x%x\n", rtw_read32(padapter, 0x430));
- DBG_8192C("dbg(0x438)=0x%x\n", rtw_read32(padapter, 0x438));
+ DBG_871X("dbg(0x430)=0x%x\n", rtw_read32(padapter, 0x430));
+ DBG_871X("dbg(0x438)=0x%x\n", rtw_read32(padapter, 0x438));
- DBG_8192C("dbg(0x440)=0x%x\n", rtw_read32(padapter, 0x440));
+ DBG_871X("dbg(0x440)=0x%x\n", rtw_read32(padapter, 0x440));
- DBG_8192C("dbg(0x458)=0x%x\n", rtw_read32(padapter, 0x458));
+ DBG_871X("dbg(0x458)=0x%x\n", rtw_read32(padapter, 0x458));
- DBG_8192C("dbg(0x484)=0x%x\n", rtw_read32(padapter, 0x484));
- DBG_8192C("dbg(0x488)=0x%x\n", rtw_read32(padapter, 0x488));
+ DBG_871X("dbg(0x484)=0x%x\n", rtw_read32(padapter, 0x484));
+ DBG_871X("dbg(0x488)=0x%x\n", rtw_read32(padapter, 0x488));
- DBG_8192C("dbg(0x444)=0x%x\n", rtw_read32(padapter, 0x444));
- DBG_8192C("dbg(0x448)=0x%x\n", rtw_read32(padapter, 0x448));
- DBG_8192C("dbg(0x44c)=0x%x\n", rtw_read32(padapter, 0x44c));
- DBG_8192C("dbg(0x450)=0x%x\n", rtw_read32(padapter, 0x450));
+ DBG_871X("dbg(0x444)=0x%x\n", rtw_read32(padapter, 0x444));
+ DBG_871X("dbg(0x448)=0x%x\n", rtw_read32(padapter, 0x448));
+ DBG_871X("dbg(0x44c)=0x%x\n", rtw_read32(padapter, 0x44c));
+ DBG_871X("dbg(0x450)=0x%x\n", rtw_read32(padapter, 0x450));
#endif
return 0;
@@ -3109,15 +3247,51 @@ static int rtw_wx_read32(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
-
+ PADAPTER padapter;
+ struct iw_point *p;
+ u16 len;
u32 addr;
u32 data32;
+ u32 bytes;
+ u8 *ptmp;
+
+
+ padapter = (PADAPTER)rtw_netdev_priv(dev);
+ p = &wrqu->data;
+ len = p->length;
+ ptmp = (u8*)rtw_malloc(len);
+ if (NULL == ptmp)
+ return -ENOMEM;
+
+ if (copy_from_user(ptmp, p->pointer, len)) {
+ rtw_mfree(ptmp, len);
+ return -EFAULT;
+ }
+
+ bytes = 0;
+ addr = 0;
+ sscanf(ptmp, "%d,%x", &bytes, &addr);
+ switch (bytes) {
+ case 1:
+ data32 = rtw_read8(padapter, addr);
+ sprintf(extra, "0x%02X", data32);
+ break;
+ case 2:
+ data32 = rtw_read16(padapter, addr);
+ sprintf(extra, "0x%04X", data32);
+ break;
+ case 4:
+ data32 = rtw_read32(padapter, addr);
+ sprintf(extra, "0x%08X", data32);
+ break;
+ default:
+ printk(KERN_INFO "%s: usage> read [bytes],[address(hex)]\n", __func__);
+ return -EINVAL;
+ }
+ printk(KERN_INFO "%s: addr=0x%08X data=%s\n", __func__, addr, extra);
- addr = *(u32*)extra;
- data32 = rtw_read32(padapter, addr);
- sprintf(extra, "0x%08x", data32);
+ rtw_mfree(ptmp, len);
return 0;
}
@@ -3126,15 +3300,35 @@ static int rtw_wx_write32(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ PADAPTER padapter = (PADAPTER)rtw_netdev_priv(dev);
u32 addr;
u32 data32;
+ u32 bytes;
+
+ bytes = 0;
+ addr = 0;
+ data32 = 0;
+ sscanf(extra, "%d,%x,%x", &bytes, &addr, &data32);
- addr = *(u32*)extra;
- data32 = *((u32*)extra + 1);
- rtw_write32(padapter, addr, data32);
+ switch (bytes) {
+ case 1:
+ rtw_write8(padapter, addr, (u8)data32);
+ printk(KERN_INFO "%s: addr=0x%08X data=0x%02X\n", __func__, addr, (u8)data32);
+ break;
+ case 2:
+ rtw_write16(padapter, addr, (u16)data32);
+ printk(KERN_INFO "%s: addr=0x%08X data=0x%04X\n", __func__, addr, (u16)data32);
+ break;
+ case 4:
+ rtw_write32(padapter, addr, data32);
+ printk(KERN_INFO "%s: addr=0x%08X data=0x%08X\n", __func__, addr, data32);
+ break;
+ default:
+ printk(KERN_INFO "%s: usage> write [bytes],[address(hex)],[data(hex)]\n", __func__);
+ return -EINVAL;
+ }
return 0;
}
@@ -3149,8 +3343,8 @@ static int rtw_wx_read_rf(struct net_device *dev,
path = *(u32*)extra;
addr = *((u32*)extra + 1);
- data32 = padapter->HalFunc.read_rfreg(padapter, path, addr, 0xFFFFF);
-// DBG_8192C("%s: path=%d addr=0x%02x data=0x%05x\n", __func__, path, addr, data32);
+ data32 = rtw_hal_read_rfreg(padapter, path, addr, 0xFFFFF);
+// DBG_871X("%s: path=%d addr=0x%02x data=0x%05x\n", __func__, path, addr, data32);
/*
* IMPORTANT!!
* Only when wireless private ioctl is at odd order,
@@ -3172,8 +3366,8 @@ static int rtw_wx_write_rf(struct net_device *dev,
path = *(u32*)extra;
addr = *((u32*)extra + 1);
data32 = *((u32*)extra + 2);
-// DBG_8192C("%s: path=%d addr=0x%02x data=0x%05x\n", __func__, path, addr, data32);
- padapter->HalFunc.write_rfreg(padapter, path, addr, 0xFFFFF, data32);
+// DBG_871X("%s: path=%d addr=0x%02x data=0x%05x\n", __func__, path, addr, data32);
+ rtw_hal_write_rfreg(padapter, path, addr, 0xFFFFF, data32);
return 0;
}
@@ -3190,7 +3384,7 @@ static int dummy(struct net_device *dev, struct iw_request_info *a,
//_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
//struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- //DBG_8192C("cmd_code=%x, fwstate=0x%x\n", a->cmd, get_fwstate(pmlmepriv));
+ //DBG_871X("cmd_code=%x, fwstate=0x%x\n", a->cmd, get_fwstate(pmlmepriv));
return -1;
@@ -3213,7 +3407,7 @@ static int rtw_wx_set_channel_plan(struct net_device *dev,
#endif
if( _SUCCESS == rtw_set_chplan_cmd(padapter, channel_plan_req, 1) ) {
- DBG_871X("\n======== Set channel_plan = 0x%02X ========\n", pmlmepriv->ChannelPlan);
+ DBG_871X("%s set channel_plan = 0x%02X\n", __func__, pmlmepriv->ChannelPlan);
} else
return -EPERM;
@@ -3245,7 +3439,7 @@ static int rtw_wx_get_sensitivity(struct net_device *dev,
// Modified by Albert 20110914
// This is in dbm format for MTK platform.
wrqu->qual.level = padapter->recvpriv.rssi;
- DBG_8192C(" level = %u\n", wrqu->qual.level );
+ DBG_871X(" level = %u\n", wrqu->qual.level );
#endif
return 0;
}
@@ -3391,12 +3585,12 @@ static void rtw_dbg_mode_hdl(_adapter *padapter, u32 id, u8 *pdata, u32 len)
u8 offset;
u32 value;
- DBG_8192C("%s\n", __FUNCTION__);
+ DBG_871X("%s\n", __FUNCTION__);
switch(id)
{
case GEN_MP_IOCTL_SUBCODE(MP_START):
- DBG_8192C("871x_driver is only for normal mode, can't enter mp mode\n");
+ DBG_871X("871x_driver is only for normal mode, can't enter mp mode\n");
break;
case GEN_MP_IOCTL_SUBCODE(READ_REG):
RegRWStruct = (pRW_Reg)pdata;
@@ -3441,7 +3635,7 @@ static void rtw_dbg_mode_hdl(_adapter *padapter, u32 id, u8 *pdata, u32 len)
path = (u8)prfreg->path;
offset = (u8)prfreg->offset;
- value = padapter->HalFunc.read_rfreg(padapter, path, offset, 0xffffffff);
+ value = rtw_hal_read_rfreg(padapter, path, offset, 0xffffffff);
prfreg->value = value;
@@ -3454,27 +3648,26 @@ static void rtw_dbg_mode_hdl(_adapter *padapter, u32 id, u8 *pdata, u32 len)
offset = (u8)prfreg->offset;
value = prfreg->value;
- padapter->HalFunc.write_rfreg(padapter, path, offset, 0xffffffff, value);
+ rtw_hal_write_rfreg(padapter, path, offset, 0xffffffff, value);
break;
case GEN_MP_IOCTL_SUBCODE(TRIGGER_GPIO):
- DBG_8192C("==> trigger gpio 0\n");
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_TRIGGER_GPIO_0, 0);
+ DBG_871X("==> trigger gpio 0\n");
+ rtw_hal_set_hwreg(padapter, HW_VAR_TRIGGER_GPIO_0, 0);
break;
#ifdef CONFIG_BT_COEXIST
case GEN_MP_IOCTL_SUBCODE(SET_DM_BT):
- DBG_8192C("==> set dm_bt_coexist:%x\n",*(u8 *)pdata);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BT_SET_COEXIST, pdata);
+ DBG_871X("==> set dm_bt_coexist:%x\n",*(u8 *)pdata);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BT_SET_COEXIST, pdata);
break;
case GEN_MP_IOCTL_SUBCODE(DEL_BA):
- DBG_8192C("==> delete ba:%x\n",*(u8 *)pdata);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_BT_ISSUE_DELBA, pdata);
+ DBG_871X("==> delete ba:%x\n",*(u8 *)pdata);
+ rtw_hal_set_hwreg(padapter, HW_VAR_BT_ISSUE_DELBA, pdata);
break;
#endif
#ifdef DBG_CONFIG_ERROR_DETECT
case GEN_MP_IOCTL_SUBCODE(GET_WIFI_STATUS):
- if(padapter->HalFunc.sreset_get_wifi_status)
- *pdata = padapter->HalFunc.sreset_get_wifi_status(padapter);
+ *pdata = rtw_hal_sreset_get_wifi_status(padapter);
break;
#endif
@@ -3495,10 +3688,10 @@ static int rtw_mp_ioctl_hdl(struct net_device *dev, struct iw_request_info *info
uint status=0;
u16 len;
u8 *pparmbuf = NULL, bset;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ PADAPTER padapter = (PADAPTER)rtw_netdev_priv(dev);
struct iw_point *p = &wrqu->data;
- //DBG_8192C("+rtw_mp_ioctl_hdl\n");
+ //DBG_871X("+rtw_mp_ioctl_hdl\n");
//mutex_lock(&ioctl_mutex);
@@ -3532,7 +3725,7 @@ static int rtw_mp_ioctl_hdl(struct net_device *dev, struct iw_request_info *info
goto _rtw_mp_ioctl_hdl_exit;
}
- //DBG_8192C("%s: %d\n", __func__, poidparam->subcode);
+ //DBG_871X("%s: %d\n", __func__, poidparam->subcode);
#ifdef CONFIG_MP_INCLUDED
phandler = mp_ioctl_hdl + poidparam->subcode;
@@ -3572,7 +3765,7 @@ static int rtw_mp_ioctl_hdl(struct net_device *dev, struct iw_request_info *info
//todo:check status, BytesNeeded, etc.
}
else {
- DBG_8192C("rtw_mp_ioctl_hdl(): err!, subcode=%d, oid=%d, handler=%p\n",
+ DBG_871X("rtw_mp_ioctl_hdl(): err!, subcode=%d, oid=%d, handler=%p\n",
poidparam->subcode, phandler->oid, phandler->handler);
ret = -EFAULT;
goto _rtw_mp_ioctl_hdl_exit;
@@ -3620,7 +3813,7 @@ static int rtw_get_ap_info(struct net_device *dev,
_queue *queue = &(pmlmepriv->scanned_queue);
struct iw_point *pdata = &wrqu->data;
- DBG_8192C("+rtw_get_aplist_info\n");
+ DBG_871X("+rtw_get_aplist_info\n");
if((padapter->bDriverStopped) || (pdata==NULL))
{
@@ -3669,7 +3862,7 @@ static int rtw_get_ap_info(struct net_device *dev,
//if(hwaddr_aton_i(pdata->pointer, bssid))
if(hwaddr_aton_i(data, bssid))
{
- DBG_8192C("Invalid BSSID '%s'.\n", (u8*)data);
+ DBG_871X("Invalid BSSID '%s'.\n", (u8*)data);
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
return -EINVAL;
}
@@ -3677,7 +3870,7 @@ static int rtw_get_ap_info(struct net_device *dev,
if(_rtw_memcmp(bssid, pnetwork->network.MacAddress, ETH_ALEN) == _TRUE)//BSSID match, then check if supporting wpa/wpa2
{
- DBG_8192C("BSSID:" MAC_FMT "\n", MAC_ARG(bssid));
+ DBG_871X("BSSID:" MAC_FMT "\n", MAC_ARG(bssid));
pbuf = rtw_get_wpa_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12);
if(pbuf && (wpa_ielen>0))
@@ -3768,17 +3961,17 @@ static int rtw_wps_start(struct net_device *dev,
goto exit;
}
- if ( u32wps_start == 0 )
- {
- u32wps_start = *extra;
- }
+ if ( u32wps_start == 0 )
+ {
+ u32wps_start = *extra;
+ }
- DBG_8192C( "[%s] wps_start = %d\n", __FUNCTION__, u32wps_start );
+ DBG_871X( "[%s] wps_start = %d\n", __FUNCTION__, u32wps_start );
- if ( u32wps_start == 1 ) // WPS Start
- {
+ if ( u32wps_start == 1 ) // WPS Start
+ {
rtw_led_control(padapter, LED_CTL_START_WPS);
- }
+ }
else if ( u32wps_start == 2 ) // WPS Stop because of wps success
{
rtw_led_control(padapter, LED_CTL_STOP_WPS);
@@ -3787,6 +3980,11 @@ static int rtw_wps_start(struct net_device *dev,
{
rtw_led_control(padapter, LED_CTL_STOP_WPS_FAIL);
}
+
+#ifdef CONFIG_INTEL_WIDI
+ process_intel_widi_wps_status(padapter, u32wps_start);
+#endif //CONFIG_INTEL_WIDI
+
exit:
return ret;
@@ -3794,7 +3992,6 @@ exit:
}
#ifdef CONFIG_P2P
-
static int rtw_wext_p2p_enable(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -3834,9 +4031,34 @@ static int rtw_wext_p2p_enable(struct net_device *dev,
{
// Stay at the listen state and wait for discovery.
channel = pwdinfo->listen_channel;
+ pwdinfo->operating_channel = pwdinfo->listen_channel;
ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
- bwmode = HT_CHANNEL_WIDTH_20;
+ bwmode = HT_CHANNEL_WIDTH_20;
+ }
+#ifdef CONFIG_CONCURRENT_MODE
+ else if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ {
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ //struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+
+ _set_timer( &pwdinfo->ap_p2p_switch_timer, pwdinfo->ext_listen_interval );
+ if ( check_fwstate( pbuddy_mlmepriv, _FW_LINKED ) )
+ {
+ pwdinfo->operating_channel = pbuddy_mlmeext->cur_channel;
+ // How about the ch_offset and bwmode ??
+ }
+ else
+ {
+ pwdinfo->operating_channel = pwdinfo->listen_channel;
+ }
+
+ channel = pbuddy_mlmeext->cur_channel;
+ ch_offset = pbuddy_mlmeext->cur_ch_offset;
+ bwmode = pbuddy_mlmeext->cur_bwmode;
}
+#endif
else
{
pwdinfo->operating_channel = pmlmeext->cur_channel;
@@ -3865,7 +4087,7 @@ static int rtw_p2p_set_go_nego_ssid(struct net_device *dev,
struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
- DBG_8192C( "[%s] ssid = %s, len = %d\n", __FUNCTION__, extra, strlen( extra ) );
+ DBG_871X( "[%s] ssid = %s, len = %d\n", __FUNCTION__, extra, (u32)strlen( extra ) );
_rtw_memcpy( pwdinfo->nego_ssid, extra, strlen( extra ) );
pwdinfo->nego_ssidlen = strlen( extra );
@@ -3878,28 +4100,15 @@ static int rtw_p2p_set_intent(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
-
- int ret = 0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct iw_point *pdata = &wrqu->data;
- struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
- u8 intent = pwdinfo->intent;
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+ u8 intent = pwdinfo->intent;
- switch( wrqu->data.length )
- {
- case 1:
- {
- intent = extra[ 0 ] - '0';
- break;
- }
- case 2:
- {
- intent = str_2char2num( extra[ 0 ], extra[ 1 ]);
- break;
- }
- }
+ extra[ wrqu->data.length ] = 0x00;
+ intent = rtw_atoi( extra );
+
if ( intent <= 15 )
{
pwdinfo->intent= intent;
@@ -3909,10 +4118,10 @@ static int rtw_p2p_set_intent(struct net_device *dev,
ret = -1;
}
- DBG_8192C( "[%s] intent = %d\n", __FUNCTION__, intent);
-
+ DBG_871X( "[%s] intent = %d\n", __FUNCTION__, intent);
+
return ret;
-
+
}
static int rtw_p2p_set_listen_ch(struct net_device *dev,
@@ -3922,26 +4131,13 @@ static int rtw_p2p_set_listen_ch(struct net_device *dev,
int ret = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
u8 listen_ch = pwdinfo->listen_channel; // Listen channel number
- switch( wrqu->data.length )
- {
- case 1:
- {
- listen_ch = extra[ 0 ] - '0';
- break;
- }
- case 2:
- {
- listen_ch = str_2char2num( extra[ 0 ], extra[ 1 ]);
- break;
- }
- }
+ extra[ wrqu->data.length ] = 0x00;
+ listen_ch = rtw_atoi( extra );
- if ( listen_ch > 0 && listen_ch <= 13 )
+ if ( ( listen_ch == 1 ) || ( listen_ch == 6 ) || ( listen_ch == 11 ) )
{
pwdinfo->listen_channel = listen_ch;
set_channel_bwmode(padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
@@ -3951,7 +4147,7 @@ static int rtw_p2p_set_listen_ch(struct net_device *dev,
ret = -1;
}
- DBG_8192C( "[%s] listen_ch = %d\n", __FUNCTION__, pwdinfo->listen_channel );
+ DBG_871X( "[%s] listen_ch = %d\n", __FUNCTION__, pwdinfo->listen_channel );
return ret;
@@ -3966,30 +4162,13 @@ static int rtw_p2p_set_op_ch(struct net_device *dev,
int ret = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
u8 op_ch = pwdinfo->operating_channel; // Operating channel number
- switch( wrqu->data.length )
- {
- case 1:
- {
- op_ch = extra[ 0 ] - '0';
- break;
- }
- case 2:
- {
- op_ch = str_2char2num( extra[ 0 ], extra[ 1 ]);
- break;
- }
- }
+ extra[ wrqu->data.length ] = 0x00;
- if ( op_ch > 0 && op_ch <= 13 )
- {
- pwdinfo->operating_channel = op_ch;
- }
- else if(IsLegal5GChannel(padapter, op_ch))
+ op_ch = ( u8 ) rtw_atoi( extra );
+ if ( op_ch > 0 )
{
pwdinfo->operating_channel = op_ch;
}
@@ -3998,10 +4177,10 @@ static int rtw_p2p_set_op_ch(struct net_device *dev,
ret = -1;
}
- DBG_8192C( "[%s] op_ch = %d\n", __FUNCTION__, pwdinfo->operating_channel );
+ DBG_871X( "[%s] op_ch = %d\n", __FUNCTION__, pwdinfo->operating_channel );
return ret;
-
+
}
@@ -4012,8 +4191,6 @@ static int rtw_p2p_profilefound(struct net_device *dev,
int ret = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
// Comment by Albert 2010/10/13
@@ -4026,7 +4203,7 @@ static int rtw_p2p_profilefound(struct net_device *dev,
// YY => SSID Length
// SSID => SSID for persistence group
- DBG_8192C( "[%s] In value = %s, len = %d \n", __FUNCTION__, extra, wrqu->data.length -1);
+ DBG_871X( "[%s] In value = %s, len = %d \n", __FUNCTION__, extra, wrqu->data.length -1);
// The upper application should pass the SSID to driver by using this rtw_p2p_profilefound function.
@@ -4055,8 +4232,8 @@ static int rtw_p2p_profilefound(struct net_device *dev,
pwdinfo->profileinfo[ pwdinfo->profileindex ].peermac[ jj ] = key_2char2num(extra[ kk ], extra[ kk+ 1 ]);
}
- pwdinfo->profileinfo[ pwdinfo->profileindex ].ssidlen = ( extra[18] - '0' ) * 10 + ( extra[ 19 ] - '0' );
- _rtw_memcpy( pwdinfo->profileinfo[ pwdinfo->profileindex ].ssid, &extra[ 20 ], pwdinfo->profileinfo[ pwdinfo->profileindex ].ssidlen );
+ //pwdinfo->profileinfo[ pwdinfo->profileindex ].ssidlen = ( extra[18] - '0' ) * 10 + ( extra[ 19 ] - '0' );
+ //_rtw_memcpy( pwdinfo->profileinfo[ pwdinfo->profileindex ].ssid, &extra[ 20 ], pwdinfo->profileinfo[ pwdinfo->profileindex ].ssidlen );
pwdinfo->profileindex++;
}
}
@@ -4073,16 +4250,14 @@ static int rtw_p2p_setDN(struct net_device *dev,
int ret = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
- pwdinfo->device_name_len = wrqu->data.length - 1;
+ DBG_871X( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+
_rtw_memset( pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN );
- _rtw_memcpy( pwdinfo->device_name, extra, pwdinfo->device_name_len );
-
+ _rtw_memcpy( pwdinfo->device_name, extra, wrqu->data.length - 1 );
+ pwdinfo->device_name_len = wrqu->data.length - 1;
return ret;
}
@@ -4098,23 +4273,20 @@ static int rtw_p2p_get_status(struct net_device *dev,
struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
-
- DBG_8192C( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
- pwdinfo->p2p_peer_interface_addr[ 0 ], pwdinfo->p2p_peer_interface_addr[ 1 ], pwdinfo->p2p_peer_interface_addr[ 2 ],
- pwdinfo->p2p_peer_interface_addr[ 3 ], pwdinfo->p2p_peer_interface_addr[ 4 ], pwdinfo->p2p_peer_interface_addr[ 5 ]);
+ if ( padapter->bShowGetP2PState )
+ {
+ DBG_871X( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
+ pwdinfo->p2p_peer_interface_addr[ 0 ], pwdinfo->p2p_peer_interface_addr[ 1 ], pwdinfo->p2p_peer_interface_addr[ 2 ],
+ pwdinfo->p2p_peer_interface_addr[ 3 ], pwdinfo->p2p_peer_interface_addr[ 4 ], pwdinfo->p2p_peer_interface_addr[ 5 ]);
+ }
+
// Commented by Albert 2010/10/12
// Because of the output size limitation, I had removed the "Role" information.
// About the "Role" information, we will use the new private IOCTL to get the "Role" information.
sprintf( extra, "\n\nStatus=%.2d\n", rtw_p2p_state(pwdinfo) );
wrqu->data.length = strlen( extra );
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_LISTEN))
- {
- // Stay at the listen state and wait for discovery.
- set_channel_bwmode(padapter, pwdinfo->listen_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- }
-
return ret;
}
@@ -4152,7 +4324,7 @@ static int rtw_p2p_get_role(struct net_device *dev,
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- DBG_8192C( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
+ DBG_871X( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
pwdinfo->p2p_peer_interface_addr[ 0 ], pwdinfo->p2p_peer_interface_addr[ 1 ], pwdinfo->p2p_peer_interface_addr[ 2 ],
pwdinfo->p2p_peer_interface_addr[ 3 ], pwdinfo->p2p_peer_interface_addr[ 4 ], pwdinfo->p2p_peer_interface_addr[ 5 ]);
@@ -4174,7 +4346,7 @@ static int rtw_p2p_get_peer_ifaddr(struct net_device *dev,
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- DBG_8192C( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
+ DBG_871X( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
pwdinfo->p2p_peer_interface_addr[ 0 ], pwdinfo->p2p_peer_interface_addr[ 1 ], pwdinfo->p2p_peer_interface_addr[ 2 ],
pwdinfo->p2p_peer_interface_addr[ 3 ], pwdinfo->p2p_peer_interface_addr[ 4 ], pwdinfo->p2p_peer_interface_addr[ 5 ]);
@@ -4197,7 +4369,7 @@ static int rtw_p2p_get_peer_devaddr(struct net_device *dev,
struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- DBG_8192C( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
+ DBG_871X( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
pwdinfo->rx_prov_disc_info.peerDevAddr[ 0 ], pwdinfo->rx_prov_disc_info.peerDevAddr[ 1 ],
pwdinfo->rx_prov_disc_info.peerDevAddr[ 2 ], pwdinfo->rx_prov_disc_info.peerDevAddr[ 3 ],
pwdinfo->rx_prov_disc_info.peerDevAddr[ 4 ], pwdinfo->rx_prov_disc_info.peerDevAddr[ 5 ]);
@@ -4210,6 +4382,30 @@ static int rtw_p2p_get_peer_devaddr(struct net_device *dev,
}
+static int rtw_p2p_get_peer_devaddr_by_invitation(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+
+ DBG_871X( "[%s] Role = %d, Status = %d, peer addr = %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", __FUNCTION__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo),
+ pwdinfo->p2p_peer_device_addr[ 0 ], pwdinfo->p2p_peer_device_addr[ 1 ],
+ pwdinfo->p2p_peer_device_addr[ 2 ], pwdinfo->p2p_peer_device_addr[ 3 ],
+ pwdinfo->p2p_peer_device_addr[ 4 ], pwdinfo->p2p_peer_device_addr[ 5 ]);
+ sprintf( extra, "\nMAC %.2X:%.2X:%.2X:%.2X:%.2X:%.2X",
+ pwdinfo->p2p_peer_device_addr[ 0 ], pwdinfo->p2p_peer_device_addr[ 1 ],
+ pwdinfo->p2p_peer_device_addr[ 2 ], pwdinfo->p2p_peer_device_addr[ 3 ],
+ pwdinfo->p2p_peer_device_addr[ 4 ], pwdinfo->p2p_peer_device_addr[ 5 ]);
+ wrqu->data.length = strlen( extra );
+ return ret;
+
+}
+
static int rtw_p2p_get_groupid(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -4221,7 +4417,7 @@ static int rtw_p2p_get_groupid(struct net_device *dev,
struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- sprintf( extra, "\n%.2X:%.2X:%.2X:%.2X:%.2X:%.2X-%s",
+ sprintf( extra, "\n%.2X:%.2X:%.2X:%.2X:%.2X:%.2X %s",
pwdinfo->groupid_info.go_device_addr[ 0 ], pwdinfo->groupid_info.go_device_addr[ 1 ],
pwdinfo->groupid_info.go_device_addr[ 2 ], pwdinfo->groupid_info.go_device_addr[ 3 ],
pwdinfo->groupid_info.go_device_addr[ 4 ], pwdinfo->groupid_info.go_device_addr[ 5 ],
@@ -4231,46 +4427,551 @@ static int rtw_p2p_get_groupid(struct net_device *dev,
}
-
-static int rtw_p2p_get_wps_configmethod(struct net_device *dev,
+static int rtw_p2p_get_op_ch(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
+
{
int ret = 0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct iw_point *pdata = &wrqu->data;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- u8 peerMAC[ ETH_ALEN ] = { 0x00 };
- int jj,kk;
- u8 peerMACStr[ 17 ] = { 0x00 };
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- _irqL irqL;
- _list *plist, *phead;
- _queue *queue = &(pmlmepriv->scanned_queue);
- struct wlan_network *pnetwork = NULL;
- u8 blnMatch = 0;
- u16 attr_content = 0;
- uint attr_contentlen = 0;
- //6 is the string "wpsCM=", 17 is the MAC addr, we have to clear it at wrqu->data.pointer
- u8 attr_content_str[ 6 + 17 ] = { 0x00 };
-
- // Commented by Albert 20110727
- // The input data is the MAC address which the application wants to know its WPS config method.
- // After knowing its WPS config method, the application can decide the config method for provisioning discovery.
- // Format: iwpriv wlanx p2p_get_wpsCM 00:E0:4C:00:00:05
+
+ DBG_871X( "[%s] Op_ch = %02x\n", __FUNCTION__, pwdinfo->operating_channel);
+
+ sprintf( extra, "\n\nOp_ch=%.2d\n", pwdinfo->operating_channel );
+ wrqu->data.length = strlen( extra );
+ return ret;
+
+}
- DBG_8192C( "[%s] data = %s\n", __FUNCTION__, ( char* ) extra );
- //_rtw_memcpy( peerMACStr , extra , 17 );
+inline static void macstr2num(u8 *dst, u8 *src)
+{
+ int jj, kk;
+ for (jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3)
+ {
+ dst[jj] = key_2char2num(src[kk], src[kk + 1]);
+ }
+}
+
+static int rtw_p2p_get_wps_configmethod(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra, char *subcmd)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u8 peerMAC[ETH_ALEN] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _list * plist,*phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ u8 blnMatch = 0;
+ u16 attr_content = 0;
+ uint attr_contentlen = 0;
+ u8 attr_content_str[P2P_PRIVATE_IOCTL_SET_LEN] = { 0x00 };
+
+ // Commented by Albert 20110727
+ // The input data is the MAC address which the application wants to know its WPS config method.
+ // After knowing its WPS config method, the application can decide the config method for provisioning discovery.
+ // Format: iwpriv wlanx p2p_get_wpsCM 00:E0:4C:00:00:05
+
+ DBG_871X("[%s] data = %s\n", __FUNCTION__, subcmd);
+
+ macstr2num(peerMAC, subcmd);
+
+ _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+
+ while (1)
+ {
+ if (rtw_end_of_queue_search(phead, plist) == _TRUE) break;
+
+ pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
+ if (_rtw_memcmp(pnetwork->network.MacAddress, peerMAC, ETH_ALEN))
+ {
+ u8 *wpsie;
+ uint wpsie_len = 0;
+
+ // The mac address is matched.
+
+ if ((wpsie = rtw_get_wps_ie(&pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &wpsie_len)))
+ {
+ rtw_get_wps_attr_content(wpsie, wpsie_len, WPS_ATTR_CONF_METHOD, (u8 *)&attr_content, &attr_contentlen);
+ if (attr_contentlen)
+ {
+ attr_content = be16_to_cpu(attr_content);
+ sprintf(attr_content_str, "\n\nM=%.4d", attr_content);
+ blnMatch = 1;
+ }
+ }
+
+ break;
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ if (!blnMatch)
+ {
+ sprintf(attr_content_str, "\n\nM=0000");
+ }
+
+ wrqu->data.length = strlen(attr_content_str);
+ _rtw_memcpy(extra, attr_content_str, wrqu->data.length);
+
+ return ret;
+
+}
+
+#ifdef CONFIG_WFD
+static int rtw_p2p_get_peer_wfd_port(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+
+ DBG_871X( "[%s] p2p_state = %d\n", __FUNCTION__, rtw_p2p_state(pwdinfo) );
+
+ sprintf( extra, "\n\nPort=%d\n", pwdinfo->wfd_info->peer_rtsp_ctrlport );
+ DBG_871X( "[%s] remote port = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
+
+ wrqu->data.length = strlen( extra );
+ return ret;
+
+}
+
+static int rtw_p2p_get_peer_wfd_preferred_connection(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+
+ sprintf( extra, "\n\nwfd_pc=%d\n", pwdinfo->wfd_info->wfd_pc );
+ DBG_871X( "[%s] wfd_pc = %d\n", __FUNCTION__, pwdinfo->wfd_info->wfd_pc );
+
+ wrqu->data.length = strlen( extra );
+ pwdinfo->wfd_info->wfd_pc = _FALSE; // Reset the WFD preferred connection to P2P
+ return ret;
+
+}
+
+static int rtw_p2p_get_peer_wfd_session_available(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+
+ sprintf( extra, "\n\nwfd_sa=%d\n", pwdinfo->wfd_info->peer_session_avail );
+ DBG_871X( "[%s] wfd_sa = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_session_avail );
+
+ wrqu->data.length = strlen( extra );
+ pwdinfo->wfd_info->peer_session_avail = _TRUE; // Reset the WFD session available
+ return ret;
+
+}
+
+#endif // CONFIG_WFD
+
+static int rtw_p2p_get_go_device_address(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra, char *subcmd)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u8 peerMAC[ETH_ALEN] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ u8 blnMatch = 0;
+ u8 *p2pie;
+ uint p2pielen = 0, attr_contentlen = 0;
+ u8 attr_content[100] = { 0x00 };
+ u8 go_devadd_str[P2P_PRIVATE_IOCTL_SET_LEN] = { 0x00 };
+
+ // Commented by Albert 20121209
+ // The input data is the GO's interface address which the application wants to know its device address.
+ // Format: iwpriv wlanx p2p_get2 go_devadd=00:E0:4C:00:00:05
+
+ DBG_871X("[%s] data = %s\n", __FUNCTION__, subcmd);
+
+ macstr2num(peerMAC, subcmd);
+
+ _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+
+ while (1)
+ {
+ if (rtw_end_of_queue_search(phead, plist) == _TRUE) break;
+
+ pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
+ if (_rtw_memcmp(pnetwork->network.MacAddress, peerMAC, ETH_ALEN))
+ {
+ // Commented by Albert 2011/05/18
+ // Match the device address located in the P2P IE
+ // This is for the case that the P2P device address is not the same as the P2P interface address.
+
+ if ((p2pie = rtw_get_p2p_ie(&pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen)))
+ {
+ while (p2pie)
+ {
+ // The P2P Device ID attribute is included in the Beacon frame.
+ // The P2P Device Info attribute is included in the probe response frame.
+
+ _rtw_memset(attr_content, 0x00, 100);
+ if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen))
+ {
+ // Handle the P2P Device ID attribute of Beacon first
+ blnMatch = 1;
+ break;
+
+ } else if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_DEVICE_INFO, attr_content, &attr_contentlen))
+ {
+ // Handle the P2P Device Info attribute of probe response
+ blnMatch = 1;
+ break;
+ }
+
+ //Get the next P2P IE
+ p2pie = rtw_get_p2p_ie(p2pie + p2pielen, pnetwork->network.IELength - 12 - (p2pie - &pnetwork->network.IEs[12] + p2pielen), NULL, &p2pielen);
+ }
+ }
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ if (!blnMatch)
+ {
+ sprintf(go_devadd_str, "\n\ndev_add=NULL");
+ } else
+ {
+ sprintf(go_devadd_str, "\n\ndev_add=%.2X:%.2X:%.2X:%.2X:%.2X:%.2X",
+ attr_content[0], attr_content[1], attr_content[2], attr_content[3], attr_content[4], attr_content[5]);
+ }
+
+ wrqu->data.length = strlen(go_devadd_str);
+ _rtw_memcpy(extra, go_devadd_str, wrqu->data.length);
+
+ return ret;
+
+}
+
+static int rtw_p2p_get_device_type(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra, char *subcmd)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u8 peerMAC[ETH_ALEN] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ u8 blnMatch = 0;
+ u8 dev_type[8] = { 0x00 };
+ uint dev_type_len = 0;
+ u8 dev_type_str[P2P_PRIVATE_IOCTL_SET_LEN] = { 0x00 }; // +9 is for the str "dev_type=", we have to clear it at wrqu->data.pointer
+
+ // Commented by Albert 20121209
+ // The input data is the MAC address which the application wants to know its device type.
+ // Such user interface could know the device type.
+ // Format: iwpriv wlanx p2p_get2 dev_type=00:E0:4C:00:00:05
+
+ DBG_871X("[%s] data = %s\n", __FUNCTION__, subcmd);
+
+ macstr2num(peerMAC, subcmd);
+
+ _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+
+ while (1)
+ {
+ if (rtw_end_of_queue_search(phead, plist) == _TRUE) break;
+
+ pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
+ if (_rtw_memcmp(pnetwork->network.MacAddress, peerMAC, ETH_ALEN))
+ {
+ u8 *wpsie;
+ uint wpsie_len = 0;
+
+ // The mac address is matched.
+
+ if ((wpsie = rtw_get_wps_ie(&pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &wpsie_len)))
+ {
+ rtw_get_wps_attr_content(wpsie, wpsie_len, WPS_ATTR_PRIMARY_DEV_TYPE, dev_type, &dev_type_len);
+ if (dev_type_len)
+ {
+ u16 type = 0;
+
+ _rtw_memcpy(&type, dev_type, 2);
+ type = be16_to_cpu(type);
+ sprintf(dev_type_str, "\n\nN=%.2d", type);
+ blnMatch = 1;
+ }
+ }
+ break;
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ if (!blnMatch)
+ {
+ sprintf(dev_type_str, "\n\nN=00");
+ }
+
+ wrqu->data.length = strlen(dev_type_str);
+ _rtw_memcpy(extra, dev_type_str, wrqu->data.length);
+
+ return ret;
+
+}
+
+static int rtw_p2p_get_device_name(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra, char *subcmd)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u8 peerMAC[ETH_ALEN] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ u8 blnMatch = 0;
+ u8 dev_name[WPS_MAX_DEVICE_NAME_LEN] = { 0x00 };
+ uint dev_len = 0;
+ u8 dev_name_str[P2P_PRIVATE_IOCTL_SET_LEN] = { 0x00 };
+
+ // Commented by Albert 20121225
+ // The input data is the MAC address which the application wants to know its device name.
+ // Such user interface could show peer device's device name instead of ssid.
+ // Format: iwpriv wlanx p2p_get2 devN=00:E0:4C:00:00:05
+
+ DBG_871X("[%s] data = %s\n", __FUNCTION__, subcmd);
+
+ macstr2num(peerMAC, subcmd);
+
+ _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+
+ while (1)
+ {
+ if (rtw_end_of_queue_search(phead, plist) == _TRUE) break;
+
+ pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
+ if (_rtw_memcmp(pnetwork->network.MacAddress, peerMAC, ETH_ALEN))
+ {
+ u8 *wpsie;
+ uint wpsie_len = 0;
+
+ // The mac address is matched.
+
+ if ((wpsie = rtw_get_wps_ie(&pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &wpsie_len)))
+ {
+ rtw_get_wps_attr_content(wpsie, wpsie_len, WPS_ATTR_DEVICE_NAME, dev_name, &dev_len);
+ if (dev_len)
+ {
+ sprintf(dev_name_str, "\n\nN=%s", dev_name);
+ blnMatch = 1;
+ }
+ }
+ break;
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ if (!blnMatch)
+ {
+ sprintf(dev_name_str, "\n\nN=0000");
+ }
+
+ wrqu->data.length = strlen(dev_name_str);
+ _rtw_memcpy(extra, dev_name_str, wrqu->data.length);
+
+ return ret;
+
+}
+
+static int rtw_p2p_get_invitation_procedure(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra, char *subcmd)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ u8 peerMAC[ETH_ALEN] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ u8 blnMatch = 0;
+ u8 *p2pie;
+ uint p2pielen = 0, attr_contentlen = 0;
+ u8 attr_content[2] = { 0x00 };
+ u8 inv_proc_str[P2P_PRIVATE_IOCTL_SET_LEN] = { 0x00 };
+
+ // Commented by Ouden 20121226
+ // The application wants to know P2P initation procedure is support or not.
+ // Format: iwpriv wlanx p2p_get2 InvProc=00:E0:4C:00:00:05
+
+ DBG_871X("[%s] data = %s\n", __FUNCTION__, subcmd);
+
+ macstr2num(peerMAC, subcmd);
+
+ _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+
+ while (1)
+ {
+ if (rtw_end_of_queue_search(phead, plist) == _TRUE) break;
+
+ pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
+ if (_rtw_memcmp(pnetwork->network.MacAddress, peerMAC, ETH_ALEN))
+ {
+ // Commented by Albert 20121226
+ // Match the device address located in the P2P IE
+ // This is for the case that the P2P device address is not the same as the P2P interface address.
+
+ if ((p2pie = rtw_get_p2p_ie(&pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen)))
+ {
+ while (p2pie)
+ {
+ //_rtw_memset( attr_content, 0x00, 2);
+ if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_CAPABILITY, attr_content, &attr_contentlen))
+ {
+ // Handle the P2P capability attribute
+ blnMatch = 1;
+ break;
+
+ }
+
+ //Get the next P2P IE
+ p2pie = rtw_get_p2p_ie(p2pie + p2pielen, pnetwork->network.IELength - 12 - (p2pie - &pnetwork->network.IEs[12] + p2pielen), NULL, &p2pielen);
+ }
+ }
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ if (!blnMatch)
+ {
+ sprintf(inv_proc_str, "\nIP=-1");
+ } else
+ {
+ if (attr_content[0] && 0x20)
+ {
+ sprintf(inv_proc_str, "\nIP=1");
+ } else
+ {
+ sprintf(inv_proc_str, "\nIP=0");
+ }
+ }
+
+ wrqu->data.length = strlen(inv_proc_str);
+ _rtw_memcpy(extra, inv_proc_str, wrqu->data.length);
+
+ return ret;
+
+}
+
+static int rtw_p2p_connect(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ u8 peerMAC[ ETH_ALEN ] = { 0x00 };
+ int jj,kk;
+ u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _irqL irqL;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ uint uintPeerChannel = 0;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif // CONFIG_CONCURRENT_MODE
+
+
+ // Commented by Albert 20110304
+ // The input data contains two informations.
+ // 1. First information is the MAC address which wants to formate with
+ // 2. Second information is the WPS PINCode or "pbc" string for push button method
+ // Format: 00:E0:4C:00:00:05
+ // Format: 00:E0:4C:00:00:05
- if ( copy_from_user(peerMACStr, wrqu->data.pointer + 6 , 17) ) {
- return -EFAULT;
- }
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ DBG_871X( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
+ return ret;
+ }
+
+ if ( pwdinfo->ui_got_wps_info == P2P_NO_WPSINFO )
+ {
+ return -1;
+ }
+
for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
{
- peerMAC[ jj ] = key_2char2num( peerMACStr[kk], peerMACStr[kk+ 1] );
+ peerMAC[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
}
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
@@ -4286,67 +4987,441 @@ static int rtw_p2p_get_wps_configmethod(struct net_device *dev,
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
if ( _rtw_memcmp( pnetwork->network.MacAddress, peerMAC, ETH_ALEN ) )
{
- u8 *wpsie;
- uint wpsie_len = 0;
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ if ( uintPeerChannel )
+ {
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _cancel_timer_ex( &pwdinfo->ap_p2p_switch_timer );
+ }
+#endif // CONFIG_CONCURRENT_MODE
+
+ _rtw_memset( &pwdinfo->nego_req_info, 0x00, sizeof( struct tx_nego_req_info ) );
+ _rtw_memset( &pwdinfo->groupid_info, 0x00, sizeof( struct group_id_info ) );
+
+ pwdinfo->nego_req_info.peer_channel_num[ 0 ] = uintPeerChannel;
+ _rtw_memcpy( pwdinfo->nego_req_info.peerDevAddr, pnetwork->network.MacAddress, ETH_ALEN );
+ pwdinfo->nego_req_info.benable = _TRUE;
+
+ _cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
+ if ( rtw_p2p_state(pwdinfo) != P2P_STATE_GONEGO_OK )
+ {
+ // Restore to the listen state if the current p2p state is not nego OK
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_LISTEN );
+ }
+
+ rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_ING);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ // Have to enter the power saving with the AP
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
- // The mac address is matched.
+ issue_nulldata(pbuddy_adapter, NULL, 1, 3, 500);
+ }
+#endif // CONFIG_CONCURRENT_MODE
+
+ DBG_871X( "[%s] Start PreTx Procedure!\n", __FUNCTION__ );
+ _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_CONCURRENT_GO_NEGO_TIMEOUT );
+ }
+ else
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_GO_NEGO_TIMEOUT );
+ }
+#else
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_GO_NEGO_TIMEOUT );
+#endif // CONFIG_CONCURRENT_MODE
+
+ }
+ else
+ {
+ DBG_871X( "[%s] Not Found in Scanning Queue~\n", __FUNCTION__ );
+ ret = -1;
+ }
+exit:
+ return ret;
+}
+
+static int rtw_p2p_invite_req(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ int jj,kk;
+ u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ uint uintPeerChannel = 0;
+ u8 attr_content[50] = { 0x00 }, _status = 0;
+ u8 *p2pie;
+ uint p2pielen = 0, attr_contentlen = 0;
+ _irqL irqL;
+ struct tx_invite_req_info* pinvite_req_info = &pwdinfo->invitereq_info;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif // CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_WFD
+ struct wifi_display_info* pwfd_info = pwdinfo->wfd_info;
+#endif // CONFIG_WFD
+
+ // Commented by Albert 20120321
+ // The input data contains two informations.
+ // 1. First information is the P2P device address which you want to send to.
+ // 2. Second information is the group id which combines with GO's mac address, space and GO's ssid.
+ // Command line sample: iwpriv wlan0 p2p_set invite="00:11:22:33:44:55 00:E0:4C:00:00:05 DIRECT-xy"
+ // Format: 00:11:22:33:44:55 00:E0:4C:00:00:05 DIRECT-xy
+
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
+
+ if ( wrqu->data.length <= 37 )
+ {
+ DBG_871X( "[%s] Wrong format!\n", __FUNCTION__ );
+ return ret;
+ }
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ DBG_871X( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
+ return ret;
+ }
+ else
+ {
+ // Reset the content of struct tx_invite_req_info
+ pinvite_req_info->benable = _FALSE;
+ _rtw_memset( pinvite_req_info->go_bssid, 0x00, ETH_ALEN );
+ _rtw_memset( pinvite_req_info->go_ssid, 0x00, WLAN_SSID_MAXLEN );
+ pinvite_req_info->ssidlen = 0x00;
+ pinvite_req_info->operating_ch = pwdinfo->operating_channel;
+ _rtw_memset( pinvite_req_info->peer_macaddr, 0x00, ETH_ALEN );
+ pinvite_req_info->token = 3;
+ }
+
+ for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
+ {
+ pinvite_req_info->peer_macaddr[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
+ }
+
+ _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+ phead = get_list_head(queue);
+ plist = get_next(phead);
+
+ while(1)
+ {
+ if (rtw_end_of_queue_search(phead,plist)== _TRUE)
+ break;
+
+ pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
+
+ // Commented by Albert 2011/05/18
+ // Match the device address located in the P2P IE
+ // This is for the case that the P2P device address is not the same as the P2P interface address.
+
+ if ( (p2pie=rtw_get_p2p_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen)) )
+ {
+ // The P2P Device ID attribute is included in the Beacon frame.
+ // The P2P Device Info attribute is included in the probe response frame.
- if ( (wpsie=rtw_get_wps_ie( &pnetwork->network.IEs[ 12 ], pnetwork->network.IELength - 12, NULL, &wpsie_len )) )
+ if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen) )
{
- rtw_get_wps_attr_content( wpsie, wpsie_len, WPS_ATTR_CONF_METHOD, ( u8* ) &attr_content, &attr_contentlen);
- if ( attr_contentlen )
+ // Handle the P2P Device ID attribute of Beacon first
+ if ( _rtw_memcmp( attr_content, pinvite_req_info->peer_macaddr, ETH_ALEN ) )
{
- attr_content = be16_to_cpu( attr_content );
- sprintf( attr_content_str, "\n\nM=%.4d", attr_content );
- blnMatch = 1;
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
+ }
+ }
+ else if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_INFO, attr_content, &attr_contentlen) )
+ {
+ // Handle the P2P Device Info attribute of probe response
+ if ( _rtw_memcmp( attr_content, pinvite_req_info->peer_macaddr, ETH_ALEN ) )
+ {
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
+ }
+ }
+
+ }
+
+ plist = get_next(plist);
+
+ }
+
+ _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+
+#ifdef CONFIG_WFD
+ if ( uintPeerChannel )
+ {
+ u8 wfd_ie[ 128 ] = { 0x00 };
+ uint wfd_ielen = 0;
+
+ if ( rtw_get_wfd_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, wfd_ie, &wfd_ielen ) )
+ {
+ u8 wfd_devinfo[ 6 ] = { 0x00 };
+ uint wfd_devlen = 6;
+
+ DBG_871X( "[%s] Found WFD IE!\n", __FUNCTION__ );
+ if ( rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, wfd_devinfo, &wfd_devlen ) )
+ {
+ u16 wfd_devinfo_field = 0;
+
+ // Commented by Albert 20120319
+ // The first two bytes are the WFD device information field of WFD device information subelement.
+ // In big endian format.
+ wfd_devinfo_field = RTW_GET_BE16(wfd_devinfo);
+ if ( wfd_devinfo_field & WFD_DEVINFO_SESSION_AVAIL )
+ {
+ pwfd_info->peer_session_avail = _TRUE;
+ }
+ else
+ {
+ pwfd_info->peer_session_avail = _FALSE;
}
}
+ }
+
+ if ( _FALSE == pwfd_info->peer_session_avail )
+ {
+ DBG_871X( "[%s] WFD Session not avaiable!\n", __FUNCTION__ );
+ goto exit;
+ }
+ }
+#endif // CONFIG_WFD
+
+ if ( uintPeerChannel )
+ {
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_fwstate( pbuddy_mlmepriv, _FW_LINKED ) )
+ {
+ _cancel_timer_ex( &pwdinfo->ap_p2p_switch_timer );
+ }
+#endif // CONFIG_CONCURRENT_MODE
+
+ // Store the GO's bssid
+ for( jj = 0, kk = 18; jj < ETH_ALEN; jj++, kk += 3 )
+ {
+ pinvite_req_info->go_bssid[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
+ }
+
+ // Store the GO's ssid
+ pinvite_req_info->ssidlen = wrqu->data.length - 36;
+ _rtw_memcpy( pinvite_req_info->go_ssid, &extra[ 36 ], (u32) pinvite_req_info->ssidlen );
+ pinvite_req_info->benable = _TRUE;
+ pinvite_req_info->peer_ch = uintPeerChannel;
+
+ rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_TX_INVITE_REQ);
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_fwstate( pbuddy_mlmepriv, _FW_LINKED ) )
+ {
+ // Have to enter the power saving with the AP
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
- break;
- }
+ issue_nulldata(pbuddy_adapter, NULL, 1, 3, 500);
+ }
+ else
+ {
+ set_channel_bwmode(padapter, uintPeerChannel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
+#else
+ set_channel_bwmode(padapter, uintPeerChannel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+#endif
+
+ _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_fwstate( pbuddy_mlmepriv, _FW_LINKED ) )
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_CONCURRENT_INVITE_TIMEOUT );
+ }
+ else
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_INVITE_TIMEOUT );
+ }
+#else
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_INVITE_TIMEOUT );
+#endif // CONFIG_CONCURRENT_MODE
+
+
+ }
+ else
+ {
+ DBG_871X( "[%s] NOT Found in the Scanning Queue!\n", __FUNCTION__ );
+ }
+exit:
+
+ return ret;
+
+}
+
+static int rtw_p2p_set_persistent(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ int jj,kk;
+ u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _list *plist, *phead;
+ _queue *queue = &(pmlmepriv->scanned_queue);
+ struct wlan_network *pnetwork = NULL;
+ uint uintPeerChannel = 0;
+ u8 attr_content[50] = { 0x00 }, _status = 0;
+ u8 *p2pie;
+ uint p2pielen = 0, attr_contentlen = 0;
+ _irqL irqL;
+ struct tx_invite_req_info* pinvite_req_info = &pwdinfo->invitereq_info;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif // CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_WFD
+ struct wifi_display_info* pwfd_info = pwdinfo->wfd_info;
+#endif // CONFIG_WFD
+
+ // Commented by Albert 20120328
+ // The input data is 0 or 1
+ // 0: disable persistent group functionality
+ // 1: enable persistent group founctionality
+
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
+
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ DBG_871X( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
+ return ret;
+ }
+ else
+ {
+ if ( extra[ 0 ] == '0' ) // Disable the persistent group function.
+ {
+ pwdinfo->persistent_supported = _FALSE;
+ }
+ else if ( extra[ 0 ] == '1' ) // Enable the persistent group function.
+ {
+ pwdinfo->persistent_supported = _TRUE;
+ }
+ else
+ {
+ pwdinfo->persistent_supported = _FALSE;
+ }
+ }
+ printk( "[%s] persistent_supported = %d\n", __FUNCTION__, pwdinfo->persistent_supported );
+
+exit:
+
+ return ret;
+
+}
+
+static int hexstr2bin(const char *hex, u8 *buf, size_t len)
+{
+ size_t i;
+ int a;
+ const char *ipos = hex;
+ u8 *opos = buf;
+
+ for (i = 0; i < len; i++) {
+ a = hex2byte_i(ipos);
+ if (a < 0)
+ return -1;
+ *opos++ = a;
+ ipos += 2;
+ }
+ return 0;
+}
+
+static int uuid_str2bin(const char *str, u8 *bin)
+{
+ const char *pos;
+ u8 *opos;
- plist = get_next(plist);
-
- }
+ pos = str;
+ opos = bin;
- _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+ if (hexstr2bin(pos, opos, 4))
+ return -1;
+ pos += 8;
+ opos += 4;
- if ( !blnMatch )
- {
- sprintf( attr_content_str, "\n\nM=0000" );
- }
+ if (*pos++ != '-' || hexstr2bin(pos, opos, 2))
+ return -1;
+ pos += 4;
+ opos += 2;
- if ( copy_to_user(wrqu->data.pointer, attr_content_str, 6 + 17)) {
- return -EFAULT;
- }
-
- return ret;
-
+ if (*pos++ != '-' || hexstr2bin(pos, opos, 2))
+ return -1;
+ pos += 4;
+ opos += 2;
+
+ if (*pos++ != '-' || hexstr2bin(pos, opos, 2))
+ return -1;
+ pos += 4;
+ opos += 2;
+
+ if (*pos++ != '-' || hexstr2bin(pos, opos, 6))
+ return -1;
+
+ return 0;
}
-#ifdef CONFIG_WFD
-static int rtw_p2p_get_peer_WFD_port(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu, char *extra)
+static int rtw_p2p_set_wps_uuid(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
{
-
- int ret = 0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct iw_point *pdata = &wrqu->data;
- struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- DBG_871X( "[%s] p2p_state = %d\n", __FUNCTION__, rtw_p2p_state(pwdinfo) );
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
+
+ DBG_871X("[%s] data = %s\n", __FUNCTION__, extra);
+
+ if ((36 == strlen(extra)) && (uuid_str2bin(extra, pwdinfo->uuid) == 0))
+ {
+ pwdinfo->external_uuid = 1;
+ } else {
+ pwdinfo->external_uuid = 0;
+ ret = -EINVAL;
+ }
- sprintf( extra, "\n\nPort=%d\n", pwdinfo->wfd_info.peer_rtsp_ctrlport );
- DBG_8192C( "[%s] remote port = %d\n", __FUNCTION__, pwdinfo->wfd_info.peer_rtsp_ctrlport );
-
- wrqu->data.length = strlen( extra );
return ret;
-
-}
-#endif // CONFIG_WFD
-static int rtw_p2p_get_device_name(struct net_device *dev,
+}
+#ifdef CONFIG_WFD
+static int rtw_p2p_set_pc(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
@@ -4357,32 +5432,37 @@ static int rtw_p2p_get_device_name(struct net_device *dev,
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
u8 peerMAC[ ETH_ALEN ] = { 0x00 };
int jj,kk;
- u8 peerMACStr[ 17 ] = { 0x00 };
+ u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- _irqL irqL;
_list *plist, *phead;
_queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
- u8 blnMatch = 0;
- u8 dev_name[ WPS_MAX_DEVICE_NAME_LEN ] = { 0x00 };
- uint dev_len = 0;
- u8 dev_name_str[ WPS_MAX_DEVICE_NAME_LEN + 5 ] = { 0x00 }; // +5 is for the str "devN=", we have to clear it at wrqu->data.pointer
-
- // Commented by Kurt 20110727
- // The input data is the MAC address which the application wants to know its device name.
- // Such user interface could show peer device's device name instead of ssid.
- // Format: iwpriv wlanx p2p_get_wpsCM 00:E0:4C:00:00:05
-
- DBG_8192C( "[%s] data = %s\n", __FUNCTION__, ( char* ) extra );
- //_rtw_memcpy( peerMACStr , extra , 17 );
+ u8 attr_content[50] = { 0x00 }, _status = 0;
+ u8 *p2pie;
+ uint p2pielen = 0, attr_contentlen = 0;
+ _irqL irqL;
+ uint uintPeerChannel = 0;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif // CONFIG_CONCURRENT_MODE
+ struct wifi_display_info* pwfd_info = pwdinfo->wfd_info;
+
+ // Commented by Albert 20120512
+ // 1. Input information is the MAC address which wants to know the Preferred Connection bit (PC bit)
+ // Format: 00:E0:4C:00:00:05
- if ( copy_from_user(peerMACStr, wrqu->data.pointer + 5 , 17) ) {
- return -EFAULT;
- }
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
+ {
+ DBG_871X( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
+ return ret;
+ }
+
for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
{
- peerMAC[ jj ] = key_2char2num( peerMACStr[kk], peerMACStr[kk+ 1] );
+ peerMAC[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
}
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
@@ -4396,146 +5476,260 @@ static int rtw_p2p_get_device_name(struct net_device *dev,
break;
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
- if ( _rtw_memcmp( pnetwork->network.MacAddress, peerMAC, ETH_ALEN ) )
- {
- u8 *wpsie;
- uint wpsie_len = 0;
-
- // The mac address is matched.
+ // Commented by Albert 2011/05/18
+ // Match the device address located in the P2P IE
+ // This is for the case that the P2P device address is not the same as the P2P interface address.
- if ( (wpsie=rtw_get_wps_ie( &pnetwork->network.IEs[ 12 ], pnetwork->network.IELength - 12, NULL, &wpsie_len )) )
+ if ( (p2pie=rtw_get_p2p_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen)) )
+ {
+ // The P2P Device ID attribute is included in the Beacon frame.
+ // The P2P Device Info attribute is included in the probe response frame.
+ printk( "[%s] Got P2P IE\n", __FUNCTION__ );
+ if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen) )
{
- rtw_get_wps_attr_content( wpsie, wpsie_len, WPS_ATTR_DEVICE_NAME, dev_name, &dev_len);
- if ( dev_len )
+ // Handle the P2P Device ID attribute of Beacon first
+ printk( "[%s] P2P_ATTR_DEVICE_ID \n", __FUNCTION__ );
+ if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) )
{
- sprintf( dev_name_str, "\n\nN=%s", dev_name );
- blnMatch = 1;
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
}
- }
- break;
- }
+ }
+ else if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_INFO, attr_content, &attr_contentlen) )
+ {
+ // Handle the P2P Device Info attribute of probe response
+ printk( "[%s] P2P_ATTR_DEVICE_INFO \n", __FUNCTION__ );
+ if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) )
+ {
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
+ }
+ }
+
+ }
plist = get_next(plist);
- }
+ }
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+ printk( "[%s] channel = %d\n", __FUNCTION__, uintPeerChannel );
- if ( !blnMatch )
+ if ( uintPeerChannel )
{
- sprintf( dev_name_str, "\n\nN=0000" );
- }
+ u8 wfd_ie[ 128 ] = { 0x00 };
+ uint wfd_ielen = 0;
+
+ if ( rtw_get_wfd_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, wfd_ie, &wfd_ielen ) )
+ {
+ u8 wfd_devinfo[ 6 ] = { 0x00 };
+ uint wfd_devlen = 6;
- if ( copy_to_user(wrqu->data.pointer, dev_name_str, 5+ (( dev_len > 17 )? dev_len : 17) )) {
- return -EFAULT;
+ DBG_871X( "[%s] Found WFD IE!\n", __FUNCTION__ );
+ if ( rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, wfd_devinfo, &wfd_devlen ) )
+ {
+ u16 wfd_devinfo_field = 0;
+
+ // Commented by Albert 20120319
+ // The first two bytes are the WFD device information field of WFD device information subelement.
+ // In big endian format.
+ wfd_devinfo_field = RTW_GET_BE16(wfd_devinfo);
+ if ( wfd_devinfo_field & WFD_DEVINFO_PC_TDLS )
+ {
+ pwfd_info->wfd_pc = _TRUE;
+ }
+ else
+ {
+ pwfd_info->wfd_pc = _FALSE;
+ }
+ }
+ }
+ }
+ else
+ {
+ DBG_871X( "[%s] NOT Found in the Scanning Queue!\n", __FUNCTION__ );
}
+
+exit:
return ret;
}
-static int rtw_p2p_connect(struct net_device *dev,
+static int rtw_p2p_set_wfd_device_type(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
int ret = 0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct iw_point *pdata = &wrqu->data;
- struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- u8 peerMAC[ ETH_ALEN ] = { 0x00 };
- int jj,kk;
- u8 peerMACStr[ ETH_ALEN * 2 ] = { 0x00 };
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- _irqL irqL;
- _list *plist, *phead;
- _queue *queue = &(pmlmepriv->scanned_queue);
- struct wlan_network *pnetwork = NULL;
- uint uintPeerChannel = 0;
-
- // Commented by Albert 20110304
- // The input data contains two informations.
- // 1. First information is the MAC address which wants to formate with
- // 2. Second information is the WPS PINCode or "pbc" string for push button method
- // Format: 00:E0:4C:00:00:05
- // Format: 00:E0:4C:00:00:05
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ struct wifi_display_info *pwfd_info = pwdinfo->wfd_info;
- DBG_8192C( "[%s] data = %s\n", __FUNCTION__, extra );
+ // Commented by Albert 20120328
+ // The input data is 0 or 1
+ // 0: specify to Miracast source device
+ // 1 or others: specify to Miracast sink device (display device)
+
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ if ( extra[ 0 ] == '0' ) // Set to Miracast source device.
{
- DBG_8192C( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
- return ret;
+ pwfd_info->wfd_device_type = WFD_DEVINFO_SOURCE;
}
-
- if ( pwdinfo->ui_got_wps_info == P2P_NO_WPSINFO )
+ else // Set to Miracast sink device.
{
- return -1;
+ pwfd_info->wfd_device_type = WFD_DEVINFO_PSINK;
}
- for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
+exit:
+
+ return ret;
+
+}
+
+static int rtw_p2p_set_scan_result_type(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ struct wifi_display_info *pwfd_info = pwdinfo->wfd_info;
+
+ // Commented by Albert 20120328
+ // The input data is 0 , 1 , 2
+ // 0: when the P2P is enabled, the scan result will return all the found P2P device.
+ // 1: when the P2P is enabled, the scan result will return all the found P2P device and AP.
+ // 2: when the P2P is enabled, the scan result will show up the found Miracast devices base on...
+ // It will show up all the Miracast source device if this device is sink.
+ // It will show up all the Miracast sink device if this device is source.
+
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
+
+ if ( extra[ 0 ] == '0' )
{
- peerMAC[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
+ pwfd_info->scan_result_type = SCAN_RESULT_P2P_ONLY;
+ }
+ else if ( extra[ 0 ] == '1' )
+ {
+ pwfd_info->scan_result_type = SCAN_RESULT_ALL;
}
+ else if ( extra[ 0 ] == '2' )
+ {
+ pwfd_info->scan_result_type = SCAN_RESULT_WFD_TYPE;
+ }
+ else
+ {
+ pwfd_info->scan_result_type = SCAN_RESULT_P2P_ONLY;
+ }
+
+exit:
+
+ return ret;
+
+}
- _enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+static int rtw_p2p_set_wfd_enable(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+// Commented by Kurt 20121206
+// This function is used to set wfd enabled
- phead = get_list_head(queue);
- plist = get_next(phead);
-
- while(1)
- {
- if (rtw_end_of_queue_search(phead,plist)== _TRUE)
- break;
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
- pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
- if ( _rtw_memcmp( pnetwork->network.MacAddress, peerMAC, ETH_ALEN ) )
- {
- uintPeerChannel = pnetwork->network.Configuration.DSConfig;
- break;
- }
+ if(*extra == '0' )
+ pwdinfo->wfd_info->wfd_enable = _FALSE;
+ else if(*extra == '1')
+ pwdinfo->wfd_info->wfd_enable = _TRUE;
- plist = get_next(plist);
+ DBG_871X( "[%s] wfd_enable = %d\n", __FUNCTION__, pwdinfo->wfd_info->wfd_enable );
- }
+ return ret;
+
+}
- _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
+static int rtw_p2p_set_driver_iface(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+// Commented by Kurt 20121206
+// This function is used to set driver iface is WEXT or CFG80211
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
- if ( uintPeerChannel )
+ if(*extra == '1' )
{
- _rtw_memset( &pwdinfo->nego_req_info, 0x00, sizeof( struct tx_nego_req_info ) );
- _rtw_memset( &pwdinfo->groupid_info, 0x00, sizeof( struct group_id_info ) );
-
- pwdinfo->nego_req_info.peer_channel_num[ 0 ] = uintPeerChannel;
- _rtw_memcpy( pwdinfo->nego_req_info.peerDevAddr, pnetwork->network.MacAddress, ETH_ALEN );
- pwdinfo->nego_req_info.benable = _TRUE;
-
- rtw_p2p_set_pre_state(pwdinfo, rtw_p2p_state(pwdinfo));
- rtw_p2p_set_state(pwdinfo, P2P_STATE_GONEGO_ING);
+ pwdinfo->driver_interface = DRIVER_WEXT;
+ DBG_871X( "[%s] driver_interface = WEXT\n", __FUNCTION__);
+ }
+ else if(*extra == '2')
+ {
+ pwdinfo->driver_interface = DRIVER_CFG80211;
+ DBG_871X( "[%s] driver_interface = CFG80211\n", __FUNCTION__);
+ }
+
+ return ret;
- DBG_8192C( "[%s] Start PreTx Procedure!\n", __FUNCTION__ );
- _set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
- _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_GO_NEGO_TIMEOUT );
+}
+
+// To set the WFD session available to enable or disable
+static int rtw_p2p_set_sa(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct iw_point *pdata = &wrqu->data;
+ struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
+ struct wifi_display_info *pwfd_info = pwdinfo->wfd_info;
+
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
+
+ if( 0 )
+ {
+ DBG_871X( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
+ return ret;
}
else
{
- DBG_8192C( "[%s] Not Found in Scanning Queue~\n", __FUNCTION__ );
- ret = -1;
+ if ( extra[ 0 ] == '0' ) // Disable the session available.
+ {
+ pwdinfo->session_available = _FALSE;
+ }
+ else if ( extra[ 0 ] == '1' ) // Enable the session available.
+ {
+ pwdinfo->session_available = _TRUE;
+ }
+ else
+ {
+ pwdinfo->session_available = _FALSE;
+ }
}
+ printk( "[%s] session available = %d\n", __FUNCTION__, pwdinfo->session_available );
+
exit:
- return ret;
+ return ret;
+
}
+#endif //CONFIG_WFD
static int rtw_p2p_prov_disc(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
-{
-
+{
int ret = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
u8 peerMAC[ ETH_ALEN ] = { 0x00 };
int jj,kk;
@@ -4545,10 +5739,19 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
_queue *queue = &(pmlmepriv->scanned_queue);
struct wlan_network *pnetwork = NULL;
uint uintPeerChannel = 0;
- u8 attr_content[50] = { 0x00 }, _status = 0;
+ u8 attr_content[100] = { 0x00 }, _status = 0;
u8 *p2pie;
uint p2pielen = 0, attr_contentlen = 0;
_irqL irqL;
+ u8 ie_offset;
+#ifdef CONFIG_CONCURRENT_MODE
+ _adapter *pbuddy_adapter = padapter->pbuddy_adapter;
+ struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
+#endif // CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_WFD
+ struct wifi_display_info* pwfd_info = pwdinfo->wfd_info;
+#endif // CONFIG_WFD
// Commented by Albert 20110301
// The input data contains two informations.
@@ -4559,21 +5762,28 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
// Format: 00:E0:4C:00:00:05_pbc
// Format: 00:E0:4C:00:00:05_label
- DBG_8192C( "[%s] data = %s\n", __FUNCTION__, extra );
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
- if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
+ if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
{
- DBG_8192C( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
+ DBG_871X( "[%s] WiFi Direct is disable!\n", __FUNCTION__ );
return ret;
}
else
{
+#ifdef CONFIG_INTEL_WIDI
+ if(check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == _TRUE){
+ DBG_871X( "[%s] WiFi is under survey!\n", __FUNCTION__ );
+ return ret;
+ }
+#endif //CONFIG_INTEL_WIDI
+
// Reset the content of struct tx_provdisc_req_info excluded the wps_config_method_request.
_rtw_memset( pwdinfo->tx_prov_disc_info.peerDevAddr, 0x00, ETH_ALEN );
_rtw_memset( pwdinfo->tx_prov_disc_info.peerIFAddr, 0x00, ETH_ALEN );
_rtw_memset( &pwdinfo->tx_prov_disc_info.ssid, 0x00, sizeof( NDIS_802_11_SSID ) );
pwdinfo->tx_prov_disc_info.peer_channel_num[ 0 ] = 0;
- pwdinfo->tx_prov_disc_info.peer_channel_num[ 1 ] = 0;
+ pwdinfo->tx_prov_disc_info.peer_channel_num[ 1 ] = 0;
pwdinfo->tx_prov_disc_info.benable = _FALSE;
}
@@ -4600,10 +5810,11 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
}
else
{
- DBG_8192C( "[%s] Unknown WPS config methodn", __FUNCTION__ );
+ DBG_871X( "[%s] Unknown WPS config methodn", __FUNCTION__ );
return( ret );
}
+
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
phead = get_list_head(queue);
@@ -4614,37 +5825,64 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
if (rtw_end_of_queue_search(phead,plist)== _TRUE)
break;
+ if( uintPeerChannel != 0 )
+ break;
+
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
// Commented by Albert 2011/05/18
// Match the device address located in the P2P IE
// This is for the case that the P2P device address is not the same as the P2P interface address.
- if ( (p2pie=rtw_get_p2p_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen)) )
+ if (pnetwork->network.Reserved[0] == 2) { // Probe Request
+ ie_offset = 0;
+ } else { // Beacon or Probe Respones
+ ie_offset = 12;
+ }
+ if ( (p2pie=rtw_get_p2p_ie( &pnetwork->network.IEs[ie_offset], pnetwork->network.IELength - ie_offset, NULL, &p2pielen)) )
{
- // The P2P Device ID attribute is included in the Beacon frame.
- // The P2P Device Info attribute is included in the probe response frame.
-
- if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen) )
+ while ( p2pie )
{
- // Handle the P2P Device ID attribute of Beacon first
- if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) )
+ // The P2P Device ID attribute is included in the Beacon frame.
+ // The P2P Device Info attribute is included in the probe response frame.
+
+ if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen) )
{
- uintPeerChannel = pnetwork->network.Configuration.DSConfig;
- break;
+ // Handle the P2P Device ID attribute of Beacon first
+ if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) )
+ {
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
+ }
+ }
+ else if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_INFO, attr_content, &attr_contentlen) )
+ {
+ // Handle the P2P Device Info attribute of probe response
+ if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) )
+ {
+ uintPeerChannel = pnetwork->network.Configuration.DSConfig;
+ break;
+ }
}
+
+ //Get the next P2P IE
+ p2pie = rtw_get_p2p_ie(p2pie+p2pielen, pnetwork->network.IELength - ie_offset -(p2pie -&pnetwork->network.IEs[ie_offset] + p2pielen), NULL, &p2pielen);
}
- else if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_INFO, attr_content, &attr_contentlen) )
+ }
+
+#ifdef CONFIG_INTEL_WIDI
+ // Some Intel WiDi source may not provide P2P IE,
+ // so we could only compare mac addr by 802.11 Source Address
+ if( pmlmepriv->widi_state == INTEL_WIDI_STATE_WFD_CONNECTION
+ && uintPeerChannel == 0 )
{
- // Handle the P2P Device Info attribute of probe response
- if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) )
+ if ( _rtw_memcmp( pnetwork->network.MacAddress, peerMAC, ETH_ALEN ) )
{
uintPeerChannel = pnetwork->network.Configuration.DSConfig;
break;
- }
+ }
}
-
- }
+#endif //CONFIG_INTEL_WIDI
plist = get_next(plist);
@@ -4654,6 +5892,51 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
if ( uintPeerChannel )
{
+#ifdef CONFIG_WFD
+ {
+ u8 wfd_ie[ 128 ] = { 0x00 };
+ uint wfd_ielen = 0;
+
+ if ( rtw_get_wfd_ie( &pnetwork->network.IEs[12], pnetwork->network.IELength - 12, wfd_ie, &wfd_ielen ) )
+ {
+ u8 wfd_devinfo[ 6 ] = { 0x00 };
+ uint wfd_devlen = 6;
+
+ DBG_871X( "[%s] Found WFD IE!\n", __FUNCTION__ );
+ if ( rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, wfd_devinfo, &wfd_devlen ) )
+ {
+ u16 wfd_devinfo_field = 0;
+
+ // Commented by Albert 20120319
+ // The first two bytes are the WFD device information field of WFD device information subelement.
+ // In big endian format.
+ wfd_devinfo_field = RTW_GET_BE16(wfd_devinfo);
+ if ( wfd_devinfo_field & WFD_DEVINFO_SESSION_AVAIL )
+ {
+ pwfd_info->peer_session_avail = _TRUE;
+ }
+ else
+ {
+ pwfd_info->peer_session_avail = _FALSE;
+ }
+ }
+ }
+
+ if ( _FALSE == pwfd_info->peer_session_avail )
+ {
+ DBG_871X( "[%s] WFD Session not avaiable!\n", __FUNCTION__ );
+ goto exit;
+ }
+ }
+#endif // CONFIG_WFD
+
+ DBG_871X( "[%s] peer channel: %d!\n", __FUNCTION__, uintPeerChannel );
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _cancel_timer_ex( &pwdinfo->ap_p2p_switch_timer );
+ }
+#endif // CONFIG_CONCURRENT_MODE
_rtw_memcpy( pwdinfo->tx_prov_disc_info.peerIFAddr, pnetwork->network.MacAddress, ETH_ALEN );
_rtw_memcpy( pwdinfo->tx_prov_disc_info.peerDevAddr, peerMAC, ETH_ALEN );
pwdinfo->tx_prov_disc_info.peer_channel_num[0] = ( u16 ) uintPeerChannel;
@@ -4665,20 +5948,56 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
{
_rtw_memcpy( &pwdinfo->tx_prov_disc_info.ssid, &pnetwork->network.Ssid, sizeof( NDIS_802_11_SSID ) );
}
- else if (rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE) || rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
+ else if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE) || rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
{
_rtw_memcpy( pwdinfo->tx_prov_disc_info.ssid.Ssid, pwdinfo->p2p_wildcard_ssid, P2P_WILDCARD_SSID_LEN );
pwdinfo->tx_prov_disc_info.ssid.SsidLength= P2P_WILDCARD_SSID_LEN;
}
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ // Have to enter the power saving with the AP
+ set_channel_bwmode(padapter, pbuddy_mlmeext->cur_channel, pbuddy_mlmeext->cur_ch_offset, pbuddy_mlmeext->cur_bwmode);
+
+ issue_nulldata(pbuddy_adapter, NULL, 1, 3, 500);
+ }
+ else
+ {
+ set_channel_bwmode(padapter, uintPeerChannel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+ }
+#else
set_channel_bwmode(padapter, uintPeerChannel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
+#endif
+
_set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
+
+#ifdef CONFIG_CONCURRENT_MODE
+ if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_CONCURRENT_PROVISION_TIMEOUT );
+ }
+ else
+ {
+ _set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
+ }
+#else
_set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
+#endif // CONFIG_CONCURRENT_MODE
+
}
else
{
- DBG_8192C( "[%s] NOT Found in the Scanning Queue!\n", __FUNCTION__ );
+ DBG_871X( "[%s] NOT Found in the Scanning Queue!\n", __FUNCTION__ );
+#ifdef CONFIG_INTEL_WIDI
+ rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH);
+ rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
+ rtw_free_network_queue(padapter, _TRUE);
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+ rtw_sitesurvey_cmd(padapter, NULL, 0, NULL, 0);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
+#endif //CONFIG_INTEL_WIDI
}
exit:
@@ -4697,11 +6016,10 @@ static int rtw_p2p_got_wpsinfo(struct net_device *dev,
int ret = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct iw_point *pdata = &wrqu->data;
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
- DBG_8192C( "[%s] data = %s\n", __FUNCTION__, extra );
+ DBG_871X( "[%s] data = %s\n", __FUNCTION__, extra );
// Added by Albert 20110328
// if the input data is P2P_NO_WPSINFO -> reset the wpsinfo
// if the input data is P2P_GOT_WPSINFO_PEER_DISPLAY_PIN -> the utility just input the PIN code got from the peer P2P device.
@@ -4749,7 +6067,7 @@ static int rtw_p2p_set(struct net_device *dev,
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- DBG_8192C( "[%s] extra = %s\n", __FUNCTION__, extra );
+ DBG_871X( "[%s] extra = %s\n", __FUNCTION__, extra );
if ( _rtw_memcmp( extra, "enable=", 7 ) )
{
@@ -4809,8 +6127,56 @@ static int rtw_p2p_set(struct net_device *dev,
wrqu->data.length -= 7;
rtw_p2p_set_op_ch( dev, info, wrqu, &extra[6] );
}
-
-
+ else if ( _rtw_memcmp( extra, "invite=", 7 ) )
+ {
+ wrqu->data.length -= 8;
+ rtw_p2p_invite_req( dev, info, wrqu, &extra[7] );
+ }
+ else if ( _rtw_memcmp( extra, "persistent=", 11 ) )
+ {
+ wrqu->data.length -= 11;
+ rtw_p2p_set_persistent( dev, info, wrqu, &extra[11] );
+ }
+ else if ( _rtw_memcmp ( extra, "uuid=", 5) )
+ {
+ wrqu->data.length -= 5;
+ ret = rtw_p2p_set_wps_uuid( dev, info, wrqu, &extra[5] );
+ }
+#ifdef CONFIG_WFD
+ else if ( _rtw_memcmp( extra, "sa=", 3 ) )
+ {
+ // sa: WFD Session Available information
+ wrqu->data.length -= 3;
+ rtw_p2p_set_sa( dev, info, wrqu, &extra[3] );
+ }
+ else if ( _rtw_memcmp( extra, "pc=", 3 ) )
+ {
+ // pc: WFD Preferred Connection
+ wrqu->data.length -= 3;
+ rtw_p2p_set_pc( dev, info, wrqu, &extra[3] );
+ }
+ else if ( _rtw_memcmp( extra, "wfd_type=", 9 ) )
+ {
+ // Specify this device is Mircast source or sink
+ wrqu->data.length -= 9;
+ rtw_p2p_set_wfd_device_type( dev, info, wrqu, &extra[9] );
+ }
+ else if ( _rtw_memcmp( extra, "scan_type=", 10 ) )
+ {
+ wrqu->data.length -= 10;
+ rtw_p2p_set_scan_result_type( dev, info, wrqu, &extra[10] );
+ }
+ else if ( _rtw_memcmp( extra, "wfd_enable=", 11 ) )
+ {
+ wrqu->data.length -= 11;
+ rtw_p2p_set_wfd_enable( dev, info, wrqu, &extra[11] );
+ }
+ else if ( _rtw_memcmp( extra, "driver_iface=", 13 ) )
+ {
+ wrqu->data.length -= 13;
+ rtw_p2p_set_driver_iface( dev, info, wrqu, &extra[13] );
+ }
+#endif //CONFIG_WFD
#endif //CONFIG_P2P
return ret;
@@ -4832,7 +6198,10 @@ static int rtw_p2p_get(struct net_device *dev,
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- DBG_8192C( "[%s] extra = %s\n", __FUNCTION__, (char*) wrqu->data.pointer );
+ if ( padapter->bShowGetP2PState )
+ {
+ DBG_871X( "[%s] extra = %s\n", __FUNCTION__, (char*) wrqu->data.pointer );
+ }
if ( _rtw_memcmp( wrqu->data.pointer, "status", 6 ) )
{
@@ -4852,16 +6221,34 @@ static int rtw_p2p_get(struct net_device *dev,
}
else if ( _rtw_memcmp( wrqu->data.pointer, "peer_deva", 9 ) )
{
+ // Get the P2P device address when receiving the provision discovery request frame.
rtw_p2p_get_peer_devaddr( dev, info, wrqu, extra);
}
else if ( _rtw_memcmp( wrqu->data.pointer, "group_id", 8 ) )
{
rtw_p2p_get_groupid( dev, info, wrqu, extra);
}
+ else if ( _rtw_memcmp( wrqu->data.pointer, "inv_peer_deva", 13 ) )
+ {
+ // Get the P2P device address when receiving the P2P Invitation request frame.
+ rtw_p2p_get_peer_devaddr_by_invitation( dev, info, wrqu, extra);
+ }
+ else if ( _rtw_memcmp( wrqu->data.pointer, "op_ch", 5 ) )
+ {
+ rtw_p2p_get_op_ch( dev, info, wrqu, extra);
+ }
#ifdef CONFIG_WFD
else if ( _rtw_memcmp( wrqu->data.pointer, "peer_port", 9 ) )
{
- rtw_p2p_get_peer_WFD_port( dev, info, wrqu, extra );
+ rtw_p2p_get_peer_wfd_port( dev, info, wrqu, extra );
+ }
+ else if ( _rtw_memcmp( wrqu->data.pointer, "wfd_sa", 6 ) )
+ {
+ rtw_p2p_get_peer_wfd_session_available( dev, info, wrqu, extra );
+ }
+ else if ( _rtw_memcmp( wrqu->data.pointer, "wfd_pc", 6 ) )
+ {
+ rtw_p2p_get_peer_wfd_preferred_connection( dev, info, wrqu, extra );
}
#endif // CONFIG_WFD
@@ -4872,40 +6259,64 @@ static int rtw_p2p_get(struct net_device *dev,
}
static int rtw_p2p_get2(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu, char *extra)
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
{
-
- int ret = 0;
-
+
+ int ret = 0;
+
#ifdef CONFIG_P2P
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct iw_point *pdata = &wrqu->data;
- struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
- struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
+ int length = wrqu->data.length;
+ char *buffer = (u8 *)rtw_malloc(length);
- DBG_8192C( "[%s] extra = %s\n", __FUNCTION__, (char*) wrqu->data.pointer );
-
- if ( _rtw_memcmp( extra, "wpsCM=", 6 ) )
+ if (buffer == NULL)
{
- wrqu->data.length -= 6;
- rtw_p2p_get_wps_configmethod( dev, info, wrqu, &extra[6]);
+ ret = -ENOMEM;
+ goto bad;
}
- else if ( _rtw_memcmp( extra, "devN=", 5 ) )
+
+ if (copy_from_user(buffer, wrqu->data.pointer, wrqu->data.length))
{
- wrqu->data.length -= 5;
- rtw_p2p_get_device_name( dev, info, wrqu, &extra[5] );
+ ret - EFAULT;
+ goto bad;
}
-
+
+ DBG_871X("[%s] buffer = %s\n", __FUNCTION__, buffer);
+
+ if (_rtw_memcmp(buffer, "wpsCM=", 6))
+ {
+ ret = rtw_p2p_get_wps_configmethod(dev, info, wrqu, extra, &buffer[6]);
+ } else if (_rtw_memcmp(buffer, "devN=", 5))
+ {
+ ret = rtw_p2p_get_device_name(dev, info, wrqu, extra, &buffer[5]);
+ } else if (_rtw_memcmp(buffer, "dev_type=", 9))
+ {
+ ret = rtw_p2p_get_device_type(dev, info, wrqu, extra, &buffer[9]);
+ } else if (_rtw_memcmp(buffer, "go_devadd=", 10))
+ {
+ ret = rtw_p2p_get_go_device_address(dev, info, wrqu, extra, &buffer[10]);
+ } else if (_rtw_memcmp(buffer, "InvProc=", 8))
+ {
+ ret = rtw_p2p_get_invitation_procedure(dev, info, wrqu, extra, &buffer[8]);
+ } else
+ {
+ snprintf(extra, sizeof("Command not found."), "Command not found.");
+ wrqu->data.length = strlen(extra);
+ }
+
+bad:
+ if (buffer)
+ {
+ rtw_mfree(buffer, length);
+ }
+
#endif //CONFIG_P2P
return ret;
-
+
}
-extern char *ifname;
extern int rtw_change_ifname(_adapter *padapter, const char *ifname);
static int rtw_rereg_nd_name(struct net_device *dev,
struct iw_request_info *info,
@@ -4917,7 +6328,15 @@ static int rtw_rereg_nd_name(struct net_device *dev,
char new_ifname[IFNAMSIZ];
if(rereg_priv->old_ifname[0] == 0) {
- strncpy(rereg_priv->old_ifname, ifname, IFNAMSIZ);
+ char *reg_ifname;
+#ifdef CONFIG_CONCURRENT_MODE
+ if (padapter->isprimary)
+ reg_ifname = padapter->registrypriv.ifname;
+ else
+#endif
+ reg_ifname = padapter->registrypriv.if2name;
+
+ strncpy(rereg_priv->old_ifname, reg_ifname, IFNAMSIZ);
rereg_priv->old_ifname[IFNAMSIZ-1] = 0;
}
@@ -4940,7 +6359,7 @@ static int rtw_rereg_nd_name(struct net_device *dev,
if(_rtw_memcmp(rereg_priv->old_ifname, "disable%d", 9) == _TRUE) {
padapter->ledpriv.bRegUseLed= rereg_priv->old_bRegUseLed;
- rtw_sw_led_init(padapter);
+ rtw_hal_sw_led_init(padapter);
rtw_ips_mode_req(&padapter->pwrctrlpriv, rereg_priv->old_ips_mode);
}
@@ -4957,7 +6376,7 @@ static int rtw_rereg_nd_name(struct net_device *dev,
rtw_led_control(padapter, LED_CTL_POWER_OFF);
rereg_priv->old_bRegUseLed = padapter->ledpriv.bRegUseLed;
padapter->ledpriv.bRegUseLed= _FALSE;
- rtw_sw_led_deinit(padapter);
+ rtw_hal_sw_led_deinit(padapter);
// the interface is being "disabled", we can do deeper IPS
rereg_priv->old_ips_mode = rtw_get_ips_mode_req(&padapter->pwrctrlpriv);
@@ -4972,46 +6391,46 @@ exit:
void mac_reg_dump(_adapter *padapter)
{
int i,j=1;
- DBG_8192C("\n======= MAC REG =======\n");
+ DBG_871X("\n======= MAC REG =======\n");
for(i=0x0;i<0x300;i+=4)
{
- if(j%4==1) DBG_8192C("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x",i);
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
for(i=0x400;i<0x800;i+=4)
{
- if(j%4==1) DBG_8192C("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x",i);
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
}
void bb_reg_dump(_adapter *padapter)
{
int i,j=1;
- DBG_8192C("\n======= BB REG =======\n");
+ DBG_871X("\n======= BB REG =======\n");
for(i=0x800;i<0x1000;i+=4)
{
- if(j%4==1) DBG_8192C("0x%02x",i);
+ if(j%4==1) DBG_871X("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
}
void rf_reg_dump(_adapter *padapter)
{
int i,j=1,path;
u32 value;
- DBG_8192C("\n======= RF REG =======\n");
+ DBG_871X("\n======= RF REG =======\n");
for(path=0;path<2;path++)
{
- DBG_8192C("\nRF_Path(%x)\n",path);
+ DBG_871X("\nRF_Path(%x)\n",path);
for(i=0;i<0x100;i++)
{
value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
- if(j%4==1) DBG_8192C("0x%02x ",i);
- DBG_8192C(" 0x%08x ",value);
- if((j++)%4==0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x ",i);
+ DBG_871X(" 0x%08x ",value);
+ if((j++)%4==0) DBG_871X("\n");
}
}
}
@@ -5021,30 +6440,30 @@ void rf_reg_dump(_adapter *padapter)
void mac_reg_dump(_adapter *padapter)
{
int i,j=1;
- DBG_8192C("\n======= MAC REG =======\n");
+ DBG_871X("\n======= MAC REG =======\n");
for(i=0x0;i<0x300;i+=4)
{
- if(j%4==1) DBG_8192C("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x",i);
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
for(i=0x400;i<0x800;i+=4)
{
- if(j%4==1) DBG_8192C("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x",i);
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
}
void bb_reg_dump(_adapter *padapter)
{
int i,j=1;
- DBG_8192C("\n======= BB REG =======\n");
+ DBG_871X("\n======= BB REG =======\n");
for(i=0x800;i<0x1000;i+=4)
{
- if(j%4==1) DBG_8192C("0x%02x",i);
+ if(j%4==1) DBG_871X("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
}
void rf_reg_dump(_adapter *padapter)
@@ -5052,9 +6471,9 @@ void rf_reg_dump(_adapter *padapter)
int i,j=1,path;
u32 value;
u8 rf_type,path_nums = 0;
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
- DBG_8192C("\n======= RF REG =======\n");
+ DBG_871X("\n======= RF REG =======\n");
if((RF_1T2R == rf_type) ||(RF_1T1R ==rf_type ))
path_nums = 1;
else
@@ -5062,14 +6481,14 @@ void rf_reg_dump(_adapter *padapter)
for(path=0;path<path_nums;path++)
{
- DBG_8192C("\nRF_Path(%x)\n",path);
+ DBG_871X("\nRF_Path(%x)\n",path);
for(i=0;i<0x100;i++)
{
//value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
- value =padapter->HalFunc.read_rfreg(padapter, path, i, 0xffffffff);
- if(j%4==1) DBG_8192C("0x%02x ",i);
- DBG_8192C(" 0x%08x ",value);
- if((j++)%4==0) DBG_8192C("\n");
+ value =rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
+ if(j%4==1) DBG_871X("0x%02x ",i);
+ DBG_871X(" 0x%08x ",value);
+ if((j++)%4==0) DBG_871X("\n");
}
}
}
@@ -5077,6 +6496,9 @@ void rf_reg_dump(_adapter *padapter)
#ifdef CONFIG_IOL
#include <rtw_iol.h>
#endif
+#ifdef DBG_CONFIG_ERROR_DETECT
+#include <rtw_sreset.h>
+#endif
static int rtw_dbg_port(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -5111,13 +6533,13 @@ static int rtw_dbg_port(struct net_device *dev,
switch(minor_cmd)
{
case 1:
- DBG_8192C("rtw_read8(0x%x)=0x%02x\n", arg, rtw_read8(padapter, arg));
+ DBG_871X("rtw_read8(0x%x)=0x%02x\n", arg, rtw_read8(padapter, arg));
break;
case 2:
- DBG_8192C("rtw_read16(0x%x)=0x%04x\n", arg, rtw_read16(padapter, arg));
+ DBG_871X("rtw_read16(0x%x)=0x%04x\n", arg, rtw_read16(padapter, arg));
break;
case 4:
- DBG_8192C("rtw_read32(0x%x)=0x%08x\n", arg, rtw_read32(padapter, arg));
+ DBG_871X("rtw_read32(0x%x)=0x%08x\n", arg, rtw_read32(padapter, arg));
break;
}
break;
@@ -5126,31 +6548,31 @@ static int rtw_dbg_port(struct net_device *dev,
{
case 1:
rtw_write8(padapter, arg, extra_arg);
- DBG_8192C("rtw_write8(0x%x)=0x%02x\n", arg, rtw_read8(padapter, arg));
+ DBG_871X("rtw_write8(0x%x)=0x%02x\n", arg, rtw_read8(padapter, arg));
break;
case 2:
rtw_write16(padapter, arg, extra_arg);
- DBG_8192C("rtw_write16(0x%x)=0x%04x\n", arg, rtw_read16(padapter, arg));
+ DBG_871X("rtw_write16(0x%x)=0x%04x\n", arg, rtw_read16(padapter, arg));
break;
case 4:
rtw_write32(padapter, arg, extra_arg);
- DBG_8192C("rtw_write32(0x%x)=0x%08x\n", arg, rtw_read32(padapter, arg));
+ DBG_871X("rtw_write32(0x%x)=0x%08x\n", arg, rtw_read32(padapter, arg));
break;
}
break;
case 0x72://read_bb
- DBG_8192C("read_bbreg(0x%x)=0x%x\n", arg, padapter->HalFunc.read_bbreg(padapter, arg, 0xffffffff));
+ DBG_871X("read_bbreg(0x%x)=0x%x\n", arg, rtw_hal_read_bbreg(padapter, arg, 0xffffffff));
break;
case 0x73://write_bb
- padapter->HalFunc.write_bbreg(padapter, arg, 0xffffffff, extra_arg);
- DBG_8192C("write_bbreg(0x%x)=0x%x\n", arg, padapter->HalFunc.read_bbreg(padapter, arg, 0xffffffff));
+ rtw_hal_write_bbreg(padapter, arg, 0xffffffff, extra_arg);
+ DBG_871X("write_bbreg(0x%x)=0x%x\n", arg, rtw_hal_read_bbreg(padapter, arg, 0xffffffff));
break;
case 0x74://read_rf
- DBG_8192C("read RF_reg path(0x%02x),offset(0x%x),value(0x%08x)\n",minor_cmd,arg,padapter->HalFunc.read_rfreg(padapter, minor_cmd, arg, 0xffffffff));
+ DBG_871X("read RF_reg path(0x%02x),offset(0x%x),value(0x%08x)\n",minor_cmd,arg,rtw_hal_read_rfreg(padapter, minor_cmd, arg, 0xffffffff));
break;
case 0x75://write_rf
- padapter->HalFunc.write_rfreg(padapter, minor_cmd, arg, 0xffffffff, extra_arg);
- DBG_8192C("write RF_reg path(0x%02x),offset(0x%x),value(0x%08x)\n",minor_cmd,arg, padapter->HalFunc.read_rfreg(padapter, minor_cmd, arg, 0xffffffff));
+ rtw_hal_write_rfreg(padapter, minor_cmd, arg, 0xffffffff, extra_arg);
+ DBG_871X("write RF_reg path(0x%02x),offset(0x%x),value(0x%08x)\n",minor_cmd,arg, rtw_hal_read_rfreg(padapter, minor_cmd, arg, 0xffffffff));
break;
case 0x76:
@@ -5315,29 +6737,33 @@ static int rtw_dbg_port(struct net_device *dev,
#endif //CONFIG_IOL
}
break;
+ case 0x7a:
+ receive_disconnect(padapter, pmlmeinfo->network.MacAddress
+ , WLAN_REASON_EXPIRATION_CHK);
+ break;
case 0x7F:
switch(minor_cmd)
{
case 0x0:
- DBG_8192C("fwstate=0x%x\n", get_fwstate(pmlmepriv));
+ DBG_871X("fwstate=0x%x\n", get_fwstate(pmlmepriv));
break;
case 0x01:
- DBG_8192C("auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x%x\n",
+ DBG_871X("auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x%x\n",
psecuritypriv->dot11AuthAlgrthm, psecuritypriv->dot11PrivacyAlgrthm,
psecuritypriv->ndisauthtype, psecuritypriv->ndisencryptstatus);
break;
case 0x02:
- DBG_8192C("pmlmeinfo->state=0x%x\n", pmlmeinfo->state);
+ DBG_871X("pmlmeinfo->state=0x%x\n", pmlmeinfo->state);
break;
case 0x03:
- DBG_8192C("qos_option=%d\n", pmlmepriv->qospriv.qos_option);
- DBG_8192C("ht_option=%d\n", pmlmepriv->htpriv.ht_option);
+ DBG_871X("qos_option=%d\n", pmlmepriv->qospriv.qos_option);
+ DBG_871X("ht_option=%d\n", pmlmepriv->htpriv.ht_option);
break;
case 0x04:
- DBG_8192C("cur_ch=%d\n", pmlmeext->cur_channel);
- DBG_8192C("cur_bw=%d\n", pmlmeext->cur_bwmode);
- DBG_8192C("cur_ch_off=%d\n", pmlmeext->cur_ch_offset);
+ DBG_871X("cur_ch=%d\n", pmlmeext->cur_channel);
+ DBG_871X("cur_bw=%d\n", pmlmeext->cur_bwmode);
+ DBG_871X("cur_ch_off=%d\n", pmlmeext->cur_ch_offset);
break;
case 0x05:
psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress);
@@ -5346,41 +6772,43 @@ static int rtw_dbg_port(struct net_device *dev,
int i;
struct recv_reorder_ctrl *preorder_ctrl;
- DBG_8192C("sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr));
- DBG_8192C("rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
- DBG_8192C("qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
- DBG_8192C("state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
- DBG_8192C("bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi);
- DBG_8192C("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
- DBG_8192C("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
+ DBG_871X("SSID=%s\n", cur_network->network.Ssid.Ssid);
+ DBG_871X("sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr));
+ DBG_871X("cur_channel=%d, cur_bwmode=%d, cur_ch_offset=%d\n", pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset);
+ DBG_871X("rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
+ DBG_871X("qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
+ DBG_871X("state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
+ DBG_871X("bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi);
+ DBG_871X("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
+ DBG_871X("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
for(i=0;i<16;i++)
{
preorder_ctrl = &psta->recvreorder_ctrl[i];
if(preorder_ctrl->enable)
{
- DBG_8192C("tid=%d, indicate_seq=%d\n", i, preorder_ctrl->indicate_seq);
+ DBG_871X("tid=%d, indicate_seq=%d\n", i, preorder_ctrl->indicate_seq);
}
}
}
else
{
- DBG_8192C("can't get sta's macaddr, cur_network's macaddr:" MAC_FMT "\n", MAC_ARG(cur_network->network.MacAddress));
+ DBG_871X("can't get sta's macaddr, cur_network's macaddr:" MAC_FMT "\n", MAC_ARG(cur_network->network.MacAddress));
}
break;
case 0x06:
{
u8 DMFlag;
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_DM_FLAG, (u8 *)(&DMFlag));
- DBG_8192C("(B)DMFlag=0x%x, arg=0x%x\n", DMFlag, arg);
+ rtw_hal_get_hwreg(padapter, HW_VAR_DM_FLAG, (u8 *)(&DMFlag));
+ DBG_871X("(B)DMFlag=0x%x, arg=0x%x\n", DMFlag, arg);
DMFlag = (u8)(0x0f&arg);
- DBG_8192C("(A)DMFlag=0x%x\n", DMFlag);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_DM_FLAG, (u8 *)(&DMFlag));
+ DBG_871X("(A)DMFlag=0x%x\n", DMFlag);
+ rtw_hal_set_hwreg(padapter, HW_VAR_DM_FLAG, (u8 *)(&DMFlag));
}
break;
case 0x07:
- DBG_8192C("bSurpriseRemoved=%d, bDriverStopped=%d\n",
+ DBG_871X("bSurpriseRemoved=%d, bDriverStopped=%d\n",
padapter->bSurpriseRemoved, padapter->bDriverStopped);
break;
case 0x08:
@@ -5388,10 +6816,14 @@ static int rtw_dbg_port(struct net_device *dev,
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
struct recv_priv *precvpriv = &padapter->recvpriv;
- DBG_8192C("free_xmitbuf_cnt=%d, free_xmitframe_cnt=%d\n",
- pxmitpriv->free_xmitbuf_cnt, pxmitpriv->free_xmitframe_cnt);
+ DBG_871X("free_xmitbuf_cnt=%d, free_xmitframe_cnt=%d"
+ ", free_xmit_extbuf_cnt=%d, free_xframe_ext_cnt=%d"
+ ", free_recvframe_cnt=%d\n",
+ pxmitpriv->free_xmitbuf_cnt, pxmitpriv->free_xmitframe_cnt,
+ pxmitpriv->free_xmit_extbuf_cnt, pxmitpriv->free_xframe_ext_cnt,
+ precvpriv->free_recvframe_cnt);
#ifdef CONFIG_USB_HCI
- DBG_8192C("rx_urb_pending_cn=%d\n", precvpriv->rx_pending_cnt);
+ DBG_871X("rx_urb_pending_cn=%d\n", precvpriv->rx_pending_cnt);
#endif
}
break;
@@ -5402,7 +6834,7 @@ static int rtw_dbg_port(struct net_device *dev,
struct recv_reorder_ctrl *preorder_ctrl;
#ifdef CONFIG_AP_MODE
- DBG_8192C("sta_dz_bitmap=0x%x, tim_bitmap=0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim_bitmap);
+ DBG_871X("sta_dz_bitmap=0x%x, tim_bitmap=0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim_bitmap);
#endif
_enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
@@ -5419,20 +6851,22 @@ static int rtw_dbg_port(struct net_device *dev,
if(extra_arg == psta->aid)
{
- DBG_8192C("sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr));
- DBG_8192C("rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
- DBG_8192C("qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
- DBG_8192C("state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
- DBG_8192C("bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi);
- DBG_8192C("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
- DBG_8192C("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
- DBG_8192C("capability=0x%x\n", psta->capability);
- DBG_8192C("flags=0x%x\n", psta->flags);
- DBG_8192C("wpa_psk=0x%x\n", psta->wpa_psk);
- DBG_8192C("wpa2_group_cipher=0x%x\n", psta->wpa2_group_cipher);
- DBG_8192C("wpa2_pairwise_cipher=0x%x\n", psta->wpa2_pairwise_cipher);
- DBG_8192C("qos_info=0x%x\n", psta->qos_info);
- DBG_8192C("dot118021XPrivacy=0x%x\n", psta->dot118021XPrivacy);
+ DBG_871X("sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr));
+ DBG_871X("rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
+ DBG_871X("qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
+ DBG_871X("state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
+ DBG_871X("bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi);
+ DBG_871X("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
+ DBG_871X("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
+#ifdef CONFIG_AP_MODE
+ DBG_871X("capability=0x%x\n", psta->capability);
+ DBG_871X("flags=0x%x\n", psta->flags);
+ DBG_871X("wpa_psk=0x%x\n", psta->wpa_psk);
+ DBG_871X("wpa2_group_cipher=0x%x\n", psta->wpa2_group_cipher);
+ DBG_871X("wpa2_pairwise_cipher=0x%x\n", psta->wpa2_pairwise_cipher);
+ DBG_871X("qos_info=0x%x\n", psta->qos_info);
+#endif
+ DBG_871X("dot118021XPrivacy=0x%x\n", psta->dot118021XPrivacy);
@@ -5441,7 +6875,7 @@ static int rtw_dbg_port(struct net_device *dev,
preorder_ctrl = &psta->recvreorder_ctrl[j];
if(preorder_ctrl->enable)
{
- DBG_8192C("tid=%d, indicate_seq=%d\n", j, preorder_ctrl->indicate_seq);
+ DBG_871X("tid=%d, indicate_seq=%d\n", j, preorder_ctrl->indicate_seq);
}
}
@@ -5457,9 +6891,9 @@ static int rtw_dbg_port(struct net_device *dev,
case 0x0c://dump rx packet
{
- DBG_8192C("dump rx packet (%d)\n",extra_arg);
+ DBG_871X("dump rx packet (%d)\n",extra_arg);
//pHalData->bDumpRxPkt =extra_arg;
- padapter->HalFunc.SetHalDefVarHandler(padapter, HAL_DEF_DBG_DUMP_RXPKT, &(extra_arg));
+ rtw_hal_set_def_var(padapter, HAL_DEF_DBG_DUMP_RXPKT, &(extra_arg));
}
break;
#if 0
@@ -5477,31 +6911,88 @@ static int rtw_dbg_port(struct net_device *dev,
case 0x0f:
{
if(extra_arg == 0){
- DBG_8192C("###### silent reset test.......#####\n");
- if(padapter->HalFunc.silentreset)
- padapter->HalFunc.silentreset(padapter);
+ DBG_871X("###### silent reset test.......#####\n");
+ rtw_hal_sreset_reset(padapter);
+ } else {
+ sreset_set_trigger_point(padapter, extra_arg);
}
}
break;
- case 0x12:
+ case 0x15:
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- DBG_8192C("==>silent resete cnts:%d\n",pwrpriv->ips_enter_cnts);
+ DBG_871X("==>silent resete cnts:%d\n",pwrpriv->ips_enter_cnts);
}
break;
#endif
case 0x10:// driver version display
- DBG_8192C("rtw driver version=%s\n", DRIVERVERSION);
+ DBG_871X("rtw driver version=%s\n", DRIVERVERSION);
break;
case 0x11:
{
- DBG_8192C("turn %s Rx RSSI display function\n",(extra_arg==1)?"on":"off");
+ DBG_871X("turn %s Rx RSSI display function\n",(extra_arg==1)?"on":"off");
padapter->bRxRSSIDisplay = extra_arg ;
}
break;
+ case 0x12: //set rx_stbc
+ {
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ // 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, 0x3: enable both 2.4g and 5g
+ //default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ
+ if( pregpriv && (extra_arg == 0 || extra_arg == 1|| extra_arg == 2 || extra_arg == 3))
+ {
+ pregpriv->rx_stbc= extra_arg;
+ DBG_871X("set rx_stbc=%d\n",pregpriv->rx_stbc);
+ }
+ else
+ DBG_871X("get rx_stbc=%d\n",pregpriv->rx_stbc);
+
+ }
+ break;
+ case 0x13: //set ampdu_enable
+ {
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ // 0: disable, 0x1:enable (but wifi_spec should be 0), 0x2: force enable (don't care wifi_spec)
+ if( pregpriv && extra_arg >= 0 && extra_arg < 3 )
+ {
+ pregpriv->ampdu_enable= extra_arg;
+ DBG_871X("set ampdu_enable=%d\n",pregpriv->ampdu_enable);
+ }
+ else
+ DBG_871X("get ampdu_enable=%d\n",pregpriv->ampdu_enable);
+
+ }
+ break;
+ case 0x14: //get wifi_spec
+ {
+ struct registry_priv *pregpriv = &padapter->registrypriv;
+ DBG_871X("get wifi_spec=%d\n",pregpriv->wifi_spec);
+
+ }
+ break;
+ case 0x22:
+ {
+ DBG_871X("turn %s the ForceWriteInitGain Variable\n",(extra_arg==1)?"on":"off");
+ padapter->bForceWriteInitGain = extra_arg;
+ break;
+ }
+ case 0x23:
+ {
+ DBG_871X("turn %s the bNotifyChannelChange Variable\n",(extra_arg==1)?"on":"off");
+ padapter->bNotifyChannelChange = extra_arg;
+ break;
+ }
+ case 0x24:
+ {
+#ifdef CONFIG_P2P
+ DBG_871X("turn %s the bShowGetP2PState Variable\n",(extra_arg==1)?"on":"off");
+ padapter->bShowGetP2PState = extra_arg;
+#endif // CONFIG_P2P
+ break;
+ }
#if 1
case 0xdd://registers dump , 0 for mac reg,1 for bb reg, 2 for rf reg
{
@@ -5523,15 +7014,15 @@ static int rtw_dbg_port(struct net_device *dev,
u8 dm_flag;
if(0xf==extra_arg){
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_DBG_DM_FUNC,&dm_flag);
- DBG_8192C(" === DMFlag(0x%02x) === \n",dm_flag);
- DBG_8192C("extra_arg = 0 - disable all dynamic func \n");
- DBG_8192C("extra_arg = 1 - disable DIG- BIT(0)\n");
- DBG_8192C("extra_arg = 2 - disable High power - BIT(1)\n");
- DBG_8192C("extra_arg = 3 - disable tx power tracking - BIT(2)\n");
- DBG_8192C("extra_arg = 4 - disable BT coexistence - BIT(3)\n");
- DBG_8192C("extra_arg = 5 - disable antenna diversity - BIT(4)\n");
- DBG_8192C("extra_arg = 6 - enable all dynamic func \n");
+ rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DM_FUNC,&dm_flag);
+ DBG_871X(" === DMFlag(0x%02x) === \n",dm_flag);
+ DBG_871X("extra_arg = 0 - disable all dynamic func \n");
+ DBG_871X("extra_arg = 1 - disable DIG- BIT(0)\n");
+ DBG_871X("extra_arg = 2 - disable High power - BIT(1)\n");
+ DBG_871X("extra_arg = 3 - disable tx power tracking - BIT(2)\n");
+ DBG_871X("extra_arg = 4 - disable BT coexistence - BIT(3)\n");
+ DBG_871X("extra_arg = 5 - disable antenna diversity - BIT(4)\n");
+ DBG_871X("extra_arg = 6 - enable all dynamic func \n");
}
else{
/* extra_arg = 0 - disable all dynamic func
@@ -5539,56 +7030,56 @@ static int rtw_dbg_port(struct net_device *dev,
extra_arg = 2 - disable tx power tracking
extra_arg = 3 - turn on all dynamic func
*/
- padapter->HalFunc.SetHalDefVarHandler(padapter, HAL_DEF_DBG_DM_FUNC, &(extra_arg));
- padapter->HalFunc.GetHalDefVarHandler(padapter, HAL_DEF_DBG_DM_FUNC,&dm_flag);
- DBG_8192C(" === DMFlag(0x%02x) === \n",dm_flag);
+ rtw_hal_set_def_var(padapter, HAL_DEF_DBG_DM_FUNC, &(extra_arg));
+ rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DM_FUNC,&dm_flag);
+ DBG_871X(" === DMFlag(0x%02x) === \n",dm_flag);
}
}
break;
case 0xfd:
rtw_write8(padapter, 0xc50, arg);
- DBG_8192C("wr(0xc50)=0x%x\n", rtw_read8(padapter, 0xc50));
+ DBG_871X("wr(0xc50)=0x%x\n", rtw_read8(padapter, 0xc50));
rtw_write8(padapter, 0xc58, arg);
- DBG_8192C("wr(0xc58)=0x%x\n", rtw_read8(padapter, 0xc58));
+ DBG_871X("wr(0xc58)=0x%x\n", rtw_read8(padapter, 0xc58));
break;
case 0xfe:
- DBG_8192C("rd(0xc50)=0x%x\n", rtw_read8(padapter, 0xc50));
- DBG_8192C("rd(0xc58)=0x%x\n", rtw_read8(padapter, 0xc58));
+ DBG_871X("rd(0xc50)=0x%x\n", rtw_read8(padapter, 0xc50));
+ DBG_871X("rd(0xc58)=0x%x\n", rtw_read8(padapter, 0xc58));
break;
case 0xff:
{
- DBG_8192C("dbg(0x210)=0x%x\n", rtw_read32(padapter, 0x210));
- DBG_8192C("dbg(0x608)=0x%x\n", rtw_read32(padapter, 0x608));
- DBG_8192C("dbg(0x280)=0x%x\n", rtw_read32(padapter, 0x280));
- DBG_8192C("dbg(0x284)=0x%x\n", rtw_read32(padapter, 0x284));
- DBG_8192C("dbg(0x288)=0x%x\n", rtw_read32(padapter, 0x288));
+ DBG_871X("dbg(0x210)=0x%x\n", rtw_read32(padapter, 0x210));
+ DBG_871X("dbg(0x608)=0x%x\n", rtw_read32(padapter, 0x608));
+ DBG_871X("dbg(0x280)=0x%x\n", rtw_read32(padapter, 0x280));
+ DBG_871X("dbg(0x284)=0x%x\n", rtw_read32(padapter, 0x284));
+ DBG_871X("dbg(0x288)=0x%x\n", rtw_read32(padapter, 0x288));
- DBG_8192C("dbg(0x664)=0x%x\n", rtw_read32(padapter, 0x664));
+ DBG_871X("dbg(0x664)=0x%x\n", rtw_read32(padapter, 0x664));
- DBG_8192C("\n");
+ DBG_871X("\n");
- DBG_8192C("dbg(0x430)=0x%x\n", rtw_read32(padapter, 0x430));
- DBG_8192C("dbg(0x438)=0x%x\n", rtw_read32(padapter, 0x438));
+ DBG_871X("dbg(0x430)=0x%x\n", rtw_read32(padapter, 0x430));
+ DBG_871X("dbg(0x438)=0x%x\n", rtw_read32(padapter, 0x438));
- DBG_8192C("dbg(0x440)=0x%x\n", rtw_read32(padapter, 0x440));
+ DBG_871X("dbg(0x440)=0x%x\n", rtw_read32(padapter, 0x440));
- DBG_8192C("dbg(0x458)=0x%x\n", rtw_read32(padapter, 0x458));
+ DBG_871X("dbg(0x458)=0x%x\n", rtw_read32(padapter, 0x458));
- DBG_8192C("dbg(0x484)=0x%x\n", rtw_read32(padapter, 0x484));
- DBG_8192C("dbg(0x488)=0x%x\n", rtw_read32(padapter, 0x488));
+ DBG_871X("dbg(0x484)=0x%x\n", rtw_read32(padapter, 0x484));
+ DBG_871X("dbg(0x488)=0x%x\n", rtw_read32(padapter, 0x488));
- DBG_8192C("dbg(0x444)=0x%x\n", rtw_read32(padapter, 0x444));
- DBG_8192C("dbg(0x448)=0x%x\n", rtw_read32(padapter, 0x448));
- DBG_8192C("dbg(0x44c)=0x%x\n", rtw_read32(padapter, 0x44c));
- DBG_8192C("dbg(0x450)=0x%x\n", rtw_read32(padapter, 0x450));
+ DBG_871X("dbg(0x444)=0x%x\n", rtw_read32(padapter, 0x444));
+ DBG_871X("dbg(0x448)=0x%x\n", rtw_read32(padapter, 0x448));
+ DBG_871X("dbg(0x44c)=0x%x\n", rtw_read32(padapter, 0x44c));
+ DBG_871X("dbg(0x450)=0x%x\n", rtw_read32(padapter, 0x450));
}
break;
}
break;
default:
- DBG_8192C("error dbg cmd!\n");
+ DBG_871X("error dbg cmd!\n");
break;
}
@@ -5688,7 +7179,7 @@ static int wpa_set_param(struct net_device *dev, u8 name, u32 value)
case IEEE_PARAM_WPAX_SELECT:
// added for WPA2 mixed mode
- //DBG_8192C(KERN_WARNING "------------------------>wpax value = %x\n", value);
+ //DBG_871X(KERN_WARNING "------------------------>wpax value = %x\n", value);
/*
spin_lock_irqsave(&ieee->wpax_suitlist_lock,flags);
ieee->wpax_type_set = 1;
@@ -5789,7 +7280,7 @@ static int wpa_supplicant_ioctl(struct net_device *dev, struct iw_point *p)
break;
default:
- DBG_8192C("Unknown WPA supplicant request: %d\n", param->cmd);
+ DBG_871X("Unknown WPA supplicant request: %d\n", param->cmd);
ret = -EOPNOTSUPP;
break;
@@ -5855,7 +7346,7 @@ static int set_group_key(_adapter *padapter, u8 *key, u8 alg, int keyid)
struct cmd_priv *pcmdpriv=&(padapter->cmdpriv);
int res=_SUCCESS;
- DBG_8192C("%s\n", __FUNCTION__);
+ DBG_871X("%s\n", __FUNCTION__);
pcmd = (struct cmd_obj*)rtw_zmalloc(sizeof(struct cmd_obj));
if(pcmd==NULL){
@@ -5872,6 +7363,8 @@ static int set_group_key(_adapter *padapter, u8 *key, u8 alg, int keyid)
_rtw_memset(psetkeyparm, 0, sizeof(struct setkey_parm));
psetkeyparm->keyid=(u8)keyid;
+ if (is_wep_enc(alg))
+ padapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid);
psetkeyparm->algorithm = alg;
@@ -5945,7 +7438,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
struct security_priv* psecuritypriv=&(padapter->securitypriv);
struct sta_priv *pstapriv = &padapter->stapriv;
- DBG_8192C("%s\n", __FUNCTION__);
+ DBG_871X("%s\n", __FUNCTION__);
param->u.crypt.err = 0;
param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0';
@@ -5974,7 +7467,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
if(!psta)
{
//ret = -EINVAL;
- DBG_8192C("rtw_set_encryption(), sta has already been removed or never been added\n");
+ DBG_871X("rtw_set_encryption(), sta has already been removed or never been added\n");
goto exit;
}
}
@@ -5983,7 +7476,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
{
//todo:clear default encryption keys
- DBG_8192C("clear default encryption keys, keyid=%d\n", param->u.crypt.idx);
+ DBG_871X("clear default encryption keys, keyid=%d\n", param->u.crypt.idx);
goto exit;
}
@@ -5991,12 +7484,12 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
if (strcmp(param->u.crypt.alg, "WEP") == 0 && (psta==NULL))
{
- DBG_8192C("r871x_set_encryption, crypt.alg = WEP\n");
+ DBG_871X("r871x_set_encryption, crypt.alg = WEP\n");
wep_key_idx = param->u.crypt.idx;
wep_key_len = param->u.crypt.key_len;
- DBG_8192C("r871x_set_encryption, wep_key_idx=%d, len=%d\n", wep_key_idx, wep_key_len);
+ DBG_871X("r871x_set_encryption, wep_key_idx=%d, len=%d\n", wep_key_idx, wep_key_len);
if((wep_key_idx >= WEP_KEYS) || (wep_key_len<=0))
{
@@ -6011,7 +7504,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
wep_total_len = wep_key_len + FIELD_OFFSET(NDIS_802_11_WEP, KeyMaterial);
pwep =(NDIS_802_11_WEP *)rtw_malloc(wep_total_len);
if(pwep == NULL){
- DBG_8192C(" r871x_set_encryption: pwep allocate fail !!!\n");
+ DBG_871X(" r871x_set_encryption: pwep allocate fail !!!\n");
goto exit;
}
@@ -6028,7 +7521,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
if(param->u.crypt.set_tx)
{
- DBG_8192C("wep, set_tx=1\n");
+ DBG_871X("wep, set_tx=1\n");
psecuritypriv->ndisencryptstatus = Ndis802_11Encryption1Enabled;
psecuritypriv->dot11PrivacyAlgrthm=_WEP40_;
@@ -6053,7 +7546,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
}
else
{
- DBG_8192C("wep, set_tx=0\n");
+ DBG_871X("wep, set_tx=0\n");
//don't update "psecuritypriv->dot11PrivacyAlgrthm" and
//"psecuritypriv->dot11PrivacyKeyIndex=keyid", but can rtw_set_key to cam
@@ -6077,7 +7570,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
{
if(strcmp(param->u.crypt.alg, "WEP") == 0)
{
- DBG_8192C("%s, set group_key, WEP\n", __FUNCTION__);
+ DBG_871X("%s, set group_key, WEP\n", __FUNCTION__);
_rtw_memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
@@ -6090,7 +7583,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
}
else if(strcmp(param->u.crypt.alg, "TKIP") == 0)
{
- DBG_8192C("%s, set group_key, TKIP\n", __FUNCTION__);
+ DBG_871X("%s, set group_key, TKIP\n", __FUNCTION__);
psecuritypriv->dot118021XGrpPrivacy = _TKIP_;
@@ -6106,7 +7599,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
}
else if(strcmp(param->u.crypt.alg, "CCMP") == 0)
{
- DBG_8192C("%s, set group_key, CCMP\n", __FUNCTION__);
+ DBG_871X("%s, set group_key, CCMP\n", __FUNCTION__);
psecuritypriv->dot118021XGrpPrivacy = _AES_;
@@ -6114,7 +7607,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
}
else
{
- DBG_8192C("%s, set group_key, none\n", __FUNCTION__);
+ DBG_871X("%s, set group_key, none\n", __FUNCTION__);
psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_;
}
@@ -6150,7 +7643,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
if(strcmp(param->u.crypt.alg, "WEP") == 0)
{
- DBG_8192C("%s, set pairwise key, WEP\n", __FUNCTION__);
+ DBG_871X("%s, set pairwise key, WEP\n", __FUNCTION__);
psta->dot118021XPrivacy = _WEP40_;
if(param->u.crypt.key_len==13)
@@ -6160,7 +7653,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
}
else if(strcmp(param->u.crypt.alg, "TKIP") == 0)
{
- DBG_8192C("%s, set pairwise key, TKIP\n", __FUNCTION__);
+ DBG_871X("%s, set pairwise key, TKIP\n", __FUNCTION__);
psta->dot118021XPrivacy = _TKIP_;
@@ -6175,13 +7668,13 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
else if(strcmp(param->u.crypt.alg, "CCMP") == 0)
{
- DBG_8192C("%s, set pairwise key, CCMP\n", __FUNCTION__);
+ DBG_871X("%s, set pairwise key, CCMP\n", __FUNCTION__);
psta->dot118021XPrivacy = _AES_;
}
else
{
- DBG_8192C("%s, set pairwise key, none\n", __FUNCTION__);
+ DBG_871X("%s, set pairwise key, none\n", __FUNCTION__);
psta->dot118021XPrivacy = _NO_PRIVACY_;
}
@@ -6253,7 +7746,7 @@ exit:
if(pwep)
{
- rtw_mfree((u8 *)pwep, wep_total_len);
+ rtw_mfree((u8 *)pwep,wep_total_len);
}
return ret;
@@ -6269,25 +7762,23 @@ static int rtw_set_beacon(struct net_device *dev, struct ieee_param *param, int
unsigned char *pbuf = param->u.bcn_ie.buf;
- DBG_8192C("%s, len=%d\n", __FUNCTION__, len);
+ DBG_871X("%s, len=%d\n", __FUNCTION__, len);
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
return -EINVAL;
_rtw_memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2);
-#ifdef SUPPORT_64_STA
- pstapriv->max_num_sta = NUM_STA;
-#else //SUPPORT_64_STA
+
if((pstapriv->max_num_sta>NUM_STA) || (pstapriv->max_num_sta<=0))
pstapriv->max_num_sta = NUM_STA;
-#endif//SUPPORT_64_STA
+
if(rtw_check_beacon_data(padapter, pbuf, (len-12-2)) == _SUCCESS)// 12 = param header, 2:no packed
ret = 0;
else
ret = -EINVAL;
-
+
return ret;
}
@@ -6301,40 +7792,10 @@ static int rtw_hostapd_sta_flush(struct net_device *dev)
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
//struct sta_priv *pstapriv = &padapter->stapriv;
- DBG_8192C("%s\n", __FUNCTION__);
+ DBG_871X("%s\n", __FUNCTION__);
flush_all_cam_entry(padapter); //clear CAM
-#if 0
- phead = &pstapriv->asoc_list;
- plist = get_next(phead);
-
- //free sta asoc_queue
- while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
- {
- psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
-
- plist = get_next(plist);
-
- rtw_list_delete(&psta->asoc_list);
-
- //tear down Rx AMPDU
- send_delba(padapter, 0, psta->hwaddr);// recipient
-
- //tear down TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- psta->htpriv.agg_enable_bitmap = 0x0;//reset
- psta->htpriv.candidate_tid_bitmap = 0x0;//reset
-
- issue_deauth(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
-
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
- }
-#endif
-
ret = rtw_sta_flush(padapter);
return ret;
@@ -6350,7 +7811,7 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct sta_priv *pstapriv = &padapter->stapriv;
- DBG_8192C("rtw_add_sta(aid=%d)=" MAC_FMT "\n", param->u.add_sta.aid, MAC_ARG(param->sta_addr));
+ DBG_871X("rtw_add_sta(aid=%d)=" MAC_FMT "\n", param->u.add_sta.aid, MAC_ARG(param->sta_addr));
if(check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != _TRUE)
{
@@ -6368,7 +7829,7 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
psta = rtw_get_stainfo(pstapriv, param->sta_addr);
if(psta)
{
- DBG_8192C("rtw_add_sta(), free has been added psta=%p\n", psta);
+ DBG_871X("rtw_add_sta(), free has been added psta=%p\n", psta);
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
rtw_free_stainfo(padapter, psta);
_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
@@ -6382,7 +7843,7 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
{
int flags = param->u.add_sta.flags;
- //DBG_8192C("rtw_add_sta(), init sta's variables, psta=%p\n", psta);
+ //DBG_871X("rtw_add_sta(), init sta's variables, psta=%p\n", psta);
psta->aid = param->u.add_sta.aid;//aid=1~2007
@@ -6423,82 +7884,156 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
}
else
{
- ret = -ENOMEM;
- }
+ ret = -ENOMEM;
+ }
+
+ return ret;
+
+}
+
+static int rtw_del_sta(struct net_device *dev, struct ieee_param *param)
+{
+ _irqL irqL;
+ int ret=0;
+ struct sta_info *psta = NULL;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+ struct sta_priv *pstapriv = &padapter->stapriv;
+
+ DBG_871X("rtw_del_sta=" MAC_FMT "\n", MAC_ARG(param->sta_addr));
+
+ if(check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != _TRUE)
+ {
+ return -EINVAL;
+ }
+
+ if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff &&
+ param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
+ param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff)
+ {
+ return -EINVAL;
+ }
+
+ psta = rtw_get_stainfo(pstapriv, param->sta_addr);
+ if(psta)
+ {
+ u8 updated=_FALSE;
+
+ //DBG_871X("free psta=%p, aid=%d\n", psta, psta->aid);
+
+ _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+ if(rtw_is_list_empty(&psta->asoc_list)==_FALSE)
+ {
+ rtw_list_delete(&psta->asoc_list);
+ pstapriv->asoc_list_cnt--;
+ updated = ap_free_sta(padapter, psta, _TRUE, WLAN_REASON_DEAUTH_LEAVING);
+
+ }
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ associated_clients_update(padapter, updated);
+
+ psta = NULL;
+
+ }
+ else
+ {
+ DBG_871X("rtw_del_sta(), sta has already been removed or never been added\n");
+
+ //ret = -1;
+ }
+
return ret;
}
-static int rtw_del_sta(struct net_device *dev, struct ieee_param *param)
+static int rtw_ioctl_get_sta_data(struct net_device *dev, struct ieee_param *param, int len)
{
- _irqL irqL;
int ret=0;
struct sta_info *psta = NULL;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct sta_priv *pstapriv = &padapter->stapriv;
+ struct ieee_param_ex *param_ex = (struct ieee_param_ex *)param;
+ struct sta_data *psta_data = (struct sta_data *)param_ex->data;
+
+ DBG_871X("rtw_ioctl_get_sta_info, sta_addr: " MAC_FMT "\n", MAC_ARG(param_ex->sta_addr));
- DBG_8192C("rtw_del_sta=" MAC_FMT "\n", MAC_ARG(param->sta_addr));
-
if(check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != _TRUE)
{
return -EINVAL;
}
- if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff &&
- param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
- param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff)
+ if (param_ex->sta_addr[0] == 0xff && param_ex->sta_addr[1] == 0xff &&
+ param_ex->sta_addr[2] == 0xff && param_ex->sta_addr[3] == 0xff &&
+ param_ex->sta_addr[4] == 0xff && param_ex->sta_addr[5] == 0xff)
{
return -EINVAL;
}
- psta = rtw_get_stainfo(pstapriv, param->sta_addr);
+ psta = rtw_get_stainfo(pstapriv, param_ex->sta_addr);
if(psta)
{
- //DBG_8192C("free psta=%p, aid=%d\n", psta, psta->aid);
-
-#if 0
- //tear down Rx AMPDU
- send_delba(padapter, 0, psta->hwaddr);// recipient
-
- //tear down TX AMPDU
- send_delba(padapter, 1, psta->hwaddr);// // originator
- psta->htpriv.agg_enable_bitmap = 0x0;//reset
- psta->htpriv.candidate_tid_bitmap = 0x0;//reset
-
- issue_deauth(padapter, psta->hwaddr, WLAN_REASON_DEAUTH_LEAVING);
-
- _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
- rtw_free_stainfo(padapter, psta);
- _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL);
-
- pstapriv->sta_dz_bitmap &=~BIT(psta->aid);
- pstapriv->tim_bitmap &=~BIT(psta->aid);
+#if 0
+ struct {
+ u16 aid;
+ u16 capability;
+ int flags;
+ u32 sta_set;
+ u8 tx_supp_rates[16];
+ u32 tx_supp_rates_len;
+ struct rtw_ieee80211_ht_cap ht_cap;
+ u64 rx_pkts;
+ u64 rx_bytes;
+ u64 rx_drops;
+ u64 tx_pkts;
+ u64 tx_bytes;
+ u64 tx_drops;
+ } get_sta;
#endif
+ psta_data->aid = (u16)psta->aid;
+ psta_data->capability = psta->capability;
+ psta_data->flags = psta->flags;
- _enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- if(rtw_is_list_empty(&psta->asoc_list)==_FALSE)
- {
- rtw_list_delete(&psta->asoc_list);
- ap_free_sta(padapter, psta);
+/*
+ nonerp_set : BIT(0)
+ no_short_slot_time_set : BIT(1)
+ no_short_preamble_set : BIT(2)
+ no_ht_gf_set : BIT(3)
+ no_ht_set : BIT(4)
+ ht_20mhz_set : BIT(5)
+*/
- }
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
-
- psta = NULL;
+ psta_data->sta_set =((psta->nonerp_set) |
+ (psta->no_short_slot_time_set <<1) |
+ (psta->no_short_preamble_set <<2) |
+ (psta->no_ht_gf_set <<3) |
+ (psta->no_ht_set <<4) |
+ (psta->ht_20mhz_set <<5));
+
+ psta_data->tx_supp_rates_len = psta->bssratelen;
+ _rtw_memcpy(psta_data->tx_supp_rates, psta->bssrateset, psta->bssratelen);
+
+ _rtw_memcpy(&psta_data->ht_cap, &psta->htpriv.ht_cap, sizeof(struct rtw_ieee80211_ht_cap));
+
+ psta_data->rx_pkts = psta->sta_stats.rx_data_pkts;
+ psta_data->rx_bytes = psta->sta_stats.rx_bytes;
+ psta_data->rx_drops = psta->sta_stats.rx_drops;
+
+ psta_data->tx_pkts = psta->sta_stats.tx_pkts;
+ psta_data->tx_bytes = psta->sta_stats.tx_bytes;
+ psta_data->tx_drops = psta->sta_stats.tx_drops;
+
}
else
{
- DBG_8192C("rtw_del_sta(), sta has already been removed or never been added\n");
-
- //ret = -1;
+ ret = -1;
}
-
-
+
return ret;
-
+
}
static int rtw_get_sta_wpaie(struct net_device *dev, struct ieee_param *param)
@@ -6509,7 +8044,7 @@ static int rtw_get_sta_wpaie(struct net_device *dev, struct ieee_param *param)
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct sta_priv *pstapriv = &padapter->stapriv;
- DBG_8192C("rtw_get_sta_wpaie, sta_addr: " MAC_FMT "\n", MAC_ARG(param->sta_addr));
+ DBG_871X("rtw_get_sta_wpaie, sta_addr: " MAC_FMT "\n", MAC_ARG(param->sta_addr));
if(check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != _TRUE)
{
@@ -6542,7 +8077,7 @@ static int rtw_get_sta_wpaie(struct net_device *dev, struct ieee_param *param)
else
{
//ret = -1;
- DBG_8192C("sta's wpa_ie is NONE\n");
+ DBG_871X("sta's wpa_ie is NONE\n");
}
}
else
@@ -6564,7 +8099,7 @@ static int rtw_set_wps_beacon(struct net_device *dev, struct ieee_param *param,
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
int ie_len;
- DBG_8192C("%s, len=%d\n", __FUNCTION__, len);
+ DBG_871X("%s, len=%d\n", __FUNCTION__, len);
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
return -EINVAL;
@@ -6583,7 +8118,7 @@ static int rtw_set_wps_beacon(struct net_device *dev, struct ieee_param *param,
pmlmepriv->wps_beacon_ie = rtw_malloc(ie_len);
pmlmepriv->wps_beacon_ie_len = ie_len;
if ( pmlmepriv->wps_beacon_ie == NULL) {
- DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_871X("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -6607,7 +8142,7 @@ static int rtw_set_wps_probe_resp(struct net_device *dev, struct ieee_param *par
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
int ie_len;
- DBG_8192C("%s, len=%d\n", __FUNCTION__, len);
+ DBG_871X("%s, len=%d\n", __FUNCTION__, len);
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
return -EINVAL;
@@ -6626,7 +8161,7 @@ static int rtw_set_wps_probe_resp(struct net_device *dev, struct ieee_param *par
pmlmepriv->wps_probe_resp_ie = rtw_malloc(ie_len);
pmlmepriv->wps_probe_resp_ie_len = ie_len;
if ( pmlmepriv->wps_probe_resp_ie == NULL) {
- DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_871X("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
_rtw_memcpy(pmlmepriv->wps_probe_resp_ie, param->u.bcn_ie.buf, ie_len);
@@ -6637,38 +8172,6 @@ static int rtw_set_wps_probe_resp(struct net_device *dev, struct ieee_param *par
}
-static int rtw_set_hidden_ssid(struct net_device *dev, struct ieee_param *param, int len)
-{
- int ret=0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
- struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
- u8 value;
-
- if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
- return -EINVAL;
-
- if(param->u.wpa_param.name != 0) //dummy test...
- {
- DBG_871X("%s name(%u) != 0\n", __FUNCTION__, param->u.wpa_param.name);
- }
-
- value = param->u.wpa_param.value;
-
- //use the same definition of hostapd's ignore_broadcast_ssid
- if(value != 1 && value != 2)
- value = 0;
-
- DBG_871X("%s value(%u)\n", __FUNCTION__, value);
- pmlmeinfo->hidden_ssid_mode = value;
-
- return ret;
-
-}
-
-
static int rtw_set_wps_assoc_resp(struct net_device *dev, struct ieee_param *param, int len)
{
int ret=0;
@@ -6676,7 +8179,7 @@ static int rtw_set_wps_assoc_resp(struct net_device *dev, struct ieee_param *par
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
int ie_len;
- DBG_8192C("%s, len=%d\n", __FUNCTION__, len);
+ DBG_871X("%s, len=%d\n", __FUNCTION__, len);
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
return -EINVAL;
@@ -6695,7 +8198,7 @@ static int rtw_set_wps_assoc_resp(struct net_device *dev, struct ieee_param *par
pmlmepriv->wps_assoc_resp_ie = rtw_malloc(ie_len);
pmlmepriv->wps_assoc_resp_ie_len = ie_len;
if ( pmlmepriv->wps_assoc_resp_ie == NULL) {
- DBG_8192C("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
+ DBG_871X("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
return -EINVAL;
}
@@ -6707,13 +8210,125 @@ static int rtw_set_wps_assoc_resp(struct net_device *dev, struct ieee_param *par
}
+static int rtw_set_hidden_ssid(struct net_device *dev, struct ieee_param *param, int len)
+{
+ int ret=0;
+ _adapter *adapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *mlmepriv = &(adapter->mlmepriv);
+ struct mlme_ext_priv *mlmeext = &(adapter->mlmeextpriv);
+ struct mlme_ext_info *mlmeinfo = &(mlmeext->mlmext_info);
+ int ie_len;
+ u8 *ssid_ie;
+ char ssid[NDIS_802_11_LENGTH_SSID + 1];
+ sint ssid_len;
+ u8 ignore_broadcast_ssid;
+
+ if(check_fwstate(mlmepriv, WIFI_AP_STATE) != _TRUE)
+ return -EPERM;
+
+ if (param->u.bcn_ie.reserved[0] != 0xea)
+ return -EINVAL;
+
+ mlmeinfo->hidden_ssid_mode = ignore_broadcast_ssid = param->u.bcn_ie.reserved[1];
+
+ ie_len = len-12-2;// 12 = param header, 2:no packed
+ ssid_ie = rtw_get_ie(param->u.bcn_ie.buf, WLAN_EID_SSID, &ssid_len, ie_len);
+
+ if (ssid_ie && ssid_len) {
+ WLAN_BSSID_EX *pbss_network = &mlmepriv->cur_network.network;
+ WLAN_BSSID_EX *pbss_network_ext = &mlmeinfo->network;
+
+ _rtw_memcpy(ssid, ssid_ie+2, ssid_len);
+ ssid[ssid_len>NDIS_802_11_LENGTH_SSID?NDIS_802_11_LENGTH_SSID:ssid_len] = 0x0;
+
+ if(0)
+ DBG_871X(FUNC_ADPT_FMT" ssid:(%s,%d), from ie:(%s,%d), (%s,%d)\n", FUNC_ADPT_ARG(adapter),
+ ssid, ssid_len,
+ pbss_network->Ssid.Ssid, pbss_network->Ssid.SsidLength,
+ pbss_network_ext->Ssid.Ssid, pbss_network_ext->Ssid.SsidLength);
+
+ _rtw_memcpy(pbss_network->Ssid.Ssid, (void *)ssid, ssid_len);
+ pbss_network->Ssid.SsidLength = ssid_len;
+ _rtw_memcpy(pbss_network_ext->Ssid.Ssid, (void *)ssid, ssid_len);
+ pbss_network_ext->Ssid.SsidLength = ssid_len;
+
+ if(0)
+ DBG_871X(FUNC_ADPT_FMT" after ssid:(%s,%d), (%s,%d)\n", FUNC_ADPT_ARG(adapter),
+ pbss_network->Ssid.Ssid, pbss_network->Ssid.SsidLength,
+ pbss_network_ext->Ssid.Ssid, pbss_network_ext->Ssid.SsidLength);
+ }
+
+ DBG_871X(FUNC_ADPT_FMT" ignore_broadcast_ssid:%d, %s,%d\n", FUNC_ADPT_ARG(adapter),
+ ignore_broadcast_ssid, ssid, ssid_len);
+
+ return ret;
+}
+
+static int rtw_ioctl_acl_remove_sta(struct net_device *dev, struct ieee_param *param, int len)
+{
+ int ret=0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
+ return -EINVAL;
+
+ if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff &&
+ param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
+ param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff)
+ {
+ return -EINVAL;
+ }
+
+ ret = rtw_acl_remove_sta(padapter, param->sta_addr);
+
+ return ret;
+
+}
+
+static int rtw_ioctl_acl_add_sta(struct net_device *dev, struct ieee_param *param, int len)
+{
+ int ret=0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
+ return -EINVAL;
+
+ if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff &&
+ param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
+ param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff)
+ {
+ return -EINVAL;
+ }
+
+ ret = rtw_acl_add_sta(padapter, param->sta_addr);
+
+ return ret;
+
+}
+
+static int rtw_ioctl_set_macaddr_acl(struct net_device *dev, struct ieee_param *param, int len)
+{
+ int ret=0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
+
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
+ return -EINVAL;
+
+ rtw_set_macaddr_acl(padapter, param->u.mlme.command);
+
+ return ret;
+}
+
static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p)
{
struct ieee_param *param;
int ret=0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- //DBG_8192C("%s\n", __FUNCTION__);
+ //DBG_871X("%s\n", __FUNCTION__);
/*
* this function is expect to call in master mode, which allows no power saving
@@ -6746,7 +8361,7 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p)
goto out;
}
- //DBG_8192C("%s, cmd=%d\n", __FUNCTION__, param->cmd);
+ //DBG_871X("%s, cmd=%d\n", __FUNCTION__, param->cmd);
switch (param->cmd)
{
@@ -6809,9 +8424,33 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p)
ret = rtw_set_hidden_ssid(dev, param, p->length);
break;
+
+ case RTL871X_HOSTAPD_GET_INFO_STA:
+
+ ret = rtw_ioctl_get_sta_data(dev, param, p->length);
+
+ break;
+
+ case RTL871X_HOSTAPD_SET_MACADDR_ACL:
+
+ ret = rtw_ioctl_set_macaddr_acl(dev, param, p->length);
+
+ break;
+
+ case RTL871X_HOSTAPD_ACL_ADD_STA:
+
+ ret = rtw_ioctl_acl_add_sta(dev, param, p->length);
+
+ break;
+
+ case RTL871X_HOSTAPD_ACL_REMOVE_STA:
+
+ ret = rtw_ioctl_acl_remove_sta(dev, param, p->length);
+
+ break;
default:
- DBG_8192C("Unknown hostapd request: %d\n", param->cmd);
+ DBG_871X("Unknown hostapd request: %d\n", param->cmd);
ret = -EOPNOTSUPP;
break;
@@ -6850,7 +8489,8 @@ static int rtw_wx_set_priv(struct net_device *dev,
struct iw_point *dwrq = (struct iw_point*)awrq;
//RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_notice_, ("+rtw_wx_set_priv\n"));
-
+ if(dwrq->length == 0)
+ return -EFAULT;
len = dwrq->length;
if (!(ext = rtw_vmalloc(len)))
return -ENOMEM;
@@ -6952,16 +8592,7 @@ static int rtw_wx_set_priv(struct net_device *dev,
break;
case ANDROID_WIFI_CMD_LINKSPEED :
{
- union iwreq_data wrqd;
- int ret_inner;
- int mbps;
-
- if( 0!=(ret_inner=rtw_wx_get_rate(dev, info, &wrqd, extra)) ){
- mbps=0;
- } else {
- mbps=wrqd.bitrate.value / 1000000;
- }
-
+ u16 mbps = rtw_get_cur_max_rate(padapter)/10;
sprintf(ext, "LINKSPEED %d", mbps);
}
break;
@@ -6970,15 +8601,13 @@ static int rtw_wx_set_priv(struct net_device *dev,
break;
case ANDROID_WIFI_CMD_SCAN_ACTIVE :
{
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- pmlmepriv->scan_mode=SCAN_ACTIVE;
+ //rtw_set_scan_mode(padapter, SCAN_ACTIVE);
sprintf(ext, "OK");
}
break;
case ANDROID_WIFI_CMD_SCAN_PASSIVE :
{
- struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
- pmlmepriv->scan_mode=SCAN_PASSIVE;
+ //rtw_set_scan_mode(padapter, SCAN_PASSIVE);
sprintf(ext, "OK");
}
break;
@@ -6986,33 +8615,11 @@ static int rtw_wx_set_priv(struct net_device *dev,
case ANDROID_WIFI_CMD_COUNTRY :
{
char country_code[10];
- int channel_plan = RT_CHANNEL_DOMAIN_FCC;
- union iwreq_data wrqd;
- int ret_inner;
-
- sscanf(ext,"%*s %s",country_code);
-
- if(0 == strcmp(country_code, "US"))
- channel_plan = RT_CHANNEL_DOMAIN_FCC;
- else if(0 == strcmp(country_code, "EU"))
- channel_plan = RT_CHANNEL_DOMAIN_ETSI;
- else if(0 == strcmp(country_code, "JP"))
- channel_plan = RT_CHANNEL_DOMAIN_MKK;
- else if(0 == strcmp(country_code, "CN"))
- channel_plan = RT_CHANNEL_DOMAIN_CHINA;
- else
- DBG_871X("%s unknown country_code:%s, set to RT_CHANNEL_DOMAIN_FCC\n", __FUNCTION__, country_code);
-
- _rtw_memcpy(&wrqd, &channel_plan, sizeof(int));
-
- if( 0!=(ret_inner=rtw_wx_set_channel_plan(dev, info, &wrqd, extra)) ){
- DBG_871X("%s rtw_wx_set_channel_plan error\n", __FUNCTION__);
- }
-
+ sscanf(ext, "%*s %s", country_code);
+ rtw_set_country(padapter, country_code);
sprintf(ext, "OK");
}
break;
-
default :
#ifdef CONFIG_DEBUG_RTW_WX_SET_PRIV
DBG_871X("%s: %s unknowned req=%s\n", __FUNCTION__,
@@ -7069,7 +8676,7 @@ static int rtw_mp_efuse_get(struct net_device *dev,
return -EFAULT;
pch = extra;
- DBG_8192C("%s: in=%s\n", __func__, extra);
+ DBG_871X("%s: in=%s\n", __func__, extra);
i=0;
//mac 16 "00e04c871200" rmap,00,2
@@ -7082,38 +8689,38 @@ static int rtw_mp_efuse_get(struct net_device *dev,
if ( strcmp(tmp[0],"realmap") == 0 ) {
- DBG_8192C("strcmp OK = %s \n" ,tmp[0]);
+ DBG_871X("strcmp OK = %s \n" ,tmp[0]);
mapLen = EFUSE_MAP_SIZE;
if (rtw_efuse_map_read(padapter, 0, mapLen, data) == _SUCCESS){
- DBG_8192C("\t rtw_efuse_map_read \n");
+ DBG_871X("\t rtw_efuse_map_read \n");
}else {
- DBG_8192C("\t rtw_efuse_map_read : Fail \n");
+ DBG_871X("\t rtw_efuse_map_read : Fail \n");
return -EFAULT;
}
_rtw_memset(extra, '\0', sizeof(extra));
- DBG_8192C("\tOFFSET\tVALUE(hex)\n");
+ DBG_871X("\tOFFSET\tVALUE(hex)\n");
sprintf(extra, "%s \n", extra);
for ( i = 0; i < EFUSE_MAP_SIZE; i += 16 )
{
- DBG_8192C("\t0x%02x\t", i);
+ DBG_871X("\t0x%02x\t", i);
sprintf(extra, "%s \t0x%02x\t", extra,i);
for (j = 0; j < 8; j++)
{
- DBG_8192C("%02X ", data[i+j]);
+ DBG_871X("%02X ", data[i+j]);
sprintf(extra, "%s %02X", extra, data[i+j]);
}
- DBG_8192C("\t");
+ DBG_871X("\t");
sprintf(extra,"%s\t",extra);
for (; j < 16; j++){
- DBG_8192C("%02X ", data[i+j]);
+ DBG_871X("%02X ", data[i+j]);
sprintf(extra, "%s %02X", extra, data[i+j]);
}
- DBG_8192C("\n");
+ DBG_871X("\n");
sprintf(extra,"%s\n",extra);
}
- DBG_8192C("\n");
+ DBG_871X("\n");
wrqu->length = strlen(extra);
return 0;
@@ -7123,39 +8730,39 @@ static int rtw_mp_efuse_get(struct net_device *dev,
// rmap addr cnts
addr = simple_strtoul(tmp[1], &ptmp, 16);
- DBG_8192C("addr = %x \n" ,addr);
+ DBG_871X("addr = %x \n" ,addr);
cnts=simple_strtoul(tmp[2], &ptmp,10);
if(cnts==0) return -EINVAL;
- DBG_8192C("cnts = %d \n" ,cnts);
+ DBG_871X("cnts = %d \n" ,cnts);
//_rtw_memset(extra, '\0', wrqu->data.length);
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if ((addr + cnts) > max_available_size) {
- DBG_8192C("(addr + cnts parameter error \n");
+ DBG_871X("(addr + cnts parameter error \n");
return -EFAULT;
}
if (rtw_efuse_map_read(padapter, addr, cnts, data) == _FAIL)
{
- DBG_8192C("rtw_efuse_access error \n");
+ DBG_871X("rtw_efuse_access error \n");
}
else{
- DBG_8192C("rtw_efuse_access ok \n");
+ DBG_871X("rtw_efuse_access ok \n");
}
_rtw_memset(extra, '\0', sizeof(extra));
for ( i = 0; i < cnts; i ++) {
- DBG_8192C("0x%02x", data[i]);
+ DBG_871X("0x%02x", data[i]);
sprintf(extra, "%s 0x%02X", extra, data[i]);
- DBG_8192C(" ");
+ DBG_871X(" ");
sprintf(extra,"%s ",extra);
}
wrqu->length = strlen(extra)+1;
- DBG_8192C("extra = %s ", extra);
+ DBG_871X("extra = %s ", extra);
return 0;
}
@@ -7165,24 +8772,24 @@ static int rtw_mp_efuse_get(struct net_device *dev,
if (rtw_efuse_access(padapter, _FALSE, addr, mapLen, rawdata) == _FAIL)
{
- DBG_8192C("\t rtw_efuse_map_read : Fail \n");
+ DBG_871X("\t rtw_efuse_map_read : Fail \n");
return -EFAULT;
} else
{
- DBG_8192C("\t rtw_efuse_access raw ok \n");
+ DBG_871X("\t rtw_efuse_access raw ok \n");
}
_rtw_memset(extra, '\0', sizeof(extra));
for ( i=0; i<mapLen; i++ ) {
- DBG_8192C(" %02x", rawdata[i]);
+ DBG_871X(" %02x", rawdata[i]);
sprintf(extra, "%s %02x", extra, rawdata[i] );
if ((i & 0xF) == 0xF){
- DBG_8192C("\n\t");
+ DBG_871X("\n\t");
sprintf(extra, "%s\n\t", extra);
}
else if ((i & 0x7) == 0x7){
- DBG_8192C("\t");
+ DBG_871X("\t");
sprintf(extra, "%s\t", extra);
}
}
@@ -7201,21 +8808,21 @@ static int rtw_mp_efuse_get(struct net_device *dev,
#endif
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if ((addr + mapLen) > max_available_size) {
- DBG_8192C("(addr + cnts parameter error \n");
+ DBG_871X("(addr + cnts parameter error \n");
return -EFAULT;
}
if (rtw_efuse_map_read(padapter, addr, cnts, data) == _FAIL)
{
- DBG_8192C("rtw_efuse_access error \n");
+ DBG_871X("rtw_efuse_access error \n");
}
else{
- DBG_8192C("rtw_efuse_access ok \n");
+ DBG_871X("rtw_efuse_access ok \n");
}
_rtw_memset(extra, '\0', sizeof(extra));
for ( i = 0; i < cnts; i ++) {
- DBG_8192C("0x%02x", data[i]);
+ DBG_871X("0x%02x", data[i]);
sprintf(extra, "%s 0x%02X", extra, data[i+j]);
- DBG_8192C(" ");
+ DBG_871X(" ");
sprintf(extra,"%s ",extra);
}
wrqu->length = strlen(extra);
@@ -7232,21 +8839,21 @@ static int rtw_mp_efuse_get(struct net_device *dev,
cnts = 4;
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if ((addr + mapLen) > max_available_size) {
- DBG_8192C("(addr + cnts parameter error \n");
+ DBG_871X("(addr + cnts parameter error \n");
return -EFAULT;
}
if (rtw_efuse_map_read(padapter, addr, cnts, data) == _FAIL)
{
- DBG_8192C("rtw_efuse_access error \n");
+ DBG_871X("rtw_efuse_access error \n");
}
else{
- DBG_8192C("rtw_efuse_access ok \n");
+ DBG_871X("rtw_efuse_access ok \n");
}
_rtw_memset(extra, '\0', sizeof(extra));
for ( i = 0; i < cnts; i ++) {
- DBG_8192C("0x%02x", data[i]);
+ DBG_871X("0x%02x", data[i]);
sprintf(extra, "%s 0x%02X", extra, data[i+j]);
- DBG_8192C(" ");
+ DBG_871X(" ");
sprintf(extra,"%s ",extra);
}
wrqu->length = strlen(extra);
@@ -7271,7 +8878,7 @@ static int rtw_mp_efuse_get(struct net_device *dev,
static int rtw_mp_efuse_set(struct net_device *dev,
struct iw_request_info *info,
- union iwreq_data *wdata, char *extra)
+ union iwreq_data *wdata, char *extra)
{
struct iw_point *wrqu = (struct iw_point *)wdata;
PADAPTER padapter = rtw_netdev_priv(dev);
@@ -7286,7 +8893,7 @@ static int rtw_mp_efuse_set(struct net_device *dev,
u32 cnts = 0;
pch = extra;
- DBG_8192C("%s: in=%s\n", __func__, extra);
+ DBG_871X("%s: in=%s\n", __func__, extra);
i=0;
while ( (token = strsep (&pch,",") )!=NULL )
@@ -7304,13 +8911,13 @@ static int rtw_mp_efuse_set(struct net_device *dev,
addr = simple_strtoul( tmp[1], &ptmp, 16 );
addr = addr & 0xFF;
- DBG_8192C("addr = %x \n" ,addr);
+ DBG_871X("addr = %x \n" ,addr);
cnts = strlen( tmp[2] )/2;
if ( cnts == 0) return -EFAULT;
- DBG_8192C("cnts = %d \n" ,cnts);
- DBG_8192C("target data = %s \n" ,tmp[2]);
+ DBG_871X("cnts = %d \n" ,cnts);
+ DBG_871X("target data = %s \n" ,tmp[2]);
for( jj = 0, kk = 0; jj < cnts; jj++, kk += 2 )
{
@@ -7320,14 +8927,14 @@ static int rtw_mp_efuse_set(struct net_device *dev,
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if ((addr + cnts) > max_available_size) {
- DBG_8192C("parameter error \n");
+ DBG_871X("parameter error \n");
return -EFAULT;
}
if (rtw_efuse_map_write(padapter, addr, cnts, setdata) == _FAIL) {
- DBG_8192C("rtw_efuse_map_write error \n");
+ DBG_871X("rtw_efuse_map_write error \n");
return -EFAULT;
} else
- DBG_8192C("rtw_efuse_map_write ok \n");
+ DBG_871X("rtw_efuse_map_write ok \n");
return 0;
}
@@ -7336,13 +8943,13 @@ static int rtw_mp_efuse_set(struct net_device *dev,
if ( ! strlen( tmp[2] )/2 > 1 ) return -EFAULT;
addr = simple_strtoul( tmp[1], &ptmp, 16 );
addr = addr & 0xFF;
- DBG_8192C("addr = %x \n" ,addr);
+ DBG_871X("addr = %x \n" ,addr);
cnts=strlen( tmp[2] )/2;
if ( cnts == 0) return -EFAULT;
- DBG_8192C(" cnts = %d \n" ,cnts );
- DBG_8192C("target data = %s \n" ,tmp[2] );
+ DBG_871X(" cnts = %d \n" ,cnts );
+ DBG_871X("target data = %s \n" ,tmp[2] );
for( jj = 0, kk = 0; jj < cnts; jj++, kk += 2 )
{
@@ -7350,10 +8957,10 @@ static int rtw_mp_efuse_set(struct net_device *dev,
}
if ( rtw_efuse_access( padapter, _TRUE, addr, cnts, setrawdata ) == _FAIL ){
- DBG_8192C("\t rtw_efuse_map_read : Fail \n");
+ DBG_871X("\t rtw_efuse_map_read : Fail \n");
return -EFAULT;
} else
- DBG_8192C("\t rtw_efuse_access raw ok \n");
+ DBG_871X("\t rtw_efuse_access raw ok \n");
return 0;
}
@@ -7369,11 +8976,11 @@ static int rtw_mp_efuse_set(struct net_device *dev,
cnts = strlen( tmp[1] )/2;
if ( cnts == 0) return -EFAULT;
if ( cnts > 6 ){
- DBG_8192C("error data for mac addr = %s \n" ,tmp[1]);
+ DBG_871X("error data for mac addr = %s \n" ,tmp[1]);
return -EFAULT;
}
- DBG_8192C("target data = %s \n" ,tmp[1]);
+ DBG_871X("target data = %s \n" ,tmp[1]);
for( jj = 0, kk = 0; jj < cnts; jj++, kk += 2 )
{
@@ -7383,14 +8990,14 @@ static int rtw_mp_efuse_set(struct net_device *dev,
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if ((addr + cnts) > max_available_size) {
- DBG_8192C("parameter error \n");
+ DBG_871X("parameter error \n");
return -EFAULT;
}
if ( rtw_efuse_map_write(padapter, addr, cnts, setdata) == _FAIL ) {
- DBG_8192C("rtw_efuse_map_write error \n");
+ DBG_871X("rtw_efuse_map_write error \n");
return -EFAULT;
} else
- DBG_8192C("rtw_efuse_map_write ok \n");
+ DBG_871X("rtw_efuse_map_write ok \n");
return 0;
}
@@ -7406,7 +9013,7 @@ static int rtw_mp_efuse_set(struct net_device *dev,
cnts=strlen( tmp[1] )/2;
if ( cnts == 0) return -EFAULT;
- DBG_8192C("target data = %s \n" ,tmp[1]);
+ DBG_871X("target data = %s \n" ,tmp[1]);
for( jj = 0, kk = 0; jj < cnts; jj++, kk += 2 )
{
@@ -7416,20 +9023,20 @@ static int rtw_mp_efuse_set(struct net_device *dev,
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if ((addr + cnts) > max_available_size) {
- DBG_8192C("parameter error \n");
+ DBG_871X("parameter error \n");
return -EFAULT;
}
if ( rtw_efuse_map_write(padapter, addr, cnts, setdata) == _FAIL ) {
- DBG_8192C("rtw_efuse_map_write error \n");
+ DBG_871X("rtw_efuse_map_write error \n");
return -EFAULT;
} else
- DBG_8192C("rtw_efuse_map_write ok \n");
+ DBG_871X("rtw_efuse_map_write ok \n");
return 0;
}
else{
- DBG_8192C("Command not found\n");
+ DBG_871X("Command not found\n");
return 0;
}
@@ -7534,12 +9141,15 @@ static int rtw_mp_read_reg(struct net_device *dev,
u32 ret, i=0, j=0, strtout=0;
PADAPTER padapter = rtw_netdev_priv(dev);
-
if (wrqu->length > 128) return -EFAULT;
if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
+ _rtw_memset(data, 0, 20);
+ _rtw_memset(tmp, 0, 20);
+ _rtw_memset(extra, 0, wrqu->length);
+
pch = input;
pnext = strpbrk(pch, " ,.-");
if (pnext == NULL) return -EINVAL;
@@ -7559,7 +9169,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
// 1 byte
// *(u8*)data = rtw_read8(padapter, addr);
sprintf(extra, "%d\n", rtw_read8(padapter, addr));
- wrqu->length = 4;
+ wrqu->length = strlen(extra);
break;
case 'w':
// 2 bytes
@@ -7578,7 +9188,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
j++;
}
pch = tmp;
- DBG_8192C("pch=%s",pch);
+ DBG_871X("pch=%s",pch);
while( *pch != '\0' )
{
@@ -7594,7 +9204,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
}
pch = pnext;
}
- wrqu->length = 8;
+ wrqu->length = 6;
break;
case 'd':
// 4 bytes
@@ -7612,7 +9222,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
j++;
}
pch = tmp;
- DBG_8192C("pch=%s",pch);
+ DBG_871X("pch=%s",pch);
while( *pch != '\0' )
{
@@ -7628,7 +9238,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
}
pch = pnext;
}
- wrqu->length = 20;
+ wrqu->length = strlen(extra);
break;
default:
@@ -7666,9 +9276,12 @@ static int rtw_mp_read_reg(struct net_device *dev,
if (path >= MAX_RF_PATH_NUMS) return -EINVAL;
if (addr > 0xFF) return -EINVAL;
if (data > 0xFFFFF) return -EINVAL;
+ _rtw_memset(extra, 0, wrqu->length);
write_rfreg(padapter, path, addr, data);
+ sprintf(extra, "write_rf completed \n");
+
return 0;
}
@@ -7697,12 +9310,14 @@ static int rtw_mp_read_rf(struct net_device *dev,
if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
- ret = sscanf(extra, "%d,%x", &path, &addr);
+ ret = sscanf(input, "%d,%x", &path, &addr);
if (ret < 2) return -EINVAL;
if (path >= MAX_RF_PATH_NUMS) return -EINVAL;
if (addr > 0xFF) return -EINVAL;
+ _rtw_memset(extra, 0, wrqu->length);
+
//*data = read_rfreg(padapter, path, addr);
sprintf(data, "%08x", read_rfreg(padapter, path, addr));
//add read data format blank
@@ -7717,7 +9332,7 @@ static int rtw_mp_read_rf(struct net_device *dev,
j++;
}
pch = tmp;
- DBG_8192C("pch=%s",pch);
+ DBG_871X("pch=%s",pch);
while( *pch != '\0' )
{
@@ -7733,7 +9348,7 @@ static int rtw_mp_read_rf(struct net_device *dev,
}
pch = pnext;
}
- wrqu->length = 10;
+ wrqu->length = strlen(extra);
return 0;
}
@@ -7794,7 +9409,7 @@ static int rtw_mp_rate(struct net_device *dev,
else
rate =(rate-0x80+MPT_RATE_MCS0);
- //DBG_8192C("%s: rate=%d\n", __func__, rate);
+ //DBG_871X("%s: rate=%d\n", __func__, rate);
if (rate >= MPT_RATE_LAST )
return -EINVAL;
@@ -7819,7 +9434,7 @@ static int rtw_mp_channel(struct net_device *dev,
return -EFAULT;
channel = rtw_atoi(input);
- //DBG_8192C("%s: channel=%d\n", __func__, channel);
+ //DBG_871X("%s: channel=%d\n", __func__, channel);
sprintf( extra, "Change channel %d to channel %d", padapter->mppriv.channel , channel );
padapter->mppriv.channel = channel;
@@ -7839,14 +9454,14 @@ static int rtw_mp_bandwidth(struct net_device *dev,
//if (copy_from_user(buffer, (void*)wrqu->data.pointer, wrqu->data.length))
// return -EFAULT;
- //DBG_8192C("%s:iwpriv in=%s\n", __func__, extra);
+ //DBG_871X("%s:iwpriv in=%s\n", __func__, extra);
sscanf(extra, "40M=%d,shortGI=%d", &bandwidth, &sg);
if (bandwidth != HT_CHANNEL_WIDTH_40)
bandwidth = HT_CHANNEL_WIDTH_20;
- //DBG_8192C("%s: bw=%d sg=%d \n", __func__, bandwidth , sg);
+ //DBG_871X("%s: bw=%d sg=%d \n", __func__, bandwidth , sg);
padapter->mppriv.bandwidth = (u8)bandwidth;
padapter->mppriv.preamble = sg;
@@ -7869,7 +9484,7 @@ static int rtw_mp_txpower(struct net_device *dev,
return -EFAULT;
sscanf(input,"patha=%d,pathb=%d",&idx_a,&idx_b);
- //DBG_8192C("%s: tx_pwr_idx_a=%x b=%x\n", __func__, idx_a, idx_b);
+ //DBG_871X("%s: tx_pwr_idx_a=%x b=%x\n", __func__, idx_a, idx_b);
sprintf( extra, "Set power level path_A:%d path_B:%d", idx_a , idx_b );
padapter->mppriv.txpoweridx = (u8)idx_a;
@@ -7893,7 +9508,7 @@ static int rtw_mp_ant_tx(struct net_device *dev,
if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
- DBG_8192C("%s: input=%s\n", __func__, input);
+ //DBG_871X("%s: input=%s\n", __func__, input);
sprintf( extra, "switch Tx antenna to %s", input );
@@ -7910,9 +9525,9 @@ static int rtw_mp_ant_tx(struct net_device *dev,
}
}
//antenna |= BIT(extra[i]-'a');
- DBG_8192C("%s: antenna=0x%x\n", __func__, antenna);
+ //DBG_871X("%s: antenna=0x%x\n", __func__, antenna);
padapter->mppriv.antenna_tx = antenna;
- DBG_8192C("%s:mppriv.antenna_rx=%d\n", __func__, padapter->mppriv.antenna_tx);
+ //DBG_871X("%s:mppriv.antenna_rx=%d\n", __func__, padapter->mppriv.antenna_tx);
Hal_SetAntenna(padapter);
@@ -7931,8 +9546,11 @@ static int rtw_mp_ant_rx(struct net_device *dev,
if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
- //DBG_8192C("%s: input=%s\n", __func__, input);
-
+ //DBG_871X("%s: input=%s\n", __func__, input);
+ _rtw_memset(extra, 0, wrqu->length);
+
+ sprintf( extra, "switch Rx antenna to %s", input );
+
for (i=0; i < strlen(input); i++) {
switch( input[i] )
@@ -7946,11 +9564,11 @@ static int rtw_mp_ant_rx(struct net_device *dev,
}
}
- //DBG_8192C("%s: antenna=0x%x\n", __func__, antenna);
+ //DBG_871X("%s: antenna=0x%x\n", __func__, antenna);
padapter->mppriv.antenna_rx = antenna;
- //DBG_8192C("%s:mppriv.antenna_rx=%d\n", __func__, padapter->mppriv.antenna_rx);
+ //DBG_871X("%s:mppriv.antenna_rx=%d\n", __func__, padapter->mppriv.antenna_rx);
Hal_SetAntenna(padapter);
- wrqu->length = strlen(extra) + 1;
+ wrqu->length = strlen(extra);
return 0;
}
@@ -7973,7 +9591,7 @@ static int rtw_mp_ctx(struct net_device *dev,
if (copy_from_user(extra, wrqu->pointer, wrqu->length))
return -EFAULT;
- DBG_8192C("%s: in=%s\n", __func__, extra);
+ DBG_871X("%s: in=%s\n", __func__, extra);
countPkTx = strncmp(extra, "count=", 5); // strncmp TRUE is 0
cotuTx = strncmp(extra, "background", 20);
@@ -7984,9 +9602,9 @@ static int rtw_mp_ctx(struct net_device *dev,
stop = strncmp(extra, "stop", 5);
sscanf(extra, "count=%d,pkt", &count);
- //DBG_8192C("%s: count=%d countPkTx=%d cotuTx=%d CarrSprTx=%d scTx=%d sgleTx=%d pkTx=%d stop=%d\n", __func__, count, countPkTx, cotuTx, CarrSprTx, pkTx, sgleTx, scTx, stop);
+ //DBG_871X("%s: count=%d countPkTx=%d cotuTx=%d CarrSprTx=%d scTx=%d sgleTx=%d pkTx=%d stop=%d\n", __func__, count, countPkTx, cotuTx, CarrSprTx, pkTx, sgleTx, scTx, stop);
_rtw_memset(extra, '\0', sizeof(extra));
-
+
if (stop == 0) {
bStartTest = 0; // To set Stop
pmp_priv->tx.stop = 1;
@@ -7995,7 +9613,7 @@ static int rtw_mp_ctx(struct net_device *dev,
bStartTest = 1;
if (pmp_priv->mode != MP_ON) {
if (pmp_priv->tx.stop != 1) {
- DBG_8192C("%s: MP_MODE != ON %d\n", __func__, pmp_priv->mode);
+ DBG_871X("%s: MP_MODE != ON %d\n", __func__, pmp_priv->mode);
return -EFAULT;
}
}
@@ -8016,7 +9634,7 @@ static int rtw_mp_ctx(struct net_device *dev,
{
case MP_PACKET_TX:
- //DBG_8192C("%s:pkTx %d\n", __func__,bStartTest);
+ //DBG_871X("%s:pkTx %d\n", __func__,bStartTest);
if (bStartTest == 0)
{
pmp_priv->tx.stop = 1;
@@ -8026,7 +9644,7 @@ static int rtw_mp_ctx(struct net_device *dev,
else if (pmp_priv->tx.stop == 1)
{
sprintf( extra, "Start continuous DA=ffffffffffff len=1500 count=%u,\n",count);
- //DBG_8192C("%s:countPkTx %d\n", __func__,count);
+ //DBG_871X("%s:countPkTx %d\n", __func__,count);
pmp_priv->tx.stop = 0;
pmp_priv->tx.count = count;
pmp_priv->tx.payload = 2;
@@ -8036,50 +9654,51 @@ static int rtw_mp_ctx(struct net_device *dev,
SetPacketTx(padapter);
}
else {
- //DBG_8192C("%s: pkTx not stop\n", __func__);
+ //DBG_871X("%s: pkTx not stop\n", __func__);
return -EFAULT;
}
wrqu->length = strlen(extra);
- return 0;
+ return 0;
case MP_SINGLE_TONE_TX:
- //DBG_8192C("%s: sgleTx %d \n", __func__, bStartTest);
+ //DBG_871X("%s: sgleTx %d \n", __func__, bStartTest);
if (bStartTest != 0){
sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes.");
- Hal_SetSingleToneTx(padapter, (u8)bStartTest);
- }
+
+ }
+ Hal_SetSingleToneTx(padapter, (u8)bStartTest);
break;
case MP_CONTINUOUS_TX:
- //DBG_8192C("%s: cotuTx %d\n", __func__, bStartTest);
+ DBG_871X("%s: cotuTx %d\n", __func__, bStartTest);
if (bStartTest != 0){
sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes.");
- Hal_SetContinuousTx(padapter, (u8)bStartTest);
}
+ Hal_SetContinuousTx(padapter, (u8)bStartTest);
break;
case MP_CARRIER_SUPPRISSION_TX:
- //DBG_8192C("%s: CarrSprTx %d\n", __func__, bStartTest);
+ //DBG_871X("%s: CarrSprTx %d\n", __func__, bStartTest);
if (bStartTest != 0){
if( pmp_priv->rateidx <= MPT_RATE_11M )
{
sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes.");
- Hal_SetCarrierSuppressionTx(padapter, (u8)bStartTest);
}else
sprintf( extra, "Specify carrier suppression but not CCK rate");
}
+ Hal_SetCarrierSuppressionTx(padapter, (u8)bStartTest);
break;
case MP_SINGLE_CARRIER_TX:
- //DBG_8192C("%s: scTx %d\n", __func__, bStartTest);
+ //DBG_871X("%s: scTx %d\n", __func__, bStartTest);
if (bStartTest != 0){
sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes.");
- Hal_SetSingleCarrierTx(padapter, (u8)bStartTest);
}
+ Hal_SetSingleCarrierTx(padapter, (u8)bStartTest);
break;
default:
- //DBG_8192C("%s:No Match MP_MODE\n", __func__);
+ //DBG_871X("%s:No Match MP_MODE\n", __func__);
sprintf( extra, "Error! Continuous-Tx is not on-going.");
return -EFAULT;
}
@@ -8088,7 +9707,7 @@ static int rtw_mp_ctx(struct net_device *dev,
struct mp_priv *pmp_priv = &padapter->mppriv;
if (pmp_priv->tx.stop == 0) {
pmp_priv->tx.stop = 1;
- //DBG_8192C("%s: pkt tx is running...\n", __func__);
+ //DBG_871X("%s: pkt tx is running...\n", __func__);
rtw_msleep_os(5);
}
pmp_priv->tx.stop = 0;
@@ -8113,7 +9732,7 @@ static int rtw_mp_arx(struct net_device *dev,
if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
- DBG_8192C("%s: %s\n", __func__, input);
+ DBG_871X("%s: %s\n", __func__, input);
bStartRx = (strncmp(input, "start", 5)==0)?1:0; // strncmp TRUE is 0
bStopRx = (strncmp(input, "stop", 5)==0)?1:0; // strncmp TRUE is 0
@@ -8166,23 +9785,33 @@ static int rtw_mp_pwrtrk(struct net_device *dev,
u32 thermal;
s32 ret;
PADAPTER padapter = rtw_netdev_priv(dev);
+ u8 input[wrqu->length];
+ if (copy_from_user(input, wrqu->pointer, wrqu->length))
+ return -EFAULT;
+ _rtw_memset(extra, 0, wrqu->length);
+
enable = 1;
if (wrqu->length > 1) { // not empty string
- if (strncmp(extra, "stop", 4) == 0)
+ if (strncmp(input, "stop", 4) == 0)
+ {
enable = 0;
- else {
- if (sscanf(extra, "ther=%d", &thermal)) {
+ sprintf(extra, "mp tx power tracking stop");
+ }
+ else if (sscanf(input, "ther=%d", &thermal)) {
ret = Hal_SetThermalMeter(padapter, (u8)thermal);
if (ret == _FAIL) return -EPERM;
- } else
- return -EINVAL;
+ sprintf(extra, "mp tx power tracking start,target value=%d ok ",thermal);
+ }else {
+ return -EINVAL;
}
}
ret = Hal_SetPowerTracking(padapter, enable);
if (ret == _FAIL) return -EPERM;
+
+ wrqu->length = strlen(extra);
return 0;
}
@@ -8192,13 +9821,15 @@ static int rtw_mp_psd(struct net_device *dev,
struct iw_point *wrqu, char *extra)
{
PADAPTER padapter = rtw_netdev_priv(dev);
+ u8 input[wrqu->length];
-
- if (copy_from_user(extra, wrqu->pointer, wrqu->length))
+ if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
- wrqu->length = mp_query_psd(padapter, extra);
+ strcpy(extra,input);
+ wrqu->length = mp_query_psd(padapter, extra);
+
return 0;
}
@@ -8206,7 +9837,7 @@ static int rtw_mp_thermal(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *wrqu, char *extra)
{
- u8 val;
+ u8 val;
u16 bwrite=1;
#ifdef CONFIG_RTL8192C
u16 addr=0x78;
@@ -8221,7 +9852,7 @@ static int rtw_mp_thermal(struct net_device *dev,
if (copy_from_user(extra, wrqu->pointer, wrqu->length))
return -EFAULT;
- //DBG_8192C("print extra %s \n",extra);
+ //DBG_871X("print extra %s \n",extra);
bwrite = strncmp(extra, "write", 6); // strncmp TRUE is 0
@@ -8229,16 +9860,16 @@ static int rtw_mp_thermal(struct net_device *dev,
if( bwrite == 0 )
{
- //DBG_8192C("to write val:%d",val);
+ //DBG_871X("to write val:%d",val);
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (PVOID)&max_available_size, _FALSE);
if( 2 > max_available_size )
{
- DBG_8192C("no available efuse!\n");
+ DBG_871X("no available efuse!\n");
return -EFAULT;
}
if ( rtw_efuse_map_write(padapter, addr, cnt, &val) == _FAIL )
{
- DBG_8192C("rtw_efuse_map_write error \n");
+ DBG_871X("rtw_efuse_map_write error \n");
return -EFAULT;
}
else
@@ -8248,7 +9879,7 @@ static int rtw_mp_thermal(struct net_device *dev,
}
else
{
- sprintf(extra, "%d", val);
+ sprintf(extra, "%d", val);
}
wrqu->length = strlen(extra);
@@ -8291,24 +9922,24 @@ static int rtw_mp_dump(struct net_device *dev,
if ( strncmp(extra, "all", 4)==0 )
{
- DBG_8192C("\n======= MAC REG =======\n");
+ DBG_871X("\n======= MAC REG =======\n");
for ( i=0x0;i<0x300;i+=4 )
{
- if(j%4==1) DBG_8192C("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x",i);
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
for( i=0x400;i<0x800;i+=4 )
{
- if(j%4==1) DBG_8192C("0x%02x",i);
- DBG_8192C(" 0x%08x ",rtw_read32(padapter,i));
- if((j++)%4 == 0) DBG_8192C("\n");
+ if(j%4==1) DBG_871X("0x%02x",i);
+ DBG_871X(" 0x%08x ",rtw_read32(padapter,i));
+ if((j++)%4 == 0) DBG_871X("\n");
}
i,j=1;
- padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
- DBG_8192C("\n======= RF REG =======\n");
+ DBG_871X("\n======= RF REG =======\n");
if(( RF_1T2R == rf_type ) ||( RF_1T1R ==rf_type ))
path_nums = 1;
else
@@ -8323,10 +9954,10 @@ static int rtw_mp_dump(struct net_device *dev,
#endif
{
//value = PHY_QueryRFReg(padapter, (RF90_RADIO_PATH_E)path,i, bMaskDWord);
- value =padapter->HalFunc.read_rfreg(padapter, path, i, 0xffffffff);
- if(j%4==1) DBG_8192C("0x%02x ",i);
- DBG_8192C(" 0x%08x ",value);
- if((j++)%4==0) DBG_8192C("\n");
+ value =rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
+ if(j%4==1) DBG_871X("0x%02x ",i);
+ DBG_871X(" 0x%08x ",value);
+ if((j++)%4==0) DBG_871X("\n");
}
}
}
@@ -8345,7 +9976,7 @@ static int rtw_mp_phypara(struct net_device *dev,
if (copy_from_user(input, wrqu->pointer, wrqu->length))
return -EFAULT;
- DBG_8192C("%s:iwpriv in=%s\n", __func__, input);
+ DBG_871X("%s:iwpriv in=%s\n", __func__, input);
sscanf(input, "xcap=%d", &valxcap);
@@ -8407,31 +10038,27 @@ static int rtw_mp_set(struct net_device *dev,
break;
case MP_START:
- DBG_8192C("set case mp_start \n");
+ DBG_871X("set case mp_start \n");
rtw_mp_start (dev,info,wrqu,extra);
break;
case MP_STOP:
- DBG_8192C("set case mp_stop \n");
+ DBG_871X("set case mp_stop \n");
rtw_mp_stop (dev,info,wrqu,extra);
break;
case MP_BANDWIDTH:
- DBG_8192C("set case mp_bandwidth \n");
+ DBG_871X("set case mp_bandwidth \n");
rtw_mp_bandwidth (dev,info,wrqu,extra);
break;
- case MP_PWRTRK:
- DBG_8192C("set case MP_PWRTRK \n");
- rtw_mp_pwrtrk (dev,info,wrqu,extra);
- break;
case MP_RESET_STATS:
- DBG_8192C("set case MP_RESET_STATS \n");
+ DBG_871X("set case MP_RESET_STATS \n");
rtw_mp_reset_stats (dev,info,wrqu,extra);
break;
case EFUSE_SET:
- DBG_8192C("efuse set \n");
+ DBG_871X("efuse set \n");
rtw_mp_efuse_set (dev,info,wdata,extra);
break;
@@ -8450,7 +10077,7 @@ static int rtw_mp_get(struct net_device *dev,
u32 subcmd = wrqu->flags;
PADAPTER padapter = rtw_netdev_priv(dev);
- DBG_8192C("in mp_get extra= %s \n",extra);
+ //DBG_871X("in mp_get extra= %s \n",extra);
if (padapter == NULL)
{
@@ -8465,86 +10092,212 @@ static int rtw_mp_get(struct net_device *dev,
switch(subcmd)
{
case MP_PHYPARA:
- DBG_8192C("mp_get MP_PHYPARA \n");
+ DBG_871X("mp_get MP_PHYPARA \n");
rtw_mp_phypara(dev,info,wrqu,extra);
break;
case MP_CHANNEL:
- DBG_8192C("set case mp_channel \n");
+ DBG_871X("set case mp_channel \n");
rtw_mp_channel (dev,info,wrqu,extra);
break;
case READ_REG:
- DBG_8192C("mp_get READ_REG \n");
+ DBG_871X("mp_get READ_REG \n");
rtw_mp_read_reg (dev,info,wrqu,extra);
break;
case READ_RF:
- DBG_8192C("mp_get READ_RF \n");
+ DBG_871X("mp_get READ_RF \n");
rtw_mp_read_rf (dev,info,wrqu,extra);
break;
case MP_RATE:
- DBG_8192C("set case mp_rate \n");
+ DBG_871X("set case mp_rate \n");
rtw_mp_rate (dev,info,wrqu,extra);
break;
case MP_TXPOWER:
- DBG_8192C("set case MP_TXPOWER \n");
+ DBG_871X("set case MP_TXPOWER \n");
rtw_mp_txpower (dev,info,wrqu,extra);
break;
case MP_ANT_TX:
- DBG_8192C("set case MP_ANT_TX \n");
+ DBG_871X("set case MP_ANT_TX \n");
rtw_mp_ant_tx (dev,info,wrqu,extra);
break;
case MP_ANT_RX:
- DBG_8192C("set case MP_ANT_RX \n");
+ DBG_871X("set case MP_ANT_RX \n");
rtw_mp_ant_rx (dev,info,wrqu,extra);
break;
case MP_QUERY:
- DBG_8192C("mp_get mp_query MP_QUERY \n");
+ DBG_871X("mp_get mp_query MP_QUERY \n");
rtw_mp_trx_query(dev,info,wrqu,extra);
break;
case MP_CTX:
- DBG_8192C("set case MP_CTX \n");
+ DBG_871X("set case MP_CTX \n");
rtw_mp_ctx (dev,info,wrqu,extra);
break;
case MP_ARX:
- DBG_8192C("set case MP_ARX \n");
+ DBG_871X("set case MP_ARX \n");
rtw_mp_arx (dev,info,wrqu,extra);
break;
case EFUSE_GET:
- DBG_8192C("efuse get EFUSE_GET \n");
+ DBG_871X("efuse get EFUSE_GET \n");
rtw_mp_efuse_get(dev,info,wdata,extra);
break;
case MP_DUMP:
- DBG_8192C("set case MP_DUMP \n");
+ DBG_871X("set case MP_DUMP \n");
rtw_mp_dump (dev,info,wrqu,extra);
break;
case MP_PSD:
- DBG_8192C("set case MP_PSD \n");
+ DBG_871X("set case MP_PSD \n");
rtw_mp_psd (dev,info,wrqu,extra);
- break;
-
+ break;
+
case MP_THER:
- DBG_8192C("set case MP_THER \n");
+ DBG_871X("set case MP_THER \n");
rtw_mp_thermal (dev,info,wrqu,extra);
- break;
-
+ break;
+
+ case MP_PWRTRK:
+ DBG_871X("set case MP_PWRTRK \n");
+ rtw_mp_pwrtrk (dev,info,wrqu,extra);
+ break;
+ }
+
+return 0;
+}
+
+#endif //#if defined(CONFIG_MP_INCLUDED) && defined(CONFIG_MP_IWPRIV_SUPPORT)
+
+static int rtw_wfd_tdls_enable(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+#ifdef CONFIG_WFD
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+
+ if ( extra[ 0 ] == '0' )
+ {
+ padapter->wdinfo.wfd_tdls_enable = 0;
+ }
+ else
+ {
+ padapter->wdinfo.wfd_tdls_enable = 1;
}
-return 0;
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
+
+ return ret;
+}
+
+static int rtw_tdls_weaksec(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+
+ u8 i, j;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+
+ DBG_871X( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+
+ if ( extra[ 0 ] == '0' )
+ {
+ padapter->wdinfo.wfd_tdls_weaksec = 0;
+ }
+ else
+ {
+ padapter->wdinfo.wfd_tdls_weaksec = 1;
+ }
+#endif
+
+ return ret;
}
-#endif //#if defined(CONFIG_MP_INCLUDED) && defined(CONFIG_MP_IWPRIV_SUPPORT)
+static int rtw_tdls_enable(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ _irqL irqL;
+ _list *plist, *phead;
+ s32 index;
+ struct sta_info *psta = NULL;
+ struct sta_priv *pstapriv = &padapter->stapriv;
+ u8 tdls_sta[NUM_STA][ETH_ALEN];
+ u8 empty_hwaddr[ETH_ALEN] = { 0x00 };
+
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+
+ _rtw_memset(tdls_sta, 0x00, sizeof(tdls_sta));
+
+ if ( extra[ 0 ] == '0' )
+ {
+ ptdlsinfo->enable = 0;
+
+ if(pstapriv->asoc_sta_count==1)
+ return ret;
+
+ _enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+ for(index=0; index< NUM_STA; index++)
+ {
+ phead = &(pstapriv->sta_hash[index]);
+ plist = get_next(phead);
+
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
+ {
+ psta = LIST_CONTAINOR(plist, struct sta_info ,hash_list);
+
+ plist = get_next(plist);
+
+ if(psta->tdls_sta_state != TDLS_STATE_NONE)
+ {
+ _rtw_memcpy(tdls_sta[index], psta->hwaddr, ETH_ALEN);
+ }
+ }
+ }
+ _exit_critical_bh(&pstapriv->sta_hash_lock, &irqL);
+ for(index=0; index< NUM_STA; index++)
+ {
+ if( !_rtw_memcmp(tdls_sta[index], empty_hwaddr, ETH_ALEN) )
+ {
+ printk("issue tear down to "MAC_FMT"\n", MAC_ARG(tdls_sta[index]));
+ issue_tdls_teardown(padapter, tdls_sta[index]);
+ }
+ }
+ rtw_tdls_cmd(padapter, myid(&(padapter->eeprompriv)), TDLS_RS_RCR);
+ rtw_reset_tdls_info(padapter);
+ }
+ else if ( extra[ 0 ] == '1' )
+ {
+ ptdlsinfo->enable = 1;
+ }
+#endif //CONFIG_TDLS
+
+ return ret;
+}
static int rtw_tdls_setup(struct net_device *dev,
struct iw_request_info *info,
@@ -8558,20 +10311,40 @@ static int rtw_tdls_setup(struct net_device *dev,
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
u8 mac_addr[ETH_ALEN];
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+#ifdef CONFIG_WFD
+ struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
+#endif // CONFIG_WFD
+
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
for( i=0, j=0 ; i < ETH_ALEN; i++, j+=3 ){
mac_addr[i]=key_2char2num(*(extra+j), *(extra+j+1));
}
- issue_tdls_setup_req(padapter, mac_addr);
-
+#ifdef CONFIG_WFD
+ if ( _AES_ != padapter->securitypriv.dot11PrivacyAlgrthm )
+ {
+ // Weak Security situation with AP.
+ if ( 0 == pwdinfo->wfd_tdls_weaksec )
+ {
+ // Can't send the tdls setup request out!!
+ DBG_871X( "[%s] Current link is not AES, SKIP sending the tdls setup request!!\n", __FUNCTION__ );
+ }
+ else
+ {
+ issue_tdls_setup_req(padapter, mac_addr);
+ }
+ }
+ else
+#endif // CONFIG_WFD
+ {
+ issue_tdls_setup_req(padapter, mac_addr);
+ }
#endif
return ret;
}
-
static int rtw_tdls_teardown(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -8585,12 +10358,12 @@ static int rtw_tdls_teardown(struct net_device *dev,
struct sta_info *ptdls_sta = NULL;
u8 mac_addr[ETH_ALEN];
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
for( i=0, j=0 ; i < ETH_ALEN; i++, j+=3 ){
mac_addr[i]=key_2char2num(*(extra+j), *(extra+j+1));
}
-
+
ptdls_sta = rtw_get_stainfo( &(padapter->stapriv), mac_addr);
if(ptdls_sta != NULL)
@@ -8599,12 +10372,11 @@ static int rtw_tdls_teardown(struct net_device *dev,
issue_tdls_teardown(padapter, mac_addr);
}
-#endif
+#endif //CONFIG_TDLS
return ret;
}
-
static int rtw_tdls_discovery(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -8617,11 +10389,11 @@ static int rtw_tdls_discovery(struct net_device *dev,
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
issue_tdls_dis_req(padapter, NULL);
-#endif
+#endif //CONFIG_TDLS
return ret;
}
@@ -8639,7 +10411,7 @@ static int rtw_tdls_ch_switch(struct net_device *dev,
u8 i, j, mac_addr[ETH_ALEN];
struct sta_info *ptdls_sta = NULL;
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
for( i=0, j=0 ; i < ETH_ALEN; i++, j+=3 ){
mac_addr[i]=key_2char2num(*(extra+j), *(extra+j+1));
@@ -8648,15 +10420,14 @@ static int rtw_tdls_ch_switch(struct net_device *dev,
ptdls_sta = rtw_get_stainfo(&padapter->stapriv, mac_addr);
if( ptdls_sta == NULL )
return ret;
- ptdls_sta->option=4;
ptdlsinfo->ch_sensing=1;
rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_INIT_CH_SEN);
-
-#endif
+
+#endif //CONFIG_TDLS
return ret;
- }
+}
static int rtw_tdls_pson(struct net_device *dev,
struct iw_request_info *info,
@@ -8672,7 +10443,7 @@ static int rtw_tdls_pson(struct net_device *dev,
u8 i, j, mac_addr[ETH_ALEN];
struct sta_info *ptdls_sta = NULL;
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
for( i=0, j=0 ; i < ETH_ALEN; i++, j+=3 ){
mac_addr[i]=key_2char2num(*(extra+j), *(extra+j+1));
@@ -8682,9 +10453,9 @@ static int rtw_tdls_pson(struct net_device *dev,
issue_nulldata_to_TDLS_peer_STA(padapter, ptdls_sta, 1);
-#endif
+#endif //CONFIG_TDLS
- return ret;
+ return ret;
}
static int rtw_tdls_psoff(struct net_device *dev,
@@ -8701,7 +10472,7 @@ static int rtw_tdls_psoff(struct net_device *dev,
u8 i, j, mac_addr[ETH_ALEN];
struct sta_info *ptdls_sta = NULL;
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
for( i=0, j=0 ; i < ETH_ALEN; i++, j+=3 ){
mac_addr[i]=key_2char2num(*(extra+j), *(extra+j+1));
@@ -8711,11 +10482,187 @@ static int rtw_tdls_psoff(struct net_device *dev,
issue_nulldata_to_TDLS_peer_STA(padapter, ptdls_sta, 0);
-#endif
+#endif //CONFIG_TDLS
+
+ return ret;
+}
+
+static int rtw_tdls_setip(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+#ifdef CONFIG_WFD
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct wifi_display_info *pwfd_info = ptdlsinfo->wfd_info;
+ u8 i=0, j=0, k=0, tag=0, ip[3] = { 0xff }, *ptr = extra;
+
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1 );
+
+
+ while( i < 4 )
+ {
+ for( j=0; j < 4; j++)
+ {
+ if( *( extra + j + tag ) == '.' || *( extra + j + tag ) == '\0' )
+ {
+ if( j == 1 )
+ pwfd_info->ip_address[i]=convert_ip_addr( '0', '0', *(extra+(j-1)+tag));
+ if( j == 2 )
+ pwfd_info->ip_address[i]=convert_ip_addr( '0', *(extra+(j-2)+tag), *(extra+(j-1)+tag));
+ if( j == 3 )
+ pwfd_info->ip_address[i]=convert_ip_addr( *(extra+(j-3)+tag), *(extra+(j-2)+tag), *(extra+(j-1)+tag));
+
+ tag += j + 1;
+ break;
+ }
+ }
+ i++;
+ }
+
+ printk( "[%s] Set IP = %u.%u.%u.%u \n", __FUNCTION__,
+ ptdlsinfo->wfd_info->ip_address[0], ptdlsinfo->wfd_info->ip_address[1],
+ ptdlsinfo->wfd_info->ip_address[2], ptdlsinfo->wfd_info->ip_address[3]
+ );
+
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
+
+ return ret;
+}
+
+static int rtw_tdls_getip(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+#ifdef CONFIG_WFD
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct wifi_display_info *pwfd_info = ptdlsinfo->wfd_info;
+
+ printk( "[%s]\n", __FUNCTION__);
+
+ sprintf( extra, "\n\n%u.%u.%u.%u\n",
+ pwfd_info->peer_ip_address[0], pwfd_info->peer_ip_address[1],
+ pwfd_info->peer_ip_address[2], pwfd_info->peer_ip_address[3]
+ );
+
+ printk( "[%s] IP=%u.%u.%u.%u\n", __FUNCTION__,
+ pwfd_info->peer_ip_address[0], pwfd_info->peer_ip_address[1],
+ pwfd_info->peer_ip_address[2], pwfd_info->peer_ip_address[3]
+ );
+
+ wrqu->data.length = strlen( extra );
+
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
return ret;
}
+static int rtw_tdls_getport(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+#ifdef CONFIG_WFD
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct wifi_display_info *pwfd_info = ptdlsinfo->wfd_info;
+
+ printk( "[%s]\n", __FUNCTION__);
+
+ sprintf( extra, "\n\n%d\n", pwfd_info->peer_rtsp_ctrlport );
+ printk( "[%s] remote port = %d\n", __FUNCTION__, pwfd_info->peer_rtsp_ctrlport );
+
+ wrqu->data.length = strlen( extra );
+
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
+
+ return ret;
+
+}
+
+//WFDTDLS, for sigma test
+static int rtw_tdls_dis_result(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+#ifdef CONFIG_WFD
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct wifi_display_info *pwfd_info = ptdlsinfo->wfd_info;
+
+ printk( "[%s]\n", __FUNCTION__);
+
+ if(ptdlsinfo->dev_discovered == 1 )
+ {
+ sprintf( extra, "\n\nDis=1\n" );
+ ptdlsinfo->dev_discovered = 0;
+ }
+
+ wrqu->data.length = strlen( extra );
+
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
+
+ return ret;
+
+}
+
+//WFDTDLS, for sigma test
+static int rtw_wfd_tdls_status(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+
+ int ret = 0;
+
+#ifdef CONFIG_TDLS
+#ifdef CONFIG_WFD
+
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+ struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
+ struct wifi_display_info *pwfd_info = ptdlsinfo->wfd_info;
+
+ printk( "[%s]\n", __FUNCTION__);
+
+ if(ptdlsinfo->setup_state == TDLS_LINKED_STATE )
+ {
+ sprintf( extra, "\n\nStatus=1\n" );
+ }
+ else
+ {
+ sprintf( extra, "\n\nStatus=0\n" );
+ }
+
+ wrqu->data.length = strlen( extra );
+
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
+
+ return ret;
+
+}
+
static int rtw_tdls_ch_switch_off(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
@@ -8728,7 +10675,7 @@ static int rtw_tdls_ch_switch_off(struct net_device *dev,
u8 i, j, mac_addr[ETH_ALEN];
struct sta_info *ptdls_sta = NULL;
- DBG_8192C( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
+ printk( "[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length -1 );
for( i=0, j=0 ; i < ETH_ALEN; i++, j+=3 ){
mac_addr[i]=key_2char2num(*(extra+j), *(extra+j+1));
@@ -8741,11 +10688,11 @@ static int rtw_tdls_ch_switch_off(struct net_device *dev,
if((ptdls_sta->tdls_sta_state & TDLS_AT_OFF_CH_STATE) && (ptdls_sta->tdls_sta_state & TDLS_PEER_AT_OFF_STATE)){
pmlmeinfo->tdls_candidate_ch= pmlmeext->cur_channel;
issue_tdls_ch_switch_req(padapter, mac_addr);
- DBG_8192C("issue tdls ch switch req back to base channel\n");
+ DBG_871X("issue tdls ch switch req back to base channel\n");
}
*/
-#endif
+#endif //CONFIG_TDLS
return ret;
}
@@ -8757,8 +10704,34 @@ static int rtw_tdls(struct net_device *dev,
int ret = 0;
#ifdef CONFIG_TDLS
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+
+ printk( "[%s] extra = %s\n", __FUNCTION__, extra );
+ // WFD Sigma will use the tdls enable command to let the driver know we want to test the tdls now!
+ if ( _rtw_memcmp( extra, "wfdenable=", 10 ) )
+ {
+ wrqu->data.length -=10;
+ rtw_wfd_tdls_enable( dev, info, wrqu, &extra[10] );
+ return ret;
+ }
+ else if ( _rtw_memcmp( extra, "weaksec=", 8 ) )
+ {
+ wrqu->data.length -=8;
+ rtw_tdls_weaksec( dev, info, wrqu, &extra[8] );
+ return ret;
+ }
+ else if ( _rtw_memcmp( extra, "tdlsenable=", 11 ) )
+ {
+ wrqu->data.length -=11;
+ rtw_tdls_enable( dev, info, wrqu, &extra[11] );
+ return ret;
+ }
- DBG_8192C( "[%s] extra = %s\n", __FUNCTION__, extra );
+ if( padapter->tdlsinfo.enable == 0 )
+ {
+ printk("tdls haven't enabled\n");
+ return 0;
+ }
if ( _rtw_memcmp( extra, "setup=", 6 ) )
{
@@ -8795,89 +10768,56 @@ static int rtw_tdls(struct net_device *dev,
wrqu->data.length -= 6;
rtw_tdls_psoff( dev, info, wrqu, &extra[6] );
}
-#endif
-
- return ret;
-}
-
-
-static int rtw_pm_set_lps(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu, char *extra)
-{
-
- int ret = 0;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
- u8 mode = 0;
-
- switch( wrqu->data.length -1 )
- {
- case 1:
- {
- mode = extra[ 0 ] - '0';
- break;
- }
- case 2:
- {
- mode = str_2char2num( extra[ 0 ], extra[ 1 ]);
- break;
- }
- }
-
- if ( mode < PS_MODE_NUM )
+#ifdef CONFIG_WFD
+ else if (_rtw_memcmp( extra, "setip=", 6 ) )
{
- if(pwrctrlpriv->power_mgnt !=mode)
- {
- if(PS_MODE_ACTIVE == mode)
- {
- LeaveAllPowerSaveMode(padapter);
- }
- else
- {
- pwrctrlpriv->LpsIdleCount = 2;
- }
- pwrctrlpriv->power_mgnt = mode;
- pwrctrlpriv->bLeisurePs = (PS_MODE_ACTIVE != pwrctrlpriv->power_mgnt)?_TRUE:_FALSE;
- }
+ wrqu->data.length -= 6;
+ rtw_tdls_setip( dev, info, wrqu, &extra[6] );
}
- else
+ else if (_rtw_memcmp( extra, "tprobe=", 6 ) )
{
- ret = -1;
+ issue_tunneled_probe_req((_adapter *)rtw_netdev_priv(dev));
}
+#endif //CONFIG_WFD
+#endif //CONFIG_TDLS
+
return ret;
-
}
-static int rtw_pm_set_ips(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu, char *extra)
+
+static int rtw_tdls_get(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
{
- _adapter *padapter = rtw_netdev_priv(dev);
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
- unsigned mode = 0;
+ int ret = 0;
+
+#ifdef CONFIG_WFD
- sscanf(extra, "%u", &mode);
+ DBG_871X( "[%s] extra = %s\n", __FUNCTION__, (char*) wrqu->data.pointer );
- if( mode == IPS_NORMAL || mode == IPS_LEVEL_2 ) {
- rtw_ips_mode_req(pwrctrlpriv, mode);
- pwrctrlpriv->power_mgnt = PS_MODE_MIN;
- rtw_set_pwr_state_check_timer(pwrctrlpriv);
- DBG_871X("%s %s\n", __FUNCTION__, mode == IPS_NORMAL?"IPS_NORMAL":"IPS_LEVEL_2");
- return 0;
- }
- else if(mode ==IPS_NONE){
- if(_FAIL == rfpwrstate_check(padapter))
- {
- return -EFAULT;
- }
- pwrctrlpriv->power_mgnt = PS_MODE_ACTIVE;
+ if ( _rtw_memcmp( wrqu->data.pointer, "ip", 2 ) )
+ {
+ rtw_tdls_getip( dev, info, wrqu, extra );
}
- else {
- return -EFAULT;
+ if ( _rtw_memcmp( wrqu->data.pointer, "port", 4 ) )
+ {
+ rtw_tdls_getport( dev, info, wrqu, extra );
}
- return 0;
+
+ //WFDTDLS, for sigma test
+ if ( _rtw_memcmp( wrqu->data.pointer, "dis", 3 ) )
+ {
+ rtw_tdls_dis_result( dev, info, wrqu, extra );
+ }
+ if ( _rtw_memcmp( wrqu->data.pointer, "status", 6 ) )
+ {
+ rtw_wfd_tdls_status( dev, info, wrqu, extra );
+ }
+
+#endif //CONFIG_WFD
+
+ return ret;
}
static int rtw_pm_set(struct net_device *dev,
@@ -8885,27 +10825,32 @@ static int rtw_pm_set(struct net_device *dev,
union iwreq_data *wrqu, char *extra)
{
int ret = 0;
+ unsigned mode = 0;
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- DBG_8192C( "[%s] extra = %s\n", __FUNCTION__, extra );
+ DBG_871X( "[%s] extra = %s\n", __FUNCTION__, extra );
if ( _rtw_memcmp( extra, "lps=", 4 ) )
{
- wrqu->data.length -= 4;
- rtw_pm_set_lps( dev, info, wrqu, &extra[4] );
+ sscanf(extra+4, "%u", &mode);
+ ret = rtw_pm_set_lps(padapter,mode);
}
- if ( _rtw_memcmp( extra, "ips=", 4 ) )
+ else if ( _rtw_memcmp( extra, "ips=", 4 ) )
{
- wrqu->data.length -= 4;
- rtw_pm_set_ips(dev, info, wrqu, &extra[4]);
+ sscanf(extra+4, "%u", &mode);
+ ret = rtw_pm_set_ips(padapter,mode);
+ }
+ else{
+ ret = -EINVAL;
}
return ret;
}
+#ifdef CONFIG_WOWLAN
static int rtw_wowlan_ctrl(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu, char *extra)
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
{
int ret = 0;
struct oid_par_priv oid_par;
@@ -8946,7 +10891,7 @@ static int rtw_wowlan_ctrl(struct net_device *dev,
DBG_871X("+rtw_wowlan_ctrl: Device didn't support the remote wakeup!!\n");
goto _rtw_wowlan_ctrl_exit_free;
}
- padapter->HalFunc.SetHwRegHandler(padapter,HW_VAR_WOWLAN,(u8 *)poidparam);
+ rtw_hal_set_hwreg(padapter,HW_VAR_WOWLAN,(u8 *)poidparam);
DBG_871X("rtw_wowlan_ctrl: subcode [%d], len[%d], buffer_len[%d]\r\n",
poidparam->subcode, poidparam->len, len);
@@ -8964,7 +10909,612 @@ _rtw_wowlan_ctrl_exit:
return ret;
}
+#endif //CONFIG_WOWLAN
+
+#ifdef CONFIG_INTEL_WIDI
+static int rtw_widi_set(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+
+ process_intel_widi_cmd(padapter, extra);
+
+ return ret;
+}
+
+static int rtw_widi_set_probe_request(struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ int ret = 0;
+ u8 *pbuf = NULL;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
+
+ pbuf = rtw_malloc(sizeof(l2_msg_t));
+ if(pbuf)
+ {
+ copy_from_user(pbuf, wrqu->data.pointer, wrqu->data.length);
+ //_rtw_memcpy(pbuf, wrqu->data.pointer, wrqu->data.length);
+
+ if( wrqu->data.flags == 0 )
+ intel_widi_wk_cmd(padapter, INTEL_WIDI_ISSUE_PROB_WK, pbuf);
+ else if( wrqu->data.flags == 1 )
+ rtw_set_wfd_rds_sink_info( padapter, (l2_msg_t *)pbuf );
+ }
+ return ret;
+}
+
+#endif // CONFIG_INTEL_WIDI
+
+#ifdef RTL8723A_SDIO_LOOPBACK
+#include <rtl8723a_hal.h>
+
+static s32 initLoopback(PADAPTER padapter)
+{
+ PLOOPBACKDATA ploopback;
+
+
+ if (padapter->ploopback == NULL) {
+ ploopback = (PLOOPBACKDATA)rtw_zmalloc(sizeof(LOOPBACKDATA));
+ if (ploopback == NULL) return -ENOMEM;
+
+ _rtw_init_sema(&ploopback->sema, 0);
+
+ ploopback->bstop = _TRUE;
+ ploopback->cnt = 0;
+ ploopback->size = 300;
+ _rtw_memset(ploopback->msg, 0, sizeof(ploopback->msg));
+
+ padapter->ploopback = ploopback;
+ }
+
+ return 0;
+}
+
+static void freeLoopback(PADAPTER padapter)
+{
+ PLOOPBACKDATA ploopback;
+
+
+ ploopback = padapter->ploopback;
+ if (ploopback) {
+ rtw_mfree((u8*)ploopback, sizeof(LOOPBACKDATA));
+ padapter->ploopback = NULL;
+ }
+}
+
+static s32 initpseudoadhoc(PADAPTER padapter)
+{
+ NDIS_802_11_NETWORK_INFRASTRUCTURE networkType;
+ s32 err;
+ _irqL irqL;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ _queue *queue = &pmlmepriv->scanned_queue;
+
+ networkType = Ndis802_11IBSS;
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+ _enter_critical_bh(&queue->lock, &irqL);
+ err = rtw_set_802_11_infrastructure_mode(padapter, networkType);
+ _exit_critical_bh(&queue->lock, &irqL);
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
+ if (err == _FALSE) return _FAIL;
+
+ err = rtw_setopmode_cmd(padapter, networkType);
+ if (err == _FAIL) return _FAIL;
+
+ return _SUCCESS;
+}
+
+static s32 createpseudoadhoc(PADAPTER padapter)
+{
+ NDIS_802_11_AUTHENTICATION_MODE authmode;
+ struct mlme_priv *pmlmepriv;
+ NDIS_802_11_SSID *passoc_ssid;
+ WLAN_BSSID_EX *pdev_network;
+ u8 *pibss;
+ u8 ssid[] = "pseduo_ad-hoc";
+ s32 err;
+ _irqL irqL;
+
+
+ pmlmepriv = &padapter->mlmepriv;
+
+ authmode = Ndis802_11AuthModeOpen;
+ err = rtw_set_802_11_authentication_mode(padapter, authmode);
+ if (err == _FALSE) return _FAIL;
+
+ passoc_ssid = &pmlmepriv->assoc_ssid;
+ _rtw_memset(passoc_ssid, 0, sizeof(NDIS_802_11_SSID));
+ passoc_ssid->SsidLength = sizeof(ssid) - 1;
+ _rtw_memcpy(passoc_ssid->Ssid, ssid, passoc_ssid->SsidLength);
+
+ pdev_network = &padapter->registrypriv.dev_network;
+ pibss = padapter->registrypriv.dev_network.MacAddress;
+ _rtw_memcpy(&pdev_network->Ssid, passoc_ssid, sizeof(NDIS_802_11_SSID));
+
+ rtw_update_registrypriv_dev_network(padapter);
+ rtw_generate_random_ibss(pibss);
+
+ _enter_critical_bh(&pmlmepriv->lock, &irqL);
+ pmlmepriv->fw_state = WIFI_ADHOC_MASTER_STATE;
+ _exit_critical_bh(&pmlmepriv->lock, &irqL);
+
+#if 0
+ err = rtw_createbss_cmd(padapter);
+ if (err == _FAIL) return _FAIL;
+#else
+{
+ struct wlan_network *pcur_network;
+ struct sta_info *psta;
+
+ //3 create a new psta
+ pcur_network = &pmlmepriv->cur_network;
+
+ //clear psta in the cur_network, if any
+ psta = rtw_get_stainfo(&padapter->stapriv, pcur_network->network.MacAddress);
+ if (psta) rtw_free_stainfo(padapter, psta);
+
+ psta = rtw_alloc_stainfo(&padapter->stapriv, pibss);
+ if (psta == NULL) return _FAIL;
+
+ //3 join psudo AdHoc
+ pcur_network->join_res = 1;
+ pcur_network->aid = psta->aid = 1;
+ _rtw_memcpy(&pcur_network->network, pdev_network, get_WLAN_BSSID_EX_sz(pdev_network));
+
+ // set msr to WIFI_FW_ADHOC_STATE
+#if 0
+ Set_NETYPE0_MSR(padapter, WIFI_FW_ADHOC_STATE);
+#else
+ {
+ u8 val8;
+
+ val8 = rtw_read8(padapter, MSR);
+ val8 &= 0xFC; // clear NETYPE0
+ val8 |= WIFI_FW_ADHOC_STATE & 0x3;
+ rtw_write8(padapter, MSR, val8);
+ }
+#endif
+}
+#endif
+
+ return _SUCCESS;
+}
+
+extern void rtl8723a_cal_txdesc_chksum(struct tx_desc *ptxdesc);
+extern void rtl8723a_fill_default_txdesc(struct xmit_frame *pxmitframe, u8 *pbuf);
+
+static struct xmit_frame* createloopbackpkt(PADAPTER padapter, u32 size)
+{
+ struct xmit_priv *pxmitpriv;
+ struct xmit_frame *pframe;
+ struct xmit_buf *pxmitbuf;
+ struct pkt_attrib *pattrib;
+ struct tx_desc *desc;
+ u8 *pkt_start, *pkt_end, *ptr;
+ struct rtw_ieee80211_hdr *hdr;
+ s32 bmcast;
+ _irqL irqL;
+
+
+ if ((TXDESC_SIZE + WLANHDR_OFFSET + size) > MAX_XMITBUF_SZ) return NULL;
+
+ pxmitpriv = &padapter->xmitpriv;
+ pframe = NULL;
+
+ //2 1. allocate xmit frame
+ pframe = rtw_alloc_xmitframe(pxmitpriv);
+ if (pframe == NULL) return NULL;
+ pframe->padapter = padapter;
+
+ //2 2. allocate xmit buffer
+ _enter_critical_bh(&pxmitpriv->lock, &irqL);
+ pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
+ _exit_critical_bh(&pxmitpriv->lock, &irqL);
+ if (pxmitbuf == NULL) {
+ rtw_free_xmitframe(pxmitpriv, pframe);
+ return NULL;
+ }
+
+ pframe->pxmitbuf = pxmitbuf;
+ pframe->buf_addr = pxmitbuf->pbuf;
+ pxmitbuf->priv_data = pframe;
+
+ //2 3. update_attrib()
+ pattrib = &pframe->attrib;
+
+ // init xmitframe attribute
+ _rtw_memset(pattrib, 0, sizeof(struct pkt_attrib));
+
+ pattrib->ether_type = 0x8723;
+ _rtw_memcpy(pattrib->src, padapter->eeprompriv.mac_addr, ETH_ALEN);
+ _rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
+ _rtw_memset(pattrib->dst, 0xFF, ETH_ALEN);
+ _rtw_memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
+// pattrib->pctrl = 0;
+// pattrib->dhcp_pkt = 0;
+// pattrib->pktlen = 0;
+ pattrib->ack_policy = 0;
+// pattrib->pkt_hdrlen = ETH_HLEN;
+ pattrib->hdrlen = WLAN_HDR_A3_LEN;
+ pattrib->subtype = WIFI_DATA;
+ pattrib->priority = 0;
+ pattrib->qsel = pattrib->priority;
+// do_queue_select(padapter, pattrib);
+ pattrib->nr_frags = 1;
+ pattrib->encrypt = 0;
+ pattrib->bswenc = _FALSE;
+ pattrib->qos_en = _FALSE;
+
+ bmcast = IS_MCAST(pattrib->ra);
+ if (bmcast) {
+ pattrib->mac_id = 1;
+ pattrib->psta = rtw_get_bcmc_stainfo(padapter);
+ } else {
+ pattrib->mac_id = 0;
+ pattrib->psta = rtw_get_stainfo(&padapter->stapriv, get_bssid(&padapter->mlmepriv));
+ }
+
+ pattrib->pktlen = size;
+ pattrib->last_txcmdsz = pattrib->hdrlen + pattrib->pktlen;
+
+ //2 4. fill TX descriptor
+ desc = (struct tx_desc*)pframe->buf_addr;
+ _rtw_memset(desc, 0, TXDESC_SIZE);
+
+ rtl8723a_fill_default_txdesc(pframe, (u8*)desc);
+
+ // Hw set sequence number
+ ((PTXDESC)desc)->hwseq_en = 0; // HWSEQ_EN, 0:disable, 1:enable
+// ((PTXDESC)desc)->hwseq_sel = 0; // HWSEQ_SEL
+
+ ((PTXDESC)desc)->disdatafb = 1;
+
+ // convert to little endian
+ desc->txdw0 = cpu_to_le32(desc->txdw0);
+ desc->txdw1 = cpu_to_le32(desc->txdw1);
+ desc->txdw2 = cpu_to_le32(desc->txdw2);
+ desc->txdw3 = cpu_to_le32(desc->txdw3);
+ desc->txdw4 = cpu_to_le32(desc->txdw4);
+ desc->txdw5 = cpu_to_le32(desc->txdw5);
+ desc->txdw6 = cpu_to_le32(desc->txdw6);
+ desc->txdw7 = cpu_to_le32(desc->txdw7);
+#ifdef CONFIG_PCI_HCI
+ desc->txdw8 = cpu_to_le32(desc->txdw8);
+ desc->txdw9 = cpu_to_le32(desc->txdw9);
+ desc->txdw10 = cpu_to_le32(desc->txdw10);
+ desc->txdw11 = cpu_to_le32(desc->txdw11);
+ desc->txdw12 = cpu_to_le32(desc->txdw12);
+ desc->txdw13 = cpu_to_le32(desc->txdw13);
+ desc->txdw14 = cpu_to_le32(desc->txdw14);
+ desc->txdw15 = cpu_to_le32(desc->txdw15);
+#endif
+
+ rtl8723a_cal_txdesc_chksum(desc);
+
+ //2 5. coalesce
+ pkt_start = pframe->buf_addr + TXDESC_SIZE;
+ pkt_end = pkt_start + pattrib->last_txcmdsz;
+
+ //3 5.1. make wlan header, make_wlanhdr()
+ hdr = (struct rtw_ieee80211_hdr *)pkt_start;
+ SetFrameSubType(&hdr->frame_ctl, pattrib->subtype);
+ _rtw_memcpy(hdr->addr1, pattrib->dst, ETH_ALEN); // DA
+ _rtw_memcpy(hdr->addr2, pattrib->src, ETH_ALEN); // SA
+ _rtw_memcpy(hdr->addr3, get_bssid(&padapter->mlmepriv), ETH_ALEN); // RA, BSSID
+
+ //3 5.2. make payload
+ ptr = pkt_start + pattrib->hdrlen;
+ get_random_bytes(ptr, pkt_end - ptr);
+
+ pxmitbuf->len = TXDESC_SIZE + pattrib->last_txcmdsz;
+ pxmitbuf->ptail += pxmitbuf->len;
+
+ return pframe;
+}
+
+static void freeloopbackpkt(PADAPTER padapter, struct xmit_frame *pframe)
+{
+ struct xmit_priv *pxmitpriv;
+ struct xmit_buf *pxmitbuf;
+
+
+ pxmitpriv = &padapter->xmitpriv;
+ pxmitbuf = pframe->pxmitbuf;
+
+ rtw_free_xmitframe(pxmitpriv, pframe);
+ rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
+}
+extern u32 get_txfifo_hwaddr(struct xmit_frame *pxmitframe);
+
+thread_return lbk_thread(thread_context context)
+{
+ s32 err;
+ PADAPTER padapter;
+ PLOOPBACKDATA ploopback;
+ struct xmit_frame *pxmitframe;
+ u32 cnt, ok, fail, i, headerlen;
+ u32 pktsize;
+ u32 ff_hwaddr;
+
+
+ padapter = (PADAPTER)context;
+ ploopback = padapter->ploopback;
+ if (ploopback == NULL) return -1;
+ cnt = 0;
+ ok = 0;
+ fail = 0;
+
+ daemonize("%s", "RTW_LBK_THREAD");
+ allow_signal(SIGTERM);
+
+ do {
+ if (ploopback->size == 0) {
+ get_random_bytes(&pktsize, 4);
+ pktsize = (pktsize % 1535) + 1; // 1~1535
+ } else
+ pktsize = ploopback->size;
+
+ pxmitframe = createloopbackpkt(padapter, pktsize);
+ if (pxmitframe == NULL) {
+ sprintf(ploopback->msg, "loopback FAIL! 3. create Packet FAIL!");
+ break;
+ }
+
+ ploopback->txsize = TXDESC_SIZE + pxmitframe->attrib.last_txcmdsz;
+ _rtw_memcpy(ploopback->txbuf, pxmitframe->buf_addr, ploopback->txsize);
+
+ ff_hwaddr = get_txfifo_hwaddr(pxmitframe);
+ rtw_write_port(padapter, ff_hwaddr, ploopback->txsize, ploopback->txbuf);
+ cnt++;
+
+ _rtw_down_sema(&ploopback->sema);
+
+{
+ PHAL_DATA_TYPE phal;
+ struct recv_stat *prxstat;
+ struct recv_stat report;
+ PRXREPORT prxreport;
+ u32 drvinfosize;
+ u32 rxpktsize;
+ u8 fcssize;
+
+ prxstat = (struct recv_stat*)ploopback->rxbuf;
+ report.rxdw0 = le32_to_cpu(prxstat->rxdw0);
+ report.rxdw1 = le32_to_cpu(prxstat->rxdw1);
+ report.rxdw2 = le32_to_cpu(prxstat->rxdw2);
+ report.rxdw3 = le32_to_cpu(prxstat->rxdw3);
+ report.rxdw4 = le32_to_cpu(prxstat->rxdw4);
+ report.rxdw5 = le32_to_cpu(prxstat->rxdw5);
+
+ prxreport = (PRXREPORT)&report;
+ drvinfosize = prxreport->drvinfosize << 3;
+ rxpktsize = prxreport->pktlen;
+
+ phal = GET_HAL_DATA(padapter);
+ if (phal->ReceiveConfig & RCR_APPFCS) fcssize = IEEE80211_FCS_LEN;
+ else fcssize = 0;
+
+ if ((ploopback->txsize - TXDESC_SIZE) != (rxpktsize - fcssize)) {
+ printk("%s: cnt=%d, size not match! tx=%d rx=%d\n",
+ __func__, i, ploopback->txsize - TXDESC_SIZE,
+ rxpktsize - fcssize);
+ err = _FALSE;
+ } else {
+ err = _rtw_memcmp(ploopback->txbuf + TXDESC_SIZE,\
+ ploopback->rxbuf + RXDESC_SIZE + drvinfosize,\
+ ploopback->txsize - TXDESC_SIZE);
+ }
+}
+
+ if (err == _TRUE)
+ ok++;
+ else
+ fail++;
+
+ ploopback->txsize = 0;
+ _rtw_memset(ploopback->txbuf, 0, 0x8000);
+ ploopback->rxsize = 0;
+ _rtw_memset(ploopback->rxbuf, 0, 0x8000);
+
+ freeloopbackpkt(padapter, pxmitframe);
+ pxmitframe = NULL;
+
+ if (signal_pending(current)) {
+ flush_signals(current);
+ }
+
+ if ((ploopback->bstop == _TRUE) ||
+ ((ploopback->cnt != 0) && (ploopback->cnt == cnt)))
+ {
+ u32 ok_rate, fail_rate;
+ ok_rate = (ok*100)/cnt;
+ fail_rate = (fail*100)/cnt;
+ sprintf(ploopback->msg, "loopback result: ok=%d%%(%d/%d),error=%d%%(%d/%d)", ok_rate, ok, cnt, fail_rate, fail, cnt);
+ break;
+ }
+ } while (1);
+
+ ploopback->bstop = _TRUE;
+
+ thread_exit();
+}
+
+static void loopbackTest(PADAPTER padapter, u32 cnt, u32 size, u8* pmsg)
+{
+ PLOOPBACKDATA ploopback;
+ u32 len;
+ s32 err;
+
+
+ ploopback = padapter->ploopback;
+
+ if (ploopback)
+ {
+ ploopback->bstop = _TRUE;
+ len = 0;
+ do {
+ len = strlen(ploopback->msg);
+ if (len) break;
+ rtw_msleep_os(1);
+ } while (1);
+ _rtw_memcpy(pmsg, ploopback->msg, len+1);
+ freeLoopback(padapter);
+ return;
+ }
+
+ // create pseudo ad-hoc connection
+ err = initpseudoadhoc(padapter);
+ if (err == _FAIL) {
+ sprintf(pmsg, "loopback FAIL! 1.1 init ad-hoc FAIL!");
+ return;
+ }
+
+ err = createpseudoadhoc(padapter);
+ if (err == _FAIL) {
+ sprintf(pmsg, "loopback FAIL! 1.2 create ad-hoc master FAIL!");
+ return;
+ }
+
+ err = initLoopback(padapter);
+ if (err) {
+ sprintf(pmsg, "loopback FAIL! 2. init FAIL! error code=%d", err);
+ return;
+ }
+
+ ploopback = padapter->ploopback;
+
+ ploopback->bstop = _FALSE;
+ ploopback->cnt = cnt;
+ ploopback->size = size;
+ ploopback->lbkthread = kthread_run(lbk_thread, padapter, "RTW_LBK_THREAD");
+ if (IS_ERR(padapter->lbkthread))
+ {
+ freeLoopback(padapter);
+ sprintf(pmsg, "loopback start FAIL! cnt=%d", cnt);
+ return;
+ }
+
+ sprintf(pmsg, "loopback start! cnt=%d", cnt);
+}
+
+extern u8 _InitPowerOn(PADAPTER padapter);
+extern s32 rtl8723a_FirmwareDownload(PADAPTER padapter);
+
+static int rtw_test(
+ struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ u32 len;
+ u8 *pbuf, *pch;
+ char *ptmp;
+ u8 *delim = ",";
+ PADAPTER padapter = rtw_netdev_priv(dev);
+
+
+ printk("+%s\n", __func__);
+ len = wrqu->data.length;
+
+ pbuf = (u8*)rtw_zmalloc(len);
+ if (pbuf == NULL) {
+ printk("%s: no memory!\n", __func__);
+ return -ENOMEM;
+ }
+
+ if (copy_from_user(pbuf, wrqu->data.pointer, len)) {
+ rtw_mfree(pbuf, len);
+ printk("%s: copy from user fail!\n", __func__);
+ return -EFAULT;
+ }
+ printk("%s: string=\"%s\"\n", __func__, pbuf);
+
+ ptmp = (char*)pbuf;
+ pch = strsep(&ptmp, delim);
+ if ((pch == NULL) || (strlen(pch) == 0)) {
+ rtw_mfree(pbuf, len);
+ printk("%s: parameter error(level 1)!\n", __func__);
+ return -EFAULT;
+ }
+
+#ifdef RTL8723A_SDIO_LOOPBACK
+ if (strcmp(pch, "loopback") == 0)
+ {
+ s32 cnt = 0;
+ u32 size = 64;
+
+ pch = strsep(&ptmp, delim);
+ if ((pch == NULL) || (strlen(pch) == 0)) {
+ rtw_mfree(pbuf, len);
+ printk("%s: parameter error(level 2)!\n", __func__);
+ return -EFAULT;
+ }
+
+ sscanf(pch, "%d", &cnt);
+ printk("%s: loopback cnt=%d\n", __func__, cnt);
+
+ pch = strsep(&ptmp, delim);
+ if ((pch == NULL) || (strlen(pch) == 0)) {
+ rtw_mfree(pbuf, len);
+ printk("%s: parameter error(level 2)!\n", __func__);
+ return -EFAULT;
+ }
+
+ sscanf(pch, "%d", &size);
+ printk("%s: loopback size=%d\n", __func__, size);
+
+ loopbackTest(padapter, cnt, size, extra);
+ wrqu->data.length = strlen(extra) + 1;
+
+ rtw_mfree(pbuf, len);
+ return 0;
+ }
+#endif
+
+ if (strcmp(pch, "poweron") == 0)
+ {
+ s32 ret;
+
+ ret = _InitPowerOn(padapter);
+ if (_FAIL == ret)
+ printk("%s: power on FAIL!\n", __func__);
+ else
+ printk("%s: power on OK.\n", __func__);
+
+ rtw_mfree(pbuf, len);
+ return 0;
+ }
+
+ if (strcmp(pch, "dlfw") == 0)
+ {
+ s32 ret;
+
+ ret = rtl8723a_FirmwareDownload(padapter);
+ if (_FAIL == ret)
+ printk("%s: download FW FAIL!\n", __func__);
+ else
+ printk("%s: download FW OK.\n", __func__);
+
+ rtw_mfree(pbuf, len);
+ return 0;
+ }
+
+ rtw_mfree(pbuf, len);
+ return 0;
+}
+#else
+static int rtw_test(
+ struct net_device *dev,
+ struct iw_request_info *info,
+ union iwreq_data *wrqu, char *extra)
+{
+ printk("%s\n", __func__);
+ return 0;
+}
+#endif //RTL8723A_SDIO_LOOPBACK
#include <rtw_android.h>
int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
@@ -8981,6 +11531,11 @@ int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
case RTL_IOCTL_HOSTAPD:
ret = rtw_hostapd_ioctl(dev, &wrq->u.data);
break;
+#ifdef CONFIG_NO_WIRELESS_HANDLERS
+ case SIOCSIWMODE:
+ ret = rtw_wx_set_mode(dev, NULL, &wrq->u, NULL);
+ break;
+#endif
#endif
case (SIOCDEVPRIVATE+1):
ret = rtw_android_priv_cmd(dev, rq, cmd);
@@ -9029,7 +11584,7 @@ static iw_handler rtw_handlers[] =
NULL, /* -- hole -- */
rtw_wx_set_rate, /* SIOCSIWRATE */
rtw_wx_get_rate, /* SIOCGIWRATE */
- dummy, /* SIOCSIWRTS */
+ rtw_wx_set_rts, /* SIOCSIWRTS */
rtw_wx_get_rts, /* SIOCGIWRTS */
rtw_wx_set_frag, /* SIOCSIWFRAG */
rtw_wx_get_frag, /* SIOCGIWFRAG */
@@ -9060,44 +11615,45 @@ static const struct iw_priv_args rtw_private_args[] =
{ SIOCIWFIRSTPRIV + 0x00, IW_PRIV_TYPE_CHAR | 1024, 0 , ""}, //set
{ SIOCIWFIRSTPRIV + 0x01, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK , ""},//get
/* --- sub-ioctls definitions --- */
- { MP_START , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_start" }, //set
+ { MP_START , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_start" }, //set
{ MP_PHYPARA, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_phypara" },//get
{ MP_STOP , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_stop" }, //set
{ MP_CHANNEL , IW_PRIV_TYPE_CHAR | 1024 , IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_channel" },//get
{ MP_BANDWIDTH , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_bandwidth"}, //set
{ MP_RATE , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_rate" },//get
{ MP_RESET_STATS , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_reset_stats"},
- { MP_QUERY , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK , "mp_query"}, //get
+ { MP_QUERY , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK , "mp_query"}, //get
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { READ_REG , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "read_reg" },
+ { READ_REG , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "read_reg" },
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_RATE , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_rate" },
+ { MP_RATE , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_rate" },
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { READ_RF , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "read_rf" },
+ { READ_RF , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "read_rf" },
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_PSD , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_psd"},
+ { MP_PSD , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_psd"},
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_DUMP, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_dump" },
+ { MP_DUMP, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_dump" },
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_TXPOWER , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_txpower"},
+ { MP_TXPOWER , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_txpower"},
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_ANT_TX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ant_tx"},
+ { MP_ANT_TX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ant_tx"},
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_ANT_RX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ant_rx"},
+ { MP_ANT_RX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ant_rx"},
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { WRITE_REG , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "write_reg" },
+ { WRITE_REG , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "write_reg" },
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { WRITE_RF , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "write_rf" },
+ { WRITE_RF , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "write_rf" },
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_CTX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ctx"},
+ { MP_CTX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ctx"},
{ MP_NULL, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},//set
- { MP_ARX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_arx"},
- { MP_ANT_RX , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_ant_rx"},
- { MP_THER , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ther"},
- { EFUSE_SET, IW_PRIV_TYPE_CHAR | 1024, 0, "efuse_set" },
- { EFUSE_GET, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "efuse_get" },
- { MP_PWRTRK , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_pwrtrk"},
- { MP_IOCTL, IW_PRIV_TYPE_CHAR | 1024, 0, "mp_ioctl"}, // mp_ioctl
+ { MP_ARX , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_arx"},
+ { MP_ANT_RX , IW_PRIV_TYPE_CHAR | 1024, 0, "mp_ant_rx"},
+ { MP_THER , IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_ther"},
+ { EFUSE_SET, IW_PRIV_TYPE_CHAR | 1024, 0, "efuse_set" },
+ { EFUSE_GET, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "efuse_get" },
+ { MP_NULL , IW_PRIV_TYPE_CHAR | 1024, 0, "NULL"},
+ { MP_PWRTRK, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK, "mp_pwrtrk" },
+ { MP_IOCTL, IW_PRIV_TYPE_CHAR | 1024, 0, "mp_ioctl"}, // mp_ioctl
{ SIOCIWFIRSTPRIV + 0x02, IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK , "test"},//set
@@ -9110,23 +11666,23 @@ static iw_handler rtw_private_handler[] =
rtw_mp_get,
};
-
#else // not inlucde MP
static const struct iw_priv_args rtw_private_args[] = {
{
SIOCIWFIRSTPRIV + 0x0,
- IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 2, 0, "rtw_write32"
+ IW_PRIV_TYPE_CHAR | 0x7FF, 0, "write"
},
{
SIOCIWFIRSTPRIV + 0x1,
- IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | IFNAMSIZ, "rtw_read32"
+ IW_PRIV_TYPE_CHAR | 0x7FF,
+ IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | IFNAMSIZ, "read"
},
{
SIOCIWFIRSTPRIV + 0x2, 0, 0, "driver_ext"
},
{
- SIOCIWFIRSTPRIV + 0x3, 0, 0, "" // mp_ioctl
+ SIOCIWFIRSTPRIV + 0x3, 0, 0, "mp_ioctl"
},
{
SIOCIWFIRSTPRIV + 0x4,
@@ -9172,40 +11728,57 @@ static const struct iw_priv_args rtw_private_args[] = {
SIOCIWFIRSTPRIV + 0xD,
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 2, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | IFNAMSIZ, "rfr"
},
-
+#ifdef CONFIG_WOWLAN
{
SIOCIWFIRSTPRIV + 0xE,0,0, "wowlan_ctrl"
},
-
+#endif // CONFIG_WOWLAN
{
SIOCIWFIRSTPRIV + 0x10,
- IW_PRIV_TYPE_CHAR | P2P_PRIVATE_IOCTL_SET_LEN, 0, "p2p_set"
+ IW_PRIV_TYPE_CHAR | 1024, 0, "p2p_set"
},
{
SIOCIWFIRSTPRIV + 0x11,
- IW_PRIV_TYPE_CHAR | P2P_PRIVATE_IOCTL_SET_LEN, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | P2P_PRIVATE_IOCTL_SET_LEN , "p2p_get"
+ IW_PRIV_TYPE_CHAR | 1024, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_MASK , "p2p_get"
+ },
+ {
+ SIOCIWFIRSTPRIV + 0x12, 0, 0, "NULL"
},
{
- SIOCIWFIRSTPRIV + 0x12,
- IW_PRIV_TYPE_CHAR | P2P_PRIVATE_IOCTL_SET_LEN, IW_PRIV_TYPE_CHAR | IFNAMSIZ , "p2p_get2"
+ SIOCIWFIRSTPRIV + 0x13,
+ IW_PRIV_TYPE_CHAR | 64, IW_PRIV_TYPE_CHAR | 64 , "p2p_get2"
},
-#ifdef CONFIG_TDLS
- {SIOCIWFIRSTPRIV + 0x13, IW_PRIV_TYPE_CHAR | 128, 0,"NULL"},
{
SIOCIWFIRSTPRIV + 0x14,
IW_PRIV_TYPE_CHAR | 64, 0, "tdls"
},
-#endif
+ {
+ SIOCIWFIRSTPRIV + 0x15,
+ IW_PRIV_TYPE_CHAR | P2P_PRIVATE_IOCTL_SET_LEN, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | P2P_PRIVATE_IOCTL_SET_LEN , "tdls_get"
+ },
{
SIOCIWFIRSTPRIV + 0x16,
- IW_PRIV_TYPE_CHAR | P2P_PRIVATE_IOCTL_SET_LEN, 0, "pm_set"
+ IW_PRIV_TYPE_CHAR | 64, 0, "pm_set"
},
{SIOCIWFIRSTPRIV + 0x18, IW_PRIV_TYPE_CHAR | IFNAMSIZ , 0 , "rereg_nd_name"},
{SIOCIWFIRSTPRIV + 0x1A, IW_PRIV_TYPE_CHAR | 128, 0, "efuse_set"},
{SIOCIWFIRSTPRIV + 0x1B, IW_PRIV_TYPE_CHAR | 128, IW_PRIV_TYPE_CHAR |IW_PRIV_SIZE_FIXED |0x700 ,"efuse_get"},
-
+ {
+ SIOCIWFIRSTPRIV + 0x1D,
+ IW_PRIV_TYPE_CHAR | 40, IW_PRIV_TYPE_CHAR | 0x7FF, "test"
+ },
+#ifdef CONFIG_INTEL_WIDI
+ {
+ SIOCIWFIRSTPRIV + 0x1E,
+ IW_PRIV_TYPE_CHAR | 1024, 0, "widi_set"
+ },
+ {
+ SIOCIWFIRSTPRIV + 0x1F,
+ IW_PRIV_TYPE_CHAR | 128, 0, "widi_prob_req"
+ },
+#endif // CONFIG_INTEL_WIDI
};
static iw_handler rtw_private_handler[] =
@@ -9234,18 +11807,20 @@ static iw_handler rtw_private_handler[] =
rtw_wx_write_rf, //0x0C
rtw_wx_read_rf, //0x0D
-
+#ifdef CONFIG_WOWLAN
rtw_wowlan_ctrl, //0x0E
-
+#else
+ rtw_wx_priv_null, //0x0E
+#endif //CONFIG_WOWLAN
rtw_wx_priv_null, //0x0F
rtw_p2p_set, //0x10
rtw_p2p_get, //0x11
- rtw_p2p_get2, //0x12
+ NULL, //0x12
+ rtw_p2p_get2, //0x13
- NULL, //0x13
rtw_tdls, //0x14
- rtw_wx_priv_null, //0x15
+ rtw_tdls_get, //0x15
rtw_pm_set, //0x16
rtw_wx_priv_null, //0x17
@@ -9254,7 +11829,12 @@ static iw_handler rtw_private_handler[] =
rtw_mp_efuse_set, //0x1A
rtw_mp_efuse_get, //0x1B
- // 0x1C is reserved for hostapd
+ NULL, // 0x1C is reserved for hostapd
+ rtw_test , // 0x1D
+#ifdef CONFIG_INTEL_WIDI
+ rtw_widi_set, //0x1E
+ rtw_widi_set_probe_request, //0x1F
+#endif // CONFIG_INTEL_WIDI
};
#endif // #if defined(CONFIG_MP_INCLUDED) && defined(CONFIG_MP_IWPRIV_SUPPORT)
@@ -9273,7 +11853,7 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
piwstats->qual.qual = 0;
piwstats->qual.level = 0;
piwstats->qual.noise = 0;
- //DBG_8192C("No link level:%d, qual:%d, noise:%d\n", tmp_level, tmp_qual, tmp_noise);
+ //DBG_871X("No link level:%d, qual:%d, noise:%d\n", tmp_level, tmp_qual, tmp_noise);
}
else{
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
@@ -9284,7 +11864,7 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
tmp_qual = padapter->recvpriv.signal_qual;
tmp_noise =padapter->recvpriv.noise;
- //DBG_8192C("level:%d, qual:%d, noise:%d, rssi (%d)\n", tmp_level, tmp_qual, tmp_noise,padapter->recvpriv.rssi);
+ //DBG_871X("level:%d, qual:%d, noise:%d, rssi (%d)\n", tmp_level, tmp_qual, tmp_noise,padapter->recvpriv.rssi);
piwstats->qual.level = tmp_level;
piwstats->qual.qual = tmp_qual;
@@ -9310,16 +11890,20 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
}
#endif
+#ifdef CONFIG_WIRELESS_EXT
struct iw_handler_def rtw_handlers_def =
{
.standard = rtw_handlers,
.num_standard = sizeof(rtw_handlers) / sizeof(iw_handler),
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) || defined(CONFIG_WEXT_PRIV)
.private = rtw_private_handler,
.private_args = (struct iw_priv_args *)rtw_private_args,
.num_private = sizeof(rtw_private_handler) / sizeof(iw_handler),
.num_private_args = sizeof(rtw_private_args) / sizeof(struct iw_priv_args),
+#endif
#if WIRELESS_EXT >= 17
.get_wireless_stats = rtw_get_wireless_stats,
#endif
};
+#endif
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/mlme_linux.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/mlme_linux.c
index 0175ea2..6fc9f03 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/mlme_linux.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/mlme_linux.c
@@ -135,7 +135,6 @@ extern void rtw_indicate_wx_disassoc_event(_adapter *padapter);
void rtw_os_indicate_connect(_adapter *adapter)
{
- struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
_func_enter_;
@@ -144,14 +143,13 @@ _func_enter_;
#endif //CONFIG_IOCTL_CFG80211
rtw_indicate_wx_assoc_event(adapter);
-
netif_carrier_on(adapter->pnetdev);
if(adapter->pid[2] !=0)
rtw_signal_process(adapter->pid[2], SIGALRM);
#ifdef RTK_DMP_PLATFORM
- _set_workitem(&pmlmepriv->Linkup_workitem);
+ _set_workitem(&adapter->mlmepriv.Linkup_workitem);
#endif
_func_exit_;
@@ -173,7 +171,12 @@ void rtw_reset_securitypriv( _adapter *adapter )
u8 backupPMKIDIndex = 0;
u8 backupTKIPCountermeasure = 0x00;
u32 backupTKIPcountermeasure_time = 0;
-
+ // add for CONFIG_IEEE80211W, none 11w also can use
+ _irqL irqL;
+ struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
+
+ _enter_critical_bh(&adapter->security_key_mutex, &irqL);
+
if(adapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X)//802.1x
{
// Added by Albert 2009/02/18
@@ -187,8 +190,11 @@ void rtw_reset_securitypriv( _adapter *adapter )
_rtw_memcpy( &backupPMKIDList[ 0 ], &adapter->securitypriv.PMKIDList[ 0 ], sizeof( RT_PMKID_LIST ) * NUM_PMKID_CACHE );
backupPMKIDIndex = adapter->securitypriv.PMKIDIndex;
backupTKIPCountermeasure = adapter->securitypriv.btkip_countermeasure;
- backupTKIPcountermeasure_time = adapter->securitypriv.btkip_countermeasure_time;
-
+ backupTKIPcountermeasure_time = adapter->securitypriv.btkip_countermeasure_time;
+#ifdef CONFIG_IEEE80211W
+ //reset RX BIP packet number
+ pmlmeext->mgnt_80211w_IPN_rx = 0;
+#endif //CONFIG_IEEE80211W
_rtw_memset((unsigned char *)&adapter->securitypriv, 0, sizeof (struct security_priv));
//_init_timer(&(adapter->securitypriv.tkip_timer),adapter->pnetdev, rtw_use_tkipkey_handler, adapter);
@@ -197,7 +203,7 @@ void rtw_reset_securitypriv( _adapter *adapter )
_rtw_memcpy( &adapter->securitypriv.PMKIDList[ 0 ], &backupPMKIDList[ 0 ], sizeof( RT_PMKID_LIST ) * NUM_PMKID_CACHE );
adapter->securitypriv.PMKIDIndex = backupPMKIDIndex;
adapter->securitypriv.btkip_countermeasure = backupTKIPCountermeasure;
- adapter->securitypriv.btkip_countermeasure_time = backupTKIPcountermeasure_time;
+ adapter->securitypriv.btkip_countermeasure_time = backupTKIPcountermeasure_time;
adapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
adapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;
@@ -218,9 +224,10 @@ void rtw_reset_securitypriv( _adapter *adapter )
psec_priv->ndisauthtype = Ndis802_11AuthModeOpen;
psec_priv->ndisencryptstatus = Ndis802_11WEPDisabled;
- psec_priv->wps_phase = _FALSE;
//}
}
+ // add for CONFIG_IEEE80211W, none 11w also can use
+ _exit_critical_bh(&adapter->security_key_mutex, &irqL);
}
void rtw_os_indicate_disconnect( _adapter *adapter )
@@ -229,17 +236,19 @@ void rtw_os_indicate_disconnect( _adapter *adapter )
_func_enter_;
+ netif_carrier_off(adapter->pnetdev); // Do it first for tx broadcast pkt after disconnection issue!
+
#ifdef CONFIG_IOCTL_CFG80211
rtw_cfg80211_indicate_disconnect(adapter);
#endif //CONFIG_IOCTL_CFG80211
rtw_indicate_wx_disassoc_event(adapter);
- netif_carrier_off(adapter->pnetdev);
#ifdef RTK_DMP_PLATFORM
_set_workitem(&adapter->mlmepriv.Linkdown_workitem);
#endif
- rtw_reset_securitypriv( adapter );
+ //modify for CONFIG_IEEE80211W, none 11w also can use the same command
+ rtw_reset_securitypriv_cmd(adapter);
_func_exit_;
@@ -313,185 +322,19 @@ void _addba_timer_hdl(void *FunctionContext)
addba_timer_hdl(psta);
}
-void init_addba_retry_timer(_adapter *padapter, struct sta_info *psta)
-{
-
- _init_timer(&psta->addba_retry_timer, padapter->pnetdev, _addba_timer_hdl, psta);
-}
-
-#ifdef CONFIG_TDLS
-void _TPK_timer_hdl(void *FunctionContext)
-{
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
-
- ptdls_sta->TPK_count++;
- //TPK_timer set 1000 as default
- //retry timer should set at least 301 sec.
- if(ptdls_sta->TPK_count==TPK_RESEND_COUNT){
- ptdls_sta->TPK_count=0;
- issue_tdls_setup_req(ptdls_sta->padapter, ptdls_sta->hwaddr);
- }
-
- _set_timer(&ptdls_sta->TPK_timer, ptdls_sta->TDLS_PeerKey_Lifetime/TPK_RESEND_COUNT);
-}
-
-void init_TPK_timer(_adapter *padapter, struct sta_info *psta)
-{
- psta->padapter=padapter;
-
- _init_timer(&psta->TPK_timer, padapter->pnetdev, _TPK_timer_hdl, psta);
-}
-
-// TDLS_DONE_CH_SEN: channel sensing and report candidate channel
-// TDLS_OFF_CH: first time set channel to off channel
-// TDLS_BASE_CH: when go back to the channel linked with AP, send null data to peer STA as an indication
-void _ch_switch_timer_hdl(void *FunctionContext)
-{
-
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
- _adapter *padapter = ptdls_sta->padapter;
-
- if( ptdls_sta->option == TDLS_DONE_CH_SEN ){
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_DONE_CH_SEN);
- }else if( ptdls_sta->option == TDLS_OFF_CH ){
- issue_nulldata_to_TDLS_peer_STA(ptdls_sta->padapter, ptdls_sta, 0);
- _set_timer(&ptdls_sta->base_ch_timer, 500);
- }else if( ptdls_sta->option == TDLS_BASE_CH){
- issue_nulldata_to_TDLS_peer_STA(ptdls_sta->padapter, ptdls_sta, 0);
- }
-}
-
-void init_ch_switch_timer(_adapter *padapter, struct sta_info *psta)
-{
- psta->padapter=padapter;
- _init_timer(&psta->option_timer, padapter->pnetdev, _ch_switch_timer_hdl, psta);
-}
-
-void _base_ch_timer_hdl(void *FunctionContext)
-{
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
- rtw_tdls_cmd(ptdls_sta->padapter, ptdls_sta->hwaddr, TDLS_P_OFF_CH);
-}
-
-void init_base_ch_timer(_adapter *padapter, struct sta_info *psta)
-{
- psta->padapter=padapter;
- _init_timer(&psta->base_ch_timer, padapter->pnetdev, _base_ch_timer_hdl, psta);
-}
-
-void _off_ch_timer_hdl(void *FunctionContext)
-{
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
- rtw_tdls_cmd(ptdls_sta->padapter, ptdls_sta->hwaddr, TDLS_P_BASE_CH );
- }
-
-void init_off_ch_timer(_adapter *padapter, struct sta_info *psta)
-{
- psta->padapter=padapter;
- _init_timer(&psta->off_ch_timer, padapter->pnetdev, _off_ch_timer_hdl, psta);
-}
-
-void _tdls_handshake_timer_hdl(void *FunctionContext)
+#ifdef CONFIG_IEEE80211W
+void _sa_query_timer_hdl (void *FunctionContext)
{
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
-
- if(ptdls_sta != NULL)
- {
- if( !(ptdls_sta->tdls_sta_state & TDLS_LINKED_STATE) )
- {
- printk("HANDSHAKE TIME OUT\n");
- free_tdls_sta(ptdls_sta->padapter, ptdls_sta);
- }
- }
-}
-
-void init_handshake_timer(_adapter *padapter, struct sta_info *psta)
-{
- psta->padapter=padapter;
- _init_timer(&psta->handshake_timer, padapter->pnetdev, _tdls_handshake_timer_hdl, psta);
-}
-
-//Check tdls peer sta alive.
-void _tdls_alive_timer_phase1_hdl(void *FunctionContext)
-{
- _irqL irqL;
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
- _adapter *padapter = ptdls_sta->padapter;
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
-
- _enter_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
- ptdls_sta->timer_flag = 1;
- _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
-
- ptdls_sta->tdls_sta_state &= (~TDLS_ALIVE_STATE);
-
- DBG_8192C("issue_tdls_dis_req to check alive\n");
- issue_tdls_dis_req( padapter, ptdls_sta->hwaddr);
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CKALV_PH1);
- sta_update_last_rx_pkts(ptdls_sta);
-
- if ( ptdls_sta->timer_flag == 2 )
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_FREE_STA);
- else
- {
- _enter_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
- ptdls_sta->timer_flag = 0;
- _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
- }
-
-}
-
-void _tdls_alive_timer_phase2_hdl(void *FunctionContext)
-{
- _irqL irqL;
- struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
- _adapter *padapter = ptdls_sta->padapter;
- struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
-
- _enter_critical_bh(&(ptdlsinfo->hdl_lock), &irqL);
- ptdls_sta->timer_flag = 1;
- _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
-
- if( (ptdls_sta->tdls_sta_state & TDLS_ALIVE_STATE) &&
- (sta_last_rx_pkts(ptdls_sta) + 3 <= sta_rx_pkts(ptdls_sta)) )
- {
- DBG_8192C("TDLS STA ALIVE\n");
- ptdls_sta->alive_count = 0;
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CKALV_PH2);
- }
- else
- {
- DBG_8192C("TDLS STA TOO FAR\n");
- ptdls_sta->alive_count++;
- if( ptdls_sta->alive_count == TDLS_ALIVE_COUNT )
- {
- ptdls_sta->stat_code = _RSON_TDLS_TEAR_TOOFAR_;
- issue_tdls_teardown(padapter, ptdls_sta->hwaddr);
- }
- else
- {
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_CKALV_PH2);
- }
+ _adapter *padapter = (_adapter *)FunctionContext;
+ sa_query_timer_hdl(padapter);
}
+#endif //CONFIG_IEEE80211W
- if ( ptdls_sta->timer_flag == 2 )
- rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_FREE_STA);
- else
+void init_addba_retry_timer(_adapter *padapter, struct sta_info *psta)
{
- _enter_critical_bh(&(ptdlsinfo->hdl_lock), &irqL);
- ptdls_sta->timer_flag = 0;
- _exit_critical_bh(&ptdlsinfo->hdl_lock, &irqL);
-}
-
-}
-void init_tdls_alive_timer(_adapter *padapter, struct sta_info *psta)
-{
- psta->padapter=padapter;
- _init_timer(&psta->alive_timer1, padapter->pnetdev, _tdls_alive_timer_phase1_hdl, psta);
- _init_timer(&psta->alive_timer2, padapter->pnetdev, _tdls_alive_timer_phase2_hdl, psta);
+ _init_timer(&psta->addba_retry_timer, padapter->pnetdev, _addba_timer_hdl, psta);
}
-#endif //CONFIG_TDLS
/*
void _reauth_timer_hdl(void *FunctionContext)
@@ -513,6 +356,9 @@ void init_mlme_ext_timer(_adapter *padapter)
_init_timer(&pmlmeext->survey_timer, padapter->pnetdev, _survey_timer_hdl, padapter);
_init_timer(&pmlmeext->link_timer, padapter->pnetdev, _link_timer_hdl, padapter);
+#ifdef CONFIG_IEEE80211W
+ _init_timer(&pmlmeext->sa_query_timer, padapter->pnetdev, _sa_query_timer_hdl, padapter);
+#endif //CONFIG_IEEE80211W
//_init_timer(&pmlmeext->ADDBA_timer, padapter->pnetdev, _addba_timer_hdl, padapter);
//_init_timer(&pmlmeext->reauth_timer, padapter->pnetdev, _reauth_timer_hdl, padapter);
@@ -579,24 +425,24 @@ static int mgnt_xmit_entry(struct sk_buff *skb, struct net_device *pnetdev)
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
_adapter *padapter = (_adapter *)phostapdpriv->padapter;
- //DBG_8192C("%s\n", __FUNCTION__);
+ //DBG_871X("%s\n", __FUNCTION__);
- return padapter->HalFunc.hostap_mgnt_xmit_entry(padapter, skb);
+ return rtw_hal_hostap_mgnt_xmit_entry(padapter, skb);
}
static int mgnt_netdev_open(struct net_device *pnetdev)
{
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
- DBG_8192C("mgnt_netdev_open: MAC Address:" MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
+ DBG_871X("mgnt_netdev_open: MAC Address:" MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
init_usb_anchor(&phostapdpriv->anchored);
- if(!netif_queue_stopped(pnetdev))
- netif_start_queue(pnetdev);
+ if(!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_start_queue(pnetdev);
else
- netif_wake_queue(pnetdev);
+ rtw_netif_wake_queue(pnetdev);
netif_carrier_on(pnetdev);
@@ -609,14 +455,14 @@ static int mgnt_netdev_close(struct net_device *pnetdev)
{
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
- DBG_8192C("%s\n", __FUNCTION__);
+ DBG_871X("%s\n", __FUNCTION__);
usb_kill_anchored_urbs(&phostapdpriv->anchored);
netif_carrier_off(pnetdev);
- if (!netif_queue_stopped(pnetdev))
- netif_stop_queue(pnetdev);
+ if (!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_stop_queue(pnetdev);
//rtw_write16(phostapdpriv->padapter, 0x0116, 0x3f3f);
@@ -658,7 +504,7 @@ int hostapd_mode_init(_adapter *padapter)
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
- DBG_8192C("register rtl871x_mgnt_netdev_ops to netdev_ops\n");
+ DBG_871X("register rtl871x_mgnt_netdev_ops to netdev_ops\n");
pnetdev->netdev_ops = &rtl871x_mgnt_netdev_ops;
@@ -690,7 +536,7 @@ int hostapd_mode_init(_adapter *padapter)
if(dev_alloc_name(pnetdev,"mgnt.wlan%d") < 0)
{
- DBG_8192C("hostapd_mode_init(): dev_alloc_name, fail! \n");
+ DBG_871X("hostapd_mode_init(): dev_alloc_name, fail! \n");
}
@@ -713,7 +559,7 @@ int hostapd_mode_init(_adapter *padapter)
/* Tell the network stack we exist */
if (register_netdev(pnetdev) != 0)
{
- DBG_8192C("hostapd_mode_init(): register_netdev fail!\n");
+ DBG_871X("hostapd_mode_init(): register_netdev fail!\n");
if(pnetdev)
{
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/os_intfs.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/os_intfs.c
index b88a5eb..82dee6d 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/os_intfs.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/os_intfs.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -31,14 +31,10 @@
#include <drv_types.h>
#include <xmit_osdep.h>
#include <recv_osdep.h>
-#include <hal_init.h>
+#include <hal_intf.h>
#include <rtw_ioctl.h>
#include <rtw_version.h>
-#ifdef CONFIG_SDIO_HCI
-#include <sdio_osintf.h>
-#endif
-
#ifdef CONFIG_USB_HCI
#include <usb_osintf.h>
#endif
@@ -62,9 +58,9 @@ int rtw_rfintfs = HWPI;
int rtw_lbkmode = 0;//RTL8712_AIR_TRX;
-int rtw_network_mode = Ndis802_11IBSS;//Ndis802_11Infrastructure;//infra, ad-hoc, auto
+int rtw_network_mode = Ndis802_11IBSS;//Ndis802_11Infrastructure;//infra, ad-hoc, auto
//NDIS_802_11_SSID ssid;
-int rtw_channel = 1;//ad-hoc support requirement
+int rtw_channel = 1;//ad-hoc support requirement
int rtw_wireless_mode = WIRELESS_11BG_24N;
int rtw_vrtl_carrier_sense = AUTO_VCS;
int rtw_vcs_type = RTS_CTS;//*
@@ -74,18 +70,18 @@ int rtw_preamble = PREAMBLE_LONG;//long, short, auto
int rtw_scan_mode = 1;//active, passive
int rtw_adhoc_tx_pwr = 1;
int rtw_soft_ap = 0;
-//int smart_ps = 1;
+//int smart_ps = 1;
#ifdef CONFIG_POWER_SAVING
int rtw_power_mgnt = 1;
-#else
-int rtw_power_mgnt = PS_MODE_ACTIVE;
-#endif
-
#ifdef CONFIG_IPS_LEVEL_2
int rtw_ips_mode = IPS_LEVEL_2;
#else
int rtw_ips_mode = IPS_NORMAL;
#endif
+#else
+int rtw_power_mgnt = PS_MODE_ACTIVE;
+int rtw_ips_mode = IPS_NONE;
+#endif
module_param(rtw_ips_mode, int, 0644);
MODULE_PARM_DESC(rtw_ips_mode,"The default IPS mode");
@@ -101,21 +97,21 @@ int rtw_mp_mode = 1;
int rtw_mp_mode = 0;
#endif
int rtw_software_encrypt = 0;
-int rtw_software_decrypt = 0;
+int rtw_software_decrypt = 0;
int rtw_acm_method = 0;// 0:By SW 1:By HW.
-
+
int rtw_wmm_enable = 1;// default is set to enable the wmm.
-int rtw_uapsd_enable = 0;
+int rtw_uapsd_enable = 0;
int rtw_uapsd_max_sp = NO_LIMIT;
int rtw_uapsd_acbk_en = 0;
int rtw_uapsd_acbe_en = 0;
int rtw_uapsd_acvi_en = 0;
int rtw_uapsd_acvo_en = 0;
-
+
#ifdef CONFIG_80211N_HT
int rtw_ht_enable = 1;
-int rtw_cbw40_enable = 1;
+int rtw_cbw40_enable = 3; // 0 :diable, bit(0): enable 2.4g, bit(1): enable 5g
int rtw_ampdu_enable = 1;//for enable tx_ampdu
int rtw_rx_stbc = 1;// 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ
int rtw_ampdu_amsdu = 0;// 0: disabled, 1:enabled, 2:auto
@@ -123,7 +119,7 @@ int rtw_ampdu_amsdu = 0;// 0: disabled, 1:enabled, 2:auto
int rtw_lowrate_two_xmit = 1;//Use 2 path Tx to transmit MCS0~7 and legacy mode
-//int rf_config = RF_1T2R; // 1T2R
+//int rf_config = RF_1T2R; // 1T2R
int rtw_rf_config = RF_819X_MAX_TYPE; //auto
int rtw_low_power = 0;
#ifdef CONFIG_WIFI_TEST
@@ -131,6 +127,9 @@ int rtw_wifi_spec = 1;//for wifi test
#else
int rtw_wifi_spec = 0;
#endif
+
+int rtw_special_rf_path = 0; //0: 2T2R ,1: only turn on path A 1T1R, 2: only turn on path B 1T1R
+
int rtw_channel_plan = RT_CHANNEL_DOMAIN_MAX;
#ifdef CONFIG_BT_COEXIST
@@ -151,7 +150,7 @@ int rtw_enusbss = 0;//0:disable,1:enable
int rtw_hwpdn_mode=2;//0:disable,1:enable,2: by EFUSE config
#ifdef CONFIG_HW_PWRP_DETECTION
-int rtw_hwpwrp_detect = 1;
+int rtw_hwpwrp_detect = 1;
#else
int rtw_hwpwrp_detect = 0; //HW power ping detect 0:disable , 1:enable
#endif
@@ -166,11 +165,27 @@ int rtw_hw_wps_pbc = 0;
int rtw_mc2u_disable = 0;
#endif // CONFIG_TX_MCAST2UNI
+int rtw_mac_phy_mode = 0; //0:by efuse, 1:smsp, 2:dmdp, 3:dmsp.
+
+#ifdef CONFIG_80211D
+int rtw_80211d = 0;
+#endif
+
char* ifname = "wlan%d";
+module_param(ifname, charp, 0644);
+MODULE_PARM_DESC(ifname, "The default name to allocate for first interface");
+
+char* if2name = "wlan%d";
+module_param(if2name, charp, 0644);
+MODULE_PARM_DESC(if2name, "The default name to allocate for second interface");
char* rtw_initmac = 0; // temp mac address if users want to use instead of the mac address in Efuse
-module_param(ifname, charp, 0644);
+#ifdef CONFIG_MULTI_VIR_IFACES
+int rtw_ext_iface_num = 1;//primary/secondary iface is excluded
+module_param(rtw_ext_iface_num, int, 0644);
+#endif //CONFIG_MULTI_VIR_IFACES
+
module_param(rtw_initmac, charp, 0644);
module_param(rtw_channel_plan, int, 0644);
module_param(rtw_chip_version, int, 0644);
@@ -198,6 +213,8 @@ module_param(rtw_power_mgnt, int, 0644);
module_param(rtw_low_power, int, 0644);
module_param(rtw_wifi_spec, int, 0644);
+module_param(rtw_special_rf_path, int, 0644);
+
module_param(rtw_antdiv_cfg, int, 0644);
@@ -205,6 +222,8 @@ module_param(rtw_enusbss, int, 0644);
module_param(rtw_hwpdn_mode, int, 0644);
module_param(rtw_hwpwrp_detect, int, 0644);
+module_param(rtw_hw_wps_pbc, int, 0644);
+
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
char *rtw_adaptor_info_caching_file_path= "/data/misc/wifi/rtw_cache";
module_param(rtw_adaptor_info_caching_file_path, charp, 0644);
@@ -223,16 +242,6 @@ module_param(rtw_force_iol, bool, 0644);
MODULE_PARM_DESC(rtw_force_iol,"Force to enable IOL");
#endif //CONFIG_IOL
-#ifdef SUPPORT_64_STA
-uint rtw_bcmc_rate=8;
-module_param(rtw_bcmc_rate, uint, 0644);
-MODULE_PARM_DESC(rtw_bcmc_rate,"The bc/mc data rate");
-#endif // SUPPORT_64_STA
-
-uint rtw_intel_class_mode=0;
-module_param(rtw_intel_class_mode, uint, 0644);
-MODULE_PARM_DESC(rtw_intel_class_mode,"The intel class mode [0: off, 1: on]");
-
#ifdef CONFIG_FILE_FWIMG
char *rtw_fw_file_path= "";
module_param(rtw_fw_file_path, charp, 0644);
@@ -243,7 +252,18 @@ MODULE_PARM_DESC(rtw_fw_file_path, "The path of fw image");
module_param(rtw_mc2u_disable, int, 0644);
#endif // CONFIG_TX_MCAST2UNI
+module_param(rtw_mac_phy_mode, int, 0644);
+
+#ifdef CONFIG_80211D
+module_param(rtw_80211d, int, 0644);
+#endif
+
+uint rtw_notch_filter = RTW_NOTCH_FILTER;
+module_param(rtw_notch_filter, uint, 0644);
+MODULE_PARM_DESC(rtw_notch_filter, "0:Disable, 1:Enable, 2:Enable only for P2P");
+
static uint loadparam( _adapter *padapter, _nic_hdl pnetdev);
+int _netdev_open(struct net_device *pnetdev);
int netdev_open (struct net_device *pnetdev);
static int netdev_close (struct net_device *pnetdev);
@@ -255,23 +275,14 @@ static char rtw_proc_name[IFNAMSIZ];
static struct proc_dir_entry *rtw_proc = NULL;
static int rtw_proc_cnt = 0;
-#ifndef create_proc_entry
-/* dummy routines */
-void rtw_proc_remove_one(struct net_device *dev)
-{
-}
-
-void rtw_proc_init_one(struct net_device *dev)
-{
-}
-
-#else /* create_proc_entry not defined */
+#define RTW_PROC_NAME DRV_NAME
void rtw_proc_init_one(struct net_device *dev)
{
struct proc_dir_entry *dir_dev = NULL;
struct proc_dir_entry *entry=NULL;
_adapter *padapter = rtw_netdev_priv(dev);
+ u8 rf_type;
if(rtw_proc == NULL)
{
@@ -283,6 +294,18 @@ void rtw_proc_init_one(struct net_device *dev)
{
_rtw_memcpy(rtw_proc_name, RTL8192D_PROC_NAME, sizeof(RTL8192D_PROC_NAME));
}
+ else if(padapter->chip_type == RTL8723A)
+ {
+ _rtw_memcpy(rtw_proc_name, RTW_PROC_NAME, sizeof(RTW_PROC_NAME));
+ }
+ else if(padapter->chip_type == RTL8188E)
+ {
+ _rtw_memcpy(rtw_proc_name, RTW_PROC_NAME, sizeof(RTW_PROC_NAME));
+ }
+ else
+ {
+ _rtw_memcpy(rtw_proc_name, RTW_PROC_NAME, sizeof(RTW_PROC_NAME));
+ }
#if(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, proc_net);
@@ -290,23 +313,40 @@ void rtw_proc_init_one(struct net_device *dev)
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
#endif
if (rtw_proc == NULL) {
- DBG_8192C(KERN_ERR "Unable to create rtw_proc directory\n");
+ DBG_871X(KERN_ERR "Unable to create rtw_proc directory\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
- entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
+ entry = create_proc_read_entry("log_level", S_IFREG | S_IRUGO,
+ rtw_proc, proc_get_log_level, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ entry->write_proc = proc_set_log_level;
+
+#ifdef DBG_MEM_ALLOC
+ entry = create_proc_read_entry("mstat", S_IFREG | S_IRUGO,
+ rtw_proc, proc_get_mstat, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
+#endif /* DBG_MEM_ALLOC */
}
-
+
if(padapter->dir_dev == NULL)
{
- padapter->dir_dev = create_proc_entry(dev->name,
- S_IFDIR | S_IRUGO | S_IXUGO,
+ padapter->dir_dev = create_proc_entry(dev->name,
+ S_IFDIR | S_IRUGO | S_IXUGO,
rtw_proc);
dir_dev = padapter->dir_dev;
@@ -320,12 +360,12 @@ void rtw_proc_init_one(struct net_device *dev)
remove_proc_entry(rtw_proc_name, proc_net);
#else
remove_proc_entry(rtw_proc_name, init_net.proc_net);
-#endif
+#endif
rtw_proc = NULL;
}
}
- DBG_8192C("Unable to create dir_dev directory\n");
+ DBG_871X("Unable to create dir_dev directory\n");
return;
}
}
@@ -337,147 +377,283 @@ void rtw_proc_init_one(struct net_device *dev)
rtw_proc_cnt++;
entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO,
- dir_dev, proc_get_write_reg, dev);
+ dir_dev, proc_get_write_reg, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry->write_proc = proc_set_write_reg;
entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO,
- dir_dev, proc_get_read_reg, dev);
+ dir_dev, proc_get_read_reg, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry->write_proc = proc_set_read_reg;
-
+
entry = create_proc_read_entry("fwstate", S_IFREG | S_IRUGO,
- dir_dev, proc_get_fwstate, dev);
+ dir_dev, proc_get_fwstate, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("sec_info", S_IFREG | S_IRUGO,
- dir_dev, proc_get_sec_info, dev);
+ dir_dev, proc_get_sec_info, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("mlmext_state", S_IFREG | S_IRUGO,
- dir_dev, proc_get_mlmext_state, dev);
+ dir_dev, proc_get_mlmext_state, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("qos_option", S_IFREG | S_IRUGO,
- dir_dev, proc_get_qos_option, dev);
+ dir_dev, proc_get_qos_option, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("ht_option", S_IFREG | S_IRUGO,
- dir_dev, proc_get_ht_option, dev);
+ dir_dev, proc_get_ht_option, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("rf_info", S_IFREG | S_IRUGO,
- dir_dev, proc_get_rf_info, dev);
+ dir_dev, proc_get_rf_info, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
-
+
entry = create_proc_read_entry("ap_info", S_IFREG | S_IRUGO,
- dir_dev, proc_get_ap_info, dev);
+ dir_dev, proc_get_ap_info, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("adapter_state", S_IFREG | S_IRUGO,
- dir_dev, proc_get_adapter_state, dev);
+ dir_dev, proc_get_adapter_state, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry = create_proc_read_entry("trx_info", S_IFREG | S_IRUGO,
- dir_dev, proc_get_trx_info, dev);
+ dir_dev, proc_get_trx_info, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("mac_reg_dump1", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_mac_reg_dump1, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("mac_reg_dump2", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_mac_reg_dump2, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("mac_reg_dump3", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_mac_reg_dump3, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("bb_reg_dump1", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_bb_reg_dump1, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("bb_reg_dump2", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_bb_reg_dump2, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("bb_reg_dump3", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_bb_reg_dump3, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("rf_reg_dump1", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_rf_reg_dump1, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("rf_reg_dump2", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_rf_reg_dump2, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ if((RF_1T2R == rf_type) ||(RF_1T1R ==rf_type )) {
+ entry = create_proc_read_entry("rf_reg_dump3", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_rf_reg_dump3, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("rf_reg_dump4", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_rf_reg_dump4, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ }
+
#ifdef CONFIG_AP_MODE
entry = create_proc_read_entry("all_sta_info", S_IFREG | S_IRUGO,
- dir_dev, proc_get_all_sta_info, dev);
+ dir_dev, proc_get_all_sta_info, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
#endif
#ifdef DBG_MEMORY_LEAK
entry = create_proc_read_entry("_malloc_cnt", S_IFREG | S_IRUGO,
- dir_dev, proc_get_malloc_cnt, dev);
+ dir_dev, proc_get_malloc_cnt, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
#endif
#ifdef CONFIG_FIND_BEST_CHANNEL
entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
- dir_dev, proc_get_best_channel, dev);
+ dir_dev, proc_get_best_channel, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
+ entry->write_proc = proc_set_best_channel;
#endif
entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
- dir_dev, proc_get_rx_signal, dev);
+ dir_dev, proc_get_rx_signal, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry->write_proc = proc_set_rx_signal;
+ entry = create_proc_read_entry("ht_enable", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_ht_enable, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ entry->write_proc = proc_set_ht_enable;
+
+ entry = create_proc_read_entry("cbw40_enable", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_cbw40_enable, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ entry->write_proc = proc_set_cbw40_enable;
+
entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO,
- dir_dev, proc_get_ampdu_enable, dev);
+ dir_dev, proc_get_ampdu_enable, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry->write_proc = proc_set_ampdu_enable;
+ entry = create_proc_read_entry("rx_stbc", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_rx_stbc, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ entry->write_proc = proc_set_rx_stbc;
+
+
+ entry = create_proc_read_entry("path_rssi", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_two_path_rssi, dev);
+
+ entry = create_proc_read_entry("vid", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_vid, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
+ entry = create_proc_read_entry("pid", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_pid, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+
entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO,
- dir_dev, proc_get_rssi_disp, dev);
+ dir_dev, proc_get_rssi_disp, dev);
if (!entry) {
- DBG_871X("Unable to create_proc_read_entry!\n");
+ DBG_871X("Unable to create_proc_read_entry!\n");
return;
}
entry->write_proc = proc_set_rssi_disp;
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ entry = create_proc_read_entry("sreset", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_sreset, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ entry->write_proc = proc_set_sreset;
+#endif /* DBG_CONFIG_ERROR_DETECT */
+
+#ifdef CONFIG_DM_ADAPTIVITY
+ entry = create_proc_read_entry("dm_adaptivity", S_IFREG | S_IRUGO,
+ dir_dev, proc_get_dm_adaptivity, dev);
+ if (!entry) {
+ DBG_871X("Unable to create_proc_read_entry!\n");
+ return;
+ }
+ entry->write_proc = proc_set_dm_adaptivity;
+#endif /* CONFIG_DM_ADAPTIVITY */
+
}
void rtw_proc_remove_one(struct net_device *dev)
{
struct proc_dir_entry *dir_dev = NULL;
_adapter *padapter = rtw_netdev_priv(dev);
-
+ u8 rf_type;
dir_dev = padapter->dir_dev;
padapter->dir_dev = NULL;
@@ -491,29 +667,64 @@ void rtw_proc_remove_one(struct net_device *dev)
remove_proc_entry("mlmext_state", dir_dev);
remove_proc_entry("qos_option", dir_dev);
remove_proc_entry("ht_option", dir_dev);
- remove_proc_entry("rf_info", dir_dev);
+ remove_proc_entry("rf_info", dir_dev);
remove_proc_entry("ap_info", dir_dev);
remove_proc_entry("adapter_state", dir_dev);
remove_proc_entry("trx_info", dir_dev);
-#ifdef CONFIG_AP_MODE
+ remove_proc_entry("mac_reg_dump1", dir_dev);
+ remove_proc_entry("mac_reg_dump2", dir_dev);
+ remove_proc_entry("mac_reg_dump3", dir_dev);
+ remove_proc_entry("bb_reg_dump1", dir_dev);
+ remove_proc_entry("bb_reg_dump2", dir_dev);
+ remove_proc_entry("bb_reg_dump3", dir_dev);
+ remove_proc_entry("rf_reg_dump1", dir_dev);
+ remove_proc_entry("rf_reg_dump2", dir_dev);
+ rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+ if((RF_1T2R == rf_type) ||(RF_1T1R ==rf_type )) {
+ remove_proc_entry("rf_reg_dump3", dir_dev);
+ remove_proc_entry("rf_reg_dump4", dir_dev);
+ }
+#ifdef CONFIG_AP_MODE
remove_proc_entry("all_sta_info", dir_dev);
-#endif
+#endif
#ifdef DBG_MEMORY_LEAK
remove_proc_entry("_malloc_cnt", dir_dev);
-#endif
+#endif
#ifdef CONFIG_FIND_BEST_CHANNEL
remove_proc_entry("best_channel", dir_dev);
-#endif
+#endif
remove_proc_entry("rx_signal", dir_dev);
+ remove_proc_entry("cbw40_enable", dir_dev);
+
+ remove_proc_entry("ht_enable", dir_dev);
+
+ remove_proc_entry("ampdu_enable", dir_dev);
+
+ remove_proc_entry("rx_stbc", dir_dev);
+
+ remove_proc_entry("path_rssi", dir_dev);
+
+ remove_proc_entry("vid", dir_dev);
+
+ remove_proc_entry("pid", dir_dev);
+
remove_proc_entry("rssi_disp", dir_dev);
+#if defined(DBG_CONFIG_ERROR_DETECT)
+ remove_proc_entry("sreset", dir_dev);
+#endif /* DBG_CONFIG_ERROR_DETECT */
+
+#ifdef CONFIG_DM_ADAPTIVITY
+ remove_proc_entry("dm_adaptivity", dir_dev);
+#endif
+
remove_proc_entry(dev->name, rtw_proc);
dir_dev = NULL;
-
+
}
else
{
@@ -526,22 +737,26 @@ void rtw_proc_remove_one(struct net_device *dev)
{
if(rtw_proc){
remove_proc_entry("ver_info", rtw_proc);
-
+
+ remove_proc_entry("log_level", rtw_proc);
+ #ifdef DBG_MEM_ALLOC
+ remove_proc_entry("mstat", rtw_proc);
+ #endif /* DBG_MEM_ALLOC */
#if(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
remove_proc_entry(rtw_proc_name, proc_net);
#else
remove_proc_entry(rtw_proc_name, init_net.proc_net);
-#endif
+#endif
rtw_proc = NULL;
}
}
}
#endif
-#endif
+uint loadparam( _adapter *padapter, _nic_hdl pnetdev);
uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
{
-
+
uint status = _SUCCESS;
struct registry_priv *registry_par = &padapter->registrypriv;
@@ -549,13 +764,13 @@ _func_enter_;
registry_par->chip_version = (u8)rtw_chip_version;
registry_par->rfintfs = (u8)rtw_rfintfs;
- registry_par->lbkmode = (u8)rtw_lbkmode;
+ registry_par->lbkmode = (u8)rtw_lbkmode;
//registry_par->hci = (u8)hci;
- registry_par->network_mode = (u8)rtw_network_mode;
+ registry_par->network_mode = (u8)rtw_network_mode;
- _rtw_memcpy(registry_par->ssid.Ssid, "ANY", 3);
+ _rtw_memcpy(registry_par->ssid.Ssid, "ANY", 3);
registry_par->ssid.SsidLength = 3;
-
+
registry_par->channel = (u8)rtw_channel;
registry_par->wireless_mode = (u8)rtw_wireless_mode;
registry_par->vrtl_carrier_sense = (u8)rtw_vrtl_carrier_sense ;
@@ -566,7 +781,7 @@ _func_enter_;
registry_par->scan_mode = (u8)rtw_scan_mode;
registry_par->adhoc_tx_pwr = (u8)rtw_adhoc_tx_pwr;
registry_par->soft_ap= (u8)rtw_soft_ap;
- //registry_par->smart_ps = (u8)rtw_smart_ps;
+ //registry_par->smart_ps = (u8)rtw_smart_ps;
registry_par->power_mgnt = (u8)rtw_power_mgnt;
registry_par->ips_mode = (u8)rtw_ips_mode;
registry_par->radio_enable = (u8)rtw_radio_enable;
@@ -574,16 +789,16 @@ _func_enter_;
registry_par->short_retry_lmt = (u8)rtw_short_retry_lmt;
registry_par->busy_thresh = (u16)rtw_busy_thresh;
//registry_par->qos_enable = (u8)rtw_qos_enable;
- registry_par->ack_policy = (u8)rtw_ack_policy;
- registry_par->mp_mode = (u8)rtw_mp_mode;
+ registry_par->ack_policy = (u8)rtw_ack_policy;
+ registry_par->mp_mode = (u8)rtw_mp_mode;
registry_par->software_encrypt = (u8)rtw_software_encrypt;
- registry_par->software_decrypt = (u8)rtw_software_decrypt;
+ registry_par->software_decrypt = (u8)rtw_software_decrypt;
registry_par->acm_method = (u8)rtw_acm_method;
//UAPSD
registry_par->wmm_enable = (u8)rtw_wmm_enable;
- registry_par->uapsd_enable = (u8)rtw_uapsd_enable;
+ registry_par->uapsd_enable = (u8)rtw_uapsd_enable;
registry_par->uapsd_max_sp = (u8)rtw_uapsd_max_sp;
registry_par->uapsd_acbk_en = (u8)rtw_uapsd_acbk_en;
registry_par->uapsd_acbe_en = (u8)rtw_uapsd_acbe_en;
@@ -594,7 +809,7 @@ _func_enter_;
registry_par->ht_enable = (u8)rtw_ht_enable;
registry_par->cbw40_enable = (u8)rtw_cbw40_enable;
registry_par->ampdu_enable = (u8)rtw_ampdu_enable;
- registry_par->rx_stbc = (u8)rtw_rx_stbc;
+ registry_par->rx_stbc = (u8)rtw_rx_stbc;
registry_par->ampdu_amsdu = (u8)rtw_ampdu_amsdu;
#endif
@@ -602,9 +817,9 @@ _func_enter_;
registry_par->rf_config = (u8)rtw_rf_config;
registry_par->low_power = (u8)rtw_low_power;
-
- registry_par->wifi_spec = (u8)rtw_wifi_spec;
+ registry_par->wifi_spec = (u8)rtw_wifi_spec;
+ registry_par->special_rf_path = (u8)rtw_special_rf_path;
registry_par->channel_plan = (u8)rtw_channel_plan;
#ifdef CONFIG_BT_COEXIST
@@ -627,36 +842,49 @@ _func_enter_;
registry_par->hw_wps_pbc = (u8)rtw_hw_wps_pbc;
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
- snprintf(registry_par->adaptor_info_caching_file_path, PATH_LENGTH_MAX, "%s",rtw_adaptor_info_caching_file_path);
+ snprintf(registry_par->adaptor_info_caching_file_path, PATH_LENGTH_MAX, "%s", rtw_adaptor_info_caching_file_path);
registry_par->adaptor_info_caching_file_path[PATH_LENGTH_MAX-1]=0;
#endif
#ifdef CONFIG_LAYER2_ROAMING
registry_par->max_roaming_times = (u8)rtw_max_roaming_times;
+#ifdef CONFIG_INTEL_WIDI
+ registry_par->max_roaming_times = (u8)rtw_max_roaming_times + 2;
+#endif // CONFIG_INTEL_WIDI
#endif
#ifdef CONFIG_IOL
registry_par->force_iol = rtw_force_iol;
#endif
-#ifdef SUPPORT_64_STA
- registry_par->bcmc_rate= (u8)rtw_bcmc_rate;
+ registry_par->mac_phy_mode = rtw_mac_phy_mode;
+
+#ifdef CONFIG_80211D
+ registry_par->enable80211d = (u8)rtw_80211d;
#endif
- registry_par->intel_class_mode= (u8)rtw_intel_class_mode;
+
+ snprintf(registry_par->ifname, 16, "%s", ifname);
+ snprintf(registry_par->if2name, 16, "%s", if2name);
+
+ registry_par->notch_filter = (u8)rtw_notch_filter;
+
+#ifdef CONFIG_MULTI_VIR_IFACES
+ registry_par->ext_iface_num = (u8)rtw_ext_iface_num;
+#endif //CONFIG_MULTI_VIR_IFACES
+
_func_exit_;
return status;
-
}
static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p)
{
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
struct sockaddr *addr = p;
-
+
if(padapter->bup == _FALSE)
{
- //DBG_8192C("r8711_net_set_mac_address(), MAC=%x:%x:%x:%x:%x:%x\n", addr->sa_data[0], addr->sa_data[1], addr->sa_data[2], addr->sa_data[3],
+ //DBG_871X("r8711_net_set_mac_address(), MAC=%x:%x:%x:%x:%x:%x\n", addr->sa_data[0], addr->sa_data[1], addr->sa_data[2], addr->sa_data[3],
//addr->sa_data[4], addr->sa_data[5]);
_rtw_memcpy(padapter->eeprompriv.mac_addr, addr->sa_data, ETH_ALEN);
//_rtw_memcpy(pnetdev->dev_addr, addr->sa_data, ETH_ALEN);
@@ -673,20 +901,103 @@ static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev)
struct recv_priv *precvpriv = &(padapter->recvpriv);
padapter->stats.tx_packets = pxmitpriv->tx_pkts;//pxmitpriv->tx_pkts++;
- padapter->stats.rx_packets = precvpriv->rx_pkts;//precvpriv->rx_pkts++;
+ padapter->stats.rx_packets = precvpriv->rx_pkts;//precvpriv->rx_pkts++;
padapter->stats.tx_dropped = pxmitpriv->tx_drop;
padapter->stats.rx_dropped = precvpriv->rx_drop;
padapter->stats.tx_bytes = pxmitpriv->tx_bytes;
padapter->stats.rx_bytes = precvpriv->rx_bytes;
-
- return &padapter->stats;
+
+ return &padapter->stats;
+}
+
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+/*
+ * AC to queue mapping
+ *
+ * AC_VO -> queue 0
+ * AC_VI -> queue 1
+ * AC_BE -> queue 2
+ * AC_BK -> queue 3
+ */
+static const u16 rtw_1d_to_queue[8] = { 2, 3, 3, 2, 1, 1, 0, 0 };
+
+/* Given a data frame determine the 802.1p/1d tag to use. */
+unsigned int rtw_classify8021d(struct sk_buff *skb)
+{
+ unsigned int dscp;
+
+ /* skb->priority values from 256->263 are magic values to
+ * directly indicate a specific 802.1d priority. This is used
+ * to allow 802.1d priority to be passed directly in from VLAN
+ * tags, etc.
+ */
+ if (skb->priority >= 256 && skb->priority <= 263)
+ return skb->priority - 256;
+
+ switch (skb->protocol) {
+ case htons(ETH_P_IP):
+ dscp = ip_hdr(skb)->tos & 0xfc;
+ break;
+ default:
+ return 0;
+ }
+
+ return dscp >> 5;
+}
+
+static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb)
+{
+ _adapter *padapter = rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+
+ skb->priority = rtw_classify8021d(skb);
+
+ if(pmlmepriv->acm_mask != 0)
+ {
+ skb->priority = qos_acm(pmlmepriv->acm_mask, skb->priority);
+ }
+
+ return rtw_1d_to_queue[skb->priority];
+}
+
+u16 rtw_recv_select_queue(struct sk_buff *skb)
+{
+ struct iphdr *piphdr;
+ unsigned int dscp;
+ u16 eth_type;
+ u32 priority;
+ u8 *pdata = skb->data;
+
+ _rtw_memcpy(&eth_type, pdata+(ETH_ALEN<<1), 2);
+
+ switch (eth_type) {
+ case htons(ETH_P_IP):
+
+ piphdr = (struct iphdr *)(pdata+ETH_HLEN);
+
+ dscp = piphdr->tos & 0xfc;
+
+ priority = dscp >> 5;
+
+ break;
+ default:
+ priority = 0;
+ }
+
+ return rtw_1d_to_queue[priority];
+
}
+#endif
+
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
static const struct net_device_ops rtw_netdev_ops = {
.ndo_open = netdev_open,
.ndo_stop = netdev_close,
.ndo_start_xmit = rtw_xmit_entry,
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ .ndo_select_queue = rtw_select_queue,
+#endif
.ndo_set_mac_address = rtw_net_set_mac_address,
.ndo_get_stats = rtw_net_get_stats,
.ndo_do_ioctl = rtw_ioctl,
@@ -715,24 +1026,24 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
TargetNetdev = dev_get_by_name(devnet, "wlan0");
#endif
if(TargetNetdev) {
- DBG_8192C("Force onboard module driver disappear !!!\n");
+ DBG_871X("Force onboard module driver disappear !!!\n");
TargetAdapter = rtw_netdev_priv(TargetNetdev);
TargetAdapter->DriverState = DRIVER_DISAPPEAR;
padapter->pid[0] = TargetAdapter->pid[0];
padapter->pid[1] = TargetAdapter->pid[1];
padapter->pid[2] = TargetAdapter->pid[2];
-
+
dev_put(TargetNetdev);
unregister_netdev(TargetNetdev);
-#ifdef CONFIG_PROC_DEBUG
+
if(TargetAdapter->chip_type == padapter->chip_type)
rtw_proc_remove_one(TargetNetdev);
-#endif
+
padapter->DriverState = DRIVER_REPLACE_DONGLE;
}
}
-#endif
+#endif //CONFIG_EASY_REPLACEMENT
if(dev_alloc_name(pnetdev, ifname) < 0)
{
@@ -740,41 +1051,41 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
}
netif_carrier_off(pnetdev);
- //netif_stop_queue(pnetdev);
+ //rtw_netif_stop_queue(pnetdev);
return 0;
}
-struct net_device *rtw_init_netdev(_adapter *old_padapter)
+struct net_device *rtw_init_netdev(_adapter *old_padapter)
{
_adapter *padapter;
struct net_device *pnetdev;
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+init_net_dev\n"));
- if(old_padapter != NULL)
+ if(old_padapter != NULL)
pnetdev = rtw_alloc_etherdev_with_old_priv(sizeof(_adapter), (void *)old_padapter);
- else
+ else
pnetdev = rtw_alloc_etherdev(sizeof(_adapter));
-
+
if (!pnetdev)
return NULL;
padapter = rtw_netdev_priv(pnetdev);
- padapter->pnetdev = pnetdev;
+ padapter->pnetdev = pnetdev;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
SET_MODULE_OWNER(pnetdev);
#endif
-
+
//pnetdev->init = NULL;
-
+
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
- DBG_8192C("register rtw_netdev_ops to netdev_ops\n");
+ DBG_871X("register rtw_netdev_ops to netdev_ops\n");
pnetdev->netdev_ops = &rtw_netdev_ops;
#else
pnetdev->open = netdev_open;
- pnetdev->stop = netdev_close;
+ pnetdev->stop = netdev_close;
pnetdev->hard_start_xmit = rtw_xmit_entry;
pnetdev->set_mac_address = rtw_net_set_mac_address;
pnetdev->get_stats = rtw_net_get_stats;
@@ -784,11 +1095,12 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
#ifdef CONFIG_TCP_CSUM_OFFLOAD_TX
pnetdev->features |= NETIF_F_IP_CSUM;
-#endif
+#endif
//pnetdev->tx_timeout = NULL;
pnetdev->watchdog_timeo = HZ*3; /* 3 second timeout */
-
+#ifdef CONFIG_WIRELESS_EXT
pnetdev->wireless_handlers = (struct iw_handler_def *)&rtw_handlers_def;
+#endif
#ifdef WIRELESS_SPY
//priv->wireless_data.spy_data = &priv->spy_data;
@@ -797,36 +1109,72 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
//step 2.
loadparam(padapter, pnetdev);
-
+
return pnetdev;
}
+void rtw_unregister_netdevs(struct dvobj_priv *dvobj)
+{
+ int i;
+ _adapter *padapter = NULL;
+
+ for (i=0;i<dvobj->iface_nums;i++) {
+ struct net_device *pnetdev = NULL;
+
+ padapter = dvobj->padapters[i];
+
+ if (padapter == NULL)
+ continue;
+
+ pnetdev = padapter->pnetdev;
+
+ if((padapter->DriverState != DRIVER_DISAPPEAR) && pnetdev) {
+ unregister_netdev(pnetdev); //will call netdev_close()
+ rtw_proc_remove_one(pnetdev);
+ }
+
+ #ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_unregister(padapter->rtw_wdev);
+ #endif
+ }
+
+}
+
u32 rtw_start_drv_threads(_adapter *padapter)
{
u32 _status = _SUCCESS;
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_start_drv_threads\n"));
-
-#ifdef CONFIG_SDIO_HCI
- if(!start_kthread(&padapter->xmitThread, rtw_xmit_thread, padapter, "8192cu-xmit"))
+#ifdef CONFIG_XMIT_THREAD_MODE
+ padapter->xmitThread = kthread_run(rtw_xmit_thread, padapter, "RTW_XMIT_THREAD");
+ if(IS_ERR(padapter->xmitThread))
_status = _FAIL;
#endif
#ifdef CONFIG_RECV_THREAD_MODE
- if(!start_kthread(&padapter->recvThread, recv_thread, padapter, "8192cu-recv"))
- _status = _FAIL;
+ padapter->recvThread = kthread_run(rtw_recv_thread, padapter, "RTW_RECV_THREAD");
+ if(IS_ERR(padapter->recvThread))
+ _status = _FAIL;
#endif
- if(!start_kthread(&padapter->cmdThread, rtw_cmd_thread, padapter, "8192cu-cmd"))
- _status = _FAIL;
- else
- _rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema); //wait for cmd_thread to run
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->isprimary == _TRUE)
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ padapter->cmdThread = kthread_run(rtw_cmd_thread, padapter, "RTW_CMD_THREAD");
+ if(IS_ERR(padapter->cmdThread))
+ _status = _FAIL;
+ else
+ _rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema); //wait for cmd_thread to run
+ }
+
#ifdef CONFIG_EVENT_THREAD_MODE
- if(!start_kthread(&padapter->evtThread, event_thread, padapter, "8192cu-evt"))
- _status = _FAIL;
+ padapter->evtThread = kthread_run(event_thread, padapter, "RTW_EVENT_THREAD");
+ if(IS_ERR(padapter->evtThread))
+ _status = _FAIL;
#endif
return _status;
@@ -835,13 +1183,13 @@ u32 rtw_start_drv_threads(_adapter *padapter)
void rtw_stop_drv_threads (_adapter *padapter)
{
- RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_stop_drv_threads\n"));
+ RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_stop_drv_threads\n"));
- //Below is to termindate rtw_cmd_thread & event_thread...
- _rtw_up_sema(&padapter->cmdpriv.cmd_queue_sema);
- //_rtw_up_sema(&padapter->cmdpriv.cmd_done_sema);
- if(padapter->cmdThread){
- _rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);
+#ifdef CONFIG_CONCURRENT_MODE
+ if(padapter->isprimary == _TRUE)
+#endif //CONFIG_CONCURRENT_MODE
+ {
+ rtw_stop_cmd_thread(padapter);
}
#ifdef CONFIG_EVENT_THREAD_MODE
@@ -853,12 +1201,12 @@ void rtw_stop_drv_threads (_adapter *padapter)
#ifdef CONFIG_XMIT_THREAD_MODE
// Below is to termindate tx_thread...
- _rtw_up_sema(&padapter->xmitpriv.xmit_sema);
+ _rtw_up_sema(&padapter->xmitpriv.xmit_sema);
_rtw_down_sema(&padapter->xmitpriv.terminate_xmitthread_sema);
RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt: rtw_xmit_thread can be terminated ! \n"));
#endif
-
-#ifdef CONFIG_RECV_THREAD_MODE
+
+#ifdef CONFIG_RECV_THREAD_MODE
// Below is to termindate rx_thread...
_rtw_up_sema(&padapter->recvpriv.recv_sema);
_rtw_down_sema(&padapter->recvpriv.terminate_recvthread_sema);
@@ -868,12 +1216,12 @@ void rtw_stop_drv_threads (_adapter *padapter)
}
+u8 rtw_init_default_value(_adapter *padapter);
u8 rtw_init_default_value(_adapter *padapter)
{
u8 ret = _SUCCESS;
struct registry_priv* pregistrypriv = &padapter->registrypriv;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- struct recv_priv *precvpriv = &padapter->recvpriv;
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
struct security_priv *psecuritypriv = &padapter->securitypriv;
@@ -883,30 +1231,30 @@ u8 rtw_init_default_value(_adapter *padapter)
pxmitpriv->vcs_type = pregistrypriv->vcs_type;
//pxmitpriv->rts_thresh = pregistrypriv->rts_thresh;
pxmitpriv->frag_len = pregistrypriv->frag_thresh;
-
-
+
+
//recv_priv
-
+
//mlme_priv
pmlmepriv->scan_interval = SCAN_INTERVAL;// 30*2 sec = 60sec
pmlmepriv->scan_mode = SCAN_ACTIVE;
-
+
//qos_priv
//pmlmepriv->qospriv.qos_option = pregistrypriv->wmm_enable;
-
+
//ht_priv
-#ifdef CONFIG_80211N_HT
+#ifdef CONFIG_80211N_HT
pmlmepriv->htpriv.ampdu_enable = _FALSE;//set to disabled
-#endif
+#endif
//security_priv
//rtw_get_encrypt_decrypt_from_registrypriv(padapter);
psecuritypriv->binstallGrpkey = _FAIL;
psecuritypriv->sw_encrypt=pregistrypriv->software_encrypt;
psecuritypriv->sw_decrypt=pregistrypriv->software_decrypt;
-
+
psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; //open system
psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_;
@@ -917,44 +1265,77 @@ u8 rtw_init_default_value(_adapter *padapter)
psecuritypriv->ndisauthtype = Ndis802_11AuthModeOpen;
psecuritypriv->ndisencryptstatus = Ndis802_11WEPDisabled;
-
+
//pwrctrl_priv
//registry_priv
- rtw_init_registrypriv_dev_network(padapter);
+ rtw_init_registrypriv_dev_network(padapter);
rtw_update_registrypriv_dev_network(padapter);
//hal_priv
- padapter->HalFunc.init_default_value(padapter);
+ rtw_hal_def_value_init(padapter);
//misc.
padapter->bReadPortCancel = _FALSE;
padapter->bWritePortCancel = _FALSE;
padapter->bRxRSSIDisplay = 0;
-
- return ret;
+ padapter->bForceWriteInitGain = 1;
+ padapter->bNotifyChannelChange = 0;
+#ifdef CONFIG_P2P
+ padapter->bShowGetP2PState = 1;
+#endif
+ return ret;
+}
+
+struct dvobj_priv *devobj_init(void)
+{
+ struct dvobj_priv *pdvobj = NULL;
+
+ if ((pdvobj = (struct dvobj_priv*)rtw_zmalloc(sizeof(*pdvobj))) == NULL)
+ return NULL;
+
+ _rtw_mutex_init(&pdvobj->hw_init_mutex);
+ _rtw_mutex_init(&pdvobj->h2c_fwcmd_mutex);
+ _rtw_mutex_init(&pdvobj->setch_mutex);
+ _rtw_mutex_init(&pdvobj->setbw_mutex);
+
+ pdvobj->processing_dev_remove = _FALSE;
+
+ return pdvobj;
}
+void devobj_deinit(struct dvobj_priv *pdvobj)
+{
+ if(!pdvobj)
+ return;
+
+ _rtw_mutex_free(&pdvobj->hw_init_mutex);
+ _rtw_mutex_free(&pdvobj->h2c_fwcmd_mutex);
+ _rtw_mutex_free(&pdvobj->setch_mutex);
+ _rtw_mutex_free(&pdvobj->setbw_mutex);
+
+ rtw_mfree((u8*)pdvobj, sizeof(*pdvobj));
+}
+
u8 rtw_reset_drv_sw(_adapter *padapter)
{
- u8 ret8=_SUCCESS;
+ u8 ret8=_SUCCESS;
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
//hal_priv
- padapter->HalFunc.init_default_value(padapter);
+ rtw_hal_def_value_init(padapter);
padapter->bReadPortCancel = _FALSE;
padapter->bWritePortCancel = _FALSE;
padapter->bRxRSSIDisplay = 0;
pmlmepriv->scan_interval = SCAN_INTERVAL;// 30*2 sec = 60sec
-
- pwrctrlpriv->bips_processing = _FALSE;
+
+ pwrctrlpriv->bips_processing = _FALSE;
pwrctrlpriv->rf_pwrstate = rf_on;
- pwrctrlpriv->bInSuspend = _FALSE;
-
+
padapter->xmitpriv.tx_pkts = 0;
padapter->recvpriv.rx_pkts = 0;
@@ -962,15 +1343,14 @@ u8 rtw_reset_drv_sw(_adapter *padapter)
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY |_FW_UNDER_LINKING);
-#ifdef CONFIG_AUTOSUSPEND
+#ifdef CONFIG_AUTOSUSPEND
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,22) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,34))
- padapter->dvobjpriv.pusbdev->autosuspend_disabled = 1;//autosuspend disabled by the user
+ adapter_to_dvobj(padapter)->pusbdev->autosuspend_disabled = 1;//autosuspend disabled by the user
#endif
#endif
#ifdef DBG_CONFIG_ERROR_DETECT
- if(padapter->HalFunc.sreset_reset_value)
- padapter->HalFunc.sreset_reset_value(padapter);
+ rtw_hal_sreset_reset_value(padapter);
#endif
pwrctrlpriv->pwr_state_check_cnts = 0;
@@ -1000,17 +1380,17 @@ _func_enter_;
ret8=_FAIL;
goto exit;
}
-
+
padapter->cmdpriv.padapter=padapter;
-
+
if ((rtw_init_evt_priv(&padapter->evtpriv)) == _FAIL)
{
RT_TRACE(_module_os_intfs_c_,_drv_err_,("\n Can't init evt_priv\n"));
ret8=_FAIL;
goto exit;
}
-
-
+
+
if (rtw_init_mlme_priv(padapter) == _FAIL)
{
RT_TRACE(_module_os_intfs_c_,_drv_err_,("\n Can't init mlme_priv\n"));
@@ -1018,11 +1398,18 @@ _func_enter_;
goto exit;
}
-#ifdef CONFIG_IOCTL_CFG80211
#ifdef CONFIG_P2P
+ rtw_init_wifidirect_timers(padapter);
+ init_wifidirect_info(padapter, P2P_ROLE_DISABLE);
+ reset_global_wifidirect_info(padapter);
+ #ifdef CONFIG_IOCTL_CFG80211
rtw_init_cfg80211_wifidirect_info(padapter);
-#endif //CONFIG_P2P
-#endif //CONFIG_IOCTL_CFG80211
+ #endif
+#ifdef CONFIG_WFD
+ if(rtw_init_wifi_display_info(padapter) == _FAIL)
+ RT_TRACE(_module_os_intfs_c_,_drv_err_,("\n Can't init init_wifi_display_info\n"));
+#endif
+#endif /* CONFIG_P2P */
if(init_mlme_ext_priv(padapter) == _FAIL)
{
@@ -1046,18 +1433,20 @@ _func_enter_;
ret8=_FAIL;
goto exit;
}
-
+
if(_rtw_init_recv_priv(&padapter->recvpriv, padapter) == _FAIL)
{
DBG_871X("Can't _rtw_init_recv_priv\n");
ret8=_FAIL;
goto exit;
}
-
- // We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc().
- //_rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv));
+ // add for CONFIG_IEEE80211W, none 11w also can use
+ _rtw_spinlock_init(&padapter->security_key_mutex);
- //_init_timer(&(padapter->securitypriv.tkip_timer), padapter->pnetdev, rtw_use_tkipkey_handler, padapter);
+ // We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc().
+ //_rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv));
+
+ //_init_timer(&(padapter->securitypriv.tkip_timer), padapter->pifp, rtw_use_tkipkey_handler, padapter);
if(_rtw_init_sta_priv(&padapter->stapriv) == _FAIL)
{
@@ -1065,43 +1454,51 @@ _func_enter_;
ret8=_FAIL;
goto exit;
}
-
- padapter->stapriv.padapter = padapter;
+ padapter->stapriv.padapter = padapter;
+ padapter->setband = GHZ24_50;
rtw_init_bcmc_stainfo(padapter);
- rtw_init_pwrctrl_priv(padapter);
+ rtw_init_pwrctrl_priv(padapter);
//_rtw_memset((u8 *)&padapter->qospriv, 0, sizeof (struct qos_priv));//move to mlme_priv
-
+
#ifdef CONFIG_MP_INCLUDED
if (init_mp_priv(padapter) == _FAIL) {
- ERR_8192C("%s: initialize MP private data Fail!\n", __func__);
+ DBG_871X("%s: initialize MP private data Fail!\n", __func__);
}
#endif
ret8 = rtw_init_default_value(padapter);
- rtw_dm_init(padapter);
- rtw_sw_led_init(padapter);
+ rtw_hal_dm_init(padapter);
+ rtw_hal_sw_led_init(padapter);
#ifdef DBG_CONFIG_ERROR_DETECT
- rtw_sreset_init(padapter);
+ rtw_hal_sreset_init(padapter);
#endif
+#ifdef CONFIG_INTEL_WIDI
+ if(rtw_init_intel_widi(padapter) == _FAIL)
+ {
+ DBG_871X("Can't rtw_init_intel_widi\n");
+ ret8=_FAIL;
+ goto exit;
+ }
+#endif //CONFIG_INTEL_WIDI
#ifdef CONFIG_BR_EXT
_rtw_spinlock_init(&padapter->br_ext_lock);
#endif // CONFIG_BR_EXT
exit:
-
+
RT_TRACE(_module_os_intfs_c_,_drv_info_,("-rtw_init_drv_sw\n"));
- _func_exit_;
-
+ _func_exit_;
+
return ret8;
-
+
}
void rtw_cancel_all_timer(_adapter *padapter)
@@ -1115,13 +1512,13 @@ void rtw_cancel_all_timer(_adapter *padapter)
//RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel tkip_timer! \n"));
_cancel_timer_ex(&padapter->mlmepriv.scan_to_timer);
- RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel scan_to_timer! \n"));
-
+ RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel scan_to_timer! \n"));
+
_cancel_timer_ex(&padapter->mlmepriv.dynamic_chk_timer);
RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel dynamic_chk_timer! \n"));
// cancel sw led timer
- rtw_sw_led_deinit(padapter);
+ rtw_hal_sw_led_deinit(padapter);
RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel DeInitSwLeds! \n"));
_cancel_timer_ex(&padapter->pwrctrlpriv.pwr_state_check_timer);
@@ -1134,6 +1531,7 @@ void rtw_cancel_all_timer(_adapter *padapter)
#ifdef CONFIG_SET_SCAN_DENY_TIMER
_cancel_timer_ex(&padapter->mlmepriv.set_scan_deny_timer);
+ rtw_clear_scan_deny(padapter);
RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel set_scan_deny_timer! \n"));
#endif
@@ -1142,15 +1540,16 @@ void rtw_cancel_all_timer(_adapter *padapter)
#endif
// cancel dm timer
- padapter->HalFunc.dm_deinit(padapter);
+ rtw_hal_dm_deinit(padapter);
+#ifdef CONFIG_PLATFORM_FS_MX61
+ msleep(50);
+#endif
}
u8 rtw_free_drv_sw(_adapter *padapter)
{
- struct net_device *pnetdev = (struct net_device*)padapter->pnetdev;
-
- RT_TRACE(_module_os_intfs_c_,_drv_info_,("==>rtw_free_drv_sw"));
+ RT_TRACE(_module_os_intfs_c_,_drv_info_,("==>rtw_free_drv_sw"));
//we can call rtw_p2p_enable here, but:
@@ -1164,36 +1563,43 @@ u8 rtw_free_drv_sw(_adapter *padapter)
_cancel_timer_ex( &pwdinfo->find_phase_timer );
_cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
_cancel_timer_ex( &pwdinfo->pre_tx_scan_timer);
+#ifdef CONFIG_CONCURRENT_MODE
+ _cancel_timer_ex( &pwdinfo->ap_p2p_switch_timer );
+#endif // CONFIG_CONCURRENT_MODE
rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
}
}
#endif
+ // add for CONFIG_IEEE80211W, none 11w also can use
+ _rtw_spinlock_free(&padapter->security_key_mutex);
-
#ifdef CONFIG_BR_EXT
_rtw_spinlock_free(&padapter->br_ext_lock);
#endif // CONFIG_BR_EXT
+#ifdef CONFIG_INTEL_WIDI
+ rtw_free_intel_widi(padapter);
+#endif //CONFIG_INTEL_WIDI
free_mlme_ext_priv(&padapter->mlmeextpriv);
-
+
#ifdef CONFIG_TDLS
//rtw_free_tdls_info(&padapter->tdlsinfo);
#endif //CONFIG_TDLS
-
+
rtw_free_cmd_priv(&padapter->cmdpriv);
-
+
rtw_free_evt_priv(&padapter->evtpriv);
rtw_free_mlme_priv(&padapter->mlmepriv);
-
+
//free_io_queue(padapter);
-
+
_rtw_free_xmit_priv(&padapter->xmitpriv);
-
+
_rtw_free_sta_priv(&padapter->stapriv); //will free bcmc_stainfo here
-
- _rtw_free_recv_priv(&padapter->recvpriv);
+
+ _rtw_free_recv_priv(&padapter->recvpriv);
rtw_free_pwrctrl_priv(padapter);
@@ -1203,7 +1609,7 @@ u8 rtw_free_drv_sw(_adapter *padapter)
free_drvext(&padapter->drvextpriv);
#endif
- padapter->HalFunc.free_hal_data(padapter);
+ rtw_hal_free_data(padapter);
RT_TRACE(_module_os_intfs_c_,_drv_info_,("<==rtw_free_drv_sw\n"));
@@ -1211,265 +1617,1026 @@ u8 rtw_free_drv_sw(_adapter *padapter)
if(padapter->rereg_nd_name_priv.old_pnetdev) {
free_netdev(padapter->rereg_nd_name_priv.old_pnetdev);
padapter->rereg_nd_name_priv.old_pnetdev = NULL;
- }
+ }
- if(pnetdev)
+ // clear pbuddy_adapter to avoid access wrong pointer.
+ if(padapter->pbuddy_adapter != NULL)
{
- rtw_free_netdev(pnetdev);
+ padapter->pbuddy_adapter->pbuddy_adapter = NULL;
}
RT_TRACE(_module_os_intfs_c_,_drv_info_,("-rtw_free_drv_sw\n"));
return _SUCCESS;
-
+
}
-int _netdev_open(struct net_device *pnetdev)
+#ifdef CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_USB_HCI
+ #include <usb_hal.h>
+#endif
+
+#ifdef CONFIG_MULTI_VIR_IFACES
+int _netdev_vir_if_open(struct net_device *pnetdev)
{
- uint status;
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
+ _adapter *primary_padapter = GET_PRIMARY_ADAPTER(padapter);
- RT_TRACE(_module_os_intfs_c_,_drv_info_,("+871x_drv - dev_open\n"));
- DBG_8192C("+871x_drv - drv_open, bup=%d\n", padapter->bup);
+ DBG_871X(FUNC_NDEV_FMT" enter\n", FUNC_NDEV_ARG(pnetdev));
- if(pwrctrlpriv->ps_flag == _TRUE){
- padapter->net_closed = _FALSE;
- goto netdev_open_normal_process;
- }
-
- if(padapter->bup == _FALSE)
- {
- padapter->bDriverStopped = _FALSE;
- padapter->bSurpriseRemoved = _FALSE;
- padapter->bCardDisableWOHSM = _FALSE;
-
- status = rtw_hal_init(padapter);
- if (status ==_FAIL)
- {
- RT_TRACE(_module_os_intfs_c_,_drv_err_,("rtl871x_hal_init(): Can't init h/w!\n"));
- goto netdev_open_error;
- }
-
- DBG_8192C("MAC Address = "MAC_FMT"\n", MAC_ARG(pnetdev->dev_addr));
+ if(!primary_padapter)
+ goto _netdev_virtual_iface_open_error;
-
- status=rtw_start_drv_threads(padapter);
- if(status ==_FAIL)
- {
- RT_TRACE(_module_os_intfs_c_,_drv_err_,("Initialize driver software resource Failed!\n"));
- goto netdev_open_error;
- }
+ if(primary_padapter->bup == _FALSE || primary_padapter->hw_init_completed == _FALSE)
+ {
+ _netdev_open(primary_padapter->pnetdev);
+ }
+ if(padapter->bup == _FALSE && primary_padapter->bup == _TRUE &&
+ primary_padapter->hw_init_completed == _TRUE)
+ {
+ int i;
- if (init_hw_mlme_ext(padapter) == _FAIL)
- {
- RT_TRACE(_module_os_intfs_c_,_drv_err_,("can't init mlme_ext_priv\n"));
- goto netdev_open_error;
- }
+ padapter->bDriverStopped = _FALSE;
+ padapter->bSurpriseRemoved = _FALSE;
+ padapter->bCardDisableWOHSM = _FALSE;
+ _rtw_memcpy(padapter->HalData, primary_padapter->HalData, padapter->hal_data_sz);
-#ifdef CONFIG_DRVEXT_MODULE
- init_drvext(padapter);
-#endif
+ padapter->bFWReady = primary_padapter->bFWReady;
- if(padapter->intf_start)
+ if(rtw_start_drv_threads(padapter) == _FAIL)
{
- padapter->intf_start(padapter);
+ goto _netdev_virtual_iface_open_error;
}
-#ifdef CONFIG_PROC_DEBUG
-#ifndef RTK_DMP_PLATFORM
+ padapter->dir_dev = NULL;
rtw_proc_init_one(pnetdev);
-#endif
-#endif
#ifdef CONFIG_IOCTL_CFG80211
rtw_cfg80211_init_wiphy(padapter);
#endif
- rtw_led_control(padapter, LED_CTL_NO_LINK);
-
padapter->bup = _TRUE;
+ padapter->hw_init_completed = _TRUE;
+
+ rtw_start_mbssid_cam(padapter);//start mbssid_cam after bup = _TRUE & hw_init_completed = _TRUE
+
}
+
padapter->net_closed = _FALSE;
_set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
- if(( pwrctrlpriv->power_mgnt != PS_MODE_ACTIVE ) ||(padapter->pwrctrlpriv.bHWPwrPindetect))
- {
- padapter->pwrctrlpriv.bips_processing = _FALSE;
- rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
- }
-
- //netif_carrier_on(pnetdev);//call this func when rtw_joinbss_event_callback return success
- if(!netif_queue_stopped(pnetdev))
- netif_start_queue(pnetdev);
+ if(!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_start_queue(pnetdev);
else
- netif_wake_queue(pnetdev);
-
-#ifdef CONFIG_BR_EXT
+ rtw_netif_wake_queue(pnetdev);
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
- rcu_read_lock();
-#endif // (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
-
- //if(check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE)
- {
- //struct net_bridge *br = pnetdev->br_port->br;//->dev->dev_addr;
-#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
- if (pnetdev->br_port)
-#else // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
- if (rcu_dereference(padapter->pnetdev->rx_handler_data))
-#endif // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
- {
- struct net_device *br_netdev;
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
- br_netdev = dev_get_by_name(CONFIG_BR_EXT_BRNAME);
-#else // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
- struct net *devnet = NULL;
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
- devnet = pnetdev->nd_net;
-#else // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
- devnet = dev_net(pnetdev);
-#endif // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
-
- br_netdev = dev_get_by_name(devnet, CONFIG_BR_EXT_BRNAME);
-#endif // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
-
- if (br_netdev) {
- memcpy(padapter->br_mac, br_netdev->dev_addr, ETH_ALEN);
- dev_put(br_netdev);
- } else
- printk("%s()-%d: dev_get_by_name(%s) failed!", __FUNCTION__, __LINE__, CONFIG_BR_EXT_BRNAME);
- }
-
- padapter->ethBrExtInfo.addPPPoETag = 1;
- }
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
- rcu_read_unlock();
-#endif // (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
+ DBG_871X(FUNC_NDEV_FMT" exit\n", FUNC_NDEV_ARG(pnetdev));
+ return 0;
-#endif // CONFIG_BR_EXT
+_netdev_virtual_iface_open_error:
-netdev_open_normal_process:
+ padapter->bup = _FALSE;
- RT_TRACE(_module_os_intfs_c_,_drv_info_,("-871x_drv - dev_open\n"));
- DBG_8192C("-871x_drv - drv_open, bup=%d\n", padapter->bup);
-
- return 0;
-
-netdev_open_error:
+ netif_carrier_off(pnetdev);
+ rtw_netif_stop_queue(pnetdev);
- padapter->bup = _FALSE;
-
- netif_carrier_off(pnetdev);
- netif_stop_queue(pnetdev);
-
- RT_TRACE(_module_os_intfs_c_,_drv_err_,("-871x_drv - dev_open, fail!\n"));
- DBG_8192C("-871x_drv - drv_open fail, bup=%d\n", padapter->bup);
-
return (-1);
-
+
}
-int netdev_open(struct net_device *pnetdev)
+int netdev_vir_if_open(struct net_device *pnetdev)
{
int ret;
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
- struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
-
- _enter_pwrlock(&pwrctrlpriv->lock);
- ret = _netdev_open(pnetdev);
- _exit_pwrlock(&pwrctrlpriv->lock);
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->hw_init_mutex), NULL);
+ ret = _netdev_vir_if_open(pnetdev);
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->hw_init_mutex), NULL);
return ret;
}
-#ifdef CONFIG_IPS
-int ips_netdrv_open(_adapter *padapter)
+static int netdev_vir_if_close(struct net_device *pnetdev)
{
- int status = _SUCCESS;
- padapter->net_closed = _FALSE;
- DBG_8192C("===> %s.........\n",__FUNCTION__);
-
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
- padapter->bDriverStopped = _FALSE;
- padapter->bSurpriseRemoved = _FALSE;
- padapter->bCardDisableWOHSM = _FALSE;
- padapter->bup = _TRUE;
+ padapter->net_closed = _TRUE;
- status = rtw_hal_init(padapter);
- if (status ==_FAIL)
+ if(pnetdev)
{
- RT_TRACE(_module_os_intfs_c_,_drv_err_,("ips_netdrv_open(): Can't init h/w!\n"));
- goto netdev_open_error;
+ if (!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_stop_queue(pnetdev);
}
- if(padapter->intf_start)
- {
- padapter->intf_start(padapter);
- }
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_scan_abort(padapter);
+ wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = _FALSE;
+#endif
- rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
- _set_timer(&padapter->mlmepriv.dynamic_chk_timer,5000);
+ return 0;
+}
- return _SUCCESS;
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
+static const struct net_device_ops rtw_netdev_vir_if_ops = {
+ .ndo_open = netdev_vir_if_open,
+ .ndo_stop = netdev_vir_if_close,
+ .ndo_start_xmit = rtw_xmit_entry,
+ .ndo_set_mac_address = rtw_net_set_mac_address,
+ .ndo_get_stats = rtw_net_get_stats,
+ .ndo_do_ioctl = rtw_ioctl,
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ .ndo_select_queue = rtw_select_queue,
+#endif
+};
+#endif
-netdev_open_error:
- padapter->bup = _FALSE;
- DBG_8192C("-ips_netdrv_open - drv_open failure, bup=%d\n", padapter->bup);
+_adapter *rtw_drv_add_vir_if(_adapter *primary_padapter, void (*set_intf_ops)(struct _io_ops *pops))
+{
- return _FAIL;
-}
+ int res = _FAIL;
+ struct net_device *pnetdev=NULL;
+ _adapter *padapter = NULL;
+ struct dvobj_priv *pdvobjpriv;
+ u8 mac[ETH_ALEN];
+/*
+ if((primary_padapter->bup == _FALSE) ||
+ (rtw_buddy_adapter_up(primary_padapter) == _FALSE))
+ {
+ goto error_rtw_drv_add_iface;
+ }
-int rtw_ips_pwr_up(_adapter *padapter)
-{
- int result;
- u32 start_time = rtw_get_current_time();
- DBG_8192C("===> rtw_ips_pwr_up..............\n");
- rtw_reset_drv_sw(padapter);
- result = ips_netdrv_open(padapter);
+*/
+ /****** init netdev ******/
+ pnetdev = rtw_init_netdev(NULL);
+ if (!pnetdev)
+ goto error_rtw_drv_add_iface;
- rtw_led_control(padapter, LED_CTL_NO_LINK);
-
- DBG_8192C("<=== rtw_ips_pwr_up.............. in %dms\n", rtw_get_passing_time_ms(start_time));
- return result;
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
+ DBG_871X("register rtw_netdev_virtual_iface_ops to netdev_ops\n");
+ pnetdev->netdev_ops = &rtw_netdev_vir_if_ops;
+#else
+ pnetdev->open = netdev_vir_if_open;
+ pnetdev->stop = netdev_vir_if_close;
+#endif
-}
+#ifdef CONFIG_NO_WIRELESS_HANDLERS
+ pnetdev->wireless_handlers = NULL;
+#endif
-void rtw_ips_pwr_down(_adapter *padapter)
-{
- u32 start_time = rtw_get_current_time();
- DBG_8192C("===> rtw_ips_pwr_down...................\n");
+ /****** init adapter ******/
+ padapter = rtw_netdev_priv(pnetdev);
+ _rtw_memcpy(padapter, primary_padapter, sizeof(_adapter));
- padapter->bCardDisableWOHSM = _TRUE;
+ //
+ padapter->bup = _FALSE;
padapter->net_closed = _TRUE;
+ padapter->hw_init_completed = _FALSE;
- rtw_led_control(padapter, LED_CTL_POWER_OFF);
-
- rtw_ips_dev_unload(padapter);
- padapter->bCardDisableWOHSM = _FALSE;
- DBG_8192C("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
-}
+
+ //set adapter_type/iface type
+ padapter->isprimary = _FALSE;
+ padapter->adapter_type = MAX_ADAPTER;
+ padapter->pbuddy_adapter = primary_padapter;
+#if 0
+#ifndef CONFIG_HWPORT_SWAP //Port0 -> Pri , Port1 -> Sec
+ padapter->iface_type = IFACE_PORT1;
+#else
+ padapter->iface_type = IFACE_PORT0;
+#endif //CONFIG_HWPORT_SWAP
+#else
+ //extended virtual interfaces always are set to port0
+ padapter->iface_type = IFACE_PORT0;
#endif
-void rtw_ips_dev_unload(_adapter *padapter)
-{
- struct net_device *pnetdev= (struct net_device*)padapter->pnetdev;
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- DBG_8192C("====> %s...\n",__FUNCTION__);
+ //
+ padapter->pnetdev = pnetdev;
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_FIFO_CLEARN_UP, 0);
+ /****** setup dvobj ******/
+ pdvobjpriv = adapter_to_dvobj(padapter);
+ padapter->iface_id = pdvobjpriv->iface_nums;
+ pdvobjpriv->padapters[pdvobjpriv->iface_nums++] = padapter;
- if(padapter->intf_stop)
- {
- padapter->intf_stop(padapter);
- }
+ SET_NETDEV_DEV(pnetdev, dvobj_to_dev(pdvobjpriv));
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_alloc(padapter, dvobj_to_dev(pdvobjpriv));
+#endif //CONFIG_IOCTL_CFG80211
- //s5.
+ //set interface_type/chip_type/HardwareType
+ padapter->interface_type = primary_padapter->interface_type;
+ padapter->chip_type = primary_padapter->chip_type;
+ padapter->HardwareType = primary_padapter->HardwareType;
+
+ //set hal data & hal ops
+#if defined(CONFIG_RTL8192C)
+ #if defined(CONFIG_PCI_HCI)
+ rtl8192ce_set_hal_ops(padapter);
+ #elif defined(CONFIG_USB_HCI)
+ rtl8192cu_set_hal_ops(padapter);
+ #endif
+#elif defined(CONFIG_RTL8192D)
+ #if defined(CONFIG_PCI_HCI)
+ rtl8192de_set_hal_ops(padapter);
+ #elif defined(CONFIG_USB_HCI)
+ rtl8192du_set_hal_ops(padapter);
+ #endif
+#endif
+
+ padapter->HalFunc.inirp_init = NULL;
+ padapter->HalFunc.inirp_deinit = NULL;
+ padapter->intf_start = NULL;
+ padapter->intf_stop = NULL;
+
+ //step init_io_priv
+ if ((rtw_init_io_priv(padapter, set_intf_ops)) == _FAIL) {
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n"));
+ }
+
+ //step read_chip_version
+ rtw_hal_read_chip_version(padapter);
+
+ //step usb endpoint mapping
+ rtw_hal_chip_configure(padapter);
+
+
+ //init drv data
+ if(rtw_init_drv_sw(padapter)!= _SUCCESS)
+ goto error_rtw_drv_add_iface;
+
+
+ //get mac address from primary_padapter
+ _rtw_memcpy(mac, primary_padapter->eeprompriv.mac_addr, ETH_ALEN);
+
+ if (((mac[0]==0xff) &&(mac[1]==0xff) && (mac[2]==0xff) &&
+ (mac[3]==0xff) && (mac[4]==0xff) &&(mac[5]==0xff)) ||
+ ((mac[0]==0x0) && (mac[1]==0x0) && (mac[2]==0x0) &&
+ (mac[3]==0x0) && (mac[4]==0x0) &&(mac[5]==0x0)))
+ {
+ mac[0] = 0x00;
+ mac[1] = 0xe0;
+ mac[2] = 0x4c;
+ mac[3] = 0x87;
+ mac[4] = 0x11;
+ mac[5] = 0x22;
+ }
+ else
+ {
+ //If the BIT1 is 0, the address is universally administered.
+ //If it is 1, the address is locally administered
+#if 1 //needs enable MBSSID CAM
+ mac[0] |= BIT(1); // locally administered
+ mac[0] |= (padapter->iface_id-1)<<4;
+#endif
+ }
+
+ _rtw_memcpy(padapter->eeprompriv.mac_addr, mac, ETH_ALEN);
+
+ padapter->dir_dev = NULL;
+
+ res = _SUCCESS;
+
+ return padapter;
+
+
+error_rtw_drv_add_iface:
+
+ if(padapter)
+ rtw_free_drv_sw(padapter);
+
+ if (pnetdev)
+ rtw_free_netdev(pnetdev);
+
+ return NULL;
+
+}
+
+void rtw_drv_stop_vir_if(_adapter *padapter)
+{
+ struct net_device *pnetdev=NULL;
+
+ if (padapter == NULL)
+ return;
+
+ pnetdev = padapter->pnetdev;
+
+ rtw_cancel_all_timer(padapter);
+
+ if(padapter->bup == _TRUE)
+ {
+ padapter->bDriverStopped = _TRUE;
+
+ #ifdef CONFIG_XMIT_ACK
+ if (padapter->xmitpriv.ack_tx)
+ rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
+ #endif
+
+ if(padapter->intf_stop)
+ {
+ padapter->intf_stop(padapter);
+ }
+
+ rtw_stop_drv_threads(padapter);
+
+ padapter->bup = _FALSE;
+ }
+}
+
+void rtw_drv_free_vir_if(_adapter *padapter)
+{
+ struct net_device *pnetdev=NULL;
+
+ if (padapter == NULL)
+ return;
+
+ padapter->pbuddy_adapter = NULL;
+
+ pnetdev = padapter->pnetdev;
+
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_free(padapter->rtw_wdev);
+#endif //CONFIG_IOCTL_CFG80211
+
+ rtw_free_drv_sw(padapter);
+
+ rtw_free_netdev(pnetdev);
+}
+
+void rtw_drv_stop_vir_ifaces(struct dvobj_priv *dvobj)
+{
+ int i;
+ //struct dvobj_priv *dvobj = primary_padapter->dvobj;
+
+ for(i=2;i<dvobj->iface_nums;i++)
+ {
+ rtw_drv_stop_vir_if(dvobj->padapters[i]);
+ }
+}
+
+void rtw_drv_free_vir_ifaces(struct dvobj_priv *dvobj)
+{
+ int i;
+ //struct dvobj_priv *dvobj = primary_padapter->dvobj;
+
+ for(i=2;i<dvobj->iface_nums;i++)
+ {
+ rtw_drv_free_vir_if(dvobj->padapters[i]);
+ }
+}
+
+void rtw_drv_del_vir_if(_adapter *padapter)
+{
+ rtw_drv_stop_vir_if(padapter);
+ rtw_drv_free_vir_if(padapter);
+}
+
+void rtw_drv_del_vir_ifaces(_adapter *primary_padapter)
+{
+ int i;
+ struct dvobj_priv *dvobj = primary_padapter->dvobj;
+
+ for(i=2;i<dvobj->iface_nums;i++)
+ {
+ rtw_drv_del_vir_if(dvobj->padapters[i]);
+ }
+}
+#endif //CONFIG_MULTI_VIR_IFACES
+
+int _netdev_if2_open(struct net_device *pnetdev)
+{
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
+ _adapter *primary_padapter = padapter->pbuddy_adapter;
+
+ DBG_871X("+871x_drv - if2_open, bup=%d\n", padapter->bup);
+
+ if(primary_padapter->bup == _FALSE || primary_padapter->hw_init_completed == _FALSE)
+ {
+ _netdev_open(primary_padapter->pnetdev);
+ }
+
+ if(padapter->bup == _FALSE && primary_padapter->bup == _TRUE &&
+ primary_padapter->hw_init_completed == _TRUE)
+ {
+ int i;
+
+ padapter->bDriverStopped = _FALSE;
+ padapter->bSurpriseRemoved = _FALSE;
+ padapter->bCardDisableWOHSM = _FALSE;
+
+ _rtw_memcpy(padapter->HalData, primary_padapter->HalData, padapter->hal_data_sz);
+
+ padapter->bFWReady = primary_padapter->bFWReady;
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_DM_INIT_PWDB, NULL);
+
+ //if (init_mlme_ext_priv(padapter) == _FAIL)
+ // goto netdev_if2_open_error;
+
+
+ if(rtw_start_drv_threads(padapter) == _FAIL)
+ {
+ goto netdev_if2_open_error;
+ }
+
+
+ if(padapter->intf_start)
+ {
+ padapter->intf_start(padapter);
+ }
+
+
+ padapter->hw_init_completed = _TRUE;
+
+ padapter->dir_dev = NULL;
+ rtw_proc_init_one(pnetdev);
+
+
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_cfg80211_init_wiphy(padapter);
+#endif
+
+ padapter->bup = _TRUE;
+
+ }
+
+ padapter->net_closed = _FALSE;
+
+ _set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
+
+ if(!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_start_queue(pnetdev);
+ else
+ rtw_netif_wake_queue(pnetdev);
+
+ DBG_871X("-871x_drv - if2_open, bup=%d\n", padapter->bup);
+ return 0;
+
+netdev_if2_open_error:
+
+ padapter->bup = _FALSE;
+
+ netif_carrier_off(pnetdev);
+ rtw_netif_stop_queue(pnetdev);
+
+ return (-1);
+
+}
+
+int netdev_if2_open(struct net_device *pnetdev)
+{
+ int ret;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
+
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->hw_init_mutex), NULL);
+ ret = _netdev_if2_open(pnetdev);
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->hw_init_mutex), NULL);
+ return ret;
+}
+
+static int netdev_if2_close(struct net_device *pnetdev)
+{
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
+
+ padapter->net_closed = _TRUE;
+
+ if(pnetdev)
+ {
+ if (!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_stop_queue(pnetdev);
+ }
+
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_scan_abort(padapter);
+ wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = _FALSE;
+#endif
+
+ return 0;
+}
+
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
+static const struct net_device_ops rtw_netdev_if2_ops = {
+ .ndo_open = netdev_if2_open,
+ .ndo_stop = netdev_if2_close,
+ .ndo_start_xmit = rtw_xmit_entry,
+ .ndo_set_mac_address = rtw_net_set_mac_address,
+ .ndo_get_stats = rtw_net_get_stats,
+ .ndo_do_ioctl = rtw_ioctl,
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ .ndo_select_queue = rtw_select_queue,
+#endif
+};
+#endif
+
+_adapter *rtw_drv_if2_init(_adapter *primary_padapter, void (*set_intf_ops)(struct _io_ops *pops))
+{
+ int res = _FAIL;
+ struct net_device *pnetdev = NULL;
+ _adapter *padapter = NULL;
+ struct dvobj_priv *pdvobjpriv;
+ u8 mac[ETH_ALEN];
+
+ /****** init netdev ******/
+ pnetdev = rtw_init_netdev(NULL);
+ if (!pnetdev)
+ goto error_rtw_drv_if2_init;
+
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
+ DBG_871X("register rtw_netdev_if2_ops to netdev_ops\n");
+ pnetdev->netdev_ops = &rtw_netdev_if2_ops;
+#else
+ pnetdev->open = netdev_if2_open;
+ pnetdev->stop = netdev_if2_close;
+#endif
+
+#ifdef CONFIG_NO_WIRELESS_HANDLERS
+ pnetdev->wireless_handlers = NULL;
+#endif
+
+ /****** init adapter ******/
+ padapter = rtw_netdev_priv(pnetdev);
+ _rtw_memcpy(padapter, primary_padapter, sizeof(_adapter));
+
+ //
+ padapter->bup = _FALSE;
+ padapter->net_closed = _TRUE;
+ padapter->hw_init_completed = _FALSE;
+
+ //set adapter_type/iface type
+ padapter->isprimary = _FALSE;
+ padapter->adapter_type = SECONDARY_ADAPTER;
+ padapter->pbuddy_adapter = primary_padapter;
+ padapter->iface_id = IFACE_ID1;
+#ifndef CONFIG_HWPORT_SWAP //Port0 -> Pri , Port1 -> Sec
+ padapter->iface_type = IFACE_PORT1;
+#else
+ padapter->iface_type = IFACE_PORT0;
+#endif //CONFIG_HWPORT_SWAP
+ //
+ padapter->pnetdev = pnetdev;
+
+ /****** setup dvobj ******/
+ pdvobjpriv = adapter_to_dvobj(padapter);
+ pdvobjpriv->if2 = padapter;
+ pdvobjpriv->padapters[pdvobjpriv->iface_nums++] = padapter;
+
+ SET_NETDEV_DEV(pnetdev, dvobj_to_dev(pdvobjpriv));
+ #ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_alloc(padapter, dvobj_to_dev(pdvobjpriv));
+ #endif //CONFIG_IOCTL_CFG80211
+
+ //set interface_type/chip_type/HardwareType
+ padapter->interface_type = primary_padapter->interface_type;
+ padapter->chip_type = primary_padapter->chip_type;
+ padapter->HardwareType = primary_padapter->HardwareType;
+
+ //set hal data & hal ops
+#if defined(CONFIG_RTL8192C)
+ #if defined(CONFIG_PCI_HCI)
+ rtl8192ce_set_hal_ops(padapter);
+ #elif defined(CONFIG_USB_HCI)
+ rtl8192cu_set_hal_ops(padapter);
+ #endif
+#elif defined(CONFIG_RTL8192D)
+ #if defined(CONFIG_PCI_HCI)
+ rtl8192de_set_hal_ops(padapter);
+ #elif defined(CONFIG_USB_HCI)
+ rtl8192du_set_hal_ops(padapter);
+ #endif
+#endif
+
+ padapter->HalFunc.inirp_init = NULL;
+ padapter->HalFunc.inirp_deinit = NULL;
+
+ //
+ padapter->intf_start = primary_padapter->intf_start;
+ padapter->intf_stop = primary_padapter->intf_stop;
+
+ //step init_io_priv
+ if ((rtw_init_io_priv(padapter, set_intf_ops)) == _FAIL) {
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n"));
+ }
+
+ //step read_chip_version
+ rtw_hal_read_chip_version(padapter);
+
+ //step usb endpoint mapping
+ rtw_hal_chip_configure(padapter);
+
+
+ //init drv data
+ if(rtw_init_drv_sw(padapter)!= _SUCCESS)
+ goto error_rtw_drv_if2_init;
+
+ //get mac address from primary_padapter
+ _rtw_memcpy(mac, primary_padapter->eeprompriv.mac_addr, ETH_ALEN);
+
+ if (((mac[0]==0xff) &&(mac[1]==0xff) && (mac[2]==0xff) &&
+ (mac[3]==0xff) && (mac[4]==0xff) &&(mac[5]==0xff)) ||
+ ((mac[0]==0x0) && (mac[1]==0x0) && (mac[2]==0x0) &&
+ (mac[3]==0x0) && (mac[4]==0x0) &&(mac[5]==0x0)))
+ {
+ mac[0] = 0x00;
+ mac[1] = 0xe0;
+ mac[2] = 0x4c;
+ mac[3] = 0x87;
+ mac[4] = 0x11;
+ mac[5] = 0x22;
+ }
+ else
+ {
+ //If the BIT1 is 0, the address is universally administered.
+ //If it is 1, the address is locally administered
+ mac[0] |= BIT(1); // locally administered
+
+ }
+
+ _rtw_memcpy(padapter->eeprompriv.mac_addr, mac, ETH_ALEN);
+ rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr, padapter->eeprompriv.mac_addr);
+
+ primary_padapter->pbuddy_adapter = padapter;
+
+ padapter->dir_dev = NULL;
+
+ res = _SUCCESS;
+
+ return padapter;
+
+
+error_rtw_drv_if2_init:
+
+ if(padapter)
+ rtw_free_drv_sw(padapter);
+
+ if (pnetdev)
+ rtw_free_netdev(pnetdev);
+
+ return NULL;
+
+}
+
+void rtw_drv_if2_free(_adapter *if2)
+{
+ _adapter *padapter = if2;
+ struct net_device *pnetdev = NULL;
+
+ if (padapter == NULL)
+ return;
+
+ pnetdev = padapter->pnetdev;
+
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_free(padapter->rtw_wdev);
+#endif /* CONFIG_IOCTL_CFG80211 */
+
+
+ rtw_free_drv_sw(padapter);
+
+ rtw_free_netdev(pnetdev);
+
+}
+
+void rtw_drv_if2_stop(_adapter *if2)
+{
+ _adapter *padapter = if2;
+
+ if (padapter == NULL)
+ return;
+
+ rtw_cancel_all_timer(padapter);
+
+ if (padapter->bup == _TRUE) {
+ padapter->bDriverStopped = _TRUE;
+ #ifdef CONFIG_XMIT_ACK
+ if (padapter->xmitpriv.ack_tx)
+ rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
+ #endif
+
+ if(padapter->intf_stop)
+ {
+ padapter->intf_stop(padapter);
+ }
+
+ rtw_stop_drv_threads(padapter);
+
+ padapter->bup = _FALSE;
+ }
+}
+#endif //end of CONFIG_CONCURRENT_MODE
+
+#ifdef CONFIG_BR_EXT
+void netdev_br_init(struct net_device *netdev)
+{
+ _adapter *adapter = (_adapter *)rtw_netdev_priv(netdev);
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
+ rcu_read_lock();
+#endif // (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
+
+ //if(check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE)
+ {
+ //struct net_bridge *br = netdev->br_port->br;//->dev->dev_addr;
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
+ if (netdev->br_port)
+#else // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
+ if (rcu_dereference(adapter->pnetdev->rx_handler_data))
+#endif // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
+ {
+ struct net_device *br_netdev;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ br_netdev = dev_get_by_name(CONFIG_BR_EXT_BRNAME);
+#else // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ struct net *devnet = NULL;
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
+ devnet = netdev->nd_net;
+#else // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
+ devnet = dev_net(netdev);
+#endif // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
+
+ br_netdev = dev_get_by_name(devnet, CONFIG_BR_EXT_BRNAME);
+#endif // (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+
+ if (br_netdev) {
+ memcpy(adapter->br_mac, br_netdev->dev_addr, ETH_ALEN);
+ dev_put(br_netdev);
+ } else
+ printk("%s()-%d: dev_get_by_name(%s) failed!", __FUNCTION__, __LINE__, CONFIG_BR_EXT_BRNAME);
+ }
+
+ adapter->ethBrExtInfo.addPPPoETag = 1;
+ }
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
+ rcu_read_unlock();
+#endif // (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35))
+}
+#endif //CONFIG_BR_EXT
+
+static int _rtw_drv_register_netdev(_adapter *padapter, char *name)
+{
+ int ret = _SUCCESS;
+ struct net_device *pnetdev = padapter->pnetdev;
+
+ /* alloc netdev name */
+ rtw_init_netdev_name(pnetdev, name);
+
+ _rtw_memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
+
+ /* Tell the network stack we exist */
+ if (register_netdev(pnetdev) != 0) {
+ DBG_871X(FUNC_NDEV_FMT "Failed!\n", FUNC_NDEV_ARG(pnetdev));
+ ret = _FAIL;
+ goto error_register_netdev;
+ }
+
+ DBG_871X("%s, MAC Address (if%d) = " MAC_FMT "\n", __FUNCTION__, (padapter->iface_id+1), MAC_ARG(pnetdev->dev_addr));
+
+ return ret;
+
+error_register_netdev:
+
+ if(padapter->iface_id > IFACE_ID0)
+ {
+ rtw_free_drv_sw(padapter);
+
+ rtw_free_netdev(pnetdev);
+ }
+
+ return ret;
+}
+
+int rtw_drv_register_netdev(_adapter *if1)
+{
+ int i, status = _SUCCESS;
+ struct dvobj_priv *dvobj = if1->dvobj;
+
+ if(dvobj->iface_nums < IFACE_ID_MAX)
+ {
+ for(i=0; i<dvobj->iface_nums; i++)
+ {
+ _adapter *padapter = dvobj->padapters[i];
+
+ if(padapter)
+ {
+ char *name;
+
+ if(padapter->iface_id == IFACE_ID0)
+ name = if1->registrypriv.ifname;
+ else if(padapter->iface_id == IFACE_ID1)
+ name = if1->registrypriv.if2name;
+ else
+ name = "wlan%d";
+
+ if((status = _rtw_drv_register_netdev(padapter, name)) != _SUCCESS) {
+ break;
+ }
+ }
+ }
+ }
+
+ return status;
+}
+
+int _netdev_open(struct net_device *pnetdev)
+{
+ uint status;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
+ struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
+
+ RT_TRACE(_module_os_intfs_c_,_drv_info_,("+871x_drv - dev_open\n"));
+ DBG_871X("+871x_drv - drv_open, bup=%d\n", padapter->bup);
+
+ if(pwrctrlpriv->ps_flag == _TRUE){
+ padapter->net_closed = _FALSE;
+ goto netdev_open_normal_process;
+ }
+
+ if(padapter->bup == _FALSE)
+ {
+ padapter->bDriverStopped = _FALSE;
+ padapter->bSurpriseRemoved = _FALSE;
+ padapter->bCardDisableWOHSM = _FALSE;
+
+ status = rtw_hal_init(padapter);
+ if (status ==_FAIL)
+ {
+ RT_TRACE(_module_os_intfs_c_,_drv_err_,("rtl871x_hal_init(): Can't init h/w!\n"));
+ goto netdev_open_error;
+ }
+
+ DBG_871X("MAC Address = "MAC_FMT"\n", MAC_ARG(pnetdev->dev_addr));
+
+
+ status=rtw_start_drv_threads(padapter);
+ if(status ==_FAIL)
+ {
+ RT_TRACE(_module_os_intfs_c_,_drv_err_,("Initialize driver software resource Failed!\n"));
+ goto netdev_open_error;
+ }
+
+#ifdef CONFIG_DRVEXT_MODULE
+ init_drvext(padapter);
+#endif
+
+ if(padapter->intf_start)
+ {
+ padapter->intf_start(padapter);
+ }
+
+#ifndef RTK_DMP_PLATFORM
+ rtw_proc_init_one(pnetdev);
+#endif
+
+#ifdef CONFIG_IOCTL_CFG80211
+ rtw_cfg80211_init_wiphy(padapter);
+#endif
+
+ rtw_led_control(padapter, LED_CTL_NO_LINK);
+
+ padapter->bup = _TRUE;
+ }
+ padapter->net_closed = _FALSE;
+
+ _set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
+
+ padapter->pwrctrlpriv.bips_processing = _FALSE;
+ rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
+
+ //netif_carrier_on(pnetdev);//call this func when rtw_joinbss_event_callback return success
+ if(!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_start_queue(pnetdev);
+ else
+ rtw_netif_wake_queue(pnetdev);
+
+#ifdef CONFIG_BR_EXT
+ netdev_br_init(pnetdev);
+#endif // CONFIG_BR_EXT
+
+netdev_open_normal_process:
+
+ #ifdef CONFIG_CONCURRENT_MODE
+ {
+ _adapter *sec_adapter = padapter->pbuddy_adapter;
+ if(sec_adapter && (sec_adapter->bup == _FALSE || sec_adapter->hw_init_completed == _FALSE))
+ _netdev_if2_open(sec_adapter->pnetdev);
+ }
+ #endif
+
+ RT_TRACE(_module_os_intfs_c_,_drv_info_,("-871x_drv - dev_open\n"));
+ DBG_871X("-871x_drv - drv_open, bup=%d\n", padapter->bup);
+
+ return 0;
+
+netdev_open_error:
+
+ padapter->bup = _FALSE;
+
+ netif_carrier_off(pnetdev);
+ rtw_netif_stop_queue(pnetdev);
+
+ RT_TRACE(_module_os_intfs_c_,_drv_err_,("-871x_drv - dev_open, fail!\n"));
+ DBG_871X("-871x_drv - drv_open fail, bup=%d\n", padapter->bup);
+
+ return (-1);
+
+}
+
+int netdev_open(struct net_device *pnetdev)
+{
+ int ret;
+ _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
+
+ _enter_critical_mutex(&(adapter_to_dvobj(padapter)->hw_init_mutex), NULL);
+ ret = _netdev_open(pnetdev);
+ _exit_critical_mutex(&(adapter_to_dvobj(padapter)->hw_init_mutex), NULL);
+
+ return ret;
+}
+
+#ifdef CONFIG_IPS
+int ips_netdrv_open(_adapter *padapter)
+{
+ int status = _SUCCESS;
+ padapter->net_closed = _FALSE;
+ DBG_871X("===> %s.........\n",__FUNCTION__);
+
+
+ padapter->bDriverStopped = _FALSE;
+ padapter->bCardDisableWOHSM = _FALSE;
+ //padapter->bup = _TRUE;
+
+ status = rtw_hal_init(padapter);
+ if (status ==_FAIL)
+ {
+ RT_TRACE(_module_os_intfs_c_,_drv_err_,("ips_netdrv_open(): Can't init h/w!\n"));
+ goto netdev_open_error;
+ }
+
+ if(padapter->intf_start)
+ {
+ padapter->intf_start(padapter);
+ }
+
+ rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
+ _set_timer(&padapter->mlmepriv.dynamic_chk_timer,5000);
+
+ return _SUCCESS;
+
+netdev_open_error:
+ //padapter->bup = _FALSE;
+ DBG_871X("-ips_netdrv_open - drv_open failure, bup=%d\n", padapter->bup);
+
+ return _FAIL;
+}
+
+
+int rtw_ips_pwr_up(_adapter *padapter)
+{
+ int result;
+ u32 start_time = rtw_get_current_time();
+ DBG_871X("===> rtw_ips_pwr_up..............\n");
+ rtw_reset_drv_sw(padapter);
+
+ result = ips_netdrv_open(padapter);
+
+ rtw_led_control(padapter, LED_CTL_NO_LINK);
+
+ DBG_871X("<=== rtw_ips_pwr_up.............. in %dms\n", rtw_get_passing_time_ms(start_time));
+ return result;
+
+}
+
+void rtw_ips_pwr_down(_adapter *padapter)
+{
+ u32 start_time = rtw_get_current_time();
+ DBG_871X("===> rtw_ips_pwr_down...................\n");
+
+ padapter->bCardDisableWOHSM = _TRUE;
+ padapter->net_closed = _TRUE;
+
+ rtw_led_control(padapter, LED_CTL_POWER_OFF);
+
+ rtw_ips_dev_unload(padapter);
+ padapter->bCardDisableWOHSM = _FALSE;
+ DBG_871X("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
+}
+#endif
+void rtw_ips_dev_unload(_adapter *padapter)
+{
+ struct net_device *pnetdev= (struct net_device*)padapter->pnetdev;
+ struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
+ DBG_871X("====> %s...\n",__FUNCTION__);
+
+ rtw_hal_set_hwreg(padapter, HW_VAR_FIFO_CLEARN_UP, 0);
+
+ if(padapter->intf_stop)
+ {
+ padapter->intf_stop(padapter);
+ }
+
+ //s5.
if(padapter->bSurpriseRemoved == _FALSE)
{
rtw_hal_deinit(padapter);
@@ -1481,7 +2648,7 @@ int pm_netdev_open(struct net_device *pnetdev,u8 bnormal)
{
int status;
if(bnormal)
- status = _netdev_open(pnetdev);
+ status = netdev_open(pnetdev);
#ifdef CONFIG_IPS
else
status = (_SUCCESS == ips_netdrv_open((_adapter *)rtw_netdev_priv(pnetdev)))?(0):(-1);
@@ -1489,16 +2656,16 @@ int pm_netdev_open(struct net_device *pnetdev,u8 bnormal)
return status;
}
-//extern int rfpwrstate_check(_adapter *padapter);
+
static int netdev_close(struct net_device *pnetdev)
{
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
- RT_TRACE(_module_os_intfs_c_,_drv_info_,("+871x_drv - drv_close\n"));
+ RT_TRACE(_module_os_intfs_c_,_drv_info_,("+871x_drv - drv_close\n"));
if(padapter->pwrctrlpriv.bInternalAutoSuspend == _TRUE)
{
- //rfpwrstate_check(padapter);
+ //rtw_pwr_wakeup(padapter);
if(padapter->pwrctrlpriv.rf_pwrstate == rf_off)
padapter->pwrctrlpriv.ps_flag = _TRUE;
}
@@ -1506,7 +2673,7 @@ static int netdev_close(struct net_device *pnetdev)
/* if(!padapter->hw_init_completed)
{
- DBG_8192C("(1)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
+ DBG_871X("(1)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
padapter->bDriverStopped = _TRUE;
@@ -1514,22 +2681,22 @@ static int netdev_close(struct net_device *pnetdev)
}
else*/
if(padapter->pwrctrlpriv.rf_pwrstate == rf_on){
- DBG_8192C("(2)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
+ DBG_871X("(2)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
//s1.
- if(pnetdev)
- {
- if (!netif_queue_stopped(pnetdev))
- netif_stop_queue(pnetdev);
- }
+ if(pnetdev)
+ {
+ if (!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_stop_queue(pnetdev);
+ }
#ifndef CONFIG_ANDROID
- //s2.
- //s2-1. issue rtw_disassoc_cmd to fw
- rtw_disassoc_cmd(padapter);
+ //s2.
+ LeaveAllPowerSaveMode(padapter);
+ rtw_disassoc_cmd(padapter, 500, _FALSE);
//s2-2. indicate disconnect to os
rtw_indicate_disconnect(padapter);
- //s2-3.
+ //s2-3.
rtw_free_assoc_resources(padapter, 1);
//s2-4.
rtw_free_network_queue(padapter,_TRUE);
@@ -1539,7 +2706,7 @@ static int netdev_close(struct net_device *pnetdev)
}
#ifdef CONFIG_BR_EXT
- //if (OPMODE & (WIFI_STATION_STATE | WIFI_ADHOC_STATE))
+ //if (OPMODE & (WIFI_STATION_STATE | WIFI_ADHOC_STATE))
{
//void nat25_db_cleanup(_adapter *priv);
nat25_db_cleanup(padapter);
@@ -1547,22 +2714,36 @@ static int netdev_close(struct net_device *pnetdev)
#endif // CONFIG_BR_EXT
#ifdef CONFIG_P2P
- #ifdef CONFIG_IOCTL_CFG80211
- if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled == _TRUE)
- wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _FALSE;
- #endif
+#ifdef CONFIG_IOCTL_CFG80211
+ if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
+ {
+ if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled == _TRUE)
+ wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _FALSE;
+ }
+#endif //CONFIG_IOCTL_CFG80211
rtw_p2p_enable(padapter, P2P_ROLE_DISABLE);
#endif //CONFIG_P2P
#ifdef CONFIG_IOCTL_CFG80211
- rtw_cfg80211_indicate_scan_done(wdev_to_priv(padapter->rtw_wdev), _TRUE);
+ rtw_scan_abort(padapter);
+ wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = _FALSE;
padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR; //set this at the end
-#endif
-
+#endif //CONFIG_IOCTL_CFG80211
+
RT_TRACE(_module_os_intfs_c_,_drv_info_,("-871x_drv - drv_close\n"));
- DBG_8192C("-871x_drv - drv_close, bup=%d\n", padapter->bup);
-
+ DBG_871X("-871x_drv - drv_close, bup=%d\n", padapter->bup);
+
return 0;
-
+}
+
+void rtw_ndev_destructor(struct net_device *ndev)
+{
+ DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if (ndev->ieee80211_ptr)
+ rtw_mfree((u8 *)ndev->ieee80211_ptr, sizeof(struct wireless_dev));
+#endif
+ free_netdev(ndev);
}
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_intf.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_intf.c
index 0848297..5bf576f 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_intf.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_intf.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -24,7 +24,7 @@
#include <drv_types.h>
#include <recv_osdep.h>
#include <xmit_osdep.h>
-#include <hal_init.h>
+#include <hal_intf.h>
#include <rtw_version.h>
#ifndef CONFIG_PCI_HCI
@@ -79,23 +79,21 @@ struct pci_device_id rtw_pci_id_tbl[] = {
{},
};
-typedef struct _driver_priv{
-
+struct pci_drv_priv {
struct pci_driver rtw_pci_drv;
int drv_registered;
-
-}drv_priv, *pdrv_priv;
+};
-static drv_priv drvpriv = {
+static struct pci_drv_priv pci_drvpriv = {
.rtw_pci_drv.name = (char*)DRV_NAME,
.rtw_pci_drv.probe = rtw_drv_init,
.rtw_pci_drv.remove = rtw_dev_remove,
.rtw_pci_drv.id_table = rtw_pci_id_tbl,
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM
.rtw_pci_drv.suspend = rtw_suspend,
.rtw_pci_drv.resume = rtw_resume,
-#else
+#else
.rtw_pci_drv.suspend = NULL,
.rtw_pci_drv.resume = NULL,
#endif
@@ -114,7 +112,7 @@ static u16 pcibridge_vendors[PCI_BRIDGE_VENDOR_MAX] = {
static u8 rtw_pci_platform_switch_device_pci_aspm(_adapter *padapter, u8 value)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
u8 bresult = _SUCCESS;
int error;
@@ -125,18 +123,18 @@ static u8 rtw_pci_platform_switch_device_pci_aspm(_adapter *padapter, u8 value)
if(error != 0)
{
bresult = _FALSE;
- DBG_8192C("rtw_pci_platform_switch_device_pci_aspm error (%d)\n",error);
+ DBG_871X("rtw_pci_platform_switch_device_pci_aspm error (%d)\n",error);
}
return bresult;
}
-//
-// When we set 0x01 to enable clk request. Set 0x0 to disable clk req.
-//
+//
+// When we set 0x01 to enable clk request. Set 0x0 to disable clk req.
+//
static u8 rtw_pci_switch_clk_req(_adapter *padapter, u8 value)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
u8 buffer, bresult = _SUCCESS;
int error;
@@ -150,18 +148,18 @@ static u8 rtw_pci_switch_clk_req(_adapter *padapter, u8 value)
if(error != 0)
{
bresult = _FALSE;
- DBG_8192C("rtw_pci_switch_clk_req error (%d)\n",error);
+ DBG_871X("rtw_pci_switch_clk_req error (%d)\n",error);
}
return bresult;
}
#if 0
-//Description:
+//Description:
//Disable RTL8192SE ASPM & Disable Pci Bridge ASPM
void rtw_pci_disable_aspm(_adapter *padapter)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
u32 pcicfg_addrport = 0;
@@ -170,8 +168,8 @@ void rtw_pci_disable_aspm(_adapter *padapter)
u16 pcibridge_linkctrlreg, aspmlevel = 0;
// When there exists anyone's busnum, devnum, and funcnum that are set to 0xff,
- // we do not execute any action and return.
- // if it is not intel bus then don't enable ASPM.
+ // we do not execute any action and return.
+ // if it is not intel bus then don't enable ASPM.
if ((pcipriv->busnumber == 0xff
&& pcipriv->devnumber == 0xff
&& pcipriv->funcnumber == 0xff)
@@ -179,12 +177,12 @@ void rtw_pci_disable_aspm(_adapter *padapter)
&& pcipriv->pcibridge_devnum == 0xff
&& pcipriv->pcibridge_funcnum == 0xff))
{
- DBG_8192C("PlatformEnableASPM(): Fail to enable ASPM. Cannot find the Bus of PCI(Bridge).\n");
+ DBG_871X("PlatformEnableASPM(): Fail to enable ASPM. Cannot find the Bus of PCI(Bridge).\n");
return;
}
if (pcipriv->pcibridge_vendor == PCI_BRIDGE_VENDOR_UNKNOWN) {
- DBG_8192C("%s(): Disable ASPM. Recognize the Bus of PCI(Bridge) as UNKNOWN.\n", __func__);
+ DBG_871X("%s(): Disable ASPM. Recognize the Bus of PCI(Bridge) as UNKNOWN.\n", __func__);
}
if (pwrpriv->reg_rfps_level & RT_RF_OFF_LEVL_CLK_REQ) {
@@ -224,7 +222,7 @@ void rtw_pci_disable_aspm(_adapter *padapter)
}
else
{
- //4 //Disable Pci Bridge ASPM
+ //4 //Disable Pci Bridge ASPM
pcicfg_addrport = (pcipriv->pcibridge_busnum << 16) |
(pcipriv->pcibridge_devnum << 11) |
(pcipriv->pcibridge_funcnum << 8) | (1 << 31);
@@ -236,9 +234,9 @@ void rtw_pci_disable_aspm(_adapter *padapter)
// now grab data port with device|vendor 4 byte dword
NdisRawWritePortUchar(PCI_CONF_DATA, pcibridge_linkctrlreg);
- DBG_8192C("rtw_pci_disable_aspm():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
- pcipriv->pcibridge_busnum, pcipriv->pcibridge_devnum,
- pcipriv->pcibridge_funcnum,
+ DBG_871X("rtw_pci_disable_aspm():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
+ pcipriv->pcibridge_busnum, pcipriv->pcibridge_devnum,
+ pcipriv->pcibridge_funcnum,
(pcipriv->pcibridge_pciehdr_offset+0x10), pcibridge_linkctrlreg);
rtw_udelay_os(50);
@@ -246,13 +244,13 @@ void rtw_pci_disable_aspm(_adapter *padapter)
}
//[ASPM]
-//Description:
+//Description:
// Enable RTL8192SE ASPM & Enable Pci Bridge ASPM for power saving
// We should follow the sequence to enable RTL8192SE first then enable Pci Bridge ASPM
// or the system will show bluescreen.
void rtw_pci_enable_aspm(_adapter *padapter)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
u16 aspmlevel = 0;
@@ -262,8 +260,8 @@ void rtw_pci_enable_aspm(_adapter *padapter)
u8 u_device_aspmsetting = 0;
// When there exists anyone's busnum, devnum, and funcnum that are set to 0xff,
- // we do not execute any action and return.
- // if it is not intel bus then don't enable ASPM.
+ // we do not execute any action and return.
+ // if it is not intel bus then don't enable ASPM.
if ((pcipriv->busnumber == 0xff
&& pcipriv->devnumber == 0xff
@@ -272,12 +270,12 @@ void rtw_pci_enable_aspm(_adapter *padapter)
&& pcipriv->pcibridge_devnum == 0xff
&& pcipriv->pcibridge_funcnum == 0xff))
{
- DBG_8192C("PlatformEnableASPM(): Fail to enable ASPM. Cannot find the Bus of PCI(Bridge).\n");
+ DBG_871X("PlatformEnableASPM(): Fail to enable ASPM. Cannot find the Bus of PCI(Bridge).\n");
return;
}
- //4 Enable Pci Bridge ASPM
- pcicfg_addrport = (pcipriv->pcibridge_busnum << 16)
+ //4 Enable Pci Bridge ASPM
+ pcicfg_addrport = (pcipriv->pcibridge_busnum << 16)
| (pcipriv->pcibridge_devnum << 11)
| (pcipriv->pcibridge_funcnum << 8) | (1 << 31);
num4bytes = (pcipriv->pcibridge_pciehdr_offset + 0x10) / 4;
@@ -293,11 +291,11 @@ void rtw_pci_enable_aspm(_adapter *padapter)
NdisRawWritePortUchar(PCI_CONF_DATA, u_pcibridge_aspmsetting);
- DBG_8192C("PlatformEnableASPM():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
- pcipriv->pcibridge_busnum,
- pcipriv->pcibridge_devnum,
- pcipriv->pcibridge_funcnum,
- (pcipriv->pcibridge_pciehdr_offset+0x10),
+ DBG_871X("PlatformEnableASPM():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
+ pcipriv->pcibridge_busnum,
+ pcipriv->pcibridge_devnum,
+ pcipriv->pcibridge_funcnum,
+ (pcipriv->pcibridge_pciehdr_offset+0x10),
u_pcibridge_aspmsetting);
rtw_udelay_os(50);
@@ -318,14 +316,14 @@ void rtw_pci_enable_aspm(_adapter *padapter)
}
//
-//Description:
+//Description:
//To get link control field by searching from PCIe capability lists.
//
static u8
rtw_get_link_control_field(_adapter *padapter, u8 busnum, u8 devnum,
u8 funcnum)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
struct rt_pci_capabilities_header capability_hdr;
u8 capability_offset, num4bytes;
@@ -335,7 +333,7 @@ rtw_get_link_control_field(_adapter *padapter, u8 busnum, u8 devnum,
//If busnum, devnum, funcnum are set to 0xff.
if (busnum == 0xff && devnum == 0xff && funcnum == 0xff) {
- DBG_8192C("GetLinkControlField(): Fail to find PCIe Capability\n");
+ DBG_871X("GetLinkControlField(): Fail to find PCIe Capability\n");
return _FALSE;
}
@@ -351,15 +349,15 @@ rtw_get_link_control_field(_adapter *padapter, u8 busnum, u8 devnum,
// now grab data port with device|vendor 4 byte dword
NdisRawReadPortUchar(PCI_CONF_DATA, &capability_offset);
- // Loop through the capabilities in search of the power management capability.
+ // Loop through the capabilities in search of the power management capability.
// The list is NULL-terminated, so the last offset will always be zero.
while (capability_offset != 0) {
- // First find the number of 4 Byte.
+ // First find the number of 4 Byte.
num4bytes = capability_offset / 4;
// Read the header of the capability at this offset. If the retrieved capability is not
- // the power management capability that we are looking for, follow the link to the
+ // the power management capability that we are looking for, follow the link to the
// next capability and continue looping.
//4 get capability_hdr
@@ -397,16 +395,16 @@ rtw_get_link_control_field(_adapter *padapter, u8 busnum, u8 devnum,
}
else
{
- // We didn't find a PCIe capability.
- DBG_8192C("GetLinkControlField(): Cannot Find PCIe Capability\n");
+ // We didn't find a PCIe capability.
+ DBG_871X("GetLinkControlField(): Cannot Find PCIe Capability\n");
}
return status;
}
//
-//Description:
-//To get PCI bus infomation and return busnum, devnum, and funcnum about
+//Description:
+//To get PCI bus infomation and return busnum, devnum, and funcnum about
//the bus(bridge) which the device binds.
//
static u8
@@ -416,7 +414,7 @@ rtw_get_pci_bus_info(_adapter *padapter,
u8 irql, u8 basecode, u8 subclass, u8 filed19val,
u8 * busnum, u8 * devnum, u8 * funcnum)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pci_dev *pdev = pdvobjpriv->ppcidev;
u8 busnum_idx, devicenum_idx, functionnum_idx;
u32 pcicfg_addrport = 0;
@@ -431,7 +429,7 @@ rtw_get_pci_bus_info(_adapter *padapter,
*devnum = 0xFF;
*funcnum = 0xFF;
- //DBG_8192C("==============>vendorid:%x,deviceid:%x,irql:%x\n", vendorid,deviceid,irql);
+ //DBG_871X("==============>vendorid:%x,deviceid:%x,irql:%x\n", vendorid,deviceid,irql);
if ((basecode == PCI_CLASS_BRIDGE_DEV) &&
(subclass == PCI_SUBCLASS_BR_PCI_TO_PCI)
&& (filed19val == U1DONTCARE))
@@ -449,14 +447,14 @@ rtw_get_pci_bus_info(_adapter *padapter,
// <Roger_Notes> We have to skip redundant Bus scan to prevent unexpected system hang
// if single function is present in this device.
// 2009.02.26.
- //
+ //
if (functionnum_idx == 0) {
//4 get header type (DWORD #3)
pcicfg_addrport = (busnum_idx << 16) | (devicenum_idx << 11) | (functionnum_idx << 8) | (1 << 31);
NdisRawWritePortUlong(PCI_CONF_ADDRESS, pcicfg_addrport + (3 << 2));
NdisRawReadPortUlong(PCI_CONF_DATA, &headertype);
headertype = ((headertype >> 16) & 0x0080) >> 7; // address 0x0e[7].
- if (headertype == 0) //Single function
+ if (headertype == 0) //Single function
b_singlefunc = _TRUE;
}
else
@@ -534,7 +532,7 @@ rtw_get_pci_bus_info(_adapter *padapter,
*devnum = devicenum_idx;
*funcnum = functionnum_idx;
- DBG_8192C("GetPciBusInfo(): Find Device(%X:%X) bus=%d dev=%d, func=%d\n",
+ DBG_871X("GetPciBusInfo(): Find Device(%X:%X) bus=%d dev=%d, func=%d\n",
vendorid, deviceid, busnum_idx, devicenum_idx, functionnum_idx);
return _TRUE;
}
@@ -542,7 +540,7 @@ rtw_get_pci_bus_info(_adapter *padapter,
}
}
- DBG_8192C("GetPciBusInfo(): Cannot Find Device(%X:%X:%X)\n", vendorid, deviceid, dev_venid);
+ DBG_871X("GetPciBusInfo(): Cannot Find Device(%X:%X:%X)\n", vendorid, deviceid, dev_venid);
return _FALSE;
}
@@ -588,7 +586,7 @@ rtw_get_pci_brideg_info(_adapter *padapter,
NdisRawWritePortUlong(PCI_CONF_ADDRESS, pcicfg_addrport + (3 << 2));
NdisRawReadPortUlong(PCI_CONF_DATA, &headertype);
headertype = ((headertype >> 16) & 0x0080) >> 7; // address 0x0e[7].
- if (headertype == 0) //Single function
+ if (headertype == 0) //Single function
b_singlefunc = _TRUE;
}
else
@@ -636,7 +634,7 @@ rtw_get_pci_brideg_info(_adapter *padapter,
*vendorid = venId;
*deviceid = devId;
- DBG_8192C("GetPciBridegInfo : Find Device(%X:%X) bus=%d dev=%d, func=%d\n",
+ DBG_871X("GetPciBridegInfo : Find Device(%X:%X) bus=%d dev=%d, func=%d\n",
venId, devId, busnum_idx, devicenum_idx, functionnum_idx);
return _TRUE;
@@ -645,18 +643,18 @@ rtw_get_pci_brideg_info(_adapter *padapter,
}
}
- DBG_8192C("GetPciBridegInfo(): Cannot Find PciBridge for Device\n");
+ DBG_871X("GetPciBridegInfo(): Cannot Find PciBridge for Device\n");
return _FALSE;
} // end of GetPciBridegInfo
//
-//Description:
+//Description:
//To find specific bridge information.
//
static void rtw_find_bridge_info(_adapter *padapter)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
u8 pcibridge_busnum = 0xff;
u8 pcibridge_devnum = 0xff;
@@ -679,11 +677,11 @@ static void rtw_find_bridge_info(_adapter *padapter)
for (tmp = 0; tmp < PCI_BRIDGE_VENDOR_MAX; tmp++) {
if (pcibridge_vendorid == pcibridge_vendors[tmp]) {
pcipriv->pcibridge_vendor = tmp;
- DBG_8192C("Pci Bridge Vendor is found index: %d\n", tmp);
+ DBG_871X("Pci Bridge Vendor is found index: %d\n", tmp);
break;
}
}
- DBG_8192C("Pci Bridge Vendor is %x\n", pcibridge_vendors[tmp]);
+ DBG_871X("Pci Bridge Vendor is %x\n", pcibridge_vendors[tmp]);
// Update corresponding PCI bus info.
pcipriv->pcibridge_busnum = pcibridge_busnum;
@@ -726,7 +724,7 @@ rtw_get_amd_l1_patch(_adapter *padapter, u8 busnum, u8 devnum,
/*Disable RTL8192SE ASPM & Disable Pci Bridge ASPM*/
void rtw_pci_disable_aspm(_adapter *padapter)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct pci_dev *pdev = pdvobjpriv->ppcidev;
struct pci_dev *bridge_pdev = pdev->bus->self;
@@ -762,7 +760,7 @@ void rtw_pci_disable_aspm(_adapter *padapter)
}
{
- /*for promising device will in L0 state after an I/O.*/
+ /*for promising device will in L0 state after an I/O.*/
u8 tmp_u1b;
pci_read_config_byte(pdev, 0x80, &tmp_u1b);
}
@@ -779,14 +777,14 @@ void rtw_pci_disable_aspm(_adapter *padapter)
}
else
{
- /*Disable Pci Bridge ASPM*/
+ /*Disable Pci Bridge ASPM*/
//NdisRawWritePortUlong(PCI_CONF_ADDRESS, pcicfg_addrport + (num4bytes << 2));
//NdisRawWritePortUchar(PCI_CONF_DATA, pcibridge_linkctrlreg);
pci_write_config_byte(bridge_pdev, pcipriv->pcibridge_pciehdr_offset + 0x10, pcibridge_linkctrlreg);
- DBG_8192C("rtw_pci_disable_aspm():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
- pcipriv->pcibridge_busnum, pcipriv->pcibridge_devnum,
- pcipriv->pcibridge_funcnum,
+ DBG_871X("rtw_pci_disable_aspm():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
+ pcipriv->pcibridge_busnum, pcipriv->pcibridge_devnum,
+ pcipriv->pcibridge_funcnum,
(pcipriv->pcibridge_pciehdr_offset+0x10), pcibridge_linkctrlreg);
rtw_udelay_os(50);
@@ -794,18 +792,18 @@ void rtw_pci_disable_aspm(_adapter *padapter)
}
-/*Enable RTL8192SE ASPM & Enable Pci Bridge ASPM for
-power saving We should follow the sequence to enable
+/*Enable RTL8192SE ASPM & Enable Pci Bridge ASPM for
+power saving We should follow the sequence to enable
RTL8192SE first then enable Pci Bridge ASPM
or the system will show bluescreen.*/
void rtw_pci_enable_aspm(_adapter *padapter)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct pci_dev *pdev = pdvobjpriv->ppcidev;
struct pci_dev *bridge_pdev = pdev->bus->self;
struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
- u16 aspmlevel = 0;
+ u16 aspmlevel = 0;
u8 u_pcibridge_aspmsetting = 0;
u8 u_device_aspmsetting = 0;
u32 u_device_aspmsupportsetting = 0;
@@ -816,11 +814,11 @@ void rtw_pci_enable_aspm(_adapter *padapter)
return;
//When there exists anyone's BusNum, DevNum, and FuncNum that are set to 0xff,
- // we do not execute any action and return. Added by tynli.
+ // we do not execute any action and return. Added by tynli.
if( (pcipriv->busnumber == 0xff && pcipriv->devnumber == 0xff && pcipriv->funcnumber == 0xff) ||
(pcipriv->pcibridge_busnum == 0xff && pcipriv->pcibridge_devnum == 0xff && pcipriv->pcibridge_funcnum == 0xff) )
{
- DBG_8192C("rtw_pci_enable_aspm(): Fail to enable ASPM. Cannot find the Bus of PCI(Bridge).\n");
+ DBG_871X("rtw_pci_enable_aspm(): Fail to enable ASPM. Cannot find the Bus of PCI(Bridge).\n");
return;
}
@@ -834,19 +832,19 @@ void rtw_pci_enable_aspm(_adapter *padapter)
//NdisRawWritePortUlong((ULONG_PTR)PCI_CONF_ADDRESS , PciCfgAddrPort+(Num4Bytes << 2));
//NdisRawReadPortUlong((ULONG_PTR)PCI_CONF_DATA,&uDeviceASPMSupportSetting);
pci_read_config_dword(bridge_pdev, (pcipriv->pcibridge_pciehdr_offset+0x0C), &u_device_aspmsupportsetting);
- DBG_8192C("rtw_pci_enable_aspm(): Bridge ASPM support %x \n",u_device_aspmsupportsetting);
+ DBG_871X("rtw_pci_enable_aspm(): Bridge ASPM support %x \n",u_device_aspmsupportsetting);
if(((u_device_aspmsupportsetting & BIT(11)) != BIT(11)) || ((u_device_aspmsupportsetting & BIT(10)) != BIT(10)))
{
if(pdvobjpriv->const_devicepci_aspm_setting == 3)
{
- DBG_8192C("rtw_pci_enable_aspm(): Bridge not support L0S or L1\n");
+ DBG_871X("rtw_pci_enable_aspm(): Bridge not support L0S or L1\n");
return;
}
else if(pdvobjpriv->const_devicepci_aspm_setting == 2)
{
if((u_device_aspmsupportsetting & BIT(11)) != BIT(11))
{
- DBG_8192C("rtw_pci_enable_aspm(): Bridge not support L1 \n");
+ DBG_871X("rtw_pci_enable_aspm(): Bridge not support L1 \n");
return;
}
}
@@ -854,7 +852,7 @@ void rtw_pci_enable_aspm(_adapter *padapter)
{
if((u_device_aspmsupportsetting & BIT(10)) != BIT(10))
{
- DBG_8192C("rtw_pci_enable_aspm(): Bridge not support L0s \n");
+ DBG_871X("rtw_pci_enable_aspm(): Bridge not support L0s \n");
return;
}
@@ -862,12 +860,12 @@ void rtw_pci_enable_aspm(_adapter *padapter)
}
else
{
- DBG_8192C("rtw_pci_enable_aspm(): Bridge support L0s and L1 \n");
+ DBG_871X("rtw_pci_enable_aspm(): Bridge support L0s and L1 \n");
}
}
- /*Enable Pci Bridge ASPM*/
+ /*Enable Pci Bridge ASPM*/
//PciCfgAddrPort = (pcipriv->pcibridge_busnum << 16)|(pcipriv->pcibridge_devnum<< 11) |(pcipriv->pcibridge_funcnum << 8)|(1 << 31);
//Num4Bytes = (pcipriv->pcibridge_pciehdr_offset+0x10)/4;
// set up address port at 0xCF8 offset field= 0 (dev|vend)
@@ -884,14 +882,14 @@ void rtw_pci_enable_aspm(_adapter *padapter)
//NdisRawWritePortUchar(PCI_CONF_DATA, u_pcibridge_aspmsetting);
pci_write_config_byte(bridge_pdev, (pcipriv->pcibridge_pciehdr_offset+0x10), u_pcibridge_aspmsetting);
- DBG_8192C("PlatformEnableASPM():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
- pcipriv->pcibridge_busnum, pcipriv->pcibridge_devnum, pcipriv->pcibridge_funcnum,
- (pcipriv->pcibridge_pciehdr_offset+0x10),
+ DBG_871X("PlatformEnableASPM():PciBridge busnumber[%x], DevNumbe[%x], funcnumber[%x], Write reg[%x] = %x\n",
+ pcipriv->pcibridge_busnum, pcipriv->pcibridge_devnum, pcipriv->pcibridge_funcnum,
+ (pcipriv->pcibridge_pciehdr_offset+0x10),
u_pcibridge_aspmsetting);
rtw_udelay_os(50);
- /*Get ASPM level (with/without Clock Req)*/
+ /*Get ASPM level (with/without Clock Req)*/
aspmlevel |= pdvobjpriv->const_devicepci_aspm_setting;
u_device_aspmsetting = pcipriv->linkctrl_reg;
u_device_aspmsetting |= aspmlevel; // device 43
@@ -906,10 +904,9 @@ void rtw_pci_enable_aspm(_adapter *padapter)
rtw_udelay_os(50);
}
-static u8 rtw_pci_get_amd_l1_patch(_adapter *padapter)
+static u8 rtw_pci_get_amd_l1_patch(struct dvobj_priv *dvobj)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
- struct pci_dev *pdev = pdvobjpriv->ppcidev;
+ struct pci_dev *pdev = dvobj->ppcidev;
struct pci_dev *bridge_pdev = pdev->bus->self;
u8 status = _FALSE;
u8 offset_e0;
@@ -934,15 +931,14 @@ static u8 rtw_pci_get_amd_l1_patch(_adapter *padapter)
return status;
}
-static void rtw_pci_get_linkcontrol_field(_adapter *padapter)
+static void rtw_pci_get_linkcontrol_field(struct dvobj_priv *dvobj)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
- struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
- struct pci_dev *pdev = pdvobjpriv->ppcidev;
+ struct pci_priv *pcipriv = &(dvobj->pcipriv);
+ struct pci_dev *pdev = dvobj->ppcidev;
struct pci_dev *bridge_pdev = pdev->bus->self;
u8 capabilityoffset = pcipriv->pcibridge_pciehdr_offset;
- u8 linkctrl_reg;
-
+ u8 linkctrl_reg;
+
/*Read Link Control Register*/
pci_read_config_byte(bridge_pdev, capabilityoffset + PCI_EXP_LNKCTL, &linkctrl_reg);
@@ -950,10 +946,10 @@ static void rtw_pci_get_linkcontrol_field(_adapter *padapter)
}
#endif
-static void rtw_pci_parse_configuration(struct pci_dev *pdev, _adapter *padapter)
+static void rtw_pci_parse_configuration(struct dvobj_priv *dvobj)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
- struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
+ struct pci_dev *pdev = dvobj->ppcidev;
+ struct pci_priv *pcipriv = &(dvobj->pcipriv);
u8 tmp;
int pos;
u8 linkctrl_reg;
@@ -963,7 +959,7 @@ static void rtw_pci_parse_configuration(struct pci_dev *pdev, _adapter *padapter
pci_read_config_byte(pdev, pos + PCI_EXP_LNKCTL, &linkctrl_reg);
pcipriv->linkctrl_reg = linkctrl_reg;
- //DBG_8192C("Link Control Register = %x\n", pcipriv->linkctrl_reg);
+ //DBG_871X("Link Control Register = %x\n", pcipriv->linkctrl_reg);
pci_read_config_byte(pdev, 0x98, &tmp);
tmp |= BIT(4);
@@ -978,7 +974,7 @@ static void rtw_pci_parse_configuration(struct pci_dev *pdev, _adapter *padapter
//
static void rtw_pci_update_default_setting(_adapter *padapter)
{
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
@@ -986,8 +982,8 @@ static void rtw_pci_update_default_setting(_adapter *padapter)
pwrpriv->reg_rfps_level = 0;
pwrpriv->b_support_aspm = 0;
- // Dynamic Mechanism,
- //pAdapter->HalFunc.SetHalDefVarHandler(pAdapter, HAL_DEF_INIT_GAIN, &(pDevice->InitGainState));
+ // Dynamic Mechanism,
+ //rtw_hal_set_def_var(pAdapter, HAL_DEF_INIT_GAIN, &(pDevice->InitGainState));
// Update PCI ASPM setting
pwrpriv->const_amdpci_aspm = pdvobjpriv->const_amdpci_aspm;
@@ -1056,7 +1052,7 @@ static void rtw_pci_update_default_setting(_adapter *padapter)
pwrpriv->b_support_aspm = b_support_aspm;
/*if(pAdapter->MgntInfo.CustomerID == RT_CID_TOSHIBA &&
- pcipriv->pcibridge_vendor == PCI_BRIDGE_VENDOR_AMD &&
+ pcipriv->pcibridge_vendor == PCI_BRIDGE_VENDOR_AMD &&
!pcipriv->amd_l1_patch)
b_support_backdoor = _FALSE;*/
@@ -1065,7 +1061,7 @@ static void rtw_pci_update_default_setting(_adapter *padapter)
break;
case 2: // Set by Chipset.
- // ASPM value set by chipset.
+ // ASPM value set by chipset.
if (pcipriv->pcibridge_vendor == PCI_BRIDGE_VENDOR_INTEL) {
u8 b_support_aspm = _TRUE;
pwrpriv->b_support_aspm = b_support_aspm;
@@ -1098,32 +1094,119 @@ static void rtw_pci_initialize_adapter_common(_adapter *padapter)
static irqreturn_t rtw_pci_interrupt(int irq, void *priv, struct pt_regs *regs)
{
- _adapter *padapter = (_adapter *)priv;
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *dvobj = (struct dvobj_priv *)priv;
+ _adapter *adapter = dvobj->if1;
-
- if (pdvobjpriv->irq_enabled == 0) {
+ if (dvobj->irq_enabled == 0) {
return IRQ_HANDLED;
}
- if(padapter->HalFunc.interrupt_handler(padapter) == _FAIL)
+ if(rtw_hal_interrupt_handler(adapter) == _FAIL)
return IRQ_HANDLED;
//return IRQ_NONE;
return IRQ_HANDLED;
}
-static u32 pci_dvobj_init(_adapter *padapter)
+#ifdef RTK_DMP_PLATFORM
+#define pci_iounmap(x,y) iounmap(y)
+#endif
+
+int pci_alloc_irq(struct dvobj_priv *dvobj)
{
- u32 status = _SUCCESS;
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
- struct pci_priv *pcipriv = &(pdvobjpriv->pcipriv);
- struct pci_dev *pdev = pdvobjpriv->ppcidev;
- struct pci_dev *bridge_pdev = pdev->bus->self;
+ int err;
+ struct pci_dev *pdev = dvobj->ppcidev;
+
+#if defined(IRQF_SHARED)
+ err = request_irq(pdev->irq, &rtw_pci_interrupt, IRQF_SHARED, DRV_NAME, dvobj);
+#else
+ err = request_irq(pdev->irq, &rtw_pci_interrupt, SA_SHIRQ, DRV_NAME, dvobj);
+#endif
+ if (err) {
+ DBG_871X("Error allocating IRQ %d",pdev->irq);
+ } else {
+ dvobj->irq_alloc = 1;
+ DBG_871X("Request_irq OK, IRQ %d\n",pdev->irq);
+ }
+
+ return err?_FAIL:_SUCCESS;
+}
+
+static struct dvobj_priv *pci_dvobj_init(struct pci_dev *pdev)
+{
+ int err;
+ u32 status = _FAIL;
+ struct dvobj_priv *dvobj = NULL;
+ struct pci_priv *pcipriv = NULL;
+ struct pci_dev *bridge_pdev = pdev->bus->self;
+ unsigned long pmem_start, pmem_len, pmem_flags;
u8 tmp;
_func_enter_;
+ if ((dvobj = devobj_init()) == NULL) {
+ goto exit;
+ }
+ dvobj->ppcidev = pdev;
+ pcipriv = &(dvobj->pcipriv);
+ pci_set_drvdata(pdev, dvobj);
+
+ if ( (err = pci_enable_device(pdev)) != 0) {
+ DBG_871X(KERN_ERR "%s : Cannot enable new PCI device\n", pci_name(pdev));
+ goto free_dvobj;
+ }
+
+#ifdef CONFIG_64BIT_DMA
+ if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
+ DBG_871X("RTL819xCE: Using 64bit DMA\n");
+ if ((err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) != 0) {
+ DBG_871X(KERN_ERR "Unable to obtain 64bit DMA for consistent allocations\n");
+ goto disable_picdev;
+ }
+ dvobj->bdma64 = _TRUE;
+ } else
+#endif
+ {
+ if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
+ if ((err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) {
+ DBG_871X(KERN_ERR "Unable to obtain 32bit DMA for consistent allocations\n");
+ goto disable_picdev;
+ }
+ }
+ }
+
+ pci_set_master(pdev);
+
+ if ((err = pci_request_regions(pdev, DRV_NAME)) != 0) {
+ DBG_871X(KERN_ERR "Can't obtain PCI resources\n");
+ goto disable_picdev;
+ }
+ //MEM map
+ pmem_start = pci_resource_start(pdev, 2);
+ pmem_len = pci_resource_len(pdev, 2);
+ pmem_flags = pci_resource_flags(pdev, 2);
+
+#ifdef RTK_DMP_PLATFORM
+ dvobj->pci_mem_start = (unsigned long)ioremap_nocache(pmem_start, pmem_len);
+#else
+ dvobj->pci_mem_start = (unsigned long)pci_iomap(pdev, 2, pmem_len); /* shared mem start */
+#endif
+ if (dvobj->pci_mem_start == 0) {
+ DBG_871X(KERN_ERR "Can't map PCI mem\n");
+ goto release_regions;
+ }
+
+ DBG_871X("Memory mapped space start: 0x%08lx len:%08lx flags:%08lx, after map:0x%08lx\n",
+ pmem_start, pmem_len, pmem_flags, dvobj->pci_mem_start);
+
+ // Disable Clk Request */
+ pci_write_config_byte(pdev, 0x81, 0);
+ // leave D3 mode */
+ pci_write_config_byte(pdev, 0x44, 0);
+ pci_write_config_byte(pdev, 0x04, 0x06);
+ pci_write_config_byte(pdev, 0x04, 0x07);
+
+
#if 1
/*find bus info*/
pcipriv->busnumber = pdev->bus->number;
@@ -1137,7 +1220,7 @@ _func_enter_;
for (tmp = 0; tmp < PCI_BRIDGE_VENDOR_MAX; tmp++) {
if (bridge_pdev->vendor == pcibridge_vendors[tmp]) {
pcipriv->pcibridge_vendor = tmp;
- DBG_8192C("Pci Bridge Vendor is found index: %d, %x\n", tmp, pcibridge_vendors[tmp]);
+ DBG_871X("Pci Bridge Vendor is found index: %d, %x\n", tmp, pcibridge_vendors[tmp]);
break;
}
}
@@ -1155,15 +1238,15 @@ _func_enter_;
pcipriv->pcibridge_pciehdr_offset = bridge_pdev->pcie_cap;
#endif
- rtw_pci_get_linkcontrol_field(padapter);
-
+ rtw_pci_get_linkcontrol_field(dvobj);
+
if (pcipriv->pcibridge_vendor == PCI_BRIDGE_VENDOR_AMD) {
- pcipriv->amd_l1_patch = rtw_pci_get_amd_l1_patch(padapter);
+ pcipriv->amd_l1_patch = rtw_pci_get_amd_l1_patch(dvobj);
}
}
#else
//
- // Find bridge related info.
+ // Find bridge related info.
//
rtw_get_pci_bus_info(padapter,
pdev->vendor,
@@ -1195,9 +1278,9 @@ _func_enter_;
//
// Allow the hardware to look at PCI config information.
//
- rtw_pci_parse_configuration(pdev, padapter);
+ rtw_pci_parse_configuration(dvobj);
- DBG_8192C("pcidev busnumber:devnumber:funcnumber:"
+ DBG_871X("pcidev busnumber:devnumber:funcnumber:"
"vendor:link_ctl %d:%d:%d:%x:%x\n",
pcipriv->busnumber,
pcipriv->devnumber,
@@ -1205,8 +1288,8 @@ _func_enter_;
pdev->vendor,
pcipriv->linkctrl_reg);
- DBG_8192C("pci_bridge busnumber:devnumber:funcnumber:vendor:"
- "pcie_cap:link_ctl_reg: %d:%d:%d:%x:%x:%x:%x\n",
+ DBG_871X("pci_bridge busnumber:devnumber:funcnumber:vendor:"
+ "pcie_cap:link_ctl_reg: %d:%d:%d:%x:%x:%x:%x\n",
pcipriv->pcibridge_busnum,
pcipriv->pcibridge_devnum,
pcipriv->pcibridge_funcnum,
@@ -1215,38 +1298,61 @@ _func_enter_;
pcipriv->pcibridge_linkctrlreg,
pcipriv->amd_l1_patch);
- //.2
- if ((rtw_init_io_priv(padapter)) == _FAIL)
- {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n"));
- status = _FAIL;
- }
-
- //.3
- intf_read_chip_version(padapter);
- //.4
- intf_chip_configure(padapter);
+ status = _SUCCESS;
+iounmap:
+ if (status != _SUCCESS && dvobj->pci_mem_start != 0) {
+ pci_iounmap(pdev, (void *)dvobj->pci_mem_start);
+ dvobj->pci_mem_start = 0;
+ }
+release_regions:
+ if (status != _SUCCESS)
+ pci_release_regions(pdev);
+disable_picdev:
+ if (status != _SUCCESS)
+ pci_disable_device(pdev);
+free_dvobj:
+ if (status != _SUCCESS && dvobj) {
+ pci_set_drvdata(pdev, NULL);
+ devobj_deinit(dvobj);
+ dvobj = NULL;
+ }
+exit:
_func_exit_;
-
- return status;
+ return dvobj;
}
-static void pci_dvobj_deinit(_adapter * padapter)
+static void pci_dvobj_deinit(struct pci_dev *pdev)
{
- //struct dvobj_priv *pdvobjpriv=&padapter->dvobjpriv;
-
+ struct dvobj_priv *dvobj = pci_get_drvdata(pdev);
_func_enter_;
+ pci_set_drvdata(pdev, NULL);
+ if (dvobj) {
+ if (dvobj->irq_alloc) {
+ free_irq(pdev->irq, dvobj);
+ dvobj->irq_alloc = 0;
+ }
+
+ if (dvobj->pci_mem_start != 0) {
+ pci_iounmap(pdev, (void *)dvobj->pci_mem_start);
+ dvobj->pci_mem_start = 0;
+ }
+
+ devobj_deinit(dvobj);
+ }
+
+ pci_release_regions(pdev);
+ pci_disable_device(pdev);
+
_func_exit_;
}
-
static void decide_chip_type_by_pci_device_id(_adapter *padapter, struct pci_dev *pdev)
{
u16 venderid, deviceid, irqline;
u8 revisionid;
- struct dvobj_priv *pdvobjpriv=&padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
venderid = pdev->vendor;
@@ -1261,13 +1367,13 @@ static void decide_chip_type_by_pci_device_id(_adapter *padapter, struct pci_dev
//
- // Decide hardware type here.
+ // Decide hardware type here.
//
if( deviceid == HAL_HW_PCI_8185_DEVICE_ID ||
deviceid == HAL_HW_PCI_8188_DEVICE_ID ||
deviceid == HAL_HW_PCI_8198_DEVICE_ID)
{
- DBG_8192C("Adapter (8185/8185B) is found- VendorID/DeviceID=%x/%x\n", venderid, deviceid);
+ DBG_871X("Adapter (8185/8185B) is found- VendorID/DeviceID=%x/%x\n", venderid, deviceid);
padapter->HardwareType=HARDWARE_TYPE_RTL8185;
}
else if (deviceid == HAL_HW_PCI_8190_DEVICE_ID ||
@@ -1275,7 +1381,7 @@ static void decide_chip_type_by_pci_device_id(_adapter *padapter, struct pci_dev
deviceid == HAL_HW_PCI_0046_DEVICE_ID ||
deviceid == HAL_HW_PCI_DLINK_DEVICE_ID)
{
- DBG_8192C("Adapter(8190 PCI) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
+ DBG_871X("Adapter(8190 PCI) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
padapter->HardwareType = HARDWARE_TYPE_RTL8190P;
}
else if (deviceid == HAL_HW_PCI_8192_DEVICE_ID ||
@@ -1292,19 +1398,19 @@ static void decide_chip_type_by_pci_device_id(_adapter *padapter, struct pci_dev
// Added for 92DE. We deferentiate it from SVID,SDID.
if( pdev->subsystem_vendor == 0x10EC && pdev->subsystem_device == 0xE020){
padapter->HardwareType = HARDWARE_TYPE_RTL8192DE;
- DBG_8192C("Adapter(8192DE) is found - VendorID/DeviceID/RID=%X/%X/%X\n", venderid, deviceid, revisionid);
+ DBG_871X("Adapter(8192DE) is found - VendorID/DeviceID/RID=%X/%X/%X\n", venderid, deviceid, revisionid);
}else{
switch (revisionid) {
case HAL_HW_PCI_REVISION_ID_8192PCIE:
- DBG_8192C("Adapter(8192 PCI-E) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
+ DBG_871X("Adapter(8192 PCI-E) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
padapter->HardwareType = HARDWARE_TYPE_RTL8192E;
break;
case HAL_HW_PCI_REVISION_ID_8192SE:
- DBG_8192C("Adapter(8192SE) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
+ DBG_871X("Adapter(8192SE) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
padapter->HardwareType = HARDWARE_TYPE_RTL8192SE;
break;
default:
- DBG_8192C("Err: Unknown device - vendorid/deviceid=%x/%x\n", venderid, deviceid);
+ DBG_871X("Err: Unknown device - vendorid/deviceid=%x/%x\n", venderid, deviceid);
padapter->HardwareType = HARDWARE_TYPE_RTL8192SE;
break;
}
@@ -1312,25 +1418,25 @@ static void decide_chip_type_by_pci_device_id(_adapter *padapter, struct pci_dev
}
else if(deviceid==HAL_HW_PCI_8723E_DEVICE_ID )
{//RTL8723E may have the same device ID with RTL8192CET
- padapter->HardwareType = HARDWARE_TYPE_RTL8723E;
- DBG_8192C("Adapter(8723 PCI-E) is found - VendorID/DeviceID=%x/%x\n", venderid, deviceid);
+ padapter->HardwareType = HARDWARE_TYPE_RTL8723AE;
+ DBG_871X("Adapter(8723 PCI-E) is found - VendorID/DeviceID=%x/%x\n", venderid, deviceid);
}
else if (deviceid == HAL_HW_PCI_8192CET_DEVICE_ID ||
deviceid == HAL_HW_PCI_8192CE_DEVICE_ID ||
deviceid == HAL_HW_PCI_8191CE_DEVICE_ID ||
- deviceid == HAL_HW_PCI_8188CE_DEVICE_ID)
+ deviceid == HAL_HW_PCI_8188CE_DEVICE_ID)
{
- DBG_8192C("Adapter(8192C PCI-E) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
+ DBG_871X("Adapter(8192C PCI-E) is found - vendorid/deviceid=%x/%x\n", venderid, deviceid);
padapter->HardwareType = HARDWARE_TYPE_RTL8192CE;
}
else if (deviceid == HAL_HW_PCI_8192DE_DEVICE_ID ||
deviceid == HAL_HW_PCI_002B_DEVICE_ID ){
padapter->HardwareType = HARDWARE_TYPE_RTL8192DE;
- DBG_8192C("Adapter(8192DE) is found - VendorID/DeviceID/RID=%X/%X/%X\n", venderid, deviceid, revisionid);
+ DBG_871X("Adapter(8192DE) is found - VendorID/DeviceID/RID=%X/%X/%X\n", venderid, deviceid, revisionid);
}
else
{
- DBG_8192C("Err: Unknown device - vendorid/deviceid=%x/%x\n", venderid, deviceid);
+ DBG_871X("Err: Unknown device - vendorid/deviceid=%x/%x\n", venderid, deviceid);
//padapter->HardwareType = HAL_DEFAULT_HARDWARE_TYPE;
}
@@ -1355,13 +1461,16 @@ static void pci_intf_start(_adapter *padapter)
{
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+pci_intf_start\n"));
- DBG_8192C("+pci_intf_start\n");
+ DBG_871X("+pci_intf_start\n");
+#ifdef CONFIG_PCILED_BLINK
+ rtw_led_control(padapter, LED_CTL_NO_LINK);
+#endif
//Enable hw interrupt
- padapter->HalFunc.enable_interrupt(padapter);
+ rtw_hal_enable_interrupt(padapter);
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-pci_intf_start\n"));
- DBG_8192C("-pci_intf_start\n");
+ DBG_871X("-pci_intf_start\n");
}
static void pci_intf_stop(_adapter *padapter)
@@ -1373,13 +1482,27 @@ static void pci_intf_stop(_adapter *padapter)
if(padapter->bSurpriseRemoved == _FALSE)
{
//device still exists, so driver can do i/o operation
- padapter->HalFunc.disable_interrupt(padapter);
+ rtw_hal_disable_interrupt(padapter);
+ tasklet_disable(&(padapter->recvpriv.recv_tasklet));
+ tasklet_disable(&(padapter->recvpriv.irq_prepare_beacon_tasklet));
+ tasklet_disable(&(padapter->xmitpriv.xmit_tasklet));
+
+#ifdef CONFIG_CONCURRENT_MODE
+ /* This function only be called at driver removing. disable buddy_adapter too
+ don't disable interrupt of buddy_adapter because it is same as primary.
+ */
+ if (padapter->pbuddy_adapter){
+ tasklet_disable(&(padapter->pbuddy_adapter->recvpriv.recv_tasklet));
+ tasklet_disable(&(padapter->pbuddy_adapter->recvpriv.irq_prepare_beacon_tasklet));
+ tasklet_disable(&(padapter->pbuddy_adapter->xmitpriv.xmit_tasklet));
+ }
+#endif
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("pci_intf_stop: SurpriseRemoved==_FALSE\n"));
}
else
{
// Clear irq_enabled to prevent handle interrupt function.
- padapter->dvobjpriv.irq_enabled = 0;
+ adapter_to_dvobj(padapter)->irq_enabled = 0;
}
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-pci_intf_stop\n"));
@@ -1395,25 +1518,13 @@ static void rtw_dev_unload(_adapter *padapter)
if(padapter->bup == _TRUE)
{
- DBG_8192C("+rtw_dev_unload\n");
- //s1.
-/* if(pnetdev)
- {
- netif_carrier_off(pnetdev);
- netif_stop_queue(pnetdev);
- }
-
- //s2.
- //s2-1. issue rtw_disassoc_cmd to fw
- rtw_disassoc_cmd(padapter);
- //s2-2. indicate disconnect to os
- rtw_indicate_disconnect(padapter);
- //s2-3.
- rtw_free_assoc_resources(padapter, 1);
- //s2-4.
- rtw_free_network_queue(padapter, _TRUE);*/
+ DBG_871X("+rtw_dev_unload\n");
padapter->bDriverStopped = _TRUE;
+ #ifdef CONFIG_XMIT_ACK
+ if (padapter->xmitpriv.ack_tx)
+ rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
+ #endif
//s3.
if(padapter->intf_stop)
@@ -1428,7 +1539,7 @@ static void rtw_dev_unload(_adapter *padapter)
//s5.
if(padapter->bSurpriseRemoved == _FALSE)
{
- DBG_8192C("r871x_dev_unload()->rtl871x_hal_deinit()\n");
+ DBG_871X("r871x_dev_unload()->rtl871x_hal_deinit()\n");
rtw_hal_deinit(padapter);
padapter->bSurpriseRemoved = _TRUE;
@@ -1442,7 +1553,7 @@ static void rtw_dev_unload(_adapter *padapter)
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("r871x_dev_unload():padapter->bup == _FALSE\n" ));
}
- DBG_8192C("-rtw_dev_unload\n");
+ DBG_871X("-rtw_dev_unload\n");
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-rtw_dev_unload\n"));
@@ -1475,7 +1586,7 @@ static void disable_ht_for_spec_devid(const struct pci_device_id *pdid)
#ifdef CONFIG_PM
static int rtw_suspend(struct pci_dev *pdev, pm_message_t state)
-{
+{
_func_enter_;
@@ -1489,270 +1600,291 @@ static int rtw_resume(struct pci_dev *pdev)
_func_exit_;
-
+
return 0;
}
#endif
-#ifdef RTK_DMP_PLATFORM
-#define pci_iounmap(x,y) iounmap(y)
-#endif
-
-extern char* ifname;
-
-/*
- * drv_init() - a device potentially for us
- *
- * notes: drv_init() is called when the bus driver has located a card for us to support.
- * We accept the new device by returning 0.
-*/
-static int rtw_drv_init(struct pci_dev *pdev, const struct pci_device_id *pdid)
+_adapter *rtw_pci_if1_init(struct dvobj_priv * dvobj, struct pci_dev *pdev,
+ const struct pci_device_id *pdid)
{
- int i, err = -ENODEV;
-
- uint status;
_adapter *padapter = NULL;
- struct dvobj_priv *pdvobjpriv;
- struct net_device *pnetdev;
- unsigned long pmem_start, pmem_len, pmem_flags;
- u8 bdma64 = _FALSE;
+ struct net_device *pnetdev = NULL;
+ int status = _FAIL;
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_init\n"));
- //DBG_8192C("+rtw_drv_init\n");
-
- err = pci_enable_device(pdev);
- if (err) {
- DBG_8192C(KERN_ERR "%s : Cannot enable new PCI device\n", pci_name(pdev));
- return err;
+ if ((padapter = (_adapter *)rtw_zvmalloc(sizeof(*padapter))) == NULL) {
+ goto exit;
}
+ padapter->dvobj = dvobj;
+ dvobj->if1 = padapter;
-#ifdef CONFIG_64BIT_DMA
- if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
- DBG_8192C("RTL819xCE: Using 64bit DMA\n");
- if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
- DBG_8192C(KERN_ERR "Unable to obtain 64bit DMA for consistent allocations\n");
- err = -ENOMEM;
- pci_disable_device(pdev);
- return err;
- }
- bdma64 = _TRUE;
- } else
-#endif
- {
- if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
- if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) {
- DBG_8192C(KERN_ERR "Unable to obtain 32bit DMA for consistent allocations\n");
- err = -ENOMEM;
- pci_disable_device(pdev);
- return err;
- }
- }
- }
+ padapter->bDriverStopped=_TRUE;
- pci_set_master(pdev);
+ dvobj->padapters[dvobj->iface_nums++] = padapter;
+ padapter->iface_id = IFACE_ID0;
- //step 0.
- disable_ht_for_spec_devid(pdid);
+#if defined(CONFIG_CONCURRENT_MODE) || defined(CONFIG_DUALMAC_CONCURRENT)
+ //set adapter_type/iface type for primary padapter
+ padapter->isprimary = _TRUE;
+ padapter->adapter_type = PRIMARY_ADAPTER;
+ #ifndef CONFIG_HWPORT_SWAP
+ padapter->iface_type = IFACE_PORT0;
+ #else
+ padapter->iface_type = IFACE_PORT1;
+ #endif
+#endif
+ //step 1-1., decide the chip_type via vid/pid
+ padapter->interface_type = RTW_PCIE;
+ decide_chip_type_by_pci_device_id(padapter, pdev);
- //step 1. set USB interface data
- // init data
- pnetdev = rtw_init_netdev(NULL);
- if (!pnetdev){
- err = -ENOMEM;
- goto fail1;
+ if((pnetdev = rtw_init_netdev(padapter)) == NULL) {
+ goto free_adapter;
}
- rtw_init_netdev_name(pnetdev,ifname);
-
- if(bdma64){
+ if (dvobj->bdma64)
pnetdev->features |= NETIF_F_HIGHDMA;
- }
-
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
- SET_NETDEV_DEV(pnetdev, &pdev->dev);
-#endif
-
+ pnetdev->irq = pdev->irq;
+ SET_NETDEV_DEV(pnetdev, dvobj_to_dev(dvobj));
padapter = rtw_netdev_priv(pnetdev);
- pdvobjpriv = &padapter->dvobjpriv;
- pdvobjpriv->padapter = padapter;
- pdvobjpriv->ppcidev = pdev;
-
- // set data
- pci_set_drvdata(pdev, pnetdev);
-
- err = pci_request_regions(pdev, DRV_NAME);
- if (err) {
- DBG_8192C(KERN_ERR "Can't obtain PCI resources\n");
- goto fail1;
- }
- //MEM map
- pmem_start = pci_resource_start(pdev, 2);
- pmem_len = pci_resource_len(pdev, 2);
- pmem_flags = pci_resource_flags(pdev, 2);
-
-#ifdef RTK_DMP_PLATFORM
- pdvobjpriv->pci_mem_start = (unsigned long)ioremap_nocache( pmem_start, pmem_len);
-#else
- pdvobjpriv->pci_mem_start = (unsigned long)pci_iomap(pdev, 2, pmem_len); // shared mem start
-#endif
- if (pdvobjpriv->pci_mem_start == 0) {
- DBG_8192C(KERN_ERR "Can't map PCI mem\n");
- goto fail2;
- }
-
- DBG_8192C("Memory mapped space start: 0x%08lx len:%08lx flags:%08lx, after map:0x%08lx\n",
- pmem_start, pmem_len, pmem_flags, pdvobjpriv->pci_mem_start);
-
- // Disable Clk Request */
- pci_write_config_byte(pdev, 0x81, 0);
- // leave D3 mode */
- pci_write_config_byte(pdev, 0x44, 0);
- pci_write_config_byte(pdev, 0x04, 0x06);
- pci_write_config_byte(pdev, 0x04, 0x07);
-
-
- //set interface_type to usb
- padapter->interface_type = RTW_PCIE;
- //step 1-1., decide the chip_type via vid/pid
- decide_chip_type_by_pci_device_id(padapter, pdev);
-
- //step 2.
- if(padapter->chip_type== RTL8188C_8192C)
- {
-#ifdef CONFIG_RTL8192C
+ //step 2. hook HalFunc, allocate HalData
+ if (padapter->chip_type == RTL8188C_8192C) {
+ #ifdef CONFIG_RTL8192C
rtl8192ce_set_hal_ops(padapter);
-#endif
- }
- else if(padapter->chip_type == RTL8192D)
- {
-#ifdef CONFIG_RTL8192D
+ #endif
+ } else if (padapter->chip_type == RTL8192D) {
+ #ifdef CONFIG_RTL8192D
rtl8192de_set_hal_ops(padapter);
-#endif
- }
- else
- {
- status = _FAIL;
- goto error;
+ #endif
+ } else {
+ DBG_871X("Detect NULL_CHIP_TYPE\n");
+ goto free_hal_data;
}
- //step 3. initialize the dvobj_priv
- padapter->dvobj_init=&pci_dvobj_init;
- padapter->dvobj_deinit=&pci_dvobj_deinit;
+ //step 3. initialize the dvobj_priv
padapter->intf_start=&pci_intf_start;
padapter->intf_stop=&pci_intf_stop;
- if (padapter->dvobj_init == NULL){
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("\n Initialize dvobjpriv.dvobj_init error!!!\n"));
- goto error;
- }
- status = padapter->dvobj_init(padapter);
- if (status != _SUCCESS) {
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("initialize device object priv Failed!\n"));
- goto error;
+ //.2
+ if ((rtw_init_io_priv(padapter, pci_set_intf_ops)) == _FAIL) {
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n"));
+ goto free_hal_data;
}
- pnetdev->irq = pdev->irq;
+ //.3
+ rtw_hal_read_chip_version(padapter);
+
+ //.4
+ rtw_hal_chip_configure(padapter);
//step 4. read efuse/eeprom data and get mac_addr
- intf_read_chip_info(padapter);
+ rtw_hal_read_chip_info(padapter);
- //step 5.
- status = rtw_init_drv_sw(padapter);
- if(status ==_FAIL){
+ if (rtw_handle_dualmac(padapter, 1) != _SUCCESS)
+ goto free_hal_data;
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if(rtw_wdev_alloc(padapter, dvobj_to_dev(dvobj)) != 0) {
+ goto handle_dualmac;
+ }
+#endif
+
+ //step 5.
+ if (rtw_init_drv_sw(padapter) == _FAIL) {
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize driver software resource Failed!\n"));
- goto error;
+ goto free_wdev;
}
- status = padapter->HalFunc.inirp_init(padapter);
+ status = rtw_hal_inirp_init(padapter);
if(status ==_FAIL){
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize PCI desc ring Failed!\n"));
- goto error;
+ goto free_drv_sw;
}
rtw_macaddr_cfg(padapter->eeprompriv.mac_addr);
+ rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr, padapter->eeprompriv.mac_addr);
- _rtw_memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
- DBG_8192C("MAC Address from pnetdev->dev_addr= "MAC_FMT"\n", MAC_ARG(pnetdev->dev_addr));
-
- padapter->HalFunc.disable_interrupt(padapter);
-
-#if defined(IRQF_SHARED)
- err = request_irq(pdev->irq, &rtw_pci_interrupt, IRQF_SHARED, DRV_NAME, padapter);
-#else
- err = request_irq(pdev->irq, &rtw_pci_interrupt, SA_SHIRQ, DRV_NAME, padapter);
-#endif
- if (err) {
- DBG_8192C("Error allocating IRQ %d",pdev->irq);
- goto error;
- } else {
- pdvobjpriv->irq_alloc = 1;
- DBG_8192C("Request_irq OK, IRQ %d\n",pdev->irq);
- }
+ rtw_hal_disable_interrupt(padapter);
//step 6. Init pci related configuration
rtw_pci_initialize_adapter_common(padapter);
- //step 7.
- /* Tell the network stack we exist */
- if (register_netdev(pnetdev) != 0) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("register_netdev() failed\n"));
- goto error;
- }
+ DBG_871X("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
+ ,padapter->bDriverStopped
+ ,padapter->bSurpriseRemoved
+ ,padapter->bup
+ ,padapter->hw_init_completed
+ );
+
+ status = _SUCCESS;
+
+inirp_deinit:
+ if (status != _SUCCESS)
+ rtw_hal_inirp_deinit(padapter);
+free_drv_sw:
+ if (status != _SUCCESS)
+ rtw_free_drv_sw(padapter);
+free_wdev:
+ if (status != _SUCCESS) {
+ #ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_unregister(padapter->rtw_wdev);
+ rtw_wdev_free(padapter->rtw_wdev);
+ #endif
+ }
+handle_dualmac:
+ if (status != _SUCCESS)
+ rtw_handle_dualmac(padapter, 0);
+free_hal_data:
+ if (status != _SUCCESS && padapter->HalData)
+ rtw_mfree(padapter->HalData, sizeof(*(padapter->HalData)));
+free_adapter:
+ if (status != _SUCCESS) {
+ if (pnetdev)
+ rtw_free_netdev(pnetdev);
+ else if (padapter)
+ rtw_vmfree((u8*)padapter, sizeof(*padapter));
+ padapter = NULL;
+ }
+exit:
+ return padapter;
+}
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-drv_init - Adapter->bDriverStopped=%d, Adapter->bSurpriseRemoved=%d\n",padapter->bDriverStopped, padapter->bSurpriseRemoved));
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-871x_drv - drv_init, success!\n"));
- //DBG_8192C("-871x_drv - drv_init, success!\n");
+static void rtw_pci_if1_deinit(_adapter *if1)
+{
+ struct net_device *pnetdev = if1->pnetdev;
+ struct mlme_priv *pmlmepriv= &if1->mlmepriv;
-#ifdef CONFIG_PROC_DEBUG
-#ifdef RTK_DMP_PLATFORM
- rtw_proc_init_one(pnetdev);
-#endif
-#endif
+ // padapter->intf_stop(padapter);
-#ifdef CONFIG_HOSTAPD_MLME
- hostapd_mode_init(padapter);
+ if(check_fwstate(pmlmepriv, _FW_LINKED))
+ rtw_disassoc_cmd(if1, 0, _FALSE);
+
+#ifdef CONFIG_AP_MODE
+ free_mlme_ap_info(if1);
+ #ifdef CONFIG_HOSTAPD_MLME
+ hostapd_mode_unload(if1);
+ #endif
#endif
+ rtw_cancel_all_timer(if1);
+#ifdef CONFIG_WOWLAN
+ if1->pwrctrlpriv.wowlan_mode=_FALSE;
+#endif //CONFIG_WOWLAN
+ rtw_dev_unload(if1);
+
+ DBG_871X("%s, hw_init_completed=%d\n", __func__, if1->hw_init_completed);
+
+ //s6.
+ rtw_handle_dualmac(if1, 0);
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if (if1->rtw_wdev)
+ rtw_wdev_free(if1->rtw_wdev);
+#endif //CONFIG_IOCTL_CFG80211
+
+ rtw_hal_inirp_deinit(if1);
+ rtw_free_drv_sw(if1);
+
+ if(pnetdev)
+ rtw_free_netdev(pnetdev);
+
#ifdef CONFIG_PLATFORM_RTD2880B
- DBG_8192C("wlan link up\n");
- rtd2885_wlan_netlink_sendMsg("linkup", "8712");
+ DBG_871X("wlan link down\n");
+ rtd2885_wlan_netlink_sendMsg("linkdown", "8712");
#endif
+}
- return 0;
+/*
+ * drv_init() - a device potentially for us
+ *
+ * notes: drv_init() is called when the bus driver has located a card for us to support.
+ * We accept the new device by returning 0.
+*/
+static int rtw_drv_init(struct pci_dev *pdev, const struct pci_device_id *did)
+{
+ int i, err = -ENODEV;
-error:
+ int status;
+ _adapter *if1 = NULL, *if2 = NULL;
+ struct dvobj_priv *dvobj;
- pci_set_drvdata(pdev, NULL);
+ RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_init\n"));
+
+ //step 0.
+ disable_ht_for_spec_devid(did);
+
+ /* Initialize dvobj_priv */
+ if ((dvobj = pci_dvobj_init(pdev)) == NULL) {
+ RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("initialize device object priv Failed!\n"));
+ goto exit;
+ }
- if (pdvobjpriv->irq_alloc) {
- free_irq(pdev->irq, padapter);
- pdvobjpriv->irq_alloc = 0;
+ /* Initialize if1 */
+ if ((if1 = rtw_pci_if1_init(dvobj, pdev, did)) == NULL) {
+ DBG_871X("rtw_pci_if1_init Failed!\n");
+ goto free_dvobj;
}
- if (pdvobjpriv->pci_mem_start != 0) {
- pci_iounmap(pdev, (void *)pdvobjpriv->pci_mem_start);
+ /* Initialize if2 */
+#ifdef CONFIG_CONCURRENT_MODE
+ if((if2 = rtw_drv_if2_init(if1, pci_set_intf_ops)) == NULL) {
+ goto free_if1;
}
+#endif
- pci_dvobj_deinit(padapter);
+#ifdef CONFIG_GLOBAL_UI_PID
+ if (ui_pid[1]!=0) {
+ DBG_871X("ui_pid[1]:%d\n",ui_pid[1]);
+ rtw_signal_process(ui_pid[1], SIGUSR2);
+ }
+#endif
- if (pnetdev)
- {
- //unregister_netdev(pnetdev);
- rtw_free_netdev(pnetdev);
+ //dev_alloc_name && register_netdev
+ if((status = rtw_drv_register_netdev(if1)) != _SUCCESS) {
+ goto free_if1;
}
-fail2:
- pci_release_regions(pdev);
+#ifdef CONFIG_HOSTAPD_MLME
+ hostapd_mode_init(if1);
+#endif
-fail1:
- pci_disable_device(pdev);
+#ifdef CONFIG_PLATFORM_RTD2880B
+ DBG_871X("wlan link up\n");
+ rtd2885_wlan_netlink_sendMsg("linkup", "8712");
+#endif
+
+#ifdef RTK_DMP_PLATFORM
+ rtw_proc_init_one(if1->pnetdev);
+#endif
- DBG_8192C("-871x_pci - drv_init, fail!\n");
- return err;
+ /* alloc irq */
+ if (pci_alloc_irq(dvobj) != _SUCCESS)
+ goto free_if2;
+
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-871x_drv - drv_init, success!\n"));
+ //DBG_871X("-871x_drv - drv_init, success!\n");
+
+ status = _SUCCESS;
+
+free_if2:
+ if(status != _SUCCESS && if2) {
+ #ifdef CONFIG_CONCURRENT_MODE
+ rtw_drv_if2_stop(if2);
+ rtw_drv_if2_free(if2);
+ #endif
+ }
+free_if1:
+ if (status != _SUCCESS && if1) {
+ rtw_pci_if1_deinit(if1);
+ }
+free_dvobj:
+ if (status != _SUCCESS)
+ pci_dvobj_deinit(pdev);
+exit:
+ return status == _SUCCESS?0:-ENODEV;
}
/*
@@ -1761,100 +1893,67 @@ fail1:
//rmmod module & unplug(SurpriseRemoved) will call r871xu_dev_remove() => how to recognize both
static void rtw_dev_remove(struct pci_dev *pdev)
{
- struct net_device *pnetdev=pci_get_drvdata(pdev);
- _adapter *padapter = (_adapter*)rtw_netdev_priv(pnetdev);
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = pci_get_drvdata(pdev);
+ _adapter *padapter = pdvobjpriv->if1;
+ struct net_device *pnetdev = padapter->pnetdev;
_func_exit_;
+ DBG_871X("+rtw_dev_remove\n");
+
+ pdvobjpriv->processing_dev_remove = _TRUE;
+
if (unlikely(!padapter)) {
return;
}
- DBG_8192C("+rtw_dev_remove\n");
+ rtw_unregister_netdevs(pdvobjpriv);
-#if defined(CONFIG_HAS_EARLYSUSPEND ) || defined(CONFIG_ANDROID_POWER)
- rtw_unregister_early_suspend(&padapter->pwrctrlpriv);
-#endif
-
- LeaveAllPowerSaveMode(padapter);
-
-#ifdef RTK_DMP_PLATFORM
+ #if 0
+#ifdef RTK_DMP_PLATFORM
padapter->bSurpriseRemoved = _FALSE; // always trate as device exists
- // this will let the driver to disable it's interrupt
-#else
- if(drvpriv.drv_registered == _TRUE)
+ // this will let the driver to disable it's interrupt
+#else
+ if(pci_drvpriv.drv_registered == _TRUE)
{
- //DBG_8192C("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
+ //DBG_871X("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
padapter->bSurpriseRemoved = _TRUE;
}
/*else
{
- //DBG_8192C("r871xu_dev_remove():module removed\n");
+ //DBG_871X("r871xu_dev_remove():module removed\n");
padapter->hw_init_completed = _FALSE;
}*/
#endif
+ #endif
-
-#ifdef CONFIG_AP_MODE
- free_mlme_ap_info(padapter);
-#ifdef CONFIG_HOSTAPD_MLME
- hostapd_mode_unload(padapter);
-#endif //CONFIG_HOSTAPD_MLME
-#endif //CONFIG_AP_MODE
-
- if(pnetdev){
- unregister_netdev(pnetdev); //will call netdev_close()
-#ifdef CONFIG_PROC_DEBUG
- rtw_proc_remove_one(pnetdev);
+#if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
+ rtw_unregister_early_suspend(&padapter->pwrctrlpriv);
#endif
- }
-
- rtw_cancel_all_timer(padapter);
- rtw_dev_unload(padapter);
+ rtw_pm_set_ips(padapter, IPS_NONE);
+ rtw_pm_set_lps(padapter, PS_MODE_ACTIVE);
- DBG_8192C("+r871xu_dev_remove, hw_init_completed=%d\n", padapter->hw_init_completed);
-
- if (pdvobjpriv->irq_alloc) {
- free_irq(pdev->irq, padapter);
- pdvobjpriv->irq_alloc = 0;
- }
+ LeaveAllPowerSaveMode(padapter);
- if (pdvobjpriv->pci_mem_start != 0) {
- pci_iounmap(pdev, (void *)pdvobjpriv->pci_mem_start);
- pci_release_regions(pdev);
- }
+ rtw_hal_disable_interrupt(padapter);
- pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
+#ifdef CONFIG_CONCURRENT_MODE
+ rtw_drv_if2_stop(pdvobjpriv->if2);
+#endif //CONFIG_CONCURRENT_MODE
- padapter->HalFunc.inirp_deinit(padapter);
- //s6.
- if(padapter->dvobj_deinit)
- {
- padapter->dvobj_deinit(padapter);
- }
- else
- {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize hcipriv.hci_priv_init error!!!\n"));
- }
-
- rtw_free_drv_sw(padapter);
+ rtw_pci_if1_deinit(padapter);
- //after rtw_free_drv_sw(), padapter has beed freed, don't refer to it.
+#ifdef CONFIG_CONCURRENT_MODE
+ rtw_drv_if2_free(pdvobjpriv->if2);
+#endif
- DBG_8192C("-r871xu_dev_remove, done\n");
+ pci_dvobj_deinit(pdev);
-#ifdef CONFIG_PLATFORM_RTD2880B
- DBG_8192C("wlan link down\n");
- rtd2885_wlan_netlink_sendMsg("linkdown", "8712");
-#endif
+ DBG_871X("-r871xu_dev_remove, done\n");
_func_exit_;
-
return;
-
}
@@ -1863,10 +1962,13 @@ static int __init rtw_drv_entry(void)
int ret = 0;
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_entry\n"));
- DBG_871X("rtw driver version=%s \n", DRIVERVERSION);
+ DBG_871X("rtw driver version=%s\n", DRIVERVERSION);
DBG_871X("Build at: %s %s\n", __DATE__, __TIME__);
- drvpriv.drv_registered = _TRUE;
- ret = pci_register_driver(&drvpriv.rtw_pci_drv);
+ pci_drvpriv.drv_registered = _TRUE;
+
+ rtw_suspend_lock_init();
+
+ ret = pci_register_driver(&pci_drvpriv.rtw_pci_drv);
if (ret) {
RT_TRACE(_module_hci_intfs_c_, _drv_err_, (": No device found\n"));
}
@@ -1877,10 +1979,16 @@ static int __init rtw_drv_entry(void)
static void __exit rtw_drv_halt(void)
{
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_halt\n"));
- DBG_8192C("+rtw_drv_halt\n");
- drvpriv.drv_registered = _FALSE;
- pci_unregister_driver(&drvpriv.rtw_pci_drv);
- DBG_8192C("-rtw_drv_halt\n");
+ DBG_871X("+rtw_drv_halt\n");
+
+ pci_drvpriv.drv_registered = _FALSE;
+
+ pci_unregister_driver(&pci_drvpriv.rtw_pci_drv);
+
+ rtw_suspend_lock_uninit();
+ DBG_871X("-rtw_drv_halt\n");
+
+ rtw_mstat_dump();
}
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_ops_linux.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_ops_linux.c
new file mode 100644
index 0000000..7d671df
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/pci_ops_linux.c
@@ -0,0 +1,24 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *******************************************************************************/
+#define _PCI_OPS_LINUX_C_
+
+#include <drv_types.h>
+
+
+
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/recv_linux.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/recv_linux.c
index 4a76c3f..9c92019 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/recv_linux.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/recv_linux.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -35,7 +35,7 @@
//init os related resource in struct recv_priv
int rtw_os_recv_resource_init(struct recv_priv *precvpriv, _adapter *padapter)
-{
+{
int res=_SUCCESS;
return res;
@@ -43,7 +43,7 @@ int rtw_os_recv_resource_init(struct recv_priv *precvpriv, _adapter *padapter)
//alloc os related resource in union recv_frame
int rtw_os_recv_resource_alloc(_adapter *padapter, union recv_frame *precvframe)
-{
+{
int res=_SUCCESS;
precvframe->u.hdr.pkt_newalloc = precvframe->u.hdr.pkt = NULL;
@@ -64,8 +64,8 @@ int rtw_os_recvbuf_resource_alloc(_adapter *padapter, struct recv_buf *precvbuf)
{
int res=_SUCCESS;
-#ifdef CONFIG_USB_HCI
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+#ifdef CONFIG_USB_HCI
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct usb_device *pusbd = pdvobjpriv->pusbdev;
precvbuf->irp_pending = _FALSE;
@@ -85,9 +85,9 @@ int rtw_os_recvbuf_resource_alloc(_adapter *padapter, struct recv_buf *precvbuf)
precvbuf->transfer_len = 0;
precvbuf->len = 0;
-
+
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
- precvbuf->pallocated_buf = rtw_usb_buffer_alloc(pusbd, (size_t)precvbuf->alloc_sz, GFP_ATOMIC, &precvbuf->dma_transfer_addr);
+ precvbuf->pallocated_buf = rtw_usb_buffer_alloc(pusbd, (size_t)precvbuf->alloc_sz, &precvbuf->dma_transfer_addr);
precvbuf->pbuf = precvbuf->pallocated_buf;
if(precvbuf->pallocated_buf == NULL)
return _FAIL;
@@ -95,18 +95,7 @@ int rtw_os_recvbuf_resource_alloc(_adapter *padapter, struct recv_buf *precvbuf)
#endif //CONFIG_USB_HCI
-
-#ifdef CONFIG_SDIO_HCI
- precvbuf->pskb = NULL;
-
- precvbuf->pallocated_buf = precvbuf->pbuf = NULL;
-
- precvbuf->pdata = precvbuf->phead = precvbuf->ptail = precvbuf->pend = NULL;
-
- precvbuf->len = 0;
-#endif
return res;
-
}
//free os related resource in struct recv_buf
@@ -118,7 +107,7 @@ int rtw_os_recvbuf_resource_free(_adapter *padapter, struct recv_buf *precvbuf)
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct usb_device *pusbd = pdvobjpriv->pusbdev;
rtw_usb_buffer_free(pusbd, (size_t)precvbuf->alloc_sz, precvbuf->pallocated_buf, precvbuf->dma_transfer_addr);
@@ -132,13 +121,13 @@ int rtw_os_recvbuf_resource_free(_adapter *padapter, struct recv_buf *precvbuf)
//usb_kill_urb(precvbuf->purb);
usb_free_urb(precvbuf->purb);
}
-
+
#endif //CONFIG_USB_HCI
if(precvbuf->pskb)
- dev_kfree_skb_any(precvbuf->pskb);
-
+ rtw_skb_free(precvbuf->pskb);
+
return ret;
@@ -151,10 +140,10 @@ void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup)
#endif
union iwreq_data wrqu;
struct iw_michaelmicfailure ev;
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
- struct security_priv *psecuritypriv = &padapter->securitypriv;
+ struct mlme_priv* pmlmepriv = &padapter->mlmepriv;
+ struct security_priv *psecuritypriv = &padapter->securitypriv;
u32 cur_time = 0;
-
+
if( psecuritypriv->last_mic_err_time == 0 )
{
psecuritypriv->last_mic_err_time = rtw_get_current_time();
@@ -192,11 +181,11 @@ void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup)
_rtw_memset( &ev, 0x00, sizeof( ev ) );
if ( bgroup )
{
- ev.flags |= IW_MICFAILURE_GROUP;
+ ev.flags |= IW_MICFAILURE_GROUP;
}
else
{
- ev.flags |= IW_MICFAILURE_PAIRWISE;
+ ev.flags |= IW_MICFAILURE_PAIRWISE;
}
ev.src_addr.sa_family = ARPHRD_ETHER;
@@ -210,47 +199,47 @@ void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup)
void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame)
{
-#ifdef CONFIG_HOSTAPD_MLME
+#ifdef CONFIG_HOSTAPD_MLME
_pkt *skb;
struct hostapd_priv *phostapdpriv = padapter->phostapdpriv;
struct net_device *pmgnt_netdev = phostapdpriv->pmgnt_netdev;
-
+
RT_TRACE(_module_recv_osdep_c_, _drv_info_, ("+rtw_hostapd_mlme_rx\n"));
-
- skb = precv_frame->u.hdr.pkt;
-
- if (skb == NULL)
+
+ skb = precv_frame->u.hdr.pkt;
+
+ if (skb == NULL)
return;
-
+
skb->data = precv_frame->u.hdr.rx_data;
- skb->tail = precv_frame->u.hdr.rx_tail;
+ skb->tail = precv_frame->u.hdr.rx_tail;
skb->len = precv_frame->u.hdr.len;
- //pskb_copy = skb_copy(skb, GFP_ATOMIC);
+ //pskb_copy = rtw_skb_copy(skb);
// if(skb == NULL) goto _exit;
skb->dev = pmgnt_netdev;
- skb->ip_summed = CHECKSUM_NONE;
+ skb->ip_summed = CHECKSUM_NONE;
skb->pkt_type = PACKET_OTHERHOST;
//skb->protocol = __constant_htons(0x0019); /*ETH_P_80211_RAW*/
skb->protocol = __constant_htons(0x0003); /*ETH_P_80211_RAW*/
-
- //DBG_8192C("(1)data=0x%x, head=0x%x, tail=0x%x, mac_header=0x%x, len=%d\n", skb->data, skb->head, skb->tail, skb->mac_header, skb->len);
+
+ //DBG_871X("(1)data=0x%x, head=0x%x, tail=0x%x, mac_header=0x%x, len=%d\n", skb->data, skb->head, skb->tail, skb->mac_header, skb->len);
//skb->mac.raw = skb->data;
skb_reset_mac_header(skb);
//skb_pull(skb, 24);
- _rtw_memset(skb->cb, 0, sizeof(skb->cb));
+ _rtw_memset(skb->cb, 0, sizeof(skb->cb));
- netif_rx(skb);
+ rtw_netif_rx(pmgnt_netdev, skb);
- precv_frame->u.hdr.pkt = NULL; // set pointer to NULL before rtw_free_recvframe() if call netif_rx()
-#endif
+ precv_frame->u.hdr.pkt = NULL; // set pointer to NULL before rtw_free_recvframe() if call rtw_netif_rx()
+#endif
}
int rtw_recv_indicatepkt(_adapter *padapter, union recv_frame *precv_frame)
-{
+{
struct recv_priv *precvpriv;
_queue *pfree_recv_queue;
_pkt *skb;
@@ -265,20 +254,20 @@ int rtw_recv_indicatepkt(_adapter *padapter, union recv_frame *precv_frame)
_func_enter_;
- precvpriv = &(padapter->recvpriv);
- pfree_recv_queue = &(precvpriv->free_recv_queue);
+ precvpriv = &(padapter->recvpriv);
+ pfree_recv_queue = &(precvpriv->free_recv_queue);
-#ifdef CONFIG_DRVEXT_MODULE
+#ifdef CONFIG_DRVEXT_MODULE
if (drvext_rx_handler(padapter, precv_frame->u.hdr.rx_data, precv_frame->u.hdr.len) == _SUCCESS)
- {
+ {
goto _recv_indicatepkt_drop;
}
#endif
- skb = precv_frame->u.hdr.pkt;
+ skb = precv_frame->u.hdr.pkt;
if(skb == NULL)
- {
- RT_TRACE(_module_recv_osdep_c_,_drv_err_,("rtw_recv_indicatepkt():skb==NULL something wrong!!!!\n"));
+ {
+ RT_TRACE(_module_recv_osdep_c_,_drv_err_,("rtw_recv_indicatepkt():skb==NULL something wrong!!!!\n"));
goto _recv_indicatepkt_drop;
}
@@ -288,17 +277,13 @@ _func_enter_;
skb->data = precv_frame->u.hdr.rx_data;
-#ifdef NET_SKBUFF_DATA_USES_OFFSET
skb_set_tail_pointer(skb, precv_frame->u.hdr.len);
-#else
- skb->tail = precv_frame->u.hdr.rx_tail;
-#endif
skb->len = precv_frame->u.hdr.len;
RT_TRACE(_module_recv_osdep_c_,_drv_info_,("\n skb->head=%p skb->data=%p skb->tail=%p skb->end=%p skb->len=%d\n", skb->head, skb->data, skb->tail, skb->end, skb->len));
- if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
+ if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
_pkt *pskb2=NULL;
struct sta_info *psta = NULL;
@@ -315,21 +300,25 @@ _func_enter_;
if(bmcast)
{
psta = rtw_get_bcmc_stainfo(padapter);
- pskb2 = skb_clone(skb, GFP_ATOMIC);
+ pskb2 = rtw_skb_clone(skb);
} else {
psta = rtw_get_stainfo(pstapriv, pattrib->dst);
}
if(psta)
{
+ struct net_device *pnetdev= (struct net_device*)padapter->pnetdev;
+
//DBG_871X("directly forwarding to the rtw_xmit_entry\n");
//skb->ip_summed = CHECKSUM_NONE;
- //skb->protocol = eth_type_trans(skb, pnetdev);
-
- skb->dev = padapter->pnetdev;
- rtw_xmit_entry(skb, padapter->pnetdev);
-
+ skb->dev = pnetdev;
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ skb_set_queue_mapping(skb, rtw_recv_select_queue(skb));
+#endif //LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35)
+
+ _rtw_xmit_entry(skb, pnetdev);
+
if(bmcast)
skb = pskb2;
else
@@ -355,7 +344,7 @@ _func_enter_;
rcu_read_unlock();
#endif // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
- if( br_port && (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE) )
+ if( br_port && (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE) )
{
int nat25_handle_frame(_adapter *priv, struct sk_buff *skb);
if (nat25_handle_frame(padapter, skb) == -1) {
@@ -376,10 +365,10 @@ _func_enter_;
#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
if ( (pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1) ) {
skb->ip_summed = CHECKSUM_UNNECESSARY;
- //DBG_8192C("CHECKSUM_UNNECESSARY \n");
+ //DBG_871X("CHECKSUM_UNNECESSARY \n");
} else {
skb->ip_summed = CHECKSUM_NONE;
- //DBG_8192C("CHECKSUM_NONE(%d, %d) \n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt);
+ //DBG_871X("CHECKSUM_NONE(%d, %d) \n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt);
}
#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */
@@ -390,7 +379,7 @@ _func_enter_;
skb->dev = padapter->pnetdev;
skb->protocol = eth_type_trans(skb, padapter->pnetdev);
- netif_rx(skb);
+ rtw_netif_rx(padapter->pnetdev, skb);
_recv_indicatepkt_end:
@@ -398,21 +387,18 @@ _recv_indicatepkt_end:
rtw_free_recvframe(precv_frame, pfree_recv_queue);
- RT_TRACE(_module_recv_osdep_c_,_drv_info_,("\n rtw_recv_indicatepkt :after netif_rx!!!!\n"));
+ RT_TRACE(_module_recv_osdep_c_,_drv_info_,("\n rtw_recv_indicatepkt :after rtw_netif_rx!!!!\n"));
-_func_exit_;
+_func_exit_;
- return _SUCCESS;
+ return _SUCCESS;
_recv_indicatepkt_drop:
- //enqueue back to free_recv_queue
+ //enqueue back to free_recv_queue
if(precv_frame)
rtw_free_recvframe(precv_frame, pfree_recv_queue);
-
- precvpriv->rx_drop++;
-
return _FAIL;
_func_exit_;
@@ -420,7 +406,7 @@ _func_exit_;
}
void rtw_os_read_port(_adapter *padapter, struct recv_buf *precvbuf)
-{
+{
struct recv_priv *precvpriv = &padapter->recvpriv;
#ifdef CONFIG_USB_HCI
@@ -428,7 +414,7 @@ void rtw_os_read_port(_adapter *padapter, struct recv_buf *precvbuf)
precvbuf->ref_cnt--;
//free skb in recv_buf
- dev_kfree_skb_any(precvbuf->pskb);
+ rtw_skb_free(precvbuf->pskb);
precvbuf->pskb = NULL;
precvbuf->reuse = _FALSE;
@@ -436,8 +422,8 @@ void rtw_os_read_port(_adapter *padapter, struct recv_buf *precvbuf)
if(precvbuf->irp_pending == _FALSE)
{
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
- }
-
+ }
+
#endif
#ifdef CONFIG_SDIO_HCI
@@ -457,6 +443,6 @@ void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl)
_adapter *padapter = preorder_ctrl->padapter;
_init_timer(&(preorder_ctrl->reordering_ctrl_timer), padapter->pnetdev, _rtw_reordering_ctrl_timeout_handler, preorder_ctrl);
-
+
}
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/rtw_android.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/rtw_android.c
index aceaaa7..a4bb073 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/rtw_android.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/rtw_android.c
@@ -27,15 +27,14 @@
#include <ioctl_cfg80211.h>
#include <rtw_ioctl_set.h>
-
-#if defined(CONFIG_WIFI_CONTROL_FUNC) && 0
+#if defined(RTW_ENABLE_WIFI_CONTROL_FUNC)
#include <linux/platform_device.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
#include <linux/wlan_plat.h>
#else
#include <linux/wifi_tiwlan.h>
#endif
-#endif /* CONFIG_WIFI_CONTROL_FUNC */
+#endif /* defined(RTW_ENABLE_WIFI_CONTROL_FUNC) */
const char *android_wifi_cmd_str[ANDROID_WIFI_CMD_MAX] = {
"START",
@@ -71,7 +70,11 @@ const char *android_wifi_cmd_str[ANDROID_WIFI_CMD_MAX] = {
"MACADDR",
"BLOCK",
-
+ "WFD-ENABLE",
+ "WFD-DISABLE",
+ "WFD-SET-TCPPORT",
+ "WFD-SET-MAXTPUT",
+ "WFD-SET-DEVTYPE",
};
#ifdef PNO_SUPPORT
@@ -93,12 +96,17 @@ typedef struct cmd_tlv {
#endif /* PNO_SUPPORT */
typedef struct android_wifi_priv_cmd {
+
+#ifdef CONFIG_COMPAT
+ compat_uptr_t buf;
+#else
char *buf;
+#endif
+
int used_len;
int total_len;
} android_wifi_priv_cmd;
-
/**
* Local (static) functions and variables
*/
@@ -147,7 +155,7 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
DHD_INFO(("%s: command=%s, len=%d\n", __FUNCTION__, command, total_len));
if (total_len < (strlen(CMD_PNOSETUP_SET) + sizeof(cmd_tlv_t))) {
- DHD_ERROR(("%s argument=%d less min size\n", __FUNCTION__, total_len));
+ DBG_871X("%s argument=%d less min size\n", __FUNCTION__, total_len);
goto exit_proc;
}
@@ -174,12 +182,12 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
if ((nssid = wl_iw_parse_ssid_list_tlv(&str_ptr, ssids_local,
MAX_PFN_LIST_COUNT, &tlv_size_left)) <= 0) {
- DHD_ERROR(("SSID is not presented or corrupted ret=%d\n", nssid));
+ DBG_871X("SSID is not presented or corrupted ret=%d\n", nssid);
goto exit_proc;
} else {
if ((str_ptr[0] != PNO_TLV_TYPE_TIME) || (tlv_size_left <= 1)) {
- DHD_ERROR(("%s scan duration corrupted field size %d\n",
- __FUNCTION__, tlv_size_left));
+ DBG_871X("%s scan duration corrupted field size %d\n",
+ __FUNCTION__, tlv_size_left);
goto exit_proc;
}
str_ptr++;
@@ -188,16 +196,16 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
if (str_ptr[0] != 0) {
if ((str_ptr[0] != PNO_TLV_FREQ_REPEAT)) {
- DHD_ERROR(("%s pno repeat : corrupted field\n",
- __FUNCTION__));
+ DBG_871X("%s pno repeat : corrupted field\n",
+ __FUNCTION__);
goto exit_proc;
}
str_ptr++;
pno_repeat = simple_strtoul(str_ptr, &str_ptr, 16);
DHD_INFO(("%s :got pno_repeat=%d\n", __FUNCTION__, pno_repeat));
if (str_ptr[0] != PNO_TLV_FREQ_EXPO_MAX) {
- DHD_ERROR(("%s FREQ_EXPO_MAX corrupted field size\n",
- __FUNCTION__));
+ DBG_871X("%s FREQ_EXPO_MAX corrupted field size\n",
+ __FUNCTION__);
goto exit_proc;
}
str_ptr++;
@@ -207,7 +215,7 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
}
}
} else {
- DHD_ERROR(("%s get wrong TLV command\n", __FUNCTION__));
+ DBG_871X("%s get wrong TLV command\n", __FUNCTION__);
goto exit_proc;
}
@@ -251,7 +259,7 @@ int rtw_android_get_link_speed(struct net_device *net, char *command, int total_
int bytes_written = 0;
u16 link_speed = 0;
- link_speed = rtw_get_network_max_rate(padapter, &pcur_network->network);
+ link_speed = rtw_get_cur_max_rate(padapter)/10;
bytes_written = snprintf(command, total_len, "LinkSpeed %d", link_speed);
return bytes_written;
@@ -270,7 +278,7 @@ int rtw_android_set_country(struct net_device *net, char *command, int total_len
{
_adapter *adapter = (_adapter *)rtw_netdev_priv(net);
char *country_code = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_COUNTRY]) + 1;
- int ret;
+ int ret = _FAIL;
ret = rtw_set_country(adapter, country_code);
@@ -279,7 +287,6 @@ int rtw_android_set_country(struct net_device *net, char *command, int total_len
int rtw_android_get_p2p_dev_addr(struct net_device *net, char *command, int total_len)
{
- int ret;
int bytes_written = 0;
//We use the same address as our HW MAC address
@@ -291,7 +298,6 @@ int rtw_android_get_p2p_dev_addr(struct net_device *net, char *command, int tota
int rtw_android_set_block(struct net_device *net, char *command, int total_len)
{
- int ret;
_adapter *adapter = (_adapter *)rtw_netdev_priv(net);
char *block_value = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_BLOCK]) + 1;
@@ -302,6 +308,45 @@ int rtw_android_set_block(struct net_device *net, char *command, int total_len)
return 0;
}
+int rtw_android_setband(struct net_device *net, char *command, int total_len)
+{
+ _adapter *adapter = (_adapter *)rtw_netdev_priv(net);
+ char *arg = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_SETBAND]) + 1;
+ u32 band = GHZ_MAX;
+ int ret = _FAIL;
+
+ sscanf(arg, "%u", &band);
+ ret = rtw_set_band(adapter, band);
+
+ return (ret==_SUCCESS)?0:-1;
+}
+
+int rtw_android_getband(struct net_device *net, char *command, int total_len)
+{
+ _adapter *adapter = (_adapter *)rtw_netdev_priv(net);
+ int bytes_written = 0;
+
+ bytes_written = snprintf(command, total_len, "%u", adapter->setband);
+
+ return bytes_written;
+}
+
+int get_int_from_command( char* pcmd )
+{
+ int i = 0;
+
+ for( i = 0; i < strlen( pcmd ); i++ )
+ {
+ if ( pcmd[ i ] == '=' )
+ {
+ // Skip the '=' and space characters.
+ i += 2;
+ break;
+ }
+ }
+ return ( rtw_atoi( pcmd + i ) );
+}
+
int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
{
int ret = 0;
@@ -320,14 +365,21 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
ret = -EFAULT;
goto exit;
}
- command = kmalloc(priv_cmd.total_len, GFP_KERNEL);
+
+ command = rtw_zmalloc(priv_cmd.total_len);
if (!command)
{
DBG_871X("%s: failed to allocate memory\n", __FUNCTION__);
ret = -ENOMEM;
goto exit;
}
- if (copy_from_user(command, priv_cmd.buf, priv_cmd.total_len)) {
+
+ if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){
+ DBG_871X("%s: failed to access memory\n", __FUNCTION__);
+ ret = -EFAULT;
+ goto exit;
+ }
+ if (copy_from_user(command, (void *)priv_cmd.buf, priv_cmd.total_len)) {
ret = -EFAULT;
goto exit;
}
@@ -359,10 +411,15 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
break;
case ANDROID_WIFI_CMD_SCAN_ACTIVE:
- rtw_set_scan_mode((_adapter *)rtw_netdev_priv(net), SCAN_ACTIVE);
+ //rtw_set_scan_mode((_adapter *)rtw_netdev_priv(net), SCAN_ACTIVE);
+#ifdef CONFIG_PLATFORM_MSTAR
+#ifdef CONFIG_IOCTL_CFG80211
+ (wdev_to_priv(net->ieee80211_ptr))->bandroid_scan = _TRUE;
+#endif //CONFIG_IOCTL_CFG80211
+#endif //CONFIG_PLATFORM_MSTAR
break;
case ANDROID_WIFI_CMD_SCAN_PASSIVE:
- rtw_set_scan_mode((_adapter *)rtw_netdev_priv(net), SCAN_PASSIVE);
+ //rtw_set_scan_mode((_adapter *)rtw_netdev_priv(net), SCAN_PASSIVE);
break;
case ANDROID_WIFI_CMD_RSSI:
@@ -419,11 +476,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
break;
case ANDROID_WIFI_CMD_SETBAND:
- //uint band = *(command + strlen(CMD_SETBAND) + 1) - '0';
- //bytes_written = wldev_set_band(net, band);
+ bytes_written = rtw_android_setband(net, command, priv_cmd.total_len);
break;
+
case ANDROID_WIFI_CMD_GETBAND:
- //bytes_written = wl_android_get_band(net, command, priv_cmd.total_len);
+ bytes_written = rtw_android_getband(net, command, priv_cmd.total_len);
break;
case ANDROID_WIFI_CMD_COUNTRY:
@@ -467,6 +524,74 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
}
#endif //CONFIG_IOCTL_CFG80211
+#ifdef CONFIG_WFD
+ case ANDROID_WIFI_CMD_WFD_ENABLE:
+ {
+ // Commented by Albert 2012/07/24
+ // We can enable the WFD function by using the following command:
+ // wpa_cli driver wfd-enable
+
+ struct wifi_display_info *pwfd_info;
+ _adapter* padapter = ( _adapter * ) rtw_netdev_priv(net);
+
+ pwfd_info = &padapter->wfd_info;
+ if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
+ pwfd_info->wfd_enable = _TRUE;
+ break;
+ }
+
+ case ANDROID_WIFI_CMD_WFD_DISABLE:
+ {
+ // Commented by Albert 2012/07/24
+ // We can disable the WFD function by using the following command:
+ // wpa_cli driver wfd-disable
+
+ struct wifi_display_info *pwfd_info;
+ _adapter* padapter = ( _adapter * ) rtw_netdev_priv(net);
+
+ pwfd_info = &padapter->wfd_info;
+ if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
+ pwfd_info->wfd_enable = _FALSE;
+ break;
+ }
+ case ANDROID_WIFI_CMD_WFD_SET_TCPPORT:
+ {
+ // Commented by Albert 2012/07/24
+ // We can set the tcp port number by using the following command:
+ // wpa_cli driver wfd-set-tcpport = 554
+
+ struct wifi_display_info *pwfd_info;
+ _adapter* padapter = ( _adapter * ) rtw_netdev_priv(net);
+
+ pwfd_info = &padapter->wfd_info;
+ if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
+ pwfd_info->rtsp_ctrlport = ( u16 ) get_int_from_command( priv_cmd.buf );
+ break;
+ }
+ case ANDROID_WIFI_CMD_WFD_SET_MAX_TPUT:
+ {
+
+
+ break;
+ }
+ case ANDROID_WIFI_CMD_WFD_SET_DEVTYPE:
+ {
+ // Commented by Albert 2012/08/28
+ // Specify the WFD device type ( WFD source/primary sink )
+
+ struct wifi_display_info *pwfd_info;
+ _adapter* padapter = ( _adapter * ) rtw_netdev_priv(net);
+
+ pwfd_info = &padapter->wfd_info;
+ if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
+ {
+ pwfd_info->wfd_device_type = ( u8 ) get_int_from_command( priv_cmd.buf );
+
+ pwfd_info->wfd_device_type &= WFD_DEVINFO_DUAL;
+ }
+ break;
+ }
+#endif
default:
DBG_871X("Unknown PRIVATE command %s - ignored\n", command);
snprintf(command, 3, "OK");
@@ -484,7 +609,7 @@ response:
bytes_written++;
}
priv_cmd.used_len = bytes_written;
- if (copy_to_user(priv_cmd.buf, command, bytes_written)) {
+ if (copy_to_user((void *)priv_cmd.buf, command, bytes_written)) {
DBG_871X("%s: failed to copy data to user buffer\n", __FUNCTION__);
ret = -EFAULT;
}
@@ -496,7 +621,7 @@ response:
exit:
rtw_unlock_suspend();
if (command) {
- kfree(command);
+ rtw_mfree(command, priv_cmd.total_len);
}
return ret;
@@ -506,7 +631,7 @@ exit:
/**
* Functions for Android WiFi card detection
*/
-#if defined(CONFIG_WIFI_CONTROL_FUNC) && 0
+#if defined(RTW_ENABLE_WIFI_CONTROL_FUNC)
static int g_wifidev_registered = 0;
static struct semaphore wifi_control_sem;
@@ -516,14 +641,14 @@ static struct resource *wifi_irqres = NULL;
static int wifi_add_dev(void);
static void wifi_del_dev(void);
-int wl_android_wifictrl_func_add(void)
+int rtw_android_wifictrl_func_add(void)
{
int ret = 0;
sema_init(&wifi_control_sem, 0);
ret = wifi_add_dev();
if (ret) {
- DHD_ERROR(("%s: platform_driver_register failed\n", __FUNCTION__));
+ DBG_871X("%s: platform_driver_register failed\n", __FUNCTION__);
return ret;
}
g_wifidev_registered = 1;
@@ -531,13 +656,13 @@ int wl_android_wifictrl_func_add(void)
/* Waiting callback after platform_driver_register is done or exit with error */
if (down_timeout(&wifi_control_sem, msecs_to_jiffies(1000)) != 0) {
ret = -EINVAL;
- DHD_ERROR(("%s: platform_driver_register timeout\n", __FUNCTION__));
+ DBG_871X("%s: platform_driver_register timeout\n", __FUNCTION__);
}
return ret;
}
-void wl_android_wifictrl_func_del(void)
+void rtw_android_wifictrl_func_del(void)
{
if (g_wifidev_registered)
{
@@ -552,14 +677,14 @@ void *wl_android_prealloc(int section, unsigned long size)
if (wifi_control_data && wifi_control_data->mem_prealloc) {
alloc_ptr = wifi_control_data->mem_prealloc(section, size);
if (alloc_ptr) {
- DHD_INFO(("success alloc section %d\n", section));
+ DBG_871X("success alloc section %d\n", section);
if (size != 0L)
- bzero(alloc_ptr, size);
+ memset(alloc_ptr, 0, size);
return alloc_ptr;
}
}
- DHD_ERROR(("can't alloc section %d\n", section));
+ DBG_871X("can't alloc section %d\n", section);
return NULL;
}
@@ -578,7 +703,7 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr)
int wifi_set_power(int on, unsigned long msec)
{
- DHD_ERROR(("%s = %d\n", __FUNCTION__, on));
+ DBG_871X("%s = %d\n", __FUNCTION__, on);
if (wifi_control_data && wifi_control_data->set_power) {
wifi_control_data->set_power(on);
}
@@ -590,7 +715,7 @@ int wifi_set_power(int on, unsigned long msec)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
int wifi_get_mac_addr(unsigned char *buf)
{
- DHD_ERROR(("%s\n", __FUNCTION__));
+ DBG_871X("%s\n", __FUNCTION__);
if (!buf)
return -EINVAL;
if (wifi_control_data && wifi_control_data->get_mac_addr) {
@@ -600,10 +725,10 @@ int wifi_get_mac_addr(unsigned char *buf)
}
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)) */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)) || defined(COMPAT_KERNEL_RELEASE)
void *wifi_get_country_code(char *ccode)
{
- DHD_TRACE(("%s\n", __FUNCTION__));
+ DBG_871X("%s\n", __FUNCTION__);
if (!ccode)
return NULL;
if (wifi_control_data && wifi_control_data->get_country_code) {
@@ -615,7 +740,7 @@ void *wifi_get_country_code(char *ccode)
static int wifi_set_carddetect(int on)
{
- DHD_ERROR(("%s = %d\n", __FUNCTION__, on));
+ DBG_871X("%s = %d\n", __FUNCTION__, on);
if (wifi_control_data && wifi_control_data->set_carddetect) {
wifi_control_data->set_carddetect(on);
}
@@ -627,7 +752,7 @@ static int wifi_probe(struct platform_device *pdev)
struct wifi_platform_data *wifi_ctrl =
(struct wifi_platform_data *)(pdev->dev.platform_data);
- DHD_ERROR(("## %s\n", __FUNCTION__));
+ DBG_871X("## %s\n", __FUNCTION__);
wifi_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "bcmdhd_wlan_irq");
if (wifi_irqres == NULL)
wifi_irqres = platform_get_resource_byname(pdev,
@@ -646,7 +771,7 @@ static int wifi_remove(struct platform_device *pdev)
struct wifi_platform_data *wifi_ctrl =
(struct wifi_platform_data *)(pdev->dev.platform_data);
- DHD_ERROR(("## %s\n", __FUNCTION__));
+ DBG_871X("## %s\n", __FUNCTION__);
wifi_control_data = wifi_ctrl;
wifi_set_power(0, 0); /* Power Off */
@@ -658,7 +783,7 @@ static int wifi_remove(struct platform_device *pdev)
static int wifi_suspend(struct platform_device *pdev, pm_message_t state)
{
- DHD_TRACE(("##> %s\n", __FUNCTION__));
+ DBG_871X("##> %s\n", __FUNCTION__);
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 39)) && defined(OOB_INTR_ONLY)
bcmsdh_oob_intr_set(0);
#endif
@@ -667,7 +792,7 @@ static int wifi_suspend(struct platform_device *pdev, pm_message_t state)
static int wifi_resume(struct platform_device *pdev)
{
- DHD_TRACE(("##> %s\n", __FUNCTION__));
+ DBG_871X("##> %s\n", __FUNCTION__);
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 39)) && defined(OOB_INTR_ONLY)
if (dhd_os_check_if_up(bcmsdh_get_drvdata()))
bcmsdh_oob_intr_set(1);
@@ -675,6 +800,7 @@ static int wifi_resume(struct platform_device *pdev)
return 0;
}
+/* temporarily use these two */
static struct platform_driver wifi_device = {
.probe = wifi_probe,
.remove = wifi_remove,
@@ -697,7 +823,7 @@ static struct platform_driver wifi_device_legacy = {
static int wifi_add_dev(void)
{
- DHD_TRACE(("## Calling platform_driver_register\n"));
+ DBG_871X("## Calling platform_driver_register\n");
platform_driver_register(&wifi_device);
platform_driver_register(&wifi_device_legacy);
return 0;
@@ -705,9 +831,9 @@ static int wifi_add_dev(void)
static void wifi_del_dev(void)
{
- DHD_TRACE(("## Unregister platform_driver_register\n"));
+ DBG_871X("## Unregister platform_driver_register\n");
platform_driver_unregister(&wifi_device);
platform_driver_unregister(&wifi_device_legacy);
}
-#endif /* defined(CONFIG_WIFI_CONTROL_FUNC) */
+#endif /* defined(RTW_ENABLE_WIFI_CONTROL_FUNC) */
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/sdio_intf.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/sdio_intf.c
deleted file mode 100644
index 52faefc..0000000
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/sdio_intf.c
+++ /dev/null
@@ -1,922 +0,0 @@
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- *
-
-******************************************************************************/
-#define _HCI_INTF_C_
-
-#include <drv_conf.h>
-#include <osdep_service.h>
-#include <drv_types.h>
-#include <recv_osdep.h>
-#include <xmit_osdep.h>
-
-#include <hal_init.h>
-#include <sdio_hal.h>
-#include <sdio_ops.h>
-#include <linux/mmc/sdio_func.h>
-#include <linux/mmc/sdio_ids.h>
-extern u32 rtw_start_drv_threads(_adapter *padapter);
-extern void rtw_stop_drv_threads (_adapter *padapter);
-extern u8 rtw_init_drv_sw(_adapter *padapter);
-extern u8 rtw_free_drv_sw(_adapter *padapter);
-extern void rtw_cancel_all_timer(_adapter *padapter);
-extern struct net_device *rtw_init_netdev(_adapter *old_padapter);
-extern void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib
-*pattrib, struct recv_stat *prxstat);
-static const struct sdio_device_id sdio_ids[] = {
- { SDIO_DEVICE(0x024c, 0x8712) },
-// { SDIO_DEVICE_CLASS(SDIO_CLASS_WLAN) },
-// { /* end: all zeroes */ },
-};
-
-typedef struct _driver_priv{
- struct sdio_driver r871xs_drv;
-}drv_priv, *pdrv_priv;
-
-void sd_sync_int_hdl(struct sdio_func *func);
-
-extern unsigned int sd_dvobj_init(_adapter * padapter){
-
- struct dvobj_priv *psddev=&padapter->dvobjpriv;
- struct sdio_func *func=psddev->func;
- int ret;
- _func_enter_;
- //_rtw_init_sema(&psddev->init_finish,0);
- sdio_claim_host(func);
- ret=sdio_enable_func(func);
- if(ret){
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("sd_dvobj_init: sdio_enable_func fail!!!!!\n"));
- return _FAIL;
- }
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("sd_dvobj_init: sdio_enable_func success!!!!!\n"));
- padapter->EepromAddressSize = 6;
- psddev->tx_block_mode=1;
- psddev->rx_block_mode=1;
- sdio_set_block_size(func, 512);
- psddev->block_transfer_len=512;
- psddev->blk_shiftbits=9;
- ret=sdio_claim_irq(func,sd_sync_int_hdl);
- sdio_release_host(func);
- psddev->sdio_himr=0xff;
- if(ret)
- return _FAIL;
- _func_exit_;
- return _SUCCESS;
-}
-
-extern void sd_dvobj_deinit(_adapter * padapter)
-{
- unsigned char data;
- struct dvobj_priv *psddev=&padapter->dvobjpriv;
- struct sdio_func *func=psddev->func;
-
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+SDIO deinit\n"));
- if(func !=0){
- sdio_claim_host(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in sd_dvobj_deinit():sdio_claim_host !\n"));
-// sdio_release_irq(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in sd_dvobj_deinit():sdio_release_irq !\n"));
- sdio_disable_func(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in sd_dvobj_deinit():sdio_disable_func !\n"));
- sdio_release_host(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in sd_dvobj_deinit():sdio_release_host !\n"));
-
-
- }
- return;
-}
-
-uint sdbus_read_reg_int(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata)
-{
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv*)pintfpriv->intf_dev;
- struct sdio_func *func = pdvobjpriv->func;
- u8 *mem = NULL;
- int status;
-
-#ifdef CONFIG_IO_4B
- u32 addr_org = addr, addr_offset = 0;
- u32 cnt_org = cnt;
-#endif
-
-_func_enter_;
-
-#ifdef CONFIG_IO_4B
- addr_offset = addr % 4;
- if (addr_offset) {
- addr = addr - addr_offset;
- cnt = cnt + addr_offset;
- }
- if (cnt % 4)
- cnt = ((cnt + 4) >> 2) << 2;
-#endif
-
- mem = rtw_malloc(cnt);
- if (mem == NULL) {
- RT_TRACE(_module_hci_ops_os_c_, _drv_emerg_,
- ("SDIO_STATUS_NO_RESOURCES - memory alloc fail\n"));
- return _FAIL;
- }
-
- status = sdio_memcpy_fromio(func, mem, addr&0x1FFFF, cnt);
- if (status) {
- //error
- RT_TRACE(_module_hci_ops_os_c_, _drv_emerg_,
- ("sdbus_read_reg_int error 0x%x\n"
- "***** Addr = %x *****\n"
- "***** Length = %d *****\n", status, addr, cnt));
- status = _FAIL;
- } else {
-#ifdef CONFIG_IO_4B
- if (cnt != cnt_org)
- _rtw_memcpy(pdata, mem + addr_offset, cnt_org);
- else
-#endif
- _rtw_memcpy(pdata, mem, cnt);
- status = _SUCCESS;
- }
-
- rtw_mfree(mem, cnt);
-
-_func_exit_;
-
- return status;
-}
-
-void sdio_read_int(_adapter *padapter, u32 addr, u8 sz, void *pdata)
-{
- struct io_queue *pio_queue = (struct io_queue*)padapter->pio_queue;
- struct intf_hdl *pintfhdl = &pio_queue->intf;
- struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
- u32 ftaddr = 0, res;
-
-_func_enter_;
-
-// RT_TRACE(_module_hci_ops_c_,_drv_err_,("sdio_read_int\n"));
-
- if ((_cvrt2ftaddr(addr, &ftaddr)) == _SUCCESS) {
- res = sdbus_read_reg_int(pintfpriv, ftaddr, sz, pdata);
- if (res != _SUCCESS) {
- RT_TRACE(_module_hci_ops_c_, _drv_emerg_, ("sdio_read_int fail!!!\n"));
- }
- } else {
- RT_TRACE(_module_hci_ops_c_, _drv_emerg_, (" sdio_read_int address translate error!!!\n"));
- }
-
-_func_exit_;
-}
-
-uint sdbus_write_reg_int(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata)
-{
- struct dvobj_priv *pdvobjpriv = (struct dvobj_priv*)pintfpriv->intf_dev;
- struct sdio_func *func = pdvobjpriv->func;
- int status;
-#ifdef CONFIG_IO_4B
- u32 addr_org = addr, addr_offset = 0;
- u32 cnt_org = cnt;
- void *pdata_org = pdata;
-#endif
-
-_func_enter_;
-
-#ifdef CONFIG_IO_4B
- addr_offset = addr % 4;
- if (addr_offset) {
- addr = addr - addr_offset;
- cnt = cnt + addr_offset;
- }
- if (cnt % 4)
- cnt = ((cnt + 4) >> 2) << 2;
- if (cnt != cnt_org) {
- pdata = rtw_malloc(cnt);
- if (pdata == NULL) {
- RT_TRACE(_module_hci_ops_os_c_, _drv_emerg_,
- ("SDIO_STATUS_NO_RESOURCES - rtw_malloc fail\n"));
- return _FAIL;
- }
- status = sdio_memcpy_fromio(func, pdata, addr&0x1FFFF, cnt);
- if (status) {
- RT_TRACE(_module_hci_ops_os_c_,_drv_emerg_,
- ("sdbus_write_reg_int read failed 0x%x\n "
- "***** Addr = %x *****\n"
- "***** Length = %d *****\n", status, addr, cnt));
- rtw_mfree(pdata, cnt);
- return _FAIL;
- }
- _rtw_memcpy(pdata + addr_offset, pdata_org, cnt_org);
- /* if data been modify between this read and write, may cause a problem */
- }
-#endif
- status = sdio_memcpy_toio(func, addr&0x1FFFF, pdata, cnt);
- if (status) {
- //error
- RT_TRACE(_module_hci_ops_os_c_, _drv_emerg_,
- ("sdbus_write_reg_int failed 0x%x\n"
- "***** Addr = %x *****\n"
- "***** Length = %d *****\n", status, addr, cnt));
-
- status = _FAIL;
- } else
- status = _SUCCESS;
-
-#ifdef CONFIG_IO_4B
- if (cnt != cnt_org)
- rtw_mfree(pdata, cnt);
-#endif
-
-_func_exit_;
-
- return status;
-}
-
-void sdio_write_int(_adapter *padapter, u32 addr, u32 val, u8 sz)
-{
- struct io_queue *pio_queue = (struct io_queue*)padapter->pio_queue;
- struct intf_hdl *pintfhdl = &pio_queue->intf;
- struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
-
- u32 ftaddr = 0, res;
-
-_func_enter_;
-
-// RT_TRACE(_module_hci_ops_c_,_drv_err_,("sdio_write_int\n"));
-
- val = cpu_to_le32(val);
-
- if ((_cvrt2ftaddr(addr, &ftaddr)) == _SUCCESS) {
- res = sdbus_write_reg_int(pintfpriv, ftaddr, sz, &val);
- if (res != _SUCCESS) {
- RT_TRACE(_module_hci_ops_c_, _drv_emerg_, ("sdio_write_int fail!!!\n"));
- }
- } else {
- RT_TRACE(_module_hci_ops_c_, _drv_emerg_, ("sdio_write_int address translate error!!!\n"));
- }
-
-_func_exit_;
-}
-
-int recvbuf2recvframe_s(_adapter *padapter, struct recv_buf *precvbuf)
-{
-// _irqL irql;
- u8 *pbuf;
-// u8 bsumbit = _FALSE;
- uint pkt_len, pkt_offset;
- int transfer_len;
- struct recv_stat *prxstat;
- u16 pkt_cnt, drvinfo_sz;
- _queue *pfree_recv_queue;
- union recv_frame *precvframe = NULL,*plast_recvframe = NULL;
- struct recv_priv *precvpriv = &padapter->recvpriv;
-// struct intf_hdl *pintfhdl = &padapter->pio_queue->intf;
-
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("+recvbuf2recvframe()\n"));
-
- pfree_recv_queue = &(precvpriv->free_recv_queue);
-
- pbuf = (u8*)precvbuf->pbuf;
-
- prxstat = (struct recv_stat *)pbuf;
-/* {
- u8 i;
- DBG_8192C("\n-----recvbuf-----\n");
- for (i=0;i<64;i=i+8) {
- DBG_8192C("0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x\n",pbuf[i],pbuf[i+1],pbuf[i+2],pbuf[i+3],pbuf[i+4],pbuf[i+5],pbuf[i+6],pbuf[i+7]);
- }
- DBG_8192C("\n-----recvbuf end-----\n");
- }*/
- transfer_len = precvbuf->len;
- precvbuf->ref_cnt = 1;
- do {
- precvframe = NULL;
- precvframe = rtw_alloc_recvframe(pfree_recv_queue);
- if (precvframe == NULL){
- RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe(), precvframe==NULL\n"));
- break;
- }
- if (plast_recvframe != NULL) {
- if (rtw_recv_entry(plast_recvframe) != _SUCCESS) {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe(), rtw_recv_entry(precvframe) != _SUCCESS\n"));
- }
- }
- prxstat = (struct recv_stat*)pbuf;
- pkt_len = le32_to_cpu(prxstat->rxdw0&0x00003fff); //pkt_len = prxstat->frame_length;
-
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("rxdesc: offsset0:0x%08x, offsset4:0x%08x, offsset8:0x%08x, offssetc:0x%08x\n",prxstat->rxdw0, prxstat->rxdw1, prxstat->rxdw2, prxstat->rxdw4));
-
- drvinfo_sz = le16_to_cpu((prxstat->rxdw0&0x000f0000)>>16);//uint 2^3 = 8 bytes
- drvinfo_sz = drvinfo_sz << 3;
- RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("pkt_len=%d[0x%x] drvinfo_sz=%d[0x%x]\n", pkt_len, pkt_len, drvinfo_sz, drvinfo_sz));
- precvframe->u.hdr.precvbuf = precvbuf;
- precvframe->u.hdr.adapter = padapter;
- rtw_init_recvframe(precvframe, precvpriv);
-
- precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pbuf;
- precvframe->u.hdr.rx_end = precvbuf->pend;
- update_recvframe_attrib_from_recvstat(&precvframe->u.hdr.attrib, prxstat);
- pkt_offset = pkt_len + drvinfo_sz + RXDESC_SIZE;
-
- recvframe_put(precvframe, pkt_len + drvinfo_sz + RXDESC_SIZE);
- recvframe_pull(precvframe, drvinfo_sz + RXDESC_SIZE);
-/* {
- u8 i;
- DBG_8192C("\n-----packet-----\n");
- for(i=0;i<32;i++){
- DBG_8192C("0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x:0x%.2x\n",precvframe->u.hdr.rx_data[i],precvframe->u.hdr.rx_data[i+1],precvframe->u.hdr.rx_data[i+2],precvframe->u.hdr.rx_data[i+3],precvframe->u.hdr.rx_data[i+4],precvframe->u.hdr.rx_data[i+5],precvframe->u.hdr.rx_data[i+6],precvframe->u.hdr.rx_data[i+7]);
- }
- DBG_8192C("\n-----packet end-----\n");
- }*/
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n precvframe->u.hdr.rx_head=%p precvframe->u.hdr.rx_data=%p precvframe->u.hdr.rx_tail=%p precvframe->u.hdr.rx_end=%p\n",precvframe->u.hdr.rx_head,precvframe->u.hdr.rx_data,precvframe->u.hdr.rx_tail,precvframe->u.hdr.rx_end));
-
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\npkt_offset=%d [1]\n",pkt_offset));
- pkt_offset = _RND512(pkt_offset);
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\npkt_offset=%d [2] transfer_len=%d\n",pkt_offset,transfer_len));
- transfer_len -= pkt_offset;
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n transfer_len=%d \n",transfer_len));
- pbuf += pkt_offset;
- if (transfer_len > 0)
- precvbuf->ref_cnt++;
- plast_recvframe = precvframe;
- precvframe = NULL;
- } while (transfer_len > 0);
-
- if (plast_recvframe != NULL) {
- if (rtw_recv_entry(plast_recvframe) != _SUCCESS) {
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe(), rtw_recv_entry(precvframe) != _SUCCESS\n"));
- }
- }
-
- dev_kfree_skb_any(precvbuf->pskb);
- precvbuf->pskb = NULL;
- return _SUCCESS;
-}
-
-u32 read_pkt2recvbuf(PADAPTER padapter, u32 rd_cnt, struct recv_buf *precvbuf)
-{
- struct recv_priv *precvpriv = &padapter->recvpriv;
- u32 skb_buf_sz;
- if (rd_cnt < 1600)
- skb_buf_sz = 1600;
- else
- skb_buf_sz = rd_cnt;
- RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n read_pkt2recvbuf------skb_buf_sz=%d rd_cnt=%d\n",skb_buf_sz,rd_cnt));
-// if (precvbuf->pskb != NULL) {
-// dev_kfree_skb_any(precvbuf->pskb );
-// }
-
- //alloc skb
- {
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) // http://www.mail-archive.com/netdev@vger.kernel.org/msg17214.html
- precvbuf->pskb = dev_alloc_skb(skb_buf_sz);
-#else
- precvbuf->pskb = netdev_alloc_skb(padapter->pnetdev, skb_buf_sz);
-#endif
- if (precvbuf->pskb == NULL) {
- RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("==================init_recvbuf(): alloc_skb fail!\n"));
- return _FAIL;
- }
-
- precvbuf->phead = precvbuf->pskb->head;
- precvbuf->pdata = precvbuf->pskb->data;
- precvbuf->ptail = precvbuf->pskb->tail;
- precvbuf->pend = precvbuf->pskb->end;
- precvbuf->pbuf = precvbuf->pskb->data;
- }
-// else {
-// RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("after init_recvbuf(): skb !=NULL!\n"));
-// }
-
- rtw_read_port(padapter, RTL8712_DMA_RX0FF, rd_cnt, (u8*)precvbuf);
- precvbuf->ptail = precvbuf->ptail + rd_cnt;
- precvbuf->len = rd_cnt;
- /*{
- u32 i;
- DBG_8192C("-----After read port[%d]-----\n",skb_buf_sz);
- for (i = 0; i < skb_buf_sz; i = i + 8) {
- DBG_8192C("0x%x:0x%x:0x%x:0x%x:0x%x:0x%x:0x%x:0x%x\n",precvbuf->pbuf[i],precvbuf->pbuf[i+1],precvbuf->pbuf[i+2],precvbuf->pbuf[i+3],precvbuf->pbuf[i+4],precvbuf->pbuf[i+5],precvbuf->pbuf[i+6],precvbuf->pbuf[i+7]);
- }
-
- DBG_8192C("-----------\n");
- }*/
-#if 1
- recvbuf2recvframe_s(padapter, precvbuf);
-#else
-{
- dev_kfree_skb_any(precvbuf->pskb);
- precvbuf->pskb = NULL;
- rtw_list_delete(&(precvbuf->list));
- rtw_list_insert_tail(&precvbuf->list, get_list_head(&precvpriv->free_recv_buf_queue));
- precvpriv->free_recv_buf_queue_cnt++;
-}
-#endif
-
- return _SUCCESS;
-}
-
-void sd_recv_rxfifo(PADAPTER padapter);
-#if 0
-void sd_recv_rxfifo(PADAPTER padapter)
-{
-// u8 *pdata, *ptail, *pfixed_tail,*pfixed_head,*pfixed_end,blk_shift_bit;
- u16 rx_blknum;
- u32 blk_sz, cnt;//,remain,tmp_cnt;
- struct recv_priv *precvpriv;
-// struct recv_stat *prxstat;
- //union recv_frame *precvframe, *ppreframe = NULL;
-// _queue *pfree_recv_queue, *ppending_recv_queue;
-// u8 tmp[2048];
- struct recv_buf *precvbuf;
- _list *precvbuf_head, *precvbuf_list;
- _irqL irql, rx_proc_irq;
-// uint pkt_len;
-// u16 drvinfo_sz;
-
- precvpriv = &padapter->recvpriv;
- blk_sz = padapter->dvobjpriv.block_transfer_len;
-// blk_shift_bit= (u8)padapter->dvobjpriv.blk_shiftbits;
-// pfree_recv_queue = &(precvpriv->free_recv_queue);
-// ppending_recv_queue = &(precvpriv->recv_pending_queue);
-
- rx_blknum = padapter->dvobjpriv.rxblknum;
-// _enter_hwio_critical(&padapter->dvobjpriv.rx_protect, &rx_proc_irq);
-// padapter->dvobjpriv.rxblknum=rtw_read16(padapter, SDIO_RX0_RDYBLK_NUM);
- sdio_read_int(padapter, SDIO_RX0_RDYBLK_NUM, 2, &padapter->dvobjpriv.rxblknum);
- if (rx_blknum>padapter->dvobjpriv.rxblknum) {
- cnt = (0x10000 - rx_blknum + padapter->dvobjpriv.rxblknum) * blk_sz;
- } else {
- cnt = (padapter->dvobjpriv.rxblknum-rx_blknum) * blk_sz;
- }
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("=====================sd_recv_rxfifo padapter->dvobjpriv.rxblknum=%x Blk_Num = %x cnt=%d",padapter->dvobjpriv.rxblknum, rx_blknum,cnt));
-
- if (cnt == 0) {
-// remain = 0;
- precvbuf = NULL;
- RT_TRACE(_module_hci_intfs_c_,_drv_info_,("---===============sd_recv_rxfifo padapter->dvobjpriv.rxblknum=0x%x padapter->dvobjpriv.rxblknum_rd=0x%x", padapter->dvobjpriv.rxblknum,padapter->dvobjpriv.rxblknum_rd));
- goto drop_pkt;
- }
-
- if(_rtw_queue_empty(&precvpriv->free_recv_buf_queue) == _TRUE)
- {
- precvbuf = NULL;
- RT_TRACE(_module_hci_intfs_c_,_drv_emerg_,("\n sd_recv_rxfifo : precvbuf= NULL precvpriv->free_recv_buf_queue_cnt=%d \n",precvpriv->free_recv_buf_queue_cnt));
- goto drop_pkt;
- }
- else
- {
- _enter_critical(&precvpriv->free_recv_buf_queue.lock, &irql);
- precvbuf_head = get_list_head(&precvpriv->free_recv_buf_queue);
- precvbuf_list = get_next(precvbuf_head);
- precvbuf = LIST_CONTAINOR(precvbuf_list, struct recv_buf, list);
- rtw_list_delete(&precvbuf->list);
- precvpriv->free_recv_buf_queue_cnt--;
-
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("\n sd_recv_rxfifo : precvbuf= 0x%p dequeue: free_recv_buf_queue_cnt=%d\n",precvbuf,precvpriv->free_recv_buf_queue_cnt));
- _exit_critical(&precvpriv->free_recv_buf_queue.lock, &irql);
- }
- read_pkt2recvbuf(padapter, cnt, precvbuf);
-
- return;
-
-drop_pkt:
-
- if (cnt >0) {
- do{
- if (cnt > MAX_RECVBUF_SZ) {
- rtw_read_port(padapter, 0x10380000, MAX_RECVBUF_SZ, (u8 *)precvpriv->recvbuf_drop);
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("=========sd_recv_rxfifo precvbuf= NULL no recvbuf cnt=%d tmp read %d",cnt,MAX_RECVBUF_SZ));
- cnt=cnt-MAX_RECVBUF_SZ;
- } else {
- rtw_read_port(padapter, 0x10380000, cnt, (u8 *)precvpriv->recvbuf_drop);
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("=========sd_recv_rxfifo precvbuf= NULL no recvbuf cnt=%d tmp read(@) %d",cnt,cnt));
- cnt=0;
- }
- } while(cnt > 0);
- }
-
- return;
-}
-#endif
-#if 0
-void sd_c2h_hdl(PADAPTER padapter)
-{
- u8 cmd_seq, pkt_num = 0;
- u16 tmp16, sz, cmd_len = 0;
- u32 rd_sz=0, cmd_sz = 0;//,ptr;
- struct evt_priv *pevtpriv = &padapter->evtpriv;
- pkt_num = rtw_read8(padapter, 0x102500BF);
-// RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("@ sd_c2h_hdl:pkt_num=%d",pkt_num));
-get_next:
-// ptr=rtw_read32(padapter,0x102500e8);
-// RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("@ sd_c2h_hdl:C2H fifo RDPTR=0x%x",ptr));
-// ptr=rtw_read32(padapter,0x102500ec);
-// RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("@ sd_c2h_hdl:C2H fifo WTPTR=0x%x",ptr));
-// if(pkt_num==0x0 ){
-// RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("@ sd_c2h_hdl:cmd_pkt num=0x%x!",pkt_num));
-// return;
-// }
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("@ sd_c2h_hdl:pkt_num=%d",pkt_num));
- //memset(pevtpriv->c2h_mem,0,512);
- rtw_read_port(padapter, RTL8712_DMA_C2HCMD, 512, pevtpriv->c2h_mem);
- cmd_sz = *(u16 *)&pevtpriv->c2h_mem[0];
- cmd_sz &= 0x3fff;
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("sd_c2h_hdl: cmd_sz=%d[0x%x]!",cmd_sz,cmd_sz));
- tmp16 = *(u16 *)&pevtpriv->c2h_mem[4];
- tmp16 &= 0x01ff;
- if (tmp16 !=0x1ff) {
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("sd_c2h_hdl: 0x1ff error[0x%x]!",pevtpriv->c2h_mem[4]));
- goto exit;
- }
- if((cmd_sz+24) >512){
- rtw_read_port(padapter, RTL8712_DMA_C2HCMD, (cmd_sz+24-512), pevtpriv->c2h_mem+512);
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("sd_c2h_hdl: read the second part of c2h event!"));
- }
- cmd_seq = pevtpriv->c2h_mem[27];
- cmd_seq &= 0x7f;
- if (pevtpriv->event_seq != cmd_seq) {
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("sd_c2h_hdl: pevtpriv->event_seq (%d) != c2hbuf seq(%d)",pevtpriv->event_seq,cmd_seq));
- } else {
- RT_TRACE(_module_hci_intfs_c_, _drv_notice_, ("sd_c2h_hdl: pevtpriv->event_seq (%d) == c2hbuf seq(%d)",pevtpriv->event_seq,cmd_seq));
- }
- cmd_len = *(u16 *)&pevtpriv->c2h_mem[0];
- cmd_len &= 0x3ff;
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("@sd_c2h_hdl: cmd_len=%d",cmd_len));
-// if(cmd_len){
-// memset(pevtpriv->c2h_mem+cmd_len,0,cmd_len);
-// rtw_read_port(padapter, RTL8712_DMA_C2HCMD, cmd_len, pevtpriv->c2h_mem+cmd_len);
-// }
-// pevtpriv->event_seq=pevtpriv->event_seq++;
-// if(pevtpriv->event_seq>127)
-// pevtpriv->event_seq=0;
-
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("sd_c2h_hdl:!"));
- rxcmd_event_hdl(padapter,pevtpriv->c2h_mem);
- if (pkt_num > 1) {
- pkt_num--;
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("sd_c2h_hdl: pkt_num=%d",pkt_num));
- goto get_next;
- }
-
-exit:
-
- return;
-}
-#endif
-void update_free_ffsz_int(_adapter *padapter )
-{
- struct xmit_priv *pxmitpriv=&padapter->xmitpriv;
- RT_TRACE(_module_hci_ops_c_,_drv_err_,("\n====(before)=padapter->xmitpriv.public_pgsz=0x%x====update_free_ffsz: free_pg=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x:0x%x:0x%x \n",
- padapter->xmitpriv.public_pgsz,
- pxmitpriv->free_pg[0],pxmitpriv->free_pg[1],pxmitpriv->free_pg[2],pxmitpriv->free_pg[3],
- pxmitpriv->free_pg[4],pxmitpriv->free_pg[5],pxmitpriv->free_pg[6],pxmitpriv->free_pg[7]));
-// rtw_read_mem(padapter,SDIO_BCNQ_FREEPG,8,pxmitpriv->free_pg);
- sdio_read_int(padapter, SDIO_BCNQ_FREEPG, 8, pxmitpriv->free_pg);
- padapter->xmitpriv.public_pgsz = pxmitpriv->free_pg[0];
- if (pxmitpriv->public_pgsz > pxmitpriv->init_pgsz) {
- pxmitpriv->init_pgsz = pxmitpriv->public_pgsz;
- }
-
- {
- u8 diff;
- if (pxmitpriv->public_pgsz > (pxmitpriv->init_pgsz - pxmitpriv->used_pgsz)) {
- RT_TRACE(_module_hci_ops_c_,_drv_err_,("\n====(0)=====update_free_ffsz: pxmitpriv->public_pgsz=0x%x pxmitpriv->init_pgsz=0x%x pxmitpriv->used_pgsz=0x%x \n",pxmitpriv->public_pgsz ,pxmitpriv->init_pgsz, pxmitpriv->used_pgsz));
- diff = pxmitpriv->public_pgsz - (pxmitpriv->init_pgsz - pxmitpriv->used_pgsz);
- pxmitpriv->used_pgsz = pxmitpriv->used_pgsz - diff;
-// pxmitpriv->required_pgsz = pxmitpriv->required_pgsz - diff;
- RT_TRACE(_module_hci_ops_c_,_drv_err_,("\n====(1)=====update_free_ffsz: pxmitpriv->public_pgsz =0x%x diff=0x%x pxmitpriv->used_pgsz=0x%x pxmitpriv->required_pgsz=0x%x\n",pxmitpriv->public_pgsz,diff,pxmitpriv->used_pgsz,pxmitpriv->required_pgsz) );
- } else {
-
- }
- }
-
- RT_TRACE(_module_hci_ops_c_,_drv_err_,("\n====(after)=====update_free_ffsz: free_pg=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x:0x%x:0x%x \n",
- pxmitpriv->free_pg[0],pxmitpriv->free_pg[1],pxmitpriv->free_pg[2],pxmitpriv->free_pg[3],
- pxmitpriv->free_pg[4],pxmitpriv->free_pg[5],pxmitpriv->free_pg[6],pxmitpriv->free_pg[7]));
-
- return;
-}
-
-void sd_int_dpc(PADAPTER padapter);
-#if 0
-void sd_int_dpc(PADAPTER padapter)
-{
- uint tasks= (padapter->IsrContent /*& padapter->ImrContent*/);
-// rtw_write16(padapter,SDIO_HIMR,0);
-
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,(" sd_int_dpc[0x%x] ",padapter->IsrContent));
-
- if ((tasks & _VOQ_AVAL_IND) || (tasks & _VIQ_AVAL_IND) || (tasks & _BEQ_AVAL_IND) || (tasks & _BKQ_AVAL_IND) || (tasks & _BMCQ_AVAL_IND)) {
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("==============INT : _TXDONE"));
- update_free_ffsz_int(padapter);
- } else {
- if (((padapter->xmitpriv.init_pgsz - padapter->xmitpriv.used_pgsz) > 0 && (padapter->xmitpriv.init_pgsz - padapter->xmitpriv.used_pgsz) < 0x2f) || padapter->xmitpriv.required_pgsz > 0) {
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("==============padapter->xmitpriv.public_pgsz[0x%x] <30 ",padapter->xmitpriv.public_pgsz));
- update_free_ffsz_int(padapter);
- }
- }
-
- if(tasks & _C2HCMD)
- {
-// RT_TRACE(_module_hci_intfs_c_,_drv_err_,("======C2H_CMD========"));
- padapter->IsrContent ^= _C2HCMD;
- sd_c2h_hdl(padapter);
-// RT_TRACE(_module_hci_intfs_c_,_drv_err_,("======C2H_CMD[end]========"));
- }
-
- if(tasks & _RXDONE)
- {
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("==============INT : _RXDONE"));
- padapter->IsrContent ^= _RXDONE;
- sd_recv_rxfifo(padapter);
- }
-
-}
-#endif
-void sd_sync_int_hdl(struct sdio_func *func)
-{
- struct dvobj_priv *psdpriv = sdio_get_drvdata(func);
- _adapter *padapter = (_adapter*)psdpriv->padapter;
- u16 tmp16;
-// uint tasks;
-
-_func_enter_;
-
- if ((padapter->bDriverStopped ==_TRUE) || (padapter->bSurpriseRemoved == _TRUE)) {
- goto exit;
- }
-
- //padapter->IsrContent=rtw_read16(padapter, SDIO_HISR);
- sdio_read_int(padapter, SDIO_HISR, 2, &psdpriv->sdio_hisr);
-
- if (psdpriv->sdio_hisr & psdpriv->sdio_himr)
- {
- sdio_write_int(padapter, SDIO_HIMR, 0, 2);
- sd_int_dpc(padapter);
- sdio_write_int(padapter, SDIO_HIMR, psdpriv->sdio_himr, 2);
-
- sdio_read_int(padapter, SDIO_HIMR, 2, &tmp16);
- if (tmp16 != psdpriv->sdio_himr)
- sdio_write_int(padapter, SDIO_HIMR, psdpriv->sdio_himr, 2);
- } else {
- RT_TRACE(_module_hci_intfs_c_, _drv_info_, ("<=========== sd_sync_int_hdl(): not our INT"));
- }
-exit:
-
-_func_exit_;
-
- return;
-}
-
-static int r871xs_drv_init(struct sdio_func *func, const struct sdio_device_id *id)
-{
- _adapter *padapter = NULL;
- struct dvobj_priv *pdvobjpriv;
- struct net_device *pnetdev;
-
- RT_TRACE(_module_hci_intfs_c_,_drv_alert_,("+871x - drv_init:id=0x%p func->vendor=0x%x func->device=0x%x\n",id,func->vendor,func->device));
-
- //step 1.
- pnetdev = rtw_init_netdev(NULL);
- if (!pnetdev)
- goto error;
-
- padapter = rtw_netdev_priv(pnetdev);
- pdvobjpriv = &padapter->dvobjpriv;
- pdvobjpriv->padapter = padapter;
- pdvobjpriv->func = func;
- sdio_set_drvdata(func, pdvobjpriv);
- SET_NETDEV_DEV(pnetdev, &func->dev);
-
-
- //step 2.
- if (alloc_io_queue(padapter) == _FAIL) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Can't init io_reqs\n"));
- goto error;
- }
-
-
-#if 0 //temp remove
- //step 3.
- if (loadparam(padapter, pnetdev) == _FAIL) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Read Parameter Failed!\n"));
- goto error;
- }
-#endif
-
- //step 4.
- //dvobj_init(padapter);
- padapter->dvobj_init = &sd_dvobj_init;
- padapter->dvobj_deinit = &sd_dvobj_deinit;
- padapter->halpriv.hal_bus_init = &sd_hal_bus_init;
- padapter->halpriv.hal_bus_deinit = &sd_hal_bus_deinit;
-
- if (padapter->dvobj_init == NULL) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("\n Initialize dvobjpriv.dvobj_init error!!!\n"));
- goto error;
- }
-
- if (padapter->dvobj_init(padapter) == _FAIL) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("\n initialize device object priv Failed!\n"));
- goto error;
- }
-
-
- //step 6.
- if (rtw_init_drv_sw(padapter) == _FAIL) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize driver software resource Failed!\n"));
- goto error;
- }
-
-#if 1
-{
- //step 7.
- u8 mac[6];
- mac[0]=0x00;
- mac[1]=0xe0;
- mac[2]=0x4c;
- mac[3]=0x87;
- mac[4]=0x66;
- mac[5]=0x55;
-
- _rtw_memcpy(pnetdev->dev_addr, mac/*padapter->eeprompriv.mac_addr*/, ETH_ALEN);
- RT_TRACE(_module_hci_intfs_c_,_drv_info_,("pnetdev->dev_addr=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x\n",pnetdev->dev_addr[0],pnetdev->dev_addr[1],pnetdev->dev_addr[2],pnetdev->dev_addr[3],pnetdev->dev_addr[4],pnetdev->dev_addr[5]));
-}
-#endif
- //step 8.
- /* Tell the network stack we exist */
- if (register_netdev(pnetdev) != 0) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("register_netdev() failed\n"));
- goto error;
- }
- RT_TRACE(_module_hci_intfs_c_,_drv_info_,("register_netdev() success\n"));
- RT_TRACE(_module_hci_intfs_c_,_drv_notice_,("-drv_init - Adapter->bDriverStopped=%d, Adapter->bSurpriseRemoved=%d\n",padapter->bDriverStopped, padapter->bSurpriseRemoved));
- RT_TRACE(_module_hci_intfs_c_,_drv_info_,("-871xs_drv - drv_init, success!\n"));
-
- return 0;
-
-error:
-
- if (padapter->dvobj_deinit == NULL) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("\n Initialize dvobjpriv.dvobj_deinit error!!!\n"));
- } else {
- padapter->dvobj_deinit(padapter);
- }
-
- if (pnetdev) {
- unregister_netdev(pnetdev);
- rtw_free_netdev(pnetdev);
- }
-
- RT_TRACE(_module_hci_intfs_c_, _drv_emerg_, ("-871x_sdio - drv_init, fail!\n"));
-
- return -1;
-}
-
-void rtl871x_intf_stop(_adapter *padapter)
-{
- // Disable interrupt, also done in rtl8712_hal_deinit
-// rtw_write16(padapter, SDIO_HIMR, 0x00);
-}
-
-void r871x_dev_unload(_adapter *padapter)
-{
- struct net_device *pnetdev = (struct net_device*)padapter->pnetdev;
-
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+r871x_dev_unload\n"));
-
- if (padapter->bup == _TRUE)
- {
-#if 0
- //s1.
- if (pnetdev) {
- netif_carrier_off(pnetdev);
- netif_stop_queue(pnetdev);
- }
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("@ r871x_dev_unload:complelte s1!\n"));
-
- //s2.
- // indicate-disconnect if necssary (free all assoc-resources)
- // dis-assoc from assoc_sta (optional)
- rtw_indicate_disconnect(padapter);
- rtw_free_network_queue(padapter, _TRUE);
-#endif
-
- padapter->bDriverStopped = _TRUE;
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("@ r871x_dev_unload:complete s2!\n"));
-
- //s3.
- rtl871x_intf_stop(padapter);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("@ r871x_dev_unload:complete s3!\n"));
-
- //s4.
- rtw_stop_drv_threads(padapter);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("@ r871x_dev_unload:complete s4!\n"));
-
- //s5.
- if (padapter->bSurpriseRemoved == _FALSE) {
- rtl871x_hal_deinit(padapter);
- padapter->bSurpriseRemoved = _TRUE;
- }
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("@ r871x_dev_unload:complelt s5!\n"));
-
-
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("@ r871x_dev_unload:complete s6!\n"));
-
- padapter->bup = _FALSE;
- }
- else {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("r871x_dev_unload():padapter->bup == _FALSE\n" ));
- }
-
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-r871x_dev_unload\n"));
-}
-
-static void r8712s_dev_remove(struct sdio_func *func)
-{
- _adapter *padapter = (_adapter*) (((struct dvobj_priv*)sdio_get_drvdata(func))->padapter);
- struct net_device *pnetdev = (struct net_device *)padapter->pnetdev;
-
-_func_exit_;
-
- if (padapter)
- {
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+dev_remove()\n"));
-
-// padapter->bSurpriseRemoved = _TRUE;
-
- if (pnetdev)
- unregister_netdev(pnetdev); //will call netdev_close()
-
- rtw_cancel_all_timer(padapter);
-
- r871x_dev_unload(padapter);
- //s6.
- if (padapter->dvobj_deinit) {
- padapter->dvobj_deinit(padapter); // call sd_dvobj_deinit()
- } else {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize hcipriv.hci_priv_init error!!!\n"));
- }
-
- rtw_free_drv_sw(padapter);
- //after rtw_free_drv_sw(), padapter has beed freed, don't refer to it.
-
- sdio_claim_host(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in dev_remove():sdio_claim_host !\n"));
- sdio_release_irq(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in dev_remove():sdio_release_irq !\n"));
- sdio_disable_func(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in dev_remove():sdio_disable_func !\n"));
- sdio_release_host(func);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" in dev_remove():sdio_release_host !\n"));
- }
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-dev_remove()\n"));
-
-_func_exit_;
-
- return;
-}
-
-static drv_priv drvpriv = {
- .r871xs_drv.probe = r871xs_drv_init,
- .r871xs_drv.remove = r8712s_dev_remove,
- .r871xs_drv.name = "rtl871x_sdio_wlan",
- .r871xs_drv.id_table = sdio_ids,
-};
-
-
-static int __init r8712s_drv_entry(void)
-{
- int status;
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+8712s_sdio - drv_entry\n"));
- status = sdio_register_driver(&drvpriv.r871xs_drv);
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-8712_sdio - drv_entry, status=%d\n", status));
-
- return status;
-}
-
-static void __exit r8712s_drv_halt(void)
-{
- int ret;
-
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+8712_sdio - drv_halt\n"));
- sdio_unregister_driver(&drvpriv.r871xs_drv); // call r8712s_dev_remove()
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-8712_sdio - drv_halt\n"));
-
-}
-
-
-module_init(r8712s_drv_entry);
-module_exit(r8712s_drv_halt);
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c
index 2e54e74..4c1089a 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-
-******************************************************************************/
+ ******************************************************************************/
#define _HCI_INTF_C_
#include <drv_conf.h>
@@ -25,7 +24,7 @@
#include <drv_types.h>
#include <recv_osdep.h>
#include <xmit_osdep.h>
-#include <hal_init.h>
+#include <hal_intf.h>
#include <rtw_version.h>
#ifndef CONFIG_USB_HCI
@@ -62,7 +61,7 @@ int ui_pid[3] = {0, 0, 0};
extern int pm_netdev_open(struct net_device *pnetdev,u8 bnormal);
static int rtw_suspend(struct usb_interface *intf, pm_message_t message);
static int rtw_resume(struct usb_interface *intf);
-int rtw_resume_process(struct usb_interface *pusb_intf);
+int rtw_resume_process(_adapter *padapter);
static int rtw_drv_init(struct usb_interface *pusb_intf,const struct usb_device_id *pdid);
@@ -70,117 +69,142 @@ static void rtw_dev_remove(struct usb_interface *pusb_intf);
#define USB_VENDER_ID_REALTEK 0x0BDA
-//DID_USB_v82_20110808
-static struct usb_device_id rtw_usb_id_tbl[] ={
-#ifdef CONFIG_RTL8192C
- /*=== Realtek demoboard ===*/
- {USB_DEVICE(0x0BDA, 0x8191)},//Default ID
-
- /****** 8188CUS ********/
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8176)},//8188cu 1*1 dongole
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8170)},//8188CE-VAU USB minCard
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817E)},//8188CE-VAU USB minCard
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817A)},//8188cu Slim Solo
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817B)},//8188cu Slim Combo
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817D)},//8188RU High-power USB Dongle
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8754)},//8188 Combo for BC4
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817F)},//8188RU
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x818A)},//RTL8188CUS-VL
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x018A)},//RTL8188CTV
-
- /****** 8192CUS ********/
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8177)},//8191cu 1*2
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8178)},//8192cu 2*2
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817C)},//8192CE-VAU USB minCard
-
-
- /*=== Customer ID ===*/
- /****** 8188CUS Dongle ********/
- {USB_DEVICE(0x2019, 0xED17)},//PCI - Edimax
- {USB_DEVICE(0x0DF6, 0x0052)},//Sitecom - Edimax
- {USB_DEVICE(0x7392, 0x7811)},//Edimax - Edimax
- {USB_DEVICE(0x07B8, 0x8189)},//Abocom - Abocom
- {USB_DEVICE(0x0EB0, 0x9071)},//NO Brand - Etop
- {USB_DEVICE(0x06F8, 0xE033)},//Hercules - Edimax
- {USB_DEVICE(0x103C, 0x1629)},//HP - Lite-On ,8188CUS Slim Combo
- {USB_DEVICE(0x2001, 0x3308)},//D-Link - Alpha
- {USB_DEVICE(0x050D, 0x1102)},//Belkin - Edimax
- {USB_DEVICE(0x2019, 0xAB2A)},//Planex - Abocom
- {USB_DEVICE(0x20F4, 0x648B)},//TRENDnet - Cameo
- {USB_DEVICE(0x4855, 0x0090)},// - Feixun
- {USB_DEVICE(0x13D3, 0x3357)},// - AzureWave
- {USB_DEVICE(0x0DF6, 0x005C)},//Sitecom - Edimax
- {USB_DEVICE(0x0BDA, 0x5088)},//Thinkware - CC&C
- {USB_DEVICE(0x4856, 0x0091)},//NetweeN - Feixun
- {USB_DEVICE(0x2019, 0x4902)},//Planex - Etop
- {USB_DEVICE(0x2019, 0xAB2E)},//SW-WF02-AD15 -Abocom
- {USB_DEVICE(0x0846, 0x9041)},//Netgear
-
- /****** 8188 RU ********/
- {USB_DEVICE(0x0BDA, 0x317F)},//Netcore,Netcore
-
- /****** 8188CE-VAU ********/
- {USB_DEVICE(0x13D3, 0x3359)},// - Azwave
- {USB_DEVICE(0x13D3, 0x3358)},// - Azwave
-
- /****** 8188CUS Slim Solo********/
- {USB_DEVICE(0x04F2, 0xAFF7)},//XAVI - XAVI
- {USB_DEVICE(0x04F2, 0xAFF9)},//XAVI - XAVI
- {USB_DEVICE(0x04F2, 0xAFFA)},//XAVI - XAVI
-
- /****** 8188CUS Slim Combo ********/
- {USB_DEVICE(0x04F2, 0xAFF8)},//XAVI - XAVI
- {USB_DEVICE(0x04F2, 0xAFFB)},//XAVI - XAVI
- {USB_DEVICE(0x04F2, 0xAFFC)},//XAVI - XAVI
- {USB_DEVICE(0x2019, 0x1201)},//Planex - Vencer
-
- /****** 8192CUS Dongle ********/
- {USB_DEVICE(0x2001, 0x3307)},//D-Link - Cameo
- {USB_DEVICE(0x2001, 0x330A)},//D-Link - Alpha
- {USB_DEVICE(0x2001, 0x3309)},//D-Link - Alpha
- {USB_DEVICE(0x2001, 0x330D)},//D-Link - Alpha(?)
- {USB_DEVICE(0x0586, 0x341F)},//Zyxel - Abocom
- {USB_DEVICE(0x7392, 0x7822)},//Edimax - Edimax
- {USB_DEVICE(0x2019, 0xAB2B)},//Planex - Abocom
- {USB_DEVICE(0x07B8, 0x8178)},//Abocom - Abocom
- {USB_DEVICE(0x07AA, 0x0056)},//ATKK - Gemtek
- {USB_DEVICE(0x4855, 0x0091)},// - Feixun
- {USB_DEVICE(0x2001, 0x3307)},//D-Link-Cameo
- {USB_DEVICE(0x050D, 0x2102)},//Belkin - Sercomm
- {USB_DEVICE(0x050D, 0x2103)},//Belkin - Edimax
- {USB_DEVICE(0x20F4, 0x624D)},//TRENDnet
- {USB_DEVICE(0x0DF6, 0x0061)},//Sitecom - Edimax
- {USB_DEVICE(0x0B05, 0x17AB)},//ASUS - Edimax
- {USB_DEVICE(0x0846, 0x9021)},//Netgear - Sercomm
- {USB_DEVICE(0x0E66, 0x0019)},//Hawking,Edimax
-
- /****** 8192CE-VAU ********/
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8186)},//Intel-Xavi( Azwave)
+/* DID_USB_v915_20121224 */
+#define RTL8192C_USB_IDS \
+ /*=== Realtek demoboard ===*/ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8191)},/* Default ID */ \
+ /****** 8188CUS ********/ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8176)},/* 8188cu 1*1 dongole */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8170)},/* 8188CE-VAU USB minCard */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817E)},/* 8188CE-VAU USB minCard */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817A)},/* 8188cu Slim Solo */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817B)},/* 8188cu Slim Combo */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817D)},/* 8188RU High-power USB Dongle */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8754)},/* 8188 Combo for BC4 */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817F)},/* 8188RU */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x818A)},/* RTL8188CUS-VL */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x018A)},/* RTL8188CTV */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x17C0)}, /* RTK demoboard - USB-N10E */ \
+ /****** 8192CUS ********/ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8177)},/* 8191cu 1*2 */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8178)},/* 8192cu 2*2 */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817C)},/* 8192CE-VAU USB minCard */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8191)},/* 8192CU 2*2 */ \
+ {USB_DEVICE(0x1058, 0x0631)},/* Alpha, 8192CU */ \
+ /*=== Customer ID ===*/ \
+ /****** 8188CUS Dongle ********/ \
+ {USB_DEVICE(0x2019, 0xED17)},/* PCI - Edimax */ \
+ {USB_DEVICE(0x0DF6, 0x0052)},/* Sitecom - Edimax */ \
+ {USB_DEVICE(0x7392, 0x7811)},/* Edimax - Edimax */ \
+ {USB_DEVICE(0x07B8, 0x8189)},/* Abocom - Abocom */ \
+ {USB_DEVICE(0x0EB0, 0x9071)},/* NO Brand - Etop */ \
+ {USB_DEVICE(0x06F8, 0xE033)},/* Hercules - Edimax */ \
+ {USB_DEVICE(0x103C, 0x1629)},/* HP - Lite-On ,8188CUS Slim Combo */ \
+ {USB_DEVICE(0x2001, 0x3308)},/* D-Link - Alpha */ \
+ {USB_DEVICE(0x050D, 0x1102)},/* Belkin - Edimax */ \
+ {USB_DEVICE(0x2019, 0xAB2A)},/* Planex - Abocom */ \
+ {USB_DEVICE(0x20F4, 0x648B)},/* TRENDnet - Cameo */ \
+ {USB_DEVICE(0x4855, 0x0090)},/* - Feixun */ \
+ {USB_DEVICE(0x13D3, 0x3357)},/* - AzureWave */ \
+ {USB_DEVICE(0x0DF6, 0x005C)},/* Sitecom - Edimax */ \
+ {USB_DEVICE(0x0BDA, 0x5088)},/* Thinkware - CC&C */ \
+ {USB_DEVICE(0x4856, 0x0091)},/* NetweeN - Feixun */ \
+ {USB_DEVICE(0x0846, 0x9041)}, /* Netgear - Cameo */ \
+ {USB_DEVICE(0x2019, 0x4902)},/* Planex - Etop */ \
+ {USB_DEVICE(0x2019, 0xAB2E)},/* SW-WF02-AD15 -Abocom */ \
+ {USB_DEVICE(0x2001, 0x330B)}, /* D-LINK - T&W */ \
+ {USB_DEVICE(0xCDAB, 0x8010)}, /* - - compare */ \
+ {USB_DEVICE(0x0B05, 0x17BA)}, /* ASUS - Edimax */ \
+ {USB_DEVICE(0x0BDA, 0x1E1E)}, /* Intel - - */ \
+ {USB_DEVICE(0x04BB, 0x094c)}, /* I-O DATA - Edimax */ \
+ /****** 8188CTV ********/ \
+ {USB_DEVICE(0xCDAB, 0x8011)}, /* - - compare */ \
+ {USB_DEVICE(0x0BDA, 0x0A8A)}, /* Sony - Foxconn */ \
+ /****** 8188 RU ********/ \
+ {USB_DEVICE(0x0BDA, 0x317F)},/* Netcore,Netcore */ \
+ /****** 8188CE-VAU ********/ \
+ {USB_DEVICE(0x13D3, 0x3359)},/* - Azwave */ \
+ {USB_DEVICE(0x13D3, 0x3358)},/* - Azwave */ \
+ /****** 8188CUS Slim Solo********/ \
+ {USB_DEVICE(0x04F2, 0xAFF7)},/* XAVI - XAVI */ \
+ {USB_DEVICE(0x04F2, 0xAFF9)},/* XAVI - XAVI */ \
+ {USB_DEVICE(0x04F2, 0xAFFA)},/* XAVI - XAVI */ \
+ /****** 8188CUS Slim Combo ********/ \
+ {USB_DEVICE(0x04F2, 0xAFF8)},/* XAVI - XAVI */ \
+ {USB_DEVICE(0x04F2, 0xAFFB)},/* XAVI - XAVI */ \
+ {USB_DEVICE(0x04F2, 0xAFFC)},/* XAVI - XAVI */ \
+ {USB_DEVICE(0x2019, 0x1201)},/* Planex - Vencer */ \
+ /****** 8192CUS Dongle ********/ \
+ {USB_DEVICE(0x2001, 0x3307)},/* D-Link - Cameo */ \
+ {USB_DEVICE(0x2001, 0x330A)},/* D-Link - Alpha */ \
+ {USB_DEVICE(0x2001, 0x3309)},/* D-Link - Alpha */ \
+ {USB_DEVICE(0x0586, 0x341F)},/* Zyxel - Abocom */ \
+ {USB_DEVICE(0x7392, 0x7822)},/* Edimax - Edimax */ \
+ {USB_DEVICE(0x2019, 0xAB2B)},/* Planex - Abocom */ \
+ {USB_DEVICE(0x07B8, 0x8178)},/* Abocom - Abocom */ \
+ {USB_DEVICE(0x07AA, 0x0056)},/* ATKK - Gemtek */ \
+ {USB_DEVICE(0x4855, 0x0091)},/* - Feixun */ \
+ {USB_DEVICE(0x050D, 0x2102)},/* Belkin - Sercomm */ \
+ {USB_DEVICE(0x050D, 0x2103)},/* Belkin - Edimax */ \
+ {USB_DEVICE(0x20F4, 0x624D)},/* TRENDnet */ \
+ {USB_DEVICE(0x0DF6, 0x0061)},/* Sitecom - Edimax */ \
+ {USB_DEVICE(0x0B05, 0x17AB)},/* ASUS - Edimax */ \
+ {USB_DEVICE(0x0846, 0x9021)},/* Netgear - Sercomm */ \
+ {USB_DEVICE(0x0846, 0xF001)}, /* Netgear - Sercomm */ \
+ {USB_DEVICE(0x0E66, 0x0019)},/* Hawking,Edimax */ \
+ {USB_DEVICE(0x0E66, 0x0020)}, /* Hawking - Edimax */ \
+ {USB_DEVICE(0x050D, 0x1004)}, /* Belkin - Edimax */ \
+ {USB_DEVICE(0x0BDA, 0x2E2E)}, /* Intel - - */ \
+ {USB_DEVICE(0x2357, 0x0100)}, /* TP-Link - TP-Link */ \
+ {USB_DEVICE(0x06F8, 0xE035)}, /* Hercules - Edimax */ \
+ {USB_DEVICE(0x04BB, 0x0950)}, /* IO-DATA - Edimax */ \
+ {USB_DEVICE(0x0DF6, 0x0070)}, /* Sitecom - Edimax */ \
+ {USB_DEVICE(0x0789, 0x016D)}, /* LOGITEC - Edimax */ \
+ /****** 8192CE-VAU ********/ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8186)},/* Intel-Xavi( Azwave) */
+
+#define RTL8192D_USB_IDS \
+ /*=== Realtek demoboard ===*/ \
+ /****** 8192DU ********/ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8193)},/* 8192DU-VC */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8194)},/* 8192DU-VS */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8111)},/* Realtek 5G dongle for WiFi Display */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0193)},/* 8192DE-VAU */ \
+ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8171)},/* 8192DU-VC */ \
+ /*=== Customer ID ===*/ \
+ /****** 8192DU-VC ********/ \
+ {USB_DEVICE(0x2019, 0xAB2C)},/* PCI - Abocm */ \
+ {USB_DEVICE(0x2019, 0x4903)},/* PCI - ETOP */ \
+ {USB_DEVICE(0x2019, 0x4904)},/* PCI - ETOP */ \
+ {USB_DEVICE(0x07B8, 0x8193)},/* Abocom - Abocom */ \
+ /****** 8192DU-VS ********/ \
+ {USB_DEVICE(0x20F4, 0x664B)}, /* TRENDnet - Cameo */ \
+ {USB_DEVICE(0x04DD, 0x954F)}, /* Sharp */ \
+ {USB_DEVICE(0x04DD, 0x96A6)}, /* Sharp */ \
+ {USB_DEVICE(0x050D, 0x110A)}, /* Belkin - Edimax */ \
+ {USB_DEVICE(0x050D, 0x1105)}, /* Belkin - Edimax */ \
+ {USB_DEVICE(0x050D, 0x120A)}, /* Belkin - Edimax */ \
+ {USB_DEVICE(0x1668, 0x8102)}, /* - */ \
+ {USB_DEVICE(0x0BDA, 0xE194)}, /* - Edimax */ \
+ /****** 8192DU-WiFi Display Dongle ********/ \
+ {USB_DEVICE(0x2019, 0xAB2D)},/* Planex - Abocom ,5G dongle for WiFi Display */
+
+#ifndef CONFIG_RTL8192C
+ #undef RTL8192C_USB_IDS
+ #define RTL8192C_USB_IDS
#endif
-#ifdef CONFIG_RTL8192D
- /*=== Realtek demoboard ===*/
- /****** 8192DU ********/
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8193)},//8192DU-VC
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8194)},//8192DU-VS
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8111)},//Realtek 5G dongle for WiFi Display
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0193)},//8192DE-VAU
- {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8171)},//8192DU-VC
-
- /*=== Customer ID ===*/
- /****** 8192DU-VC ********/
- {USB_DEVICE(0x2019, 0xAB2C)},//PCI - Abocm
- {USB_DEVICE(0x2019, 0x4903)},//PCI - ETOP
- {USB_DEVICE(0x2019, 0x4904)},//PCI - ETOP
- {USB_DEVICE(0x07B8, 0x8193)},//Abocom - Abocom
-
- /****** 8192DU-VS ********/
- {USB_DEVICE(0x20F4, 0x664B)},//TRENDnet
-
- /****** 8192DU-WiFi Display Dongle ********/
- {USB_DEVICE(0x2019, 0xAB2D)},//Planex - Abocom ,5G dongle for WiFi Display
+#ifndef CONFIG_RTL8192D
+ #undef RTL8192D_USB_IDS
+ #define RTL8192D_USB_IDS
#endif
+
+
+static struct usb_device_id rtw_usb_id_tbl[] ={
+ RTL8192C_USB_IDS
+ RTL8192D_USB_IDS
{} /* Terminating entry */
};
+MODULE_DEVICE_TABLE(usb, rtw_usb_id_tbl);
int const rtw_usb_id_len = sizeof(rtw_usb_id_tbl) / sizeof(struct usb_device_id);
@@ -189,7 +213,7 @@ static struct specific_device_id specific_device_id_tbl[] = {
{.idVendor=USB_VENDER_ID_REALTEK, .idProduct=0x817E, .flags=SPEC_DEV_ID_DISABLE_HT},//8188CE-VAU USB minCard (b/g mode only)
{.idVendor=0x0b05, .idProduct=0x1791, .flags=SPEC_DEV_ID_DISABLE_HT},
{.idVendor=0x13D3, .idProduct=0x3311, .flags=SPEC_DEV_ID_DISABLE_HT},
- {.idVendor=0x13D3, .idProduct=0x3359, .flags=SPEC_DEV_ID_DISABLE_HT},//Russian customer -Azwave (8188CE-VAU g mode)
+ {.idVendor=0x13D3, .idProduct=0x3359, .flags=SPEC_DEV_ID_DISABLE_HT},//Russian customer -Azwave (8188CE-VAU g mode)
#ifdef RTK_DMP_PLATFORM
{.idVendor=USB_VENDER_ID_REALTEK, .idProduct=0x8111, .flags=SPEC_DEV_ID_ASSIGN_IFNAME}, // Realtek 5G dongle for WiFi Display
{.idVendor=0x2019, .idProduct=0xAB2D, .flags=SPEC_DEV_ID_ASSIGN_IFNAME}, // PCI-Abocom 5G dongle for WiFi Display
@@ -197,31 +221,86 @@ static struct specific_device_id specific_device_id_tbl[] = {
{}
};
-typedef struct _driver_priv{
-
- struct usb_driver rtw_usb_drv;
+struct rtw_usb_drv {
+ struct usb_driver usbdrv;
int drv_registered;
+};
-}drv_priv, *pdrv_priv;
+static void rtw_dev_shutdown(struct device *dev)
+{
+ struct usb_interface *usb_intf = container_of(dev, struct usb_interface, dev);
+ struct dvobj_priv *dvobj = usb_get_intfdata(usb_intf);
+ _adapter *adapter = dvobj->if1;
+ int i;
+ DBG_871X("%s\n", __func__);
-static drv_priv drvpriv = {
- .rtw_usb_drv.name = (char*)DRV_NAME,
- .rtw_usb_drv.probe = rtw_drv_init,
- .rtw_usb_drv.disconnect = rtw_dev_remove,
- .rtw_usb_drv.id_table = rtw_usb_id_tbl,
- .rtw_usb_drv.suspend = rtw_suspend,
- .rtw_usb_drv.resume = rtw_resume,
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 22))
- .rtw_usb_drv.reset_resume = rtw_resume,
-#endif
-#ifdef CONFIG_AUTOSUSPEND
- .rtw_usb_drv.supports_autosuspend = 1,
-#endif
+ for (i = 0; i<dvobj->iface_nums; i++) {
+ adapter = dvobj->padapters[i];
+ adapter->bSurpriseRemoved = _TRUE;
+ }
+
+ ATOMIC_SET(&dvobj->continual_urb_error, MAX_CONTINUAL_URB_ERR+1);
+}
+
+#ifdef CONFIG_RTL8192C
+static struct usb_device_id rtl8192c_usb_id_tbl[] ={
+ RTL8192C_USB_IDS
+ {} /* Terminating entry */
};
-MODULE_DEVICE_TABLE(usb, rtw_usb_id_tbl);
+struct rtw_usb_drv rtl8192c_usb_drv = {
+ .usbdrv.name = (char*)"rtl8192cu",
+ .usbdrv.probe = rtw_drv_init,
+ .usbdrv.disconnect = rtw_dev_remove,
+ .usbdrv.id_table = rtl8192c_usb_id_tbl,
+ .usbdrv.suspend = rtw_suspend,
+ .usbdrv.resume = rtw_resume,
+ #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 22))
+ .usbdrv.reset_resume = rtw_resume,
+ #endif
+ #ifdef CONFIG_AUTOSUSPEND
+ .usbdrv.supports_autosuspend = 1,
+ #endif
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19))
+ .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
+ #else
+ .usbdrv.driver.shutdown = rtw_dev_shutdown,
+ #endif
+};
+
+static struct rtw_usb_drv *usb_drv = &rtl8192c_usb_drv;
+#endif /* CONFIG_RTL8192C */
+
+#ifdef CONFIG_RTL8192D
+static struct usb_device_id rtl8192d_usb_id_tbl[] ={
+ RTL8192D_USB_IDS
+ {} /* Terminating entry */
+};
+
+struct rtw_usb_drv rtl8192d_usb_drv = {
+ .usbdrv.name = (char*)"rtl8192du",
+ .usbdrv.probe = rtw_drv_init,
+ .usbdrv.disconnect = rtw_dev_remove,
+ .usbdrv.id_table = rtl8192d_usb_id_tbl,
+ .usbdrv.suspend = rtw_suspend,
+ .usbdrv.resume = rtw_resume,
+ #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 22))
+ .usbdrv.reset_resume = rtw_resume,
+ #endif
+ #ifdef CONFIG_AUTOSUSPEND
+ .usbdrv.supports_autosuspend = 1,
+ #endif
+
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19))
+ .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
+ #else
+ .usbdrv.driver.shutdown = rtw_dev_shutdown,
+ #endif
+};
+static struct rtw_usb_drv *usb_drv = &rtl8192d_usb_drv;
+#endif /* CONFIG_RTL8192D */
static inline int RT_usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd)
{
@@ -263,58 +342,54 @@ static inline int RT_usb_endpoint_num(const struct usb_endpoint_descriptor *epd)
return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK;
}
-u8 rtw_init_intf_priv(_adapter * padapter)
+static u8 rtw_init_intf_priv(struct dvobj_priv *dvobj)
{
- u8 rst = _SUCCESS;
-
+ u8 rst = _SUCCESS;
+
#ifdef CONFIG_USB_VENDOR_REQ_MUTEX
- _rtw_mutex_init(&padapter->dvobjpriv.usb_vendor_req_mutex);
+ _rtw_mutex_init(&dvobj->usb_vendor_req_mutex);
#endif
-#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
- padapter->dvobjpriv.usb_alloc_vendor_req_buf = rtw_zmalloc(MAX_USB_IO_CTL_SIZE);
-
- if (padapter->dvobjpriv.usb_alloc_vendor_req_buf == NULL){
- padapter->dvobjpriv.usb_alloc_vendor_req_buf =NULL;
- printk("alloc usb_vendor_req_buf failed... /n");
+ #ifdef CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
+ dvobj->usb_alloc_vendor_req_buf = rtw_zmalloc(MAX_USB_IO_CTL_SIZE);
+ if (dvobj->usb_alloc_vendor_req_buf == NULL) {
+ DBG_871X("alloc usb_vendor_req_buf failed... /n");
rst = _FAIL;
goto exit;
}
- padapter->dvobjpriv.usb_vendor_req_buf =
- (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(padapter->dvobjpriv.usb_alloc_vendor_req_buf ), ALIGNMENT_UNIT);
+ dvobj->usb_vendor_req_buf =
+ (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(dvobj->usb_alloc_vendor_req_buf ), ALIGNMENT_UNIT);
exit:
-#endif //CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
+ #endif
return rst;
-
+
}
-u8 rtw_deinit_intf_priv(_adapter * padapter)
+static u8 rtw_deinit_intf_priv(struct dvobj_priv *dvobj)
{
- u8 rst = _SUCCESS;
+ u8 rst = _SUCCESS;
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
- if(padapter->dvobjpriv.usb_vendor_req_buf)
- {
- rtw_mfree(padapter->dvobjpriv.usb_alloc_vendor_req_buf,MAX_USB_IO_CTL_SIZE);
- }
- #endif //CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
-
+ if(dvobj->usb_vendor_req_buf)
+ rtw_mfree(dvobj->usb_alloc_vendor_req_buf, MAX_USB_IO_CTL_SIZE);
+ #endif
#ifdef CONFIG_USB_VENDOR_REQ_MUTEX
- _rtw_mutex_free(&padapter->dvobjpriv.usb_vendor_req_mutex);
+ _rtw_mutex_free(&dvobj->usb_vendor_req_mutex);
#endif
-
+
return rst;
-
}
-static u32 usb_dvobj_init(_adapter *padapter)
+static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
{
int i;
u8 val8;
- int status = _SUCCESS;
+ int status = _FAIL;
+ struct dvobj_priv *pdvobjpriv = NULL;
+ struct usb_device *pusbd;
struct usb_device_descriptor *pdev_desc;
struct usb_host_config *phost_conf;
struct usb_config_descriptor *pconf_desc;
@@ -322,78 +397,78 @@ static u32 usb_dvobj_init(_adapter *padapter)
struct usb_interface_descriptor *piface_desc;
struct usb_host_endpoint *phost_endp;
struct usb_endpoint_descriptor *pendp_desc;
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
- struct usb_device *pusbd = pdvobjpriv->pusbdev;
- struct usb_interface *pusb_interface = pdvobjpriv->pusbintf;
_func_enter_;
- pdvobjpriv->padapter = padapter;
+ if((pdvobjpriv = devobj_init()) == NULL) {
+ goto exit;
+ }
+
+ pdvobjpriv->pusbintf = usb_intf ;
+ pusbd = pdvobjpriv->pusbdev = interface_to_usbdev(usb_intf);
+ usb_set_intfdata(usb_intf, pdvobjpriv);
pdvobjpriv->RtNumInPipes = 0;
pdvobjpriv->RtNumOutPipes = 0;
- //padapter->EepromAddressSize = 6;
- //pdvobjpriv->nr_endpoint = 6;
pdev_desc = &pusbd->descriptor;
-
#if 0
- DBG_8192C("\n8712_usb_device_descriptor:\n");
- DBG_8192C("bLength=%x\n", pdev_desc->bLength);
- DBG_8192C("bDescriptorType=%x\n", pdev_desc->bDescriptorType);
- DBG_8192C("bcdUSB=%x\n", pdev_desc->bcdUSB);
- DBG_8192C("bDeviceClass=%x\n", pdev_desc->bDeviceClass);
- DBG_8192C("bDeviceSubClass=%x\n", pdev_desc->bDeviceSubClass);
- DBG_8192C("bDeviceProtocol=%x\n", pdev_desc->bDeviceProtocol);
- DBG_8192C("bMaxPacketSize0=%x\n", pdev_desc->bMaxPacketSize0);
- DBG_8192C("idVendor=%x\n", pdev_desc->idVendor);
- DBG_8192C("idProduct=%x\n", pdev_desc->idProduct);
- DBG_8192C("bcdDevice=%x\n", pdev_desc->bcdDevice);
- DBG_8192C("iManufacturer=%x\n", pdev_desc->iManufacturer);
- DBG_8192C("iProduct=%x\n", pdev_desc->iProduct);
- DBG_8192C("iSerialNumber=%x\n", pdev_desc->iSerialNumber);
- DBG_8192C("bNumConfigurations=%x\n", pdev_desc->bNumConfigurations);
+ DBG_871X("\n8712_usb_device_descriptor:\n");
+ DBG_871X("bLength=%x\n", pdev_desc->bLength);
+ DBG_871X("bDescriptorType=%x\n", pdev_desc->bDescriptorType);
+ DBG_871X("bcdUSB=%x\n", pdev_desc->bcdUSB);
+ DBG_871X("bDeviceClass=%x\n", pdev_desc->bDeviceClass);
+ DBG_871X("bDeviceSubClass=%x\n", pdev_desc->bDeviceSubClass);
+ DBG_871X("bDeviceProtocol=%x\n", pdev_desc->bDeviceProtocol);
+ DBG_871X("bMaxPacketSize0=%x\n", pdev_desc->bMaxPacketSize0);
+ DBG_871X("idVendor=%x\n", pdev_desc->idVendor);
+ DBG_871X("idProduct=%x\n", pdev_desc->idProduct);
+ DBG_871X("bcdDevice=%x\n", pdev_desc->bcdDevice);
+ DBG_871X("iManufacturer=%x\n", pdev_desc->iManufacturer);
+ DBG_871X("iProduct=%x\n", pdev_desc->iProduct);
+ DBG_871X("iSerialNumber=%x\n", pdev_desc->iSerialNumber);
+ DBG_871X("bNumConfigurations=%x\n", pdev_desc->bNumConfigurations);
#endif
phost_conf = pusbd->actconfig;
pconf_desc = &phost_conf->desc;
#if 0
- DBG_8192C("\n8712_usb_configuration_descriptor:\n");
- DBG_8192C("bLength=%x\n", pconf_desc->bLength);
- DBG_8192C("bDescriptorType=%x\n", pconf_desc->bDescriptorType);
- DBG_8192C("wTotalLength=%x\n", pconf_desc->wTotalLength);
- DBG_8192C("bNumInterfaces=%x\n", pconf_desc->bNumInterfaces);
- DBG_8192C("bConfigurationValue=%x\n", pconf_desc->bConfigurationValue);
- DBG_8192C("iConfiguration=%x\n", pconf_desc->iConfiguration);
- DBG_8192C("bmAttributes=%x\n", pconf_desc->bmAttributes);
- DBG_8192C("bMaxPower=%x\n", pconf_desc->bMaxPower);
+ DBG_871X("\n8712_usb_configuration_descriptor:\n");
+ DBG_871X("bLength=%x\n", pconf_desc->bLength);
+ DBG_871X("bDescriptorType=%x\n", pconf_desc->bDescriptorType);
+ DBG_871X("wTotalLength=%x\n", pconf_desc->wTotalLength);
+ DBG_871X("bNumInterfaces=%x\n", pconf_desc->bNumInterfaces);
+ DBG_871X("bConfigurationValue=%x\n", pconf_desc->bConfigurationValue);
+ DBG_871X("iConfiguration=%x\n", pconf_desc->iConfiguration);
+ DBG_871X("bmAttributes=%x\n", pconf_desc->bmAttributes);
+ DBG_871X("bMaxPower=%x\n", pconf_desc->bMaxPower);
#endif
- //DBG_8192C("\n/****** num of altsetting = (%d) ******/\n", pusb_interface->num_altsetting);
+ //DBG_871X("\n/****** num of altsetting = (%d) ******/\n", usb_intf->num_altsetting);
- phost_iface = &pusb_interface->altsetting[0];
+ phost_iface = &usb_intf->altsetting[0];
piface_desc = &phost_iface->desc;
#if 0
- DBG_8192C("\n8712_usb_interface_descriptor:\n");
- DBG_8192C("bLength=%x\n", piface_desc->bLength);
- DBG_8192C("bDescriptorType=%x\n", piface_desc->bDescriptorType);
- DBG_8192C("bInterfaceNumber=%x\n", piface_desc->bInterfaceNumber);
- DBG_8192C("bAlternateSetting=%x\n", piface_desc->bAlternateSetting);
- DBG_8192C("bNumEndpoints=%x\n", piface_desc->bNumEndpoints);
- DBG_8192C("bInterfaceClass=%x\n", piface_desc->bInterfaceClass);
- DBG_8192C("bInterfaceSubClass=%x\n", piface_desc->bInterfaceSubClass);
- DBG_8192C("bInterfaceProtocol=%x\n", piface_desc->bInterfaceProtocol);
- DBG_8192C("iInterface=%x\n", piface_desc->iInterface);
+ DBG_871X("\n8712_usb_interface_descriptor:\n");
+ DBG_871X("bLength=%x\n", piface_desc->bLength);
+ DBG_871X("bDescriptorType=%x\n", piface_desc->bDescriptorType);
+ DBG_871X("bInterfaceNumber=%x\n", piface_desc->bInterfaceNumber);
+ DBG_871X("bAlternateSetting=%x\n", piface_desc->bAlternateSetting);
+ DBG_871X("bNumEndpoints=%x\n", piface_desc->bNumEndpoints);
+ DBG_871X("bInterfaceClass=%x\n", piface_desc->bInterfaceClass);
+ DBG_871X("bInterfaceSubClass=%x\n", piface_desc->bInterfaceSubClass);
+ DBG_871X("bInterfaceProtocol=%x\n", piface_desc->bInterfaceProtocol);
+ DBG_871X("iInterface=%x\n", piface_desc->iInterface);
#endif
pdvobjpriv->NumInterfaces = pconf_desc->bNumInterfaces;
pdvobjpriv->InterfaceNumber = piface_desc->bInterfaceNumber;
pdvobjpriv->nr_endpoint = piface_desc->bNumEndpoints;
- //DBG_8192C("\ndump usb_endpoint_descriptor:\n");
+ //DBG_871X("\ndump usb_endpoint_descriptor:\n");
for (i = 0; i < pdvobjpriv->nr_endpoint; i++)
{
@@ -402,129 +477,122 @@ _func_enter_;
{
pendp_desc = &phost_endp->desc;
- DBG_8192C("\nusb_endpoint_descriptor(%d):\n", i);
- DBG_8192C("bLength=%x\n",pendp_desc->bLength);
- DBG_8192C("bDescriptorType=%x\n",pendp_desc->bDescriptorType);
- DBG_8192C("bEndpointAddress=%x\n",pendp_desc->bEndpointAddress);
- //DBG_8192C("bmAttributes=%x\n",pendp_desc->bmAttributes);
- //DBG_8192C("wMaxPacketSize=%x\n",pendp_desc->wMaxPacketSize);
- DBG_8192C("wMaxPacketSize=%x\n",le16_to_cpu(pendp_desc->wMaxPacketSize));
- DBG_8192C("bInterval=%x\n",pendp_desc->bInterval);
- //DBG_8192C("bRefresh=%x\n",pendp_desc->bRefresh);
- //DBG_8192C("bSynchAddress=%x\n",pendp_desc->bSynchAddress);
+ DBG_871X("\nusb_endpoint_descriptor(%d):\n", i);
+ DBG_871X("bLength=%x\n",pendp_desc->bLength);
+ DBG_871X("bDescriptorType=%x\n",pendp_desc->bDescriptorType);
+ DBG_871X("bEndpointAddress=%x\n",pendp_desc->bEndpointAddress);
+ //DBG_871X("bmAttributes=%x\n",pendp_desc->bmAttributes);
+ //DBG_871X("wMaxPacketSize=%x\n",pendp_desc->wMaxPacketSize);
+ DBG_871X("wMaxPacketSize=%x\n",le16_to_cpu(pendp_desc->wMaxPacketSize));
+ DBG_871X("bInterval=%x\n",pendp_desc->bInterval);
+ //DBG_871X("bRefresh=%x\n",pendp_desc->bRefresh);
+ //DBG_871X("bSynchAddress=%x\n",pendp_desc->bSynchAddress);
if (RT_usb_endpoint_is_bulk_in(pendp_desc))
{
- DBG_8192C("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(pendp_desc));
+ DBG_871X("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(pendp_desc));
pdvobjpriv->RtNumInPipes++;
}
else if (RT_usb_endpoint_is_int_in(pendp_desc))
{
- DBG_8192C("RT_usb_endpoint_is_int_in = %x, Interval = %x\n", RT_usb_endpoint_num(pendp_desc),pendp_desc->bInterval);
+ DBG_871X("RT_usb_endpoint_is_int_in = %x, Interval = %x\n", RT_usb_endpoint_num(pendp_desc),pendp_desc->bInterval);
pdvobjpriv->RtNumInPipes++;
}
else if (RT_usb_endpoint_is_bulk_out(pendp_desc))
{
- DBG_8192C("RT_usb_endpoint_is_bulk_out = %x\n", RT_usb_endpoint_num(pendp_desc));
+ DBG_871X("RT_usb_endpoint_is_bulk_out = %x\n", RT_usb_endpoint_num(pendp_desc));
pdvobjpriv->RtNumOutPipes++;
}
pdvobjpriv->ep_num[i] = RT_usb_endpoint_num(pendp_desc);
}
}
-
- DBG_8192C("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
- if (pusbd->speed == USB_SPEED_HIGH)
- {
+ DBG_871X("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
+
+ if (pusbd->speed == USB_SPEED_HIGH) {
pdvobjpriv->ishighspeed = _TRUE;
- DBG_8192C("USB_SPEED_HIGH\n");
- }
- else
- {
+ DBG_871X("USB_SPEED_HIGH\n");
+ } else {
pdvobjpriv->ishighspeed = _FALSE;
- DBG_8192C("NON USB_SPEED_HIGH\n");
+ DBG_871X("NON USB_SPEED_HIGH\n");
}
- //.2
- if ((rtw_init_io_priv(padapter)) == _FAIL)
- {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n"));
- status = _FAIL;
- }
-
- if((rtw_init_intf_priv(padapter) )== _FAIL)
- {
+ if (rtw_init_intf_priv(pdvobjpriv) == _FAIL) {
RT_TRACE(_module_os_intfs_c_,_drv_err_,("\n Can't INIT rtw_init_intf_priv\n"));
- status = _FAIL;
+ goto free_dvobj;
}
//.3 misc
- _rtw_init_sema(&(padapter->dvobjpriv.usb_suspend_sema), 0);
+ _rtw_init_sema(&(pdvobjpriv->usb_suspend_sema), 0);
+
+ rtw_reset_continual_urb_error(pdvobjpriv);
- intf_read_chip_version(padapter);
+ usb_get_dev(pusbd);
- //.4 usb endpoint mapping
- intf_chip_configure(padapter);
+ //DBG_871X("%s %d\n", __func__, ATOMIC_READ(&usb_intf->dev.kobj.kref.refcount));
- rtw_reset_continual_urb_error(pdvobjpriv);
-
-_func_exit_;
+ status = _SUCCESS;
- return status;
+free_dvobj:
+ if (status != _SUCCESS && pdvobjpriv) {
+ usb_set_intfdata(usb_intf, NULL);
+ devobj_deinit(pdvobjpriv);
+ pdvobjpriv = NULL;
+ }
+exit:
+_func_exit_;
+ return pdvobjpriv;
}
-static void usb_dvobj_deinit(_adapter * padapter){
+static void usb_dvobj_deinit(struct usb_interface *usb_intf)
+{
+ struct dvobj_priv *dvobj = usb_get_intfdata(usb_intf);
- struct dvobj_priv *pdvobjpriv=&padapter->dvobjpriv;
+_func_enter_;
- _func_enter_;
+ usb_set_intfdata(usb_intf, NULL);
+ if (dvobj) {
+ //Modify condition for 92DU DMDP 2010.11.18, by Thomas
+ /*if ((dvobj->NumInterfaces == 1)
+ || ((dvobj->InterfaceNumber == 1) && (dvobj->DualMacMode == _TRUE))) {
+ if (interface_to_usbdev(usb_intf)->state != USB_STATE_NOTATTACHED) {
+ //If we didn't unplug usb dongle and remove/insert modlue, driver fails on sitesurvey for the first time when device is up .
+ //Reset usb port for sitesurvey fail issue. 2009.8.13, by Thomas
+ DBG_871X("usb attached..., try to reset usb device\n");
+ usb_reset_device(interface_to_usbdev(usb_intf));
+ }
+ }*/
+ rtw_deinit_intf_priv(dvobj);
+ devobj_deinit(dvobj);
+ }
- rtw_deinit_intf_priv(padapter);
+ //DBG_871X("%s %d\n", __func__, ATOMIC_READ(&usb_intf->dev.kobj.kref.refcount));
+ usb_put_dev(interface_to_usbdev(usb_intf));
- _func_exit_;
+_func_exit_;
}
static void decide_chip_type_by_usb_device_id(_adapter *padapter, const struct usb_device_id *pdid)
{
- //u32 i;
- //u16 vid, pid;
-
padapter->chip_type = NULL_CHIP_TYPE;
-
- //vid = pdid->idVendor;
- //pid = pdid->idProduct;
-
- //TODO: dynamic judge 92c or 92d according to usb vid and pid.
#ifdef CONFIG_RTL8192C
padapter->chip_type = RTL8188C_8192C;
padapter->HardwareType = HARDWARE_TYPE_RTL8192CU;
- DBG_8192C("CHIP TYPE: RTL8188C_8192C\n");
+ DBG_871X("CHIP TYPE: RTL8188C_8192C\n");
#endif
#ifdef CONFIG_RTL8192D
padapter->chip_type = RTL8192D;
padapter->HardwareType = HARDWARE_TYPE_RTL8192DU;
- DBG_8192C("CHIP TYPE: RTL8192D\n");
+ DBG_871X("CHIP TYPE: RTL8192D\n");
#endif
-
}
static void usb_intf_start(_adapter *padapter)
{
-
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+usb_intf_start\n"));
-
- if(padapter->HalFunc.inirp_init == NULL)
- {
- RT_TRACE(_module_os_intfs_c_,_drv_err_,("Initialize dvobjpriv.inirp_init error!!!\n"));
- }
- else
- {
- padapter->HalFunc.inirp_init(padapter);
- }
-
+ rtw_hal_inirp_init(padapter);
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-usb_intf_start\n"));
-
}
static void usb_intf_stop(_adapter *padapter)
@@ -541,10 +609,7 @@ static void usb_intf_stop(_adapter *padapter)
}
//cancel in irp
- if(padapter->HalFunc.inirp_deinit !=NULL)
- {
- padapter->HalFunc.inirp_deinit(padapter);
- }
+ rtw_hal_inirp_deinit(padapter);
//cancel out irp
rtw_write_port_cancel(padapter);
@@ -563,9 +628,13 @@ static void rtw_dev_unload(_adapter *padapter)
if(padapter->bup == _TRUE)
{
- DBG_8192C("===> rtw_dev_unload\n");
+ DBG_871X("===> rtw_dev_unload\n");
padapter->bDriverStopped = _TRUE;
+ #ifdef CONFIG_XMIT_ACK
+ if (padapter->xmitpriv.ack_tx)
+ rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
+ #endif
//s3.
if(padapter->intf_stop)
@@ -574,20 +643,20 @@ static void rtw_dev_unload(_adapter *padapter)
}
//s4.
- if(!padapter->pwrctrlpriv.bInternalAutoSuspend )
- rtw_stop_drv_threads(padapter);
+ if(!padapter->pwrctrlpriv.bInternalAutoSuspend )
+ rtw_stop_drv_threads(padapter);
//s5.
if(padapter->bSurpriseRemoved == _FALSE)
{
- //DBG_8192C("r871x_dev_unload()->rtl871x_hal_deinit()\n");
- #ifdef CONFIG_WOWLAN
+ //DBG_871X("r871x_dev_unload()->rtl871x_hal_deinit()\n");
+#ifdef CONFIG_WOWLAN
if((padapter->pwrctrlpriv.bSupportRemoteWakeup==_TRUE)&&(padapter->pwrctrlpriv.wowlan_mode==_TRUE)){
- DBG_8192C("%s bSupportWakeOnWlan==_TRUE do not run rtw_hal_deinit()\n",__FUNCTION__);
+ DBG_871X("%s bSupportWakeOnWlan==_TRUE do not run rtw_hal_deinit()\n",__FUNCTION__);
}
else
- #endif //CONFIG_WOWLAN
+#endif //CONFIG_WOWLAN
{
rtw_hal_deinit(padapter);
}
@@ -595,14 +664,16 @@ static void rtw_dev_unload(_adapter *padapter)
}
padapter->bup = _FALSE;
-
+#ifdef CONFIG_WOWLAN
+ padapter->hw_init_completed=_FALSE;
+#endif //CONFIG_WOWLAN
}
else
{
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("r871x_dev_unload():padapter->bup == _FALSE\n" ));
}
- DBG_8192C("<=== rtw_dev_unload\n");
+ DBG_871X("<=== rtw_dev_unload\n");
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-rtw_dev_unload\n"));
@@ -636,8 +707,8 @@ static void process_spec_devid(const struct usb_device_id *pdid)
if((pdid->idVendor==vid) && (pdid->idProduct==pid) && (flags&SPEC_DEV_ID_ASSIGN_IFNAME))
{
extern char* ifname;
- strncpy(ifname, "wlan10", 6);
- //DBG_8192C("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __FUNCTION__, __LINE__, ifname, vid, pid);
+ strncpy(ifname, "wlan10", 6);
+ //DBG_871X("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __FUNCTION__, __LINE__, ifname, vid, pid);
}
#endif /* RTK_DMP_PLATFORM */
@@ -645,29 +716,26 @@ static void process_spec_devid(const struct usb_device_id *pdid)
}
#ifdef SUPPORT_HW_RFOFF_DETECTED
-extern u8 disconnect_hdl(_adapter *padapter, u8 *pbuf);
-extern void rtw_os_indicate_disconnect( _adapter *adapter );
-
int rtw_hw_suspend(_adapter *padapter )
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct usb_interface *pusb_intf = padapter->dvobjpriv.pusbintf;
- struct net_device *pnetdev=usb_get_intfdata(pusb_intf);
-
+ struct usb_interface *pusb_intf = adapter_to_dvobj(padapter)->pusbintf;
+ struct net_device *pnetdev = padapter->pnetdev;
+
_func_enter_;
if((!padapter->bup) || (padapter->bDriverStopped)||(padapter->bSurpriseRemoved))
{
- DBG_8192C("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
- padapter->bup, padapter->bDriverStopped,padapter->bSurpriseRemoved);
+ DBG_871X("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
+ padapter->bup, padapter->bDriverStopped,padapter->bSurpriseRemoved);
goto error_exit;
}
-
+
if(padapter)//system suspend
- {
+ {
LeaveAllPowerSaveMode(padapter);
-
- DBG_8192C("==> rtw_hw_suspend\n");
+
+ DBG_871X("==> rtw_hw_suspend\n");
_enter_pwrlock(&pwrpriv->lock);
pwrpriv->bips_processing = _TRUE;
//padapter->net_closed = _TRUE;
@@ -675,18 +743,16 @@ int rtw_hw_suspend(_adapter *padapter )
if(pnetdev)
{
netif_carrier_off(pnetdev);
- netif_stop_queue(pnetdev);
+ rtw_netif_stop_queue(pnetdev);
}
//s2.
- //s2-1. issue rtw_disassoc_cmd to fw
- //rtw_disassoc_cmd(padapter);//donnot enqueue cmd
- disconnect_hdl(padapter, NULL);
-
+ rtw_disassoc_cmd(padapter, 500, _FALSE);
+
//s2-2. indicate disconnect to os
//rtw_indicate_disconnect(padapter);
{
- struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
if(check_fwstate(pmlmepriv, _FW_LINKED))
{
@@ -695,7 +761,7 @@ int rtw_hw_suspend(_adapter *padapter )
rtw_led_control(padapter, LED_CTL_NO_LINK);
rtw_os_indicate_disconnect(padapter);
-
+
#ifdef CONFIG_LPS
//donnot enqueue cmd
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_DISCONNECT, 0);
@@ -709,21 +775,21 @@ int rtw_hw_suspend(_adapter *padapter )
//s2-4.
rtw_free_network_queue(padapter,_TRUE);
#ifdef CONFIG_IPS
- rtw_ips_dev_unload(padapter);
- #endif
+ rtw_ips_dev_unload(padapter);
+ #endif
pwrpriv->rf_pwrstate = rf_off;
- pwrpriv->bips_processing = _FALSE;
+ pwrpriv->bips_processing = _FALSE;
_exit_pwrlock(&pwrpriv->lock);
}
else
goto error_exit;
-
+
_func_exit_;
return 0;
-
+
error_exit:
- DBG_8192C("%s, failed \n",__FUNCTION__);
+ DBG_871X("%s, failed \n",__FUNCTION__);
return (-1);
}
@@ -731,340 +797,304 @@ error_exit:
int rtw_hw_resume(_adapter *padapter)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
- struct usb_interface *pusb_intf = padapter->dvobjpriv.pusbintf;
- struct net_device *pnetdev=usb_get_intfdata(pusb_intf);
+ struct usb_interface *pusb_intf = adapter_to_dvobj(padapter)->pusbintf;
+ struct net_device *pnetdev = padapter->pnetdev;
_func_enter_;
if(padapter)//system resume
- {
- DBG_8192C("==> rtw_hw_resume\n");
+ {
+ DBG_871X("==> rtw_hw_resume\n");
_enter_pwrlock(&pwrpriv->lock);
pwrpriv->bips_processing = _TRUE;
rtw_reset_drv_sw(padapter);
-
+
if(pm_netdev_open(pnetdev,_FALSE) != 0)
{
_exit_pwrlock(&pwrpriv->lock);
goto error_exit;
}
- netif_device_attach(pnetdev);
+ netif_device_attach(pnetdev);
netif_carrier_on(pnetdev);
- if(!netif_queue_stopped(pnetdev))
- netif_start_queue(pnetdev);
+ if(!rtw_netif_queue_stopped(pnetdev))
+ rtw_netif_start_queue(pnetdev);
else
- netif_wake_queue(pnetdev);
-
+ rtw_netif_wake_queue(pnetdev);
+
pwrpriv->bkeepfwalive = _FALSE;
pwrpriv->brfoffbyhw = _FALSE;
-
+
pwrpriv->rf_pwrstate = rf_on;
- pwrpriv->bips_processing = _FALSE;
-
+ pwrpriv->bips_processing = _FALSE;
+
_exit_pwrlock(&pwrpriv->lock);
}
else
{
- goto error_exit;
+ goto error_exit;
}
_func_exit_;
-
+
return 0;
error_exit:
- DBG_8192C("%s, Open net dev failed \n",__FUNCTION__);
+ DBG_871X("%s, Open net dev failed \n",__FUNCTION__);
return (-1);
}
#endif
static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
{
- struct net_device *pnetdev=usb_get_intfdata(pusb_intf);
- _adapter *padapter = (_adapter*)rtw_netdev_priv(pnetdev);
+ struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
+ _adapter *padapter = dvobj->if1;
+ struct net_device *pnetdev = padapter->pnetdev;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
struct usb_device *usb_dev = interface_to_usbdev(pusb_intf);
- struct wowlan_ioctl_param poidparam;
+#ifdef CONFIG_WOWLAN
+ struct wowlan_ioctl_param poidparam;
+#endif // CONFIG_WOWLAN
+ int ret = 0;
+ u32 start_time = rtw_get_current_time();
_func_enter_;
+ DBG_871X("==> %s (%s:%d)\n",__FUNCTION__, current->comm, current->pid);
+
if((!padapter->bup) || (padapter->bDriverStopped)||(padapter->bSurpriseRemoved))
{
- DBG_8192C("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
- padapter->bup, padapter->bDriverStopped,padapter->bSurpriseRemoved);
- return 0;
- }
+ DBG_871X("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
+ padapter->bup, padapter->bDriverStopped,padapter->bSurpriseRemoved);
+ goto exit;
+ }
- DBG_8192C("########### rtw_suspend #################\n");
-
- if(padapter)//system suspend
- {
- if(pwrpriv->bInternalAutoSuspend )
+ if(pwrpriv->bInternalAutoSuspend )
+ {
+ #ifdef CONFIG_AUTOSUSPEND
+ #ifdef SUPPORT_HW_RFOFF_DETECTED
+ // The FW command register update must after MAC and FW init ready.
+ if((padapter->bFWReady) && ( padapter->pwrctrlpriv.bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
{
- #ifdef CONFIG_AUTOSUSPEND
- #ifdef SUPPORT_HW_RFOFF_DETECTED
- // The FW command register update must after MAC and FW init ready.
- if((padapter->bFWReady) && ( padapter->pwrctrlpriv.bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
- {
- u8 bOpen = _TRUE;
- rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
- //rtl8192c_set_FwSelectSuspend_cmd(padapter,_TRUE ,500);//note fw to support hw power down ping detect
- }
- #endif
- #endif
+ u8 bOpen = _TRUE;
+ rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
+ //rtl8192c_set_FwSelectSuspend_cmd(padapter,_TRUE ,500);//note fw to support hw power down ping detect
}
- pwrpriv->bInSuspend = _TRUE;
- rtw_cancel_all_timer(padapter);
- LeaveAllPowerSaveMode(padapter);
+ #endif
+ #endif
+ }
+ pwrpriv->bInSuspend = _TRUE;
+ rtw_cancel_all_timer(padapter);
+ LeaveAllPowerSaveMode(padapter);
- _enter_pwrlock(&pwrpriv->lock);
- //padapter->net_closed = _TRUE;
- //s1.
- if(pnetdev)
- {
- netif_carrier_off(pnetdev);
- netif_stop_queue(pnetdev);
- }
+ rtw_stop_cmd_thread(padapter);
+
+ _enter_pwrlock(&pwrpriv->lock);
+ //padapter->net_closed = _TRUE;
+ //s1.
+ if(pnetdev)
+ {
+ netif_carrier_off(pnetdev);
+ rtw_netif_stop_queue(pnetdev);
+ }
#ifdef CONFIG_WOWLAN
- if(padapter->pwrctrlpriv.bSupportRemoteWakeup==_TRUE&&padapter->pwrctrlpriv.wowlan_mode==_TRUE){
- u8 ps_mode=PS_MODE_MIN;
- //set H2C command
- poidparam.subcode=WOWLAN_ENABLE;
- padapter->HalFunc.SetHwRegHandler(padapter,HW_VAR_WOWLAN,(u8 *)&poidparam);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_H2C_FW_PWRMODE, &ps_mode);
- rtw_set_rpwm(padapter, PS_STATE_S2);
- }
- else
+ if(padapter->pwrctrlpriv.bSupportRemoteWakeup==_TRUE&&padapter->pwrctrlpriv.wowlan_mode==_TRUE){
+ u8 ps_mode=PS_MODE_MIN;
+ //set H2C command
+ poidparam.subcode=WOWLAN_ENABLE;
+ rtw_hal_set_hwreg(padapter,HW_VAR_WOWLAN,(u8 *)&poidparam);
+ //rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_PWRMODE, &ps_mode);
+ //rtw_set_rpwm(padapter, PS_STATE_S2);
+ }
+ else
#endif //CONFIG_WOWLAN
- {
+ {
//s2.
- //s2-1. issue rtw_disassoc_cmd to fw
- disconnect_hdl(padapter, NULL);
- //rtw_disassoc_cmd(padapter);
- }
-
+ rtw_disassoc_cmd(padapter, 0, _FALSE);
+ }
#ifdef CONFIG_LAYER2_ROAMING_RESUME
- if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) && check_fwstate(pmlmepriv, _FW_LINKED) )
- {
- //printk("%s:%d assoc_ssid:%s\n", __FUNCTION__, __LINE__, pmlmepriv->assoc_ssid.Ssid);
- DBG_871X("%s:%d %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n",__FUNCTION__, __LINE__,
- pmlmepriv->cur_network.network.Ssid.Ssid,
- MAC_ARG(pmlmepriv->cur_network.network.MacAddress),
- pmlmepriv->cur_network.network.Ssid.SsidLength,
- pmlmepriv->assoc_ssid.SsidLength);
-
- pmlmepriv->to_roaming = 1;
+ if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) && check_fwstate(pmlmepriv, _FW_LINKED) )
+ {
+ //printk("%s:%d assoc_ssid:%s\n", __FUNCTION__, __LINE__, pmlmepriv->assoc_ssid.Ssid);
+ DBG_871X("%s:%d %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n",__FUNCTION__, __LINE__,
+ pmlmepriv->cur_network.network.Ssid.Ssid,
+ MAC_ARG(pmlmepriv->cur_network.network.MacAddress),
+ pmlmepriv->cur_network.network.Ssid.SsidLength,
+ pmlmepriv->assoc_ssid.SsidLength);
+ rtw_set_roaming(padapter, 1);
}
#endif
- //s2-2. indicate disconnect to os
- rtw_indicate_disconnect(padapter);
- //s2-3.
- rtw_free_assoc_resources(padapter, 1);
+ //s2-2. indicate disconnect to os
+ rtw_indicate_disconnect(padapter);
+ //s2-3.
+ rtw_free_assoc_resources(padapter, 1);
#ifdef CONFIG_AUTOSUSPEND
- if(!pwrpriv->bInternalAutoSuspend )
+ if(!pwrpriv->bInternalAutoSuspend )
#endif
- //s2-4.
- rtw_free_network_queue(padapter, _TRUE);
+ //s2-4.
+ rtw_free_network_queue(padapter, _TRUE);
- rtw_dev_unload(padapter);
+ rtw_dev_unload(padapter);
#ifdef CONFIG_AUTOSUSPEND
- pwrpriv->rf_pwrstate = rf_off;
- pwrpriv->bips_processing = _FALSE;
+ pwrpriv->rf_pwrstate = rf_off;
+ pwrpriv->bips_processing = _FALSE;
#endif
- _exit_pwrlock(&pwrpriv->lock);
+ _exit_pwrlock(&pwrpriv->lock);
- if(check_fwstate(pmlmepriv, _FW_UNDER_SURVEY))
- rtw_indicate_scan_done(padapter, 1);
+ if(check_fwstate(pmlmepriv, _FW_UNDER_SURVEY))
+ rtw_indicate_scan_done(padapter, 1);
- if(check_fwstate(pmlmepriv, _FW_UNDER_LINKING))
- rtw_indicate_disconnect(padapter);
- }
- else
- goto error_exit;
-
- DBG_871X("########### rtw_suspend done #################\n");
+ if(check_fwstate(pmlmepriv, _FW_UNDER_LINKING))
+ rtw_indicate_disconnect(padapter);
- _func_exit_;
- return 0;
-
-error_exit:
- DBG_871X("########### rtw_suspend fail !! #################\n");
- return (-1);
+exit:
+ DBG_871X("<=== %s return %d.............. in %dms\n", __FUNCTION__
+ , ret, rtw_get_passing_time_ms(start_time));
+ _func_exit_;
+ return ret;
}
static int rtw_resume(struct usb_interface *pusb_intf)
{
- struct net_device *pnetdev=usb_get_intfdata(pusb_intf);
- _adapter *padapter = (_adapter*)rtw_netdev_priv(pnetdev);
+ struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
+ _adapter *padapter = dvobj->if1;
+ struct net_device *pnetdev = padapter->pnetdev;
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
int ret = 0;
-
+
if(pwrpriv->bInternalAutoSuspend ){
- ret = rtw_resume_process(pusb_intf);
+ ret = rtw_resume_process(padapter);
} else {
#ifdef CONFIG_RESUME_IN_WORKQUEUE
rtw_resume_in_workqueue(pwrpriv);
-#elif defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
- if(rtw_is_earlysuspend_registered(pwrpriv)) {
- //jeff: bypass resume here, do in late_resume
- pwrpriv->do_late_resume = _TRUE;
+#else
+ if (rtw_is_earlysuspend_registered(pwrpriv)
+ #ifdef CONFIG_WOWLAN
+ && !padapter->pwrctrlpriv.wowlan_mode
+ #endif /* CONFIG_WOWLAN */
+ ) {
+ /* jeff: bypass resume here, do in late_resume */
+ rtw_set_do_late_resume(pwrpriv, _TRUE);
} else {
- ret = rtw_resume_process(pusb_intf);
+ ret = rtw_resume_process(padapter);
}
-#else // Normal resume process
- ret = rtw_resume_process(pusb_intf);
-#endif //CONFIG_RESUME_IN_WORKQUEUE
+#endif /* CONFIG_RESUME_IN_WORKQUEUE */
}
-
+
return ret;
}
-
-int rtw_resume_process(struct usb_interface *pusb_intf)
+int rtw_resume_process(_adapter *padapter)
{
struct net_device *pnetdev;
- struct usb_device *usb_dev;
- _adapter *padapter;
struct pwrctrl_priv *pwrpriv;
-
+ int ret = -1;
+ u32 start_time = rtw_get_current_time();
_func_enter_;
- DBG_8192C("########### rtw_resume #################\n");
+ DBG_871X("==> %s (%s:%d)\n",__FUNCTION__, current->comm, current->pid);
- if(pusb_intf) {
- pnetdev=usb_get_intfdata(pusb_intf);
- usb_dev = interface_to_usbdev(pusb_intf);
+ if(padapter) {
+ pnetdev= padapter->pnetdev;
+ pwrpriv = &padapter->pwrctrlpriv;
} else {
- goto error_exit;
+ goto exit;
}
- padapter = (_adapter*)rtw_netdev_priv(pnetdev);
- pwrpriv = &padapter->pwrctrlpriv;
-
- if(padapter)//system resume
- {
- _enter_pwrlock(&pwrpriv->lock);
- rtw_reset_drv_sw(padapter);
- pwrpriv->bkeepfwalive = _FALSE;
-
- DBG_8192C("bkeepfwalive(%x)\n",pwrpriv->bkeepfwalive);
- if(pm_netdev_open(pnetdev,_TRUE) != 0)
- goto error_exit;
+ _enter_pwrlock(&pwrpriv->lock);
+ rtw_reset_drv_sw(padapter);
+ pwrpriv->bkeepfwalive = _FALSE;
- netif_device_attach(pnetdev);
- netif_carrier_on(pnetdev);
-
-#ifdef CONFIG_AUTOSUSPEND
- if(pwrpriv->bInternalAutoSuspend )
- {
- #ifdef CONFIG_AUTOSUSPEND
- #ifdef SUPPORT_HW_RFOFF_DETECTED
- // The FW command register update must after MAC and FW init ready.
- if((padapter->bFWReady) && ( padapter->pwrctrlpriv.bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
- {
- //rtl8192c_set_FwSelectSuspend_cmd(padapter,_FALSE ,500);//note fw to support hw power down ping detect
- u8 bOpen = _FALSE;
- rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
- }
- #endif
- #endif
-
- pwrpriv->bInternalAutoSuspend = _FALSE;
- pwrpriv->brfoffbyhw = _FALSE;
- {
- DBG_8192C("enc_algorithm(%x),wepkeymask(%x)\n",
- padapter->securitypriv.dot11PrivacyAlgrthm,pwrpriv->wepkeymask);
- if( (_WEP40_ == padapter->securitypriv.dot11PrivacyAlgrthm) ||
- (_WEP104_ == padapter->securitypriv.dot11PrivacyAlgrthm))
- {
- sint keyid;
-
- for(keyid=0;keyid<4;keyid++){
- if(pwrpriv->wepkeymask & BIT(keyid)) {
- if(keyid == padapter->securitypriv.dot11PrivacyKeyIndex)
- rtw_set_key(padapter,&padapter->securitypriv, keyid, 1);
- else
- rtw_set_key(padapter,&padapter->securitypriv, keyid, 0);
- }
- }
- }
- }
- }
-#endif
+ DBG_871X("bkeepfwalive(%x)\n",pwrpriv->bkeepfwalive);
+ if(pm_netdev_open(pnetdev,_TRUE) != 0) {
_exit_pwrlock(&pwrpriv->lock);
+ goto exit;
}
- else
+
+ netif_device_attach(pnetdev);
+ netif_carrier_on(pnetdev);
+
+#ifdef CONFIG_AUTOSUSPEND
+ if(pwrpriv->bInternalAutoSuspend )
{
- goto error_exit;
+ #ifdef CONFIG_AUTOSUSPEND
+ #ifdef SUPPORT_HW_RFOFF_DETECTED
+ // The FW command register update must after MAC and FW init ready.
+ if((padapter->bFWReady) && ( padapter->pwrctrlpriv.bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
+ {
+ //rtl8192c_set_FwSelectSuspend_cmd(padapter,_FALSE ,500);//note fw to support hw power down ping detect
+ u8 bOpen = _FALSE;
+ rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
+ }
+ #endif
+ #endif
+
+ pwrpriv->bInternalAutoSuspend = _FALSE;
+ pwrpriv->brfoffbyhw = _FALSE;
}
+#endif
+ _exit_pwrlock(&pwrpriv->lock);
if( padapter->pid[1]!=0) {
DBG_871X("pid[1]:%d\n",padapter->pid[1]);
rtw_signal_process(padapter->pid[1], SIGUSR2);
- }
+ }
#ifdef CONFIG_LAYER2_ROAMING_RESUME
rtw_roaming(padapter, NULL);
- #endif
-
- DBG_871X("########### rtw_resume done#################\n");
-
- #ifdef CONFIG_RESUME_IN_WORKQUEUE
- rtw_unlock_suspend();
- #endif //CONFIG_RESUME_IN_WORKQUEUE
-
- _func_exit_;
-
- return 0;
-error_exit:
- DBG_8192C("%s, Open net dev failed \n",__FUNCTION__);
+ #endif
- DBG_871X("########### rtw_resume done with error#################\n");
-
+ ret = 0;
+exit:
#ifdef CONFIG_RESUME_IN_WORKQUEUE
rtw_unlock_suspend();
#endif //CONFIG_RESUME_IN_WORKQUEUE
-
+
+ pwrpriv->bInSuspend = _FALSE;
+ DBG_871X("<=== %s return %d.............. in %dms\n", __FUNCTION__
+ , ret, rtw_get_passing_time_ms(start_time));
+
_func_exit_;
-
- return (-1);
+
+ return ret;
}
#ifdef CONFIG_AUTOSUSPEND
-void autosuspend_enter(_adapter* padapter)
+void autosuspend_enter(_adapter* padapter)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
+ struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
+
pwrpriv->bInternalAutoSuspend = _TRUE;
- pwrpriv->bips_processing = _TRUE;
-
- DBG_8192C("==>autosuspend_enter...........\n");
-
+ pwrpriv->bips_processing = _TRUE;
+
+ DBG_871X("==>autosuspend_enter...........\n");
+
if(rf_off == pwrpriv->change_rfpwrstate )
- {
+ {
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
- usb_enable_autosuspend(padapter->dvobjpriv.pusbdev);
+ usb_enable_autosuspend(dvobj->pusbdev);
#else
- padapter->dvobjpriv.pusbdev->autosuspend_disabled = 0;//autosuspend disabled by the user
+ dvobj->pusbdev->autosuspend_disabled = 0;//autosuspend disabled by the user
#endif
-
+
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
- usb_autopm_put_interface(padapter->dvobjpriv.pusbintf);
- #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,20))
- usb_autopm_enable(padapter->dvobjpriv.pusbintf);
+ usb_autopm_put_interface(dvobj->pusbintf);
+ #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,20))
+ usb_autopm_enable(dvobj->pusbintf);
#else
- usb_autosuspend_device(padapter->dvobjpriv.pusbdev, 1);
+ usb_autosuspend_device(dvobj->pusbdev, 1);
#endif
}
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
- DBG_8192C("...pm_usage_cnt(%d).....\n",atomic_read(&(padapter->dvobjpriv.pusbintf->pm_usage_cnt)));
+ DBG_871X("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
#else
- DBG_8192C("...pm_usage_cnt(%d).....\n",padapter->dvobjpriv.pusbintf->pm_usage_cnt);
+ DBG_871X("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
#endif
-
+
}
int autoresume_enter(_adapter* padapter)
{
@@ -1073,156 +1103,156 @@ int autoresume_enter(_adapter* padapter)
struct security_priv* psecuritypriv=&(padapter->securitypriv);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
-
-
- DBG_8192C("====> autoresume_enter \n");
-
+ struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
+
+
+ DBG_871X("====> autoresume_enter \n");
+
if(rf_off == pwrpriv->rf_pwrstate )
{
pwrpriv->ps_flag = _FALSE;
- #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
- if (usb_autopm_get_interface( padapter->dvobjpriv.pusbintf) < 0)
+ #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
+ if (usb_autopm_get_interface(dvobj->pusbintf) < 0)
{
- DBG_8192C( "can't get autopm: %d\n", result);
+ DBG_871X( "can't get autopm: %d\n", result);
result = _FAIL;
goto error_exit;
- }
- #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,20))
- usb_autopm_disable(padapter->dvobjpriv.pusbintf);
+ }
+ #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,20))
+ usb_autopm_disable(dvobj->pusbintf);
#else
- usb_autoresume_device(padapter->dvobjpriv.pusbdev, 1);
+ usb_autoresume_device(dvobj->pusbdev, 1);
#endif
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
- DBG_8192C("...pm_usage_cnt(%d).....\n",atomic_read(&(padapter->dvobjpriv.pusbintf->pm_usage_cnt)));
+ DBG_871X("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
#else
- DBG_8192C("...pm_usage_cnt(%d).....\n",padapter->dvobjpriv.pusbintf->pm_usage_cnt);
- #endif
+ DBG_871X("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
+ #endif
}
- DBG_8192C("<==== autoresume_enter \n");
-error_exit:
+ DBG_871X("<==== autoresume_enter \n");
+error_exit:
return result;
}
#endif
-extern char* ifname;
-/*
- * drv_init() - a device potentially for us
- *
- * notes: drv_init() is called when the bus driver has located a card for us to support.
- * We accept the new device by returning 0.
-*/
+#ifdef CONFIG_PLATFORM_RTD2880B
+extern void rtd2885_wlan_netlink_sendMsg(char *action_string, char *name);
+#endif
-_adapter *rtw_sw_export = NULL;
+#ifdef CONFIG_PLATFORM_ARM_SUNxI
+#include <mach/sys_config.h>
+extern int sw_usb_disable_hcd(__u32 usbc_no);
+extern int sw_usb_enable_hcd(__u32 usbc_no);
+static int usb_wifi_host = 2;
+#endif
-static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device_id *pdid)
-{
- int i;
+#ifdef CONFIG_PLATFORM_ARM_SUN6I
+#include <mach/sys_config.h>
+extern int sw_usb_disable_hcd(__u32 usbc_no);
+extern int sw_usb_enable_hcd(__u32 usbc_no);
+extern void wifi_pm_power(int on);
+static script_item_u item;
+#endif
- uint status;
+_adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
+ struct usb_interface *pusb_intf, const struct usb_device_id *pdid)
+{
_adapter *padapter = NULL;
- struct dvobj_priv *pdvobjpriv;
- struct net_device *pnetdev;
+ struct net_device *pnetdev = NULL;
+ int status = _FAIL;
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_init\n"));
- //DBG_8192C("+rtw_drv_init\n");
-
- //2009.8.13, by Thomas
- // In this probe function, O.S. will provide the usb interface pointer to driver.
- // We have to increase the reference count of the usb device structure by using the usb_get_dev function.
- usb_get_dev(interface_to_usbdev(pusb_intf));
-
- //step 0.
- process_spec_devid(pdid);
-
- //step 1. set USB interface data
- // init data
- pnetdev = rtw_init_netdev(NULL);
- if (!pnetdev)
- goto error;
-
- SET_NETDEV_DEV(pnetdev, &pusb_intf->dev);
+ if ((padapter = (_adapter *)rtw_zvmalloc(sizeof(*padapter))) == NULL) {
+ goto exit;
+ }
+ padapter->dvobj = dvobj;
+ dvobj->if1 = padapter;
- padapter = rtw_netdev_priv(pnetdev);
padapter->bDriverStopped=_TRUE;
- pdvobjpriv = &padapter->dvobjpriv;
- pdvobjpriv->padapter = padapter;
- pdvobjpriv->pusbintf = pusb_intf ;
- pdvobjpriv->pusbdev = interface_to_usbdev(pusb_intf);
-
-#ifdef CONFIG_IOCTL_CFG80211
- rtw_wdev_alloc(padapter, &pusb_intf->dev);
-#endif //CONFIG_IOCTL_CFG80211
-
- // set data
- usb_set_intfdata(pusb_intf, pnetdev);
+ dvobj->padapters[dvobj->iface_nums++] = padapter;
+ padapter->iface_id = IFACE_ID0;
- //set interface_type to usb
- padapter->interface_type = RTW_USB;
+#if defined(CONFIG_CONCURRENT_MODE) || defined(CONFIG_DUALMAC_CONCURRENT)
+ //set adapter_type/iface type for primary padapter
+ padapter->isprimary = _TRUE;
+ padapter->adapter_type = PRIMARY_ADAPTER;
+ #ifndef CONFIG_HWPORT_SWAP
+ padapter->iface_type = IFACE_PORT0;
+ #else
+ padapter->iface_type = IFACE_PORT1;
+ #endif
+#endif
+ #ifndef RTW_DVOBJ_CHIP_HW_TYPE
//step 1-1., decide the chip_type via vid/pid
+ padapter->interface_type = RTW_USB;
decide_chip_type_by_usb_device_id(padapter, pdid);
+ #endif
- //step 2.
- if(padapter->chip_type == RTL8188C_8192C)
- {
-#ifdef CONFIG_RTL8192C
- rtl8192cu_set_hal_ops(padapter);
-#endif
+ if((pnetdev = rtw_init_netdev(padapter)) == NULL) {
+ goto free_adapter;
}
- else if(padapter->chip_type == RTL8192D)
- {
-#ifdef CONFIG_RTL8192D
+ SET_NETDEV_DEV(pnetdev, dvobj_to_dev(dvobj));
+ padapter = rtw_netdev_priv(pnetdev);
+
+ //step 2. hook HalFunc, allocate HalData
+ if(padapter->chip_type == RTL8188C_8192C) {
+ #ifdef CONFIG_RTL8192C
+ rtl8192cu_set_hal_ops(padapter);
+ #endif
+ } else if(padapter->chip_type == RTL8192D) {
+ #ifdef CONFIG_RTL8192D
rtl8192du_set_hal_ops(padapter);
-#endif
- }
- else
- {
- DBG_8192C("Detect NULL_CHIP_TYPE\n");
- status = _FAIL;
- goto error;
+ #endif
+ } else {
+ DBG_871X("Detect NULL_CHIP_TYPE\n");
+ goto free_hal_data;
}
- //step 3. initialize the dvobj_priv
- padapter->dvobj_init=&usb_dvobj_init;
- padapter->dvobj_deinit=&usb_dvobj_deinit;
+ //step 3.
padapter->intf_start=&usb_intf_start;
padapter->intf_stop=&usb_intf_stop;
- //step 3.
- //initialize the dvobj_priv ,include Chip version
- if (padapter->dvobj_init == NULL){
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("\n Initialize dvobjpriv.dvobj_init error!!!\n"));
- goto error;
+ //.2
+ if ((rtw_init_io_priv(padapter, usb_set_intf_ops)) == _FAIL) {
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n"));
+ goto free_hal_data;
}
- status = padapter->dvobj_init(padapter);
- if (status != _SUCCESS) {
- RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("initialize device object priv Failed!\n"));
- goto error;
- }
+ rtw_hal_read_chip_version(padapter);
+
+ //.4 usb endpoint mapping
+ rtw_hal_chip_configure(padapter);
//step 4. read efuse/eeprom data and get mac_addr
- intf_read_chip_info(padapter);
+ rtw_hal_read_chip_info(padapter);
+
+ if (rtw_handle_dualmac(padapter, 1) != _SUCCESS)
+ goto free_hal_data;
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if(rtw_wdev_alloc(padapter, dvobj_to_dev(dvobj)) != 0) {
+ goto handle_dualmac;
+ }
+#endif
//step 5.
- status = rtw_init_drv_sw(padapter);
- if(status ==_FAIL){
+ if (rtw_init_drv_sw(padapter) == _FAIL) {
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize driver software resource Failed!\n"));
- goto error;
+ goto free_wdev;
}
#ifdef CONFIG_PM
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
if(padapter->pwrctrlpriv.bSupportRemoteWakeup)
{
- pdvobjpriv->pusbdev->do_remote_wakeup=1;
- pusb_intf->needs_remote_wakeup = 1;
+ dvobj->pusbdev->do_remote_wakeup=1;
+ pusb_intf->needs_remote_wakeup = 1;
device_init_wakeup(&pusb_intf->dev, 1);
- DBG_8192C("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~~~~\n");
- DBG_8192C("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~[%d]~~~\n",device_may_wakeup(&pusb_intf->dev));
+ DBG_871X("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~~~~\n");
+ DBG_871X("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~[%d]~~~\n",device_may_wakeup(&pusb_intf->dev));
}
#endif
#endif
@@ -1232,101 +1262,204 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
{
if(padapter->registrypriv.usbss_enable ){ /* autosuspend (2s delay) */
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,38))
- pdvobjpriv->pusbdev->dev.power.autosuspend_delay = 0 * HZ;//15 * HZ; idle-delay time
+ dvobj->pusbdev->dev.power.autosuspend_delay = 0 * HZ;//15 * HZ; idle-delay time
#else
- pdvobjpriv->pusbdev->autosuspend_delay = 0 * HZ;//15 * HZ; idle-delay time
+ dvobj->pusbdev->autosuspend_delay = 0 * HZ;//15 * HZ; idle-delay time
#endif
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
- usb_enable_autosuspend(padapter->dvobjpriv.pusbdev);
+ usb_enable_autosuspend(dvobj->pusbdev);
#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,22) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,34))
- padapter->bDisableAutosuspend = padapter->dvobjpriv.pusbdev->autosuspend_disabled ;
- padapter->dvobjpriv.pusbdev->autosuspend_disabled = 0;//autosuspend disabled by the user
+ padapter->bDisableAutosuspend = dvobj->pusbdev->autosuspend_disabled ;
+ dvobj->pusbdev->autosuspend_disabled = 0;//autosuspend disabled by the user
#endif
- usb_autopm_get_interface(padapter->dvobjpriv.pusbintf );//init pm_usage_cnt ,let it start from 1
+ usb_autopm_get_interface(dvobj->pusbintf );//init pm_usage_cnt ,let it start from 1
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
- DBG_8192C("%s...pm_usage_cnt(%d).....\n",__FUNCTION__,atomic_read(&(pdvobjpriv->pusbintf ->pm_usage_cnt)));
+ DBG_871X("%s...pm_usage_cnt(%d).....\n",__FUNCTION__, atomic_read(&(dvobj->pusbintf ->pm_usage_cnt)));
#else
- DBG_8192C("%s...pm_usage_cnt(%d).....\n",__FUNCTION__,pdvobjpriv->pusbintf ->pm_usage_cnt);
- #endif
+ DBG_871X("%s...pm_usage_cnt(%d).....\n",__FUNCTION__, dvobj->pusbintf ->pm_usage_cnt);
+ #endif
}
- }
+ }
#endif
- // alloc dev name after read efuse.
- rtw_init_netdev_name(pnetdev, ifname);
+ // set mac addr
rtw_macaddr_cfg(padapter->eeprompriv.mac_addr);
+ rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr, padapter->eeprompriv.mac_addr);
- _rtw_memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
- DBG_8192C("MAC Address from pnetdev->dev_addr= " MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
+ DBG_871X("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
+ ,padapter->bDriverStopped
+ ,padapter->bSurpriseRemoved
+ ,padapter->bup
+ ,padapter->hw_init_completed
+ );
+ status = _SUCCESS;
- //step 6.
- /* Tell the network stack we exist */
- if (register_netdev(pnetdev) != 0) {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("register_netdev() failed\n"));
- goto error;
+free_wdev:
+ if(status != _SUCCESS) {
+ #ifdef CONFIG_IOCTL_CFG80211
+ rtw_wdev_unregister(padapter->rtw_wdev);
+ rtw_wdev_free(padapter->rtw_wdev);
+ #endif
+ }
+handle_dualmac:
+ if (status != _SUCCESS)
+ rtw_handle_dualmac(padapter, 0);
+free_hal_data:
+ if(status != _SUCCESS && padapter->HalData)
+ rtw_mfree(padapter->HalData, sizeof(*(padapter->HalData)));
+free_adapter:
+ if (status != _SUCCESS) {
+ if (pnetdev)
+ rtw_free_netdev(pnetdev);
+ else if (padapter)
+ rtw_vmfree((u8*)padapter, sizeof(*padapter));
+ padapter = NULL;
}
+exit:
+ return padapter;
+}
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-drv_init - Adapter->bDriverStopped=%d, Adapter->bSurpriseRemoved=%d\n",padapter->bDriverStopped, padapter->bSurpriseRemoved));
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-871x_drv - drv_init, success!\n"));
- //DBG_8192C("-871x_drv - drv_init, success!\n");
+static void rtw_usb_if1_deinit(_adapter *if1)
+{
+ struct net_device *pnetdev = if1->pnetdev;
+ struct mlme_priv *pmlmepriv= &if1->mlmepriv;
-#ifdef CONFIG_PROC_DEBUG
-#ifdef RTK_DMP_PLATFORM
- rtw_proc_init_one(pnetdev);
-#endif
-#endif
+ if(check_fwstate(pmlmepriv, _FW_LINKED))
+ rtw_disassoc_cmd(if1, 0, _FALSE);
-#ifdef CONFIG_HOSTAPD_MLME
- hostapd_mode_init(padapter);
+#ifdef CONFIG_AP_MODE
+ free_mlme_ap_info(if1);
+ #ifdef CONFIG_HOSTAPD_MLME
+ hostapd_mode_unload(if1);
+ #endif
#endif
+ rtw_cancel_all_timer(if1);
+#ifdef CONFIG_WOWLAN
+ if1->pwrctrlpriv.wowlan_mode=_FALSE;
+#endif //CONFIG_WOWLAN
+ rtw_dev_unload(if1);
+
+ DBG_871X("%s, hw_init_completed=%d\n", __func__, if1->hw_init_completed);
+
+ //s6.
+ rtw_handle_dualmac(if1, 0);
+
+#ifdef CONFIG_IOCTL_CFG80211
+ if (if1->rtw_wdev)
+ rtw_wdev_free(if1->rtw_wdev);
+#endif //CONFIG_IOCTL_CFG80211
+
+ rtw_free_drv_sw(if1);
+
+ if(pnetdev)
+ rtw_free_netdev(pnetdev);
+
#ifdef CONFIG_PLATFORM_RTD2880B
- DBG_8192C("wlan link up\n");
- rtd2885_wlan_netlink_sendMsg("linkup", "8712");
+ DBG_871X("wlan link down\n");
+ rtd2885_wlan_netlink_sendMsg("linkdown", "8712");
#endif
+}
+
+/*
+ * drv_init() - a device potentially for us
+ *
+ * notes: drv_init() is called when the bus driver has located a card for us to support.
+ * We accept the new device by returning 0.
+*/
+
+_adapter *rtw_sw_export = NULL;
+
+static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device_id *did)
+{
+ int i;
+ uint status = _FAIL;
+ _adapter *if1 = NULL, *if2 = NULL;
+ struct dvobj_priv *dvobj = NULL;
+
+
+ RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_init\n"));
+
+
+ //step 0.
+ process_spec_devid(did);
+
+ /* Initialize dvobj_priv */
+ if ((dvobj = usb_dvobj_init(pusb_intf)) == NULL) {
+ RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("initialize device object priv Failed!\n"));
+ goto exit;
+ }
+
+ /* Initialize if1 */
+ if ((if1 = rtw_usb_if1_init(dvobj, pusb_intf, did)) == NULL) {
+ DBG_871X("rtw_usb_if1_init Failed!\n");
+ goto free_dvobj;
+ }
+
+ /* Initialize if2 */
+#ifdef CONFIG_CONCURRENT_MODE
+ if((if2 = rtw_drv_if2_init(if1, usb_set_intf_ops)) == NULL) {
+ goto free_if1;
+ }
+#ifdef CONFIG_MULTI_VIR_IFACES
+ for(i=0; i<if1->registrypriv.ext_iface_num;i++)
+ {
+ if(rtw_drv_add_vir_if(if1, usb_set_intf_ops) == NULL)
+ {
+ DBG_871X("rtw_drv_add_iface failed! (%d)\n", i);
+ goto free_if1;
+ }
+ }
+#endif //CONFIG_MULTI_VIR_IFACES
+#endif
+
+#ifdef CONFIG_INTEL_PROXIM
+ rtw_sw_export=if1;
+#endif
#ifdef CONFIG_GLOBAL_UI_PID
- if(ui_pid[1]!=0) {
+ if (ui_pid[1]!=0) {
DBG_871X("ui_pid[1]:%d\n",ui_pid[1]);
rtw_signal_process(ui_pid[1], SIGUSR2);
}
#endif
-#ifdef CONFIG_INTEL_PROXIM
- rtw_sw_export=padapter;
-#endif
-
- DBG_8192C("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
- ,padapter->bDriverStopped
- ,padapter->bSurpriseRemoved
- ,padapter->bup
- ,padapter->hw_init_completed
- );
- return 0;
+ //dev_alloc_name && register_netdev
+ if((status = rtw_drv_register_netdev(if1)) != _SUCCESS) {
+ goto free_if1;
+ }
-error:
+#ifdef CONFIG_HOSTAPD_MLME
+ hostapd_mode_init(if1);
+#endif
- usb_put_dev(interface_to_usbdev(pusb_intf));//decrease the reference count of the usb device structure if driver fail on initialzation
+#ifdef CONFIG_PLATFORM_RTD2880B
+ DBG_871X("wlan link up\n");
+ rtd2885_wlan_netlink_sendMsg("linkup", "8712");
+#endif
- usb_set_intfdata(pusb_intf, NULL);
+#ifdef RTK_DMP_PLATFORM
+ rtw_proc_init_one(if1->pnetdev);
+#endif
- usb_dvobj_deinit(padapter);
-
- if (pnetdev)
- {
- //unregister_netdev(pnetdev);
- rtw_free_netdev(pnetdev);
- }
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-871x_drv - drv_init, success!\n"));
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-871x_usb - drv_init, fail!\n"));
- //DBG_8192C("-871x_usb - drv_init, fail!\n");
+ status = _SUCCESS;
- return -ENODEV;
+free_if1:
+ if (status != _SUCCESS && if1) {
+ rtw_usb_if1_deinit(if1);
+ }
+free_dvobj:
+ if (status != _SUCCESS)
+ usb_dvobj_deinit(pusb_intf);
+exit:
+ return status == _SUCCESS?0:-ENODEV;
}
/*
@@ -1335,125 +1468,70 @@ error:
//rmmod module & unplug(SurpriseRemoved) will call r871xu_dev_remove() => how to recognize both
static void rtw_dev_remove(struct usb_interface *pusb_intf)
{
- struct net_device *pnetdev=usb_get_intfdata(pusb_intf);
- _adapter *padapter = (_adapter*)rtw_netdev_priv(pnetdev);
- struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
- u8 bResetDevice = _FALSE;
+ struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
+ _adapter *padapter = dvobj->if1;
_func_exit_;
- usb_set_intfdata(pusb_intf, NULL);
-
- if(padapter)
- {
-
-#ifdef CONFIG_IOCTL_CFG80211
- struct wireless_dev *wdev = padapter->rtw_wdev;
-#endif //CONFIG_IOCTL_CFG80211
-
- DBG_8192C("+rtw_dev_remove\n");
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+dev_remove()\n"));
-#if defined(CONFIG_HAS_EARLYSUSPEND ) || defined(CONFIG_ANDROID_POWER)
- rtw_unregister_early_suspend(&padapter->pwrctrlpriv);
-#endif
- LeaveAllPowerSaveMode(padapter);
+ DBG_871X("+rtw_dev_remove\n");
+ RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+dev_remove()\n"));
- if(check_fwstate(pmlmepriv, _FW_LINKED))
- disconnect_hdl(padapter, NULL);
+ dvobj->processing_dev_remove = _TRUE;
- if(drvpriv.drv_registered == _TRUE)
- {
- //DBG_8192C("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
- padapter->bSurpriseRemoved = _TRUE;
- }
- /*else
- {
- //DBG_8192C("r871xu_dev_remove():module removed\n");
- padapter->hw_init_completed = _FALSE;
- }*/
+ rtw_unregister_netdevs(dvobj);
-#ifdef CONFIG_AP_MODE
- free_mlme_ap_info(padapter);
-#ifdef CONFIG_HOSTAPD_MLME
- hostapd_mode_unload(padapter);
-#endif //CONFIG_HOSTAPD_MLME
-#endif //CONFIG_AP_MODE
+ if(usb_drv->drv_registered == _TRUE)
+ {
+ //DBG_871X("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
+ padapter->bSurpriseRemoved = _TRUE;
+ }
+ /*else
+ {
+ //DBG_871X("r871xu_dev_remove():module removed\n");
+ padapter->hw_init_completed = _FALSE;
+ }*/
- if(padapter->DriverState != DRIVER_DISAPPEAR)
- {
- if(pnetdev) {
- unregister_netdev(pnetdev); //will call netdev_close()
-#ifdef CONFIG_PROC_DEBUG
- rtw_proc_remove_one(pnetdev);
+#if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
+ rtw_unregister_early_suspend(&padapter->pwrctrlpriv);
#endif
- }
- }
- rtw_cancel_all_timer(padapter);
-#ifdef CONFIG_WOWLAN
- padapter->pwrctrlpriv.wowlan_mode=_FALSE;
-#endif //CONFIG_WOWLAN
- rtw_dev_unload(padapter);
+ rtw_pm_set_ips(padapter, IPS_NONE);
+ rtw_pm_set_lps(padapter, PS_MODE_ACTIVE);
- DBG_8192C("+r871xu_dev_remove, hw_init_completed=%d\n", padapter->hw_init_completed);
+ LeaveAllPowerSaveMode(padapter);
- //Modify condition for 92DU DMDP 2010.11.18, by Thomas
- //move code to here, avoid access null pointer. 2011.05.25.
- if((pdvobjpriv->NumInterfaces != 2) || (pdvobjpriv->InterfaceNumber == 1))
- bResetDevice = _TRUE;
+#ifdef CONFIG_CONCURRENT_MODE
+#ifdef CONFIG_MULTI_VIR_IFACES
+ rtw_drv_stop_vir_ifaces(dvobj);
+#endif //CONFIG_MULTI_VIR_IFACES
+ rtw_drv_if2_stop(dvobj->if2);
+#endif //CONFIG_CONCURRENT_MODE
- //s6.
- if(padapter->dvobj_deinit)
- {
- padapter->dvobj_deinit(padapter);
- }
- else
- {
- RT_TRACE(_module_hci_intfs_c_,_drv_err_,("Initialize hcipriv.hci_priv_init error!!!\n"));
- }
+ rtw_usb_if1_deinit(padapter);
- //after rtw_free_drv_sw(), padapter has beed freed, don't refer to it.
- rtw_free_drv_sw(padapter);
-
-#ifdef CONFIG_IOCTL_CFG80211
- rtw_wdev_free(wdev);
-#endif //CONFIG_IOCTL_CFG80211
-
- }
+#ifdef CONFIG_CONCURRENT_MODE
+#ifdef CONFIG_MULTI_VIR_IFACES
+ rtw_drv_free_vir_ifaces(dvobj);
+#endif //CONFIG_MULTI_VIR_IFACES
+ rtw_drv_if2_free(dvobj->if2);
+#endif //CONFIG_CONCURRENT_MODE
- usb_put_dev(interface_to_usbdev(pusb_intf));//decrease the reference count of the usb device structure when disconnect
+ usb_dvobj_deinit(pusb_intf);
- //If we didn't unplug usb dongle and remove/insert modlue, driver fails on sitesurvey for the first time when device is up .
- //Reset usb port for sitesurvey fail issue. 2009.8.13, by Thomas
- if(_TRUE == bResetDevice)
- {
- if(interface_to_usbdev(pusb_intf)->state != USB_STATE_NOTATTACHED)
- {
- DBG_8192C("usb attached..., try to reset usb device\n");
- usb_reset_device(interface_to_usbdev(pusb_intf));
- }
- }
-
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-dev_remove()\n"));
- DBG_8192C("-r871xu_dev_remove, done\n");
+ DBG_871X("-r871xu_dev_remove, done\n");
-#ifdef CONFIG_PLATFORM_RTD2880B
- DBG_8192C("wlan link down\n");
- rtd2885_wlan_netlink_sendMsg("linkdown", "8712");
-#endif
-#ifdef CONFIG_INTEL_PROXIM
+
+#ifdef CONFIG_INTEL_PROXIM
rtw_sw_export=NULL;
#endif
- #ifdef DBG_MEM_ALLOC
- rtw_dump_mem_stat ();
- #endif
+
_func_exit_;
return;
}
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
extern int console_suspend_enabled;
#endif
@@ -1466,56 +1544,108 @@ static int __init rtw_drv_entry(void)
tmp |= 0x55;
writel(tmp,(volatile unsigned int*)0xb801a608);//write dummy register for 1055
#endif
+#ifdef CONFIG_PLATFORM_ARM_SUNxI
+#ifndef CONFIG_RTL8723A
+ int ret = 0;
+ /* ----------get usb_wifi_usbc_num------------- */
+ ret = script_parser_fetch("usb_wifi_para", "usb_wifi_usbc_num", (int *)&usb_wifi_host, 64);
+ if(ret != 0){
+ printk("ERR: script_parser_fetch usb_wifi_usbc_num failed\n");
+ ret = -ENOMEM;
+ return ret;
+ }
+ printk("sw_usb_enable_hcd: usbc_num = %d\n", usb_wifi_host);
+ sw_usb_enable_hcd(usb_wifi_host);
+#endif //CONFIG_RTL8723A
+#endif //CONFIG_PLATFORM_ARM_SUNxI
+
+#ifdef CONFIG_PLATFORM_ARM_SUN6I
+ script_item_value_type_e type;
+
+ type = script_get_item("wifi_para", "wifi_usbc_id", &item);
+ if(SCIRPT_ITEM_VALUE_TYPE_INT != type){
+ printk("ERR: script_get_item wifi_usbc_id failed\n");
+ return -ENOMEM;
+ }
+ printk("sw_usb_enable_hcd: usbc_num = %d\n", item.val);
+ wifi_pm_power(1);
+ mdelay(10);
+ sw_usb_enable_hcd(item.val);
+#endif //CONFIG_PLATFORM_ARM_SUN6I
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_entry\n"));
- DBG_871X("rtw driver version=%s \n", DRIVERVERSION);
- DBG_871X("Build at: %s %s\n", __DATE__, __TIME__);
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
+ DBG_871X(DRV_NAME " driver version=%s\n", DRIVERVERSION);
+ DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
//console_suspend_enabled=0;
-#endif
+#endif
rtw_suspend_lock_init();
- drvpriv.drv_registered = _TRUE;
- return usb_register(&drvpriv.rtw_usb_drv);
+ usb_drv->drv_registered = _TRUE;
+ return usb_register(&usb_drv->usbdrv);
}
static void __exit rtw_drv_halt(void)
{
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_halt\n"));
- DBG_8192C("+rtw_drv_halt\n");
+ DBG_871X("+rtw_drv_halt\n");
+
+ usb_drv->drv_registered = _FALSE;
+ usb_deregister(&usb_drv->usbdrv);
+
+#ifdef CONFIG_PLATFORM_ARM_SUNxI
+#ifndef CONFIG_RTL8723A
+ printk("sw_usb_disable_hcd: usbc_num = %d\n", usb_wifi_host);
+ sw_usb_disable_hcd(usb_wifi_host);
+#endif //ifndef CONFIG_RTL8723A
+#endif //CONFIG_PLATFORM_ARM_SUNxI
+#ifdef CONFIG_PLATFORM_ARM_SUN6I
+ sw_usb_disable_hcd(item.val);
+ wifi_pm_power(0);
+#endif
rtw_suspend_lock_uninit();
+ DBG_871X("-rtw_drv_halt\n");
- drvpriv.drv_registered = _FALSE;
- usb_deregister(&drvpriv.rtw_usb_drv);
- DBG_8192C("-rtw_drv_halt\n");
+ rtw_mstat_dump();
}
module_init(rtw_drv_entry);
module_exit(rtw_drv_halt);
+#ifdef CONFIG_WOWLAN
+#ifdef CONFIG_WOWLAN_MANUAL
+
+int rtw_resume_toshiba(PADAPTER Adapter)
+{
+ struct dvobj_priv *pdvobjpriv;
+ pdvobjpriv = adapter_to_dvobj(Adapter);
-/*
-init (driver module)-> r8712u_drv_entry
-probe (sd device)-> r871xu_drv_init(dev_init)
-open (net_device) ->netdev_open
-close (net_device) ->netdev_close
-remove (sd device) ->r871xu_dev_remove
-exit (driver module)-> r8712u_drv_halt
-*/
+ rtw_resume(pdvobjpriv->pusbintf);
+ return 0;
+}
+int rtw_suspend_toshiba(PADAPTER Adapter)
+{
+ pm_message_t msg;
+ struct dvobj_priv *pdvobjpriv;
+ pdvobjpriv = adapter_to_dvobj(Adapter);
+ msg.event=0;
+ //for Toshiba only, they should call rtw_suspend before suspend
+ rtw_suspend(pdvobjpriv->pusbintf, msg);
+ return 0;
+}
+EXPORT_SYMBOL(rtw_suspend_toshiba);
+EXPORT_SYMBOL(rtw_resume_toshiba);
+#endif //CONFIG_WOWLAN_MANUAL
+#endif //CONFIG_WOWLAN
-/*
-r8711s_drv_entry()
-r8711u_drv_entry()
-r8712s_drv_entry()
-r8712u_drv_entry()
-*/
-#ifdef CONFIG_INTEL_PROXIM
+#ifdef CONFIG_INTEL_PROXIM
_adapter *rtw_usb_get_sw_pointer(void)
{
return rtw_sw_export;
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_ops_linux.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_ops_linux.c
new file mode 100644
index 0000000..f54cfb4
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_ops_linux.c
@@ -0,0 +1,649 @@
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *******************************************************************************/
+#define _USB_OPS_LINUX_C_
+
+#include <drv_types.h>
+#include <usb_ops_linux.h>
+#include <rtw_sreset.h>
+
+#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
+static void _usbctrl_vendorreq_async_callback(struct urb *urb, struct pt_regs *regs)
+{
+ if (urb) {
+ if (urb->context) {
+ rtw_mfree(urb->context);
+ }
+ usb_free_urb(urb);
+ }
+}
+
+static int _usbctrl_vendorreq_async_write(struct usb_device *udev, u8 request,
+ u16 value, u16 index, void *pdata, u16 len, u8 requesttype)
+{
+ int rc;
+ unsigned int pipe;
+ u8 reqtype;
+ struct usb_ctrlrequest *dr;
+ struct urb *urb;
+ struct rtl819x_async_write_data {
+ u8 data[VENDOR_CMD_MAX_DATA_LEN];
+ struct usb_ctrlrequest dr;
+ } *buf;
+
+
+ if (requesttype == VENDOR_READ) {
+ pipe = usb_rcvctrlpipe(udev, 0);//read_in
+ reqtype = REALTEK_USB_VENQT_READ;
+ }
+ else {
+ pipe = usb_sndctrlpipe(udev, 0);//write_out
+ reqtype = REALTEK_USB_VENQT_WRITE;
+ }
+
+ buf = (struct rtl819x_async_write_data *)rtw_zmalloc(sizeof(*buf));
+ if (!buf) {
+ rc = -ENOMEM;
+ goto exit;
+ }
+
+ urb = usb_alloc_urb(0, GFP_ATOMIC);
+ if (!urb) {
+ rtw_mfree((u8*)buf, sizeof(*buf));
+ rc = -ENOMEM;
+ goto exit;
+ }
+
+ dr = &buf->dr;
+
+ dr->bRequestType = reqtype;
+ dr->bRequest = request;
+ dr->wValue = cpu_to_le16(value);
+ dr->wIndex = cpu_to_le16(index);
+ dr->wLength = cpu_to_le16(len);
+
+ _rtw_memcpy(buf, pdata, len);
+
+ usb_fill_control_urb(urb, udev, pipe, (unsigned char *)dr, buf, len,
+ _usbctrl_vendorreq_async_callback, buf);
+
+ rc = usb_submit_urb(urb, GFP_ATOMIC);
+ if (rc < 0) {
+ rtw_mfree((u8*)buf, sizeof(*buf));
+ usb_free_urb(urb);
+ }
+
+exit:
+ return rc;
+}
+
+int usb_write_async(struct usb_device *udev, u32 addr, void *pdata, u16 len)
+{
+ u8 request;
+ u8 requesttype;
+ u16 wvalue;
+ u16 index;
+
+ int ret;
+
+ requesttype = VENDOR_WRITE;//write_out
+ request = REALTEK_USB_VENQT_CMD_REQ;
+ index = REALTEK_USB_VENQT_CMD_IDX;//n/a
+
+ wvalue = (u16)(addr&0x0000ffff);
+
+ ret = _usbctrl_vendorreq_async_write(udev, request, wvalue, index, pdata, len, requesttype);
+
+ return ret;
+}
+
+int usb_async_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
+{
+ u8 data;
+ int ret;
+ struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
+ struct usb_device *udev=pdvobjpriv->pusbdev;
+
+ _func_enter_;
+ data = val;
+ ret = usb_write_async(udev, addr, &data, 1);
+ _func_exit_;
+
+ return ret;
+}
+
+int usb_async_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
+{
+ u16 data;
+ int ret;
+ struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
+ struct usb_device *udev=pdvobjpriv->pusbdev;
+
+ _func_enter_;
+ data = val;
+ ret = usb_write_async(udev, addr, &data, 2);
+ _func_exit_;
+
+ return ret;
+}
+
+int usb_async_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
+{
+ u32 data;
+ int ret;
+ struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)pintfhdl->pintf_dev;
+ struct usb_device *udev=pdvobjpriv->pusbdev;
+
+ _func_enter_;
+ data = val;
+ ret = usb_write_async(udev, addr, &data, 4);
+ _func_exit_;
+
+ return ret;
+}
+#endif /* CONFIG_USB_SUPPORT_ASYNC_VDN_REQ */
+
+unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr)
+{
+ unsigned int pipe=0;
+ int ep_num=0;
+ _adapter *padapter = pdvobj->if1;
+ struct usb_device *pusbd = pdvobj->pusbdev;
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+
+ if (addr == RECV_BULK_IN_ADDR) {
+ pipe=usb_rcvbulkpipe(pusbd, pHalData->RtBulkInPipe);
+
+ } else if (addr == RECV_INT_IN_ADDR) {
+ pipe=usb_rcvbulkpipe(pusbd, pHalData->RtIntInPipe);
+
+ } else if (addr < HW_QUEUE_ENTRY) {
+ ep_num = pHalData->Queue2EPNum[addr];
+ pipe = usb_sndbulkpipe(pusbd, ep_num);
+ }
+
+ return pipe;
+}
+
+struct zero_bulkout_context{
+ void *pbuf;
+ void *purb;
+ void *pirp;
+ void *padapter;
+};
+
+static void usb_bulkout_zero_complete(struct urb *purb, struct pt_regs *regs)
+{
+ struct zero_bulkout_context *pcontext = (struct zero_bulkout_context *)purb->context;
+
+ //DBG_8192C("+usb_bulkout_zero_complete\n");
+
+ if(pcontext)
+ {
+ if(pcontext->pbuf)
+ {
+ rtw_mfree(pcontext->pbuf, sizeof(int));
+ }
+
+ if(pcontext->purb && (pcontext->purb==purb))
+ {
+ usb_free_urb(pcontext->purb);
+ }
+
+
+ rtw_mfree((u8*)pcontext, sizeof(struct zero_bulkout_context));
+ }
+
+
+}
+
+static u32 usb_bulkout_zero(struct intf_hdl *pintfhdl, u32 addr)
+{
+ int pipe, status, len;
+ u32 ret;
+ unsigned char *pbuf;
+ struct zero_bulkout_context *pcontext;
+ PURB purb = NULL;
+ _adapter *padapter = (_adapter *)pintfhdl->padapter;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
+ struct usb_device *pusbd = pdvobj->pusbdev;
+
+ //DBG_871X("%s\n", __func__);
+
+
+ if((padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx))
+ {
+ return _FAIL;
+ }
+
+
+ pcontext = (struct zero_bulkout_context *)rtw_zmalloc(sizeof(struct zero_bulkout_context));
+
+ pbuf = (unsigned char *)rtw_zmalloc(sizeof(int));
+ purb = usb_alloc_urb(0, GFP_ATOMIC);
+
+ len = 0;
+ pcontext->pbuf = pbuf;
+ pcontext->purb = purb;
+ pcontext->pirp = NULL;
+ pcontext->padapter = padapter;
+
+
+ //translate DMA FIFO addr to pipehandle
+ //pipe = ffaddr2pipehdl(pdvobj, addr);
+
+ usb_fill_bulk_urb(purb, pusbd, pipe,
+ pbuf,
+ len,
+ usb_bulkout_zero_complete,
+ pcontext);//context is pcontext
+
+ status = usb_submit_urb(purb, GFP_ATOMIC);
+
+ if (!status)
+ {
+ ret= _SUCCESS;
+ }
+ else
+ {
+ ret= _FAIL;
+ }
+
+
+ return _SUCCESS;
+
+}
+
+void usb_read_mem(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
+{
+
+}
+
+void usb_write_mem(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
+{
+
+}
+
+
+void usb_read_port_cancel(struct intf_hdl *pintfhdl)
+{
+ int i;
+ struct recv_buf *precvbuf;
+ _adapter *padapter = pintfhdl->padapter;
+ precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf;
+
+ DBG_871X("%s\n", __func__);
+
+ padapter->bReadPortCancel = _TRUE;
+
+ for (i=0; i < NR_RECVBUFF ; i++) {
+
+ precvbuf->reuse = _TRUE;
+ if (precvbuf->purb) {
+ //DBG_8192C("usb_read_port_cancel : usb_kill_urb \n");
+ usb_kill_urb(precvbuf->purb);
+ }
+ precvbuf++;
+ }
+
+#ifdef CONFIG_USB_INTERRUPT_IN_PIPE
+ usb_kill_urb(padapter->recvpriv.int_in_urb);
+#endif
+}
+
+static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)
+{
+ _irqL irqL;
+ int i;
+ struct xmit_buf *pxmitbuf = (struct xmit_buf *)purb->context;
+ //struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitbuf->priv_data;
+ //_adapter *padapter = pxmitframe->padapter;
+ _adapter *padapter = pxmitbuf->padapter;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ //struct pkt_attrib *pattrib = &pxmitframe->attrib;
+
+_func_enter_;
+
+ switch(pxmitbuf->flags)
+ {
+ case VO_QUEUE_INX:
+ pxmitpriv->voq_cnt--;
+ break;
+ case VI_QUEUE_INX:
+ pxmitpriv->viq_cnt--;
+ break;
+ case BE_QUEUE_INX:
+ pxmitpriv->beq_cnt--;
+ break;
+ case BK_QUEUE_INX:
+ pxmitpriv->bkq_cnt--;
+ break;
+ case HIGH_QUEUE_INX:
+#ifdef CONFIG_AP_MODE
+ rtw_chk_hi_queue_cmd(padapter);
+#endif
+ break;
+ default:
+ break;
+ }
+
+
+/*
+ _enter_critical(&pxmitpriv->lock, &irqL);
+
+ pxmitpriv->txirp_cnt--;
+
+ switch(pattrib->priority)
+ {
+ case 1:
+ case 2:
+ pxmitpriv->bkq_cnt--;
+ //DBG_8192C("pxmitpriv->bkq_cnt=%d\n", pxmitpriv->bkq_cnt);
+ break;
+ case 4:
+ case 5:
+ pxmitpriv->viq_cnt--;
+ //DBG_8192C("pxmitpriv->viq_cnt=%d\n", pxmitpriv->viq_cnt);
+ break;
+ case 6:
+ case 7:
+ pxmitpriv->voq_cnt--;
+ //DBG_8192C("pxmitpriv->voq_cnt=%d\n", pxmitpriv->voq_cnt);
+ break;
+ case 0:
+ case 3:
+ default:
+ pxmitpriv->beq_cnt--;
+ //DBG_8192C("pxmitpriv->beq_cnt=%d\n", pxmitpriv->beq_cnt);
+ break;
+
+ }
+
+ _exit_critical(&pxmitpriv->lock, &irqL);
+
+
+ if(pxmitpriv->txirp_cnt==0)
+ {
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: txirp_cnt== 0, set allrxreturnevt!\n"));
+ _rtw_up_sema(&(pxmitpriv->tx_retevt));
+ }
+*/
+ //rtw_free_xmitframe(pxmitpriv, pxmitframe);
+
+ if(padapter->bSurpriseRemoved || padapter->bDriverStopped ||padapter->bWritePortCancel)
+ {
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)", padapter->bDriverStopped, padapter->bSurpriseRemoved));
+ DBG_8192C("%s(): TX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bWritePortCancel(%d) pxmitbuf->ext_tag(%x) \n",
+ __FUNCTION__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel,pxmitbuf->ext_tag);
+
+ goto check_completion;
+ }
+
+
+ if (purb->status==0) {
+
+ } else {
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete : purb->status(%d) != 0 \n", purb->status));
+ DBG_871X("###=> urb_write_port_complete status(%d)\n",purb->status);
+ if((purb->status==-EPIPE)||(purb->status==-EPROTO))
+ {
+ //usb_clear_halt(pusbdev, purb->pipe);
+ //msleep(10);
+ sreset_set_wifi_error_status(padapter, USB_WRITE_PORT_FAIL);
+ } else if (purb->status == -EINPROGRESS) {
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: EINPROGESS\n"));
+ goto check_completion;
+
+ } else if (purb->status == -ENOENT) {
+ DBG_871X("%s: -ENOENT\n", __func__);
+ goto check_completion;
+
+ } else if (purb->status == -ECONNRESET) {
+ DBG_871X("%s: -ECONNRESET\n", __func__);
+ goto check_completion;
+
+ } else if (purb->status == -ESHUTDOWN) {
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: ESHUTDOWN\n"));
+ padapter->bDriverStopped=_TRUE;
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped=TRUE\n"));
+
+ goto check_completion;
+ }
+ else
+ {
+ padapter->bSurpriseRemoved=_TRUE;
+ DBG_8192C("bSurpriseRemoved=TRUE\n");
+ //rtl8192cu_trigger_gpio_0(padapter);
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bSurpriseRemoved=TRUE\n"));
+
+ goto check_completion;
+ }
+ }
+
+ #ifdef DBG_CONFIG_ERROR_DETECT
+ {
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ pHalData->srestpriv.last_tx_complete_time = rtw_get_current_time();
+ }
+ #endif
+
+check_completion:
+ _enter_critical(&pxmitpriv->lock_sctx, &irqL);
+ rtw_sctx_done_err(&pxmitbuf->sctx,
+ purb->status ? RTW_SCTX_DONE_WRITE_PORT_ERR : RTW_SCTX_DONE_SUCCESS);
+ _exit_critical(&pxmitpriv->lock_sctx, &irqL);
+
+ rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
+
+ //if(rtw_txframes_pending(padapter))
+ {
+ tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
+ }
+
+_func_exit_;
+
+}
+
+u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
+{
+ _irqL irqL;
+ unsigned int pipe;
+ int status;
+ u32 ret = _FAIL, bwritezero = _FALSE;
+ PURB purb = NULL;
+ _adapter *padapter = (_adapter *)pintfhdl->padapter;
+ struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ struct xmit_buf *pxmitbuf = (struct xmit_buf *)wmem;
+ struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitbuf->priv_data;
+ struct usb_device *pusbd = pdvobj->pusbdev;
+ struct pkt_attrib *pattrib = &pxmitframe->attrib;
+
+_func_enter_;
+
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("+usb_write_port\n"));
+
+ if ((padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx)) {
+ #ifdef DBG_TX
+ DBG_871X(" DBG_TX %s:%d bDriverStopped%d, bSurpriseRemoved:%d, pnp_bstop_trx:%d\n",__FUNCTION__, __LINE__
+ ,padapter->bDriverStopped, padapter->bSurpriseRemoved, padapter->pwrctrlpriv.pnp_bstop_trx );
+ #endif
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port:( padapter->bDriverStopped ||padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
+ rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_TX_DENY);
+ goto exit;
+ }
+
+ _enter_critical(&pxmitpriv->lock, &irqL);
+
+ switch(addr)
+ {
+ case VO_QUEUE_INX:
+ pxmitpriv->voq_cnt++;
+ pxmitbuf->flags = VO_QUEUE_INX;
+ break;
+ case VI_QUEUE_INX:
+ pxmitpriv->viq_cnt++;
+ pxmitbuf->flags = VI_QUEUE_INX;
+ break;
+ case BE_QUEUE_INX:
+ pxmitpriv->beq_cnt++;
+ pxmitbuf->flags = BE_QUEUE_INX;
+ break;
+ case BK_QUEUE_INX:
+ pxmitpriv->bkq_cnt++;
+ pxmitbuf->flags = BK_QUEUE_INX;
+ break;
+ case HIGH_QUEUE_INX:
+ pxmitbuf->flags = HIGH_QUEUE_INX;
+ break;
+ default:
+ pxmitbuf->flags = MGT_QUEUE_INX;
+ break;
+ }
+
+ _exit_critical(&pxmitpriv->lock, &irqL);
+
+ purb = pxmitbuf->pxmit_urb[0];
+
+#if 0
+ if(pdvobj->ishighspeed)
+ {
+ if(cnt> 0 && cnt%512 == 0)
+ {
+ //DBG_8192C("ishighspeed, cnt=%d\n", cnt);
+ bwritezero = _TRUE;
+ }
+ }
+ else
+ {
+ if(cnt > 0 && cnt%64 == 0)
+ {
+ //DBG_8192C("cnt=%d\n", cnt);
+ bwritezero = _TRUE;
+ }
+ }
+#endif
+
+ //translate DMA FIFO addr to pipehandle
+ pipe = ffaddr2pipehdl(pdvobj, addr);
+
+#ifdef CONFIG_REDUCE_USB_TX_INT
+ if ( (pxmitpriv->free_xmitbuf_cnt%NR_XMITBUFF == 0)
+ || (pxmitbuf->ext_tag == _TRUE) )
+ {
+ purb->transfer_flags &= (~URB_NO_INTERRUPT);
+ } else {
+ purb->transfer_flags |= URB_NO_INTERRUPT;
+ //DBG_8192C("URB_NO_INTERRUPT ");
+ }
+#endif
+
+
+ usb_fill_bulk_urb(purb, pusbd, pipe,
+ pxmitframe->buf_addr, //= pxmitbuf->pbuf
+ cnt,
+ usb_write_port_complete,
+ pxmitbuf);//context is pxmitbuf
+
+#ifdef CONFIG_USE_USB_BUFFER_ALLOC_TX
+ purb->transfer_dma = pxmitbuf->dma_transfer_addr;
+ purb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
+ purb->transfer_flags |= URB_ZERO_PACKET;
+#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
+
+#if 0
+ if (bwritezero)
+ {
+ purb->transfer_flags |= URB_ZERO_PACKET;
+ }
+#endif
+
+ status = usb_submit_urb(purb, GFP_ATOMIC);
+ if (!status) {
+ #ifdef DBG_CONFIG_ERROR_DETECT
+ {
+ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
+ pHalData->srestpriv.last_tx_time = rtw_get_current_time();
+ }
+ #endif
+ } else {
+ rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_WRITE_PORT_ERR);
+ DBG_871X("usb_write_port, status=%d\n", status);
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port(): usb_submit_urb, status=%x\n", status));
+
+ switch (status) {
+ case -ENODEV:
+ padapter->bDriverStopped=_TRUE;
+ break;
+ default:
+ break;
+ }
+ goto exit;
+ }
+
+ ret= _SUCCESS;
+
+// Commented by Albert 2009/10/13
+// We add the URB_ZERO_PACKET flag to urb so that the host will send the zero packet automatically.
+/*
+ if(bwritezero == _TRUE)
+ {
+ usb_bulkout_zero(pintfhdl, addr);
+ }
+*/
+
+ RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("-usb_write_port\n"));
+
+exit:
+ if (ret != _SUCCESS)
+ rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
+_func_exit_;
+ return ret;
+
+}
+
+void usb_write_port_cancel(struct intf_hdl *pintfhdl)
+{
+ int i, j;
+ _adapter *padapter = pintfhdl->padapter;
+ struct xmit_buf *pxmitbuf = (struct xmit_buf *)padapter->xmitpriv.pxmitbuf;
+
+ DBG_871X("%s \n", __func__);
+
+ padapter->bWritePortCancel = _TRUE;
+
+ for (i=0; i<NR_XMITBUFF; i++) {
+ for (j=0; j<8; j++) {
+ if (pxmitbuf->pxmit_urb[j]) {
+ usb_kill_urb(pxmitbuf->pxmit_urb[j]);
+ }
+ }
+ pxmitbuf++;
+ }
+
+ pxmitbuf = (struct xmit_buf*)padapter->xmitpriv.pxmit_extbuf;
+ for (i = 0; i < NR_XMIT_EXTBUFF; i++) {
+ for (j=0; j<8; j++) {
+ if(pxmitbuf->pxmit_urb[j]) {
+ usb_kill_urb(pxmitbuf->pxmit_urb[j]);
+ }
+ }
+ pxmitbuf++;
+ }
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/xmit_linux.c b/drivers/net/wireless/rtl8192cu/os_dep/linux/xmit_linux.c
index 02eec93..9105e29 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/xmit_linux.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/xmit_linux.c
@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
-******************************************************************************/
+ ******************************************************************************/
#define _XMIT_OSDEP_C_
#include <drv_conf.h>
@@ -98,11 +98,11 @@ void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
const struct iphdr *ip = ip_hdr(skb);
if (ip->protocol == IPPROTO_TCP) {
// TCP checksum offload by HW
- DBG_8192C("CHECKSUM_PARTIAL TCP\n");
+ DBG_871X("CHECKSUM_PARTIAL TCP\n");
pattrib->hw_tcp_csum = 1;
//skb_checksum_help(skb);
} else if (ip->protocol == IPPROTO_UDP) {
- //DBG_8192C("CHECKSUM_PARTIAL UDP\n");
+ //DBG_871X("CHECKSUM_PARTIAL UDP\n");
#if 1
skb_checksum_help(skb);
#else
@@ -111,12 +111,12 @@ void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
udp->check = 0;
#endif
} else {
- DBG_8192C("%s-%d TCP CSUM offload Error!!\n", __FUNCTION__, __LINE__);
+ DBG_871X("%s-%d TCP CSUM offload Error!!\n", __FUNCTION__, __LINE__);
WARN_ON(1); /* we need a WARN() */
}
}
else { // IP fragmentation case
- DBG_8192C("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __FUNCTION__, __LINE__);
+ DBG_871X("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __FUNCTION__, __LINE__);
skb_checksum_help(skb);
}
}
@@ -128,11 +128,11 @@ int rtw_os_xmit_resource_alloc(_adapter *padapter, struct xmit_buf *pxmitbuf,u32
{
#ifdef CONFIG_USB_HCI
int i;
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct usb_device *pusbd = pdvobjpriv->pusbdev;
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_TX
- pxmitbuf->pallocated_buf = rtw_usb_buffer_alloc(pusbd, (size_t)alloc_sz, GFP_ATOMIC, &pxmitbuf->dma_transfer_addr);
+ pxmitbuf->pallocated_buf = rtw_usb_buffer_alloc(pusbd, (size_t)alloc_sz, &pxmitbuf->dma_transfer_addr);
pxmitbuf->pbuf = pxmitbuf->pallocated_buf;
if(pxmitbuf->pallocated_buf == NULL)
return _FAIL;
@@ -154,13 +154,13 @@ int rtw_os_xmit_resource_alloc(_adapter *padapter, struct xmit_buf *pxmitbuf,u32
pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL);
if(pxmitbuf->pxmit_urb[i] == NULL)
{
- DBG_8192C("pxmitbuf->pxmit_urb[i]==NULL");
+ DBG_871X("pxmitbuf->pxmit_urb[i]==NULL");
return _FAIL;
}
}
#endif
-#ifdef CONFIG_PCI_HCI
+#if defined(CONFIG_PCI_HCI) || defined(CONFIG_SDIO_HCI)
pxmitbuf->pallocated_buf = rtw_zmalloc(alloc_sz);
if (pxmitbuf->pallocated_buf == NULL)
{
@@ -177,7 +177,7 @@ void rtw_os_xmit_resource_free(_adapter *padapter, struct xmit_buf *pxmitbuf,u32
{
#ifdef CONFIG_USB_HCI
int i;
- struct dvobj_priv *pdvobjpriv = &padapter->dvobjpriv;
+ struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
struct usb_device *pusbd = pdvobjpriv->pusbdev;
@@ -193,14 +193,14 @@ void rtw_os_xmit_resource_free(_adapter *padapter, struct xmit_buf *pxmitbuf,u32
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_TX
rtw_usb_buffer_free(pusbd, (size_t)free_sz, pxmitbuf->pallocated_buf, pxmitbuf->dma_transfer_addr);
pxmitbuf->pallocated_buf = NULL;
- pxmitbuf->dma_transfer_addr = 0;
+ pxmitbuf->dma_transfer_addr = 0;
#else // CONFIG_USE_USB_BUFFER_ALLOC_TX
if(pxmitbuf->pallocated_buf)
rtw_mfree(pxmitbuf->pallocated_buf, free_sz);
#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
#endif
-#ifdef CONFIG_PCI_HCI
+#if defined(CONFIG_PCI_HCI) || defined(CONFIG_SDIO_HCI)
if(pxmitbuf->pallocated_buf)
rtw_mfree(pxmitbuf->pallocated_buf, free_sz);
#endif
@@ -208,39 +208,58 @@ void rtw_os_xmit_resource_free(_adapter *padapter, struct xmit_buf *pxmitbuf,u32
void rtw_os_pkt_complete(_adapter *padapter, _pkt *pkt)
{
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ u16 queue;
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+
+ queue = skb_get_queue_mapping(pkt);
+ if(__netif_subqueue_stopped(padapter->pnetdev, queue) &&
+ (pxmitpriv->hwxmits[queue].accnt < NR_XMITFRAME/2))
+ {
+ netif_wake_subqueue(padapter->pnetdev, queue);
+ }
+#else
if (netif_queue_stopped(padapter->pnetdev))
netif_wake_queue(padapter->pnetdev);
+#endif
- dev_kfree_skb_any(pkt);
+ rtw_skb_free(pkt);
}
void rtw_os_xmit_complete(_adapter *padapter, struct xmit_frame *pxframe)
{
if(pxframe->pkt)
- {
- //RT_TRACE(_module_xmit_osdep_c_,_drv_err_,("linux : rtw_os_xmit_complete, dev_kfree_skb()\n"));
-
- //dev_kfree_skb_any(pxframe->pkt);
rtw_os_pkt_complete(padapter, pxframe->pkt);
-
- }
pxframe->pkt = NULL;
}
void rtw_os_xmit_schedule(_adapter *padapter)
{
+#ifdef CONFIG_SDIO_HCI
+ if(!padapter)
+ return;
+
+ if (rtw_txframes_pending(padapter))
+ _rtw_up_sema(&padapter->xmitpriv.xmit_sema);
+#else
_irqL irqL;
- struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ struct xmit_priv *pxmitpriv;
+
+ if(!padapter)
+ return;
+
+ pxmitpriv = &padapter->xmitpriv;
_enter_critical_bh(&pxmitpriv->lock, &irqL);
-
+
if(rtw_txframes_pending(padapter))
{
tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
}
_exit_critical_bh(&pxmitpriv->lock, &irqL);
+#endif
}
@@ -254,6 +273,12 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
_list *phead, *plist;
struct sk_buff *newskb;
struct sta_info *psta = NULL;
+ u8 chk_alive_num = 0;
+ char chk_alive_list[NUM_STA];
+ u8 bc_addr[6]={0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+ u8 null_addr[6]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+
+ int i;
s32 res;
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
@@ -261,45 +286,54 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
plist = get_next(phead);
//free sta asoc_queue
- while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
- {
+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
+ int stainfo_offset;
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
-
plist = get_next(plist);
- /* avoid come from STA1 and send back STA1 */
- if (!memcmp(psta->hwaddr, &skb->data[6], 6))
- continue;
+ stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
+ if (stainfo_offset_valid(stainfo_offset)) {
+ chk_alive_list[chk_alive_num++] = stainfo_offset;
+ }
+ }
+ _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
+
+ for (i = 0; i < chk_alive_num; i++) {
+ psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
+
+ /* avoid come from STA1 and send back STA1 */
+ if (_rtw_memcmp(psta->hwaddr, &skb->data[6], 6) == _TRUE
+ || _rtw_memcmp(psta->hwaddr, null_addr, 6) == _TRUE
+ || _rtw_memcmp(psta->hwaddr, bc_addr, 6) == _TRUE
+ )
+ continue;
+
+ newskb = rtw_skb_copy(skb);
- newskb = skb_copy(skb, GFP_ATOMIC);
-
if (newskb) {
- memcpy(newskb->data, psta->hwaddr, 6);
+ _rtw_memcpy(newskb->data, psta->hwaddr, 6);
res = rtw_xmit(padapter, &newskb);
if (res < 0) {
DBG_871X("%s()-%d: rtw_xmit() return error!\n", __FUNCTION__, __LINE__);
pxmitpriv->tx_drop++;
- dev_kfree_skb_any(newskb);
+ rtw_skb_free(newskb);
} else
pxmitpriv->tx_pkts++;
} else {
- DBG_871X("%s-%d: skb_copy() failed!\n", __FUNCTION__, __LINE__);
+ DBG_871X("%s-%d: rtw_skb_copy() failed!\n", __FUNCTION__, __LINE__);
pxmitpriv->tx_drop++;
-
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- //dev_kfree_skb_any(skb);
+ //rtw_skb_free(skb);
return _FALSE; // Caller shall tx this multicast frame via normal way.
}
}
- _exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
- dev_kfree_skb_any(skb);
+ rtw_skb_free(skb);
return _TRUE;
}
#endif // CONFIG_TX_MCAST2UNI
-int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev)
+int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev)
{
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
@@ -308,7 +342,9 @@ int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev)
extern int rtw_mc2u_disable;
#endif // CONFIG_TX_MCAST2UNI
s32 res = 0;
- int ret = 0;
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ u16 queue;
+#endif
_func_enter_;
@@ -322,11 +358,22 @@ _func_enter_;
goto drop_packet;
}
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35))
+ queue = skb_get_queue_mapping(pkt);
+ /* No free space for Tx, tx_worker is too slow */
+ if (pxmitpriv->hwxmits[queue].accnt > NR_XMITFRAME/2) {
+ //DBG_871X("%s(): stop netif_subqueue[%d]\n", __FUNCTION__, queue);
+ netif_stop_subqueue(padapter->pnetdev, queue);
+ return NETDEV_TX_BUSY;
+ }
+#endif
+
#ifdef CONFIG_TX_MCAST2UNI
if ( !rtw_mc2u_disable
&& check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE
&& ( IP_MCAST_MAC(pkt->data)
|| ICMPV6_MCAST_MAC(pkt->data) )
+ && (padapter->registrypriv.wifi_spec == 0)
)
{
if ( pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME/4) ) {
@@ -348,14 +395,14 @@ _func_enter_;
#endif
goto drop_packet;
}
- pxmitpriv->tx_pkts++;
+ pxmitpriv->tx_pkts++;
RT_TRACE(_module_xmit_osdep_c_, _drv_info_, ("rtw_xmit_entry: tx_pkts=%d\n", (u32)pxmitpriv->tx_pkts));
goto exit;
drop_packet:
pxmitpriv->tx_drop++;
- dev_kfree_skb_any(pkt);
+ rtw_skb_free(pkt);
RT_TRACE(_module_xmit_osdep_c_, _drv_notice_, ("rtw_xmit_entry: drop, tx_drop=%d\n", (u32)pxmitpriv->tx_drop));
exit:
@@ -365,3 +412,10 @@ _func_exit_;
return 0;
}
+int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev)
+{
+ if (pkt)
+ rtw_mstat_update(MSTAT_TYPE_SKB, MSTAT_ALLOC_SUCCESS, pkt->truesize);
+ return _rtw_xmit_entry(pkt, pnetdev);
+}
+
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/osdep_service.c b/drivers/net/wireless/rtl8192cu/os_dep/osdep_service.c
index 343cd82..e73a068 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/osdep_service.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/osdep_service.c
@@ -25,8 +25,13 @@
#include <osdep_service.h>
#include <drv_types.h>
#include <recv_osdep.h>
+#ifdef PLATFORM_LINUX
#include <linux/vmalloc.h>
-
+#endif
+#ifdef PLATFORM_FREEBSD
+#include <sys/malloc.h>
+#include <sys/time.h>
+#endif /* PLATFORM_FREEBSD */
#ifdef RTK_DMP_PLATFORM
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12))
#include <linux/pageremap.h>
@@ -66,6 +71,27 @@ inline int RTW_STATUS_CODE(int error_code){
}
#endif
+u32 rtw_atoi(u8* s)
+{
+
+ int num=0,flag=0;
+ int i;
+ for(i=0;i<=strlen(s);i++)
+ {
+ if(s[i] >= '0' && s[i] <= '9')
+ num = num * 10 + s[i] -'0';
+ else if(s[0] == '-' && i==0)
+ flag =1;
+ else
+ break;
+ }
+
+ if(flag == 1)
+ num = num * -1;
+
+ return(num);
+
+}
inline u8* _rtw_vmalloc(u32 sz)
{
@@ -73,6 +99,9 @@ inline u8* _rtw_vmalloc(u32 sz)
#ifdef PLATFORM_LINUX
pbuf = vmalloc(sz);
#endif
+#ifdef PLATFORM_FREEBSD
+ pbuf = malloc(sz,M_DEVBUF,M_NOWAIT);
+#endif
#ifdef PLATFORM_WINDOWS
NdisAllocateMemoryWithTag(&pbuf,sz, RT_TAG);
@@ -98,7 +127,9 @@ inline u8* _rtw_zvmalloc(u32 sz)
if (pbuf != NULL)
memset(pbuf, 0, sz);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ pbuf = malloc(sz,M_DEVBUF,M_ZERO|M_NOWAIT);
+#endif
#ifdef PLATFORM_WINDOWS
NdisAllocateMemoryWithTag(&pbuf,sz, RT_TAG);
if (pbuf != NULL)
@@ -113,7 +144,9 @@ inline void _rtw_vmfree(u8 *pbuf, u32 sz)
#ifdef PLATFORM_LINUX
vfree(pbuf);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ free(pbuf,M_DEVBUF);
+#endif
#ifdef PLATFORM_WINDOWS
NdisFreeMemory(pbuf,sz, 0);
#endif
@@ -136,11 +169,13 @@ u8* _rtw_malloc(u32 sz)
if(sz > 0x4000)
pbuf = (u8 *)dvr_malloc(sz);
else
-#endif
- pbuf = kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
+#endif
+ pbuf = kmalloc(sz,in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ pbuf = malloc(sz,M_DEVBUF,M_NOWAIT);
+#endif
#ifdef PLATFORM_WINDOWS
NdisAllocateMemoryWithTag(&pbuf,sz, RT_TAG);
@@ -163,6 +198,9 @@ u8* _rtw_malloc(u32 sz)
u8* _rtw_zmalloc(u32 sz)
{
+#ifdef PLATFORM_FREEBSD
+ return malloc(sz,M_DEVBUF,M_ZERO|M_NOWAIT);
+#else // PLATFORM_FREEBSD
u8 *pbuf = _rtw_malloc(sz);
if (pbuf != NULL) {
@@ -178,7 +216,7 @@ u8* _rtw_zmalloc(u32 sz)
}
return pbuf;
-
+#endif // PLATFORM_FREEBSD
}
void _rtw_mfree(u8 *pbuf, u32 sz)
@@ -193,7 +231,9 @@ void _rtw_mfree(u8 *pbuf, u32 sz)
kfree(pbuf);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ free(pbuf,M_DEVBUF);
+#endif
#ifdef PLATFORM_WINDOWS
NdisFreeMemory(pbuf,sz, 0);
@@ -209,203 +249,556 @@ void _rtw_mfree(u8 *pbuf, u32 sz)
}
+#ifdef PLATFORM_FREEBSD
+//review again
+struct sk_buff * dev_alloc_skb(unsigned int size)
+{
+ struct sk_buff *skb=NULL;
+ u8 *data=NULL;
+
+ //skb = (struct sk_buff *)_rtw_zmalloc(sizeof(struct sk_buff)); // for skb->len, etc.
+ skb = (struct sk_buff *)_rtw_malloc(sizeof(struct sk_buff));
+ if(!skb)
+ goto out;
+ data = _rtw_malloc(size);
+ if(!data)
+ goto nodata;
+
+ skb->head = (unsigned char*)data;
+ skb->data = (unsigned char*)data;
+ skb->tail = (unsigned char*)data;
+ skb->end = (unsigned char*)data + size;
+ skb->len = 0;
+ //printf("%s()-%d: skb=%p, skb->head = %p\n", __FUNCTION__, __LINE__, skb, skb->head);
-#ifdef DBG_MEM_ALLOC
+out:
+ return skb;
+nodata:
+ _rtw_mfree((u8 *)skb, sizeof(struct sk_buff));
+ skb = NULL;
+goto out;
+
+}
+
+void dev_kfree_skb_any(struct sk_buff *skb)
+{
+ //printf("%s()-%d: skb->head = %p\n", __FUNCTION__, __LINE__, skb->head);
+ if(skb->head)
+ _rtw_mfree(skb->head, 0);
+ //printf("%s()-%d: skb = %p\n", __FUNCTION__, __LINE__, skb);
+ if(skb)
+ _rtw_mfree((u8 *)skb, 0);
+}
+struct sk_buff *skb_clone(const struct sk_buff *skb)
+{
+ return NULL;
+}
+
+#endif /* PLATFORM_FREEBSD */
+
+inline struct sk_buff *_rtw_skb_alloc(u32 sz)
+{
+#ifdef PLATFORM_LINUX
+ return __dev_alloc_skb(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
+#endif /* PLATFORM_LINUX */
+
+#ifdef PLATFORM_FREEBSD
+ return dev_alloc_skb(sz);
+#endif /* PLATFORM_FREEBSD */
+}
+
+inline void _rtw_skb_free(struct sk_buff *skb)
+{
+ dev_kfree_skb_any(skb);
+}
+
+inline struct sk_buff *_rtw_skb_copy(const struct sk_buff *skb)
+{
+#ifdef PLATFORM_LINUX
+ return skb_copy(skb, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
+#endif /* PLATFORM_LINUX */
+
+#ifdef PLATFORM_FREEBSD
+ return NULL;
+#endif /* PLATFORM_FREEBSD */
+}
+
+inline struct sk_buff *_rtw_skb_clone(struct sk_buff *skb)
+{
+#ifdef PLATFORM_LINUX
+ return skb_clone(skb, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
+#endif /* PLATFORM_LINUX */
+
+#ifdef PLATFORM_FREEBSD
+ return skb_clone(skb);
+#endif /* PLATFORM_FREEBSD */
+}
-struct rtw_dbg_mem_stat {
- ATOMIC_T vir_alloc; // the memory bytes we allocate now
- ATOMIC_T vir_peak; // the peak memory bytes we allocate
- ATOMIC_T vir_alloc_err; // the error times we fail to allocate memory
+inline int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb)
+{
+#ifdef PLATFORM_LINUX
+ skb->dev = ndev;
+ return netif_rx(skb);
+#endif /* PLATFORM_LINUX */
+
+#ifdef PLATFORM_FREEBSD
+ return (*ndev->if_input)(ndev, skb);
+#endif /* PLATFORM_FREEBSD */
+}
+
+void _rtw_skb_queue_purge(struct sk_buff_head *list)
+{
+ struct sk_buff *skb;
+
+ while ((skb = skb_dequeue(list)) != NULL)
+ _rtw_skb_free(skb);
+}
+
+#ifdef CONFIG_USB_HCI
+inline void *_rtw_usb_buffer_alloc(struct usb_device *dev, size_t size, dma_addr_t *dma)
+{
+#ifdef PLATFORM_LINUX
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ return usb_alloc_coherent(dev, size, (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL), dma);
+#else
+ return usb_buffer_alloc(dev, size, (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL), dma);
+#endif
+#endif /* PLATFORM_LINUX */
- ATOMIC_T phy_alloc;
- ATOMIC_T phy_peak;
- ATOMIC_T phy_alloc_err;
-} rtw_dbg_mem_stat;
-
-enum {
- MEM_STAT_VIR_ALLOC_SUCCESS,
- MEM_STAT_VIR_ALLOC_FAIL,
- MEM_STAT_VIR_FREE,
- MEM_STAT_PHY_ALLOC_SUCCESS,
- MEM_STAT_PHY_ALLOC_FAIL,
- MEM_STAT_PHY_FREE
+#ifdef PLATFORM_FREEBSD
+ return (malloc(size, M_USBDEV, M_NOWAIT | M_ZERO));
+#endif /* PLATFORM_FREEBSD */
+}
+inline void _rtw_usb_buffer_free(struct usb_device *dev, size_t size, void *addr, dma_addr_t dma)
+{
+#ifdef PLATFORM_LINUX
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ usb_free_coherent(dev, size, addr, dma);
+#else
+ usb_buffer_free(dev, size, addr, dma);
+#endif
+#endif /* PLATFORM_LINUX */
+
+#ifdef PLATFORM_FREEBSD
+ free(addr, M_USBDEV);
+#endif /* PLATFORM_FREEBSD */
+}
+#endif /* CONFIG_USB_HCI */
+
+#ifdef DBG_MEM_ALLOC
+
+struct rtw_mem_stat {
+ ATOMIC_T alloc; // the memory bytes we allocate currently
+ ATOMIC_T peak; // the peak memory bytes we allocate
+ ATOMIC_T alloc_cnt; // the alloc count for alloc currently
+ ATOMIC_T alloc_err_cnt; // the error times we fail to allocate memory
};
-void rtw_dump_mem_stat (void)
+struct rtw_mem_stat rtw_mem_type_stat[mstat_tf_idx(MSTAT_TYPE_MAX)];
+struct rtw_mem_stat rtw_mem_func_stat[mstat_ff_idx(MSTAT_FUNC_MAX)];
+
+char *MSTAT_TYPE_str[] = {
+ "VIR",
+ "PHY",
+ "SKB",
+ "USB",
+};
+
+char *MSTAT_FUNC_str[] = {
+ "UNSP",
+ "IO",
+ "TXIO",
+ "RXIO",
+ "TX",
+ "RX",
+};
+
+int _rtw_mstat_dump(char *buf, int len)
{
- int vir_alloc, vir_peak, vir_alloc_err, phy_alloc, phy_peak, phy_alloc_err;
+ int cnt = 0;
+ int i;
+ int value_t[4][mstat_tf_idx(MSTAT_TYPE_MAX)];
+ int value_f[4][mstat_ff_idx(MSTAT_FUNC_MAX)];
- vir_alloc=ATOMIC_READ(&rtw_dbg_mem_stat.vir_alloc);
- vir_peak=ATOMIC_READ(&rtw_dbg_mem_stat.vir_peak);
- vir_alloc_err=ATOMIC_READ(&rtw_dbg_mem_stat.vir_alloc_err);
+ int vir_alloc, vir_peak, vir_alloc_err, phy_alloc, phy_peak, phy_alloc_err;
+ int tx_alloc, tx_peak, tx_alloc_err, rx_alloc, rx_peak, rx_alloc_err;
- phy_alloc=ATOMIC_READ(&rtw_dbg_mem_stat.phy_alloc);
- phy_peak=ATOMIC_READ(&rtw_dbg_mem_stat.phy_peak);
- phy_alloc_err=ATOMIC_READ(&rtw_dbg_mem_stat.phy_alloc_err);
+ for(i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
+ value_t[0][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].alloc));
+ value_t[1][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].peak));
+ value_t[2][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].alloc_cnt));
+ value_t[3][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].alloc_err_cnt));
+ }
- DBG_871X("vir_alloc:%d, vir_peak:%d,vir_alloc_err:%d, phy_alloc:%d, phy_peak:%d, phy_alloc_err:%d\n"
- , vir_alloc, vir_peak, vir_alloc_err
- , phy_alloc, phy_peak, phy_alloc_err
- );
+ #if 0
+ for(i=0;i<mstat_ff_idx(MSTAT_FUNC_MAX);i++) {
+ value_f[0][i] = ATOMIC_READ(&(rtw_mem_func_stat[i].alloc));
+ value_f[1][i] = ATOMIC_READ(&(rtw_mem_func_stat[i].peak));
+ value_f[2][i] = ATOMIC_READ(&(rtw_mem_func_stat[i].alloc_cnt));
+ value_f[3][i] = ATOMIC_READ(&(rtw_mem_func_stat[i].alloc_err_cnt));
+ }
+ #endif
+
+ cnt += snprintf(buf+cnt, len-cnt, "===================== MSTAT =====================\n");
+ cnt += snprintf(buf+cnt, len-cnt, "%4s %10s %10s %10s %10s\n", "TAG", "alloc", "peak", "aloc_cnt", "err_cnt");
+ cnt += snprintf(buf+cnt, len-cnt, "-------------------------------------------------\n");
+ for(i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
+ cnt += snprintf(buf+cnt, len-cnt, "%4s %10d %10d %10d %10d\n", MSTAT_TYPE_str[i], value_t[0][i], value_t[1][i], value_t[2][i], value_t[3][i]);
+ }
+ #if 0
+ cnt += snprintf(buf+cnt, len-cnt, "-------------------------------------------------\n");
+ for(i=0;i<mstat_ff_idx(MSTAT_FUNC_MAX);i++) {
+ cnt += snprintf(buf+cnt, len-cnt, "%4s %10d %10d %10d %10d\n", MSTAT_FUNC_str[i], value_f[0][i], value_f[1][i], value_f[2][i], value_f[3][i]);
+ }
+ #endif
+
+ return cnt;
+}
+
+void rtw_mstat_dump(void)
+{
+ char buf[768] = {0};
+
+ _rtw_mstat_dump(buf, 768);
+ DBG_871X("\n%s", buf);
}
-void rtw_update_mem_stat(u8 flag, u32 sz)
+void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 sz)
{
static u32 update_time = 0;
int peak, alloc;
+ int i;
+ /* initialization */
if(!update_time) {
- ATOMIC_SET(&rtw_dbg_mem_stat.vir_alloc,0);
- ATOMIC_SET(&rtw_dbg_mem_stat.vir_peak,0);
- ATOMIC_SET(&rtw_dbg_mem_stat.vir_alloc_err,0);
- ATOMIC_SET(&rtw_dbg_mem_stat.phy_alloc,0);
- ATOMIC_SET(&rtw_dbg_mem_stat.phy_peak,0);
- ATOMIC_SET(&rtw_dbg_mem_stat.phy_alloc_err,0);
+ for(i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
+ ATOMIC_SET(&(rtw_mem_type_stat[i].alloc), 0);
+ ATOMIC_SET(&(rtw_mem_type_stat[i].peak), 0);
+ ATOMIC_SET(&(rtw_mem_type_stat[i].alloc_cnt), 0);
+ ATOMIC_SET(&(rtw_mem_type_stat[i].alloc_err_cnt), 0);
+ }
+ for(i=0;i<mstat_ff_idx(MSTAT_FUNC_MAX);i++) {
+ ATOMIC_SET(&(rtw_mem_func_stat[i].alloc), 0);
+ ATOMIC_SET(&(rtw_mem_func_stat[i].peak), 0);
+ ATOMIC_SET(&(rtw_mem_func_stat[i].alloc_cnt), 0);
+ ATOMIC_SET(&(rtw_mem_func_stat[i].alloc_err_cnt), 0);
+ }
}
-
- switch(flag) {
- case MEM_STAT_VIR_ALLOC_SUCCESS:
- alloc = ATOMIC_ADD_RETURN(&rtw_dbg_mem_stat.vir_alloc, sz);
- peak=ATOMIC_READ(&rtw_dbg_mem_stat.vir_peak);
+
+ switch(status) {
+ case MSTAT_ALLOC_SUCCESS:
+ ATOMIC_INC(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc_cnt));
+ alloc = ATOMIC_ADD_RETURN(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc), sz);
+ peak=ATOMIC_READ(&(rtw_mem_type_stat[mstat_tf_idx(flags)].peak));
if (peak<alloc)
- ATOMIC_SET(&rtw_dbg_mem_stat.vir_peak, alloc);
- break;
-
- case MEM_STAT_VIR_ALLOC_FAIL:
- ATOMIC_INC(&rtw_dbg_mem_stat.vir_alloc_err);
- break;
-
- case MEM_STAT_VIR_FREE:
- alloc = ATOMIC_SUB_RETURN(&rtw_dbg_mem_stat.vir_alloc, sz);
- break;
-
- case MEM_STAT_PHY_ALLOC_SUCCESS:
- alloc = ATOMIC_ADD_RETURN(&rtw_dbg_mem_stat.phy_alloc, sz);
- peak=ATOMIC_READ(&rtw_dbg_mem_stat.phy_peak);
+ ATOMIC_SET(&(rtw_mem_type_stat[mstat_tf_idx(flags)].peak), alloc);
+
+ ATOMIC_INC(&(rtw_mem_func_stat[mstat_ff_idx(flags)].alloc_cnt));
+ alloc = ATOMIC_ADD_RETURN(&(rtw_mem_func_stat[mstat_ff_idx(flags)].alloc), sz);
+ peak=ATOMIC_READ(&(rtw_mem_func_stat[mstat_ff_idx(flags)].peak));
if (peak<alloc)
- ATOMIC_SET(&rtw_dbg_mem_stat.phy_peak, alloc);
+ ATOMIC_SET(&(rtw_mem_func_stat[mstat_ff_idx(flags)].peak), alloc);
break;
- case MEM_STAT_PHY_ALLOC_FAIL:
- ATOMIC_INC(&rtw_dbg_mem_stat.phy_alloc_err);
+ case MSTAT_ALLOC_FAIL:
+ ATOMIC_INC(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc_err_cnt));
+
+ ATOMIC_INC(&(rtw_mem_func_stat[mstat_ff_idx(flags)].alloc_err_cnt));
+ break;
+
+ case MSTAT_FREE:
+ ATOMIC_DEC(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc_cnt));
+ ATOMIC_SUB(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc), sz);
+
+ ATOMIC_DEC(&(rtw_mem_func_stat[mstat_ff_idx(flags)].alloc_cnt));
+ ATOMIC_SUB(&(rtw_mem_func_stat[mstat_ff_idx(flags)].alloc), sz);
break;
-
- case MEM_STAT_PHY_FREE:
- alloc = ATOMIC_SUB_RETURN(&rtw_dbg_mem_stat.phy_alloc, sz);
-
};
- if (rtw_get_passing_time_ms(update_time) > 5000) {
- rtw_dump_mem_stat();
+ //if (rtw_get_passing_time_ms(update_time) > 5000) {
+ // rtw_mstat_dump();
update_time=rtw_get_current_time();
- }
-
-
+ //}
}
-inline u8* dbg_rtw_vmalloc(u32 sz, const char *func, int line)
+
+inline u8* dbg_rtw_vmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line)
{
u8 *p;
- DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+ //DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
p=_rtw_vmalloc((sz));
- rtw_update_mem_stat(
- p ? MEM_STAT_VIR_ALLOC_SUCCESS : MEM_STAT_VIR_ALLOC_FAIL
+ rtw_mstat_update(
+ flags
+ , p ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
, sz
);
return p;
}
-inline u8* dbg_rtw_zvmalloc(u32 sz, const char *func, int line)
+inline u8* dbg_rtw_zvmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line)
{
u8 *p;
- DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+ //DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
p=_rtw_zvmalloc((sz));
- rtw_update_mem_stat(
- p ? MEM_STAT_VIR_ALLOC_SUCCESS : MEM_STAT_VIR_ALLOC_FAIL
+ rtw_mstat_update(
+ flags
+ , p ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
, sz
);
return p;
}
-inline void dbg_rtw_vmfree(u8 *pbuf, u32 sz, const char *func, int line)
+inline void dbg_rtw_vmfree(u8 *pbuf, u32 sz, const enum mstat_f flags, const char *func, const int line)
{
- DBG_871X("DBG_MEM_ALLOC %s:%d %s(%p,%d)\n", func, line, __FUNCTION__, (pbuf), (sz));
+ //DBG_871X("DBG_MEM_ALLOC %s:%d %s(%p,%d)\n", func, line, __FUNCTION__, (pbuf), (sz));
_rtw_vmfree((pbuf), (sz));
- rtw_update_mem_stat(
- MEM_STAT_VIR_FREE
+ rtw_mstat_update(
+ flags
+ , MSTAT_FREE
, sz
);
-
}
-inline u8* dbg_rtw_malloc(u32 sz, const char *func, int line)
+inline u8* dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, const int line)
{
u8 *p;
-
- if((sz)>4096)
- DBG_871X("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+
+ //if(sz>=153 && sz<=306)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+
+ //if((sz)>4096)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
p=_rtw_malloc((sz));
- rtw_update_mem_stat(
- p ? MEM_STAT_PHY_ALLOC_SUCCESS : MEM_STAT_PHY_ALLOC_FAIL
+ rtw_mstat_update(
+ flags
+ , p ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
, sz
);
return p;
}
-inline u8* dbg_rtw_zmalloc(u32 sz, const char *func, int line)
+inline u8* dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line)
{
u8 *p;
- if((sz)>4096)
- DBG_871X("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+ //if(sz>=153 && sz<=306)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+
+ //if((sz)>4096)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
p = _rtw_zmalloc((sz));
- rtw_update_mem_stat(
- p ? MEM_STAT_PHY_ALLOC_SUCCESS : MEM_STAT_PHY_ALLOC_FAIL
+ rtw_mstat_update(
+ flags
+ , p ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
, sz
);
return p;
-
}
-inline void dbg_rtw_mfree(u8 *pbuf, u32 sz, const char *func, int line)
+inline void dbg_rtw_mfree(u8 *pbuf, u32 sz, const enum mstat_f flags, const char *func, const int line)
{
- if((sz)>4096)
- DBG_871X("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%p,%d)\n", func, line, __FUNCTION__, (pbuf), (sz));
+ //if(sz>=153 && sz<=306)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
+
+ //if((sz)>4096)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s(%p,%d)\n", func, line, __FUNCTION__, (pbuf), (sz));
_rtw_mfree((pbuf), (sz));
- rtw_update_mem_stat(
- MEM_STAT_PHY_FREE
+ rtw_mstat_update(
+ flags
+ , MSTAT_FREE
, sz
);
}
-#endif
+inline struct sk_buff * dbg_rtw_skb_alloc(unsigned int size, const enum mstat_f flags, const char *func, int line)
+{
+ struct sk_buff *skb;
+ unsigned int truesize = 0;
+
+ skb = _rtw_skb_alloc(size);
+
+ if(skb)
+ truesize = skb->truesize;
+
+ if(!skb || truesize < size /*|| size > 4096*/)
+ DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __FUNCTION__, size, skb, truesize);
+
+ rtw_mstat_update(
+ flags
+ , skb ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
+ , truesize
+ );
+
+ return skb;
+}
+
+inline void dbg_rtw_skb_free(struct sk_buff *skb, const enum mstat_f flags, const char *func, int line)
+{
+ unsigned int truesize = skb->truesize;
+
+ //if(truesize > 4096)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
+
+ _rtw_skb_free(skb);
+
+ rtw_mstat_update(
+ flags
+ , MSTAT_FREE
+ , truesize
+ );
+}
+
+inline struct sk_buff *dbg_rtw_skb_copy(const struct sk_buff *skb, const enum mstat_f flags, const char *func, const int line)
+{
+ struct sk_buff *skb_cp;
+ unsigned int truesize = skb->truesize;
+ unsigned int cp_truesize = 0;
+
+ skb_cp = _rtw_skb_copy(skb);
+ if(skb_cp)
+ cp_truesize = skb_cp->truesize;
+
+ if(!skb_cp || cp_truesize != truesize /*||cp_truesize > 4096*/)
+ DBG_871X("DBG_MEM_ALLOC %s:%d %s(%u), skb_cp:%p, cp_truesize=%u\n", func, line, __FUNCTION__, truesize, skb_cp, cp_truesize);
+
+ rtw_mstat_update(
+ flags
+ , skb_cp ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
+ , truesize
+ );
+
+ return skb_cp;
+}
+
+inline struct sk_buff *dbg_rtw_skb_clone(struct sk_buff *skb, const enum mstat_f flags, const char *func, const int line)
+{
+ struct sk_buff *skb_cl;
+ unsigned int truesize = skb->truesize;
+ unsigned int cl_truesize = 0;
+
+ skb_cl = _rtw_skb_clone(skb);
+ if(skb_cl)
+ cl_truesize = skb_cl->truesize;
+
+ if(!skb_cl || cl_truesize != truesize /*|| cl_truesize > 4096*/)
+ DBG_871X("DBG_MEM_ALLOC %s:%d %s(%u), skb_cl:%p, cl_truesize=%u\n", func, line, __FUNCTION__, truesize, skb_cl, cl_truesize);
+
+ rtw_mstat_update(
+ flags
+ , skb_cl ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
+ , truesize
+ );
+
+ return skb_cl;
+}
+
+inline int dbg_rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb, const enum mstat_f flags, const char *func, int line)
+{
+ int ret;
+ unsigned int truesize = skb->truesize;
+
+ //if(truesize > 4096)
+ // DBG_871X("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
+
+ ret = _rtw_netif_rx(ndev, skb);
+
+ rtw_mstat_update(
+ flags
+ , MSTAT_FREE
+ , truesize
+ );
+
+ return ret;
+}
+
+inline void dbg_rtw_skb_queue_purge(struct sk_buff_head *list, enum mstat_f flags, const char *func, int line)
+{
+ struct sk_buff *skb;
+
+ while ((skb = skb_dequeue(list)) != NULL)
+ dbg_rtw_skb_free(skb, flags, func, line);
+}
+
+#ifdef CONFIG_USB_HCI
+inline void *dbg_rtw_usb_buffer_alloc(struct usb_device *dev, size_t size, dma_addr_t *dma, const enum mstat_f flags, const char *func, int line)
+{
+ void *p;
+ //DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, size);
+
+ p = _rtw_usb_buffer_alloc(dev, size, dma);
+
+ rtw_mstat_update(
+ flags
+ , p ? MSTAT_ALLOC_SUCCESS : MSTAT_ALLOC_FAIL
+ , size
+ );
+
+ return p;
+}
+
+inline void dbg_rtw_usb_buffer_free(struct usb_device *dev, size_t size, void *addr, dma_addr_t dma, const enum mstat_f flags, const char *func, int line)
+{
+ //DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, size);
+
+ _rtw_usb_buffer_free(dev, size, addr, dma);
+
+ rtw_mstat_update(
+ flags
+ , MSTAT_FREE
+ , size
+ );
+}
+#endif /* CONFIG_USB_HCI */
+#endif /* DBG_MEM_ALLOC */
+
+void* rtw_malloc2d(int h, int w, int size)
+{
+ int j;
+
+ void **a = (void **) rtw_zmalloc( h*sizeof(void *) + h*w*size );
+ if(a == NULL)
+ {
+ DBG_871X("%s: alloc memory fail!\n", __FUNCTION__);
+ return NULL;
+ }
+
+ for( j=0; j<h; j++ )
+ a[j] = ((char *)(a+h)) + j*w*size;
+
+ return a;
+}
+
+void rtw_mfree2d(void *pbuf, int h, int w, int size)
+{
+ rtw_mfree((u8 *)pbuf, h*sizeof(void*) + w*h*size);
+}
void _rtw_memcpy(void* dst, void* src, u32 sz)
{
-#ifdef PLATFORM_LINUX
+#if defined (PLATFORM_LINUX)|| defined (PLATFORM_FREEBSD)
memcpy(dst, src, sz);
#endif
-
+
#ifdef PLATFORM_WINDOWS
NdisMoveMemory(dst, src, sz);
@@ -417,7 +810,7 @@ void _rtw_memcpy(void* dst, void* src, u32 sz)
int _rtw_memcmp(void *dst, void *src, u32 sz)
{
-#ifdef PLATFORM_LINUX
+#if defined (PLATFORM_LINUX)|| defined (PLATFORM_FREEBSD)
//under Linux/GNU/GLibc, the return value of memcmp for two same mem. chunk is 0
if (!(memcmp(dst, src, sz)))
@@ -444,7 +837,7 @@ int _rtw_memcmp(void *dst, void *src, u32 sz)
void _rtw_memset(void *pbuf, int c, u32 sz)
{
-#ifdef PLATFORM_LINUX
+#if defined (PLATFORM_LINUX)|| defined (PLATFORM_FREEBSD)
memset(pbuf, c, sz);
@@ -461,6 +854,16 @@ void _rtw_memset(void *pbuf, int c, u32 sz)
}
+#ifdef PLATFORM_FREEBSD
+static inline void __list_add(_list *pnew, _list *pprev, _list *pnext)
+ {
+ pnext->prev = pnew;
+ pnew->next = pnext;
+ pnew->prev = pprev;
+ pprev->next = pnew;
+}
+#endif /* PLATFORM_FREEBSD */
+
void _rtw_init_listhead(_list *list)
{
@@ -470,6 +873,10 @@ void _rtw_init_listhead(_list *list)
#endif
+#ifdef PLATFORM_FREEBSD
+ list->next = list;
+ list->prev = list;
+#endif
#ifdef PLATFORM_WINDOWS
NdisInitializeListHead(list);
@@ -495,7 +902,15 @@ u32 rtw_is_list_empty(_list *phead)
return _FALSE;
#endif
-
+#ifdef PLATFORM_FREEBSD
+
+ if (phead->next == phead)
+ return _TRUE;
+ else
+ return _FALSE;
+
+#endif
+
#ifdef PLATFORM_WINDOWS
@@ -509,6 +924,21 @@ u32 rtw_is_list_empty(_list *phead)
}
+void rtw_list_insert_head(_list *plist, _list *phead)
+{
+
+#ifdef PLATFORM_LINUX
+ list_add(plist, phead);
+#endif
+
+#ifdef PLATFORM_FREEBSD
+ __list_add(plist, phead, phead->next);
+#endif
+
+#ifdef PLATFORM_WINDOWS
+ InsertHeadList(phead, plist);
+#endif
+}
void rtw_list_insert_tail(_list *plist, _list *phead)
{
@@ -518,7 +948,11 @@ void rtw_list_insert_tail(_list *plist, _list *phead)
list_add_tail(plist, phead);
#endif
+#ifdef PLATFORM_FREEBSD
+
+ __list_add(plist, phead->prev, phead);
+#endif
#ifdef PLATFORM_WINDOWS
InsertTailList(phead, plist);
@@ -543,7 +977,9 @@ void _rtw_init_sema(_sema *sema, int init_val)
sema_init(sema, init_val);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ sema_init(sema, init_val, "rtw_drv");
+#endif
#ifdef PLATFORM_OS_XP
KeInitializeSemaphore(sema, init_val, SEMA_UPBND); // count=0;
@@ -559,7 +995,9 @@ void _rtw_init_sema(_sema *sema, int init_val)
void _rtw_free_sema(_sema *sema)
{
-
+#ifdef PLATFORM_FREEBSD
+ sema_destroy(sema);
+#endif
#ifdef PLATFORM_OS_CE
CloseHandle(*sema);
#endif
@@ -574,7 +1012,9 @@ void _rtw_up_sema(_sema *sema)
up(sema);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ sema_post(sema);
+#endif
#ifdef PLATFORM_OS_XP
KeReleaseSemaphore(sema, IO_NETWORK_INCREMENT, 1, FALSE );
@@ -597,7 +1037,10 @@ u32 _rtw_down_sema(_sema *sema)
return _SUCCESS;
#endif
-
+#ifdef PLATFORM_FREEBSD
+ sema_wait(sema);
+ return _SUCCESS;
+#endif
#ifdef PLATFORM_OS_XP
if(STATUS_SUCCESS == KeWaitForSingleObject(sema, Executive, KernelMode, TRUE, NULL))
@@ -627,7 +1070,9 @@ void _rtw_mutex_init(_mutex *pmutex)
#endif
#endif
-
+#ifdef PLATFORM_FREEBSD
+ mtx_init(pmutex, "", NULL, MTX_DEF|MTX_RECURSE);
+#endif
#ifdef PLATFORM_OS_XP
KeInitializeMutex(pmutex, 0);
@@ -639,7 +1084,7 @@ void _rtw_mutex_init(_mutex *pmutex)
#endif
}
-
+void _rtw_mutex_free(_mutex *pmutex);
void _rtw_mutex_free(_mutex *pmutex)
{
#ifdef PLATFORM_LINUX
@@ -649,6 +1094,10 @@ void _rtw_mutex_free(_mutex *pmutex)
#else
#endif
+#ifdef PLATFORM_FREEBSD
+ sema_destroy(pmutex);
+#endif
+
#endif
#ifdef PLATFORM_OS_XP
@@ -668,7 +1117,9 @@ void _rtw_spinlock_init(_lock *plock)
spin_lock_init(plock);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ mtx_init(plock, "", NULL, MTX_DEF|MTX_RECURSE);
+#endif
#ifdef PLATFORM_WINDOWS
NdisAllocateSpinLock(plock);
@@ -679,7 +1130,9 @@ void _rtw_spinlock_init(_lock *plock)
void _rtw_spinlock_free(_lock *plock)
{
-
+#ifdef PLATFORM_FREEBSD
+ mtx_destroy(plock);
+#endif
#ifdef PLATFORM_WINDOWS
@@ -688,6 +1141,27 @@ void _rtw_spinlock_free(_lock *plock)
#endif
}
+#ifdef PLATFORM_FREEBSD
+extern PADAPTER prtw_lock;
+
+void rtw_mtx_lock(_lock *plock){
+ if(prtw_lock){
+ mtx_lock(&prtw_lock->glock);
+ }
+ else{
+ printf("%s prtw_lock==NULL",__FUNCTION__);
+ }
+}
+void rtw_mtx_unlock(_lock *plock){
+ if(prtw_lock){
+ mtx_unlock(&prtw_lock->glock);
+ }
+ else{
+ printf("%s prtw_lock==NULL",__FUNCTION__);
+ }
+
+}
+#endif //PLATFORM_FREEBSD
void _rtw_spinlock(_lock *plock)
@@ -698,7 +1172,9 @@ void _rtw_spinlock(_lock *plock)
spin_lock(plock);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ mtx_lock(plock);
+#endif
#ifdef PLATFORM_WINDOWS
NdisAcquireSpinLock(plock);
@@ -715,7 +1191,9 @@ void _rtw_spinunlock(_lock *plock)
spin_unlock(plock);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ mtx_unlock(plock);
+#endif
#ifdef PLATFORM_WINDOWS
NdisReleaseSpinLock(plock);
@@ -732,7 +1210,9 @@ void _rtw_spinlock_ex(_lock *plock)
spin_lock(plock);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ mtx_lock(plock);
+#endif
#ifdef PLATFORM_WINDOWS
NdisDprAcquireSpinLock(plock);
@@ -749,7 +1229,9 @@ void _rtw_spinunlock_ex(_lock *plock)
spin_unlock(plock);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ mtx_unlock(plock);
+#endif
#ifdef PLATFORM_WINDOWS
NdisDprReleaseSpinLock(plock);
@@ -789,7 +1271,11 @@ u32 rtw_get_current_time(void)
#ifdef PLATFORM_LINUX
return jiffies;
#endif
-
+#ifdef PLATFORM_FREEBSD
+ struct timeval tvp;
+ getmicrotime(&tvp);
+ return tvp.tv_sec;
+#endif
#ifdef PLATFORM_WINDOWS
LARGE_INTEGER SystemTime;
NdisGetCurrentSystemTime(&SystemTime);
@@ -800,11 +1286,26 @@ u32 rtw_get_current_time(void)
inline u32 rtw_systime_to_ms(u32 systime)
{
#ifdef PLATFORM_LINUX
- return systime*1000/HZ;
+ return systime * 1000 / HZ;
+#endif
+#ifdef PLATFORM_FREEBSD
+ return systime * 1000;
#endif
-
#ifdef PLATFORM_WINDOWS
- return systime /10000 ;
+ return systime / 10000 ;
+#endif
+}
+
+inline u32 rtw_ms_to_systime(u32 ms)
+{
+#ifdef PLATFORM_LINUX
+ return ms * HZ / 1000;
+#endif
+#ifdef PLATFORM_FREEBSD
+ return ms /1000;
+#endif
+#ifdef PLATFORM_WINDOWS
+ return ms * 10000 ;
#endif
}
@@ -814,7 +1315,9 @@ inline s32 rtw_get_passing_time_ms(u32 start)
#ifdef PLATFORM_LINUX
return rtw_systime_to_ms(jiffies-start);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ return rtw_systime_to_ms(rtw_get_current_time());
+#endif
#ifdef PLATFORM_WINDOWS
LARGE_INTEGER SystemTime;
NdisGetCurrentSystemTime(&SystemTime);
@@ -827,7 +1330,9 @@ inline s32 rtw_get_time_interval_ms(u32 start, u32 end)
#ifdef PLATFORM_LINUX
return rtw_systime_to_ms(end-start);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ return rtw_systime_to_ms(rtw_get_current_time());
+#endif
#ifdef PLATFORM_WINDOWS
return rtw_systime_to_ms(end-start);
#endif
@@ -852,6 +1357,10 @@ void rtw_sleep_schedulable(int ms)
return;
#endif
+#ifdef PLATFORM_FREEBSD
+ DELAY(ms*1000);
+ return ;
+#endif
#ifdef PLATFORM_WINDOWS
@@ -870,7 +1379,11 @@ void rtw_msleep_os(int ms)
msleep((unsigned int)ms);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ //Delay for delay microseconds
+ DELAY(ms*1000);
+ return ;
+#endif
#ifdef PLATFORM_WINDOWS
NdisMSleep(ms*1000); //(us)*1000=(ms)
@@ -891,7 +1404,12 @@ void rtw_usleep_os(int us)
msleep( (us/1000) + 1);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ //Delay for delay microseconds
+ DELAY(us);
+
+ return ;
+#endif
#ifdef PLATFORM_WINDOWS
NdisMSleep(us); //(us)
@@ -962,7 +1480,10 @@ void rtw_mdelay_os(int ms)
mdelay((unsigned long)ms);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ DELAY(ms*1000);
+ return ;
+#endif
#ifdef PLATFORM_WINDOWS
NdisStallExecution(ms*1000); //(us)*1000=(ms)
@@ -979,7 +1500,11 @@ void rtw_udelay_os(int us)
udelay((unsigned long)us);
#endif
-
+#ifdef PLATFORM_FREEBSD
+ //Delay for delay microseconds
+ DELAY(us);
+ return ;
+#endif
#ifdef PLATFORM_WINDOWS
NdisStallExecution(us); //(us)
@@ -989,6 +1514,19 @@ void rtw_udelay_os(int us)
}
#endif
+void rtw_yield_os()
+{
+#ifdef PLATFORM_LINUX
+ yield();
+#endif
+#ifdef PLATFORM_FREEBSD
+ yield();
+#endif
+#ifdef PLATFORM_WINDOWS
+ SwitchToThread();
+#endif
+}
+
#define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
#ifdef CONFIG_WAKELOCK
@@ -1001,29 +1539,15 @@ static android_suspend_lock_t rtw_suspend_lock ={
inline void rtw_suspend_lock_init()
{
- #if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
- DBG_871X("##########%s ###########\n", __FUNCTION__);
- #endif
-
#ifdef CONFIG_WAKELOCK
wake_lock_init(&rtw_suspend_lock, WAKE_LOCK_SUSPEND, RTW_SUSPEND_LOCK_NAME);
#elif defined(CONFIG_ANDROID_POWER)
android_init_suspend_lock(&rtw_suspend_lock);
#endif
-
}
inline void rtw_suspend_lock_uninit()
{
-
- #if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
- DBG_871X("##########%s###########\n", __FUNCTION__);
- if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) {
- DBG_871X("##########%s########### list poison!!\n", __FUNCTION__);
- return;
- }
- #endif
-
#ifdef CONFIG_WAKELOCK
wake_lock_destroy(&rtw_suspend_lock);
#elif defined(CONFIG_ANDROID_POWER)
@@ -1031,18 +1555,8 @@ inline void rtw_suspend_lock_uninit()
#endif
}
-
inline void rtw_lock_suspend()
{
-
- #if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
- //DBG_871X("##########%s###########\n", __FUNCTION__);
- if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) {
- DBG_871X("##########%s########### list poison!!\n", __FUNCTION__);
- return;
- }
- #endif
-
#ifdef CONFIG_WAKELOCK
wake_lock(&rtw_suspend_lock);
#elif defined(CONFIG_ANDROID_POWER)
@@ -1052,14 +1566,6 @@ inline void rtw_lock_suspend()
inline void rtw_unlock_suspend()
{
- #if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
- //DBG_871X("##########%s###########\n", __FUNCTION__);
- if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) {
- DBG_871X("##########%s########### list poison!!\n", __FUNCTION__);
- return;
- }
- #endif
-
#ifdef CONFIG_WAKELOCK
wake_unlock(&rtw_suspend_lock);
#elif defined(CONFIG_ANDROID_POWER)
@@ -1067,6 +1573,14 @@ inline void rtw_unlock_suspend()
#endif
}
+inline void rtw_lock_suspend_timeout(u32 timeout_ms)
+{
+ #ifdef CONFIG_WAKELOCK
+ wake_lock_timeout(&rtw_suspend_lock, rtw_ms_to_systime(timeout_ms));
+ #elif defined(CONFIG_ANDROID_POWER)
+ android_lock_suspend_auto_expire(&rtw_suspend_lock, rtw_ms_to_systime(timeout_ms));
+ #endif
+}
inline void ATOMIC_SET(ATOMIC_T *v, int i)
{
@@ -1074,6 +1588,8 @@ inline void ATOMIC_SET(ATOMIC_T *v, int i)
atomic_set(v,i);
#elif defined(PLATFORM_WINDOWS)
*v=i;// other choice????
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_set_int(v,i);
#endif
}
@@ -1083,6 +1599,8 @@ inline int ATOMIC_READ(ATOMIC_T *v)
return atomic_read(v);
#elif defined(PLATFORM_WINDOWS)
return *v; // other choice????
+ #elif defined(PLATFORM_FREEBSD)
+ return atomic_load_acq_32(v);
#endif
}
@@ -1092,6 +1610,8 @@ inline void ATOMIC_ADD(ATOMIC_T *v, int i)
atomic_add(i,v);
#elif defined(PLATFORM_WINDOWS)
InterlockedAdd(v,i);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_add_int(v,i);
#endif
}
inline void ATOMIC_SUB(ATOMIC_T *v, int i)
@@ -1100,6 +1620,8 @@ inline void ATOMIC_SUB(ATOMIC_T *v, int i)
atomic_sub(i,v);
#elif defined(PLATFORM_WINDOWS)
InterlockedAdd(v,-i);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_subtract_int(v,i);
#endif
}
@@ -1109,6 +1631,8 @@ inline void ATOMIC_INC(ATOMIC_T *v)
atomic_inc(v);
#elif defined(PLATFORM_WINDOWS)
InterlockedIncrement(v);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_add_int(v,1);
#endif
}
@@ -1118,6 +1642,8 @@ inline void ATOMIC_DEC(ATOMIC_T *v)
atomic_dec(v);
#elif defined(PLATFORM_WINDOWS)
InterlockedDecrement(v);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_subtract_int(v,1);
#endif
}
@@ -1127,6 +1653,9 @@ inline int ATOMIC_ADD_RETURN(ATOMIC_T *v, int i)
return atomic_add_return(i,v);
#elif defined(PLATFORM_WINDOWS)
return InterlockedAdd(v,i);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_add_int(v,i);
+ return atomic_load_acq_32(v);
#endif
}
@@ -1136,6 +1665,9 @@ inline int ATOMIC_SUB_RETURN(ATOMIC_T *v, int i)
return atomic_sub_return(i,v);
#elif defined(PLATFORM_WINDOWS)
return InterlockedAdd(v,-i);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_subtract_int(v,i);
+ return atomic_load_acq_32(v);
#endif
}
@@ -1145,6 +1677,9 @@ inline int ATOMIC_INC_RETURN(ATOMIC_T *v)
return atomic_inc_return(v);
#elif defined(PLATFORM_WINDOWS)
return InterlockedIncrement(v);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_add_int(v,1);
+ return atomic_load_acq_32(v);
#endif
}
@@ -1154,6 +1689,9 @@ inline int ATOMIC_DEC_RETURN(ATOMIC_T *v)
return atomic_dec_return(v);
#elif defined(PLATFORM_WINDOWS)
return InterlockedDecrement(v);
+ #elif defined(PLATFORM_FREEBSD)
+ atomic_subtract_int(v,1);
+ return atomic_load_acq_32(v);
#endif
}
@@ -1278,20 +1816,20 @@ static int retriveFromFile(char *path, u8* buf, u32 sz)
if(path && buf) {
if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){
- DBG_8192C("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
oldfs = get_fs(); set_fs(get_ds());
ret=readFile(fp, buf, sz);
set_fs(oldfs);
closeFile(fp);
- DBG_8192C("%s readFile, ret:%d\n",__FUNCTION__, ret);
+ DBG_871X("%s readFile, ret:%d\n",__FUNCTION__, ret);
} else {
- DBG_8192C("%s openFile path:%s Fail, ret:%d\n",__FUNCTION__, path, ret);
+ DBG_871X("%s openFile path:%s Fail, ret:%d\n",__FUNCTION__, path, ret);
}
} else {
- DBG_8192C("%s NULL pointer\n",__FUNCTION__);
+ DBG_871X("%s NULL pointer\n",__FUNCTION__);
ret = -EINVAL;
}
return ret;
@@ -1312,20 +1850,20 @@ static int storeToFile(char *path, u8* buf, u32 sz)
if(path && buf) {
if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) {
- DBG_8192C("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
oldfs = get_fs(); set_fs(get_ds());
ret=writeFile(fp, buf, sz);
set_fs(oldfs);
closeFile(fp);
- DBG_8192C("%s writeFile, ret:%d\n",__FUNCTION__, ret);
+ DBG_871X("%s writeFile, ret:%d\n",__FUNCTION__, ret);
} else {
- DBG_8192C("%s openFile path:%s Fail, ret:%d\n",__FUNCTION__, path, ret);
+ DBG_871X("%s openFile path:%s Fail, ret:%d\n",__FUNCTION__, path, ret);
}
} else {
- DBG_8192C("%s NULL pointer\n",__FUNCTION__);
+ DBG_871X("%s NULL pointer\n",__FUNCTION__);
ret = -EINVAL;
}
return ret;
@@ -1392,8 +1930,12 @@ struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv, void *old_p
{
struct net_device *pnetdev;
struct rtw_netdev_priv_indicator *pnpi;
-
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4);
+#else
pnetdev = alloc_etherdev(sizeof(struct rtw_netdev_priv_indicator));
+#endif
if (!pnetdev)
goto RETURN;
@@ -1409,8 +1951,12 @@ struct net_device *rtw_alloc_etherdev(int sizeof_priv)
{
struct net_device *pnetdev;
struct rtw_netdev_priv_indicator *pnpi;
-
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4);
+#else
pnetdev = alloc_etherdev(sizeof(struct rtw_netdev_priv_indicator));
+#endif
if (!pnetdev)
goto RETURN;
@@ -1476,9 +2022,7 @@ int rtw_change_ifname(_adapter *padapter, const char *ifname)
#endif
unregister_netdevice(cur_pnetdev);
- #ifdef CONFIG_PROC_DEBUG
rtw_proc_remove_one(cur_pnetdev);
- #endif //CONFIG_PROC_DEBUG
rereg_priv->old_pnetdev=cur_pnetdev;
@@ -1488,21 +2032,7 @@ int rtw_change_ifname(_adapter *padapter, const char *ifname)
goto error;
}
-#ifdef CONFIG_USB_HCI
-
- SET_NETDEV_DEV(pnetdev, &padapter->dvobjpriv.pusbintf->dev);
-
- usb_set_intfdata(padapter->dvobjpriv.pusbintf, pnetdev);
-
-#elif defined(CONFIG_PCI_HCI)
-
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
- SET_NETDEV_DEV(pnetdev, &padapter->dvobjpriv.ppcidev->dev);
-#endif
-
- pci_set_drvdata(padapter->dvobjpriv.ppcidev, pnetdev);
-
-#endif
+ SET_NETDEV_DEV(pnetdev, dvobj_to_dev(adapter_to_dvobj(padapter)));
rtw_init_netdev_name(pnetdev, ifname);
@@ -1520,9 +2050,7 @@ int rtw_change_ifname(_adapter *padapter, const char *ifname)
goto error;
}
- #ifdef CONFIG_PROC_DEBUG
rtw_proc_init_one(pnetdev);
- #endif //CONFIG_PROC_DEBUG
return 0;
@@ -1534,12 +2062,83 @@ error:
#endif
#endif //MEM_ALLOC_REFINE_ADAPTOR
+#ifdef PLATFORM_FREEBSD
+/*
+ * Copy a buffer from userspace and write into kernel address
+ * space.
+ *
+ * This emulation just calls the FreeBSD copyin function (to
+ * copy data from user space buffer into a kernel space buffer)
+ * and is designed to be used with the above io_write_wrapper.
+ *
+ * This function should return the number of bytes not copied.
+ * I.e. success results in a zero value.
+ * Negative error values are not returned.
+ */
+unsigned long
+copy_from_user(void *to, const void *from, unsigned long n)
+{
+ if ( copyin(from, to, n) != 0 ) {
+ /* Any errors will be treated as a failure
+ to copy any of the requested bytes */
+ return n;
+ }
+
+ return 0;
+}
+
+unsigned long
+copy_to_user(void *to, const void *from, unsigned long n)
+{
+ if ( copyout(from, to, n) != 0 ) {
+ /* Any errors will be treated as a failure
+ to copy any of the requested bytes */
+ return n;
+ }
+
+ return 0;
+}
+
+
+/*
+ * The usb_register and usb_deregister functions are used to register
+ * usb drivers with the usb subsystem. In this compatibility layer
+ * emulation a list of drivers (struct usb_driver) is maintained
+ * and is used for probing/attaching etc.
+ *
+ * usb_register and usb_deregister simply call these functions.
+ */
+int
+usb_register(struct usb_driver *driver)
+{
+ rtw_usb_linux_register(driver);
+ return 0;
+}
+
+
+int
+usb_deregister(struct usb_driver *driver)
+{
+ rtw_usb_linux_deregister(driver);
+ return 0;
+}
+
+void module_init_exit_wrapper(void *arg)
+{
+ int (*func)(void) = arg;
+ func();
+ return;
+}
+
+#endif //PLATFORM_FREEBSD
u64 rtw_modular64(u64 x, u64 y)
{
#ifdef PLATFORM_LINUX
return do_div(x, y);
#elif defined(PLATFORM_WINDOWS)
return (x % y);
+#elif defined(PLATFORM_FREEBSD)
+ return (x %y);
#endif
}
@@ -1550,22 +2149,152 @@ u64 rtw_division64(u64 x, u64 y)
return x;
#elif defined(PLATFORM_WINDOWS)
return (x / y);
+#elif defined(PLATFORM_FREEBSD)
+ return (x / y);
#endif
}
-#ifdef PLATFORM_LINUX
-int start_kthread(_thread_hdl_ *t_hdl, int (*threadfn)(void *data),
- void *data, const char *name)
+void rtw_buf_free(u8 **buf, u32 *buf_len)
{
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0))
- *t_hdl = kernel_thread(threadfn, data, CLONE_FS|CLONE_FILES);
- if(*t_hdl < 0)
-#else
- *t_hdl = kthread_run(threadfn, data, name);
- if(IS_ERR(*t_hdl))
-#endif
- return 0;
- return -1;
+ u32 ori_len;
+
+ if (!buf || !buf_len)
+ return;
+
+ ori_len = *buf_len;
+
+ if (*buf) {
+ u32 tmp_buf_len = *buf_len;
+ *buf_len = 0;
+ rtw_mfree(*buf, tmp_buf_len);
+ *buf = NULL;
+ }
+}
+
+void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len)
+{
+ u32 ori_len = 0, dup_len = 0;
+ u8 *ori = NULL;
+ u8 *dup = NULL;
+
+ if (!buf || !buf_len)
+ return;
+
+ if (!src || !src_len)
+ goto keep_ori;
+
+ /* duplicate src */
+ dup = rtw_malloc(src_len);
+ if (dup) {
+ dup_len = src_len;
+ _rtw_memcpy(dup, src, dup_len);
+ }
+
+keep_ori:
+ ori = *buf;
+ ori_len = *buf_len;
+
+ /* replace buf with dup */
+ *buf_len = 0;
+ *buf = dup;
+ *buf_len = dup_len;
+
+ /* free ori */
+ if (ori && ori_len > 0)
+ rtw_mfree(ori, ori_len);
+}
+
+
+/**
+ * rtw_cbuf_full - test if cbuf is full
+ * @cbuf: pointer of struct rtw_cbuf
+ *
+ * Returns: _TRUE if cbuf is full
+ */
+inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf)
+{
+ return (cbuf->write == cbuf->read-1)? _TRUE : _FALSE;
+}
+
+/**
+ * rtw_cbuf_empty - test if cbuf is empty
+ * @cbuf: pointer of struct rtw_cbuf
+ *
+ * Returns: _TRUE if cbuf is empty
+ */
+inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf)
+{
+ return (cbuf->write == cbuf->read)? _TRUE : _FALSE;
+}
+
+/**
+ * rtw_cbuf_push - push a pointer into cbuf
+ * @cbuf: pointer of struct rtw_cbuf
+ * @buf: pointer to push in
+ *
+ * Lock free operation, be careful of the use scheme
+ * Returns: _TRUE push success
+ */
+bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
+{
+ if (rtw_cbuf_full(cbuf))
+ return _FAIL;
+
+ if (0)
+ DBG_871X("%s on %u\n", __func__, cbuf->write);
+ cbuf->bufs[cbuf->write] = buf;
+ cbuf->write = (cbuf->write+1)%cbuf->size;
+
+ return _SUCCESS;
+}
+
+/**
+ * rtw_cbuf_pop - pop a pointer from cbuf
+ * @cbuf: pointer of struct rtw_cbuf
+ *
+ * Lock free operation, be careful of the use scheme
+ * Returns: pointer popped out
+ */
+void *rtw_cbuf_pop(struct rtw_cbuf *cbuf)
+{
+ void *buf;
+ if (rtw_cbuf_empty(cbuf))
+ return NULL;
+
+ if (0)
+ DBG_871X("%s on %u\n", __func__, cbuf->read);
+ buf = cbuf->bufs[cbuf->read];
+ cbuf->read = (cbuf->read+1)%cbuf->size;
+
+ return buf;
+}
+
+/**
+ * rtw_cbuf_alloc - allocte a rtw_cbuf with given size and do initialization
+ * @size: size of pointer
+ *
+ * Returns: pointer of srtuct rtw_cbuf, NULL for allocation failure
+ */
+struct rtw_cbuf *rtw_cbuf_alloc(u32 size)
+{
+ struct rtw_cbuf *cbuf;
+
+ cbuf = (struct rtw_cbuf *)rtw_malloc(sizeof(*cbuf) + sizeof(void*)*size);
+
+ if (cbuf) {
+ cbuf->write = cbuf->read = 0;
+ cbuf->size = size;
+ }
+
+ return cbuf;
+}
+
+/**
+ * rtw_cbuf_free - free the given rtw_cbuf
+ * @cbuf: pointer of struct rtw_cbuf to free
+ */
+void rtw_cbuf_free(struct rtw_cbuf *cbuf)
+{
+ rtw_mfree((u8*)cbuf, sizeof(*cbuf) + sizeof(void*)*cbuf->size);
}
-#endif
diff --git a/drivers/net/wireless/rtl8192cu/runwpa b/drivers/net/wireless/rtl8192cu/runwpa
new file mode 100755
index 0000000..f825e8b
--- /dev/null
+++ b/drivers/net/wireless/rtl8192cu/runwpa
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+if [ "`which iwconfig`" = "" ] ; then
+ echo "WARNING:Wireless tool not exist!"
+ echo " Please install it!"
+ exit
+else
+ if [ `uname -r | cut -d. -f2` -eq 4 ]; then
+ wpa_supplicant -D ipw -c wpa1.conf -i wlan0
+ else
+ if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then
+ wpa_supplicant -D ipw -c wpa1.conf -i wlan0
+ else
+ wpa_supplicant -D wext -c wpa1.conf -i wlan0
+ fi
+
+ fi
+fi
+
+
diff --git a/drivers/net/wireless/rtl8192cu/wlan0dhcp b/drivers/net/wireless/rtl8192cu/wlan0dhcp
old mode 100644
new mode 100755
--
1.9.1