From: Stephen Rothwell Date: Tue, 15 Nov 2011 23:56:17 +0000 (+1100) Subject: Merge remote-tracking branch 'wireless-next/master' X-Git-Tag: next-20111116~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a31aed0002725bfb8bc299c66b9572acfc0b55a9;p=karo-tx-linux.git Merge remote-tracking branch 'wireless-next/master' Conflicts: drivers/net/wireless/libertas/cfg.c include/net/bluetooth/bluetooth.h --- a31aed0002725bfb8bc299c66b9572acfc0b55a9 diff --cc drivers/net/wireless/libertas/cfg.c index a7f1ab28940d,89f34ad8d34a..d1d84e0e30fc --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c @@@ -632,9 -633,9 +633,9 @@@ static int lbs_ret_scan(struct lbs_priv LBS_SCAN_RSSI_TO_MBM(rssi)/100); if (channel && - !(channel->flags & IEEE80211_CHAN_DISABLED)) - cfg80211_inform_bss(wiphy, channel, + !(channel->flags & IEEE80211_CHAN_DISABLED)) { + bss = cfg80211_inform_bss(wiphy, channel, - bssid, le64_to_cpu(*(__le64 *)tsfdesc), + bssid, get_unaligned_le64(tsfdesc), capa, intvl, ie, ielen, LBS_SCAN_RSSI_TO_MBM(rssi), GFP_KERNEL); diff --cc include/net/bluetooth/bluetooth.h index e86af08293a8,38cd3dab7f1d..835f3b229b84 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@@ -77,7 -77,34 +77,34 @@@ struct bt_power #define BT_POWER_FORCE_ACTIVE_OFF 0 #define BT_POWER_FORCE_ACTIVE_ON 1 + #define BT_CHANNEL_POLICY 10 + + /* BR/EDR only (default policy) + * AMP controllers cannot be used. + * Channel move requests from the remote device are denied. + * If the L2CAP channel is currently using AMP, move the channel to BR/EDR. + */ + #define BT_CHANNEL_POLICY_BREDR_ONLY 0 + + /* BR/EDR Preferred + * Allow use of AMP controllers. + * If the L2CAP channel is currently on AMP, move it to BR/EDR. + * Channel move requests from the remote device are allowed. + */ + #define BT_CHANNEL_POLICY_BREDR_PREFERRED 1 + + /* AMP Preferred + * Allow use of AMP controllers + * If the L2CAP channel is currently on BR/EDR and AMP controller + * resources are available, initiate a channel move to AMP. + * Channel move requests from the remote device are allowed. + * If the L2CAP socket has not been connected yet, try to create + * and configure the channel directly on an AMP controller rather + * than BR/EDR. + */ + #define BT_CHANNEL_POLICY_AMP_PREFERRED 2 + -__attribute__((format (printf, 2, 3))) +__printf(2, 3) int bt_printk(const char *level, const char *fmt, ...); #define BT_INFO(fmt, arg...) bt_printk(KERN_INFO, pr_fmt(fmt), ##arg)