Commit 96b46187 authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: brfoffbyhw is always false



As a consequence of the bHWPwrPindetect removal, brfoffbyhw is never set
to true any more. Remove the variable and code that depends on
brfoffbyhw == true.

Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210918135722.23976-1-martin@kaiser.cx


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65e31407
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ struct pwrctrl_priv {
	u8		wepkeymask;
	u8		bHWPowerdown;/* if support hw power down */
	u8		bkeepfwalive;
	u8		brfoffbyhw;
};

#define rtw_get_ips_mode_req(pwrctrlpriv) \
+0 −7
Original line number Diff line number Diff line
@@ -1289,11 +1289,6 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
	int wait_status;
	struct	wifidirect_info *pwdinfo = &padapter->wdinfo;

	if (padapter->pwrctrlpriv.brfoffbyhw && padapter->bDriverStopped) {
		ret = -EINVAL;
		goto exit;
	}

	if (!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)) {
		/*	P2P is enabled */
		wait_for_surveydone = 200;
@@ -1336,8 +1331,6 @@ static int rtw_wx_get_scan(struct net_device *dev, struct iw_request_info *a,
	wrqu->data.length = ev - extra;
	wrqu->data.flags = 0;

exit:

	return ret;
}

+0 −1
Original line number Diff line number Diff line
@@ -305,7 +305,6 @@ int rtw_hw_resume(struct adapter *padapter)
		netif_wake_queue(pnetdev);

	pwrpriv->bkeepfwalive = false;
	pwrpriv->brfoffbyhw = false;

	pwrpriv->rf_pwrstate = rf_on;
	pwrpriv->bips_processing = false;