Skip to content

Instantly share code, notes, and snippets.

@ivoronin
ivoronin / gobinet.patch
Created May 15, 2012 17:23
GobiNet Patch
Index: gobinet-dkms-20110729~1026/GobiUSBNet.c
===================================================================
--- gobinet-dkms-20110729~1026.orig/GobiUSBNet.c 2012-05-09 23:11:33.000000000 +0400
+++ gobinet-dkms-20110729~1026/GobiUSBNet.c 2012-05-13 03:22:02.748985833 +0400
@@ -66,11 +66,15 @@
#define DRIVER_AUTHOR "Qualcomm Innovation Center"
#define DRIVER_DESC "GobiNet"
+#ifdef bool
+#undef bool
@ivoronin
ivoronin / gobiapi.patch
Created May 15, 2012 17:21
GobiAPI Patch
Index: libgobi-20120112~1106/GobiConnectionMgmt/GobiConnectionMgmtExports.cpp
===================================================================
--- libgobi-20120112~1106.orig/GobiConnectionMgmt/GobiConnectionMgmtExports.cpp 2012-05-05 15:23:37.892122062 +0400
+++ libgobi-20120112~1106/GobiConnectionMgmt/GobiConnectionMgmtExports.cpp 2012-05-05 15:23:38.000000000 +0400
@@ -39,6 +39,10 @@
#include "StdAfx.h"
#include "GobiConnectionMgmt.h"
+#ifdef __cplusplus
+extern "C" {
@ivoronin
ivoronin / qmi_dissector.lua
Created May 9, 2012 03:26
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol
--[[
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol v0.1
Copyright (c) 2012 Ilya Voronin <[email protected]>
Based on Code Aurora Forum's BSD/GPL licensed code:
http://www.codeaurora.org/contribute/projects/gobi/
Short howto for using this script:
@ivoronin
ivoronin / gobiserial.patch
Created April 24, 2012 14:31
GobiSerial patch
Index: gobiserial-dkms_20110729~1026/GobiSerial.c
===================================================================
--- gobiserial-dkms_20110729~1026.orig/GobiSerial.c 2012-05-09 23:11:02.000000000 +0400
+++ gobiserial-dkms_20110729~1026/GobiSerial.c 2012-05-13 04:08:50.930148737 +0400
@@ -49,6 +49,7 @@
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/version.h>
+#include <linux/module.h>