You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Store GI in cfg80211_bitrate_mask, add spatial stream index, enhance MCS documentation, and update test script
This commit refactors the vwifi driver to store Guard Interval (GI)
information solely in cfg80211_bitrate_mask, eliminating the redundant short_gi variable,
and introduces a spatial stream index for future optimization.
It also adds a comprehensive comment block for manual_mcs and updates the test script to
validate all MCS indices (0–31) with sgi-2.4 and lgi-2.4.
changes:
- vwifi_vif:
- Remove short_gi, storing GI in vif->bitrate_mask.control[NL80211_BAND_2GHZ].gi.
- Add spatial_streams field (int, default 1) for future multi-stream support.
- Add manual_mcs field with detailed comment block explaining its role in storing
the first enabled MCS for consistent bitrate reporting.
- vwifi_set_bitrate_mask:
- Store GI in vif->bitrate_mask.control[NL80211_BAND_2GHZ].gi, removing short_gi usage.
- vwifi_get_station:
- GI logic using vif->bitrate_mask.gi for short (0.4µs), long (0.8µs), or default GI.
- Correct pr_info format string for modulation and coding_rate alignment.
- Configure sinfo->rxrate/txrate with vif->bitrate_mask.gi and vif->manual_mcs.
Test script (test_vwifi_bitrates.sh):
-Updated to test MCS 0–31 with sgi-2.4 and lgi-2.4:
- Test header (Testing MCS <mcs> with <gi> on vw1).
- GI status (Set GI to long/short).
- iw dev vw1 link output (MAC, SSID, freq, RX/TX, signal, bitrates).
- Success/failure message with actual vs. expected bitrate.
- Add expected bitrate arrays for lgi-2.4 and sgi-2.4.
- Enhance stability with 2s retry sleep, 1s sleep after iw set bitrates, and 2s setup delay.
- Ensure cleanup resets bitrate .
Testing:
- Verified GI (0.4µs/0.8µs) and MCS (0–31) with iw dev vw1 set bitrates and iw dev vw1 link.
0 commit comments