wlan: Fix multiple issues with iw_softap_getassoc_stamacaddr()
It was reported that the netd process was crashing due to an error in
iw_softap_getassoc_stamacaddr(). Analysis of this function revealed
multiple issues:
- wrong data length value was being returned to userspace.
- data length format was not 32U/64K safe.
- copy_to_user() was being used inefficiently.
- there was unnecessary NUL termination of the returned data.
Fix these issues.
In addition flaws were identified in the userspace code for which a
separate change needs to be made (CR 639046).
Change-Id: Iee5fd9c33f53c0be7c7dcb45b2008f003e92c86f
CRs-fixed: 639043
1 file changed