diff mbox series

AP: Fix HE PPE length calculation

Message ID 20190613172911.4396-1-andrei.otcheretianski@intel.com
State Not Applicable
Headers show
Series AP: Fix HE PPE length calculation | expand

Commit Message

Andrei Otcheretianski June 13, 2019, 5:29 p.m. UTC
An incorrect bit was checked. Fix that.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 src/ap/ieee802_11_he.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrei Otcheretianski June 13, 2019, 12:43 p.m. UTC | #1
> Subject: [PATCH] AP: Fix HE PPE length calculation
> 
> An incorrect bit was checked. Fix that.
> 
> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
> ---
>  src/ap/ieee802_11_he.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c index
> ba22a174a3..d3d3c1db3e 100644
> --- a/src/ap/ieee802_11_he.c
> +++ b/src/ap/ieee802_11_he.c
> @@ -23,7 +23,7 @@ static u8 ieee80211_he_ppet_size(u8 ppe_thres_hdr,
> const u8 *phy_cap_info)
>  	u8 sz = 0, ru;
> 
>  	if ((phy_cap_info[HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX] &
> -	     HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX) == 0)
> +	     HE_PHYCAP_PPE_THRESHOLD_PRESENT) == 0)
>  		return 0;
> 
>  	ru = (ppe_thres_hdr >> HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT) &
> --
> 2.19.1

Please Ignore this one, just noticed that Sven already fixed it :)
diff mbox series

Patch

diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c
index ba22a174a3..d3d3c1db3e 100644
--- a/src/ap/ieee802_11_he.c
+++ b/src/ap/ieee802_11_he.c
@@ -23,7 +23,7 @@  static u8 ieee80211_he_ppet_size(u8 ppe_thres_hdr, const u8 *phy_cap_info)
 	u8 sz = 0, ru;
 
 	if ((phy_cap_info[HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX] &
-	     HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX) == 0)
+	     HE_PHYCAP_PPE_THRESHOLD_PRESENT) == 0)
 		return 0;
 
 	ru = (ppe_thres_hdr >> HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT) &