[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
I am doing this becouse I am learning. I thoght that the hidden options where due to USB/Kernel limitations.

But the options are hidden becouse there "dependencys" not met.

for example you do make manuconfig. Menu comes up. Then you pres "/" this bring the search option. You type "ath9k" A list show up. Lets take a look in

│ Symbol: ATH9K [=n]
│ Type : tristate
│ Prompt: Atheros 802.11n wireless cards support
│ Defined at drivers/net/wireless/ath/ath9k/Kconfig:17
│ [COLOR="Red"] Depends[/COLOR] on: NETDEVICES [=y] && WLAN [=[COLOR="Blue"]n[/COLOR]] && ATH_COMMON [=[COLOR="Blue"]n[/COLOR]] && MAC80211 [=[COLOR="Blue"]n[/COLOR]] │
│ Location:
│ -> Device Drivers
│ -> Network device support (NETDEVICES [=y])
│ -> Wireless LAN (WLAN [=n])
│ -> Atheros Wireless Cards (ATH_COMMON [=n])
│ Selects: ATH9K_HW [=n] && MAC80211_LEDS [=n] && LEDS_CLASS [=y] && NEW_LEDS [=y] && ATH9K_COMMON [=n]

So it means "ATH9K" option is not going to be available in

│ Location:
│ -> Device Drivers
│ -> Network device support (NETDEVICES [=y])
│ -> Wireless LAN (WLAN [=n])
│ -> Atheros Wireless Cards (ATH_COMMON [=n])

Until Depends on: WLAN [=n] ATH_COMMON [=n] MAC80211 [=n] are met!!

So to get those you do "/" "MAC80211" and look againg at "Location" Then go there and activates them.

So That is learn. Clearly "*" or "-*-" es selected or "y" (Kernel Building). And "M" is module requested.

Now I had build many modules before and install in Android without any isue. Last one I build where CISF for JB 4.2.2. CISF allow you to mount a Hardrive in your wifi. We can talk about that latter.

But for umknown issue the ath.ko I am building for jb 4.2.2 it is not building right. I am getting

# insmod ath.ko
insmod: init_module 'ath.ko' failed (Exec format error)

# busybox insmod ath.ko
insmod: can't insert 'ath.ko': invalid module format

Clearly insmod it realated to busybox version I am using

BusyBox v1.21.1 (2014-05-03 15:36:33 IST) multi-call binary.
(BusyBox Distro for Android ARM/MIPS/x86 - BitCubate Apps)

I need to go to bed. I do not know If i have an opportunity tomorrow.

I know you guys are capable of resolving any issue. I just like to post my finding. So here Is the selaction I made on Kernel-GT-P5210_SEA_JB_Opensource JB 4.2.2 to get ath9k available.

MAC80211 & MAC80211_LEDS
│ Location: │
│ -> Networking support (NET [=y]) │
│ -> Wireless (WIRELESS [=y])
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌────────────────────────────────────────────────────────────────────────────────────────── Wireless ──────────────────────────────────────────────────────────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes features. Press <Esc><Esc> to exit, │
│ <?> for Help, </> for Search. Legend: [*] built-in [ ] excluded <M> module < > module capable │
│ │
│ │
│ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ --- Wireless │ │
│ │ <*> cfg80211 - wireless configuration API │ │
│ │ [ ] nl80211 testmode command │ │
│ │ [ ] enable developer warnings │ │
│ │ [ ] cfg80211 regulatory debugging │ │
│ │ [*] enable powersave by default │ │
│ │ [ ] cfg80211 DebugFS entries │ │
│ │ [ ] use statically compiled regulatory rules database │ │
│ │ [*] cfg80211 wireless extensions compatibility │ │
│ │ [*] Wireless extensions sysfs files │ │
│ │ < > Common routines for IEEE802.11 drivers │ │
│ │ [ ] Allow reconnect while already connected │ │
│ │ <M> Generic IEEE 802.11 Networking Stack (mac80211) │ │
│ │ [ ] PID controller based rate control algorithm │ │
│ │ [*] Minstrel │ │
│ │ [*] Minstrel 802.11n support │ │
│ │ Default rate control algorithm (Minstrel) ---> │ │
│ │ [ ] Enable mac80211 mesh networking (pre-802.11s) support │ │
│ │ -*- Enable LED triggers │ │
│ │ [ ] Export mac80211 internals in DebugFS │ │
│ │ [ ] Select mac80211 debugging features --->

│ Location:
│ -> Device Drivers │
│ -> Network device support (NETDEVICES [=y]) │
│ -> Wireless LAN (WLAN [=y])
<M> Atheros Wireless Cards --->
┌─────────────────────────────────────────────────────────────────────────────────── Atheros Wireless Cards ───────────────────────────────────────────────────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes features. Press <Esc><Esc> to exit, │
│ <?> for Help, </> for Search. Legend: [*] built-in [ ] excluded <M> module < > module capable │
│ │
│ │
│ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ --- Atheros Wireless Cards │ │
│ │ [*] Atheros wireless debugging │ │
│ │ < > Atheros 5xxx wireless cards support │ │
│ │ [ ] Atheros 5xxx PCI bus support (NEW) │ │
│ │ [*] Atheros bluetooth coexistence support (NEW) │ │
│ │ <M> Atheros 802.11n wireless cards support │ │
│ │ [*] Atheros ath9k PCI/PCIe bus support (NEW) │ │
│ │ [*] Atheros ath9k AHB bus support │ │
│ │ [*] Atheros ath9k debugging │ │
│ │ [ ] Atheros DFS support for certified platforms (NEW) │ │
│ │ [*] Atheros MAC statistics (NEW) │ │
│ │ [*] Atheros ath9k rate control (NEW) │ │
│ │ <M> Atheros HTC based wireless cards support │ │
│ │ [*] Atheros ath9k_htc debugging │ │
│ │ < > Linux Community AR9170 802.11n USB support │ │
│ │ < > Atheros mobile chipsets support

Just substitude M for *