mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
net: wireless: bcm4329: Update to version 4.218.248-20
- Use US/69 locale for US - Remove dhdsdio_mem_dump() function Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
78d2a82741
commit
dae5afa6a4
|
|
@ -426,7 +426,6 @@ static void dhdsdio_sdtest_set(dhd_bus_t *bus, bool start);
|
|||
|
||||
#ifdef DHD_DEBUG_TRAP
|
||||
static int dhdsdio_checkdied(dhd_bus_t *bus, uint8 *data, uint size);
|
||||
static int dhdsdio_mem_dump(dhd_bus_t *bus);
|
||||
#endif /* DHD_DEBUG_TRAP */
|
||||
static int dhdsdio_download_state(dhd_bus_t *bus, bool enter);
|
||||
|
||||
|
|
@ -1843,11 +1842,6 @@ dhdsdio_checkdied(dhd_bus_t *bus, uint8 *data, uint size)
|
|||
DHD_ERROR(("%s: %s\n", __FUNCTION__, strbuf.origbuf));
|
||||
}
|
||||
|
||||
if (sdpcm_shared.flags & SDPCM_SHARED_TRAP) {
|
||||
/* Mem dump to a file on device */
|
||||
dhdsdio_mem_dump(bus);
|
||||
}
|
||||
|
||||
done:
|
||||
if (mbuffer)
|
||||
MFREE(bus->dhd->osh, mbuffer, msize);
|
||||
|
|
@ -1856,60 +1850,6 @@ dhdsdio_checkdied(dhd_bus_t *bus, uint8 *data, uint size)
|
|||
|
||||
return bcmerror;
|
||||
}
|
||||
|
||||
static int
|
||||
dhdsdio_mem_dump(dhd_bus_t *bus)
|
||||
{
|
||||
int ret = 0;
|
||||
int size; /* Full mem size */
|
||||
int start = 0; /* Start address */
|
||||
int read_size = 0; /* Read size of each iteration */
|
||||
uint8 *buf = NULL, *databuf = NULL;
|
||||
|
||||
/* Get full mem size */
|
||||
size = bus->ramsize;
|
||||
buf = MALLOC(bus->dhd->osh, size);
|
||||
if (!buf) {
|
||||
printf("%s: Out of memory (%d bytes)\n", __FUNCTION__, size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Read mem content */
|
||||
printf("Dump dongle memory");
|
||||
databuf = buf;
|
||||
while (size)
|
||||
{
|
||||
read_size = MIN(MEMBLOCK, size);
|
||||
if ((ret = dhdsdio_membytes(bus, FALSE, start, databuf, read_size)))
|
||||
{
|
||||
printf("%s: Error membytes %d\n", __FUNCTION__, ret);
|
||||
if (buf) {
|
||||
MFREE(bus->dhd->osh, buf, size);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
printf(".");
|
||||
|
||||
/* Decrement size and increment start address */
|
||||
size -= read_size;
|
||||
start += read_size;
|
||||
databuf += read_size;
|
||||
}
|
||||
printf("Done\n");
|
||||
|
||||
#ifdef DHD_DEBUG
|
||||
/* free buf before return !!! */
|
||||
if (write_to_file(bus->dhd, buf, bus->ramsize))
|
||||
{
|
||||
printf("%s: Error writing to files\n", __FUNCTION__);
|
||||
return -1;
|
||||
}
|
||||
/* buf free handled in write_to_file, not here */
|
||||
#else
|
||||
MFREE(bus->dhd->osh, buf, size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
#endif /* DHD_DEBUG_TRAP */
|
||||
|
||||
#ifdef DHD_DEBUG
|
||||
|
|
|
|||
|
|
@ -33,16 +33,16 @@
|
|||
|
||||
#define EPI_RC_NUMBER 248
|
||||
|
||||
#define EPI_INCREMENTAL_NUMBER 18
|
||||
#define EPI_INCREMENTAL_NUMBER 20
|
||||
|
||||
#define EPI_BUILD_NUMBER 0
|
||||
|
||||
#define EPI_VERSION 4, 218, 248, 18
|
||||
#define EPI_VERSION 4, 218, 248, 20
|
||||
|
||||
#define EPI_VERSION_NUM 0x04daf812
|
||||
#define EPI_VERSION_NUM 0x04daf814
|
||||
|
||||
|
||||
#define EPI_VERSION_STR "4.218.248.18"
|
||||
#define EPI_ROUTER_VERSION_STR "4.219.248.18"
|
||||
#define EPI_VERSION_STR "4.218.248.20"
|
||||
#define EPI_ROUTER_VERSION_STR "4.219.248.20"
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -632,8 +632,8 @@ wl_iw_set_country_code(struct net_device *dev, char *ccode)
|
|||
if (ccode && (country_code[0] != 0)) {
|
||||
#ifdef CONFIG_US_NON_DFS_CHANNELS_ONLY
|
||||
if (use_non_dfs_channels && !strncmp(country_code, "US", 2))
|
||||
strncpy(country_code, "Q2", WLC_CNTRY_BUF_SZ);
|
||||
if (!use_non_dfs_channels && !strncmp(country_code, "Q2", 2))
|
||||
strncpy(country_code, "US/69", WLC_CNTRY_BUF_SZ);
|
||||
if (!use_non_dfs_channels && !strncmp(country_code, "US/69", 2))
|
||||
strncpy(country_code, "US", WLC_CNTRY_BUF_SZ);
|
||||
#endif
|
||||
ret = dev_wlc_ioctl(dev, WLC_SET_COUNTRY, &country_code, sizeof(country_code));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user