libertas: clean up and clarify get_common_rates
authorDan Williams <dcbw@redhat.com>
Fri, 21 Aug 2009 14:35:20 +0000 (09:35 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:35 +0000 (14:40 -0400)
commitca4fe30097d700c595c13362200083650759e104
tree13f96510106953e337769a00c24fd3ccf1a9949a
parent1e3d31c589a6bcb05cd7fccccf9657c27b0e3dd1
libertas: clean up and clarify get_common_rates

Clarify what the heck the function is doing with better variable names
and less indirection and better comments.  Also ensure callers use the
proper minimum size, even though all rates arrays should be size
MAX_RATES anyway.  Reverts part of Andrey's dynamic alloc patch since we
don't really need it.  Also leaves the passed-in rates array alone on
errors.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/assoc.c