add B921600
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 20 Oct 2009 17:40:20 +0000 (19:40 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 20 Oct 2009 17:53:24 +0000 (19:53 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libbb/speed_table.c

index 05fe66c64562a4c4c4c3871b6913705bd756ddc3..af676e1ebe01e240a867770e7135dfbf2caa483e 100644 (file)
@@ -51,6 +51,9 @@ static const struct speed_map speeds[] = {
 #ifdef B460800
        {B460800, 460800/256 + 0x8000U},
 #endif
+#ifdef B921600
+       {B921600, 921600/256 + 0x8000U},
+#endif
 };
 
 enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
@@ -93,7 +96,7 @@ int main(void)
        unsigned long v;
        speed_t s;
 
-       for (v = 0 ; v < 500000; v++) {
+       for (v = 0 ; v < 1000000; v++) {
                s = tty_value_to_baud(v);
                if (s == (speed_t) -1) {
                        continue;