Skip to content

Commit 3693ddd

Browse files
committed
Fix undersized txpwrlmt message to firmware
The message includes not only the subband data but also the subband header so reducing the message by the header size caused some data read from file to trashed on way to firmware. With this mod can read back same subband data as is present in the txpwrlmt_cfg.conf file.
1 parent 8ddda0e commit 3693ddd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hif/fwcmd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,8 +3750,7 @@ int mwl_fwcmd_set_txpwrlmt_cfg_data(struct ieee80211_hw *hw)
37503750

37513751
ptr += parsed_len;
37523752
size -= parsed_len;
3753-
data_len = le16_to_cpu(hdr.len) -
3754-
sizeof(struct mwl_txpwrlmt_cfg_entry_hdr);
3753+
data_len = le16_to_cpu(hdr.len);
37553754

37563755
pcmd = (struct hostcmd_cmd_txpwrlmt_cfg *)&priv->pcmd_buf[0];
37573756

0 commit comments

Comments
 (0)