linux/drivers/staging/wlan-ng
Tim Collier a67fedd788 staging: wlan-ng: fix adapter initialization failure
Commit e895f00a84 ("Staging: wlan-ng: hfa384x_usb.c Fixed too long
code line warnings.") moved the retrieval of the transfer buffer from
the URB from the top of function hfa384x_usbin_callback to a point
after reposting of the URB via a call to submit_rx_urb. The reposting
of the URB allocates a new transfer buffer so the new buffer is
retrieved instead of the buffer containing the response passed into
the callback. This results in failure to initialize the adapter with
an error reported in the system log (something like "CTLX[1] error:
state(Request failed)").

This change moves the retrieval to just before the point where the URB
is reposted so that the correct transfer buffer is retrieved and
initialization of the device succeeds.

Signed-off-by: Tim Collier <osdevtc@gmail.com>
Fixes: e895f00a84 ("Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-20 09:26:04 +02:00
..
cfg80211.c staging: wlan-ng: formatting change in cfg80211.c 2019-02-08 10:31:14 +01:00
hfa384x_usb.c staging: wlan-ng: fix adapter initialization failure 2019-05-20 09:26:04 +02:00
hfa384x.h staging: wlan-ng: line over 80 character limit 2019-03-18 18:53:17 +01:00
Kconfig staging: remove redundant 'default n' from Kconfig 2019-04-16 13:39:01 +02:00
Makefile
p80211conv.c staging: wlan-ng: Replace long int with long 2018-10-19 21:10:45 +02:00
p80211conv.h
p80211hdr.h
p80211ioctl.h
p80211metadef.h staging: wlan-ng: remove "autogenerated code" comments 2018-09-28 14:43:52 +02:00
p80211metastruct.h staging: wlan-ng: remove "autogenerated code" comments 2018-09-28 14:43:52 +02:00
p80211mgmt.h
p80211msg.h
p80211netdev.c staging: wlan-ng: rename DIDmib_dot11mac_dot11OperationTable_dot11MACAddress in p80211metadef.h 2018-09-28 14:42:41 +02:00
p80211netdev.h
p80211req.c staging: wlan-ng: make switch case block format consistent 2018-09-28 14:43:52 +02:00
p80211req.h
p80211types.h
p80211wep.c
prism2fw.c staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory' message" checkpatch.pl warning" 2019-01-07 08:56:07 +01:00
prism2mgmt.c
prism2mgmt.h
prism2mib.c staging: wlan-ng: reformatting in prism2mib.c to fit 80 character limit 2018-11-08 03:59:47 -08:00
prism2sta.c staging: wlan-ng: rejoin split lines shortened by case changes 2018-09-28 14:43:52 +02:00
prism2usb.c
README

TODO:
	- checkpatch.pl cleanups
	- sparse warnings
	- move to use the in-kernel wireless stack

Please send any patches or complaints about this driver to Greg
Kroah-Hartman <greg@kroah.com> and don't bother the upstream wireless
kernel developers about it, they want nothing to do with it.