Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 44e085360f | |||
| 10a05d21bf | |||
| 6f13e008d2 | |||
| 3304b13a2b | |||
| 108d3967ea | |||
| c7ba2044b7 | |||
| a826f4db7d | |||
| d18aa6a9bc |
+3
-3
@@ -2,7 +2,7 @@ KERN_DIR = /lib/modules/$(KERNELRELEASE)/build
|
|||||||
# feature option
|
# feature option
|
||||||
BES2600 ?= m
|
BES2600 ?= m
|
||||||
|
|
||||||
CONFIG_BES2600_TESTMODE ?= n
|
CONFIG_BES2600_TESTMODE ?= y
|
||||||
|
|
||||||
CONFIG_BES2600_ENABLE_DEVEL_LOGS ?= n
|
CONFIG_BES2600_ENABLE_DEVEL_LOGS ?= n
|
||||||
|
|
||||||
@@ -65,8 +65,8 @@ BES2600_DRV_VERSION := bes2600_0.3.5_2024.0116
|
|||||||
|
|
||||||
ifeq ($(CONFIG_BES2600_CALIB_FROM_LINUX),y)
|
ifeq ($(CONFIG_BES2600_CALIB_FROM_LINUX),y)
|
||||||
FACTORY_CRC_CHECK ?= n
|
FACTORY_CRC_CHECK ?= n
|
||||||
STANDARD_FACTORY_EFUSE_FLAG ?= y
|
STANDARD_FACTORY_EFUSE_FLAG ?= n
|
||||||
FACTORY_PATH ?= /lib/firmware/bes2600_factory.txt
|
FACTORY_PATH ?= bes2600/bes2600_factory.txt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# basic function
|
# basic function
|
||||||
|
|||||||
+26
-19
@@ -12,6 +12,7 @@
|
|||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
|
#include <linux/firmware.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/crc32.h>
|
#include <linux/crc32.h>
|
||||||
@@ -30,6 +31,18 @@
|
|||||||
|
|
||||||
static DEFINE_MUTEX(factory_lock);
|
static DEFINE_MUTEX(factory_lock);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* struct device * for request_firmware() context. Set once at SDIO
|
||||||
|
* probe via bes2600_factory_set_dev(). NULL is tolerated (falls back
|
||||||
|
* to the udev-less firmware-class path) but loses per-device logging.
|
||||||
|
*/
|
||||||
|
static struct device *bes2600_factory_dev;
|
||||||
|
|
||||||
|
void bes2600_factory_set_dev(struct device *dev)
|
||||||
|
{
|
||||||
|
bes2600_factory_dev = dev;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It is only used for temporary storage.
|
* It is only used for temporary storage.
|
||||||
* Every time get the factory, it will read from the
|
* Every time get the factory, it will read from the
|
||||||
@@ -137,38 +150,32 @@ static int bes2600_factory_crc_check(struct factory_t *factory_data)
|
|||||||
*/
|
*/
|
||||||
static int factory_section_read_file(char *path, void *buffer)
|
static int factory_section_read_file(char *path, void *buffer)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
const struct firmware *fw;
|
||||||
struct file *fp;
|
int ret;
|
||||||
|
|
||||||
if (!path || !buffer) {
|
if (!path || !buffer) {
|
||||||
bes_err("%s NULL pointer err\n", __func__);
|
bes_err("%s NULL pointer err\n", __func__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bes_devel("reading %s \n", path);
|
bes_devel("requesting firmware-class %s\n", path);
|
||||||
|
|
||||||
fp = filp_open(path, O_RDONLY, 0); //S_IRUSR
|
ret = request_firmware(&fw, path, bes2600_factory_dev);
|
||||||
if (IS_ERR(fp)) {
|
if (ret) {
|
||||||
bes_devel("BES2600 : can't open %s\n",path);
|
bes_devel("BES2600: request_firmware(%s) failed: %d\n", path, ret);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fp->f_inode->i_size <= 0 || fp->f_inode->i_size > FACTORY_MAX_SIZE) {
|
if (fw->size == 0 || fw->size > FACTORY_MAX_SIZE) {
|
||||||
bes_err( "bes2600_factory.txt size check failed, read_size: %lld max_size: %d\n",
|
bes_err("bes2600_factory.txt size check failed, read_size: %zu max_size: %d\n",
|
||||||
fp->f_inode->i_size, FACTORY_MAX_SIZE);
|
fw->size, FACTORY_MAX_SIZE);
|
||||||
filp_close(fp, NULL);
|
release_firmware(fw);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = kernel_read(fp, buffer, fp->f_inode->i_size, &fp->f_pos);
|
memcpy(buffer, fw->data, fw->size);
|
||||||
|
ret = (int)fw->size;
|
||||||
filp_close(fp, NULL);
|
release_firmware(fw);
|
||||||
|
|
||||||
if (ret != fp->f_inode->i_size) {
|
|
||||||
bes_err("bes2600_factory.txt read fail\n");
|
|
||||||
ret = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -199,6 +199,9 @@ enum factory_cali_status {
|
|||||||
/* just calibrate 11n, other protocols are automatically mapped */
|
/* just calibrate 11n, other protocols are automatically mapped */
|
||||||
#define WIFI_RF_11N_MODE 0x15
|
#define WIFI_RF_11N_MODE 0x15
|
||||||
|
|
||||||
|
/* set the struct device * used for request_firmware() context */
|
||||||
|
void bes2600_factory_set_dev(struct device *dev);
|
||||||
|
|
||||||
/* read wifi & bt factory cali value*/
|
/* read wifi & bt factory cali value*/
|
||||||
u8* bes2600_get_factory_cali_data(u8 *file_buffer, u32 *data_len, char *path);
|
u8* bes2600_get_factory_cali_data(u8 *file_buffer, u32 *data_len, char *path);
|
||||||
void factory_little_endian_cvrt(u8 *data);
|
void factory_little_endian_cvrt(u8 *data);
|
||||||
|
|||||||
+42
-1
@@ -30,6 +30,7 @@
|
|||||||
#include "bes2600.h"
|
#include "bes2600.h"
|
||||||
#include "sbus.h"
|
#include "sbus.h"
|
||||||
#include "bes2600_plat.h"
|
#include "bes2600_plat.h"
|
||||||
|
#include "bes2600_factory.h"
|
||||||
#include "hwio.h"
|
#include "hwio.h"
|
||||||
#include "bes_chardev.h"
|
#include "bes_chardev.h"
|
||||||
#include "bes_log.h"
|
#include "bes_log.h"
|
||||||
@@ -94,6 +95,7 @@ struct sbus_priv {
|
|||||||
struct work_struct tx_work;
|
struct work_struct tx_work;
|
||||||
struct scatterlist tx_sg[BES_SDIO_TX_MULTIPLE_NUM + 1];
|
struct scatterlist tx_sg[BES_SDIO_TX_MULTIPLE_NUM + 1];
|
||||||
struct scatterlist tx_sg_nosignal[BES_SDIO_TX_MULTIPLE_NUM_NOSIGNAL + 1];
|
struct scatterlist tx_sg_nosignal[BES_SDIO_TX_MULTIPLE_NUM_NOSIGNAL + 1];
|
||||||
|
u8 *tx_bounce;
|
||||||
u32 tx_data_cnt;
|
u32 tx_data_cnt;
|
||||||
u32 tx_xfer_cnt;
|
u32 tx_xfer_cnt;
|
||||||
u32 tx_proc_cnt;
|
u32 tx_proc_cnt;
|
||||||
@@ -1135,7 +1137,26 @@ static void sdio_tx_work(struct work_struct *work)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sg_set_buf(&sg[scatters], tx_buffer->buf, align);
|
/*
|
||||||
|
* The transfer length is rounded up to the SDIO block
|
||||||
|
* size, but tx_buffer->buf is only tx_buffer->len bytes
|
||||||
|
* long (it usually aliases into an skb linear head).
|
||||||
|
* Copy into a driver-owned bounce buffer and zero-pad
|
||||||
|
* to the aligned size; otherwise DMA reads past the
|
||||||
|
* skb and leaks adjacent kernel memory on the wire --
|
||||||
|
* observed as KFENCE OOB reads from
|
||||||
|
* bes_sdio_memcpy_to_io_helper via dma_map_sg.
|
||||||
|
*/
|
||||||
|
if (WARN_ON_ONCE(total_len + align > MAX_SDIO_TRANSFER_LEN))
|
||||||
|
goto flush_previous;
|
||||||
|
memcpy(self->tx_bounce + total_len,
|
||||||
|
tx_buffer->buf, tx_buffer->len);
|
||||||
|
if (align > tx_buffer->len)
|
||||||
|
memset(self->tx_bounce + total_len +
|
||||||
|
tx_buffer->len, 0,
|
||||||
|
align - tx_buffer->len);
|
||||||
|
sg_set_buf(&sg[scatters],
|
||||||
|
self->tx_bounce + total_len, align);
|
||||||
total_len += align;
|
total_len += align;
|
||||||
++scatters;
|
++scatters;
|
||||||
/*del_node:*/
|
/*del_node:*/
|
||||||
@@ -1834,6 +1855,9 @@ static int bes2600_sdio_probe(struct sdio_func *func,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
/* wire struct device into factory.c for request_firmware() context */
|
||||||
|
bes2600_factory_set_dev(dev);
|
||||||
|
|
||||||
self->pdata = bes2600_get_platform_data();
|
self->pdata = bes2600_get_platform_data();
|
||||||
self->func = func;
|
self->func = func;
|
||||||
self->dev = &func->dev;
|
self->dev = &func->dev;
|
||||||
@@ -1853,6 +1877,17 @@ static int bes2600_sdio_probe(struct sdio_func *func,
|
|||||||
if (!self->single_gathered_buffer)
|
if (!self->single_gathered_buffer)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BES_SDIO_TX_MULTIPLE_ENABLE
|
||||||
|
self->tx_bounce = (u8 *)__get_dma_pages(GFP_KERNEL,
|
||||||
|
get_order(MAX_SDIO_TRANSFER_LEN));
|
||||||
|
if (!self->tx_bounce) {
|
||||||
|
#ifndef SDIO_HOST_ADMA_SUPPORT
|
||||||
|
free_pages((unsigned long)self->single_gathered_buffer,
|
||||||
|
get_order(MAX_SDIO_TRANSFER_LEN));
|
||||||
|
#endif
|
||||||
|
return -ENOMEM;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef BES_SDIO_RXTX_TOGGLE
|
#ifdef BES_SDIO_RXTX_TOGGLE
|
||||||
self->fw_started = false;
|
self->fw_started = false;
|
||||||
#endif
|
#endif
|
||||||
@@ -1981,6 +2016,12 @@ static void bes2600_sdio_remove(struct sdio_func *func)
|
|||||||
if (self->single_gathered_buffer) {
|
if (self->single_gathered_buffer) {
|
||||||
free_pages((unsigned long)self->single_gathered_buffer, get_order(MAX_SDIO_TRANSFER_LEN));
|
free_pages((unsigned long)self->single_gathered_buffer, get_order(MAX_SDIO_TRANSFER_LEN));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#ifdef BES_SDIO_TX_MULTIPLE_ENABLE
|
||||||
|
if (self->tx_bounce) {
|
||||||
|
free_pages((unsigned long)self->tx_bounce,
|
||||||
|
get_order(MAX_SDIO_TRANSFER_LEN));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
kfree(self);
|
kfree(self);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,8 +125,6 @@ int bes_host_slave_sync(struct bes2600_common *hw_priv)
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//#define DATA_DUMP_OBSERVE
|
|
||||||
|
|
||||||
static int bes_firmware_download_write_reg(struct platform_fw_t *fw_data, u32 addr, u32 val)
|
static int bes_firmware_download_write_reg(struct platform_fw_t *fw_data, u32 addr, u32 val)
|
||||||
{
|
{
|
||||||
u8 frame_num = 0;
|
u8 frame_num = 0;
|
||||||
@@ -468,14 +466,6 @@ static int bes_firmware_download(struct platform_fw_t *fw_data, const char *fw_n
|
|||||||
|
|
||||||
const struct firmware *fw_bin;
|
const struct firmware *fw_bin;
|
||||||
|
|
||||||
#ifdef DATA_DUMP_OBSERVE
|
|
||||||
char *observe;
|
|
||||||
size_t observe_len;
|
|
||||||
loff_t observe_off = 0;
|
|
||||||
mm_segment_t old_fs;
|
|
||||||
struct file *observe_file = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct fw_msg_hdr_t header;
|
struct fw_msg_hdr_t header;
|
||||||
struct fw_info_t fw_info;
|
struct fw_info_t fw_info;
|
||||||
struct download_fw_t download_addr;
|
struct download_fw_t download_addr;
|
||||||
@@ -583,14 +573,6 @@ retry:
|
|||||||
}
|
}
|
||||||
download_addr.addr = fw_info.addr;
|
download_addr.addr = fw_info.addr;
|
||||||
|
|
||||||
#ifdef DATA_DUMP_OBSERVE
|
|
||||||
observe_file = filp_open("/lib/firmware/bes2002_fw_write.bin", O_CREAT | O_RDWR, 0);
|
|
||||||
if (IS_ERR(observe_file)) {
|
|
||||||
bes_err("create data_dump file err:%ld\n", IS_ERR(observe_file));
|
|
||||||
observe_file = NULL;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while (code_length) {
|
while (code_length) {
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
@@ -640,17 +622,6 @@ retry:
|
|||||||
//mdelay(5000);
|
//mdelay(5000);
|
||||||
bes_devel("tx_download_firmware_data:%x %d\n", download_addr.addr, length);
|
bes_devel("tx_download_firmware_data:%x %d\n", download_addr.addr, length);
|
||||||
|
|
||||||
#ifdef DATA_DUMP_OBSERVE
|
|
||||||
if (observe_file) {
|
|
||||||
observe = (char *)(long_buf + sizeof(struct fw_msg_hdr_t) + sizeof(struct download_fw_t));
|
|
||||||
observe_len = length - sizeof(struct fw_msg_hdr_t) - sizeof(struct download_fw_t);
|
|
||||||
old_fs = get_fs();
|
|
||||||
set_fs(KERNEL_DS);
|
|
||||||
vfs_write(observe_file, observe, observe_len, &observe_off);
|
|
||||||
set_fs(old_fs);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = bes2600_data_write(long_buf, length > 512 ? length : 512);
|
ret = bes2600_data_write(long_buf, length > 512 ? length : 512);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
bes_err("tx download fw data err:%d\n", ret);
|
bes_err("tx download fw data err:%d\n", ret);
|
||||||
@@ -832,11 +803,6 @@ retry:
|
|||||||
|
|
||||||
err2:
|
err2:
|
||||||
kfree(long_buf);
|
kfree(long_buf);
|
||||||
#ifdef DATA_DUMP_OBSERVE
|
|
||||||
if (observe_file) {
|
|
||||||
filp_close(observe_file, NULL);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
err1:
|
err1:
|
||||||
kfree(short_buf);
|
kfree(short_buf);
|
||||||
release_firmware(fw_bin);
|
release_firmware(fw_bin);
|
||||||
|
|||||||
@@ -8,3 +8,26 @@ extern struct device *global_dev;
|
|||||||
#define bes_info(fmt, ...) dev_info(global_dev, fmt, ##__VA_ARGS__)
|
#define bes_info(fmt, ...) dev_info(global_dev, fmt, ##__VA_ARGS__)
|
||||||
#define bes_warn(fmt, ...) dev_warn(global_dev, fmt, ##__VA_ARGS__)
|
#define bes_warn(fmt, ...) dev_warn(global_dev, fmt, ##__VA_ARGS__)
|
||||||
#define bes_err(fmt, ...) dev_err(global_dev, fmt, ##__VA_ARGS__)
|
#define bes_err(fmt, ...) dev_err(global_dev, fmt, ##__VA_ARGS__)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Legacy debug-subsystem-tagged log macros. The per-subsystem filtering
|
||||||
|
* was never implemented in-tree; these shims let code paths gated by
|
||||||
|
* CONFIG_BES2600_TESTMODE / CONFIG_BES2600_ITP / BES2600_DETECTION_LOGIC
|
||||||
|
* build when their conditions are enabled. The first argument is
|
||||||
|
* currently unused; pick one of the BES2600_DBG_* constants below for
|
||||||
|
* documentation.
|
||||||
|
*/
|
||||||
|
#define BES2600_DBG_SBUS 0
|
||||||
|
#define BES2600_DBG_DOWNLOAD 0
|
||||||
|
#define BES2600_DBG_ITP 0
|
||||||
|
#define BES2600_DBG_TEST_MODE 0
|
||||||
|
|
||||||
|
#define bes2600_info(_dbg, fmt, ...) bes_info(fmt, ##__VA_ARGS__)
|
||||||
|
#define bes2600_err(_dbg, fmt, ...) bes_err(fmt, ##__VA_ARGS__)
|
||||||
|
#define bes2600_warn(_dbg, fmt, ...) bes_warn(fmt, ##__VA_ARGS__)
|
||||||
|
#define bes2600_dbg(_dbg, fmt, ...) bes_devel(fmt, ##__VA_ARGS__)
|
||||||
|
#define bes2600_err_with_cond(_cond, _dbg, fmt, ...) \
|
||||||
|
do { \
|
||||||
|
if (_cond) \
|
||||||
|
bes_err(fmt, ##__VA_ARGS__); \
|
||||||
|
} while (0)
|
||||||
|
|||||||
+17
-3
@@ -472,6 +472,7 @@ static int bes2600_pwr_enter_lp_mode(struct bes2600_common *hw_priv)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
struct bes2600_vif *priv;
|
struct bes2600_vif *priv;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
int timeouts = 0;
|
||||||
char ip_str[20];
|
char ip_str[20];
|
||||||
unsigned long status = 0;
|
unsigned long status = 0;
|
||||||
|
|
||||||
@@ -528,22 +529,35 @@ static int bes2600_pwr_enter_lp_mode(struct bes2600_common *hw_priv)
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
atomic_set(&hw_priv->bes_power.pm_set_in_process, 0);
|
atomic_set(&hw_priv->bes_power.pm_set_in_process, 0);
|
||||||
bes_err("%s, set operation mode fail\n", __func__);
|
bes_err("%s, set operation mode fail\n", __func__);
|
||||||
|
timeouts++;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait power save mode changed indication */
|
/* wait power save mode changed indication */
|
||||||
status = wait_for_completion_timeout(&hw_priv->bes_power.pm_enter_cmpl, 5 * HZ);
|
status = wait_for_completion_timeout(&hw_priv->bes_power.pm_enter_cmpl, 5 * HZ);
|
||||||
atomic_set(&hw_priv->bes_power.pm_set_in_process, 0);
|
atomic_set(&hw_priv->bes_power.pm_set_in_process, 0);
|
||||||
reinit_completion(&hw_priv->bes_power.pm_enter_cmpl);
|
reinit_completion(&hw_priv->bes_power.pm_enter_cmpl);
|
||||||
if (!status)
|
if (!status) {
|
||||||
bes_err("%s, wait pm ind timeout\n", __func__);
|
bes_err("%s, wait pm ind timeout\n", __func__);
|
||||||
|
timeouts++;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bes_devel("skip enter lp mode\n");
|
bes_devel("skip enter lp mode\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set device low power configuration */
|
/*
|
||||||
bes2600_pwr_device_enter_lp_mode(hw_priv);
|
* Enter the device-end of the LP transition only if every per-VIF
|
||||||
|
* mac80211 handshake reached firmware-ACKed completion. Doing the
|
||||||
|
* device-LP setup while any VIF is still pending leaves the driver
|
||||||
|
* in an inconsistent state that cascades into SDIO TX errors on
|
||||||
|
* the BES2600.
|
||||||
|
*/
|
||||||
|
if (timeouts == 0)
|
||||||
|
bes2600_pwr_device_enter_lp_mode(hw_priv);
|
||||||
|
else
|
||||||
|
ret = -ETIMEDOUT;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -790,41 +790,6 @@ void bes2600_core_release(struct bes2600_common *self)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (GET_MAC_ADDR_METHOD == 2) || (GET_MAC_ADDR_METHOD == 3) /* To use macaddr and ps mode of customers */
|
|
||||||
int access_file(char *path, char *buffer, int size, int isRead)
|
|
||||||
{
|
|
||||||
int ret=0;
|
|
||||||
struct file *fp;
|
|
||||||
mm_segment_t old_fs = get_fs();
|
|
||||||
|
|
||||||
if(isRead)
|
|
||||||
fp = filp_open(path,O_RDONLY,S_IRUSR);
|
|
||||||
else
|
|
||||||
fp = filp_open(path,O_CREAT|O_WRONLY,S_IRUSR);
|
|
||||||
|
|
||||||
if (IS_ERR(fp)) {
|
|
||||||
bes_err("BES2600 : can't open %s\n", path);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isRead) {
|
|
||||||
fp->f_pos = 0;
|
|
||||||
set_fs(KERNEL_DS);
|
|
||||||
ret = vfs_read(fp,buffer,size,&fp->f_pos);
|
|
||||||
set_fs(old_fs);
|
|
||||||
} else {
|
|
||||||
fp->f_pos = 0;
|
|
||||||
set_fs(KERNEL_DS);
|
|
||||||
ret = vfs_write(fp,buffer,size,&fp->f_pos);
|
|
||||||
set_fs(old_fs);
|
|
||||||
}
|
|
||||||
filp_close(fp,NULL);
|
|
||||||
|
|
||||||
bes_info("BES2600 : access_file return code(%d)\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int bes2600_wifi_start(struct bes2600_common *hw_priv)
|
int bes2600_wifi_start(struct bes2600_common *hw_priv)
|
||||||
{
|
{
|
||||||
int ret = 0, if_id;
|
int ret = 0, if_id;
|
||||||
|
|||||||
+3
-3
@@ -3633,7 +3633,7 @@ static int bes2600_set_power_save(struct ieee80211_hw *hw,
|
|||||||
*
|
*
|
||||||
* Returns: 0 on success or non zero value on failure
|
* Returns: 0 on success or non zero value on failure
|
||||||
*/
|
*/
|
||||||
int bes2600_start_stop_tsm(struct ieee80211_hw *hw, void *data)
|
static int bes2600_start_stop_tsm(struct ieee80211_hw *hw, void *data)
|
||||||
{
|
{
|
||||||
struct bes_msg_start_stop_tsm *start_stop_tsm =
|
struct bes_msg_start_stop_tsm *start_stop_tsm =
|
||||||
(struct bes_msg_start_stop_tsm *) data;
|
(struct bes_msg_start_stop_tsm *) data;
|
||||||
@@ -3663,7 +3663,7 @@ int bes2600_start_stop_tsm(struct ieee80211_hw *hw, void *data)
|
|||||||
*
|
*
|
||||||
* Returns: TSM parameters collected
|
* Returns: TSM parameters collected
|
||||||
*/
|
*/
|
||||||
int bes2600_get_tsm_params(struct ieee80211_hw *hw)
|
static int bes2600_get_tsm_params(struct ieee80211_hw *hw)
|
||||||
{
|
{
|
||||||
struct bes2600_common *hw_priv = hw->priv;
|
struct bes2600_common *hw_priv = hw->priv;
|
||||||
struct bes_tsm_stats tsm_stats;
|
struct bes_tsm_stats tsm_stats;
|
||||||
@@ -3703,7 +3703,7 @@ int bes2600_get_tsm_params(struct ieee80211_hw *hw)
|
|||||||
*
|
*
|
||||||
* Returns: Returns the last measured roam delay
|
* Returns: Returns the last measured roam delay
|
||||||
*/
|
*/
|
||||||
int bes2600_get_roam_delay(struct ieee80211_hw *hw)
|
static int bes2600_get_roam_delay(struct ieee80211_hw *hw)
|
||||||
{
|
{
|
||||||
struct bes2600_common *hw_priv = hw->priv;
|
struct bes2600_common *hw_priv = hw->priv;
|
||||||
u16 roam_delay = hw_priv->tsm_info.roam_delay / 1000;
|
u16 roam_delay = hw_priv->tsm_info.roam_delay / 1000;
|
||||||
|
|||||||
@@ -2236,7 +2236,5 @@ int wsm_cpu_usage_cmd(struct bes2600_common *hw_priv);
|
|||||||
|
|
||||||
int wsm_wifi_status_cmd(struct bes2600_common *hw_priv, uint32_t status);
|
int wsm_wifi_status_cmd(struct bes2600_common *hw_priv, uint32_t status);
|
||||||
|
|
||||||
#if defined(STANDARD_FACTORY_EFUSE_FLAG)
|
|
||||||
int wsm_save_factory_txt_to_mcu(struct bes2600_common *hw_priv, const u8 *data, int if_id, enum bes2600_rf_cmd_type cmd_type);
|
int wsm_save_factory_txt_to_mcu(struct bes2600_common *hw_priv, const u8 *data, int if_id, enum bes2600_rf_cmd_type cmd_type);
|
||||||
#endif
|
|
||||||
#endif /* BES2600_HWIO_H_INCLUDED */
|
#endif /* BES2600_HWIO_H_INCLUDED */
|
||||||
|
|||||||
Reference in New Issue
Block a user