From: Maya Erez Date: Tue, 24 Jul 2018 07:44:39 +0000 (+0300) Subject: wil6210: prevent FW download if HW is configured for secured boot X-Git-Tag: v4.19-rc1~140^2~25^2~13^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d554edcd972d46179bf10258379e80f609bb52e5;p=thirdparty%2Fkernel%2Flinux.git wil6210: prevent FW download if HW is configured for secured boot Currently the driver doesn't support secured boot flow, hence prevent FW download in case HW is configured for such a flow. Signed-off-by: Maya Erez Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c index 7ad22dfd66985..1d4ce8e22483b 100644 --- a/drivers/net/wireless/ath/wil6210/main.c +++ b/drivers/net/wireless/ath/wil6210/main.c @@ -1560,6 +1560,11 @@ int wil_reset(struct wil6210_priv *wil, bool load_fw) if (load_fw) { char board_file[WIL_BOARD_FILE_MAX_NAMELEN]; + if (wil->secured_boot) { + wil_err(wil, "secured boot is not supported\n"); + return -ENOTSUPP; + } + board_file[0] = '\0'; wil_get_board_file(wil, board_file, sizeof(board_file)); wil_info(wil, "Use firmware <%s> + board <%s>\n",