jurobystricky / Netgear-A6210

AC1200 High Gain WiFi USB Adapter Linux kernel driver
291 stars 155 forks source link

raspberry pi kernel 4.14 driver compile warning #101

Open MrEngman opened 6 years ago

MrEngman commented 6 years ago

Using the source from https://github.com/genodeftest/Netgear-A6210/tree/port-to-4.14 to compile the driver for raspberry pi kernel 4.14 I'm getting a warning:-

  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../sta/sta.o
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../mgmt/mgmt_vht.o
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../common/vht.o
/home/pi/wifi-src1/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_giwscan’:
/home/pi/wifi-src1/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c:831:14: warning: array subscript is below array bounds [-Warray-bounds]
   current_ev = IWE_STREAM_ADD_POINT(info, current_ev, end_buf,&iwe, (char *)pIoctlScan->MainSharedKey[(iwe.u.data.flags & IW_ENCODE_INDEX)-1]);
              ^
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../common/crypt_md5.o
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/pi/wifi-src1/Netgear-A6210/os/linux/../../common/crypt_aes.o

Can anyone help fix it.

A similar warning re:- memcpy has been fixed so hopefully this can be to.

Reporting here as there doesn't seem to be the option of reporting issues at github.com/genodeftest.