Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

From: Sven Eckelmann <sven@open-mesh.com>
Date: Tue, 18 Nov 2014 12:29:28 +0100
Subject: [PATCH] ath10k: Don't initialize devices asynchronously
OpenWrt requires all PHYs to be initialized to create the configuration files
during bootup. ath10k violates this because it delays the creation of the PHY
to a not well defined point in the future.
Forcing the work to be done immediately works around this problem but may also
delay the boot when firmware images cannot be found.
@ecsv
ecsv / infinite_rumble_xboxdrv_bug.c
Created June 13, 2013 07:32
I noticed a problem with xboxdrv when used together with mupen64plus-input-sdl. The signaling rumble effects were played but not the ingame effects. The big difference between the two are the length of the effect (or actually the replay.length because it is a FF_RUMBLE/FF_PERIODIC effect). Signaling effects have a specific length and ingame effe…
/*
Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely.
@ecsv
ecsv / zyxel_checksum.c
Last active December 6, 2017 14:36
zyxel checksum
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
uint16_t zyxel_checksum1(const uint8_t *start, const uint8_t *end)
{
const uint8_t *pos;
uint32_t crc;
size_t len;