rtl8723au: Upgrade to driver version v4.1.6_7336.20130426

This update replaces the entire source and should be tested. If it fails,
report it and do a "git checkout 4682dce" to return to the previous
version.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Remove special endian headers and use kernel facilities instead

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Change default debugging level

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Eliminate header file

File include/rtw_byteorder.h is not needed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix sparse errors in core/rtw_bt_mp.c

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix smatch warnings in os_dep/recv_linux.c

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8712au: Fix sparse warnings in core/rtw_pwrctrl.c

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix sparse warnings in core/rtw_mp_ioctl.c

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Remove trailing white space in header files

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix sparse warnings in core/rtw_debug.c

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix sparse warnings in core/rtw_mp.c

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Increase maximum RX gain

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Remove byte order header

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723ae: Fix some sparse warnings

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix smatch errors and warnings in os_dep/ioctl_linux.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/os_dep/ioctl_linux.c
/home/finger/rtl8723au/os_dep/ioctl_linux.c:1632 rtw_wx_get_range() warn: assigning (-78) to unsigned variable 'range->avg_qual.level'
/home/finger/rtl8723au/os_dep/ioctl_linux.c:5122 rtw_p2p_get_invitation_procedure() warn: should this be a bitwise op?
/home/finger/rtl8723au/os_dep/ioctl_linux.c:6320 rtw_p2p_get2() warn: statement has no effect 5
/home/finger/rtl8723au/os_dep/ioctl_linux.c:6603 rtw_dbg_port() warn: unsigned 'extra_arg' is never less than zero.
/home/finger/rtl8723au/os_dep/ioctl_linux.c:7493 set_group_key() warn: missing break? reassigning 'keylen'
/home/finger/rtl8723au/os_dep/ioctl_linux.c:9936:24: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10115:24: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10233:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10265:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10314:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10340:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10380:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10565:28: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10612:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10731:35: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10929:27: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10953:33: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:10982:33: error: bad constant expression
/home/finger/rtl8723au/os_dep/ioctl_linux.c:11023:35: error: bad constant expression

Several of these are real errors in the code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix smatch errors/warnings in os_dep/osdep_service.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/os_dep/osdep_service.c
/home/finger/rtl8723au/os_dep/osdep_service.c:1275:19: warning: non-ANSI function declaration of function 'rtw_yield_os'
/home/finger/rtl8723au/os_dep/osdep_service.c:1298:35: warning: non-ANSI function declaration of function 'rtw_suspend_lock_init'
/home/finger/rtl8723au/os_dep/osdep_service.c:1307:37: warning: non-ANSI function declaration of function 'rtw_suspend_lock_uninit'
/home/finger/rtl8723au/os_dep/osdep_service.c:1316:30: warning: non-ANSI function declaration of function 'rtw_lock_suspend'
/home/finger/rtl8723au/os_dep/osdep_service.c:1329:32: warning: non-ANSI function declaration of function 'rtw_unlock_suspend'
/home/finger/rtl8723au/os_dep/osdep_service.c:1775 rtw_change_ifname() warn: variable dereferenced before check 'padapter' (see line 1771)

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix smatch warning in core/rtw_ieee80211.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/core/rtw_ieee80211.c
/home/finger/rtl8723au/core/rtw_ieee80211.c:167 rtw_set_ie() info: ignoring unreachable code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fis smatch errors in core/rtw_cmd.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/core/rtw_cmd.c
/home/finger/rtl8723au/core/rtw_cmd.c:500 rtw_cmd_thread() error: buffer overflow 'wlancmds' 63 <= 63
/home/finger/rtl8723au/core/rtw_cmd.c:522 rtw_cmd_thread() error: buffer overflow 'rtw_cmd_callback' 63 <= 63

Both of these are off-by-one errors that could lead to trying to
access memory outside the boundaries of the array specified.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix smatch warnings in core/rtw_security.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/core/rtw_security.c
/home/finger/rtl8723au/core/rtw_security.c:2486 rijndaelKeySetupEnc() warn: '4' 4 can't fit into 4611686018427387903 'rk'
/home/finger/rtl8723au/core/rtw_security.c:2533 rijndaelEncrypt() warn: '8' 8 can't fit into 4611686018427387903 'rk'

These are both smatch errors, not problems with the code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
rtl8723au: Fix smatch warning in core/rtw_debug.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/core/rtw_debug.c
/home/finger/rtl8723au/core/rtw_debug.c:688 proc_set_rx_signal() warn: unsigned 'signal_strength' is never less than zero.

The offending statement is testing an unsigned variable.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>