Wifi-HAL: Add length check for rb to mantain correct length

If last write length is less compared to read index, the
read length overflows.

Added a check to avoid length overflows.

CRs-Fixed: 2789895
Change-Id: Ieea770e315294c6b6b2af5e4b42460ba87db8b4a
2 files changed
tree: e92b99c9e179fe0d085a2bb4e0f9dfd2079000dd
  1. cld80211-lib/
  2. qcwcn/
  3. wcnss-service/
  4. Android.mk