summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/Kconfig1
-rw-r--r--drivers/net/wireless/Makefile3
-rw-r--r--drivers/net/wireless/sd8797/Kconfig39
-rw-r--r--drivers/net/wireless/sd8797/Makefile319
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11d.c10
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11h.c64
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n.c130
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n.h26
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c12
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c82
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_cfp.c66
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c176
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_fw.h66
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_ieee.h40
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_init.c34
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_ioctl.h18
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_join.c48
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_main.h42
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_meas.c38
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_misc.c72
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_scan.c168
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sdio.c108
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_shim.c16
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c106
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c88
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_event.c22
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c230
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c14
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c16
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_txrx.c8
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c124
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c50
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c24
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_util.h66
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_wmm.c60
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_wmm.h8
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_cfg80211.c8
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_eth_ioctl.c2
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_ioctl.c336
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_main.c198
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_main.h58
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_priv.c180
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_proc.c24
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_sdio_mmc.c44
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_shim.c140
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_sta_cfg80211.c12
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_uap.c116
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_uap.h2
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_uap_cfg80211.c18
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_uap_priv.c4
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_uap_wext.c48
-rw-r--r--drivers/net/wireless/sd8797/mlinux/moal_wext.c96
52 files changed, 1711 insertions, 1969 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index f1d88c571bc4..802bbd6c2b8e 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -278,6 +278,7 @@ source "drivers/net/wireless/b43/Kconfig"
source "drivers/net/wireless/b43legacy/Kconfig"
source "drivers/net/wireless/bcm4329/Kconfig"
source "drivers/net/wireless/bcmdhd/Kconfig"
+source "drivers/net/wireless/sd8797/Kconfig"
source "drivers/net/wireless/hostap/Kconfig"
source "drivers/net/wireless/ipw2x00/Kconfig"
source "drivers/net/wireless/iwlwifi/Kconfig"
diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile
index 8ceae0a8ba0f..3731f0ee3084 100644
--- a/drivers/net/wireless/Makefile
+++ b/drivers/net/wireless/Makefile
@@ -11,7 +11,7 @@ obj-$(CONFIG_AIRO) += airo.o
obj-$(CONFIG_AIRO_CS) += airo_cs.o airo.o
obj-$(CONFIG_ATMEL) += atmel.o
-obj-$(CONFIG_PCI_ATMEL) += atmel_pci.o
+obj-$(CONFIG_PCI_ATMEL) += atmel_pci.o
obj-$(CONFIG_PCMCIA_ATMEL) += atmel_cs.o
obj-$(CONFIG_AT76C50X_USB) += at76c50x-usb.o
@@ -61,3 +61,4 @@ obj-$(CONFIG_MWIFIEX) += mwifiex/
obj-$(CONFIG_BCM4329) += bcm4329/
obj-$(CONFIG_BCMDHD) += bcmdhd/
+obj-$(CONFIG_SD8797) += sd8797/
diff --git a/drivers/net/wireless/sd8797/Kconfig b/drivers/net/wireless/sd8797/Kconfig
new file mode 100644
index 000000000000..d823c85166c8
--- /dev/null
+++ b/drivers/net/wireless/sd8797/Kconfig
@@ -0,0 +1,39 @@
+config SD8797
+ tristate "Marvel 8797 wireless cards support"
+ depends on MMC
+ default n
+ ---help---
+ This module adds support for wireless adapters based on
+ Marvel 8797 chipset.
+
+config STA_SUPPORT
+ depends on SD8797
+ bool "WLAN station support"
+ default y
+
+config UAP_SUPPORT
+ depends on SD8797
+ bool "Soft AP Support"
+ default y
+
+config WIFI_DIRECT_SUPPORT
+ depends on SD8797
+ bool "WiFi Direct Support"
+ default n
+
+config WIFI_DISPLAY_SUPPORT
+ depends on SD8797
+ bool "WiFi Display Support"
+ default n
+
+config STA_WEXT
+ depends on SD8797
+ depends on !CFG80211
+ bool "station wext support"
+ default n
+
+config UAP_WEXT
+ depends on SD8797
+ depends on !CFG80211
+ bool "UAP wext support"
+ default n
diff --git a/drivers/net/wireless/sd8797/Makefile b/drivers/net/wireless/sd8797/Makefile
index 52e3a3df3988..d5eb7872a232 100644
--- a/drivers/net/wireless/sd8797/Makefile
+++ b/drivers/net/wireless/sd8797/Makefile
@@ -18,46 +18,6 @@
# ARE EXPRESSLY DISCLAIMED. The License provides additional details about
# this warranty disclaimer.
-CC= $(CROSS_COMPILE)gcc
-LD= $(CROSS_COMPILE)ld
-BACKUP= /root/backup
-YMD= `date +%Y%m%d%H%M`
-
-#############################################################################
-# Configuration Options
-#############################################################################
-
-# Debug Option
-# DEBUG LEVEL n/1/2:
-# n: NO DEBUG
-# 1: Only PRINTM(MMSG,...), PRINTM(MFATAL,...), ...
-# 2: All PRINTM()
-CONFIG_DEBUG=1
-
-# Proc debug file
-CONFIG_PROC_DEBUG=y
-
-# Enable STA mode support
-CONFIG_STA_SUPPORT=y
-
-# Enable uAP mode support
-CONFIG_UAP_SUPPORT=y
-
-# Enable WIFIDIRECT support
-CONFIG_WIFI_DIRECT_SUPPORT=y
-
-# Enable WIFIDISPLAY support
-CONFIG_WIFI_DISPLAY_SUPPORT=y
-
-# Re-association in driver
-CONFIG_REASSOCIATION=y
-
-# Enable WEXT for STA
-CONFIG_STA_WEXT=y
-
-# Enable WEXT for uAP
-CONFIG_UAP_WEXT=y
-
# Enable CFG80211 for STA
ifeq ($(CONFIG_CFG80211),y)
CONFIG_STA_CFG80211=y
@@ -80,94 +40,20 @@ CONFIG_UAP_CFG80211=n
endif
endif
-# Manufacturing firmware support
-CONFIG_MFG_CMD_SUPPORT=y
-
-# Big-endian platform
-CONFIG_BIG_ENDIAN=n
-
-# Enable SDIO multi-port Tx aggregation
-CONFIG_SDIO_MULTI_PORT_TX_AGGR=y
-
-# Enable SDIO multi-port Rx aggregation
-CONFIG_SDIO_MULTI_PORT_RX_AGGR=y
-
-
-# SDIO suspend/resume
-CONFIG_SDIO_SUSPEND_RESUME=y
-
-# DFS testing support
-CONFIG_DFS_TESTING_SUPPORT=y
-
-# Use static link for app build
-export CONFIG_STATIC_LINK=y
-
-#############################################################################
-# Select Platform Tools
-#############################################################################
-
-MODEXT = ko
-EXTRA_CFLAGS += -I$(M)/mlan
-EXTRA_CFLAGS += -DLINUX
-
-# KERNELDIR point to the installed kernel directory.
-# KERNELDIR can be set on the command line,
-# make KERNELDIR=/usr/src/arm/<arch-bsp-path>
-# Alternatively KERNELDIR can be set in the environment.
-# Default value for KERNELDIR is set below.
-KERNELDIR ?= /usr/src/arm/linux-2.6.39-T3T
-
-# CROSS_COMPILE specify the prefix used for all executables used
-# during compilation. Only gcc and related bin-utils executables
-# CROSS_COMPILE can be set on the command line
-# make CROSS_COMPILE=</usr/local/arm/4.1.1/bin/>arm-linux-
-# Alternatively CROSS_COMPILE can be set in the environment.
-# Default value for CROSS_COMPILE is set below.
-CROSS_COMPILE ?= /usr/local/arm-eabi-4.4.3/bin/arm-eabi-
-
-# INSTALLDIR specify the path to install the kernel module after
-# succesful compilation.
-# INSTALLDIR can be set on the command line
-# make INSTALLDIR=/tftpboot/<rootfs>
-# Alternatively INSTALLDIR can be set in the environment.
-# Default value for INSTALL is set below.
-INSTALLDIR ?= /tftpboot/pxa9xx/root
-
-# ARCH specifies the architecture of the target processor, this kernel
-# module will run.
-# ARCH can be set on the command line
-# make ARCH=<arm/i386>
-# Alternatively ARCH can be set in the environment
-# Default values of ARCH for specific platform are set below.
-ARCH ?= arm
-
-LD += -S
-
-BINDIR = ../bin_sd8797
-APPDIR= $(shell if test -d "mapp"; then echo mapp; fi)
-
#############################################################################
# Compiler Flags
#############################################################################
- EXTRA_CFLAGS += -I$(KERNELDIR)/include
-
- EXTRA_CFLAGS += -DFPNUM='"69"'
-
-ifeq ($(CONFIG_DEBUG),1)
- EXTRA_CFLAGS += -DDEBUG_LEVEL1
-endif
-
-ifeq ($(CONFIG_DEBUG),2)
- EXTRA_CFLAGS += -DDEBUG_LEVEL1
- EXTRA_CFLAGS += -DDEBUG_LEVEL2
- DBG= -dbg
-endif
-
-ifeq ($(CONFIG_PROC_DEBUG),y)
- EXTRA_CFLAGS += -DPROC_DEBUG
- export CONFIG_PROC_DEBUG
-endif
+EXTRA_CFLAGS += -Idrivers/net/wireless/sd8797/mlan
+EXTRA_CFLAGS += -DLINUX
+EXTRA_CFLAGS += -DFPNUM='"69"'
+EXTRA_CFLAGS += -DDEBUG_LEVEL1
+EXTRA_CFLAGS += -DPROC_DEBUG
+EXTRA_CFLAGS += -DSDIO_MULTI_PORT_TX_AGGR
+EXTRA_CFLAGS += -DSDIO_MULTI_PORT_RX_AGGR
+EXTRA_CFLAGS += -DSDIO_SUSPEND_RESUME
+EXTRA_CFLAGS += -DDFS_TESTING_SUPPORT
+EXTRA_CFLAGS += -DMFG_CMD_SUPPORT
ifeq ($(CONFIG_64BIT), y)
EXTRA_CFLAGS += -DMLAN_64BIT
@@ -175,9 +61,7 @@ endif
ifeq ($(CONFIG_STA_SUPPORT),y)
EXTRA_CFLAGS += -DSTA_SUPPORT
-ifeq ($(CONFIG_REASSOCIATION),y)
EXTRA_CFLAGS += -DREASSOCIATION
-endif
ifeq ($(CONFIG_STA_WEXT),y)
EXTRA_CFLAGS += -DSTA_WEXT
endif
@@ -213,37 +97,14 @@ ifeq ($(CONFIG_WIFI_DISPLAY_SUPPORT),y)
EXTRA_CFLAGS += -DWIFI_DISPLAY_SUPPORT
endif
-ifeq ($(CONFIG_MFG_CMD_SUPPORT),y)
- EXTRA_CFLAGS += -DMFG_CMD_SUPPORT
-endif
-
ifeq ($(CONFIG_BIG_ENDIAN),y)
EXTRA_CFLAGS += -DBIG_ENDIAN_SUPPORT
endif
-ifeq ($(CONFIG_SDIO_MULTI_PORT_TX_AGGR),y)
- EXTRA_CFLAGS += -DSDIO_MULTI_PORT_TX_AGGR
-endif
-
-ifeq ($(CONFIG_SDIO_MULTI_PORT_RX_AGGR),y)
- EXTRA_CFLAGS += -DSDIO_MULTI_PORT_RX_AGGR
-endif
-
-
-ifeq ($(CONFIG_SDIO_SUSPEND_RESUME),y)
- EXTRA_CFLAGS += -DSDIO_SUSPEND_RESUME
-endif
-
-ifeq ($(CONFIG_DFS_TESTING_SUPPORT),y)
- EXTRA_CFLAGS += -DDFS_TESTING_SUPPORT
-endif
-
#############################################################################
# Make Targets
#############################################################################
-ifneq ($(KERNELRELEASE),)
-
MOALOBJS = mlinux/moal_main.o \
mlinux/moal_ioctl.o \
mlinux/moal_shim.o \
@@ -301,10 +162,8 @@ endif
ifdef CONFIG_PROC_FS
MOALOBJS += mlinux/moal_proc.o
-ifeq ($(CONFIG_PROC_DEBUG),y)
MOALOBJS += mlinux/moal_debug.o
endif
-endif
obj-m := mlan.o
mlan-objs := $(MLANOBJS)
@@ -312,163 +171,5 @@ MOALOBJS += mlinux/moal_sdio_mmc.o
obj-m += sd8xxx.o
sd8xxx-objs := $(MOALOBJS)
-# Otherwise we were called directly from the command line; invoke the kernel build system.
-else
-
-default:
-ifeq ($(CONFIG_STA_SUPPORT),y)
-ifeq ($(CONFIG_STA_WEXT),n)
-ifeq ($(CONFIG_STA_CFG80211),n)
- @echo "Can not build STA without WEXT or CFG80211"
- exit 2
-endif
-endif
-endif
-ifeq ($(CONFIG_UAP_SUPPORT),y)
-ifeq ($(CONFIG_UAP_WEXT),n)
-ifeq ($(CONFIG_UAP_CFG80211),n)
- @echo "Can not build UAP without WEXT or CFG80211"
- exit 2
-endif
-endif
-endif
- $(MAKE) -C $(KERNELDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
-
-endif
-
###############################################################
-
-export CC LD EXTRA_CFLAGS KERNELDIR
-
-ifeq ($(CONFIG_STA_SUPPORT),y)
-ifeq ($(CONFIG_UAP_SUPPORT),y)
-.PHONY: mapp/mlanconfig mapp/mlan2040coex mapp/mlanevent mapp/uaputl mapp/mlanutl clean distclean
-else
-.PHONY: mapp/mlanconfig mapp/mlanevent mapp/mlan2040coex mapp/mlanutl clean distclean
-endif
-else
-ifeq ($(CONFIG_UAP_SUPPORT),y)
-.PHONY: mapp/mlanevent mapp/uaputl clean distclean
-endif
-endif
- @echo "Finished Making Marvell Wlan Linux Driver"
-
-ifeq ($(CONFIG_STA_SUPPORT),y)
-mapp/mlanconfig:
- $(MAKE) -C $@
-mapp/mlanutl:
- $(MAKE) -C $@
-mapp/mlan2040coex:
- $(MAKE) -C $@
-endif
-ifeq ($(CONFIG_UAP_SUPPORT),y)
-mapp/uaputl:
- $(MAKE) -C $@
-endif
-ifeq ($(CONFIG_WIFI_DIRECT_SUPPORT),y)
-mapp/wifidirectutl:
- $(MAKE) -C $@
-endif
-mapp/mlanevent:
- $(MAKE) -C $@
-
-echo:
-
-build: echo default
-
- @if [ ! -d $(BINDIR) ]; then \
- mkdir $(BINDIR); \
- fi
-
- cp -f mlan.$(MODEXT) $(BINDIR)/mlan$(DBG).$(MODEXT)
- cp -f sd8xxx.$(MODEXT) $(BINDIR)/sd8797$(DBG).$(MODEXT)
-
-ifeq ($(CONFIG_STA_SUPPORT),y)
- cp -f README $(BINDIR)
- cp -f README_RBC $(BINDIR)
-ifneq ($(APPDIR),)
- $(MAKE) -C mapp/mlanconfig $@ INSTALLDIR=$(BINDIR)
- $(MAKE) -C mapp/mlanutl $@ INSTALLDIR=$(BINDIR)
- $(MAKE) -C mapp/mlan2040coex $@ INSTALLDIR=$(BINDIR)
-endif
-endif
-ifeq ($(CONFIG_UAP_SUPPORT),y)
- cp -f README_UAP $(BINDIR)
-ifneq ($(APPDIR),)
- $(MAKE) -C mapp/uaputl $@ INSTALLDIR=$(BINDIR)
-endif
-endif
-ifeq ($(CONFIG_WIFI_DIRECT_SUPPORT),y)
- cp -f README_WIFIDIRECT $(BINDIR)
- cp -rpf script/wifidirect $(BINDIR)
-ifeq ($(CONFIG_WIFI_DISPLAY_SUPPORT),y)
- cp -rpf script/wifidisplay $(BINDIR)
-endif
-ifneq ($(APPDIR),)
- $(MAKE) -C mapp/wifidirectutl $@ INSTALLDIR=$(BINDIR)
-endif
-endif
-ifneq ($(APPDIR),)
- $(MAKE) -C mapp/mlanevent $@ INSTALLDIR=$(BINDIR)
-endif
-
-clean:
- -find . -name "*.o" -exec rm {} \;
- -find . -name "*.ko" -exec rm {} \;
- -find . -name ".*.cmd" -exec rm {} \;
- -find . -name "*.mod.c" -exec rm {} \;
- -find . -name "Module.symvers" -exec rm {} \;
- -find . -name "Module.markers" -exec rm {} \;
- -find . -name "modules.order" -exec rm {} \;
- -rm -rf .tmp_versions
-ifneq ($(APPDIR),)
-ifeq ($(CONFIG_STA_SUPPORT),y)
- $(MAKE) -C mapp/mlanconfig $@
- $(MAKE) -C mapp/mlanutl $@
- $(MAKE) -C mapp/mlan2040coex $@
-endif
-ifeq ($(CONFIG_UAP_SUPPORT),y)
- $(MAKE) -C mapp/uaputl $@
-endif
-ifeq ($(CONFIG_WIFI_DIRECT_SUPPORT),y)
- $(MAKE) -C mapp/wifidirectutl $@
-endif
- $(MAKE) -C mapp/mlanevent $@
-endif
-
-install: default
-
- cp -f mlan.$(MODEXT) $(INSTALLDIR)/mlan$(DBG).$(MODEXT)
- cp -f sd8xxx.$(MODEXT) $(INSTALLDIR)/sd8797$(DBG).$(MODEXT)
- echo "sd8797 Driver Installed"
-
-distclean:
- -find . -name "*.o" -exec rm {} \;
- -find . -name "*.orig" -exec rm {} \;
- -find . -name "*.swp" -exec rm {} \;
- -find . -name "*.*~" -exec rm {} \;
- -find . -name "*~" -exec rm {} \;
- -find . -name "*.d" -exec rm {} \;
- -find . -name "*.a" -exec rm {} \;
- -find . -name "tags" -exec rm {} \;
- -find . -name ".*" -exec rm -rf 2> /dev/null \;
- -find . -name "*.ko" -exec rm {} \;
- -find . -name ".*.cmd" -exec rm {} \;
- -find . -name "*.mod.c" -exec rm {} \;
- -rm -rf .tmp_versions
-ifneq ($(APPDIR),)
-ifeq ($(CONFIG_STA_SUPPORT),y)
- $(MAKE) -C mapp/mlanconfig $@
- $(MAKE) -C mapp/mlanutl $@
- $(MAKE) -C mapp/mlan2040coex $@
-endif
-ifeq ($(CONFIG_UAP_SUPPORT),y)
- $(MAKE) -C mapp/uaputl $@
-endif
-ifeq ($(CONFIG_WIFI_DIRECT_SUPPORT),y)
- $(MAKE) -C mapp/wifidirectutl $@
-endif
- $(MAKE) -C mapp/mlanevent $@
-endif
-
# End of file
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11d.c b/drivers/net/wireless/sd8797/mlan/mlan_11d.c
index 809de4cc9ede..1727c5890fc8 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11d.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11d.c
@@ -519,14 +519,14 @@ wlan_11d_process_country_info(mlan_private * pmpriv,
}
if (parsed_region_chan->no_of_chan != 0) {
- /*
+ /*
* Check if the channel number already exists in the
* chan-power table of parsed_region_chan
*/
for (i = 0; (i < region_chan.no_of_chan && i < MAX_NO_OF_CHAN); i++) {
for (j = 0; (j < parsed_region_chan->no_of_chan &&
j < MAX_NO_OF_CHAN); j++) {
- /*
+ /*
* Channel already exists, update the tx power with new tx
* power, since country IE is valid here.
*/
@@ -541,7 +541,7 @@ wlan_11d_process_country_info(mlan_private * pmpriv,
}
if (j == parsed_region_chan->no_of_chan && j < MAX_NO_OF_CHAN) {
- /*
+ /*
* Channel does not exist in the channel power table,
* update this new chan and tx_power to the channel power table
*/
@@ -959,7 +959,7 @@ wlan_11d_parse_domain_info(pmlan_adapter pmadapter,
ENTER();
- /*
+ /*
* Validation Rules:
* 1. Valid Region Code
* 2. First Chan increment
@@ -1330,7 +1330,7 @@ wlan_11d_parse_dnld_countryinfo(mlan_private * pmpriv,
for (j = 0; ((j < region_chan.no_of_chan)
&& (j < MAX_NO_OF_CHAN)); j++) {
- /*
+ /*
* Channel already exists, use minimum of existing
* tx power and tx_power received from
* country info of the current AP
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11h.c b/drivers/net/wireless/sd8797/mlan/mlan_11h.c
index 23970861db1e..7e08f4cd5d8a 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11h.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11h.c
@@ -220,7 +220,7 @@ wlan_11h_set_ibss_dfs_ie(mlan_private * priv, IEEEtypes_IBSS_DFS_t * pdfs)
memset(adapter, pdfs, 0x00, sizeof(IEEEtypes_IBSS_DFS_t));
- /*
+ /*
* A basic measurement report is included with each channel in the
* map field. Initial value for the map for each supported channel
* is with only the unmeasured bit set.
@@ -237,13 +237,13 @@ wlan_11h_set_ibss_dfs_ie(mlan_private * priv, IEEEtypes_IBSS_DFS_t * pdfs)
pdfs->channel_map[num_chans].channel_number =
adapter->parsed_region_chan.chan_pwr[num_chans].chan;
- /*
+ /*
* Set the initial map field with a basic measurement
*/
pdfs->channel_map[num_chans].rpt_map = initial_map;
}
- /*
+ /*
* If we have an established channel map, include it and return
* a valid DFS element
*/
@@ -300,7 +300,7 @@ wlan_11h_set_supp_channels_ie(mlan_private * priv,
cfp_bg = cfp_a = priv->adapter->region_code;
if ((band & BAND_B) || (band & BAND_G)) {
- /*
+ /*
* Channels are contiguous in 2.4GHz, usually only one subband.
*/
switch (cfp_bg) {
@@ -324,7 +324,7 @@ wlan_11h_set_supp_channels_ie(mlan_private * priv,
break;
}
} else if (band & BAND_A) {
- /*
+ /*
* Set the supported channel elements based on the region code,
* incrementing num_subbands for each sub-band we append to the
* element.
@@ -358,7 +358,7 @@ wlan_11h_set_supp_channels_ie(mlan_private * priv,
}
}
- /*
+ /*
* If we have setup any supported subbands in the element, return a
* valid IE along with its size, else return 0.
*/
@@ -651,7 +651,7 @@ wlan_11h_process_infra_join(mlan_private * priv,
/* Setup the Supported Channels IE */
sup_chan_len = wlan_11h_set_supp_channels_ie(priv, band, &sup_chan_ie);
- /*
+ /*
* If we returned a valid Supported Channels IE, wrap and append it
*/
if (sup_chan_len) {
@@ -713,7 +713,7 @@ wlan_11h_process_adhoc(mlan_private * priv,
#endif
if (p11h_bss_info) {
- /*
+ /*
* Copy the DFS Owner/Recovery Interval from the BSS we are joining
*/
memcpy(adapter, dfs_elem.dfs_owner,
@@ -731,12 +731,12 @@ wlan_11h_process_adhoc(mlan_private * priv,
*ppbuffer += size_appended;
ret_len += size_appended;
- /*
+ /*
* Check to see if we are joining a network. Join is indicated by the
* BSS Info pointer being valid (not NULL)
*/
if (p11h_bss_info) {
- /*
+ /*
* If there was a quiet element, include it in adhoc join command
*/
if (p11h_bss_info->quiet.element_id == QUIET) {
@@ -752,7 +752,7 @@ wlan_11h_process_adhoc(mlan_private * priv,
/* Copy the local constraint from the network */
local_constraint = p11h_bss_info->power_constraint.local_constraint;
} else {
- /*
+ /*
* If we are the adhoc starter, we can add a quiet element
*/
if (adapter->state_11h.quiet_ie.quiet_period) {
@@ -1172,27 +1172,27 @@ wlan_11h_get_uap_start_channel(mlan_private * priv, t_u8 uap_band_cfg)
ENTER();
- /*
+ /*
* Set start_chn to the Default. Used if 11h is disabled or the band
* does not require 11h support.
*/
start_chn = DEFAULT_AD_HOC_CHANNEL;
- /*
+ /*
* Check that we are looking for a channel in the A Band
*/
if (uap_band_cfg & UAP_BAND_CONFIG_5GHZ) {
- /*
+ /*
* Set default to the A Band default. Used if random selection fails
* or if 11h is not enabled
*/
start_chn = DEFAULT_AD_HOC_CHANNEL_A;
- /*
+ /*
* Check that 11h is enabled in the driver
*/
if (wlan_11h_is_enabled(priv)) {
- /*
+ /*
* Search the region_channel tables for a channel table
* that is marked for the A Band.
*/
@@ -1203,7 +1203,7 @@ wlan_11h_get_uap_start_channel(mlan_private * priv, t_u8 uap_band_cfg)
if (chn_tbl->valid
&& chn_tbl->region == adapter->region_code
&& chn_tbl->band & BAND_A) {
- /*
+ /*
* Set the start channel. Get a random number and
* use it to pick an entry in the table between 0
* and the number of channels in the table (NumCFP).
@@ -1544,7 +1544,7 @@ wlan_11h_activate(mlan_private * priv, t_void * pioctl_buf, t_bool flag)
/* add bits for master/slave radar detect into enable. */
enable |= wlan_11h_get_current_radar_detect_flags(priv->adapter);
- /*
+ /*
* Send cmd to FW to enable/disable 11h function in firmware
*/
ret = wlan_prepare_cmd(priv,
@@ -1707,29 +1707,29 @@ wlan_11h_get_adhoc_start_channel(mlan_private * priv)
ENTER();
- /*
+ /*
* Set start_chn to the Default. Used if 11h is disabled or the band
* does not require 11h support.
*/
start_chn = DEFAULT_AD_HOC_CHANNEL;
- /*
+ /*
* Check that we are looking for a channel in the A Band
*/
if ((adapter->adhoc_start_band & BAND_A)
|| (adapter->adhoc_start_band & BAND_AN)
) {
- /*
+ /*
* Set default to the A Band default. Used if random selection fails
* or if 11h is not enabled
*/
start_chn = DEFAULT_AD_HOC_CHANNEL_A;
- /*
+ /*
* Check that 11h is enabled in the driver
*/
if (wlan_11h_is_enabled(priv)) {
- /*
+ /*
* Search the region_channel tables for a channel table
* that is marked for the A Band.
*/
@@ -1740,7 +1740,7 @@ wlan_11h_get_adhoc_start_channel(mlan_private * priv)
if (chn_tbl->valid
&& chn_tbl->region == adapter->region_code
&& chn_tbl->band & BAND_A) {
- /*
+ /*
* Set the start channel. Get a random number and
* use it to pick an entry in the table between 0
* and the number of channels in the table (NumCFP).
@@ -1792,7 +1792,7 @@ wlan_11h_radar_detect_required(mlan_private * priv, t_u8 channel)
ENTER();
- /*
+ /*
* No checks for 11h or measurement code being enabled is placed here
* since regulatory requirements exist whether we support them or not.
*/
@@ -2310,7 +2310,7 @@ wlan_11h_process_bss_elem(mlan_adapter * pmadapter,
case SUPPORTED_CHANNELS:
case TPC_REQUEST:
- /*
+ /*
* These elements are not in beacons/probe responses. Included here
* to cover set of enumerated 11h elements.
*/
@@ -2703,8 +2703,8 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
#endif
pstate_rdh->new_channel =
wlan_11h_get_adhoc_start_channel(pmpriv);
- } while ((pstate_rdh->new_channel == pstate_rdh->curr_channel) && (++i < MAX_RANDOM_CHANNEL_RETRIES)); /* avoid
- deadloop
+ } while ((pstate_rdh->new_channel == pstate_rdh->curr_channel) && (++i < MAX_RANDOM_CHANNEL_RETRIES)); /* avoid
+ deadloop
*/
if (i >= MAX_RANDOM_CHANNEL_RETRIES) /* report error */
PRINTM(MERROR, "%s(): ERROR - could not choose new_chan"
@@ -2793,7 +2793,7 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
__FUNCTION__, pstate_rdh->stage,
RDH_stage_str[pstate_rdh->stage], pstate_rdh->priv_curr_idx);
- /* add CHAN_SW IE - firmware will accept on any interface, and apply to
+ /* add CHAN_SW IE - firmware will accept on any interface, and apply to
all */
if (pstate_rdh->priv_curr_idx == RDH_STAGE_FIRST_ENTRY_PRIV_IDX) {
mlan_ioctl_req *pioctl_req = MNULL;
@@ -2834,7 +2834,7 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
__FUNCTION__, pstate_rdh->stage,
RDH_stage_str[pstate_rdh->stage], pstate_rdh->priv_curr_idx);
- /* remove CHAN_SW IE - firmware will accept on any interface, and apply
+ /* remove CHAN_SW IE - firmware will accept on any interface, and apply
to all */
if (pstate_rdh->priv_curr_idx == RDH_STAGE_FIRST_ENTRY_PRIV_IDX) {
mlan_ioctl_req *pioctl_req = MNULL;
@@ -2940,9 +2940,9 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
pmpriv->uap_state_chan_cb.get_chan_callback
= wlan_11h_radar_detected_callback;
pstate_rdh->uap_band_cfg |= UAP_BAND_CONFIG_5GHZ; /* DFS
- only
+ only
in
- 5GHz
+ 5GHz
*/
ret = wlan_uap_set_channel(pmpriv, pstate_rdh->uap_band_cfg,
pstate_rdh->new_channel);
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n.c b/drivers/net/wireless/sd8797/mlan/mlan_11n.c
index d55c2e7e4ab3..48b51a5bf7e0 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n.c
@@ -44,7 +44,7 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
*
* @brief set/get max tx buf size
*
@@ -70,8 +70,8 @@ wlan_11n_ioctl_max_tx_buf_size(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get htcapinfo configuration
+/**
+ * @brief Set/get htcapinfo configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -136,7 +136,7 @@ wlan_11n_ioctl_htusrcfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Enable/Disable AMSDU AGGR CTRL
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -175,8 +175,8 @@ wlan_11n_ioctl_amsdu_aggr_ctrl(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get 11n configuration
+/**
+ * @brief Set/get 11n configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -214,7 +214,7 @@ wlan_11n_ioctl_httxcfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/get TX beamforming capabilities
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -242,7 +242,7 @@ wlan_11n_ioctl_tx_bf_cap(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/get TX beamforming configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -281,7 +281,7 @@ wlan_11n_ioctl_tx_bf_cfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/get HT stream configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -326,12 +326,12 @@ wlan_11n_ioctl_stream_cfg(IN pmlan_adapter pmadapter,
}
/**
- * @brief This function will resend addba request to all
- * the peer in the TxBAStreamTbl
- *
+ * @brief This function will resend addba request to all
+ * the peer in the TxBAStreamTbl
+ *
* @param priv A pointer to mlan_private
*
- * @return N/A
+ * @return N/A
*/
static void
wlan_11n_update_addba_request(mlan_private * priv)
@@ -363,8 +363,8 @@ wlan_11n_update_addba_request(mlan_private * priv)
return;
}
-/**
- * @brief Set/get addba parameter
+/**
+ * @brief Set/get addba parameter
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -405,8 +405,8 @@ wlan_11n_ioctl_addba_param(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get addba reject set
+/**
+ * @brief Set/get addba reject set
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -455,8 +455,8 @@ wlan_11n_ioctl_addba_reject(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get aggr_prio_tbl
+/**
+ * @brief Set/get aggr_prio_tbl
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -521,7 +521,7 @@ wlan_11n_ioctl_aggr_prio_tbl(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get supported MCS set
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -565,9 +565,9 @@ wlan_11n_ioctl_supported_mcs_set(IN pmlan_adapter pmadapter,
}
/**
- * @brief This function checks if the given pointer is valid entry of
+ * @brief This function checks if the given pointer is valid entry of
* Tx BA Stream table
- *
+ *
* @param priv Pointer to mlan_private
* @param ptxtblptr Pointer to tx ba stream entry
*
@@ -603,9 +603,9 @@ wlan_is_txbastreamptr_valid(mlan_private * priv, TxBAStreamTbl * ptxtblptr)
}
/**
- * @brief This function will return the pointer to a entry in BA Stream
+ * @brief This function will return the pointer to a entry in BA Stream
* table which matches the ba_status requested
- *
+ *
* @param priv A pointer to mlan_private
* @param ba_status Current status of the BA stream
*
@@ -781,9 +781,9 @@ wlan_fill_ht_cap_tlv(mlan_private * priv,
}
#endif /* STA_SUPPORT */
-/**
+/**
* @brief This function prints the 802.11n device capability
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param cap Capability value
*
@@ -854,9 +854,9 @@ wlan_show_dot11ndevcap(pmlan_adapter pmadapter, t_u32 cap)
return;
}
-/**
+/**
* @brief This function prints the 802.11n device MCS
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param support Support value
*
@@ -874,10 +874,10 @@ wlan_show_devmcssupport(pmlan_adapter pmadapter, t_u8 support)
return;
}
-/**
+/**
* @brief This function handles the command response of
* delete a block ack request
- *
+ *
* @param priv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
*
@@ -907,7 +907,7 @@ wlan_ret_11n_delba(mlan_private * priv, HostCmd_DS_COMMAND * resp)
{
wlan_send_addba(priv, ptx_ba_tbl->tid, ptx_ba_tbl->ra);
}
- } else { /*
+ } else { /*
* In case of failure, recreate the deleted stream in
* case we initiated the ADDBA
*/
@@ -928,10 +928,10 @@ wlan_ret_11n_delba(mlan_private * priv, HostCmd_DS_COMMAND * resp)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of
* add a block ack request
- *
+ *
* @param priv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
*
@@ -1008,9 +1008,9 @@ wlan_ret_11n_addba_req(mlan_private * priv, HostCmd_DS_COMMAND * resp)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of reconfigure tx buf
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1045,9 +1045,9 @@ wlan_cmd_recfg_tx_buf(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of amsdu aggr control
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1085,9 +1085,9 @@ wlan_cmd_amsdu_aggr_ctrl(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of amsdu aggr ctrl
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1115,9 +1115,9 @@ wlan_ret_amsdu_aggr_ctrl(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares 11n cfg command
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -1143,9 +1143,9 @@ wlan_cmd_11n_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of 11ncfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1170,9 +1170,9 @@ wlan_ret_11n_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares TX BF configuration command
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1246,10 +1246,10 @@ wlan_cmd_tx_bf_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response
* of TX BF configuration
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1342,7 +1342,7 @@ wlan_ret_tx_bf_cfg(IN pmlan_private pmpriv,
* @param pbss_desc A pointer to BSSDescriptor_t structure
* @param ppbuffer A Pointer to command buffer pointer
*
- * @return bytes added to the buffer
+ * @return bytes added to the buffer
*/
int
wlan_cmd_append_11n_tlv(IN mlan_private * pmpriv,
@@ -1482,7 +1482,7 @@ wlan_cmd_append_11n_tlv(IN mlan_private * pmpriv,
#endif /* STA_SUPPORT */
-/**
+/**
* @brief 11n configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1552,7 +1552,7 @@ wlan_11n_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
/**
* @brief This function will delete the given entry in Tx BA Stream table
- *
+ *
* @param priv Pointer to mlan_private
* @param ptx_tbl Pointer to tx ba stream entry to delete
*
@@ -1588,7 +1588,7 @@ wlan_11n_delete_txbastream_tbl_entry(mlan_private * priv,
/**
* @brief This function will delete all the entries in Tx BA Stream table
- *
+ *
* @param priv A pointer to mlan_private
*
* @return N/A
@@ -1619,9 +1619,9 @@ wlan_11n_deleteall_txbastream_tbl(mlan_private * priv)
}
/**
- * @brief This function will return the pointer to an entry in BA Stream
+ * @brief This function will return the pointer to an entry in BA Stream
* table which matches the give RA/TID pair
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID to find in reordering table
* @param ra RA to find in reordering table
@@ -1667,9 +1667,9 @@ wlan_11n_get_txbastream_tbl(mlan_private * priv, int tid, t_u8 * ra)
}
/**
- * @brief This function will create a entry in tx ba stream table for the
+ * @brief This function will create a entry in tx ba stream table for the
* given RA/TID.
- *
+ *
* @param priv A pointer to mlan_private
* @param ra RA to find in reordering table
* @param tid TID to find in reordering table
@@ -1711,7 +1711,7 @@ wlan_11n_create_txbastream_tbl(mlan_private * priv,
/**
* @brief This function will send a block ack to given tid/ra
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID to send the ADDBA
* @param peer_mac MAC address to send the ADDBA
@@ -1759,7 +1759,7 @@ wlan_send_addba(mlan_private * priv, int tid, t_u8 * peer_mac)
/**
* @brief This function will delete a block ack to given tid/ra
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID to send the ADDBA
* @param peer_mac MAC address to send the ADDBA
@@ -1793,10 +1793,10 @@ wlan_send_delba(mlan_private * priv, int tid, t_u8 * peer_mac, int initiator)
return ret;
}
-/**
+/**
* @brief This function handles the command response of
* delete a block ack request
- *
+ *
* @param priv A pointer to mlan_private structure
* @param del_ba A pointer to command response buffer
*
@@ -1823,9 +1823,9 @@ wlan_11n_delete_bastream(mlan_private * priv, t_u8 * del_ba)
LEAVE();
}
-/**
+/**
* @brief Get Rx reordering table
- *
+ *
* @param priv A pointer to mlan_private structure
* @param buf A pointer to rx_reorder_tbl structure
* @return number of rx reorder table entry
@@ -1872,9 +1872,9 @@ wlan_get_rxreorder_tbl(mlan_private * priv, rx_reorder_tbl * buf)
return count;
}
-/**
+/**
* @brief Get transmit BA stream table
- *
+ *
* @param priv A pointer to mlan_private structure
* @param buf A pointer to tx_ba_stream_tbl structure
* @return number of ba stream table entry
@@ -1916,9 +1916,9 @@ wlan_get_txbastream_tbl(mlan_private * priv, tx_ba_stream_tbl * buf)
/**
* @brief This function cleans up txbastream_tbl for specific station
- *
+ *
* @param priv A pointer to mlan_private
- * @param ra RA to find in txbastream_tbl
+ * @param ra RA to find in txbastream_tbl
* @return N/A
*/
void
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n.h b/drivers/net/wireless/sd8797/mlan/mlan_11n.h
index dc3d98974f03..3b83ad75ebcb 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n.h
@@ -112,7 +112,7 @@ mlan_status wlan_cmd_amsdu_aggr_ctrl(mlan_private * priv,
void wlan_11n_cleanup_txbastream_tbl(mlan_private * priv, t_u8 * ra);
/**
* @brief This function checks whether a station has 11N enabled or not
- *
+ *
* @param priv A pointer to mlan_private
* @param mac station mac address
* @return MTRUE or MFALSE
@@ -129,7 +129,7 @@ is_station_11n_enabled(mlan_private * priv, t_u8 * mac)
/**
* @brief This function get station max amsdu size
- *
+ *
* @param priv A pointer to mlan_private
* @param mac station mac address
* @return max amsdu size statio supported
@@ -146,7 +146,7 @@ get_station_max_amsdu_size(mlan_private * priv, t_u8 * mac)
/**
* @brief This function checks whether a station allows AMPDU or not
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -168,8 +168,8 @@ is_station_ampdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
}
/**
- * @brief This function disable station ampdu for specific tid
- *
+ * @brief This function disable station ampdu for specific tid
+ *
* @param priv A pointer to mlan_private
* @param tid tid index
* @param ra station mac address
@@ -187,7 +187,7 @@ disable_station_ampdu(mlan_private * priv, t_u8 tid, t_u8 * ra)
/**
* @brief This function checks whether current BA stream is high priority or not
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID
*
@@ -226,7 +226,7 @@ wlan_is_cur_bastream_high_prio(mlan_private * priv, int tid)
/**
* @brief This function checks whether AMPDU is allowed or not
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -249,7 +249,7 @@ wlan_is_ampdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether AMSDU is allowed for BA stream
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -271,7 +271,7 @@ wlan_is_amsdu_in_ampdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether AMSDU is allowed or not
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -299,7 +299,7 @@ wlan_is_amsdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether a BA stream is available or not
- *
+ *
* @param priv A pointer to mlan_private
*
* @return MTRUE or MFALSE
@@ -322,7 +322,7 @@ wlan_is_bastream_avail(mlan_private * priv)
/**
* @brief This function finds the stream to delete
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param ptr_tid TID value of ptr
@@ -372,7 +372,7 @@ wlan_find_stream_to_delete(mlan_private * priv,
/**
* @brief This function checks whether BA stream is setup
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -397,7 +397,7 @@ wlan_is_bastream_setup(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether 11n is supported
- *
+ *
* @param priv A pointer to mlan_private
* @param ra Address of the receiver STA
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c b/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c
index 239be3d67cea..6af4b6a698e8 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c
@@ -68,7 +68,7 @@ wlan_11n_form_amsdu_pkt(pmlan_adapter pmadapter, t_u8 * amsdu_buf, t_u8 * data,
0x03, /* LLC CTRL */
{0x00, 0x00, 0x00}, /* SNAP OUI */
0x0000 /* SNAP type */
- /*
+ /*
* This field will be overwritten
* later with ethertype
*/
@@ -105,7 +105,7 @@ wlan_11n_form_amsdu_pkt(pmlan_adapter pmadapter, t_u8 * amsdu_buf, t_u8 * data,
* @brief Add TxPD to AMSDU header
*
* @param priv A pointer to mlan_private structure
- * @param mbuf Pointer to buffer where the TxPD will be formed
+ * @param mbuf Pointer to buffer where the TxPD will be formed
*
* @return N/A
*/
@@ -120,8 +120,8 @@ wlan_11n_form_amsdu_txpd(mlan_private * priv, mlan_buffer * mbuf)
ptx_pd = (TxPD *) mbuf->pbuf;
memset(pmadapter, ptx_pd, 0, sizeof(TxPD));
- /*
- * Original priority has been overwritten
+ /*
+ * Original priority has been overwritten
*/
ptx_pd->priority = (t_u8) mbuf->priority;
ptx_pd->pkt_delay_2ms = wlan_wmm_compute_driver_packet_delay(priv, mbuf);
@@ -202,7 +202,7 @@ wlan_11n_get_num_aggrpkts(t_u8 * data, int total_pkt_len)
********************************************************/
/**
- * @brief Deaggregate the received AMSDU packet
+ * @brief Deaggregate the received AMSDU packet
*
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to aggregated data packet
@@ -317,7 +317,7 @@ wlan_11n_deaggregate_pkt(mlan_private * priv, pmlan_buffer pmbuf)
* @param priv A pointer to mlan_private structure
* @param pra_list Pointer to the RA List table containing the pointers
* to packets.
- * @param headroom Any interface specific headroom that may be need. TxPD
+ * @param headroom Any interface specific headroom that may be need. TxPD
* will be formed leaving this headroom.
* @param ptrindex Pointer index
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c b/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c
index cabd78b9017f..870081799c07 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c
@@ -4,7 +4,7 @@
* driver.
*
* Copyright (C) 2008-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -45,9 +45,9 @@ Change log:
Local Functions
********************************************************/
/**
- * @brief This function will dispatch amsdu packet and
+ * @brief This function will dispatch amsdu packet and
* forward it to kernel/upper layer
- *
+ *
* @param priv A pointer to mlan_private
* @param pmbuf A pointer to the received buffer
*
@@ -72,9 +72,9 @@ wlan_11n_dispatch_amsdu_pkt(mlan_private * priv, pmlan_buffer pmbuf)
}
/**
- * @brief This function will process the rx packet and
+ * @brief This function will process the rx packet and
* forward it to kernel/upper layer
- *
+ *
* @param priv A pointer to mlan_private
* @param payload A pointer to rx packet payload
*
@@ -121,7 +121,7 @@ wlan_11n_dispatch_pkt(t_void * priv, t_void * payload)
/**
* @brief This function restarts the reordering timeout timer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param rx_reor_tbl_ptr A pointer to structure RxReorderTbl
*
@@ -150,7 +150,7 @@ mlan_11n_rxreorder_timer_restart(pmlan_adapter pmadapter,
/**
* @brief This function dispatches all the packets in the buffer.
* There could be holes in the buffer.
- *
+ *
* @param priv A pointer to mlan_private
* @param rx_reor_tbl_ptr A pointer to structure RxReorderTbl
* @param start_win Start window
@@ -190,7 +190,7 @@ wlan_11n_dispatch_pkt_until_start_win(t_void * priv,
pmpriv->adapter->callbacks.moal_spin_lock(pmpriv->adapter->pmoal_handle,
pmpriv->rx_pkt_lock);
- /*
+ /*
* We don't have a circular buffer, hence use rotation to simulate
* circular buffer
*/
@@ -211,7 +211,7 @@ wlan_11n_dispatch_pkt_until_start_win(t_void * priv,
/**
* @brief This function will display the rxReorder table
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param rx_reor_tbl_ptr A pointer to structure RxReorderTbl
*
@@ -230,8 +230,8 @@ wlan_11n_display_tbl_ptr(pmlan_adapter pmadapter,
}
/**
- * @brief This function will dispatch all packets sequentially
- * from start_win until a hole is found and adjust the
+ * @brief This function will dispatch all packets sequentially
+ * from start_win until a hole is found and adjust the
* start_win appropriately
*
* @param priv A pointer to mlan_private
@@ -268,7 +268,7 @@ wlan_11n_scan_and_dispatch(t_void * priv, RxReorderTbl * rx_reor_tbl_ptr)
pmpriv->adapter->callbacks.moal_spin_lock(pmpriv->adapter->pmoal_handle,
pmpriv->rx_pkt_lock);
- /*
+ /*
* We don't have a circular buffer, hence use rotation to simulate
* circular buffer
*/
@@ -291,7 +291,7 @@ wlan_11n_scan_and_dispatch(t_void * priv, RxReorderTbl * rx_reor_tbl_ptr)
}
/**
- * @brief This function delete rxreorder table's entry
+ * @brief This function delete rxreorder table's entry
* and free the memory
*
* @param priv A pointer to mlan_private
@@ -343,7 +343,7 @@ wlan_11n_delete_rxreorder_tbl_entry(mlan_private * priv,
}
/**
- * @brief This function returns the last used sequence number
+ * @brief This function returns the last used sequence number
*
* @param rx_reorder_tbl_ptr A pointer to structure RxReorderTbl
*
@@ -396,9 +396,9 @@ wlan_flush_data(t_void * context)
}
/**
- * @brief This function will create a entry in rx reordering table for the
+ * @brief This function will create a entry in rx reordering table for the
* given ta/tid and will initialize it with seq_num, win_size
- *
+ *
* @param priv A pointer to mlan_private
* @param ta ta to find in reordering table
* @param tid tid to find in reordering table
@@ -419,7 +419,7 @@ wlan_11n_create_rxreorder_tbl(mlan_private * priv, t_u8 * ta, int tid,
ENTER();
- /*
+ /*
* If we get a TID, ta pair which is already present dispatch all the
* the packets and move the window size until the ssn
*/
@@ -499,9 +499,9 @@ wlan_11n_create_rxreorder_tbl(mlan_private * priv, t_u8 * ta, int tid,
********************************************************/
/**
- * @brief This function will return the pointer to a entry in rx reordering
+ * @brief This function will return the pointer to a entry in rx reordering
* table which matches the give TA/TID pair
- *
+ *
* @param priv A pointer to mlan_private
* @param ta ta to find in reordering table
* @param tid tid to find in reordering table
@@ -542,10 +542,10 @@ wlan_11n_get_rxreorder_tbl(mlan_private * priv, int tid, t_u8 * ta)
return MNULL;
}
-/**
+/**
* @brief This function prepares command for adding a block ack
* request.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -574,10 +574,10 @@ wlan_cmd_11n_addba_req(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command for adding a block ack
* response.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -649,10 +649,10 @@ wlan_cmd_11n_addba_rspgen(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command for deleting a block ack
* request.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -682,7 +682,7 @@ wlan_cmd_11n_delba(mlan_private * priv,
/**
* @brief This function will identify if RxReodering is needed for the packet
* and will do the reordering if required before sending it to kernel
- *
+ *
* @param priv A pointer to mlan_private
* @param seq_num Seqence number of the current packet
* @param tid Tid of the current packet
@@ -733,7 +733,7 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
PRINTM(MDAT_D,
"1:seq_num %d start_win %d win_size %d end_win %d\n",
seq_num, start_win, win_size, end_win);
- /*
+ /*
* If seq_num is less then starting win then ignore and drop
* the packet
*/
@@ -749,7 +749,7 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
goto done;
}
- /*
+ /*
* If this packet is a BAR we adjust seq_num as
* WinStart = seq_num
*/
@@ -805,7 +805,7 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
wlan_11n_display_tbl_ptr(pmadapter, rx_reor_tbl_ptr);
- /*
+ /*
* Dispatch all packets sequentially from start_win until a
* hole is found and adjust the start_win appropriately
*/
@@ -828,11 +828,11 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
/**
* @brief This function will delete an entry for a given tid/ta pair. tid/ta
* are taken from delba_event body
- *
+ *
* @param priv A pointer to mlan_private
* @param tid tid to send delba
* @param peer_mac MAC address to send delba
- * @param type TYPE_DELBA_SENT or TYPE_DELBA_RECEIVE
+ * @param type TYPE_DELBA_SENT or TYPE_DELBA_RECEIVE
* @param initiator MTRUE if we are initiator of ADDBA, MFALSE otherwise
*
* @return N/A
@@ -878,10 +878,10 @@ mlan_11n_delete_bastream_tbl(mlan_private * priv, int tid,
LEAVE();
}
-/**
+/**
* @brief This function handles the command response of
* a block ack response
- *
+ *
* @param priv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
*
@@ -950,7 +950,7 @@ wlan_ret_11n_addba_resp(mlan_private * priv, HostCmd_DS_COMMAND * resp)
/**
* @brief This function handles ba_stream_timeout event
- *
+ *
* @param priv A pointer to mlan_private
* @param event A pointer to structure HostCmd_DS_11N_BATIMEOUT
*
@@ -981,7 +981,7 @@ wlan_11n_ba_stream_timeout(mlan_private * priv,
/**
* @brief This function cleans up reorder tbl
- *
+ *
* @param priv A pointer to mlan_private
*
* @return N/A
@@ -1008,10 +1008,10 @@ wlan_11n_cleanup_reorder_tbl(mlan_private * priv)
}
/**
- * @brief This function handle the rxba_sync event
- *
+ * @brief This function handle the rxba_sync event
+ *
* @param priv A pointer to mlan_private
- * @param event_buf A pointer to event buf
+ * @param event_buf A pointer to event buf
* @param len event_buf length
* @return N/A
*/
@@ -1080,7 +1080,7 @@ wlan_11n_rxba_sync_event(mlan_private * priv, t_u8 * event_buf, t_u16 len)
/**
* @brief This function will send a DELBA for each entry in the priv's
* rx reordering table
- *
+ *
* @param priv A pointer to mlan_private
*/
t_void
@@ -1114,9 +1114,9 @@ wlan_send_delba_to_all_in_reorder_tbl(pmlan_private priv)
/**
* @brief This function cleans up reorder tbl for specific station
- *
+ *
* @param priv A pointer to mlan_private
- * @param ta ta to find in reordering table
+ * @param ta ta to find in reordering table
* @return N/A
*/
void
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_cfp.c b/drivers/net/wireless/sd8797/mlan/mlan_cfp.c
index 742c9cd368bc..23e849f04b63 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_cfp.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_cfp.c
@@ -445,12 +445,12 @@ t_u8 SupportedRates_N[N_SUPPORTED_RATES] = { 0x02, 0x04, 0 };
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief Find a character in a string.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param s A pointer to string
- * @param c Character to be located
+ * @param c Character to be located
* @param n The length of string
*
* @return A pointer to the first occurrence of c in string, or MNULL if c is not found.
@@ -473,10 +473,10 @@ wlan_memchr(pmlan_adapter pmadapter, void *s, int c, int n)
return MNULL;
}
-/**
- * @brief This function finds the CFP in
+/**
+ * @brief This function finds the CFP in
* cfp_table_BG/A based on region/code and band parameter.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param region The region code
* @param band The band
@@ -534,14 +534,14 @@ wlan_get_region_cfp_table(pmlan_adapter pmadapter, t_u8 region, t_u8 band,
#ifdef STA_SUPPORT
#endif /* STA_SUPPORT */
-/**
+/**
* @brief Use index to get the data rate
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param index The index of data rate
* @param ht_info ht info
*
- * @return Data rate or 0
+ * @return Data rate or 0
*/
t_u32
@@ -595,13 +595,13 @@ wlan_index_to_data_rate(pmlan_adapter pmadapter, t_u8 index, t_u8 ht_info)
return rate;
}
-/**
+/**
* @brief Use rate to get the index
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param rate Data rate
*
- * @return Index or 0
+ * @return Index or 0
*/
t_u8
wlan_data_rate_to_index(pmlan_adapter pmadapter, t_u32 rate)
@@ -619,9 +619,9 @@ wlan_data_rate_to_index(pmlan_adapter pmadapter, t_u32 rate)
return 0;
}
-/**
+/**
* @brief Get active data rates
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param bss_mode The specified BSS mode (Infra/IBSS)
* @param config_bands The specified band configuration
@@ -649,9 +649,9 @@ wlan_get_active_data_rates(mlan_private * pmpriv, t_u32 bss_mode,
}
#ifdef STA_SUPPORT
-/**
- * @brief This function search through all the regions cfp table to find the channel,
- * if the channel is found then gets the MIN txpower of the channel
+/**
+ * @brief This function search through all the regions cfp table to find the channel,
+ * if the channel is found then gets the MIN txpower of the channel
* present in all the regions.
*
* @param pmpriv A pointer to mlan_private structure
@@ -707,9 +707,9 @@ wlan_get_txpwr_of_chan_from_cfp(mlan_private * pmpriv, t_u8 channel)
return tx_power;
}
-/**
+/**
* @brief Get the channel frequency power info for a specific channel
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param band It can be BAND_A, BAND_G or BAND_B
* @param channel The channel to search for
@@ -784,9 +784,9 @@ wlan_get_cfp_by_band_and_channel(pmlan_adapter pmadapter,
return cfp;
}
-/**
+/**
* @brief Find the channel frequency power info for a specific channel
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param band It can be BAND_A, BAND_G or BAND_B
* @param channel The channel to search for
@@ -814,9 +814,9 @@ wlan_find_cfp_by_band_and_channel(mlan_adapter * pmadapter,
return cfp;
}
-/**
+/**
* @brief Find the channel frequency power info for a specific frequency
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param band It can be BAND_A, BAND_G or BAND_B
* @param freq The frequency to search for
@@ -888,9 +888,9 @@ wlan_find_cfp_by_band_and_freq(mlan_adapter * pmadapter, t_u8 band, t_u32 freq)
}
#endif /* STA_SUPPORT */
-/**
+/**
* @brief Check if Rate Auto
- *
+ *
* @param pmpriv A pointer to mlan_private structure
*
* @return MTRUE or MFALSE
@@ -914,9 +914,9 @@ wlan_is_rate_auto(mlan_private * pmpriv)
return MFALSE;
}
-/**
+/**
* @brief Covert Rate Bitmap to Rate index
- *
+ *
* @param pmadapter Pointer to mlan_adapter structure
* @param rate_bitmap Pointer to rate bitmap
* @param size Size of the bitmap array
@@ -941,9 +941,9 @@ wlan_get_rate_index(pmlan_adapter pmadapter, t_u16 * rate_bitmap, int size)
return -1;
}
-/**
+/**
* @brief Get supported data rates
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param bss_mode The specified BSS mode (Infra/IBSS)
* @param config_bands The specified band configuration
@@ -1040,9 +1040,9 @@ wlan_get_supported_rates(mlan_private * pmpriv, t_u32 bss_mode,
return k;
}
-/**
- * @brief This function sets region table.
- *
+/**
+ * @brief This function sets region table.
+ *
* @param pmpriv A pointer to mlan_private structure
* @param region The region code
* @param band The band
@@ -1107,7 +1107,7 @@ wlan_set_regiontable(mlan_private * pmpriv, t_u8 region, t_u8 band)
* @param priv Private driver information structure
* @param chnl Channel to determine radar detection requirements
*
- * @return
+ * @return
* - MTRUE if radar detection is required
* - MFALSE otherwise
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c b/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c
index 8b91ae2c43c2..f3db9e662565 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c
@@ -46,7 +46,7 @@ Change Log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function convert a given character to hex
*
* @param chr Character to be converted
@@ -122,9 +122,9 @@ wlan_parse_cal_cfg(t_u8 * src, t_size len, t_u8 * dst)
return (dptr - dst);
}
-/**
+/**
* @brief This function initializes the command node.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
* @param cmd_oid Cmd oid: treated as sub command
@@ -165,10 +165,10 @@ wlan_init_cmd_node(IN pmlan_private pmpriv,
LEAVE();
}
-/**
+/**
* @brief This function gets a free command node if available in
* command free queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or MNULL
@@ -203,9 +203,9 @@ wlan_get_cmd_node(mlan_adapter * pmadapter)
return pcmd_node;
}
-/**
+/**
* @brief This function cleans command node.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
*
@@ -235,9 +235,9 @@ wlan_clean_cmd_node(pmlan_adapter pmadapter, cmd_ctrl_node * pcmd_node)
}
/**
- * @brief This function will return the pointer to the first entry in
+ * @brief This function will return the pointer to the first entry in
* pending cmd which matches the given pioctl_req
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pioctl_req A pointer to mlan_ioctl_req buf
*
@@ -271,9 +271,9 @@ wlan_get_pending_ioctl_cmd(pmlan_adapter pmadapter, pmlan_ioctl_req pioctl_req)
return MNULL;
}
-/**
+/**
* @brief This function handles the command response of host_cmd
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -301,9 +301,9 @@ wlan_ret_host_cmd(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function sends host command to firmware.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -325,9 +325,9 @@ wlan_cmd_host_cmd(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function downloads a command to firmware.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
*
@@ -459,7 +459,7 @@ wlan_dnld_cmd_to_fw(IN mlan_private * pmpriv, IN cmd_ctrl_node * pcmd_node)
/**
* @brief This function sends sleep confirm command to firmware.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -539,9 +539,9 @@ wlan_dnld_sleep_confirm_cmd(mlan_adapter * pmadapter)
Global Functions
********************************************************/
-/**
+/**
* @brief Event handler
- *
+ *
* @param priv A pointer to mlan_private structure
* @param event_id Event ID
* @param pmevent Event buffer
@@ -574,10 +574,10 @@ wlan_recv_event(pmlan_private priv, mlan_event_id event_id, t_void * pmevent)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function allocates the command buffer and links
* it to command free queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -630,7 +630,7 @@ wlan_alloc_cmd_buffer(IN mlan_adapter * pmadapter)
/**
* @brief This function frees the command buffer.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS
@@ -676,9 +676,9 @@ wlan_free_cmd_buffer(IN mlan_adapter * pmadapter)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -745,9 +745,9 @@ wlan_process_event(pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function requests a lock on command queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -766,9 +766,9 @@ wlan_request_cmd_lock(IN mlan_adapter * pmadapter)
return;
}
-/**
+/**
* @brief This function releases a lock on command queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -787,9 +787,9 @@ wlan_release_cmd_lock(IN mlan_adapter * pmadapter)
return;
}
-/**
+/**
* @brief This function prepare the command before sending to firmware.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd_no Command number
* @param cmd_action Command action: GET or SET
@@ -904,10 +904,10 @@ wlan_prepare_cmd(IN mlan_private * pmpriv,
return ret;
}
-/**
+/**
* @brief This function inserts command node to cmd_free_q
* after cleaning it.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
*
@@ -944,9 +944,9 @@ wlan_insert_cmd_to_free_q(IN mlan_adapter * pmadapter,
LEAVE();
}
-/**
+/**
* @brief This function queues the command to cmd list.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
* @param add_tail Specify if the cmd needs to be queued in the header or tail
@@ -1008,14 +1008,14 @@ wlan_insert_cmd_to_pending_q(IN mlan_adapter * pmadapter,
return;
}
-/**
+/**
* @brief This function executes next command in command
* pending queue. It will put firmware back to PS mode
* if applicable.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
- * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
+ * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
mlan_status
wlan_exec_next_cmd(mlan_adapter * pmadapter)
@@ -1090,9 +1090,9 @@ wlan_exec_next_cmd(mlan_adapter * pmadapter)
return ret;
}
-/**
+/**
* @brief This function handles the command response
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1288,10 +1288,10 @@ wlan_process_cmdresp(mlan_adapter * pmadapter)
return ret;
}
-/**
+/**
* @brief This function handles the timeout of command sending.
* It will re-send the same command again.
- *
+ *
* @param function_context A pointer to function_context
* @return N/A
*/
@@ -1478,7 +1478,7 @@ wlan_flush_scan_queue(IN pmlan_adapter pmadapter)
/**
* @brief Cancel all pending cmd.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
*
* @return N/A
@@ -1530,7 +1530,7 @@ wlan_cancel_all_pending_cmd(pmlan_adapter pmadapter)
/**
* @brief Cancel pending ioctl cmd.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pioctl_req A pointer to mlan_ioctl_req buf
*
@@ -1642,7 +1642,7 @@ wlan_ret_rx_mgmt_ind(IN pmlan_private pmpriv,
/**
* @brief This function checks conditions and prepares to
* send sleep confirm command to firmware if OK.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -1665,9 +1665,9 @@ wlan_check_ps_cond(mlan_adapter * pmadapter)
LEAVE();
}
-/**
+/**
* @brief This function sends the HS_ACTIVATED event to the application
- *
+ *
* @param priv A pointer to mlan_private structure
* @param activated MTRUE if activated, MFALSE if de-activated
*
@@ -1694,9 +1694,9 @@ wlan_host_sleep_activated_event(pmlan_private priv, t_u8 activated)
LEAVE();
}
-/**
+/**
* @brief This function sends the HS_WAKEUP event to the application
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return N/A
@@ -1715,9 +1715,9 @@ wlan_host_sleep_wakeup_event(pmlan_private priv)
LEAVE();
}
-/**
+/**
* @brief This function handles the command response of hs_cfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1767,9 +1767,9 @@ wlan_ret_802_11_hs_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Perform hs related activities on receiving the power up interrupt
- *
+ *
* @param pmadapter A pointer to the adapter structure
* @return N/A
*/
@@ -1784,9 +1784,9 @@ wlan_process_hs_config(pmlan_adapter pmadapter)
return;
}
-/**
+/**
* @brief Check sleep confirm command response and set the state to ASLEEP
- *
+ *
* @param pmadapter A pointer to the adapter structure
* @param pbuf A pointer to the command response buffer
* @param upld_len Command response buffer length
@@ -1842,7 +1842,7 @@ wlan_process_sleep_confirm_resp(pmlan_adapter pmadapter, t_u8 * pbuf,
/**
* @brief This function prepares command of power mode
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -1964,9 +1964,9 @@ wlan_cmd_enh_power_mode(pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of ps_mode_enh
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -2116,9 +2116,9 @@ wlan_ret_enh_power_mode(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of tx rate query
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -2150,7 +2150,7 @@ wlan_ret_802_11_tx_rate_query(IN pmlan_private pmpriv,
rate->param.rate_cfg.rate =
pmpriv->tx_rate + MLAN_RATE_INDEX_MCS0;
else
- /* For HostCmd_CMD_802_11_TX_RATE_QUERY, there is a hole in
+ /* For HostCmd_CMD_802_11_TX_RATE_QUERY, there is a hole in
rate table between HR/DSSS and OFDM rates, so minus 1
for OFDM rate index */
rate->param.rate_cfg.rate =
@@ -2209,9 +2209,9 @@ wlan_ret_802_11_tx_rate_query(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of tx_rate_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2275,12 +2275,12 @@ wlan_cmd_tx_rate_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of tx_rate_cfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -2387,7 +2387,7 @@ wlan_ret_tx_rate_cfg(IN pmlan_private pmpriv,
}
/**
- * @brief This function issues adapter specific commands
+ * @brief This function issues adapter specific commands
* to initialize firmware
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2410,8 +2410,8 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter)
pmpriv_sta = wlan_get_priv(pmadapter, MLAN_BSS_ROLE_STA);
#endif
- /*
- * This should be issued in the very first to config
+ /*
+ * This should be issued in the very first to config
* SDIO_GPIO interrupt mode.
*/
if (wlan_set_sdio_gpio_int(pmpriv) != MLAN_STATUS_SUCCESS) {
@@ -2439,7 +2439,7 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter)
pmadapter->cal_data_len = 0;
}
- /*
+ /*
* Get HW spec
*/
ret = wlan_prepare_cmd(pmpriv, HostCmd_CMD_GET_HW_SPEC,
@@ -2501,9 +2501,9 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function prepares command of get_hw_spec.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd A pointer to HostCmd_DS_COMMAND structure
*
@@ -2525,7 +2525,7 @@ wlan_cmd_get_hw_spec(IN pmlan_private pmpriv, IN HostCmd_DS_COMMAND * pcmd)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of set_cfg_data.
*
* @param pmpriv A pointer to mlan_private strcture
@@ -2603,9 +2603,9 @@ wlan_ret_cfg_data(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles the command response of get_hw_spec
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -2741,9 +2741,9 @@ wlan_ret_get_hw_spec(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function prepares command of radio_control.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2769,12 +2769,12 @@ wlan_cmd_802_11_radio_control(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of radio_control
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -2800,9 +2800,9 @@ wlan_ret_802_11_radio_control(IN pmlan_private pmpriv,
}
#ifdef WIFI_DIRECT_SUPPORT
-/**
+/**
* @brief This function prepares command of remain_on_channel.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2838,12 +2838,12 @@ wlan_cmd_remain_on_channel(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of remain_on_channel
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -2869,9 +2869,9 @@ wlan_ret_remain_on_channel(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of wifi direct mode.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2898,12 +2898,12 @@ wlan_cmd_wifi_direct_mode(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of wifi direct mode
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_fw.h b/drivers/net/wireless/sd8797/mlan/mlan_fw.h
index 4b15b43711b5..1b0af8d8c0ea 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_fw.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_fw.h
@@ -196,11 +196,11 @@ typedef enum _KEY_INFO_WAPI
/** The number of times to try when polling for status bits */
#define MAX_POLL_TRIES 100
-/** The number of times to try when waiting for downloaded firmware to
+/** The number of times to try when waiting for downloaded firmware to
become active when multiple interface is present */
#define MAX_MULTI_INTERFACE_POLL_TRIES 1000
-/** The number of times to try when waiting for downloaded firmware to
+/** The number of times to try when waiting for downloaded firmware to
become active. (polling the scratch register). */
#define MAX_FIRMWARE_POLL_TRIES 100
@@ -2275,10 +2275,10 @@ typedef MLAN_PACK_START struct _AdHoc_BssDesc_t
/** Supported data rates */
t_u8 data_rates[HOSTCMD_SUPPORTED_RATES];
- /*
+ /*
* DO NOT ADD ANY FIELDS TO THIS STRUCTURE.
- * It is used in the Adhoc join command and will cause a
- * binary layout mismatch with the firmware
+ * It is used in the Adhoc join command and will cause a
+ * binary layout mismatch with the firmware
*/
} MLAN_PACK_END AdHoc_BssDesc_t;
@@ -2676,9 +2676,9 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END IEBody;
#endif /* STA_SUPPORT */
-/*
- * This scan handle Country Information IE(802.11d compliant)
- * Define data structure for HostCmd_CMD_802_11_SCAN
+/*
+ * This scan handle Country Information IE(802.11d compliant)
+ * Define data structure for HostCmd_CMD_802_11_SCAN
*/
/** HostCmd_DS_802_11_SCAN */
typedef MLAN_PACK_START struct _HostCmd_DS_802_11_SCAN
@@ -2689,9 +2689,9 @@ typedef MLAN_PACK_START struct _HostCmd_DS_802_11_SCAN
t_u8 bssid[MLAN_MAC_ADDR_LENGTH];
/** TLV buffer */
t_u8 tlv_buffer[1];
- /** MrvlIEtypes_SsIdParamSet_t SsIdParamSet;
+ /** MrvlIEtypes_SsIdParamSet_t SsIdParamSet;
* MrvlIEtypes_ChanListParamSet_t ChanListParamSet;
- * MrvlIEtypes_RatesParamSet_t OpRateSet;
+ * MrvlIEtypes_RatesParamSet_t OpRateSet;
*/
} MLAN_PACK_END HostCmd_DS_802_11_SCAN;
@@ -2995,15 +2995,15 @@ typedef MLAN_PACK_START struct
/**
* @brief Firmware command structure to retrieve the firmware WMM status.
*
- * Used to retrieve the status of each WMM AC Queue in TLV
+ * Used to retrieve the status of each WMM AC Queue in TLV
* format (MrvlIEtypes_WmmQueueStatus_t) as well as the current WMM
- * parameter IE advertised by the AP.
- *
+ * parameter IE advertised by the AP.
+ *
* Used in response to a EVENT_WMM_STATUS_CHANGE event signaling
* a QOS change on one of the ACs or a change in the WMM Parameter in
* the Beacon.
*
- * TLV based command, byte arrays used for max sizing purpose. There are no
+ * TLV based command, byte arrays used for max sizing purpose. There are no
* arguments sent in the command, the TLVs are returned by the firmware.
*/
typedef MLAN_PACK_START struct
@@ -3051,7 +3051,7 @@ typedef MLAN_PACK_START struct
mlan_wmm_ac_e access_category; /**< WMM_AC_BK(0) to WMM_AC_VO(3) */
/** @brief MSDU lifetime expiry per 802.11e
*
- * - Ignored if 0 on a set command
+ * - Ignored if 0 on a set command
* - Set to the 802.11e specified 500 TUs when defaulted
*/
t_u16 msdu_lifetime_expiry;
@@ -3334,7 +3334,7 @@ typedef MLAN_PACK_START struct _MrvlIEtypes_Cipher_t
t_u8 group_cipher;
} MLAN_PACK_END MrvlIEtypes_Cipher_t;
-/* rsnMode -
+/* rsnMode -
* Bit 0 : No RSN
* Bit 1-2 : RFU
* Bit 3 : WPA
@@ -4196,8 +4196,8 @@ typedef MLAN_PACK_START struct
t_u8 switch_count; /**< Number of TBTTs until the switch is to occur */
} MLAN_PACK_END HostCmd_DS_802_11_CHAN_SW_ANN;
-/**
- * @brief Enumeration of measurement types, including max supported
+/**
+ * @brief Enumeration of measurement types, including max supported
* enum for 11h/11k
*/
typedef MLAN_PACK_START enum _MeasType_t
@@ -4208,7 +4208,7 @@ typedef MLAN_PACK_START enum _MeasType_t
} MLAN_PACK_END MeasType_t;
-/**
+/**
* @brief Mode octet of the measurement request element (7.3.2.21)
*/
typedef MLAN_PACK_START struct
@@ -4231,7 +4231,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasReqMode_t;
-/**
+/**
* @brief Common measurement request structure (7.3.2.21.1 to 7.3.2.21.3)
*/
typedef MLAN_PACK_START struct
@@ -4242,23 +4242,23 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasReqCommonFormat_t;
-/**
+/**
* @brief Basic measurement request structure (7.3.2.21.1)
*/
typedef MeasReqCommonFormat_t MeasReqBasic_t;
-/**
+/**
* @brief CCA measurement request structure (7.3.2.21.2)
*/
typedef MeasReqCommonFormat_t MeasReqCCA_t;
-/**
+/**
* @brief RPI measurement request structure (7.3.2.21.3)
*/
typedef MeasReqCommonFormat_t MeasReqRPI_t;
-/**
- * @brief Union of the availble measurement request types. Passed in the
+/**
+ * @brief Union of the availble measurement request types. Passed in the
* driver/firmware interface.
*/
typedef union
@@ -4269,7 +4269,7 @@ typedef union
} MeasRequest_t;
-/**
+/**
* @brief Mode octet of the measurement report element (7.3.2.22)
*/
typedef MLAN_PACK_START struct
@@ -4288,7 +4288,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptMode_t;
-/**
+/**
* @brief Basic measurement report (7.3.2.22.1)
*/
typedef MLAN_PACK_START struct
@@ -4300,7 +4300,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptBasic_t;
-/**
+/**
* @brief CCA measurement report (7.3.2.22.2)
*/
typedef MLAN_PACK_START struct
@@ -4312,7 +4312,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptCCA_t;
-/**
+/**
* @brief RPI measurement report (7.3.2.22.3)
*/
typedef MLAN_PACK_START struct
@@ -4324,8 +4324,8 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptRPI_t;
-/**
- * @brief Union of the availble measurement report types. Passed in the
+/**
+ * @brief Union of the availble measurement report types. Passed in the
* driver/firmware interface.
*/
typedef union
@@ -4336,7 +4336,7 @@ typedef union
} MeasReport_t;
-/**
+/**
* @brief Structure passed to firmware to perform a measurement
*/
typedef MLAN_PACK_START struct
@@ -4349,7 +4349,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END HostCmd_DS_MEASUREMENT_REQUEST;
-/**
+/**
* @brief Structure passed back from firmware with a measurement report,
* also can be to send a measurement report to another STA
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_ieee.h b/drivers/net/wireless/sd8797/mlan/mlan_ieee.h
index 923a38056800..9473c498b973 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_ieee.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_ieee.h
@@ -456,7 +456,7 @@ typedef MLAN_PACK_START struct _IEEEtypes_WmmInfo_t
/**
* WMM Info IE - Vendor Specific Header:
* element_id [221/0xdd]
- * Len [7]
+ * Len [7]
* Oui [00:50:f2]
* OuiType [2]
* OuiSubType [0]
@@ -475,7 +475,7 @@ typedef MLAN_PACK_START struct _IEEEtypes_WmmParameter_t
/**
* WMM Parameter IE - Vendor Specific Header:
* element_id [221/0xdd]
- * Len [24]
+ * Len [24]
* Oui [00:50:f2]
* OuiType [2]
* OuiSubType [1]
@@ -543,8 +543,8 @@ typedef MLAN_PACK_START struct
IEEEtypes_WMM_TSPEC_TS_Info_PSB_e PowerSaveBehavior:1; // !
// Legacy/Trigg
t_u8 Aggregation:1; // ! Reserved
- t_u8 AccessPolicy2:1; // !
- t_u8 AccessPolicy1:1; // !
+ t_u8 AccessPolicy2:1; // !
+ t_u8 AccessPolicy1:1; // !
IEEEtypes_WMM_TSPEC_TS_Info_Direction_e Direction:2;
t_u8 TID:4; // ! Unique identifier
IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e TrafficType:1;
@@ -552,8 +552,8 @@ typedef MLAN_PACK_START struct
IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e TrafficType:1;
t_u8 TID:4; // ! Unique identifier
IEEEtypes_WMM_TSPEC_TS_Info_Direction_e Direction:2;
- t_u8 AccessPolicy1:1; // !
- t_u8 AccessPolicy2:1; // !
+ t_u8 AccessPolicy1:1; // !
+ t_u8 AccessPolicy2:1; // !
t_u8 Aggregation:1; // ! Reserved
IEEEtypes_WMM_TSPEC_TS_Info_PSB_e PowerSaveBehavior:1; // !
// Legacy/Trigg
@@ -903,8 +903,8 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END IEEEtypes_TPCReport_t;
/* IEEE Supported Channel sub-band description (7.3.2.19) */
-/**
- * Sub-band description used in the supported channels element.
+/**
+ * Sub-band description used in the supported channels element.
*/
typedef MLAN_PACK_START struct
{
@@ -932,7 +932,7 @@ typedef MLAN_PACK_START struct
/**
* Provided in beacons and probe responses. Used to advertise when
* and to which channel it is changing to. Only starting STAs in
- * an IBSS and APs are allowed to originate a chan switch element.
+ * an IBSS and APs are allowed to originate a chan switch element.
*/
typedef MLAN_PACK_START struct
{
@@ -946,9 +946,9 @@ typedef MLAN_PACK_START struct
/* IEEE Quiet Period Element (7.3.2.23) */
/**
- * Provided in beacons and probe responses. Indicates times during
+ * Provided in beacons and probe responses. Indicates times during
* which the STA should not be transmitting data. Only starting STAs in
- * an IBSS and APs are allowed to originate a quiet element.
+ * an IBSS and APs are allowed to originate a quiet element.
*/
typedef MLAN_PACK_START struct
{
@@ -986,8 +986,8 @@ typedef MLAN_PACK_START struct
/* IEEE DFS Channel Map field (7.3.2.24) */
/**
- * Used to list supported channels and provide a octet "map" field which
- * contains a basic measurement report for that channel in the
+ * Used to list supported channels and provide a octet "map" field which
+ * contains a basic measurement report for that channel in the
* IEEEtypes_IBSS_DFS_t element
*/
typedef MLAN_PACK_START struct
@@ -999,7 +999,7 @@ typedef MLAN_PACK_START struct
/* IEEE IBSS DFS Element (7.3.2.24) */
/**
- * IBSS DFS element included in ad hoc beacons and probe responses.
+ * IBSS DFS element included in ad hoc beacons and probe responses.
* Provides information regarding the IBSS DFS Owner as well as the
* originating STAs supported channels and basic measurement results.
*/
@@ -1018,7 +1018,7 @@ typedef MLAN_PACK_START struct
/* 802.11h BSS information kept for each BSSID received in scan results */
/**
* IEEE BSS information needed from scan results for later processing in
- * join commands
+ * join commands
*/
typedef struct
{
@@ -1048,7 +1048,7 @@ typedef struct
/**
* IOCTL SSID List sub-structure sent in wlan_ioctl_user_scan_cfg
- *
+ *
* Used to specify SSID specific filters as well as SSID pattern matching
* filters for scan result processing in firmware.
*/
@@ -1083,7 +1083,7 @@ typedef MLAN_PACK_START struct _wlan_user_scan_chan
/**
* Input structure to configure an immediate scan cmd to firmware
*
- * Specifies a number of parameters to be used in general for the scan
+ * Specifies a number of parameters to be used in general for the scan
* as well as a channel list (wlan_user_scan_chan) for each scan period
* desired.
*/
@@ -1104,7 +1104,7 @@ typedef MLAN_PACK_START struct
*
* - MLAN_SCAN_MODE_BSS (infrastructure)
* - MLAN_SCAN_MODE_IBSS (adhoc)
- * - MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
+ * - MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
*/
t_u8 bss_mode;
/**
@@ -1158,10 +1158,10 @@ typedef MLAN_PACK_START struct
t_u16 action;
/** enable/disable */
t_u8 enable;
- /** BSS type:
+ /** BSS type:
* MLAN_SCAN_MODE_BSS (infrastructure)
* MLAN_SCAN_MODE_IBSS (adhoc)
- * MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
+ * MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
*/
t_u8 bss_type;
/** number of channel scanned during each scan */
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_init.c b/drivers/net/wireless/sd8797/mlan/mlan_init.c
index e949502e7d69..563f74cd3980 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_init.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_init.c
@@ -48,7 +48,7 @@ Change log:
/**
* @brief This function adds a BSS priority table
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -92,7 +92,7 @@ wlan_add_bsspriotbl(pmlan_private priv)
/**
* @brief This function deletes the BSS priority table
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return N/A
@@ -147,10 +147,10 @@ wlan_delete_bsspriotbl(pmlan_private priv)
Global Functions
********************************************************/
-/**
+/**
* @brief This function allocates buffer for the members of adapter
* structure like command buffer and BSSID list.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -234,7 +234,7 @@ wlan_allocate_adapter(pmlan_adapter pmadapter)
/**
* @brief This function initializes the private structure
* and sets default values to the members of mlan_private.
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -354,7 +354,7 @@ wlan_init_priv(pmlan_private priv)
/**
* @brief This function initializes the adapter structure
* and sets default values to the members of adapter.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -571,9 +571,9 @@ wlan_init_adapter(pmlan_adapter pmadapter)
}
/**
- * @brief This function intializes the lock variables and
+ * @brief This function intializes the lock variables and
* the list heads.
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS -- on success,
@@ -698,10 +698,10 @@ wlan_init_lock_list(IN pmlan_adapter pmadapter)
/**
* @brief This function releases the lock variables
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
- * @return None
+ * @return None
*
*/
t_void
@@ -793,7 +793,7 @@ wlan_free_lock_list(IN pmlan_adapter pmadapter)
/**
* @brief This function intializes the timers
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS -- on success,
@@ -822,10 +822,10 @@ wlan_init_timer(IN pmlan_adapter pmadapter)
/**
* @brief This function releases the timers
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
- * @return None
+ * @return None
*
*/
t_void
@@ -903,9 +903,9 @@ wlan_init_fw(IN pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function frees the structure of adapter
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -965,9 +965,9 @@ wlan_free_adapter(pmlan_adapter pmadapter)
return;
}
-/**
+/**
* @brief This function frees the structure of priv
- *
+ *
* @param pmpriv A pointer to mlan_private structure
*
* @return N/A
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h b/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h
index b947ce09675b..15e88e631067 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h
@@ -335,7 +335,7 @@ typedef struct _wlan_ioctl_get_scan_table_entry
*/
wlan_get_scan_table_fixed fixed_fields;
- /*
+ /*
* Probe response or beacon scanned for the BSS.
*
* Field layout:
@@ -832,7 +832,7 @@ typedef struct _mlan_uap_bss_param
wpa_param wpa_cfg;
/** Mgmt IE passthru mask */
t_u32 mgmt_ie_passthru_mask;
- /*
+ /*
* 11n HT Cap HTCap_t ht_cap
*/
/** HT Capabilities Info field */
@@ -1162,7 +1162,7 @@ typedef struct _mlan_ds_uap_stats
typedef struct _mlan_ds_get_signal
{
/** Selector of get operation */
- /*
+ /*
* Bit0: Last Beacon RSSI, Bit1: Average Beacon RSSI,
* Bit2: Last Data RSSI, Bit3: Average Data RSSI,
* Bit4: Last Beacon SNR, Bit5: Average Beacon SNR,
@@ -1826,7 +1826,7 @@ typedef struct _mlan_ds_hs_cfg
/** Bit0: broadcast data
* Bit1: unicast data
* Bit2: mac event
- * Bit3: multicast data
+ * Bit3: multicast data
*/
t_u32 conditions;
/** GPIO pin or 0xff for interface */
@@ -2057,7 +2057,7 @@ typedef struct _mlan_ds_pm_cfg
/**
* @brief IOCTL structure to send an ADDTS request and retrieve the response.
*
- * IOCTL structure from the application layer relayed to firmware to
+ * IOCTL structure from the application layer relayed to firmware to
* instigate an ADDTS management frame with an appropriate TSPEC IE as well
* as any additional IEs appended in the ADDTS Action frame.
*
@@ -2078,7 +2078,7 @@ typedef struct
/**
* @brief IOCTL structure to send a DELTS request.
*
- * IOCTL structure from the application layer relayed to firmware to
+ * IOCTL structure from the application layer relayed to firmware to
* instigate an DELTS management frame with an appropriate TSPEC IE.
*
* @sa woal_wmm_delts_req_ioctl
@@ -2094,7 +2094,7 @@ typedef struct
/**
* @brief IOCTL structure to configure a specific AC Queue's parameters
*
- * IOCTL structure from the application layer relayed to firmware to
+ * IOCTL structure from the application layer relayed to firmware to
* get, set, or default the WMM AC queue parameters.
*
* - msdu_lifetime_expiry is ignored if set to 0 on a set command
@@ -2151,7 +2151,7 @@ typedef struct
/** Type definition of mlan_ds_wmm_queue_stats for MLAN_OID_WMM_CFG_QUEUE_STATS */
mlan_ds_wmm_queue_stats, *pmlan_ds_wmm_queue_stats;
-/**
+/**
* @brief IOCTL sub structure for a specific WMM AC Status
*/
typedef struct
@@ -2428,7 +2428,7 @@ typedef struct _mlan_ds_11n_tx_bf_cfg
} body;
} mlan_ds_11n_tx_bf_cfg, *pmlan_ds_11n_tx_bf_cfg;
-/** Type definition of mlan_ds_11n_amsdu_aggr_ctrl for
+/** Type definition of mlan_ds_11n_amsdu_aggr_ctrl for
* MLAN_OID_11N_AMSDU_AGGR_CTRL*/
typedef struct _mlan_ds_11n_amsdu_aggr_ctrl
{
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_join.c b/drivers/net/wireless/sd8797/mlan/mlan_join.c
index c997a6f804ee..1399ae8b3c16 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_join.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_join.c
@@ -54,7 +54,7 @@ Change log:
/**
* @brief Append a generic IE as a pass through TLV to a TLV buffer.
*
- * This function is called from the network join command prep. routine.
+ * This function is called from the network join command prep. routine.
* If the IE buffer has been setup by the application, this routine appends
* the buffer as a pass through TLV type to the request.
*
@@ -81,7 +81,7 @@ wlan_cmd_append_generic_ie(mlan_private * priv, t_u8 ** ppbuffer)
return 0;
}
- /*
+ /*
* If there is a generic ie buffer setup, append it to the return
* parameter buffer pointer.
*/
@@ -117,21 +117,21 @@ wlan_cmd_append_generic_ie(mlan_private * priv, t_u8 ** ppbuffer)
/**
* @brief Append TSF tracking info from the scan table for the target AP
- *
- * This function is called from the network join command prep. routine.
+ *
+ * This function is called from the network join command prep. routine.
* The TSF table TSF sent to the firmware contains two TSF values:
* - the TSF of the target AP from its previous beacon/probe response
* - the TSF timestamp of our local MAC at the time we observed the
* beacon/probe response.
- *
+ *
* The firmware uses the timestamp values to set an initial TSF value
* in the MAC for the new association after a reassociation attempt.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param ppbuffer A pointer to command buffer pointer
* @param pbss_desc A pointer to the BSS Descriptor from the scan table of
* the AP we are trying to join
- *
+ *
* @return bytes added to the buffer
*/
static int
@@ -337,9 +337,9 @@ wlan_update_tsf_timestamps(IN mlan_private * pmpriv,
}
/**
- * @brief Append a wapi IE
+ * @brief Append a wapi IE
*
- * This function is called from the network join command prep. routine.
+ * This function is called from the network join command prep. routine.
* If the IE buffer has been setup by the application, this routine appends
* the buffer as a wapi TLV type to the request.
*
@@ -366,7 +366,7 @@ wlan_cmd_append_wapi_ie(mlan_private * priv, t_u8 ** ppBuffer)
return 0;
}
- /*
+ /*
* If there is a wapi ie buffer setup, append it to the return
* parameter buffer pointer.
*/
@@ -404,7 +404,7 @@ wlan_cmd_append_wapi_ie(mlan_private * priv, t_u8 ** ppBuffer)
*
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
- * @param pdata_buf A pointer cast of BSSDescriptor_t from the
+ * @param pdata_buf A pointer cast of BSSDescriptor_t from the
* scan table to assoc
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -539,9 +539,9 @@ wlan_cmd_802_11_associate(IN mlan_private * pmpriv,
if (!pmpriv->wps.session_enable) {
if ((pmpriv->sec_info.wpa_enabled || pmpriv->sec_info.wpa2_enabled)) {
prsn_ie_tlv = (MrvlIEtypes_RsnParamSet_t *) pos;
- prsn_ie_tlv->header.type = (t_u16) pmpriv->wpa_ie[0]; /* WPA_IE
+ prsn_ie_tlv->header.type = (t_u16) pmpriv->wpa_ie[0]; /* WPA_IE
or
- RSN_IE
+ RSN_IE
*/
prsn_ie_tlv->header.type = prsn_ie_tlv->header.type & 0x00FF;
prsn_ie_tlv->header.type =
@@ -638,7 +638,7 @@ wlan_cmd_802_11_associate(IN mlan_private * pmpriv,
goto done;
}
- /*
+ /*
* Call 11h join API after capability bits are set so adhoc/infra 11h
* behavior can be properly triggered. pos modified if data is appended
*/
@@ -717,7 +717,7 @@ wlan_cmd_802_11_associate(IN mlan_private * pmpriv,
* .------------------------------------------------------------.
*
*
- * For cases where an association response was received, the IEEE
+ * For cases where an association response was received, the IEEE
* standard association response frame is returned:
*
* .------------------------------------------------------------.
@@ -802,7 +802,7 @@ wlan_ret_802_11_associate(IN mlan_private * pmpriv,
pmpriv->curr_bss_params.band = (t_u8) pbss_desc->bss_band;
- /*
+ /*
* Adjust the timestamps in the scan table to be relative to the newly
* associated AP's TSF
*/
@@ -959,7 +959,7 @@ wlan_cmd_802_11_ad_hoc_start(IN mlan_private * pmpriv,
pbss_desc = &pmpriv->curr_bss_params.bss_descriptor;
pmpriv->pattempted_bss_desc = pbss_desc;
- /*
+ /*
* Fill in the parameters for 2 data structures:
* 1. HostCmd_DS_802_11_AD_HOC_START command
* 2. pbss_desc
@@ -1142,7 +1142,7 @@ wlan_cmd_802_11_ad_hoc_start(IN mlan_private * pmpriv,
goto done;
}
- /*
+ /*
* Call 11h start API to add any 11h flags/elements as TLV parameters
*/
append_size_11h = wlan_11h_process_start(pmpriv, &pos, &padhoc_start->cap,
@@ -1244,7 +1244,7 @@ wlan_cmd_802_11_ad_hoc_start(IN mlan_private * pmpriv,
*
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
- * @param pdata_buf Void cast of BSSDescriptor_t from the
+ * @param pdata_buf Void cast of BSSDescriptor_t from the
* scan table to join
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1385,7 +1385,7 @@ wlan_cmd_802_11_ad_hoc_join(IN mlan_private * pmpriv,
goto done;
}
- /*
+ /*
* Call 11h join API after capability bits are set so
* adhoc/infra 11h behavior can be properly triggered.
* pos modified if data is appended
@@ -1528,7 +1528,7 @@ wlan_ret_802_11_ad_hoc(IN mlan_private * pmpriv,
pbss_desc = pmpriv->pattempted_bss_desc;
- /*
+ /*
* Join result code 0 --> SUCCESS
*/
if (result) {
@@ -1559,13 +1559,13 @@ wlan_ret_802_11_ad_hoc(IN mlan_private * pmpriv,
if (pmpriv->adapter->state_rdh.stage == RDH_RESTART_INTFS)
wlan_11h_radar_detected_callback((t_void *) pmpriv);
} else {
- /*
+ /*
* Now the join cmd should be successful.
* If BSSID has changed use SSID to compare instead of BSSID
*/
PRINTM(MINFO, "ADHOC_J_RESP %s\n", pbss_desc->ssid.ssid);
- /*
+ /*
* Make a copy of current BSSID descriptor, only needed for join since
* the current descriptor is already being used for adhoc start
*/
@@ -1670,7 +1670,7 @@ wlan_adhoc_start(IN mlan_private * pmpriv,
ENTER();
- /*
+ /*
* If the report indicates no measurement was done, leave the default
* return value alone.
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_main.h b/drivers/net/wireless/sd8797/mlan/mlan_main.h
index 1a0a4e1d1871..fb15c7226c38 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_main.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_main.h
@@ -1034,7 +1034,7 @@ typedef struct _mlan_private
t_u32 assoc_rsp_size;
/** Generic IEEE IEs passed from the application to be inserted into the
- * association request to firmware
+ * association request to firmware
*/
t_u8 gen_ie_buf[MRVDRV_GENIE_BUF_SIZE];
/** Length of the data stored in gen_ie_buf */
@@ -1336,8 +1336,8 @@ typedef struct
/**
* @brief Driver measurement state held in 'mlan_adapter' structure
- *
- * Used to record a measurement request that the driver is pending on
+ *
+ * Used to record a measurement request that the driver is pending on
* the result (received measurement report).
*/
typedef struct
@@ -1537,22 +1537,22 @@ typedef struct _mlan_adapter
t_u32 upld_len;
/** Upload buffer*/
t_u8 upld_buf[WLAN_UPLD_SIZE];
- /** Data sent:
+ /** Data sent:
* TRUE - Data is sent to fw, no Tx Done received
* FALSE - Tx done received for previous Tx
*/
t_u8 data_sent;
- /** CMD sent:
+ /** CMD sent:
* TRUE - CMD is sent to fw, no CMD Done received
* FALSE - CMD done received for previous CMD
*/
t_u8 cmd_sent;
- /** CMD Response received:
+ /** CMD Response received:
* TRUE - CMD is response is received from fw, and yet to process
* FALSE - No cmd response to process
*/
t_u8 cmd_resp_received;
- /** Event received:
+ /** Event received:
* TRUE - Event received from fw, and yet to process
* FALSE - No events to process
*/
@@ -2298,7 +2298,7 @@ t_u8 *wlan_get_specific_ie(pmlan_private priv, t_u8 * ie_buf, t_u8 ie_len,
/**
* @brief This function checks tx_pause flag for peer
- *
+ *
* @param priv A pointer to mlan_private
* @param ra Address of the receiver STA
*
@@ -2366,9 +2366,9 @@ mlan_status wlan_set_drvdbg(IN pmlan_adapter pmadapter,
IN pmlan_ioctl_req pioctl_req);
#endif
-/**
+/**
* @brief RA based queueing
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MTRUE or MFALSE
@@ -2376,7 +2376,7 @@ mlan_status wlan_set_drvdbg(IN pmlan_adapter pmadapter,
static INLINE t_u8
queuing_ra_based(pmlan_private priv)
{
- /*
+ /*
* Currently we assume if we are in Infra, then DA=RA. This might not be
* true in the future
*/
@@ -2387,9 +2387,9 @@ queuing_ra_based(pmlan_private priv)
return MTRUE;
}
-/**
+/**
* @brief Copy Rates
- *
+ *
* @param dest A pointer to Dest Buf
* @param pos The position for copy
* @param src A pointer to Src Buf
@@ -2411,9 +2411,9 @@ wlan_copy_rates(t_u8 * dest, t_u32 pos, t_u8 * src, int len)
return pos;
}
-/**
+/**
* @brief strlen
- *
+ *
* @param str A pointer to string
*
* @return Length of string
@@ -2481,9 +2481,9 @@ t_void wlan_delay_func(mlan_adapter * pmadapter, t_u32 delay, t_delay_unit u);
/** Get BSS number from priv */
#define GET_BSS_NUM(priv) (priv)->bss_num
-/**
+/**
* @brief This function returns priv based on the BSS num and BSS type
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param bss_num BSS number
* @param bss_type BSS type
@@ -2505,10 +2505,10 @@ wlan_get_priv_by_id(mlan_adapter * pmadapter, t_u32 bss_num, t_u32 bss_type)
return MNULL;
}
-/**
+/**
* @brief This function returns first available priv
* based on the BSS role
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param bss_role BSS role or MLAN_BSS_ROLE_ANY
*
@@ -2533,7 +2533,7 @@ wlan_get_priv(mlan_adapter * pmadapter, mlan_bss_role bss_role)
* @brief This function counts the number of occurences for a certain
* condition among privs. Which privs are checked can be configured
* via a second condition.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param count_cond Function pointer to condition to count on privs
* @param check_cond Function pointer to condition to decide whether priv
@@ -2568,7 +2568,7 @@ wlan_count_priv_cond(mlan_adapter * pmadapter,
/**
* @brief This function runs a procedure on each priv.
* Which privs it is run on can be configured via a condition.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param operation Function pointer to produedure to operate on priv
* @param check_cond Function pointer to condition to decide whether priv
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_meas.c b/drivers/net/wireless/sd8797/mlan/mlan_meas.c
index d9da9da20756..a2a6f2f5b8a1 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_meas.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_meas.c
@@ -53,12 +53,12 @@ static const char *meas_type_str[WLAN_MEAS_NUM_TYPES] = {
Local Functions
********************************************************/
-/**
+/**
* @brief Retrieve the measurement string representation of a meas_type enum
* Used for debug display only
*
* @param meas_type Measurement type enumeration input for string lookup
- *
+ *
* @return Constant string representing measurement type
*/
static const char *
@@ -182,18 +182,18 @@ wlan_meas_dump_meas_rpt(const HostCmd_DS_MEASUREMENT_REPORT * pmeas_rpt)
/**
* @brief Retrieve a measurement report from the firmware
- *
+ *
* Callback from command processing when a measurement report is received
* from the firmware. Perform the following when a report is received:
*
* -# Debug displays the report if compiled with the appropriate flags
- * -# If we are pending on a specific measurement report token, and it
+ * -# If we are pending on a specific measurement report token, and it
* matches the received report's token, store the report and wake up
* any pending threads
*
* @param pmpriv Private driver information structure
* @param resp HostCmd_DS_COMMAND struct returned from the firmware command
- * passing a HostCmd_DS_MEASUREMENT_REPORT structure.
+ * passing a HostCmd_DS_MEASUREMENT_REPORT structure.
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -212,8 +212,8 @@ wlan_meas_cmdresp_get_report(mlan_private * pmpriv,
/* Debug displays the measurement report */
wlan_meas_dump_meas_rpt(pmeas_rpt);
- /*
- * Check if we are pending on a measurement report and it matches
+ /*
+ * Check if we are pending on a measurement report and it matches
* the dialog token of the received report:
*/
if (pmadapter->state_meas.meas_rpt_pend_on
@@ -228,7 +228,7 @@ wlan_meas_cmdresp_get_report(mlan_private * pmpriv,
memcpy(pmadapter, &pmadapter->state_meas.meas_rpt_returned, pmeas_rpt,
sizeof(pmadapter->state_meas.meas_rpt_returned));
- /*
+ /*
* Wake up any threads pending on the wait queue
*/
wlan_recv_event(pmpriv, MLAN_EVENT_ID_DRV_MEAS_REPORT, MNULL);
@@ -243,7 +243,7 @@ wlan_meas_cmdresp_get_report(mlan_private * pmpriv,
* @brief Prepare CMD_MEASURMENT_REPORT firmware command
*
* @param pmpriv Private driver information structure
- * @param pcmd_ptr Output parameter: Pointer to the command being prepared
+ * @param pcmd_ptr Output parameter: Pointer to the command being prepared
* for the firmware
* @param pinfo_buf HostCmd_DS_MEASUREMENT_REQUEST passed as void data block
*
@@ -278,13 +278,13 @@ wlan_meas_cmd_request(mlan_private * pmpriv,
/**
* @brief Retrieve a measurement report from the firmware
*
- * The firmware will send a EVENT_MEAS_REPORT_RDY event when it
+ * The firmware will send a EVENT_MEAS_REPORT_RDY event when it
* completes or receives a measurement report. The event response
* handler will then start a HostCmd_CMD_MEASUREMENT_REPORT firmware command
* which gets completed for transmission to the firmware in this routine.
*
* @param pmpriv Private driver information structure
- * @param pcmd_ptr Output parameter: Pointer to the command being prepared
+ * @param pcmd_ptr Output parameter: Pointer to the command being prepared
* for the firmware
*
* @return MLAN_STATUS_SUCCESS
@@ -300,7 +300,7 @@ wlan_meas_cmd_get_report(mlan_private * pmpriv, HostCmd_DS_COMMAND * pcmd_ptr)
memset(pmpriv->adapter, &pcmd_ptr->params.meas_rpt, 0x00,
sizeof(pcmd_ptr->params.meas_rpt));
- /*
+ /*
* Set the meas_rpt.mac_addr to our mac address to get a meas report,
* setting the mac to another STA address instructs the firmware
* to transmit this measurement report frame instead
@@ -317,16 +317,16 @@ wlan_meas_cmd_get_report(mlan_private * pmpriv, HostCmd_DS_COMMAND * pcmd_ptr)
Global functions
********************************************************/
-/**
+/**
* @brief Send the input measurement request to the firmware.
*
* If the dialog token in the measurement request is set to 0, the function
* will use an local static auto-incremented token in the measurement
* request. This ensures the dialog token is always set.
*
- * If wait_for_resp_timeout is set, the function will block its return on
+ * If wait_for_resp_timeout is set, the function will block its return on
* a timeout or returned measurement report that matches the requests
- * dialog token.
+ * dialog token.
*
* @param pmpriv Private driver information structure
* @param pmeas_req Pointer to the measurement request to send
@@ -362,11 +362,11 @@ wlan_meas_util_send_req(mlan_private * pmpriv,
pmeas_req->dialog_token = (pmeas_req->dialog_token ?
pmeas_req->dialog_token : 1);
- /*
+ /*
* If the request is to pend waiting for the result, set the dialog token
* of this measurement request in the state structure. The measurement
* report handling routines can then check the incoming measurement
- * reports for a match with this dialog token.
+ * reports for a match with this dialog token.
*/
if (wait_for_resp_timeout) {
pmeas_state->meas_rpt_pend_on = pmeas_req->dialog_token;
@@ -393,7 +393,7 @@ wlan_meas_util_send_req(mlan_private * pmpriv,
* - HostCmd_CMD_MEASUREMENT_REPORT
*
* @param pmpriv Private driver information structure
- * @param pcmd_ptr Output parameter: Pointer to the command being prepared
+ * @param pcmd_ptr Output parameter: Pointer to the command being prepared
* for the firmware
* @param pinfo_buf Void buffer passthrough with data necessary for a
* specific command type
@@ -426,7 +426,7 @@ wlan_meas_cmd_process(mlan_private * pmpriv,
}
/**
- * @brief Handle the command response from the firmware for a measurement
+ * @brief Handle the command response from the firmware for a measurement
* command
*
* Use the Command field to determine if the command response being
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_misc.c b/drivers/net/wireless/sd8797/mlan/mlan_misc.c
index 4054950f58f0..929a38ab33f6 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_misc.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_misc.c
@@ -66,7 +66,7 @@ extern t_u8 ac_to_tid[4][2];
* @param pmpriv A pointer to mlan_private structure
* @param idx index to check for in use
*
- * @return MLAN_STATUS_SUCCESS --unused, otherwise used.
+ * @return MLAN_STATUS_SUCCESS --unused, otherwise used.
*/
static mlan_status
wlan_is_custom_ie_index_unused(IN pmlan_private pmpriv, IN t_u16 idx)
@@ -150,7 +150,7 @@ wlan_custom_ioctl_get_autoidx(IN pmlan_private pmpriv,
if (!insert) {
for (index = 0; index < pmpriv->adapter->max_mgmt_ie_index; index++) {
if (pmpriv->mgmt_ie[index].ie_length == 0) {
- /*
+ /*
* Check if this index is in use by other interface
* If yes, move ahead to next index
*/
@@ -255,7 +255,7 @@ wlan_custom_ioctl_auto_delete(IN pmlan_private pmpriv,
Global Functions
********************************************************/
-/**
+/**
* @brief send host cmd
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -334,7 +334,7 @@ wlan_misc_ioctl_init_shutdown(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get debug information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -585,7 +585,7 @@ wlan_pm_reset_card(IN pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief Set/Get HS configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -662,13 +662,13 @@ wlan_pm_ioctl_hscfg(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief This function allocates a mlan_buffer.
*
* @param pmadapter Pointer to mlan_adapter
* @param data_len Data length
* @param head_room head_room reserved in mlan_buffer
- * @param malloc_flag flag to user moal_malloc
+ * @param malloc_flag flag to user moal_malloc
* @return mlan_buffer pointer or MNULL
*/
pmlan_buffer
@@ -729,7 +729,7 @@ wlan_alloc_mlan_buffer(mlan_adapter * pmadapter, t_u32 data_len,
return pmbuf;
}
-/**
+/**
* @brief This function frees a mlan_buffer.
*
* @param pmadapter Pointer to mlan_adapter
@@ -754,9 +754,9 @@ wlan_free_mlan_buffer(mlan_adapter * pmadapter, pmlan_buffer pmbuf)
return;
}
-/**
+/**
* @brief Delay function implementation
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param delay Delay value
* @param u Units of delay (sec, msec or usec)
@@ -816,7 +816,7 @@ wlan_delay_func(mlan_adapter * pmadapter, t_u32 delay, t_delay_unit u)
}
#if defined(STA_SUPPORT) && defined(UAP_SUPPORT)
-/**
+/**
* @brief Set/Get BSS role
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1047,7 +1047,7 @@ wlan_misc_ioctl_custom_ie_list(IN pmlan_adapter pmadapter,
pmpriv->mgmt_ie[index].ie_length +
MLAN_CUSTOM_IE_HDR_SIZE);
} else {
- /*
+ /*
* Check if this index is being used on any other
* interfaces. If yes, then the request needs to be rejected.
*/
@@ -1119,7 +1119,7 @@ wlan_misc_ioctl_custom_ie_list(IN pmlan_adapter pmadapter,
/**
* @brief This function will check if station list is empty
- *
+ *
* @param priv A pointer to mlan_private
*
* @return MFALSE/MTRUE
@@ -1142,7 +1142,7 @@ wlan_is_station_list_empty(mlan_private * priv)
/**
* @brief This function will return the pointer to station entry in station list
* table which matches the give mac address
- *
+ *
* @param priv A pointer to mlan_private
* @param mac mac address to find in station list table
*
@@ -1183,7 +1183,7 @@ wlan_get_station_entry(mlan_private * priv, t_u8 * mac)
/**
* @brief This function will add a pointer to station entry in station list
* table with the give mac address, if it does not exist already
- *
+ *
* @param priv A pointer to mlan_private
* @param mac mac address to find in station list table
*
@@ -1224,10 +1224,10 @@ wlan_add_station_entry(mlan_private * priv, t_u8 * mac)
/**
* @brief This function will delete a station entry from station list
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
- * @param mac station's mac address
+ * @param mac station's mac address
*
* @return N/A
*/
@@ -1283,7 +1283,7 @@ wlan_delete_station_list(pmlan_private priv)
/**
* @brief This function will return the pointer to station entry in station list
* table which in tx_pause state
- *
+ *
* @param priv A pointer to mlan_private
*
* @return A pointer to structure sta_node
@@ -1315,7 +1315,7 @@ wlan_get_tx_pause_station_entry(mlan_private * priv)
return MNULL;
}
-/**
+/**
* @brief Get extended version information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1348,7 +1348,7 @@ wlan_get_info_ver_ext(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
}
#ifdef DEBUG_LEVEL1
-/**
+/**
* @brief Set driver debug bit masks in order to enhance performance
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1372,7 +1372,7 @@ wlan_set_drvdbg(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
}
#endif
-/**
+/**
* @brief Rx mgmt frame forward register
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1409,7 +1409,7 @@ wlan_reg_rx_mgmt_ind(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
/**
* @brief This function processes the 802.11 mgmt Frame
- *
+ *
* @param priv A pointer to mlan_private
* @param payload A pointer to the received buffer
* @param payload_len Length of the received buffer
@@ -1497,8 +1497,8 @@ wlan_process_802dot11_mgmt_pkt(IN mlan_private * priv,
/**
* @brief This function will search for the specific ie
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param ie_buf A pointer to ie_buf
* @param ie_len total ie length
@@ -1582,7 +1582,7 @@ wlan_get_pm_info(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get radio status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1632,7 +1632,7 @@ wlan_radio_ioctl_radio_ctl(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get antenna configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1693,7 +1693,7 @@ wlan_radio_ioctl_ant_cfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get rate value
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1754,7 +1754,7 @@ wlan_rate_ioctl_get_rate_value(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set rate value
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1839,7 +1839,7 @@ wlan_rate_ioctl_set_rate_value(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get rate index
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1868,7 +1868,7 @@ wlan_rate_ioctl_get_rate_index(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set rate index
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1963,7 +1963,7 @@ wlan_rate_ioctl_set_rate_index(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Rate configuration command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1996,9 +1996,9 @@ wlan_rate_ioctl_cfg(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief This function prepares command of rf_antenna.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2071,7 +2071,7 @@ wlan_ret_802_11_rf_antenna(IN pmlan_private pmpriv,
}
#ifdef WIFI_DIRECT_SUPPORT
-/**
+/**
* @brief Set/Get wifi_direct_mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2111,7 +2111,7 @@ wlan_bss_ioctl_wifi_direct_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get remain on channel setting
*
* @param pmadapter A pointer to mlan_adapter structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_scan.c b/drivers/net/wireless/sd8797/mlan/mlan_scan.c
index 6123365422c7..2c4eadf04a2e 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_scan.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_scan.c
@@ -115,7 +115,7 @@ static t_u8 rsn_oui[CIPHER_SUITE_MAX][4] = {
/**
* @brief This function will parse a given IE for a given OUI
*
- * Parse a given WPA/RSN IE to find if it has a given oui in PTK,
+ * Parse a given WPA/RSN IE to find if it has a given oui in PTK,
* if no OUI found for PTK it returns 0.
*
* @param pbss_desc A pointer to current BSS descriptor
@@ -129,7 +129,7 @@ search_oui_in_ie(mlan_adapter * pmadapter, IEBody * ie_body, t_u8 * oui)
count = ie_body->PtkCnt[0];
ENTER();
- /* There could be multiple OUIs for PTK hence 1) Take the length. 2) Check
+ /* There could be multiple OUIs for PTK hence 1) Take the length. 2) Check
all the OUIs for AES. 3) If one of them is AES then pass success. */
while (count) {
if (!memcmp(pmadapter, ie_body->PtkBody, oui, sizeof(ie_body->PtkBody))) {
@@ -214,13 +214,13 @@ is_wpa_oui_present(mlan_adapter * pmadapter, BSSDescriptor_t * pbss_desc,
}
/**
- * @brief compare config band and a band from the scan result,
+ * @brief compare config band and a band from the scan result,
* which is defined by functiion radio_type_to_band(t_u8 radio_type) above
*
* @param cfg_band: band configured
* scan_band: band from scan result
*
- * @return matched: non-zero. unmatched: 0
+ * @return matched: non-zero. unmatched: 0
*
*/
static t_u8
@@ -296,7 +296,7 @@ wlan_find_best_network_in_list(IN mlan_private * pmpriv)
* @param puser_scan_in MNULL or pointer to scan configuration parameters
* @param pscan_chan_list Output parameter: Resulting channel list to scan
* @param filtered_scan Flag indicating whether or not a BSSID or SSID filter
- * is being sent in the command to firmware. Used to
+ * is being sent in the command to firmware. Used to
* increase the number of channels sent in a scan
* command and to disable the firmware channel scan
* filter.
@@ -350,7 +350,7 @@ wlan_scan_create_channel_list(IN mlan_private * pmpriv,
continue;
for (next_chan = 0;
next_chan < pscan_region->num_cfp; next_chan++, chan_idx++) {
- /* Set the default scan type to the user specified type, will later
+ /* Set the default scan type to the user specified type, will later
be changed to passive on a per channel basis if restricted by
regulatory requirements (11d or 11h) */
scan_type = pmadapter->scan_type;
@@ -513,7 +513,7 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
ptmp_chan_list = pscan_chan_list;
/* Loop through the desired channel list, sending a new firmware scan
- commands for each max_chan_per_scan channels (or for 1,6,11 individually
+ commands for each max_chan_per_scan channels (or for 1,6,11 individually
if configured accordingly) */
while (ptmp_chan_list->chan_number) {
@@ -523,7 +523,7 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
pstart_chan = ptmp_chan_list;
done_early = MFALSE;
- /*
+ /*
* Construct the Channel TLV for the scan command. Continue to
* insert channel TLVs until:
* - the tlv_idx hits the maximum configured per scan command
@@ -547,7 +547,7 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
/* Increment the TLV header length by the size appended */
pchan_tlv_out->header.len += sizeof(pchan_tlv_out->chan_scan_param);
- /*
+ /*
* The tlv buffer length is set to the number of bytes of the
* between the channel tlv pointer and the start of the
* tlv buffer. This compensates for any TLVs that were appended
@@ -651,14 +651,14 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
* @param pscan_cfg_out Output parameter: Resulting scan configuration
* @param ppchan_list_out Output parameter: Pointer to the start of the
* channel TLV portion of the output scan config
- * @param pscan_chan_list Output parameter: Pointer to the resulting
+ * @param pscan_chan_list Output parameter: Pointer to the resulting
* channel list to scan
* @param pmax_chan_per_scan Output parameter: Number of channels to scan for
* each issuance of the firmware scan command
* @param pfiltered_scan Output parameter: Flag indicating whether or not
* a BSSID or SSID filter is being sent in the
* command to firmware. Used to increase the number
- * of channels sent in a scan command and to
+ * of channels sent in a scan command and to
* disable the firmware channel scan filter.
* @param pscan_current_only Output parameter: Flag indicating whether or not
* we are only scanning our current active channel
@@ -700,7 +700,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
/* The tlv_buf_len is calculated for each scan command. The TLVs added in
this routine will be preserved since the routine that sends the command
- will append channelTLVs at *ppchan_list_out. The difference between the
+ will append channelTLVs at *ppchan_list_out. The difference between the
*ppchan_list_out and the tlv_buf start will be used to calculate the
size of anything we add in this routine. */
pscan_cfg_out->tlv_buf_len = 0;
@@ -714,7 +714,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
*pfiltered_scan = MFALSE;
/* Initialize the scan as not being only on the current channel. If the
- channel list is customized, only contains one channel, and is the active
+ channel list is customized, only contains one channel, and is the active
channel, this is set true and data flow is not halted. */
*pscan_current_only = MFALSE;
@@ -731,7 +731,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
num_probes = (puser_scan_in->num_probes ? puser_scan_in->num_probes :
pmadapter->scan_probes);
- /*
+ /*
* Set the BSSID filter to the incoming configuration,
* if non-zero. If not set, it will remain disabled (all zeros).
*/
@@ -777,7 +777,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
}
}
- /*
+ /*
* The default number of channels sent in the command is low to
* ensure the response buffer from the firmware does not truncate
* scan results. That is not an issue with an SSID or BSSID
@@ -794,8 +794,8 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
num_probes = pmadapter->scan_probes;
}
- /*
- * If a specific BSSID or SSID is used, the number of channels in the
+ /*
+ * If a specific BSSID or SSID is used, the number of channels in the
* scan command will be increased to the absolute maximum.
*/
if (*pfiltered_scan)
@@ -853,7 +853,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
wlan_add_wps_probe_request_ie(pmpriv, &ptlv_pos);
- /*
+ /*
* Set the output for the channel TLV to the address in the tlv buffer
* past any TLVs that were added in this function (SSID, num_probes).
* Channel TLVs will be added past this for each scan command, preserving
@@ -952,7 +952,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
* @param pmadapter Pointer to the mlan_adapter structure
* @param ptlv Pointer to the start of the TLV buffer to parse
* @param tlv_buf_size Size of the TLV buffer
- * @param req_tlv_type Request TLV's type
+ * @param req_tlv_type Request TLV's type
* @param pptlv Output parameter: Pointer to the request TLV if found
*
* @return N/A
@@ -1113,7 +1113,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
pcurrent_ptr += MLAN_MAC_ADDR_LENGTH;
bytes_left_for_current_beacon -= MLAN_MAC_ADDR_LENGTH;
- /*
+ /*
* Next 4 fields are RSSI (for legacy scan only), time stamp,
* beacon interval, and capability information
*/
@@ -1125,7 +1125,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
bytes_left_for_current_beacon -= 1;
}
- /*
+ /*
* The RSSI is not part of the beacon/probe response. After we have
* advanced pcurrent_ptr past the RSSI field, save the remaining
* data for use at the application layer
@@ -1313,7 +1313,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
pcurrent_ptr);
break;
case EXTENDED_SUPPORTED_RATES:
- /*
+ /*
* Only process extended supported rate
* if data rate is already found.
* Data rate IE should come before
@@ -1359,7 +1359,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
if (total_ie_len == sizeof(IEEEtypes_WmmParameter_t)
|| total_ie_len == sizeof(IEEEtypes_WmmInfo_t)) {
- /*
+ /*
* Only accept and copy the WMM IE if it matches
* the size expected for the WMM Info IE or the
* WMM Parameter IE.
@@ -1447,7 +1447,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
/**
* @brief Adjust ie's position in BSSDescriptor_t
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pbss_entry A pointer to BSSDescriptor_t structure
*
@@ -1516,19 +1516,19 @@ wlan_adjust_ie_in_bss_entry(IN mlan_private * pmpriv,
/**
* @brief Store a beacon or probe response for a BSS returned in the scan
- *
+ *
* Store a new scan response or an update for a previous scan response. New
- * entries need to verify that they do not exceed the total amount of
+ * entries need to verify that they do not exceed the total amount of
* memory allocated for the table.
- * Replacement entries need to take into consideration the amount of space
+ * Replacement entries need to take into consideration the amount of space
* currently allocated for the beacon/probe response and adjust the entry
- * as needed.
+ * as needed.
*
* A small amount of extra pad (SCAN_BEACON_ENTRY_PAD) is generally reserved
* for an entry in case it is a beacon since a probe response for the
- * network will by larger per the standard. This helps to reduce the
- * amount of memory copying to fit a new probe response into an entry
+ * network will by larger per the standard. This helps to reduce the
+ * amount of memory copying to fit a new probe response into an entry
* already occupied by a network's previously stored beacon.
*
* @param pmpriv A pointer to mlan_private structure
@@ -1569,7 +1569,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
pnew_beacon->beacon_buf_size_max = bcn_space;
if (new_bcn_size == old_bcn_size) {
- /*
+ /*
* Beacon is the same size as the previous entry.
* Replace the previous contents with the scan result
*/
@@ -1577,7 +1577,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
pnew_beacon->pbeacon_buf, pnew_beacon->beacon_buf_size);
} else if (new_bcn_size <= bcn_space) {
- /*
+ /*
* New beacon size will fit in the amount of space
* we have previously allocated for it
*/
@@ -1586,7 +1586,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
memcpy(pmadapter, pbcn_store, pnew_beacon->pbeacon_buf,
new_bcn_size);
- /*
+ /*
* If the old beacon size was less than the maximum
* we had allotted for the entry, and the new entry
* is even smaller, reset the max size to the old beacon
@@ -1594,7 +1594,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
* pad space of (old_bcn_size - new_bcn_size).
*/
if (old_bcn_size < bcn_space && new_bcn_size <= old_bcn_size) {
- /*
+ /*
* Old Beacon size is smaller than the allotted storage size.
* Shrink the allotted storage space.
*/
@@ -1604,7 +1604,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(pmadapter->bcn_buf_size -
(pmadapter->pbcn_buf_end - pmadapter->bcn_buf)));
- /*
+ /*
* memmove (since the memory overlaps) the data
* after the beacon we just stored to the end of
* the current beacon. This cleans up any unused
@@ -1616,7 +1616,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(t_u32) ((t_ptr) pmadapter->pbcn_buf_end -
((t_ptr) pbcn_store + (t_ptr) bcn_space)));
- /*
+ /*
* Decrement the end pointer by the difference between
* the old larger size and the new smaller size since
* we are using less space due to the new beacon being
@@ -1641,7 +1641,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
}
} else if (pmadapter->pbcn_buf_end + (new_bcn_size - bcn_space)
< (pmadapter->bcn_buf + pmadapter->bcn_buf_size)) {
- /*
+ /*
* Beacon is larger than space previously allocated (bcn_space)
* and there is enough space left in the beaconBuffer to store
* the additional data
@@ -1652,7 +1652,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(pmadapter->bcn_buf_size -
(pmadapter->pbcn_buf_end - pmadapter->bcn_buf)));
- /*
+ /*
* memmove (since the memory overlaps) the data
* after the beacon we just stored to the end of
* the current beacon. This moves the data for
@@ -1674,7 +1674,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
are adding */
pmadapter->pbcn_buf_end += (new_bcn_size - bcn_space);
- /*
+ /*
* This entry is bigger than the allotted max space
* previously reserved. Increase the max space to
* be equal to the new beacon size
@@ -1692,7 +1692,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
}
}
} else {
- /*
+ /*
* Beacon is larger than the previously allocated space, but
* there is not enough free space to store the additional data
*/
@@ -1769,7 +1769,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
pmadapter->bcn_buf_size += DEFAULT_SCAN_BEACON_BUFFER;
}
}
- /*
+ /*
* No existing beacon data exists for this entry, check to see
* if we can fit it in the remaining space
*/
@@ -1777,7 +1777,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
SCAN_BEACON_ENTRY_PAD < (pmadapter->bcn_buf +
pmadapter->bcn_buf_size)) {
- /*
+ /*
* Copy the beacon buffer data from the local entry to the
* adapter dev struct buffer space used to store the raw
* beacon data for each entry in the scan table
@@ -1802,7 +1802,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(pmadapter->bcn_buf_size -
(pmadapter->pbcn_buf_end - pmadapter->bcn_buf)));
} else {
- /*
+ /*
* No space for new beacon
*/
PRINTM(MCMND, "AppControl: No space beacon (%d): "
@@ -1982,8 +1982,8 @@ wlan_scan_process_results(IN mlan_private * pmpriv)
(t_s32) pmadapter->pscan_table[i].rssi,
pmadapter->pscan_table[i].ssid.ssid);
- /*
- * Prepares domain info from scan table and downloads the
+ /*
+ * Prepares domain info from scan table and downloads the
* domain info command to the FW.
*/
wlan_11d_prepare_dnld_domain_info_cmd(pmpriv);
@@ -2042,9 +2042,9 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
ENTER();
- /*
+ /*
* Shift the saved beacon buffer data for the scan table back over the
- * entry being removed. Update the end of buffer pointer. Save the
+ * entry being removed. Update the end of buffer pointer. Save the
* deleted buffer allocation size for pointer adjustments for entries
* compacted after the deleted index.
*/
@@ -2057,9 +2057,9 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
if (beacon_buf_adj) {
pbeacon_buf = pmadapter->pscan_table[table_idx].pbeacon_buf;
- /*
+ /*
* Remove the entry's buffer space, decrement the table end pointer
- * by the amount we are removing
+ * by the amount we are removing
*/
pmadapter->pbcn_buf_end -= beacon_buf_adj;
@@ -2070,7 +2070,7 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
pbeacon_buf + beacon_buf_adj,
pmadapter->pbcn_buf_end - pbeacon_buf);
- /*
+ /*
* Compact data storage. Copy all data after the deleted entry's
* end address (pbeacon_buf + beacon_buf_adj) back to the original
* start address (pbeacon_buf).
@@ -2089,7 +2089,7 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
PRINTM(MINFO, "Scan: Delete Entry %d, num_in_scan_table = %d\n",
table_idx, pmadapter->num_in_scan_table);
- /* Shift all of the entries after the table_idx back by one, compacting the
+ /* Shift all of the entries after the table_idx back by one, compacting the
table and removing the requested entry */
for (del_idx = table_idx; (del_idx + 1) < pmadapter->num_in_scan_table;
del_idx++) {
@@ -2097,8 +2097,8 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
memcpy(pmadapter, pmadapter->pscan_table + del_idx,
pmadapter->pscan_table + del_idx + 1, sizeof(BSSDescriptor_t));
- /*
- * Adjust this entry's pointer to its beacon buffer based on the
+ /*
+ * Adjust this entry's pointer to its beacon buffer based on the
* removed/compacted entry from the deleted index. Don't decrement
* if the buffer pointer is MNULL (no data stored for this entry).
*/
@@ -2232,7 +2232,7 @@ wlan_scan_delete_ssid_table_entry(IN mlan_private * pmpriv,
* @param index Index in scan table to check against current driver settings
* @param mode Network mode: Infrastructure or IBSS
*
- * @return Index in ScanTable, or negative value if error
+ * @return Index in ScanTable, or negative value if error
*/
t_s32
wlan_is_network_compatible(IN mlan_private * pmpriv,
@@ -2340,7 +2340,7 @@ wlan_is_network_compatible(IN mlan_private * pmpriv,
&& ((pbss_desc->pwpa_ie) &&
((*(pbss_desc->pwpa_ie)).vend_hdr.element_id == WPA_IE))
&& !pmpriv->adhoc_aes_enabled
- /*
+ /*
* Privacy bit may NOT be set in some APs like LinkSys WRT54G
* && pbss_desc->privacy
*/
@@ -2383,7 +2383,7 @@ wlan_is_network_compatible(IN mlan_private * pmpriv,
&& ((pbss_desc->prsn_ie) &&
((*(pbss_desc->prsn_ie)).ieee_hdr.element_id == RSN_IE))
&& !pmpriv->adhoc_aes_enabled
- /*
+ /*
* Privacy bit may NOT be set in some APs like LinkSys WRT54G
* && pbss_desc->privacy
*/
@@ -2484,7 +2484,7 @@ wlan_is_network_compatible(IN mlan_private * pmpriv,
*
* @param pmadapter A pointer to mlan_adapter structure
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
wlan_flush_scan_table(IN pmlan_adapter pmadapter)
@@ -2768,7 +2768,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
num_in_table = pmadapter->num_in_scan_table;
pbss_info = pscan_rsp->bss_desc_and_tlv_buffer;
- /*
+ /*
* The size of the TLV buffer is equal to the entire command response
* size (scan_resp_size) minus the fixed fields (sizeof()'s), the
* BSS Descriptions (bss_descript_size as bytesLef) and the command
@@ -2797,7 +2797,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
TLV_TYPE_CHANNELBANDLIST,
(MrvlIEtypes_Data_t **) & pchan_band_tlv);
- /*
+ /*
* Process each scan response returned (pscan_rsp->number_of_sets). Save
* the information in the bss_new_entry and then insert into the
* driver scan table either as an update to an existing entry
@@ -2830,14 +2830,14 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
bss_new_entry->mac_address[2], bss_new_entry->mac_address[3],
bss_new_entry->mac_address[4],
bss_new_entry->mac_address[5]);
- /*
+ /*
* Search the scan table for the same bssid
*/
for (bss_idx = 0; bss_idx < num_in_table; bss_idx++) {
if (!memcmp(pmadapter, bss_new_entry->mac_address,
pmadapter->pscan_table[bss_idx].mac_address,
sizeof(bss_new_entry->mac_address))) {
- /*
+ /*
* If the SSID matches as well, it is a duplicate of
* this entry. Keep the bss_idx set to this
* entry so we replace the old contents in the table
@@ -2853,7 +2853,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
}
}
}
- /*
+ /*
* If the bss_idx is equal to the number of entries in the table,
* the new entry was not a duplicate; append it to the scan
* table
@@ -2867,7 +2867,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
}
}
- /*
+ /*
* Save the beacon/probe response returned for later application
* retrieval. Duplicate beacon/probe responses are updated if
* possible
@@ -2880,7 +2880,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
num_in_table--;
continue;
}
- /*
+ /*
* If the TSF TLV was appended to the scan results, save
* this entry's TSF value in the networkTSF field. The
* networkTSF is the firmware's TSF value at the time the
@@ -2945,7 +2945,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
wlan_request_cmd_lock(pmadapter);
pmadapter->scan_processing = MFALSE;
wlan_release_cmd_lock(pmadapter);
- /*
+ /*
* Process the resulting scan table:
* - Remove any bad ssids
* - Update our current BSS information from scan data
@@ -3108,7 +3108,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
num_in_table = pmadapter->num_in_scan_table;
ptlv = (MrvlIEtypes_Data_t *) pscan_resp;
- /*
+ /*
* Process each scan response returned number_of_sets. Save
* the information in the bss_new_entry and then insert into the
* driver scan table either as an update to an existing entry
@@ -3135,7 +3135,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
pscan_rsp_tlv = MNULL;
pscan_info_tlv = MNULL;
bytes_left_for_tlv = bytes_left;
- /* BSS response TLV with beacon or probe response buffer at the initial
+ /* BSS response TLV with beacon or probe response buffer at the initial
position of each descriptor */
if (tlv_type == TLV_TYPE_BSS_SCAN_RSP) {
pbss_info = (t_u8 *) ptlv;
@@ -3197,14 +3197,14 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
bss_new_entry->mac_address[2], bss_new_entry->mac_address[3],
bss_new_entry->mac_address[4],
bss_new_entry->mac_address[5]);
- /*
+ /*
* Search the scan table for the same bssid
*/
for (bss_idx = 0; bss_idx < num_in_table; bss_idx++) {
if (!memcmp(pmadapter, bss_new_entry->mac_address,
pmadapter->pscan_table[bss_idx].mac_address,
sizeof(bss_new_entry->mac_address))) {
- /*
+ /*
* If the SSID matches as well, it is a duplicate of
* this entry. Keep the bss_idx set to this
* entry so we replace the old contents in the table
@@ -3220,7 +3220,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
}
}
}
- /*
+ /*
* If the bss_idx is equal to the number of entries in the table,
* the new entry was not a duplicate; append it to the scan
* table
@@ -3235,7 +3235,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
}
band = BAND_G;
- /*
+ /*
* If the BSS info TLV was appended to the scan results, save
* this entry's TSF value in the networkTSF field. The
* networkTSF is the firmware's TSF value at the time the
@@ -3253,7 +3253,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
&tsf_val, sizeof(bss_new_entry->network_tsf));
band = radio_type_to_band(pscan_info_tlv->band);
}
- /*
+ /*
* Save the beacon/probe response returned for later application
* retrieval. Duplicate beacon/probe responses are updated if
* possible
@@ -3345,7 +3345,7 @@ wlan_handle_event_ext_scan_report(IN mlan_private * pmpriv,
wlan_request_cmd_lock(pmadapter);
pmadapter->scan_processing = MFALSE;
wlan_release_cmd_lock(pmadapter);
- /*
+ /*
* Process the resulting scan table:
* - Remove any bad ssids
* - Update our current BSS information from scan data
@@ -3799,9 +3799,9 @@ wlan_find_ssid_in_list(IN mlan_private * pmpriv,
PRINTM(MINFO, "Num of entries in scan table = %d\n",
pmadapter->num_in_scan_table);
- /*
+ /*
* Loop through the table until the maximum is reached or until a match
- * is found based on the bssid field comparison
+ * is found based on the bssid field comparison
*/
for (i = 0;
i < pmadapter->num_in_scan_table && (!bssid || (bssid && net < 0));
@@ -3839,9 +3839,9 @@ wlan_find_ssid_in_list(IN mlan_private * pmpriv,
break;
case MLAN_BSS_MODE_AUTO:
default:
- /*
- * Do not check compatibility if the mode requested is
- * Auto/Unknown. Allows generic find to work without
+ /*
+ * Do not check compatibility if the mode requested is
+ * Auto/Unknown. Allows generic find to work without
* verifying against the Adapter security settings
*/
if (SCAN_RSSI(pmadapter->pscan_table[i].rssi) > best_rssi) {
@@ -3884,7 +3884,7 @@ wlan_find_bssid_in_list(IN mlan_private * pmpriv,
PRINTM(MINFO, "FindBSSID: Num of BSSIDs = %d\n",
pmadapter->num_in_scan_table);
- /*
+ /*
* Look through the scan table for a compatible match. The ret return
* variable will be equal to the index in the scan table (greater
* than zero) if the network is compatible. The loop will continue
@@ -3949,9 +3949,9 @@ wlan_ssid_cmp(IN pmlan_adapter pmadapter,
return memcmp(pmadapter, ssid1->ssid, ssid2->ssid, ssid1->ssid_len);
}
-/**
+/**
* @brief This function inserts scan command node to scan_pending_q.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
* @return N/A
@@ -4086,10 +4086,10 @@ wlan_scan_specific_ssid(IN mlan_private * pmpriv,
/**
* @brief Save a beacon buffer of the current bss descriptor
- * Save the current beacon buffer to restore in the following cases that
+ * Save the current beacon buffer to restore in the following cases that
* makes the bcn_buf not to contain the current ssid's beacon buffer.
- * - the current ssid was not found somehow in the last scan.
- * - the current ssid was the last entry of the scan table and overloaded.
+ * - the current ssid was not found somehow in the last scan.
+ * - the current ssid was the last entry of the scan table and overloaded.
*
* @param pmpriv A pointer to mlan_private structure
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sdio.c b/drivers/net/wireless/sd8797/mlan/mlan_sdio.c
index 4812797c6361..0718cec12ee2 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sdio.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sdio.c
@@ -47,9 +47,9 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function initialize the SDIO port
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -112,9 +112,9 @@ wlan_sdio_init_ioport(mlan_adapter * pmadapter)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function sends data to the card.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pmbuf A pointer to mlan_buffer (pmbuf->data_len should include SDIO header)
* @param port Port
@@ -153,9 +153,9 @@ wlan_write_data_sync(mlan_adapter * pmadapter, mlan_buffer * pmbuf, t_u32 port)
return ret;
}
-/**
+/**
* @brief This function gets available SDIO port for reading cmd/data
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pport A pointer to port number
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -201,9 +201,9 @@ wlan_get_rd_port(mlan_adapter * pmadapter, t_u8 * pport)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function gets available SDIO port for writing data
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pport A pointer to port number
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -248,9 +248,9 @@ wlan_get_wr_port_data(mlan_adapter * pmadapter, t_u8 * pport)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function polls the card status register.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param bits the bit mask
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -282,9 +282,9 @@ wlan_sdio_poll_card_status(mlan_adapter * pmadapter, t_u8 bits)
return MLAN_STATUS_FAILURE;
}
-/**
+/**
* @brief This function reads firmware status registers
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param dat A pointer to keep returned data
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -316,7 +316,7 @@ wlan_sdio_read_fw_status(mlan_adapter * pmadapter, t_u16 * dat)
}
/** @brief This function disables the host interrupts mask.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mask the interrupt mask
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -352,9 +352,9 @@ wlan_sdio_disable_host_int_mask(pmlan_adapter pmadapter, t_u8 mask)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function enables the host interrupts mask
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mask the interrupt mask
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -378,9 +378,9 @@ wlan_sdio_enable_host_int_mask(pmlan_adapter pmadapter, t_u8 mask)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function reads data from the card.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param type A pointer to keep type as data or command
* @param nb A pointer to keep the data/cmd length returned in buffer
@@ -608,9 +608,9 @@ wlan_prog_fw_w_helper(IN pmlan_adapter pmadapter, IN pmlan_fw_image pmfw)
return ret;
}
-/**
+/**
* @brief This function disables the host interrupts.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -625,10 +625,10 @@ wlan_disable_host_int(pmlan_adapter pmadapter)
return ret;
}
-/**
- * @brief This function decodes the rx packet &
+/**
+ * @brief This function decodes the rx packet &
* calls corresponding handlers according to the packet type
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pmbuf A pointer to the SDIO data/cmd buffer
* @param upld_typ Type of rx packet
@@ -712,9 +712,9 @@ wlan_decode_rx_packet(mlan_adapter * pmadapter, mlan_buffer * pmbuf,
}
#ifdef SDIO_MULTI_PORT_RX_AGGR
-/**
+/**
* @brief This function receives data from the card in aggregate mode.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pmbuf A pointer to the SDIO data/cmd buffer
* @param port Current port on which packet needs to be rxed
@@ -906,9 +906,9 @@ wlan_sdio_card_to_host_mp_aggr(mlan_adapter * pmadapter, mlan_buffer
#endif
#ifdef SDIO_MULTI_PORT_TX_AGGR
-/**
+/**
* @brief This function sends data to the card in SDIO aggregated mode.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mbuf A pointer to the SDIO data/cmd buffer
* @param port current port for aggregation
@@ -1040,14 +1040,14 @@ wlan_host_to_card_mp_aggr(mlan_adapter * pmadapter, mlan_buffer * mbuf,
Global functions
********************************************************/
-/**
+/**
* @brief This function checks if the interface is ready to download
* or not while other download interface is present
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param val Winner status (0: winner)
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
- *
+ *
*/
mlan_status
wlan_check_winner_status(mlan_adapter * pmadapter, t_u32 * val)
@@ -1071,10 +1071,10 @@ wlan_check_winner_status(mlan_adapter * pmadapter, t_u32 * val)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function checks if the firmware is ready to accept
* command or not.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pollnum Maximum polling number
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1136,9 +1136,9 @@ wlan_dnld_fw(IN pmlan_adapter pmadapter, IN pmlan_fw_image pmfw)
return ret;
}
-/**
+/**
* @brief This function probes the driver
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1150,10 +1150,10 @@ wlan_sdio_probe(pmlan_adapter pmadapter)
pmlan_callbacks pcb = &pmadapter->callbacks;
ENTER();
- /*
+ /*
* Read the HOST_INT_STATUS_REG for ACK the first interrupt got
* from the bootloader. If we don't do this we get a interrupt
- * as soon as we register the irq.
+ * as soon as we register the irq.
*/
pcb->moal_read_reg(pmadapter->pmoal_handle, HOST_INT_STATUS_REG,
&sdio_ireg);
@@ -1171,9 +1171,9 @@ wlan_sdio_probe(pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function gets interrupt status.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return N/A
*/
@@ -1202,9 +1202,9 @@ wlan_interrupt(pmlan_adapter pmadapter)
sdio_ireg = pmadapter->mp_regs[HOST_INT_STATUS_REG];
pmadapter->dbg.last_int_status = pmadapter->sdio_ireg | sdio_ireg;
if (sdio_ireg) {
- /*
+ /*
* DN_LD_HOST_INT_STATUS and/or UP_LD_HOST_INT_STATUS
- * DN_LD_CMD_PORT_HOST_INT_STATUS and/or
+ * DN_LD_CMD_PORT_HOST_INT_STATUS and/or
* UP_LD_CMD_PORT_HOST_INT_STATUS
* Clear the interrupt status register
*/
@@ -1219,9 +1219,9 @@ wlan_interrupt(pmlan_adapter pmadapter)
LEAVE();
}
-/**
+/**
* @brief This function enables the host interrupts.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1236,9 +1236,9 @@ wlan_enable_host_int(pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function checks the interrupt status and handle it accordingly.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1394,9 +1394,9 @@ wlan_process_int_status(mlan_adapter * pmadapter)
return ret;
}
-/**
+/**
* @brief This function sends data to the card.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param type data or command
* @param pmbuf A pointer to mlan_buffer (pmbuf->data_len should include SDIO header)
@@ -1422,10 +1422,10 @@ wlan_sdio_host_to_card(mlan_adapter * pmadapter, t_u8 type, mlan_buffer * pmbuf,
*(t_u16 *) & payload[0] = wlan_cpu_to_le16((t_u16) pmbuf->data_len);
*(t_u16 *) & payload[2] = wlan_cpu_to_le16(type);
- /*
+ /*
* This is SDIO specific header
* t_u16 length,
- * t_u16 type (MLAN_TYPE_DATA = 0, MLAN_TYPE_CMD = 1, MLAN_TYPE_EVENT = 3)
+ * t_u16 type (MLAN_TYPE_DATA = 0, MLAN_TYPE_CMD = 1, MLAN_TYPE_EVENT = 3)
*/
if (type == MLAN_TYPE_DATA) {
ret = wlan_get_wr_port_data(pmadapter, &port);
@@ -1485,10 +1485,10 @@ wlan_sdio_host_to_card(mlan_adapter * pmadapter, t_u8 type, mlan_buffer * pmbuf,
}
#if defined(SDIO_MULTI_PORT_TX_AGGR) || defined(SDIO_MULTI_PORT_RX_AGGR)
-/**
- * @brief This function allocates buffer for the SDIO aggregation buffer
- * related members of adapter structure
- *
+/**
+ * @brief This function allocates buffer for the SDIO aggregation buffer
+ * related members of adapter structure
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mpa_tx_buf_size Tx buffer size to allocate
* @param mpa_rx_buf_size Rx buffer size to allocate
@@ -1544,9 +1544,9 @@ wlan_alloc_sdio_mpa_buffers(IN mlan_adapter * pmadapter,
return ret;
}
-/**
+/**
* @brief This function frees buffers for the SDIO aggregation
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS
@@ -1622,7 +1622,7 @@ wlan_set_sdio_gpio_int(IN pmlan_private priv)
/**
* @brief This function prepares command of SDIO GPIO interrupt
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_shim.c b/drivers/net/wireless/sd8797/mlan/mlan_shim.c
index c17b8e21c482..1e06a52b87cb 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_shim.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_shim.c
@@ -122,7 +122,7 @@ t_u32 drvdbg = DEFAULT_DEBUG_MASK;
/**
* @brief This function registers MOAL to MLAN module.
- *
+ *
* @param pmdevice A pointer to a mlan_device structure
* allocated in MOAL
* @param ppmlan_adapter A pointer to a t_void pointer to store
@@ -350,7 +350,7 @@ mlan_register(IN pmlan_device pmdevice, OUT t_void ** ppmlan_adapter)
/**
* @brief This function unregisters MOAL from MLAN module.
- *
+ *
* @param pmlan_adapter A pointer to a mlan_device structure
* allocated in MOAL
*
@@ -397,7 +397,7 @@ mlan_unregister(IN t_void * pmlan_adapter)
/**
* @brief This function downloads the firmware
- *
+ *
* @param pmlan_adapter A pointer to a t_void pointer to store
* mlan_adapter structure pointer
* @param pmfw A pointer to firmware image
@@ -506,7 +506,7 @@ mlan_set_init_param(IN t_void * pmlan_adapter, IN pmlan_init_param pparam)
/**
* @brief This function initializes the firmware
- *
+ *
* @param pmlan_adapter A pointer to a t_void pointer to store
* mlan_adapter structure pointer
*
@@ -722,7 +722,7 @@ mlan_main_process(IN t_void * pmlan_adapter)
}
}
- /*
+ /*
* The ps_state may have been changed during processing of
* Sleep Request event.
*/
@@ -842,7 +842,7 @@ mlan_send_packet(IN t_void * pmlan_adapter, IN pmlan_buffer pmbuf)
return ret;
}
-/**
+/**
* @brief MLAN ioctl handler
*
* @param adapter A pointer to mlan_adapter structure
@@ -918,9 +918,9 @@ mlan_select_wmm_queue(IN t_void * pmlan_adapter, IN t_u8 bss_num, IN t_u8 tid)
return ret;
}
-/**
+/**
* @brief This function gets interrupt status.
- *
+ *
* @param adapter A pointer to mlan_adapter structure
* @return N/A
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c
index c3a3b956aa61..c91fcc9f6e12 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c
@@ -49,9 +49,9 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function prepares command of RSSI info.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action Command action
@@ -85,9 +85,9 @@ wlan_cmd_802_11_rssi_info(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mac_control.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action Command action
@@ -119,9 +119,9 @@ wlan_cmd_mac_control(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of snmp_mib.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -226,9 +226,9 @@ wlan_cmd_802_11_snmp_mib(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of get_log.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
*
@@ -244,9 +244,9 @@ wlan_cmd_802_11_get_log(IN pmlan_private pmpriv, IN HostCmd_DS_COMMAND * cmd)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of tx_power_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -303,9 +303,9 @@ wlan_cmd_tx_power_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of rf_tx_power.
- *
+ *
* @param pmpriv A pointer to wlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -345,9 +345,9 @@ wlan_cmd_802_11_rf_tx_power(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of hs_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -406,9 +406,9 @@ wlan_cmd_802_11_hs_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mac_address.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -509,9 +509,9 @@ wlan_cmd_802_11_sleep_params(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mac_multicast_adr.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -615,9 +615,9 @@ wlan_cmd_802_11_ad_hoc_stop(IN pmlan_private pmpriv,
/** Length of WEP 104 bit key */
#define WEP_104_BIT_LEN 13
-/**
+/**
* @brief This function sets WEP key(s) to key_param_set TLV(s).
- *
+ *
* @param priv A pointer to mlan_private structure
* @param key_param_set A pointer to MrvlIEtype_KeyParamSet_t structure
* @param key_param_len A pointer to the length variable
@@ -683,9 +683,9 @@ wlan_set_keyparamset_wep(mlan_private * priv,
return ret;
}
-/**
+/**
* @brief This function prepares command of key_material.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -746,10 +746,10 @@ wlan_cmd_802_11_key_material(IN pmlan_private pmpriv,
else
pkey_material->key_param_set.key[1] = 0; /* set 0 when re-key */
- if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* WAPI
- pairwise
- key:
- unicast
+ if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* WAPI
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_WAPI_UNICAST);
@@ -835,9 +835,9 @@ wlan_cmd_802_11_key_material(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function prepares command of supplicant pmk
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -861,26 +861,26 @@ wlan_cmd_802_11_supplicant_pmk(IN pmlan_private pmpriv,
t_u8 zero_mac[] = { 0, 0, 0, 0, 0, 0 };
ENTER();
- /*
+ /*
* Parse the rest of the buf here
- * 1) <ssid="valid ssid"> - This will get the passphrase, AKMP
+ * 1) <ssid="valid ssid"> - This will get the passphrase, AKMP
* for specified ssid, if none specified then it will get all.
* Eg: iwpriv <mlanX> passphrase 0:ssid=marvell
* 2) <psk="psk">:<passphrase="passphare">:<bssid="00:50:43:ef:23:f3">
- * <ssid="valid ssid"> - passphrase and psk cannot be provided to
- * the same SSID, Takes one SSID at a time, If ssid= is present
+ * <ssid="valid ssid"> - passphrase and psk cannot be provided to
+ * the same SSID, Takes one SSID at a time, If ssid= is present
* the it should contain a passphrase or psk. If no arguments are
* provided then AKMP=802.1x, and passphrase should be provided
* after association.
* End of each parameter should be followed by a ':'(except for the
- * last parameter) as the delimiter. If ':' has to be used in
+ * last parameter) as the delimiter. If ':' has to be used in
* an SSID then a '/' should be preceded to ':' as a escape.
- * Eg:iwpriv <mlanX> passphrase
+ * Eg:iwpriv <mlanX> passphrase
* "1:ssid=mrvl AP:psk=abcdefgh:bssid=00:50:43:ef:23:f3"
- * iwpriv <mlanX> passphrase
+ * iwpriv <mlanX> passphrase
* "1:ssid=mrvl/: AP:psk=abcdefgd:bssid=00:50:43:ef:23:f3"
* iwpriv <mlanX> passphrase "1:ssid=mrvlAP:psk=abcdefgd"
- * 3) <ssid="valid ssid"> - This will clear the passphrase
+ * 3) <ssid="valid ssid"> - This will clear the passphrase
* for specified ssid, if none specified then it will clear all.
* Eg: iwpriv <mlanX> passphrase 2:ssid=marvell
*/
@@ -979,9 +979,9 @@ wlan_cmd_802_11_supplicant_profile(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of rf_channel.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1016,9 +1016,9 @@ wlan_cmd_802_11_rf_channel(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of ibss_coalescing_status.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1059,9 +1059,9 @@ wlan_cmd_ibss_coalescing_status(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mgmt IE list.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1121,9 +1121,9 @@ wlan_cmd_mgmt_ie_list(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares system clock cfg command
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1156,9 +1156,9 @@ wlan_cmd_sysclock_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of reg_access.
- *
+ *
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
@@ -1242,9 +1242,9 @@ wlan_cmd_reg_access(IN HostCmd_DS_COMMAND * cmd,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mem_access.
- *
+ *
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
@@ -1271,9 +1271,9 @@ wlan_cmd_mem_access(IN HostCmd_DS_COMMAND * cmd,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of subscribe event.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -1461,7 +1461,7 @@ wlan_cmd_subscribe_event(IN pmlan_private pmpriv,
/**
* @brief This function prepares inactivity timeout command
- *
+ *
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
@@ -1501,9 +1501,9 @@ wlan_cmd_inactivity_timeout(IN HostCmd_DS_COMMAND * cmd,
Global Functions
********************************************************/
-/**
+/**
* @brief This function prepare the command before sending to firmware.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd_no Command number
* @param cmd_action Command action: GET or SET
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c
index 19ff2ef7fdf2..be56a16615b9 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c
@@ -47,9 +47,9 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief This function handles the command response error
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -76,7 +76,7 @@ wlan_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
PRINTM(MERROR,
"PS_MODE_ENH command failed: result=0x%x action=0x%X\n",
resp->result, wlan_le16_to_cpu(pm->action));
- /*
+ /*
* We do not re-try enter-ps command in ad-hoc mode.
*/
if (wlan_le16_to_cpu(pm->action) == EN_AUTO_PS &&
@@ -98,7 +98,7 @@ wlan_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
default:
break;
}
- /*
+ /*
* Handling errors here
*/
wlan_insert_cmd_to_free_q(pmadapter, pmadapter->curr_cmd);
@@ -111,9 +111,9 @@ wlan_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
return;
}
-/**
+/**
* @brief This function handles the command response of RSSI info
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -181,9 +181,9 @@ wlan_ret_802_11_rssi_info(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of mac_control
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -200,9 +200,9 @@ wlan_ret_mac_control(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of snmp_mib
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -301,9 +301,9 @@ wlan_ret_802_11_snmp_mib(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of get_log
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -356,12 +356,12 @@ wlan_ret_get_log(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Get power level and rate index
*
* @param pmpriv A pointer to mlan_private structure
* @param pdata_buf Pointer to the data buffer
- *
+ *
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static mlan_status
@@ -408,9 +408,9 @@ wlan_get_power_level(pmlan_private pmpriv, void *pdata_buf)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of tx_power_cfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -508,9 +508,9 @@ wlan_ret_tx_power_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of rf_tx_power
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -550,9 +550,9 @@ wlan_ret_802_11_rf_tx_power(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sleep_period
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -591,9 +591,9 @@ wlan_ret_802_11_sleep_period(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sleep_params
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -637,9 +637,9 @@ wlan_ret_802_11_sleep_params(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of mac_address
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -673,9 +673,9 @@ wlan_ret_802_11_mac_address(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of multicast_address
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -750,9 +750,9 @@ wlan_ret_802_11_ad_hoc_stop(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of key_material
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -966,9 +966,9 @@ wlan_ret_802_11_supplicant_profile(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of rf_channel
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1061,13 +1061,13 @@ wlan_ret_ibss_coalescing_status(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of MGMT_IE_LIST
*
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
- *
+ *
* @return MLAN_STATUS_SUCCESS
*/
static mlan_status
@@ -1144,9 +1144,9 @@ wlan_ret_mgmt_ie_list(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sysclock
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1181,9 +1181,9 @@ wlan_ret_sysclock_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of reg_access
- *
+ *
* @param type The type of reg access (MAC, BBP or RF)
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1274,9 +1274,9 @@ wlan_ret_reg_access(mlan_adapter * pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of mem_access
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1306,9 +1306,9 @@ wlan_ret_mem_access(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of inactivity timeout
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1342,10 +1342,10 @@ wlan_ret_inactivity_timeout(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of
* subscribe event
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1377,9 +1377,9 @@ wlan_ret_subscribe_event(IN pmlan_private pmpriv,
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief This function handles the station command response
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmdresp_no cmd no
* @param pcmd_buf cmdresp buf
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c
index 232496681dae..f638241f9632 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c
@@ -40,10 +40,10 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function handles link lost, deauth and
- * disassoc events.
- *
+ * disassoc events.
+ *
* @param priv A pointer to mlan_private structure
* @return N/A
*/
@@ -62,11 +62,11 @@ wlan_handle_disconnect_event(pmlan_private pmpriv)
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief This function handles disconnect event, reports disconnect
- * to upper layer, cleans tx/rx packets,
- * resets link state etc.
- *
+ * to upper layer, cleans tx/rx packets,
+ * resets link state etc.
+ *
* @param priv A pointer to mlan_private structure
* @param drv_disconnect Flag indicating the driver should disconnect
* and flush pending packets.
@@ -175,9 +175,9 @@ wlan_reset_connect_state(pmlan_private priv, t_u8 drv_disconnect)
LEAVE();
}
-/**
+/**
* @brief This function sends the OBSS scan parameters to the application
- *
+ *
* @param pmpriv A pointer to mlan_private structure
*
* @return N/A
@@ -210,9 +210,9 @@ wlan_2040_coex_event(pmlan_private pmpriv)
LEAVE();
}
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c
index f5e2edc56b09..72dd525ca4af 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c
@@ -44,8 +44,8 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
- * @brief enable adhoc aes key
+/**
+ * @brief enable adhoc aes key
*
* @param pmpriv A pointer to mlan_private structure
*
@@ -80,7 +80,7 @@ wlan_enable_aes_key(pmlan_private pmpriv)
return;
}
-/**
+/**
* @brief Get signal information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -136,7 +136,7 @@ wlan_get_info_signal(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Get statistics information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -184,7 +184,7 @@ wlan_get_info_stats(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Get BSS information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -293,7 +293,7 @@ wlan_get_info_bss_info(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get information handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -348,7 +348,7 @@ wlan_get_info_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get SNMP MIB handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -411,7 +411,7 @@ wlan_snmp_mib_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get Infra/Ad-hoc band configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -480,7 +480,7 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
pmpriv->intf_state_11h.adhoc_auto_sel_chan = MFALSE;
pmadapter->chan_bandwidth =
(t_u8) radio_cfg->param.band_cfg.sec_chan_offset;
- /*
+ /*
* If no adhoc_channel is supplied verify if the existing adhoc channel
* compiles with new adhoc_band
*/
@@ -498,7 +498,7 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
DEFAULT_AD_HOC_CHANNEL_A;
}
}
- } else { /* Return error if adhoc_band and adhoc_channel
+ } else { /* Return error if adhoc_band and adhoc_channel
combination is invalid */
if (!wlan_find_cfp_by_band_and_channel
(pmadapter, pmadapter->adhoc_start_band,
@@ -517,23 +517,23 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
pmadapter->adhoc_11n_enabled = MFALSE;
}
} else {
- radio_cfg->param.band_cfg.config_bands = pmpriv->config_bands; /* Infra
- Bands
+ radio_cfg->param.band_cfg.config_bands = pmpriv->config_bands; /* Infra
+ Bands
*/
- radio_cfg->param.band_cfg.adhoc_start_band = pmadapter->adhoc_start_band; /* Adhoc
- Band
+ radio_cfg->param.band_cfg.adhoc_start_band = pmadapter->adhoc_start_band; /* Adhoc
+ Band
*/
- radio_cfg->param.band_cfg.adhoc_channel = pmpriv->adhoc_channel; /* Adhoc
- Channel
+ radio_cfg->param.band_cfg.adhoc_channel = pmpriv->adhoc_channel; /* Adhoc
+ Channel
*/
radio_cfg->param.band_cfg.fw_bands = pmadapter->fw_bands; /* FW
- support
- Bands
+ support
+ Bands
*/
PRINTM(MINFO, "Global config band = %d\n", pmadapter->config_bands);
- radio_cfg->param.band_cfg.sec_chan_offset = pmadapter->chan_bandwidth; /* adhoc
- channel
- bandwidth
+ radio_cfg->param.band_cfg.sec_chan_offset = pmadapter->chan_bandwidth; /* adhoc
+ channel
+ bandwidth
*/
}
@@ -542,7 +542,7 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Radio command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -592,7 +592,7 @@ wlan_radio_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get MAC address
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -633,7 +633,7 @@ wlan_bss_ioctl_mac_address(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set multicast list
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -713,7 +713,7 @@ wlan_bss_ioctl_set_multicast_list(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get channel list
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -809,7 +809,7 @@ wlan_bss_ioctl_get_channel_list(IN pmlan_adapter pmadapter,
/** Highest frequency used in 2.4GHz band */
#define MAX_FREQUENCY_BAND_B (2484)
-/**
+/**
* @brief Set/Get BSS channel
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -911,7 +911,7 @@ wlan_bss_ioctl_channel(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get BSS mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -970,7 +970,7 @@ wlan_bss_ioctl_mode(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Start BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1117,7 +1117,7 @@ wlan_bss_ioctl_start(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Stop BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1140,7 +1140,7 @@ wlan_bss_ioctl_stop(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get IBSS channel
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1186,7 +1186,7 @@ wlan_bss_ioctl_ibss_channel(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get beacon interval
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1215,7 +1215,7 @@ wlan_bss_ioctl_beacon_interval(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get ATIM window
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1245,13 +1245,13 @@ wlan_bss_ioctl_atim_window(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Query embe
*
* @param priv A pointer to mlan_private structure
* @param pioctl_req A pointer to ioctl request buffer
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
static mlan_status
wlan_query_passphrase(mlan_private * priv, pmlan_ioctl_req pioctl_req)
@@ -1296,7 +1296,7 @@ wlan_query_passphrase(mlan_private * priv, pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Search for a BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1326,7 +1326,7 @@ wlan_bss_ioctl_find_bss(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief BSS command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1406,7 +1406,7 @@ wlan_bss_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Get supported rates
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1445,7 +1445,7 @@ wlan_rate_ioctl_get_supported_rate(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get data rates
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1480,7 +1480,7 @@ wlan_rate_ioctl_get_data_rate(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Rate command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1524,7 +1524,7 @@ wlan_rate_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Get Tx power configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1555,7 +1555,7 @@ wlan_power_ioctl_get_power(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set Tx power configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1666,10 +1666,10 @@ wlan_power_ioctl_set_power(IN pmlan_adapter pmadapter,
/**
* @brief Get modulation class from rate index
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param rate_index Rate index
- *
+ *
* @return 0 fail, otherwise return modulation class
*/
static int
@@ -1704,7 +1704,7 @@ wlan_get_modulation_class(pmlan_adapter pmadapter, int rate_index)
return 0;
}
-/**
+/**
* @brief Set extended power configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1818,7 +1818,7 @@ wlan_power_ioctl_set_power_ext(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Power configuration command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1870,7 +1870,7 @@ wlan_power_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set power save configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1913,7 +1913,7 @@ wlan_pm_ioctl_ps_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get Inactivity timeout extend
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1951,9 +1951,9 @@ wlan_pm_ioctl_inactivity_timeout(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Enable/Disable Auto Deep Sleep
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
*
@@ -2002,7 +2002,7 @@ wlan_set_auto_deep_sleep(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get sleep period
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2037,7 +2037,7 @@ wlan_set_get_sleep_pd(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get PS configuration parameter
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2152,7 +2152,7 @@ wlan_set_get_sleep_params(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Power save command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2256,7 +2256,7 @@ wlan_pm_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get WMM status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2281,7 +2281,7 @@ wlan_wmm_ioctl_enable(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get WMM QoS configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2508,7 +2508,7 @@ wlan_wmm_ioctl_ts_status(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief WMM configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2567,8 +2567,8 @@ wlan_wmm_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
- * @brief Set/Get WPA IE
+/**
+ * @brief Set/Get WPA IE
*
* @param priv A pointer to mlan_private structure
* @param ie_data_ptr A pointer to IE
@@ -2613,8 +2613,8 @@ wlan_set_wpa_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
return MLAN_STATUS_SUCCESS;
}
-/**
- * @brief Set WAPI IE
+/**
+ * @brief Set WAPI IE
*
* @param priv A pointer to mlan_private structure
* @param ie_data_ptr A pointer to IE
@@ -2650,7 +2650,7 @@ wlan_set_wapi_ie(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Set/Get WAPI status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2682,7 +2682,7 @@ wlan_sec_ioctl_wapi_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set WAPI key
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2712,7 +2712,7 @@ wlan_sec_ioctl_set_wapi_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get Port Control status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2755,7 +2755,7 @@ wlan_sec_ioctl_port_ctrl_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get authentication mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2784,7 +2784,7 @@ wlan_sec_ioctl_auth_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get encryption mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2811,7 +2811,7 @@ wlan_sec_ioctl_encrypt_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get WPA status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2846,7 +2846,7 @@ wlan_sec_ioctl_wpa_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set WEP keys
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2895,9 +2895,9 @@ wlan_sec_ioctl_set_wep_key(IN pmlan_adapter pmadapter,
pwep_key->key_index = index;
pwep_key->key_length = sec->param.encrypt_key.key_len;
if (pmpriv->sec_info.wep_status != Wlan802_11WEPEnabled) {
- /*
- * The status is set as Key Absent
- * so as to make sure we display the
+ /*
+ * The status is set as Key Absent
+ * so as to make sure we display the
* keys when iwlist mlanX key is used
*/
pmpriv->sec_info.wep_status = Wlan802_11WEPKeyAbsent;
@@ -2956,7 +2956,7 @@ wlan_sec_ioctl_set_wep_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set WPA key
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2986,7 +2986,7 @@ wlan_sec_ioctl_set_wpa_key(IN pmlan_adapter pmadapter,
}
if ((pmpriv->bss_mode == MLAN_BSS_MODE_IBSS) &&
pmpriv->sec_info.wpa_enabled) {
- /*
+ /*
* IBSS/WPA-None uses only one key (Group) for both receiving and
* sending unicast and multicast packets.
*/
@@ -3064,7 +3064,7 @@ wlan_sec_ioctl_set_wpa_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get security keys
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3172,7 +3172,7 @@ wlan_sec_ioctl_get_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set security key(s)
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3202,7 +3202,7 @@ wlan_sec_ioctl_encrypt_key(IN pmlan_adapter pmadapter,
return status;
}
-/**
+/**
* @brief Set/Get WPA passphrase for esupplicant
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3263,7 +3263,7 @@ wlan_sec_ioctl_passphrase(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get esupplicant status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3292,7 +3292,7 @@ wlan_sec_ioctl_ewpa_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get esupplicant mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3328,7 +3328,7 @@ wlan_sec_ioctl_esupp_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Security configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3391,11 +3391,11 @@ wlan_sec_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
- * @brief Append/Reset IE buffer.
- *
- * Pass an opaque block of data, expected to be IEEE IEs, to the driver
- * for eventual passthrough to the firmware in an associate/join
+/**
+ * @brief Append/Reset IE buffer.
+ *
+ * Pass an opaque block of data, expected to be IEEE IEs, to the driver
+ * for eventual passthrough to the firmware in an associate/join
* (and potentially start) command. This function is the main body
* for both wlan_set_gen_ie_ioctl and wlan_set_gen_ie
*
@@ -3449,7 +3449,7 @@ wlan_set_gen_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
(priv->wps.session_enable == MFALSE) &&
(!memcmp
(priv->adapter, pvendor_ie->oui, wps_oui, sizeof(wps_oui)))) {
- /*
+ /*
* Discard first two byte (Element ID and Length)
* because they are not needed in the case of setting WPS_IE
*/
@@ -3465,8 +3465,8 @@ wlan_set_gen_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
PRINTM(MINFO, "wps_ie cleared\n");
}
} else {
- /*
- * Verify that the passed length is not larger than the available
+ /*
+ * Verify that the passed length is not larger than the available
* space remaining in the buffer
*/
if (ie_len < (sizeof(priv->gen_ie_buf) - priv->gen_ie_buf_len)) {
@@ -3500,7 +3500,7 @@ wlan_set_gen_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
return ret;
}
-/**
+/**
* @brief Set/Get WWS mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3552,7 +3552,7 @@ wlan_misc_ioctl_wws_cfg(IN pmlan_adapter pmadapter,
}
-/**
+/**
* @brief Set/Get 11D status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3603,7 +3603,7 @@ wlan_11d_cfg_ioctl_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Clear 11D chan table
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3633,7 +3633,7 @@ wlan_11d_clr_chan_table(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief 11D configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3680,7 +3680,7 @@ wlan_11d_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief WPS configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3728,7 +3728,7 @@ wlan_wps_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Read/write adapter register
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3785,8 +3785,8 @@ wlan_reg_mem_ioctl_reg_rw(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Read the EEPROM contents of the card
+/**
+ * @brief Read the EEPROM contents of the card
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -3821,7 +3821,7 @@ wlan_reg_mem_ioctl_read_eeprom(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Read/write memory of device
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3860,7 +3860,7 @@ wlan_reg_mem_ioctl_mem_rw(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief register memory access handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3904,7 +3904,7 @@ wlan_reg_mem_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief 802.11h ad-hoc start channel check
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3937,14 +3937,14 @@ wlan_11h_channel_check_req(IN pmlan_adapter pmadapter,
if (pmpriv->intf_state_11h.adhoc_auto_sel_chan)
pmpriv->adhoc_channel = wlan_11h_get_adhoc_start_channel(pmpriv);
- /*
+ /*
* Check if the region and channel requires a channel availability
* check.
*/
if (wlan_11h_radar_detect_required(pmpriv, pmpriv->adhoc_channel)
&& !wlan_11h_is_channel_under_nop(pmadapter, pmpriv->adhoc_channel)
) {
- /*
+ /*
* Radar detection is required for this channel, make sure
* 11h is activated in the firmware
*/
@@ -3964,8 +3964,8 @@ wlan_11h_channel_check_req(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief 802.11h set/get local power constraint
+/**
+ * @brief 802.11h set/get local power constraint
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -3992,7 +3992,7 @@ wlan_11h_ioctl_local_power_constraint(IN pmlan_adapter pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief 11h configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4040,7 +4040,7 @@ wlan_11h_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get generic IE
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4100,7 +4100,7 @@ wlan_misc_ioctl_gen_ie(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get region code
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4150,7 +4150,7 @@ wlan_misc_ioctl_region(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Perform warm reset
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4198,7 +4198,7 @@ wlan_misc_ioctl_warm_reset(IN pmlan_adapter pmadapter,
}
#if defined(SDIO_MULTI_PORT_TX_AGGR) || defined(SDIO_MULTI_PORT_RX_AGGR)
-/**
+/**
* @brief Reconfigure SDIO multiport aggregation parameters
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4296,7 +4296,7 @@ wlan_misc_ioctl_sdio_mpa_ctrl(IN pmlan_adapter pmadapter,
}
#endif /* SDIO_MULTI_PORT_TX_AGGR || SDIO_MULTI_PORT_RX_AGGR */
-/**
+/**
* @brief Set/Get system clock configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4495,7 +4495,7 @@ wlan_misc_ioctl_subscribe_evt(IN pmlan_adapter pmadapter,
}
/**
- * @brief Set ARP filter based on IP address
+ * @brief Set ARP filter based on IP address
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -4655,7 +4655,7 @@ wlan_ipaddr_auto_arp_resp(IN pmlan_adapter pmadapter,
}
/**
- * @brief MEF configuration
+ * @brief MEF configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -4765,7 +4765,7 @@ wlan_misc_ioctl_mef_cfg(IN pmlan_adapter pmadapter,
}
/**
- * @brief ipaddr configuration
+ * @brief ipaddr configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -4826,7 +4826,7 @@ wlan_misc_ioctl_ipaddr_cfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Miscellaneous configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4922,7 +4922,7 @@ wlan_misc_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get scan configuration parameter
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4975,7 +4975,7 @@ wlan_set_get_scan_cfg(IN pmlan_adapter pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Set/Get scan
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -5088,7 +5088,7 @@ wlan_scan_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
Global Functions
********************************************************/
-/**
+/**
* @brief Set ewpa mode
*
* @param priv A pointer to mlan_private structure
@@ -5114,7 +5114,7 @@ wlan_set_ewpa_mode(mlan_private * priv, mlan_ds_passphrase * psec_pp)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Search for a BSS
*
* @param pmpriv A pointer to mlan_private structure
@@ -5183,7 +5183,7 @@ wlan_find_bss(mlan_private * pmpriv, pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief MLAN station ioctl handler
*
* @param adapter A pointer to mlan_adapter structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c
index eb1bd845a587..2ad9a810afcf 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c
@@ -2,7 +2,7 @@
*
* @brief This file contains the handling of RX in MLAN
* module.
- *
+ *
* Copyright (C) 2008-2011, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
@@ -62,7 +62,7 @@ typedef struct
/**
* @brief This function processes received packet and forwards it
* to kernel/upper layer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -123,8 +123,8 @@ wlan_process_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
appletalk_aarp_type, sizeof(appletalk_aarp_type)) &&
memcmp(pmadapter, &prx_pkt->rfc1042_hdr.snap_type,
ipx_snap_type, sizeof(ipx_snap_type)))) {
- /*
- * Replace the 803 header and rfc1042 header (llc/snap) with an
+ /*
+ * Replace the 803 header and rfc1042 header (llc/snap) with an
* EthernetII header, keep the src/dst and snap_type (ethertype).
* The firmware only passes up SNAP frames converting
* all RX Data from 802.11 to 802.2/LLC/SNAP frames.
@@ -143,7 +143,7 @@ wlan_process_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
memcpy(pmadapter, peth_hdr->dest_addr, prx_pkt->eth803_hdr.dest_addr,
sizeof(peth_hdr->dest_addr));
- /* Chop off the RxPD + the excess memory from the 802.2/llc/snap header
+ /* Chop off the RxPD + the excess memory from the 802.2/llc/snap header
that was removed. */
hdr_chop = (t_u32) ((t_ptr) peth_hdr - (t_ptr) prx_pd);
} else {
@@ -190,7 +190,7 @@ wlan_process_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
/**
* @brief This function processes the received buffer
- *
+ *
* @param adapter A pointer to mlan_adapter
* @param pmbuf A pointer to the received buffer
*
@@ -248,7 +248,7 @@ wlan_ops_sta_process_rx_packet(IN t_void * adapter, IN pmlan_buffer pmbuf)
goto done;
}
- /*
+ /*
* If the packet is not an unicast packet then send the packet
* directly to os. Don't pass thru rx reordering
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c
index f509468d586f..06c1a4de064e 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c
@@ -47,9 +47,9 @@ Change log:
/********************************************************
Global functions
********************************************************/
-/**
- * @brief This function fill the txpd for tx packet
- *
+/**
+ * @brief This function fill the txpd for tx packet
+ *
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to the mlan_buffer for process
*
@@ -107,7 +107,7 @@ wlan_ops_sta_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
wlan_wmm_compute_driver_packet_delay(pmpriv, pmbuf);
if (plocal_tx_pd->priority < NELEMENTS(pmpriv->wmm.user_pri_pkt_tx_ctrl))
- /*
+ /*
* Set the priority specific tx_control field, setting of 0 will
* cause the default value to be used later in this function
*/
@@ -147,9 +147,9 @@ wlan_ops_sta_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
return head_ptr;
}
-/**
+/**
* @brief This function tells firmware to send a NULL data packet.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param flags Transmit Pkt Flags
*
@@ -237,9 +237,9 @@ wlan_send_null_packet(pmlan_private priv, t_u8 flags)
return ret;
}
-/**
+/**
* @brief This function checks if we need to send last packet indication.
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MTRUE or MFALSE
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_txrx.c b/drivers/net/wireless/sd8797/mlan/mlan_txrx.c
index f243fc191800..e15dd14f0443 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_txrx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_txrx.c
@@ -51,7 +51,7 @@ Change Log:
********************************************************/
/**
* @brief This function processes the received buffer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pmbuf A pointer to the received buffer
*
@@ -85,9 +85,9 @@ wlan_handle_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
return ret;
}
-/**
- * @brief This function checks the conditions and sends packet to device
- *
+/**
+ * @brief This function checks the conditions and sends packet to device
+ *
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to the mlan_buffer for process
* @param tx_param A pointer to mlan_tx_param structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c b/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c
index 8c041c8159c2..ed79dcfaaf68 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c
@@ -3,7 +3,7 @@
* @brief This file contains the handling of AP mode command and event
*
* Copyright (C) 2009-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -38,9 +38,9 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief This function handles the command response error
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -59,7 +59,7 @@ uap_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
resp->result);
if (pioctl_buf)
pioctl_buf->status_code = resp->result;
- /*
+ /*
* Handling errors here
*/
wlan_insert_cmd_to_free_q(pmadapter, pmadapter->curr_cmd);
@@ -72,9 +72,9 @@ uap_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
return;
}
-/**
+/**
* @brief This function prepares command of hs_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -113,7 +113,7 @@ wlan_uap_cmd_802_11_hs_cfg(IN pmlan_private pmpriv,
/**
* @brief This function prepares command of Tx data pause
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -146,12 +146,12 @@ wlan_uap_cmd_txdatapause(pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of Tx data pause
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -177,8 +177,8 @@ wlan_uap_ret_txdatapause(IN pmlan_private pmpriv,
/**
* @brief This function will process tx pause event
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
*
@@ -234,11 +234,11 @@ wlan_process_tx_pause_event(pmlan_private priv, pmlan_buffer pevent)
/**
* @brief This function prepares command for config uap settings
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static mlan_status
@@ -899,11 +899,11 @@ wlan_uap_cmd_ap_config(pmlan_private pmpriv,
/**
* @brief This function prepares command of sys_config
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static mlan_status
@@ -1122,12 +1122,12 @@ wlan_uap_cmd_sys_configure(pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles command resp for get uap settings
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1489,13 +1489,13 @@ wlan_uap_ret_cmd_ap_config(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sys_reset
* Clear various private state variables used by DFS.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1520,12 +1520,12 @@ wlan_uap_ret_sys_reset(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sys_config
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1666,12 +1666,12 @@ wlan_uap_ret_sys_config(IN pmlan_private pmpriv,
/**
* @brief This function prepares command of snmp_mib
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param cmd_oid Cmd oid: treated as sub command
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
* @param pdata_buf A pointer to information buffer
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1754,12 +1754,12 @@ wlan_uap_cmd_snmp_mib(pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles the command response of snmp_mib
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1886,7 +1886,7 @@ wlan_uap_ret_snmp_mib(IN pmlan_private pmpriv,
/**
* @brief This function prepares command of deauth station
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -1912,7 +1912,7 @@ wlan_uap_cmd_sta_deauth(pmlan_private pmpriv,
/**
* @brief This function prepares command of key material
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1963,10 +1963,10 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
else
pkey_material->key_param_set.key[1] = 0; /* set 0 when re-key */
- if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) { /* WAPI
- pairwise
- key:
- unicast
+ if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) { /* WAPI
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_WAPI_UNICAST);
@@ -2012,10 +2012,10 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
pkey_material->key_param_set.key_info =
!(wlan_cpu_to_le16(KEY_INFO_AES_ENABLED));
- if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* AES
- pairwise
- key:
- unicast
+ if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* AES
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_AES_UNICAST);
@@ -2029,10 +2029,10 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
pkey_material->key_param_set.key_info =
wlan_cpu_to_le16(KEY_INFO_TKIP_ENABLED);
- if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* TKIP
- pairwise
- key:
- unicast
+ if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* TKIP
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_TKIP_UNICAST);
@@ -2068,12 +2068,12 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles the command response of sta_list
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -2113,8 +2113,8 @@ wlan_uap_ret_sta_list(IN pmlan_private pmpriv,
/**
* @brief This function will search for the specific ie
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
* @param sta_ptr A pointer to sta_node
@@ -2196,8 +2196,8 @@ wlan_check_sta_capability(pmlan_private priv, pmlan_buffer pevent,
/**
* @brief This function will search for the specific ie
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
*
@@ -2274,8 +2274,8 @@ wlan_check_uap_capability(pmlan_private priv, pmlan_buffer pevent)
/**
* @brief This function will update WAPI PN in statation assoc event
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
*
@@ -2329,11 +2329,11 @@ wlan_update_wapi_info_tlv(pmlan_private priv, pmlan_buffer pevent)
/**
* @brief This function send sta_assoc_event to moal
- * payload with sta mac address and assoc ie.
- *
+ * payload with sta mac address and assoc ie.
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to mlan_event buffer
- * @param pbuf A pointer to mlan_buffer which has event content.
+ * @param pbuf A pointer to mlan_buffer which has event content.
*
* @return MFALSE
*/
@@ -2406,9 +2406,9 @@ wlan_process_sta_assoc_event(pmlan_private priv, mlan_event * pevent,
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief This function prepare the command before sending to firmware.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd_no Command number
* @param cmd_action Command action: GET or SET
@@ -2585,9 +2585,9 @@ wlan_ops_uap_prepare_cmd(IN t_void * priv,
return ret;
}
-/**
+/**
* @brief This function handles the AP mode command response
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmdresp_no cmd no
* @param pcmd_buf cmdresp buf
@@ -2751,9 +2751,9 @@ wlan_ops_uap_process_cmdresp(IN t_void * priv,
return ret;
}
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c b/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c
index be78d72de25c..5081d9e4aabc 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c
@@ -3,7 +3,7 @@
* @brief This file contains the handling of AP mode ioctls
*
* Copyright (C) 2009-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -44,7 +44,7 @@ extern t_u8 tos_to_tid_inv[];
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief Stop BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -94,7 +94,7 @@ wlan_uap_callback_bss_ioctl_start(IN t_void * priv)
/* clear callback now that we're here */
puap_state_chan_cb->get_chan_callback = MNULL;
- /*
+ /*
* Check if the region and channel requires we check for radar.
*/
if ((puap_state_chan_cb->band_config & BAND_CONFIG_5GHZ) &&
@@ -170,7 +170,7 @@ wlan_uap_callback_bss_ioctl_start(IN t_void * priv)
return ret;
}
-/**
+/**
* @brief Start BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -205,7 +205,7 @@ wlan_uap_bss_ioctl_start(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief reset BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -223,7 +223,7 @@ wlan_uap_bss_ioctl_reset(IN pmlan_adapter pmadapter,
ENTER();
- /*
+ /*
* Reset any uap private parameters here
*/
for (i = 0; i < pmadapter->max_mgmt_ie_index; i++) {
@@ -254,7 +254,7 @@ wlan_uap_bss_ioctl_reset(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get MAC address
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -291,7 +291,7 @@ wlan_uap_bss_ioctl_mac_address(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get Uap statistics
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -318,7 +318,7 @@ wlan_uap_get_stats(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get AP config
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -352,7 +352,7 @@ wlan_uap_bss_ioctl_config(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief deauth sta
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -384,8 +384,8 @@ wlan_uap_bss_ioctl_deauth_sta(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Get station list
+/**
+ * @brief Get station list
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -413,7 +413,7 @@ wlan_uap_get_sta_list(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief soft_reset
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -441,7 +441,7 @@ wlan_uap_misc_ioctl_soft_reset(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Tx data pause
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -476,7 +476,7 @@ wlan_uap_misc_ioctl_txdatapause(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get Power mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -530,8 +530,8 @@ wlan_uap_pm_ioctl_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set WAPI IE
+/**
+ * @brief Set WAPI IE
*
* @param priv A pointer to mlan_private structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -581,7 +581,7 @@ wlan_uap_set_wapi_ie(mlan_private * priv, pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set generic IE
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -620,7 +620,7 @@ wlan_uap_misc_ioctl_gen_ie(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get WAPI status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -657,7 +657,7 @@ wlan_uap_sec_ioctl_wapi_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set encrypt key
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -697,7 +697,7 @@ wlan_uap_sec_ioctl_set_encrypt_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get BSS information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -732,7 +732,7 @@ wlan_uap_get_bss_info(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set Host Sleep configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -956,7 +956,7 @@ wlan_uap_callback_11h_channel_check_req(IN t_void * priv)
/* clear early to avoid race condition */
puap_state_chan_cb->pioctl_req_curr = MNULL;
- /*
+ /*
* Check if the region and channel requires a channel availability
* check.
*/
@@ -965,7 +965,7 @@ wlan_uap_callback_11h_channel_check_req(IN t_void * priv)
!wlan_11h_is_channel_under_nop(pmpriv->adapter,
puap_state_chan_cb->channel)) {
- /*
+ /*
* Radar detection is required for this channel, make sure
* 11h is activated in the firmware
*/
@@ -1228,7 +1228,7 @@ wlan_uap_get_beacon_dtim(IN pmlan_private pmpriv)
return ret;
}
-/**
+/**
* @brief MLAN uap ioctl handler
*
* @param adapter A pointer to mlan_adapter structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c b/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c
index 1dad10bce62a..0abd1ecd1c2a 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c
@@ -3,7 +3,7 @@
* @brief This file contains AP mode transmit and receive functions
*
* Copyright (C) 2009-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -43,7 +43,7 @@ Change log:
/**
* @brief This function processes received packet and forwards it
* to kernel/upper layer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -91,7 +91,7 @@ wlan_upload_uap_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
/**
* @brief This function will check if unicast packet need be dropped
- *
+ *
* @param priv A pointer to mlan_private
* @param mac mac address to find in station list table
*
@@ -136,9 +136,9 @@ wlan_check_unicast_packet(mlan_private * priv, t_u8 * mac)
/********************************************************
Global Functions
********************************************************/
-/**
- * @brief This function fill the txpd for tx packet
- *
+/**
+ * @brief This function fill the txpd for tx packet
+ *
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to the mlan_buffer for process
*
@@ -198,7 +198,7 @@ wlan_ops_uap_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
wlan_wmm_compute_driver_packet_delay(pmpriv, pmbuf);
if (plocal_tx_pd->priority < NELEMENTS(pmpriv->wmm.user_pri_pkt_tx_ctrl))
- /*
+ /*
* Set the priority specific tx_control field, setting of 0 will
* cause the default value to be used later in this function
*/
@@ -229,7 +229,7 @@ wlan_ops_uap_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
/**
* @brief This function processes received packet and forwards it
* to kernel/upper layer
- *
+ *
* @param adapter A pointer to mlan_adapter
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -328,8 +328,8 @@ wlan_ops_uap_process_rx_packet(IN t_void * adapter, IN pmlan_buffer pmbuf)
/**
* @brief This function processes received packet and forwards it
- * to kernel/upper layer or send back to firmware
- *
+ * to kernel/upper layer or send back to firmware
+ *
* @param priv A pointer to mlan_private
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -435,8 +435,8 @@ wlan_uap_recv_packet(IN mlan_private * priv, IN pmlan_buffer pmbuf)
/**
* @brief This function processes received packet and forwards it
- * to kernel/upper layer or send back to firmware
- *
+ * to kernel/upper layer or send back to firmware
+ *
* @param priv A pointer to mlan_private
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_util.h b/drivers/net/wireless/sd8797/mlan/mlan_util.h
index c5231f6b775e..6274f75054a0 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_util.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_util.h
@@ -47,9 +47,9 @@ typedef struct _mlan_list_head
t_void *plock;
} mlan_list_head, *pmlan_list_head;
-/**
+/**
* @brief This function initializes a list without locking
- *
+ *
* @param phead List head
*
* @return N/A
@@ -61,9 +61,9 @@ util_init_list(pmlan_linked_list phead)
phead->pprev = phead->pnext = (pmlan_linked_list) phead;
}
-/**
+/**
* @brief This function initializes a list
- *
+ *
* @param phead List head
* @param lock_required A flag for spinlock requirement
* @param moal_init_lock A pointer to init lock handler
@@ -85,9 +85,9 @@ util_init_list_head(t_void * pmoal_handle,
phead->plock = 0;
}
-/**
+/**
* @brief This function frees a list
- *
+ *
* @param phead List head
* @param moal_free_lock A pointer to free lock handler
*
@@ -104,9 +104,9 @@ util_free_list_head(t_void * pmoal_handle,
moal_free_lock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function peeks into a list
- *
+ *
* @param phead List head
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -131,9 +131,9 @@ util_peek_list(t_void * pmoal_handle,
return pnode;
}
-/**
+/**
* @brief This function queues a node at the list tail
- *
+ *
* @param phead List head
* @param pnode List node to queue
* @param moal_spin_lock A pointer to spin lock handler
@@ -163,9 +163,9 @@ util_enqueue_list_tail(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function adds a node at the list head
- *
+ *
* @param phead List head
* @param pnode List node to add
* @param moal_spin_lock A pointer to spin lock handler
@@ -195,9 +195,9 @@ util_enqueue_list_head(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function removes a node from the list
- *
+ *
* @param phead List head
* @param pnode List node to remove
* @param moal_spin_lock A pointer to spin lock handler
@@ -228,9 +228,9 @@ util_unlink_list(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function dequeues a node from the list
- *
+ *
* @param phead List head
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -285,9 +285,9 @@ typedef enum _MLAN_SCALAR_CONDITIONAL
MLAN_SCALAR_COND_LESS_OR_EQUAL
} MLAN_SCALAR_CONDITIONAL;
-/**
+/**
* @brief This function initializes a scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param val Initial scalar value
* @param plock_to_use A new lock is created if NULL, else lock to use
@@ -314,9 +314,9 @@ util_scalar_init(t_void * pmoal_handle,
}
}
-/**
+/**
* @brief This function frees a scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_free_lock A pointer to free lock handler
*
@@ -331,9 +331,9 @@ util_scalar_free(t_void * pmoal_handle,
moal_free_lock(pmoal_handle, &pscalar->plock);
}
-/**
+/**
* @brief This function reads value from scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -358,9 +358,9 @@ util_scalar_read(t_void * pmoal_handle,
return val;
}
-/**
+/**
* @brief This function writes value to scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param val Value to write
* @param moal_spin_lock A pointer to spin lock handler
@@ -384,9 +384,9 @@ util_scalar_write(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, pscalar->plock);
}
-/**
+/**
* @brief This function increments the value in scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -408,9 +408,9 @@ util_scalar_increment(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, pscalar->plock);
}
-/**
+/**
* @brief This function decrements the value in scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -432,10 +432,10 @@ util_scalar_decrement(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, pscalar->plock);
}
-/**
+/**
* @brief This function adds an offset to the value in scalar,
- * and returns the new value
- *
+ * and returns the new value
+ *
* @param pscalar Pointer to scalar
* @param offset Offset value (can be negative)
* @param moal_spin_lock A pointer to spin lock handler
@@ -463,10 +463,10 @@ util_scalar_offset(t_void * pmoal_handle,
return newval;
}
-/**
+/**
* @brief This function writes the value to the scalar
* if existing value compared with other value is true.
- *
+ *
* @param pscalar Pointer to scalar
* @param condition Condition to check
* @param val_compare Value to compare against current value
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_wmm.c b/drivers/net/wireless/sd8797/mlan/mlan_wmm.c
index 9c9f90be295d..d2c3227aca87 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_wmm.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_wmm.c
@@ -43,10 +43,10 @@ Change log:
/*
* Upper and Lower threshold for packet queuing in the driver
-
+
* - When the number of packets queued reaches the upper limit,
* the driver will stop the net queue in the app/kernel space.
-
+
* - When the number of packets drops beneath the lower limit after
* having reached the upper limit, the driver will restart the net
* queue.
@@ -84,7 +84,7 @@ static const t_u8 wmm_aci_to_qidx_map[] = { WMM_AC_BE,
WMM_AC_VO
};
-/**
+/**
* This table will be used to store the tid values based on ACs.
* It is initialized to default values per TID.
*/
@@ -100,7 +100,7 @@ t_u8 tos_to_tid[] = {
0x07 /* 1 1 1 AC_VO */
};
-/**
+/**
* This table inverses the tos_to_tid operation to get a priority
* which is in sequential order, and can be compared.
* Use this to compare the priority of two different TIDs.
@@ -115,7 +115,7 @@ t_u8 tos_to_tid_inv[] = { 0x02, /* from tos_to_tid[2] = 0 */
0x07
};
-/**
+/**
* This table will provide the tid value for given ac. This table does not
* change and will be used to copy back the default values to tos_to_tid in
* case of disconnect.
@@ -208,7 +208,7 @@ wlan_wmm_allocate_ralist_node(pmlan_adapter pmadapter, t_u8 * ra)
}
/**
- * @brief Map ACs to TID
+ * @brief Map ACs to TID
*
* @param priv Pointer to the mlan_private driver data struct
* @param queue_priority Queue_priority structure
@@ -270,7 +270,7 @@ wlan_wmm_eval_downgrade_ac(pmlan_private priv, mlan_wmm_ac_e eval_ac)
/* Setup a default return value of the lowest priority */
ret_ac = WMM_AC_BK;
- /*
+ /*
* Find the highest AC that is enabled and does not require admission
* control. The spec disallows downgrading to an AC, which is enabled
* due to a completed admission control. Unadmitted traffic is not
@@ -335,7 +335,7 @@ wlan_wmm_downgrade_tid(pmlan_private priv, t_u32 tid)
priv->wmm.ac_down_graded_vals[wlan_wmm_convert_tos_to_ac(pmadapter,
tid)];
LEAVE();
- /*
+ /*
* Send the index to tid array, picking from the array will be
* taken care by dequeuing function
*/
@@ -470,11 +470,11 @@ wlan_wmm_delete_all_ralist(pmlan_private priv)
/**
* @brief Get queue RA pointer
- *
+ *
* @param priv Pointer to the mlan_private driver data struct
* @param tid TID
* @param ra_addr Pointer to the route address
- *
+ *
* @return ra_list
*/
static raListTbl *
@@ -580,7 +580,7 @@ wlan_send_wmmac_host_event(pmlan_private priv,
/**
* @brief This function gets the highest priority list pointer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param priv A pointer to mlan_private
* @param tid A pointer to return tid
@@ -640,9 +640,9 @@ wlan_wmm_get_highest_priolist_ptr(pmlan_adapter pmadapter,
(pmadapter->pmoal_handle, &tid_ptr->ra_list, MNULL, MNULL))
continue;
- /*
- * Always choose the next ra we transmitted
- * last time, this way we pick the ra's in
+ /*
+ * Always choose the next ra we transmitted
+ * last time, this way we pick the ra's in
* round robin fashion.
*/
head = ptr = tid_ptr->ra_list_curr->pnext;
@@ -711,7 +711,7 @@ wlan_wmm_get_highest_priolist_ptr(pmlan_adapter pmadapter,
/**
* @brief This function gets the number of packets in the Tx queue
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param maxBufSize Maximum buffer size
@@ -742,7 +742,7 @@ wlan_num_pkts_in_txq(mlan_private * priv, raListTbl * ptr, int maxBufSize)
/**
* @brief This function sends a single packet
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param ptrindex ptr's TID index
@@ -825,7 +825,7 @@ wlan_send_single_packet(pmlan_private priv, raListTbl * ptr, int ptrindex)
/**
* @brief This function checks if this mlan_buffer is already processed.
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
*
@@ -846,7 +846,7 @@ wlan_is_ptr_processed(mlan_private * priv, raListTbl * ptr)
/**
* @brief This function sends a single packet that has been processed
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param ptrindex ptr's TID index
@@ -932,7 +932,7 @@ wlan_send_processed_packet(pmlan_private priv, raListTbl * ptr, int ptrindex)
/**
* @brief This function dequeues a packet
- *
+ *
* @param pmadapter A pointer to mlan_adapter
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -963,7 +963,7 @@ wlan_dequeue_tx_packet(pmlan_adapter pmadapter)
of both of function. But, the the bulk of these function will execute
w/o spinlock. Unlocking the spinlock inside these function will help
us avoid taking the spinlock again, check to see if the ptr is still
- valid and then proceed. This is done purely to increase execution time.
+ valid and then proceed. This is done purely to increase execution time.
*/
/* Note:- Also, anybody adding code which does not get into
@@ -1498,11 +1498,11 @@ wlan_wmm_lists_empty(pmlan_adapter pmadapter)
/**
* @brief Get ralist node
- *
+ *
* @param priv Pointer to the mlan_private driver data struct
* @param tid TID
* @param ra_addr Pointer to the route address
- *
+ *
* @return ra_list or MNULL
*/
raListTbl *
@@ -1528,12 +1528,12 @@ wlan_wmm_get_ralist_node(pmlan_private priv, t_u8 tid, t_u8 * ra_addr)
/**
* @brief Check if RA list is valid or not
- *
+ *
* @param priv Pointer to the mlan_private driver data struct
* @param ra_list Pointer to raListTbl
* @param ptrindex TID pointer index
- *
- * @return MTRUE- valid. MFALSE- invalid.
+ *
+ * @return MTRUE- valid. MFALSE- invalid.
*/
int
wlan_is_ralist_valid(mlan_private * priv, raListTbl * ra_list, int ptrindex)
@@ -1686,7 +1686,7 @@ wlan_wmm_add_buf_txqueue(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
tos_to_tid_inv[tid_down], MNULL, MNULL);
}
/* Record the current time the packet was queued; used to determine the
- amount of time the packet was queued in the driver before it was sent to
+ amount of time the packet was queued in the driver before it was sent to
the firmware. The delay is then sent along with the packet to the
firmware for aggregate delay calculation for stats and MSDU lifetime
expiry. */
@@ -1761,7 +1761,7 @@ wlan_ret_wmm_get_status(pmlan_private priv, t_u8 * ptlv, int resp_len)
break;
case WMM_IE:
- /*
+ /*
* Point the regular IEEE IE 2 bytes into the Marvell IE
* and setup the IEEE IE type and length byte fields
*/
@@ -1941,7 +1941,7 @@ wlan_wmm_compute_driver_packet_delay(pmlan_private priv,
queue_delay = (out_ts_sec - pmbuf->in_ts_sec) * 1000;
queue_delay += (out_ts_usec - pmbuf->in_ts_usec) / 1000;
- /*
+ /*
* Queue delay is passed as a uint8 in units of 2ms (ms shifted
* by 1). Min value (other than 0) is therefore 2ms, max is 510ms.
*
@@ -1979,7 +1979,7 @@ wlan_wmm_process_tx(pmlan_adapter pmadapter)
return;
}
-/**
+/**
* @brief select wmm queue
*
* @param pmpriv A pointer to mlan_private structure
@@ -2219,7 +2219,7 @@ wlan_ret_wmm_addts_req(IN pmlan_private pmpriv,
paddts->status_code = (t_u32) presp_addts->ieee_status_code;
if (presp_addts->command_result == MLAN_CMD_RESULT_SUCCESS) {
- /* The tspecData field is potentially variable in size due to extra
+ /* The tspecData field is potentially variable in size due to extra
IEs that may have been in the ADDTS response action frame.
Calculate the data length from the firmware command response. */
paddts->ie_data_len
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_wmm.h b/drivers/net/wireless/sd8797/mlan/mlan_wmm.h
index 89a2c8f37e49..155f99330a05 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_wmm.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_wmm.h
@@ -29,7 +29,7 @@ Change log:
/**
* @brief This function gets the TID
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param ptr A pointer to RA list table
*
@@ -51,7 +51,7 @@ wlan_get_tid(pmlan_adapter pmadapter, raListTbl * ptr)
/**
* @brief This function gets the length of a list
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param head A pointer to mlan_list_head
*
@@ -127,7 +127,7 @@ t_void wlan_wmm_delete_peer_ralist(pmlan_private priv, t_u8 * mac);
#endif
#ifdef STA_SUPPORT
-/*
+/*
* Functions used in the cmd handling routine
*/
/** WMM ADDTS request command handler */
@@ -151,7 +151,7 @@ extern mlan_status wlan_cmd_wmm_ts_status(IN pmlan_private pmpriv,
OUT HostCmd_DS_COMMAND * cmd,
IN t_void * pdata_buf);
-/*
+/*
* Functions used in the cmdresp handling routine
*/
/** WMM get status command response handler */
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_cfg80211.c b/drivers/net/wireless/sd8797/mlinux/moal_cfg80211.c
index 942fae4e991d..1b04db6b4da0 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_cfg80211.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_cfg80211.c
@@ -163,7 +163,7 @@ woal_get_wiphy_priv(struct wiphy *wiphy)
return (void *) (*(unsigned long *) wiphy_priv(wiphy));
}
-/**
+/**
* @brief Set/Enable encryption key
*
* @param priv A pointer to moal_private structure
@@ -172,7 +172,7 @@ woal_get_wiphy_priv(struct wiphy *wiphy)
* @param key A pointer to key
* @param key_len Key length
* @param seq A pointer to sequence
- * @param seq_len Sequence length
+ * @param seq_len Sequence length
* @param key_index Key index
* @param addr Mac for which key is to be set
* @param disable Key disabled or not
@@ -729,7 +729,7 @@ woal_cfg80211_change_virtual_intf(struct wiphy *wiphy,
&& (priv->wdev->iftype == NL80211_IFTYPE_AP
|| priv->wdev->iftype == NL80211_IFTYPE_P2P_GO
|| priv->wdev->iftype == NL80211_IFTYPE_P2P_CLIENT)) {
- /* if we support wifi direct && priv->bss_type == wifi_direct, and
+ /* if we support wifi direct && priv->bss_type == wifi_direct, and
currently the interface type is AP or GO or client, that means
wpa_supplicant deinit() wifi direct interface, so we should
deinit bss_role and wifi direct mode, for other bss_type, we
@@ -1236,7 +1236,7 @@ woal_cfg80211_mgmt_tx(struct wiphy *wiphy,
atomic_inc(&priv->phandle->tx_pending);
queue_work(priv->phandle->workqueue, &priv->phandle->main_work);
- /* delay 20ms to guarantee the packet has been already tx'ed becuase if
+ /* delay 20ms to guarantee the packet has been already tx'ed becuase if
we call cfg80211_mgmt_tx_status() immediately, then wpa_supplicant
will call cancel_remain_on_channel(), which may affect the mgmt
frame tx */
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_eth_ioctl.c b/drivers/net/wireless/sd8797/mlinux/moal_eth_ioctl.c
index 984400cd532f..4e9ef8850b53 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_eth_ioctl.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_eth_ioctl.c
@@ -166,7 +166,7 @@ woal_set_ap_wps_p2p_ie(moal_private * priv, t_u8 * ie, size_t len)
}
/* Android cmd format: "SET_AP_WPS_P2P_IE 1" -- beacon IE
- "SET_AP_WPS_P2P_IE 2" -- proberesp IE "SET_AP_WPS_P2P_IE 4" -- assocresp
+ "SET_AP_WPS_P2P_IE 2" -- proberesp IE "SET_AP_WPS_P2P_IE 4" -- assocresp
IE */
if (*pos == '1') {
PRINTM(MIOCTL, "Ignore set beacon ie\n");
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_ioctl.c b/drivers/net/wireless/sd8797/mlinux/moal_ioctl.c
index 7928d37ad015..efe6e7ddcea1 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_ioctl.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_ioctl.c
@@ -102,7 +102,7 @@ extern int cfg80211_wext;
Local Functions
********************************************************/
#ifdef STA_SUPPORT
-/**
+/**
* @brief This function converts region string to region code
*
* @param region_string Region string
@@ -129,11 +129,11 @@ region_string_2_region_code(char *region_string)
}
#endif
-/**
+/**
* @brief Copy multicast table
- *
+ *
* @param mlist A pointer to mlan_multicast_list structure
- * @param dev A pointer to net_device structure
+ * @param dev A pointer to net_device structure
*
* @return Number of multicast addresses
*/
@@ -161,11 +161,11 @@ woal_copy_mcast_addr(mlan_multicast_list * mlist, struct net_device *dev)
return i;
}
-/**
- * @brief Fill in wait queue
- *
+/**
+ * @brief Fill in wait queue
+ *
* @param priv A pointer to moal_private structure
- * @param wait A pointer to wait_queue structure
+ * @param wait A pointer to wait_queue structure
* @param wait_option Wait option
*
* @return N/A
@@ -199,11 +199,11 @@ woal_fill_wait_queue(moal_private * priv, wait_queue * wait, t_u8 wait_option)
return;
}
-/**
+/**
* @brief Wait mlan ioctl complete
- *
+ *
* @param priv A pointer to moal_private structure
- * @param req A pointer to mlan_ioctl_req structure
+ * @param req A pointer to mlan_ioctl_req structure
* @param wait_option Wait option
*
* @return N/A
@@ -357,9 +357,9 @@ woal_cac_period_block_cmd(moal_private * priv, pmlan_ioctl_req req)
Global Functions
********************************************************/
-/**
+/**
* @brief Send ioctl request to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
* @param req A pointer to mlan_ioctl_req buffer
* @param wait_option Wait option (MOAL_WAIT or MOAL_NO_WAIT)
@@ -422,7 +422,7 @@ woal_request_ioctl(moal_private * priv, mlan_ioctl_req * req, t_u8 wait_option)
if (sub_command == MLAN_OID_BSS_START) {
mlan_ds_bss *bss;
bss = (mlan_ds_bss *) req->pbuf;
- /*
+ /*
* Bss delay start after channel report received,
* not block the driver by delay executing. This is
* because a BSS_START cmd is always executed right
@@ -434,7 +434,7 @@ woal_request_ioctl(moal_private * priv, mlan_ioctl_req * req, t_u8 wait_option)
priv->phandle->delay_bss_start = MTRUE;
memcpy(&priv->phandle->delay_ssid_bssid,
&bss->param.ssid_bssid, sizeof(mlan_ssid_bssid));
- /* TODO: return success to allow the half below of routines of
+ /* TODO: return success to allow the half below of routines of
which calling BSS start to execute */
status = MLAN_STATUS_SUCCESS;
goto done;
@@ -498,9 +498,9 @@ woal_request_ioctl(moal_private * priv, mlan_ioctl_req * req, t_u8 wait_option)
return status;
}
-/**
+/**
* @brief Send set MAC address request to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
*
* @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
@@ -549,11 +549,11 @@ woal_request_set_mac_address(moal_private * priv)
return status;
}
-/**
+/**
* @brief Send multicast list request to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
- * @param dev A pointer to net_device structure
+ * @param dev A pointer to net_device structure
*
* @return N/A
*/
@@ -604,9 +604,9 @@ woal_request_set_multicast_list(moal_private * priv, struct net_device *dev)
return;
}
-/**
+/**
* @brief Send deauth command to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param mac MAC address to deauthenticate
@@ -650,11 +650,11 @@ woal_disconnect(moal_private * priv, t_u8 wait_option, t_u8 * mac)
return status;
}
-/**
+/**
* @brief Send bss_start command to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param ssid_bssid A point to mlan_ssid_bssid structure
*
* @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
@@ -697,14 +697,14 @@ woal_bss_start(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Get BSS info
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param bss_info A pointer to mlan_bss_info structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_bss_info(moal_private * priv, t_u8 wait_option,
@@ -744,7 +744,7 @@ woal_get_bss_info(moal_private * priv, t_u8 wait_option,
}
#ifdef STA_SUPPORT
-/**
+/**
* @brief Set/Get retry count
*
* @param priv A pointer to moal_private structure
@@ -806,7 +806,7 @@ woal_set_get_retry(moal_private * priv, t_u32 action,
return ret;
}
-/**
+/**
* @brief Set/Get RTS threshold
*
* @param priv A pointer to moal_private structure
@@ -866,7 +866,7 @@ woal_set_get_rts(moal_private * priv, t_u32 action,
return ret;
}
-/**
+/**
* @brief Set/Get Fragment threshold
*
* @param priv A pointer to moal_private structure
@@ -926,7 +926,7 @@ woal_set_get_frag(moal_private * priv, t_u32 action,
return ret;
}
-/**
+/**
* @brief Set/Get generic IE
*
* @param priv A pointer to moal_private structure
@@ -992,7 +992,7 @@ woal_set_get_gen_ie(moal_private * priv, t_u32 action, t_u8 * ie, int *ie_len)
return ret;
}
-/**
+/**
* @brief Set/Get TX power
*
* @param priv A pointer to moal_private structure
@@ -1035,7 +1035,7 @@ woal_set_get_tx_power(moal_private * priv,
return ret;
}
-/**
+/**
* @brief Set/Get IEEE power management
*
* @param priv A pointer to moal_private structure
@@ -1094,7 +1094,7 @@ woal_set_get_power_mgmt(moal_private * priv,
*disabled = pm_cfg->param.ps_mode;
#ifdef STA_CFG80211
- /* If set is invoked from other than iw i.e iwconfig, wiphy IEEE power save
+ /* If set is invoked from other than iw i.e iwconfig, wiphy IEEE power save
mode should be updated */
if (IS_STA_CFG80211(cfg80211_wext) &&
(GET_BSS_ROLE(priv) == MLAN_BSS_ROLE_STA) && (action == MLAN_ACT_SET)) {
@@ -1115,10 +1115,10 @@ woal_set_get_power_mgmt(moal_private * priv,
/**
* @brief Set region code
- *
+ *
* @param priv A pointer to moal_private structure
* @param region A pointer to region string
- *
+ *
* @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING --success, otherwise fail
*/
mlan_status
@@ -1148,14 +1148,14 @@ woal_set_region_code(moal_private * priv, char *region)
return ret;
}
-/**
+/**
* @brief Set/Get data rate
*
* @param priv A pointer to moal_private structure
* @param action Action set or get
* @param datarate A pointer to mlan_rate_cfg_t structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_get_data_rate(moal_private * priv,
@@ -1197,14 +1197,14 @@ woal_set_get_data_rate(moal_private * priv,
}
#endif
-/**
+/**
* @brief Send get FW info request to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param fw_info FW information
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_request_get_fw_info(moal_private * priv, t_u8 wait_option,
@@ -1256,14 +1256,14 @@ woal_request_get_fw_info(moal_private * priv, t_u8 wait_option,
}
#ifdef PROC_DEBUG
-/**
+/**
* @brief Get debug info
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param debug_info A pointer to mlan_debug_info structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_debug_info(moal_private * priv, t_u8 wait_option,
@@ -1303,14 +1303,14 @@ woal_get_debug_info(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Set debug info
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param debug_info A pointer to mlan_debug_info structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_debug_info(moal_private * priv, t_u8 wait_option,
@@ -1354,9 +1354,9 @@ woal_set_debug_info(moal_private * priv, t_u8 wait_option,
#endif /* PROC_DEBUG */
#if defined(STA_WEXT) || defined(UAP_WEXT)
-/**
+/**
* @brief host command ioctl function
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
* @return 0 --success, otherwise fail
@@ -1434,9 +1434,9 @@ woal_host_command(moal_private * priv, struct iwreq *wrq)
#endif
#if defined(WIFI_DIRECT_SUPPORT) || defined(UAP_SUPPORT)
-/**
+/**
* @brief host command ioctl function
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1537,9 +1537,9 @@ woal_hostcmd_ioctl(struct net_device *dev, struct ifreq *req)
}
#endif
-/**
+/**
* @brief CUSTOM_IE ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1620,9 +1620,9 @@ woal_custom_ie_ioctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief send raw data packet ioctl function
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1695,9 +1695,9 @@ woal_send_host_packet(struct net_device *dev, struct ifreq *req)
}
#if defined(UAP_WEXT)
-/**
+/**
* @brief Set/Get CUSTOM_IE ioctl handler
- *
+ *
* @param mask Mask to set or clear from caller
* @param ie IE buffer to set for beacon
* @param ie_len Length of the IE
@@ -1750,9 +1750,9 @@ woal_set_get_custom_ie(moal_private * priv, t_u16 mask, t_u8 * ie, int ie_len)
}
#endif /* defined(HOST_TXRX_MGMT_FRAME) && defined(UAP_WEXT) */
-/**
+/**
* @brief ioctl function get BSS type
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1781,10 +1781,10 @@ woal_get_bss_type(struct net_device *dev, struct ifreq *req)
#if defined(STA_WEXT) || defined(UAP_WEXT)
/**
* @brief Set/Get BSS role
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
int
@@ -1918,7 +1918,7 @@ woal_set_get_bss_role(moal_private * priv, struct iwreq *wrq)
#endif
#endif /* WIFI_DIRECT_SUPPORT && V14_FEATURE */
-/**
+/**
* @brief Get Host Sleep parameters
*
* @param priv A pointer to moal_private structure
@@ -1926,7 +1926,7 @@ woal_set_get_bss_role(moal_private * priv, struct iwreq *wrq)
* @param wait_option Wait option (MOAL_WAIT or MOAL_NO_WAIT)
* @param hscfg A pointer to mlan_ds_hs_cfg structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_get_hs_params(moal_private * priv, t_u16 action, t_u8 wait_option,
@@ -1974,7 +1974,7 @@ woal_set_get_hs_params(moal_private * priv, t_u16 action, t_u8 wait_option,
* @param wait_option wait option
*
* @return MLAN_STATUS_SUCCESS, MLAN_STATUS_PENDING,
- * or MLAN_STATUS_FAILURE
+ * or MLAN_STATUS_FAILURE
*/
mlan_status
woal_cancel_hs(moal_private * priv, t_u8 wait_option)
@@ -1994,7 +1994,7 @@ woal_cancel_hs(moal_private * priv, t_u8 wait_option)
}
/** @brief This function enables the host sleep
- *
+ *
* @param priv A Pointer to the moal_private structure
* @return MTRUE or MFALSE
*/
@@ -2075,9 +2075,9 @@ woal_enable_hs(moal_private * priv)
return hs_actived;
}
-/**
- * @brief This function send soft_reset command to firmware
- *
+/**
+ * @brief This function send soft_reset command to firmware
+ *
* @param handle A pointer to moal_handle structure
* @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING on success, otherwise failure code
*/
@@ -2108,14 +2108,14 @@ woal_request_soft_reset(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief Set wapi enable
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param enable MTRUE or MFALSE
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_wapi_enable(moal_private * priv, t_u8 wait_option, t_u32 enable)
@@ -2149,9 +2149,9 @@ woal_set_wapi_enable(moal_private * priv, t_u8 wait_option, t_u32 enable)
return status;
}
-/**
- * @brief Get version
- *
+/**
+ * @brief Get version
+ *
* @param handle A pointer to moal_handle structure
* @param version A pointer to version buffer
* @param max_len max length of version buffer
@@ -2218,7 +2218,7 @@ woal_get_driver_version(moal_private * priv, struct ifreq *req)
* @param priv A pointer to moal_private structure
* @param ireq A pointer to ifreq structure
*
- * @return 0 --success, otherwise fail
+ * @return 0 --success, otherwise fail
*/
int
woal_get_driver_verext(moal_private * priv, struct ifreq *ireq)
@@ -2293,7 +2293,7 @@ woal_get_driver_verext(moal_private * priv, struct ifreq *ireq)
* @param priv A pointer to moal_private structure
* @param drvdbg Driver debug level
*
- * @return 0 --success, otherwise fail
+ * @return 0 --success, otherwise fail
*/
int
woal_set_drvdbg(moal_private * priv, t_u32 drvdbg)
@@ -2334,7 +2334,7 @@ woal_set_drvdbg(moal_private * priv, t_u32 drvdbg)
* @param pmgmt_subtype_mask A Pointer to mgmt frame subtype mask
* @param wait_option wait option (MOAL_WAIT or MOAL_NO_WAIT)
*
- * @return 0 --success, otherwise fail
+ * @return 0 --success, otherwise fail
*/
int
woal_reg_rx_mgmt_ind(moal_private * priv, t_u16 action,
@@ -2374,14 +2374,14 @@ woal_reg_rx_mgmt_ind(moal_private * priv, t_u16 action,
return ret;
}
-/**
+/**
* @brief Set/Get Transmit beamforming configuration
*
* @param priv A pointer to moal_private structure
* @param action Action: set or get
* @param tx_bf_cfg A pointer to tx_bf_cfg structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_get_tx_bf_cfg(moal_private * priv, t_u16 action,
@@ -2428,9 +2428,9 @@ woal_set_get_tx_bf_cfg(moal_private * priv, t_u16 action,
return ret;
}
-/**
- * @brief Handle ioctl resp
- *
+/**
+ * @brief Handle ioctl resp
+ *
* @param priv Pointer to moal_private structure
* @param req Pointer to mlan_ioctl_req structure
*
@@ -2479,13 +2479,13 @@ woal_process_ioctl_resp(moal_private * priv, mlan_ioctl_req * req)
return;
}
-/**
+/**
* @brief Get PM info
*
* @param priv A pointer to moal_private structure
* @param pm_info A pointer to mlan_ds_ps_info structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_pm_info(moal_private * priv, mlan_ds_ps_info * pm_info)
@@ -2582,7 +2582,7 @@ woal_set_deep_sleep(moal_private * priv, t_u8 wait_option, BOOLEAN bdeep_sleep,
return ret;
}
-/**
+/**
* @brief Cancel CAC period block
*
* @param priv A pointer to moal_private structure
@@ -2655,14 +2655,14 @@ woal_11h_channel_check_ioctl(moal_private * priv)
}
#if defined(WIFI_DIRECT_SUPPORT)
-/**
- * @brief set/get wifi direct mode
+/**
+ * @brief set/get wifi direct mode
*
* @param priv A pointer to moal_private structure
* @param action set or get
* @param mode A pointer to wifi direct mode
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_cfg80211_wifi_direct_mode_cfg(moal_private * priv, t_u16 action,
@@ -2697,14 +2697,14 @@ woal_cfg80211_wifi_direct_mode_cfg(moal_private * priv, t_u16 action,
return ret;
}
-/**
- * @brief set remain channel
+/**
+ * @brief set remain channel
*
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param pchan A pointer to mlan_ds_remain_chan structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_remain_channel_ioctl(moal_private * priv, t_u8 wait_option,
@@ -2740,14 +2740,14 @@ woal_set_remain_channel_ioctl(moal_private * priv, t_u8 wait_option,
#endif /* WIFI_DIRECT_SUPPORT */
#ifdef STA_SUPPORT
-/**
+/**
* @brief Get RSSI info
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param signal A pointer tp mlan_ds_get_signal structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_signal_info(moal_private * priv, t_u8 wait_option,
@@ -2794,7 +2794,7 @@ woal_get_signal_info(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Get scan table
*
* @param priv A pointer to moal_private structure
@@ -2843,14 +2843,14 @@ woal_get_scan_table(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Request a scan
*
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param req_ssid A pointer to mlan_802_11_ssid structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_request_scan(moal_private * priv,
@@ -2916,11 +2916,11 @@ woal_request_scan(moal_private * priv,
return ret;
}
-/**
+/**
* @brief Change Adhoc Channel
- *
+ *
* @param priv A pointer to moal_private structure
- * @param channel The channel to be set.
+ * @param channel The channel to be set.
*
* @return MLAN_STATUS_SUCCESS--success, MLAN_STATUS_FAILURE--fail
*/
@@ -3011,14 +3011,14 @@ woal_change_adhoc_chan(moal_private * priv, int channel)
return ret;
}
-/**
+/**
* @brief Find the best network to associate
*
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param ssid_bssid A pointer to mlan_ssid_bssid structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_find_best_network(moal_private * priv, t_u8 wait_option,
@@ -3069,14 +3069,14 @@ woal_find_best_network(moal_private * priv, t_u8 wait_option,
return ret;
}
-/**
+/**
* @brief Get authentication mode
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param auth_mode A pointer to authentication mode
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_auth_mode(moal_private * priv, t_u8 wait_option, t_u32 * auth_mode)
@@ -3112,14 +3112,14 @@ woal_get_auth_mode(moal_private * priv, t_u8 wait_option, t_u32 * auth_mode)
return status;
}
-/**
+/**
* @brief Get encrypt mode
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param encrypt_mode A pointer to encrypt mode
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_encrypt_mode(moal_private * priv, t_u8 wait_option,
@@ -3157,14 +3157,14 @@ woal_get_encrypt_mode(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Get WPA enable
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param enable A pointer to wpa enable status
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_wpa_enable(moal_private * priv, t_u8 wait_option, t_u32 * enable)
@@ -3201,14 +3201,14 @@ woal_get_wpa_enable(moal_private * priv, t_u8 wait_option, t_u32 * enable)
return status;
}
-/**
+/**
* @brief Set authentication mode
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param auth_mode Authentication mode
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_auth_mode(moal_private * priv, t_u8 wait_option, t_u32 auth_mode)
@@ -3242,14 +3242,14 @@ woal_set_auth_mode(moal_private * priv, t_u8 wait_option, t_u32 auth_mode)
return status;
}
-/**
+/**
* @brief Set encrypt mode
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param encrypt_mode Encryption mode
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_encrypt_mode(moal_private * priv, t_u8 wait_option, t_u32 encrypt_mode)
@@ -3283,14 +3283,14 @@ woal_set_encrypt_mode(moal_private * priv, t_u8 wait_option, t_u32 encrypt_mode)
return status;
}
-/**
+/**
* @brief Set wpa enable
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param enable MTRUE or MFALSE
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_wpa_enable(moal_private * priv, t_u8 wait_option, t_u32 enable)
@@ -3324,13 +3324,13 @@ woal_set_wpa_enable(moal_private * priv, t_u8 wait_option, t_u32 enable)
return status;
}
-/**
- * @brief enable wep key
- *
+/**
+ * @brief enable wep key
+ *
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_enable_wep_key(moal_private * priv, t_u8 wait_option)
@@ -3366,14 +3366,14 @@ woal_enable_wep_key(moal_private * priv, t_u8 wait_option)
return status;
}
-/**
+/**
* @brief Request user scan
*
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param scan_cfg A pointer to wlan_user_scan_config structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_request_userscan(moal_private * priv,
@@ -3427,14 +3427,14 @@ woal_request_userscan(moal_private * priv,
return ret;
}
-/**
- * @brief set scan time
+/**
+ * @brief set scan time
*
* @param priv A pointer to moal_private structure
* @param passive_scan_time passive scan time
* @param specific_scan_time specific scan time
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
static mlan_status
woal_set_scan_time(moal_private * priv, t_u16 passive_scan_time,
@@ -3467,13 +3467,13 @@ woal_set_scan_time(moal_private * priv, t_u16 passive_scan_time,
return ret;
}
-/**
+/**
* @brief request scan
*
* @param priv A pointer to moal_private structure
* @param scan_cfg A pointer to wlan_user_scan_cfg structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_do_scan(moal_private * priv, wlan_user_scan_cfg * scan_cfg)
@@ -3539,14 +3539,14 @@ woal_find_essid(moal_private * priv, mlan_ssid_bssid * ssid_bssid)
return ret;
}
-/**
+/**
* @brief Request user scan
*
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
* @param scan_cfg A pointer to wlan_bgscan_cfg structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_request_bgscan(moal_private * priv,
@@ -3588,14 +3588,14 @@ woal_request_bgscan(moal_private * priv,
return ret;
}
-/**
+/**
* @brief set bgscan config
*
* @param priv A pointer to moal_private structure
* @param buf A pointer to scan command buf
* @param length buf length
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_bg_scan(moal_private * priv, char *buf, int length)
@@ -3678,12 +3678,12 @@ woal_set_bg_scan(moal_private * priv, char *buf, int length)
return ret;
}
-/**
+/**
* @brief stop bg scan
*
* @param priv A pointer to moal_private structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_stop_bg_scan(moal_private * priv)
@@ -3699,12 +3699,12 @@ woal_stop_bg_scan(moal_private * priv)
LEAVE();
}
-/**
+/**
* @brief set bgscan config
*
* @param handle A pointer to moal_handle structure
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
void
woal_reconfig_bgscan(moal_handle * handle)
@@ -3724,13 +3724,13 @@ woal_reconfig_bgscan(moal_handle * handle)
}
}
-/**
- * @brief set rssi low threshold
+/**
+ * @brief set rssi low threshold
*
* @param priv A pointer to moal_private structure
* @param scan_type MLAN_SCAN_TYPE_ACTIVE/MLAN_SCAN_TYPE_PASSIVE
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_rssi_low_threshold(moal_private * priv, char *rssi)
@@ -3771,13 +3771,13 @@ woal_set_rssi_low_threshold(moal_private * priv, char *rssi)
return ret;
}
-/**
- * @brief Get power mode
- *
+/**
+ * @brief Get power mode
+ *
* @param priv A pointer to moal_private structure
* @param powermode A pointer to powermode buf
- *
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ *
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_get_powermode(moal_private * priv, int *powermode)
@@ -3803,13 +3803,13 @@ woal_get_powermode(moal_private * priv, int *powermode)
return ret;
}
-/**
- * @brief set scan type
+/**
+ * @brief set scan type
*
* @param priv A pointer to moal_private structure
* @param scan_type MLAN_SCAN_TYPE_ACTIVE/MLAN_SCAN_TYPE_PASSIVE
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_scan_type(moal_private * priv, t_u32 scan_type)
@@ -3841,13 +3841,13 @@ woal_set_scan_type(moal_private * priv, t_u32 scan_type)
return ret;
}
-/**
+/**
* @brief set power mode
*
* @param priv A pointer to moal_private structure
* @param powermode A pointer to powermode string.
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_powermode(moal_private * priv, char *powermode)
@@ -3878,14 +3878,14 @@ woal_set_powermode(moal_private * priv, char *powermode)
return ret;
}
-/**
+/**
* @brief set combo scan
*
* @param priv A pointer to moal_private structure
* @param buf A pointer to scan command buf
* @param length buf length
*
- * @return 0 -- success, otherwise fail
+ * @return 0 -- success, otherwise fail
*/
int
woal_set_combo_scan(moal_private * priv, char *buf, int length)
@@ -3999,13 +3999,13 @@ woal_set_combo_scan(moal_private * priv, char *buf, int length)
return ret;
}
-/**
- * @brief Get band
- *
+/**
+ * @brief Get band
+ *
* @param priv A pointer to moal_private structure
* @param band A pointer to band buf
- *
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ *
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_get_band(moal_private * priv, int *band)
@@ -4046,13 +4046,13 @@ woal_get_band(moal_private * priv, int *band)
return ret;
}
-/**
+/**
* @brief set band
*
* @param priv A pointer to moal_private structure
* @param pband A pointer to band string.
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_band(moal_private * priv, char *pband)
@@ -4138,20 +4138,20 @@ woal_set_band(moal_private * priv, char *pband)
return ret;
}
-/**
+/**
* @brief Add RX Filter
*
* @param priv A pointer to moal_private structure
* @param rxfilter A pointer to rxfilter string.
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_add_rxfilter(moal_private * priv, char *rxfilter)
{
mlan_status ret = MLAN_STATUS_SUCCESS;
ENTER();
- /* Android command: "DRIVER RXFILTER-ADD 0" "DRIVER RXFILTER-ADD 1" "DRIVER
+ /* Android command: "DRIVER RXFILTER-ADD 0" "DRIVER RXFILTER-ADD 1" "DRIVER
RXFILTER-ADD 3" */
if (*rxfilter == '0') {
PRINTM(MIOCTL, "Add IPV4 multicast filter\n");
@@ -4175,13 +4175,13 @@ woal_add_rxfilter(moal_private * priv, char *rxfilter)
return ret;
}
-/**
+/**
* @brief Remove RX Filter
*
* @param priv A pointer to moal_private structure
* @param rxfilter A pointer to rxfilter string.
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_remove_rxfilter(moal_private * priv, char *rxfilter)
@@ -4212,11 +4212,11 @@ woal_remove_rxfilter(moal_private * priv, char *rxfilter)
/**
* @brief Set QoS configuration
- *
+ *
* @param priv A pointer to moal_private structure
* @param qos_cfg A pointer to QoS configuration structure
- *
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ *
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
mlan_status
woal_set_qos_cfg(moal_private * priv, char *qos_cfg)
@@ -4253,11 +4253,11 @@ woal_set_qos_cfg(moal_private * priv, char *qos_cfg)
/**
* @brief Set sleep period
- *
+ *
* @param priv A pointer to moal_private structure
* @param psleeppd A pointer to sleep period configuration structure
- *
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ *
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
int
woal_set_sleeppd(moal_private * priv, char *psleeppd)
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_main.c b/drivers/net/wireless/sd8797/mlinux/moal_main.c
index 820c1267cc78..47c3252483a4 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_main.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_main.c
@@ -182,7 +182,7 @@ int drv_mode = DRV_MODE_UAP;
/** Semaphore for add/remove card */
struct semaphore AddRemoveCardSem;
/**
- * the maximum number of adapter supported
+ * the maximum number of adapter supported
**/
#define MAX_MLAN_ADAPTER 2
/**
@@ -359,9 +359,9 @@ woal_update_drv_tbl(moal_handle * handle, int drv_mode_local)
return ret;
}
-/**
+/**
* @brief This function initializes software
- *
+ *
* @param handle A pointer to moal_handle structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -498,9 +498,9 @@ woal_init_sw(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief This function frees the structure of moal_handle
- *
+ *
* @param handle A pointer to moal_handle structure
*
* @return N/A
@@ -545,7 +545,7 @@ woal_free_moal_handle(moal_handle * handle)
/**
* @brief WOAL get one line data from ASCII format data
- *
+ *
* @param data Source data
* @param size Source data length
* @param line_pos Destination data
@@ -582,7 +582,7 @@ parse_cfg_get_line(t_u8 * data, t_size size, t_u8 * line_pos)
return strlen(line_pos);
}
-/**
+/**
* @brief Process register access request
* @param type_string String format Register type
* @param offset_string String format Register offset
@@ -650,7 +650,7 @@ woal_process_regrdwr(moal_handle * handle, t_u8 * type_string,
/**
* @brief WOAL parse ASCII format data to MAC address
- *
+ *
* @param handle MOAL handle
* @param data Source data
* @param size data length
@@ -791,7 +791,7 @@ woal_process_init_cfg(moal_handle * handle, t_u8 * data, t_size size)
/**
* @brief WOAL set user defined init data and param
- *
+ *
* @param handle MOAL handle structure
* @return MLAN_STATUS_SUCCESS--success, otherwise--fail
*/
@@ -828,9 +828,9 @@ woal_set_user_init_data(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief Add interfaces DPC
- *
+ *
* @param handle A pointer to moal_handle structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -880,9 +880,9 @@ woal_add_card_dpc(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief Download and Initialize firmware DPC
- *
+ *
* @param handle A pointer to moal_handle structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -961,9 +961,9 @@ woal_init_fw_dpc(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief Request firmware DPC
- *
+ *
* @param handle A pointer to moal_handle structure
* @param firmware A pointer to firmware image
*
@@ -1005,10 +1005,10 @@ woal_request_fw_dpc(moal_handle * handle, const struct firmware *firmware)
return ret;
}
-/**
+/**
* @brief Request firmware callback
* This function is invoked by request_firmware_nowait system call
- *
+ *
* @param firmware A pointer to firmware image
* @param context A pointer to moal_handle structure
*
@@ -1027,9 +1027,9 @@ woal_request_fw_callback(const struct firmware *firmware, void *context)
return;
}
-/**
+/**
* @brief Download firmware using helper
- *
+ *
* @param handle A pointer to moal_handle structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1104,9 +1104,9 @@ woal_request_fw(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief This function initializes firmware
- *
+ *
* @param handle A pointer to moal_handle structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1129,11 +1129,11 @@ woal_init_fw(moal_handle * handle)
return ret;
}
-/**
+/**
* @brief This function will fill in the mlan_buffer
- *
+ *
* @param pmbuf A pointer to mlan_buffer
- * @param skb A pointer to struct sk_buff
+ * @param skb A pointer to struct sk_buff
*
* @return N/A
*/
@@ -1169,7 +1169,7 @@ woal_fill_mlan_buffer(moal_private * priv,
skb->priority = tid;
/* Record the current time the packet was queued; used to determine the
- amount of time the packet was queued in the driver before it was sent to
+ amount of time the packet was queued in the driver before it was sent to
the firmware. The delay is then sent along with the packet to the
firmware for aggregate delay calculation for stats and MSDU lifetime
expiry. */
@@ -1222,13 +1222,13 @@ const struct net_device_ops woal_netdev_ops = {
#endif
/**
- * @brief This function initializes the private structure
- * and dev structure for station mode
- *
+ * @brief This function initializes the private structure
+ * and dev structure for station mode
+ *
* @param dev A pointer to net_device structure
* @param priv A pointer to moal_private structure
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
static mlan_status
woal_init_sta_dev(struct net_device *dev, moal_private * priv)
@@ -1299,9 +1299,9 @@ const struct net_device_ops woal_uap_netdev_ops = {
#endif
/**
- * @brief This function initializes the private structure
- * and dev structure for uap mode
- *
+ * @brief This function initializes the private structure
+ * and dev structure for uap mode
+ *
* @param dev A pointer to net_device structure
* @param priv A pointer to moal_private structure
*
@@ -1358,8 +1358,8 @@ woal_init_uap_dev(struct net_device *dev, moal_private * priv)
/**
* @brief This function adds a new interface. It will
- * allocate, initialize and register the device.
- *
+ * allocate, initialize and register the device.
+ *
* @param handle A pointer to moal_handle structure
* @param bss_index BSS index number
* @param bss_type BSS type
@@ -1532,9 +1532,9 @@ woal_add_interface(moal_handle * handle, t_u8 bss_index, t_u8 bss_type)
return NULL;
}
-/**
+/**
* @brief This function removes an interface.
- *
+ *
* @param handle A pointer to the moal_handle structure
* @param bss_index BSS index number
*
@@ -1605,9 +1605,9 @@ woal_remove_interface(moal_handle * handle, t_u8 bss_index)
return;
}
-/**
+/**
* @brief Send FW shutdown command to MLAN
- *
+ *
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
*
@@ -1647,7 +1647,7 @@ woal_shutdown_fw(moal_private * priv, t_u8 wait_option)
return status;
}
-/**
+/**
* @brief Return hex value of a give character
*
* @param chr Character to be converted
@@ -1673,7 +1673,7 @@ woal_hexval(char chr)
/**
* @brief This function cancel all works in the queue
* and destroy the main workqueue.
- *
+ *
* @param handle A pointer to moal_handle
*
* @return N/A
@@ -1811,7 +1811,7 @@ wifi_add_dev(void)
/**
* @brief Removes an wifi device
- *
+ *
* @return N/A
*/
static void
@@ -1829,9 +1829,9 @@ wifi_del_dev(void)
Global Functions
********************************************************/
-/**
+/**
* @brief This function opens the network device
- *
+ *
* @param dev A pointer to net_device structure
*
* @return 0 --success, otherwise fail
@@ -1870,9 +1870,9 @@ woal_open(struct net_device *dev)
return 0;
}
-/**
+/**
* @brief This function closes the network device
- *
+ *
* @param dev A pointer to net_device structure
*
* @return 0
@@ -1892,9 +1892,9 @@ woal_close(struct net_device *dev)
return 0;
}
-/**
+/**
* @brief This function sets the MAC address to firmware.
- *
+ *
* @param dev A pointer to mlan_private structure
* @param addr MAC address to set
*
@@ -2024,10 +2024,10 @@ woal_mlan_debug_info(moal_private * priv)
LEAVE();
}
-/**
+/**
* @brief This function handles the timeout of packet
* transmission
- *
+ *
* @param dev A pointer to net_device structure
*
* @return N/A
@@ -2052,9 +2052,9 @@ woal_tx_timeout(struct net_device *dev)
LEAVE();
}
-/**
+/**
* @brief This function returns the network statistics
- *
+ *
* @param dev A pointer to net_device structure
*
* @return A pointer to net_device_stats structure
@@ -2067,9 +2067,9 @@ woal_get_stats(struct net_device *dev)
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)
-/**
+/**
* @brief This function handles wmm queue select
- *
+ *
* @param dev A pointer to net_device structure
* @param skb A pointer to sk_buff structure
*
@@ -2108,9 +2108,9 @@ woal_select_queue(struct net_device * dev, struct sk_buff * skb)
}
#endif
-/**
+/**
* @brief This function handles packet transmission
- *
+ *
* @param skb A pointer to sk_buff structure
* @param dev A pointer to net_device structure
*
@@ -2189,14 +2189,14 @@ woal_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
return 0;
}
-/**
+/**
* @brief Convert ascii string to Hex integer
- *
+ *
* @param d A pointer to integer buf
- * @param s A pointer to ascii string
+ * @param s A pointer to ascii string
* @param dlen The byte number of ascii string in hex
*
- * @return Number of integer
+ * @return Number of integer
*/
int
woal_ascii2hex(t_u8 * d, char *s, t_u32 dlen)
@@ -2285,7 +2285,7 @@ woal_atox(char *a)
return i;
}
-/**
+/**
* @brief Extension of strsep lib command. This function will also take care
* escape character
*
@@ -2309,7 +2309,7 @@ woal_strsep(char **s, char delim, char esc)
for (sb = *s; *sb != '\0'; ++sb) {
if (*sb == esc && *(sb + 1) == esc) {
- /*
+ /*
* We get a esc + esc seq then keep the one esc
* and chop off the other esc character
*/
@@ -2317,7 +2317,7 @@ woal_strsep(char **s, char delim, char esc)
continue;
}
if (*sb == esc && *(sb + 1) == delim) {
- /*
+ /*
* We get a delim + esc seq then keep the delim
* and chop off the esc character
*/
@@ -2342,8 +2342,8 @@ woal_strsep(char **s, char delim, char esc)
/**
* @brief Convert mac address from string to t_u8 buffer.
*
- * @param mac_addr The buffer to store the mac address in.
- * @param buf The source of mac address which is a string.
+ * @param mac_addr The buffer to store the mac address in.
+ * @param buf The source of mac address which is a string.
*
* @return N/A
*/
@@ -2365,9 +2365,9 @@ woal_mac2u8(t_u8 * mac_addr, char *buf)
}
#ifdef STA_SUPPORT
-/**
+/**
* @brief This function sets multicast addresses to firmware
- *
+ *
* @param dev A pointer to net_device structure
*
* @return N/A
@@ -2385,9 +2385,9 @@ woal_set_multicast_list(struct net_device *dev)
/**
* @brief This function initializes the private structure
* and set default value to the member of moal_private.
- *
+ *
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option
+ * @param wait_option Wait option
*
* @return N/A
*/
@@ -2440,7 +2440,7 @@ woal_init_priv(moal_private * priv, t_u8 wait_option)
}
/**
- * @brief Reset all interfaces if all_intf flag is TRUE,
+ * @brief Reset all interfaces if all_intf flag is TRUE,
* otherwise specified interface only
*
* @param priv A pointer to moal_private structure
@@ -2448,7 +2448,7 @@ woal_init_priv(moal_private * priv, t_u8 wait_option)
* @param all_intf TRUE : all interfaces
* FALSE : current interface only
*
- * @return MLAN_STATUS_SUCCESS --success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS --success, otherwise fail
*/
int
woal_reset_intf(moal_private * priv, t_u8 wait_option, int all_intf)
@@ -2553,9 +2553,9 @@ woal_reset_intf(moal_private * priv, t_u8 wait_option, int all_intf)
return ret;
}
-/**
- * @brief This function return the point to structure moal_private
- *
+/**
+ * @brief This function return the point to structure moal_private
+ *
* @param handle Pointer to structure moal_handle
* @param bss_index BSS index number
*
@@ -2582,9 +2582,9 @@ woal_bss_index_to_priv(moal_handle * handle, t_u8 bss_index)
return NULL;
}
-/**
+/**
* @brief This function alloc mlan_buffer.
- * @param handle A pointer to moal_handle structure
+ * @param handle A pointer to moal_handle structure
* @param size buffer size to allocate
*
* @return mlan_buffer pointer or NULL
@@ -2615,7 +2615,7 @@ woal_alloc_mlan_buffer(moal_handle * handle, int size)
return pmbuf;
}
-/**
+/**
* @brief This function alloc mlan_ioctl_req.
*
* @param size buffer size to allocate
@@ -2648,9 +2648,9 @@ woal_alloc_mlan_ioctl_req(int size)
return req;
}
-/**
+/**
* @brief This function frees mlan_buffer.
- * @param handle A pointer to moal_handle structure
+ * @param handle A pointer to moal_handle structure
* @param pmbuf Pointer to mlan_buffer
*
* @return N/A
@@ -2674,9 +2674,9 @@ woal_free_mlan_buffer(moal_handle * handle, pmlan_buffer pmbuf)
#ifdef STA_WEXT
#endif
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param priv A pointer to moal_private structure
* @param payload A pointer to payload buffer
* @param len Length of the payload
@@ -2941,10 +2941,10 @@ woal_reassociation_thread(void *data)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function triggers re-association by waking up
* re-assoc thread.
- *
+ *
* @param context A pointer to context
* @return N/A
*/
@@ -2967,9 +2967,9 @@ woal_reassoc_timer_func(void *context)
#endif /* REASSOCIATION */
#ifdef STA_SUPPORT
-/**
+/**
* @brief Sends disconnect event
- *
+ *
* @param priv A pointer to moal_private struct
* @return N/A
*/
@@ -2998,7 +2998,7 @@ woal_send_disconnect_to_system(moal_private * priv)
/**
* @brief This function reads and displays SDIO registers for debugging
- *
+ *
* @param phandle A pointer to moal_handle
*
* @return N/A
@@ -3071,7 +3071,7 @@ woal_sdio_reg_dbg(moal_handle * phandle)
/**
* @brief This function displays extra MOAL debug information
- *
+ *
* @param priv A pointer to moal_private
* @param handle A pointer to moal_handle
* @param flag Indicates whether register read can be done directly
@@ -3149,7 +3149,7 @@ woal_moal_debug_info(moal_private * priv, moal_handle * handle, u8 flag)
/**
* @brief This workqueue function handles main_process
- *
+ *
* @param work A pointer to work_struct
*
* @return N/A
@@ -3186,9 +3186,9 @@ woal_main_work_queue(struct work_struct * work)
/**
* @brief Handles interrupt
- *
+ *
* @param handle A pointer to moal_handle struct
- *
+ *
* @return N/A
*/
void
@@ -3212,8 +3212,8 @@ woal_interrupt(moal_handle * handle)
/**
* @brief This function adds the card. it will probe the
- * card, allocate the mlan_private and initialize the device.
- *
+ * card, allocate the mlan_private and initialize the device.
+ *
* @param card A pointer to card
*
* @return A pointer to moal_handle structure
@@ -3387,9 +3387,9 @@ woal_add_card(void *card)
return NULL;
}
-/**
+/**
* @brief This function removes the card.
- *
+ *
* @param card A pointer to card
*
* @return MLAN_STATUS_SUCCESS
@@ -3491,9 +3491,9 @@ woal_remove_card(void *card)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function switch the drv_mode
- *
+ *
* @param handle A pointer to moal_handle structure
* @param mode new drv_mode to switch.
*
@@ -3579,9 +3579,9 @@ woal_switch_drv_mode(moal_handle * handle, t_u32 mode)
return status;
}
-/**
+/**
* @brief This function initializes module.
- *
+ *
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static int
@@ -3608,9 +3608,9 @@ woal_init_module(void)
return ret;
}
-/**
+/**
* @brief This function cleans module
- *
+ *
* @return N/A
*/
static void
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_main.h b/drivers/net/wireless/sd8797/mlinux/moal_main.h
index 0a753dabe488..cd1fdd8244c1 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_main.h
+++ b/drivers/net/wireless/sd8797/mlinux/moal_main.h
@@ -177,9 +177,9 @@ typedef struct _moal_drv_timer
t_u32 timer_is_canceled;
} moal_drv_timer, *pmoal_drv_timer;
-/**
+/**
* @brief Timer handler
- *
+ *
* @param fcontext Timer context
*
* @return N/A
@@ -199,9 +199,9 @@ woal_timer_handler(unsigned long fcontext)
}
}
-/**
+/**
* @brief Initialize timer
- *
+ *
* @param timer Timer structure
* @param TimerFunction Timer function
* @param FunctionContext Timer function context
@@ -226,9 +226,9 @@ woal_initialize_timer(pmoal_drv_timer timer,
timer->timer_is_periodic = MFALSE;
}
-/**
+/**
* @brief Modify timer
- *
+ *
* @param timer Timer structure
* @param MillisecondPeriod Time period in millisecond
*
@@ -242,9 +242,9 @@ woal_mod_timer(pmoal_drv_timer timer, t_u32 MillisecondPeriod)
timer->timer_is_canceled = MFALSE;
}
-/**
+/**
* @brief Cancel timer
- *
+ *
* @param timer Timer structure
*
* @return N/A
@@ -277,9 +277,9 @@ typedef struct _moal_thread
void *handle;
} moal_thread;
-/**
+/**
* @brief Activate thread
- *
+ *
* @param thr Thread structure
* @return N/A
*/
@@ -293,9 +293,9 @@ woal_activate_thread(moal_thread * thr)
thr->pid = current->pid;
}
-/**
+/**
* @brief De-activate thread
- *
+ *
* @param thr Thread structure
* @return N/A
*/
@@ -306,7 +306,7 @@ woal_deactivate_thread(moal_thread * thr)
thr->pid = 0;
}
-/**
+/**
* @brief Create and run the thread
*
* @param threadfunc Thread function
@@ -345,9 +345,9 @@ woal_create_thread(int (*threadfunc) (void *), moal_thread * thr, char *name)
#define MLAN_DELAYED_CONTAINER_OF(_ptr, _type, _m) container_of(_ptr, _type, _m.work)
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) */
-/**
+/**
* @brief Schedule timeout
- *
+ *
* @param millisec Timeout duration in milli second
*
* @return N/A
@@ -487,10 +487,10 @@ in4_pton(const char *src, int srclen, u8 * dst, int delim, const char **end)
#define MRVDRV_DEFAULT_WATCHDOG_TIMEOUT (5 * HZ)
#ifdef UAP_SUPPORT
-/** Default watchdog timeout
- Increase the value to avoid kernel Tx timeout message in case
+/** Default watchdog timeout
+ Increase the value to avoid kernel Tx timeout message in case
station in PS mode or left.
- The default value of PS station ageout timer is 40 seconds.
+ The default value of PS station ageout timer is 40 seconds.
Hence, the watchdog timer is set to a value higher than it.
*/
#define MRVDRV_DEFAULT_UAP_WATCHDOG_TIMEOUT (41 * HZ)
@@ -929,9 +929,9 @@ struct _moal_handle
#endif
};
-/**
- * @brief set trans_start for each TX queue.
- *
+/**
+ * @brief set trans_start for each TX queue.
+ *
* @param dev A pointer to net_device structure
*
* @return N/A
@@ -948,9 +948,9 @@ woal_set_trans_start(struct net_device *dev)
dev->trans_start = jiffies;
}
-/**
+/**
* @brief Start queue
- *
+ *
* @param dev A pointer to net_device structure
*
* @return N/A
@@ -965,9 +965,9 @@ woal_start_queue(struct net_device *dev)
#endif
}
-/**
+/**
* @brief Stop queue
- *
+ *
* @param dev A pointer to net_device structure
*
* @return N/A
@@ -990,9 +990,9 @@ woal_stop_queue(struct net_device *dev)
#endif
}
-/**
+/**
* @brief wake queue
- *
+ *
* @param dev A pointer to net_device structure
*
* @return N/A
@@ -1143,10 +1143,10 @@ hexdump(char *prompt, t_u8 * buf, int len)
#define woal_cpu_to_le64(x) x
#endif
-/**
+/**
* @brief This function returns first available priv
* based on the BSS role
- *
+ *
* @param handle A pointer to moal_handle
* @param bss_role BSS role or MLAN_BSS_ROLE_ANY
*
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_priv.c b/drivers/net/wireless/sd8797/mlinux/moal_priv.c
index dc5cd82b7f44..e3e4b844e11b 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_priv.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_priv.c
@@ -63,15 +63,15 @@ extern int cfg80211_wext;
Local Functions
********************************************************/
-/**
+/**
* @brief Copy Rates
- *
+ *
* @param dest A pointer to destination buffer
* @param pos The position for copy
* @param src A pointer to source buffer
* @param len Length of the source buffer
*
- * @return Number of rates copied
+ * @return Number of rates copied
*/
static inline int
woal_copy_rates(t_u8 * dest, int pos, t_u8 * src, int len)
@@ -91,7 +91,7 @@ woal_copy_rates(t_u8 * dest, int pos, t_u8 * src, int len)
*
* @param priv A pointer to moal_private structure
*
- * @return 0/MLAN_STATUS_SUCCESS --success, otherwise fail
+ * @return 0/MLAN_STATUS_SUCCESS --success, otherwise fail
*/
static int
woal_warm_reset(moal_private * priv)
@@ -1525,7 +1525,7 @@ woal_band_cfg(moal_private * priv, struct iwreq *wrq)
}
/**
- * @brief Read/Write adapter registers value
+ * @brief Read/Write adapter registers value
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
@@ -1596,7 +1596,7 @@ woal_reg_read_write(moal_private * priv, struct iwreq *wrq)
}
/**
- * @brief Read the EEPROM contents of the card
+ * @brief Read the EEPROM contents of the card
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
@@ -1665,7 +1665,7 @@ woal_read_eeprom(moal_private * priv, struct iwreq *wrq)
}
/**
- * @brief Read/Write device memory value
+ * @brief Read/Write device memory value
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
@@ -1855,10 +1855,10 @@ woal_deauth(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get TX power configurations
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -1981,10 +1981,10 @@ woal_tx_power_cfg(moal_private * priv, struct iwreq *wrq)
/**
* @brief Get Tx/Rx data rates
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2027,10 +2027,10 @@ woal_get_txrx_rate(moal_private * priv, struct iwreq *wrq)
/**
* @brief Turn on/off the sdio clock
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0/MLAN_STATUS_SUCCESS --success, otherwise fail
*/
static int
@@ -2082,10 +2082,10 @@ woal_sdio_clock_ioctl(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get beacon interval
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2147,10 +2147,10 @@ woal_beacon_interval(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get ATIM window
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2210,10 +2210,10 @@ woal_atim_window(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get TX data rate
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2284,10 +2284,10 @@ woal_set_get_txrate(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get region code
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2344,10 +2344,10 @@ woal_set_get_regioncode(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get radio
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2387,7 +2387,7 @@ woal_set_get_radio(moal_private * priv, struct iwreq *wrq)
}
#ifdef DEBUG_LEVEL1
-/**
+/**
* @brief Get/Set the bit mask of driver debug message control
*
* @param priv A pointer to moal_private structure
@@ -2464,10 +2464,10 @@ woal_drv_dbg(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get QoS configuration
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2518,10 +2518,10 @@ woal_set_get_qos_cfg(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get WWS mode
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2576,10 +2576,10 @@ woal_wws_cfg(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get sleep period
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -2645,7 +2645,7 @@ woal_sleep_pd(moal_private * priv, struct iwreq *wrq)
* @param priv A pointer to moal_private structure
* @param req A pointer to ifreq structure
*
- * @return 0 --success, otherwise fail
+ * @return 0 --success, otherwise fail
*/
static int
woal_sleep_params_ioctl(moal_private * priv, struct iwreq *wrq)
@@ -2749,9 +2749,9 @@ woal_sleep_params_ioctl(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Set/get user provisioned local power constraint
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
* @return 0 --success, otherwise fail
@@ -2808,7 +2808,7 @@ woal_set_get_11h_local_pwr_constraint(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Set/get HT stream configurations
*
* @param priv A pointer to moal_private structure
@@ -2870,7 +2870,7 @@ woal_ht_stream_cfg_ioctl(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Set/get MAC control configuration
*
* @param priv A pointer to moal_private structure
@@ -2928,7 +2928,7 @@ woal_mac_control_ioctl(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Get thermal reading
*
* @param priv A pointer to moal_private structure
@@ -2984,10 +2984,10 @@ woal_thermal_ioctl(moal_private * priv, struct iwreq *wrq)
#if defined(REASSOCIATION)
/**
* @brief Set/Get reassociation settings
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -3433,10 +3433,10 @@ woal_passphrase(moal_private * priv, struct iwreq *wrq)
/**
* @brief Get esupp mode
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -3480,7 +3480,7 @@ woal_get_esupp_mode(moal_private * priv, struct iwreq *wrq)
/** AES key length */
#define AES_KEY_LEN 16
/**
- * @brief Adhoc AES control
+ * @brief Adhoc AES control
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to user data
@@ -3634,9 +3634,9 @@ woal_adhoc_aes_ioctl(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief arpfilter ioctl function
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
* @return 0 --success, otherwise fail
@@ -3681,9 +3681,9 @@ woal_arp_filter(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Set/get IP address
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
* @return 0 --success, otherwise fail
@@ -3769,13 +3769,13 @@ woal_set_get_ip_addr(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Set/Get Transmit beamforming capabilities
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
*
- * @return 0 -- success, otherwise fail
+ * @return 0 -- success, otherwise fail
*/
static int
woal_tx_bf_cap_ioctl(moal_private * priv, struct iwreq *wrq)
@@ -3847,13 +3847,13 @@ woal_tx_bf_cap_ioctl(moal_private * priv, struct iwreq *wrq)
#define BF_CFG_ACT_GET 0
#define BF_CFG_ACT_SET 1
-/**
+/**
* @brief Set/Get Transmit beamforming configuration
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
*
- * @return 0 -- success, otherwise fail
+ * @return 0 -- success, otherwise fail
*/
static int
woal_tx_bf_cfg_ioctl(moal_private * priv, struct iwreq *wrq)
@@ -3993,7 +3993,7 @@ woal_tx_bf_cfg_ioctl(moal_private * priv, struct iwreq *wrq)
}
break;
case TX_BF_FOR_PEER_ENBL:
- /* Handle only SET operation here First arg = 2 BfAction Second arg
+ /* Handle only SET operation here First arg = 2 BfAction Second arg
= 18 MAC "00:50:43:20:BF:64;" Third arg = 2 enable/disable bf
Fourth arg = 2 enable/disable sounding Fifth arg = 1 FB Type */
if (char_count != 25 && char_count != 1) {
@@ -4264,8 +4264,8 @@ wlan_scan_create_brief_table_entry(t_u8 ** ppbuffer,
LEAVE();
}
-/**
- * @brief Create a wlan_ioctl_get_scan_table_entry for a given BSS
+/**
+ * @brief Create a wlan_ioctl_get_scan_table_entry for a given BSS
* Descriptor for inclusion in the ioctl response to the user space
* application.
*
@@ -4273,7 +4273,7 @@ wlan_scan_create_brief_table_entry(t_u8 ** ppbuffer,
* @param pbss_desc Pointer to a BSS entry in the scan table to form
* scan response from for delivery to the application layer
* @param ppbuffer Output parameter: Buffer used to output scan return struct
- * @param pspace_left Output parameter: Number of bytes available in the
+ * @param pspace_left Output parameter: Number of bytes available in the
* response buffer.
*
* @return MLAN_STATUS_SUCCESS, or < 0 with IOCTL error code
@@ -4353,7 +4353,7 @@ wlan_get_scan_table_ret_entry(BSSDescriptor_t * pbss_desc,
tmp_rsp_entry.fixed_fields.network_tsf = pbss_desc->network_tsf;
tmp_rsp_entry.bss_info_length = variable_size;
- /*
+ /*
* Copy fixed fields to user space
*/
if (copy_to_user(pcurrent, &tmp_rsp_entry, fixed_size)) {
@@ -4365,7 +4365,7 @@ wlan_get_scan_table_ret_entry(BSSDescriptor_t * pbss_desc,
pcurrent += fixed_size;
if (pbss_desc->pbeacon_buf) {
- /*
+ /*
* Copy variable length elements to user space
*/
if (copy_to_user(pcurrent, pbss_desc->pbeacon_buf,
@@ -4462,19 +4462,19 @@ moal_ret_get_scan_table_ioctl(struct iwreq *wrq,
wrq->u.data.length = ret_len;
- /* Return ret_code (EFAULT or E2BIG) in the case where no scan results were
+ /* Return ret_code (EFAULT or E2BIG) in the case where no scan results were
successfully encoded. */
LEAVE();
return (num_scans_done ? MLAN_STATUS_SUCCESS : ret_code);
}
-/**
+/**
* @brief Get scan table ioctl
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
static mlan_status
woal_get_scan_table_ioctl(moal_private * priv, struct iwreq *wrq)
@@ -4524,13 +4524,13 @@ woal_get_scan_table_ioctl(moal_private * priv, struct iwreq *wrq)
return status;
}
-/**
+/**
* @brief Set user scan
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
static mlan_status
woal_set_user_scan_ioctl(moal_private * priv, struct iwreq *wrq)
@@ -4592,9 +4592,9 @@ woal_set_user_scan_ioctl(moal_private * priv, struct iwreq *wrq)
return status;
}
-/**
+/**
* @brief Cmd52 read/write register
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
* @return MLAN_STATUS_SUCCESS --success, otherwise fail
@@ -4681,9 +4681,9 @@ woal_cmd52rdwr_ioctl(moal_private * priv, struct iwreq *wrq)
return ret;
}
-/**
+/**
* @brief Cmd53 read/write register
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
* @return MLAN_STATUS_SUCCESS --success, otherwise fail
@@ -4789,10 +4789,10 @@ woal_cmd53rdwr_ioctl(moal_private * priv, struct iwreq *wrq)
#if defined(SDIO_MULTI_PORT_TX_AGGR) || defined(SDIO_MULTI_PORT_RX_AGGR)
/**
* @brief Set SDIO Multi-point aggregation control parameters
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0/MLAN_STATUS_PENDING --success, otherwise fail
*/
static int
@@ -4822,7 +4822,7 @@ woal_do_sdio_mpa_ctrl(moal_private * priv, struct iwreq *wrq)
misc->sub_command = MLAN_OID_MISC_SDIO_MPA_CTRL;
req->req_id = MLAN_IOCTL_MISC_CFG;
- /* Get the values first, then modify these values if user had modified them
+ /* Get the values first, then modify these values if user had modified them
*/
req->action = MLAN_ACT_GET;
@@ -4901,10 +4901,10 @@ woal_do_sdio_mpa_ctrl(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get scan configuration parameters
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -4989,10 +4989,10 @@ woal_set_get_scan_cfg(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get PS configuration parameters
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -5844,13 +5844,13 @@ woal_dfs_testing(moal_private * priv, struct iwreq *wrq)
}
#endif /* DFS_SUPPORT && DFS_TESTING_SUPPORT */
-/**
+/**
* @brief Set/Get Mgmt Frame passthru mask
*
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
*
- * @return 0 -- success, otherwise fail
+ * @return 0 -- success, otherwise fail
*/
static int
woal_mgmt_frame_passthru_ctrl(moal_private * priv, struct iwreq *wrq)
@@ -5913,10 +5913,10 @@ woal_mgmt_frame_passthru_ctrl(moal_private * priv, struct iwreq *wrq)
/**
* @brief Set/Get Tx/Rx antenna
- *
+ *
* @param priv A pointer to moal_private structure
* @param wrq A pointer to iwreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -6235,7 +6235,7 @@ woal_wext_do_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
break;
case WOAL_SETNONE_GETTWELVE_CHAR:
- /*
+ /*
* We've not used IW_PRIV_TYPE_FIXED so sub-ioctl number is
* in flags of iwreq structure, otherwise it will be in
* mode member of iwreq structure.
@@ -6338,11 +6338,11 @@ woal_wext_do_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
return ret;
}
-/**
+/**
* @brief Get mode
*
* @param priv A pointer to moal_private structure
- * @param wait_option Wait option (MOAL_WAIT or MOAL_NO_WAIT)
+ * @param wait_option Wait option (MOAL_WAIT or MOAL_NO_WAIT)
*
* @return Wireless mode
*/
@@ -6391,14 +6391,14 @@ woal_get_mode(moal_private * priv, t_u8 wait_option)
return mode;
}
-/**
+/**
* @brief Get statistics information
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param stats A pointer to mlan_ds_get_stats structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_stats_info(moal_private * priv, t_u8 wait_option,
@@ -6439,14 +6439,14 @@ woal_get_stats_info(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Get data rates
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param m_rates A pointer to moal_802_11_rates structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_data_rates(moal_private * priv, t_u8 wait_option,
@@ -6486,14 +6486,14 @@ woal_get_data_rates(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
+/**
* @brief Get channel list
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param chan_list A pointer to mlan_chan_list structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_get_channel_list(moal_private * priv, t_u8 wait_option,
@@ -6532,9 +6532,9 @@ woal_get_channel_list(moal_private * priv, t_u8 wait_option,
return status;
}
-/**
- * @brief Handle get info resp
- *
+/**
+ * @brief Handle get info resp
+ *
* @param priv Pointer to moal_private structure
* @param info Pointer to mlan_ds_get_info structure
*
@@ -6562,9 +6562,9 @@ woal_ioctl_get_info_resp(moal_private * priv, mlan_ds_get_info * info)
LEAVE();
}
-/**
- * @brief Handle get BSS resp
- *
+/**
+ * @brief Handle get BSS resp
+ *
* @param priv Pointer to moal_private structure
* @param bss Pointer to mlan_ds_bss structure
*
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_proc.c b/drivers/net/wireless/sd8797/mlinux/moal_proc.c
index cd292351f827..e98803c2e3fb 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_proc.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_proc.c
@@ -63,13 +63,13 @@ extern int drv_mode;
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief Proc read function for info
*
* @param page Pointer to buffer
* @param start Read data starting position
* @param offset Offset
- * @param count Counter
+ * @param count Counter
* @param eof End of file flag
* @param data Data to output
*
@@ -164,8 +164,8 @@ woal_info_proc_read(char *page, char **start, off_t offset,
p += sprintf(p, "channel=\"%d\"\n", (int) info.bss_chan);
p += sprintf(p, "region_code = \"%02x\"\n", (t_u8) info.region_code);
- /*
- * Put out the multicast list
+ /*
+ * Put out the multicast list
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
for (i = 0; i < netdev->mc_count; i++) {
@@ -298,7 +298,7 @@ parse_cmd52_string(const char __user * buffer, size_t len, int *func, int *reg,
return ret;
}
-/**
+/**
* @brief config proc write function
*
* @param f file pointer
@@ -364,13 +364,13 @@ woal_config_write(struct file *f, const char *buf, unsigned long cnt,
return (int) cnt;
}
-/**
+/**
* @brief config proc read function
*
* @param page pointer to buffer
* @param s read data starting position
* @param off offset
- * @param cnt counter
+ * @param cnt counter
* @param eof end of file flag
* @param data data to output
* @return number of output data
@@ -399,7 +399,7 @@ woal_config_read(char *page, char **s, off_t off, int cnt, int *eof, void *data)
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief Convert string to number
*
* @param s Pointer to numbered string
@@ -437,7 +437,7 @@ woal_string_to_number(char *s)
return (r * pn);
}
-/**
+/**
* @brief Create the top level proc directory
*
* @param handle Pointer to woal_handle
@@ -512,7 +512,7 @@ woal_proc_init(moal_handle * handle)
LEAVE();
}
-/**
+/**
* @brief Remove the top level proc directory
*
* @param handle pointer moal_handle
@@ -551,7 +551,7 @@ woal_proc_exit(moal_handle * handle)
LEAVE();
}
-/**
+/**
* @brief Create proc file for interface
*
* @param priv pointer moal_private
@@ -609,7 +609,7 @@ woal_create_proc_entry(moal_private * priv)
LEAVE();
}
-/**
+/**
* @brief Remove proc file
*
* @param priv Pointer moal_private
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_sdio_mmc.c b/drivers/net/wireless/sd8797/mlinux/moal_sdio_mmc.c
index 94d2a1eef004..96e3e971936f 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_sdio_mmc.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_sdio_mmc.c
@@ -99,7 +99,7 @@ static struct sdio_driver wlan_sdio = {
Local Functions
********************************************************/
/** @brief This function dump the sdio register
- *
+ *
* @param handle A Pointer to the moal_handle structure
* @return N/A
*/
@@ -138,9 +138,9 @@ woal_dump_sdio_reg(moal_handle * handle)
Global Functions
********************************************************/
-/**
+/**
* @brief This function handles the interrupt.
- *
+ *
* @param func A pointer to the sdio_func structure
* @return N/A
*/
@@ -169,7 +169,7 @@ woal_sdio_interrupt(struct sdio_func *func)
}
/** @brief This function handles client driver probe.
- *
+ *
* @param func A pointer to sdio_func structure.
* @param id A pointer to sdio_device_id structure.
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE/error code
@@ -229,7 +229,7 @@ woal_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id)
}
/** @brief This function handles client driver remove.
- *
+ *
* @param func A pointer to sdio_func structure.
* @return N/A
*/
@@ -257,7 +257,7 @@ woal_sdio_remove(struct sdio_func *func)
#ifdef MMC_PM_KEEP_POWER
#ifdef MMC_PM_FUNC_SUSPENDED
/** @brief This function tells lower driver that WLAN is suspended
- *
+ *
* @param handle A Pointer to the moal_handle structure
* @return N/A
*/
@@ -274,7 +274,7 @@ woal_wlan_is_suspended(moal_handle * handle)
#endif
/** @brief This function handles client driver suspend
- *
+ *
* @param dev A pointer to device structure
* @return MLAN_STATUS_SUCCESS or error code
*/
@@ -363,7 +363,7 @@ woal_sdio_suspend(struct device *dev)
}
/** @brief This function handles client driver resume
- *
+ *
* @param dev A pointer to device structure
* @return MLAN_STATUS_SUCCESS
*/
@@ -414,7 +414,7 @@ woal_sdio_resume(struct device *dev)
#endif
#endif /* SDIO_SUSPEND_RESUME */
-/**
+/**
* @brief This function writes data into card register
*
* @param handle A Pointer to the moal_handle structure
@@ -432,7 +432,7 @@ woal_write_reg(moal_handle * handle, t_u32 reg, t_u32 data)
return ret;
}
-/**
+/**
* @brief This function reads data from card register
*
* @param handle A Pointer to the moal_handle structure
@@ -530,9 +530,9 @@ woal_read_data_sync(moal_handle * handle, mlan_buffer * pmbuf, t_u32 port,
return ret;
}
-/**
+/**
* @brief This function registers the IF module in bus driver
- *
+ *
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
mlan_status
@@ -553,9 +553,9 @@ woal_bus_register(void)
return ret;
}
-/**
+/**
* @brief This function de-registers the IF module in bus driver
- *
+ *
* @return N/A
*/
void
@@ -569,9 +569,9 @@ woal_bus_unregister(void)
LEAVE();
}
-/**
+/**
* @brief This function de-registers the device
- *
+ *
* @param handle A pointer to moal_handle structure
* @return N/A
*/
@@ -594,9 +594,9 @@ woal_unregister_dev(moal_handle * handle)
LEAVE();
}
-/**
+/**
* @brief This function registers the device
- *
+ *
* @param handle A pointer to moal_handle structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -644,9 +644,9 @@ woal_register_dev(moal_handle * handle)
return MLAN_STATUS_FAILURE;
}
-/**
+/**
* @brief This function set bus clock on/off
- *
+ *
* @param handle A pointer to moal_handle structure
* @param option TRUE--on , FALSE--off
* @return MLAN_STATUS_SUCCESS
@@ -674,9 +674,9 @@ woal_sdio_set_bus_clock(moal_handle * handle, t_u8 option)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function updates card reg based on the Cmd52 value in dev structure
- *
+ *
* @param handle A pointer to moal_handle structure
* @param func A pointer to store func variable
* @param reg A pointer to store reg variable
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_shim.c b/drivers/net/wireless/sd8797/mlinux/moal_shim.c
index 51f192a160f9..e33a6e38067a 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_shim.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_shim.c
@@ -58,9 +58,9 @@ extern int cfg80211_wext;
Global Functions
********************************************************/
-/**
- * @brief Alloc a buffer
- *
+/**
+ * @brief Alloc a buffer
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param size The size of the buffer to be allocated
* @param flag The type of the buffer to be allocated
@@ -88,9 +88,9 @@ moal_malloc(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
- * @brief Free a buffer
- *
+/**
+ * @brief Free a buffer
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pbuf Pointer to the buffer to be freed
*
@@ -108,9 +108,9 @@ moal_mfree(IN t_void * pmoal_handle, IN t_u8 * pbuf)
return MLAN_STATUS_SUCCESS;
}
-/**
- * @brief Fill memory with constant byte
- *
+/**
+ * @brief Fill memory with constant byte
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pmem Pointer to the memory area
* @param byte A constant byte
@@ -130,9 +130,9 @@ moal_memset(IN t_void * pmoal_handle,
return p;
}
-/**
+/**
* @brief Copy memory from one area to another
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pdest Pointer to the dest memory
* @param psrc Pointer to the src memory
@@ -152,9 +152,9 @@ moal_memcpy(IN t_void * pmoal_handle,
return p;
}
-/**
+/**
* @brief Move memory from one area to another
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pdest Pointer to the dest memory
* @param psrc Pointer to the src memory
@@ -174,9 +174,9 @@ moal_memmove(IN t_void * pmoal_handle,
return p;
}
-/**
+/**
* @brief Compare two memory areas
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pmem1 Pointer to the first memory
* @param pmem2 Pointer to the second memory
@@ -195,9 +195,9 @@ moal_memcmp(IN t_void * pmoal_handle,
return result;
}
-/**
+/**
* @brief Delay function
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param delay delay in micro-second
*
@@ -212,14 +212,14 @@ moal_udelay(IN t_void * pmoal_handle, IN t_u32 delay)
udelay(delay % 1000);
}
-/**
+/**
* @brief Retrieves the current system time
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param psec Pointer to buf for the seconds of system time
* @param pusec Pointer to buf the micro seconds of system time
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_get_system_time(IN t_void * pmoal_handle,
@@ -234,15 +234,15 @@ moal_get_system_time(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Initializes the timer
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pptimer Pointer to the timer
* @param callback Pointer to callback function
* @param pcontext Pointer to context
*
- * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
+ * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
mlan_status
moal_init_timer(IN t_void * pmoal_handle,
@@ -261,13 +261,13 @@ moal_init_timer(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Free the timer
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param ptimer Pointer to the timer
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_free_timer(IN t_void * pmoal_handle, IN t_void * ptimer)
@@ -285,9 +285,9 @@ moal_free_timer(IN t_void * pmoal_handle, IN t_void * ptimer)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Start the timer
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param ptimer Pointer to the timer
* @param periodic Periodic timer
@@ -308,9 +308,9 @@ moal_start_timer(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Stop the timer
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param ptimer Pointer to the timer
*
@@ -326,13 +326,13 @@ moal_stop_timer(IN t_void * pmoal_handle, IN t_void * ptimer)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Initializes the lock
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pplock Pointer to the lock
*
- * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
+ * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
mlan_status
moal_init_lock(IN t_void * pmoal_handle, OUT t_void ** pplock)
@@ -350,9 +350,9 @@ moal_init_lock(IN t_void * pmoal_handle, OUT t_void ** pplock)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Free the lock
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param plock Lock
*
@@ -372,9 +372,9 @@ moal_free_lock(IN t_void * pmoal_handle, IN t_void * plock)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Request a spin lock
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param plock Pointer to the lock
*
@@ -395,9 +395,9 @@ moal_spin_lock(IN t_void * pmoal_handle, IN t_void * plock)
}
}
-/**
+/**
* @brief Request a spin_unlock
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param plock Pointer to the lock
*
@@ -417,7 +417,7 @@ moal_spin_unlock(IN t_void * pmoal_handle, IN t_void * plock)
}
}
-/**
+/**
* @brief This function reads one block of firmware data from MOAL
*
* @param pmoal_handle Pointer to the MOAL context
@@ -444,13 +444,13 @@ moal_get_fw_data(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function is called when MLAN completes the initialization firmware.
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param status The status code for mlan_init_fw request
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_init_fw_complete(IN t_void * pmoal_handle, IN mlan_status status)
@@ -465,13 +465,13 @@ moal_init_fw_complete(IN t_void * pmoal_handle, IN mlan_status status)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function is called when MLAN shutdown firmware is completed.
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param status The status code for mlan_shutdown request
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_shutdown_fw_complete(IN t_void * pmoal_handle, IN mlan_status status)
@@ -485,14 +485,14 @@ moal_shutdown_fw_complete(IN t_void * pmoal_handle, IN mlan_status status)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function is called when an MLAN IOCTL is completed.
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
- * @param pioctl_req pointer to structure mlan_ioctl_req
+ * @param pioctl_req pointer to structure mlan_ioctl_req
* @param status The status code for mlan_ioctl request
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_ioctl_complete(IN t_void * pmoal_handle,
@@ -538,12 +538,12 @@ moal_ioctl_complete(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function allocates mlan_buffer.
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
- * @param size allocation size requested
- * @param pmbuf pointer to pointer to the allocated buffer
+ * @param size allocation size requested
+ * @param pmbuf pointer to pointer to the allocated buffer
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -557,9 +557,9 @@ moal_alloc_mlan_buffer(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function frees mlan_buffer.
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pmbuf pointer to buffer to be freed
*
@@ -574,14 +574,14 @@ moal_free_mlan_buffer(IN t_void * pmoal_handle, IN pmlan_buffer pmbuf)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function is called when MLAN complete send data packet.
- *
+ *
* @param pmoal_handle Pointer to the MOAL context
* @param pmbuf Pointer to the mlan buffer structure
* @param status The status code for mlan_send_packet request
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_send_packet_complete(IN t_void * pmoal_handle,
@@ -636,7 +636,7 @@ moal_send_packet_complete(IN t_void * pmoal_handle,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function write a command/data packet to card.
* This function blocks the call until it finishes
*
@@ -655,7 +655,7 @@ moal_write_data_sync(IN t_void * pmoal_handle,
timeout);
}
-/**
+/**
* @brief This function read data packet/event/command from card.
* This function blocks the call until it finish
*
@@ -674,7 +674,7 @@ moal_read_data_sync(IN t_void * pmoal_handle,
timeout);
}
-/**
+/**
* @brief This function writes data into card register.
*
* @param pmoal_handle Pointer to the MOAL context
@@ -689,7 +689,7 @@ moal_write_reg(IN t_void * pmoal_handle, IN t_u32 reg, IN t_u32 data)
return woal_write_reg((moal_handle *) pmoal_handle, reg, data);
}
-/**
+/**
* @brief This function reads data from card register.
*
* @param pmoal_handle Pointer to the MOAL context
@@ -704,7 +704,7 @@ moal_read_reg(IN t_void * pmoal_handle, IN t_u32 reg, OUT t_u32 * data)
return woal_read_reg((moal_handle *) pmoal_handle, reg, data);
}
-/**
+/**
* @brief This function uploads the packet to the network stack
*
* @param pmoal_handle Pointer to the MOAL context
@@ -758,13 +758,13 @@ moal_recv_packet(IN t_void * pmoal_handle, IN pmlan_buffer pmbuf)
return status;
}
-/**
+/**
* @brief This function handles event receive
*
* @param pmoal_handle Pointer to the MOAL context
* @param pmevent Pointer to the mlan event structure
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
moal_recv_event(IN t_void * pmoal_handle, IN pmlan_event pmevent)
@@ -1368,14 +1368,14 @@ moal_recv_event(IN t_void * pmoal_handle, IN pmlan_event pmevent)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prints the debug message in mlan
*
* @param pmoal_handle Pointer to the MOAL context
* @param level debug level
* @param pformat point to string format buf
*
- * @return N/A
+ * @return N/A
*/
t_void
moal_print(IN t_void * pmoal_handle, IN t_u32 level, IN t_s8 * pformat, IN ...)
@@ -1426,7 +1426,7 @@ moal_print(IN t_void * pmoal_handle, IN t_u32 level, IN t_s8 * pformat, IN ...)
* @param bss_index BSS index
* @param level debug level
*
- * @return N/A
+ * @return N/A
*/
t_void
moal_print_netintf(IN t_void * pmoal_handle, IN t_u32 bss_index, IN t_u32 level)
@@ -1442,7 +1442,7 @@ moal_print_netintf(IN t_void * pmoal_handle, IN t_u32 bss_index, IN t_u32 level)
#endif /* DEBUG_LEVEL1 */
}
-/**
+/**
* @brief This function asserts the existence of the passed argument
*
* @param pmoal_handle A pointer to moal_private structure
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_sta_cfg80211.c b/drivers/net/wireless/sd8797/mlinux/moal_sta_cfg80211.c
index dfb4aefcbb33..d6768a3bd647 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_sta_cfg80211.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_sta_cfg80211.c
@@ -438,7 +438,7 @@ woal_wps_cfg(moal_private * priv, int enable)
}
/**
- * @brief configure ASSOC IE
+ * @brief configure ASSOC IE
*
* @param priv A pointer to moal private structure
* @param ie A pointer to ie data
@@ -739,14 +739,14 @@ woal_set_rf_channel(struct wiphy *wiphy,
return ret;
}
-/**
+/**
* @brief Set ewpa mode
*
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param ssid_bssid A pointer to mlan_ssid_bssid structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_set_ewpa_mode(moal_private * priv, t_u8 wait_option,
@@ -1295,7 +1295,7 @@ woal_cfg80211_assoc(struct wiphy *wiphy, void *sme)
/* "privacy" is set only for ad-hoc mode */
if (privacy) {
- /*
+ /*
* Keep MLAN_ENCRYPTION_MODE_WEP40 for now so that
* the firmware can find a matching network from the
* scan. cfg80211 does not give us the encryption
@@ -1627,7 +1627,7 @@ woal_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
if (priv->bss_type == MLAN_BSS_TYPE_WIFIDIRECT
&& (priv->wdev->iftype == NL80211_IFTYPE_STATION
|| priv->wdev->iftype == NL80211_IFTYPE_P2P_CLIENT)) {
- /* if bsstype == wifi direct, and iftype == station or p2p client, that
+ /* if bsstype == wifi direct, and iftype == station or p2p client, that
means wpa_supplicant wants to enable wifi direct functionality, so
we should init p2p client. Note that due to kernel iftype check,
ICS wpa_supplicant could not updaet iftype to init p2p client, so
@@ -2012,7 +2012,7 @@ woal_cfg80211_setup_sta_ht_cap(struct ieee80211_sta_ht_cap *ht_info,
*
* @param wiphy A pointer to wiphy structure
* @param wait_option Wait option
- * @param cancel cancel remain on channel flag
+ * @param cancel cancel remain on channel flag
* @param status A pointer to status, success, in process or reject
* @param chan A pointer to ieee80211_channel structure
* @param channel_type channel_type,
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_uap.c b/drivers/net/wireless/sd8797/mlinux/moal_uap.c
index 7dac877abe00..fb8e2a7d6571 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_uap.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_uap.c
@@ -44,9 +44,9 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief uap addba parameter handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -123,9 +123,9 @@ woal_uap_addba_param(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
- * @brief uap aggr priority tbl
- *
+/**
+ * @brief uap aggr priority tbl
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -198,9 +198,9 @@ woal_uap_aggr_priotbl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
- * @brief uap addba reject tbl
- *
+/**
+ * @brief uap addba reject tbl
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -271,9 +271,9 @@ woal_uap_addba_reject(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap get_fw_info handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -319,9 +319,9 @@ woal_uap_get_fw_info(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
- * @brief configure deep sleep
- *
+/**
+ * @brief configure deep sleep
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -396,9 +396,9 @@ woal_uap_deep_sleep(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief configure tx_pause settings
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -468,9 +468,9 @@ woal_uap_txdatapause(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap sdcmd52rw ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -840,7 +840,7 @@ woal_uap_dfs_testing(struct net_device *dev, struct ifreq *req)
/**
* @brief Configure TX beamforming support
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -903,9 +903,9 @@ woal_uap_tx_bf_cfg(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap hs_cfg ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1033,9 +1033,9 @@ woal_uap_hs_set_para(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap mgmt_frame_control ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1096,10 +1096,10 @@ woal_uap_mgmt_frame_control(struct net_device *dev, struct ifreq *req)
/**
* @brief Set/Get tx rate
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -1184,10 +1184,10 @@ woal_uap_tx_rate_cfg(struct net_device *dev, struct ifreq *req)
/**
* @brief Set/Get RF antenna mode
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -1250,9 +1250,9 @@ woal_uap_antenna_cfg(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1335,9 +1335,9 @@ woal_uap_ioctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap station deauth ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1402,10 +1402,10 @@ woal_uap_sta_deauth_ioctl(struct net_device *dev, struct ifreq *req)
/**
* @brief Set/Get radio
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
- *
+ *
* @return 0 --success, otherwise fail
*/
static int
@@ -1467,9 +1467,9 @@ woal_uap_radio_ctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap bss control ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1501,9 +1501,9 @@ woal_uap_bss_ctrl_ioctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap power mode ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1596,9 +1596,9 @@ woal_uap_power_mode_ioctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap BSS config ioctl handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1683,9 +1683,9 @@ woal_uap_bss_cfg_ioctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uap get station list handler
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -1742,9 +1742,9 @@ woal_uap_get_sta_list_ioctl(struct net_device *dev, struct ifreq *req)
return ret;
}
-/**
+/**
* @brief uAP set WAPI key ioctl
- *
+ *
* @param priv A pointer to moal_private structure
* @param msg A pointer to wapi_msg structure
*
@@ -1796,9 +1796,9 @@ woal_uap_set_wapi_key_ioctl(moal_private * priv, wapi_msg * msg)
return ret;
}
-/**
+/**
* @brief Enable/Disable wapi in firmware
- *
+ *
* @param priv A pointer to moal_private structure
* @param enable MTRUE/MFALSE
*
@@ -1858,9 +1858,9 @@ woal_enable_wapi(moal_private * priv, t_u8 enable)
return status;
}
-/**
+/**
* @brief uAP set WAPI flag ioctl
- *
+ *
* @param priv A pointer to moal_private structure
* @param msg A pointer to wapi_msg structure
*
@@ -1927,9 +1927,9 @@ woal_uap_set_wapi_flag_ioctl(moal_private * priv, wapi_msg * msg)
return ret;
}
-/**
+/**
* @brief set wapi ioctl function
- *
+ *
* @param dev A pointer to net_device structure
* @param req A pointer to ifreq structure
* @return 0 --success, otherwise fail
@@ -2351,7 +2351,7 @@ woal_uap_set_ap_cfg(moal_private * priv, t_u8 * data, int len)
/**
* @brief uap BSS control ioctl handler
- *
+ *
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param data BSS control type
@@ -2422,9 +2422,9 @@ woal_uap_bss_ctrl(moal_private * priv, t_u8 wait_option, int data)
return ret;
}
-/**
+/**
* @brief This function sets multicast addresses to firmware
- *
+ *
* @param dev A pointer to net_device structure
* @return N/A
*/
@@ -2501,9 +2501,9 @@ woal_uap_do_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
return ret;
}
-/**
- * @brief Get version
- *
+/**
+ * @brief Get version
+ *
* @param priv A pointer to moal_private structure
* @param version A pointer to version buffer
* @param max_len max length of version buffer
@@ -2545,14 +2545,14 @@ woal_uap_get_version(moal_private * priv, char *version, int max_len)
return;
}
-/**
- * @brief Get uap statistics
- *
+/**
+ * @brief Get uap statistics
+ *
* @param priv A pointer to moal_private structure
* @param wait_option Wait option
* @param ustats A pointer to mlan_ds_uap_stats structure
*
- * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING -- success, otherwise fail
*/
mlan_status
woal_uap_get_stats(moal_private * priv, t_u8 wait_option,
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_uap.h b/drivers/net/wireless/sd8797/mlinux/moal_uap.h
index a30d0ceec87f..2667db84b8de 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_uap.h
+++ b/drivers/net/wireless/sd8797/mlinux/moal_uap.h
@@ -197,7 +197,7 @@ typedef struct _ds_hs_cfg
/** Bit0: non-unicast data
* Bit1: unicast data
* Bit2: mac events
- * Bit3: magic packet
+ * Bit3: magic packet
*/
t_u32 conditions;
/** GPIO */
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_uap_cfg80211.c b/drivers/net/wireless/sd8797/mlinux/moal_uap_cfg80211.c
index e83d4de4d282..7f7528216282 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_uap_cfg80211.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_uap_cfg80211.c
@@ -402,8 +402,8 @@ woal_parse_ie_tlv(const t_u8 * ie, int len, t_u8 id)
* @param assocresp_ies_data Assoc resp ie
* @param assocresp_index The index for assoc resp when auto index
* @param probereq_ies_data Probe req ie
- * @param probereq_index The index for probe req when auto index *
- *
+ * @param probereq_index The index for probe req when auto index *
+ *
* @return 0 -- success, otherwise fail
*/
static int
@@ -530,10 +530,10 @@ woal_cfg80211_custom_ie(moal_private * priv,
return ret;
}
-/**
+/**
* @brief This function returns priv
* based on mgmt ie index
- *
+ *
* @param handle A pointer to moal_handle
* @param index mgmt ie index
*
@@ -564,9 +564,9 @@ woal_get_priv_by_mgmt_index(moal_handle * handle, t_u16 index)
* @param assocresp_ies A pointer to probe resp ies
* @param assocresp_ies_len Assoc resp ies length
* @param probereq_ies A pointer to probe req ies
- * @param probereq_ies_len Probe req ies length *
+ * @param probereq_ies_len Probe req ies length *
* @param mask Mgmt frame mask
- *
+ *
* @return 0 -- success, otherwise fail
*/
int
@@ -803,7 +803,7 @@ woal_cfg80211_mgmt_frame_ie(moal_private * priv,
* @brief initialize AP or GO bss config
*
* @param priv A pointer to moal private structure
- * @param params A pointer to beacon_parameters structure
+ * @param params A pointer to beacon_parameters structure
* @return 0 -- success, otherwise fail
*/
static int
@@ -1322,7 +1322,7 @@ woal_uap_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev,
*
* @param wiphy A pointer to wiphy structure
* @param dev A pointer to net_device structure
- * @param params A pointer to beacon_parameters structure
+ * @param params A pointer to beacon_parameters structure
* @return 0 -- success, otherwise fail
*/
int
@@ -1394,7 +1394,7 @@ woal_cfg80211_add_beacon(struct wiphy *wiphy,
*
* @param wiphy A pointer to wiphy structure
* @param dev A pointer to net_device structure
- * @param params A pointer to beacon_parameters structure
+ * @param params A pointer to beacon_parameters structure
* @return 0 -- success, otherwise fail
*/
int
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_uap_priv.c b/drivers/net/wireless/sd8797/mlinux/moal_uap_priv.c
index dd06e03ecb1e..21f71cc4fe54 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_uap_priv.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_uap_priv.c
@@ -150,9 +150,9 @@ woal_uap_do_priv_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
return ret;
}
-/**
+/**
* @brief Handle get info resp
- *
+ *
* @param priv Pointer to moal_private structure
* @param info Pointer to mlan_ds_get_info structure
*
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_uap_wext.c b/drivers/net/wireless/sd8797/mlinux/moal_uap_wext.c
index 0426a28339cb..eb1d048cafd6 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_uap_wext.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_uap_wext.c
@@ -137,7 +137,7 @@ woal_sort_channels(struct iw_freq *freq, int num)
}
/**
- * @brief Get frequency for channel in given band
+ * @brief Get frequency for channel in given band
*
* @param channel channel
* @param band band
@@ -260,7 +260,7 @@ woal_set_wap(struct net_device *dev, struct iw_request_info *info,
(t_u8) awrq->sa_data[2], (t_u8) awrq->sa_data[3],
(t_u8) awrq->sa_data[4], (t_u8) awrq->sa_data[5]);
- /*
+ /*
* Using this ioctl to start/stop the BSS, return if bss
* is already started/stopped.
*/
@@ -555,7 +555,7 @@ woal_set_encode(struct net_device *dev, struct iw_request_info *info,
/* Set current key index as default */
pkey->is_default = MTRUE;
} else {
- /*
+ /*
* No key provided so it is either enable key,
* on or off
*/
@@ -563,10 +563,10 @@ woal_set_encode(struct net_device *dev, struct iw_request_info *info,
PRINTM(MINFO, "*** iwconfig mlanX key off ***\n");
sys_cfg->protocol = PROTOCOL_NO_SECURITY;
} else {
- /*
+ /*
* iwconfig mlanX key [n]
- * iwconfig mlanX key on
- * Do we want to just set the transmit key index ?
+ * iwconfig mlanX key on
+ * Do we want to just set the transmit key index ?
*/
if (key_index < 0) {
PRINTM(MINFO, "*** iwconfig mlanX key on ***\n");
@@ -659,8 +659,8 @@ woal_get_encode(struct net_device *dev, struct iw_request_info *info,
}
dwrq->flags = 0;
- /*
- * Check encryption mode
+ /*
+ * Check encryption mode
*/
switch (ap_cfg.auth_mode) {
case MLAN_AUTH_MODE_OPEN:
@@ -739,8 +739,8 @@ woal_get_gen_ie(struct net_device *dev, struct iw_request_info *info,
/**
* @brief Set IE
*
- * Pass an opaque block of data, expected to be IEEE IEs, to the driver
- * for eventual passthrough to the firmware in an associate/join
+ * Pass an opaque block of data, expected to be IEEE IEs, to the driver
+ * for eventual passthrough to the firmware in an associate/join
* (and potentially start) command.
*
* @param dev A pointer to net_device structure
@@ -853,8 +853,8 @@ woal_set_gen_ie(struct net_device *dev, struct iw_request_info *info,
return ret;
}
-/**
- * @brief Extended version of encoding configuration
+/**
+ * @brief Extended version of encoding configuration
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -984,8 +984,8 @@ woal_set_encode_ext(struct net_device *dev,
return ret;
}
-/**
- * @brief Extended version of encoding configuration
+/**
+ * @brief Extended version of encoding configuration
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -1004,8 +1004,8 @@ woal_get_encode_ext(struct net_device *dev,
return -EOPNOTSUPP;
}
-/**
- * @brief Request MLME operation
+/**
+ * @brief Request MLME operation
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -1427,7 +1427,7 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
woal_sort_channels(&range->freq[0], range->num_frequency);
- /*
+ /*
* Set an indication of the max TCP throughput in bit/s that we can
* expect using this interface
*/
@@ -1464,12 +1464,12 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
range->pmt_flags = IW_POWER_TIMEOUT;
range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_ALL_R;
- /*
+ /*
* Minimum version we recommend
*/
range->we_version_source = 15;
- /*
+ /*
* Version we are compiled with
*/
range->we_version_compiled = WIRELESS_EXT;
@@ -1500,7 +1500,7 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
}
/**
- * @brief Set priv command
+ * @brief Set priv command
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -1580,9 +1580,9 @@ woal_set_essid(struct net_device *dev, struct iw_request_info *info,
return ret;
}
-/**
- * @brief Get current essid
- *
+/**
+ * @brief Get current essid
+ *
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
* @param dwrq A pointer to iw_point structure
@@ -1744,7 +1744,7 @@ woal_get_uap_wireless_stats(struct net_device *dev)
ENTER();
- /*
+ /*
* Since schedule() is not allowed from an atomic context
* such as when dev_base_lock for netdevices is acquired
* for reading/writing in kernel before this call, HostCmd
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_wext.c b/drivers/net/wireless/sd8797/mlinux/moal_wext.c
index 9b5ce1333ee8..8595892090fb 100644
--- a/drivers/net/wireless/sd8797/mlinux/moal_wext.c
+++ b/drivers/net/wireless/sd8797/mlinux/moal_wext.c
@@ -173,7 +173,7 @@ woal_set_nick(struct net_device *dev, struct iw_request_info *info,
{
moal_private *priv = (moal_private *) netdev_priv(dev);
ENTER();
- /*
+ /*
* Check the size of the string
*/
if (dwrq->length > 16) {
@@ -202,16 +202,16 @@ woal_get_nick(struct net_device *dev, struct iw_request_info *info,
{
moal_private *priv = (moal_private *) netdev_priv(dev);
ENTER();
- /*
+ /*
* Get the Nick Name saved
*/
strncpy(extra, (char *) priv->nick_name, 16);
extra[16] = '\0';
- /*
+ /*
* If none, we may want to get the one that was set
*/
- /*
+ /*
* Push it out !
*/
dwrq->length = strlen(extra) + 1;
@@ -285,8 +285,8 @@ woal_set_freq(struct net_device *dev, struct iw_request_info *info,
goto done;
}
bss = (mlan_ds_bss *) req->pbuf;
- /*
- * If setting by frequency, convert to a channel
+ /*
+ * If setting by frequency, convert to a channel
*/
if (fwrq->e == 1) {
long f = fwrq->m / 100000;
@@ -704,9 +704,9 @@ woal_get_txpow(struct net_device *dev, struct iw_request_info *info,
return ret;
}
-/**
- * @brief Set power management
- *
+/**
+ * @brief Set power management
+ *
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
* @param vwrq A pointer to iw_param structure
@@ -735,9 +735,9 @@ woal_set_power(struct net_device *dev, struct iw_request_info *info,
return ret;
}
-/**
- * @brief Get power management
- *
+/**
+ * @brief Get power management
+ *
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
* @param vwrq A pointer to iw_param structure
@@ -791,7 +791,7 @@ woal_set_retry(struct net_device *dev, struct iw_request_info *info,
ENTER();
if (vwrq->flags == IW_RETRY_LIMIT) {
- /*
+ /*
* The MAC has a 4-bit Total_Tx_Count register
* Total_Tx_Count = 1 + Tx_Retry_Count
*/
@@ -908,20 +908,20 @@ woal_set_encode(struct net_device *dev, struct iw_request_info *info,
else
sec->param.encrypt_key.key_len = MIN_WEP_KEY_SIZE;
} else {
- /*
- * No key provided so it is either enable key,
+ /*
+ * No key provided so it is either enable key,
* on or off
*/
if (dwrq->flags & IW_ENCODE_DISABLED) {
PRINTM(MINFO, "*** iwconfig mlanX key off ***\n");
sec->param.encrypt_key.key_disable = MTRUE;
} else {
- /*
+ /*
* iwconfig mlanX key [n]
- * iwconfig mlanX key on
+ * iwconfig mlanX key on
* iwconfig mlanX key open
* iwconfig mlanX key restricted
- * Do we want to just set the transmit key index ?
+ * Do we want to just set the transmit key index ?
*/
if (index < 0) {
PRINTM(MINFO, "*** iwconfig mlanX key on ***\n");
@@ -999,8 +999,8 @@ woal_get_encode(struct net_device *dev, struct iw_request_info *info,
goto done;
}
dwrq->flags = 0;
- /*
- * Check encryption mode
+ /*
+ * Check encryption mode
*/
switch (auth_mode) {
case MLAN_AUTH_MODE_OPEN:
@@ -1325,8 +1325,8 @@ woal_get_gen_ie(struct net_device *dev, struct iw_request_info *info,
/**
* @brief Set IE
*
- * Pass an opaque block of data, expected to be IEEE IEs, to the driver
- * for eventual passthrough to the firmware in an associate/join
+ * Pass an opaque block of data, expected to be IEEE IEs, to the driver
+ * for eventual passthrough to the firmware in an associate/join
* (and potentially start) command.
*
* @param dev A pointer to net_device structure
@@ -1384,8 +1384,8 @@ woal_set_gen_ie(struct net_device *dev, struct iw_request_info *info,
return ret;
}
-/**
- * @brief Extended version of encoding configuration
+/**
+ * @brief Extended version of encoding configuration
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -1498,8 +1498,8 @@ woal_set_encode_ext(struct net_device *dev,
return ret;
}
-/**
- * @brief Extended version of encoding configuration
+/**
+ * @brief Extended version of encoding configuration
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -1518,8 +1518,8 @@ woal_get_encode_ext(struct net_device *dev,
return -EOPNOTSUPP;
}
-/**
- * @brief Request MLME operation
+/**
+ * @brief Request MLME operation
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -1819,7 +1819,7 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
woal_sort_channels(&range->freq[0], range->num_frequency);
- /*
+ /*
* Set an indication of the max TCP throughput in bit/s that we can
* expect using this interface
*/
@@ -1856,12 +1856,12 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
range->pmt_flags = IW_POWER_TIMEOUT;
range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_ALL_R;
- /*
+ /*
* Minimum version we recommend
*/
range->we_version_source = 15;
- /*
+ /*
* Version we are compiled with
*/
range->we_version_compiled = WIRELESS_EXT;
@@ -1872,10 +1872,10 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
range->min_retry = MLAN_TX_RETRY_MIN;
range->max_retry = MLAN_TX_RETRY_MAX;
- /*
+ /*
* Set the qual, level and noise range values
*/
- /*
+ /*
* need to put the right values here
*/
/** Maximum quality percentage */
@@ -1892,7 +1892,7 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
range->sensitivity = 0;
- /*
+ /*
* Setup the supported power level ranges
*/
memset(range->txpower, 0, sizeof(range->txpower));
@@ -1911,13 +1911,13 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info,
}
#ifdef MEF_CFG_RX_FILTER
-/**
+/**
* @brief Enable/disable Rx broadcast/multicast filter in non-HS mode
*
* @param priv A pointer to moal_private structure
* @param enable MTRUE/MFALSE: enable/disable
*
- * @return 0 -- success, otherwise fail
+ * @return 0 -- success, otherwise fail
*/
static int
woal_set_rxfilter(moal_private * priv, BOOLEAN enable)
@@ -1955,7 +1955,7 @@ woal_set_rxfilter(moal_private * priv, BOOLEAN enable)
#endif
/**
- * @brief Set priv command
+ * @brief Set priv command
*
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
@@ -2322,7 +2322,7 @@ woal_set_essid(struct net_device *dev, struct iw_request_info *info,
req_ssid.ssid_len = dwrq->length - 1;
#endif
- /*
+ /*
* Check if we asked for `any' or 'particular'
*/
if (!dwrq->flags) {
@@ -2410,9 +2410,9 @@ woal_set_essid(struct net_device *dev, struct iw_request_info *info,
return ret;
}
-/**
- * @brief Get current essid
- *
+/**
+ * @brief Get current essid
+ *
* @param dev A pointer to net_device structure
* @param info A pointer to iw_request_info structure
* @param dwrq A pointer to iw_point structure
@@ -2753,7 +2753,7 @@ woal_get_scan(struct net_device *dev, struct iw_request_info *info,
#endif
current_val = current_ev + IW_EV_LCP_LEN;
- /*
+ /*
* Check if we added any event
*/
if ((unsigned int) (current_val - current_ev) > IW_EV_LCP_LEN)
@@ -2870,9 +2870,9 @@ static const iw_handler woal_private_handler[] = {
#if WIRELESS_EXT > 14
-/**
+/**
* @brief This function sends customized event to application.
- *
+ *
* @param priv A pointer to moal_private structure
* @param str A pointer to event string
*
@@ -2904,11 +2904,11 @@ woal_send_iwevcustom_event(moal_private * priv, t_s8 * str)
#endif
#if WIRELESS_EXT >= 18
-/**
+/**
* @brief This function sends mic error event to application.
- *
+ *
* @param priv A pointer to moal_private structure
- * @param event MIC MERROR EVENT.
+ * @param event MIC MERROR EVENT.
*
* @return N/A
*/
@@ -3006,7 +3006,7 @@ woal_get_wireless_stats(struct net_device *dev)
ENTER();
- /*
+ /*
* Since schedule() is not allowed from an atomic context
* such as when dev_base_lock for netdevices is acquired
* for reading/writing in kernel before this call, HostCmd