Repository navigation
rtl8188eus-openipc: build against the 3.0 kernels - #2726
Conversation
rtw_cfg80211_init_wiphy() fills in band->vht_cap unconditionally, and struct ieee80211_sta_vht_cap does not exist before Linux 3.6. Every other VHT use in ioctl_cfg80211.c already sits behind a >= 3.6 check; this puts the 2.4 GHz helper and its one call behind the same check. The RTL8188EU is an 802.11n part, so nothing is lost on any kernel. Needed for the hi3516cv100 family (Linux 3.0.8), e.g. the D-Link DCS-2330L (OpenIPC/builder#216).
PR Summary by QodoBuild rtl8188eus-openipc against Linux 3.0 kernels
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Camera behavior remains unverified
|
rtw_cfg80211_init_wiphy()fills inband->vht_capunconditionally, andstruct ieee80211_sta_vht_capdoes not exist before Linux 3.6. This putsrtw_cfg80211_create_vht_cap()and its one 2.4 GHz call behind the same>= 3.6check the file already uses forrtw_cfg80211_init_vht_capab()(line 8919). RTL8188EU is an 802.11n part, so nothing is lost on any kernel, and kernels >= 3.6 (e.g.hi3516ev300_dev, the only current user) compile exactly as before.Needed for the hi3516cv100 family (Linux 3.0.8). First user: the D-Link DCS-2330L in OpenIPC/builder#216, which pairs a Hi3518CV100 with an RTL8188EU (
0bda:8179).Verified locally on the
hi3518cv100_litetoolchain/kernel:ioctl_cfg80211.c:8926: error: invalid use of undefined type 'struct ieee80211_sta_vht_cap', plusIEEE80211_VHT_CAP_RXLDPC/IEEE80211_VHT_MCS_SUPPORT_0_9undeclared8188eu.kobuilds and the full image assembles (rootfs 4904/5120 KB, uImage 1821/1983 KB)The fix matches what the reporter of builder#216 applied by hand to get Wi-Fi working on their camera.
Hardware
Not tested on a camera by me — I have no hi3516cv100-family board with an RTL8188EU. The evidence there is:
>= 3.6guards applied by hand, built for 3.0.8 with this toolchain. That module was built outside Buildroot; the image from this patch has not been booted yet. A hardware run is requested from the reporter in hi3518cv100_lite_dlink-dcs-2330l: D-Link DCS-2330L rev A builder#217.#ifs are true, so the preprocessed source is identical to today's. No board that currently enablesRTL8188EUS_OPENIPC(onlyhi3516ev300_dev, 4.9) builds different code, and no cv100 image enables the driver yet, so merging this changes no shipped image.