Skip to content

Commit c9e96b1

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 3c5b13e commit c9e96b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hif/fwcmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3743,8 +3743,8 @@ int mwl_fwcmd_set_txpwrlmt_cfg_data(struct ieee80211_hw *hw)
37433743
&ok);
37443744
ptr += parsed_len;
37453745
size -= parsed_len;
3746-
data_len = le16_to_cpu(hdr.len) -
3747-
sizeof(struct mwl_txpwrlmt_cfg_entry_hdr);
3746+
data_len = le16_to_cpu(hdr.len);
3747+
37483748
if (ok == 0) {
37493749
wiphy_err(hw->wiphy,
37503750
"txpwrlmt config failed to parse subband header\n");

0 commit comments

Comments
 (0)