summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjur Braendeland <sjur.brandeland@stericsson.com>2010-04-28 10:54:40 +0200
committerDavid S. Miller <davem@davemloft.net>2010-04-28 21:55:15 +0200
commit2c485209a5c73fe94f4074e381cdc1ee24ca94a8 (patch)
treeb9622da3615e3996087467c82ebd1a3c67c8c14a
parentcaif: Bugfixes in CAIF netdevice for close and flow control (diff)
downloadlinux-2c485209a5c73fe94f4074e381cdc1ee24ca94a8.tar.xz
linux-2c485209a5c73fe94f4074e381cdc1ee24ca94a8.zip
Bugfix: Link selection was swapped in switch.
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/caif/caif_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c
index 0145bae0274f..024fd5bb2d39 100644
--- a/net/caif/caif_dev.c
+++ b/net/caif/caif_dev.c
@@ -247,10 +247,10 @@ static int caif_device_notify(struct notifier_block *me, unsigned long what,
switch (caifdev->link_select) {
case CAIF_LINK_HIGH_BANDW:
- pref = CFPHYPREF_LOW_LAT;
+ pref = CFPHYPREF_HIGH_BW;
break;
case CAIF_LINK_LOW_LATENCY:
- pref = CFPHYPREF_HIGH_BW;
+ pref = CFPHYPREF_LOW_LAT;
break;
default:
pref = CFPHYPREF_HIGH_BW;