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