aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ipv6: updates to privacy addresses per RFC 4941JP Abgrall2011-08-043-22/+50
| | | | | | | | | | | | | | | | | | | | | | | | Update the code to handle some of the differences between RFC 3041 and RFC 4941, which obsoletes it. Also a couple of janitorial fixes. - Allow router advertisements to increase the lifetime of temporary addresses. This was not allowed by RFC 3041, but is specified by RFC 4941. It is useful when RA lifetimes are lower than TEMP_{VALID,PREFERRED}_LIFETIME: in this case, the previous code would delete or deprecate addresses prematurely. - Change the default of MAX_RETRY to 3 per RFC 4941. - Add a comment to clarify that the preferred and valid lifetimes in inet6_ifaddr are relative to the timestamp. - Shorten lines to 80 characters in a couple of places. Change-Id: I4da097664d4b1de7c1cebf410895319601c7f1cc Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Signed-off-by: JP Abgrall <jpa@google.com>
* net: wireless: bcmdhd: Ensure struct semaphore to be definedChih-Wei Huang2011-08-041-0/+1
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Keep debug symbols for built-in driverDmitry Shmidt2011-08-041-0/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Clean up formatting.Howard M. Harte2011-08-044-45/+53
| | | | | | Change-Id: Idf0771201837ad00304107af3592c35a6236eb33 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Improve arp_hostip_table processingDmitry Shmidt2011-08-033-16/+22
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Eliminate nested IOCTL callLin Ma2011-08-032-19/+27
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Remove noisy debug printsDmitry Shmidt2011-08-022-2/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcm4329: Remove obsolete fileDmitry Shmidt2011-08-021-1726/+0
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: add support for mkeepalive.Howard M. Harte2011-08-026-105/+67
| | | | | | | | Fix p2p group add issue. Change-Id: Ieb8fba54e04912b4002837243c00ba90fd150e5d Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Check wldev_ioctl() for NULL parameterDmitry Shmidt2011-08-021-0/+5
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Bluetooth: l2cap: Fix lost wakeup waiting for ERTM acksPeter Hurley2011-08-021-3/+3
| | | | | | | | Fix race condition which can result in missing wakeup during l2cap socket shutdown. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: bnep: Fix lost wakeup of session threadPeter Hurley2011-08-021-2/+4
| | | | | | | | Fix race condition which can result in missing the wakeup intended to stop the session thread. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: sco: Fix lost wakeups waiting to accept socketPeter Hurley2011-08-021-14/+14
| | | | | | | | Fix race conditions which can cause lost wakeups (or missed signals) while waiting to accept a sco socket connection. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: l2cap: Fix lost wakeups waiting to accept socketPeter Hurley2011-08-021-14/+14
| | | | | | | | Fix race conditions which can cause lost wakeups (or misssed signals) while waiting to accept an l2cap socket connection. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: Fix lost wakeups waiting for sock state changePeter Hurley2011-08-021-3/+3
| | | | | | | | Fix race conditions which can cause lost wakeups while waiting for sock state to change. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: rfcomm: Fix lost wakeups waiting to accept socketPeter Hurley2011-08-021-14/+14
| | | | | | | | Fix race conditions which can cause lost wakeups (or missed signals) while waiting to accept an rfcomm socket connection. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: rfcomm: Remove unnecessary krfcommd eventPeter Hurley2011-08-021-10/+7
| | | | | | | | | | | | | | Removed superfluous event handling which was used to signal that the rfcomm kthread had been woken. This appears to have been used to prevent lost wakeups. Correctly ordering when the task state is set to TASK_INTERRUPTIBLE is sufficient to prevent lost wakeups. To prevent wakeups which occurred prior to initially setting TASK_INTERRUPTIBLE from being lost, the main work of the thread loop - rfcomm_process_sessions() - is performed prior to sleeping. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* net: wireless: bcmdhd: Fix memory corruption in wl_android_get_rssi()Dmitry Shmidt2011-07-291-22/+32
| | | | | | | In case of FW problem wldev_get_ssid() doesn't return error and ssid structure has garbage. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: change logic for removing monitor interace for P2P.Howard M. Harte2011-07-292-11/+9
| | | | | | Change-Id: Ie757ec25c86d0402d0463a9b7f2fff14b840f446 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Additional patch for scan and connection problem.Howard M. Harte2011-07-271-26/+26
| | | | | | Change-Id: I79a25bd3f36f5d3accae83116084b8baf63a1033 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Put p2p_dev_addr under DHD_P2P_DEV_ADDR_FROM_SYSFSDmitry Shmidt2011-07-271-9/+6
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Fix rfkill cleaning on failureDmitry Shmidt2011-07-271-16/+30
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix scan and connection problem.Howard M. Harte2011-07-271-10/+30
| | | | | | Change-Id: Idd77caf358fc77c4b81929c644020d09009e4f36 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Update to 5.90.125.52:Howard M. Harte2011-07-2710-161/+274
| | | | | | | | | Fix unremoved monitor interface problem after killing hostapd. Add WPS support for hostapd. Change-Id: I4e476fafb203592fcdf5c15a526b67d4aa78df3e Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix a potential crash/memory leak if NVRAM fails to load.Howard M. Harte2011-07-271-0/+1
| | | | | | Change-Id: I27f41dd5833835b74f38524e9691d68ac807c991 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Ignore WL_BSS_INFO_VERSION valueDmitry Shmidt2011-07-271-0/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix ag band issue and escan crashesLin Ma2011-07-271-12/+46
| | | | | | Change-Id: Ie1bdb52a362755b7c922be9b721e9cf0e4042d95 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* PM: Fix printing IRQ names for pending wakeup IRQsTodd Poynor2011-07-251-1/+3
| | | | | | | | The IRQ name has moved to the struct irqaction list (so print first action's name). Change-Id: I65a627457f9abaf7c1dcc32d8814243ba2ff4717 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* netfilter: qtaguid: disable #define DEBUGJP Abgrall2011-07-221-1/+0
| | | | | | | This would cause log spam to the point of slowing down the system. Change-Id: I5655f0207935004b0198f43ad0d3c9ea25466e4e Signed-off-by: JP Abgrall <jpa@google.com>
* netfilter: xt_qtaguid: add uid permission checks during ctrl/stats accessJP Abgrall2011-07-212-44/+128
| | | | | | | | | | | | | | | | | * uid handling - Limit UID impersonation to processes with a gid in AID_NET_BW_ACCT. This affects socket tagging, and data removal. - Limit stats lookup to own uid or the process gid is in AID_NET_BW_STATS. This affects stats lookup. * allow pacifying the module Setting passive to Y/y will make the module return immediately on external stimulus. No more stats and silent success on ctrl writes. Mainly used when one suspects this module of misbehaving. Change-Id: I83990862d52a9b0922aca103a0f61375cddeb7c4 Signed-off-by: JP Abgrall <jpa@google.com>
* netfilter: qtaguid: add tag delete command, expand stats output.JP Abgrall2011-07-211-123/+291
| | | | | | | | | | | | | | | | | | | | | | * Add a new ctrl command to delete stored data. d <acct_tag> [<uid>] The uid will default to the running process's. The accounting tag can be 0, in which case all counters and socket tags associated with the uid will be cleared. * Simplify the ctrl command handling at the expense of duplicate code. This should make it easier to maintain. * /proc/net/xt_qtaguid/stats now returns more stats idx iface acct_tag_hex uid_tag_int {rx,tx}_{bytes,packets} {rx,tx}_{tcp,udp,other}_{bytes,packets} the {rx,tx}_{bytes,packets} are the totals. * re-tagging will now allow changing the uid. Change-Id: I9594621543cefeab557caa3d68a22a3eb320466d Signed-off-by: JP Abgrall <jpa@google.com>
* netfilter: quota2: add support to log quota limit reached.JP Abgrall2011-07-212-0/+104
| | | | | | | | | | | | | This uses the NETLINK NETLINK_NFLOG family to log a single message when the quota limit is reached. It uses the same packet type as ipt_ULOG, but - never copies skb data, - uses 112 as the event number (ULOG's +1) It doesn't log if the module param "event_num" is 0. Change-Id: I6f31736b568bb31a4ff0b9ac2ee58380e6b675ca Signed-off-by: JP Abgrall <jpa@google.com>
* net: wireless: bcmdhd: Fix compilation for WEXTDmitry Shmidt2011-07-211-0/+4
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Allow firmware_path parameter changeDmitry Shmidt2011-07-211-1/+8
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Release 5.90.125.48 Add regulatory domain check in cfg80211 driver and fix ↵Lin Ma2011-07-214-19/+78
| | | | | | | | PNO issues Change-Id: I394f4eb017ca61861f16632e8998a8fb07e6fca7 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Allow empty scan resultsDmitry Shmidt2011-07-211-4/+0
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcmdhd: Fix compilation for kernel 3.0Dmitry Shmidt2011-07-212-4/+5
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Update to 5.90.125.40Lin Ma2011-07-219-472/+1488
| | | | | | | | | | Add monitor interface support and fix cfg80211 management frame isses Add support for hostapd Use private command to get p2p device address Change-Id: Ie490e38f1af9f259ff4a96b2f7d367119c65c377 Signed-off-by: Howard M. Harte <hharte@broadcom.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* net: wireless: bcm4329: fix array subscript is below array boundsChoi, Jong-Hwan2011-07-211-0/+3
| | | | | Change-Id: I5d521895070d255f7ac0c9eaf262ec9f4cdd2f8a Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
* USB: gadget: f_accessory: Add ioctl to detect USB accessory attached at bootMike Lockwood2011-07-212-0/+11
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* earlysuspend: add verbose debug flagErik Gilling2011-07-211-3/+12
| | | | | | | when enabled, prints out the function of each handler as they are called Change-Id: I5ed251867e0e3aa3cd05f030ff3579808cedd0c2 Signed-off-by: Erik Gilling <konkers@android.com>
* USB: gadget: f_mtp: Move all setup handling to mtp_ctrlrequestMike Lockwood2011-07-201-92/+56
| | | | | | | | The composite driver no longer sends setup requests to functions if the destination is USB_RECIP_DEVICE, so we need to handle the requests here instead of the function's setup callback. Signed-off-by: Mike Lockwood <lockwood@android.com>
* power: Add option to log time spent in suspendColin Cross2011-07-203-0/+119
| | | | | | | | | | Prints the time spent in suspend in the kernel log, and keeps statistics on the time spent in suspend in /sys/kernel/debug/suspend_time Change-Id: Ia6b9ebe4baa0f7f5cd211c6a4f7e813aefd3fa1d Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: Todd Poynor <toddpoynor@google.com>
* cpufreq: interactive: fix checkpatch warnings on long linesAllen Martin2011-07-191-3/+6
| | | | | | | | Fix up checkpatch warning introduced by long lines in timer_rate patch. Change-Id: I22b105dafb1b49390799bb7577464da03f0f8afb Signed-off-by: Allen Martin <amartin@nvidia.com>
* Documentation: cpufreq: add description of timer_rateAllen Martin2011-07-191-2/+4
| | | | | | | | Add description of timer_rate tunable and clean up some typos. Change-Id: I4b96a36aad51eed3bef0ee5f571dc6e0a94c8dd9 Signed-off-by: Allen Martin <amartin@nvidia.com>
* Bluetooth: Fix crash with incoming L2CAP connectionsIlia Kolomisnky2011-07-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Another regression fix considering incomming l2cap connections with defer_setup enabled. In situations when incomming connection is extracted with l2cap_sock_accept, it's bt_sock info will have 'parent' member zerroed, but 'parent' may be used unconditionally in l2cap_conn_start() and l2cap_security_cfm() when defer_setup is enabled. Backtrace: [<bf02d5ac>] (l2cap_security_cfm+0x0/0x2ac [bluetooth]) from [<bf01f01c>] (hci_event_pac ket+0xc2c/0x4aa4 [bluetooth]) [<bf01e3f0>] (hci_event_packet+0x0/0x4aa4 [bluetooth]) from [<bf01a844>] (hci_rx_task+0x cc/0x27c [bluetooth]) [<bf01a778>] (hci_rx_task+0x0/0x27c [bluetooth]) from [<c008eee4>] (tasklet_action+0xa0/ 0x15c) [<c008ee44>] (tasklet_action+0x0/0x15c) from [<c008f38c>] (__do_softirq+0x98/0x130) r7:00000101 r6:00000018 r5:00000001 r4:efc46000 [<c008f2f4>] (__do_softirq+0x0/0x130) from [<c008f524>] (do_softirq+0x4c/0x58) [<c008f4d8>] (do_softirq+0x0/0x58) from [<c008f5e0>] (run_ksoftirqd+0xb0/0x1b4) r4:efc46000 r3:00000001 [<c008f530>] (run_ksoftirqd+0x0/0x1b4) from [<c009f2a8>] (kthread+0x84/0x8c) r7:00000000 r6:c008f530 r5:efc47fc4 r4:efc41f08 [<c009f224>] (kthread+0x0/0x8c) from [<c008cc84>] (do_exit+0x0/0x5f0) Signed-off-by: Ilia Kolomisnky <iliak@ti.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: David S. Miller <davem@davemloft.net>
* Bluetooth: Fix regression in L2CAP connection procedureGustavo F. Padovan2011-07-181-2/+1
| | | | | | | | | | | | | | | | | | | | | Caused by the following commit, partially revert it. commit 9fa7e4f76f3658ba1f44fbdb95c77e7df3f53f95 Author: Gustavo F. Padovan <padovan@profusion.mobi> Date: Thu Jun 30 16:11:30 2011 -0300 Bluetooth: Fix regression with incoming L2CAP connections PTS test A2DP/SRC/SRC_SET/TC_SRC_SET_BV_02_I revealed that ( probably after the df3c3931e commit ) the l2cap connection could not be established in case when the "Auth Complete" HCI event does not arive before the initiator send "Configuration request", in which case l2cap replies with "Command rejected" since the channel is still in BT_CONNECT2 state. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: David S. Miller <davem@davemloft.net>
* Bluetooth: Fix memory leak under page timeoutsTomas Targownik2011-07-181-0/+3
| | | | | | | | If the remote device is not present, the connections attemp fails and the struct hci_conn was not freed Signed-off-by: Tomas Targownik <ttargownik@geicp.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: Fix regression with incoming L2CAP connectionsGustavo F. Padovan2011-07-181-1/+2
| | | | | | | | | | | | | | PTS test A2DP/SRC/SRC_SET/TC_SRC_SET_BV_02_I revealed that ( probably after the df3c3931e commit ) the l2cap connection could not be established in case when the "Auth Complete" HCI event does not arive before the initiator send "Configuration request", in which case l2cap replies with "Command rejected" since the channel is still in BT_CONNECT2 state. Based on patch from: Ilia Kolomisnky <iliak@ti.com> Change-Id: Ifcffe0124adbbc6d1931389ff7476dd0304d6f51 Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
* Bluetooth: Fix hidp disconnect deadlocks and lost wakeupPeter Hurley2011-07-182-7/+12
| | | | | | | | | | | | | | | | | | | Partial revert of commit aabf6f89. When the hidp session thread was converted from kernel_thread to kthread, the atomic/wakeups were replaced with kthread_stop. kthread_stop has blocking semantics which are inappropriate for the hidp session kthread. In addition, the kthread signals itself to terminate in hidp_process_hid_control() - it cannot do this with kthread_stop(). Lastly, a wakeup can be lost if the wakeup happens between checking for the loop exit condition and setting the current state to TASK_INTERRUPTIBLE. (Without appropriate synchronization mechanisms, the task state should not be changed between the condition test and the yield - via schedule() - as this creates a race between the wakeup and resetting the state back to interruptible.) Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>