forked from rubenslte/android_kernel_samsung_msm8226
Merge "radio: tavarua: Use proper length to read the data"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
f5f0d782df
@@ -1009,7 +1009,7 @@ static void tavarua_handle_interrupts(struct tavarua_device *radio)
|
||||
radio->xfr_in_progress = 0;
|
||||
} else if (radio->xfr_bytes_left > 14) {
|
||||
copy_from_xfr(radio, TAVARUA_BUF_SRCH_LIST,
|
||||
XFR_REG_NUM);
|
||||
RX_STATIONS0_LEN);
|
||||
request_read_xfr(radio, RX_STATIONS_1);
|
||||
} else if (radio->xfr_bytes_left) {
|
||||
FMDBG("In else RX_STATIONS_0\n");
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#define BYTES_PER_BLOCK (3)
|
||||
#define MAX_PS_LENGTH (96)
|
||||
#define MAX_RT_LENGTH (64)
|
||||
#define RX_STATIONS0_LEN (15)
|
||||
|
||||
#define XFRDAT0 (0x20)
|
||||
#define XFRDAT1 (0x21)
|
||||
|
||||
Reference in New Issue
Block a user