Skip to content

Commit fad9930

Browse files
kuba-moodavem330
authored andcommitted
wil6210: reject unsupported coalescing params
Set ethtool_ops->supported_coalesce_params to let the core reject unsupported coalescing parameters. This driver did not previously reject unsupported parameters. Signed-off-by: Jakub Kicinski <[email protected]> Acked-by: Kalle Valo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 35fa705 commit fad9930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/wireless/ath/wil6210/ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static int wil_ethtoolops_set_coalesce(struct net_device *ndev,
9595
}
9696

9797
static const struct ethtool_ops wil_ethtool_ops = {
98+
.supported_coalesce_params = ETHTOOL_COALESCE_USECS,
9899
.get_drvinfo = cfg80211_get_drvinfo,
99100
.get_coalesce = wil_ethtoolops_get_coalesce,
100101
.set_coalesce = wil_ethtoolops_set_coalesce,

0 commit comments

Comments
 (0)