Stock firmware on the Photon Q (latest ICS fw, no JB out yet) is using version 18.104.22.168_0731.1. In CM there it says (in CORE/MAC/inc/qwlan_version.h) that the firmware version 22.214.171.124, but differs from the 126.96.36.199 in codeaurora.org, in the commit epinter said it's 188.8.131.52. Also, I couldn't find 184.108.40.206 on code aurora. Well a bit puzzling
Where did you take the prima wlan driver from or which from branch / tag?