Commit 8ffe4326 authored by Jiantao Xiao's avatar Jiantao Xiao
Browse files

Revert "net: hns3: fix getting supported parameter from driver in hclge_set_wol"

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7ON9Y


CVE: NA

----------------------------------------------------------------------

This reverts commit c92b8f62.

Signed-off-by: default avatarJiantao Xiao <xiaojiantao1@h-partners.com>
parent 1c46bf6e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -12248,10 +12248,12 @@ static int hclge_set_wol(struct hnae3_handle *handle,
	struct hclge_vport *vport = hclge_get_vport(handle);
	struct hclge_dev *hdev = vport->back;
	struct hclge_wol_info *wol_info = &hdev->hw.mac.wol;
	u32 wol_supported;
	u32 wol_mode;

	wol_supported = hclge_wol_mode_from_ethtool(wol->supported);
	wol_mode = hclge_wol_mode_from_ethtool(wol->wolopts);
	if (wol_mode & ~wol_info->wol_support_mode)
	if (wol_mode & ~wol_supported)
		return -EINVAL;

	wol_info->wol_current_mode = wol_mode;