staging: vt6655: power.c: Remove setting ATIM Window in PSvEnablePowerSaving()
authorLourdes Pedrajas <lu@pplo.net>
Tue, 10 Mar 2020 14:09:07 +0000 (15:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 07:08:49 +0000 (08:08 +0100)
Every time priv->op_mode is not NL80211_IFTYPE_ADHOC it sets ATIM Window, but
this feature it is marked TODO in 2014 and did go untouched since 2015.

Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/d9b8e434e09cb8885026a71441bf3a6919dba3da.1583848946.git.lu@pplo.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/power.c

index bfd598a..a68ec52 100644 (file)
@@ -58,11 +58,6 @@ void PSvEnablePowerSaving(struct vnt_private *priv,
        if (priv->op_mode != NL80211_IFTYPE_ADHOC) {
                /* set AID */
                VNSvOutPortW(priv->PortOffset + MAC_REG_AIDATIM, wAID);
-       } else {
-               /* set ATIM Window */
-#if 0 /* TODO atim window */
-               MACvWriteATIMW(priv->PortOffset, pMgmt->wCurrATIMWindow);
-#endif
        }
        /* Set AutoSleep */
        MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);