]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/vt6656/power.c
Merge branch 'acpi-config'
[~andy/linux] / drivers / staging / vt6656 / power.c
index edc8975b2e2a0ceae17aabea15813285cd8c3846..e7d5487d1041ca4f2b284268e6274378df291941 100644 (file)
@@ -233,9 +233,8 @@ void PSvSendPSPOLL(struct vnt_private *pDevice)
        pTxPacket->cbPayloadLen = 0;
 
        /* log failure if sending failed */
-       if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) {
+       if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING)
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Send PS-Poll packet failed..\n");
-       }
 }
 
 /*
@@ -257,10 +256,8 @@ int PSbSendNullPacket(struct vnt_private *pDevice)
        if (pDevice->bLinkPass == false)
                return false;
 
-       if ((pDevice->bEnablePSMode == false) &&
-               (pDevice->fTxDataInSleep == false)) {
-                       return false;
-       }
+       if (pDevice->bEnablePSMode == false && pDevice->tx_trigger == false)
+               return false;
 
        memset(pMgmt->pbyPSPacketPool, 0, sizeof(struct vnt_tx_mgmt)
                + WLAN_NULLDATA_FR_MAXLEN);
@@ -269,7 +266,7 @@ int PSbSendNullPacket(struct vnt_private *pDevice)
                + sizeof(struct vnt_tx_mgmt));
 
        flags = WLAN_SET_FC_FTYPE(WLAN_TYPE_DATA) |
-                        WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL);
+                       WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL);
 
        if (pDevice->bEnablePSMode)
                flags |= WLAN_SET_FC_PWRMGT(1);