diff options
| author | 2022-03-27 20:09:37 +0200 | |
|---|---|---|
| committer | 2022-04-04 07:33:46 +0200 | |
| commit | e894c76b6b2c4676657e4aae3ef641b4c0b276ce (patch) | |
| tree | 0fdac56da5b0fd53fba90133766dd9ee352a5650 /drivers | |
| parent | staging: r8188eu: use ieee80211 define for version check (diff) | |
staging: r8188eu: use ieee80211 helper to read the pwr bit
Use the ieee80211 helper to read the power management bit.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220327180944.712545-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/staging/r8188eu/core/rtw_recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c index fc7f2a559f9b..5af715a08430 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -1079,7 +1079,7 @@ static int validate_recv_frame(struct adapter *adapter, struct recv_frame *precv pattrib->frag_num = GetFragNum(ptr); pattrib->seq_num = GetSequence(ptr); - pattrib->pw_save = GetPwrMgt(ptr); + pattrib->pw_save = ieee80211_has_pm(fc); pattrib->mfrag = ieee80211_has_morefrags(fc); pattrib->mdata = ieee80211_has_moredata(fc); pattrib->privacy = ieee80211_has_protected(fc); |
