Build your own kernel headers

Aside of building drivers for external devices, you might find my post helpful.
TL;DR: change antenna’s orientation

ps: of course keep in mind that if your CM has its own wifi chip then pluggin UFL jack into onboard socket will be fruitless ;p