Commit b654188
Duc Huynh BV
Insert TIM after DS Parameter only if DS IE exists
The update_BCNTIM() function was always adding a fixed +3 offset assuming that
the DS Parameter Set IE (length 3) was present. However, on 5 GHz beacons, the
DS IE is typically absent. As a result, TIM was inserted 3 bytes past the
correct offset, overwriting the first bytes of the following IE (usually RSN),
which led to corrupted RSN contents (e.g., “RSN ver 0x0501”) and failed
associations.
This patch fixes the issue by checking for the presence of _DSSET_IE_ using
rtw_get_ie() and adding the +3 offset only if the DS Parameter IE actually
exists. This preserves RSN and other IEs, ensures correct beacon formatting on
5 GHz, and restores stable P2P and 5 GHz connectivity.
Signed-off-by: Duc Huynh BV <[email protected]>1 parent 3696de1 commit b654188
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments