Skip to content

Commit

Permalink
fix Q/I to I/Q order for Raspberry PI/Nexus 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mzakharo committed Jun 15, 2020
1 parent 18339e5 commit c74d78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/csi_extractor.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ process_frame_hook(struct sk_buff *p, struct wlc_d11rxhdr *wlc_rxhdr, struct wlc
// convert to int16 real, int16 imag
struct int14 sint14;
sint14.val = (ucodecsifrm->csi[i] >> 14) & 0x3fff;
udpfrm->csi_values[inserted_csi_values] = (uint32)((int16)(sint14.val)<<16);
udpfrm->csi_values[inserted_csi_values] = (uint32)((int16)(sint14.val)) & 0xffff;
sint14.val = ucodecsifrm->csi[i] & 0x3fff;
udpfrm->csi_values[inserted_csi_values] |= ((uint32)((int16)(sint14.val)))&0xffff;
udpfrm->csi_values[inserted_csi_values] |= ((uint32)((int16)(sint14.val))) << 16;
#elif ((NEXMON_CHIP == CHIP_VER_BCM4358) || (NEXMON_CHIP == CHIP_VER_BCM4366c0))
// csi format
// for bcm4358:
Expand Down

0 comments on commit c74d78b

Please sign in to comment.