We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf44d5 commit c829198Copy full SHA for c829198
drivers/net/wireless/ath/ath10k/wmi-tlv.c
@@ -1614,10 +1614,10 @@ ath10k_wmi_tlv_op_gen_start_scan(struct ath10k *ar,
1614
bssid_len = arg->n_bssids * sizeof(struct wmi_mac_addr);
1615
ie_len = roundup(arg->ie_len, 4);
1616
len = (sizeof(*tlv) + sizeof(*cmd)) +
1617
- (arg->n_channels ? sizeof(*tlv) + chan_len : 0) +
1618
- (arg->n_ssids ? sizeof(*tlv) + ssid_len : 0) +
1619
- (arg->n_bssids ? sizeof(*tlv) + bssid_len : 0) +
1620
- (arg->ie_len ? sizeof(*tlv) + ie_len : 0);
+ sizeof(*tlv) + chan_len +
+ sizeof(*tlv) + ssid_len +
+ sizeof(*tlv) + bssid_len +
+ sizeof(*tlv) + ie_len;
1621
1622
skb = ath10k_wmi_alloc_skb(ar, len);
1623
if (!skb)
0 commit comments