mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2026-11-20 18:39:49 -05:00
Driver commit for release MM6X18543.p11 2026-05-13_15:27:19
Firmware version for commit: W9098-17.92.1.p149.88 IW416-16.92.21.p159 W8987-16.92.21.p156.1 IW612-18.99.8.p24 IW610-18.99.8.p24 AW693-18.99.2.p145.201 Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
This commit is contained in:
parent
031aa9bba0
commit
6c8ee594bf
5 changed files with 54 additions and 12 deletions
4
Makefile
4
Makefile
|
|
@ -182,8 +182,8 @@ APPDIR= $(shell if test -d "mapp"; then echo mapp; fi)
|
|||
#############################################################################
|
||||
|
||||
ccflags-y += -I$(KERNELDIR)/include
|
||||
ccflags-y += -DMLAN_RELEASE_VERSION='"543.p8"'
|
||||
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"543.p8"'
|
||||
ccflags-y += -DMLAN_RELEASE_VERSION='"543.p11"'
|
||||
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"543.p11"'
|
||||
ccflags-y += -DREL_MILESTONE='""'
|
||||
|
||||
ccflags-y += -DFPNUM='"92"'
|
||||
|
|
|
|||
|
|
@ -3671,6 +3671,9 @@ table_a:
|
|||
max = 0;
|
||||
bonded_chan_count = 0;
|
||||
for (i = 0; i < rows; i++) {
|
||||
t_bool channel_found = MFALSE;
|
||||
t_u32 check_offset;
|
||||
t_u32 offset;
|
||||
if ((pmadapter->cfp_otp_a + i)->dynamic.flags &
|
||||
NXP_CHANNEL_DISABLED)
|
||||
continue;
|
||||
|
|
@ -3683,18 +3686,47 @@ table_a:
|
|||
*/
|
||||
n = 0;
|
||||
while (n < pmadapter->tx_power_table_a_rows) {
|
||||
if (pmadapter->tx_power_table_a[n * cols] ==
|
||||
(pmadapter->cfp_otp_a + i)->channel)
|
||||
check_offset = n * cols;
|
||||
if (check_offset >=
|
||||
pmadapter->tx_power_table_a_size) {
|
||||
PRINTM(MERROR,
|
||||
"A-band channel lookup offset %u exceeds table size %u\n",
|
||||
check_offset,
|
||||
pmadapter->tx_power_table_a_size);
|
||||
break;
|
||||
}
|
||||
if (pmadapter->tx_power_table_a[check_offset] ==
|
||||
(pmadapter->cfp_otp_a + i)->channel) {
|
||||
channel_found = MTRUE;
|
||||
break;
|
||||
}
|
||||
n++;
|
||||
}
|
||||
|
||||
/* Validate channel was found and n is within bounds */
|
||||
if (!channel_found ||
|
||||
n >= pmadapter->tx_power_table_a_rows) {
|
||||
PRINTM(MWARN,
|
||||
"Channel %u not found in A-band power table\n",
|
||||
(pmadapter->cfp_otp_a + i)->channel);
|
||||
goto skip_a_channel;
|
||||
}
|
||||
/* Get the max value among all mod groups for this chan
|
||||
*/
|
||||
for (j = 1; j < cols; j++)
|
||||
max = MAX(max,
|
||||
pmadapter->tx_power_table_a[n * cols +
|
||||
j]);
|
||||
|
||||
for (j = 1; j < cols; j++) {
|
||||
offset = n * cols + j;
|
||||
if (offset >=
|
||||
pmadapter->tx_power_table_a_size) {
|
||||
PRINTM(MERROR,
|
||||
"A-band power offset %u exceeds table size %u\n",
|
||||
offset,
|
||||
pmadapter->tx_power_table_a_size);
|
||||
goto skip_a_channel;
|
||||
}
|
||||
max = MAX(max,
|
||||
pmadapter->tx_power_table_a[offset]);
|
||||
}
|
||||
bonded_chan_count++;
|
||||
|
||||
if ((i < (rows - 1)) &&
|
||||
|
|
@ -3719,9 +3751,10 @@ table_a:
|
|||
/* Apply the max power value to all channels in this
|
||||
* bonded group
|
||||
*/
|
||||
for (k = 0; k < bonded_chan_count; k++)
|
||||
for (k = 0; k < bonded_chan_count && k <= i; k++)
|
||||
(pmadapter->cfp_otp_a + i - k)->max_tx_power =
|
||||
max;
|
||||
skip_a_channel:
|
||||
max = 0;
|
||||
bonded_chan_count = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1777,7 +1777,8 @@ static void wlan_update_hw_spec(pmlan_adapter pmadapter)
|
|||
PRINTM(MERROR,
|
||||
"LHX|hw_spec=%d, user_2g_he_cap=%p\n",
|
||||
i,
|
||||
pmadapter->priv[i]->user_2g_he_cap);
|
||||
&pmadapter->priv[i]
|
||||
->user_2g_he_cap);
|
||||
DBG_HEXDUMP(
|
||||
MERROR, "LHX|hw_spec",
|
||||
user_he_cap_2g_tlv->he_phy_cap,
|
||||
|
|
|
|||
|
|
@ -2672,8 +2672,12 @@ static mlan_status wlan_ret_sta_config(pmlan_private pmpriv,
|
|||
*bandcfg = tlv_band_channel->bandcfg;
|
||||
bss->param.sta_channel.channel =
|
||||
tlv_band_channel->channel;
|
||||
/* Channel 14 (Japan) does not support 802.11n.
|
||||
*/
|
||||
bss->param.sta_channel.is_11n_enabled =
|
||||
IS_11N_ENABLED(pmpriv);
|
||||
(tlv_band_channel->channel == 14) ?
|
||||
0 :
|
||||
IS_11N_ENABLED(pmpriv);
|
||||
if (bandcfg->chanWidth == CHAN_BW_80MHZ)
|
||||
bss->param.sta_channel.center_chan =
|
||||
wlan_get_center_freq_idx(
|
||||
|
|
|
|||
|
|
@ -2884,8 +2884,12 @@ static mlan_status wlan_uap_ret_sys_config(pmlan_private pmpriv,
|
|||
bss->param.ap_channel.channel =
|
||||
chan_band_tlv->channel;
|
||||
bss->param.ap_channel.center_chan = 0;
|
||||
/* Channel 14 (Japan) does not support
|
||||
* 802.11n. */
|
||||
bss->param.ap_channel.is_11n_enabled =
|
||||
pmpriv->is_11n_enabled;
|
||||
(chan_band_tlv->channel == 14) ?
|
||||
0 :
|
||||
pmpriv->is_11n_enabled;
|
||||
pmpriv->uap_channel =
|
||||
chan_band_tlv->channel;
|
||||
pmpriv->uap_bandwidth =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue