|
Edited by jeevasv at 2016-1-19 19:26
OK. I found the reason why my RTL8192SU is not detected. It was originally supported by the rtl8712 driver which is in the staging for so long. Recently in the 4.4 kernel the whole realtek driver set got a major rewrite and everything got merged into the rtlwifi driver. That is another story.
Anyway to enable the support staging and rtl8712 driver need to be enabled like it is enabled in the RPI kernel. Once this is enabled the ieee80211.h header file need to patched for gcc5 support. So here is the patch snippet which needs to be included in the linux3.4 patch file.
- --- a/drivers/staging/rtl8712/ieee80211.h
- +++ b/drivers/staging/rtl8712/ieee80211.h
- @@ -734,7 +734,7 @@
- #define IEEE_G (1<<2)
- #define IEEE_MODE_MASK (IEEE_A|IEEE_B|IEEE_G)
-
- -extern inline int ieee80211_is_empty_essid(const char *essid, int essid_len)
- +static __inline int ieee80211_is_empty_essid(const char *essid, int essid_len)
- {
- /* Single white space is for Linksys APs */
- if (essid_len == 1 && essid[0] == ' ')
- @@ -748,7 +748,7 @@
- return 1;
- }
-
- -extern inline int ieee80211_get_hdrlen(u16 fc)
- +static __inline int ieee80211_get_hdrlen(u16 fc)
- {
- int hdrlen = 24;
-
Copy code
And with this driver I can see that Firmware loading from file system perfectly. I think that is really great as this will enable mainstream distros like arch to be enabled as it is without worrying about driver support.
|
|