19 Sep, 2012
5 commits
-
removes unnecessary semicolon
Found by Coccinelle: http://coccinelle.lip6.fr/
Signed-off-by: Peter Senna Tschudin
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
removes unnecessary semicolon
Found by Coccinelle: http://coccinelle.lip6.fr/
Signed-off-by: Peter Senna Tschudin
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
removes unnecessary semicolon
Found by Coccinelle: http://coccinelle.lip6.fr/
Signed-off-by: Peter Senna Tschudin
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
removes unnecessary semicolon
Found by Coccinelle: http://coccinelle.lip6.fr/
Signed-off-by: Peter Senna Tschudin
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
removes unnecessary semicolon
Found by Coccinelle: http://coccinelle.lip6.fr/
Signed-off-by: Peter Senna Tschudin
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan
09 Sep, 2012
7 commits
-
Add Read Data Block Size HCI cmd to AMP initialization, then it
makes possible to send data.Signed-off-by: Andrei Emeltchenko
Signed-off-by: Gustavo Padovan -
Add debug output for HCI kref.
Signed-off-by: Andrei Emeltchenko
Signed-off-by: Gustavo Padovan -
Signed-off-by: Andrei Emeltchenko
Signed-off-by: Gustavo Padovan -
Return code is not needed in hci_chan_del
Signed-off-by: Andrei Emeltchenko
Signed-off-by: Gustavo Padovan -
hdev is allocated with kzalloc so zero initialization is not needed.
Signed-off-by: Andrei Emeltchenko
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
Remove pointless conditional before kfree_skb().
Signed-off-by: Wei Yongjun
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
module_platform_driver() makes the code simpler by eliminating module_init
and module_exit calls.Signed-off-by: Sachin Kamat
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan
22 Aug, 2012
7 commits
-
Commit 4cd2d98340b4f03d5532c30fdaeb451b035429cb "Bluetooth: Simplify
the connection type handling" broke the creation of ESCO links.This patch adds a type parameter to hci_connect_sco() so it creates
the connection of the right kind.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
This patch changes the struct l2cap_chan and associated code to use
kref api for object refcounting and freeing.Suggested-by: Andrei Emeltchenko
Signed-off-by: Jaganath Kanakkassery
Signed-off-by: Syam Sidhardhan
Signed-off-by: Gustavo Padovan -
Earlier we were printing chan->psm before assigning any value.
Signed-off-by: Syam Sidhardhan
Acked-by: Andrei Emeltchenko
Signed-off-by: Gustavo Padovan -
MGMT_EV_DEVICE_DISCONNECTED will now expose the disconnection reason to
userland, distinguishing four possible values:0x00 Reason not known or unspecified
0x01 Connection timeout
0x02 Connection terminated by local host
0x03 Connection terminated by remote hostNote that the local/remote distinction just determines which side
terminated the low-level connection, regardless of the disconnection of
the higher-level profiles.This can sometimes be misleading and thus must be used with care. For
example, some hardware combinations would report a locally initiated
disconnection even if the user turned Bluetooth off in the remote side.Signed-off-by: Mikel Astiz
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
Replace the status checks with the short form of the boolean expression.
Signed-off-by: Mikel Astiz
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
Add more HCI error codes as defined in the specification.
Signed-off-by: Mikel Astiz
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
Use standard bluetooth way to check NULL pointer !var instead of
var == NULL.Signed-off-by: Andrei Emeltchenko
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan
15 Aug, 2012
8 commits
-
Make code more clear by moving sk and bt vars to the place where
they are actually used.Signed-off-by: Andrei Emeltchenko
Acked-by: Marcel Holtmann
Signed-off-by: Gustavo Padovan -
Now that we have a "connect" function for each link type, we should be
able to indentify which function is going to be called.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
Now that we have separate ways of doing connections for each link type,
we can do better than an "if" statement to handle each link type.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
We can do the same that we did for the other link types, for SCO
connections. The only thing that's worth noting is that as SCO
links need an ACL link, this functions uses the function that adds
an ACL link.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
The hci_connect() function was starting to get too complicated to be
quickly understood. We can separate the creation of a new ACL
connection into its own function.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
The code that handles LE connection is already quite separated from
the rest of the connection procedure, so we can easily put it into
its own.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
These names were causing much confusion, so we rename these functions
that send HCI commands to be more similar in naming to the actual HCI
commands that will be sent.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan -
Some connection related functions are only used inside hci_conn.c
so no need to have them exported.Signed-off-by: Vinicius Costa Gomes
Signed-off-by: Gustavo Padovan
14 Aug, 2012
2 commits
-
My commit "p54: parse output power table" introduced
the following compiler warnings for powerpc-allmodconfigeeprom.c: In function 'p54_get_maxpower':
eeprom.c:291 warning: comparison of distinct pointer types lacks a cast
eeporm.c:292 warning: comparison of distinct pointer types lacks a cast
eeprom.c:293 warning: comparison of distinct pointer types lacks a cast
eeprom.c:294 warning: comparison of distinct pointer types lacks a castThis patch fixes those by using max_t(u16
which forces a type cast.Reported-by: Fengguang Wu
Tested-by: Fengguang Wu
Signed-off-by: Christian Lamparter
Signed-off-by: John W. Linville -
ieee80211_bss_info_change_notify is called everytime a peer link is established
or closed, because the accepting_plinks flag in the meshconf IE *might* have changed.With this patch the corresponding functions return the BSS_CHANGED_BEACON flag when a beacon update is necessary.
Also it makes mesh_accept_plinks_update the common place to update the accepting_plinks flag.
mesh_accept_plinks_update is called upon plink change and also periodically from ieee80211_mesh_housekeeping.
Thus, it also picks up changes of local->num_sta.Signed-off-by: Marco Porsch
Acked-by: Thomas Pedersen
Signed-off-by: John W. Linville
11 Aug, 2012
11 commits
-
The brcmsmac driver requests firmware but doesn't document the
dependency. This means that software that analyzes the modules to
determine if firmware is needed won't detect it.Specifically, (at least) openSUSE won't install the kernel-firmware
package if no hardware requires it.This patch adds the MODULE_FIRMWARE directives.
Signed-off-by: Jeff Mahoney
Acked-by: Arend van Spriel
Signed-off-by: John W. Linville -
This could make rc_stats more simpler and ease the debugging.
Signed-off-by: Rajkumar Manoharan
Signed-off-by: John W. Linville -
Remove ctrl_rate, cw40index, sgi_index, ht_index and calculate
the rate index for TX status from the valid_rate_index that
is populated at initialization time.Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
Calculate the final rate index inside ath_rc_tx_status().
Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
The current method of assigning the RTS/CTS rate is completely
broken for HT mode and breaks P2P operation. Fix this by using
the basic_rates provided to the driver by mac80211. For now,
choose the lowest supported basic rate for HT frames.Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
mac80211 does it for us.
Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville -
Commit "ath9k: Change rate control to use legacy rate as last MRR"
resulted in the mixing of HT/legacy rates in a single rateset,
which is undesirable. Revert this behavior.Signed-off-by: Sujith Manoharan
Signed-off-by: John W. Linville