Skip to content

Commit

Permalink
Fix undersized txpwrlmt message to firmware
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nhed committed Sep 24, 2022
1 parent 0b5553e commit e215a73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hif/fwcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3771,8 +3771,7 @@ int mwl_fwcmd_set_txpwrlmt_cfg_data(struct ieee80211_hw *hw)

ptr += parsed_len;
size -= parsed_len;
data_len = le16_to_cpu(hdr.len) -
sizeof(struct mwl_txpwrlmt_cfg_entry_hdr);
data_len = le16_to_cpu(hdr.len);

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

Expand Down

0 comments on commit e215a73

Please sign in to comment.