Funny, because I thought of the same exact idea (long time ago, when I encountered this problem)! I have no experience with C++, but I WOULD love to dive into C++ programming with Kexts to begin. I know about 13 languages so the transition shouldn't be that hard for C++ (I love programming).
If it does end up that I make such a Kext, it would be a groundbreaking change for those with Hackbooks without internal LAN modules and incompatible Airplay WLAN cards. I'd love to jump in!
@aparagas,
Did you ever make any headway on this? I had started work on it some time ago, and I thought I would "finish" it a little bit before I needed it (may need it in the near future).
It is available here:
https://github.com/RehabMan/OS-X-Null-Ethernet
You will need to build it using xcode. Please read the README.md so you know how to setup your DSDT for making it load (patch.txt, use MaciASL to apply).
I tested it a bit here, by doing this:
- removed my real WiFi card
- disabled my real Ethernet device by removing the driver
- installed this kext and did the DSDT patch
Results:
- it shows in SysPrefs->Network
- it shows in Network Utility as link status "Inactive", link speed "0 Mbit/s"
- it has a self assigned IP address (169...)
- it is pulling the MAC address from the DSDT patch as I intended
- system.log shows it loading and methods being called on it as expected
- shows in IOreg as I expected... (like a network device would)
- shows as IOBuiltIn=true
- by removing all network interfaces (/Library/Preferences/SystemParameters/NetworkInterfaces.plist), it shows as 'en0'
Problem is, I do not currently have a USB WiFi dongle to test Mac App Store access with...
It probably needs work, but I thought you might want to start where I left off.
Note: I went ahead and made a build available on Bitbucket. Read the README for download location.