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