10 Jan, 2012
1 commit
-
* 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (466 commits)
net/hyperv: Add support for jumbo frame up to 64KB
net/hyperv: Add NETVSP protocol version negotiation
net/hyperv: Remove unnecessary kmap_atomic in netvsc driver
staging/rtl8192e: Register against lib80211
staging/rtl8192e: Convert to lib80211_crypt_info
staging/rtl8192e: Convert to lib80211_crypt_data and lib80211_crypt_ops
staging/rtl8192e: Add lib80211.h to rtllib.h
staging/mei: add watchdog device registration wrappers
drm/omap: GEM, deal with cache
staging: vt6656: int.c, int.h: Change return of function to void
staging: usbip: removed unused definitions from header
staging: usbip: removed dead code from receive function
staging:iio: Drop {mark,unmark}_in_use callbacks
staging:iio: Drop buffer mark_param_change callback
staging:iio: Drop the unused buffer enable() and is_enabled() callbacks
staging:iio: Drop buffer busy flag
staging:iio: Make sure a device is only opened once at a time
staging:iio: Disallow modifying buffer size when buffer is enabled
staging:iio: Disallow changing scan elements in all buffered modes
staging:iio: Use iio_buffer_enabled instead of open coding it
...Fix up conflict in drivers/staging/iio/adc/ad799x_core.c (removal of
module_init due to using module_i2c_driver() helper, next to removal of
MODULE_ALIAS due to using MODULE_DEVICE_TABLE instead).
14 Dec, 2011
1 commit
-
Add USB ID for Sitecom WLA-2000 v1.001 WLAN.
Reported-and-tested-by: Roland Gruber
Signed-off-by: Larry Finger
Cc: Stable
Signed-off-by: Greg Kroah-Hartman
27 Nov, 2011
1 commit
-
If ibss_wlan is NULL, it is not correct to memcpy into its field.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)//
@r@
expression E, E1;
identifier f;
statement S1,S2,S3;
@@if (E == NULL)
{
... when != if (E == NULL || ...) S1 else S2
when != E = E1
*E->f
... when any
return ...;
}
else S3
//Signed-off-by: Julia Lawall
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
12 Oct, 2011
1 commit
-
Array XGrpKey has only 2 elements and uses (keyid - 1) as the index, which
allows the possibility of memory corruption from an out-of-bounds index.This problem was reported by a new version of smatch.
Reported-by: Dan Carpenter
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
05 Oct, 2011
1 commit
-
Signed-off-by: Stephen Rothwell
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
07 Sep, 2011
21 commits
-
The ioctl handlers were frequently returning -1 upon failure. Most of
these have now been changed to proper errno macros.
The few remaining ones have been left untouched because either the
handler is not called (and so cannot be tested), or the function never
fails (and so cannot be system-tested), or requires new code to
distinguish its failures.Signed-off-by: Ali Bahar
Cc: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
The frame buffers allocated in _r8712_init_recv_priv() are not tracked
by kmemleak, but they are freed when the driver is unloaded. To help
find any real leaks, these false positives are annotated for kmemleak.Signed-off-by: Larry Finger
Signed-off-by: Ali Bahar
Signed-off-by: Greg Kroah-Hartman -
Tx Aggregation (CONFIG_R8712_TX_AGGR, known as CONFIG_USB_TX_AGGR in the
Realtek tarball) is now added.However, its tests have not been successful! The default in the Realtek
tarball is to not build it -- and the Release Notes does not seem to list this
as a feature. I have tested the driver with and without this feature; the
former does not successfully associate when WPA2 is used.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
In r8712_generate_ie(), HT check is no longer done.
Removed r8712_add_ht_addt_info().
Changes to defragmentation handling, and queue selection.
Get TSSI command.
Added an Ad-Hoc check to is_desired_network()
r8712_ind_disconnect() now checks for Linked state.
r8712_xmit_bh() now schedules an xmit tasklet.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
passive_mode added to private ioctls.
New private ioctls added for RSSI, link speed, mac address, scan type,
and DCE-D.
In r8711_wx_get_scan(), we now sleep only 100 times, instead of 1000.
In r8711_wx_set_essid(), added a check for Ad-Hoc state.
In r8711_wx_get_rate(), added a check for RTL8712_RF_2T2R RF type.
Added Set chplan.
In r871x_get_wireless_stats(), updated the mechanism for displaying
link quality.
Added SetDIG and SetRA commands.
r8712_joinbss_cmd() no longer checks for Ad-Hoc mode.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Removed unnecessary casts in kfree calls.
A few new types, defines and prototypes.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
In transmit path, r8712_free_xmitframe(), the pkt pointer is now
NULLed _within_ the spin lock.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Rework efuse data handling.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Refactor the TX code to prepare for aggregation.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
translate_scan() now uses the stack for some variables, instead of mallocing.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
stop_drv_timers() is now done in r871xu_dev_remove(), not netdev_close().
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
The call to oid_rt_pro_set_power_tracking_hdl() is no longer available.
The function's definition remains, though it is currently unused.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
recv_frame.mem
mp_xmit_frame.mem
mp_xmit_packet.mem were not used, and so are now removed.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
These are the new include directives for header files.
The following were (somehow!) not explicity in Realtek's, but proved necessary:
"linux/usb.h" is needed for usb_alloc_urb();
"linux/interrupt.h" is needed for tasklet_struct. It was often a nested
include.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Removed the redundant NULL check in LedControl871x.
As noted by Dan Carpenter, the address of a stack variable is never NULL.Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
MSECS was never used in this driver. So removed.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Replaced (Realtek's) _usb_submit_urb by (linux's own) usb_submit_urb.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Replaced (Realtek's) _usb_alloc_urb by (linux's own) usb_alloc_urb.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Replaced (Realtek's) os_free_netdev by (linux's own) free_netdev.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Renamed _netdev_priv to netdev_priv.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Only copyright banners have been added to these files. No functional changes.
Signed-off-by: Ali Bahar
Signed-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
24 Aug, 2011
6 commits
-
daemonize() is only needed when a user-space task does kernel_thread().
r8712_cmd_thread() is kthread_create()'ed and thus it doesn't need
the soon-to-be-deprecated daemonize(). It is the only caller of
thread_enter() which actually does the call.Note:
- we are going to remove the sigdelset(blocked) code from
allow_signal(), this means that without this patch
thread_enter() can't work after that. Not to mention
daemonize() should be deprecated.- as a side effect, this patch changes ->comm. Hopefully
this is fine, and padapter->pnetdev->name probably makes
more sense anyway.Signed-off-by: Oleg Nesterov
Acked-by: Matt Fleming
Acked-by: Tejun Heo
Acked-and-tested-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
There were some curly braces missing so the original code in
wpa_supplicant_ioctl() pretty much always returned -EFAULT without
doing anything.Signed-off-by: Dan Carpenter
Signed-off-by: Greg Kroah-Hartman -
Larry Finger's copyright addendum has now been included in the
banners.
The files involved in this commit have had only their banners
changed; there have been no other mods.Signed-off-by: Ali Bahar
Signed-off-by: Greg Kroah-Hartman -
The only changes to these files have been the addition of only copyright
banners.Signed-off-by: Ali Bahar
Signed-off-by: Greg Kroah-Hartman -
padapter->bup is True when the interface has been
brought Up. But it was not being reset when the
interface is taken Down.
This has not caused a known problem, as other
state variables may be compensating for it. Never
the less, it is now properly tracked.Signed-off-by: Ali Bahar
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
The original Realtek code assumed that ioctl Sets get done after the
interface is Up. This included the set to Essid and to the AP MAC#;
and it fit Realtek's installation procedure. But there is no such
necessity for the adapter, and no stated requirement found
elsewhere. Also, wireless drivers typically permit this.A typical error message used to be:
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device wlan0 ; Operation not permitted.Signed-off-by: Ali Bahar
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
26 Jul, 2011
1 commit
-
* 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (741 commits)
staging:iio:meter:ade7753 should be 16 bit read not 8 bit for mode register.
staging:iio:kfifo_buf fix double initialization of the ring device structure.
staging:iio:accel:lis3l02dq: fix incorrect pointer passed to spi_set_drvdata.
staging:iio:imu fix missing register table index for some channels
spectra: enable device before poking it
staging: rts_pstor: Fix a miswriting
staging/lirc_bt829: Return -ENODEV when no hardware is found.
staging/lirc_parallel: remove pointless prototypes.
staging/lirc_parallel: fix panic on rmmod
staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
Staging: zram: Fix kunmapping order
Revert "gma500: Fix dependencies"
gma500: Add medfield header
gma500: wire up the mrst i2c bus from chip_info
gma500: Fix DPU build
gma500: Clean up the DPU config and make it runtime
gma500: resync with Medfield progress
gma500: Use the mrst helpers and power control for mode commit
gma500@ Fix backlight range error
gma500: More Moorestown muddle meddling means MM maybe might modeset
...Fix up fairly trivial conflicts all over, mostly due to header file
cleanup conflicts, but some deleted files and some just context changes:
- Documentation/feature-removal-schedule.txt
- drivers/staging/bcm/headers.h
- drivers/staging/brcm80211/brcmfmac/dhd_linux.c
- drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
- drivers/staging/brcm80211/brcmfmac/wl_cfg80211.h
- drivers/staging/brcm80211/brcmfmac/wl_iw.c
- drivers/staging/et131x/et131x_netdev.c
- drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
- drivers/staging/rtl8192e/r8192E.h
- drivers/staging/usbip/userspace/src/utils.h
06 Jul, 2011
5 commits
-
It was pointed out by 'make versioncheck' that some includes of
linux/version.h are not needed in drivers/staging/rtl8187se/,
drivers/staging/rtl8192e/, drivers/staging/rtl8192u/ &
drivers/staging/rtl8712/.
This patch removes them.Signed-off-by: Jesper Juhl
Signed-off-by: Greg Kroah-Hartman -
Fixes scripts/checkpatch.pl warning.
Signed-off-by: Michael Fiedler
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
Fixes warning from scripts/checkpatch.pl.
Signed-off-by: Michael Fiedler
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
According to scripts/checkpatch.pl, the __packed macro
from linux/compiler.h should be used.Signed-off-by: Michael Fiedler
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman -
There is already a macro defined in linux/compiler.h.
Signed-off-by: Michael Fiedler
Acked-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
20 Jun, 2011
1 commit
-
Many stupid corrections of duplicated includes based on the output of
scripts/checkincludes.pl.Signed-off-by: Vitaliy Ivanov
Signed-off-by: Jiri Kosina
04 May, 2011
1 commit
-
Driver r8712u is unable to handle ad-hoc mode. The issue is that when
the driver first starts, there will not be an SSID for association.
The fix is to always call the "select and join from scan" routine when
in ad-hoc mode.Note: Ad-hoc mode worked intermittently before. If the driver had
previously been associated, then things were OK.Signed-off-by: Jeff Chua
Signed-off-by: Larry Finger
Cc: Stable
Signed-off-by: Greg Kroah-Hartman