diff options
-rw-r--r-- | net/mac80211/mlme.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 3a1dde3c7956..59e2e06aa4e9 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -625,11 +625,12 @@ void ieee80211_recalc_ps(struct ieee80211_local *local, s32 latency) | |||
625 | /* | 625 | /* |
626 | * Go to full PSM if the user configures a very low | 626 | * Go to full PSM if the user configures a very low |
627 | * latency requirement. | 627 | * latency requirement. |
628 | * The 2 second value is there for compatibility until | 628 | * The 2000 second value is there for compatibility |
629 | * the PM_QOS_NETWORK_LATENCY is configured with real | 629 | * until the PM_QOS_NETWORK_LATENCY is configured |
630 | * values. | 630 | * with real values. |
631 | */ | 631 | */ |
632 | if (latency > 1900000000 && latency != 2000000000) | 632 | if (latency > (1900 * USEC_PER_MSEC) && |
633 | latency != (2000 * USEC_PER_SEC)) | ||
633 | timeout = 0; | 634 | timeout = 0; |
634 | else | 635 | else |
635 | timeout = 100; | 636 | timeout = 100; |