OpenWrt Forum Archive

Topic: Howto undo a patch?

The content of this topic has been archived on 17 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

For a while I've been building my own openwrt for my Netgear WNDR3700, and they work fine for the biggest part. However, I do have some wireless devices (to be specific: a Logitech Squeezebox Boom) that disconnects regularly after a few days of uptime. I regularly compile new builds, especially when I find new ath9k or mac80211 checkins in the dev-logs (https://dev.openwrt.org/log/trunk), to see if things are changed for the better. The connection was rock-solid with the stock firmware, so I've been digging around some more to find anything which is related.

I came up with this change: https://dev.openwrt.org/changeset/23163, which changed the rate_control from "ath9k specific" to "minstrel" by default. Just for testing, I want to undo only that change (and keep any newer patches) and now the question is: how do I do that? I tried simply deleting the trunk/package/mac80211/patches/017-remove_ath9k_rc.patch file, then do a make dirclean, but then the build process fails. I think I have to undo the changes to the makefile as well, but that seems a lot of hacking which in turn might break other patches. Is there a better way to do this?

Thanks in advance.

It is highly unlikely that the RC algorithm is to blame here. Usually the compatibility issues revolve around broken aggregation setup or wpa interop problems, sometimes bad timing as well.

So, what do you recommend on how to fix these issues or investigate where the problem is? It's been driving me crazy more and more.

Make packet captures, record the wifi management traffic. Make hostapd debug logs. Compare the control traffic flow with that of a working station.

The discussion might have continued from here.